/**
 * DocVerify Verifier — Responsive Browser Styles
 * Dark premium theme optimized for mobile scanning
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-glow: rgba(59, 130, 246, 0.4);
    --cyan: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.3);
    --emerald: #10b981;
    --blue: #3b82f6;
    --blue-glow: rgba(59, 130, 246, 0.3);
    --rose: #f43f5e;
    --amber: #f59e0b;
    --dark-bg: #020617;
    --dark-card: #0f172a;
    --dark-surface: #1e293b;
    --dark-border: rgba(255,255,255,0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--cyan); }

/* ========== HEADER ========== */
.v-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--dark-border);
    padding: 0.75rem 1rem;
    padding-top: calc(0.75rem + var(--safe-top));
}
.v-header-inner {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.v-header-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}
.v-header-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    letter-spacing: 0.02em;
}
.v-header-actions { display: flex; gap: 0.5rem; align-items: center; }
.v-install-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary), #2563eb);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 12px var(--primary-glow);
    white-space: nowrap;
}
.v-install-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px var(--primary-glow); }
.v-install-btn:active { transform: scale(0.96); }
.v-install-btn svg { flex-shrink: 0; }
.v-header-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--dark-border);
    background: var(--dark-card);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.v-header-btn:hover { background: var(--dark-surface); color: var(--text-primary); }

/* ========== MAIN CONTAINER ========== */
.v-main {
    max-width: 480px;
    margin: 0 auto;
    padding: 1rem;
    padding-bottom: calc(1rem + var(--safe-bottom));
}

/* ========== TAB SWITCHER ========== */
.v-tabs {
    display: flex;
    background: var(--dark-card);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--dark-border);
}
.v-tab {
    flex: 1;
    padding: 0.6rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    background: transparent;
    display: flex; align-items: center; justify-content: center; gap: 0.35rem;
}
.v-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 12px var(--primary-glow);
}
.v-tab:not(.active):hover { color: var(--text-secondary); background: rgba(255,255,255,0.03); }
.v-tab-icon { font-size: 1rem; }

/* ========== TAB PANELS ========== */
.v-panel { display: none; }
.v-panel.active { display: block; }

/* ========== SCAN PANEL ========== */
.scan-hero {
    text-align: center;
    padding: 2rem 0 1.5rem;
}
.scan-hero-icon {
    width: 80px; height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 32px var(--primary-glow);
    animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 8px 32px var(--primary-glow); }
    50% { box-shadow: 0 8px 48px var(--primary-glow), 0 0 80px var(--cyan-glow); }
}
.scan-hero h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}
.scan-hero p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.scan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary), #2563eb);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 24px var(--primary-glow);
    margin-bottom: 1rem;
}
.scan-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 32px var(--primary-glow); }
.scan-btn:active { transform: scale(0.98); }
.scan-btn-icon { font-size: 1.3rem; }

.scan-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.scan-divider::before, .scan-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--dark-border);
}

.token-form {
    display: flex;
    gap: 0.5rem;
}
.token-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    background: var(--dark-card);
    color: var(--text-primary);
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s;
}
.token-input:focus { border-color: var(--primary); }
.token-input::placeholder { color: var(--text-muted); font-family: var(--font-sans); }
.token-submit {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.token-submit:hover { background: var(--primary); border-color: var(--primary); }

/* ========== CAMERA VIEWPORT ========== */
.camera-container {
    display: none;
    margin-bottom: 1rem;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 32px var(--primary-glow);
    position: relative;
}
.camera-container.active { display: block; }
.camera-video {
    width: 100%;
    display: block;
    background: #000;
}
.camera-scan-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.camera-scan-frame {
    width: 220px;
    height: 220px;
    border: 3px solid rgba(59, 130, 246, 0.6);
    border-radius: 16px;
    position: relative;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
}
.camera-scan-frame::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--primary);
    animation: scan-line 2s ease-in-out infinite;
    box-shadow: 0 0 12px var(--primary);
}
@keyframes scan-line {
    0% { top: 0; }
    50% { top: calc(100% - 2px); }
    100% { top: 0; }
}
.camera-corners::before, .camera-corners::after,
.camera-scan-frame::after {
    content: '';
    position: absolute;
    width: 24px; height: 24px;
    border-color: var(--primary);
    border-style: solid;
    border-width: 0;
}
.camera-scan-frame::after {
    top: -1px; left: -1px;
    border-top-width: 3px; border-left-width: 3px;
    border-radius: 16px 0 0 0;
}
.camera-status {
    position: absolute;
    bottom: 12px; left: 12px; right: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.camera-status-dot {
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: blink 1s infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.camera-close-btn {
    position: absolute;
    top: 12px; right: 12px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

/* ========== RESULT CARD ========== */
.result-card {
    display: none;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
    animation: slideUp 0.4s ease;
}
.result-card.active { display: block; }

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

.result-status {
    padding: 1.25rem;
    text-align: center;
}
.result-status.authentic { background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(6,182,212,0.1)); border-bottom: 1px solid rgba(16,185,129,0.2); }
.result-status.revoked { background: linear-gradient(135deg, rgba(244,63,94,0.15), rgba(244,63,94,0.05)); border-bottom: 1px solid rgba(244,63,94,0.2); }
.result-status.expired { background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.05)); border-bottom: 1px solid rgba(245,158,11,0.2); }
.result-status.not_found { background: linear-gradient(135deg, rgba(100,116,139,0.15), rgba(100,116,139,0.05)); border-bottom: 1px solid rgba(100,116,139,0.2); }

.result-icon { font-size: 2.5rem; margin-bottom: 0.4rem; }
.result-label {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.result-label.authentic { color: var(--primary); }
.result-label.revoked { color: var(--rose); }
.result-label.expired { color: var(--amber); }
.result-label.not_found { color: var(--text-muted); }
.result-sublabel { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.25rem; }
.result-scan-num {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ========== DOC INFO ========== */
.doc-info { padding: 1rem 1.25rem; }
.doc-info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--dark-border);
    font-size: 0.8rem;
}
.doc-info-row:last-child { border-bottom: none; }
.doc-info-label { color: var(--text-muted); font-weight: 500; }
.doc-info-value { color: var(--text-primary); font-weight: 600; text-align: right; max-width: 55%; word-break: break-word; }

/* ========== FIELDS LIST ========== */
.fields-section { padding: 0 1.25rem 1.25rem; }
.fields-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}
.field-item {
    background: var(--dark-surface);
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--dark-border);
}
.field-item.critical { border-color: rgba(244,63,94,0.3); }
.field-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}
.field-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}
.field-critical-badge {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.35rem;
    background: var(--rose);
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    border-radius: 4px;
    vertical-align: middle;
}

/* ========== COMPARE INPUT ========== */
.field-compare {
    margin-top: 0.5rem;
}
.field-compare-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    background: var(--dark-bg);
    color: var(--text-primary);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}
.field-compare-input:focus { border-color: var(--primary); }
.field-compare-input::placeholder { color: var(--text-muted); }
.field-compare-result {
    display: inline-block;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    font-weight: 700;
}
.field-compare-result.match { color: var(--primary); }
.field-compare-result.mismatch { color: var(--rose); }

.compare-actions {
    padding: 0 1.25rem 1.25rem;
}
.compare-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.compare-btn:hover { background: var(--primary-dark); }

.compare-verdict {
    margin: 0.75rem 1.25rem 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    display: none;
}
.compare-verdict.active { display: block; }
.compare-verdict.match { background: rgba(16,185,129,0.1); color: var(--primary); border: 1px solid rgba(16,185,129,0.2); }
.compare-verdict.mismatch { background: rgba(244,63,94,0.1); color: var(--rose); border: 1px solid rgba(244,63,94,0.2); }

/* ========== FOUNTAIN CTA ========== */
.fountain-cta-card {
    background: linear-gradient(135deg, var(--dark-card), var(--dark-surface));
    border: 1px solid var(--dark-border);
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.fountain-cta-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.fountain-cta-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.fountain-cta-text h3 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}
.fountain-cta-text p {
    font-size: 0.7rem;
    color: var(--text-secondary);
}
.fountain-cta-btn {
    margin-left: auto;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    background: var(--blue);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.fountain-cta-btn:hover { background: #2563eb; }

/* ========== GPS BADGE ========== */
.gps-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--blue);
    margin-top: 0.4rem;
}
.gps-badge.active { background: rgba(59,130,246,0.15); border-color: rgba(59,130,246,0.3); color: var(--primary); }

/* ========== HISTORY PANEL ========== */
.history-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}
.history-empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.5; }
.history-empty p { font-size: 0.85rem; }

.history-list { display: flex; flex-direction: column; gap: 0.5rem; }
.history-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.history-item:hover { border-color: var(--primary); background: rgba(16,185,129,0.03); }
.history-item-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.history-item-icon.authentic { background: rgba(16,185,129,0.1); }
.history-item-icon.revoked { background: rgba(244,63,94,0.1); }
.history-item-icon.expired { background: rgba(245,158,11,0.1); }
.history-item-icon.not_found { background: rgba(100,116,139,0.1); }
.history-item-info { flex: 1; min-width: 0; }
.history-item-title {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.history-item-meta {
    font-size: 0.65rem;
    color: var(--text-muted);
}
.history-item-status {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}
.history-item-status.authentic { background: rgba(16,185,129,0.1); color: var(--primary); }
.history-item-status.revoked { background: rgba(244,63,94,0.1); color: var(--rose); }
.history-item-status.expired { background: rgba(245,158,11,0.1); color: var(--amber); }
.history-item-status.not_found { background: rgba(100,116,139,0.1); color: var(--text-muted); }

.history-clear-btn {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.history-clear-btn:hover { color: var(--rose); border-color: rgba(244,63,94,0.3); }

/* ========== INSTALL BANNER ========== */
.install-banner {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    background: var(--dark-card);
    border-top: 1px solid var(--dark-border);
    padding: 1rem;
    padding-bottom: calc(1rem + var(--safe-bottom));
    animation: slideUp 0.4s ease;
}
.install-banner.active { display: block; }
.install-banner-inner {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.install-banner-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.install-banner-text { flex: 1; }
.install-banner-text h4 { font-size: 0.85rem; font-weight: 700; }
.install-banner-text p { font-size: 0.7rem; color: var(--text-secondary); }
.install-banner-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
}
.install-banner-dismiss {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* ========== UPDATE BANNER ========== */
.update-banner {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 250;
    background: linear-gradient(135deg, #1d4ed8, #0891b2);
    padding: 0.75rem 1rem;
    animation: slideDown 0.4s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.update-banner.active { display: block; }
.update-banner-inner {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.update-banner-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    animation: spin 2s linear infinite;
}
.update-banner-text { flex: 1; }
.update-banner-text strong { font-size: 0.8rem; font-weight: 700; color: white; display: block; }
.update-banner-text span { font-size: 0.7rem; color: rgba(255,255,255,0.8); }
.update-banner-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1d4ed8;
    background: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s;
}
.update-banner-btn:hover { transform: scale(1.05); }
.update-banner-dismiss {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 0.7rem;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-weight: 600;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== INFO PAGE ========== */
.info-section {
    margin-bottom: 1.5rem;
}
.info-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.info-section p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.info-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 1rem;
}
.info-card + .info-card { margin-top: 0.5rem; }
.info-card h4 {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    display: flex; align-items: center; gap: 0.4rem;
}
.info-card p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ========== LOADING ========== */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.spinner {
    width: 24px; height: 24px;
    border: 2px solid var(--dark-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== RECEIVING PROGRESS (Fountain) ========== */
.receive-progress {
    display: none;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    animation: slideUp 0.4s ease;
}
.receive-progress.active { display: block; }
.receive-progress-header {
    text-align: center;
    margin-bottom: 1rem;
}
.receive-progress-header h3 { font-size: 1rem; font-weight: 700; }
.receive-progress-header p { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.2rem; }
.progress-bar-track {
    height: 8px;
    background: var(--dark-surface);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}
.progress-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    text-align: center;
}
.progress-stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}
.progress-stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

/* ========== ALERTS ========== */
.v-alert {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.75rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}
.v-alert-info { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2); color: var(--blue); }
.v-alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); color: var(--primary); }
.v-alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.2); color: var(--amber); }
.v-alert-danger { background: rgba(244,63,94,0.1); border: 1px solid rgba(244,63,94,0.2); color: var(--rose); }
.v-alert strong { font-weight: 700; }

/* ========== FOUNTAIN RECEIVE RESULT ========== */
.receive-result {
    display: none;
    background: var(--dark-card);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
    animation: slideUp 0.4s ease;
}
.receive-result.active { display: block; }

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
    .v-main { padding: 0.75rem; }
    .scan-hero h2 { font-size: 1.2rem; }
    .camera-scan-frame { width: 180px; height: 180px; }
}

/* ========== RESPONSIVE BROWSER OVERRIDES ========== */
