/* ============================================================
   ستار SMS - Dark Premium Design
   Black-first with subtle color accents
   Performance-focused: minimal animations, no heavy effects
   ============================================================ */

:root {
    /* === BASE: Pure Black Hierarchy === */
    --bg:             #000000;
    --bg-soft:        #0a0a0a;
    --bg-card:        #111111;
    --bg-elevated:    #1a1a1a;
    --bg-overlay:     #222222;
    --bg-dark:        #050505;

    /* === INK === */
    --ink:            #ffffff;
    --ink-soft:       #b3b3b3;
    --ink-mute:       #707070;
    --ink-faint:      #404040;

    /* === LINES (subtle) === */
    --line:           #1f1f1f;
    --line-strong:    #2a2a2a;
    --line-subtle:    #141414;

    /* === ACCENT (subtle color touches) === */
    --accent:         #c084fc;          /* Soft purple highlight */
    --accent-bright:  #d8b4fe;
    --accent-hover:   #a855f7;
    --accent-glow:    rgba(192, 132, 252, 0.15);
    --accent-soft:    rgba(192, 132, 252, 0.08);

    --primary:        #3b82f6;          /* Cool blue - secondary accent */
    --primary-soft:   rgba(59, 130, 246, 0.1);

    /* === STATUS === */
    --success:        #4ade80;
    --success-soft:   rgba(74, 222, 128, 0.1);
    --warning:        #fbbf24;
    --warning-soft:   rgba(251, 191, 36, 0.1);
    --danger:         #f87171;
    --danger-soft:    rgba(248, 113, 113, 0.1);
    --info:           #60a5fa;
    --info-soft:      rgba(96, 165, 250, 0.1);

    /* === TYPOGRAPHY === */
    --font-body:      'IBM Plex Sans Arabic', -apple-system, system-ui, sans-serif;
    --font-display:   'Reem Kufi', 'IBM Plex Sans Arabic', sans-serif;
    --font-mono:      'SF Mono', Menlo, Monaco, monospace;

    /* === SPACING === */
    --container:      1200px;
    --container-sm:   880px;
    --container-xs:   680px;

    /* === RADIUS === */
    --radius-xs:      4px;
    --radius-sm:      8px;
    --radius:         12px;
    --radius-md:      16px;
    --radius-lg:      20px;
    --radius-xl:      28px;
    --radius-full:    999px;

    /* === SHADOWS (minimal for performance) === */
    --shadow-sm:      0 1px 2px rgba(0,0,0,0.5);
    --shadow:         0 4px 16px rgba(0,0,0,0.5);
    --shadow-lg:      0 20px 40px rgba(0,0,0,0.6);

    /* === MOTION === */
    --ease:           cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ RESET (minimal) ============ */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s var(--ease);
}
a:hover { color: var(--accent-bright); }

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
    color: var(--ink);
}
h1 { font-size: clamp(36px, 5vw, 60px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 22px; }

p { margin: 0 0 1em; }

::selection { background: var(--accent); color: #000; }

/* ============ LAYOUT ============ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

/* ============ HEADER ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--ink);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--ink);
    color: #000;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
}

.brand-text {
    color: var(--ink);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    margin: 0 24px;
}

.nav-links a {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
    border-radius: var(--radius-sm);
    transition: all 0.15s var(--ease);
}

.nav-links a:hover {
    color: var(--ink);
    background: var(--bg-elevated);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-balance {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: border-color 0.15s var(--ease);
}
.btn-balance:hover {
    border-color: var(--accent);
}
.balance-label { color: var(--ink-mute); }
.balance-amount { color: var(--accent-bright); font-weight: 700; font-family: var(--font-mono); }

.btn-user {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--ink);
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
}

.nav-toggle { display: none; }

/* ============ BUTTONS ============ */
.btn-primary, .btn-accent, .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s var(--ease);
    white-space: nowrap;
}

.btn-accent {
    background: var(--ink);
    color: #000;
}
.btn-accent:hover {
    background: var(--accent-bright);
    color: #000;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}
.btn-primary:hover {
    background: var(--accent-bright);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}
.btn-ghost:hover {
    background: var(--bg-elevated);
    border-color: var(--ink-mute);
}

.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: var(--radius); }
.btn-xl { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-md); }
.btn-block { width: 100%; }

/* ============ HERO ============ */
.hero {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

/* Single subtle gradient orb - lightweight */
.hero::before {
    content: '';
    position: absolute;
    top: -300px;
    left: 50%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 24px;
}

.hero-eyebrow .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.hero h1 {
    margin-bottom: 20px;
    color: var(--ink);
}

.hero-sub {
    font-size: 18px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.hero-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.hero-stat span {
    font-size: 12px;
    color: var(--ink-mute);
}

/* ============ HERO PREVIEW CARD ============ */
.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.card-label {
    font-size: 12px;
    color: var(--ink-mute);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.number-display {
    font-family: var(--font-mono);
    font-size: 30px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.sms-bubble {
    background: var(--bg-elevated);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.sms-from {
    font-size: 13px;
    color: var(--ink-mute);
    margin-bottom: 6px;
}

.sms-text {
    font-size: 16px;
    color: var(--ink);
}

.sms-code {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-bright);
    background: var(--accent-soft);
    padding: 2px 8px;
    border-radius: var(--radius-xs);
}

.card-foot {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--ink-mute);
}

.timer {
    color: var(--success);
    font-family: var(--font-mono);
    font-weight: 600;
}

/* ============ SECTION HEADS ============ */
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.section-eyebrow {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-soft);
    color: var(--accent-bright);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    border: 1px solid var(--line-strong);
}

.section-head h2 {
    margin-bottom: 16px;
}

.section-head p {
    font-size: 17px;
    color: var(--ink-soft);
    line-height: 1.7;
    margin: 0;
}

/* ============ SERVICES GRID ============ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: border-color 0.15s var(--ease), transform 0.15s var(--ease);
    display: block;
}

.service-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.svc-icon {
    font-size: 36px;
    margin-bottom: 14px;
    line-height: 1;
}

.svc-name {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}

.svc-name-en {
    font-size: 12px;
    color: var(--ink-mute);
}

.svc-from {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--ink-soft);
}

.svc-from strong {
    color: var(--accent-bright);
    font-family: var(--font-mono);
}

/* ============ FEATURES GRID ============ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.feature {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.15s var(--ease);
}

.feature:hover {
    border-color: var(--line-strong);
}

.feature-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--accent-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    border: 1px solid var(--line-strong);
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature p {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* ============ STEPS ============ */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    counter-reset: step;
}

.step {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
    counter-increment: step;
    position: relative;
    transition: border-color 0.15s var(--ease);
}

.step::before {
    content: counter(step);
    position: absolute;
    top: -16px; right: 28px;
    width: 36px; height: 36px;
    background: var(--ink);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 16px;
    border: 4px solid var(--bg);
}

.step:hover {
    border-color: var(--line-strong);
}

.step h3 {
    margin-bottom: 12px;
    font-size: 19px;
}

.step p {
    color: var(--ink-soft);
    margin: 0;
}

/* ============ FORMS ============ */
.field {
    display: block;
    margin-bottom: 18px;
}

.field-label, .field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 8px;
}

.field-input, .field input[type="text"], .field input[type="email"],
.field input[type="password"], .field input[type="number"],
.field select, .field textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-elevated);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: border-color 0.15s var(--ease);
}

.field-input:focus, .field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-card);
}

.field-input::placeholder, .field input::placeholder, .field textarea::placeholder {
    color: var(--ink-mute);
}

.field-help {
    font-size: 13px;
    color: var(--ink-mute);
    margin-top: 6px;
}

.field-error {
    color: var(--danger);
    font-size: 13px;
    margin-top: 6px;
}

/* ============ TABLES ============ */
.tbl-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.tbl {
    width: 100%;
    border-collapse: collapse;
}

.tbl th {
    background: var(--bg-elevated);
    padding: 14px 18px;
    text-align: start;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-mute);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
}

.tbl td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line-subtle);
    font-size: 15px;
    color: var(--ink);
}

.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: var(--bg-elevated); }

/* ============ BADGES ============ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge-success { background: var(--success-soft); color: var(--success); border-color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); border-color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); border-color: var(--info); }
.badge-accent { background: var(--accent-soft); color: var(--accent-bright); border-color: var(--line-strong); }

/* ============ FLASH MESSAGES ============ */
.flash-zone {
    margin-top: 16px;
}

.flash {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 10px;
    font-size: 14px;
    border: 1px solid;
}

.flash-success { background: var(--success-soft); color: var(--success); border-color: var(--success); }
.flash-error { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.flash-warning { background: var(--warning-soft); color: var(--warning); border-color: var(--warning); }
.flash-info { background: var(--info-soft); color: var(--info); border-color: var(--info); }

/* ============ BREADCRUMBS ============ */
.breadcrumb {
    padding: 18px 24px;
    font-size: 13px;
    color: var(--ink-mute);
}

.breadcrumb ol {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--ink-soft);
}

.breadcrumb a:hover { color: var(--accent-bright); }

.breadcrumb .sep {
    margin: 0 4px;
    color: var(--ink-faint);
}

/* ============ FOOTER ============ */
.site-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--line);
    padding: 56px 0 28px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 320px;
}

.footer-tag {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.7;
    margin-top: 16px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--ink-soft);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-col a:hover {
    color: var(--ink);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--ink-mute);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-secure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ============ DETAILS / FAQ ============ */
details {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 10px;
    padding: 18px 22px;
}

details:hover {
    border-color: var(--line-strong);
}

details[open] {
    border-color: var(--line-strong);
    background: var(--bg-elevated);
}

details summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    list-style: none;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
    content: "+";
    font-size: 22px;
    color: var(--ink-mute);
    transition: transform 0.2s var(--ease);
    line-height: 1;
}

details[open] summary::after {
    transform: rotate(45deg);
    color: var(--accent-bright);
}

details > p,
details > div {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    line-height: 1.8;
}

/* ============ CTA BANNER ============ */
.cta-banner {
    background: var(--bg-card);
    border: 1px solid var(--line-strong);
    color: var(--ink);
    padding: 56px 40px;
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta-banner h2 {
    font-size: 36px;
    color: var(--ink);
    margin-bottom: 14px;
}

.cta-banner p {
    font-size: 17px;
    color: var(--ink-soft);
    max-width: 540px;
    margin: 0 auto 28px;
}

/* ============ BLOG CARDS ============ */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.15s var(--ease);
    display: block;
    height: 100%;
}

.blog-card:hover {
    border-color: var(--accent);
}

.blog-cat {
    display: inline-block;
    padding: 4px 10px;
    background: var(--accent-soft);
    color: var(--accent-bright);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
    border: 1px solid var(--line-strong);
}

.blog-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-card p {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.blog-meta {
    font-size: 12px;
    color: var(--ink-mute);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

/* ============ POST CONTENT ============ */
.post-content {
    font-size: 17px;
    line-height: 1.85;
    color: var(--ink-soft);
}

.post-content h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.post-content h3 {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--ink);
}

.post-content p { margin-bottom: 18px; }

.post-content ul, .post-content ol {
    margin: 18px 0;
    padding-inline-start: 24px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content a {
    color: var(--accent-bright);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.post-content strong {
    color: var(--ink);
    font-weight: 700;
}

.post-content blockquote {
    border-inline-start: 3px solid var(--accent);
    margin: 24px 0;
    padding: 14px 24px;
    background: var(--bg-card);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--ink-soft);
    font-style: italic;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
}

.post-content th, .post-content td {
    padding: 12px 14px;
    text-align: start;
    border: 1px solid var(--line);
}

.post-content th {
    background: var(--bg-elevated);
    font-weight: 600;
    color: var(--ink);
}

/* ============ DASHBOARD ============ */
.dash-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding: 32px 0;
}

.dash-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    height: fit-content;
    position: sticky;
    top: 88px;
}

.dash-sidebar a {
    display: block;
    padding: 10px 14px;
    margin-bottom: 4px;
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 500;
}

.dash-sidebar a:hover {
    background: var(--bg-elevated);
    color: var(--ink);
}

.dash-sidebar a.active {
    background: var(--bg-elevated);
    color: var(--accent-bright);
    border: 1px solid var(--line-strong);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

.stat-label {
    font-size: 13px;
    color: var(--ink-mute);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--ink);
}

.stat-change {
    font-size: 13px;
    margin-top: 6px;
}

.stat-up { color: var(--success); }
.stat-down { color: var(--danger); }

/* ============ AUTH PAGES ============ */
.auth-wrap {
    max-width: 440px;
    margin: 60px auto;
    padding: 0 24px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.auth-card h1 {
    font-size: 28px;
    margin-bottom: 8px;
    text-align: center;
}

.auth-card .auth-sub {
    text-align: center;
    color: var(--ink-soft);
    margin-bottom: 32px;
}

.auth-foot {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--ink-mute);
}

.auth-foot a {
    color: var(--accent-bright);
    font-weight: 500;
}

/* Old form-card compat (for pages still using it) */
.form-card {
    max-width: 440px;
    margin: 60px auto;
    background: var(--bg-card);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    padding: 40px;
}

.form-card h1 { text-align: center; margin-bottom: 8px; }
.form-sub { text-align: center; color: var(--ink-soft); margin-bottom: 28px; }
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-elevated);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 15px;
}
.form-group input:focus { outline: none; border-color: var(--accent); }
.form-foot {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--ink-mute);
}
.form-foot a { color: var(--accent-bright); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    .section { padding: 60px 0; }

    .nav-links { display: none; }
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 32px; height: 32px;
        align-items: center;
        justify-content: center;
    }
    .nav-toggle span {
        width: 20px; height: 2px;
        background: var(--ink);
        transition: all 0.2s;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
    .hero-card { padding: 24px; }
    .number-display { font-size: 24px; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

    .cta-banner { padding: 40px 24px; }
    .cta-banner h2 { font-size: 26px; }

    .dash-layout { grid-template-columns: 1fr; }
    .dash-sidebar { position: static; }

    .auth-card, .form-card { padding: 28px 20px; }

    .post-content { font-size: 16px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .nav-actions .btn-ghost { display: none; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .service-card { padding: 20px 12px; }
    .svc-icon { font-size: 30px; }
    .svc-name { font-size: 15px; }
}

/* ============ UTILITIES ============ */
.text-center { text-align: center; }
.text-soft { color: var(--ink-soft); }
.text-mute { color: var(--ink-mute); }
.text-accent { color: var(--accent-bright); }
.mb-0 { margin-bottom: 0; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* Loading spinner */
.spinner {
    width: 18px; height: 18px;
    border: 2px solid var(--line-strong);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
