/* ==========================================
   LINE — DESIGN SYSTEM
   Aprovação de Conteúdo
   ========================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #0E0E0E;
  --black-soft: #161616;
  --black-card: #1A1A1A;
  --black-border: #2E2E2E;
  --white: #FFFFFF;
  --white-muted: rgba(255, 255, 255, 0.50);
  --white-faint: rgba(255, 255, 255, 0.06);

  --blue-deep: #1A3AC7;
  --blue-bright: #007CFC;
  --gradient: linear-gradient(135deg, #1A3AC7, #007CFC);

  --status-pending: #F4B70A;
  --status-approved: #22C55E;
  --status-revision: #EA6102;

  --font: 'Urbanist', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --sidebar-width: 240px;
}

html,
body {
  height: 100%;
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

/* ==========================================
   SISTEMA DE TELAS
   ========================================== */

.screen {
  display: none;
  min-height: 100vh;
}

.screen.active {
  display: flex;
}

/* ==========================================
   TELA DE LOGIN
   ========================================== */

#screen-login {
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.login-bg-glow {
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 124, 252, 0.20) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Logo */
.login-logo,
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-logo {
  margin-bottom: -16px;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.sidebar-logo .logo-img {
  height: 60px;
}

/* Header */
.login-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.login-header p {
  font-size: 16px;
  color: var(--white-muted);
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--white-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-wrapper input {
  width: 100%;
  padding-right: 44px;
  /* Espaço para o botão do olho não sobrepor o texto */
}

.btn-toggle-password {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color 0.2s;
}

.btn-toggle-password:hover {
  color: var(--white);
}

.field input {
  background: var(--white-faint);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.22);
}

.field input:focus {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(0, 124, 252, 0.15);
}

.login-error {
  font-size: 14px;
  color: #EE0904;
  margin-top: -8px;
}

.hidden {
  display: none !important;
}

/* Botões */
.btn-primary {
  background: var(--gradient);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 15px 24px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-primary:hover {
  opacity: 0.86;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary {
  touch-action: manipulation;
}

/* ==========================================
   DASHBOARD — LAYOUT GERAL
   ========================================== */

#screen-dashboard {
  flex-direction: row;
  min-height: 100vh;
}

/* ==========================================
   SIDEBAR
   ========================================== */

.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--black-soft);
  border-right: 1px solid var(--black-border);
  display: flex;
  flex-direction: column;
  padding: 28px 16px;
  gap: 32px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
}

.sidebar-logo {
  padding: 0 8px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-divider {
  border-top: 1px solid var(--black-border);
  margin: 4px 0 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--white-muted);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
  width: 100%;
}

.nav-badge-anim {
  background: var(--status-approved);
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 99px;
  margin-left: auto;
  opacity: 0;
  transform: translateY(10px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-badge-anim.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.nav-badge-pending {
  background: var(--status-pending);
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 99px;
  margin-left: auto;
  display: none;
  min-width: 20px;
  text-align: center;
}

.nav-badge-pending.show {
  display: inline-block;
}

.nav-item svg {
  flex-shrink: 0;
}

.nav-item:hover {
  background: var(--white-faint);
  color: var(--white);
}

/* ==========================================
   NAV GROUP (Subpáginas)
   ========================================== */
.nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-chevron {
  margin-left: auto;
  transition: transform 0.2s;
}

.nav-group.open .nav-chevron {
  transform: rotate(180deg);
}

.nav-sub {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--black-border);
  margin-top: 2px;
}

.nav-group.open .nav-sub {
  display: flex;
}

.nav-item.active {
  background: rgba(0, 124, 252, 0.12);
  color: var(--blue-bright);
  border-left: 2px solid var(--blue-bright);
  padding-left: 12px;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--white-muted);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s;
}

.sidebar-logout:hover {
  color: #EE0904;
}

/* ==========================================
   ÁREA PRINCIPAL
   ========================================== */

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Header */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  border-bottom: 1px solid var(--black-border);
  position: sticky;
  top: 0;
  background: var(--black);
  z-index: 10;
}

.main-header-info h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.main-header-info p {
  font-size: 14px;
  color: var(--white-muted);
  margin-top: 2px;
}

.main-header-client {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  user-select: none;
}

.main-header-client:hover {
  background: var(--white-faint);
}

.chevron {
  color: var(--white-muted);
  transition: transform 0.2s;
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-md);
  min-width: 180px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.dropdown.open {
  display: block;
}

.dropdown.open~.chevron,
.main-header-client:has(.dropdown.open) .chevron {
  transform: rotate(180deg);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
}

.dropdown-item.logout {
  color: #EE0904;
}

.dropdown-item.logout:hover {
  background: rgba(238, 9, 4, 0.08);
}

.client-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.client-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--white-muted);
}

.client-avatar.lg {
  width: 64px;
  height: 64px;
  font-size: 20px;
}

/* Abas */
.tab-content {
  display: none;
  padding: 32px;
}

.tab-content.active {
  display: block;
}

.tab-content.active.tab-equipe-board-inner {
  display: flex;
  flex-direction: column;
}

/* ==========================================
   GRID DE CONTEÚDO
   ========================================== */

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.content-empty-state {
  display: none;
}

.review-left-close {
  display: none;
}

/* Card */
.content-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-left: 4px solid var(--black-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.content-card:hover {
  border-color: rgba(0, 124, 252, 0.3);
  border-left-color: rgba(0, 124, 252, 0.5);
}

.content-card.status-pending {
  border-left-color: var(--status-pending);
}

.content-card.status-approved {
  border-left-color: var(--status-approved);
}

.content-card.status-revision {
  border-left-color: var(--status-revision);
}

.content-card.wide {
  grid-column: 1 / -1;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

/* Preview */
.card-preview {
  position: relative;
  background: #111;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.card-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 124, 252, 0);
  transition: background 0.2s;
  z-index: 2;
  pointer-events: none;
}

.card-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

.card-preview:hover::after {
  background: rgba(0, 124, 252, 0.08);
}

.card-preview.video {
  aspect-ratio: 9 / 16;
  max-height: 380px;
}

.card-preview.wide-preview {
  aspect-ratio: 16 / 9;
}

/* Correção para o modo tela cheia dos vídeos */
video:fullscreen {
  object-fit: contain !important;
}

video:-webkit-full-screen {
  object-fit: contain !important;
}

.preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.2);
  font-size: 14px;
}

/* Badge de status */
.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  z-index: 3;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.card-badge.pending {
  background: rgba(244, 183, 10, 0.15);
  color: var(--status-pending);
  border: 1px solid rgba(244, 183, 10, 0.3);
}

.card-badge.approved {
  background: rgba(34, 197, 94, 0.12);
  color: var(--status-approved);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.card-badge.revision {
  background: rgba(234, 97, 2, 0.12);
  color: var(--status-revision);
  border: 1px solid rgba(234, 97, 2, 0.3);
}

/* Body do card */
.card-body {
  padding: 18px 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.card-body h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.card-body p {
  font-size: 14px;
  color: var(--white-muted);
}

.card-caption {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  margin-top: 1px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-caption::before {
  content: 'Legenda: ';
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: block;
  margin-bottom: 2px;
}

.review-caption {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin-top: 4px;
}

.review-caption::before {
  content: 'Legenda: ';
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: block;
  margin-bottom: 2px;
}

/* Lightbox reestruturado */
.lightbox-content {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 90vh;
}

.lightbox-preview {
  background: #111;
  width: 100%;
  max-height: 62vh;
  flex-shrink: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-preview.video {
  max-height: 50vh;
}

.lightbox-preview.youtube {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: 55vh;
}

.lightbox-info {
  padding: 20px 28px 24px;
  border-top: 1px solid var(--black-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lightbox-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.lightbox-info p {
  font-size: 14px;
  color: var(--white-muted);
}

.lightbox-caption {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin-top: 6px;
}

.lightbox-caption::before {
  content: 'Legenda: ';
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: block;
  margin-bottom: 2px;
}

/* Ações do card */
.card-actions {
  display: flex;
  gap: 8px;
  padding: 12px 18px 16px;
}

/* Botão excluir card — mesmo padrão visual de btn-revise/btn-approve */
.btn-delete-card {
  width: 34px;
  height: 34px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: rgba(239, 68, 68, 0.8);
  border-radius: var(--radius-sm);
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.btn-delete-card:hover {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgb(239, 68, 68);
  color: rgb(239, 68, 68);
}

.content-card-delete-btn {
  background: rgba(238, 9, 4, 0.08);
  border: none;
  color: rgba(238, 9, 4, 0.7);
  border-radius: 6px;
  width: 34px;
  height: 34px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
  margin-left: auto;
}
.content-card-delete-btn:hover {
  background: rgba(238, 9, 4, 0.18);
  color: #EE0904;
}

.btn-approve {
  flex: 1;
  background: rgba(34, 197, 94, 0.1);
  color: var(--status-approved);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-approve:hover:not(:disabled) {
  background: rgba(34, 197, 94, 0.18);
}

.btn-approve.approved {
  opacity: 0.7;
  cursor: pointer;
}

.btn-approve.approved:hover {
  background: rgba(238, 9, 4, 0.1);
  color: #EE0904;
  border-color: rgba(238, 9, 4, 0.3);
  opacity: 1;
}

.btn-revise {
  flex: 1;
  background: transparent;
  color: var(--white-muted);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.btn-revise:hover {
  border-color: var(--status-revision);
  color: var(--status-revision);
}


/* ==========================================
   CARROSSEL — NAVEGAÇÃO NO GRID
   ========================================== */

.carousel-nav {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 3;
}

.carousel-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: rgba(0, 124, 252, 0.5);
}

.slide-counter {
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background: rgba(0, 0, 0, 0.5);
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: 0.3px;
}

/* ==========================================
   PAINEL DE REVISÃO (split screen)
   ========================================== */

.review-panel {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  background: var(--black);
}

.review-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--black-border);
  color: var(--white-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.review-close:hover {
  background: rgba(255, 255, 255, 0.13);
  color: var(--white);
}

/* Esquerda */
.review-left {
  width: 62%;
  min-width: 340px;
  border-right: 1px solid var(--black-border);
  display: flex;
  flex-direction: column;
  padding: 32px 32px 28px;
  gap: 18px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.review-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 1;
}

/* Container que envolve o preview e as setas overlay */
.review-preview-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Setas overlay — dentro do frame do carrossel */
.review-overlay-prev,
.review-overlay-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}

.review-overlay-prev { left: 12px; }
.review-overlay-next { right: 12px; }

.review-overlay-prev:hover,
.review-overlay-next:hover {
  background: rgba(0, 124, 252, 0.5);
}

.review-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #111;
  border-radius: var(--radius-md);
  border: 1px solid var(--black-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.review-preview.video {
  aspect-ratio: 9 / 16;
  width: auto;
  height: 65vh;
  max-height: 65vh;
}

.review-preview.youtube {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
}

.review-carousel-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-carousel-nav .carousel-btn {
  width: 36px;
  height: 36px;
}

.review-carousel-nav .slide-counter {
  font-size: 14px;
  padding: 4px 12px;
}

.review-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-info-top {
  margin-bottom: 2px;
}

.review-info h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.review-info p {
  font-size: 14px;
  color: var(--white-muted);
}

.review-edit-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.review-edit-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--white-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.review-edit-group input,
.review-edit-group textarea {
  padding: 10px 12px;
  width: 100%;
}

.review-edit-group textarea {
  resize: vertical;
  min-height: 80px;
}

.review-actions {
  margin-top: 8px;
  padding-top: 20px;
  padding-bottom: 24px;
}

.review-actions .btn-approve {
  width: 100%;
  padding: 12px;
}

/* Botão "Abrir chat" — visível apenas no mobile (definido em @media 768px) */
.btn-open-chat {
  display: none;
}

/* Direita */
.review-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.review-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--black-border);
  flex-shrink: 0;
}

.review-chat-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white-muted);
}

#review-header-status {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.review-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-right .chat-input-row {
  padding: 16px 28px 24px;
  border-top: 1px solid var(--black-border);
}

/* ==========================================
   CHAT — BOLHAS
   ========================================== */

.chat-box {
  border-top: 1px solid var(--black-border);
  display: flex;
  flex-direction: column;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--black-border);
}

.chat-header span {
  font-size: 14px;
  font-weight: 600;
  color: var(--white-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chat-close {
  background: transparent;
  border: none;
  color: var(--white-muted);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.chat-close:hover {
  color: var(--white);
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  max-height: 220px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.chat-empty {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
  padding: 12px 0;
}

/* === Chat: estilo de bloco (ClickUp) === */
.chat-message {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.chat-message.from-client {
  background: rgba(0, 124, 252, 0.07);
  border-color: rgba(0, 124, 252, 0.15);
  flex-direction: row;
}

.chat-message.from-line {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.07);
  flex-direction: row;
}

.chat-message-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.from-client .chat-message-body,
.from-line .chat-message-body {
  align-items: flex-start;
}

.chat-bubble-meta {
  display: flex;
  gap: 6px;
  align-items: center;
}

.chat-sender {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.chat-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

.chat-avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.avatar-client {
  background: var(--gradient);
}

.avatar-admin {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255,255,255,0.15);
}

.chat-bubble {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
  color: rgba(255,255,255,0.85);
}

.from-client .chat-bubble,
.from-line .chat-bubble {
  background: transparent;
  border: none;
  color: var(--white);
  border-radius: 0;
}

.chat-input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--black-border);
}

.chat-input-row textarea {
  flex: 1;
  background: var(--white-faint);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  resize: none;
  min-height: 40px;
  max-height: 100px;
  outline: none;
  transition: border-color 0.2s;
  line-height: 1.4;
}

.chat-input-row textarea:focus {
  border-color: var(--blue-bright);
}

.chat-input-row textarea::placeholder {
  color: rgba(255, 255, 255, 0.22);
}

.chat-send {
  background: var(--gradient);
  border: none;
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.chat-send:hover {
  opacity: 0.85;
}

/* ==========================================
   LIGHTBOX
   ========================================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  backdrop-filter: blur(6px);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
}


.lightbox-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 14px;
  text-align: center;
}

/* ==========================================
   CONTROLES DE VÍDEO — SCRUBBER + TIMESTAMP
   ========================================== */

.video-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.video-scrubber-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.video-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--white-muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 30px;
}

.video-time-total {
  color: rgba(255, 255, 255, 0.25);
}

.video-scrubber {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 99px;
  background: var(--black-border);
  outline: none;
  cursor: pointer;
  accent-color: var(--blue-bright);
}

.video-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue-bright);
  cursor: pointer;
  border: 2px solid var(--black);
  box-shadow: 0 0 0 2px rgba(0, 124, 252, 0.3);
}

.video-scrubber::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue-bright);
  cursor: pointer;
  border: 2px solid var(--black);
}

.btn-timestamp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(0, 124, 252, 0.1);
  border: 1px solid rgba(0, 124, 252, 0.25);
  border-radius: var(--radius-sm);
  color: var(--blue-bright);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  width: 100%;
}

.btn-timestamp:hover {
  background: rgba(0, 124, 252, 0.18);
  border-color: rgba(0, 124, 252, 0.45);
}

/* Card de sugestão de timestamp no chat (aparece quando vídeo é pausado) */
.timestamp-suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-top: 1px solid var(--black-border);
  background: rgba(0, 124, 252, 0.05);
  border-left: 3px solid var(--blue-bright);
  flex-shrink: 0;
}

.timestamp-suggestion-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 124, 252, 0.15);
  border: 1px solid rgba(0, 124, 252, 0.3);
  color: var(--blue-bright);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.timestamp-suggestion-label {
  flex: 1;
  font-size: 14px;
  color: var(--white-muted);
}

.timestamp-suggestion-dismiss {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s;
  flex-shrink: 0;
}

.timestamp-suggestion-dismiss:hover {
  color: var(--white);
}

/* Timestamp inline dentro da bolha do chat */
.chat-bubble-wrap {
  position: static;
  display: block;
  width: 100%;
}

.btn-delete-msg {
  position: absolute;
  bottom: -18px;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  color: #EE0904;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10;
  transform: translateY(-5px);
}

.from-client .btn-delete-msg {
  left: 8px;
}

.from-line .btn-delete-msg {
  right: 8px;
}

.chat-message:hover .btn-delete-msg {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-delete-msg:hover {
  background: rgba(238, 9, 4, 0.1);
  border-color: rgba(238, 9, 4, 0.3);
}

.chat-timestamp-inline {
  font-size: 12px;
  font-weight: 800;
  color: var(--status-revision);
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-right: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.chat-timestamp-inline:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================
   QUADRO DE IDEIAS (KANBAN)
   ========================================== */

.kanban-board {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  min-height: calc(100vh - 160px);
  padding-bottom: 20px;
  align-items: flex-start;
  cursor: grab;
}

.kanban-board:active {
  cursor: grabbing;
}

.kanban-column {
  background: var(--black-soft);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-md);
  min-width: 280px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.kanban-column-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--black-border);
  background: rgba(0, 124, 252, 0.08);
  border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;
}

.kanban-column-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

/* Botão de adicionar na parte inferior da coluna */
.btn-add-kanban-bottom {
  background: transparent;
  border: none;
  color: var(--white-muted);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  padding: 12px 20px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s, background 0.2s;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.btn-add-kanban-bottom:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.kanban-cards {
  padding: 16px 16px 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 10px;
}

.kanban-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: grab;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s, transform 0.1s;
}

.kanban-card:hover {
  border-color: var(--blue-bright);
}

.kanban-card:active {
  cursor: grabbing;
}

/* Capa de imagem no card do profissional (designer/editor) — estilo Trello */
.equipe-card-cover {
  margin: -16px -16px 12px;
  height: 150px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
  background: #0d0d0d;
  position: relative;
  /* Evita que o arraste "pegue" a imagem em vez do card inteiro;
     o clique/arraste passa direto para o card. */
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.equipe-card-cover img,
.equipe-card-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.equipe-card-cover .equipe-card-cover-count {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kanban-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.kanban-card p {
  font-size: 14px;
  color: var(--white-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badges do Kanban Card */
.kanban-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.kanban-badge-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}

.kanban-badge-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  background: rgba(34, 197, 94, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.3px;
}

.kanban-badge-status {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}

.kanban-badge-status.pending {
  background: rgba(244, 183, 10, 0.15);
  color: var(--status-pending);
}

.kanban-badge-status.approved {
  background: rgba(34, 197, 94, 0.12);
  color: var(--status-approved);
}

.kanban-badge-status.revision {
  background: rgba(234, 97, 2, 0.12);
  color: var(--status-revision);
}

.kanban-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--black-border);
}

.kanban-comment-icon {
  color: var(--white-muted);
  display: flex;
}

/* Rodapé de stats do card (mensagens + links) — em todos os tipos de card */
.card-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--black-border);
}
.card-body .card-stats {
  margin-top: 8px;
  padding: 10px 0 2px;
}
.card-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--white-muted);
}
.card-stat svg { opacity: 0.85; flex-shrink: 0; }

.kanban-card.dragging {
  opacity: 0.01;
  /* Esconde visualmente o card original, deixando a experiência puramente para o placeholder */
}

/* Lixeira do Card */
.kanban-card-delete {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(238, 9, 4, 0.1);
  color: #EE0904;
  border: none;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10;
}

.kanban-card-delete:hover {
  background: rgba(238, 9, 4, 0.2);
}

.kanban-card:hover .kanban-card-delete {
  display: flex;
}

/* ==========================================
   KANBAN DROPPING PLACEHOLDER
   ========================================== */

.kanban-drop-placeholder {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 0;
  transition: height 0.1s;
}

/* ==========================================
   KANBAN COMPOSER INLINE
   ========================================== */

.kanban-composer {
  background: var(--black-card);
  border: 1px solid var(--blue-bright);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kanban-composer textarea {
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  resize: none;
  outline: none;
  min-height: 50px;
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-composer-add {
  padding: 6px 12px;
  font-size: 14px;
}

.btn-composer-cancel {
  background: transparent;
  border: none;
  color: var(--white-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}

.btn-composer-cancel:hover {
  color: var(--white);
}

/* ==========================================
   KANBAN MODAL
   ========================================== */

.kanban-editable-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  outline: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.kanban-editable-title:focus {
  border-bottom-color: var(--blue-bright);
}

/* ===== Botões estilo Trello no modal (Formato / Delegar / Redes) ===== */
.km-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.km-popover-wrap { position: relative; }

.km-trello-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 6px 12px;
  min-height: 34px;
  color: var(--white-muted);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.km-trello-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.km-trello-btn svg { flex-shrink: 0; opacity: 0.8; }
.km-trello-btn-text { white-space: nowrap; }

.km-pill {
  padding: 2px 10px;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  display: inline-block;
  line-height: 1.5;
}

.km-btn-pills {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.km-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 200;
  width: 250px;
  max-width: 78vw;
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 12px 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.km-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.km-popover-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--white-muted);
}

.km-popover-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.km-popover-close:hover { color: #fff; }

.km-popover-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.km-popover-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: none;
  border-radius: 6px;
  padding: 9px 11px;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-align: left;
  font-family: var(--font);
  transition: filter 0.12s;
}
.km-popover-item:hover { filter: brightness(1.12); }

.km-popover-item-plain {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white-muted);
  font-weight: 500;
}

.km-popover-item .km-check { margin-left: auto; font-size: 14px; }

/* Calendário (Data Prevista / Data Limite) dentro do popover */
.km-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.km-cal-nav button {
  background: transparent;
  border: none;
  color: var(--white-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 10px;
  border-radius: 4px;
}
.km-cal-nav button:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.km-cal-month { font-size: 13px; font-weight: 600; color: #fff; text-transform: capitalize; }

.km-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.km-cal-weekdays { margin-bottom: 4px; }
.km-cal-weekdays span {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  padding: 4px 0;
}
.km-cal-day {
  position: relative;
  background: transparent;
  border: none;
  color: var(--white-muted);
  font-size: 13px;
  padding: 7px 0;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font);
  text-align: center;
}
.km-cal-day:hover:not(.km-cal-empty) { background: rgba(255, 255, 255, 0.1); color: #fff; }
.km-cal-empty { cursor: default; }
.km-cal-sel { background: var(--blue-bright); color: #fff; font-weight: 700; }

/* Pontinho verde nos dias que já têm publicação marcada */
.km-cal-dot {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22C55E;
  pointer-events: none;
}
.km-cal-sel .km-cal-dot { background: #fff; }

.km-cal-clear {
  width: 100%;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white-muted);
  border-radius: 6px;
  padding: 7px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
}
.km-cal-clear:hover { background: rgba(239, 68, 68, 0.15); color: #fff; }

.kanban-modal-delete {
  background: rgba(238, 9, 4, 0.1);
  color: #EE0904;
  border: none;
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.kanban-modal-status-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  margin-top: -4px;
}

.btn-view-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
}

.btn-view-content:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.kanban-modal-delete:hover {
  background: rgba(238, 9, 4, 0.2);
}

.kanban-modal-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.kanban-modal-row {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.kanban-modal-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.km-input {
  background: var(--white-faint);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.km-input:focus {
  border-color: var(--blue-bright);
}

.km-input:disabled {
  opacity: 1;
  cursor: default;
}

.km-input option {
  background: var(--black-card);
  color: var(--white);
}

.km-input optgroup {
  background: var(--black-card);
  font-weight: 700;
  font-style: normal;
}

.km-input option[value="card"] {
  color: var(--blue-bright);
}

.km-input option[value="carrossel"] {
  color: var(--status-pending);
}

.km-input option[value="reels"] {
  color: var(--status-revision);
}

.km-input option[value="youtube"] {
  color: #EE0904;
}

/* Equipe tag options */
.km-input option[value="alt-texto"]  { color: #60a5fa; }
.km-input option[value="alt-imagem"] { color: #fbbf24; }
.km-input option[value="legenda"]    { color: #fdba74; }
.km-input option[value="color"]      { color: #22d3ee; }
.km-input option[value="corte"]      { color: #f472b6; }
.km-input option[value="musica"]     { color: #f87171; }

/* Delegar options */
.km-input option[value="designer"] { color: #a78bfa; }
.km-input option[value="editor"]   { color: #fb923c; }

.kanban-modal-body label {
  font-size: 14px;
  font-weight: 600;
  color: var(--white-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.km-desc-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.km-caption-textarea {
  min-height: auto;
  resize: none;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.km-desc-expand-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 4px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  transition: color 0.15s, background 0.15s;
}
.km-desc-expand-btn:hover {
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.07);
}

.kanban-modal-body textarea {
  background: var(--white-faint);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  resize: none;
  overflow: hidden;
  
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.kanban-modal-body textarea:focus {
  border-color: var(--blue-bright);
}

/* ==========================================
   KANBAN — ABA ISCAS
   ========================================== */
.km-isca-section {
  margin-bottom: 14px;
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.km-isca-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: var(--white-faint);
  border: none;
  color: var(--white-muted);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.km-isca-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.km-isca-toggle-btn.open #km-isca-chevron {
  transform: rotate(180deg);
}

.km-isca-panel {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--black-border);
}

.km-isca-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.km-isca-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--white-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.km-isca-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.km-isca-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 13px;
  color: var(--white-muted);
}

.km-isca-replies {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.km-isca-reply-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.km-isca-reply-row input {
  flex: 1;
  background: var(--white-faint);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.km-isca-reply-row input:focus {
  border-color: var(--blue-bright);
}

.km-isca-reply-edit,
.km-isca-reply-remove {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s;
  flex-shrink: 0;
}

.km-isca-reply-edit:hover { color: var(--blue-bright); }
.km-isca-reply-remove:hover { color: #ff6b6b; }

.km-isca-gen-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: var(--white-faint);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font);
  font-size: 16px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, color 0.15s;
}

.km-isca-gen-btn:hover {
  border-color: var(--blue-bright);
  color: rgba(255, 255, 255, 0.75);
}

/* Sequência de mensagens */
.km-isca-fluxo-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.km-isca-msg-block {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px;
}

.km-isca-msg-order {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-top: 2px;
}

/* Handle de arrastar para reordenar as mensagens da isca */
.km-isca-drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.28);
  cursor: grab;
  padding: 4px 2px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  touch-action: none;
}
.km-isca-drag-handle:hover {
  color: white;
  background: rgba(255,255,255,0.1);
}
.km-isca-drag-handle:active { cursor: grabbing; }

.km-isca-msg-block.dragging { opacity: 0.45; }
.km-isca-msg-block.drag-over-top    { box-shadow: inset 0 2px 0 0 var(--blue-bright); }
.km-isca-msg-block.drag-over-bottom { box-shadow: inset 0 -2px 0 0 var(--blue-bright); }

.km-isca-msg-type {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 3px;
}
.km-isca-msg-type[data-tipo="texto"]  { background: rgba(96,165,250,0.15); color: #60a5fa; }
.km-isca-msg-type[data-tipo="imagem"] { background: rgba(74,222,128,0.15); color: #4ade80; }
.km-isca-msg-type[data-tipo="video"]  { background: rgba(251,146,60,0.15);  color: #fb923c; }
.km-isca-msg-type[data-tipo="pdf"]    { background: rgba(248,113,113,0.15); color: #f87171; }

.km-isca-msg-body {
  flex: 1;
  min-width: 0;
}

.km-isca-msg-textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 6px;
  color: white;
  font-size: 16px;
  line-height: 1.5;
  padding: 8px 10px;
  resize: none;
  box-sizing: border-box;
  min-height: 42px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.km-isca-msg-textarea:focus {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
}

/* Texto da isca em modo leitura — 3 linhas + botão "Expandir para ler mais" */
.km-isca-msg-readtext {
  color: white;
  font-size: 16px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  opacity: 0.85;
}
.km-isca-msg-readtext.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.km-isca-expand-btn {
  background: none;
  border: none;
  color: var(--blue-bright);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0 0;
  margin-top: 2px;
}
.km-isca-expand-btn:hover { text-decoration: underline; }

.km-isca-msg-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.km-isca-msg-thumb {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 5px;
  cursor: zoom-in;
  flex-shrink: 0;
}
.km-isca-msg-filename {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.km-isca-msg-remove {
  background: none;
  border: none;
  color: rgba(255,255,255,0.25);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.15s;
}
.km-isca-msg-remove:hover { color: #f87171; background: rgba(248,113,113,0.1); }

.km-isca-msg-add-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.km-isca-add-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.km-isca-add-btn:hover {
  background: rgba(255,255,255,0.11);
  color: white;
  border-color: rgba(255,255,255,0.18);
}

/* ==========================================
   KANBAN — SEÇÃO DE ANEXOS
   ========================================== */
.km-attach-section {
  margin-top: 14px;
  border-top: 1px solid var(--black-border);
  padding-top: 12px;
}

.km-attach-header {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--white-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.km-attach-trigger-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: var(--white-faint);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.45);
  font-family: var(--font);
  font-size: 16px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, color 0.15s;
}
.km-attach-trigger-btn:hover {
  border-color: var(--blue-bright);
  color: rgba(255,255,255,0.75);
}

.km-attach-menu {
  margin-top: 8px;
  background: var(--black-soft);
  border: 1px solid var(--black-border);
  border-radius: 8px;
  overflow: hidden;
  width: 220px;
}

.km-attach-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.km-attach-option:hover { background: rgba(255,255,255,0.06); }
.km-attach-option + .km-attach-option { border-top: 1px solid var(--black-border); }

.km-attach-input-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.km-attach-input-type {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

.km-attach-link-field {
  flex: 1;
  min-width: 0;
  background: var(--white-faint);
  border: 1px solid var(--black-border);
  border-radius: 6px;
  color: var(--white);
  font-size: 13px;
  padding: 7px 10px;
  outline: none;
  transition: border-color 0.15s;
}
.km-attach-link-field:focus { border-color: var(--blue-bright); }
.km-attach-link-field::placeholder { color: rgba(255,255,255,0.22); }

.km-attach-confirm-btn {
  background: var(--blue-bright);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.km-attach-confirm-btn:hover { opacity: 0.85; }

.km-attach-cancel-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.15s;
}
.km-attach-cancel-btn:hover { color: rgba(255,255,255,0.7); }

.km-attach-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.km-attach-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white-faint);
  border: 1px solid var(--black-border);
  border-radius: 7px;
  padding: 7px 10px;
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}
.km-attach-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
}

.km-attach-item-icon { flex-shrink: 0; }

.km-attach-item-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.km-attach-remove-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.25);
  font-size: 13px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s;
}
.km-attach-remove-btn:hover { color: rgba(255,200,200,0.7); }

/* ==========================================
   KANBAN — MODAL EXPAND DESCRIÇÃO
   ========================================== */
.km-desc-expand-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--black);
  display: flex;
  flex-direction: column;
}
.km-desc-expand-overlay.hidden { display: none; }

.km-desc-expand-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--black-border);
  flex-shrink: 0;
}

.km-desc-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--black-border);
  color: var(--white-muted);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  padding: 7px 12px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.km-desc-back-btn:hover {
  background: rgba(255,255,255,0.07);
  color: var(--white);
}

.km-desc-expand-title {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
}

.km-desc-expand-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding: 40px 80px 60px;
  display: flex;
  flex-direction: column;
}

.km-desc-expand-textarea {
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.75;
  resize: none;
  overflow-y: auto;
  min-height: 300px;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  box-sizing: border-box;
  flex: 1;
}
.km-desc-expand-textarea::placeholder {
  color: rgba(255,255,255,0.2);
}

/* ==========================================
   CALENDÁRIO
   ========================================== */

.calendar-container {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--black-border);
  background: var(--black-soft);
}

.calendar-header-controls {
  display: flex;
  gap: 16px;
  align-items: center;
}

.calendar-nav-btns {
  display: flex;
  gap: 8px;
}

.calendar-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.calendar-view-toggles {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--black-border);
}

.btn-view-toggle {
  background: transparent;
  border: none;
  color: var(--white-muted);
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, color 0.2s;
}

.btn-view-toggle.active {
  background: var(--black-soft);
  color: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-view-toggle:hover:not(.active) {
  color: var(--white);
  background: rgba(255, 255, 255, 0.02);
}

.btn-calendar-nav {
  background: transparent;
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  color: var(--white);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-calendar-nav:hover {
  background: var(--white-faint);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--black-border);
  background: rgba(255, 255, 255, 0.02);
}

.calendar-weekdays div {
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white-muted);
  text-align: center;
  border-right: 1px solid var(--black-border);
}

.calendar-weekdays div:last-child {
  border-right: none;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--black-border);
  gap: 1px;
}

.calendar-day {
  background: var(--black-card);
  min-height: 140px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: min-height 0.3s ease;
}

.calendar-days.week-view .calendar-day {
  min-height: 55vh;
}

.calendar-day.empty {
  background: var(--black-soft);
}

.day-number {
  font-size: 16px;
  font-weight: 600;
  color: var(--white-muted);
}

.calendar-event {
  background: var(--black-soft);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.1s;
}

.calendar-event:hover {
  border-color: var(--blue-bright);
  transform: translateY(-1px);
}

.calendar-event.status-approved {
  border-left: 3px solid var(--status-approved);
}

.calendar-event.status-pending {
  border-left: 3px solid var(--status-pending);
}

.calendar-event.status-revision {
  border-left: 3px solid var(--status-revision);
}

.event-type {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  align-self: flex-start;
}

.type-card {
  background: rgba(0, 124, 252, 0.15);
  color: var(--blue-bright);
}

.type-carrossel {
  background: rgba(244, 183, 10, 0.15);
  color: var(--status-pending);
}

.type-reels {
  background: rgba(234, 97, 2, 0.15);
  color: var(--status-revision);
}

.type-youtube {
  background: rgba(238, 9, 4, 0.15);
  color: #EE0904;
}

/* Equipe tags — variações das cores padrão */
.type-alt-texto  { background: rgba(96, 165, 250, 0.12); color: #60a5fa; }
.type-alt-imagem { background: rgba(251, 191, 36, 0.12);  color: #fbbf24; }
.type-legenda    { background: rgba(253, 186, 116, 0.12); color: #fdba74; }
.type-color      { background: rgba(34, 211, 238, 0.12);  color: #22d3ee; }
.type-corte      { background: rgba(244, 114, 182, 0.12); color: #f472b6; }
.type-musica     { background: rgba(248, 113, 113, 0.12); color: #f87171; }

.event-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.calendar-event.dragging {
  opacity: 0.01;
  /* Esconde o evento original visualmente durante o arraste */
}

/* Evento compacto — quando há 2+ conteúdos no mesmo dia (barra + horário + título truncado) */
.calendar-event-compact {
  background: transparent;
  border: none;
  border-radius: 5px;
  padding: 4px 6px;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.calendar-event-compact:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: transparent;
  transform: none;
}
.calendar-event-compact.status-approved,
.calendar-event-compact.status-pending,
.calendar-event-compact.status-revision {
  border-left: none;
}

.cal-ev-bar {
  width: 3px;
  height: 15px;
  border-radius: 2px;
  flex-shrink: 0;
  background: var(--status-pending);
}
.calendar-event-compact.status-approved .cal-ev-bar { background: var(--status-approved); }
.calendar-event-compact.status-revision .cal-ev-bar { background: var(--status-revision); }
.calendar-event-compact.status-pending  .cal-ev-bar { background: var(--status-pending); }

.cal-ev-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--white-muted);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.cal-ev-title {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.calendar-drop-placeholder {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  transition: height 0.1s;
}

/* ==========================================
   PAINEL ADMIN
   ========================================== */

.admin-panel-container {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-md);
  padding: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.admin-clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.admin-client-card {
  background: var(--black-soft);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.1s;
  text-align: center;
}

.admin-client-card:hover {
  border-color: var(--blue-bright);
  background: rgba(0, 124, 252, 0.05);
  transform: translateY(-2px);
}

.admin-client-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.btn-back {
  background: transparent;
  border: 1px solid var(--black-border);
  border-radius: 50%;
  color: var(--white);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.btn-back:hover {
  background: var(--white-faint);
}

.admin-header {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--black-border);
  padding-bottom: 20px;
}

.admin-header h3 {
  font-size: 20px;
  font-weight: 700;
}

.admin-header p {
  font-size: 16px;
  color: var(--white-muted);
  margin-top: 4px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.admin-file-input {
  padding: 10px 16px !important;
  color: var(--white-muted) !important;
  cursor: not-allowed;
}

/* ==========================================
   TOAST NOTIFICATIONS (NOTIFICAÇÕES)
   ========================================== */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.error {
  border-left: 4px solid #EE0904;
}

.toast.success {
  border-left: 4px solid var(--status-approved);
}

.toast.info {
  border-left: 4px solid var(--blue-bright);
}

.toast.pending {
  border-left: 4px solid var(--status-pending);
}

/* ==========================================
   ACESSIBILIDADE — MOVIMENTO REDUZIDO
   ========================================== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================
   TIPOGRAFIA — HEADINGS
   ========================================== */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

/* ==========================================
   TOUCH — ELIMINA DELAY DE 300MS
   ========================================== */
button,
[role="button"],
.nav-item,
.dropdown-item,
.btn-approve,
.btn-revise,
.btn-timestamp,
.carousel-btn,
.chat-send,
.review-close,
.lightbox-close {
  touch-action: manipulation;
}

/* ==========================================
   RESPONSIVIDADE (TABLET E MOBILE)
   ========================================== */

/* ==========================================
   DESKTOP — ajustes exclusivos
   ========================================== */
@media (min-width: 769px) {
  /* Limita o preview de imagem/carrossel para caber sem precisar rolar */
  .review-preview:not(.video):not(.youtube) {
    width: min(100%, calc(100vh - 180px));
    aspect-ratio: 1 / 1;
  }

  /* Container do preview herda o tamanho real da imagem (sem sobra lateral) */
  .review-preview-container {
    width: min(100%, calc(100vh - 180px));
  }
}

/* Ajustes para Tablets (até 1024px) */
@media (max-width: 1024px) {

  /* Empilha o painel de revisão e o modal do Kanban (Conteúdo em cima, Chat embaixo) */
  .review-panel {
    flex-direction: column;
  }

  .review-left {
    width: 100%;
    min-width: unset;
    height: 50vh;
    border-right: none;
    border-bottom: 1px solid var(--black-border);
    padding: 20px 20px 16px;
  }

  .review-right {
    width: 100%;
    height: 50vh;
  }

  .review-preview.video,
  .review-preview.youtube {
    height: auto;
    max-height: 35vh;
    /* Evita que o vídeo tome a tela toda e esconda os botões */
  }
}

/* Ajustes para Celulares (até 768px) */
@media (max-width: 768px) {

  /* Layout Principal: joga a sidebar para o topo */
  #screen-dashboard {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    min-height: unset;
    position: static;
    padding: 16px;
    gap: 20px;
    border-right: none;
    border-bottom: 1px solid var(--black-border);
  }

  /* Header da página principal */
  .main-header {
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .main-header-client {
    width: 100%;
    justify-content: space-between;
  }

  /* Ajuste das áreas de conteúdo e Kanban */
  .tab-content {
    padding: 16px;
  }

  .kanban-modal-row {
    flex-direction: column;
    gap: 12px;
  }

  /* Tela de Login */
  .login-card {
    padding: 32px 24px;
  }

  /* Estado vazio das abas de conteúdo */
  .content-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 60px 24px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--white-muted);
    text-align: center;
    grid-column: 1 / -1;
  }

  .content-grid:has(.content-card) .content-empty-state {
    display: none;
  }

  /* X do chat igual ao X dos detalhes */
  .review-close {
    width: 38px;
    height: 38px;
  }

  .review-close svg {
    width: 22px;
    height: 22px;
  }

  /* Botão X para fechar painel nos detalhes (mobile only) */
  .review-left-close {
    display: flex;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--black-border);
    color: var(--white-muted);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }

  .review-left-close:active {
    background: rgba(255, 255, 255, 0.13);
    color: var(--white);
  }

  /* No review-panel (aprovação), o close fica alinhado à direita no topo */
  #review-panel .review-left > .review-left-close {
    align-self: flex-end;
    margin-bottom: -8px;
  }

  /* Painel mobile: sem espaço preto */
  .review-panel {
    overflow-y: auto;
  }

  .review-left {
    flex: none;
    height: auto;
    min-height: 100dvh;
    overflow-y: visible;
    padding: 20px 20px 32px;
  }

  /* Kanban: travar crescimento do body e textarea no mobile */
  .kanban-modal-body {
    flex: none;
  }

  .kanban-modal-body textarea {
    
  }

  /* Chat oculto por padrão nos painéis móveis */
  .review-right {
    display: none;
  }

  .review-panel.show-chat .review-left {
    display: none;
  }

  .review-panel.show-chat .review-right {
    display: flex;
    height: 100dvh;
  }

  .btn-open-chat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
    padding: 15px 24px;
    background: none;
    border: 1px solid var(--black-border);
    border-radius: var(--radius-sm);
    color: var(--white-muted);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
  }

  .btn-open-chat:active {
    border-color: var(--blue-bright);
    color: var(--blue-bright);
  }

  /* Calendário mobile */
  .calendar-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .calendar-header-controls {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    gap: 10px;
  }

  .calendar-view-toggles {
    flex: 1;
  }

  .calendar-nav-btns {
    display: flex;
    flex-shrink: 0;
    gap: 6px;
  }

  .calendar-weekdays {
    font-size: 10px;
  }

  .calendar-day {
    min-height: 64px;
    padding: 6px;
    gap: 4px;
  }

  .calendar-days.week-view .calendar-day {
    min-height: 30vh;
  }

  .calendar-day .day-number {
    font-size: 11px;
  }

  .calendar-event {
    font-size: 10px;
    padding: 2px 4px;
  }
}

/* ==========================================
   ABA CLIENTES
   ========================================== */

.clientes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 24px;
  align-content: start;
}

.cliente-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.cliente-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 124, 252, 0.14);
  border-color: rgba(0, 124, 252, 0.3);
}

.cliente-card-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 210px;
  border-style: dashed;
  border-width: 2px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  font-weight: 600;
  background: transparent;
}

.cliente-card-add:hover {
  color: var(--blue-primary, #007CFC);
  border-color: rgba(0, 124, 252, 0.4);
  border-style: dashed;
}

.cliente-card-add-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px dashed currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Controles de edição que aparecem no hover */
.cliente-card-edit-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}

.cliente-card:hover .cliente-card-edit-overlay {
  opacity: 1;
}

.cliente-card-edit-btn {
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.15s, border-color 0.15s;
}

.cliente-card-edit-btn:hover {
  background: rgba(0, 124, 252, 0.45);
  border-color: var(--blue-bright);
}

/* Badge "Ativo" no banner */
.cliente-card-badge-ativo {
  position: absolute;
  top: 10px;
  left: 12px;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #22C55E;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* Seção de perfil */
.cliente-card-profile-section {
  padding: 18px 18px 18px;
  position: relative;
}

.cliente-card-avatar-wrap {
  margin-top: 0;
  margin-bottom: 12px;
  position: relative;
  width: fit-content;
}

.cliente-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  border: 3px solid var(--black-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.cliente-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cliente-avatar-edit-btn {
  position: absolute;
  bottom: 0;
  right: -3px;
  width: 22px;
  height: 22px;
  background: var(--blue-bright);
  border: 2px solid var(--black-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  color: var(--white);
}

.cliente-card:hover .cliente-avatar-edit-btn {
  opacity: 1;
}

/* Nome e handle */
.cliente-card-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.cliente-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.cliente-name-edit-btn {
  background: none;
  border: none;
  color: var(--white-muted);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.2s, color 0.15s;
  flex-shrink: 0;
}

.cliente-card:hover .cliente-name-edit-btn {
  opacity: 1;
}

.cliente-name-edit-btn:hover {
  color: var(--blue-bright);
}

.cliente-card-handle {
  font-size: 12px;
  color: var(--white-muted);
  margin-bottom: 14px;
}

/* Stats dos conteúdos */
.cliente-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.cliente-card-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
}

.cliente-card-stat.stat-draft {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
}

.cliente-card-stat.stat-revision {
  background: rgba(234, 97, 2, 0.10);
  border-color: rgba(234, 97, 2, 0.30);
  color: #EA6102;
}

.cliente-card-stat.stat-pending {
  background: rgba(244, 183, 10, 0.10);
  border-color: rgba(244, 183, 10, 0.30);
  color: #F4B70A;
}

.cliente-card-stat.stat-approved {
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.30);
  color: #22C55E;
}

.stat-count {
  font-weight: 700;
  font-size: 13px;
}

.stat-label {
  font-size: 12px;
  opacity: 0.85;
}

/* Loading skeleton para os cards */
.cliente-card-loading {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.cliente-card-loading .skel-banner {
  height: 110px;
  background: var(--white-faint);
}

.cliente-card-loading .skel-body {
  padding: 32px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cliente-card-loading .skel-line {
  height: 14px;
  background: var(--white-faint);
  border-radius: 6px;
}

/* ==========================================
   MODAL BANNER PICKER
   ========================================== */

.banner-picker-content {
  max-width: 460px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.banner-picker-preview {
  width: 100%;
  height: 90px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--black-border);
  transition: background 0.2s;
}

.banner-picker-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white-muted);
  margin-bottom: 10px;
}

.banner-gradients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.banner-gradient-swatch {
  height: 50px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s, transform 0.1s, box-shadow 0.15s;
}

.banner-gradient-swatch:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.banner-gradient-swatch.selected {
  border-color: var(--white);
  box-shadow: 0 0 0 1px var(--white);
}

/* ==========================================
   MODAL FOTO DO CLIENTE
   ========================================== */

#client-photo-modal .lightbox-content {
  max-width: 400px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========================================
   MODAL EDITAR NOME
   ========================================== */

#client-name-modal .lightbox-content {
  max-width: 380px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* ==========================================
   ONBOARDING TOUR
   ========================================== */

.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
}

.tour-overlay.active {
  pointer-events: all;
}

.tour-highlight {
  position: fixed;
  border-radius: 10px;
  background: rgba(0, 124, 252, 0.10);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6),
              0 0 0 2px rgba(0, 124, 252, 0.9),
              0 0 20px 6px rgba(0, 124, 252, 0.35);
  transition: top 0.35s cubic-bezier(0.4,0,0.2,1),
              left 0.35s cubic-bezier(0.4,0,0.2,1),
              width 0.35s cubic-bezier(0.4,0,0.2,1),
              height 0.35s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  z-index: 9998;
}

.tour-card {
  position: fixed;
  background: #1A1A1A;
  border: 1px solid #2E2E2E;
  border-radius: 16px;
  padding: 24px;
  width: 300px;
  z-index: 9999;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  transition: top 0.35s cubic-bezier(0.4,0,0.2,1),
              left 0.35s cubic-bezier(0.4,0,0.2,1),
              transform 0.35s cubic-bezier(0.4,0,0.2,1);
  pointer-events: all;
}

.tour-card::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: #1A1A1A;
  display: none;
}

.tour-card.arrow-left::before {
  display: block;
  left: -6px;
  top: 22px;
  border-left: 1px solid #2E2E2E;
  border-bottom: 1px solid #2E2E2E;
  transform: rotate(45deg);
}

.tour-card.arrow-right::before {
  display: block;
  right: -6px;
  top: 22px;
  border-right: 1px solid #2E2E2E;
  border-top: 1px solid #2E2E2E;
  transform: rotate(45deg);
}

.tour-step-count {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--blue-bright);
  margin-bottom: 8px;
}

.tour-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}

.tour-card p {
  font-size: 14px;
  color: var(--white-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.tour-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tour-btn-skip {
  background: none;
  border: none;
  color: rgba(255,255,255,0.25);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font);
  padding: 0;
  transition: color 0.15s;
  white-space: nowrap;
}

.tour-btn-skip:hover {
  color: rgba(255,255,255,0.55);
}

.tour-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tour-btn-prev {
  background: none;
  border: 1px solid var(--black-border);
  color: var(--white-muted);
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}

.tour-btn-prev:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}

.tour-btn-next {
  background: var(--gradient);
  border: none;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity 0.15s;
  white-space: nowrap;
}

.tour-btn-next:hover {
  opacity: 0.85;
}

.tour-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: 16px;
}

.tour-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: all 0.25s;
}

.tour-dot.active {
  background: var(--blue-bright);
  width: 18px;
  border-radius: 3px;
}

.tour-active-el {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.22) !important;
  border-radius: 8px;
}

.tour-active-el svg {
  stroke: #ffffff !important;
  opacity: 1 !important;
}

.tour-active-el span {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* ==========================================
   ESTRATÉGIA
   ========================================== */

.estrategia-months-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  padding: 4px 2px;
}

.estrategia-month-card {
  position: relative;
  background: #1E1E1E;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px 24px 24px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
  user-select: none;
  min-height: 160px;
}

.estrategia-month-card:hover {
  border-color: rgba(0, 124, 252, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 124, 252, 0.14);
}

.estrategia-month-card.has-strategy {
  border-color: rgba(34, 197, 94, 0.2);
}

.estrategia-month-card.has-strategy:hover {
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 12px 40px rgba(34, 197, 94, 0.12);
}

.month-card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
  background: radial-gradient(circle at 50% -10%, rgba(0, 124, 252, 0.1), transparent 65%);
  pointer-events: none;
}

.estrategia-month-card:hover .month-card-glow {
  opacity: 1;
}

.estrategia-month-card.has-strategy .month-card-glow {
  background: radial-gradient(circle at 50% -10%, rgba(34, 197, 94, 0.08), transparent 65%);
}

.month-card-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 20px;
  transition: background 0.2s, box-shadow 0.2s;
}

.month-card-indicator.active {
  background: var(--status-approved);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.month-card-year {
  font-size: 12px;
  font-weight: 500;
  color: var(--white-muted);
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.month-card-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.month-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.month-card-status {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
}

.month-card-status.ready {
  background: rgba(34, 197, 94, 0.1);
  color: var(--status-approved);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.month-card-status.empty {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white-muted);
  border: 1px solid var(--black-border);
}

.month-card-add-hint {
  position: absolute;
  bottom: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(0, 124, 252, 0.7);
  opacity: 0;
  transition: opacity 0.2s;
}

.estrategia-month-card:hover .month-card-add-hint {
  opacity: 1;
}

/* Modal Estratégia */
.estrategia-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: var(--black);
  display: flex;
  flex-direction: column;
}

.estrategia-modal.hidden {
  display: none;
}

.estrategia-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 54px;
  border-bottom: 1px solid var(--black-border);
  background: rgba(14, 14, 14, 0.98);
  flex-shrink: 0;
  gap: 16px;
}

.estrategia-modal-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  flex: 1;
}

.estrategia-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.estrategia-modal-body {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.estrategia-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Upload zone */
.estrategia-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 48px 40px;
  border: 2px dashed var(--black-border);
  border-radius: 16px;
  margin: 32px;
  width: calc(100% - 64px);
  max-width: 480px;
  transition: border-color 0.2s, background 0.2s;
  cursor: default;
}

.estrategia-upload-zone.drag-over {
  border-color: var(--blue-bright);
  background: rgba(0, 124, 252, 0.05);
}

.estrategia-upload-zone .upload-zone-icon {
  color: var(--white-muted);
  margin-bottom: 4px;
}

.estrategia-upload-zone p {
  font-size: 15px;
  color: var(--white);
  line-height: 1.5;
}

.estrategia-upload-zone span {
  font-size: 13px;
  color: var(--white-muted);
}

/* Empty state */
.estrategia-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 40px;
  color: var(--white-muted);
}

.estrategia-empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-top: 8px;
}

.estrategia-empty-state p {
  font-size: 14px;
  max-width: 360px;
  line-height: 1.6;
}

/* ==========================================
   EQUIPE — QUADRO DE PROFISSIONAIS
   ========================================== */

.equipe-grid {
  display: grid;
  grid-template-columns: repeat(2, 200px);
  gap: 20px;
}

.equipe-member-card {
  background: var(--black-soft);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.1s;
  text-align: center;
}

.equipe-member-card:hover {
  border-color: var(--blue-bright);
  background: rgba(0, 124, 252, 0.05);
  transform: translateY(-2px);
}

.equipe-member-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.equipe-member-card p {
  font-size: 13px;
  color: var(--white-muted);
  margin: 0;
}

.equipe-member-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.equipe-member-avatar.designer {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.equipe-member-avatar.editor {
  background: linear-gradient(135deg, #ea580c, #fb923c);
}

.equipe-board-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.equipe-board-role-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.equipe-board-role-badge.designer {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.equipe-board-role-badge.editor {
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

/* --- Filtro de clientes no board da equipe --- */
.equipe-client-filter {
  position: relative;
  margin-left: auto;
}

.equipe-client-filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white-faint);
  border: 1px solid var(--black-border);
  border-radius: 10px;
  color: var(--white-muted);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.equipe-client-filter-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.15);
}

.equipe-client-filter-btn.active {
  background: rgba(0, 124, 252, 0.12);
  border-color: rgba(0, 124, 252, 0.35);
  color: #60aeff;
}

.equipe-client-active-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-bright);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  min-width: 16px;
}

.equipe-client-filter-chevron {
  transition: transform 0.2s;
}

.equipe-client-filter-btn.open .equipe-client-filter-chevron {
  transform: rotate(180deg);
}

.equipe-client-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #1e1e1e;
  border: 1px solid var(--black-border);
  border-radius: 10px;
  min-width: 230px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 200;
  overflow: hidden;
}

.equipe-client-dropdown-inner {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.equipe-client-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, color 0.12s;
  width: 100%;
}

.equipe-client-option:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
}

.equipe-client-option.selected {
  background: rgba(0, 124, 252, 0.12);
  color: #60aeff;
}

.equipe-client-option-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.equipe-client-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 183, 10, 0.15);
  color: #F4B70A;
  border: 1px solid rgba(244, 183, 10, 0.25);
  font-size: 10px;
  font-weight: 700;
  border-radius: 20px;
  padding: 1px 7px;
  min-width: 22px;
  flex-shrink: 0;
}

.equipe-client-option.selected .equipe-client-count-badge {
  background: rgba(0, 124, 252, 0.18);
  color: #60aeff;
  border-color: rgba(0, 124, 252, 0.3);
}

.equipe-new-version-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 10px;
  font-weight: 700;
  border-radius: 20px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  flex-shrink: 0;
  animation: newVersionPulse 0.4s ease-out;
}

@keyframes newVersionPulse {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.equipe-client-option-all {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 4px;
  padding-bottom: 10px;
}

.equipe-board .kanban-column:nth-child(1) .kanban-column-header h3 { color: #22C55E; }   /* Pode Produzir */
.equipe-board .kanban-column:nth-child(2) .kanban-column-header h3 { color: #a78bfa; }   /* Aprovação Line */
.equipe-board .kanban-column:nth-child(3) .kanban-column-header h3 { color: #EA6102; }   /* Alteração Line */
.equipe-board .kanban-column:nth-child(4) .kanban-column-header h3 { color: #3b82f6; }   /* Aprovação Cliente */
.equipe-board .kanban-column:nth-child(5) .kanban-column-header h3 { color: #f97316; }   /* Alteração do Cliente */
.equipe-board .kanban-column:nth-child(6) .kanban-column-header h3 { color: #10b981; }   /* Aprovado */

.kanban-delegate-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.kanban-delegate-badge.designer {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.kanban-delegate-badge.editor {
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.km-delegate-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--white-faint);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.km-delegate-row label {
  font-size: 12px;
  font-weight: 700;
  color: var(--white-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  margin: 0;
}

.km-delegate-select {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  cursor: pointer;
  appearance: auto;
}

/* ==========================================
   MESSAGE ACTIONS (hover: lápis, seta, lixeira)
   ========================================== */

.chat-bubble-wrap {
  position: static;
  display: block;
  width: 100%;
}

/* Ações no canto superior direito do card — sem mini card próprio */
.chat-msg-actions {
  position: absolute;
  top: 8px;
  right: 10px;
  display: flex;
  gap: 4px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
  z-index: 30;
}

.chat-message:hover .chat-msg-actions {
  opacity: 1;
  visibility: visible;
}

.chat-action-btn {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
  padding: 0;
}

.chat-action-btn:hover {
  background: var(--white-faint);
  color: var(--white);
  border-color: rgba(255,255,255,0.15);
}

.chat-action-btn.btn-delete-action:hover {
  background: rgba(238, 9, 4, 0.1);
  color: #EE0904;
  border-color: rgba(238, 9, 4, 0.3);
}

.chat-action-btn.btn-forward-action:hover {
  background: rgba(0, 124, 252, 0.1);
  color: var(--blue-bright);
  border-color: rgba(0, 124, 252, 0.3);
}

/* --- Forward dropdown --- */
.forward-dropdown {
  position: fixed;
  background: #1c1c1c;
  border: 1px solid #2e2e2e;
  border-radius: 10px;
  padding: 6px;
  z-index: 9999;
  min-width: 140px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
  display: none;
}

.forward-dropdown.visible { display: block; }

.forward-dropdown-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--white-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px 6px;
}

.forward-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  transition: background 0.15s;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: var(--font);
}

.forward-dropdown-item:hover { background: rgba(255,255,255,0.07); }

.forward-dropdown-item .fwd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fwd-dot.designer { background: #a78bfa; }
.fwd-dot.editor   { background: #fb923c; }

/* --- Edit message inline --- */
.chat-edit-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.chat-edit-textarea {
  background: var(--black-soft);
  border: 1px solid var(--blue-bright);
  border-radius: 8px;
  color: var(--white);
  font-size: 14px;
  font-family: var(--font);
  padding: 8px 10px;
  resize: none;
  outline: none;
  line-height: 1.5;
  width: 100%;
}

.chat-edit-actions {
  display: flex;
  gap: 6px;
}

.chat-edit-save {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  background: var(--blue-deep);
  color: white;
  border: none;
  font-family: var(--font);
  transition: opacity 0.2s;
}

.chat-edit-save:hover { opacity: 0.85; }

.chat-edit-cancel {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  color: var(--white-muted);
  border: 1px solid var(--black-border);
  font-family: var(--font);
  transition: background 0.2s;
}

.chat-edit-cancel:hover { background: var(--white-faint); }

/* Equipe board empty state */
#equipe-board-empty,
#equipe-board-select-client {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  gap: 16px;
  min-height: 300px;
}

/* Equipe card: show client name */
.equipe-card-client {
  font-size: 11px;
  color: var(--white-muted);
  font-weight: 500;
  margin-top: 2px;
}


@media (max-width: 768px) {
  .km-desc-expand-body {
    padding: 24px 20px 40px;
  }
}
