/* ============================================
   LIVENESS BIOMETRIC UI — Premium Dark Theme
   Font: Outfit | Palette: Neon Green + Deep Black
   Geometry: Sharp edges (0-2px radius)
   ============================================ */

:root {
    --bg-deep: #f5f5f7;
    --bg-surface: #ffffff;
    --bg-elevated: #f0f0f2;
    --bg-hover: #e8e8ec;
    
    --accent: #032c35;
    --accent-dim: rgba(3, 44, 53, 0.08);
    --accent-glow: rgba(3, 44, 53, 0.25);
    
    --danger: #d93025;
    --danger-dim: rgba(217, 48, 37, 0.08);
    
    --text-primary: #1a1a1a;
    --text-secondary: #6b6b6b;
    --text-muted: #9e9e9e;
    
    --border: #e0e0e0;
    --border-hover: #c8c8c8;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --font: 'Poppins', 'Outfit', system-ui, -apple-system, sans-serif;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
    font-family: var(--font);
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
}

/* Noise overlay */
.noise-overlay {
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

/* ── App Container ── */
.app-container {
    position: relative; z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── Header ── */
.app-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-mark {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid #032c3556;
    border-radius: var(--radius-sm);
}

.app-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.app-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 2px;
}

/* ── Stepper ── */
.stepper {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 4px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.step-number {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: var(--transition);
}

.step-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.step-active .step-number {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}
.step-active .step-label { color: var(--text-primary); }

.step-done .step-number {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg-deep);
}
.step-done .step-label { color: var(--text-secondary); }

.step-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    margin: 0 8px;
    transition: var(--transition);
}
.line-active { background: var(--accent); }

/* ── Card ── */
.card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
}

.card-icon {
    color: var(--accent);
    opacity: 0.8;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 320px;
}

/* ── Upload Zone ── */
.upload-zone {
    width: 100%;
    min-height: 160px;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.upload-zone:hover, .upload-zone-hover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.upload-zone-filled {
    border-style: solid;
    border-color: var(--accent);
}

.upload-zone-disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
    border-color: var(--border);
    background: transparent;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
}

.upload-icon-ring {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--spring);
}

.upload-zone:hover .upload-icon-ring {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.upload-text { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.upload-hint { font-size: 12px; color: var(--text-muted); }

.upload-preview { width: 100%; position: relative; }
.upload-preview img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.upload-preview-badge {
    position: absolute;
    bottom: 8px; left: 8px;
    background: var(--accent);
    color: var(--bg-deep);
    font-size: 11px; font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; gap: 4px;
}

/* ── Buttons ── */
.btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: var(--accent);
    color: var(--bg-deep);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--spring);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
    filter: brightness(1.1);
}

.btn-primary:active { transform: translateY(0); filter: brightness(0.95); }

.btn-secondary {
    width: 100%; padding: 14px 24px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 14px; font-weight: 600;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--spring);
}
.btn-secondary:hover {
    border-color: var(--text-secondary);
    transform: translateY(-1px);
}

/* ── Camera ── */
.card-camera { padding: 20px; gap: 12px; }

.camera-header {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.camera-status {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-scanning { color: var(--accent); border-color: var(--accent); }
.status-scanning .status-dot { background: var(--accent); animation: pulse-dot 1.5s infinite; }

.status-success { color: var(--accent); border-color: var(--accent); }
.status-success .status-dot { background: var(--accent); }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.instruction-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    min-height: 24px;
}

.instruction-pulse { animation: text-pulse 2s infinite; color: var(--text-secondary); }
@keyframes text-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.camera-viewport {
    width: 100%;
    aspect-ratio: 3/4;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #000;
}

.camera-viewport video {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    min-width: 100%; min-height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%) scaleX(-1);
    z-index: 1;
}

.camera-viewport canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: 2;
}

/* Corner marks */
.corner-marks { position: absolute; inset: 0; z-index: 5; pointer-events: none; }

.corner {
    position: absolute;
    width: 24px; height: 24px;
    border-color: var(--accent);
    border-style: solid;
}
.corner.tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.corner.tr { top: 12px; right: 12px; border-width: 2px 2px 0 0; }
.corner.bl { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; }
.corner.br { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }

/* Oval mask and border */
.oval-mask {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.55);
    mask-image: radial-gradient(ellipse 38% 32% at 50% 45%, transparent 99%, black 100%);
    -webkit-mask-image: radial-gradient(ellipse 38% 32% at 50% 45%, transparent 99%, black 100%);
    z-index: 3;
    pointer-events: none;
    backdrop-filter: blur(2px);
}

.oval-border {
    position: absolute;
    top: 45%; left: 50%;
    transform: translate(-50%, -50%);
    width: 76%; height: 64%;
    border: 6px solid rgba(3, 44, 53, 0.25);
    border-radius: 50%;
    z-index: 4;
    pointer-events: none;
    transition: var(--transition);
}

.oval-scanning {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(3, 44, 53, 0.2);
    animation: scan-pulse 2s infinite;
}

.oval-success {
    border-color: #10b981; /* Green */
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
}

@keyframes scan-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(3, 44, 53, 0.15); }
    50% { box-shadow: 0 0 25px rgba(3, 44, 53, 0.35); }
}

.camera-instruction-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 8px 32px rgba(3, 44, 53, 0.08);
    z-index: 5;
    pointer-events: none;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

/* Progress */
.progress-track {
    width: 100%;
    height: 3px;
    background: var(--bg-elevated);
    border-radius: 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-glow {
    position: absolute;
    right: 0; top: -2px;
    width: 40px; height: 7px;
    background: var(--accent-glow);
    filter: blur(4px);
}

.progress-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    align-self: flex-end;
}

/* ── Loading ── */
.card-loading { padding: 48px 24px; gap: 20px; }

.loader-container {
    position: relative;
    width: 80px; height: 80px;
    min-width: 80px; min-height: 80px;
    display: flex; align-items: center; justify-content: center;
}

.loader-ring {
    position: absolute;
    top: 0; left: 0;
    width: 80px; height: 80px;
    border: 3px solid rgba(3, 44, 53, 0.1);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    box-sizing: border-box;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.loader-ring-2 {
    position: absolute;
    top: 8px; left: 8px;
    width: 64px; height: 64px;
    border: 3px solid transparent;
    border-right: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1.8s cubic-bezier(0.5, 0, 0.5, 1) infinite reverse;
    box-sizing: border-box;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.loader-icon { color: var(--accent); opacity: 0.6; }

@keyframes spin { to { transform: rotate(360deg); } }

.skeleton-bars {
    width: 100%;
    display: flex; flex-direction: column; gap: 8px;
    margin-top: 8px;
}

.skeleton-bar {
    height: 8px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-bar-short { width: 60%; }

@keyframes skeleton-shimmer {
    0% { opacity: 0.4; }
    50% { opacity: 0.8; }
    100% { opacity: 0.4; }
}

/* ── Result ── */
.result-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.result-icon-ring {
    width: 72px; height: 72px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    animation: result-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes result-pop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-ring {
    background: var(--accent-dim);
    border: 1.5px solid var(--accent);
    color: var(--accent);
}

.failure-ring {
    background: var(--danger-dim);
    border: 1.5px solid var(--danger);
    color: var(--danger);
}

.result-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }

.result-success .result-title { color: var(--accent); }
.result-failure .result-title { color: var(--danger); }

.result-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 300px;
}

.result-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.score-label { font-size: 13px; color: var(--text-secondary); }
.score-value { font-size: 1.1rem; font-weight: 700; color: var(--accent); }

/* ── Footer ── */
.app-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    padding: 8px 0;
}

/* ── Vue Transitions ── */
.fade-slide-enter-active {
    animation: fadeSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fade-slide-leave-active {
    animation: fadeSlideOut 0.2s ease-in;
}

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

@keyframes fadeSlideOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-8px); }
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .app-container { padding: 16px 12px; gap: 16px; }
    .card { padding: 24px 16px; }
    .step-label { display: none; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Validation Feedback ── */
.document-error-banner {
    display: flex;
    align-items: center;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    margin-top: 15px;
    width: 100%;
    box-sizing: border-box;
    animation: fadeSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.loader-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin-loader 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin-loader {
    to { transform: rotate(360deg); }
}

/* ── Result View Details (OCR & Images) ── */
.result-card-expanded {
    max-width: 760px;
    width: 95%;
    transition: max-width 0.4s var(--spring);
}

.result-details-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 25px;
    margin-top: 25px;
    width: 100%;
    border-top: 1px solid var(--border);
    padding-top: 25px;
    box-sizing: border-box;
}

@media (max-width: 680px) {
    .result-details-grid {
        grid-template-columns: 1fr;
    }
}

.comparison-images {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.image-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    box-sizing: border-box;
}

.image-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.preview-img {
    width: 100%;
    max-height: 160px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: #0d0d0d;
}

.extracted-data-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: left;
    box-sizing: border-box;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.data-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.data-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.data-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    word-break: break-word;
}

/* ── Container Expansion for Result Grid ── */
.app-container-expanded {
    max-width: 780px !important;
}

/* ── Camera Error Handling ── */
.camera-error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 20px;
    gap: 12px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    animation: fadeSlideIn 0.3s var(--spring);
}

.camera-error-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--danger-dim);
    color: var(--danger);
    border-radius: 50%;
    border: 1.5px solid var(--danger);
    margin-bottom: 8px;
    animation: result-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.camera-error-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.camera-error-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 320px;
}

/* ── S3 Key badge ── */
.s3-key-code {
    font-family: 'Courier New', Courier, monospace;
    background: var(--bg-hover) !important;
    border: 1px solid var(--border);
    color: var(--accent);
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    word-break: break-all;
    user-select: all;
    display: block;
    margin-top: 2px;
    text-align: left;
}

/* ── Secondary Button ── */
.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

/* ── QR Code Fallback ── */
.qr-code-section {
    margin-top: 15px;
    margin-bottom: 10px;
    padding: 16px;
    background: var(--bg-hover) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.qr-code-hint {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: center;
    max-width: 290px;
    margin: 0;
}

.qr-code-wrapper {
    background: #ffffff;
    padding: 12px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    transition: transform 0.2s var(--spring);
}

.qr-code-wrapper:hover {
    transform: scale(1.03);
}

.qr-code-wrapper img {
    width: 140px;
    height: 140px;
    display: block;
}

/* ── Cross-Device: Desktop Waiting ── */
.cross-device-waiting {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding: 8px 0;
}

.waiting-pulse-container {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.waiting-pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--accent, #032c35);
    opacity: 0;
    animation: waitingPulse 2.4s ease-out infinite;
}

.waiting-pulse-ring-2 {
    animation-delay: 1.2s;
}

@keyframes waitingPulse {
    0% {
        transform: scale(0.5);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.waiting-icon {
    position: relative;
    z-index: 1;
    color: var(--accent, #032c35);
    animation: waitingBounce 2s ease-in-out infinite;
}

@keyframes waitingBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.waiting-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.waiting-description {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 320px;
    margin: 0;
}

/* Copy Link Button */
.btn-copy-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    color: var(--accent, #032c35);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-link:hover {
    background: var(--bg-hover);
    border-color: var(--accent, #032c35);
}

/* Creating session spinner */
.cross-device-creating {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
}

/* ── Cross-Device: Mobile Success Screen ── */
.cross-device-success-container {
    text-align: center;
    padding: 20px 0;
}

.cross-device-return-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    padding: 14px 18px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md, 12px);
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.cross-device-return-hint svg {
    flex-shrink: 0;
    color: var(--success, #10b981);
}

/* ==========================================================================
   SDK / IFRAME ADAPTIVE STYLES
   ========================================================================== */
body.sdk-mode {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.sdk-mode .noise-overlay {
    display: none !important;
}

.app-container-sdk {
    margin: 0 auto;
    width: 480px;
    max-width: 480px;
}

@media (max-width: 768px) {
    .app-container-sdk {
        width: 100vw;
        max-width: 390px;
    }
    
    /* Loader de processamento suavizado e desacelerado para mobile */
    .loader-ring {
        animation: spin 2.4s linear infinite !important;
    }
    .loader-ring-2 {
        animation: spin 3.6s linear infinite reverse !important;
    }
    
    /* Loader de spinner suavizado para mobile */
    .loader-spinner {
        animation: spin-loader 1.6s linear infinite !important;
    }
    
    /* Efeito de piscada de câmera (status-dot) suavizado para mobile */
    .status-scanning .status-dot {
        animation: pulse-dot-mobile 1.8s ease-in-out infinite !important;
    }
}

@keyframes pulse-dot-mobile {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}



