/* style.css - Premium Antique Theme (Fully Responsive) */

:root {
    --navy: #0f172a;
    --blue: #2563eb;
    --gold: #d4af37;
    --green: #10b981;
    --green-light: #ecfdf5;
    --bg: #f8fafc;
    --white: #ffffff;
    --gray: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body { 
    background-color: var(--bg); 
    color: var(--navy); 
    line-height: 1.6; 
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
    max-width: 100vw;
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
}

img, video, canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== HEADER ===== */
.app-header {
    background: var(--navy);
    color: var(--white);
    padding: 0.85rem 1rem;
    padding-top: calc(0.85rem + var(--safe-top));
    text-align: center;
    font-weight: 700;
    letter-spacing: 1.2px;
    border-bottom: 3px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
}

.logo {
    font-size: 1.25rem;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.kaiser-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.15);
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
}

.kaiser-badge svg {
    width: 14px;
    height: 14px;
    fill: #3b82f6;
    flex-shrink: 0;
}

main {
    flex-grow: 1;
    width: 100%;
    max-width: 100%;
    padding-bottom: calc(20px + var(--safe-bottom));
}

/* ===== VIEWS ===== */
.view { 
    display: none; 
    padding: 16px;
    width: 100%;
    max-width: 900px; 
    margin: 0 auto; 
    animation: fadeIn 0.4s ease-out; 
}
.view.active { display: block; }

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px; /* Touch target */
    text-decoration: none;
    white-space: nowrap;
    word-break: keep-all;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--blue); color: white; box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2); }
.btn-primary:hover { background: #1d4ed8; }
.btn-primary:disabled { background: var(--gray); cursor: not-allowed; box-shadow: none; opacity: 0.7; }

.btn-outline { background: transparent; border: 2px solid var(--blue); color: var(--blue); }
.btn-outline:hover { background: #eff6ff; }

.btn-whatsapp { 
    background: #25D366; 
    color: white; 
    width: 100%; 
    margin-top: 12px; 
    font-weight: 700;
}
.btn-whatsapp:hover { background: #20bd5a; }

.btn-text { background: none; color: var(--gray); text-decoration: underline; padding: 8px; }
.btn-text:hover { color: var(--navy); }

.btn-lg { width: 100%; padding: 14px; font-size: 1rem; }
.btn-block { width: 100%; margin-bottom: 10px; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; min-height: 32px; }

/* ===== WELCOME / HERO ===== */
.hero { 
    text-align: center; 
    margin-top: 30px; 
    padding: 0 10px; 
}
.hero h1 { 
    color: var(--navy); 
    margin-bottom: 12px; 
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    letter-spacing: -0.5px; 
    line-height: 1.2;
    word-break: break-word;
}
.hero p { 
    color: var(--gray); 
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    max-width: 500px; 
    margin: 0 auto 25px; 
    padding: 0 10px;
}

/* ===== CAPTURE AREA ===== */
.capture-area { 
    text-align: center; 
    max-width: 600px; 
    margin: 0 auto; 
    width: 100%;
}

.upload-box {
    border: 2px dashed var(--border);
    padding: 30px 20px;
    margin: 15px 0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: 0.2s;
    word-break: break-word;
}
.upload-box:hover { border-color: var(--blue); background: #f8fafc; }

.controls { 
    display: flex; 
    gap: 10px; 
    justify-content: center; 
    margin-bottom: 15px; 
    flex-wrap: wrap; 
}
.controls .btn { flex: 1 1 auto; min-width: 120px; }

#image-preview { 
    width: 100%;
    max-height: 400px; 
    border-radius: 12px; 
    margin-bottom: 15px; 
    box-shadow: var(--shadow);
    object-fit: contain;
    background: #f1f5f9;
}

.actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.actions .btn { flex: 1 1 auto; min-width: 120px; }

/* ===== SCANNER ===== */
.scanner-ui { 
    text-align: center; 
    position: relative; 
    padding: 10px 0; 
    width: 100%;
}
.scan-frame {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    border: 4px solid var(--navy);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    background: #000;
}
.scan-frame img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 0.85; 
}
.scan-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gold);
    box-shadow: 0 0 15px var(--gold);
    animation: scanMove 2.5s infinite ease-in-out;
    z-index: 2;
}
@keyframes scanMove { 
    0% { top: 0%; opacity: 0; } 
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; } 
}
.status-text { 
    margin-top: 20px; 
    padding: 0 10px;
}
.status-text h3 { 
    font-size: clamp(1rem, 3vw, 1.2rem); 
    margin-bottom: 6px; 
    word-break: break-word;
}
.status-text p { 
    color: var(--gray); 
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    word-break: break-word;
    min-height: 1.5em;
}

/* ===== RESULTS ===== */
.results-header { 
    text-align: center; 
    margin-bottom: 20px; 
    padding: 0 10px 15px; 
    border-bottom: 1px solid var(--border); 
}
.results-header h2 { 
    font-size: clamp(1.4rem, 4vw, 1.8rem); 
    color: var(--navy); 
    word-break: break-word;
}
.results-header p { 
    color: var(--gray); 
    margin-top: 5px; 
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    word-break: break-word;
}

.results-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 16px; 
    margin-bottom: 20px; 
    width: 100%;
}
@media (min-width: 768px) { 
    .results-grid { 
        grid-template-columns: 1fr 1fr; 
        gap: 20px;
        align-items: start; 
    } 
}

.card { 
    background: white; 
    padding: 20px; 
    border-radius: 14px; 
    box-shadow: var(--shadow); 
    border: 1px solid rgba(0,0,0,0.03);
    width: 100%;
    overflow: hidden; /* Prevent content overflow */
    word-wrap: break-word;
}
.card h3 { 
    margin-bottom: 12px; 
    font-size: 1rem; 
    color: var(--navy); 
    border-bottom: 1px solid #f1f5f9; 
    padding-bottom: 8px; 
    word-break: break-word;
}

.item-image-wrapper { 
    width: 100%; 
    aspect-ratio: 1/1; 
    background: #f8fafc; 
    border-radius: 10px; 
    overflow: hidden; 
    margin-bottom: 12px; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.item-image-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.similarity-badge { 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    background: #f1f5f9; 
    padding: 6px 12px; 
    border-radius: 20px; 
    font-size: 0.85rem; 
    font-weight: 600;
    color: var(--navy);
    margin-top: 8px;
    flex-wrap: wrap;
}
.similarity-badge .icon { color: var(--green); font-weight: bold; font-size: 1.1rem; }

.valuation-section { margin-bottom: 20px; }
.price-tag { 
    font-size: clamp(1.6rem, 5vw, 2.2rem); 
    font-weight: 800; 
    color: var(--blue); 
    letter-spacing: -1px; 
    word-break: break-word;
    line-height: 1.2;
}

.offer-box {
    background: var(--green-light);
    border: 2px solid var(--green);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.offer-header { margin-bottom: 8px; }
.offer-header .badge { 
    background: var(--green); 
    color: white; 
    padding: 4px 10px; 
    border-radius: 6px; 
    font-size: 0.7rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    display: inline-block;
}
.offer-amount { 
    font-size: clamp(1.3rem, 4vw, 1.8rem); 
    font-weight: 800; 
    color: var(--green); 
    margin: 8px 0; 
    word-break: break-word;
}
.buyer-name { 
    font-weight: 700; 
    color: var(--navy); 
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    word-break: break-word;
}

.text-small { 
    font-size: clamp(0.85rem, 2.5vw, 0.9rem); 
    color: var(--gray); 
    line-height: 1.5;
    word-break: break-word;
}
.text-tiny { 
    font-size: 0.75rem; 
    color: #94a3b8; 
    margin-top: 5px; 
}
.text-muted { 
    color: var(--gray); 
    font-style: italic; 
    text-align: center; 
    padding: 15px; 
    background: #f8fafc; 
    border-radius: 8px; 
    word-break: break-word;
}

/* ===== NO MATCH STATE ===== */
.item-card.no-match {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #cbd5e1;
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.item-card.no-match h4 {
    color: #475569;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin-bottom: 10px;
    font-weight: 700;
    word-break: break-word;
}

.item-card.no-match h4::before {
    content: "🔍";
    display: block;
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.6;
    filter: grayscale(100%);
}

.item-card.no-match p {
    color: #64748b;
    font-style: normal;
    max-width: 100%;
    line-height: 1.6;
    word-break: break-word;
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
    max-width: 500px;
    margin: 0 auto;
    padding: 10px 0;
    width: 100%;
}

/* ===== AUTH GATE ===== */
.auth-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    padding: 20px 10px;
    width: 100%;
}
.auth-card {
    background: white;
    padding: clamp(20px, 5vw, 40px);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-width: 450px;
    width: 100%;
    border-top: 4px solid var(--gold);
    transition: all 0.3s ease;
}
.auth-card h2 {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    word-break: break-word;
}
.auth-input {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: clamp(1rem, 3vw, 1.2rem);
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}
.auth-input:focus {
    border-color: var(--blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.loading-sequence {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    width: 100%;
}
.loading-sequence.active { display: flex; }
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loading-text {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    color: var(--navy);
    font-weight: 600;
    min-height: 1.5em;
    text-align: center;
    word-break: break-word;
    padding: 0 10px;
}
.welcome-message {
    color: var(--green) !important;
    font-weight: 700 !important;
    font-size: clamp(1.1rem, 3.5vw, 1.4rem) !important;
}
.auth-form.hidden { display: none; }

/* ===== ADMIN PANEL ===== */
.admin-layout { 
    display: flex; 
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    overflow-x: hidden;
}

.sidebar { 
    width: 240px; 
    background: #0f172a; 
    color: white; 
    padding: 20px 0; 
    flex-shrink: 0; 
    position: fixed; 
    top: 0; 
    left: 0; 
    bottom: 0; 
    overflow-y: auto; 
    z-index: 50;
    -webkit-overflow-scrolling: touch;
}
.sidebar h2 { 
    padding: 0 20px 15px; 
    font-size: 1.1rem; 
    border-bottom: 1px solid #1e293b; 
    margin-bottom: 10px; 
}
.nav-link { 
    display: block; 
    padding: 10px 20px; 
    color: #94a3b8; 
    text-decoration: none; 
    font-size: 0.9rem; 
    transition: 0.2s; 
    border-left: 3px solid transparent; 
    word-break: break-word;
}
.nav-link:hover { background: #1e293b; color: white; }
.nav-link.active { background: #1e293b; color: white; border-left-color: #d4af37; }
.nav-section { 
    padding: 15px 20px 5px; 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    color: #475569; 
    letter-spacing: 1px; 
}

.main-content { 
    flex-grow: 1; 
    margin-left: 240px; 
    padding: 20px; 
    width: calc(100% - 240px);
    max-width: calc(100% - 240px);
    overflow-x: hidden;
}

.page-title { 
    font-size: clamp(1.3rem, 4vw, 1.5rem); 
    margin-bottom: 20px; 
    color: #0f172a;
    word-break: break-word;
}

.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
    gap: 12px; 
    margin-bottom: 25px; 
    width: 100%;
}
.stat-card { 
    background: white; 
    padding: 16px; 
    border-radius: 10px; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.08); 
    border-top: 3px solid #2563eb; 
}
.stat-value { 
    font-size: clamp(1.4rem, 4vw, 1.8rem); 
    font-weight: 700; 
    word-break: keep-all;
}
.stat-label { 
    color: #64748b; 
    font-size: 0.8rem; 
    margin-top: 4px; 
    word-break: break-word;
}

/* Admin tables */
table { 
    width: 100%; 
    border-collapse: collapse; 
    min-width: 0;
}
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 0;
}
th, td { 
    padding: 10px 12px; 
    text-align: left; 
    border-bottom: 1px solid #e2e8f0; 
    font-size: 0.85rem;
    word-break: break-word;
}
th { 
    background: #f8fafc; 
    font-weight: 600; 
    color: #475569; 
    position: sticky; 
    top: 0; 
    white-space: nowrap;
}
tr:hover td { background: #f8fafc; }

.badge { 
    padding: 3px 8px; 
    border-radius: 4px; 
    font-size: 0.7rem; 
    font-weight: 600; 
    display: inline-block;
    white-space: nowrap;
}
.badge-green { background: #dcfce7; color: #166534; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-gray { background: #f1f5f9; color: #475569; }

.btn-danger { background: #ef4444; color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: #10b981; color: white; }
.btn-success:hover { background: #059669; }

.form-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; 
    width: 100%;
}
.form-group { 
    margin-bottom: 12px; 
    width: 100%;
    min-width: 0;
}
.form-group label { 
    display: block; 
    margin-bottom: 5px; 
    font-weight: 600; 
    font-size: 0.85rem; 
    color: #334155; 
}
.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%; 
    padding: 10px; 
    border: 1px solid #e2e8f0; 
    border-radius: 6px; 
    font-size: 0.95rem;
    min-width: 0;
}
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none; 
    border-color: #2563eb; 
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-group textarea { min-height: 80px; resize: vertical; }
.form-hint { font-size: 0.75rem; color: #94a3b8; margin-top: 3px; }

.image-upload-zone {
    border: 2px dashed #cbd5e1; 
    border-radius: 10px; 
    padding: 25px 15px; 
    text-align: center;
    cursor: pointer; 
    transition: 0.2s; 
    background: #f8fafc;
    width: 100%;
}
.image-upload-zone:hover { border-color: #2563eb; background: #eff6ff; }
.image-upload-zone.dragover { border-color: #2563eb; background: #dbeafe; }

.image-preview-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); 
    gap: 10px; 
    margin-top: 15px; 
    width: 100%;
}
.image-preview-item { 
    position: relative; 
    border-radius: 8px; 
    overflow: hidden; 
    aspect-ratio: 1; 
}
.image-preview-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.image-preview-item .remove-btn {
    position: absolute; 
    top: 4px; 
    right: 4px; 
    background: rgba(239,68,68,0.9); 
    color: white;
    border: none; 
    border-radius: 50%; 
    width: 24px; 
    height: 24px; 
    cursor: pointer; 
    font-size: 12px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast {
    position: fixed; 
    bottom: calc(20px + var(--safe-bottom)); 
    right: 20px;
    left: 20px;
    max-width: 400px;
    margin-left: auto;
    padding: 12px 20px; 
    border-radius: 8px;
    color: white; 
    font-weight: 600; 
    z-index: 9999; 
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    font-size: 0.9rem;
    word-break: break-word;
}
.toast-success { background: #10b981; }
.toast-error { background: #ef4444; }
@keyframes slideIn { 
    from { transform: translateY(20px); opacity: 0; } 
    to { transform: translateY(0); opacity: 1; } 
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar { 
        width: 100%; 
        position: relative; 
        height: auto; 
        padding: 15px 0;
    }
    .sidebar h2 {
        padding: 0 15px 10px;
        font-size: 1rem;
    }
    .nav-link {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    .nav-section {
        padding: 12px 15px 4px;
    }
    .main-content { 
        margin-left: 0; 
        padding: 15px;
        width: 100%;
        max-width: 100%;
    }
    .admin-layout { 
        flex-direction: column; 
    }
    .form-row { 
        grid-template-columns: 1fr; 
    }
    .view {
        padding: 12px;
    }
    .card {
        padding: 16px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .stat-card {
        padding: 12px;
    }
    .image-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    th, td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 0.7rem 0.8rem;
    }
    .logo {
        font-size: 1.1rem;
    }
    .kaiser-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
    }
    .kaiser-badge svg {
        width: 12px;
        height: 12px;
    }
    .hero {
        margin-top: 15px;
    }
    .btn {
        padding: 11px 16px;
        font-size: 0.9rem;
    }
    .btn-lg {
        padding: 13px;
    }
    .card {
        padding: 14px;
        border-radius: 12px;
    }
    .card h3 {
        font-size: 0.95rem;
    }
    .upload-box {
        padding: 25px 15px;
    }
    .scan-frame {
        max-width: 280px;
    }
    .results-header {
        margin-bottom: 15px;
    }
    .offer-box {
        padding: 14px;
    }
    .auth-card {
        padding: 20px 15px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stat-value {
        font-size: 1.3rem;
    }
    .stat-label {
        font-size: 0.75rem;
    }
}

/* ===== VERY SMALL DEVICES ===== */
@media (max-width: 360px) {
    .view {
        padding: 10px;
    }
    .hero h1 {
        font-size: 1.4rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
    .controls {
        flex-direction: column;
    }
    .controls .btn {
        width: 100%;
    }
    .actions {
        flex-direction: column;
    }
    .actions .btn {
        width: 100%;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .image-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .auth-gate {
        min-height: auto;
        padding: 10px;
    }
    .scan-frame {
        max-width: 200px;
    }
    .hero {
        margin-top: 10px;
    }
}

/* ===== PRINT ===== */
@media print {
    .app-header, .btn, .scan-line, .spinner {
        display: none !important;
    }
    body {
        background: white;
    }
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for keyboard navigation */
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-outline {
        border-width: 3px;
    }
    .card {
        border: 2px solid #000;
    }
}