/* ByteVerse shared theme: light + dark, solid colors only (no gradients, no glass) */
:root{
  --void:#ffffff;--panel:#f4f6f5;--card:#f4f6f5;--surface:#ffffff;
  --border:rgba(17,19,18,0.10);--border-bright:rgba(3,128,1,0.30);
  --text:#111312;--text-2:#3a423d;--muted:#4a524c;--faint:#7b847e;
  --brand:#038001;
  --emerald:#038001;--emerald-dark:#026b01;--emerald-rgb:3,128,1;--emerald-glow:rgba(3,128,1,0.08);--emerald-tint:#e8f6e8;
  --on-accent:#ffffff;--hover:rgba(17,19,18,0.05);--track:#e3e8e5;
  --input-bg:#f5f5f5;--input-focus:#eeeeee;
  --header-bg:#ffffff;--shadow-header:0 8px 32px rgba(17,19,18,0.08);--shadow-img:0 24px 60px rgba(17,19,18,0.14);--shadow-card:0 18px 40px rgba(17,19,18,0.10);
  --ok:#038001;--ok-rgb:3,128,1;--ok-bg:#e8f6e8;--ok-solid:#038001;--on-ok:#ffffff;
  --warn:#b45309;--warn-rgb:180,83,9;--warn-bg:#fdf1dc;--warn-solid:#b45309;--on-warn:#ffffff;
  --err:#c62828;--err-rgb:198,40,40;--err-bg:#fdeaea;--err-solid:#c62828;--on-err:#ffffff;
  --info:#0e7490;--info-rgb:14,116,144;--info-bg:#e3f3f6;--info-solid:#0e7490;--on-info:#ffffff;
  --accent2:#4d7c0f;--accent2-rgb:77,124,15;--accent2-bg:#eef5dc;--on-accent2:#ffffff;
  --gold:#f5c518;--ease:cubic-bezier(0.23,1,0.32,1);
  --show-primary:inline-block;--show-reversed:none;
  --logo-url:url('/brand/logo-primary.png');
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --void:#000000;--panel:#0a0a0a;--card:#0f0f0f;--surface:#121413;
  --border:rgba(255,255,255,0.16);--border-bright:rgba(22,197,20,0.28);
  --text:#f2f4f3;--text-2:rgba(242,244,243,0.80);--muted:rgba(242,244,243,0.60);--faint:rgba(242,244,243,0.42);
  --emerald:#16c514;--emerald-dark:#12a511;--emerald-rgb:22,197,20;--emerald-glow:rgba(22,197,20,0.12);--emerald-tint:rgba(22,197,20,0.12);
  --on-accent:#000000;--hover:rgba(255,255,255,0.06);--track:#1f2321;
  --input-bg:#1a1d1b;--input-focus:#222624;
  --header-bg:#0a0a0a;--shadow-header:0 8px 32px rgba(0,0,0,0.5);--shadow-img:0 32px 80px rgba(0,0,0,0.6);--shadow-card:0 24px 50px rgba(0,0,0,0.5);
  --ok:#16c514;--ok-rgb:22,197,20;--ok-bg:rgba(22,197,20,0.12);--ok-solid:#0b7d0a;--on-ok:#ffffff;
  --warn:#f59e0b;--warn-rgb:245,158,11;--warn-bg:rgba(245,158,11,0.14);--warn-solid:#b45f06;--on-warn:#ffffff;
  --err:#f87171;--err-rgb:248,113,113;--err-bg:rgba(248,113,113,0.13);--err-solid:#b3261e;--on-err:#ffffff;
  --info:#22b8cf;--info-rgb:34,184,207;--info-bg:rgba(34,184,207,0.13);--info-solid:#0b6477;--on-info:#ffffff;
  --accent2:#9ccc3c;--accent2-rgb:156,204,60;--accent2-bg:rgba(156,204,60,0.13);--on-accent2:#10200a;
  --show-primary:none;--show-reversed:inline-block;
  --logo-url:url('/brand/logo-reversed.png');
  color-scheme:dark;}}
:root[data-theme="dark"]{
  --void:#000000;--panel:#0a0a0a;--card:#0f0f0f;--surface:#121413;
  --border:rgba(255,255,255,0.16);--border-bright:rgba(22,197,20,0.28);
  --text:#f2f4f3;--text-2:rgba(242,244,243,0.80);--muted:rgba(242,244,243,0.60);--faint:rgba(242,244,243,0.42);
  --emerald:#16c514;--emerald-dark:#12a511;--emerald-rgb:22,197,20;--emerald-glow:rgba(22,197,20,0.12);--emerald-tint:rgba(22,197,20,0.12);
  --on-accent:#000000;--hover:rgba(255,255,255,0.06);--track:#1f2321;
  --input-bg:#1a1d1b;--input-focus:#222624;
  --header-bg:#0a0a0a;--shadow-header:0 8px 32px rgba(0,0,0,0.5);--shadow-img:0 32px 80px rgba(0,0,0,0.6);--shadow-card:0 24px 50px rgba(0,0,0,0.5);
  --ok:#16c514;--ok-rgb:22,197,20;--ok-bg:rgba(22,197,20,0.12);--ok-solid:#0b7d0a;--on-ok:#ffffff;
  --warn:#f59e0b;--warn-rgb:245,158,11;--warn-bg:rgba(245,158,11,0.14);--warn-solid:#b45f06;--on-warn:#ffffff;
  --err:#f87171;--err-rgb:248,113,113;--err-bg:rgba(248,113,113,0.13);--err-solid:#b3261e;--on-err:#ffffff;
  --info:#22b8cf;--info-rgb:34,184,207;--info-bg:rgba(34,184,207,0.13);--info-solid:#0b6477;--on-info:#ffffff;
  --accent2:#9ccc3c;--accent2-rgb:156,204,60;--accent2-bg:rgba(156,204,60,0.13);--on-accent2:#10200a;
  --show-primary:none;--show-reversed:inline-block;
  --logo-url:url('/brand/logo-reversed.png');
  color-scheme:dark;}
:root[data-theme="light"]{color-scheme:light}

/* page base */
html body{background-color:var(--void);color:var(--text)}

/* logos: primary on light, reversed on dark; same sizing as ByteVerse Business */
.logo-primary{display:var(--show-primary)}
.logo-reversed{display:var(--show-reversed)}
html .logo img{height:22px;width:auto;margin-top:5px;object-fit:contain}
html .footer-logo,html .flogo{height:24px;width:auto;margin-bottom:16px;object-fit:contain}

/* theme toggle (same as Business) */
.theme-toggle{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:1px solid var(--border);border-radius:10px;color:var(--text);cursor:pointer;transition:all .2s;flex:none}
.theme-toggle:hover{background:var(--hover)}
.theme-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .i-sun{display:none}
:root[data-theme="dark"] .theme-toggle .i-sun{display:block}
:root[data-theme="dark"] .theme-toggle .i-moon{display:none}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .theme-toggle .i-sun{display:block}:root:not([data-theme="light"]) .theme-toggle .i-moon{display:none}}
.header-right{display:flex;align-items:center;gap:8px}

/* no glass anywhere */
*,*::before,*::after{-webkit-backdrop-filter:none !important;backdrop-filter:none !important}

/* toasts: color by kind, solid, readable in both modes (default = success green) */
html .toast,html .toast-message,html .toast-notification,html .snackbar{background:var(--ok-solid);color:var(--on-ok);border:none;box-shadow:var(--shadow-card)}
html .toast.success,html .toast.default,html .toast.toast-success,html .toast-success,html .snackbar.success{background:var(--ok-solid);color:var(--on-ok)}
html .toast.error,html .toast.danger,html .toast.toast-error,html .toast-error,html .snackbar.error{background:var(--err-solid);color:var(--on-err)}
html .toast.warning,html .toast.warn,html .toast.toast-warning,html .toast-warning,html .snackbar.warning{background:var(--warn-solid);color:var(--on-warn)}
html .toast.info,html .toast.toast-info,html .toast-info,html .snackbar.info{background:var(--info-solid);color:var(--on-info)}
html .toast i,html .toast .material-icons,html .toast span{color:inherit}

/* decorative glow blobs removed */
.orb,.orb-1,.orb-2,.orb-3,.bg-orb,.glow-orb{display:none !important}

/* primary buttons: same text color rule as Business */
html .btn-primary,html a.btn-primary,html .desktop-nav a.btn-primary,html .desktop-nav a.btn-primary:hover,html .mobile-nav-links a.btn-primary{color:var(--on-accent)}
html .btn-primary:hover{background:var(--emerald-dark)}
html .audience-btn.active{color:var(--on-accent)}

/* Light / Dark / System selector (Profile) */
.theme-seg{display:flex;gap:6px;background:var(--hover);border:1px solid var(--border);border-radius:14px;padding:5px}
.theme-seg button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 8px;border:none;border-radius:10px;background:transparent;color:var(--muted);font:600 14px inherit;font-family:inherit;cursor:pointer;transition:background .2s,color .2s}
.theme-seg button .material-icons{font-size:18px}
.theme-seg button.active{background:var(--emerald);color:var(--on-accent)}

/* public header: keep toggle next to the menu button on phones */
@media (max-width:768px){html .header-top .theme-toggle{margin-left:auto;margin-right:4px}}

/* ===== App pages (anything with the bottom nav) ===== */

/* 1) Brighter, livelier green inside the app (light mode only; public site keeps brand #038001) */
@media (prefers-color-scheme:light){
  :root:not([data-theme="dark"]):has(.bottom-nav){--emerald:#0a9a08;--emerald-dark:#088307;--emerald-rgb:10,154,8;--emerald-glow:rgba(10,154,8,0.10);--emerald-tint:#e4f7e3;--ok:#0a9a08;--ok-solid:#0a9a08;--accent2:#5f9a12}
}
:root[data-theme="light"]:has(.bottom-nav){--emerald:#0a9a08;--emerald-dark:#088307;--emerald-rgb:10,154,8;--emerald-glow:rgba(10,154,8,0.10);--emerald-tint:#e4f7e3;--ok:#0a9a08;--ok-solid:#0a9a08;--accent2:#5f9a12}

/* 2) Bottom nav always sits on top with a solid background, so page content never shows through */
html .bottom-nav{z-index:100;background:var(--surface)}

/* 3) No outline on the active tab: soft green fill instead */
html .nav-item.active{border:none;background:var(--emerald-tint)}
html .nav-item.active .nav-label{color:var(--emerald)}
html .nav-item.active .material-icons{color:var(--emerald)}

/* 4) Remove the heavy outlines on dashboard cards, tiles and the page frame */
html .app-container{border:none}
html .actions-grid .action-card,html .modal-action-card,html .sk-action-card,html .last-transaction-card{border:none;background:var(--panel)}
html .sk-actions-container{border:none}
html .info-banner{border:none}
