/*
 * Madandaaz design system — one stylesheet for the website, customer account and admin panel.
 * No build step: edit and refresh.
 *
 * Layout   .container .container-narrow .section .section-tight .grid .grid-2 .grid-3 .grid-4
 *          .stack .stack-lg .row .between .wrap .spacer
 * Text     .muted .small .mono .strong .text-center .eyebrow .lead
 * Site     .site-header .brand .nav .hero .page-head .product-card .feature-list .plan-card
 *          .plan-featured .price .faq .cta-band .site-footer .logo-tile
 * UI       .btn(-primary|-secondary|-ghost|-danger|-sm|-lg|-block) .card .card-head .card-body
 *          .card-foot .badge(-success|-warning|-danger|-info|-neutral|-brand) .alert(-success|-error|-warning|-info)
 *          .table-wrap .table .kv .stat .tabs .empty .keybox .bar-chart .progress
 * Forms    .field .label .input .select .textarea .help .error .check .form-grid .form-actions .filters
 * Admin    .admin-shell .admin-sidebar .sidebar-nav .admin-main .admin-topbar .admin-content .page-title .page-actions
 * Account  .account-nav
 */

:root {
  --ink: #0b1020;
  --ink-2: #151b2e;
  --text: #1f2433;
  --muted: #667085;
  --line: #e6e8f0;
  --line-2: #d0d5dd;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --brand: #4f46e5;
  --brand-600: #4338ca;
  --brand-50: #eef2ff;
  --accent: #f59e0b;
  --success: #067647;
  --success-bg: #ecfdf3;
  --warning: #b54708;
  --warning-bg: #fffaeb;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --info: #175cd3;
  --info-bg: #eff8ff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px -8px rgba(16, 24, 40, .18);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; color: var(--ink); letter-spacing: -.015em; }
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 750; }
h3 { font-size: 18px; font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
code, .mono { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 6px; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; }
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.text-center { text-align: center; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.lead { font-size: 18px; color: var(--muted); max-width: 720px; }
.nowrap { white-space: nowrap; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section { padding: 48px 0; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid transparent; font: inherit; font-weight: 650; font-size: 14px; line-height: 1.2; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(79, 70, 229, .3); }
.btn-primary:hover { background: var(--brand-600); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-2); box-shadow: var(--shadow); }
.btn-secondary:hover { background: #f9fafb; }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: rgba(16, 24, 40, .05); }
.btn-danger { background: var(--surface); color: var(--danger); border-color: #fda29b; }
.btn-danger:hover { background: var(--danger-bg); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-light:hover { background: rgba(255, 255, 255, .18); }
.btn-sm { padding: 6px 10px; font-size: 13px; }
.btn-lg { padding: 13px 22px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-danger { color: var(--danger); }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { margin: 0; font-size: 16px; }
.card-body { padding: 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line); background: #fafbfc; border-radius: 0 0 var(--radius) var(--radius); }
.card-pad { padding: 24px; }

/* ---------- badges & alerts ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; line-height: 20px; white-space: nowrap; background: #f2f4f7; color: #344054; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-plain::before { display: none; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-brand { background: var(--brand-50); color: var(--brand-600); }
.badge-neutral { background: #f2f4f7; color: #475467; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid; font-size: 14px; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert-success { background: var(--success-bg); border-color: #abefc6; color: #085d3a; }
.alert-error { background: var(--danger-bg); border-color: #fecdca; color: #912018; }
.alert-warning { background: var(--warning-bg); border-color: #fedf89; color: #93370d; }
.alert-info { background: var(--info-bg); border-color: #b2ddff; color: #1849a9; }

/* ---------- tables & data ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 16px; background: #f9fafb; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fcfcfd; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.kv { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 10px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 550; word-break: break-word; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); }
.keybox { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #f9fafb; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: .03em; overflow-x: auto; }
.keybox span { flex: 1; white-space: nowrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--brand); border-color: var(--brand); }
.bar-chart { display: flex; align-items: flex-end; gap: 14px; height: 160px; padding-top: 10px; }
.bar-chart .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-chart .bar { width: 100%; max-width: 48px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #6366f1, var(--brand)); min-height: 2px; }
.bar-chart .bar-label { font-size: 12px; color: var(--muted); }
.bar-chart .bar-value { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress { height: 6px; background: #eef0f4; border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pagination .pages { display: flex; gap: 4px; flex-wrap: wrap; }
.pagination a, .pagination span.page { min-width: 32px; height: 32px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--surface); text-decoration: none; }
.pagination span.current { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination span.disabled { opacity: .45; }

/* ---------- forms ---------- */
.field { display: block; }
.field + .field { margin-top: 16px; }
.label { display: block; font-size: 13px; font-weight: 650; color: #344054; margin-bottom: 6px; }
.label .req { color: var(--danger); }
.input, .select, .textarea { width: 100%; padding: 10px 12px; font: inherit; font-size: 14px; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: #a5b4fc; box-shadow: 0 0 0 4px rgba(99, 102, 241, .15); }
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23667085' stroke-width='2'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: #fda29b; }
.help { font-size: 12px; color: var(--muted); margin-top: 5px; }
.error { font-size: 12px; color: var(--danger); margin-top: 5px; font-weight: 600; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--brand); flex-shrink: 0; }
.check + .check { margin-top: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .field + .field { margin-top: 0; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters .input, .filters .select { width: auto; min-width: 160px; padding: 8px 12px; }
.filters .select { padding-right: 32px; }
.inline-form { display: inline; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; color: var(--ink); margin-bottom: 12px; padding: 0; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .filters .input, .filters .select { width: 100%; } }

/* ---------- website ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -.02em; text-decoration: none !important; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--brand) 0%, #7c3aed 55%, var(--accent) 130%); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 17px; box-shadow: 0 4px 12px -2px rgba(79, 70, 229, .5); }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a { padding: 8px 12px; color: #344054; font-weight: 600; font-size: 14px; border-radius: 8px; text-decoration: none; }
.nav a:hover, .nav a.active { background: rgba(16, 24, 40, .05); color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 10px; font: inherit; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-header .nav, .site-header .nav-right { display: none; }
  .site-header.open .container { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .site-header.open .nav, .site-header.open .nav-right { display: flex; flex-direction: column; align-items: stretch; width: 100%; }
}
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgba(124, 58, 237, .45), transparent 60%), radial-gradient(900px 500px at 0% 120%, rgba(245, 158, 11, .22), transparent 60%), var(--ink); color: #e4e7ec; padding: 96px 0 88px; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 820px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #c7d2fe, #fcd34d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #c4c9d6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 36px; color: #c4c9d6; font-size: 14px; }
.hero-points span::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 48px 0 40px; }
.product-hero { padding: 72px 0 64px; background: radial-gradient(800px 400px at 90% 0%, color-mix(in srgb, var(--product) 22%, transparent), transparent 70%), var(--surface); border-bottom: 1px solid var(--line); }
.product-hero .logo-tile { width: 88px; height: 88px; }
.logo-tile { width: 56px; height: 56px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; padding: 8px; box-shadow: var(--shadow); flex-shrink: 0; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.product-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s; position: relative; overflow: hidden; color: inherit; text-decoration: none !important; }
.product-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--product, var(--brand)); }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--product, var(--brand)) 40%, var(--line)); }
.product-card h3 { margin: 0; font-size: 20px; }
.product-card .from { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.feature-list li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--success-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none' stroke='%23067647' stroke-width='2.4'%3E%3Cpath d='m1.5 5.2 2.3 2.3L8.5 2.5'/%3E%3C/svg%3E") center no-repeat; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }
.value-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.value-card .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
.plan-card { display: flex; flex-direction: column; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); position: relative; }
.plan-featured { border: 2px solid var(--product, var(--brand)); box-shadow: var(--shadow-lg); }
.plan-ribbon { position: absolute; top: -12px; left: 28px; background: var(--product, var(--brand)); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price { font-size: 36px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; margin: 14px 0 2px; }
.price-period { font-size: 14px; color: var(--muted); }
.plan-card .feature-list { margin: 20px 0 24px; }
.plan-card .btn { margin-top: auto; }
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { list-style: none; counter-increment: step; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 14px; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 18px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 650; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 16px; color: var(--muted); }
.cta-band { background: linear-gradient(120deg, var(--ink) 0%, #26215c 100%); color: #e4e7ec; border-radius: 20px; padding: 44px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.site-footer { background: var(--ink); color: #98a2b3; padding: 56px 0 32px; margin-top: 72px; font-size: 14px; }
.site-footer a { color: #d0d5dd; }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.prose { max-width: 760px; }
.prose h2 { font-size: 20px; margin-top: 32px; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.auth-wrap { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .card-body { padding: 32px; }

/* ---------- account ---------- */
.account-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-top: 32px; }
.account-head h1 { font-size: 26px; }
.account-nav { display: flex; gap: 4px; margin-top: 18px; overflow-x: auto; }
.account-nav a { padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; }
.account-nav a.active { color: var(--brand); border-color: var(--brand); }
.license-card { display: flex; flex-direction: column; gap: 14px; }
.license-card .top { display: flex; gap: 14px; align-items: center; }

/* ---------- admin ---------- */
.admin-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--ink); color: #c4c9d6; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.admin-sidebar .brand { color: #fff; padding: 4px 8px 18px; }
.sidebar-section { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #667085; padding: 16px 10px 6px; }
.sidebar-nav { display: grid; gap: 2px; }
.sidebar-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #c4c9d6; font-weight: 600; font-size: 14px; text-decoration: none; }
.sidebar-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidebar-nav a.active { background: rgba(99, 102, 241, .22); color: #fff; }
.sidebar-nav svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.sidebar-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.sidebar-foot a { color: #c4c9d6; }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { height: 60px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 28px; position: sticky; top: 0; z-index: 30; }
.admin-content { padding: 28px; max-width: 1280px; width: 100%; }
.page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-title h1 { font-size: 26px; margin: 0; }
.page-title p { margin: 4px 0 0; color: var(--muted); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sidebar-toggle { display: none; }
@media (max-width: 960px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .admin-shell.nav-open .admin-sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .sidebar-toggle { display: inline-flex; }
  .admin-topbar { padding: 0 16px; }
  .admin-content { padding: 20px 16px; }
}

/* ---------- invoice (print) ---------- */
.invoice { max-width: 860px; margin: 32px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.invoice table { width: 100%; border-collapse: collapse; font-size: 14px; }
.invoice th, .invoice td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.invoice .num { text-align: right; font-variant-numeric: tabular-nums; }
.invoice .totals td { border: 0; padding: 6px 8px; }
.invoice .grand td { font-size: 17px; font-weight: 800; color: var(--ink); border-top: 2px solid var(--ink); }
.print-bar { max-width: 860px; margin: 24px auto 0; display: flex; gap: 10px; justify-content: flex-end; }
@media print {
  body { background: #fff; }
  .print-bar, .site-header, .site-footer { display: none !important; }
  .invoice { border: 0; margin: 0; padding: 0; max-width: none; }
}

/* --- site/account additions --- */
/* Site    .section-head(.center) .section-alt .btn-product .product-hero-top .plan-grid .plan-desc .plan-devices
 *         .plan-note .release-list .release-row .older-releases .info-card .legal-updated .error-page .contact-list
 * Checkout .checkout-grid .sticky-summary .choice(-list|-title|-sub) .summary-lines .pay-amount .done-icon .spinner
 *         .numbered
 * Account .license-grid .license-meta .device-meter .member-cell
 * Invoice .invoice-head .invoice-title .invoice-parties .invoice-stamp .invoice-foot .invoice-meta
 * Utility .note .flush .sr-only .justify-center .h-sub .btn-wrap .section-foot .section-alert .product-strip
 *         .auth-switch .plan-spacer .done-head .hero-note
 */
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: 10px; }
.auth-card h1 { font-size: 26px; }
.auth-switch { margin-top: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.flush { margin: 0; }
.section-foot { margin-top: 20px; }
.section-alert { margin-bottom: 20px; }
.product-strip { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.product-strip h2 { margin: 0; }
.note { font-size: 13px; color: var(--muted); }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero .eyebrow { color: #fcd34d; }
.cta-band p { margin: 0; color: #c4c9d6; max-width: 620px; }
.cta-band .hero-actions { margin-top: 0; }
.hero-note { margin-top: 16px; font-size: 13px; color: #98a2b3; }
.btn-product { background: var(--product, var(--brand)); color: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .2); }
.btn-product:hover { background: color-mix(in srgb, var(--product, var(--brand)) 86%, #000); }
.product-card .top { display: flex; gap: 14px; align-items: center; }
.product-card .industry { font-size: 13px; font-weight: 600; color: var(--muted); }
.product-card p { margin: 0; color: var(--muted); font-size: 14px; }
.product-card .from { flex-wrap: wrap; gap: 6px 12px; }
.btn-wrap { white-space: normal; text-align: center; }
.product-card .go { color: var(--product, var(--brand)); font-weight: 700; white-space: nowrap; }
.product-card.compact { padding: 20px; gap: 10px; }
.product-card.compact h3 { font-size: 17px; }
.product-card.compact .logo-tile { width: 44px; height: 44px; border-radius: 12px; padding: 6px; }
.product-hero-top { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.product-hero-top h1 { margin: 0; }
.product-hero .eyebrow { color: var(--product, var(--brand)); }
.product-hero .hero-points { color: var(--muted); }
.product-hero .hero-points span::before { color: var(--product, var(--brand)); }
.plan-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); padding-top: 12px; align-items: stretch; }
.plan-card h3 { margin: 0; }
.plan-desc { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.plan-devices { margin-top: 14px; font-size: 14px; font-weight: 650; color: var(--ink); }
.plan-note { margin-top: 4px; font-size: 13px; color: var(--muted); }
.plan-spacer { flex: 1; min-height: 24px; }
.price small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.release-list { display: grid; gap: 12px; }
.release-row { display: flex; gap: 12px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.release-row .platform-name { font-weight: 700; color: var(--ink); }
.release-row .meta { font-size: 13px; color: var(--muted); }
.older-releases { margin-top: 14px; }
.older-releases summary { cursor: pointer; font-weight: 650; font-size: 14px; color: var(--brand); padding: 6px 0; }
.older-releases .table-wrap { margin-top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.info-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.info-card h3 { font-size: 16px; }
.info-card p { margin: 0; color: var(--muted); font-size: 14px; }
.legal-updated { font-size: 13px; color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list .label { margin: 0; }
.error-page { text-align: center; padding: 96px 0; }
.error-code { font-size: clamp(56px, 10vw, 88px); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--brand); margin-bottom: 12px; }
.error-page .lead { margin: 0 auto 28px; }
.error-page .hero-actions { justify-content: center; }

.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.sticky-summary { position: sticky; top: 84px; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } .sticky-summary { position: static; } }
.choice-list { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.choice input { width: 16px; height: 16px; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--brand); }
.choice:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(99, 102, 241, .15); }
.choice.is-disabled { cursor: not-allowed; background: #f9fafb; }
.choice-title { display: block; font-weight: 650; color: var(--ink); }
.choice-sub { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.choice.is-disabled .choice-title { color: var(--muted); }
.summary-lines { display: grid; gap: 10px; margin: 0; font-size: 14px; }
.summary-lines > div { display: flex; justify-content: space-between; gap: 12px; }
.summary-lines dt { color: var(--muted); }
.summary-lines dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.summary-lines .total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; font-size: 17px; }
.summary-lines .total dt, .summary-lines .total dd { color: var(--ink); font-weight: 800; }
.pay-amount { font-size: 36px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.done-head .lead { margin: 0 auto 28px; }
.done-head .hero-actions { justify-content: center; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; background: var(--success-bg); color: var(--success); }
.done-icon svg { width: 30px; height: 30px; }
.done-icon.is-failed { background: var(--danger-bg); color: var(--danger); }
.spinner { display: inline-block; width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: mdz-spin .8s linear infinite; }
@keyframes mdz-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.numbered { margin: 0; padding-left: 22px; }
.numbered li + li { margin-top: 8px; }

.justify-center { justify-content: center; }
.h-sub { font-size: 18px; margin: 32px 0 14px; }
.license-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.license-card .top h3 { margin: 0; font-size: 17px; }
.license-meta { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.license-meta strong { color: var(--text); font-weight: 650; }
.device-meter { display: grid; gap: 6px; font-size: 13px; }
.member-cell { display: flex; gap: 10px; align-items: center; min-width: 0; }

.invoice { position: relative; }
.invoice-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 28px; }
.invoice-title { font-size: 22px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin: 0 0 6px; }
.invoice-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 28px; font-size: 14px; }
.invoice-parties h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.invoice-parties p { margin: 0; }
.invoice-stamp { position: absolute; top: 110px; right: 48px; transform: rotate(-12deg); border: 4px solid var(--danger); color: var(--danger); border-radius: 10px; padding: 4px 16px; font-size: 28px; font-weight: 800; letter-spacing: .14em; opacity: .7; pointer-events: none; }
.invoice table.totals { width: min(100%, 380px); margin: 12px 0 0 auto; }
.invoice-meta { font-size: 13px; }
.invoice-foot { margin-top: 28px; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .cta-band { padding: 28px 22px; }
  .invoice { padding: 20px; margin: 16px; }
  .invoice-parties { grid-template-columns: 1fr; }
  .invoice-stamp { top: 70px; right: 16px; font-size: 20px; }
  .print-bar { padding: 0 16px; }
}
