:root {
    color-scheme: dark;
    --ink: #d5f9ff;
    --muted: #7eb7d8;
    --accent-neon: #7ef2ff;
    --accent-neon-2: #6af7c8;
    --line: rgba(99, 255, 255, .17);
    --surface: #05101a;
    --surface-soft: #071826;
    --navy: #03101c;
    --teal: #52f4ff;
    --green: #8cffb9;
    --amber: #ffd77f;
    --red: #ff5f6d;
    --blue: #7ad0ff;
    --text: #e7fbff;
    --text-muted: #90bfd1;
    --dashboard-status-text: #2b4a34;
    --shadow: 0 28px 90px rgba(0, 0, 0, .55);
    --page-bg: radial-gradient(circle at top, rgba(46, 234, 255, .08), transparent 18%), linear-gradient(180deg, #09101f 0%, #061522 32%, #03101d 100%);
    --header-bg: rgba(2, 10, 20, .86);
    --footer-bg: rgba(2, 10, 20, .9);
    --border: rgba(82, 248, 255, .12);
    --heading-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    --body-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --menu-bg: var(--header-bg);
    --menu-text: var(--text);
    --card-radius: 18px;
    --card-surface: rgba(255,255,255,0.06);
    --card-border: rgba(255,255,255,0.1);
    --card-shadow: 0 24px 60px rgba(0,0,0,0.24);
}

html.theme-light {
    color-scheme: light;
    --ink: #112233;
    --muted: #6a7684;
    --accent-neon: #0f5a86;
    --accent-neon-2: #2a84b3;
    --line: rgba(15, 81, 134, .12);
    --surface: #f8fbff;
    --surface-soft: #ffffff;
    --navy: #e6effa;
    --teal: #0b6d99;
    --green: #0c7638;
    --amber: #bb7b00;
    --red: #b03030;
    --blue: #2563eb;
    --text: #1a2b44;
    --text-muted: #4f5f72;
    --dashboard-status-text: #1f4d3a;
    --shadow: 0 18px 50px rgba(17, 24, 39, .08);
    --page-bg: linear-gradient(180deg, #f7fbff 0%, #e7eff7 45%, #dde7f0 100%);
    --header-bg: rgba(255, 255, 255, .92);
    --footer-bg: rgba(245, 249, 255, .95);
    --border: rgba(15, 81, 134, .12);
}

html.theme-light body {
    background: var(--page-bg);
}

html.template-classic {
    --page-bg: radial-gradient(circle at top, rgba(46, 234, 255, .08), transparent 18%), linear-gradient(180deg, #09101f 0%, #061522 32%, #03101d 100%);
    --header-bg: rgba(2, 10, 20, .86);
    --footer-bg: rgba(2, 10, 20, .9);
    --border: rgba(82, 248, 255, .12);
    --accent-neon: #7ef2ff;
    --accent-neon-2: #6af7c8;
    --card-radius: 18px;
    --card-surface: rgba(3, 12, 24, 0.92);
    --card-border: rgba(82, 248, 255, 0.12);
    --card-shadow: 0 26px 70px rgba(0,0,0,0.32);
}

html.template-modern {
    --page-bg: linear-gradient(180deg, #f8fbff 0%, #e6f3ff 45%, #d8ecff 100%);
    --header-bg: rgba(255, 255, 255, .92);
    --footer-bg: rgba(248, 251, 255, .95);
    --border: rgba(15, 81, 134, .12);
    --ink: #132138;
    --text: #081827;
    --text-muted: #5b728f;
    --accent-neon: #2563eb;
    --accent-neon-2: #0ea5e9;
    --card-radius: 18px;
    --card-surface: rgba(255,255,255,0.92);
    --card-border: rgba(37,99,235,0.12);
    --card-shadow: 0 24px 60px rgba(61,111,169,0.12);
}

html.template-corporate {
    --page-bg: linear-gradient(180deg, #071424 0%, #081c30 40%, #0f2746 100%);
    --header-bg: rgba(8, 18, 34, .92);
    --footer-bg: rgba(7, 14, 26, .95);
    --border: rgba(255, 204, 115, .16);
    --accent-neon: #f2c94c;
    --accent-neon-2: #d89f4b;
    --ink: #f8f5ea;
    --text: #f0eadf;
    --text-muted: #c7b68d;
    --card-radius: 14px;
    --card-surface: rgba(9,17,29,0.9);
    --card-border: rgba(255,204,115,0.14);
    --card-shadow: 0 22px 70px rgba(0,0,0,0.28);
}

html.template-minimal {
    --page-bg: linear-gradient(180deg, #f9fbff 0%, #eff4f8 55%, #e2e8ef 100%);
    --header-bg: rgba(255, 255, 255, .94);
    --footer-bg: rgba(249, 251, 255, .96);
    --border: rgba(96, 108, 129, .12);
    --ink: #1f2937;
    --text: #1f2937;
    --text-muted: #475569;
    --accent-neon: #2563eb;
    --accent-neon-2: #22c55e;
    --card-radius: 8px;
    --card-surface: rgba(255,255,255,0.95);
    --card-border: rgba(96,108,129,0.12);
    --card-shadow: 0 18px 36px rgba(16,24,40,0.07);
}

html.template-bold {
    --page-bg: linear-gradient(180deg, #1c040f 0%, #33062d 40%, #5b0f4f 100%);
    --header-bg: rgba(18, 8, 24, .92);
    --footer-bg: rgba(15, 6, 19, .95);
    --border: rgba(255, 88, 93, .22);
    --accent-neon: #ff5aff;
    --accent-neon-2: #ff9f43;
    --ink: #ffffff;
    --text: #f3e8ff;
    --text-muted: #d8c7de;
    --card-radius: 26px;
    --card-surface: rgba(255,255,255,0.08);
    --card-border: rgba(255,90,255,0.14);
    --card-shadow: 0 32px 84px rgba(193,58,141,0.12);
}

html.template-elegant {
    --page-bg: linear-gradient(180deg, #10101a 0%, #151826 45%, #0f1320 100%);
    --header-bg: rgba(8, 7, 13, .92);
    --footer-bg: rgba(10, 10, 16, .95);
    --border: rgba(214, 183, 135, .18);
    --accent-neon: #ceb9a0;
    --accent-neon-2: #8f7c6f;
    --ink: #f3efe8;
    --text: #efe7dc;
    --text-muted: #b7aa9d;
    --card-radius: 22px;
    --card-surface: rgba(20,18,22,0.92);
    --card-border: rgba(214,183,135,0.14);
    --card-shadow: 0 22px 70px rgba(0,0,0,0.28);
}

html.template-showcase {
    --page-bg: radial-gradient(circle at top, rgba(137, 85, 255, .16), transparent 20%), linear-gradient(180deg, #130f2d 0%, #1f193c 50%, #160e30 100%);
    --header-bg: rgba(18, 12, 34, .92);
    --footer-bg: rgba(17, 11, 33, .95);
    --border: rgba(126, 82, 255, .16);
    --accent-neon: #ad6bff;
    --accent-neon-2: #5be1ff;
    --ink: #eef3ff;
    --text: #ebf2ff;
    --text-muted: #a9b2d4;
    --card-radius: 30px;
    --card-surface: rgba(24,14,42,0.88);
    --card-border: rgba(141,96,255,0.16);
    --card-shadow: 0 36px 90px rgba(74,43,179,0.18);
}

html.template-tech {
    --page-bg: linear-gradient(180deg, #02060d 0%, #061428 60%, #03101f 100%);
    --header-bg: rgba(2, 8, 19, .92);
    --footer-bg: rgba(2, 8, 19, .95);
    --border: rgba(20, 144, 255, .16);
    --accent-neon: #17a2ff;
    --accent-neon-2: #52f4ff;
    --ink: #dff6ff;
    --text: #d8eeff;
    --text-muted: #94b8d1;
    --card-radius: 16px;
    --card-surface: rgba(3,12,24,0.88);
    --card-border: rgba(23,120,255,0.16);
    --card-shadow: 0 24px 56px rgba(0,0,0,0.3);
}

html.template-creative {
    --page-bg: linear-gradient(180deg, #230a3d 0%, #3f0f50 45%, #1d0e38 100%);
    --header-bg: rgba(18, 9, 31, .92);
    --footer-bg: rgba(17, 9, 27, .95);
    --border: rgba(217, 101, 255, .18);
    --accent-neon: #ff69d1;
    --accent-neon-2: #7c5aff;
    --ink: #f8efff;
    --text: #f4e7ff;
    --text-muted: #cabedb;
    --card-radius: 28px;
    --card-surface: rgba(21,9,34,0.90);
    --card-border: rgba(217,101,255,0.16);
    --card-shadow: 0 32px 90px rgba(116,43,170,0.18);
}

html.template-premium {
    --page-bg: linear-gradient(180deg, #041f18 0%, #0a3830 50%, #052627 100%);
    --header-bg: rgba(4, 18, 15, .92);
    --footer-bg: rgba(3, 15, 12, .95);
    --border: rgba(109, 255, 193, .16);
    --accent-neon: #7af2c0;
    --accent-neon-2: #85efc5;
    --ink: #eef9f1;
    --text: #e6f6ed;
    --text-muted: #9cc5b1;
    --heading-font: 'Merriweather', Georgia, serif;
    --body-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --menu-bg: linear-gradient(90deg, rgba(6,30,24,0.95), rgba(4,22,18,0.92));
    --menu-text: #eaf6ee;
    --hero-overlay: linear-gradient(140deg, rgba(10,30,24,0.86), rgba(4,18,15,0.6));
    --hero-accent: rgba(122, 242, 192, 0.12);
    --card-radius: 24px;
    --card-surface: rgba(8, 28, 22, 0.88);
    --card-border: rgba(109, 255, 193, 0.16);
    --card-shadow: 0 30px 84px rgba(0,0,0,0.28);
}

/* Hero: base + three variants for premium look */
.hero {
    display: grid;
    grid-template-columns: 1fr 540px;
    gap: 2.25rem;
    align-items: center;
    padding: 4.5rem 1.25rem;
    position: relative;
    z-index: 2;
}
.hero .hero__content {
    z-index: 3;
    max-width: 720px;
}
.hero .hero__content .eyebrow { color: var(--text-muted); font-weight:600; }
.hero h1 { font-family: var(--heading-font); color: var(--text); font-size: clamp(1.8rem, 3.8vw, 3.2rem); margin: .3rem 0 1rem 0; }
.hero .hero__lede { color: var(--text-muted); font-size: 1.08rem; margin-bottom: 1.25rem; }
.hero .hero__visual { position: relative; height: 420px; border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--card-shadow); background-color: var(--card-surface); }
.hero .hero__visual-scene { position: absolute; inset:0; display:flex; align-items:center; justify-content:center; }

/* Matrix-style animated background for hero when no image is provided */
.hero-matrix {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45));
    opacity: 0.95;
}

.hero__device { position: relative; z-index: 2; }


/* Variant 1: Classic split - content left, device visual right */
.hero--variant-1 { grid-template-columns: 1fr 520px; }
.hero--variant-1 .hero__visual { transform: translateY(0); }

/* Variant 2: Stacked visual - visual on top, content below */
.hero--variant-2 { grid-template-columns: 1fr; grid-auto-rows: auto; }
.hero--variant-2 .hero__visual { order: -1; width: 100%; height: 360px; margin-bottom: 1.5rem; }
.hero--variant-2 .hero__content { text-align: center; margin: 0 auto; }

/* Variant 3: Full bleed background with overlay and centered content */
.hero--variant-3 { grid-template-columns: 1fr; padding: 6rem 1.25rem; }
.hero--variant-3 .hero__visual { position: absolute; inset: 0; height: 100%; width: 100%; z-index: 1; }
.hero--variant-3 .hero__visual::before { content: ''; position:absolute; inset:0; background: var(--hero-overlay, rgba(4,18,15,0.88)); mix-blend-mode: multiply; }
.hero--variant-3 .hero__content { position: relative; z-index: 3; margin: 0 auto; text-align: center; max-width: 900px; color: var(--ink); }

/* Theme-aware adjustments (menu, borders, font) */
.site-header { background: var(--menu-bg); color: var(--menu-text); }
nav .nav-link { color: var(--menu-text); }

/* Make buttons pick up accent for premium */
.button--primary { background: linear-gradient(90deg, var(--accent-neon), var(--accent-neon-2)); color: var(--ink); border: 0; }
.button--ghost { border: 1px solid rgba(255,255,255,0.12); color: var(--text); background: rgba(255,255,255,0.06); }

/* Contrast-safe components */
input, textarea, select, .verification-input-wrapper, .verification-panel, .feature, .step, .portal-theme-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text);
}
input, textarea, select {
    color: var(--text);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
}
input::placeholder, textarea::placeholder {
    color: rgba(255,255,255,0.65);
}
button, .button, .theme-toggle, .sound-toggle {
    color: var(--ink);
    font-weight: 600;
}
.table, table, th, td {
    border-color: rgba(255,255,255,0.12);
    color: var(--text);
}

/* Small responsive tweaks */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding: 3rem 1rem; }
    .hero .hero__visual { height: 320px; }
    .hero--variant-1 .hero__visual { order: -1; margin-bottom: 1.25rem; }
}

/* Per-template header, nav and footer embellishments */
.site-header {
    display:flex;
    align-items:center;
    gap:1rem;
    padding:0.85rem 1.25rem;
}
.site-header .brand { display:flex; gap:0.75rem; align-items:center; text-decoration:none; }
.brand__logo-ring { display:inline-flex; align-items:center; justify-content:center; width:56px; height:56px; border-radius:12px; overflow:hidden; border:2px solid transparent; box-shadow: 0 6px 24px rgba(2,8,12,0.45); }
.brand__logo { width:100%; height:100%; display:block; object-fit:contain; max-width:none; }

/* sensible defaults for images */
img { max-width:100%; height:auto; display:block; }
.brand__mark { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:10px; background:linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); color:var(--menu-text); font-weight:700; }

nav.site-nav { display:flex; gap:1rem; align-items:center; }
nav.site-nav a { color:var(--menu-text); text-decoration:none; padding:0.5rem 0.6rem; border-radius:8px; transition:background .16s ease, color .16s ease, transform .16s ease; font-weight:600; }
nav.site-nav a:hover { background: rgba(255,255,255,0.08); color:var(--accent-neon); transform:translateY(-1px); }
nav.site-nav a.active { background: rgba(255,255,255,0.12); box-shadow:inset 0 -2px 0 var(--accent-neon); color:var(--menu-text); }

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.25rem 2rem;
    align-items: start;
    padding: 1.6rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--footer-bg);
    color: var(--text-muted);
}

.site-footer__copy {
    display: grid;
    grid-template-columns: 1fr repeat(2, minmax(160px, 260px));
    gap: 0.75rem 1rem;
    align-items: start;
}

.site-footer__copy strong { display:block; color:var(--text); margin-bottom:0.25rem; font-size:1rem }
.site-footer__copy p { margin:0; color:var(--text-muted); line-height:1.45; max-width:60ch }

.site-footer .brand-links { display:flex; flex-direction:column; gap:0.35rem; align-items:flex-start }
.site-footer .brand-links .brand-link { color:var(--text); padding:.35rem .65rem; display:inline-flex; gap:.5rem; align-items:center; border-radius:8px; text-decoration:none; transition:background .12s ease, transform .12s ease, color .12s ease }
.site-footer .brand-links .brand-link:hover { background: rgba(255,255,255,0.03); transform:translateY(-1px); color:var(--accent-neon) }
.brand-link__icon { display:inline-flex; width:22px; height:22px; align-items:center; justify-content:center; font-size:0.9rem; color:var(--text-muted) }

.site-footer > p { margin:0; color:var(--text-muted); font-size:0.92rem; white-space:nowrap }

@media (max-width:900px) {
    .site-footer { grid-template-columns:1fr; text-align:center; padding:1.25rem }
    .site-footer__copy { grid-template-columns:1fr; gap:.75rem }
    .site-footer .brand-links { flex-direction:row; justify-content:center; flex-wrap:wrap }
    .site-footer .brand-links .brand-link { padding:.4rem .6rem }
    .site-footer > p { white-space:normal; margin-top:.6rem }
}

/* Form and table contrast adjustments */
input, textarea, select, .verification-input-wrapper, .verification-panel, .feature, .step, .portal-theme-card {
    color: var(--text);
    background: var(--card-surface);
    border: 1px solid var(--card-border);
}
input, textarea, select {
    min-height: 44px;
    border-radius: 14px;
    padding: 0.95rem 1rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
label, th, td {
    color: var(--text);
}
button, .button, .theme-toggle, .sound-toggle {
    color: var(--ink);
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
button:hover, .button:hover, .theme-toggle:hover, .sound-toggle:hover {
    background: rgba(255,255,255,0.12);
}

/* Template-specific tweaks to make each theme feel unique */
html.template-classic .brand__logo-ring { border-color: rgba(126,242,255,0.12); }
html.template-modern .brand__logo-ring { border-color: rgba(37,99,235,0.12); box-shadow: 0 10px 40px rgba(37,99,235,0.06); }
html.template-corporate .brand__logo-ring { border-color: rgba(217,169,80,0.12); box-shadow: 0 10px 40px rgba(217,169,80,0.06); }
html.template-minimal .brand__logo-ring { border-color: rgba(96,108,129,0.06); background: transparent; box-shadow:none; }
html.template-bold .brand__logo-ring { border-color: rgba(255,90,255,0.12); box-shadow: 0 12px 60px rgba(255,90,255,0.06); }
html.template-elegant .brand__logo-ring { border-color: rgba(214,183,135,0.12); box-shadow: 0 8px 36px rgba(214,183,135,0.04); }
html.template-showcase .brand__logo-ring { border-color: rgba(141,96,255,0.12); box-shadow: 0 10px 46px rgba(141,96,255,0.06); }
html.template-tech .brand__logo-ring { border-color: rgba(29,143,255,0.12); box-shadow: 0 10px 46px rgba(29,143,255,0.06); }
html.template-creative .brand__logo-ring { border-color: rgba(255,90,255,0.12); box-shadow: 0 10px 46px rgba(124,90,255,0.06); }
html.template-premium .brand__logo-ring { border-color: rgba(122,242,192,0.12); box-shadow: 0 18px 80px rgba(10,25,20,0.5); }
html.template-luxe .brand__logo-ring { border-color: rgba(199,166,96,0.16); box-shadow: 0 16px 90px rgba(0,0,0,0.6); }
html.template-startup .brand__logo-ring { border-color: rgba(42,198,220,0.12); box-shadow: 0 10px 40px rgba(42,198,220,0.06); }
html.template-education .brand__logo-ring { border-color: rgba(93,141,255,0.12); box-shadow: 0 10px 40px rgba(93,141,255,0.06); }
html.template-healthcare .brand__logo-ring { border-color: rgba(73,219,232,0.12); box-shadow: 0 10px 40px rgba(73,219,232,0.06); }
html.template-finance .brand__logo-ring { border-color: rgba(208,160,94,0.12); box-shadow: 0 10px 40px rgba(208,160,94,0.06); }
html.template-construction .brand__logo-ring { border-color: rgba(255,162,64,0.12); box-shadow: 0 10px 40px rgba(255,162,64,0.06); }
html.template-green .brand__logo-ring { border-color: rgba(143,221,171,0.12); box-shadow: 0 10px 40px rgba(143,221,171,0.06); }
html.template-dark .brand__logo-ring { border-color: rgba(107,156,255,0.08); box-shadow: 0 10px 40px rgba(16,22,36,0.6); }
html.template-bright .brand__logo-ring { border-color: rgba(59,130,246,0.12); box-shadow: 0 6px 30px rgba(59,130,246,0.06); }
html.template-calm .brand__logo-ring { border-color: rgba(83,192,212,0.12); box-shadow: 0 8px 32px rgba(83,192,212,0.06); }

/* Ensure menu/background/text sync per template */
html.template-classic { --menu-bg: var(--header-bg); --menu-text: var(--text); }
html.template-modern { --menu-bg: var(--header-bg); --menu-text: var(--ink); }
html.template-corporate { --menu-bg: var(--header-bg); --menu-text: var(--ink); }
html.template-minimal { --menu-bg: var(--header-bg); --menu-text: #0b1a2b; }
html.template-bold { --menu-bg: var(--header-bg); --menu-text: #fff; }
html.template-elegant { --menu-bg: var(--header-bg); --menu-text: var(--ink); }
html.template-showcase { --menu-bg: var(--header-bg); --menu-text: var(--ink); }
html.template-tech { --menu-bg: var(--header-bg); --menu-text: var(--ink); }
html.template-creative { --menu-bg: var(--header-bg); --menu-text: var(--ink); }
html.template-premium { --menu-bg: var(--header-bg); --menu-text: var(--menu-text); }
html.template-luxe { --menu-bg: var(--header-bg); --menu-text: var(--ink); }
html.template-startup { --menu-bg: var(--header-bg); --menu-text: var(--ink); }
html.template-education { --menu-bg: var(--header-bg); --menu-text: var(--ink); }
html.template-healthcare { --menu-bg: var(--header-bg); --menu-text: var(--ink); }
html.template-finance { --menu-bg: var(--header-bg); --menu-text: var(--ink); }
html.template-construction { --menu-bg: var(--header-bg); --menu-text: var(--ink); }
html.template-green { --menu-bg: var(--header-bg); --menu-text: var(--ink); }
html.template-dark { --menu-bg: var(--header-bg); --menu-text: var(--ink); }
html.template-bright { --menu-bg: var(--header-bg); --menu-text: #10243c; }
html.template-calm { --menu-bg: var(--header-bg); --menu-text: #153840; }

/* Nav link accents per template */
html.template-classic nav.site-nav a:hover { color: var(--accent-neon); }
html.template-modern nav.site-nav a:hover { color: var(--accent-neon); }
html.template-corporate nav.site-nav a:hover { color: var(--accent-neon); }
html.template-minimal nav.site-nav a:hover { color: var(--accent-neon); }
html.template-bold nav.site-nav a:hover { color: var(--accent-neon); }
html.template-elegant nav.site-nav a:hover { color: var(--accent-neon); }
html.template-showcase nav.site-nav a:hover { color: var(--accent-neon); }
html.template-tech nav.site-nav a:hover { color: var(--accent-neon); }
html.template-creative nav.site-nav a:hover { color: var(--accent-neon); }
html.template-premium nav.site-nav a:hover { color: var(--accent-neon); }
html.template-luxe nav.site-nav a:hover { color: var(--accent-neon); }
html.template-startup nav.site-nav a:hover { color: var(--accent-neon); }
html.template-education nav.site-nav a:hover { color: var(--accent-neon); }
html.template-healthcare nav.site-nav a:hover { color: var(--accent-neon); }
html.template-finance nav.site-nav a:hover { color: var(--accent-neon); }
html.template-construction nav.site-nav a:hover { color: var(--accent-neon); }
html.template-green nav.site-nav a:hover { color: var(--accent-neon); }
html.template-dark nav.site-nav a:hover { color: var(--accent-neon); }
html.template-bright nav.site-nav a:hover { color: var(--accent-neon); }
html.template-calm nav.site-nav a:hover { color: var(--accent-neon); }




html.template-luxe {
    --page-bg: linear-gradient(180deg, #090505 0%, #12080a 45%, #0b0507 100%);
    --header-bg: rgba(10, 6, 9, .92);
    --footer-bg: rgba(8, 5, 7, .95);
    --border: rgba(217, 169, 50, .18);
    --accent-neon: #ffd764;
    --accent-neon-2: #d67f08;
    --ink: #faf4e7;
    --text: #f7efe0;
    --text-muted: #d8c7a1;
}

html.template-startup {
    --page-bg: linear-gradient(180deg, #0b2b39 0%, #0b4c62 45%, #072b3e 100%);
    --header-bg: rgba(7, 23, 35, .92);
    --footer-bg: rgba(6, 20, 31, .95);
    --border: rgba(33, 194, 221, .16);
    --accent-neon: #2ac6dc;
    --accent-neon-2: #0dc5a8;
    --ink: #e8fbff;
    --text: #dceef7;
    --text-muted: #97b7c4;
}

html.template-education {
    --page-bg: linear-gradient(180deg, #101b36 0%, #152c5a 45%, #0d2145 100%);
    --header-bg: rgba(10, 17, 34, .92);
    --footer-bg: rgba(10, 17, 34, .95);
    --border: rgba(121, 150, 255, .16);
    --accent-neon: #5d8dff;
    --accent-neon-2: #96c9ff;
    --ink: #ebf2ff;
    --text: #e3efff;
    --text-muted: #b1c3dd;
}

html.template-healthcare {
    --page-bg: linear-gradient(180deg, #051c24 0%, #0e3a45 45%, #08292e 100%);
    --header-bg: rgba(6, 20, 26, .92);
    --footer-bg: rgba(5, 16, 21, .95);
    --border: rgba(61, 231, 229, .16);
    --accent-neon: #49dbe8;
    --accent-neon-2: #8df1f8;
    --ink: #e7fcff;
    --text: #daf7fb;
    --text-muted: #9ec6cd;
}

html.template-finance {
    --page-bg: linear-gradient(180deg, #081a2c 0%, #0b2741 45%, #071b32 100%);
    --header-bg: rgba(8, 16, 28, .92);
    --footer-bg: rgba(7, 13, 24, .95);
    --border: rgba(209, 160, 94, .18);
    --accent-neon: #e0ad5a;
    --accent-neon-2: #f8d597;
    --ink: #f4efe5;
    --text: #f0e9df;
    --text-muted: #b5a68d;
}

html.template-construction {
    --page-bg: linear-gradient(180deg, #241b13 0%, #3f2b19 45%, #2c1f10 100%);
    --header-bg: rgba(27, 18, 10, .92);
    --footer-bg: rgba(24, 15, 9, .95);
    --border: rgba(255, 162, 64, .16);
    --accent-neon: #ffaf5d;
    --accent-neon-2: #f4c37b;
    --ink: #f8f1e6;
    --text: #f1e7dc;
    --text-muted: #c8b49a;
}

html.template-green {
    --page-bg: linear-gradient(180deg, #0c2418 0%, #194c33 45%, #112f22 100%);
    --header-bg: rgba(12, 28, 20, .92);
    --footer-bg: rgba(10, 24, 17, .95);
    --border: rgba(143, 221, 171, .16);
    --accent-neon: #73dd9c;
    --accent-neon-2: #b1f2c4;
    --ink: #ebf9ef;
    --text: #dff2e7;
    --text-muted: #98bca4;
}

html.template-dark {
    --page-bg: linear-gradient(180deg, #020306 0%, #090c18 45%, #04050f 100%);
    --header-bg: rgba(6, 6, 12, .92);
    --footer-bg: rgba(5, 5, 10, .95);
    --border: rgba(107, 156, 255, .08);
    --accent-neon: #708cff;
    --accent-neon-2: #6ae1ff;
    --ink: #f2f6ff;
    --text: #e5ebff;
    --text-muted: #95a3c3;
}

html.template-bright {
    --page-bg: linear-gradient(180deg, #ffffff 0%, #f0f7ff 50%, #e2eefb 100%);
    --header-bg: rgba(255, 255, 255, .95);
    --footer-bg: rgba(245, 249, 255, .97);
    --border: rgba(96, 165, 250, .16);
    --ink: #10243c;
    --text: #112d42;
    --text-muted: #5b7d9e;
    --accent-neon: #3b82f6;
    --accent-neon-2: #38bdf8;
}

html.template-calm {
    --page-bg: linear-gradient(180deg, #edf7f9 0%, #d6eef4 40%, #bedfea 100%);
    --header-bg: rgba(245, 252, 255, .96);
    --footer-bg: rgba(237, 247, 251, .98);
    --border: rgba(83, 192, 212, .12);
    --ink: #153840;
    --text: #16484f;
    --text-muted: #4f7c8c;
    --accent-neon: #4bc5d2;
    --accent-neon-2: #7ed3e2;
}

html.template-luxe {
    --card-radius: 22px;
    --card-surface: rgba(17, 12, 14, 0.92);
    --card-border: rgba(217, 169, 50, 0.18);
    --card-shadow: 0 30px 80px rgba(0,0,0,0.40);
}
html.template-startup {
    --card-radius: 14px;
    --card-surface: rgba(10, 28, 40, 0.92);
    --card-border: rgba(42, 198, 220, 0.16);
    --card-shadow: 0 24px 70px rgba(0,0,0,0.32);
}
html.template-education {
    --card-radius: 18px;
    --card-surface: rgba(12, 28, 50, 0.92);
    --card-border: rgba(93, 141, 255, 0.16);
    --card-shadow: 0 24px 62px rgba(2,8,24,0.28);
}
html.template-healthcare {
    --card-radius: 20px;
    --card-surface: rgba(8, 26, 31, 0.90);
    --card-border: rgba(61, 231, 229, 0.16);
    --card-shadow: 0 26px 72px rgba(0,0,0,0.30);
}
html.template-finance {
    --card-radius: 12px;
    --card-surface: rgba(10, 20, 34, 0.92);
    --card-border: rgba(209, 160, 94, 0.14);
    --card-shadow: 0 22px 56px rgba(0,0,0,0.28);
}
html.template-construction {
    --card-radius: 8px;
    --card-surface: rgba(36, 26, 16, 0.94);
    --card-border: rgba(255, 162, 64, 0.18);
    --card-shadow: 0 26px 70px rgba(0,0,0,0.34);
}
html.template-green {
    --card-radius: 20px;
    --card-surface: rgba(11, 30, 22, 0.90);
    --card-border: rgba(143, 221, 171, 0.16);
    --card-shadow: 0 24px 68px rgba(0,0,0,0.28);
}
html.template-dark {
    --card-radius: 10px;
    --card-surface: rgba(6, 8, 15, 0.94);
    --card-border: rgba(107, 156, 255, 0.10);
    --card-shadow: 0 20px 60px rgba(0,0,0,0.48);
}
html.template-bright {
    --card-radius: 18px;
    --card-surface: rgba(255, 255, 255, 0.92);
    --card-border: rgba(96, 165, 250, 0.12);
    --card-shadow: 0 20px 50px rgba(17,24,39,0.14);
}
html.template-calm {
    --card-radius: 18px;
    --card-surface: rgba(247, 252, 255, 0.94);
    --card-border: rgba(83, 192, 212, 0.12);
    --card-shadow: 0 18px 48px rgba(20, 68, 90, 0.12);
}

/* Per-template light-mode overrides: when `html` also has `theme-light` */
html.template-classic.theme-light,
html.template-modern.theme-light,
html.template-corporate.theme-light,
html.template-minimal.theme-light,
html.template-bold.theme-light,
html.template-elegant.theme-light,
html.template-showcase.theme-light,
html.template-tech.theme-light,
html.template-creative.theme-light,
html.template-premium.theme-light,
html.template-luxe.theme-light,
html.template-startup.theme-light,
html.template-education.theme-light,
html.template-healthcare.theme-light,
html.template-finance.theme-light,
html.template-construction.theme-light,
html.template-green.theme-light,
html.template-dark.theme-light,
html.template-bright.theme-light,
html.template-calm.theme-light {
    color-scheme: light;
    --ink: #112233;
    --text: #112b3c;
    --text-muted: #567086;
    --page-bg: linear-gradient(180deg, #fbfdff 0%, #f1f6fb 45%, #e6eef6 100%);
    --header-bg: rgba(255,255,255,0.94);
    --footer-bg: rgba(250,252,255,0.97);
    --border: rgba(15,81,134,0.08);
}

/* Small adjustments to keep each template's accent colors visible in light mode */
html.template-classic.theme-light { --accent-neon: #2aa3b8; --accent-neon-2: #6fcfc0; }
html.template-modern.theme-light { --accent-neon: #2563eb; --accent-neon-2: #0ea5e9; }
html.template-corporate.theme-light { --accent-neon: #b37b2a; --accent-neon-2: #d2a85a; }
html.template-minimal.theme-light { --accent-neon: #2563eb; --accent-neon-2: #22c55e; }
html.template-bold.theme-light { --accent-neon: #d04aa8; --accent-neon-2: #ff9f43; }
html.template-elegant.theme-light { --accent-neon: #a58f74; --accent-neon-2: #cbbba7; }
html.template-showcase.theme-light { --accent-neon: #8765da; --accent-neon-2: #5b9fe8; }
html.template-tech.theme-light { --accent-neon: #1f85d1; --accent-neon-2: #47c7ff; }
html.template-creative.theme-light { --accent-neon: #c14a9a; --accent-neon-2: #7c5aff; }
html.template-premium.theme-light { --accent-neon: #2fae86; --accent-neon-2: #7bd9b1; --menu-bg: transparent; --menu-text: #0f2b26; }
html.template-luxe.theme-light { --accent-neon: #f6c94b; --accent-neon-2: #d69a2f; }
html.template-startup.theme-light { --accent-neon: #1ea0c1; --accent-neon-2: #0db196; }
html.template-education.theme-light { --accent-neon: #4f7bff; --accent-neon-2: #9fcaff; }
html.template-healthcare.theme-light { --accent-neon: #2aaebc; --accent-neon-2: #7eeff7; }
html.template-finance.theme-light { --accent-neon: #c79a4a; --accent-neon-2: #f0d89a; }
html.template-construction.theme-light { --accent-neon: #ffb46a; --accent-neon-2: #f6c89a; }
html.template-green.theme-light { --accent-neon: #3fbf86; --accent-neon-2: #9ae9c7; }
html.template-dark.theme-light { --accent-neon: #6b8cff; --accent-neon-2: #6ae1ff; }
html.template-bright.theme-light { --accent-neon: #3b82f6; --accent-neon-2: #38bdf8; }
html.template-calm.theme-light { --accent-neon: #4bc5d2; --accent-neon-2: #7ed3e2; }


/* Use browser native default pointer */
html.template-classic body {
    cursor: default;
}

/* Scrollbar styling for WebKit browsers */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}
::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(2,8,12,0.35), rgba(2,8,12,0.15));
    border-radius: 999px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(126,242,255,0.9), rgba(106,247,200,0.9));
    border-radius: 999px;
    border: 3px solid rgba(5,16,20,0.0);
    box-shadow: inset 0 0 8px rgba(0,0,0,0.35);
}

/* Firefox scrollbar colors */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(126,242,255,0.9) rgba(2,8,12,0.25);
}

html.template-classic a, html.template-classic button, html.template-classic input, html.template-classic .brand {
    cursor: pointer;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--page-bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 140px 140px;
    pointer-events: none;
    opacity: .12;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(126, 242, 255, 0.38), rgba(126, 242, 255, 0.08)) top/100% 2px no-repeat,
        linear-gradient(90deg, rgba(126, 242, 255, 0.38), rgba(126, 242, 255, 0.08)) bottom/100% 2px no-repeat,
        linear-gradient(180deg, rgba(126, 242, 255, 0.38), rgba(126, 242, 255, 0.08)) left/2px 100% no-repeat,
        linear-gradient(180deg, rgba(126, 242, 255, 0.38), rgba(126, 242, 255, 0.08)) right/2px 100% no-repeat;
    box-shadow: inset 0 0 120px rgba(77, 238, 255, 0.08), 0 0 42px rgba(6, 25, 37, 0.35);
}

.page-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.theme-toggle,
.sound-toggle {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.9rem;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.theme-toggle:hover,
.sound-toggle:hover {
    border-color: rgba(126, 242, 255, 0.4);
    background: rgba(126, 242, 255, 0.08);
}

.portal-theme-picker {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin-top: 0.75rem;
}

.portal-theme-card {
    position: relative;
    display: block;
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    padding: 1rem;
    background: var(--card-surface);
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    color: inherit;
}

.portal-theme-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.1);
}

.portal-theme-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

    .portal-theme-card input:checked + .portal-theme-card__swatch {
        background: #22c55e !important;
        box-shadow: inset 0 0 0 2px rgba(34, 197, 94, 0.8), 0 0 0 1px rgba(255,255,255,0.15);
    }

    .portal-theme-card:has(input:checked) {
        background: rgba(34, 197, 94, 0.08);
        border-color: #22c55e;
    }


.portal-theme-card__title {
    display: block;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.portal-theme-card small {
    color: var(--text-muted);
    line-height: 1.4;
}

.page-shell::before,
.page-shell::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 0;
}

html.template-classic .page-shell::before {
    border: 1px solid rgba(126, 242, 255, 0.15);
    box-shadow: 0 0 0 1px rgba(126, 242, 255, 0.06);
    opacity: 0.7;
}

html.template-classic .page-shell::after {
    background: linear-gradient(90deg, transparent 0%, rgba(126, 242, 255, 0.7) 50%, transparent 100%) no-repeat;
    background-size: 35% 2px;
    animation: page-scan 4.4s linear infinite;
}

@keyframes page-scan {
    0% {
        transform: translateX(-120%);
    }
    50% {
        transform: translateX(120%);
    }
    100% {
        transform: translateX(360%);
    }
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header,
.site-footer,
main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    min-height: 104px; /* increased to accommodate larger logo */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0; /* slight vertical padding increase */
    background: var(--menu-bg);
    border-bottom: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 18px; /* increased spacing to suit larger logo */
}
.site-header .brand {
    display: flex;
    align-items: center;
    gap: 18px; /* keep consistent */
}

.brand__logo-ring {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 70px; /* 56px * 1.25 */
    height: 70px; /* 56px * 1.25 */
    border-radius: 50%;
    padding: 4px;
    background: rgba(7, 23, 39, .95);
    box-shadow: 0 0 0 1px rgba(82, 248, 255, .2), inset 0 0 0 1px rgba(255, 255, 255, .08);
    animation: logo-ring-glow 3.4s ease-in-out infinite;
}

.brand__logo-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(82, 248, 255, .18);
    box-shadow: 0 0 20px rgba(82, 248, 255, .18), inset 0 0 18px rgba(82, 248, 255, .12);
    pointer-events: none;
}

.brand__logo-ring::after {
    content: '';
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: radial-gradient(circle at 20% 20%, rgba(82, 248, 255, .25), transparent 34%),
        linear-gradient(115deg, transparent 48%, rgba(82, 248, 255, .5) 52%, transparent 60%);
    opacity: .55;
    filter: blur(2px);
    pointer-events: none;
    mix-blend-mode: screen;
    animation: logo-scan-sweep 4.2s ease-in-out infinite;
}

@keyframes logo-scan-sweep {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: .45;
    }
    45% {
        transform: rotate(170deg) scale(1.03);
        opacity: .82;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: .45;
    }
}

.brand__logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

@keyframes logo-ring-glow {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 1px rgba(82, 248, 255, .2), inset 0 0 0 1px rgba(255, 255, 255, .08);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 30px rgba(82, 248, 255, .28), inset 0 0 0 1px rgba(255, 255, 255, .1);
    }
}

.brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px; /* 48px * 1.25 */
    height: 60px; /* 48px * 1.25 */
    border-radius: 8px;
    background: var(--teal);
    color: #fff;
    font-weight: 900;
    font-size: 20px;
}

.brand strong,
.brand small {
    display: block;
}

.brand small,
.site-footer p,
.hero__lede,
.section p,
.step p,
.feature p,
.verification-card p {
    color: var(--muted);
}

.site-nav {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: 12px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(5, 18, 32, 0.85) 0%, rgba(8, 22, 35, 0.82) 100%);
    border: 1px solid rgba(88, 244, 255, 0.20);
    box-shadow: 
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 0 40px rgba(24, 244, 255, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.4);
    overflow: visible;
    flex: 1;
    min-width: auto;
}

.site-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, transparent 0%, rgba(88, 244, 255, 0.12) 15%, rgba(88, 244, 255, 0.18) 50%, rgba(88, 244, 255, 0.12) 85%, transparent 100%);
    opacity: 0.15;
    transform: translateX(-100%);
    animation: nav-scan 5.5s linear infinite;
    pointer-events: none;
}

.site-nav a,
.site-nav button {
    position: relative;
    border: 0;
    background: rgba(255, 255, 255, 0.05);
    color: #c0f8ff;
    cursor: pointer;
    font: inherit;
    padding: 8px 14px;
    border-radius: 8px;
    transition: 
        color 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease;
    text-shadow: 0 0 10px rgba(192, 248, 255, 0.25);
    box-shadow: inset 0 0 0 1px rgba(88, 244, 255, 0.15);
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav button:hover {
    color: #fff;
    background: rgba(88, 244, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 
        inset 0 0 0 1px rgba(88, 244, 255, 0.30),
        0 8px 20px rgba(88, 244, 255, 0.15);
}

.site-nav a::after,
.site-nav button::after {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 2px;
    height: 1px;
    background: rgba(192, 248, 255, 0.40);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.header-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sound-toggle,
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(88, 244, 255, 0.20);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(5, 18, 32, 0.9) 0%, rgba(8, 22, 35, 0.88) 100%);
    color: #c0f8ff;
    cursor: pointer;
    font-size: 18px;
    transition: 
        transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.22s ease,
        color 0.22s ease,
        box-shadow 0.22s ease;
    box-shadow: 
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 0 20px rgba(88, 244, 255, 0.08);
}

.sound-toggle:hover,
.theme-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    background: linear-gradient(135deg, rgba(10, 25, 42, 0.95) 0%, rgba(12, 28, 40, 0.93) 100%);
    box-shadow: 
        inset 0 0 0 1px rgba(88, 244, 255, 0.25),
        0 8px 28px rgba(88, 244, 255, 0.18);
}

.sound-toggle--muted {
    color: rgba(192, 248, 255, 0.45);
    box-shadow: 
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        0 0 16px rgba(88, 244, 255, 0.05);
}

.sound-toggle--muted:hover {
    color: rgba(192, 248, 255, 0.70);
}

.site-nav a:hover::after,
.site-nav button:hover::after {
    opacity: 1;
}

/* Mobile responsive enhancements */
@media (max-width: 768px) {
    .site-nav {
        gap: 6px 10px;
        padding: 10px 12px;
        border-radius: 10px;
        margin-top: 8px;
        width: 100%;
        justify-content: flex-start;
    }

    .site-nav a,
    .site-nav button {
        padding: 7px 12px;
        font-size: 12px;
        letter-spacing: 0.08em;
    }

    .header-controls {
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .site-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 0;
    }

    .brand {
        padding: 12px 16px;
        justify-content: center;
    }

    .site-nav {
        width: 100%;
        gap: 4px 8px;
        padding: 8px 12px;
        border-radius: 0;
        border-top: 1px solid rgba(88, 244, 255, 0.12);
        border-bottom: 1px solid rgba(88, 244, 255, 0.12);
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-nav a,
    .site-nav button {
        padding: 6px 10px;
        font-size: 11px;
        letter-spacing: 0.06em;
        flex-shrink: 0;
    }

    .header-controls {
        display: flex;
        justify-content: center;
        gap: 12px;
        padding: 12px 16px;
        border-top: 1px solid rgba(88, 244, 255, 0.12);
    }
}

@keyframes nav-scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.hero {
    min-height: calc(100vh - 138px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 48px;
    align-items: center;
    padding: 56px 0 72px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 780px;
    margin-bottom: 22px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: .95;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.03;
}

h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.hero__lede {
    max-width: 650px;
    font-size: 20px;
}

.hero__actions,
.details-panel__header {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 14px;
    padding: 0 18px;
    font-weight: 800;
    border: 1px solid rgba(82, 248, 255, .12);
    background: rgba(5, 15, 26, .95);
    color: var(--text);
    text-shadow: 0 0 8px rgba(82, 248, 255, .12);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(45, 235, 255, .14);
}

.button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(126,242,255,0.12), 0 20px 40px rgba(10,120,130,0.08);
}

.button--primary {
    background: linear-gradient(135deg, var(--accent-neon) 0%, var(--accent-neon-2) 100%);
    color: #02121a; /* dark text to contrast the bright neon */
    box-shadow: 0 20px 60px rgba(110, 250, 240, .18), inset 0 -2px 8px rgba(0,0,0,0.12);
    border-color: rgba(126,242,255,0.28);
}

.button--secondary {
    background: linear-gradient(135deg, rgba(126, 242, 255, 0.95), rgba(106, 247, 200, 0.95));
    color: #05101a;
    border-color: rgba(126, 242, 255, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.button--danger {
    background: linear-gradient(135deg, rgba(255, 95, 109, .95), rgba(209, 69, 69, .95));
    color: #02121a;
}

.button--ghost {
    border: 1px solid rgba(126,242,255,0.28);
    background: rgba(3, 11, 20, 0.85);
    color: var(--accent-neon);
    text-shadow: none;
}

.admin-search-panel {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    padding: 1.4rem 1.6rem;
    border: 1px solid rgba(126, 242, 255, 0.16);
    border-radius: 18px;
    background: rgba(5, 16, 26, 0.96);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    margin-bottom: 1.5rem;
}

.admin-search-panel__hint {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.admin-search-panel label {
    display: grid;
    gap: 0.6rem;
    color: var(--text);
    font-size: 0.95rem;
}

.admin-search-panel input,
.admin-search-panel select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(126, 242, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-search-panel input::placeholder,
.admin-search-panel select option {
    color: rgba(231, 251, 255, 0.65);
}

.admin-search-panel input:focus,
.admin-search-panel select:focus {
    outline: none;
    border-color: rgba(126, 242, 255, 0.35);
    box-shadow: 0 0 0 4px rgba(126, 242, 255, 0.08);
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.filter-actions .button {
    min-width: 140px;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(126, 242, 255, 0.1);
    color: var(--text);
    margin-bottom: 1rem;
}

.active-filters strong {
    color: var(--text);
}

.active-filters .status-pill {
    border: 1px solid rgba(126, 242, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    text-transform: none;
    font-size: 0.93rem;
    font-weight: 600;
}

.active-filters a.button--ghost {
    color: var(--accent-neon);
}

.table {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(126, 242, 255, 0.1);
    background: rgba(5, 16, 26, 0.95);
}

.table__head {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.table__row {
    border-top: 1px solid rgba(126, 242, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.table__row:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

.table__row > div {
    min-height: 54px;
}

.table {
    border-radius: 18px;
    overflow: hidden;
}

.table__head,
.table__row {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 0.9fr 0.9fr 0.8fr 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
}

.status-pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
}

.status-gray { background:#e6e7e9; color:#0a1f1f }
.status-green { background:#ecfdf5; color:#0a1f1f }
.status-yellow { background:#fffbeb; color:#92400e }
.status-red { background:#fff1f2; color:#9f1239 }
.status-orange { background:#fff7ed; color:#92400e }

.muted { color: #6b7280 }
.small { font-size: 0.8rem }
.text-right { text-align: right }

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

    .table__head { display: none; }

    .table__row {
        grid-template-columns: 1fr 1fr;
        padding: 12px;
    }

    .table__row > div:last-child {
        grid-column: 1 / -1;
        display: flex;
        justify-content: flex-end;
        gap: 0.5rem;
    }

    .record-row > span:last-child {
        display: inline-block;
    }
}

@media (max-width: 640px) {
    .admin-search-panel {
        grid-template-columns: 1fr;
    }

    .table__row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .table__row > div:last-child {
        justify-content: flex-start;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .action-buttons {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .button { width: auto; padding: 8px 12px; }
}

.hero__visual {
    position: relative;
    z-index: 1;
    min-height: 480px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background:
        linear-gradient(140deg, rgba(23, 43, 77, .92), rgba(9, 124, 124, .82)),
        repeating-linear-gradient(90deg, transparent 0 48px, rgba(255, 255, 255, .14) 49px 50px);
    background-position: center, center;
    background-size: cover, auto;
    background-repeat: no-repeat, repeat;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 8px;
    border: 1px solid rgba(66, 214, 255, .22);
    box-shadow: inset 0 0 0 1px rgba(66, 214, 255, .12), 0 0 24px rgba(66, 214, 255, .08);
    opacity: .9;
}

.hero__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(52, 255, 255, .85) 15%, transparent 15% 25%, rgba(52, 255, 255, .85) 25% 26%, transparent 26% 42%) top/240% 2px repeat-x,
        linear-gradient(90deg, rgba(52, 255, 255, .85) 15%, transparent 15% 25%, rgba(52, 255, 255, .85) 25% 26%, transparent 26% 42%) bottom/240% 2px repeat-x,
        linear-gradient(180deg, rgba(52, 255, 255, .85) 15%, transparent 15% 25%, rgba(52, 255, 255, .85) 25% 26%, transparent 26% 42%) left/2px 240% repeat-y,
        linear-gradient(180deg, rgba(52, 255, 255, .85) 15%, transparent 15% 25%, rgba(52, 255, 255, .85) 25% 26%, transparent 26% 42%) right/2px 240% repeat-y;
    background-position: 0 0, 0 100%, 0 0, 100% 0;
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
    animation: hero-border-scan 4.5s linear infinite, hero-border-pulse 3.8s ease-in-out infinite;
    opacity: .75;
    mix-blend-mode: screen;
}

@keyframes hero-border-scan {
    0% {
        background-position: 0 0, 0 100%, 0 0, 100% 0;
    }

    100% {
        background-position: -220% 0, 220% 100%, 0 -220%, 100% 220%;
    }
}

@keyframes hero-border-pulse {
    0%,
    100% {
        opacity: .65;
    }

    50% {
        opacity: 1;
    }
}

.preloader-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at top, rgba(16, 32, 51, .95), rgba(9, 12, 28, .98));
    color: #f8fbff;
    text-align: center;
    transition: opacity .35s ease, visibility .35s ease;
    visibility: visible;
    opacity: 1;
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-card {
    max-width: 360px;
    width: 100%;
    padding: 28px 24px 24px;
    border-radius: 26px;
    background: rgba(6, 17, 37, .92);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 48px 110px rgba(0, 0, 0, .42);
}

.qr-preloader {
    position: relative;
    width: 190px;
    height: 190px;
    margin: 0 auto 22px;
    border-radius: 28px;
    background: #071228;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.qr-preloader::before {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 18px;
    background: linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 6px, rgba(255,255,255,.08) 6px 7px, transparent 7px 12px),
        linear-gradient(rgba(255,255,255,.08) 0 1px, transparent 1px 6px, rgba(255,255,255,.08) 6px 7px, transparent 7px 12px);
    background-size: 24px 24px;
    opacity: .35;
}

.qr-corner {
    position: absolute;
    width: 34px;
    height: 34px;
    border: 5px solid rgba(79, 214, 255, .92);
    border-radius: 12px;
}

.qr-corner--tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.qr-corner--tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
.qr-corner--bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
.qr-corner--br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }

.qr-scan-line {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 10px;
    top: 20px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(79,214,255,.9), transparent);
    box-shadow: 0 0 28px rgba(79,214,255,.48);
    animation: qr-scan 2.1s ease-in-out infinite;
}

@keyframes qr-scan {
    0% { top: 20px; opacity: .2; }
    50% { top: 160px; opacity: .95; }
    100% { top: 20px; opacity: .2; }
}

.qr-preloader__dots {
    position: absolute;
    inset: 44px;
    background-image: radial-gradient(circle at 30% 22%, rgba(255,255,255,.72) 0 4px, transparent 4px),
                      radial-gradient(circle at 70% 40%, rgba(255,255,255,.68) 0 3px, transparent 3px),
                      radial-gradient(circle at 45% 68%, rgba(255,255,255,.56) 0 3px, transparent 3px),
                      radial-gradient(circle at 62% 78%, rgba(255,255,255,.5) 0 3px, transparent 3px);
    opacity: .28;
}

.preloader-copy strong {
    display: block;
    margin-bottom: 12px;
    font-size: 1.15rem;
    letter-spacing: .02em;
}

.preloader-copy p {
    margin: 0;
    line-height: 1.75;
    color: rgba(255,255,255,.75);
}

.certificate-preview {
    width: min(390px, 82%);
    min-height: 480px;
    padding: 28px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
    transform: rotate(-3deg);
}

.certificate-preview__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 38px;
    font-weight: 900;
}

.status-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--green);
}

.certificate-preview__line {
    height: 12px;
    width: 68%;
    margin-bottom: 16px;
    border-radius: 999px;
    background: #dfe7ef;
}

.certificate-preview__line--wide {
    width: 92%;
    height: 18px;
    background: #bdcad8;
}

.certificate-preview__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 36px;
}

.certificate-preview__grid span {
    height: 72px;
    border-radius: 8px;
    background: #eef3f7;
}

.certificate-preview__seal {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    margin: 42px auto 0;
    border-radius: 50%;
    border: 8px solid rgba(20, 132, 92, .18);
    color: var(--green);
    font-size: 44px;
    font-weight: 900;
}

.hero__visual-scene {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    width: min(100%, 960px);
    margin: 0 auto;
}

.hero__device {
    position: relative;
    width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: float-device 8s ease-in-out infinite;
}

.hero__device-frame {
    width: 100%;
    border-radius: 42px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(19, 35, 64, 1), rgba(4, 19, 32, 1));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.hero__device-screen {
    position: relative;
    border-radius: 34px;
    background: #071228;
    padding: 18px;
    min-height: 440px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.phone-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .08);
    color: #d8f7ff;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.phone-status__indicator {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(20, 132, 92, .18);
    animation: pulse-dot 1.8s ease-in-out infinite;
}

.qr-scanner {
    display: grid;
    place-items: center;
    padding: 12px;
}

.qr-scanner__code {
    position: relative;
    width: 190px;
    height: 190px;
    border-radius: 26px;
    background: radial-gradient(circle at 16% 16%, rgba(255, 255, 255, .24) 0 8%, transparent 9%),
        radial-gradient(circle at 84% 16%, rgba(255, 255, 255, .24) 0 8%, transparent 9%),
        radial-gradient(circle at 16% 84%, rgba(255, 255, 255, .24) 0 8%, transparent 9%),
        #061121;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
    overflow: hidden;
}

.qr-scanner__code::before {
    content: '';
    position: absolute;
    inset: 24px;
    background: linear-gradient(90deg, #fff 8px, transparent 8px 22px, #fff 22px 30px, transparent 30px 38px, #fff 38px 46px, transparent 46px 54px, #fff 54px 62px, transparent 62px 70px, #fff 70px 78px, transparent 78px 86px),
        linear-gradient(#fff 8px, transparent 8px 22px, #fff 22px 30px, transparent 30px 38px, #fff 38px 46px, transparent 46px 54px, #fff 54px 62px, transparent 62px 70px, #fff 70px 78px, transparent 78px 86px);
    background-size: 100% 100%;
    opacity: .88;
}

.qr-corner {
    position: absolute;
    width: 38px;
    height: 38px;
    border: 8px solid #fff;
    border-radius: 10px;
}

.qr-corner--tl {
    top: 16px;
    left: 16px;
    border-right: 0;
    border-bottom: 0;
}

.qr-corner--tr {
    top: 16px;
    right: 16px;
    border-left: 0;
    border-bottom: 0;
}

.qr-corner--bl {
    bottom: 16px;
    left: 16px;
    border-right: 0;
    border-top: 0;
}

.qr-corner--br {
    bottom: 16px;
    right: 16px;
    border-left: 0;
    border-top: 0;
}

.qr-dot {
    position: absolute;
    bottom: 24px;
    left: 22px;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: #fff;
}

.scan-beam {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 92px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(31, 219, 255, .65), transparent);
    filter: blur(1px);
    animation: scan-beam 2.3s ease-in-out infinite;
    mix-blend-mode: screen;
}

.hero__device-base {
    width: 160px;
    height: 16px;
    margin-top: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.hero__flag-wall {
    position: relative;
    width: min(420px, 100%);
    min-height: 450px;
    display: grid;
    place-items: center;
}

.hero__flag-card {
    position: absolute;
    width: 100%;
    max-width: 380px;
    padding: 28px 24px;
    display: flex;
    align-items: center;
    gap: 22px;
    border-radius: 32px;
    color: white;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .25);
    transform-origin: center;
    animation: flag-cycle 6s ease-in-out infinite;
    animation-fill-mode: both;
}

.hero__flag-card--invalid {
    background: linear-gradient(135deg, rgba(186,45,45,.96), rgba(152,31,31,.95));
}

.hero__flag-card--verified {
    background: linear-gradient(135deg, rgba(20,132,92,.96), rgba(23,97,76,.95));
    animation-delay: 3s;
}

.hero__flag-pole {
    width: 12px;
    height: 140px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.4));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.hero__flag-body {
    flex: 1;
    display: grid;
    gap: 10px;
}

.hero__flag-body strong {
    font-size: 2rem;
    line-height: 1;
}

.hero__flag-body p {
    margin: 0;
    color: rgba(255,255,255,.88);
    font-size: .95rem;
    line-height: 1.6;
}

@keyframes flag-cycle {
    0%, 20% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    25%, 100% {
        opacity: 0;
        transform: translateY(18px) scale(.97);
    }
}

.hero__certificate-card {
    width: min(420px, 100%);
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 32px 80px rgba(16, 32, 51, .16);
    opacity: 0;
    transform: translateX(26px) scale(.96);
    animation: certificate-appear 1s 1.2s ease forwards;
}

.hero__certificate-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    font-weight: 900;
    color: var(--ink);
}

.badge--verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(20, 132, 92, .14);
    color: var(--green);
}

.hero__certificate-line {
    width: 100%;
    height: 16px;
    margin-bottom: 24px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(20,132,92,.18), rgba(15, 96, 137, .18));
}

.hero__certificate-meta {
    display: grid;
    gap: 16px;
    margin-bottom: 22px;
}

.hero__cert-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--surface-soft);
}

.hero__cert-label {
    color: var(--muted);
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero__certificate-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.hero__certificate-grid div {
    padding: 16px 18px;
    border-radius: var(--card-radius);
    background: var(--card-surface);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

.hero__certificate-grid span {
    display: block;
    color: var(--muted);
    font-size: .75rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero__certificate-grid strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink);
}

.hero__certificate-seal {
    width: 98px;
    height: 98px;
    margin: 28px auto 0;
    border-radius: 50%;
    background: rgba(20, 132, 92, .08);
    color: var(--green);
    font-size: 36px;
    font-weight: 900;
    display: grid;
    place-items: center;
    border: 6px solid rgba(20, 132, 92, .15);
}

@keyframes scan-beam {
    0%, 100% { transform: translateY(-88px); opacity: .1; }
    50% { transform: translateY(182px); opacity: .95; }
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(.92); opacity: .8; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes certificate-appear {
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes float-device {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.section {
    padding: 74px 0;
    border-top: 1px solid var(--line);
}

.section--split {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 48px;
}

.steps,
.feature-grid,
.details-grid {
    display: grid;
    gap: 16px;
}

.steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step,
.feature,
.details-panel,
.verification-card {
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    background: var(--card-surface);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(8px);
}

.step,
.feature {
    padding: 22px;
}

.step span,
.feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 32px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: rgba(32, 118, 255, .16);
    color: #8de8ff;
    font-size: 12px;
    font-weight: 900;
    box-shadow: inset 0 0 18px rgba(30, 237, 255, .14);
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.25rem 2rem;
    align-items: start;
    padding: 2.25rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--footer-bg);
    color: var(--text-muted);
}

.site-footer p { margin:0 }

.site-footer__copy { display:grid; gap:10px }
}

.brand-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.brand-links--hero {
    margin-top: 18px;
}

.brand-links--footer {
    margin-top: 4px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(126, 242, 255, .18);
    background: rgba(6, 18, 30, .88);
    color: var(--text);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.brand-link:hover,
.brand-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(126, 242, 255, .45);
    background: rgba(10, 30, 48, .96);
}

.brand-link__icon {
    display: inline-grid;
    place-items: center;
    width: 1.15rem;
    font-size: .92rem;
    font-weight: 800;
    color: #8de8ff;
}

.verify-page {
    padding: 56px 0 84px;
}

.verification-card {
    padding: 32px;
    margin-bottom: 22px;
    border-left: 4px solid rgba(255, 95, 109, .9);
    background: linear-gradient(180deg, rgba(6, 18, 32, .96), rgba(9, 27, 45, .95));
}

.verification-card.is-valid {
    border-left-color: rgba(140, 255, 185, .95);
}

.verification-card.is-expired {
    border-left-color: rgba(255, 215, 127, .95);
}

.verification-card__status {
    display: flex;
    gap: 18px;
}

.verification-card__icon {
    display: grid;
    flex: 0 0 64px;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    color: var(--red);
    font-size: 32px;
    font-weight: 900;
    text-shadow: 0 0 16px rgba(255, 95, 109, .55);
}

.is-valid .verification-card__icon {
    background: #dff3eb;
    color: var(--green);
}

.is-expired .verification-card__icon {
    background: #f8edd7;
    color: var(--amber);
}

.notice {
    margin-top: 24px;
    padding: 18px;
    border-radius: 8px;
    background: #fff5f5;
}

.details-panel {
    padding: 28px;
}

.details-panel__header {
    justify-content: space-between;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.verification-panel {
    padding: 24px;
    margin-top: 28px;
    border-radius: 18px;
    background: rgba(3, 11, 20, .92);
    border: 1px solid rgba(74, 250, 255, .12);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.verification-panel__intro {
    margin-bottom: 18px;
    color: var(--text-muted);
    line-height: 1.75;
}

.verification-form {
    display: grid;
    gap: 16px;
    max-width: 520px;
}

.verification-form label {
    display: grid;
    gap: 10px;
}

.verification-form input[type="text"] {
    width: 100%;
    padding: 16px 14px;
    border: 1px solid rgba(79, 240, 255, .12);
    border-radius: 14px;
    background: rgba(6, 14, 22, .92);
    color: var(--text);
    font-size: 1rem;
    box-shadow: inset 0 0 28px rgba(0, 0, 0, .32), 0 2px 18px rgba(6, 20, 28, .35);
}

.verification-form input[type="text"]::placeholder {
    color: rgba(231,251,255,0.55);
}

.verification-form input[type="text"]:focus {
    outline: none;
    border-color: rgba(126,242,255, .96);
    box-shadow: 0 0 0 4px rgba(126,242,255, .12), inset 0 0 18px rgba(0,0,0,0.36);
}

.verification-form .button {
    width: fit-content;
}

.verification-input-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.verification-input-wrapper input[type="text"] {
    flex: 1;
    margin: 0;
}

.verification-input-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.field-hint {
    margin: 4px 0 0;
    color: rgba(231, 251, 255, .65);
    font-size: .92rem;
    line-height: 1.4;
}

.qr-scanner-panel {
    margin-top: 18px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(126, 242, 255, .18);
    background: rgba(3, 11, 20, .96);
    box-shadow: 0 18px 80px rgba(0, 0, 0, .18);
    position: relative;
}

.qr-scanner-panel::before,
.qr-scanner-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
}

.qr-scanner-panel::before {
    border: 1px dashed rgba(126, 242, 255, .35);
}

.qr-scanner-panel::after {
    background: linear-gradient(90deg, rgba(126, 242, 255, 0) 0%, rgba(126, 242, 255, .18) 50%, rgba(126, 242, 255, 0) 100%);
    opacity: 0.8;
    transform: translateX(-100%);
    animation: scan-overlay 2.8s ease-in-out infinite;
}

@keyframes scan-overlay {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    45% {
        opacity: 0.6;
    }
    55% {
        opacity: 0.6;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.qr-video {
    width: 100%;
    height: auto;
    display: block;
    min-height: 240px;
    object-fit: cover;
    background: rgba(0, 0, 0, .18);
}

.qr-canvas {
    display: none;
}

.voice-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(79, 240, 255, .12);
    border-radius: 12px;
    background: rgba(6, 14, 22, .92);
    color: var(--accent-neon);
    cursor: pointer;
    font-size: 18px;
    transition: all .25s ease;
    position: relative;
    box-shadow: inset 0 0 28px rgba(0, 0, 0, .32), 0 2px 18px rgba(6, 20, 28, .35);
    overflow: hidden;
}

.voice-toggle:hover {
    border-color: rgba(126, 242, 255, .32);
    box-shadow: inset 0 0 28px rgba(0, 0, 0, .32), 0 0 20px rgba(126, 242, 255, .18);
    transform: translateY(-1px);
}

.voice-toggle:active {
    transform: translateY(0);
}

.voice-toggle[aria-pressed="true"] {
    background: linear-gradient(135deg, rgba(126, 242, 255, .15), rgba(106, 247, 200, .1));
    border-color: rgba(126, 242, 255, .38);
    box-shadow: 0 0 0 3px rgba(126, 242, 255, .18), inset 0 0 28px rgba(0, 0, 0, .32);
}

.voice-icon {
    display: inline-block;
    transition: opacity .3s ease, transform .3s ease;
    position: relative;
    z-index: 2;
}

.voice-toggle[aria-pressed="true"] .voice-icon {
    animation: voice-pulse 1.2s ease-in-out infinite;
}

.voice-indicator {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    top: 2px;
    right: 2px;
    background: rgba(138, 255, 185, .7);
    opacity: 0;
    box-shadow: 0 0 8px rgba(138, 255, 185, .5);
    z-index: 1;
}

.voice-toggle[aria-pressed="true"] .voice-indicator {
    animation: voice-dot-pulse 1.2s ease-in-out infinite;
}

.voice-wave {
    position: absolute;
    width: 2px;
    height: 4px;
    background: rgba(126, 242, 255, .5);
    border-radius: 1px;
    opacity: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.voice-wave-1 {
    width: 2px;
    height: 4px;
}

.voice-wave-2 {
    width: 2px;
    height: 6px;
}

.voice-wave-3 {
    width: 2px;
    height: 8px;
}

.voice-toggle[aria-pressed="true"] .voice-wave-1 {
    animation: wave-rise 1s ease-in-out infinite;
}

.voice-toggle[aria-pressed="true"] .voice-wave-2 {
    animation: wave-rise 1s ease-in-out infinite 0.15s;
}

.voice-toggle[aria-pressed="true"] .voice-wave-3 {
    animation: wave-rise 1s ease-in-out infinite 0.3s;
}

@keyframes wave-rise {
    0% {
        opacity: 0.2;
        height: 4px;
    }
    50% {
        opacity: 0.6;
        height: 12px;
    }
    100% {
        opacity: 0.2;
        height: 4px;
    }
}

.voice-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(138, 255, 185, .8);
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(138, 255, 185, .08);
    border: 1px solid rgba(138, 255, 185, .18);
    margin-top: 8px;
    flex-wrap: wrap;
}

.voice-status.error {
    color: rgba(255, 95, 109, .8);
    background: rgba(255, 95, 109, .08);
    border-color: rgba(255, 95, 109, .18);
}

.voice-status.success {
    color: rgba(138, 255, 185, .9);
    background: rgba(138, 255, 185, .12);
    border-color: rgba(138, 255, 185, .28);
}

.voice-status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: voice-status-blink 1s ease-in-out infinite;
    flex-shrink: 0;
}

.voice-status.success .voice-status-dot {
    animation: none;
    opacity: 1;
}

#voice-status-text {
    display: inline;
    flex: 1;
}

.voice-transcript {
    display: inline-block;
    font-style: italic;
    opacity: 0.75;
    word-break: break-all;
    flex-basis: 100%;
    margin-top: 4px;
}

.voice-instructions {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(138, 255, 185, .6);
    display: flex;
    align-items: center;
    gap: 6px;
}

.voice-instructions small {
    display: block;
}

@keyframes voice-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.08);
    }
}

@keyframes voice-dot-pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
        box-shadow: 0 0 8px rgba(138, 255, 185, .5);
    }
    50% {
        opacity: 1;
        transform: scale(1.4);
        box-shadow: 0 0 16px rgba(138, 255, 185, .8);
    }
}

@keyframes voice-status-blink {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}


.verification-code-card {
    margin-top: 18px;
    padding: 24px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgb(227, 178, 178), rgb(241, 247, 255));
    border: 1px solid rgba(96,165,250,0.22);
}

.verification-code-card__label {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 10px;
}

.verification-code-card__value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 1.7rem;
    letter-spacing: 0.16em;
    margin-bottom: 12px;
    color: var(--text);
}

.verification-code-card__description,
.verification-hint {
    color: var(--text-muted);
    line-height: 1.8;
}

.details-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 22px;
}

.details-grid div {
    min-width: 0;
    padding: 16px;
    border-radius: 8px;
    background: var(--surface-soft);
}

.details-grid dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.details-grid dd {
    margin: 6px 0 0;
    overflow-wrap: anywhere;
    font-size: 18px;
    font-weight: 850;
}

.admin-page {
    padding: 56px 0 84px;
}

.admin-page--narrow {
    max-width: 560px;
}

.admin-heading {
    margin-bottom: 28px;
}

.admin-heading h1 {
    margin-bottom: 14px;
    font-size: clamp(38px, 5vw, 58px);
}

.admin-heading p {
    max-width: 680px;
    color: var(--muted);
}

.admin-heading--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.admin-form {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 30px rgba(16, 32, 51, .06);
    padding: 28px;
}

.admin-form--wide {
    max-width: 980px;
}

.admin-form label,
.admin-form label span {
    display: block;
}

.admin-form label {
    margin-bottom: 18px;
}

.admin-form label span {
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 850;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(126,242,255,0.08);
    border-radius: 8px;
    background: rgba(6,12,20,0.9);
    color: var(--text);
    font: inherit;
    padding: 10px 12px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.admin-form input::placeholder,
.admin-form textarea::placeholder {
    color: rgba(231,251,255,0.48);
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: rgba(126,242,255,0.9);
    box-shadow: 0 0 0 4px rgba(106,247,200,0.08);
}

    .admin-form input.is-invalid,
    .admin-form select.is-invalid,
    .admin-form textarea.is-invalid {
        border-color: var(--red);
        box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
    }

    .admin-form input:focus.is-invalid,
    .admin-form select:focus.is-invalid,
    .admin-form textarea:focus.is-invalid {
        border-color: #dc2626;
        outline: none;
        box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.24);
    font-weight: 700;
}

.check-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.check-row input {
    width: auto;
    min-height: auto;
}

.check-row span {
    margin-bottom: 0 !important;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-grid label {
    margin-bottom: 0;
}

.form-grid__full {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.form-alert,
.form-success,
.empty-state {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 750;
}

.form-alert {
    background: rgba(255, 95, 109, 0.12);
    color: #ff5f6d;
}

.verification-banner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 206, 105, 0.15), rgba(255, 116, 116, 0.12));
    border: 1px solid rgba(255, 95, 109, 0.24);
    color: #fff;
    margin-bottom: 20px;
}

.verification-banner__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    border-radius: 16px;
    background: rgba(255, 95, 109, 0.18);
}

.verification-banner__body strong {
    display: block;
    margin-bottom: 6px;
    color: #ffd7a0;
}

.verification-banner__body p {
    margin: 0;
    color: #e9f9ff;
    opacity: 0.9;
}

.verification-guide {
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(15, 26, 38, 0.75);
    border: 1px solid rgba(126, 242, 255, 0.14);
    margin-top: 16px;
}

.verification-guide .form-guide-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: rgba(226, 239, 255, 0.9);
}

.verification-guide .form-guide-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.verification-guide small {
    display: block;
    margin-top: 10px;
    color: rgba(210, 228, 241, 0.78);
}

.form-success {
    background: rgba(140, 255, 185, 0.12);
    color: #8cffb9;
}

.empty-state {
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stats-grid div {
    border: 1px solid rgba(126, 242, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    padding: 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

.stats-grid span,
.record-row small {
    display: block;
    color: rgba(231, 251, 255, 0.75);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stats-grid strong {
    display: block;
    margin-top: 10px;
    font-size: 38px;
    line-height: 1;
    color: var(--text);
}

.dashboard-summary-grid,
.status-summary-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
}

.dashboard-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-card {
    border: 1px solid rgba(126, 242, 255, 0.12);
    border-radius: 24px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
}

.dashboard-card p {
    margin: 0 0 10px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.dashboard-card strong {
    display: block;
    font-size: 2.4rem;
    color: var(--text);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.panel-header h2 {
    margin: 0;
    font-size: 1.3rem;
}

.dashboard-chart-panel {
    border: 1px solid rgba(126, 242, 255, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    padding: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
}

.trend-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    min-height: 160px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(126, 242, 255, 0.08);
    border-radius: 16px;
    background: rgba(7, 19, 34, 0.75);
}

.trend-bar {
    width: 100%;
    min-width: 0;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, var(--accent-neon), rgba(126, 242, 255, .18));
    position: relative;
}

.trend-bar::after {
    content: attr(data-value);
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text);
    font-size: 0.8rem;
    white-space: nowrap;
}

.trend-labels {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    text-align: center;
}

.trend-labels span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.status-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-summary-card {
    border: 1px solid rgba(126, 242, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.04);
}

.status-summary-card span {
    display: block;
    color: var(--text-muted);
    font-size: 0.86rem;
    margin-bottom: 8px;
}

.status-summary-card strong {
    font-size: 2rem;
    display: block;
    color: var(--text);
}

.status-summary-card.status-summary-card--green {
    border-color: rgba(140, 255, 185, 0.18);
}

.status-summary-card.status-summary-card--yellow {
    border-color: rgba(255, 215, 127, 0.18);
}

.status-summary-card.status-summary-card--red {
    border-color: rgba(255, 95, 109, 0.18);
}

.status-summary-card.status-summary-card--gray {
    border-color: rgba(255, 255, 255, 0.12);
}

.status-summary-card.status-summary-card--orange {
    border-color: rgba(255, 176, 81, 0.18);
}

.dashboard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.dashboard-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.record-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(126, 242, 255, 0.1);
    border-radius: 18px;
    padding: 28px;
}

.details-panel__header {
    background: transparent;
}

.record-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(126, 242, 255, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

.record-row:hover {
    background: rgba(126, 242, 255, 0.06);
    transform: translateX(2px);
}

.record-row > span:last-child {
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(20, 50, 40, 0.85);
    color: #7ef2ff;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.record-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.record-row:last-child {
    border-bottom: 0;
}

.record-row > span:last-child {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #e7f3f3;
    color: var(--teal);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
}

.cms-panel {
    margin-top: 24px;
}

.cms-toggle {
    margin: 22px 0;
}

.cms-items {
    margin-top: 24px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.cms-item {
    display: grid;
    grid-template-columns: minmax(100px, .3fr) minmax(0, .7fr);
    gap: 16px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.cms-item label {
    margin-bottom: 0;
}

@media (max-width: 860px) {
    .site-header,
    .site-footer,
    .hero__actions,
    .verification-card__status,
    .details-panel__header {
        align-items: flex-start;
    }

    .site-header,
    .site-footer {
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .hero,
    .section--split {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 32px;
    }

    .hero__visual {
        min-height: 390px;
    }

    .steps,
    .feature-grid,
    .details-grid {
        grid-template-columns: 1fr;
    }

    .details-panel__header,
    .hero__actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .admin-heading--split,
    .form-actions,
    .record-row {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-summary-grid,
    .status-summary-grid {
        grid-template-columns: 1fr;
    }

    .trend-labels {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .cms-item,
    .form-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* CKEditor toolbar/menu text should be black */
.cke_panel_listItem a,
.cke_panel_grouptitle,
.cke_menuitem span,
.cke_menubutton_label,
.cke_menubutton_shortcut,
.cke_combo_text,
.cke_button_label,
.cke_button_arrow {
    color: #000 !important;
}
