/* ============================================================
   Velora – Flask UI  ·  style.css
   Design system: Inter font · #00B4A6 teal → #00C853 emerald
   · white surfaces · layered shadows · enterprise SaaS polish
   ============================================================ */

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

:root {
  --teal:        #00B4A6;
  --teal-dark:   #009688;
  --emerald:     #00C853;
  --emerald-dark:#00A544;
  --red:        #cc3344;
  --orange:     #f97316;
  --text:       #0f172a;
  --muted:      #64748b;
  --line:       #e2e8f0;
  --soft:       #f7f9fc;
  --white:      #ffffff;
  --radius:     16px;
  --shadow:     0 20px 50px rgba(15,23,42,.08);
  --shadow-sm:  0 4px 16px rgba(15,23,42,.05);
  --shadow-md:  0 10px 28px rgba(15,23,42,.09);
  --shadow-hover: 0 22px 46px rgba(15,23,42,.13);
  --brand-gradient: linear-gradient(90deg, var(--teal), var(--emerald));
  --topbar-h:   64px;
  --sidebar-w:  260px;
  --transition: .18s ease;
  --transition-md: .22s cubic-bezier(.22,.68,0,1.05);
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at top left,  rgba(0,180,166,.09), transparent 28rem),
    radial-gradient(circle at top right, rgba(0,200,83,.07),   transparent 26rem),
    #f2f6f5;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ── Typography ───────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { letter-spacing: -.035em; line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; }
h2 { font-size: 1.55rem; font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 800; }
h4 { font-size: 1rem;    font-weight: 700; }
p  { line-height: 1.65; color: var(--muted); }

code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: .85em;
  background: #E6FBF9;
  color: var(--teal);
  padding: .1em .35em;
  border-radius: 5px;
}

/* ── Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c8d5e8; border-radius: 99px; }

/* ═══════════════════════════════════════════════════════
   LOADER / SPLASH
════════════════════════════════════════════════════════ */
.ga-loader {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 42%, rgba(0,200,83,.13), transparent 26rem), #fff;
  transition: opacity .4s ease, visibility .4s ease;
}
.ga-loader--gone { opacity: 0; visibility: hidden; pointer-events: none; }

.ga-loader-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 1rem;
}
.ga-loader-inner img {
  width: min(360px, 78vw); height: auto;
  filter: drop-shadow(0 24px 40px rgba(15,23,42,.10));
  animation: gaLogoSpin 1.45s cubic-bezier(.2,.75,.25,1.05) both;
}
@keyframes gaLogoSpin {
  0%   { opacity:0; transform: perspective(900px) rotateY(-180deg) scale(.82); }
  58%  { opacity:1; transform: perspective(900px) rotateY(24deg) scale(1.04); }
  100% { opacity:1; transform: perspective(900px) rotateY(0deg)  scale(1); }
}
.ga-loader-wordmark {
  font-size: 2.8rem; font-weight: 900; letter-spacing: -.06em;
  color: var(--teal);
  animation: gaLogoSpin 1.45s cubic-bezier(.2,.75,.25,1.05) both;
}
.ga-loader-caption {
  font-size: 1rem; font-weight: 900; letter-spacing: .18em;
  text-transform: uppercase; color: var(--teal);
  opacity: 0;
  animation: gaTextRise .7s ease .9s both;
}
@keyframes gaTextRise {
  from { opacity:0; transform: translateY(12px); }
  to   { opacity:1; transform: translateY(0); }
}
.ga-loader-bar {
  width: 180px; height: 4px; border-radius: 99px;
  background: #e2e8f0; overflow: hidden;
  opacity: 0; animation: gaTextRise .5s ease 1.1s both;
}
.ga-loader-bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--teal), var(--emerald));
  border-radius: 99px;
  animation: gaBarFill 2.2s ease 1.15s both;
}
@keyframes gaBarFill { to { width: 100%; } }

/* ═══════════════════════════════════════════════════════
   LOGIN PAGE  –  split-screen layout
════════════════════════════════════════════════════════ */

/* Wrapper: full-bleed background image, form floats in one corner */
.vl-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  padding: 3rem;
  position: relative;
  background-color: #0a1f1a; /* fallback while the image loads / if missing */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── Login card: minimal box in the corner, not full screen ── */
.vl-login-left {
  flex: 0 0 auto;
  width: 400px;
  max-width: 100%;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  z-index: 2;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(7,18,40,.28);
  overflow-y: auto;
}

.vl-login-inner {
  width: 100%;
  max-width: 400px;
  padding: 2.75rem 2.25rem;
}

/* Brand */
.vl-login-brand { margin-bottom: 2.2rem; }
.vl-login-logo  { height: 38px; width: auto; }
.vl-login-wordmark {
  font-size: 1.7rem; font-weight: 900;
  color: var(--teal); letter-spacing: -.05em;
}

/* Headline + tagline */
.vl-login-headline {
  font-size: 2rem; font-weight: 900;
  color: var(--text); letter-spacing: -.04em;
  margin-bottom: .45rem; line-height: 1.15;
}
.vl-login-tagline {
  font-size: .92rem; color: var(--muted);
  line-height: 1.55; margin-bottom: 1.8rem;
  min-height: 2.8em;          /* keeps layout stable across message lengths */
}

/* ── Social buttons ── */
.vl-social-btns {
  display: flex; flex-direction: column; gap: .65rem;
  margin-bottom: 1.25rem;
}
.vl-social-btn {
  display: flex; align-items: center; justify-content: center;
  gap: .65rem; width: 100%;
  padding: .72rem 1.2rem;
  border-radius: 12px;
  font-weight: 700; font-size: .9rem;
  cursor: pointer; text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
  border: 1.5px solid var(--line);
}
.vl-social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15,23,42,.10);
  text-decoration: none;
}

/* Google */
.vl-social-google {
  background: var(--white); color: var(--text);
}
.vl-social-google:hover { background: #fafafa; color: var(--text); }

/* Microsoft */
.vl-social-microsoft {
  background: var(--white); color: var(--text);
}
.vl-social-microsoft:hover { background: #fafafa; color: var(--text); }

/* LinkedIn */
.vl-social-linkedin {
  background: #0a66c2; color: #fff; border-color: #0a66c2;
}
.vl-social-linkedin:hover { background: #0952a0; color: #fff; border-color: #0952a0; }

/* ── Divider ── */
.vl-divider {
  display: flex; align-items: center; gap: .75rem;
  color: #94a3b8; font-size: .8rem;
  margin: 1.1rem 0 1.25rem;
}
.vl-divider::before, .vl-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

/* ── Form ── */
.vl-form { margin-bottom: .25rem; }

/* Password field with show/hide toggle */
.vl-pw-wrap { position: relative; }
.vl-pw-wrap .ga-input { padding-right: 2.6rem; }
.vl-pw-toggle {
  position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 0; display: flex; align-items: center;
  transition: color var(--transition);
}
.vl-pw-toggle:hover { color: var(--teal); }

/* Sign in button — slightly taller than default */
.vl-signin-btn {
  margin-top: .5rem;
  padding: .85rem 1.3rem;
  font-size: .95rem;
  letter-spacing: .01em;
}

/* Alert */
.ga-alert {
  padding: .75rem 1rem; border-radius: 12px;
  font-size: .88rem; font-weight: 600; margin-bottom: 1rem;
}
.ga-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: var(--red); }
.ga-alert-ok    { background: #E9FBF0; border: 1px solid #A0EFC4; color: var(--emerald); }

/* Security note */
.ga-login-security {
  padding: .8rem 1rem;
  background: #F2FBFA; border: 1px solid #B3EDE6;
  border-radius: 12px; font-size: .8rem; color: var(--muted);
  line-height: 1.5; margin-top: 1.3rem;
}
.ga-login-security strong { color: var(--teal); }
.ga-login-footer {
  text-align: center; color: #94a3b8;
  font-size: .76rem; margin-top: 1.1rem;
}

/* ── Responsive: card fills width with margin on narrow screens ── */
@media (max-width: 900px) {
  .vl-login-wrap { padding: 1.25rem; justify-content: center; }
  .vl-login-left { width: 100%; max-width: 400px; }
}
@media (max-width: 480px) {
  .vl-login-inner { padding: 2.2rem 1.5rem; }
}

/* ── Slide-in animation for the left panel ── */
@keyframes vl-slide-in {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
.vl-login-inner {
  animation: vl-slide-in .42s cubic-bezier(.22,.68,0,1.2) both;
}

/* ── Keep old ga-field / ga-input / ga-btn rules intact ── */

/* Form field wrapper */
.ga-field { margin-bottom: 1.1rem; }
.ga-field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
}

/* Text / password / number inputs */
.ga-input {
  width: 100%;
  padding: .75rem .9rem;
  font-family: inherit;
  font-size: .92rem;
  color: var(--text);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.ga-input::placeholder { color: #a3b0c2; }
.ga-input:hover { border-color: #cbd5e1; }
.ga-input:focus {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0,180,166,.12);
}

.ga-select {
  width: 100%;
  padding: .65rem .85rem;
  font-family: inherit;
  font-size: .88rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.ga-select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,180,166,.12); }

/* Buttons */
.ga-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.1rem;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: -.01em;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.ga-btn:active { transform: translateY(1px); }
.ga-btn-primary:hover, .ga-btn-green:hover, .ga-btn-orange:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15,23,42,.16);
}

.ga-btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0,180,166,.25);
}
.ga-btn-primary:hover { background: var(--teal-dark); color: var(--white); }

.ga-btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
.ga-btn-ghost:hover { background: var(--soft); color: var(--text); border-color: #cbd5e1; }

.ga-btn-secondary {
  background: var(--white);
  color: var(--text);
  border-color: var(--line);
}
.ga-btn-secondary:hover { background: var(--soft); border-color: #cbd5e1; }

.ga-btn-green {
  background: var(--emerald);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0,200,83,.25);
}
.ga-btn-green:hover { background: var(--emerald-dark); color: var(--white); }

.ga-btn-orange {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(249,115,22,.25);
}
.ga-btn-orange:hover { background: #e2650e; color: var(--white); }

.ga-btn-full { width: 100%; }
.ga-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
/* (they live in the main stylesheet already) */

/* ── Legacy single-card classes no longer needed but kept as no-ops ── */
.ga-login-page  {}
.ga-login-card  {}


/* ═══════════════════════════════════════════════════════
   TOP BAR
════════════════════════════════════════════════════════ */
.ga-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--topbar-h);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(226,232,240,.85);
  border-top: 2px solid transparent;
  border-image: var(--brand-gradient) 1;
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 18px rgba(15,23,42,.055);
  gap: 1rem;
}
.ga-topbar-left  { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.ga-topbar-right { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

.ga-topbar-logo { height: 32px; width: auto; }
.ga-topbar-brand { font-size: 1.2rem; font-weight: 900; color: var(--text); letter-spacing: -.04em; }

/* Hamburger */
.ga-hamburger {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--white);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 5px; cursor: pointer; padding: 0;
  transition: border-color var(--transition);
}
.ga-hamburger:hover { border-color: rgba(0,180,166,.3); }
.ga-hamburger span {
  display: block; width: 16px; height: 2px;
  background: var(--text); border-radius: 2px;
}

/* Page tabs in topbar */
.ga-topbar-pages {
  display: flex; align-items: center; gap: .15rem;
  overflow-x: auto; scrollbar-width: none; flex: 1;
  padding: 0 .5rem;
}
.ga-topbar-pages::-webkit-scrollbar { display: none; }
.ga-page-tab {
  padding: .38rem .72rem; border: 0; background: transparent;
  border-radius: 8px; font-size: .82rem; font-weight: 600;
  color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.ga-page-tab:hover { background: #f1f5f9; color: var(--text); }
.ga-page-tab.active {
  background: #E6FBF9; color: var(--teal); font-weight: 800;
}

/* Bell button */
.ga-bell-btn {
  position: relative; width: 38px; height: 38px;
  border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--white); cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--transition);
}
.ga-bell-btn:hover { border-color: rgba(0,180,166,.3); }
.ga-bell-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; border-radius: 99px;
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  color: #fff; font-size: .65rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* Avatar */
.ga-avatar-wrap {
  position: relative; display: flex; align-items: center; gap: .55rem;
  cursor: pointer; padding: .3rem .6rem; border-radius: 12px;
  transition: background var(--transition);
}
.ga-avatar-wrap:hover { background: #f8fafc; }
.ga-avatar-circle {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  color: #fff; font-size: .9rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ga-avatar-info { display: flex; flex-direction: column; line-height: 1.2; }
.ga-avatar-name { font-size: .86rem; font-weight: 800; color: var(--text); }
.ga-avatar-role { font-size: .72rem; color: var(--muted); }
.ga-avatar-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 150px; background: var(--white);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15,23,42,.12);
  padding: .4rem; z-index: 999;
  display: none;
}
.ga-avatar-dropdown.open { display: block; }
.ga-dropdown-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem .75rem; border-radius: 10px;
  font-size: .88rem; font-weight: 600; color: var(--text);
}
.ga-dropdown-item:hover { background: #f1f5f9; text-decoration: none; color: var(--text); }

/* ═══════════════════════════════════════════════════════
   NOTIFICATION PANEL (floating)
════════════════════════════════════════════════════════ */
.ga-notif-panel {
  position: fixed; top: calc(var(--topbar-h) + 10px); right: 20px; z-index: 890;
  width: min(400px, calc(100vw - 32px));
  max-height: min(70vh, 580px); overflow-y: auto;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(226,232,240,.96);
  border-radius: 16px;
  box-shadow: 0 26px 70px rgba(15,23,42,.14);
  backdrop-filter: blur(18px);
  padding: 1.1rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px) scale(.98);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}
.ga-notif-panel.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0) scale(1);
}
.ga-panel-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: .85rem;
}
.ga-panel-header h3 { font-size: 1rem; font-weight: 900; }
.ga-panel-header p  { font-size: .84rem; color: var(--muted); margin-top: .15rem; }
.ga-panel-close {
  width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: #f1f5f9; cursor: pointer; font-size: 1rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ga-notif-row {
  display: flex; gap: .7rem; padding: .65rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.ga-notif-row:last-child { border-bottom: 0; }
.ga-notif-level {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .18rem .55rem; border-radius: 99px;
  font-size: .7rem; font-weight: 900; text-transform: uppercase; flex-shrink: 0;
}
.ga-notif-success { background: #E3FCEF; color: var(--emerald); }
.ga-notif-error   { background: #fef2f2; color: var(--red); }
.ga-notif-warning { background: #fff7ed; color: var(--orange); }
.ga-notif-info, .ga-notif-model, .ga-notif-security { background: #E6FBF9; color: var(--teal); }
.ga-notif-body p  { font-size: .86rem; color: var(--text); margin-top: .1rem; }
.ga-notif-time    { font-size: .74rem; color: var(--muted); }

/* ═══════════════════════════════════════════════════════
   TOAST POPUPS (auto security notice / admin broadcast)
════════════════════════════════════════════════════════ */
.ga-toast-stack {
  position: fixed; top: calc(var(--topbar-h) + 14px); right: 20px; z-index: 1500;
  display: flex; flex-direction: column; gap: .6rem;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}
.ga-toast {
  pointer-events: auto;
  display: flex; gap: .65rem; align-items: flex-start;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(226,232,240,.96);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15,23,42,.16);
  backdrop-filter: blur(18px);
  padding: .85rem .95rem;
  opacity: 0; transform: translateX(24px);
  transition: opacity .25s ease, transform .25s ease;
}
.ga-toast.show { opacity: 1; transform: translateX(0); }
.ga-toast-icon {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #E6FBF9; color: var(--teal);
}
.ga-toast-icon .ga-icon { width: 18px; height: 18px; }
.ga-toast-icon.ga-toast-broadcast { background: #fff7ed; color: var(--orange); }
.ga-toast-body { flex: 1; min-width: 0; }
.ga-toast-title { font-size: .84rem; font-weight: 900; color: var(--text); }
.ga-toast-msg { font-size: .82rem; color: var(--muted); margin-top: .15rem; line-height: 1.4; word-break: break-word; }
.ga-toast-close {
  width: 22px; height: 22px; border-radius: 50%; border: 0; flex-shrink: 0;
  background: #f1f5f9; cursor: pointer; font-size: .85rem; font-weight: 900; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.ga-toast-close:hover { background: #e2e8f0; }

/* Admin broadcast composer status pill */
.ga-broadcast-live {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 700; color: var(--orange);
  background: #fff7ed; border-radius: 99px; padding: .3rem .7rem; margin-top: .5rem;
}

/* ═══════════════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════════════════ */
.ga-sidebar {
  position: fixed; top: var(--topbar-h); left: 0; bottom: 0; z-index: 800;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--white) 0%, #F3FBFA 100%);
  border-right: 1px solid rgba(226,232,240,.82);
  box-shadow: 18px 0 42px rgba(15,23,42,.04);
  transform: translateX(-100%);
  transition: transform var(--transition);
  overflow-y: auto;
}
.ga-sidebar.open { transform: translateX(0); }
.ga-sidebar-inner { padding: 1.25rem 1rem 2rem; display: flex; flex-direction: column; gap: 1.2rem; }
.ga-sidebar-section { display: flex; flex-direction: column; gap: .3rem; }
.ga-sidebar-section h4 {
  font-size: .73rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: .08em; color: #8091ad; margin-bottom: .4rem;
}
.ga-sidebar-link {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .75rem; border-radius: 12px; border: 1px solid transparent;
  background: transparent; color: var(--text);
  font-size: .88rem; font-weight: 600; cursor: pointer; text-align: left;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.ga-sidebar-link:hover { background: #EFFBFA; border-color: #B3EDE6; transform: translateX(2px); }
.ga-sidebar-link.active {
  position: relative;
  background: #E6FBF9; border-color: #99E6DE; color: var(--teal); font-weight: 800;
}
.ga-sidebar-link.active::before {
  content: ''; position: absolute; left: -1rem; top: 20%; bottom: 20%; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--brand-gradient);
}
.ga-sidebar-icon { font-size: 1rem; }
.ga-sidebar-divider { height: 1px; background: var(--line); }

/* Overlay (mobile) */
.ga-overlay {
  position: fixed; inset: 0; z-index: 799;
  background: rgba(15,23,42,.3); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition);
}
.ga-overlay.show { opacity: 1; visibility: visible; }

/* ═══════════════════════════════════════════════════════
   MAIN CONTENT
════════════════════════════════════════════════════════ */
.ga-main {
  margin-top: var(--topbar-h);
  padding: 2rem 2rem 4rem;
  max-width: 1480px; margin-left: auto; margin-right: auto;
  animation: gaPageFade .36s cubic-bezier(.22,.68,0,1.2) both;
}
@keyframes gaPageFade {
  from { opacity:0; transform: translateY(14px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ── Upload hero ─────────────────────────────────────── */
.ga-upload-hero {
  display: flex; align-items: center; justify-content: space-between;
  gap: 3rem; padding: 3rem 0 2rem; min-height: 420px;
}
.ga-upload-hero-copy { flex: 1; }
.ga-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .28rem .75rem; border-radius: 99px;
  background: #E6FBF9; border: 1px solid #99E6DE;
  color: var(--teal); font-size: .78rem; font-weight: 900;
  letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1rem;
}
.ga-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 950;
  line-height: 1.05; letter-spacing: -.04em; color: var(--text);
  margin-bottom: .65rem;
}
.ga-hero-title span { color: var(--teal); }
.ga-hero-desc { font-size: 1rem; line-height: 1.7; max-width: 500px; margin-bottom: 2rem; }

.ga-upload-card {
  flex-shrink: 0; width: min(380px, 90vw);
  padding: 2.2rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow);
  text-align: center;
}
.ga-upload-icon {
  font-size: 2.4rem; margin-bottom: 1rem;
  background: #E6FBF9; width: 64px; height: 64px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.ga-upload-card h3 { font-size: 1.1rem; margin-bottom: .5rem; color: var(--text); }
.ga-upload-card p  { font-size: .84rem; color: var(--muted); line-height: 1.5; margin-bottom: 1.2rem; }

.ga-file-label {
  display: flex; align-items: center; justify-content: center;
  padding: .75rem 1rem; border: 1.5px dashed #b8c7dc; border-radius: 14px;
  background: var(--soft); cursor: pointer; margin-bottom: .85rem;
  font-size: .88rem; color: var(--muted); font-weight: 600;
  transition: border-color var(--transition);
}
.ga-file-label:hover { border-color: var(--teal); color: var(--teal); }
.ga-file-label input { display: none; }

.ga-upload-status {
  margin-top: .75rem; font-size: .86rem; font-weight: 600;
  min-height: 1.4em;
}
.ga-upload-status.success { color: var(--emerald); }
.ga-upload-status.error   { color: var(--red); }

/* ── Hero stat strip ─────────────────────────────────── */
.ga-hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; margin: 0 0 2rem 0;
}
.ga-hero-stat {
  display: flex; align-items: center; gap: .85rem;
  padding: 1.1rem 1.15rem;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(226,232,240,.92);
  border-radius: 16px; box-shadow: var(--shadow-sm);
}
.ga-hero-stat-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.ga-hero-stat-icon.blue  { background: #E6FBF9; box-shadow: inset 0 0 0 1px rgba(0,180,166,.14); }
.ga-hero-stat-icon.green { background: #E3FCEF; box-shadow: inset 0 0 0 1px rgba(0,200,83,.14); }
.ga-hero-stat-icon.cyan  { background: #DFFBF4; box-shadow: inset 0 0 0 1px rgba(6,182,212,.14); }
.ga-hero-stat-icon.amber { background: #fffbeb; box-shadow: inset 0 0 0 1px rgba(245,158,11,.14); }
.ga-hero-stat-val {
  font-size: 1.3rem; font-weight: 950; color: var(--text);
  letter-spacing: -.04em; line-height: 1;
}
.ga-hero-stat-lbl { font-size: .76rem; color: var(--muted); font-weight: 700; margin-top: .18rem; }

/* ── Page panels ─────────────────────────────────────── */
.ga-page-panel { animation: gaPageFade .3s ease both; }
.ga-page-header { margin-bottom: 1.75rem; }
.ga-page-header h2 { margin-bottom: .3rem; }
.ga-section-title {
  font-size: 1.1rem; font-weight: 800; color: var(--text);
  margin-bottom: .85rem; margin-top: .5rem;
}

/* ── Card elevation system (enterprise hover polish) ──── */
.ga-kpi-card, .ga-status-card, .ga-forecast-card, .ga-section-card,
.ga-chart-box, .ga-insight-card, .ga-varref-group, .ga-upload-card,
.ga-hero-stat {
  transition: transform var(--transition-md), box-shadow var(--transition-md), border-color var(--transition-md);
}
.ga-kpi-card:hover, .ga-status-card:hover, .ga-forecast-card:hover, .ga-section-card:hover,
.ga-chart-box:hover, .ga-insight-card:hover, .ga-varref-group:hover, .ga-upload-card:hover,
.ga-hero-stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0,180,166,.25);
}

/* ── KPI grid ────────────────────────────────────────── */
.ga-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.ga-kpi-card {
  position: relative; overflow: hidden;
  padding: 1.1rem 1.15rem;
  background: var(--white); border: 1px solid rgba(226,232,240,.92);
  border-radius: 16px; box-shadow: var(--shadow-sm);
}
.ga-kpi-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--brand-gradient);
  opacity: 0; transition: opacity var(--transition-md);
}
.ga-kpi-card:hover::before { opacity: 1; }
.ga-kpi-label {
  font-size: .78rem; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: .35rem;
}
.ga-kpi-value {
  font-size: 1.45rem; font-weight: 950; color: var(--text);
  letter-spacing: -.04em; line-height: 1.1;
}
.ga-kpi-range {
  font-size: .74rem; color: var(--muted); margin-top: .3rem; line-height: 1.4;
}

/* ── Forecast cards ──────────────────────────────────── */
.ga-forecast-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.ga-forecast-card {
  padding: 1.15rem 1.2rem;
  background: var(--white); border: 1px solid rgba(226,232,240,.92);
  border-radius: 16px; box-shadow: var(--shadow-sm);
}
.ga-forecast-month {
  font-size: 1rem; font-weight: 900; color: var(--teal); margin-bottom: .75rem;
}
.ga-forecast-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .85rem; padding: .28rem 0; border-bottom: 1px solid #f1f5f9;
}
.ga-forecast-row:last-child { border-bottom: 0; }
.ga-forecast-row span { color: var(--muted); }
.ga-forecast-row strong { color: var(--text); font-weight: 800; }

/* ── Section card ────────────────────────────────────── */
.ga-section-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm); margin-bottom: 1.25rem;
}
.ga-section-card h3 { margin-bottom: .6rem; }

/* ── Greeting banner ─────────────────────────────────── */
.ga-greeting-banner {
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  color: #fff; font-weight: 700; font-size: 1.05rem;
  border-radius: 16px; padding: 1rem 1.4rem;
  margin-bottom: 1.25rem; box-shadow: var(--shadow-sm);
}

/* ── Quick actions row (upload new data) ─────── */
.ga-quick-actions-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.ga-quick-action-card { margin-bottom: 0; }
@media (max-width: 900px) {
  .ga-quick-actions-row { grid-template-columns: 1fr; }
}
/* Single-card variant (Upload New Data only -- LinkedIn/Meta/X connectors
   moved to the Connectors page) so the card doesn't stretch full-bleed. */
.ga-quick-actions-row-single {
  grid-template-columns: minmax(0, 420px);
}
@media (max-width: 900px) {
  .ga-quick-actions-row-single { grid-template-columns: 1fr; }
}

/* ── Form grid ───────────────────────────────────────── */
.ga-form-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .85rem;
}

/* ── Charts grid ─────────────────────────────────────── */
.ga-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.2rem; margin-bottom: 1rem;
}
.ga-chart-box {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.1rem;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.ga-chart-box h4 { font-size: .88rem; color: var(--muted); margin-bottom: .65rem; }
.ga-chart-box img { width: 100%; border-radius: 12px; }
.ga-chart-box--wide { grid-column: 1 / -1; }

/* ── Insight grid ────────────────────────────────────── */
.ga-insight-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem; margin-bottom: 1rem;
}
.ga-insight-card {
  position: relative; overflow: hidden;
  padding: 1.1rem 1.1rem 1.1rem 1.4rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-sm);
}
.ga-insight-card::before {
  content: ''; position: absolute; inset: 0 auto 0 0;
  width: 4px; background: linear-gradient(180deg, var(--teal), var(--emerald));
}
.ga-insight-type {
  display: inline-flex; padding: .2rem .55rem; border-radius: 99px;
  background: #E6FBF9; color: var(--teal);
  font-size: .7rem; font-weight: 900; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: .55rem;
}
.ga-insight-card h4 { font-size: .98rem; margin-bottom: .4rem; color: var(--text); }
.ga-insight-card p  { font-size: .88rem; color: var(--muted); line-height: 1.5; margin-bottom: .4rem; }
.ga-recommendation  { color: var(--text) !important; font-size: .85rem !important; }

/* ── Table ───────────────────────────────────────────── */
.ga-table-wrap {
  overflow-x: auto; border-radius: 16px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}
.ga-table {
  width: 100%; border-collapse: collapse; font-size: .87rem;
  background: var(--white);
}
.ga-table thead { background: #f8fafc; }
.ga-table th {
  padding: .75rem 1rem; text-align: left;
  font-size: .75rem; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.ga-table td {
  padding: .7rem 1rem; border-bottom: 1px solid #f1f5f9;
  color: var(--text);
}
.ga-table tbody tr:last-child td { border-bottom: 0; }
.ga-table tbody tr:hover { background: #f8fafc; }
.ga-row-selected { background: #E6FBF9 !important; }

.ga-model-badge {
  display: inline-flex; padding: .18rem .55rem; border-radius: 99px;
  background: #E6FBF9; color: var(--teal); font-size: .75rem; font-weight: 800;
}
.ga-multiplier-badge {
  display: inline-flex; padding: .18rem .55rem; border-radius: 99px;
  background: #E3FCEF; color: var(--emerald); font-size: .8rem; font-weight: 800;
}
.ga-acc-pill {
  display: inline-flex; padding: .2rem .55rem; border-radius: 99px;
  font-size: .78rem; font-weight: 900;
}
.ga-acc-pill.good { background: #E3FCEF; color: var(--emerald); }
.ga-acc-pill.ok   { background: #fff7ed; color: var(--orange); }
.ga-acc-pill.bad  { background: #fef2f2; color: var(--red); }

/* ── Forecasting variable reference (grouped table + recommended badges) ── */
.ga-varref-banner {
  display: flex; align-items: center; flex-wrap: wrap; gap: .6rem;
  background: linear-gradient(90deg, rgba(0,200,83,.10), rgba(0,180,166,.06));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .85rem 1.1rem; margin-bottom: 1.1rem;
}
.ga-varref-banner-tag {
  display: inline-flex; padding: .2rem .6rem; border-radius: 99px;
  background: var(--emerald); color: #fff; font-size: .68rem; font-weight: 900;
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.ga-varref-banner-text { color: var(--muted); font-size: .83rem; line-height: 1.5; }
.ga-varref-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.ga-varref-group {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 18px; padding: 1rem 1.1rem; box-shadow: var(--shadow-sm);
}
.ga-varref-group h4 {
  font-size: .8rem; font-weight: 900; color: var(--text);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: .65rem;
}
.ga-varref-list { list-style: none; }
.ga-varref-list li {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  font-size: .85rem; color: var(--text); padding: .38rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.ga-varref-list li:last-child { border-bottom: 0; }
.ga-varref-badge {
  display: inline-flex; padding: .12rem .5rem; border-radius: 99px;
  background: #E3FCEF; color: var(--emerald); font-size: .66rem; font-weight: 900;
  letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
}

/* ── Status grid (2-col) ─────────────────────────────── */
.ga-status-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem;
  margin-bottom: 1.25rem;
}
.ga-status-card {
  padding: 1.3rem 1.4rem;
  background: var(--white); border: 1px solid rgba(226,232,240,.92);
  border-radius: 16px; box-shadow: var(--shadow-sm);
}
.ga-status-card h3 { margin-bottom: .5rem; }
.ga-status-card p  { margin-bottom: .9rem; }

/* ── Info box ────────────────────────────────────────── */
.ga-info-box {
  padding: 1rem 1.1rem; background: #F2FBFA; border: 1px solid #B3EDE6;
  border-radius: 14px; font-size: .9rem; color: var(--muted); line-height: 1.6;
}

/* ── SQL result ──────────────────────────────────────── */
.ga-sql-result { margin-top: .85rem; }
.ga-sql-result .err { color: var(--red); font-weight: 600; font-size: .88rem; }
.ga-sql-result .ga-table-wrap { margin-top: .5rem; }

/* ── Notification list (full page) ──────────────────── */
.ga-notif-list { display: flex; flex-direction: column; gap: .65rem; }
.ga-notif-item {
  display: flex; gap: .75rem; padding: .9rem 1rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-sm);
}
.ga-notif-item > div { flex:1; }
.ga-empty-state {
  text-align: center; padding: 3rem 1rem;
  color: var(--muted); font-size: .93rem;
}

/* ── Accordion ───────────────────────────────────────── */
.ga-accordion {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; margin-bottom: 1rem;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.ga-accordion summary {
  padding: 1.1rem 1.4rem; font-weight: 800; font-size: .97rem;
  cursor: pointer; user-select: none; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--text);
}
.ga-accordion summary::-webkit-details-marker { display: none; }
.ga-accordion summary::after { content: '›'; font-size: 1.2rem; color: var(--muted); transition: transform var(--transition); }
.ga-accordion[open] summary::after { transform: rotate(90deg); }
.ga-accordion-body { padding: 0 1.4rem 1.4rem; }

/* ═══════════════════════════════════════════════════════
   ML VISUALISATION (Model Performance page)
════════════════════════════════════════════════════════ */
.ga-ml-viz {
  position: relative; width: 100%; height: 420px;
  border-radius: 16px; overflow: hidden;
  background: radial-gradient(circle at center, #0b2e28, #020617 70%);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  margin-bottom: 2rem;
}
.ga-ml-label {
  position: absolute; top: 22px; left: 28px;
  color: #fff; font-weight: 900; font-size: 1rem;
  letter-spacing: 2px; z-index: 5;
}
.ga-ml-status {
  position: absolute; top: 24px; right: 28px;
  display: flex; align-items: center; gap: 18px;
  z-index: 5;
}
.ml-status-item {
  display: inline-flex; align-items: center; gap: 6px;
  color: #CFF5EF; font-weight: 700; font-size: .8rem;
}
.ml-dot {
  width: 8px; height: 8px; border-radius: 50%;
  animation: mlBlink 1.4s infinite;
}
.ml-dot-a { background: #00B4A6; box-shadow: 0 0 8px #00B4A6; }
.ml-dot-b { background: #00E676; box-shadow: 0 0 8px #00E676; animation-delay: .25s; }
.ml-dot-c { background: #00C853; box-shadow: 0 0 8px #00C853; animation-delay: .5s; }
@keyframes mlBlink { 50% { opacity:.35; } }

.ml-flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ml-line { stroke-width: 2; fill: none; opacity: .4; }
.ml-line-in  { stroke: #00B4A6; filter: drop-shadow(0 0 6px #00C853); }
.ml-line-out { stroke: #00C853; filter: drop-shadow(0 0 6px #00A544); }

.ml-flow-dot { filter: drop-shadow(0 0 6px currentColor); }
.ml-flow-dot-in  { fill: #00E676; color: #00E676; }
.ml-flow-dot-out { fill: #00C853; color: #00C853; }

.ml-node {
  position: absolute; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,25,55,.6); backdrop-filter: blur(2px);
  animation: mlPulse 2.4s infinite ease-in-out;
}
.ml-node .ga-icon { width: 20px; height: 20px; }
.ml-node-in {
  border: 2px solid #00B4A6; color: #00B4A6;
  box-shadow: 0 0 18px rgba(0,180,166,.55);
}
.ml-node-out {
  border: 2px solid #00C853; color: #00C853;
  box-shadow: 0 0 18px rgba(0,200,83,.55);
  animation-delay: .3s;
}
.ml-node-core {
  width: 100px; height: 100px;
  border: 2px solid #00E676; color: #00E676;
  box-shadow: 0 0 30px rgba(0,230,118,.6), 0 0 70px rgba(0,230,118,.3);
  background: radial-gradient(circle, rgba(0,230,118,.15), rgba(10,25,55,.7));
  animation: mlPulseCore 2.4s infinite ease-in-out;
}
.ml-node-core .ga-icon { width: 42px; height: 42px; }
@keyframes mlPulse { 50% { transform: scale(1.12); } }
@keyframes mlPulseCore { 50% { transform: scale(1.06); } }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .ga-topbar-pages { display: none; }
  .ga-sidebar { transform: translateX(-100%); }
  .ga-sidebar.open { transform: translateX(0); }
  .ga-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .ga-upload-hero { flex-direction: column; min-height: auto; padding-top: 2rem; }
  .ga-upload-card { width: 100%; }
  .ga-status-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ga-main { padding: 1.25rem 1rem 3rem; }
  .ga-hero-stats { grid-template-columns: 1fr 1fr; }
  .ga-kpi-grid { grid-template-columns: 1fr 1fr; }
  .ga-charts-grid { grid-template-columns: 1fr; }
  .ga-insight-grid { grid-template-columns: 1fr; }
  .ga-forecast-cards { grid-template-columns: 1fr; }
  .ga-form-grid { grid-template-columns: 1fr; }
  .ga-login-card { padding: 2rem 1.5rem; }
  .ga-avatar-info { display: none; }
}
@media (max-width: 480px) {
  .ga-hero-stats { grid-template-columns: 1fr; }
  .ga-kpi-grid { grid-template-columns: 1fr; }
}
/* ═══════════════════════════════════════════════════════
   ICON LIBRARY (black & white line icons, replaces emoji)
════════════════════════════════════════════════════════ */
.ga-icon {
  width: 1em; height: 1em;
  display: inline-block; vertical-align: -0.15em;
  flex-shrink: 0;
}
.ga-bell-btn .ga-icon,
.ga-upload-icon .ga-icon,
.ga-hero-stat-icon .ga-icon { width: 1.3rem; height: 1.3rem; vertical-align: middle; }
.ga-sidebar-icon { display: inline-flex; align-items: center; justify-content: center; }
.ga-sidebar-icon .ga-icon { width: 1.05rem; height: 1.05rem; }
.ga-eyebrow .ga-icon { width: 0.85rem; height: 0.85rem; }
.ga-btn .ga-icon { width: 1em; height: 1em; margin-right: .1em; }
.ga-dropdown-item .ga-icon { width: 1rem; height: 1rem; }

/* ═══════════════════════════════════════════════════════
   CHART FULLSCREEN
════════════════════════════════════════════════════════ */
.ga-chart-box { position: relative; }
.ga-chart-standalone { position: relative; display: inline-block; max-width: 100%; }
.ga-chart-fullscreen-btn {
  position: absolute; top: .6rem; right: .6rem; z-index: 5;
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(255,255,255,.92);
  color: var(--text); display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: background var(--transition), border-color var(--transition);
}
.ga-chart-fullscreen-btn:hover { background: #fff; border-color: rgba(0,180,166,.3); }
.ga-chart-fullscreen-btn .ga-icon { width: 16px; height: 16px; }

.ga-chart-download-btn {
  position: absolute; top: .6rem; right: 3rem; z-index: 5;
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(255,255,255,.92);
  color: var(--text); display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-sm); text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.ga-chart-download-btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; text-decoration: none; }
.ga-chart-download-btn .ga-icon { width: 16px; height: 16px; }

.ga-chart-fullscreen-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(15,23,42,.82);
  display: none; align-items: center; justify-content: center;
  padding: 3rem 2rem;
}
.ga-chart-fullscreen-overlay.open { display: flex; }
.ga-chart-fullscreen-overlay img {
  max-width: 100%; max-height: 100%;
  border-radius: 16px; background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.ga-chart-fullscreen-overlay-close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition);
}
.ga-chart-fullscreen-overlay-close:hover { background: rgba(255,255,255,.22); }
.ga-chart-fullscreen-overlay-close .ga-icon { width: 20px; height: 20px; }
.ga-chart-fullscreen-title {
  position: absolute; top: 1.5rem; left: 2rem;
  color: #fff; font-weight: 800; font-size: 1rem;
}

/* ── Goal Seek ─────────────────────────────────────────── */
.ga-info-box {
  background: rgba(0,180,166, .06);
  border-left: 4px solid var(--teal);
  border-radius: calc(var(--radius) / 2);
  padding: 1rem 1.25rem;
  color: var(--text);
  font-size: .92rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

#goal-seek-results .ga-kpi-grid {
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
}

#goal-seek-table td:last-child,
#goal-seek-table th:last-child {
  font-weight: 600;
  text-align: right;
}