/* =====================================================
   REDINGTON × APPLE — FUTURISTIC VERIFICATION PORTAL
   Light-mode / Glassmorphism / Neon-Accent / Cinematic
   Version 4.1 — White Theme
   ===================================================== */

/* Fallback body font to Inter if SF Hello not available */
body { font-family: 'SF Hello', 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; }

/* ── Custom Fonts ── */
@font-face {
    font-family: 'SF Hello';
    src: url('fonts/fonts/sf-hello-regular.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'SF Hello';
    src: url('fonts/fonts/SFProDisplay-Medium.ttf') format('truetype');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'SF Hello';
    src: url('fonts/fonts/SFProDisplay-Semibold.ttf') format('truetype');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'SF Hello';
    src: url('fonts/fonts/SFProDisplay-Bold.ttf') format('truetype');
    font-weight: 700; font-style: normal; font-display: swap;
}

/* ─────────────────────────────────────────────────────
   DESIGN TOKENS — LIGHT / WHITE FUTURISTIC
   ───────────────────────────────────────────────────── */
:root {
    /* Backgrounds */
    --bg-base:       #ffffff;
    --bg-layer:      #f5f5f7;
    --bg-card:       rgba(255, 255, 255, 0.92);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --bg-glass:      rgba(255,255,255,0.7);
    --bg-input:      #f5f5f7;

    /* Text */
    --text-primary:  #1d1d1f;
    --text-secondary:#48484a;
    --text-muted:    #86868b;

    /* Borders */
    --border:        rgba(0,0,0,0.08);
    --border-hover:  rgba(0,0,0,0.14);
    --border-active: rgba(0,170,85,0.45);

    /* Neon / Brand (slightly deeper green for white bg readability) */
    --neon-green:    #00a854;
    --neon-green-dim:#007a3d;
    --neon-blue:     #1a6eff;
    --neon-cyan:     #00b4d8;
    --neon-red:      #e03030;
    --neon-orange:   #ff9500;

    /* Glows (softened for white bg) */
    --glow-green:    rgba(0, 168, 84, 0.18);
    --glow-green-lg: rgba(0, 168, 84, 0.08);
    --glow-blue:     rgba(26,110,255,0.18);
    --glow-red:      rgba(224,48,48,0.18);

    /* Status */
    --status-green:  #00a854;
    --status-green-bg: rgba(0,168,84,0.07);
    --status-red:    #e03030;
    --status-red-bg: rgba(224,48,48,0.07);

    /* Radii */
    --r-xs:   8px;
    --r-sm:   14px;
    --r-md:   20px;
    --r-lg:   28px;
    --r-xl:   36px;
    --r-pill: 999px;

    /* Shadows */
    --shadow-glow-green: 0 0 40px rgba(0,168,84,0.12), 0 0 80px rgba(0,168,84,0.05);
    --shadow-card: 0 1px 0 rgba(255,255,255,0.9) inset,
                   0 4px 24px rgba(0,0,0,0.06),
                   0 16px 48px rgba(0,0,0,0.05);

    /* Motion */
    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-in:     cubic-bezier(0.55, 0, 1, 0.45);
    --dur-fast:    0.2s;
    --dur-mid:     0.4s;
    --dur-slow:    0.7s;
}

/* ─────────────────────────────────────────────────────
   RESET & BASE
   ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'SF Hello', 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    background-color: #ffffff;
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Animated grid background — ultra-subtle on white */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,168,84,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,168,84,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    animation: gridDrift 30s linear infinite;
}

@keyframes gridDrift {
    0%   { transform: translateY(0); }
    100% { transform: translateY(60px); }
}

/* Radial ambient glow — soft on white */
body::after {
    content: '';
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at center,
        rgba(0,168,84,0.05) 0%,
        rgba(26,110,255,0.03) 40%,
        transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f5f5f7; }
::-webkit-scrollbar-thumb { background: rgba(0,168,84,0.25); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,168,84,0.5); }

/* Typography base */
p   { font-size: 1rem !important; color: var(--text-secondary); line-height: 1.7; }
a   { font-size: inherit !important; color: var(--neon-green); text-decoration: none; transition: all var(--dur-fast) ease; }
a:hover { color: #007a3d; text-decoration: none; }
li  { font-size: 0.95rem !important; }

/* ─────────────────────────────────────────────────────
   SCROLL-REVEAL SYSTEM
   ───────────────────────────────────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity var(--dur-slow) var(--ease-out),
                transform var(--dur-slow) var(--ease-out);
}

.reveal.reveal--left {
    transform: translateX(-56px);
}
.reveal.reveal--right {
    transform: translateX(56px);
}
.reveal.reveal--scale {
    transform: scale(0.92) translateY(24px);
}

.reveal.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Stagger delays */
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }

/* ─────────────────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────────────────── */

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ─────────────────────────────────────────────────────
   HEADER — Frosted glass bar
   ───────────────────────────────────────────────────── */

.header {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    height: 64px;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 500;
    display: flex;
    align-items: center;
}

/* Thin green accent line under header */
.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,168,84,0.3), transparent);
    opacity: 0.5;
}

.header .container {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand .logo {
    height: 42px;
    object-fit: contain;
    filter: none;
    transition: all var(--dur-mid) var(--ease-out);
}
.brand .logo:hover {
    filter: brightness(0.9) drop-shadow(0 0 6px rgba(0,168,84,0.3));
    transform: scale(1.05);
}

/* ─────────────────────────────────────────────────────
   MAIN CONTENT
   ───────────────────────────────────────────────────── */

.content {
    flex-grow: 1;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 64px 40px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
}

/* ─────────────────────────────────────────────────────
   VERIFICATION GRID
   ───────────────────────────────────────────────────── */

.verification-grid {
    width: 100%;
    display: flex;
    justify-content: center;
}

.verification-grid.has-help {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 36px;
    align-items: stretch;
}

.grid-col-card { display: flex; justify-content: center; align-items: stretch; width: 100%; }
.grid-col-card .card { max-width: 580px; width: 100%; margin: 0; }
.grid-col-help { display: flex; flex-direction: column; justify-content: center; }

/* ─────────────────────────────────────────────────────
   HELP BOX
   ───────────────────────────────────────────────────── */

.help-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    padding: 40px 36px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.help-box::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0,232,122,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.help-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.help-steps { display: flex; flex-direction: column; gap: 22px; }

.help-step {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 18px;
    border-left: 2px solid var(--border);
    transition: border-color var(--dur-mid) ease;
}
.help-step:hover { border-left-color: var(--neon-green); }

.help-step h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.help-step p {
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    line-height: 1.55;
    margin: 0;
}

.help-step p strong { color: var(--text-secondary); font-weight: 600; }

/* ─────────────────────────────────────────────────────
   MAIN CARD — Glassmorphism Verification Widget
   ───────────────────────────────────────────────────── */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-card);
    width: 100%;
    max-width: 580px;
    padding: 52px 48px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    transition: box-shadow var(--dur-mid) var(--ease-out);
}

/* Subtle green tint orb — softened for white */
.card::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,168,84,0.05) 0%, transparent 65%);
    pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite;
}

.card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(26,110,255,0.04) 0%, transparent 65%);
    pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite reverse;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(20px, -15px) scale(1.08); }
    66%       { transform: translate(-10px, 20px) scale(0.94); }
}

.card:hover { box-shadow: var(--shadow-card), var(--shadow-glow-green); }

.card > * { position: relative; z-index: 1; }

/* ── View containers ── */
.view {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    width: 100%;
    animation: viewEnter 0.5s var(--ease-out) both;
}
.view.hidden { display: none !important; }

@keyframes viewEnter {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Shield Icon ── */
.icon-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    margin-bottom: 4px;
}

.icon-wrap .pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,232,122,0.2) 0%, transparent 70%);
    animation: wave 2.5s ease-out infinite;
}

@keyframes wave {
    0%   { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.7); opacity: 0; }
}

.icon-wrap .shield {
    position: absolute;
    width: 76px;
    height: 76px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,168,84,0.12) 0%, rgba(0,168,84,0.04) 100%);
    border: 1.5px solid rgba(0,168,84,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0,168,84,0.14), 0 0 50px rgba(0,168,84,0.04);
    animation: shieldPulse 3s ease-in-out infinite;
}

@keyframes shieldPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0,168,84,0.14), 0 0 50px rgba(0,168,84,0.04); }
    50%       { box-shadow: 0 0 30px rgba(0,168,84,0.25), 0 0 70px rgba(0,168,84,0.08); }
}

.icon-wrap .shield-icon {
    width: 36px;
    height: 36px;
    color: var(--neon-green);
    filter: drop-shadow(0 0 4px rgba(0,168,84,0.5));
}

/* ── Card headings ── */
.card h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.card .subtitle {
    font-size: 0.88rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.65;
    max-width: 420px;
    margin-top: -8px;
}

/* ── Input ── */
.form { width: 100%; display: flex; flex-direction: column; gap: 14px; }

.control-group { width: 100%; display: flex; flex-direction: column; text-align: left; gap: 6px; }

.control-group input {
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    padding: 17px 22px;
    text-align: center;
    outline: none;
    transition: all var(--dur-mid) var(--ease-out);
    width: 100%;
    letter-spacing: 0.04em;
}

.control-group input::placeholder { color: var(--text-muted); font-weight: 400; }

.control-group input:focus {
    background: rgba(0,232,122,0.04);
    border-color: var(--neon-green);
    box-shadow: 0 0 0 4px rgba(0,232,122,0.1), 0 0 24px rgba(0,232,122,0.08);
    color: var(--text-primary);
}

.control-group.error input {
    border-color: var(--neon-red);
    box-shadow: 0 0 0 4px rgba(255,77,77,0.1);
}

.control-group .error-text {
    display: none;
    color: var(--neon-red);
    font-size: 0.72rem;
    font-weight: 600;
    padding-left: 4px;
    letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────────────
   BUTTONS — Futuristic
   ───────────────────────────────────────────────────── */

.btn {
    border: none;
    border-radius: var(--r-sm);
    font-size: 0.78rem;
    font-weight: 700;
    font-family: inherit;
    padding: 17px 24px;
    cursor: pointer;
    transition: all var(--dur-mid) var(--ease-out);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep on hover */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transition: left 0.55s var(--ease-out);
}
.btn:hover::before { left: 100%; }

.btn-primary {
    background: linear-gradient(135deg, #00e87a 0%, #00c060 100%);
    color: #020c05;
    font-weight: 800;
    box-shadow: 0 4px 20px rgba(0,232,122,0.35), 0 1px 0 rgba(255,255,255,0.15) inset;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #22ffaa 0%, #00e87a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(0,232,122,0.5), 0 1px 0 rgba(255,255,255,0.2) inset;
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 10px rgba(0,232,122,0.3); }

.btn-outline {
    background: var(--bg-glass);
    border: 1.5px solid var(--border-hover);
    color: var(--text-primary);
    letter-spacing: 0.06em;
    backdrop-filter: blur(10px);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--neon-green);
    color: var(--neon-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,232,122,0.12);
}

.btn-dark {
    background: rgba(255,255,255,0.06);
    border: 1.5px solid var(--border);
    color: var(--text-primary);
    letter-spacing: 0.06em;
    backdrop-filter: blur(10px);
}
.btn-dark:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6060, #c93b32);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 4px 20px rgba(255,77,77,0.3);
}
.btn-danger:hover {
    background: linear-gradient(135deg, #ff8080, #e04040);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255,77,77,0.45);
}

.mt-2 { margin-top: 8px; }

/* ── OR separator ── */
.scanner-alt { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.scanner-alt .separator {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.12em;
    position: relative;
    text-align: center;
}
.scanner-alt .separator::before,
.scanner-alt .separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 22px);
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border));
}
.scanner-alt .separator::before { left: 0; }
.scanner-alt .separator::after  { right: 0; background: linear-gradient(to left, transparent, var(--border)); }

.drawer-toggle {
    background: none;
    border: none;
    color: var(--neon-green);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--dur-fast) ease;
}
.drawer-toggle:hover { color: #5effa0; text-shadow: 0 0 10px rgba(0,232,122,0.5); }

/* ─────────────────────────────────────────────────────
   NETWORK LOADER
   ───────────────────────────────────────────────────── */

.network-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    width: 240px;
}

.network-loader .node {
    background: rgba(0,232,122,0.06);
    border: 2px solid rgba(0,232,122,0.3);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 20px rgba(0,232,122,0.1);
}
.network-loader .node i { width: 22px; height: 22px; color: var(--neon-green); }
.network-loader .node:nth-child(1) { animation: nodePulse 1.6s infinite ease-in-out; }
.network-loader .node:nth-child(3) { animation: nodePulse 1.6s infinite ease-in-out 0.8s; }

@keyframes nodePulse {
    0%, 100% { transform: translateY(0); box-shadow: 0 0 20px rgba(0,232,122,0.1); }
    50%       { transform: translateY(-8px); box-shadow: 0 0 30px rgba(0,232,122,0.3); border-color: var(--neon-green); }
}

.cable {
    position: absolute;
    width: 140px;
    height: 1.5px;
    background: linear-gradient(90deg, rgba(0,232,122,0.4), rgba(0,232,122,0.15));
    z-index: 1;
}

.packet {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 12px var(--neon-green), 0 0 24px rgba(0,232,122,0.5);
    animation: flow 1.4s linear infinite;
    top: -4px;
}

@keyframes flow {
    0%   { left: 0%;   opacity: 0; }
    12%  { opacity: 1; }
    88%  { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.loader h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); }
.loader .loader-status { font-size: 0.82rem !important; color: var(--text-secondary); margin-top: -8px; }

.progress-container {
    background: rgba(255,255,255,0.05);
    border-radius: var(--r-pill);
    height: 4px;
    width: 240px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
    border-radius: var(--r-pill);
    transition: width 0.45s ease;
    box-shadow: 0 0 8px var(--neon-green);
}

.steps {
    text-align: left;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 300px;
    background: rgba(0,232,122,0.03);
    border-radius: var(--r-sm);
    padding: 18px 20px;
    border: 1px solid rgba(0,232,122,0.1);
}

.step { font-size: 0.74rem !important; font-weight: 500; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.step.active { color: var(--neon-green); font-weight: 700; letter-spacing: 0.01em; }
.step.active::before {
    content: '';
    width: 7px;
    height: 7px;
    min-width: 7px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
    animation: flash 1s infinite;
}
.step.complete { color: var(--neon-green); opacity: 0.7; }
.step.complete::before { content: '✓'; font-weight: 800; font-size: 0.8rem; }
.step.pending::before { content: '○'; color: var(--text-muted); }

@keyframes flash {
    0%, 100% { opacity: 0.3; box-shadow: 0 0 4px var(--neon-green); }
    50%       { opacity: 1;   box-shadow: 0 0 14px var(--neon-green); }
}

/* ─────────────────────────────────────────────────────
   RESULT SCREENS
   ───────────────────────────────────────────────────── */

.badge-icon {
    position: relative;
    width: 88px;
    height: 88px;
    margin-bottom: 4px;
}

.badge-icon .pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.4);
    animation: ringGrow 0.9s var(--ease-out) forwards;
}
.badge-icon.success .pulse-ring { background: rgba(0,232,122,0.08); }
.badge-icon.failure .pulse-ring { background: rgba(255,77,77,0.08); }

.badge-icon .core {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: corePop 0.55s var(--ease-spring) forwards;
}

.badge-icon .icon { width: 66px; height: 66px; }
.badge-icon.success .icon { color: var(--neon-green); filter: drop-shadow(0 0 10px rgba(0,232,122,0.7)); }
.badge-icon.failure .icon { color: var(--neon-red);   filter: drop-shadow(0 0 10px rgba(255,77,77,0.7)); }

@keyframes ringGrow {
    from { transform: translate(-50%, -50%) scale(0.4); opacity: 0; }
    to   { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
}
@keyframes corePop {
    from { transform: scale(0.1); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.text-success { color: var(--neon-green) !important; }
.text-danger  { color: var(--neon-red)   !important; }
.text-primary { color: var(--neon-blue)  !important; }

/* ── Specs table ── */
.specs {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 18px 22px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.specs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding-bottom: 11px;
    text-align: left;
}
.specs-row:last-child { border-bottom: none; padding-bottom: 0; }
.specs-row .lbl { color: var(--text-muted); font-weight: 500; font-size: 0.78rem !important; }
.specs-row .val { color: var(--text-primary); font-weight: 600; text-align: right; font-size: 0.82rem !important; }
.specs-row .text-mono { font-family: "SF Mono", "Fira Mono", monospace; letter-spacing: 0.06em; font-weight: 700; color: var(--neon-green); }

/* ── Alert banners ── */
.alert {
    border-radius: var(--r-sm);
    padding: 16px 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-align: left;
    width: 100%;
}
.alert.success {
    background: rgba(0,232,122,0.06);
    border: 1px solid rgba(0,232,122,0.2);
    color: var(--neon-green);
}
.alert.danger {
    background: rgba(255,77,77,0.06);
    border: 1px solid rgba(255,77,77,0.2);
    color: var(--neon-red);
}
.alert .icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.alert p { font-size: 0.78rem !important; line-height: 1.55; font-weight: 500; margin: 0; }

/* ── Action cards ── */
.actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.actions .title {
    font-size: 0.65rem !important;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: left;
    margin-bottom: 2px;
}

.action-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all var(--dur-mid) var(--ease-out);
    text-align: left;
    position: relative;
    overflow: hidden;
}
.action-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(0,232,122,0.03));
    opacity: 0;
    transition: opacity var(--dur-mid) ease;
}
.action-card:hover { border-color: rgba(0,232,122,0.25); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,232,122,0.08); }
.action-card:hover::before { opacity: 1; }
.action-card .icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.action-card .icon-box i { width: 18px; height: 18px; }
.action-card .info { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; }
.action-card .info strong { font-size: 0.84rem; color: var(--text-primary); font-weight: 600; }
.action-card .info span  { font-size: 0.7rem !important; color: var(--text-muted); }
.action-card .chevron { width: 14px; height: 14px; color: var(--text-muted); }

/* ─────────────────────────────────────────────────────
   SECTIONS — Shared structure
   ───────────────────────────────────────────────────── */

.authenticity-section {
    width: 100%;
    max-width: 1180px;
    padding-top: 80px;
    border-top: 1px solid var(--border);
    text-align: left;
    box-sizing: border-box;
    position: relative;
}

/* Glowing section divider line */
.authenticity-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, var(--neon-green), transparent);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--neon-green);
    background: rgba(0,232,122,0.08);
    border: 1px solid rgba(0,232,122,0.2);
    padding: 5px 14px;
    border-radius: var(--r-pill);
    margin-bottom: 18px;
}

.section-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
    animation: flash 2s infinite;
}

.authenticity-title-left {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.18;
    margin-bottom: 18px;
    letter-spacing: -0.03em;
}

.authenticity-desc-text {
    font-size: 1rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 680px;
}

.section-header-flat { margin-bottom: 44px; }

/* ─────────────────────────────────────────────────────
   SECTION 1: DIAGNOSTICS + PHONE MOCKUP
   ───────────────────────────────────────────────────── */

.section-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
    width: 100%;
}

/* ── Segmented tab control ── */
.diagnostic-selector {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 4px;
    width: fit-content;
    backdrop-filter: blur(10px);
}

.diag-btn {
    background: transparent;
    border: none;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-muted);
    cursor: pointer;
    padding: 9px 18px;
    border-radius: 10px;
    transition: all var(--dur-fast) var(--ease-out);
    letter-spacing: 0.02em;
}
.diag-btn:hover { color: var(--text-primary); }
.diag-btn.active {
    background: rgba(0,232,122,0.1);
    color: var(--neon-green);
    border: 1px solid rgba(0,232,122,0.2);
    box-shadow: 0 0 14px rgba(0,232,122,0.1);
}

.diagnostic-descriptions { position: relative; min-height: 180px; }
.diag-desc-content { display: none; animation: viewEnter 0.35s var(--ease-out); }
.diag-desc-content.active { display: block; }

.diag-desc-content h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.diag-desc-content p { font-size: 0.9rem !important; color: var(--text-secondary) !important; line-height: 1.7; margin-bottom: 18px; }

.learn-more-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.86rem !important;
    color: var(--neon-green);
    font-weight: 600;
    transition: all var(--dur-fast) ease;
    letter-spacing: 0.01em;
}
.learn-more-link:hover { color: #5effa0; text-shadow: 0 0 10px rgba(0,232,122,0.4); }
.learn-more-link .icon-inline { width: 14px; height: 14px; }

/* Phone mockup — light aluminum frame */
.phone-mockup {
    width: 248px;
    height: 500px;
    background: #e8e8ed;
    border-radius: 40px;
    padding: 8px;
    box-shadow:
        0 0 0 1.5px rgba(0,0,0,0.12),
        0 0 0 3px rgba(0,0,0,0.05),
        0 28px 80px rgba(0,0,0,0.14),
        0 0 40px rgba(0,168,84,0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0 auto;
    animation: phoneFloat 5s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0) rotate(0.5deg); }
    50%       { transform: translateY(-10px) rotate(-0.5deg); }
}

.phone-notch {
    width: 100px;
    height: 15px;
    background: #e8e8ed;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.phone-screen {
    background: #ffffff;
    border-radius: 34px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ios-status-bar {
    padding: 12px 16px 3px;
    display: flex;
    justify-content: space-between;
    font-size: 0.62rem;
    font-weight: 700;
    color: #1d1d1f;
    user-select: none;
    background: rgba(255,255,255,0.95);
}
.ios-status-icons { display: flex; gap: 4px; align-items: center; }
.ios-status-icons .icon-xs { width: 11px; height: 11px; color: #1d1d1f; }

.ios-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 14px;
    border-bottom: 0.5px solid #d2d2d7;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
}
.ios-nav-bar span { font-size: 0.78rem; }
.nav-back { color: var(--neon-blue); font-weight: 500; display: flex; align-items: center; gap: 2px; }
.nav-back i { width: 12px; height: 12px; }
.nav-title { color: #1d1d1f; font-weight: 700; }
.nav-placeholder { width: 42px; }

.ios-settings-list {
    padding: 12px 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
    background: #f2f2f7;
}

.ios-settings-header {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: rgba(0,168,84,0.7);
    padding-left: 14px;
    margin-bottom: -4px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.ios-settings-group {
    background: #ffffff;
    border-top: 0.5px solid #d2d2d7;
    border-bottom: 0.5px solid #d2d2d7;
    display: flex;
    flex-direction: column;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 14px;
    font-size: 0.75rem;
    color: #1d1d1f;
    border-bottom: 0.5px solid rgba(210,210,215,0.5);
}
.settings-row:last-child { border-bottom: none; }
.settings-row.hidden { display: none !important; }
.settings-lbl { font-weight: 400; color: #3a3a3c; }
.settings-val { color: #86868b; font-size: 0.72rem !important; }
.settings-val.success-text { color: var(--neon-green); font-weight: 600; }

/* ─────────────────────────────────────────────────────
   SECTION 2: STICKER GALLERY
   ───────────────────────────────────────────────────── */

.sticker-gallery { width: 100%; }

.sticker-nav-flat {
    display: flex;
    gap: 4px;
    margin-bottom: 44px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 4px;
    width: fit-content;
    backdrop-filter: blur(10px);
}

.sticker-tab-flat {
    background: transparent;
    border: none;
    font-size: 0.86rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-muted);
    cursor: pointer;
    padding: 9px 20px;
    border-radius: 10px;
    transition: all var(--dur-fast) var(--ease-out);
}
.sticker-tab-flat:hover { color: var(--text-primary); }
.sticker-tab-flat.active {
    background: rgba(0,232,122,0.1);
    color: var(--neon-green);
    border: 1px solid rgba(0,232,122,0.2);
    box-shadow: 0 0 14px rgba(0,232,122,0.1);
}

.sticker-gallery-content { display: none; animation: viewEnter 0.35s var(--ease-out); }
.sticker-gallery-content.active { display: block; }

.sticker-panel {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 56px;
    align-items: center;
}

.sticker-img-wrap {
    background: rgba(255,255,255,0.02);
    border-radius: var(--r-md);
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    aspect-ratio: 1.5;
    transition: all var(--dur-mid) var(--ease-out);
    position: relative;
    overflow: hidden;
}
.sticker-img-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,232,122,0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--dur-mid) ease;
}
.sticker-img-wrap:hover { border-color: rgba(0,232,122,0.25); box-shadow: 0 0 30px rgba(0,232,122,0.08); transform: scale(1.02); }
.sticker-img-wrap:hover::before { opacity: 1; }
.sticker-img-wrap img { max-width: 100%; max-height: 260px; object-fit: contain; position: relative; z-index: 1; }

.sticker-info-text { display: flex; flex-direction: column; gap: 18px; text-align: left; }
.sticker-info-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.015em;
}
.sticker-info-text p { font-size: 0.92rem !important; color: var(--text-secondary) !important; line-height: 1.65; }

.flat-bullets { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.flat-bullets li {
    font-size: 0.84rem !important;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}
.flat-bullets li::before {
    content: "▸";
    color: var(--neon-green);
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.8em;
    filter: drop-shadow(0 0 4px rgba(0,232,122,0.6));
}

/* ─────────────────────────────────────────────────────
   SECTION 3: SUPPORT COVERAGE SPLIT
   ───────────────────────────────────────────────────── */

.coverage-split-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 72px;
    text-align: left;
    align-items: flex-start;
    width: 100%;
}

.coverage-left-headline {
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: sticky;
    top: 84px;
}

.coverage-left-headline h2 {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.coverage-left-headline p { font-size: 0.95rem !important; color: var(--text-secondary) !important; line-height: 1.7; }

.service-note { font-size: 0.84rem !important; font-weight: 500; color: var(--text-muted); }
.service-note a { color: var(--neon-green); font-weight: 700; font-size: inherit !important; }
.service-note a:hover { text-shadow: 0 0 8px rgba(0,232,122,0.5); }

.coverage-right-details { display: flex; flex-direction: column; gap: 0; }

.coverage-topic-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
    transition: all var(--dur-mid) var(--ease-out);
    position: relative;
}
.coverage-topic-block::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--neon-green);
    opacity: 0;
    box-shadow: 0 0 8px var(--neon-green);
    transition: opacity var(--dur-mid) ease;
    border-radius: var(--r-pill);
}
.coverage-topic-block:hover::before { opacity: 1; }
.coverage-topic-block:hover { padding-left: 8px; }
.coverage-topic-block:first-child { padding-top: 0; }
.coverage-topic-block:last-child  { border-bottom: none; padding-bottom: 0; }

.coverage-topic-block h3 { font-size: 1.08rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.01em; }
.coverage-topic-block p  { font-size: 0.9rem !important; color: var(--text-secondary) !important; line-height: 1.65; }

.inline-bullets { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.inline-bullets li { font-size: 0.8rem !important; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.inline-bullets li::before { content: "→"; color: var(--neon-blue); font-weight: bold; }

/* ─────────────────────────────────────────────────────
   SECTION 4: SERIAL GUIDES GRID
   ───────────────────────────────────────────────────── */

.guides-flat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    width: 100%;
}

.guide-item-flat { display: flex; flex-direction: column; gap: 18px; text-align: left; }

.media-container {
    background: rgba(255,255,255,0.02);
    border-radius: var(--r-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    height: 250px;
    padding: 12px;
    transition: all var(--dur-mid) var(--ease-out);
    position: relative;
}
.media-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, rgba(0,232,122,0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--dur-mid) ease;
}
.media-container:hover { border-color: rgba(0,232,122,0.2); box-shadow: 0 0 40px rgba(0,232,122,0.07); }
.media-container:hover::after { opacity: 1; }

.guide-player { max-height: 100%; max-width: 100%; border-radius: 8px; object-fit: cover; position: relative; z-index: 1; }
.guide-gif    { max-height: 100%; max-width: 100%; border-radius: 8px; object-fit: contain; border: 4px solid rgba(0,232,122,0.2); position: relative; z-index: 1; }

.guide-item-flat h4 { font-size: 0.98rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.01em; }
.guide-item-flat p  { font-size: 0.84rem !important; color: var(--text-secondary) !important; line-height: 1.6; }

/* ─────────────────────────────────────────────────────
   SECTION 5: LEGAL TERMS
   ───────────────────────────────────────────────────── */

.legal-section {
    max-width: 1180px;
    width: 100%;
    text-align: left;
    margin-top: 24px;
    padding-top: 60px;
    border-top: 1px solid var(--border);
}

.legal-disclaimer-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.legal-scroller-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 22px 24px;
    max-height: 220px;
    overflow-y: auto;
}
.legal-terms-list { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.legal-terms-list li { font-size: 0.7rem !important; color: var(--text-muted); line-height: 1.55; }
.legal-terms-list a { font-size: inherit !important; color: var(--neon-green); }
.legal-terms-sublist {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 7px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.legal-terms-sublist li { font-size: 0.7rem !important; color: var(--text-muted); }

/* ─────────────────────────────────────────────────────
   DRAWERS
   ───────────────────────────────────────────────────── */

.drawer {
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: rgba(255,255,255,0.02);
    width: 100%;
    margin-top: 10px;
    overflow: hidden;
}
.drawer-header {
    background: rgba(255,255,255,0.03);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.drawer-header h4 { font-size: 0.88rem; color: var(--text-primary); font-weight: 600; }
.drawer-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.step-desc h5 { font-size: 0.8rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.step-desc p  { font-size: 0.75rem !important; color: var(--text-muted); line-height: 1.4; }

/* ─────────────────────────────────────────────────────
   QR SCANNER MODAL
   ───────────────────────────────────────────────────── */

.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(24px) saturate(120%);
    -webkit-backdrop-filter: blur(24px) saturate(120%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.backdrop.hidden { display: none !important; }

.dialog {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    width: 90%;
    max-width: 440px;
    padding: 28px;
    box-shadow: var(--shadow-card);
    animation: slideUp 0.4s var(--ease-out);
    backdrop-filter: blur(28px);
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
}
.dialog-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }

.btn-close {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    cursor: pointer;
    color: var(--text-secondary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--dur-fast) ease;
}
.btn-close:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }

.frame {
    width: 100%;
    aspect-ratio: 1;
    background: #000;
    border-radius: var(--r-md);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,232,122,0.15);
}
#reader-view { width: 100% !important; height: 100% !important; }
#reader-view video { object-fit: cover; }

.viewfinder {
    position: absolute;
    width: 65%;
    height: 65%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.5);
    border-radius: 14px;
}

.laser {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
    box-shadow: 0 0 10px var(--neon-green);
    animation: scanning 2.2s infinite ease-in-out;
}
@keyframes scanning {
    0%, 100% { top: 4%; }
    50%       { top: 94%; }
}

.viewfinder .c { position: absolute; width: 22px; height: 22px; border: 2.5px solid var(--neon-green); filter: drop-shadow(0 0 4px rgba(0,232,122,0.7)); }
.viewfinder .c.tl { top: 0; left: 0; border-right: none; border-bottom: none; border-top-left-radius: 8px; }
.viewfinder .c.tr { top: 0; right: 0; border-left: none; border-bottom: none; border-top-right-radius: 8px; }
.viewfinder .c.bl { bottom: 0; left: 0; border-right: none; border-top: none; border-bottom-left-radius: 8px; }
.viewfinder .c.br { bottom: 0; right: 0; border-left: none; border-top: none; border-bottom-right-radius: 8px; }

.tip { margin-top: 14px; font-size: 0.72rem !important; color: var(--text-muted); text-align: center; line-height: 1.45; }

/* ─────────────────────────────────────────────────────
   MODAL OVERLAYS
   ───────────────────────────────────────────────────── */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(24px) saturate(110%);
    -webkit-backdrop-filter: blur(24px) saturate(110%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-overlay.hidden { display: none !important; }

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    width: 90%;
    max-width: 430px;
    padding: 28px;
    box-shadow: var(--shadow-card);
    animation: slideUp 0.4s var(--ease-out);
    backdrop-filter: blur(28px);
}

@keyframes slideUp {
    from { transform: translateY(32px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.modal-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
    margin-bottom: 20px;
}
.modal-hdr h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }

.modal .close-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    cursor: pointer;
    color: var(--text-secondary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--dur-fast) ease;
}
.modal .close-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
    text-align: left;
}

.status-badge {
    background: rgba(0,232,122,0.06);
    border: 1px solid rgba(0,232,122,0.18);
    border-radius: var(--r-sm);
    padding: 14px 16px;
    display: flex;
    gap: 14px;
    align-items: center;
}
.status-badge h4 { font-size: 0.9rem; color: var(--neon-green); font-weight: 700; }
.status-badge p  { font-size: 0.74rem !important; color: var(--text-muted); }

.icon-lg { width: 28px; height: 28px; }

.channel {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 14px 16px;
    display: flex;
    gap: 14px;
    align-items: center;
    transition: all var(--dur-fast) ease;
}
.channel:hover { border-color: var(--border-hover); box-shadow: 0 0 20px rgba(0,0,0,0.3); }
.channel i { width: 20px; height: 20px; }
.channel div { display: flex; flex-direction: column; gap: 3px; }
.channel strong { font-size: 0.84rem; color: var(--text-primary); font-weight: 700; }
.channel p { font-size: 0.74rem !important; color: var(--text-muted); margin: 0; }

.form-group { display: flex; flex-direction: column; gap: 7px; text-align: left; margin-bottom: 10px; }
.form-group label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.form-group input {
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--r-xs);
    padding: 12px 14px;
    outline: none;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-primary);
    transition: all var(--dur-fast) ease;
}
.form-group input:focus {
    background: rgba(0,232,122,0.04);
    border-color: var(--neon-green);
    box-shadow: 0 0 0 3px rgba(0,232,122,0.1);
}

/* ─────────────────────────────────────────────────────
   FULL-SCREEN MODALS
   ───────────────────────────────────────────────────── */

.apple-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(20px);
    z-index: 999999;
    padding: 20px;
    align-items: center;
    justify-content: center;
}
.apple-modal.active { display: flex; }
.apple-modal-box {
    width: 100%; max-width: 1200px; height: 90vh;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: auto; position: relative; padding: 40px;
    box-shadow: var(--shadow-card);
}
.apple-modal-close {
    position: sticky; top: 0; float: right;
    width: 36px; height: 36px; border: none; border-radius: 50%;
    cursor: pointer; font-size: 18px;
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--dur-fast) ease;
}
.apple-modal-close:hover { background: rgba(255,255,255,0.14); }

.learnmore-modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(20px);
    z-index: 999999; padding: 20px;
    align-items: center; justify-content: center;
}
.learnmore-modal.active { display: flex; }
.learnmore-modal-box {
    width: 100%; max-width: 1200px; height: 90vh;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden; position: relative;
    box-shadow: var(--shadow-card);
}
.learnmore-close {
    position: absolute; top: 14px; right: 14px;
    width: 40px; height: 40px; border: none; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
    cursor: pointer; font-size: 20px; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--dur-fast) ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.learnmore-close:hover { background: rgba(255,255,255,0.14); }
.learnmore-frame { width: 100%; height: 100%; border: none; }

/* ─────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────── */

.footer {
    background: #f5f5f7;
    border-top: 1px solid rgba(0,0,0,0.07);
    padding: 28px 40px;
    text-align: center;
    margin-top: 40px;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,168,84,0.2), transparent);
}
.footer .container { max-width: 1180px; margin: 0 auto; }
.footer p { font-size: 0.72rem !important; color: var(--text-muted); line-height: 1.5; }

/* ─────────────────────────────────────────────────────
   ICON SIZING UTILITIES
   ───────────────────────────────────────────────────── */

.icon-md  { width: 20px; height: 20px; }
.icon-xs  { width: 14px; height: 14px; }
.icon-lg  { width: 28px; height: 28px; }

/* ─────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .section-grid,
    .sticker-panel,
    .coverage-split-layout { grid-template-columns: 1fr; gap: 40px; }
    .coverage-left-headline { position: static; }
    .coverage-left-headline h2 { font-size: 1.8rem; }
    .authenticity-title-left  { font-size: 1.75rem; }
    .phone-mockup { max-width: 220px; height: 450px; }
    .guides-flat-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 768px) {
    .header { padding: 0 20px; }
    .content { padding: 48px 20px 72px; gap: 56px; }
    .verification-grid.has-help { grid-template-columns: 1fr; gap: 28px; }
    .card { padding: 36px 28px; }
    .card h1 { font-size: 1.4rem; }
    .help-box { padding: 28px 24px; }
    .authenticity-section { padding-top: 60px; }
    .authenticity-title-left { font-size: 1.5rem; }
    .sticker-nav-flat, .diagnostic-selector { flex-wrap: wrap; width: 100%; }
    .media-container { height: 200px; }
    .coverage-left-headline h2 { font-size: 1.6rem; }
    .footer { padding: 24px 20px; }
}

@media (max-width: 480px) {
    .header { padding: 0 16px; }
    .brand .logo { height: 34px; }
    .content { padding: 36px 16px 56px; gap: 48px; }
    .card { padding: 28px 20px; }
    .card h1 { font-size: 1.22rem; }
    .coverage-left-headline h2 { font-size: 1.35rem; }
    .sticker-tab-flat, .diag-btn { font-size: 0.78rem; padding: 7px 12px; }
    .phone-mockup { max-width: 200px; height: 410px; }
}

/* ─────────────────────────────────────────────────────
   GLOBAL CONTRAST & TYPOGRAPHY FIXES
   ───────────────────────────────────────────────────── */

/* Force readable dark text on all input fields (including passwords) */
input[type="password"],
input[type="text"],
input[type="email"],
input[type="search"],
select,
textarea {
    color: #0f172a !important;
    background-color: #ffffff !important;
    caret-color: #0f172a !important;
}

/* Chrome/Safari autofill override */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-text-fill-color: #0f172a !important;
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Table typography standardizing to text-sm */
table {
    font-size: 0.875rem !important; /* 14px text-sm */
    line-height: 1.25rem !important;
}

table th {
    font-size: 0.75rem !important; /* 12px uppercase header */
    font-weight: 700 !important;
}

table td {
    font-size: 0.875rem !important; /* 14px text-sm body */
}

