:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #ccfbf1;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #0f172a;
    --text-light: #475569;
    --muted: #94a3b8;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.08);
    --radius: 12px;
    --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
}

.logo i { color: var(--primary); font-size: 1.5rem; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

.nav-user {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 500;
}

.nav-admin {
    color: var(--primary) !important;
    font-weight: 600 !important;
}

.nav-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-btn.outline {
    color: var(--text);
    border: 1.5px solid var(--border);
}

.nav-btn.outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.nav-btn.solid {
    background: var(--primary);
    color: white;
    border: 1.5px solid var(--primary);
}

.nav-btn.solid:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Hero */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 40%, #14b8a6 100%);
    padding: 140px 0 100px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-text .highlight {
    color: #fde047;
    position: relative;
}

.hero-text p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    max-width: 480px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

.btn-primary {
    background: var(--accent);
    color: #1a1a1a;
    box-shadow: 0 4px 14px rgba(245,158,11,0.35);
}

.btn-primary:hover {
    background: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,158,11,0.45);
}

.btn-white {
    background: white;
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-white:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-light);
}

.btn-secondary:hover { background: #e2e8f0; }

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 14px rgba(16,185,129,0.3);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: white;
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-block { width: 100%; }

.trust-badges {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.badge-item i { color: #fde047; }

/* Phone Mockup */
.phone-mockup {
    display: flex;
    justify-content: center;
    transform: rotate(-3deg);
}

.phone-screen {
    width: 260px;
    min-height: 460px;
    background: #0f172a;
    border-radius: 32px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
    border: 6px solid #1e293b;
    overflow: hidden;
}

.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px 8px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    background: #0f172a;
}

.phone-body {
    background: #064e3b;
    border-radius: 22px;
    padding: 12px;
    position: relative;
}

.scan-box {
    position: relative;
    background: #dcfce7;
    border-radius: 16px;
    padding: 48px 16px;
    text-align: center;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(34,197,94,0.15);
}

/* Scanner corner brackets */
.scan-box::before,
.scan-box::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: #16a34a;
    border-style: solid;
    pointer-events: none;
}

.scan-box::before {
    top: 12px;
    left: 12px;
    border-width: 3px 0 0 3px;
    border-top-left-radius: 8px;
}

.scan-box::after {
    top: 12px;
    right: 12px;
    border-width: 3px 3px 0 0;
    border-top-right-radius: 8px;
}

.scan-box .scan-brackets-bottom::before,
.scan-box .scan-brackets-bottom::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: #16a34a;
    border-style: solid;
    pointer-events: none;
}

.scan-box .scan-brackets-bottom::before {
    bottom: 12px;
    left: 12px;
    border-width: 0 0 3px 3px;
    border-bottom-left-radius: 8px;
}

.scan-box .scan-brackets-bottom::after {
    bottom: 12px;
    right: 12px;
    border-width: 0 3px 3px 0;
    border-bottom-right-radius: 8px;
}

/* Animated scanning laser line */
.scan-box .scan-line {
    position: absolute;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #22c55e, transparent);
    box-shadow: 0 0 8px rgba(34,197,94,0.6);
    animation: scanMove 2s ease-in-out infinite;
    top: 20%;
}

@keyframes scanMove {
    0%, 100% { top: 20%; opacity: 0.6; }
    50% { top: 80%; opacity: 1; }
}

.scan-box i {
    font-size: 2.2rem;
    color: #15803d;
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.scan-box p {
    color: #166534;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
}

.book-preview {
    display: flex;
    gap: 12px;
    background: rgba(255,255,255,0.95);
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.book-thumb {
    width: 44px;
    height: 66px;
    background: linear-gradient(135deg, #86efac, #4ade80);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.book-info { flex: 1; }

.book-title {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 2px;
    color: #0f172a;
}

.book-author {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 4px;
}

.book-price {
    font-size: 1rem;
    font-weight: 800;
    color: #16a34a;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: white;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step {
    text-align: center;
    padding: 24px;
}

.step-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 24px;
    margin-bottom: 24px;
    box-shadow: 0 12px 24px rgba(13,148,136,0.25);
}

.step-icon i {
    font-size: 1.8rem;
    color: white;
}

.step-num {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: #1a1a1a;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(245,158,11,0.4);
}

.step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.step p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Scanner Section */
.scanner-section {
    padding: 80px 0;
    background: var(--bg);
}

.scanner-box {
    max-width: 700px;
    margin: 0 auto 40px;
}

.scanner-inputs {
    display: flex;
    gap: 12px;
    background: white;
    padding: 8px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
}

.input-wrap i {
    color: var(--muted);
    font-size: 1.1rem;
}

.input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    padding: 12px 0;
    background: transparent;
}

#reader {
    margin-top: 20px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Book Result */
.book-result {
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeUp 0.4s ease;
}

.result-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 32px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.result-cover img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.result-meta h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.result-meta p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.result-meta .details {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.condition-row {
    margin-bottom: 20px;
}

.condition-row label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.condition-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cond-btn {
    padding: 8px 16px;
    border: 1.5px solid var(--border);
    background: white;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.cond-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cond-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(13,148,136,0.3);
}

.offer-box {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid var(--success);
    border-radius: var(--radius);
    padding: 20px 24px;
    text-align: center;
    margin-bottom: 20px;
}

.offer-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #059669;
    margin-bottom: 4px;
}

.offer-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #047857;
    letter-spacing: -0.02em;
}

/* Cart Panel */
.cart-panel {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: #fafafa;
}

.cart-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-header h3 i { color: var(--primary); }

.cart-badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.cart-items {
    max-height: 320px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.cart-item:hover { background: #fafafa; }

.cart-item:last-child { border-bottom: none; }

.cart-item img {
    width: 48px;
    height: 72px;
    object-fit: cover;
    border-radius: 4px;
    background: #e2e8f0;
}

.cart-item-info { flex: 1; }

.cart-item-info .title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.cart-item-info .meta {
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: capitalize;
}

.cart-item .price {
    font-weight: 700;
    color: var(--success);
    font-size: 1.1rem;
    margin-right: 12px;
}

.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    background: #fafafa;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.cart-total-row strong {
    font-size: 1.4rem;
    color: var(--text);
}

/* Features */
.features {
    padding: 80px 0;
    background: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg);
    transition: all 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 16px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: fadeUp 0.3s ease;
    z-index: 2;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg);
    color: var(--text);
}

.modal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-subtitle {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.modal-form .form-group {
    margin-bottom: 16px;
}

.modal-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
}

.modal-form input,
.modal-form textarea,
.modal-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    background: white;
}

.modal-form input:focus,
.modal-form textarea:focus,
.modal-form select:focus {
    border-color: var(--primary);
}

.modal-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg);
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0 12px;
}

.modal-total strong {
    font-size: 1.3rem;
    color: var(--text);
}

.modal-note {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 16px;
    text-align: center;
}

/* Footer */
.site-footer {
    background: var(--text);
    color: white;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 260px;
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    color: #e2e8f0;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    padding: 6px 0;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid #334155;
    padding: 24px 0;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3000;
    pointer-events: none;
    box-shadow: var(--shadow-lg);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-text p { margin: 0 auto 32px; }
    .hero-buttons { justify-content: center; }
    .trust-badges { justify-content: center; }
    .hero-visual { display: none; }
    .steps { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .hero { padding: 120px 0 60px; }
    .hero-text h1 { font-size: 2rem; }
    .nav-links a:not(.nav-btn) { display: none; }
    .feature-grid { grid-template-columns: 1fr; }
    .result-card { grid-template-columns: 1fr; text-align: center; }
    .result-cover { max-width: 160px; margin: 0 auto; }
    .condition-options { justify-content: center; }
    .scanner-inputs { flex-direction: column; }
    .input-wrap { padding: 8px 16px; }
    .footer-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 24px; margin: 16px; }
}

/* Real barcode scanner inside phone mockup */
.phone-screen {
    position: relative;
}

.phone-screen .phone-body {
    transition: opacity 0.3s ease;
}

.phone-screen.scanning .phone-body {
    opacity: 0;
    pointer-events: none;
}

.phone-screen.scanning {
    min-height: 460px;
}

.phone-screen #reader {
    position: absolute !important;
    top: 28% !important;
    left: 10% !important;
    width: 80% !important;
    height: 28% !important;
    border: none !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-top: 0 !important;
    box-shadow: none !important;
    z-index: 1 !important;
}

/* Hide html5-qrcode library's injected UI (dark shading overlay, white corner bars, scan region graphics) */
#qr-shaded-region,
#reader__scan_region,
#reader > *:not(video) {
    display: none !important;
}

.phone-screen #reader video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 12px !important;
}

.phone-screen #reader canvas {
    display: none !important;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.phone-screen.scanning .scanner-overlay {
    opacity: 1;
}

.scanner-target {
    position: absolute;
    top: 28%;
    left: 10%;
    right: 10%;
    height: 28%;
    pointer-events: none;
}

.corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: rgba(255,255,255,0.95);
    border-style: solid;
}

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

.scanner-overlay .scanner-line.active {
    position: absolute;
    left: 12%;
    width: 76%;
    height: 2px;
    background: #ff3333;
    box-shadow: 0 0 6px #ff3333, 0 0 12px rgba(255,51,51,0.6);
    animation: scanMoveRed 2.5s ease-in-out infinite;
    top: 35%;
}

@keyframes scanMoveRed {
    0% { top: 32%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 52%; opacity: 0; }
}

.scanner-hint {
    position: absolute;
    bottom: 22%;
    color: rgba(255,255,255,0.95);
    font-size: 0.8rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.35);
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}
