/* EcomSync — glass design system (matches the DigitalNexus SocialMedia Engine look).
   Tokens: violet accent (262 90% 68%), cyan (192 95% 60%), pink (318 85% 65%), frosted glass surfaces. */
:root {
  color-scheme: light;
  --royal: #1b2f7a; --royal-2: #2c4bc4; --royal-3: #4f6fe0; --gold: #b8892f; --gold-2: #d9b45a; --gold-soft: rgba(201,161,74,.18);
  --accent: var(--royal-2); --accent-strong: var(--royal); --accent-2: var(--gold-2); --accent-3: var(--gold);
  --accent-tint: rgba(44,75,196,.10); --accent-ring: rgba(44,75,196,.45);
  --bg: #eef1f9; --ink: #0f1733; --ink-2: #33405f; --muted: #66708a;
  --glass: rgba(255,255,255,.62); --glass-strong: rgba(255,255,255,.8); --glass-line: rgba(255,255,255,.85); --hair: rgba(15,23,51,.09);
  --shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 2px 6px -1px rgba(15,23,70,.08), 0 18px 40px -14px rgba(20,35,110,.22);
  --ok: #0f7a55; --ok-bg: rgba(16,150,100,.12); --bad: #b42318; --bad-bg: rgba(220,38,38,.1); --warn: #9a6a12; --warn-bg: rgba(201,161,74,.2);
  --r-xl: 28px; --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --blur: blur(28px) saturate(180%); --ease: cubic-bezier(.2,.8,.2,1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070d24; --ink: #e8ecfa; --ink-2: #c3cbe6; --muted: #8e98b8;
  --glass: rgba(18,28,66,.6); --glass-strong: rgba(22,34,80,.8); --glass-line: rgba(255,255,255,.08); --hair: rgba(255,255,255,.09);
  --shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 2px 6px -1px rgba(0,0,0,.35), 0 18px 40px -14px rgba(0,0,0,.6);
  --accent: #8fa8ff; --accent-strong: #c9d5ff; --accent-tint: rgba(110,140,255,.16); --gold: #e2bf6b; --gold-soft: rgba(226,191,107,.16);
  --ok: #4ade80; --bad: #f87171; --warn: #f3c969; --warn-bg: rgba(226,191,107,.16);
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 96px; }
body { margin: 0; font: 15px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); overflow-x: clip; min-height: 100vh; }
/* soft colour fields behind the glass */
body::before, body::after { content: ""; position: fixed; z-index: -1; border-radius: 50%; filter: blur(80px); pointer-events: none; }
body::before { width: 60vw; height: 60vw; left: -18vw; top: -22vw; background: radial-gradient(circle, rgba(44,75,196,.38), transparent 65%); }
body::after { width: 55vw; height: 55vw; right: -16vw; bottom: -20vw; background: radial-gradient(circle, rgba(217,180,90,.30), transparent 65%), radial-gradient(circle at 10% 90%, rgba(27,47,122,.28), transparent 60%); }
:root[data-theme="dark"] body::before { opacity: .55; } :root[data-theme="dark"] body::after { opacity: .45; }
a { color: var(--accent-strong); } :root[data-theme="dark"] a:not(.btn):not(.brand):not(.nav-link):not(.powered) { color: var(--accent); }
.hidden { display: none !important; }
.glass { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--glass-line); box-shadow: var(--shadow); }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 12px; z-index: 30; margin: 12px; padding: 10px; border-radius: 20px; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.55); backdrop-filter: blur(28px) saturate(1.8); -webkit-backdrop-filter: blur(28px) saturate(1.8); box-shadow: var(--shadow); border: 1px solid var(--glass-line); }
:root[data-theme="dark"] .topbar { background: rgba(18,28,66,.65); }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); cursor: pointer; transition: transform .15s var(--ease), background .2s; }
.icon-btn:hover { background: var(--accent-tint); } .icon-btn:active { transform: scale(.94); }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #2c4bc4, #14245f); box-shadow: 0 6px 18px -6px rgba(27,47,122,.7), inset 0 0 0 1px rgba(217,180,90,.55); }
.brand b { display: block; font-size: 15px; line-height: 1.2; } .brand small { color: var(--muted); font-size: 12px; }
.page-title { margin-right: auto; font-weight: 650; font-size: 16px; padding-left: 4px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; background: linear-gradient(135deg, #d9b45a, #a8781f); border: 3px solid var(--glass-strong); }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(8,14,40,.3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.drawer { position: fixed; z-index: 50; top: 12px; bottom: 12px; left: 12px; width: min(320px, calc(100vw - 24px)); border-radius: var(--r-xl); padding: 16px; display: flex; flex-direction: column; gap: 6px;
  background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--glass-line); box-shadow: var(--shadow);
  transform: translateX(calc(-100% - 24px)); transition: transform .3s var(--ease); }
body.menu-open .drawer { transform: none; } body.menu-open .scrim { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.drawer-label { color: var(--muted); font-size: 12px; font-weight: 600; margin: 10px 10px 4px; }
.drawer nav { display: flex; flex-direction: column; gap: 4px; }
.drawer nav button, .drawer .nav-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border-radius: var(--r-md); border: 1px solid transparent; background: none; color: var(--ink-2); font: inherit; font-weight: 550; cursor: pointer; text-align: left; text-decoration: none; min-height: 46px; }
.drawer nav button:hover, .drawer .nav-link:hover { background: var(--accent-tint); }
.drawer nav button.active { color: var(--accent-strong); background: linear-gradient(90deg, rgba(44,75,196,.14), rgba(217,180,90,.12)); border-color: rgba(201,161,74,.55); box-shadow: inset 3px 0 0 var(--gold); }
:root[data-theme="dark"] .drawer nav button.active { color: #f1d999; }
.drawer-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--hair); padding-top: 10px; }
@media (min-width: 1180px) {
  body.has-drawer { padding-left: 336px; }
  body.has-drawer .drawer { transform: none; }
  body.has-drawer #btnMenu, body.has-drawer #btnCloseMenu { display: none; }
  body.has-drawer .scrim { display: none; }
}

/* ---------- layout ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 8px 16px 40px; }
.view { animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view, .drawer, .scrim { animation: none !important; transition: none !important; } }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--r-lg); margin-bottom: 16px; }
.page-head h1 { font-size: 22px; line-height: 1.2; margin: 0; } .page-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.card { border-radius: var(--r-lg); padding: 20px; margin-bottom: 16px; background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--glass-line); box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
h2 { font-size: 17px; margin: 0; letter-spacing: -.01em; } h3 { font-size: 14px; margin: 16px 0 8px; } .muted { color: var(--muted); font-size: 13px; }
.grid2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; } @media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 14px 0; }
.stat { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--glass-line); box-shadow: var(--shadow); }
.stat .tile { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-strong); flex: none; }
.stat.ok .tile { background: var(--ok-bg); color: var(--ok); } .stat.bad .tile { background: var(--bad-bg); color: var(--bad); } .stat.warn .tile { background: var(--warn-bg); color: var(--warn); }
.stat .tile { box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.stat.cyan .tile { background: rgba(27,47,122,.1); color: var(--royal); } .stat.pink .tile { background: var(--gold-soft); color: var(--gold); }
:root[data-theme="dark"] .stat.cyan .tile { color: #a9bcff; background: rgba(110,140,255,.14); }
.stat b { display: block; font-size: 22px; line-height: 1.15; white-space: nowrap; } .stat span { color: var(--muted); font-size: 13px; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); padding: 10px 18px; border-radius: 14px; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; text-decoration: none; transition: transform .12s var(--ease), box-shadow .2s, background .2s; }
.btn:hover { background: var(--accent-tint); } .btn:active { transform: scale(.97); } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { color: #fff; border-color: rgba(217,180,90,.6); background: linear-gradient(135deg, #2c4bc4, #172a6e); box-shadow: 0 10px 24px -10px rgba(23,42,110,.75), inset 0 1px 0 rgba(255,255,255,.18); }
.btn.primary:hover { background: linear-gradient(135deg, #3355d6, #1b3080); }
.btn.danger { color: var(--bad); } .btn.sm { padding: 5px 12px; min-height: 34px; font-size: 13px; border-radius: 11px; } .btn.big { padding: 13px 28px; font-size: 16px; }
:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0; } .form-row > label { flex: 1; min-width: 210px; }
label { display: block; font-weight: 600; font-size: 13px; color: var(--ink-2); } label .req { color: var(--bad); }
input, select, textarea { width: 100%; margin-top: 5px; padding: 11px 13px; border: 1px solid var(--hair); border-radius: 13px; background: var(--glass-strong); color: var(--ink); font: inherit; font-size: 16px; min-height: 46px; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
input.invalid, select.invalid { border-color: var(--bad); box-shadow: 0 0 0 4px var(--bad-bg); }
.field-err { display: block; color: var(--bad); font-size: 12px; font-weight: 500; margin-top: 3px; } .field-err:empty { display: none; }
textarea { min-height: 360px; font: 12px/1.45 ui-monospace, Consolas, monospace; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; } .check input { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; accent-color: var(--accent-strong); }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--hair); background: var(--glass-strong); cursor: pointer; flex: 1; min-width: 240px; font-weight: 500; }
.choice:has(input:checked) { border-color: rgba(201,161,74,.7); background: var(--accent-tint); }
.choice input { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; accent-color: var(--accent-strong); }
.err { color: var(--bad); font-size: 13px; margin: 6px 0; } .err:empty { display: none; }
.okmsg { color: var(--ok); font-size: 13px; font-weight: 600; margin: 6px 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.checks label { font-weight: 500; display: flex; gap: 8px; align-items: center; border: 1px solid var(--hair); padding: 8px 12px; border-radius: 12px; background: var(--glass-strong); }
.checks input { width: 17px; height: 17px; min-height: 0; margin: 0; accent-color: var(--accent-strong); }
.status-line { margin-top: 10px; font-weight: 600; }
.list { border: 1px solid var(--hair); border-radius: var(--r-md); max-height: 240px; overflow: auto; background: var(--glass-strong); }
.list div { padding: 10px 14px; border-bottom: 1px solid var(--hair); } .list div:last-child { border: 0; }
.empty { color: var(--muted); }

/* ---------- tabs, tables ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--hair); overflow-x: auto; width: fit-content; max-width: 100%; margin-top: 12px; }
.tabs button { background: none; border: 0; padding: 8px 14px; border-radius: 10px; cursor: pointer; color: var(--muted); font: inherit; font-weight: 600; min-height: 38px; flex: none; }
.tabs button.active { background: var(--glass-strong); color: var(--accent-strong); box-shadow: 0 1px 4px rgba(15,23,70,.12), inset 0 -2px 0 var(--gold); }
:root[data-theme="dark"] .tabs button.active { color: #f1d999; }
.toolbar { display: flex; gap: 10px; align-items: center; margin: 12px 0; flex-wrap: wrap; } .toolbar input { max-width: 340px; margin: 0; }
.table-wrap { max-height: 520px; overflow: auto; border-radius: var(--r-md); background: var(--glass-strong); border: 1px solid var(--hair); } .table-wrap.short { max-height: 340px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
th { position: sticky; top: 0; z-index: 1; text-align: left; padding: 12px 14px; white-space: nowrap; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
  background: rgba(255,255,255,.82); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--hair); }
:root[data-theme="dark"] th { background: rgba(22,34,80,.92); }
td { padding: 12px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; } tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(44,75,196,.05); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lvl-error { color: var(--bad); font-weight: 600; } .lvl-warning { color: var(--warn); font-weight: 600; } .lvl-fixed { color: var(--ok); font-weight: 600; white-space: nowrap; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--hair); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.violet { background: var(--accent-tint); color: var(--accent-strong); }
.pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 10px; }
.progress { height: 10px; background: var(--hair); border-radius: 99px; overflow: hidden; margin-top: 14px; }
.progress div { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--royal-2, #2c4bc4), var(--gold-2, #d9b45a)); transition: width .3s var(--ease); }
pre { background: var(--glass-strong); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 12px; overflow: auto; font-size: 13px; }
details { border: 1px solid var(--hair); border-radius: var(--r-md); padding: 10px 14px; margin-bottom: 8px; background: var(--glass-strong); } summary { cursor: pointer; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-bottom: 16px; }
.step { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); font-weight: 600; color: var(--muted); background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.step span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--hair); font-size: 13px; flex: none; }
.step.done { color: var(--ok); } .step.done span { background: var(--ok); color: #fff; }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* ---------- banners, toast, modal ---------- */
.banner { padding: 13px 16px; border-radius: var(--r-md); margin-bottom: 16px; font-weight: 600; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; border: 1px solid transparent; }
.banner.bad { background: var(--bad-bg); color: var(--bad); border-color: rgba(239,68,68,.25); } .banner.warn { background: var(--warn-bg); color: var(--warn); border-color: rgba(245,158,11,.3); } .banner.ok { background: var(--ok-bg); color: var(--ok); }
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(120px); padding: 12px 20px; border-radius: 14px; z-index: 70; max-width: 90vw; font-weight: 600;
  background: rgba(12,20,52,.92); color: #fff; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: transform .3s var(--ease); }
#toast.show { transform: translateX(-50%) translateY(0); }
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(8,14,40,.36); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal .card { width: min(560px, 100%); max-height: 90vh; overflow: auto; margin: 0; background: var(--glass-strong); }

/* ---------- public pages ---------- */
.site-main { max-width: 1180px; margin: 0 auto; padding: 0 16px 40px; }
.hero { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 28px; align-items: center; padding: clamp(28px,5vw,64px) 8px; }
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; } }
.hero h1 { color: var(--royal); font-size: clamp(32px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -.02em; margin: 0 0 16px; text-wrap: balance; }
.hero p.lead { font-size: 17px; color: var(--ink-2); max-width: 58ch; margin: 0 0 12px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.flow { border-radius: var(--r-xl); padding: 22px; }
.flow svg { width: 100%; height: auto; display: block; }
.section-title { font-size: 24px; margin: 36px 8px 14px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.feature { padding: 20px; border-radius: var(--r-lg); }
.feature .tile { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 12px; background: var(--accent-tint); color: var(--accent-strong); }
.feature h3 { margin: 0 0 6px; font-size: 16px; } .feature p { margin: 0; color: var(--muted); font-size: 14px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.plan { padding: 22px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 6px; }
.plan .price { font-size: 32px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; } .plan .price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.plan ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 16px; }
.auth { max-width: 480px; margin: 24px auto 40px; padding: 0 16px; }
.codes { font-family: ui-monospace, Consolas, monospace; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.codes div { padding: 8px 10px; border-radius: 10px; background: var(--glass-strong); border: 1px solid var(--hair); text-align: center; }
@media (max-width: 600px) { main { padding: 4px 10px 32px; } .card { padding: 16px; } .topbar { margin: 8px; top: 8px; } }

.powered { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 600; text-decoration: none; padding: 6px 10px; }
.powered:hover { color: var(--ink); } .powered img { border-radius: 5px; }
.powered-line { text-align: center; margin-top: 18px; }
footer > div { margin: 4px 0; }
:root[data-theme="dark"] .hero h1 { color: #f3f5ff; }
.page-head h1 { color: var(--royal); } :root[data-theme="dark"] .page-head h1 { color: #f3f5ff; }
.plan { border-top: 3px solid var(--gold-2, #d9b45a); }
.plan .price { color: var(--royal); } :root[data-theme="dark"] .plan .price { color: #f1d999; }
.qr-box { display: grid; place-items: center; padding: 14px; margin: 10px 0 14px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--hair); }
.qr-box img { width: 220px; height: 220px; image-rendering: pixelated; }
.qr-manual { margin-bottom: 14px; } .qr-manual summary { cursor: pointer; font-weight: 600; color: var(--accent-strong); }
#mfaSecret { font-size: 18px; letter-spacing: .08em; user-select: all; }

/* ---------- Plan & Account ---------- */
#toast:not(.show) { opacity: 0; pointer-events: none; }
.acct-hero { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 16px; margin-bottom: 16px; }
@media (max-width: 980px) { .acct-hero { grid-template-columns: 1fr; } }
.lic-card { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 26px; color: #fff;
  background: radial-gradient(520px 240px at 100% 0%, rgba(217,180,90,.32), transparent 60%), radial-gradient(420px 260px at 0% 120%, rgba(60,95,230,.55), transparent 60%), linear-gradient(150deg, #0c1a45, #14287a);
  box-shadow: 0 26px 50px -26px rgba(12,26,69,.75), inset 0 1px 0 rgba(255,255,255,.12); animation: rise .45s var(--ease); }
.lic-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.09) 45%, transparent 60%); transform: translateX(-100%); animation: sheen 5.5s ease-in-out 1s infinite; pointer-events: none; }
@keyframes sheen { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.lic-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lic-kicker { color: #d9c48d; font-size: 13px; font-weight: 600; }
.lic-card h2 { font-size: 30px; letter-spacing: -.02em; margin: 4px 0 0; color: #fff; }
.lic-status { padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; white-space: nowrap; background: rgba(255,255,255,.12); }
.lic-status.ok { background: rgba(74,222,128,.18); color: #8ff0b6; } .lic-status.warn { background: rgba(243,201,105,.2); color: #f6d98a; } .lic-status.bad { background: rgba(248,113,113,.2); color: #fca5a5; }
.lic-meta { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin: 22px 0 18px; }
.lic-meta span { display: block; color: #aebbe0; font-size: 12.5px; } .lic-meta b { font-size: 16px; }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .02em; }
@media (max-width: 560px) { .lic-meta { grid-template-columns: 1fr 1fr; } .lic-card h2 { font-size: 24px; } }
.lic-days { display: flex; align-items: center; gap: 12px; } .lic-days span { font-size: 13.5px; font-weight: 600; color: #e6ebff; white-space: nowrap; }
.lic-bar { flex: 1; height: 8px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.lic-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #e8cf8b, #c9a24a); transition: width 1s var(--ease); }
.lic-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.btn-goldx, .btn-glassx { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 14px; font: inherit; font-weight: 700; cursor: pointer; border: 0; transition: transform .12s var(--ease); }
.btn-goldx { color: #0a1634; background: linear-gradient(135deg, #f0d891, #c9a24a); box-shadow: 0 10px 24px -12px rgba(201,162,74,.9); }
.btn-glassx { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); }
.btn-goldx:active, .btn-glassx:active { transform: scale(.97); }
.usage-card { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.meter-head { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--ink-2); } .meter-head b { color: var(--ink); }
.meter-bar { height: 8px; border-radius: 99px; background: var(--accent-tint); overflow: hidden; margin: 8px 0 4px; }
.meter-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--royal-2), var(--royal-3)); transition: width .9s var(--ease); }
.meter-bar i.hot { background: linear-gradient(90deg, #d9b45a, #b8892f); } .meter-bar.full i { width: 100%; background: linear-gradient(90deg, rgba(44,75,196,.35), rgba(217,180,90,.5)); }
.plan-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 14px 0; }
.plan-opt { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r-lg); cursor: pointer; background: var(--glass-strong); border: 1.5px solid var(--hair); transition: border-color .2s, box-shadow .2s, transform .15s var(--ease); }
.plan-opt:hover { transform: translateY(-2px); }
.plan-opt input { position: absolute; opacity: 0; }
.plan-opt:has(input:checked) { border-color: var(--gold); box-shadow: 0 16px 30px -20px rgba(184,137,47,.8), inset 0 0 0 1px var(--gold); }
.plan-opt:has(input:focus-visible) { outline: 3px solid var(--accent-ring); outline-offset: 2px; }
.po-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-right: 26px; } .po-head b { font-size: 16px; }
.po-head em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--royal); background: var(--accent-tint); padding: 3px 8px; border-radius: 99px; }
.po-price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--royal); } .po-price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.po-li { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-2); } .po-li svg { width: 16px; height: 16px; color: var(--ok); }
.po-dot { position: absolute; top: 18px; right: 16px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--hair); }
.plan-opt:has(input:checked) .po-dot { border: 6px solid var(--gold); }
.pay-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pay-note { display: inline-flex; align-items: center; gap: 6px; } .pay-note svg { width: 16px; height: 16px; color: var(--ok); }
.card-title { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; } .card-title h2 { margin: 0; } .card-title p { margin: 2px 0 0; }
.ct-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; color: var(--royal); background: var(--accent-tint); }
#formPw label { display: block; margin-bottom: 12px; }
.sec-list { display: flex; flex-direction: column; }
.sec-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hair); }
.sec-item:first-child { border-top: 0; } .sec-item b { display: block; font-size: 14.5px; } .sec-item span { color: var(--muted); font-size: 13px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.contact-tile { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); text-decoration: none; color: var(--ink); background: var(--glass-strong); border: 1px solid var(--hair); transition: transform .15s var(--ease), border-color .2s; }
.contact-tile:hover { transform: translateY(-2px); border-color: var(--gold-2); }
.contact-tile > svg { width: 38px; height: 38px; padding: 9px; border-radius: 12px; color: var(--royal); background: var(--accent-tint); }
.contact-tile.wa > svg { color: #128c4b; background: rgba(18,140,75,.12); }
.contact-tile b { display: block; font-size: 13px; color: var(--muted); font-weight: 600; } .contact-tile span { font-weight: 650; font-size: 14.5px; overflow-wrap: anywhere; }
.help-addr { margin: 14px 0 0; }
:root[data-theme="dark"] .contact-tile, :root[data-theme="dark"] .plan-opt { color: var(--ink); }
:root[data-theme="dark"] .po-price, :root[data-theme="dark"] .ct-ico, :root[data-theme="dark"] .contact-tile > svg { color: #c9d5ff; }
:root[data-theme="dark"] .po-head em { color: #f1d999; background: var(--gold-soft); }
@media (prefers-reduced-motion: reduce) { .lic-card, .lic-card::after { animation: none !important; } .lic-bar i, .meter-bar i { transition: none; } }
.po-head em, .sec-item .btn { white-space: nowrap; flex: none; }
.contact-grid { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
/* request-access picture check */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.captcha-block { margin: 6px 0 12px; padding: 14px; border-radius: var(--r-md); background: var(--accent-tint); border: 1px solid var(--hair); }
.cap-label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 8px; }
.cap-row { display: flex; align-items: center; gap: 10px; }
.cap-row img { width: 200px; height: 64px; border-radius: 10px; background: #eef2fb; box-shadow: inset 0 0 0 1px var(--hair); }
.cap-input { display: block; margin-top: 10px; } .cap-input input { letter-spacing: .3em; font-weight: 700; max-width: 220px; }
.cap-help { margin: 6px 0 0; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.warn-choice { margin: 10px 0; border-color: rgba(217,150,40,.45); background: rgba(243,201,105,.12); }

/* ---------- EcomSync additions ---------- */
#setupList { grid-template-columns: repeat(5, minmax(0,1fr)); }
#setupList .step { font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
#setupList .step:hover { background: var(--accent-tint); }
@media (max-width: 900px) { #setupList { grid-template-columns: 1fr 1fr; } } @media (max-width: 520px) { #setupList { grid-template-columns: 1fr; } }
.table-wrap.tall { max-height: 640px; }
.sticky-tools { position: sticky; top: 84px; z-index: 5; padding: 8px; margin: -8px -8px 6px; border-radius: var(--r-md); background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.filters > * { width: auto; flex: 1 1 150px; margin-top: 0; } .filters input[type=search] { flex: 3 1 240px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding-top: 10px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 6px; }
.bar i { display: block; width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--royal-3, #4f6fe0), var(--royal-2, #2c4bc4)); transition: height .3s var(--ease); animation: grow .4s var(--ease); }
.bar span { font-size: 10px; color: var(--muted); }
@keyframes grow { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }
.empty-note { margin: auto; }
.log { margin-top: 12px; max-height: 220px; overflow: auto; padding: 10px 12px; border-radius: var(--r-md); background: var(--glass-strong); border: 1px solid var(--hair); font: 12.5px/1.6 ui-monospace, "JetBrains Mono", monospace; }
.log .err { margin: 0; } .log .ok { color: var(--ok); } .log .warn { color: var(--warn); }
.modal .card.wide { width: min(920px, 100%); }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; }
.link { background: none; border: 0; padding: 0; color: var(--accent-strong); font: inherit; font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
:root[data-theme="dark"] .link { color: var(--accent); }
input.inline, select.inline { margin: 0; padding: 7px 10px; min-width: 150px; border-radius: 10px; }
.small { font-size: 12px; } .err.small { display: inline; }
#formChannel label, #formSku label, #formFetch label { margin-bottom: 10px; } #formChannel small { display: block; font-weight: 400; margin-top: 4px; }
.view { animation: fadeUp .22s var(--ease); } @keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view, .bar i { animation: none; } }
.checks select { width: auto; display: inline-block; margin: 0 4px; padding: 4px 8px; }
#tblDocs td:nth-child(3), #tblDocs td:nth-child(5) { white-space: nowrap; }
#tblDocs { min-width: 1080px; }
.bar { max-width: 34px; } .bars { justify-content: flex-start; }
.sticky-tools .btn { border-color: var(--hair); }
