/*
 * The customer side (sign-in and /account) for sites whose theme does not restyle it.
 * Plain CSS, no build step; logical properties so the same rules serve RTL and LTR pages.
 * Light and dark: follows the system until the visitor picks one (data-theme on <html>).
 */
:root {
    --c-bg: #f3f5fb;
    --c-surface: #ffffff;
    --c-surface-2: #f7f8fc;
    --c-border: #e6e9f3;
    --c-text: #0f172a;
    --c-muted: #64748b;
    --c-faint: #94a3b8;
    --c-primary: #5b5bf0;
    --c-primary-rgb: 91, 91, 240;
    --c-violet: #8b5cf6;
    --c-cyan: #06b6d4;
    --c-primary-soft: rgba(91, 91, 240, .09);
    --c-danger: #e11d48;
    --c-danger-soft: #fff1f3;
    --c-success: #059669;
    --c-success-soft: #ecfdf5;
    --c-warning: #d97706;
    --c-warning-soft: #fffbeb;
    --c-sidebar: #ffffff;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 34px -18px rgba(15, 23, 42, .22);
    --shadow-lg: 0 24px 60px -28px rgba(30, 27, 75, .45);
    --grad: linear-gradient(135deg, #5b5bf0 0%, #8b5cf6 55%, #06b6d4 120%);
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --c-bg: #090d1c; --c-surface: #10162d; --c-surface-2: #0c1226; --c-border: #1f2a4d;
        --c-text: #e8ecf8; --c-muted: #9aa7c4; --c-faint: #6b7899; --c-primary: #8b8cfb; --c-primary-rgb: 139, 140, 251;
        --c-primary-soft: rgba(139, 140, 251, .13); --c-danger-soft: rgba(225, 29, 72, .14); --c-success-soft: rgba(5, 150, 105, .16);
        --c-warning-soft: rgba(217, 119, 6, .16); --c-sidebar: #0d1328;
        --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 14px 36px -18px rgba(0, 0, 0, .75); color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --c-bg: #090d1c; --c-surface: #10162d; --c-surface-2: #0c1226; --c-border: #1f2a4d;
    --c-text: #e8ecf8; --c-muted: #9aa7c4; --c-faint: #6b7899; --c-primary: #8b8cfb; --c-primary-rgb: 139, 140, 251;
    --c-primary-soft: rgba(139, 140, 251, .13); --c-danger-soft: rgba(225, 29, 72, .14); --c-success-soft: rgba(5, 150, 105, .16);
    --c-warning-soft: rgba(217, 119, 6, .16); --c-sidebar: #0d1328;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 14px 36px -18px rgba(0, 0, 0, .75); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100vh; background: var(--c-bg); color: var(--c-text);
    font: 400 15px/1.8 "Vazirmatn", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased;
}
html[lang="fa"] body { font-family: "VazirmatnFD", "Vazirmatn", Tahoma, sans-serif; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.45; }
p { margin: 0 0 1rem; }
img { max-width: 100%; }
svg.icon { flex: none; }
.ltr { direction: ltr; unicode-bidi: plaintext; }
.muted { color: var(--c-muted); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Forms & buttons ---------- */
.field { margin-block-end: 1.1rem; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-block-end: .4rem; }
.field .hint { font-size: 12px; color: var(--c-muted); margin-block-start: .4rem; }
.field .error { font-size: 12px; color: var(--c-danger); margin-block-start: .4rem; }
.input {
    width: 100%; padding: .78rem 1rem; border: 1.5px solid var(--c-border); border-radius: 14px;
    background: var(--c-surface); color: var(--c-text); font: inherit; transition: border-color .15s, box-shadow .15s, background .15s;
}
.input:hover { border-color: color-mix(in srgb, var(--c-primary) 30%, var(--c-border)); }
.input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-soft); }
.input:disabled { background: var(--c-surface-2); color: var(--c-muted); }
.input.is-invalid { border-color: var(--c-danger); }
textarea.input { min-height: 120px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--c-muted) 50%), linear-gradient(135deg, var(--c-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] select.input { background-position: 20px 55%, 25px 55%; }
.check { display: flex; align-items: center; gap: .55rem; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--c-primary); }

.otp { display: flex; gap: .6rem; justify-content: center; direction: ltr; margin-block: .5rem 1.25rem; }
.otp input {
    width: 54px; height: 62px; text-align: center; font: 800 24px/1 inherit; font-family: inherit; color: var(--c-text);
    border: 1.5px solid var(--c-border); border-radius: 16px; background: var(--c-surface); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.otp input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-soft); transform: translateY(-2px); }
.otp input.filled { border-color: color-mix(in srgb, var(--c-primary) 55%, var(--c-border)); background: var(--c-primary-soft); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .78rem 1.3rem;
    border: 1.5px solid transparent; border-radius: 14px; font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.2;
    cursor: pointer; text-decoration: none !important; transition: transform .12s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); background-size: 140% 140%; color: #fff; box-shadow: 0 10px 24px -12px rgba(var(--c-primary-rgb), .9); }
.btn-primary:hover { box-shadow: 0 14px 30px -12px rgba(var(--c-primary-rgb), .95); background-position: 100% 0; }
.btn-ghost { background: var(--c-surface); color: var(--c-text); border-color: var(--c-border); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--c-primary) 35%, var(--c-border)); color: var(--c-primary); }
.btn-soft { background: var(--c-primary-soft); color: var(--c-primary); }
.btn-soft:hover { background: color-mix(in srgb, var(--c-primary) 16%, transparent); }
.btn-danger { background: var(--c-danger-soft); color: var(--c-danger); }
.btn-link { background: none; border: 0; color: var(--c-primary); padding: 0; font-weight: 600; }
.btn-sm { padding: .5rem .85rem; font-size: 13px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.alert { display: flex; gap: .6rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 14px; font-size: 14px; margin-block-end: 1.1rem; }
.alert svg { width: 20px; height: 20px; margin-top: 1px; }
.alert-success { background: var(--c-success-soft); color: var(--c-success); }
.alert-danger { background: var(--c-danger-soft); color: var(--c-danger); }
.alert-info { background: var(--c-primary-soft); color: var(--c-primary); }
.alert-warning { background: var(--c-warning-soft); color: var(--c-warning); }

.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--c-surface-2); color: var(--c-muted); border: 1px solid var(--c-border); white-space: nowrap; }
.badge-primary { background: var(--c-primary-soft); color: var(--c-primary); border-color: transparent; }
.badge-success { background: var(--c-success-soft); color: var(--c-success); border-color: transparent; }
.badge-warning { background: var(--c-warning-soft); color: var(--c-warning); border-color: transparent; }
.badge-danger { background: var(--c-danger-soft); color: var(--c-danger); border-color: transparent; }

/* ---------- Brand & language ---------- */
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; font-size: 18px; color: var(--c-text); text-decoration: none !important; }
.brand img { max-height: 38px; width: auto; }
.brand-mark { position: relative; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; background: var(--grad); box-shadow: 0 10px 22px -10px rgba(var(--c-primary-rgb), .9); }
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-surface); font-size: 12px; font-weight: 700; }
.lang-switch a { padding: .25rem .6rem; border-radius: 9px; color: var(--c-muted); }
.lang-switch a[aria-current="true"] { background: var(--c-primary); color: #fff; }
.lang-switch a:hover { text-decoration: none; }

/* ---------- Sign-in pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth-art {
    position: relative; overflow: hidden; color: #fff; padding: 3rem clamp(2rem, 5vw, 4.5rem); display: flex; flex-direction: column; justify-content: space-between;
    background: radial-gradient(40rem 26rem at 90% 0%, rgba(139, 92, 246, .55), transparent 60%), radial-gradient(34rem 24rem at 0% 100%, rgba(6, 182, 212, .4), transparent 60%), #0b1022;
}
.auth-art::before {
    content: ""; position: absolute; inset: 0; opacity: .35;
    background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 40px 40px; mask-image: radial-gradient(ellipse at 40% 40%, #000 25%, transparent 75%);
}
.auth-art > * { position: relative; }
.auth-art .brand { color: #fff; }
.auth-art h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; line-height: 1.45; margin-block: 0 1rem; }
.auth-art .lead { color: rgba(255, 255, 255, .72); font-size: 16px; max-width: 30rem; }
.auth-points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.auth-points li { display: flex; align-items: center; gap: .85rem; color: rgba(255, 255, 255, .88); }
.auth-points .dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(8px); }
.auth-points svg { width: 20px; height: 20px; }
.auth-art .foot { font-size: 13px; color: rgba(255, 255, 255, .55); }
.auth-float {
    position: absolute; display: flex; align-items: center; gap: .75rem; padding: .85rem 1.1rem; border-radius: 18px; max-width: 280px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
    animation: acc-float 7s ease-in-out infinite;
}
.auth-float .dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #10b981, #06b6d4); flex: none; }
.auth-float svg { width: 20px; height: 20px; }
.auth-float strong { display: block; font-size: 14px; }
.auth-float span { font-size: 12px; color: rgba(255, 255, 255, .7); }
@keyframes acc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.auth-form { display: grid; place-items: center; padding: 2.5rem 1.25rem; }
.auth-card { width: 100%; max-width: 420px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-block-end: 2.5rem; }
.auth h1 { font-size: 26px; font-weight: 900; }
.auth .lead-sm { color: var(--c-muted); font-size: 14px; margin-block-end: 1.75rem; }
.auth-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-block-start: 1.5rem; font-size: 14px; }
.auth-divider { display: flex; align-items: center; gap: .75rem; color: var(--c-faint); font-size: 12px; margin-block: 1.5rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--c-border); }
.auth-below { margin-block-start: 2rem; font-size: 13px; color: var(--c-muted); text-align: center; }
@media (max-width: 960px) {
    .auth { grid-template-columns: 1fr; }
    .auth-art { display: none; }
}

/* ---------- Customer panel shell ---------- */
.acc { display: grid; grid-template-columns: 282px minmax(0, 1fr); min-height: 100vh; }
.acc-side {
    position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem 1rem;
    background: var(--c-sidebar); border-inline-end: 1px solid var(--c-border); z-index: 40;
}
.acc-side .brand { padding: .25rem .5rem 1rem; }
.acc-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; scrollbar-width: thin; }
.acc-nav-label { font-size: 11px; font-weight: 700; color: var(--c-faint); padding: .9rem .75rem .35rem; letter-spacing: .02em; }
.acc-nav a {
    position: relative; display: flex; align-items: center; gap: .75rem; padding: .62rem .75rem; border-radius: 14px;
    color: var(--c-muted); font-size: 14px; font-weight: 600; transition: background .15s, color .15s;
}
.acc-nav a .ic { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--c-surface-2); border: 1px solid var(--c-border); transition: inherit; }
.acc-nav a svg { width: 18px; height: 18px; }
.acc-nav a:hover { background: var(--c-surface-2); color: var(--c-text); text-decoration: none; }
.acc-nav a[aria-current="page"] { background: var(--c-primary-soft); color: var(--c-primary); }
.acc-nav a[aria-current="page"] .ic { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -8px rgba(var(--c-primary-rgb), .9); }
.acc-nav .count { margin-inline-start: auto; min-width: 22px; height: 22px; padding: 0 .4rem; border-radius: 999px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--c-danger); }
.acc-upgrade { position: relative; overflow: hidden; border-radius: 18px; padding: 1rem; color: #fff; background: var(--grad); font-size: 13px; }
.acc-upgrade::after { content: ""; position: absolute; inset-inline-end: -30px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.acc-upgrade strong { display: block; font-size: 14px; margin-bottom: .25rem; }
.acc-upgrade a { color: #fff; font-weight: 700; text-decoration: underline; }
.acc-me { display: flex; align-items: center; gap: .7rem; padding: .7rem; border: 1px solid var(--c-border); border-radius: 16px; background: var(--c-surface-2); }
.acc-me .name { font-weight: 700; font-size: 14px; line-height: 1.35; }
.acc-me .sub { font-size: 12px; color: var(--c-muted); }
.acc-me form { margin-inline-start: auto; }
.acc-me button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; border: 0; background: transparent; color: var(--c-muted); cursor: pointer; }
.acc-me button:hover { background: var(--c-danger-soft); color: var(--c-danger); }
.avatar { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; font-weight: 800; color: #fff; background: var(--grad); }
.avatar-lg { width: 64px; height: 64px; border-radius: 20px; font-size: 24px; }

.acc-main { min-width: 0; display: flex; flex-direction: column; }
.acc-top {
    position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 1rem; padding: .85rem clamp(1rem, 3vw, 2rem);
    background: color-mix(in srgb, var(--c-bg) 82%, transparent); backdrop-filter: saturate(170%) blur(14px); border-block-end: 1px solid var(--c-border);
}
.acc-top h1 { font-size: 19px; font-weight: 800; margin: 0; }
.acc-crumbs { font-size: 12px; color: var(--c-muted); }
.acc-crumbs a { color: inherit; }
.acc-top-end { margin-inline-start: auto; display: flex; align-items: center; gap: .5rem; }
.icon-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-muted); cursor: pointer; transition: color .15s, border-color .15s; text-decoration: none !important; }
.icon-btn:hover { color: var(--c-primary); border-color: color-mix(in srgb, var(--c-primary) 35%, var(--c-border)); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .pip { position: absolute; top: 6px; inset-inline-end: 6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--c-danger); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--c-surface); }
.theme-dark-only { display: none; }
:root[data-theme="dark"] .theme-dark-only { display: inline; }
:root[data-theme="dark"] .theme-light-only { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-dark-only { display: inline; }
    :root:not([data-theme="light"]) .theme-light-only { display: none; }
}
.acc-content { width: 100%; max-width: 1180px; margin: 0 auto; padding: clamp(1rem, 3vw, 2rem); }
.menu-toggle { display: none; }
.acc-backdrop { display: none; }

@media (max-width: 1024px) {
    .acc { grid-template-columns: 1fr; }
    .acc-side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 290px; transform: translateX(105%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
    [dir="ltr"] .acc-side { transform: translateX(-105%); }
    body.nav-open .acc-side { transform: none; }
    body.nav-open .acc-backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(2, 6, 23, .45); }
    .menu-toggle { display: grid; }
}

/* ---------- Blocks ---------- */
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; margin-block-end: 1.25rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-block-end: 1.1rem; }
.card-head h2 { font-size: 16px; font-weight: 800; margin: 0; }
.card h2 { font-size: 17px; font-weight: 800; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid > .full, .grid-3 > .full { grid-column: 1 / -1; }
.grid > .card, .grid > * > .card, .grid-3 > .card, .grid-4 > .card { margin-block-end: 0; }
.stack > * + * { margin-block-start: 1.25rem; }

.hero {
    position: relative; overflow: hidden; isolation: isolate; border-radius: 26px; padding: clamp(1.5rem, 3vw, 2.25rem); color: #fff; margin-block-end: 1.5rem;
    background: radial-gradient(30rem 18rem at 100% 0%, rgba(6, 182, 212, .55), transparent 60%), radial-gradient(26rem 18rem at 0% 120%, rgba(236, 72, 153, .35), transparent 60%), linear-gradient(135deg, #1e1b4b, #4338ca 55%, #6d28d9);
    box-shadow: var(--shadow-lg);
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .25; background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent, #000 60%); }
[dir="rtl"] .hero::before { mask-image: linear-gradient(-90deg, transparent, #000 60%); }
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.hero h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 900; margin: 0 0 .35rem; }
.hero p { color: rgba(255, 255, 255, .8); margin: 0; }
.hero .chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-block-start: 1.1rem; }
.hero .chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(6px); }
.hero .chip svg { width: 15px; height: 15px; }
.ring { position: relative; width: 108px; height: 108px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-weight: 900; font-size: 22px; line-height: 1.1; }
.ring .val small { display: block; font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .75); }

.tile {
    position: relative; display: flex; flex-direction: column; gap: .75rem; padding: 1.2rem; border-radius: 18px; background: var(--c-surface);
    border: 1px solid var(--c-border); box-shadow: var(--shadow); color: var(--c-text); text-decoration: none !important; transition: transform .15s, box-shadow .2s, border-color .2s;
}
a.tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c-primary) 35%, var(--c-border)); box-shadow: 0 18px 40px -22px rgba(var(--c-primary-rgb), .55); }
.tile .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 10px 22px -12px rgba(var(--c-primary-rgb), .9); }
.tile .ic svg { width: 22px; height: 22px; }
.tile .t { font-weight: 800; font-size: 15px; }
.tile .d { font-size: 13px; color: var(--c-muted); line-height: 1.7; }
.tile .go { position: absolute; top: 1.2rem; inset-inline-end: 1.2rem; color: var(--c-faint); }
.tile .go svg { width: 18px; height: 18px; }
[dir="rtl"] .tile .go svg { transform: scaleX(-1); }
.tone-cyan .ic { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.tone-emerald .ic { background: linear-gradient(135deg, #10b981, #14b8a6); }
.tone-amber .ic { background: linear-gradient(135deg, #f59e0b, #f97316); }
.tone-rose .ic { background: linear-gradient(135deg, #f43f5e, #ec4899); }

.stat { display: flex; align-items: center; gap: 1rem; }
.stat .icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--c-primary-soft); color: var(--c-primary); flex: none; }
.stat .icon svg { width: 22px; height: 22px; }
.stat .label { font-size: 12px; color: var(--c-muted); }
.stat .value { font-weight: 800; }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: .85rem; padding: .85rem 0; border-block-end: 1px solid var(--c-border); }
.list > li:last-child { border-block-end: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 700; font-size: 14px; }
.list .meta { font-size: 12px; color: var(--c-muted); }
.list .unread::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-primary); flex: none; }

.table-wrap { overflow-x: auto; margin-inline: -1.5rem; padding-inline: 1.5rem; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; font-size: 12px; font-weight: 700; color: var(--c-muted); padding: .6rem .75rem; border-block-end: 1px solid var(--c-border); white-space: nowrap; }
.table td { padding: .85rem .75rem; border-block-end: 1px solid var(--c-border); vertical-align: middle; }
.table tr:last-child td { border-block-end: 0; }
.table tr:hover td { background: var(--c-surface-2); }

.empty { text-align: center; padding: 2.5rem 1rem; color: var(--c-muted); }
.empty .ic { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 20px; display: grid; place-items: center; background: var(--c-primary-soft); color: var(--c-primary); }
.empty .ic svg { width: 28px; height: 28px; }
.empty h3 { color: var(--c-text); font-size: 16px; font-weight: 800; }

.meter { height: 8px; border-radius: 999px; background: var(--c-surface-2); overflow: hidden; border: 1px solid var(--c-border); }
.meter > span { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.form-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.pagination { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: center; margin-block-start: 1.25rem; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 .6rem; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--c-border); background: var(--c-surface); font-size: 13px; font-weight: 700; color: var(--c-muted); }
.pagination .active { background: var(--c-primary); color: #fff; border-color: transparent; }

@media (max-width: 900px) {
    .grid, .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
