/* ==========================================================================
   KINESIS COMUNICAÇÃO • SOCIAL MEDIA HUB
   Estética Visual Oficial: Dual Kanban (Versão com Efeitos - Apple Luxury UI)
   Regra Global: Zero Emojis (Apenas Vetores SVG de Alta Fidelidade)
   Design: Cantos Vivos (0px), Vidro Fosco Líquido e Living Nebula
   ========================================================================== */

:root {
  /* Apple / Supaste Luxury System Palette (Kinesis Petroleum & Cyan) */
  --bg-canvas: #07142e;
  --bg-glass: rgba(14, 16, 25, 0.82);
  --bg-glass-elevated: rgba(22, 25, 38, 0.90);
  --bg-subtle: rgba(255, 255, 255, 0.08);
  --bg-subtle-hover: rgba(255, 255, 255, 0.14);
  --bg-segmented: rgba(0, 0, 0, 0.38);
  --bg-segmented-active: #00516C;

  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-tertiary: rgba(255, 255, 255, 0.50);
  --text-on-accent: #FFFFFF;

  --border-hairline: rgba(255, 255, 255, 0.12);
  --border-glass: rgba(255, 255, 255, 0.15);
  --shadow-card: 0 16px 40px -8px rgba(0, 0, 0, 0.42), 0 2px 8px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  --shadow-card-hover: 0 22px 50px -10px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --shadow-flyover-3d: 0 36px 72px -12px rgba(0, 0, 0, 0.65), 0 18px 36px -6px rgba(0, 0, 0, 0.45), 0 0 0 1.5px rgba(255, 255, 255, 0.20);

  /* Kinesis Brand Identifiers */
  --kinesis-primary: #00516C;
  --kinesis-hover: #006D92;
  --kinesis-accent: #00A6D6;

  /* Semantic System Colors */
  --apple-blue: #0A84FF;
  --apple-blue-soft: rgba(10, 132, 255, 0.18);
  --apple-green: #30D158;
  --apple-green-soft: rgba(48, 209, 88, 0.18);
  --apple-orange: #FF9F0A;
  --apple-orange-soft: rgba(255, 159, 10, 0.18);
  --apple-red: #FF453A;
  --apple-red-soft: rgba(255, 69, 58, 0.18);
  --apple-indigo: #5E5CE6;
  --apple-purple: #BF5AF2;

  /* Dual Kanban Signature: Sharp Luxury Edges (0px) */
  --radius-xl: 0px;
  --radius-lg: 0px;
  --radius-md: 0px;
  --radius-sm: 0px;
  --radius-pill: 0px;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
}

html[data-theme="dark"] {
  --bg-canvas: #090A0F;
  --bg-glass: rgba(11, 13, 20, 0.88);
  --bg-glass-elevated: rgba(18, 20, 32, 0.94);
  --bg-subtle: rgba(255, 255, 255, 0.07);
  --bg-subtle-hover: rgba(255, 255, 255, 0.12);
  --bg-segmented: rgba(0, 0, 0, 0.50);
  --bg-segmented-active: #00516C;

  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.70);
  --text-tertiary: rgba(255, 255, 255, 0.45);

  --border-hairline: rgba(255, 255, 255, 0.10);
  --border-glass: rgba(255, 255, 255, 0.12);
  --shadow-card: 0 18px 44px -8px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --shadow-card-hover: 0 24px 54px -10px rgba(0, 0, 0, 0.70), 0 4px 14px rgba(0, 0, 0, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

html[data-theme="light"] {
  --bg-canvas: #F0F4F8;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-glass-elevated: rgba(255, 255, 255, 0.96);
  --bg-subtle: rgba(0, 81, 108, 0.06);
  --bg-subtle-hover: rgba(0, 81, 108, 0.10);
  --bg-segmented: rgba(0, 0, 0, 0.06);
  --bg-segmented-active: #00516C;

  --text-primary: #0A192F;
  --text-secondary: #334E68;
  --text-tertiary: #627D98;
  --text-on-accent: #FFFFFF;

  --border-hairline: rgba(0, 81, 108, 0.12);
  --border-glass: rgba(0, 81, 108, 0.18);
  --shadow-card: 0 10px 28px -6px rgba(0, 81, 108, 0.10), 0 2px 6px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow-card-hover: 0 18px 38px -8px rgba(0, 81, 108, 0.18), 0 4px 10px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0px !important; /* Authentic Dual Kanban Sharp Design */
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(ellipse 140% 105% at 50% -10%, #0d234d 0%, #081736 35%, #050e24 70%, #020612 100%) no-repeat fixed;
  background-size: cover;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s var(--ease-spring), color 0.3s var(--ease-spring);
}

html[data-theme="light"] body {
  background: radial-gradient(ellipse 140% 105% at 50% -10%, #E2EDF8 0%, #D3E4F4 35%, #C2D9EE 70%, #B2CEE8 100%) no-repeat fixed;
  color: var(--text-primary);
}

/* ============================================================================
   AMBIENT LIVING NEBULA & FRACTAL FOG (DUAL KANBAN AUTHENTIC BG)
   ============================================================================ */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient-blob {
  position: absolute;
  filter: blur(85px);
  will-change: transform, opacity;
}

html[data-theme="dark"] .ambient-blob { opacity: 0.38; }
html[data-theme="light"] .ambient-blob { opacity: 0.22; }

.blob-blue {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(0, 166, 214, 0.48) 0%, rgba(0, 81, 108, 0.15) 45%, transparent 70%);
  top: -120px;
  left: 5%;
  animation: floatFog1 16s ease-in-out infinite alternate;
}

.blob-indigo {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(0, 81, 108, 0.52) 0%, rgba(94, 92, 230, 0.15) 50%, transparent 70%);
  top: 22%;
  right: -100px;
  animation: floatFog2 19s ease-in-out infinite alternate;
}

.blob-mint {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(48, 209, 88, 0.35) 0%, rgba(0, 166, 214, 0.10) 50%, transparent 70%);
  bottom: -80px;
  left: 20%;
  animation: floatFog3 17s ease-in-out infinite alternate;
}

.blob-amber {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255, 159, 10, 0.30) 0%, rgba(0, 81, 108, 0.08) 50%, transparent 70%);
  top: 52%;
  left: 0%;
  animation: floatFog4 21s ease-in-out infinite alternate;
}

@keyframes floatFog1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(60px, 40px, 0) scale(1.1); }
}
@keyframes floatFog2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-50px, -60px, 0) scale(1.08); }
}
@keyframes floatFog3 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(40px, -50px, 0) scale(1.12); }
}
@keyframes floatFog4 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-40px, 50px, 0) scale(1.06); }
}

/* ============================================================================
   GLASS PANEL & SHIMMER
   ============================================================================ */
.glass-panel {
  position: relative;
  overflow: hidden;
  background: var(--bg-glass);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-card);
}

.glass-panel::after {
  content: "";
  position: absolute;
  inset: -60%;
  width: 220%;
  height: 220%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 520px 360px at 50% 50%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 55%, transparent 75%),
    linear-gradient(125deg, transparent 38%, rgba(255, 255, 255, 0.06) 49%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0.03) 52%, transparent 62%);
  mix-blend-mode: overlay;
  opacity: 0.65;
  will-change: transform, opacity;
  animation: glassLightSweep 14s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes glassLightSweep {
  0% { transform: translate3d(-5%, -5%, 0) rotate(0deg); }
  100% { transform: translate3d(5%, 5%, 0) rotate(3deg); }
}

/* ============================================================================
   APP SHELL & TOP NAVIGATION BAR
   ============================================================================ */
.app-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border: 1.5px solid var(--border-hairline);
  position: relative;
  z-index: 10;
  gap: 16px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-separator {
  width: 1px;
  height: 28px;
  background: var(--border-hairline);
}

.brand-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-weight: 600;
}

.role-pill {
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border: 1px solid currentColor;
}
.role-admin {
  color: var(--kinesis-accent);
  background: rgba(0, 166, 214, 0.12);
}
.role-client {
  color: var(--apple-purple);
  background: rgba(191, 90, 242, 0.12);
}

/* Topbar Actions */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: var(--bg-subtle-hover);
  color: var(--text-primary);
  border-color: var(--border-glass);
}

.btn-primary-action {
  height: 36px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--kinesis-primary) 0%, var(--kinesis-hover) 100%);
  border: 1px solid rgba(0, 166, 214, 0.4);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.btn-primary-action:hover {
  background: var(--kinesis-accent);
  border-color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 166, 214, 0.35);
}

/* ============================================================================
   STATUS TABS BAR (SEGMENTED CONTROL AUTHENTIC DUAL KANBAN)
   ============================================================================ */
.status-strip-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border: 1px solid var(--border-hairline);
  gap: 12px;
  flex-wrap: wrap;
}

.segmented-control {
  display: flex;
  align-items: center;
  background: var(--bg-segmented);
  border: 1px solid var(--border-hairline);
  padding: 3px;
  gap: 2px;
}

.seg-btn {
  background: none;
  border: none;
  padding: 6px 14px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.seg-btn:hover {
  color: var(--text-primary);
}

.seg-btn.active {
  background: var(--kinesis-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 166, 214, 0.5);
}

.seg-count {
  font-size: 10px;
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.15);
  font-family: var(--font-mono);
}

/* Quick Search & Filter Controls */
.filter-controls-subrow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  padding: 0 10px;
  height: 34px;
  gap: 8px;
  width: 280px;
}

.quick-search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 12px;
  width: 100%;
}

.quick-search-box input::placeholder {
  color: var(--text-tertiary);
}

.filter-select {
  height: 34px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  padding: 0 10px;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}

.filter-select option {
  background: #0d1e3d;
  color: #FFFFFF;
}

html[data-theme="light"] .filter-select option {
  background: #FFFFFF;
  color: #0A192F;
}

/* ============================================================================
   MANAGEMENT CARDS GRID (SPACIOUS LUXURY APPLE STACK)
   ============================================================================ */
.cards-stream-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 16px;
  width: 100%;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .cards-stream-container {
    grid-template-columns: 1fr;
  }
}

.gestao-card {
  position: relative;
  background: var(--bg-glass);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1.5px solid var(--border-hairline);
  box-shadow: var(--shadow-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s var(--ease-spring), border-color 0.22s ease;
  overflow: hidden;
}

.gestao-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0, 166, 214, 0.4);
}

.card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.client-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--kinesis-accent);
  background: rgba(0, 166, 214, 0.12);
  border: 1px solid rgba(0, 166, 214, 0.3);
  padding: 3px 8px;
}

.card-tags-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
}

.network-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.network-pill.ig { color: #FF2D55; border-color: rgba(255, 45, 85, 0.3); }
.network-pill.tt { color: #64D2FF; border-color: rgba(100, 210, 255, 0.3); }
.network-pill.li { color: #0A84FF; border-color: rgba(10, 132, 255, 0.3); }
.network-pill.yt { color: #FF453A; border-color: rgba(255, 69, 58, 0.3); }

.format-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  color: var(--text-tertiary);
}

.status-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border: 1px solid currentColor;
}
.status-backlog { color: var(--text-tertiary); }
.status-roteiro { color: var(--apple-blue); }
.status-design { color: var(--apple-orange); }
.status-aprovacao { color: var(--apple-purple); }
.status-agendado { color: #64D2FF; }
.status-publicado { color: var(--apple-green); }

.card-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
}

/* Embed & Media Box */
.card-embed-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border: 1px solid var(--border-hairline);
  overflow: hidden;
}

.card-embed-player iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Dedicated Google Drive Button */
.drive-action-btn {
  width: 100%;
  height: 38px;
  background: rgba(66, 133, 244, 0.12);
  border: 1.5px solid rgba(66, 133, 244, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: #8AB4F8;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drive-action-btn:hover {
  background: rgba(66, 133, 244, 0.25);
  border-color: #8AB4F8;
  color: #FFFFFF;
}

.drive-btn-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

/* Caption Block */
.caption-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.caption-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
}

.caption-content {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 120px;
  overflow-y: auto;
}

/* DEDICATED BIG COPY CAPTION BUTTON */
.btn-copy-caption {
  width: 100%;
  height: 40px;
  background: linear-gradient(135deg, rgba(0, 81, 108, 0.4) 0%, rgba(0, 166, 214, 0.3) 100%);
  border: 1.5px solid rgba(0, 166, 214, 0.45);
  color: #E0F2FE;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.btn-copy-caption:hover {
  background: linear-gradient(135deg, var(--kinesis-primary) 0%, var(--kinesis-hover) 100%);
  border-color: var(--kinesis-accent);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 166, 214, 0.35);
}

.btn-copy-caption.is-copied {
  background: rgba(48, 209, 88, 0.25) !important;
  border-color: #30D158 !important;
  color: #30D158 !important;
  box-shadow: 0 0 16px rgba(48, 209, 88, 0.4) !important;
}

/* Client Feedback Box */
.feedback-alert {
  background: rgba(255, 159, 10, 0.12);
  border: 1.5px solid rgba(255, 159, 10, 0.4);
  padding: 10px 12px;
  color: #FED7AA;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feedback-alert-title {
  font-weight: 700;
  color: #FF9F0A;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  font-size: 10.5px;
}

/* Card Action Footer */
.card-action-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid var(--border-hairline);
  gap: 10px;
}

.schedule-badge {
  font-size: 11px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
}

/* Client Action Buttons (Aprovar / Ajustar) */
.client-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.btn-approve {
  height: 34px;
  background: rgba(48, 209, 88, 0.16);
  border: 1px solid rgba(48, 209, 88, 0.5);
  color: #4ADE80;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-approve:hover {
  background: rgba(48, 209, 88, 0.32);
  border-color: #30D158;
  color: #FFFFFF;
}

.btn-adjust {
  height: 34px;
  background: rgba(255, 159, 10, 0.15);
  border: 1px solid rgba(255, 159, 10, 0.45);
  color: #FDBA74;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-adjust:hover {
  background: rgba(255, 159, 10, 0.30);
  border-color: #FF9F0A;
  color: #FFFFFF;
}

/* ============================================================================
   AUTH GATE OVERLAY (FROSTED GLASS LOGIN)
   ============================================================================ */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(4, 11, 24, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-overlay.hidden {
  display: none !important;
}

.auth-box {
  width: 100%;
  max-width: 420px;
  background: var(--bg-glass-elevated);
  border: 1.5px solid var(--border-glass);
  box-shadow: var(--shadow-flyover-3d);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.auth-header .brand-logo-img {
  height: 48px;
  margin-bottom: 6px;
}

.auth-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #FFFFFF;
}

.auth-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

.auth-error-box {
  background: rgba(255, 69, 58, 0.16);
  border: 1px solid rgba(255, 69, 58, 0.4);
  color: #FF453A;
  padding: 10px 14px;
  font-size: 12px;
  display: none;
  align-items: center;
  gap: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
}

.auth-input,
.input-base,
.textarea-base {
  width: 100%;
  height: 40px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  padding: 0 12px;
  font-size: 13px;
  outline: none;
  font-family: var(--font-sans);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.textarea-base {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
}

.auth-input:focus,
.input-base:focus,
.textarea-base:focus {
  border-color: var(--kinesis-accent);
  background: var(--bg-subtle-hover);
}

.auth-btn-submit {
  width: 100%;
  height: 42px;
  background: linear-gradient(135deg, var(--kinesis-primary) 0%, var(--kinesis-hover) 100%);
  border: 1px solid rgba(0, 166, 214, 0.4);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s var(--ease-spring);
}

.auth-btn-submit:hover {
  background: var(--kinesis-accent);
  border-color: #FFFFFF;
}

/* ============================================================================
   MODALS (MODAL OVERLAY & WINDOWS)
   ============================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.hidden { display: none !important; }

.modal-window {
  width: 100%;
  background: var(--bg-glass-elevated);
  border: 1.5px solid var(--border-glass);
  box-shadow: var(--shadow-flyover-3d);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}

.modal-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.btn-secondary {
  height: 36px;
  padding: 0 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--bg-subtle-hover);
  color: var(--text-primary);
}

/* Toast mount */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--bg-glass-elevated);
  border: 1px solid var(--border-glass);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 12px 18px;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
