/* ============================================================================
   WINIXSTORE × AQUAMC — AquaCoin Marketplace
   Premium blue & black design system (RTL / Persian first)
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */
:root {
    --bg:            #04060c;
    --bg-soft:       #070b14;
    --panel:         #0a1120;
    --panel-2:       #0d1626;
    --panel-3:       #111d33;
    --line:          rgba(96, 165, 250, 0.14);
    --line-strong:   rgba(96, 165, 250, 0.28);
    --text:          #e8eefb;
    --text-dim:      #a6b6d0;
    --muted:         #6f83a3;
    --blue:          #2f7bff;
    --blue-dark:     #1a4fd6;
    --electric:      #4d9bff;
    --cyan:          #22d3ee;
    --navy:          #071632;
    --ok:            #22c55e;
    --ok-soft:       rgba(34, 197, 94, 0.12);
    --warn:          #f59e0b;
    --warn-soft:     rgba(245, 158, 11, 0.12);
    --bad:           #ef4444;
    --bad-soft:      rgba(239, 68, 68, 0.12);
    --info-soft:     rgba(59, 130, 246, 0.12);
    --radius:        18px;
    --radius-sm:     12px;
    --radius-lg:     26px;
    --shadow:        0 24px 50px -28px rgba(0, 0, 0, 0.95);
    --shadow-soft:   0 10px 30px -18px rgba(0, 0, 0, 0.9);
    --glow:          0 0 0 1px rgba(77, 155, 255, 0.22), 0 18px 60px -32px rgba(47, 123, 255, 0.6);
    --ring:          0 0 0 3px rgba(34, 211, 238, 0.25);
    --header-h:      72px;
    --sidebar-w:     272px;
    --ease:          cubic-bezier(0.22, 0.61, 0.36, 1);
    --font: 'Vazirmatn', 'Vazir', 'IRANSansX', 'IRANSans', 'Shabnam', 'Tahoma', 'Segoe UI', system-ui, sans-serif;
}

/* ------------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.9;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
}
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.5; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; color: var(--text-dim); }
a { color: var(--electric); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--cyan); }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 10px; }
::selection { background: rgba(47, 123, 255, .35); }
[hidden] { display: none !important; }

/* --------------------------------------------------------------- backdrop */
body::before {
    content: '';
    position: fixed; inset: 0; z-index: -2;
    background:
        radial-gradient(900px 520px at 82% -8%, rgba(47, 123, 255, .18), transparent 62%),
        radial-gradient(760px 460px at 8% 4%, rgba(34, 211, 238, .10), transparent 60%),
        radial-gradient(1100px 700px at 50% 110%, rgba(26, 79, 214, .12), transparent 65%),
        var(--bg);
}
body::after {
    content: '';
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 190, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 190, 255, .035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(1200px 720px at 50% 0%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(1200px 720px at 50% 0%, #000 20%, transparent 78%);
}

/* ------------------------------------------------------------------ layout */
.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.container--narrow { width: min(780px, 100% - 2.5rem); margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.section { padding: 3rem 0; }
.section--tight { padding: 1.5rem 0; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.text-muted { color: var(--muted); }
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .78rem; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; direction: ltr; text-align: right; overflow-wrap: anywhere; word-break: break-word; }
.nowrap { white-space: nowrap; }
.fade-in { animation: fadeUp .5s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ header */
.site-header {
    position: sticky; top: 0; z-index: 60;
    backdrop-filter: blur(16px);
    background: linear-gradient(180deg, rgba(4, 8, 16, .92), rgba(4, 8, 16, .68));
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--text); font-weight: 900; letter-spacing: .02em; }
.brand__mark {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(140deg, var(--electric), var(--blue-dark) 70%);
    box-shadow: 0 10px 26px -12px rgba(47, 123, 255, .9);
    flex: 0 0 auto;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__text small { font-size: .68rem; color: var(--muted); font-weight: 600; letter-spacing: .16em; }
.nav { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.nav a {
    color: var(--text-dim); font-size: .92rem; font-weight: 600;
    padding: .5rem .8rem; border-radius: 10px; transition: all .2s var(--ease);
}
.nav a:hover { color: #fff; background: rgba(77, 155, 255, .1); }
.nav a.is-active { color: #fff; background: rgba(77, 155, 255, .16); box-shadow: inset 0 0 0 1px var(--line-strong); }
.nav-toggle {
    display: none; background: var(--panel-2); border: 1px solid var(--line);
    color: var(--text); border-radius: 10px; padding: .5rem .7rem; cursor: pointer;
}
@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .nav {
        position: absolute; inset-inline: 0; top: var(--header-h); flex-direction: column; align-items: stretch;
        background: rgba(6, 10, 20, .98); border-bottom: 1px solid var(--line); padding: .8rem;
        display: none;
    }
    .nav.is-open { display: flex; }
    .site-header__inner { position: relative; }
}

/* -------------------------------------------------------------------- hero */
.hero { padding: 3.5rem 0 1.5rem; }
.hero__badge {
    display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem;
    border-radius: 999px; background: rgba(47, 123, 255, .1); border: 1px solid var(--line-strong);
    color: var(--electric); font-size: .8rem; font-weight: 700; margin-bottom: 1.1rem;
}
.hero__title { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.25; margin-bottom: .6rem; }
.hero__title span {
    background: linear-gradient(100deg, var(--electric), var(--cyan));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: 1.05rem; max-width: 60ch; }

/* ------------------------------------------------------------------- cards */
.card {
    position: relative;
    background: linear-gradient(180deg, rgba(17, 29, 51, .78), rgba(10, 17, 32, .92));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
    transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow), var(--glow); }
.card--glow { box-shadow: var(--glow); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.card__title { font-size: 1rem; font-weight: 800; margin: 0; color: #fff; }
.card__sub { font-size: .8rem; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------------- stats */
.stat {
    background: linear-gradient(180deg, rgba(17, 29, 51, .8), rgba(10, 17, 32, .9));
    border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.15rem;
    position: relative; overflow: hidden;
}
.stat::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(220px 90px at 100% 0%, rgba(77, 155, 255, .18), transparent 70%);
}
.stat__label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.stat__value { font-size: 1.6rem; font-weight: 900; color: #fff; line-height: 1.5; }
.stat__value small { font-size: .8rem; font-weight: 600; color: var(--text-dim); }
.stat__hint { font-size: .74rem; color: var(--muted); }
.stat--ok .stat__value { color: #7ee7a5; }
.stat--warn .stat__value { color: #fbbf5c; }
.stat--bad .stat__value { color: #f98b8b; }

/* ----------------------------------------------------------------- buttons */
.btn {
    --btn-bg: linear-gradient(140deg, var(--electric), var(--blue-dark));
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .72rem 1.25rem; border-radius: 12px; border: 1px solid transparent;
    background: var(--btn-bg); color: #fff; font-weight: 700; font-size: .94rem; cursor: pointer;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease), opacity .18s;
    box-shadow: 0 12px 28px -16px rgba(47, 123, 255, .95);
    text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); color: #fff; filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn--ghost { --btn-bg: transparent; border-color: var(--line-strong); color: var(--text); box-shadow: none; }
.btn--ghost:hover { background: rgba(77, 155, 255, .1); }
.btn--subtle { --btn-bg: var(--panel-3); box-shadow: none; border-color: var(--line); }
.btn--danger { --btn-bg: linear-gradient(140deg, #f05252, #b91c1c); box-shadow: 0 12px 28px -18px rgba(239, 68, 68, .9); }
.btn--success { --btn-bg: linear-gradient(140deg, #34d399, #15803d); box-shadow: 0 12px 28px -18px rgba(34, 197, 94, .9); }
.btn--sm { padding: .5rem .85rem; font-size: .82rem; border-radius: 10px; min-height: 34px; }
.summary-as-button { cursor: pointer; display: inline-block; }
.btn--block { width: 100%; }
.btn__spinner {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ badges */
.badge {
    display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem;
    border-radius: 999px; font-size: .74rem; font-weight: 700; border: 1px solid transparent;
    background: rgba(148, 163, 184, .12); color: var(--text-dim); white-space: nowrap;
}
.badge--ok { background: var(--ok-soft); color: #6ee79b; border-color: rgba(34, 197, 94, .3); }
.badge--warn { background: var(--warn-soft); color: #fbbf5c; border-color: rgba(245, 158, 11, .3); }
.badge--bad { background: var(--bad-soft); color: #f98b8b; border-color: rgba(239, 68, 68, .3); }
.badge--info { background: var(--info-soft); color: #7db3ff; border-color: rgba(59, 130, 246, .3); }
.badge--mute { background: rgba(148, 163, 184, .1); color: var(--muted); }

/* ------------------------------------------------------------------- forms */
.field { margin-bottom: 1rem; }
.field__label { display: block; font-size: .86rem; font-weight: 700; color: var(--text); margin-bottom: .4rem; }
.field__hint { font-size: .76rem; color: var(--muted); margin-top: .35rem; }
.field__error { font-size: .78rem; color: #f98b8b; margin-top: .35rem; display: block; }
.input, .select, .textarea {
    width: 100%; padding: .75rem .9rem; border-radius: 12px;
    background: rgba(5, 9, 18, .75); border: 1px solid var(--line); color: var(--text);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: #5c6f8d; }
.input:focus, .select:focus, .textarea:focus {
    border-color: rgba(34, 211, 238, .55); box-shadow: var(--ring); background: rgba(8, 14, 26, .9); outline: none;
}
.input[aria-invalid="true"] { border-color: rgba(239, 68, 68, .6); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.8; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: left 1.1rem top 55%, left .8rem top 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-left: 2.2rem; }
.checkbox { display: flex; align-items: flex-start; gap: .55rem; font-size: .86rem; color: var(--text-dim); cursor: pointer; }
.checkbox input { accent-color: var(--blue); width: 17px; height: 17px; margin-top: .3rem; }
.switch { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .88rem; }
.switch input { accent-color: var(--blue); width: 18px; height: 18px; }

/* quantity stepper */
.stepper { display: flex; align-items: stretch; gap: .5rem; }
.stepper__btn {
    width: 54px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--panel-3);
    color: #fff; font-size: 1.4rem; font-weight: 700; cursor: pointer; transition: all .18s var(--ease);
}
.stepper__btn:hover { background: rgba(77, 155, 255, .18); }
.stepper .input { text-align: center; font-size: 1.15rem; font-weight: 800; letter-spacing: .06em; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .7rem; }
.chip {
    padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(13, 22, 38, .8);
    color: var(--text-dim); font-size: .82rem; font-weight: 700; cursor: pointer; transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--line-strong); color: #fff; background: rgba(77, 155, 255, .12); }

/* ------------------------------------------------------------------ alerts */
.alert {
    display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 14px;
    border: 1px solid var(--line); background: rgba(13, 22, 38, .8); margin-bottom: 1rem; font-size: .9rem;
}
.alert p:last-child { margin-bottom: 0; }
.alert--success { border-color: rgba(34, 197, 94, .3); background: var(--ok-soft); }
.alert--success .alert__icon { color: #6ee79b; }
.alert--error { border-color: rgba(239, 68, 68, .3); background: var(--bad-soft); }
.alert--error .alert__icon { color: #f98b8b; }
.alert--warning { border-color: rgba(245, 158, 11, .3); background: var(--warn-soft); }
.alert--warning .alert__icon { color: #fbbf5c; }
.alert--info .alert__icon { color: #7db3ff; }
.alert__icon { font-weight: 900; flex: 0 0 auto; }

.flash-stack { position: fixed; inset-inline: 1rem; bottom: 1rem; z-index: 200; display: grid; gap: .5rem; max-width: 520px; margin-inline: auto; }
.flash {
    display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-radius: 14px;
    background: rgba(10, 17, 32, .97); border: 1px solid var(--line-strong);
    box-shadow: var(--shadow); font-size: .88rem; animation: fadeUp .3s var(--ease) both;
}
.flash--success { border-color: rgba(34, 197, 94, .45); }
.flash--error { border-color: rgba(239, 68, 68, .45); }
.flash--warning { border-color: rgba(245, 158, 11, .45); }
.flash__icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 900; background: var(--info-soft); color: #7db3ff; flex: 0 0 auto; }
.flash--success .flash__icon { background: var(--ok-soft); color: #6ee79b; }
.flash--error .flash__icon { background: var(--bad-soft); color: #f98b8b; }
.flash--warning .flash__icon { background: var(--warn-soft); color: #fbbf5c; }
.flash__text { flex: 1; }
.flash__close { background: none; border: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; line-height: 1; }

/* ------------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(10, 17, 32, .6); }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 640px; }
.table th, .table td { padding: .75rem .9rem; text-align: right; border-bottom: 1px solid rgba(96, 165, 250, .08); vertical-align: middle; }
.table thead th { background: rgba(13, 22, 38, .95); color: var(--text-dim); font-size: .78rem; font-weight: 800; letter-spacing: .02em; position: sticky; top: 0; }
.table tbody tr:hover { background: rgba(77, 155, 255, .05); }
.table tbody tr:last-child td { border-bottom: none; }
.table td.num, .table th.num { font-variant-numeric: tabular-nums; }
.table__empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); font-size: .9rem; }
.table__empty svg { margin: 0 auto .8rem; opacity: .5; }

/* responsive cards for tables on mobile */
@media (max-width: 720px) {
    .table-wrap { border: none; background: none; }
    .table { min-width: 0; display: block; }
    .table thead { display: none; }
    .table tbody { display: grid; gap: .75rem; }
    .table tbody tr {
        display: grid; gap: .35rem; padding: 1rem; border: 1px solid var(--line);
        border-radius: var(--radius-sm); background: rgba(10, 17, 32, .75);
    }
    .table tbody td { display: flex; justify-content: space-between; gap: 1rem; border: none; padding: .2rem 0; }
    .table tbody td::before { content: attr(data-label); color: var(--muted); font-size: .78rem; font-weight: 700; }
    .table tbody td:last-child { margin-top: .4rem; padding-top: .6rem; border-top: 1px solid rgba(96, 165, 250, .1); }
    .table tbody td form,
    .table tbody td .inline-form { min-width: 0 !important; width: 100%; }
    .table tbody td .select,
    .table tbody td .input { width: 100%; }
}

/* --------------------------------------------------------------- dashboard */
.layout-dashboard { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
    border-inline-end: 1px solid var(--line); background: rgba(6, 10, 20, .82);
    backdrop-filter: blur(12px); padding: 1.25rem 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar__group { margin-bottom: 1.25rem; }
.sidebar__title { font-size: .68rem; letter-spacing: .18em; color: var(--muted); font-weight: 800; margin: 0 0 .5rem; padding-inline-start: .6rem; }
.sidebar__link {
    display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: 11px;
    color: var(--text-dim); font-size: .88rem; font-weight: 600; margin-bottom: .15rem;
    transition: all .18s var(--ease);
}
.sidebar__link:hover { background: rgba(77, 155, 255, .1); color: #fff; }
.sidebar__link.is-active { background: rgba(77, 155, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); }
.sidebar__link svg { flex: 0 0 auto; opacity: .8; }
.sidebar__link .dot { margin-inline-start: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.main-panel { padding: 1.5rem 1.5rem 3rem; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.topbar__title { font-size: 1.35rem; font-weight: 900; margin: 0; color: #fff; }
.topbar__sub { font-size: .82rem; color: var(--muted); margin: 0; }
.user-chip { display: flex; align-items: center; gap: .6rem; padding: .4rem .7rem .4rem .5rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(13, 22, 38, .8); }
.user-chip__avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .8rem; color: #fff; background: linear-gradient(140deg, var(--electric), var(--blue-dark)); }
.user-chip__meta { line-height: 1.3; }
.user-chip__meta small { display: block; font-size: .7rem; color: var(--muted); }
@media (max-width: 980px) {
    .layout-dashboard { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; border-inline-end: none; border-bottom: 1px solid var(--line); }
    .sidebar__links { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .3rem; }
    .sidebar__links .sidebar__link { white-space: nowrap; margin-bottom: 0; }
    .sidebar__group { margin-bottom: .8rem; }
}

/* ------------------------------------------------------------------- misc */
.divider { height: 1px; background: var(--line); margin: 1.25rem 0; border: none; }
.kv { display: grid; grid-template-columns: minmax(140px, auto) 1fr; gap: .5rem 1rem; font-size: .88rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; color: var(--text); word-break: break-word; min-width: 0; }
@media (max-width: 560px) {
    .kv { grid-template-columns: 1fr; gap: .1rem .5rem; }
    .kv dd { margin-bottom: .6rem; }
}
.timeline { position: relative; padding-inline-start: 1.5rem; }
.timeline::before { content: ''; position: absolute; inset-inline-start: 5px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, rgba(77, 155, 255, .6), rgba(77, 155, 255, .05)); }
.timeline__item { position: relative; padding-bottom: 1rem; }
.timeline__item::before { content: ''; position: absolute; inset-inline-start: -1.5rem; top: .55rem; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(47, 123, 255, .18); }
.timeline__item--ok::before { background: var(--ok); box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.timeline__item--bad::before { background: var(--bad); box-shadow: 0 0 0 4px rgba(239, 68, 68, .18); }
.timeline__item--warn::before { background: var(--warn); box-shadow: 0 0 0 4px rgba(245, 158, 11, .18); }
.timeline__title { font-size: .88rem; font-weight: 700; color: #fff; }
.timeline__meta { font-size: .76rem; color: var(--muted); }

.price-box {
    border: 1px solid var(--line-strong); border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(47, 123, 255, .14), rgba(10, 17, 32, .9));
    padding: 1.25rem; position: relative; overflow: hidden;
}
.price-box__label { font-size: .82rem; color: var(--text-dim); }
.price-box__value { font-size: 2rem; font-weight: 900; color: #fff; line-height: 1.4; }
.price-box__value small { font-size: .9rem; font-weight: 700; color: var(--electric); }
.price-box__note { font-size: .76rem; color: var(--muted); }

.skeleton { background: linear-gradient(90deg, rgba(148, 163, 184, .08), rgba(148, 163, 184, .18), rgba(148, 163, 184, .08)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; height: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1rem; background: rgba(2, 5, 12, .78); backdrop-filter: blur(6px); }
.modal__panel { width: min(520px, 100%); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); animation: fadeUp .25s var(--ease) both; }

.pagination { display: flex; gap: .35rem; justify-content: center; margin-top: 1.25rem; flex-wrap: wrap; }
.pagination a, .pagination span { padding: .4rem .75rem; border-radius: 10px; border: 1px solid var(--line); font-size: .84rem; color: var(--text-dim); }
.pagination a:hover { background: rgba(77, 155, 255, .12); color: #fff; }
.pagination .is-current { background: rgba(77, 155, 255, .18); color: #fff; border-color: var(--line-strong); }

.breadcrumb { display: flex; gap: .4rem; font-size: .8rem; color: var(--muted); margin-bottom: .75rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--electric); }

.footer { border-top: 1px solid var(--line); padding: 2rem 0; margin-top: 3rem; color: var(--muted); font-size: .82rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* error pages */
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; text-align: center; }
.error-page__code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 900; line-height: 1; background: linear-gradient(120deg, var(--electric), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* installer */
.install { max-width: 880px; margin-inline: auto; padding: 2rem 1rem 4rem; }
.steps { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.steps__item { display: flex; align-items: center; gap: .5rem; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.steps__item.is-active { border-color: var(--line-strong); background: rgba(77, 155, 255, .14); color: #fff; }
.steps__item.is-done { border-color: rgba(34, 197, 94, .4); color: #6ee79b; }
.steps__num { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(148, 163, 184, .15); font-size: .7rem; font-weight: 900; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.checklist li:last-child { border-bottom: none; }
.checklist__icon { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 900; }
.checklist__icon--ok { background: var(--ok-soft); color: #6ee79b; }
.checklist__icon--bad { background: var(--bad-soft); color: #f98b8b; }

/* utility */
.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; }
.scroll-x { overflow-x: auto; }
.tag { display: inline-block; padding: .1rem .5rem; border-radius: 6px; background: rgba(148, 163, 184, .12); color: var(--text-dim); font-size: .74rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
