:root{
  --bg:#050505;
  --bg-soft:#080808;
  --card:#0e0e0e;
  --card-soft:#111111;
  --border:#1d1d1d;
  --border-blue:rgba(2,183,254,.24);
  --primary-blue:#02b7fe;
  --secondary-blue:#034df8;
  --deep-blue:#123995;
  --success:#00ff88;
  --warning:#f0cf5b;
  --danger:#ef6262;
  --strong-red:#ff4d4d;
  --text:#ffffff;
  --muted:#a0a0a0;
  --muted-2:#707070;
  --radius:20px;
  --radius-lg:30px;
  --shadow:0 24px 80px rgba(0,0,0,.42);
  --brand-gradient:linear-gradient(180deg,#02b7fe 10%,#034df8 35%,#123995 70%,#02b7fe 100%);
  --silver-gradient:linear-gradient(180deg,#ffffff,#d9d9d9,#a8a8a8);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 15% 0%,rgba(2,183,254,.12),transparent 30%),
    radial-gradient(circle at 85% 10%,rgba(3,77,248,.10),transparent 32%),
    var(--bg);
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
img{max-width:100%}

/* Xniffer premium color refinement */
strong{color:var(--strong-red)}
.xn-brand-text strong{background:var(--silver-gradient);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.xn-button.primary,.primary-btn,.register-btn,.login-btn,.action-btn,.payment-btn{background:#00ff88;color:#071007}
.xn-shell{width:min(1180px,calc(100% - 40px));margin:0 auto}
.xn-nav{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:18px min(40px,5vw);
  border-bottom:1px solid rgba(29,29,29,.78);
  background:rgba(5,5,5,.88);
  backdrop-filter:blur(18px);
}
.xn-brand{display:flex;align-items:center;gap:14px;min-width:0}
.xn-brand img{width:54px;height:54px;object-fit:contain;filter:drop-shadow(0 0 24px rgba(2,183,254,.18))}
.xn-brand-text strong{display:block;font-size:19px;font-weight:900;line-height:1;background:var(--silver-gradient);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.xn-brand-text span{display:block;margin-top:5px;color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.xn-nav-links{display:flex;align-items:center;gap:10px;list-style:none;margin:0;padding:0}
.xn-nav-links a{display:inline-flex;min-height:42px;align-items:center;border:1px solid transparent;border-radius:14px;color:var(--muted);padding:0 14px;font-size:14px;font-weight:700;transition:.18s ease}
.xn-nav-links a:hover,.xn-nav-links a.active{border-color:var(--border-blue);background:rgba(2,183,254,.08);color:var(--text)}
.xn-page{
  min-height:100vh;
  padding:44px 20px;
}
.xn-center{
  display:flex;
  align-items:center;
  justify-content:center;
}
.xn-card{
  position:relative;
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  background:linear-gradient(180deg,rgba(14,14,14,.98),rgba(8,8,8,.98));
  box-shadow:var(--shadow);
  overflow:hidden;
}
.xn-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(135deg,rgba(2,183,254,.07),transparent 32%,rgba(0,255,136,.03));
}
.xn-card > *{position:relative}
.xn-logo-large{display:block;width:150px;height:auto;margin:0 auto 24px;filter:drop-shadow(0 0 26px rgba(2,183,254,.16))}
.xn-eyebrow,.micro-label{
  margin:0;
  color:var(--primary-blue);
  font-size:12px;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.xn-title{
  margin:10px 0 0;
  color:var(--text);
  font-size:clamp(34px,5vw,64px);
  line-height:1.02;
  letter-spacing:-.04em;
}
.xn-title-gradient,.brand-gradient-text{
  background:var(--silver-gradient);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}
.xn-subtitle{
  margin:18px auto 0;
  color:var(--muted);
  font-size:17px;
  line-height:1.7;
}
.xn-form-card{width:min(720px,100%);padding:42px;text-align:center}
.xn-form{display:grid;gap:14px;margin-top:28px;text-align:left}
.xn-input,
.xn-form input,
.xn-form select,
.xn-form textarea{
  width:100%;
  min-height:60px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#070707;
  color:var(--text);
  padding:0 18px;
  outline:none;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.xn-form textarea{padding:16px 18px;min-height:120px;resize:vertical}
.xn-input:focus,.xn-form input:focus,.xn-form select:focus,.xn-form textarea:focus{
  border-color:rgba(2,183,254,.55);
  box-shadow:0 0 0 4px rgba(2,183,254,.08);
  background:#050505;
}
.xn-button,
.primary-btn,
.secondary-btn,
.register-btn,
.login-btn,
.action-btn,
.payment-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  border:0;
  border-radius:16px;
  padding:0 22px;
  font-size:16px;
  font-weight:900;
  transition:transform .16s ease,opacity .16s ease,border-color .16s ease,background .16s ease;
}
.xn-button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.register-btn:hover,
.login-btn:hover,
.action-btn:hover,
.payment-btn:hover{transform:translateY(-1px)}
.xn-button.primary,.primary-btn,.register-btn,.login-btn,.action-btn,.payment-btn{background:var(--success);color:#071007}
.xn-button.brand{background:var(--brand-gradient);color:#fff}
.xn-button.ghost,.secondary-btn{border:1px solid var(--border);background:rgba(255,255,255,.02);color:var(--text)}
.xn-button.full,.register-btn,.login-btn,.action-btn,.payment-btn{width:100%}
.xn-button:disabled,.register-btn:disabled,.login-btn:disabled{cursor:not-allowed;opacity:.45;transform:none}
.field-error{min-height:18px;color:#ff7b7b;font-size:13px;line-height:1.4;text-align:left}
.field-success{color:var(--success)!important}
.hidden-section{display:none!important}
.status-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  border:1px solid var(--border);
  border-radius:999px;
  padding:0 10px;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
.status-pill.success{border-color:rgba(0,255,136,.32);color:var(--success);background:rgba(0,255,136,.07)}
.status-pill.locked{border-color:rgba(240,207,91,.25);color:var(--warning);background:rgba(240,207,91,.07)}
.status-pill.info{border-color:rgba(2,183,254,.30);color:var(--primary-blue);background:rgba(2,183,254,.07)}
.xn-grid{display:grid;gap:18px}
.xn-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.xn-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.xn-mini-card{
  border:1px solid var(--border);
  border-radius:20px;
  background:rgba(10,10,10,.86);
  padding:20px;
}
.xn-mini-card span{display:block;color:var(--muted);font-size:13px}
.xn-mini-card strong{display:block;margin-top:8px;font-size:22px}
.powered-by,.xn-powered{margin-top:26px;color:var(--muted-2);font-size:13px;text-align:center}
.xn-footer{border-top:1px solid var(--border);margin-top:50px;padding:22px 0;color:var(--muted);display:flex;justify-content:space-between;gap:16px;font-size:13px}
.xn-watermark{
  pointer-events:none;
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  opacity:.12;
  transform:rotate(-18deg);
  color:#fff;
  font-size:clamp(22px,4vw,52px);
  font-weight:900;
  letter-spacing:.08em;
  text-align:center;
  user-select:none;
}
@media(max-width:900px){
  .xn-nav{align-items:flex-start;flex-direction:column}
  .xn-nav-links{width:100%;overflow:auto;padding-bottom:4px}
  .xn-grid.three,.xn-grid.two{grid-template-columns:1fr}
  .xn-footer{flex-direction:column}
}
@media(max-width:640px){
  .xn-shell{width:min(100% - 28px,1180px)}
  .xn-page{padding:28px 14px}
  .xn-form-card{padding:30px 20px;border-radius:24px}
  .xn-logo-large{width:120px}
}


/* Xniffer V5 shared navigation and footer polish */
.compact-nav{min-height:80px}.auth-mini-footer{width:min(1180px,calc(100% - 40px));margin:0 auto 28px;border-top:1px solid var(--border);padding-top:22px;color:var(--muted);display:grid;grid-template-columns:1.2fr repeat(3,1fr);gap:18px;font-size:13px}.auth-mini-footer strong{display:block;color:var(--text);margin-bottom:9px}.auth-mini-footer a,.auth-mini-footer span{display:block;color:var(--muted);margin:7px 0}.auth-mini-footer a:hover{color:var(--primary-blue)}.theme-accent{color:var(--primary-blue)}
@media(max-width:900px){.auth-mini-footer{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.auth-mini-footer{grid-template-columns:1fr}.compact-nav .xn-nav-links{gap:6px}.compact-nav .xn-nav-links a{padding:0 10px;font-size:13px}}


/* V16 compliance / legal pages */
.legal-page-shell{padding:64px 0 90px;}
.legal-document-card{padding:46px;}
.legal-document-card h1{margin:12px 0 18px;font-size:clamp(34px,5vw,56px);line-height:1.04;background:var(--silver-gradient);-webkit-background-clip:text;-webkit-text-fill-color:transparent;}
.legal-document-card h2{margin:34px 0 14px;font-size:26px;color:#f2f4f7;letter-spacing:-.03em;}
.legal-document-card p,.legal-document-card li{color:#d1d1d1;line-height:1.78;font-size:15px;}
.legal-document-card ul{display:grid;gap:9px;margin:14px 0 22px;padding-left:22px;}
.legal-document-card hr{border:0;border-top:1px solid var(--border);margin:32px 0;}
.legal-document-card a{color:var(--primary-blue);font-weight:800;}
.legal-table-wrap{overflow:auto;margin-top:22px;}
.legal-table{width:100%;border-collapse:collapse;color:#d1d1d1;}
.legal-table th,.legal-table td{border:1px solid var(--border);padding:14px;text-align:left;}
.legal-table th{color:#f2f4f7;background:#080808;}
.compliance-footer{width:min(1180px,calc(100% - 40px));margin:38px auto 0;border:1px solid rgba(2,183,254,.18);border-radius:24px;background:linear-gradient(180deg,rgba(2,183,254,.055),rgba(8,8,8,.96));padding:24px;color:var(--muted);box-shadow:0 18px 60px rgba(0,0,0,.28);}
.compliance-footer strong{display:block;margin-bottom:10px;color:#f2f4f7!important;background:none!important;-webkit-text-fill-color:initial!important;}
.compliance-footer p{margin:0;color:#bdbdbd;line-height:1.7;font-size:13px;}
.compliance-footer nav{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px;}
.compliance-footer a{border:1px solid rgba(255,255,255,.1);border-radius:999px;color:var(--primary-blue);padding:8px 12px;font-size:12px;font-weight:900;}
.legal-compliance-footer{margin-bottom:50px;}
.legal-consent-note{margin:18px 0 0;border:1px solid rgba(2,183,254,.18);border-radius:18px;background:rgba(2,183,254,.055);padding:16px;color:#cfcfcf;font-size:13px;line-height:1.65;text-align:left;}
.legal-consent-note a{color:var(--primary-blue);font-weight:900;}
@media(max-width:760px){.legal-document-card{padding:28px 22px}.legal-page-shell{padding:42px 0 70px}.compliance-footer{width:calc(100% - 28px);}}

.xniffer-api-status{position:fixed;right:18px;bottom:18px;z-index:9999;max-width:min(420px,calc(100vw - 36px));padding:12px 14px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(5,5,5,.92);color:#fff;box-shadow:0 18px 40px rgba(0,0,0,.35);font-size:12px;font-weight:800;backdrop-filter:blur(18px)}.xniffer-api-status[data-type="success"]{border-color:rgba(0,255,136,.28);color:#dfffe9}.xniffer-api-status[data-type="error"]{border-color:rgba(255,77,77,.36);color:#ffd9d9}


/* V22.15 unified navigation and locked/unlocked clarity */
.xn-unified-nav-links{gap:1.1rem;align-items:center;}
.xn-user-pill{display:inline-flex;align-items:center;gap:.35rem;padding:.62rem .95rem;border:1px solid rgba(2,183,254,.35);border-radius:999px;background:rgba(2,183,254,.08);color:#eaf7ff;font-weight:800;letter-spacing:.02em;}
.xn-user-pill::before{content:"User";font-size:.65rem;text-transform:uppercase;color:#7cccff;letter-spacing:.14em;}
body[data-user-category="public"] .member-only,
body[data-user-category="registered"] .active-member-only,
body[data-user-category$="expired"] .active-member-only{display:none!important;}
body[data-user-category="prime_active"] .locked-only,
body[data-user-category="pro_active"] .locked-only,
body[data-user-category="elite_active"] .locked-only{display:none!important;}
.xn-locked-value{filter:blur(3px);opacity:.55;user-select:none;}
.xn-lock-strip{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.035);border-radius:20px;padding:1rem;color:#d6dde8;}
.xn-lock-strip strong{color:#fff;}
.xn-hidden-hard{display:none!important;}

/* V22.16 navbar settings dropdown fix */
.xn-unified-nav-links{gap:1.1rem;align-items:center;}
.xn-settings-wrap{position:relative;display:inline-flex;align-items:center;}
.xn-settings-toggle{display:inline-flex;min-height:42px;align-items:center;border:1px solid transparent;border-radius:14px;color:var(--muted);padding:0 14px;font-size:14px;font-weight:800;background:transparent;cursor:pointer;transition:.18s ease;font-family:inherit;}
.xn-settings-toggle:hover,.xn-settings-toggle.active,.xn-settings-wrap.is-open .xn-settings-toggle{border-color:var(--border-blue);background:rgba(2,183,254,.08);color:var(--text);}
.xn-settings-dropdown{position:absolute;right:0;top:calc(100% + 12px);width:260px;padding:12px;border:1px solid rgba(2,183,254,.28);border-radius:18px;background:rgba(3,7,12,.96);box-shadow:0 24px 60px rgba(0,0,0,.42),0 0 0 1px rgba(255,255,255,.04) inset;display:none;z-index:9999;backdrop-filter:blur(18px);}
.xn-settings-wrap.is-open .xn-settings-dropdown{display:grid;gap:6px;}
.xn-settings-user{padding:12px;border-radius:14px;background:linear-gradient(135deg,rgba(2,183,254,.12),rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.08);display:grid;gap:3px;margin-bottom:4px;}
.xn-settings-user-kicker{font-size:.62rem;text-transform:uppercase;letter-spacing:.16em;color:#7cccff;font-weight:900;}
.xn-settings-user strong{font-size:1rem;color:#fff;line-height:1.15;}
.xn-settings-user small{color:#aeb4bd;font-weight:700;word-break:break-word;}
.xn-settings-user em{font-style:normal;color:#72ff9f;font-weight:900;font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;}
.xn-settings-dropdown a{display:flex;align-items:center;min-height:38px;border-radius:12px;padding:0 10px;color:#d9dde6;border:1px solid transparent;font-weight:800;text-decoration:none;}
.xn-settings-dropdown a:hover{background:rgba(2,183,254,.1);border-color:rgba(2,183,254,.25);color:#fff;}
.xn-user-pill{display:none!important;}
@media(max-width:720px){.xn-settings-dropdown{right:auto;left:0;width:min(260px,86vw)}.xn-unified-nav-links{gap:.55rem}}


/* V22.17 account menu icon + strict locked page gates */
.xn-menu-toggle{width:44px;height:44px;justify-content:center;gap:4px;flex-direction:column;padding:0!important;border-color:rgba(2,183,254,.22)!important;background:rgba(255,255,255,.035)!important;}
.xn-menu-toggle span{display:block;width:18px;height:2px;border-radius:99px;background:#e8eef7;transition:.18s ease;}
.xn-settings-wrap.is-open .xn-menu-toggle{background:rgba(2,183,254,.10)!important;box-shadow:0 0 0 1px rgba(2,183,254,.12) inset;}
.xn-settings-dropdown{width:min(310px,92vw);}
body[data-user-category="registered"] a[href="course.html"],
body[data-user-category$="expired"] a[href="course.html"]{opacity:.75;}
.xn-button.ghost{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:#f2f4f7;}


/* V22.18 corner account menu cleanup */
.xn-nav{padding-left:min(34px,4vw);padding-right:min(34px,4vw)}
.xn-unified-nav-links{gap:16px;align-items:center;justify-content:flex-end;}
.xn-settings-wrap{order:99;margin-left:4px;}
.xn-menu-toggle{width:48px!important;height:48px!important;border-radius:16px!important;}
.xn-settings-dropdown{right:0!important;left:auto!important;top:calc(100% + 14px)!important;}
@media(max-width:720px){.xn-settings-dropdown{right:0!important;left:auto!important;width:min(310px,92vw)!important}.xn-unified-nav-links{gap:8px}.xn-nav-links a{padding:0 10px}}

/* V22.19 navigation finalization */
.xn-nav{flex-direction:row!important;align-items:center!important;}
.xn-nav nav{margin-left:auto;}
.xn-unified-nav-links{width:auto!important;overflow:visible!important;padding-bottom:0!important;}
.xn-settings-wrap{margin-left:6px;}
.xn-settings-dropdown{right:0!important;left:auto!important;}
@media(max-width:720px){
  .xn-nav{gap:10px;padding:12px 14px!important;}
  .xn-brand img{width:44px!important;height:44px!important;}
  .xn-brand-text strong{font-size:16px!important;}
  .xn-brand-text span{font-size:10px!important;}
  .xn-nav-links{gap:6px!important;}
  .xn-nav-links a{min-height:40px;padding:0 9px!important;font-size:12px!important;}
  .xn-settings-dropdown{right:0!important;left:auto!important;width:min(300px,92vw)!important;}
}

.xn-nav{z-index:9999;overflow:visible;flex-wrap:nowrap;}
@media(max-width:980px){.xn-nav{flex-wrap:wrap!important}.xn-nav nav{margin-left:auto!important}}
@media(max-width:520px){.xn-brand-text span{display:none!important}}


/* V22.30 White Background Theme
   Dark remains default. Toggle is shown only for logged-in/member/admin views.
*/
html[data-theme="light"]{
  --bg:#f7f9fc;
  --bg-soft:#ffffff;
  --card:#ffffff;
  --card-soft:#f2f6fb;
  --border:#d9e3ee;
  --border-blue:rgba(3,77,248,.20);
  --text:#07111f;
  --muted:#586579;
  --muted-2:#8190a4;
  --shadow:0 24px 70px rgba(18,36,66,.12);
  --silver-gradient:linear-gradient(180deg,#0f172a,#334155,#64748b);
}
html[data-theme="light"] body{
  background:
    radial-gradient(circle at 14% 0%,rgba(2,183,254,.12),transparent 30%),
    radial-gradient(circle at 88% 6%,rgba(3,77,248,.08),transparent 34%),
    var(--bg)!important;
  color:var(--text)!important;
}
html[data-theme="light"] strong,
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4{color:var(--text);}
html[data-theme="light"] p,
html[data-theme="light"] small,
html[data-theme="light"] span,
html[data-theme="light"] label,
html[data-theme="light"] td,
html[data-theme="light"] dd,
html[data-theme="light"] dt{color:inherit;}
html[data-theme="light"] .xn-nav,
html[data-theme="light"] .compact-nav,
html[data-theme="light"] .course-topbar,
html[data-theme="light"] .xn-dashboard-nav{
  background:rgba(255,255,255,.92)!important;
  border-bottom:1px solid rgba(15,23,42,.10)!important;
  box-shadow:0 18px 50px rgba(15,23,42,.08)!important;
}
html[data-theme="light"] .xn-brand-text strong{
  background:linear-gradient(180deg,#0f172a,#334155,#64748b)!important;
  -webkit-background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
}
html[data-theme="light"] .xn-brand-text span,
html[data-theme="light"] .xn-nav-links a,
html[data-theme="light"] .xn-settings-toggle{color:#334155!important;}
html[data-theme="light"] .xn-settings-toggle span{background:#0f172a!important;}
html[data-theme="light"] .xn-nav-links a:hover,
html[data-theme="light"] .xn-nav-links a.active,
html[data-theme="light"] .xn-settings-toggle:hover,
html[data-theme="light"] .xn-settings-wrap.is-open .xn-settings-toggle{
  color:#0f172a!important;
  background:rgba(2,183,254,.08)!important;
  border-color:rgba(2,183,254,.22)!important;
}
html[data-theme="light"] .xn-settings-dropdown,
html[data-theme="light"] .dashboard-menu,
html[data-theme="light"] .profile-dropdown{
  background:rgba(255,255,255,.98)!important;
  border-color:rgba(15,23,42,.12)!important;
  box-shadow:0 24px 70px rgba(15,23,42,.16)!important;
}
html[data-theme="light"] .xn-settings-dropdown a,
html[data-theme="light"] .xn-settings-dropdown button{color:#172033!important;}
html[data-theme="light"] .xn-settings-user{
  background:linear-gradient(135deg,rgba(2,183,254,.10),rgba(3,77,248,.05))!important;
  border-color:rgba(15,23,42,.10)!important;
}
html[data-theme="light"] .xn-settings-user strong,
html[data-theme="light"] .xn-settings-user small{color:#172033!important;}
html[data-theme="light"] .xn-card,
html[data-theme="light"] .auth-card,
html[data-theme="light"] .legal-card,
html[data-theme="light"] .support-card,
html[data-theme="light"] .dashboard-panel,
html[data-theme="light"] .dash-hero,
html[data-theme="light"] .access-card,
html[data-theme="light"] .benefit-card,
html[data-theme="light"] .learning-card,
html[data-theme="light"] .tool-card,
html[data-theme="light"] .study-chart-card,
html[data-theme="light"] .study-side-pane,
html[data-theme="light"] .lesson-view,
html[data-theme="light"] .course-hero,
html[data-theme="light"] .journal-card,
html[data-theme="light"] .payment-card{
  background:linear-gradient(180deg,#ffffff,#f8fbff)!important;
  border-color:rgba(15,23,42,.10)!important;
  box-shadow:0 22px 70px rgba(15,23,42,.10)!important;
  color:#07111f!important;
}
html[data-theme="light"] .hero-copy h1,
html[data-theme="light"] .dash-hero h1,
html[data-theme="light"] .panel-head h2,
html[data-theme="light"] .course-hero h1,
html[data-theme="light"] .auth-card h1{
  background:linear-gradient(180deg,#0f172a,#334155,#64748b)!important;
  -webkit-background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
}
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea{
  background:#ffffff!important;
  color:#07111f!important;
  border-color:rgba(15,23,42,.16)!important;
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder{color:#7d8aa0!important;}
html[data-theme="light"] .xn-button.ghost,
html[data-theme="light"] .dash-button,
html[data-theme="light"] .admin-ghost-btn,
html[data-theme="light"] .protected-resource-close{
  background:#ffffff!important;
  color:#0f172a!important;
  border-color:rgba(15,23,42,.14)!important;
}
html[data-theme="light"] .dash-button.primary,
html[data-theme="light"] .xn-button.primary,
html[data-theme="light"] .xn-button.brand,
html[data-theme="light"] .admin-primary-btn{
  background:#69f58b!important;
  color:#061108!important;
}
html[data-theme="light"] .compliance-footer,
html[data-theme="light"] .auth-mini-footer,
html[data-theme="light"] footer{
  background:#ffffff!important;
  border-color:rgba(15,23,42,.10)!important;
  color:#334155!important;
}
.theme-toggle-btn{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  width:100%;
  min-height:38px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  padding:0 10px;
  background:rgba(255,255,255,.045);
  color:#fff;
  font-weight:900;
}
.theme-toggle-btn small{
  font-size:11px;
  opacity:.75;
  text-transform:uppercase;
  letter-spacing:.08em;
}
html[data-theme="light"] .theme-toggle-btn{
  border-color:rgba(15,23,42,.12)!important;
  background:rgba(2,183,254,.06)!important;
  color:#0f172a!important;
}


/* V22.31 Consistent White Theme Layer */
html[data-theme="light"]{
  color-scheme:light;
  --bg:#f5f7fb;
  --bg-soft:#ffffff;
  --card:#ffffff;
  --card-soft:#f7faff;
  --border:#d9e3ef;
  --text:#07111f;
  --muted:#526174;
  --muted-2:#7b8a9e;
  --admin-line:rgba(15,23,42,.12);
  --admin-panel:#ffffff;
  --admin-soft:rgba(2,183,254,.055);
}
html[data-theme="light"] body,
html[data-theme="light"] .admin-body,
html[data-theme="light"] .admin-login-body,
html[data-theme="light"] body.dashboard-role-page{
  background:#f5f7fb!important;
  color:#07111f!important;
}
html[data-theme="light"] body::before,
html[data-theme="light"] body::after{opacity:.18!important;}
html[data-theme="light"] :where(.xn-card,.admin-card,.dashboard-panel,.dash-hero,.access-card,.benefit-card,.learning-card,.tool-card,.support-card,.auth-card,.legal-card,.course-hero,.lesson-view,.journal-card,.payment-card,.admin-login-card,.admin-table-wrap,.admin-data-detail,.admin-profile-detail,.course-side-panel,.study-chart-card,.study-side-pane,.protected-player,.pdf-page,.protected-resource-dialog,.support-contact-grid div,.support-guidance-list div,.dashboard-alert-panel,.registered-panel,.subscribed-panel,.modal,.dialog){
  background:linear-gradient(180deg,#ffffff,#f8fbff)!important;
  border-color:rgba(15,23,42,.12)!important;
  color:#07111f!important;
  box-shadow:0 20px 58px rgba(15,23,42,.10)!important;
}
html[data-theme="light"] :where(.locked-card){
  background:linear-gradient(145deg,rgba(255,209,102,.12),#ffffff)!important;
  border-color:rgba(218,165,32,.22)!important;
}
html[data-theme="light"] :where(.open-card){
  background:linear-gradient(145deg,rgba(0,255,136,.10),#ffffff)!important;
  border-color:rgba(0,160,92,.18)!important;
}
html[data-theme="light"] :where(h1,h2,h3,h4,h5,h6,strong,.admin-card h2,.admin-header h1,.panel-head h2,.access-card strong,.benefit-card strong,.learning-card strong,.tool-card strong,.support-card h2,.course-hero h1,.lesson-top h2){
  color:#07111f!important;
}
html[data-theme="light"] :where(p,small,span,li,td,th,dd,dt,label,.admin-muted,.admin-help,.support-note,.study-disclaimer,.hero-copy p:not(.micro-label),.panel-head p:not(.micro-label),.benefit-card p,.learning-card p,.tool-card p){
  color:#526174!important;
}
html[data-theme="light"] :where(.micro-label,.xn-eyebrow,.admin-eyebrow,.support-card .xn-eyebrow,.dashboard-alert-item span,.notice-feed-item span){
  color:#0276d8!important;
}
html[data-theme="light"] :where(input,select,textarea){
  background:#ffffff!important;
  color:#07111f!important;
  border-color:rgba(15,23,42,.16)!important;
  box-shadow:none!important;
}
html[data-theme="light"] :where(input::placeholder,textarea::placeholder){color:#8a97aa!important;}
html[data-theme="light"] :where(table,.admin-table,.support-table){
  background:#ffffff!important;
  color:#07111f!important;
}
html[data-theme="light"] :where(tr,td,th){
  border-color:rgba(15,23,42,.10)!important;
}
html[data-theme="light"] :where(.xn-nav,.compact-nav,.course-topbar,.xn-dashboard-nav,.admin-header-clean,.admin-header){
  background:rgba(255,255,255,.94)!important;
  border-color:rgba(15,23,42,.10)!important;
  color:#07111f!important;
  box-shadow:0 14px 44px rgba(15,23,42,.08)!important;
}
html[data-theme="light"] :where(.xn-settings-dropdown,.admin-sidebar,.admin-preview-links){
  background:rgba(255,255,255,.98)!important;
  border-color:rgba(15,23,42,.12)!important;
  color:#07111f!important;
  box-shadow:0 24px 70px rgba(15,23,42,.16)!important;
}
html[data-theme="light"] :where(.xn-settings-dropdown a,.xn-settings-dropdown button,.admin-nav a){
  color:#1f2a3d!important;
}
html[data-theme="light"] :where(.xn-settings-dropdown a:hover,.xn-settings-dropdown button:hover,.admin-nav a:hover,.admin-nav a.active){
  background:rgba(2,183,254,.08)!important;
  color:#07111f!important;
  border-color:rgba(2,183,254,.22)!important;
}
html[data-theme="light"] :where(.admin-primary-btn,.xn-button.primary,.xn-button.brand,.dash-button.primary){
  background:#69f58b!important;
  color:#061108!important;
  border-color:rgba(0,160,92,.24)!important;
}
html[data-theme="light"] :where(.admin-ghost-btn,.xn-button.ghost,.dash-button,.pane-toggle,.admin-menu,.admin-theme-toggle,.theme-toggle-btn,.protected-resource-close){
  background:#ffffff!important;
  color:#07111f!important;
  border-color:rgba(15,23,42,.14)!important;
}
html[data-theme="light"] :where(.admin-menu span,.xn-settings-toggle span){background:#07111f!important;}
html[data-theme="light"] :where(.admin-pill,.status-pill){
  background:#f8fafc!important;
  color:#1f2a3d!important;
  border-color:rgba(15,23,42,.12)!important;
}
html[data-theme="light"] :where(.status-pill.locked,.admin-status.pending){
  background:rgba(255,209,102,.14)!important;
  color:#8a6200!important;
}
html[data-theme="light"] :where(.status-pill.info){
  background:rgba(2,183,254,.10)!important;
  color:#0357a8!important;
}
html[data-theme="light"] :where(.admin-status.success){
  background:rgba(0,180,102,.10)!important;
  color:#087a45!important;
}
html[data-theme="light"] :where(.dashboard-alert-item.warning,.notice-feed-item.warning){
  background:linear-gradient(145deg,rgba(255,209,102,.14),#ffffff)!important;
  border-color:rgba(218,165,32,.28)!important;
}
html[data-theme="light"] :where(.dashboard-alert-item.warning strong,.notice-feed-item.warning strong){color:#9a6a00!important;}
html[data-theme="light"] :where(.dashboard-alert-item.success,.notice-feed-item.success){
  background:linear-gradient(145deg,rgba(0,255,136,.10),#ffffff)!important;
  border-color:rgba(0,160,92,.18)!important;
}
html[data-theme="light"] :where(.dashboard-alert-item.success strong,.notice-feed-item.success strong){color:#087a45!important;}
html[data-theme="light"] :where(.study-chart,.chart-grid,.protected-media,.protected-media-frame,.protected-pdf-frame){
  background:#eef6ff!important;
  border-color:rgba(15,23,42,.10)!important;
}
html[data-theme="light"] :where(.xn-watermark){
  color:rgba(15,23,42,.10)!important;
}
html[data-theme="light"] :where(.toast,.ticket-success,.download-alert,.selected-files,.support-user-reply-box,.support-reply-thread,.ticket-detail-message,.alert-image-preview){
  background:#ffffff!important;
  color:#07111f!important;
  border-color:rgba(15,23,42,.12)!important;
}
html[data-theme="light"] :where(.admin-danger-btn){
  background:#fff1f2!important;
  color:#be123c!important;
  border-color:rgba(190,18,60,.20)!important;
}
html[data-theme="light"] :where(.auth-mini-footer,.compliance-footer,footer){
  background:#ffffff!important;
  color:#526174!important;
  border-color:rgba(15,23,42,.10)!important;
}

/* V22.32 alert severity contrast */
.dashboard-alert-item.warning,.notice-feed-item.warning{border-color:rgba(240,207,91,.44)!important;background:linear-gradient(145deg,rgba(240,207,91,.16),rgba(255,255,255,.045))!important;}
.dashboard-alert-item.warning strong,.notice-feed-item.warning strong{color:#ffd66b!important;}
.dashboard-alert-item.success,.notice-feed-item.success{border-color:rgba(0,255,136,.32)!important;background:linear-gradient(145deg,rgba(0,255,136,.12),rgba(255,255,255,.045))!important;}
.dashboard-alert-item.success strong,.notice-feed-item.success strong{color:#9fffc8!important;}



/* V22.34 bottom compliance notice: simple typography, not a heavy exotic card */
body:has(.legal-compliance-footer){
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
body:has(.legal-compliance-footer) > main{
  flex:1 0 auto;
}
.compliance-footer.legal-compliance-footer{
  flex-shrink:0;
  width:min(1480px,calc(100% - 64px))!important;
  margin:44px auto 28px!important;
  border:0!important;
  border-top:1px solid rgba(2,183,254,.22)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  padding:20px 0 0!important;
  color:var(--muted)!important;
}
.compliance-footer.legal-compliance-footer strong{
  color:var(--text)!important;
  font-size:15px!important;
  letter-spacing:0!important;
}
.compliance-footer.legal-compliance-footer p{
  max-width:1180px;
  color:var(--muted)!important;
  font-size:13px!important;
  line-height:1.65!important;
}
.compliance-footer.legal-compliance-footer nav{
  margin-top:12px!important;
  gap:8px!important;
}
.compliance-footer.legal-compliance-footer a{
  border:0!important;
  background:transparent!important;
  padding:2px 0!important;
  margin-right:16px!important;
  color:var(--primary-blue)!important;
  font-size:12px!important;
}

/* V22.34 journal layout: keep entry, summary and history inside card edges */
.journal-shell{
  width:min(1680px,calc(100% - 72px))!important;
  margin:0 auto!important;
  padding:30px 0 34px!important;
  overflow:visible!important;
}
.journal-layout{
  grid-template-columns:minmax(0,1fr) minmax(360px,.9fr)!important;
  gap:24px!important;
  align-items:start!important;
}
.journal-form-card,
.journal-summary-card,
.journal-history-card{
  padding:clamp(24px,2.2vw,36px)!important;
  overflow:visible!important;
}
.journal-form-card .section-heading,
.journal-history-card .section-heading{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:16px!important;
  margin:0 0 24px!important;
}
.journal-summary-card > .xn-eyebrow,
.journal-form-card .xn-eyebrow,
.journal-history-card .xn-eyebrow{
  display:block!important;
  margin:0 0 10px!important;
  line-height:1.2!important;
}
.journal-form-card h2,
.journal-summary-card h2,
.journal-history-card h2{
  margin:0 0 22px!important;
  line-height:1.1!important;
}
.journal-table-wrap{
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  overflow:auto!important;
}
.journal-table th:first-child,
.journal-table td:first-child{
  padding-left:18px!important;
}
@media(max-width:1100px){
  .journal-shell{width:min(100% - 32px,100%)!important;}
  .journal-layout{grid-template-columns:1fr!important;}
}
@media(max-width:720px){
  .journal-shell{width:calc(100% - 20px)!important;padding-top:18px!important;}
  .journal-form-card,.journal-summary-card,.journal-history-card{padding:22px 16px!important;}
}

/* V22.34 white theme final contrast layer */
html[data-theme="light"] body{
  background:#f5f7fb!important;
}
html[data-theme="light"] .compliance-footer.legal-compliance-footer{
  border-top-color:rgba(15,23,42,.16)!important;
  color:#526174!important;
}
html[data-theme="light"] .compliance-footer.legal-compliance-footer strong{
  color:#07111f!important;
}
html[data-theme="light"] .compliance-footer.legal-compliance-footer p{
  color:#526174!important;
}
html[data-theme="light"] .journal-form-card,
html[data-theme="light"] .journal-summary-card,
html[data-theme="light"] .journal-history-card,
html[data-theme="light"] .legal-document-card,
html[data-theme="light"] .dashboard-panel,
html[data-theme="light"] .dash-hero,
html[data-theme="light"] .dashboard-alert-panel{
  background:#ffffff!important;
  color:#07111f!important;
  border-color:rgba(15,23,42,.12)!important;
  box-shadow:0 16px 46px rgba(15,23,42,.08)!important;
}
html[data-theme="light"] .journal-table-wrap,
html[data-theme="light"] .journal-table,
html[data-theme="light"] .journal-table tbody,
html[data-theme="light"] .journal-table tr{
  background:#ffffff!important;
}
html[data-theme="light"] .journal-table th{
  color:#526174!important;
  background:#ffffff!important;
}
html[data-theme="light"] .journal-table td,
html[data-theme="light"] .journal-table td strong{
  color:#07111f!important;
}
html[data-theme="light"] .journal-table small{
  color:#526174!important;
}
html[data-theme="light"] .result-preview div,
html[data-theme="light"] .journal-summary-grid div,
html[data-theme="light"] .summary-breakdown div{
  background:#f8fbff!important;
  border-color:rgba(15,23,42,.10)!important;
  color:#07111f!important;
}
html[data-theme="light"] .result-preview strong,
html[data-theme="light"] .journal-summary-grid strong{
  color:#07111f!important;
}
html[data-theme="light"] .xn-button,
html[data-theme="light"] button,
html[data-theme="light"] .entry-delete{
  opacity:1!important;
}
html[data-theme="light"] .xn-button.ghost,
html[data-theme="light"] .entry-delete{
  background:#ffffff!important;
  color:#07111f!important;
  border-color:rgba(15,23,42,.18)!important;
  box-shadow:0 6px 18px rgba(15,23,42,.05)!important;
}
html[data-theme="light"] .xn-button.primary{
  background:#69f58b!important;
  color:#061108!important;
  border-color:rgba(0,160,92,.20)!important;
}
html[data-theme="light"] .xn-button.danger{
  background:#fff1f2!important;
  color:#be123c!important;
  border-color:rgba(190,18,60,.22)!important;
}
html[data-theme="light"] .xn-button.danger[disabled],
html[data-theme="light"] .xn-button.danger.disabled{
  background:#fff5f5!important;
  color:#dc2626!important;
}
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea{
  background:#ffffff!important;
  color:#07111f!important;
  border-color:rgba(15,23,42,.18)!important;
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder{
  color:#738098!important;
}

/* V22.34 complaint status table: clean duplicate-proof visual */
.complaint-status-table-wrap,
.legal-table-wrap{
  overflow:auto!important;
}
html[data-theme="light"] .legal-table,
html[data-theme="light"] .legal-table tbody,
html[data-theme="light"] .legal-table tr,
html[data-theme="light"] .legal-table td,
html[data-theme="light"] .legal-table th{
  background:#ffffff!important;
  color:#07111f!important;
  border-color:rgba(15,23,42,.10)!important;
}
html[data-theme="light"] .legal-table small{
  color:#526174!important;
}



/* V22.35 navbar bell notifications */
.legacy-alert-panel{display:none!important;}
.xn-notice-bell-wrap{
  position:relative;
  z-index:1100;
  margin-left:auto;
  flex:0 0 auto;
}
.xn-dashboard-nav .xn-notice-bell-wrap{
  margin-left:10px;
}
.xn-notice-bell{
  position:relative;
  width:52px;
  height:52px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(2,183,254,.26);
  border-radius:18px;
  background:rgba(255,255,255,.045);
  color:#fff;
  cursor:pointer;
  box-shadow:0 12px 32px rgba(0,0,0,.18);
}
.xn-notice-bell:hover,
.xn-notice-bell-wrap.is-open .xn-notice-bell{
  border-color:rgba(2,183,254,.50);
  background:rgba(2,183,254,.10);
}
.xn-bell-icon{
  font-size:21px;
  line-height:1;
  filter:saturate(.85);
}
.xn-notice-count{
  position:absolute;
  top:-5px;
  right:-5px;
  min-width:20px;
  height:20px;
  padding:0 5px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#ff4d4d;
  color:#fff;
  border:2px solid #050505;
  font-size:11px;
  font-weight:900;
}
.xn-notice-dropdown{
  position:absolute;
  top:calc(100% + 14px);
  right:0;
  width:min(420px,calc(100vw - 24px));
  max-height:min(620px,calc(100vh - 110px));
  overflow:hidden;
  border:1px solid rgba(2,183,254,.26);
  border-radius:22px;
  background:rgba(5,7,10,.98);
  box-shadow:0 28px 90px rgba(0,0,0,.58);
  backdrop-filter:blur(18px);
}
.xn-notice-head,
.xn-notice-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:16px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.xn-notice-foot{
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:0;
}
.xn-notice-head strong{
  display:block;
  color:#fff!important;
  font-size:18px;
  letter-spacing:-.02em;
}
.xn-notice-head small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
}
.xn-notice-head button,
.xn-notice-foot button{
  min-height:34px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.055);
  color:#fff;
  padding:0 12px;
  font-size:12px;
  font-weight:900;
}
.xn-notice-list{
  max-height:430px;
  overflow:auto;
  padding:10px;
  display:grid;
  gap:10px;
}
.xn-notice-item{
  position:relative;
  border:1px solid rgba(255,255,255,.09);
  border-radius:16px;
  background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.025));
  padding:13px;
}
.xn-notice-item.unread::before{
  content:"";
  position:absolute;
  top:16px;
  right:14px;
  width:9px;
  height:9px;
  border-radius:999px;
  background:#02b7fe;
  box-shadow:0 0 16px rgba(2,183,254,.55);
}
.xn-notice-item.warning{
  border-color:rgba(255,209,102,.36);
  background:linear-gradient(145deg,rgba(255,209,102,.10),rgba(255,255,255,.025));
}
.xn-notice-item.warning strong{color:#ffe073!important;}
.xn-notice-item.success{
  border-color:rgba(0,255,136,.24);
  background:linear-gradient(145deg,rgba(0,255,136,.08),rgba(255,255,255,.025));
}
.xn-notice-item.success strong{color:#81ffa6!important;}
.xn-notice-item span{
  display:block;
  color:#67c7ff;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding-right:20px;
}
.xn-notice-item strong{
  display:block;
  margin-top:7px;
  color:#fff!important;
  font-size:15px;
}
.xn-notice-item p{
  margin:7px 0 0;
  color:#d7e1ee;
  font-size:13px;
  line-height:1.55;
}
.xn-notice-image{
  width:100%;
  max-height:170px;
  object-fit:cover;
  border-radius:13px;
  border:1px solid rgba(255,255,255,.10);
  margin-bottom:10px;
}
.xn-notice-empty{
  padding:24px 14px;
  text-align:center;
}
.xn-notice-empty strong{
  display:block;
  color:#fff!important;
  font-size:16px;
}
.xn-notice-empty p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:13px;
}
@media(max-width:720px){
  .xn-dashboard-nav .xn-notice-bell-wrap{margin-left:4px;}
  .xn-notice-bell{width:48px;height:48px;border-radius:16px;}
  .xn-notice-dropdown{right:-66px;width:calc(100vw - 20px);}
}

/* V22.35 white theme bell polish */
html[data-theme="light"] .xn-notice-bell{
  background:#ffffff!important;
  color:#07111f!important;
  border-color:rgba(15,23,42,.14)!important;
  box-shadow:0 10px 26px rgba(15,23,42,.09)!important;
}
html[data-theme="light"] .xn-notice-bell:hover,
html[data-theme="light"] .xn-notice-bell-wrap.is-open .xn-notice-bell{
  border-color:rgba(2,183,254,.35)!important;
  background:rgba(2,183,254,.07)!important;
}
html[data-theme="light"] .xn-notice-count{
  border-color:#ffffff!important;
}
html[data-theme="light"] .xn-notice-dropdown{
  background:#ffffff!important;
  border-color:rgba(15,23,42,.12)!important;
  box-shadow:0 24px 70px rgba(15,23,42,.16)!important;
}
html[data-theme="light"] .xn-notice-head,
html[data-theme="light"] .xn-notice-foot{
  border-color:rgba(15,23,42,.10)!important;
}
html[data-theme="light"] .xn-notice-head strong,
html[data-theme="light"] .xn-notice-empty strong,
html[data-theme="light"] .xn-notice-item strong{
  color:#07111f!important;
}
html[data-theme="light"] .xn-notice-head small,
html[data-theme="light"] .xn-notice-empty p,
html[data-theme="light"] .xn-notice-item p{
  color:#526174!important;
}
html[data-theme="light"] .xn-notice-head button,
html[data-theme="light"] .xn-notice-foot button{
  background:#f8fbff!important;
  border-color:rgba(15,23,42,.12)!important;
  color:#07111f!important;
}
html[data-theme="light"] .xn-notice-item{
  background:#ffffff!important;
  border-color:rgba(15,23,42,.10)!important;
  box-shadow:0 8px 24px rgba(15,23,42,.05)!important;
}
html[data-theme="light"] .xn-notice-item span{
  color:#0357a8!important;
}
html[data-theme="light"] .xn-notice-item.warning{
  background:linear-gradient(145deg,rgba(255,209,102,.14),#ffffff)!important;
  border-color:rgba(218,165,32,.28)!important;
}
html[data-theme="light"] .xn-notice-item.warning strong{color:#9a6a00!important;}
html[data-theme="light"] .xn-notice-item.success{
  background:linear-gradient(145deg,rgba(0,255,136,.10),#ffffff)!important;
  border-color:rgba(0,160,92,.18)!important;
}
html[data-theme="light"] .xn-notice-item.success strong{color:#087a45!important;}



/* V22.36 support ticket/status cleanup */
.ticket-status-router-card{
  border:1px solid rgba(2,183,254,.18);
  border-radius:22px;
  background:rgba(2,183,254,.055);
  padding:20px;
}
.ticket-status-router-card h2{margin:8px 0 10px;}
.support-reply-locked{
  border:1px dashed rgba(255,255,255,.16);
  border-radius:16px;
  padding:14px;
  color:var(--muted);
  background:rgba(255,255,255,.035);
  font-weight:800;
}
.support-user-reply-box label{
  display:grid;
  gap:8px;
  margin-bottom:10px;
}
.support-user-reply-box label span,
.followup-file-field span{
  color:var(--muted);
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.followup-file-field input{
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  padding:12px;
  background:rgba(0,0,0,.26);
  color:#fff;
}
.followup-file-field small{
  color:var(--muted);
  font-size:12px;
}
.support-admin-reply-box{
  border:1px solid rgba(0,255,136,.18);
  background:rgba(0,255,136,.06);
  border-radius:16px;
  padding:14px;
}
.support-admin-reply-box strong{
  display:block;
  color:#fff!important;
  margin-bottom:8px;
}
.ticket-status-row + .support-ticket-detail-row td{
  padding-top:0!important;
}
.ticket-status-files{
  margin-top:10px;
}
.ticket-conversation-thread .followup-files{
  margin-top:10px;
}
html[data-theme="light"] .ticket-status-router-card,
html[data-theme="light"] .support-reply-locked,
html[data-theme="light"] .support-user-reply-box,
html[data-theme="light"] .support-admin-reply-box{
  background:#ffffff!important;
  color:#07111f!important;
  border-color:rgba(15,23,42,.12)!important;
}
html[data-theme="light"] .support-admin-reply-box{
  background:rgba(0,160,92,.07)!important;
  border-color:rgba(0,160,92,.18)!important;
}
html[data-theme="light"] .support-admin-reply-box strong{
  color:#07111f!important;
}
html[data-theme="light"] .followup-file-field input{
  background:#ffffff!important;
  color:#07111f!important;
  border-color:rgba(15,23,42,.14)!important;
}


.xn-unified-nav-links .xn-notice-bell-wrap{
  display:flex!important;
  align-items:center!important;
}
.xn-dashboard-nav .xn-unified-nav-links{
  flex-wrap:nowrap!important;
}
@media(max-width:980px){
}
@media(max-width:520px){
}



/* V22.44 homepage creative banner + footer copyright */
.xn-home-creative{
  margin-top:clamp(36px,6vw,84px);
  margin-bottom:clamp(34px,5vw,70px);
}
.xn-home-creative-card{
  display:block;
  position:relative;
  overflow:hidden;
  border:1px solid rgba(2,183,254,.28);
  border-radius:34px;
  background:
    radial-gradient(circle at 10% 18%,rgba(2,183,254,.18),transparent 34%),
    linear-gradient(135deg,rgba(2,183,254,.08),rgba(3,77,248,.10),rgba(0,0,0,.82));
  box-shadow:0 28px 90px rgba(0,0,0,.42), inset 0 0 0 1px rgba(255,255,255,.04);
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.xn-home-creative-card:hover{
  transform:translateY(-3px);
  border-color:rgba(2,183,254,.54);
  box-shadow:0 34px 110px rgba(2,183,254,.16),0 28px 90px rgba(0,0,0,.52);
}
.xn-home-creative-card img{
  display:block;
  width:100%;
  min-height:180px;
  object-fit:cover;
}
.xn-home-creative-fallback{
  display:none;
  padding:28px;
}
.xn-home-creative-fallback strong{
  color:#fff;
  font-size:clamp(28px,5vw,64px);
}
.xn-home-creative-fallback small{
  color:var(--muted);
  font-size:20px;
}
.platform-footer{
  position:relative;
}
.footer-copyright{
  grid-column:1/-1;
  display:flex;
  flex-wrap:wrap;
  gap:12px 18px;
  align-items:center;
  justify-content:space-between;
  margin-top:26px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.08);
  color:#8f98a5;
  font-size:13px;
}
.footer-copyright span:first-child{
  color:#dbeafe;
  font-weight:900;
}
html[data-theme="light"] .footer-copyright{
  color:#475569;
  border-top-color:rgba(15,23,42,.10);
}
html[data-theme="light"] .footer-copyright span:first-child{
  color:#034df8;
}



/* V22.46 homepage trader development system */
.xn-products-system{margin-top:clamp(42px,7vw,96px);margin-bottom:clamp(36px,6vw,84px);}
.xn-products-head{max-width:980px;margin-bottom:26px;}
.xn-products-head h2{margin:10px 0 12px;font-size:clamp(38px,5.8vw,78px);line-height:.98;letter-spacing:-.055em;color:#fff;}
.xn-products-head p:not(.section-eyebrow){margin:0;color:#b8c2cf;font-size:clamp(16px,1.5vw,22px);line-height:1.65;}
.xn-product-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;}
.xn-product-card{position:relative;overflow:hidden;min-height:280px;border:1px solid rgba(255,255,255,.10);border-radius:28px;padding:24px;background:radial-gradient(circle at 16% 0%,rgba(2,183,254,.16),transparent 32%),linear-gradient(145deg,rgba(11,17,23,.92),rgba(4,5,6,.98));box-shadow:0 24px 80px rgba(0,0,0,.32);display:grid;align-content:start;gap:12px;}
.xn-product-card span{width:max-content;padding:7px 10px;border-radius:999px;background:rgba(2,183,254,.10);color:#7dd8ff;font-size:11px;letter-spacing:.10em;text-transform:uppercase;font-weight:950;}
.xn-product-card h3{margin:0;color:#fff;font-size:24px;line-height:1.1;}
.xn-product-card p{margin:0;color:#aeb8c6;line-height:1.58;}
.xn-product-card strong{margin-top:auto;color:#72ff9f;font-size:14px;}
.xn-tier-matrix{margin-top:20px;border:1px solid rgba(255,255,255,.10);border-radius:24px;overflow:hidden;background:rgba(255,255,255,.035);}
.matrix-row{display:grid;grid-template-columns:1.5fr repeat(4,1fr);gap:0;}
.matrix-row span{padding:15px 16px;border-right:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08);color:#cbd5e1;font-weight:800;}
.matrix-row span:last-child{border-right:0}.matrix-row:last-child span{border-bottom:0}.matrix-head span{color:#fff;background:rgba(2,183,254,.10);font-size:12px;text-transform:uppercase;letter-spacing:.08em;}
@media(max-width:1180px){.xn-product-cards{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:760px){.xn-product-cards{grid-template-columns:1fr}.xn-tier-matrix{overflow:auto}.matrix-row{min-width:760px}}
html[data-theme="light"] .xn-products-head h2,html[data-theme="light"] .xn-product-card h3{color:#0f172a;}
html[data-theme="light"] .xn-products-head p:not(.section-eyebrow),html[data-theme="light"] .xn-product-card p{color:#475569;}
html[data-theme="light"] .xn-product-card{border-color:rgba(15,23,42,.10);background:radial-gradient(circle at 16% 0%,rgba(2,183,254,.13),transparent 32%),linear-gradient(145deg,rgba(255,255,255,.96),rgba(248,250,252,.98));box-shadow:0 24px 70px rgba(15,23,42,.10);}
html[data-theme="light"] .xn-tier-matrix{background:rgba(255,255,255,.88);border-color:rgba(15,23,42,.10);}
html[data-theme="light"] .matrix-row span{color:#334155;border-color:rgba(15,23,42,.08);}
html[data-theme="light"] .matrix-head span{color:#034df8;background:rgba(3,77,248,.08);}



/* V22.48 homepage Pro / Elite product note */
.xn-tier-note{
  margin:14px 0 0;
  color:#9fb0c5;
  line-height:1.55;
  font-weight:750;
}
html[data-theme="light"] .xn-tier-note{
  color:#475569;
}



/* V22.49 homepage product visuals + hero fixes */
.hero-section{isolation:isolate;}
.xn-products-head h2{margin:10px 0 12px;font-size:clamp(30px,4vw,50px);line-height:1.02;letter-spacing:-.04em;}
.xn-products-head p:not(.section-eyebrow){max-width:960px;color:#b8c2cf;line-height:1.65;}
.xn-product-cards-visual{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-top:22px;}
.xn-product-card.visual-card{min-height:540px;padding:18px 18px 22px;display:grid;grid-template-rows:auto auto auto 1fr auto;gap:12px;}
.xn-product-visual{border:1px solid rgba(255,255,255,.08);border-radius:24px;overflow:hidden;background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));min-height:220px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.02);}
.xn-product-visual img{display:block;width:100%;height:220px;object-fit:cover;}
.xn-product-card.visual-card h3{font-size:20px;line-height:1.08;}
.xn-product-card.visual-card p{font-size:14px;}
.xn-product-card.visual-card strong{display:inline-flex;align-items:center;justify-content:center;min-height:38px;border:1px solid rgba(105,245,139,.18);border-radius:999px;padding:0 14px;background:rgba(105,245,139,.07);width:max-content;color:#8AF8AC;font-size:12px;letter-spacing:.02em;}
.xn-product-note{margin:16px 0 0;color:#9fb0c5;line-height:1.6;font-weight:700;}
@media(max-width:1180px){.xn-product-cards-visual{grid-template-columns:repeat(2,minmax(0,1fr));}.hero-copy{max-width:min(720px,58vw);}}
@media(max-width:760px){.hero-copy{max-width:100%;}.hero-bg-logo{object-position:center bottom;opacity:.10;transform:scale(1.12);}.xn-product-cards-visual{grid-template-columns:1fr;}.xn-product-card.visual-card{min-height:auto;}}
html[data-theme="light"] .xn-products-head p:not(.section-eyebrow),html[data-theme="light"] .xn-product-note{color:#475569;}
html[data-theme="light"] .xn-product-visual{border-color:rgba(15,23,42,.10);background:linear-gradient(180deg,rgba(255,255,255,.88),rgba(246,250,255,.92));}

/* V22.50 homepage product cards image-first */
.image-only-grid{
  margin-top:24px;
}
.xn-product-card.image-card-only{
  min-height:340px;
  padding:14px;
  background:radial-gradient(circle at 14% 0%,rgba(2,183,254,.16),transparent 32%),linear-gradient(145deg,rgba(10,16,24,.94),rgba(4,6,10,.98));
}
.xn-product-visual-link{
  position:relative;
  display:block;
  text-decoration:none;
  color:inherit;
}
.xn-product-card.image-card-only .xn-product-visual{
  min-height:300px;
  border-radius:24px;
}
.xn-product-card.image-card-only .xn-product-visual img{
  height:300px;
}
.xn-product-overlay{
  position:absolute;
  inset:auto 14px 14px 14px;
  padding:14px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(6,10,16,.12),rgba(6,10,16,.92));
  backdrop-filter:blur(10px);
  display:grid;
  gap:8px;
}
.xn-product-overlay span{
  width:max-content;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(2,183,254,.14);
  color:#7dd8ff;
  font-size:11px;
  letter-spacing:.10em;
  text-transform:uppercase;
  font-weight:950;
}
.xn-product-overlay h3{
  margin:0;
  font-size:22px;
  color:#fff;
  line-height:1.05;
}
.xn-product-overlay strong{
  display:inline-flex;
  width:max-content;
  min-height:34px;
  align-items:center;
  border:1px solid rgba(105,245,139,.18);
  border-radius:999px;
  padding:0 12px;
  background:rgba(105,245,139,.08);
  color:#8AF8AC;
  font-size:12px;
}
@media(max-width:1180px){
  .xn-product-card.image-card-only{min-height:320px;}
}
@media(max-width:760px){
  .xn-product-card.image-card-only .xn-product-visual,
  .xn-product-card.image-card-only .xn-product-visual img{min-height:260px;height:260px;}
}
html[data-theme="light"] .xn-product-overlay{
  background:linear-gradient(180deg,rgba(255,255,255,.32),rgba(255,255,255,.94));
  border-color:rgba(15,23,42,.08);
}
html[data-theme="light"] .xn-product-overlay h3{color:#0f172a;}


/* V22.51 product image cards without duplicate overlay text */
.product-image-showcase .xn-product-card.image-card-only{min-height:0;padding:12px;border-radius:30px;transition:transform .24s ease,border-color .24s ease,box-shadow .24s ease;}
.product-image-showcase .xn-product-card.image-card-only:hover{transform:translateY(-6px);border-color:rgba(2,183,254,.34);box-shadow:0 28px 88px rgba(2,183,254,.13),0 24px 80px rgba(0,0,0,.42);}
.product-image-showcase .xn-product-card.image-card-only .xn-product-visual{min-height:0;aspect-ratio:4/5;border-radius:24px;}
.product-image-showcase .xn-product-card.image-card-only .xn-product-visual img{height:100%;width:100%;object-fit:cover;object-position:center;}
.product-image-showcase .xn-product-overlay{display:none!important;}
@media(max-width:1180px){.product-image-showcase{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:760px){.product-image-showcase{grid-template-columns:1fr;}.product-image-showcase .xn-product-card.image-card-only .xn-product-visual{aspect-ratio:4/5;}.product-image-showcase .xn-product-card.image-card-only .xn-product-visual img{height:100%;min-height:0;}}


/* V22.53 homepage product image cards: show full cards, no clipping */
.product-image-showcase .xn-product-card.image-card-only .xn-product-visual img{object-fit:contain!important;object-position:center!important;background:#02060a!important;padding:8px!important;}
.product-image-showcase .xn-product-card.image-card-only{box-shadow:0 22px 78px rgba(2,183,254,.08),0 20px 70px rgba(0,0,0,.38)!important;}
.product-image-showcase .xn-product-card.image-card-only:hover{box-shadow:0 0 0 1px rgba(114,255,159,.16),0 28px 96px rgba(2,183,254,.18),0 24px 80px rgba(0,0,0,.45)!important;}


/* V11: cleaner light theme for app pages. Homepage stays dark-only. */
html[data-theme="light"] body:not(.admin-body) {
  background: radial-gradient(circle at top left, rgba(10,132,255,.10), transparent 36%), #f6f8fb;
  color: #101828;
}
html[data-theme="light"] :where(.xn-nav,.dashboard-panel,.dash-hero,.prime-score-card,.xn-card,.auth-mini-footer,.legal-compliance-footer,.course-shell,.course-main,.course-header,.workspace-card) {
  background-color: rgba(255,255,255,.92);
  border-color: rgba(16,24,40,.14);
  box-shadow: 0 18px 48px rgba(16,24,40,.08);
}
html[data-theme="light"] :where(.xn-subtitle,.admin-muted,.hero-copy p,.panel-head p,.workspace-disclaimer,.legal-compliance-footer p, .auth-mini-footer span) {
  color: #475467;
}
html[data-theme="light"] :where(input,select,textarea) {
  background: #ffffff;
  color: #101828;
  border-color: rgba(16,24,40,.18);
}
html.home-dark-only, html.home-dark-only body {
  color-scheme: dark;
}

/* v66 persistent Prime activation */
.xn-prime-activation-bar{position:sticky;top:0;z-index:85;display:flex;align-items:center;justify-content:center;gap:24px;padding:11px 20px;border-bottom:1px solid rgba(39,178,255,.28);background:linear-gradient(90deg,rgba(3,18,38,.97),rgba(10,42,78,.97),rgba(3,18,38,.97));box-shadow:0 14px 34px rgba(0,0,0,.24);color:#fff}.xn-prime-activation-bar span{display:flex;align-items:center;gap:12px}.xn-prime-activation-bar small{color:#aebed4}.xn-prime-activation-bar a{display:inline-flex;padding:9px 15px;border-radius:999px;background:#1ba7ff;color:#03101d!important;font-weight:900;text-decoration:none}@media(max-width:720px){.xn-prime-activation-bar{position:relative;flex-direction:column;text-align:center;gap:8px}.xn-prime-activation-bar span{flex-direction:column;gap:3px}}
