/* ============================================================
   ChargeBoxGE — Dark Theme Stylesheet
   Palette: matches EV admin panel
   ============================================================ */

:root {
    --bg:        #0f1117;
    --card:      #1a1d27;
    --card2:     #20243a;
    --border:    #2a2d3a;
    --primary:   #3b82f6;
    --primary-d: #2563eb;
    --success:   #22c55e;
    --warning:   #f59e0b;
    --danger:    #ef4444;
    --text:      #e2e8f0;
    --text-dim:  #94a3b8;
    --radius:    10px;
    --shadow:    0 4px 24px rgba(0,0,0,.45);
    --nav-h:     64px;
    --font:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    color-scheme: dark;
}
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.65; }

@supports (scrollbar-gutter: stable) {
    html { scrollbar-gutter: stable; }
}
@supports (scrollbar-width: thin) {
    html {
        scrollbar-width: thin;
        scrollbar-color: #3f4458 var(--bg);
    }
    * {
        scrollbar-width: thin;
        scrollbar-color: #3f4458 var(--bg);
    }
}

/* Scrollbar — match dark theme (Chrome, Edge, Safari) */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 10px;
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: var(--bg);
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: #3f4458;
    border: 2px solid var(--bg);
    border-radius: 999px;
}
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: #52586f;
}
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
*::-webkit-scrollbar-track {
    background: var(--bg);
}
*::-webkit-scrollbar-thumb {
    background: #3f4458;
    border: 2px solid var(--bg);
    border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover {
    background: #52586f;
}
*::-webkit-scrollbar-corner {
    background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: #60a5fa; }
ul { list-style: none; }

/* Container */
.container {
    width: 100%;
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: 20px;
}

/* ── Typography ─────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
p  { color: var(--text-dim); }

.section-header { text-align: center; margin-bottom: 52px; }
.section-header p { margin-top: 10px; font-size: 1.05rem; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background .2s, transform .15s;
    min-height: 44px;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); color: #fff; }
.btn-outline   { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-success   { background: var(--success); color: #fff; }
.btn-sm        { padding: 8px 18px; font-size: .875rem; }
.btn-lg        { padding: 15px 34px; font-size: 1.05rem; }

/* ── Navigation ─────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(15,17,23,.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--nav-h);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}
.nav-logo:hover { color: var(--text); }
.nav-logo strong { color: var(--primary); }
.nav-logo img { border-radius: 8px; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-link {
    color: var(--text-dim);
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s;
    padding-block: 4px;
    border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.active { color: var(--text); border-bottom-color: var(--primary); }

.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
}
.nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Lang switcher */
.lang-switcher { display: flex; align-items: center; gap: 6px; }
.lang-btn { color: var(--text-dim); font-size: .8rem; font-weight: 600; transition: color .2s; }
.lang-btn:hover, .lang-btn.active { color: var(--primary); }
.lang-switcher span { color: var(--border); }

/* ── Sections ───────────────────────────────────────── */
section { padding-block: 80px; }

/* ── Hero ───────────────────────────────────────────── */
.hero {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-block: 80px;
}
.hero > .container {
    width: 100%;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 70% 50%, rgba(59,130,246,.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(34,197,94,.07) 0%, transparent 60%);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}
.hero-content {
    position: relative;
    max-width: 560px;
}
.hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.hero-visual img {
    width: 100%;
    max-width: 560px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59,130,246,.15);
    border: 1px solid rgba(59,130,246,.3);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: .05em;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.1rem; margin-bottom: 36px; max-width: 520px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Stats bar ──────────────────────────────────────── */
.stats-bar { padding-block: 40px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    text-align: center;
}
.stat-item .stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.stat-item .stat-label { color: var(--text-dim); font-size: .85rem; margin-top: 6px; }

/* ── Card ───────────────────────────────────────────── */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}
.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    flex-shrink: 0;
}
.card-icon svg { display: block; }
.icon-blue   { background: rgba(59,130,246,.15); color: var(--primary); }
.icon-green  { background: rgba(34,197,94,.15);  color: var(--success); }
.icon-yellow { background: rgba(245,158,11,.15); color: var(--warning); }
.icon-red    { background: rgba(239,68,68,.15);  color: var(--danger); }

/* Grid layouts */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

/* ── Steps (How it works) ───────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: steps; }
.step-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
    counter-increment: steps;
}
.step-card::before {
    content: counter(steps);
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(59,130,246,.1);
    line-height: 1;
}
.step-icon { font-size: 2rem; margin-bottom: 14px; }
.step-card h3 { margin-bottom: 10px; }

/* ── Services preview ───────────────────────────────── */
.srv-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.srv-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.srv-card h3 { font-size: 1.4rem; }
.srv-card p { flex: 1; }
.srv-card .btn { margin-top: auto; align-self: flex-start; }

/* ── App CTA banner ─────────────────────────────────── */
.app-download-wrap {
    background: linear-gradient(135deg, rgba(59,130,246,.2) 0%, rgba(34,197,94,.12) 100%);
    border: 1px solid rgba(59,130,246,.25);
    border-radius: 16px;
    padding: 60px 40px;
}
.app-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.app-cta-text h2 { margin-bottom: 10px; }
.app-cta-text p  { font-size: 1.05rem; }
.app-cta-btns { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 20px;
    color: var(--text);
    font-weight: 600;
    transition: border-color .2s, background .2s;
    min-height: 44px;
}
.app-store-btn:hover { border-color: var(--primary); background: rgba(59,130,246,.1); color: var(--text); }
.app-store-btn svg { flex-shrink: 0; }

.app-features {
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid rgba(59,130,246,.18);
}
.app-features-heading {
    text-align: center;
    margin-bottom: 28px;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-dim);
}
.app-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.app-feature-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: rgba(15,17,23,.45);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.app-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 0;
}
.app-feature-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: .925rem;
    color: var(--text);
}
.app-feature-item p {
    font-size: .85rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin: 0;
}

/* ── Blog ───────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, transform .2s;
}
.blog-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.blog-card-img {
    height: 180px;
    background: var(--card2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.blog-meta { font-size: .8rem; color: var(--text-dim); }
.blog-card h3 { font-size: 1.05rem; }
.blog-card p { font-size: .9rem; flex: 1; }
.blog-card .read-more { color: var(--primary); font-size: .875rem; font-weight: 600; margin-top: auto; }
.blog-card .read-more:hover { color: #60a5fa; }

/* Single post */
.blog-post { max-width: 760px; margin-inline: auto; }
.blog-post h1 { margin-bottom: 14px; }
.blog-post .blog-meta { margin-bottom: 32px; }
.blog-post-body { color: var(--text); line-height: 1.8; }
.blog-post-body p { margin-bottom: 18px; color: var(--text-dim); }
.blog-post-body h2 { margin-block: 28px 12px; }
.blog-post-body h3 { margin-block: 22px 10px; }
.blog-post-body ul { margin: 0 0 18px 22px; list-style: disc; color: var(--text-dim); }

/* ── About ──────────────────────────────────────────── */
.about-hero { text-align: center; padding-bottom: 60px; }
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-story .card { height: 100%; }
.legal-box {
    background: rgba(59,130,246,.06);
    border: 1px solid rgba(59,130,246,.2);
    border-radius: var(--radius);
    padding: 28px 32px;
}
.legal-box table { width: 100%; border-collapse: collapse; }
.legal-box td { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.legal-box td:first-child { color: var(--text-dim); width: 45%; }
.legal-box tr:last-child td { border-bottom: none; }

/* ── Services page ──────────────────────────────────── */
.services-hero { text-align: center; padding-bottom: 60px; }
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-bottom: 64px; }
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }
.feature-list { list-style: none; margin-top: 20px; }
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
    font-size: .95rem;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── Contact ────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item { display: flex; flex-direction: column; gap: 4px; }
.contact-info-item strong { color: var(--text); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.contact-info-item span, .contact-info-item a { color: var(--text-dim); }
.contact-info-item a:hover { color: var(--primary); }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-size: .875rem; color: var(--text-dim); }
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
.form-control {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 11px 14px;
    color: var(--text);
    font-size: .95rem;
    font-family: var(--font);
    transition: border-color .2s;
    min-height: 44px;
}
.form-control:focus { outline: none; border-color: var(--primary); }
textarea.form-control { resize: vertical; min-height: 130px; }
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: .95rem;
}
.alert-success { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3); color: var(--success); }
.alert-danger  { background: rgba(239,68,68,.12);  border: 1px solid rgba(239,68,68,.3);  color: var(--danger); }

/* ── Legal pages (Privacy, Terms) ──────────────────── */
.legal-content {
    max-width: 820px;
    margin-inline: auto;
}
.legal-content h1 { margin-bottom: 10px; }
.legal-content .updated { color: var(--text-dim); font-size: .9rem; margin-bottom: 40px; }
.legal-content h2 {
    font-size: 1.2rem;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--text);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.legal-content p, .legal-content li {
    color: var(--text-dim);
    font-size: .95rem;
    line-height: 1.8;
    margin-bottom: 12px;
}
.legal-content ul { margin-left: 22px; list-style: disc; margin-bottom: 14px; }
.legal-content strong { color: var(--text); }
.legal-content a { color: var(--primary); }

.lang-tabs { display: flex; gap: 0; margin-bottom: 32px; border-bottom: 1px solid var(--border); }
.lang-tab {
    padding: 10px 22px;
    color: var(--text-dim);
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
    text-decoration: none;
}
.lang-tab.active, .lang-tab:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* ── 404 ────────────────────────────────────────────── */
.not-found {
    min-height: calc(100vh - var(--nav-h) - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.not-found-num {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    opacity: .3;
}
.not-found h1 { margin-bottom: 12px; }
.not-found p { margin-bottom: 28px; font-size: 1.05rem; }

/* ── Footer ─────────────────────────────────────────── */
.site-footer { background: var(--card); border-top: 1px solid var(--border); margin-top: 80px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 40px;
    padding-block: 52px;
}
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-tagline { font-size: .9rem; color: var(--text-dim); margin-bottom: 8px; }
.footer-legal-id { font-size: .78rem; color: var(--text-dim); opacity: .7; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-dim); font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: var(--primary); }
.footer-col span { color: var(--text-dim); font-size: .9rem; }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-block: 18px;
}
.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .85rem;
    color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--primary); }

/* ── Utilities ──────────────────────────────────────── */
.text-center { text-align: center; }
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-dim     { color: var(--text-dim) !important; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; }
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.gap-16 { gap: 16px; }

/* ── Contact strip ──────────────────────────────────── */
.contact-strip {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}
.contact-strip-info { display: flex; gap: 40px; flex-wrap: wrap; }
.contact-strip-item { display: flex; flex-direction: column; gap: 4px; }
.contact-strip-item .label { font-size: .75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .07em; }
.contact-strip-item a, .contact-strip-item span { color: var(--text); font-weight: 500; }
.contact-strip-item a:hover { color: var(--primary); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
    .grid-3, .steps-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
    .grid-2, .srv-cards, .about-story, .contact-grid, .service-block { grid-template-columns: 1fr; }
    .service-block.reverse { direction: ltr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .app-cta { flex-direction: column; text-align: center; }
    .app-features-grid { grid-template-columns: 1fr 1fr; }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 24px;
    }
    .hero-visual img { max-width: 100%; }
}

@media (max-width: 768px) {
    section { padding-block: 56px; }

    .nav-burger { display: flex; }
    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: var(--card);
        border-bottom: 1px solid var(--border);
        padding: 20px;
        z-index: 800;
        box-shadow: var(--shadow);
    }
    .nav-menu.open { display: flex; }
    .nav-link { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
    .nav-menu .btn { margin-top: 12px; width: 100%; justify-content: center; }
    .nav-menu .lang-switcher { margin-top: 12px; }

    .grid-3, .steps-grid, .blog-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 36px; }
    .footer-bottom .container { flex-direction: column; text-align: center; }

    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn { width: 100%; justify-content: center; }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-visual { justify-content: center; }

    .app-download-wrap { padding: 36px 24px; }
    .app-cta { flex-direction: column; text-align: center; }
    .app-cta-btns { flex-direction: column; width: 100%; }
    .app-features-grid { grid-template-columns: 1fr; }
    .app-store-btn { justify-content: center; }

    .contact-strip { flex-direction: column; }
    .contact-strip-info { flex-direction: column; gap: 16px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 400px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* ── Scroll-to-top ──────────────────────────────────── */
#scroll-top {
    position: fixed;
    bottom: 28px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    z-index: 500;
    box-shadow: 0 4px 14px rgba(59,130,246,.4);
}
#scroll-top.visible { opacity: 1; pointer-events: auto; }
#scroll-top:hover { background: var(--primary-d); }
