@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --border-focus: #3b82f6;
    --text-main: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-border: #bfdbfe;
    --success: #16a34a;
    --success-light: #f0fdf4;
    --warning: #d97706;
    --warning-light: #fffbeb;
    --danger: #dc2626;
    --danger-light: #fef2f2;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

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

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-main);
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Top Progress Bar (YouTube/NProgress style) */
#top-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #38bdf8, #4f46e5);
    z-index: 99999;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.7);
    transition: width 0.25s ease, opacity 0.3s ease;
    pointer-events: none;
    opacity: 0;
}

#top-progress-bar.loading {
    opacity: 1;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

/* Navbar */
.min-navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.65rem 1rem;
}

.min-nav-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.min-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.min-brand img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    object-fit: cover;
}

.min-nav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.min-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    text-decoration: none;
}

.min-nav-link:hover {
    color: var(--text-main);
    background: #f1f5f9;
}

.min-nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
    display: none;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    padding: 0;
    color: var(--text-main);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    outline: none;
}

.mobile-menu-toggle:hover, .mobile-menu-toggle:focus-visible {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0; width: 290px; max-width: 85vw; height: 100vh; height: 100dvh; background: #ffffff; z-index: 999; box-shadow: 4px 0 24px rgba(0,0,0,0.12); transform: translateX(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem;
    overflow-y: auto;
}

.mobile-drawer.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

body.drawer-open {
    overflow: hidden;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.85rem;
}

.mobile-drawer-close {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    font-size: 1.25rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.mobile-drawer-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mobile-nav-item a,
.mobile-drawer-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    color: #334155;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.15s ease;
    margin-bottom: 0.25rem;
}

.mobile-nav-item a:hover,
.mobile-drawer-item:hover,
.mobile-drawer-item.active {
    background: #eff6ff;
    color: var(--primary);
}

.mobile-drawer-item svg {
    flex-shrink: 0;
    color: #64748b;
}

.mobile-drawer-item:hover svg,
.mobile-drawer-item.active svg {
    color: var(--primary);
}

@media (min-width: 769px) {
    .mobile-menu-toggle { display: none !important; }
    .mobile-drawer { display: none !important; }
    .mobile-drawer-overlay { display: none !important; }
    .min-nav-links { display: flex !important; }
}

@media (max-width: 768px) {
    .min-nav-links { display: none !important; }
    .mobile-menu-toggle { display: inline-flex !important; }
    .mobile-drawer { display: flex !important; }
    .min-main, .min-main-content { padding: 1.25rem 0.75rem 3rem 0.75rem !important; }
}

/* Main Container: Centered max-width to prevent edge-to-edge stretching */
.min-main, .min-main-content {
    flex: 1;
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 1.75rem 1rem 3.5rem 1rem;
    box-sizing: border-box;
}

/* Profile Dropdown Menu */
.profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 0.3rem 0.75rem 0.3rem 0.35rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.profile-btn:hover, .profile-btn:focus-visible {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.profile-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 230px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    display: none;
    z-index: 1000;
}

.profile-dropdown-menu.show {
    display: block;
    animation: dropdownFadeIn 0.15s ease;
}

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

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-body);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.profile-dropdown-item:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.profile-dropdown-item.danger {
    color: #dc2626;
}

.profile-dropdown-item.danger:hover {
    background: #fef2f2;
    color: #b91c1c;
}


/* Cards */
.min-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.min-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.min-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

/* Compact Stats Strip */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    border-right: 1px solid #f1f5f9;
    padding-right: 0.75rem;
}

.stat-item:last-child {
    border-right: none;
    padding-right: 0;
}

.stat-item-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stat-item-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

@media (max-width: 640px) {
    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .stat-item:nth-child(2) {
        border-right: none;
    }
}

/* Buttons */
.min-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1.2;
}

.min-btn:disabled, .min-btn.btn-loading {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.min-btn-primary { background: var(--primary); color: #ffffff; }
.min-btn-primary:hover { background: var(--primary-hover); color: #ffffff; }
.min-btn-secondary { background: #ffffff; color: var(--text-main); border-color: var(--border-color); }
.min-btn-secondary:hover { background: #f8fafc; border-color: #cbd5e1; }
.min-btn-success { background: var(--success); color: #ffffff; }
.min-btn-success:hover { background: #15803d; color: #ffffff; }
.min-btn-warning { background: #f59e0b; color: #ffffff; }
.min-btn-warning:hover { background: #d97706; color: #ffffff; }
.min-btn-danger { background: var(--danger); color: #ffffff; }
.min-btn-danger:hover { background: #b91c1c; color: #ffffff; }

.min-btn-sm { padding: 0.35rem 0.65rem; font-size: 0.78rem; border-radius: var(--radius-sm); }
.min-btn-lg { padding: 0.75rem 1.25rem; font-size: 0.95rem; }
.min-btn-block { display: flex; width: 100%; }

/* Forms */
.min-form-group {
    margin-bottom: 0.9rem;
}

.min-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.min-input, .min-select, .min-textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--text-main);
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.min-input:focus, .min-select:focus, .min-textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Modals */
.min-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.min-modal-overlay.open {
    display: flex;
}

.min-modal-2col {
    background: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 860px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.min-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.min-modal-body-2col {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.25rem;
    padding: 1.25rem;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .min-modal-body-2col {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
}

/* Alerts */
.min-alert {
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.min-alert-danger { background: var(--danger-light); color: #991b1b; border: 1px solid #fecaca; }
.min-alert-success { background: var(--success-light); color: #166534; border: 1px solid #bbf7d0; }

/* Tables */
.min-table-container,
.table-responsive,
.table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x pan-y !important;
    display: block;
    margin-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.min-table-container::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.table-container::-webkit-scrollbar {
    height: 6px;
}

.min-table-container::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
.table-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.min-table,
.brutal-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.min-table th,
.brutal-table th {
    padding: 0.65rem 0.75rem;
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.min-table td,
.brutal-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .min-table-container,
    .table-responsive,
    .table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x pan-y !important;
        width: 100% !important;
        display: block !important;
    }
    .min-table,
    .brutal-table {
        min-width: 740px !important;
        display: table !important;
    }
}

/* Badges */
.min-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
}

.min-badge.blue { background: #eff6ff; color: #1d4ed8; }
.min-badge.green { background: #f0fdf4; color: #166534; }
.min-badge.yellow { background: #fffbeb; color: #b45309; }
.min-badge.red { background: #fef2f2; color: #dc2626; }
.min-badge.purple { background: #faf5ff; color: #7e22ce; }

/* Cloudflare PoW Captcha Widget Replica */
.pow-captcha-widget {
    background: #fafafa;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    user-select: none;
}

.pow-captcha-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pow-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pow-checkbox.verified {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
}

.pow-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: powSpin 0.7s linear infinite;
    display: none;
}

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

.pow-captcha-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.pow-captcha-brand {
    text-align: right;
    font-size: 0.68rem;
    color: #94a3b8;
    line-height: 1.2;
}

.pow-captcha-brand strong {
    color: #ea580c;
    font-size: 0.72rem;
}


/* ==========================================================================
   Submit Document Modal (Clean 2-Column Responsive)
   ========================================================================== */
.submit-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    animation: modalFadeIn 0.2s ease-out;
}

.submit-modal-overlay.open {
    display: flex !important;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.submit-modal-container {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 840px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.submit-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.submit-modal-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.35rem;
    padding: 1.35rem;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .submit-modal-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
}

/* ==========================================================================
   HALLMARK DESIGN SYSTEM (ANTI-AI-SLOP CRAFT & EDITORIAL PRIMITIVES)
   ========================================================================== */

.hallmark-hero {
    position: relative;
    padding: 4rem 1rem 3rem 1rem;
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}

.hallmark-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: #0f172a;
    margin: 1.25rem 0 1.15rem 0;
}

.hallmark-hero p {
    font-size: clamp(0.95rem, 2vw, 1.12rem);
    color: #475569;
    line-height: 1.65;
    max-width: 640px;
    margin: 0 auto 2rem auto;
}

.hallmark-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02), 0 4px 16px -4px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.hallmark-card:hover {
    border-color: rgba(37, 99, 235, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.08);
}

.hallmark-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.hallmark-badge-blue { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.hallmark-badge-purple { background: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.hallmark-badge-green { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.hallmark-badge-amber { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

/* Interactive Service Tab Switcher */
.hallmark-tab-bar {
    display: inline-flex;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
    gap: 4px;
}

.hallmark-tab-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hallmark-tab-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Interactive Inspection & Scanner Studio */
.scan-studio {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 20px 45px -15px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.03);
    overflow: hidden;
    margin: 0 auto;
}

.scan-studio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 1.75rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.scan-studio-tabs {
    display: inline-flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 10px;
    gap: 4px;
}

.scan-tab-btn {
    padding: 0.5rem 1.15rem;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.scan-tab-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.scan-studio-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 0;
    min-height: 480px;
}

@media (max-width: 860px) {
    .scan-studio-grid {
        grid-template-columns: 1fr;
    }
}

.scan-paper-container {
    background: #f1f5f9;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-paper {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.7;
    color: #334155;
    user-select: none;
}

.scan-paper-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.scan-paper-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.25rem 0;
    line-height: 1.35;
}

.scan-paper-meta {
    font-size: 0.72rem;
    color: #94a3b8;
    display: flex;
    gap: 0.75rem;
}

.scan-laser {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(37,99,235,0) 0%, rgba(37,99,235,0.9) 25%, rgba(147,51,234,1) 50%, rgba(37,99,235,0.9) 75%, rgba(37,99,235,0) 100%);
    box-shadow: 0 0 14px 2px rgba(59, 130, 246, 0.65), 0 0 28px 4px rgba(147, 51, 234, 0.35);
    z-index: 10;
    pointer-events: none;
    animation: scanSweep 4s ease-in-out infinite alternate;
}

@keyframes scanSweep {
    0% { top: 0%; opacity: 0.4; }
    50% { opacity: 1; }
    100% { top: 96%; opacity: 0.4; }
}

/* Document Highlights */
.sim-highlight-1 {
    background: rgba(239, 68, 68, 0.15);
    border-bottom: 2px solid #ef4444;
    color: #991b1b;
    padding: 1px 3px;
    border-radius: 3px;
}

.sim-highlight-2 {
    background: rgba(245, 158, 11, 0.18);
    border-bottom: 2px solid #f59e0b;
    color: #92400e;
    padding: 1px 3px;
    border-radius: 3px;
}

.ai-highlight {
    background: rgba(147, 51, 234, 0.14);
    border-bottom: 2px solid #a855f7;
    color: #6b21a8;
    padding: 1px 3px;
    border-radius: 3px;
}

.scan-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0px 4px;
    border-radius: 4px;
    margin-left: 2px;
    vertical-align: middle;
}
.scan-tag-red { background: #ef4444; color: #ffffff; }
.scan-tag-amber { background: #f59e0b; color: #ffffff; }
.scan-tag-purple { background: #9333ea; color: #ffffff; }

/* Diagnostic HUD on Right Side */
.scan-hud {
    padding: 2rem 1.75rem;
    background: #0f172a;
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.scan-hud-title {
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.scan-meter-circle {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.scan-meter-score {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    font-feature-settings: "tnum";
}

.scan-score-sim { color: #38bdf8; }
.scan-score-ai { color: #c084fc; }

.scan-breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
    color: #cbd5e1;
}

.scan-bar-track {
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 0.85rem;
}

.scan-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scan-hud-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Hallmark Accordion FAQ */
.hallmark-faq-item {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hallmark-faq-item:hover {
    border-color: rgba(37, 99, 235, 0.25);
}

.hallmark-faq-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.25rem;
    background: transparent;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
}

.hallmark-faq-content {
    display: none;
    padding: 0 1.25rem 1.15rem 1.25rem;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.65;
    border-top: 1px solid #f8fafc;
}

.hallmark-faq-item.open .hallmark-faq-content {
    display: block;
}

.hallmark-faq-item.open .hallmark-faq-icon {
    transform: rotate(45deg);
}

.hallmark-faq-icon {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

/* Core Web Vitals & Rendering Performance */
.hallmark-terminal, 
.hallmark-faq-item {
    content-visibility: auto;
    contain-intrinsic-size: 0 100px;
}

