/* ============================================================
   CallPro — Complete Modern Stylesheet
   Self-contained. Mobile-first. Native-app feel.
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --border: #e6ebf2;
    --border-2: #eef2f7;

    --text: #0f172a;
    --text-2: #1e293b;
    --muted: #64748b;
    --muted-2: #94a3b8;

    --primary: #0d6efd;
    --primary-600: #0b5ed7;
    --primary-700: #0a4fb8;
    --primary-soft: #e7efff;

    --accent: #7c3aed;
    --accent-soft: #f0e9ff;

    --success: #10b981;
    --success-soft: #e7f9f1;

    --danger: #ef4444;
    --danger-soft: #fdecec;

    --warning: #f59e0b;
    --warning-soft: #fef3e2;

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius: 16px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 999px;

    --shadow-sm: 0 1px 3px rgba(15,23,42,.05), 0 1px 2px rgba(15,23,42,.04);
    --shadow: 0 4px 16px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
    --shadow-md: 0 10px 30px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.04);
    --shadow-lg: 0 24px 60px rgba(15,23,42,.14), 0 6px 16px rgba(15,23,42,.06);

    --ease: cubic-bezier(.4, 0, .2, 1);
    --dur-fast: .15s;
    --dur: .25s;
    --dur-slow: .4s;

    --header-h: 64px;
    --bottom-nav-h: 68px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ============================================================
   2. RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
                 Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

@media (max-width: 899px) {
    body.has-bottom-nav {
        padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 8px);
    }
}

img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: var(--primary); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--primary-700); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
::selection { background: var(--primary); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(100,116,139,.3); border-radius: var(--radius-full); }

/* ============================================================
   3. CONTAINER + TYPOGRAPHY
   ============================================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}
@media (min-width: 900px) { .container { padding: 0 24px; } }
.narrow { max-width: 720px; }

h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.35rem, 3.5vw, 2rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text-2); }
.text-muted { color: var(--muted); }
.text-link { color: var(--primary); font-weight: 600; }
.text-link:hover { text-decoration: underline; }
.text-center { text-align: center; }

/* ============================================================
   4. HEADER (glass, sticky)
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding-top: var(--safe-top);
    transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    height: var(--header-h);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}
@media (min-width: 900px) { .nav-wrap { padding: 0 24px; gap: 24px; } }

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text);
    letter-spacing: -0.02em;
    flex-shrink: 0;
    text-decoration: none;
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand img { height: 34px; width: auto; border-radius: 8px; }
.brand-icon {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 10px;
    font-size: 1.15rem;
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.3);
    flex-shrink: 0;
}
.brand-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text);
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.main-nav { display: none; align-items: center; gap: 4px; margin-left: 8px; flex: 1; }
@media (min-width: 900px) { .main-nav { display: flex; } }
.main-nav .nav-link {
    padding: 8px 14px;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--dur-fast) var(--ease);
    text-decoration: none;
}
.main-nav .nav-link:hover { background: var(--primary-soft); color: var(--primary); text-decoration: none; }
.main-nav .nav-link.active { color: var(--primary); font-weight: 600; background: var(--primary-soft); }

.nav-actions { display: none; gap: 8px; align-items: center; flex-shrink: 0; }
@media (min-width: 900px) { .nav-actions { display: flex; } }

.nav-toggle {
    margin-left: auto;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 0;
    cursor: pointer;
    flex-shrink: 0;
}
.nav-toggle:active { background: var(--surface-2); }
.nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle span + span { margin-top: 5px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) { .nav-toggle { display: none; } }

/* ============================================================
   5. MOBILE DRAWER
   ============================================================ */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
body.nav-open .mobile-drawer { opacity: 1; visibility: visible; pointer-events: auto; }

.mobile-drawer-panel {
    position: absolute;
    top: 0; right: 0;
    width: min(320px, 88vw);
    height: 100%;
    background: var(--surface);
    box-shadow: -20px 0 60px rgba(15, 23, 42, 0.2);
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease);
    padding: calc(var(--header-h) + var(--safe-top) + 12px) 16px calc(20px + var(--safe-bottom));
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
body.nav-open .mobile-drawer-panel { transform: translateX(0); }

.mobile-drawer-panel .nav-link {
    display: block;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
    font-size: 0.98rem;
    text-decoration: none;
    transition: background var(--dur-fast) var(--ease);
}
.mobile-drawer-panel .nav-link:hover,
.mobile-drawer-panel .nav-link:active { background: var(--surface-2); text-decoration: none; }
.mobile-drawer-panel .nav-link.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }

.mobile-drawer-divider { height: 1px; background: var(--border); margin: 12px 0; }
.mobile-drawer-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 20px; }

@media (min-width: 900px) { .mobile-drawer { display: none !important; } }

/* ============================================================
   6. BOTTOM NAV
   ============================================================ */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: calc(var(--bottom-nav-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 90;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}
@media (min-width: 900px) { .bottom-nav { display: none; } }

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    padding: 8px 4px;
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item:active { transform: scale(0.95); }
.bottom-nav-item .bn-icon {
    font-size: 1.35rem;
    line-height: 1;
    display: block;
    transition: transform var(--dur-fast) var(--ease);
}
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item.active .bn-icon { transform: translateY(-2px); }
.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: transform var(--dur-fast) var(--ease),
                box-shadow var(--dur) var(--ease),
                background var(--dur) var(--ease),
                color var(--dur) var(--ease);
    -webkit-user-select: none;
    user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.28);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
    transform: translateY(-1px);
}

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); text-decoration: none; }

.btn-white { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.btn-white:hover { color: var(--primary-700); text-decoration: none; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { color: #fff; text-decoration: none; }

.btn-outline-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-outline-danger:hover { background: var(--danger); color: #fff; text-decoration: none; }

.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ============================================================
   8. CARDS
   ============================================================ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; }
.card-head h3 { margin: 0; font-size: 1.05rem; }

/* ============================================================
   9. SECTIONS
   ============================================================ */
.section { padding: 40px 0; }
@media (min-width: 900px) { .section { padding: 64px 0; } }

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.section-head h2 { margin: 0; }

.page-hero {
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    padding: 48px 0;
    text-align: center;
}
.page-hero h1 { margin: 0 0 8px; }

/* ============================================================
   10. HERO (homepage)
   ============================================================ */
.hero {
    background: linear-gradient(135deg, #0b1220 0%, #1e293b 60%, #312e81 100%);
    color: #fff;
    padding: 56px 0 64px;
    position: relative;
    overflow: hidden;
}
.hero-inner { display: grid; gap: 32px; align-items: center; position: relative; z-index: 1; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 48px; } }
.hero-text h1 { color: #fff; font-size: clamp(2rem, 6vw, 3.5rem); margin: 0 0 16px; letter-spacing: -0.03em; }
.hero-text p { font-size: clamp(1rem, 2.5vw, 1.2rem); color: rgba(255, 255, 255, 0.82); margin-bottom: 28px; max-width: 560px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-buttons .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.05); }
.hero-buttons .btn-outline:hover { background: #fff; color: #0b1220; border-color: #fff; }
.hero-art { text-align: center; }
.phone-mock { font-size: clamp(5rem, 15vw, 10rem); line-height: 1; }

/* ============================================================
   11. BANNERS + ADS
   ============================================================ */
.banner-top, .banner-mid, .banner-bottom { padding: 24px 0; }
.banner-slide {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}
.banner-slide img { width: 100%; height: auto; display: block; }
.banner-slide + .banner-slide { margin-top: 16px; }
.banner-cta {
    position: absolute;
    bottom: 16px; left: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
}
.ads-row { padding: 24px 0; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.ad-image img { border-radius: var(--radius); }
.ad-text {
    display: block;
    padding: 14px 18px;
    background: var(--warning-soft);
    color: #92400e;
    border: 1px solid #fed7aa;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

/* ============================================================
   12. FEATURES
   ============================================================ */
.features-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all var(--dur) var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
    font-size: 1.75rem;
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
    border-radius: 14px;
    display: grid; place-items: center;
    margin-bottom: 16px;
}
.feature h3 { margin-bottom: 6px; font-size: 1.05rem; }
.feature p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* ============================================================
   13. NEWS
   ============================================================ */
.news-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .news-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .news-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.news-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
    display: block;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card h3 { margin: 12px 16px 6px; font-size: 1.05rem; }
.news-card h3 a { color: var(--text); }
.news-card h3 a:hover { color: var(--primary); text-decoration: none; }
.news-card p { margin: 0 16px 16px; color: var(--muted); font-size: 0.9rem; }
.news-meta {
    display: flex; gap: 8px; align-items: center;
    padding: 14px 16px 0;
    font-size: 0.78rem;
    color: var(--muted);
    flex-wrap: wrap;
}
.chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    padding: 4px 10px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.chip-soft { background: var(--surface-2); color: var(--text-2); text-transform: none; letter-spacing: 0; }

/* ============================================================
   14. STEPS
   ============================================================ */
.steps { display: grid; gap: 24px; grid-template-columns: 1fr; list-style: none; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.step-num {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; font-weight: 800; margin-bottom: 12px;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ============================================================
   15. FAQ
   ============================================================ */
.faq-list { display: grid; gap: 12px; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer; padding: 18px 20px;
    font-weight: 600; font-size: 0.98rem;
    list-style: none; position: relative;
    padding-right: 48px;
    -webkit-user-select: none;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; position: absolute; right: 20px; top: 50%;
    transform: translateY(-50%); font-size: 1.4rem;
    color: var(--primary);
    transition: transform var(--dur) var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ============================================================
   16. CTA BAND
   ============================================================ */
.cta-band {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    padding: 48px 0;
}
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between; }
.cta-inner h2 { color: #fff; margin: 0 0 6px; }
.cta-inner p { color: rgba(255, 255, 255, 0.85); margin: 0; }

/* ============================================================
   17. FORMS
   ============================================================ */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 6px;
    color: var(--text-2);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color var(--dur-fast) var(--ease),
                box-shadow var(--dur-fast) var(--ease);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-check { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.form-check input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--primary); cursor: pointer; }

.search-input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    margin-bottom: 16px;
    font-size: 0.98rem;
    transition: all var(--dur-fast) var(--ease);
}
.search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12); }

/* ============================================================
   18. FLASH
   ============================================================ */
.flash { padding: 14px 18px; border-radius: var(--radius-sm); margin: 16px 0; font-size: 0.92rem; font-weight: 500; }
.flash-success { background: var(--success-soft); color: #065f46; border: 1px solid #a7f3d0; }
.flash-danger  { background: var(--danger-soft);  color: #991b1b; border: 1px solid #fecaca; }
.flash-warning { background: var(--warning-soft); color: #92400e; border: 1px solid #fde68a; }
.flash-info    { background: var(--primary-soft); color: #1e40af; border: 1px solid #bfdbfe; }

/* ============================================================
   19. AUTH
   ============================================================ */
.auth-page {
    min-height: calc(100vh - var(--header-h) - var(--bottom-nav-h));
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background: radial-gradient(ellipse at top, #eef2ff 0%, var(--bg) 60%);
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
@media (min-width: 640px) { .auth-card { padding: 40px 32px; } }
.auth-card h1 { margin: 0 0 6px; font-size: 1.6rem; text-align: center; }
.auth-card > p { text-align: center; margin-bottom: 24px; }
.auth-card .btn-primary { padding: 14px; font-size: 1rem; margin-top: 8px; }
.auth-footer { text-align: center; margin-top: 20px; color: var(--muted); font-size: 0.9rem; }
.auth-footer a { font-weight: 600; }

/* ============================================================
   20. APP PAGES
   ============================================================ */
.app-page { padding: 20px 0 32px; min-height: calc(100vh - var(--header-h)); }
@media (min-width: 900px) { .app-page { padding: 40px 0; } }
.app-head { margin-bottom: 20px; }
.app-head.flex { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.app-head h1 { margin: 0 0 4px; font-size: clamp(1.5rem, 4vw, 2rem); }
.app-head p { margin: 0; font-size: 0.92rem; }

/* ============================================================
   21. DASHBOARD
   ============================================================ */
.dashboard-page { padding: 0 0 32px; }

.dash-welcome { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0 20px; }
.dash-welcome-text { min-width: 0; flex: 1; }
.dash-greeting { font-size: 0.9rem; color: var(--muted); margin: 0 0 2px; font-weight: 500; }
.dash-name { font-size: clamp(1.5rem, 5vw, 2rem); margin: 0 0 6px; letter-spacing: -0.02em; line-height: 1.15; }
.dash-subtitle { font-size: 0.9rem; color: var(--muted); margin: 0; line-height: 1.5; }
.dash-subtitle strong { color: var(--text); font-weight: 700; }

.dash-avatar {
    position: relative;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    overflow: hidden;
    text-decoration: none;
    border: 2px solid #fff;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.28);
    transition: transform var(--dur-fast) var(--ease);
}
.dash-avatar:hover { transform: scale(1.05); text-decoration: none; }
.dash-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-avatar .avatar-badge {
    position: absolute;
    top: -2px; right: -2px;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 20px; height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
}

.dash-wallet {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    padding: 24px 20px;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px rgba(13, 110, 253, 0.25);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.dash-wallet::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.dash-wallet-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; position: relative; z-index: 1; }
.dash-wallet-top small { display: block; font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); margin-bottom: 4px; font-weight: 500; }
.dash-wallet-top h2 { color: #fff; font-size: clamp(1.75rem, 6vw, 2.25rem); margin: 0; letter-spacing: -0.03em; line-height: 1.1; }
.dash-wallet-icon { font-size: 2rem; opacity: 0.35; }

.dash-wallet .wallet-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}
.dash-wallet .wallet-actions .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15); }
.dash-wallet .wallet-actions .btn-primary:hover { background: #f8fafc; color: var(--primary); }
.dash-wallet .wallet-actions .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}
.dash-wallet .wallet-actions .btn-outline:hover { background: rgba(255, 255, 255, 0.2); color: #fff; border-color: #fff; }

.dash-wallet-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
}
.dash-wallet-stat { text-align: center; }
.dash-wallet-stat strong { display: block; font-size: 1.15rem; font-weight: 800; color: #fff; line-height: 1.2; }
.dash-wallet-stat strong .unit { font-size: 0.7em; opacity: 0.7; }
.dash-wallet-stat small { display: block; font-size: 0.7rem; color: rgba(255, 255, 255, 0.75); margin-top: 2px; font-weight: 500; }

.dash-section { margin-bottom: 28px; }
.dash-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dash-section-head h2 { margin: 0; font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
@media (min-width: 900px) { .dash-section-head h2 { font-size: 1.15rem; } }

/* ============================================================
   22. QUICK ACTIONS (compact)
   ============================================================ */
.qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.qa {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 4px;
    min-height: 68px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    text-align: center;
    overflow: hidden;
    transition: all var(--dur-fast) var(--ease);
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}
.qa:hover {
    background: var(--surface-2);
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.qa:active { transform: scale(0.96); }

.qa-icon { font-size: 1.15rem; line-height: 1; display: block; }
.qa-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}

.qa-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.3);
}
.qa-primary:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: #fff;
    border-color: transparent;
}

@media (max-width: 360px) {
    .qa { min-height: 62px; padding: 10px 3px; gap: 3px; }
    .qa-icon { font-size: 1.05rem; }
    .qa-label { font-size: 0.58rem; }
}
@media (min-width: 640px) {
    .qa-grid { gap: 12px; }
    .qa { min-height: 82px; padding: 14px 8px; gap: 5px; }
    .qa-icon { font-size: 1.35rem; }
    .qa-label { font-size: 0.72rem; }
}
@media (min-width: 900px) {
    .qa-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
    .qa { min-height: 90px; padding: 16px 10px; gap: 6px; }
    .qa-icon { font-size: 1.6rem; }
    .qa-label { font-size: 0.82rem; }
}

/* ============================================================
   23. DASH LISTS
   ============================================================ */
.dash-list {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    padding: 4px 16px;
}
.dash-loading { padding: 12px 0; }

.dash-empty {
    text-align: center;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.dash-empty-icon { font-size: 2.5rem; opacity: 0.4; display: block; }
.dash-empty p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Call rows */
.call-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-2);
    transition: background var(--dur-fast) var(--ease);
}
.call-row:last-child { border-bottom: none; }
.call-row:active { background: var(--surface-2); }
.call-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--success-soft);
    color: var(--success);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.call-icon.outgoing { background: var(--primary-soft); color: var(--primary); }
.call-icon.missed   { background: var(--danger-soft); color: var(--danger); }
.call-info { flex: 1; min-width: 0; }
.call-info strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.call-info small { color: var(--muted); font-size: 0.8rem; }
.call-cost { font-weight: 700; font-size: 0.9rem; color: var(--text); }

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 16px;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    padding: 9px 16px;
    background: var(--surface);
    color: var(--text-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--dur-fast) var(--ease);
}
.tab:hover { border-color: var(--primary); color: var(--primary); }
.tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* ============================================================
   24. DIALER (with visible dialpad + blue call button)
   ============================================================ */
.dialer-page .dialer {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.dial-input {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 1.5rem;
    text-align: center;
    font-weight: 700;
    font-family: "SF Mono", Menlo, Consolas, monospace;
    letter-spacing: 2px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
    color: var(--text);
    margin-bottom: 16px;
}
.dial-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

/* Dialpad grid — DOLE ya bayyana */
.dialpad {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    margin: 16px 0 !important;
}

.dial-key {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px 8px !important;
    min-height: 64px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e6ebf2 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    font-family: inherit !important;
    transition: all .15s ease !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    color: #0f172a !important;
}
.dial-key:hover {
    background: #e7efff !important;
    border-color: #0d6efd !important;
}
.dial-key:active {
    transform: scale(0.94) !important;
    background: #0d6efd !important;
    color: #fff !important;
}
.dial-key:active .dial-num { color: #fff !important; }
.dial-key:active .dial-sub { color: rgba(255,255,255,.85) !important; }

.dial-num {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #0f172a !important;
    display: block !important;
}
.dial-sub {
    font-size: 0.62rem !important;
    color: #64748b !important;
    letter-spacing: 0.08em !important;
    font-weight: 500 !important;
    margin-top: 2px !important;
    text-transform: uppercase !important;
    display: block !important;
}

/* Actions */
.dial-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 16px 0 !important;
}

/* ============================================================
   CALL BUTTON — FORCE BLUE (this is critical)
   ============================================================ */
#dialCall,
button#dialCall {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    padding: 14px 20px !important;
    background: linear-gradient(135deg, #0d6efd, #0b5ed7) !important;
    background-color: #0d6efd !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.28) !important;
    min-height: 48px !important;
    min-width: 120px !important;
}
#dialCall:hover {
    background: linear-gradient(135deg, #0b5ed7, #0a4fb8) !important;
    color: #ffffff !important;
}
#dialCall:active { transform: scale(0.97) !important; }
#dialCall:disabled { opacity: 0.6 !important; cursor: not-allowed !important; }

/* Delete button */
#dialDelete,
button#dialDelete {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 14px !important;
    background: transparent !important;
    color: #0d6efd !important;
    border: 1.5px solid #0d6efd !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    min-height: 44px !important;
}
#dialDelete:hover { background: #0d6efd !important; color: #fff !important; }

/* Clear button */
#dialClear,
button#dialClear {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 14px !important;
    background: transparent !important;
    color: #0f172a !important;
    border: 0 !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    min-height: 44px !important;
}
#dialClear:hover { background: #f8fafc !important; }

.dial-hint {
    text-align: center;
    font-size: 0.8rem;
    margin: 8px 0 0;
    color: var(--muted);
}

.recent-calls {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
}

@media (max-width: 480px) {
    .dialer-page .dialer { padding: 16px 12px; }
    .dial-input { font-size: 1.35rem; padding: 14px; }
    .dialpad { gap: 8px !important; }
    .dial-key { min-height: 58px !important; padding: 12px 4px !important; }
    .dial-num { font-size: 1.35rem !important; }
    .dial-sub { font-size: 0.55rem !important; }
    #dialCall { padding: 12px !important; font-size: 0.95rem !important; min-width: 100px !important; }
    #dialDelete, #dialClear { padding: 10px !important; font-size: 0.78rem !important; }
}

/* ============================================================
   25. CONTACTS
   ============================================================ */
.contacts-toolbar { margin-bottom: 16px; }
.contacts-list {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-2);
}
.contact-row:last-child { border-bottom: none; }
.contact-avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.25);
}
.contact-info { flex: 1; min-width: 0; }
.contact-info strong {
    display: block;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.contact-info small { color: var(--muted); font-size: 0.82rem; }
.contact-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ============================================================
   26. MODAL
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: grid;
    place-items: end center;
    z-index: 200;
}
.modal[hidden] { display: none !important; }
body.modal-open { overflow: hidden; }
@media (min-width: 640px) { .modal { place-items: center; padding: 24px; } }
.modal-content {
    background: var(--surface);
    padding: 24px 20px calc(24px + var(--safe-bottom));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 -20px 60px rgba(15, 23, 42, 0.25);
    max-height: 90vh;
    overflow-y: auto;
}
@media (min-width: 640px) { .modal-content { border-radius: var(--radius-lg); padding: 32px; } }
.modal-content h3 { margin: 0 0 20px; font-size: 1.25rem; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.quick-amounts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.quick-amounts button {
    padding: 10px 18px;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--dur-fast) var(--ease);
}
.quick-amounts button:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }

/* ============================================================
   27. WALLET
   ============================================================ */
.wallet-hero {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    text-align: center;
    padding: 32px 20px;
    border: 0;
    border-radius: var(--radius-lg);
}
.wallet-hero small { color: rgba(255,255,255,.85); font-size: .9rem; }
.wallet-hero h1 { color: #fff; font-size: clamp(2rem, 8vw, 3rem); margin: 8px 0 20px; letter-spacing: -0.03em; }
.wallet-hero-actions .btn-primary { background: #fff; color: var(--primary); box-shadow: none; }
.wallet-hero-actions .btn-primary:hover { background: #f8fafc; color: var(--primary); }

.tx-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-2);
}
.tx-row:last-child { border-bottom: none; }
.tx-type {
    text-transform: capitalize;
    font-size: 0.75rem;
    padding: 5px 10px;
    background: var(--surface-2);
    border-radius: var(--radius-xs);
    font-weight: 700;
    flex-shrink: 0;
}
.tx-info { flex: 1; min-width: 0; }
.tx-info small { display: block; color: var(--muted); font-size: 0.78rem; }
.tx-amount.pos { color: var(--success); font-weight: 800; }
.tx-amount.neg { color: var(--danger); font-weight: 800; }

/* ============================================================
   28. PROFILE
   ============================================================ */
.profile-card { padding: 32px 24px; }
.profile-head { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 1.75rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.3);
}
.profile-facts { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .profile-facts { grid-template-columns: 1fr 1fr; } }
.profile-facts dt { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.profile-facts dd { margin: 4px 0 0; font-weight: 600; font-size: 0.95rem; }

/* ============================================================
   29. ARTICLE
   ============================================================ */
.article-page { padding: 24px 0 40px; }
.article-container { max-width: 780px; margin: 0 auto; }
.article-head { text-align: center; margin-bottom: 32px; }
.article-head h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); letter-spacing: -0.02em; }
.article-meta {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    color: var(--muted);
    font-size: 0.88rem;
    margin: 16px 0;
    flex-wrap: wrap;
}
.article-hero { width: 100%; border-radius: var(--radius); margin-top: 16px; box-shadow: var(--shadow-md); }
.article-body { font-size: 1.05rem; line-height: 1.75; color: var(--text-2); }
.article-body img { border-radius: var(--radius); margin: 20px 0; }
.article-body h2 { margin-top: 32px; font-size: 1.5rem; }
.article-body p { margin-bottom: 16px; }
.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    background: var(--primary-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 20px 0;
    font-style: italic;
}
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0 20px; }
.share-row {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.share-row a {
    padding: 8px 14px;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ============================================================
   30. PAGINATION + MISC
   ============================================================ */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
    flex-wrap: wrap;
}
.page-link, .pagination button {
    padding: 10px 16px;
    background: var(--surface);
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    min-width: 44px;
    text-align: center;
    transition: all var(--dur-fast) var(--ease);
}
.page-link:hover, .pagination button:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); text-decoration: none; }
.page-link.active, .pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.contact-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1fr 2fr; gap: 32px; } }

.prose { max-width: 780px; margin: 0 auto; font-size: 1.05rem; line-height: 1.75; color: var(--text-2); }
.prose h2 { margin-top: 32px; }
.prose img { border-radius: var(--radius); margin: 20px 0; }

.empty { text-align: center; color: var(--muted); padding: 40px 20px; font-size: 0.95rem; }

.spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .6s linear infinite;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.shimmer {
    background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 50%, #eef2f7 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
    border-radius: var(--radius-xs);
}
@keyframes shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

/* ============================================================
   31. FOOTER
   ============================================================ */
.site-footer {
    background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
    color: #cbd5e1;
    margin-top: 48px;
}
@media (min-width: 900px) { .site-footer { margin-top: 80px; } }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; text-decoration: none; }

.footer-grid { display: grid; gap: 32px; padding: 48px 0 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; } }
.footer-brand h4 { color: #fff; margin-bottom: 12px; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.footer-brand p { color: #94a3b8; font-size: 0.9rem; line-height: 1.6; }
.footer-links h5 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}
.footer-links a, .footer-links span { display: block; margin-bottom: 10px; font-size: 0.9rem; color: #94a3b8; }
.footer-links a:hover { color: #fff; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.socials a {
    font-size: 0.8rem;
    padding: 8px 14px;
    border: 1px solid #334155;
    border-radius: var(--radius-full);
    font-weight: 600;
}
.socials a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

@media (max-width: 899px) {
    body.has-bottom-nav .site-footer {
        display: none;
    }
}

/* ============================================================
   32. RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .section { padding: 32px 0; }
    .card { padding: 16px; }
    .hero { padding: 40px 0 48px; }
    .cta-band { padding: 32px 0; }
    .dash-welcome { padding: 4px 0 16px; }
    .dash-avatar { width: 48px; height: 48px; font-size: 1.2rem; }
    .dash-wallet { padding: 20px 16px; margin-bottom: 16px; }
    .dash-wallet-top h2 { font-size: 1.6rem; }
    .dash-section { margin-bottom: 20px; }
    .dash-list { padding: 2px 12px; }
}

/* ============================================================
   33. MAINTENANCE
   ============================================================ */
.maintenance-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0b1220, #1e293b);
    color: #fff;
    text-align: center;
    padding: 32px 16px;
}
.maintenance-page h1 { color: #fff; font-size: clamp(1.75rem, 6vw, 2.5rem); }
.maintenance-page p { color: rgba(255, 255, 255, 0.75); }

