:root {
  --bg-color: #030712; /* Extreme dark for more depth */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-color: #06b6d4; 
  --accent-hover: #0891b2;
  --btn-gradient: linear-gradient(135deg, #06b6d4, #3b82f6);
  --glass-bg: rgba(15, 23, 42, 0.45); 
  --glass-border: rgba(6, 182, 212, 0.25);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --input-bg: rgba(2, 6, 23, 0.7);
  --error: #ef4444;
  --success: #10b981;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex; flex-direction: column;
  position: relative; overflow-x: hidden;
}

/* Base Mesh Background */
.background-mesh {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1;
  background-image: 
    radial-gradient(at 10% 20%, hsla(200, 50%, 8%, 1) 0, transparent 50%), 
    radial-gradient(at 90% 10%, hsla(220, 80%, 12%, 0.8) 0, transparent 50%), 
    radial-gradient(at 50% 100%, hsla(190, 70%, 10%, 1) 0, transparent 60%);
  filter: blur(60px);
  animation: bg-shift 20s ease-in-out infinite alternate;
}
@keyframes bg-shift { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }

/* Universal Header */
.app-header { 
    position: sticky; top: 0; z-index: 1000;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 0;
    transition: padding 0.3s ease, background 0.3s ease;
}
.app-header.scrolled {
    padding: 10px 0;
    background: rgba(3, 7, 18, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.header-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; }
.nav-left .header-logo { width: 100px; cursor: pointer; transition: transform 0.2s; }
.nav-left .header-logo:hover { transform: scale(1.05); }

.nav-center.tabs { display: flex; gap: 5px; }
.nav-btn {
  background: transparent; border: none; color: var(--text-secondary);
  font-size: 0.95rem; font-weight: 500; cursor: pointer;
  padding: 8px 16px; border-radius: 8px; transition: all 0.3s ease; white-space: nowrap;
}
.nav-btn:hover { color: var(--text-primary); }
.nav-btn.active { color: var(--accent-color); font-weight: 700; background: rgba(6, 182, 212, 0.1); }

.nav-right { display: flex; align-items: center; gap: 15px; }
.nav-action {
    background: var(--btn-gradient); color: white; border: none; padding: 10px 24px; border-radius: 50px; font-weight: 600; cursor: pointer; transition: 0.3s;
}
.nav-action:hover { filter: brightness(1.2); box-shadow: 0 0 15px rgba(6, 182, 212, 0.4); }

.main-wrapper { flex: 1; display:flex; flex-direction: column; width:100%; }
.dynamic-content { flex: 1; width: 100%; display: flex; justify-content: center;}

/* TABS LOGIC */
.tab-content { 
    display: none; 
    width: 100%; 
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.tab-content.active { 
    display: block; 
}
.tab-content.show {
    opacity: 1;
    transform: translateY(0);
}

/* ------------- THE WEBSITE LANDING HUB ------------- */
.landing-hub { text-align: center; }

/* HERO SECTION */
.hero-section {
    position: relative;
    padding: 180px 20px 140px; width: 100%;
    margin: 0 auto;
    border-bottom: 1px solid var(--glass-border);
    background-image: url('img/hero_highway.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex; flex-direction: column; align-items: center;
}
.hero-bg-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to bottom, rgba(3,7,18,0.7) 0%, rgba(3,7,18,1) 100%);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 1000px; display: flex; flex-direction: column; align-items: center;}
.hero-tag { display: inline-block; padding: 6px 16px; background: rgba(37, 99, 235, 0.2); border: 1px solid rgba(37, 99, 235, 0.5); color: #60a5fa; border-radius: 30px; font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 25px; }
.hero-title { font-size: 4.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 25px; letter-spacing: -2px; }
.hero-title .highlight { background: var(--btn-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.3rem; color: var(--text-secondary); max-width: 700px; margin: 0 auto 40px; line-height: 1.6; }
.hero-actions { display: flex; gap: 20px; justify-content: center; }
.hero-primary-btn { background: var(--btn-gradient); border: none; padding: 16px 36px; border-radius: 12px; color: white; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: 0.3s; box-shadow: 0 10px 30px -10px var(--accent-color); }
.hero-primary-btn:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 15px 40px -10px var(--accent-color); }
.hero-secondary-btn { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 16px 36px; border-radius: 12px; color: var(--text-primary); font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: 0.3s; backdrop-filter: blur(10px); }
.hero-secondary-btn:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.3); }

/* TRUST BANNER */
.trust-banner { display: flex; gap: 30px; max-width: 1200px; margin: -50px auto 40px; justify-content: space-between; position: relative; z-index: 5; background: var(--glass-bg); padding: 30px; border-radius: 20px; border: 1px solid var(--glass-border); text-align: left; }
.trust-item { flex: 1; padding: 0 15px; border-left: 2px solid rgba(6, 182, 212, 0.3); }
.trust-item:first-child { border-left: none; padding-left:0; }
.trust-item h4 { font-size: 1.1rem; color: var(--accent-color); margin-bottom: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;}
.trust-item p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

/* SECTIONS STRUCTURE */
.services-wrapper, .store-wrapper { padding: 80px 40px; max-width: 1400px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.05); }
.section-title { text-align: left; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 15px;}
.section-title p { color: var(--accent-color); font-size: 1.1rem; font-weight: 500;}

/* SERVICES GRID */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card {
  background: var(--input-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(10px);
  border-radius: 20px; padding: 40px 30px; text-align: left; cursor: pointer; transition: all 0.3s;
}
.service-card:hover { transform: translateY(-8px); border-color: var(--accent-color); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); background: rgba(15, 23, 42, 0.8); }
.cyber-icon {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: inline-block;
    padding: 15px; 
    background: rgba(6, 182, 212, 0.05); 
    border-radius: 16px; 
    border: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2), inset 0 0 20px rgba(6, 182, 212, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.service-card:hover .cyber-icon {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.6), inset 0 0 30px rgba(6, 182, 212, 0.3);
    color: #fff;
    text-shadow: 0 0 15px var(--accent-color);
    border-color: rgba(6, 182, 212, 0.8);
}
.service-card h3 { font-size: 1.4rem; color: var(--text-primary); margin-bottom: 15px; font-weight: 700;}
.service-card p { font-size: 1rem; color: var(--text-secondary); line-height: 1.6; }

/* STORE GRID */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-card { background: rgba(2,6,23, 0.4); border: 1px solid rgba(255,255,255,0.05); border-radius: 20px; padding: 30px; text-align: left; transition: 0.3s; display: flex; flex-direction: column;}
.product-card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.5);}
.product-img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.05); }
.product-card h4 { font-size: 1.3rem; margin-bottom: 10px; font-weight: 800;}
.product-card p { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 25px; line-height: 1.6; flex: 1;}
.product-price { display: flex; justify-content: space-between; align-items: center;}
.product-card .price { display: inline-block; padding: 6px 16px; background: rgba(16, 185, 129, 0.1); color: var(--success); border-radius: 20px; font-weight: 700; font-size: 0.9rem; border: 1px solid rgba(16, 185, 129, 0.2);}
.action-link.sm { padding: 6px 14px; font-size: 0.85rem;}

.our-story { border-top: 1px solid var(--glass-border); padding: 80px 40px; text-align: center; }
.glass-form-wrapper { padding: 60px 20px; max-width: 800px; width: 100%; margin: 0 auto; }
.glass-form-wrapper.wide { max-width: 1200px; }

.glass-panel {
  background: var(--glass-bg); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: 24px; padding: 40px; box-shadow: var(--glass-shadow);
}
.site-header { margin-bottom: 40px; text-align: center; }
.site-header h1 { font-size: 2.2rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 10px;}
.site-header p { color: var(--accent-color); font-size: 1.1rem; }

.form-section { margin-bottom: 40px; }
.form-section h2 { font-size: 0.85rem; color: var(--accent-color); margin-bottom: 20px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.1); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }

.row { display: flex; gap: 20px; margin-bottom: 20px; }
.input-group { display: flex; flex-direction: column; margin-bottom: 20px; flex: 1; text-align: left; }
.input-group label { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.7rem; color: #e2e8f0; }
.input-group input, .input-group select, .input-group textarea {
  background: var(--input-bg); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 14px 18px; color: var(--text-primary);
  font-family: inherit; font-size: 1rem; transition: all 0.2s ease; outline: none; width: 100%;
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus { border-color: var(--accent-color); box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15); background: rgba(15,23,42,0.9); }

/* File Drop Zone */
.file-drop-zone { position: relative; overflow: hidden; border: 2px dashed rgba(255,255,255,0.2); border-radius: 12px; padding: 40px; text-align: center; transition: all 0.3s; background: rgba(0,0,0,0.2); cursor: pointer; }
.file-drop-zone:hover { border-color: var(--accent-color); background: rgba(6, 182, 212, 0.05); }
.file-input { position: absolute; top:0; left:0; width:100%; height:100%; opacity: 0; cursor: pointer; }
.drop-text { color: var(--accent-color); font-weight: 600; margin-top: 15px;}

/* Form Submit Button */
.submit-btn { width: 100%; padding: 16px; background: var(--btn-gradient); color: white; border: none; border-radius: 12px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: all 0.3s ease; display: flex; justify-content: center; align-items: center; box-shadow: 0 10px 20px -5px rgba(37,99,235,0.4); }
.submit-btn:hover { filter: brightness(1.15); transform: translateY(-2px); box-shadow: 0 15px 30px -5px rgba(37,99,235,0.5);}
.submit-btn.loading { opacity: 0.8; cursor: not-allowed; }

/* Login Modal */
.overlay-grid { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; z-index: 9999; background: rgba(2, 6, 23, 0.9); backdrop-filter: blur(30px); transition: opacity 0.3s ease; }
.overlay-grid.hidden { opacity: 0; pointer-events: none; }
.login-box { width: 100%; max-width: 450px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 24px; padding: 50px; text-align: center; position: relative; box-shadow: 0 0 80px rgba(6, 182, 212, 0.15); transform: translateY(20px); transition: transform 0.3s ease; }
.overlay-grid:not(.hidden) .login-box { transform: translateY(0); }
.close-modal { position: absolute; top: 25px; right: 30px; font-size: 1.8rem; cursor: pointer; color: var(--text-secondary); transition: 0.2s;}
.close-modal:hover { color: var(--text-primary); transform: scale(1.1); }
.brand-logo { width: 120px; margin: 0 auto 30px; display: block; border-radius: 20px;}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Real Footer */
.app-footer { background: #010308; border-top: 1px solid rgba(255,255,255,0.05); padding: 60px 0 20px; margin-top: auto; }
.footer-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 40px;}
.footer-col h4 { font-size: 1.1rem; margin-bottom: 20px; font-weight: 700; letter-spacing: 0.5px;}
.footer-col p { color: var(--text-secondary); line-height: 1.8; font-size: 0.95rem; margin-bottom: 10px;}
.footer-col a { color: var(--text-secondary); text-decoration: none; transition: 0.2s;}
.footer-col a:hover { color: var(--accent-color); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); max-width: 1400px; margin: 0 auto; padding: 20px 40px 0; display: flex; justify-content: space-between; color: var(--text-secondary); font-size: 0.85rem;}
.gradient-text { background: var(--btn-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800;}

/* Table Styles */
.search-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.table-container { overflow-x: auto; border-radius: 20px;}
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; font-size: 0.95rem; }
.data-table th { background: rgba(0,0,0,0.3); color: var(--accent-color); font-weight: 700; padding: 18px 20px; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; border-bottom: 1px solid rgba(255,255,255,0.05);}
.data-table td { border-bottom: 1px solid rgba(255,255,255,0.05); padding: 18px 20px; color: var(--text-secondary); }
.data-table tr:hover td { background: rgba(255,255,255,0.02); color: var(--text-primary); }
.text-center { text-align: center; }
.status-badge { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); color: var(--success); padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;}

/* Loading Spinners Utilities */
.spinner { border: 3px solid rgba(255,255,255,0.3); border-radius: 50%; border-top: 3px solid #fff; width: 22px; height: 22px; animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.hidden { display: none !important; }
.error-text { color: var(--error); margin-top: 15px; font-weight: 600; font-size: 0.95rem; }
.action-link { display: inline-block; background: rgba(6, 182, 212, 0.1); color: var(--accent-color); text-decoration: none; padding: 12px 24px; border-radius: 8px; font-weight: 600; border: 1px solid rgba(6, 182, 212, 0.2); transition: all 0.2s; }
.action-link:hover { background: rgba(6, 182, 212, 0.2); }
.action-link.outline { background: transparent; border-color: var(--glass-border); color: var(--text-secondary); padding: 8px 16px; font-size: 0.9rem;}
.action-link.outline:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.4); }
.action-link.center-link { margin-top:20px; font-size:1.1rem; padding: 14px 28px; border-radius: 12px;}
.response-panel { text-align: center; padding: 50px 30px; margin-top: 20px;}
.response-panel h2 { font-size: 2rem; color: var(--success); margin-bottom: 10px; font-weight: 800;}
.response-panel p { color: var(--text-secondary); margin-bottom: 25px; font-size: 1.1rem; }

/* ═══════════════════════════════════════════════════
   DOCUMENT REVIEW TAB
   ═══════════════════════════════════════════════════ */

/* Action button (standalone, non-submit) */
.action-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--btn-gradient); color: white; border: none;
    padding: 12px 24px; border-radius: 10px; font-weight: 600;
    font-size: 0.95rem; cursor: pointer; transition: all 0.3s;
    text-decoration: none; font-family: inherit;
}
.action-btn:hover { filter: brightness(1.15); transform: translateY(-1px); box-shadow: 0 8px 20px -5px rgba(6,182,212,0.4); }
.action-btn.outline {
    background: transparent; border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}
.action-btn.outline:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.03); }
.action-btn.primary { background: linear-gradient(135deg, #10b981, #06b6d4); box-shadow: 0 8px 20px -5px rgba(16,185,129,0.3); }
.action-btn.primary:hover { box-shadow: 0 12px 30px -5px rgba(16,185,129,0.5); }

/* Review Meta Bar */
.review-meta-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}
.meta-item {
    display: flex; flex-direction: column; gap: 6px;
    padding: 12px; background: rgba(0,0,0,0.2);
    border-radius: 12px; border: 1px solid rgba(255,255,255,0.05);
}
.meta-label {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px;
    color: var(--accent-color); font-weight: 700;
}
.meta-item > span:last-child { font-weight: 600; font-size: 0.9rem; }

/* Status badge variants */
.status-badge.status-received { background: rgba(59,130,246,0.15); border-color: rgba(59,130,246,0.3); color: #60a5fa; }
.status-badge.status-analyzing { background: rgba(168,85,247,0.15); border-color: rgba(168,85,247,0.3); color: #a855f7; }
.status-badge.status-draft-ready { background: rgba(234,179,8,0.15); border-color: rgba(234,179,8,0.3); color: #eab308; }
.status-badge.status-approved-for-final { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.3); color: #10b981; }
.status-badge.status-final-ready { background: rgba(6,182,212,0.15); border-color: rgba(6,182,212,0.3); color: #06b6d4; }
.status-badge.status-error { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.3); color: #ef4444; }

/* Auth flag badges */
.status-badge.auth-pass { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.3); color: #10b981; }
.status-badge.auth-warn { background: rgba(234,179,8,0.15); border-color: rgba(234,179,8,0.3); color: #eab308; }
.status-badge.auth-high-risk { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.3); color: #ef4444; }

/* Two-column layout */
.review-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}
.review-col-left, .review-col-right { min-width: 0; }

/* Screenshot Gallery */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.screenshot-card {
    position: relative; cursor: pointer; border-radius: 10px;
    overflow: hidden; border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s; aspect-ratio: 16/9;
}
.screenshot-card:hover {
    transform: scale(1.03); border-color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.screenshot-img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
}
.screenshot-label {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 20px 8px 6px; font-size: 0.75rem; color: rgba(255,255,255,0.8);
    text-align: center; font-weight: 600;
}
.screenshot-placeholder {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; height: 100%; min-height: 90px;
    background: rgba(0,0,0,0.3); color: var(--text-secondary);
    font-size: 0.8rem; gap: 5px;
}
.screenshot-placeholder i { font-size: 1.5rem; }

/* Lightbox */
.lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.92); z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    animation: fadeIn 0.2s ease;
}
.lightbox-content {
    max-width: 90vw; max-height: 90vh; text-align: center; position: relative;
}
.lightbox-content img {
    max-width: 100%; max-height: 80vh; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}
.lightbox-content p {
    color: var(--text-secondary); margin-top: 12px; font-size: 0.95rem;
}
.lightbox-close {
    position: absolute; top: -40px; right: -10px;
    background: none; border: none; color: white;
    font-size: 2rem; cursor: pointer; transition: 0.2s;
}
.lightbox-close:hover { transform: scale(1.2); color: var(--accent-color); }

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

/* AI Detections */
.ai-detections-container { max-height: 500px; overflow-y: auto; }
.ai-meta { margin-bottom: 15px; color: var(--text-secondary); }
.detection-group { margin-bottom: 18px; }
.detection-group h4 {
    font-size: 0.85rem; color: var(--accent-color); margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.detection-group h4 i { font-size: 1.1rem; }
.detection-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.detection-tag {
    display: inline-block; padding: 4px 10px; border-radius: 6px;
    font-size: 0.78rem; font-weight: 600; cursor: default;
    border: 1px solid; transition: 0.2s;
}
.detection-tag:hover { transform: translateY(-1px); }
.detection-tag.conf-high {
    background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.3);
    color: #10b981;
}
.detection-tag.conf-medium {
    background: rgba(234,179,8,0.12); border-color: rgba(234,179,8,0.3);
    color: #eab308;
}
.detection-tag.conf-low {
    background: rgba(148,163,184,0.12); border-color: rgba(148,163,184,0.3);
    color: #94a3b8;
}

/* Frame Details Accordion */
.frame-details {
    margin-top: 15px; border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 12px;
}
.frame-details summary {
    cursor: pointer; color: var(--accent-color); font-weight: 600;
    font-size: 0.85rem; padding: 8px 0;
}
.frame-details summary:hover { color: var(--text-primary); }
.frame-summary {
    padding: 10px 12px; margin: 6px 0; background: rgba(0,0,0,0.2);
    border-radius: 8px; font-size: 0.85rem; line-height: 1.5;
    border-left: 3px solid rgba(6,182,212,0.3);
}

/* Draft Editor */
.draft-editor-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 25px; padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.draft-editor-header h2 {
    font-size: 1.4rem; font-weight: 800; display: flex; align-items: center; gap: 10px;
}
.draft-editor-header h2 i { color: var(--accent-color); }

.ai-draft-badge {
    display: inline-block; padding: 4px 12px;
    background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(6,182,212,0.2));
    border: 1px solid rgba(168,85,247,0.4); border-radius: 6px;
    font-size: 0.75rem; font-weight: 700; color: #a855f7;
    letter-spacing: 1px; text-transform: uppercase;
    animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.editor-section { margin-bottom: 20px; }
.editor-label {
    display: block; font-size: 0.8rem; font-weight: 700;
    color: var(--accent-color); text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 8px;
}
.draft-textarea {
    width: 100%; background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
    padding: 14px 16px; color: var(--text-primary);
    font-family: 'Inter', sans-serif; font-size: 0.92rem;
    line-height: 1.7; resize: vertical; outline: none;
    transition: all 0.2s;
}
.draft-textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(6,182,212,0.12);
    background: rgba(15,23,42,0.8);
}

/* Review Action Buttons */
.review-actions {
    display: flex; gap: 12px; flex-wrap: wrap;
    padding: 20px; background: rgba(0,0,0,0.2);
    border-radius: 14px; border: 1px solid rgba(255,255,255,0.05);
}

/* Review Status Messages */
.review-status-msg {
    margin-top: 15px; padding: 14px 20px; border-radius: 10px;
    font-weight: 600; font-size: 0.9rem;
    animation: fadeIn 0.3s ease;
}
.review-status-msg.status-info {
    background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3);
    color: #60a5fa;
}
.review-status-msg.status-success {
    background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3);
    color: #10b981;
}
.review-status-msg.status-error {
    background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444;
}

.text-muted { color: var(--text-secondary); font-size: 0.9rem; }

/* Responsive for review */
@media (max-width: 900px) {
    .review-columns { grid-template-columns: 1fr; }
    .review-meta-grid { grid-template-columns: repeat(3, 1fr); }
    .review-actions { flex-direction: column; }
}
@media (max-width: 600px) {
    .review-meta-grid { grid-template-columns: repeat(2, 1fr); }
    .screenshot-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Multi-file upload list */
.file-list { margin-top: 10px; }
.file-list-item {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px; margin: 4px 0;
    background: rgba(6, 182, 212, 0.08); border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 8px; font-size: 0.85rem; color: var(--text-secondary);
}
.file-list-item i { color: var(--accent-color); font-size: 1.1rem; }
.file-list-item small { opacity: 0.7; }

/* Screenshot remove button */
.screenshot-remove {
    position: absolute; top: 5px; right: 5px;
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(239, 68, 68, 0.85); border: none;
    color: white; font-size: 1.1rem; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.2s, transform 0.2s;
    z-index: 5;
}
.screenshot-card:hover .screenshot-remove { opacity: 1; }
.screenshot-remove:hover { background: #ef4444; transform: scale(1.15); }

/* PDF Viewer */
.pdf-viewer-container { margin-top: 15px; }
.pdf-iframe {
    width: 100%; height: 600px; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; background: rgba(0,0,0,0.3);
}

/* Request Report paywall button */
.request-report-btn {
    background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(236,72,153,0.15)) !important;
    border-color: rgba(168,85,247,0.3) !important;
    color: #a855f7 !important;
}
.request-report-btn:hover {
    background: linear-gradient(135deg, rgba(168,85,247,0.25), rgba(236,72,153,0.25)) !important;
    border-color: rgba(168,85,247,0.5) !important;
}

/* ═══════════════════════════════════════════════════════════
   Video Player
   ═══════════════════════════════════════════════════════════ */

.video-player-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.evidence-video {
    width: 100%;
    max-height: 480px;
    display: block;
    border-radius: 12px;
    background: #000;
}

.video-unavailable {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 12px;
    color: var(--text-secondary);
}

.video-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 12px 0;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.video-meta-bar span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-meta-bar code {
    font-size: 0.75rem;
    background: rgba(6, 182, 212, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--accent-color);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   Enrichment Intelligence Panels
   ═══════════════════════════════════════════════════════════ */

.enrichment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.enrichment-grid > .enrichment-card:last-child {
    grid-column: 1 / -1;
}

.enrichment-card {
    padding: 20px;
}

.enrichment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.enrichment-header h3 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.enrichment-header h3 i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.enrichment-source {
    font-size: 0.72rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.enrichment-narrative {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(6, 182, 212, 0.04);
    border-left: 3px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
}

.enrichment-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.enrichment-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.enrichment-detail-item .detail-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.enrichment-detail-item .detail-label i {
    color: var(--accent-color);
    font-size: 0.85rem;
}

.enrichment-detail-item .detail-value {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-primary, #fff);
}

.enrichment-section {
    margin-bottom: 16px;
}

.enrichment-section:last-child {
    margin-bottom: 0;
}

.enrichment-subtitle {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.enrichment-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Fine details */
.fine-details-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fine-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s ease;
}

.fine-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
}

.fine-card .fine-offence {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary, #fff);
}

.fine-card .fine-section {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.fine-card .fine-amount {
    font-size: 1rem;
    font-weight: 700;
    color: #f59e0b;
}

.fine-card .fine-demerits {
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 600;
}

/* Cross-reference notes */
.crossref-notes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.crossref-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.crossref-note .note-icon {
    flex-shrink: 0;
    font-size: 1rem;
    margin-top: 2px;
}

.crossref-note.confirmed .note-icon { color: #22c55e; }
.crossref-note.discrepancy .note-icon { color: #f59e0b; }
.crossref-note.info .note-icon { color: var(--accent-color); }

.crossref-match-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    font-size: 0.82rem;
}

.match-label {
    color: var(--text-secondary);
}

.match-indicator {
    font-weight: 600;
}

.match-indicator.confirmed { color: #22c55e; }
.match-indicator.discrepancy { color: #f59e0b; }

/* Responsive enrichment panels */
@media (max-width: 768px) {
    .enrichment-grid {
        grid-template-columns: 1fr;
    }
    .enrichment-grid > .enrichment-card:last-child {
        grid-column: auto;
    }
    .enrichment-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .video-meta-bar {
        flex-direction: column;
        gap: 8px;
    }
}
