/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #0B0F19; color: #E2E8F0; min-height: 100vh; }

/* ══════════════════════════════════════════════════════
   HERO PAGE
══════════════════════════════════════════════════════ */
.hero-page {
  min-height: 100vh;
  background: #0B0F19;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}

/* Animated gradient orbs */
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35; animation: drift 12s ease-in-out infinite; pointer-events: none; }
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, #7C3AED, #4F46E5); top: -200px; left: -150px; animation-delay: 0s; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, #EC4899, #F59E0B); top: 50%; right: -150px; animation-delay: -4s; }
.orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, #06B6D4, #3B82F6); bottom: -100px; left: 30%; animation-delay: -8s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -40px) scale(1.05); }
  66%       { transform: translate(-20px, 30px) scale(0.95); }
}

/* Grid overlay */
.hero-page::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* Hero nav */
.hero-nav { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 3rem; }
.hero-logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; color: white; text-decoration: none; }
.hero-logo-icon { width: 36px; height: 36px; background: linear-gradient(135deg, #6366F1, #EC4899); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.hero-badge { background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.3); color: #A5B4FC; padding: 0.3rem 1rem; border-radius: 20px; font-size: 0.8rem; font-weight: 500; }

/* Hero main */
.hero-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 1.5rem; position: relative; z-index: 10; }

.hero-label { display: inline-flex; align-items: center; gap: 8px; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.25); color: #A5B4FC; padding: 0.4rem 1.2rem; border-radius: 30px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero-label-dot { width: 6px; height: 6px; background: #6366F1; border-radius: 50%; animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.5)} }

.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.1; text-align: center; max-width: 800px; margin-bottom: 1.25rem; }
.hero-title .grad { background: linear-gradient(135deg, #A78BFA, #EC4899, #F59E0B); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.hero-subtitle { font-size: 1.15rem; color: #94A3B8; text-align: center; max-width: 560px; line-height: 1.7; margin-bottom: 3rem; }

/* Entry card */
.entry-card { width: 100%; max-width: 540px; background: rgba(255,255,255,0.04); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; padding: 2.5rem; box-shadow: 0 25px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.07); }

.entry-card h3 { font-size: 1.1rem; font-weight: 600; color: #F1F5F9; margin-bottom: 0.4rem; }
.entry-card p  { font-size: 0.85rem; color: #64748B; margin-bottom: 1.75rem; }

.field-group { margin-bottom: 1.25rem; }
.field-label { display: block; font-size: 0.78rem; font-weight: 600; color: #94A3B8; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.5rem; }

.field-wrap { position: relative; }
.field-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #475569; font-size: 0.9rem; pointer-events: none; }
.field-input { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 0.85rem 1rem 0.85rem 2.6rem; font-size: 0.95rem; color: #F1F5F9; font-family: inherit; transition: all 0.2s; outline: none; }
.field-input::placeholder { color: #475569; }
.field-input:focus { border-color: #6366F1; background: rgba(99,102,241,0.08); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }

.btn-primary { width: 100%; padding: 1rem; background: linear-gradient(135deg, #6366F1, #8B5CF6); border: none; border-radius: 12px; color: white; font-size: 1rem; font-weight: 700; font-family: inherit; cursor: pointer; transition: all 0.25s; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 1.5rem; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(99,102,241,0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.loading { opacity: 0.8; pointer-events: none; }
.btn-arrow { transition: transform 0.2s; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

/* Spinner */
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; display: none; }
.loading .spinner { display: block; }
.loading .btn-text { display: none; }

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

/* Error message */
.err-msg { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #FCA5A5; border-radius: 10px; padding: 0.75rem 1rem; font-size: 0.85rem; margin-top: 1rem; display: none; }
.err-msg.show { display: block; }

/* Trust pills */
.trust-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 2.5rem; }
.trust-pill { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 30px; padding: 0.45rem 1rem; font-size: 0.8rem; color: #94A3B8; }
.trust-pill span { font-size: 0.9rem; }


/* ══════════════════════════════════════════════════════
   APP SHELL (audit, fix, manual, report pages)
══════════════════════════════════════════════════════ */
.app-shell { display: flex; min-height: 100vh; background: #0F172A; }

/* Sidebar */
.sidebar { width: 68px; background: rgba(15,23,42,0.95); border-right: 1px solid rgba(255,255,255,0.06); display: flex; flex-direction: column; align-items: center; padding: 1.2rem 0; position: fixed; top: 0; left: 0; height: 100vh; z-index: 100; }
.sidebar-logo { width: 40px; height: 40px; background: linear-gradient(135deg, #6366F1, #EC4899); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 2rem; flex-shrink: 0; cursor: pointer; text-decoration: none; }
.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; align-items: center; width: 100%; padding: 0 10px; }

.nav-item { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; text-decoration: none; color: #475569; font-size: 1.1rem; position: relative; }
.nav-item:hover { background: rgba(99,102,241,0.15); color: #A5B4FC; }
.nav-item.active { background: rgba(99,102,241,0.2); color: #818CF8; box-shadow: 0 0 0 1px rgba(99,102,241,0.3); }

/* Tooltip on hover */
.nav-item::after { content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); background: #1E293B; color: #E2E8F0; font-size: 0.75rem; font-weight: 500; padding: 0.35rem 0.8rem; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s; border: 1px solid rgba(255,255,255,0.1); font-family: 'Inter',sans-serif; }
.nav-item:hover::after { opacity: 1; }

.sidebar-bottom { display: flex; flex-direction: column; gap: 4px; align-items: center; padding: 0 10px 0.5rem; }

/* Status dot in sidebar */
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #10B981; box-shadow: 0 0 6px #10B981; position: absolute; top: 10px; right: 10px; }

/* Main content */
.main-content { margin-left: 68px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

/* Top bar */
.topbar { background: rgba(15,23,42,0.8); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.06); padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; }
.topbar-left { display: flex; flex-direction: column; }
.topbar-title { font-size: 1.1rem; font-weight: 700; color: #F1F5F9; }
.topbar-sub { font-size: 0.78rem; color: #64748B; margin-top: 1px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.store-badge { display: flex; align-items: center; gap: 8px; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); border-radius: 20px; padding: 0.35rem 1rem; font-size: 0.8rem; color: #6EE7B7; font-weight: 500; }
.store-dot { width: 7px; height: 7px; background: #10B981; border-radius: 50%; animation: pulse-dot 2s ease-in-out infinite; }

/* Page content area */
.page-body { padding: 2rem; flex: 1; }


/* ══════════════════════════════════════════════════════
   METRIC CARDS
══════════════════════════════════════════════════════ */
.metrics-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.metric-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; transition: transform 0.2s; }
.metric-card:hover { transform: translateY(-2px); }
.metric-num { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.metric-lbl { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: #64748B; }
.metric-card.pass .metric-num { color: #10B981; }
.metric-card.warn .metric-num { color: #F59E0B; }
.metric-card.fail .metric-num { color: #EF4444; }
.metric-card.total .metric-num { color: #818CF8; }
.metric-card.pass { border-color: rgba(16,185,129,0.2); background: rgba(16,185,129,0.04); }
.metric-card.warn { border-color: rgba(245,158,11,0.2); background: rgba(245,158,11,0.04); }
.metric-card.fail { border-color: rgba(239,68,68,0.2); background: rgba(239,68,68,0.04); }
.metric-card.total { border-color: rgba(129,140,248,0.2); background: rgba(129,140,248,0.04); }


/* ══════════════════════════════════════════════════════
   VERDICT BANNER
══════════════════════════════════════════════════════ */
.verdict { border-radius: 16px; padding: 1.25rem 1.75rem; margin-bottom: 2rem; display: flex; align-items: center; gap: 16px; }
.verdict-icon { font-size: 2rem; flex-shrink: 0; }
.verdict-text h3 { font-size: 1.1rem; font-weight: 700; }
.verdict-text p { font-size: 0.85rem; opacity: 0.85; margin-top: 2px; }
.verdict.compliant { background: linear-gradient(135deg, rgba(5,150,105,0.2), rgba(16,185,129,0.1)); border: 1px solid rgba(16,185,129,0.3); }
.verdict.compliant h3 { color: #6EE7B7; }
.verdict.warning  { background: linear-gradient(135deg, rgba(217,119,6,0.2), rgba(245,158,11,0.1)); border: 1px solid rgba(245,158,11,0.3); }
.verdict.warning h3  { color: #FCD34D; }
.verdict.critical { background: linear-gradient(135deg, rgba(220,38,38,0.2), rgba(239,68,68,0.1)); border: 1px solid rgba(239,68,68,0.3); }
.verdict.critical h3 { color: #FCA5A5; }


/* ══════════════════════════════════════════════════════
   AUDIT RESULTS
══════════════════════════════════════════════════════ */
.category-section { margin-bottom: 1.5rem; }
.cat-header { display: flex; align-items: center; gap: 12px; padding: 0.9rem 1.2rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; cursor: pointer; transition: all 0.2s; user-select: none; }
.cat-header:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.cat-title { font-size: 0.9rem; font-weight: 600; color: #E2E8F0; flex: 1; }
.cat-counts { display: flex; gap: 6px; }
.cat-badge { font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 20px; }
.cat-badge.fail { background: rgba(239,68,68,0.15); color: #FCA5A5; }
.cat-badge.warn { background: rgba(245,158,11,0.15); color: #FCD34D; }
.cat-badge.pass { background: rgba(16,185,129,0.15); color: #6EE7B7; }
.cat-chevron { color: #475569; font-size: 0.8rem; transition: transform 0.2s; }
.cat-header.open .cat-chevron { transform: rotate(90deg); }

.cat-items { display: none; padding: 0.5rem 0 0; }
.cat-items.open { display: block; }

.check-row { display: flex; align-items: flex-start; gap: 12px; padding: 0.85rem 1.2rem; border-radius: 10px; margin: 3px 0; border-left: 3px solid transparent; transition: background 0.15s; }
.check-row:hover { background: rgba(255,255,255,0.02); }
.check-row.pass { border-left-color: #10B981; }
.check-row.warn { border-left-color: #F59E0B; background: rgba(245,158,11,0.03); }
.check-row.fail { border-left-color: #EF4444; background: rgba(239,68,68,0.04); }
.check-row.info { border-left-color: #818CF8; }
.check-row.locked { border-left-color: #A78BFA; background: rgba(167,139,250,0.04); }

.check-badge { flex-shrink: 0; font-size: 0.68rem; font-weight: 700; padding: 0.25rem 0.65rem; border-radius: 20px; letter-spacing: 0.04em; }
.check-badge.pass { background: rgba(16,185,129,0.15); color: #34D399; }
.check-badge.warn { background: rgba(245,158,11,0.15); color: #FBBF24; }
.check-badge.fail { background: rgba(239,68,68,0.15); color: #F87171; }
.check-badge.info { background: rgba(129,140,248,0.15); color: #A5B4FC; }
.check-badge.locked { background: rgba(167,139,250,0.15); color: #C4B5FD; }

.check-content { flex: 1; min-width: 0; }
.check-name { font-size: 0.88rem; font-weight: 500; color: #E2E8F0; }
.check-detail { font-size: 0.8rem; color: #64748B; margin-top: 2px; }
.check-fix { font-size: 0.78rem; color: #818CF8; margin-top: 4px; display: flex; gap: 6px; align-items: flex-start; }
.check-fix::before { content: '→'; flex-shrink: 0; }


/* ══════════════════════════════════════════════════════
   FIX CARDS
══════════════════════════════════════════════════════ */
.fix-grid { display: flex; flex-direction: column; gap: 1rem; }
.fix-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; overflow: hidden; transition: all 0.2s; }
.fix-card:hover { border-color: rgba(255,255,255,0.14); }
.fix-card.applied { border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.04); }
.fix-card.reverted { opacity: 0.55; }
.fix-card.irreversible { border-color: rgba(239,68,68,0.2); }

.fix-card-header { display: flex; align-items: center; gap: 14px; padding: 1.2rem 1.5rem; }
.fix-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.fix-icon.purple { background: rgba(99,102,241,0.15); }
.fix-icon.green  { background: rgba(16,185,129,0.15); }
.fix-icon.orange { background: rgba(245,158,11,0.15); }
.fix-icon.red    { background: rgba(239,68,68,0.15); }
.fix-icon.blue   { background: rgba(59,130,246,0.15); }
.fix-icon.pink   { background: rgba(236,72,153,0.15); }

.fix-card-title { font-size: 0.95rem; font-weight: 600; color: #F1F5F9; }
.fix-card-sub   { font-size: 0.8rem; color: #64748B; margin-top: 2px; }
.fix-status-badge { margin-left: auto; font-size: 0.72rem; font-weight: 700; padding: 0.3rem 0.9rem; border-radius: 20px; flex-shrink: 0; }
.fix-status-badge.pending  { background: rgba(100,116,139,0.2); color: #94A3B8; }
.fix-status-badge.applied  { background: rgba(16,185,129,0.15); color: #34D399; }
.fix-status-badge.reverted { background: rgba(100,116,139,0.2); color: #94A3B8; }
.fix-status-badge.running  { background: rgba(99,102,241,0.15); color: #A5B4FC; }

.fix-card-body { padding: 0 1.5rem 1.2rem; border-top: 1px solid rgba(255,255,255,0.05); }
.fix-preview { background: rgba(0,0,0,0.25); border-radius: 10px; padding: 1rem; margin: 1rem 0; font-size: 0.82rem; color: #94A3B8; line-height: 1.6; }
.fix-preview strong { color: #E2E8F0; }

.fix-warning { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); border-radius: 10px; padding: 0.85rem 1rem; font-size: 0.83rem; color: #FCA5A5; margin: 0.75rem 0; display: flex; gap: 8px; }

.fix-actions { display: flex; gap: 10px; margin-top: 1rem; align-items: center; flex-wrap: wrap; }
.btn-apply  { background: linear-gradient(135deg, #6366F1, #8B5CF6); color: white; border: none; border-radius: 10px; padding: 0.65rem 1.5rem; font-size: 0.88rem; font-weight: 600; font-family: inherit; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 8px; }
.btn-apply:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(99,102,241,0.3); }
.btn-apply:disabled { opacity: 0.4; pointer-events: none; }
.btn-undo   { background: rgba(100,116,139,0.15); color: #94A3B8; border: 1px solid rgba(100,116,139,0.25); border-radius: 10px; padding: 0.65rem 1.2rem; font-size: 0.88rem; font-weight: 500; font-family: inherit; cursor: pointer; transition: all 0.2s; display: none; }
.btn-undo.show { display: flex; align-items: center; gap: 8px; }
.btn-undo:hover { background: rgba(100,116,139,0.25); color: #E2E8F0; }
.btn-skip   { background: transparent; color: #475569; border: none; font-size: 0.82rem; font-family: inherit; cursor: pointer; padding: 0.5rem; transition: color 0.2s; }
.btn-skip:hover { color: #94A3B8; }

.fix-log { margin-top: 0.75rem; max-height: 120px; overflow-y: auto; }
.fix-log-entry { font-size: 0.78rem; padding: 3px 0; display: flex; gap: 8px; }
.fix-log-ok   { color: #34D399; }
.fix-log-fail { color: #F87171; }
.fix-log-info { color: #818CF8; }

/* Confirm checkbox */
.confirm-wrap { display: flex; align-items: center; gap: 8px; margin: 0.75rem 0; }
.confirm-wrap input[type=checkbox] { width: 16px; height: 16px; cursor: pointer; accent-color: #EF4444; }
.confirm-wrap label { font-size: 0.83rem; color: #94A3B8; cursor: pointer; }

/* T&C modal */
.tnc-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.tnc-modal { background: #1E293B; border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; width: 100%; max-width: 580px; overflow: hidden; }
.tnc-header { padding: 1.5rem 2rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.tnc-header h2 { font-size: 1.15rem; font-weight: 700; color: #F1F5F9; }
.tnc-header p  { font-size: 0.82rem; color: #64748B; margin-top: 4px; }
.tnc-body { padding: 1.5rem 2rem; max-height: 320px; overflow-y: auto; font-size: 0.83rem; color: #94A3B8; line-height: 1.7; }
.tnc-body h4 { color: #CBD5E1; font-size: 0.88rem; margin: 0.8rem 0 0.3rem; }
.tnc-footer { padding: 1.25rem 2rem; border-top: 1px solid rgba(255,255,255,0.07); display: flex; align-items: center; gap: 16px; }
.tnc-footer label { font-size: 0.85rem; color: #94A3B8; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.tnc-footer input { accent-color: #6366F1; }
.btn-tnc-agree { background: linear-gradient(135deg, #6366F1, #8B5CF6); color: white; border: none; border-radius: 10px; padding: 0.7rem 1.8rem; font-size: 0.9rem; font-weight: 600; font-family: inherit; cursor: pointer; transition: all 0.2s; margin-left: auto; }
.btn-tnc-agree:disabled { opacity: 0.4; pointer-events: none; }
.btn-tnc-agree:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(99,102,241,0.3); }


/* ══════════════════════════════════════════════════════
   MANUAL / CHECKLIST
══════════════════════════════════════════════════════ */
.progress-wrap { margin-bottom: 2rem; }
.progress-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.progress-label { font-size: 0.85rem; font-weight: 600; color: #E2E8F0; }
.progress-pct { font-size: 0.85rem; color: #818CF8; font-weight: 700; }
.progress-bar-bg { height: 8px; background: rgba(255,255,255,0.07); border-radius: 20px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, #6366F1, #EC4899); border-radius: 20px; transition: width 0.5s ease; }

.checklist-section { margin-bottom: 1rem; }
.section-head { display: flex; align-items: center; gap: 12px; padding: 0.9rem 1.2rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; cursor: pointer; user-select: none; transition: all 0.2s; }
.section-head:hover { background: rgba(255,255,255,0.05); }
.section-head.open { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom-color: transparent; }
.section-title { flex: 1; font-size: 0.9rem; font-weight: 600; color: #E2E8F0; }
.section-prog { font-size: 0.78rem; color: #64748B; }
.section-body { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07); border-top: none; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; padding: 0.75rem 1.2rem; display: none; }
.section-body.open { display: block; }

.checklist-item { display: flex; align-items: flex-start; gap: 12px; padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.checklist-item:last-child { border-bottom: none; }
.checklist-item input[type=checkbox] { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; cursor: pointer; accent-color: #6366F1; }
.checklist-lbl { font-size: 0.85rem; color: #94A3B8; line-height: 1.5; cursor: pointer; }
.checklist-lbl.checked { color: #6EE7B7; }
.checklist-lbl.attn { color: #FCD34D; }
.attn-tag { font-size: 0.68rem; font-weight: 600; background: rgba(245,158,11,0.15); color: #FCD34D; padding: 0.15rem 0.5rem; border-radius: 10px; margin-left: 6px; vertical-align: middle; }

/* Address compare */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.compare-box { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 1.25rem; }
.compare-box h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #64748B; margin-bottom: 0.75rem; }
.compare-box .field-input { background: rgba(255,255,255,0.06); }
.compare-result { padding: 0.7rem 1rem; border-radius: 10px; font-size: 0.85rem; font-weight: 500; margin-top: 0.5rem; }
.compare-result.match   { background: rgba(16,185,129,0.1); color: #34D399; border: 1px solid rgba(16,185,129,0.2); }
.compare-result.partial { background: rgba(245,158,11,0.1); color: #FBBF24; border: 1px solid rgba(245,158,11,0.2); }
.compare-result.mismatch{ background: rgba(239,68,68,0.1);  color: #F87171; border: 1px solid rgba(239,68,68,0.2); }

/* Uploads */
.upload-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin: 1.5rem 0; }
.upload-box { border: 2px dashed rgba(255,255,255,0.1); border-radius: 14px; padding: 1.5rem 1rem; text-align: center; cursor: pointer; transition: all 0.2s; }
.upload-box:hover { border-color: rgba(99,102,241,0.4); background: rgba(99,102,241,0.05); }
.upload-box p { font-size: 0.8rem; color: #475569; margin-top: 0.5rem; }
.upload-box img { width: 100%; border-radius: 8px; margin-top: 0.5rem; display: none; }

/* ══════════════════════════════════════════════════════
   REPORT PAGE
══════════════════════════════════════════════════════ */
.report-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 2rem; margin-bottom: 1.5rem; }
.report-card h3 { font-size: 1rem; font-weight: 600; color: #E2E8F0; margin-bottom: 0.4rem; }
.report-card p  { font-size: 0.85rem; color: #64748B; line-height: 1.6; }

.report-includes { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.75rem; margin: 1.25rem 0; }
.report-include-item { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: #94A3B8; }
.report-include-item::before { content: '✓'; color: #10B981; font-weight: 700; flex-shrink: 0; }

.btn-download { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(135deg, #6366F1, #8B5CF6); color: white; border: none; border-radius: 12px; padding: 0.9rem 2rem; font-size: 1rem; font-weight: 700; font-family: inherit; cursor: pointer; transition: all 0.25s; text-decoration: none; }
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(99,102,241,0.4); }

/* ══════════════════════════════════════════════════════
   CHANGE LOG
══════════════════════════════════════════════════════ */
.changelog { margin-top: 1.5rem; }
.changelog h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #64748B; margin-bottom: 0.75rem; }
.log-entry { display: flex; align-items: flex-start; gap: 10px; padding: 0.6rem 0.9rem; border-radius: 8px; margin: 3px 0; font-size: 0.8rem; }
.log-entry.ok   { background: rgba(16,185,129,0.07); color: #34D399; border-left: 2px solid #10B981; }
.log-entry.fail { background: rgba(239,68,68,0.07);  color: #F87171; border-left: 2px solid #EF4444; }
.log-entry.info { background: rgba(129,140,248,0.07);color: #A5B4FC; border-left: 2px solid #818CF8; }
.log-entry.undo { background: rgba(100,116,139,0.1); color: #94A3B8; border-left: 2px solid #64748B; }
.log-ts { opacity: 0.6; flex-shrink: 0; font-family: monospace; }

/* ══════════════════════════════════════════════════════
   LOADING OVERLAY
══════════════════════════════════════════════════════ */
.loading-overlay { position: fixed; inset: 0; background: rgba(11,15,25,0.85); backdrop-filter: blur(8px); z-index: 500; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; }
.loading-spinner { width: 52px; height: 52px; border: 3px solid rgba(99,102,241,0.2); border-top-color: #6366F1; border-radius: 50%; animation: spin 0.8s linear infinite; }
.loading-text { font-size: 1rem; color: #94A3B8; font-weight: 500; }
.loading-step { font-size: 0.83rem; color: #475569; }

/* ══════════════════════════════════════════════════════
   MISC UTILS
══════════════════════════════════════════════════════ */
.section-title-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 1.25rem; }
.section-title-bar h2 { font-size: 1.05rem; font-weight: 700; color: #F1F5F9; }
.section-title-bar .count-badge { font-size: 0.75rem; font-weight: 700; background: rgba(129,140,248,0.15); color: #A5B4FC; padding: 0.2rem 0.7rem; border-radius: 20px; }
.divider { height: 1px; background: rgba(255,255,255,0.06); margin: 1.75rem 0; }
.empty-state { text-align: center; padding: 4rem 2rem; color: #475569; }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state p { font-size: 0.9rem; }
.toast { position: fixed; bottom: 2rem; right: 2rem; background: #1E293B; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 0.85rem 1.5rem; font-size: 0.88rem; font-weight: 500; color: #E2E8F0; box-shadow: 0 8px 30px rgba(0,0,0,0.4); z-index: 9999; display: flex; align-items: center; gap: 10px; transform: translateY(100px); opacity: 0; transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: rgba(16,185,129,0.4); }
.toast.error   { border-color: rgba(239,68,68,0.4); }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

@media (max-width: 768px) {
  .metrics-row { grid-template-columns: repeat(2,1fr); }
  .compare-grid { grid-template-columns: 1fr; }
  .upload-grid  { grid-template-columns: 1fr; }
  .report-includes { grid-template-columns: 1fr; }
  .hero-nav { padding: 1rem 1.5rem; }
  .page-body { padding: 1rem; }
}


/* ══════════════════════════════════════════════════════
   APP SHELL v2 — layout additions
══════════════════════════════════════════════════════ */
.app-main { margin-left: 68px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.app-content { padding: 2rem; flex: 1; max-width: 1200px; }

/* Sidebar buttons */
.sidebar-btn { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; text-decoration: none; color: #475569; font-size: 1.1rem; position: relative; }
.sidebar-btn:hover { background: rgba(99,102,241,0.15); color: #A5B4FC; }
.sidebar-btn.active { background: rgba(99,102,241,0.2); color: #818CF8; box-shadow: 0 0 0 1px rgba(99,102,241,0.3); }
.sidebar-btn::after { content: attr(title); position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%); background: #1E293B; color: #E2E8F0; font-size: 0.73rem; font-weight: 500; padding: 0.35rem 0.8rem; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s; border: 1px solid rgba(255,255,255,0.1); font-family: 'Inter',sans-serif; z-index: 200; }
.sidebar-btn:hover::after { opacity: 1; }

/* Topbar extras */
.topbar-store { font-size: 0.78rem; color: #64748B; margin-top: 1px; font-weight: 500; }
.topbar-date  { font-size: 0.8rem; color: #475569; }
.topbar-progress { font-size: 0.8rem; color: #818CF8; font-weight: 600; }
.badge-warn { display: flex; align-items: center; gap: 6px; background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.2); color: #FCD34D; padding: 0.3rem 0.9rem; border-radius: 20px; font-size: 0.78rem; font-weight: 500; }

/* Icon buttons */
.btn-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: #64748B; cursor: pointer; transition: all 0.2s; font-size: 0.95rem; }
.btn-icon:hover { background: rgba(255,255,255,0.1); color: #E2E8F0; }
.btn-icon-sm { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: #64748B; cursor: pointer; transition: all 0.2s; font-size: 0.8rem; }
.btn-icon-sm:hover { background: rgba(255,255,255,0.1); color: #E2E8F0; }

/* Button size variants */
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.82rem; border-radius: 10px; }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.05rem; border-radius: 14px; }
.btn-ghost-sm { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #94A3B8; border-radius: 8px; padding: 0.4rem 0.8rem; font-size: 0.78rem; font-family: inherit; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 6px; }
.btn-ghost-sm:hover { background: rgba(255,255,255,0.1); color: #E2E8F0; }
.btn-revert { background: rgba(100,116,139,0.15); border: 1px solid rgba(100,116,139,0.25); color: #94A3B8; border-radius: 10px; padding: 0.5rem 1rem; font-size: 0.82rem; font-family: inherit; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 6px; }
.btn-revert:hover { background: rgba(100,116,139,0.25); color: #E2E8F0; }

/* CSS variables */
:root { --green:#10B981; --amber:#F59E0B; --red:#EF4444; --indigo:#6366F1; --pink:#EC4899; }

/* ══════════════════════════════════════════════════════
   AUDIT PAGE
══════════════════════════════════════════════════════ */
.audit-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6rem 2rem; gap: 1.5rem; }
.big-spinner { width: 56px; height: 56px; border: 3px solid rgba(99,102,241,0.2); border-top-color: #6366F1; border-radius: 50%; animation: spin 0.8s linear infinite; }
.loading-text { font-size: 1.05rem; color: #94A3B8; font-weight: 500; text-align: center; }
.loading-sub  { font-size: 0.83rem; color: #475569; }

.audit-error { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5rem 2rem; gap: 1rem; color: #F87171; font-size: 1rem; text-align: center; }
.audit-error i { font-size: 2.5rem; opacity: 0.7; }

/* Verdict banner v2 */
.verdict-banner { border-radius: 16px; padding: 1.5rem 2rem; margin-bottom: 2rem; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.verdict-icon { font-size: 2.2rem; flex-shrink: 0; }
.verdict-body { flex: 1; min-width: 200px; }
.verdict-title { font-size: 1.1rem; font-weight: 700; }
.verdict-sub   { font-size: 0.85rem; margin-top: 3px; opacity: 0.8; }
.verdict-actions { flex-shrink: 0; }
.verdict-banner.verdict-good { background: linear-gradient(135deg,rgba(5,150,105,0.18),rgba(16,185,129,0.08)); border: 1px solid rgba(16,185,129,0.3); }
.verdict-banner.verdict-good .verdict-icon,.verdict-banner.verdict-good .verdict-title { color: #34D399; }
.verdict-banner.verdict-warn { background: linear-gradient(135deg,rgba(217,119,6,0.18),rgba(245,158,11,0.08)); border: 1px solid rgba(245,158,11,0.3); }
.verdict-banner.verdict-warn .verdict-icon,.verdict-banner.verdict-warn .verdict-title { color: #FBBF24; }
.verdict-banner.verdict-fail { background: linear-gradient(135deg,rgba(220,38,38,0.18),rgba(239,68,68,0.08)); border: 1px solid rgba(239,68,68,0.3); }
.verdict-banner.verdict-fail .verdict-icon,.verdict-banner.verdict-fail .verdict-title { color: #F87171; }

/* Metric row v2 */
.metric-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.metric-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 1.2rem 1.4rem; display: flex; flex-direction: column; gap: 0.35rem; }
.metric-value { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.metric-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: #64748B; }
.metric-total .metric-value { color: #818CF8; }
.metric-pass  .metric-value { color: #10B981; }
.metric-warn  .metric-value { color: #F59E0B; }
.metric-fail  .metric-value { color: #EF4444; }
.metric-info  .metric-value { color: #60A5FA; }
.metric-pass  { border-color: rgba(16,185,129,0.2); background: rgba(16,185,129,0.04); }
.metric-warn  { border-color: rgba(245,158,11,0.2); background: rgba(245,158,11,0.04); }
.metric-fail  { border-color: rgba(239,68,68,0.2); background: rgba(239,68,68,0.04); }
.metric-total { border-color: rgba(129,140,248,0.2); background: rgba(129,140,248,0.04); }
.metric-info  { border-color: rgba(96,165,250,0.2); background: rgba(96,165,250,0.04); }

/* Score bar */
.score-bar-wrap { margin-bottom: 2rem; }
.score-bar-labels { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.82rem; color: #64748B; font-weight: 500; }
.score-pct { font-weight: 700; color: #E2E8F0; }
.score-bar-track { height: 10px; background: rgba(255,255,255,0.07); border-radius: 20px; overflow: hidden; }
.score-bar-fill  { height: 100%; border-radius: 20px; transition: width 0.8s ease, background 0.4s; }

/* Category sections v2 */
.cat-section { margin-bottom: 1rem; border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; overflow: hidden; }
.cat-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; background: rgba(255,255,255,0.03); cursor: pointer; user-select: none; transition: background 0.2s; gap: 12px; }
.cat-header:hover { background: rgba(255,255,255,0.05); }
.cat-header-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.cat-chevron { color: #475569; font-size: 0.8rem; transition: transform 0.25s; flex-shrink: 0; }
.cat-name { font-size: 0.9rem; font-weight: 600; color: #E2E8F0; }
.cat-badge { font-size: 0.68rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.cat-badge-pass { background: rgba(16,185,129,0.15); color: #34D399; }
.cat-badge-warn { background: rgba(245,158,11,0.15); color: #FCD34D; }
.cat-badge-fail { background: rgba(239,68,68,0.15); color: #F87171; }
.cat-stats { display: flex; gap: 10px; flex-shrink: 0; }
.cs { display: flex; align-items: center; gap: 4px; font-size: 0.78rem; font-weight: 600; }
.cs.pass { color: #34D399; }
.cs.warn { color: #FBBF24; }
.cs.fail { color: #F87171; }
.cat-body { border-top: 1px solid rgba(255,255,255,0.06); }

/* Check rows v2 */
.check-row { display: flex; align-items: flex-start; gap: 12px; padding: 0.85rem 1.25rem; border-left: 3px solid transparent; transition: background 0.15s; }
.check-row:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,0.04); }
.check-row:hover { background: rgba(255,255,255,0.02); }
.check-row.pass { border-left-color: #10B981; }
.check-row.warn { border-left-color: #F59E0B; }
.check-row.fail { border-left-color: #EF4444; background: rgba(239,68,68,0.03); }
.check-row.info { border-left-color: #818CF8; }
.check-icon { flex-shrink: 0; margin-top: 2px; font-size: 0.95rem; }
.check-row.pass .check-icon { color: #34D399; }
.check-row.warn .check-icon { color: #FBBF24; }
.check-row.fail .check-icon { color: #F87171; }
.check-row.info .check-icon { color: #A5B4FC; }
.check-body { flex: 1; min-width: 0; }
.check-name   { font-size: 0.87rem; font-weight: 500; color: #E2E8F0; }
.check-detail { font-size: 0.8rem; color: #64748B; margin-top: 3px; line-height: 1.5; }
.check-fix    { font-size: 0.78rem; color: #818CF8; margin-top: 5px; display: flex; gap: 5px; align-items: flex-start; }
.check-badge  { flex-shrink: 0; font-size: 0.68rem; font-weight: 700; padding: 0.22rem 0.6rem; border-radius: 20px; align-self: flex-start; margin-top: 2px; }
.check-badge.pass { background: rgba(16,185,129,0.15); color: #34D399; }
.check-badge.warn { background: rgba(245,158,11,0.15); color: #FBBF24; }
.check-badge.fail { background: rgba(239,68,68,0.15); color: #F87171; }
.check-badge.info { background: rgba(129,140,248,0.15); color: #A5B4FC; }

/* ══════════════════════════════════════════════════════
   FIX PAGE v2
══════════════════════════════════════════════════════ */
/* T&C Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(8px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.modal-box { background: #1A2234; border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; width: 100%; max-width: 560px; padding: 2.5rem; }
.modal-icon { width: 56px; height: 56px; background: linear-gradient(135deg, #6366F1, #8B5CF6); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: white; margin-bottom: 1.5rem; }
.modal-box h2 { font-size: 1.25rem; font-weight: 700; color: #F1F5F9; margin-bottom: 0.75rem; }
.modal-box p  { font-size: 0.87rem; color: #94A3B8; line-height: 1.6; margin-bottom: 1.5rem; }
.tc-list { list-style: none; margin-bottom: 1.75rem; display: flex; flex-direction: column; gap: 8px; }
.tc-list li { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: #94A3B8; }
.tc-list li i { color: #34D399; font-size: 0.8rem; flex-shrink: 0; }
.tc-check-row { display: flex; align-items: flex-start; gap: 10px; background: rgba(245,158,11,0.07); border: 1px solid rgba(245,158,11,0.2); border-radius: 12px; padding: 1rem; margin-bottom: 1.5rem; }
.tc-check-row input { flex-shrink: 0; margin-top: 2px; accent-color: #6366F1; width: 16px; height: 16px; cursor: pointer; }
.tc-check-row label { font-size: 0.83rem; color: #94A3B8; line-height: 1.5; cursor: pointer; }
.modal-box .btn-primary { margin-top: 0; }
.modal-box .btn-primary:disabled { opacity: 0.4; pointer-events: none; }

/* Fix summary row */
.fix-summary-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.fix-summary-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 1rem 1.25rem; text-align: center; }
.fix-summary-num { font-size: 2rem; font-weight: 800; color: #818CF8; }
.fix-summary-num.green { color: #10B981; }
.fix-summary-num.amber { color: #F59E0B; }
.fix-summary-num.red   { color: #EF4444; }
.fix-summary-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: #64748B; margin-top: 3px; }

/* Change log */
.change-log-header { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #64748B; margin-bottom: 0.5rem; }
.change-log-header i { font-size: 0.85rem; }
.change-log { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 0.75rem; max-height: 180px; overflow-y: auto; margin-bottom: 2rem; }
.log-empty { text-align: center; padding: 1rem; font-size: 0.82rem; color: #475569; display: flex; align-items: center; justify-content: center; gap: 8px; }
.log-entry { display: flex; align-items: flex-start; gap: 8px; padding: 0.45rem 0.6rem; border-radius: 8px; margin: 2px 0; font-size: 0.78rem; }
.log-ok   { background: rgba(16,185,129,0.07); color: #34D399; border-left: 2px solid #10B981; }
.log-fail { background: rgba(239,68,68,0.07); color: #F87171; border-left: 2px solid #EF4444; }
.log-info { background: rgba(129,140,248,0.07); color: #A5B4FC; border-left: 2px solid #818CF8; }
.log-ts { opacity: 0.55; flex-shrink: 0; font-family: monospace; font-size: 0.73rem; }
.log-msg { flex: 1; line-height: 1.4; }

/* Fix cards v2 */
.fix-cards { display: flex; flex-direction: column; gap: 1rem; }
.fix-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; overflow: hidden; transition: all 0.2s; }
.fix-card:hover { border-color: rgba(255,255,255,0.14); }
.fix-card.done { border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.03); }
.fix-card-header { display: flex; align-items: center; gap: 14px; padding: 1.2rem 1.5rem; }
.fix-card-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.fix-card-icon.sev-fail { background: rgba(239,68,68,0.15); color: #F87171; }
.fix-card-icon.sev-warn { background: rgba(245,158,11,0.15); color: #FBBF24; }
.fix-card-title-wrap { flex: 1; min-width: 0; }
.fix-card-title { font-size: 0.95rem; font-weight: 600; color: #F1F5F9; }
.fix-card-sev { font-size: 0.7rem; font-weight: 700; margin-top: 3px; }
.fix-card-sev.fail { color: #F87171; }
.fix-card-sev.warn { color: #FBBF24; }
.fix-card-status { flex-shrink: 0; display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: #64748B; font-weight: 500; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot.pending { background: #475569; }
.status-dot.running { background: #818CF8; animation: pulse-dot 1s ease-in-out infinite; }
.status-dot.done    { background: #10B981; }
.status-dot.failed  { background: #EF4444; }
.fix-card-body { padding: 0 1.5rem 1.25rem; border-top: 1px solid rgba(255,255,255,0.05); }
.fix-desc   { font-size: 0.85rem; color: #94A3B8; line-height: 1.6; margin-top: 1rem; margin-bottom: 0.75rem; }
.fix-impact { font-size: 0.8rem; color: #818CF8; display: flex; gap: 6px; align-items: flex-start; margin-bottom: 0.75rem; }
.fix-card-actions { padding: 0 1.5rem 1.25rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fix-running { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #A5B4FC; }
.spinner-sm { width: 16px; height: 16px; border: 2px solid rgba(129,140,248,0.3); border-top-color: #818CF8; border-radius: 50%; animation: spin 0.7s linear infinite; flex-shrink: 0; }
.fix-done-row { display: flex; align-items: center; gap: 10px; }
.fix-done-msg { font-size: 0.85rem; color: #34D399; display: flex; align-items: center; gap: 6px; }
.fix-fail-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fix-fail-msg { font-size: 0.85rem; color: #F87171; display: flex; align-items: center; gap: 6px; }
.btn-apply { background: linear-gradient(135deg, #6366F1, #8B5CF6); color: white; border: none; border-radius: 10px; padding: 0.65rem 1.4rem; font-size: 0.85rem; font-weight: 600; font-family: inherit; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 8px; }
.btn-apply:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(99,102,241,0.35); }

/* Redirect editor */
.redirect-editor { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 1rem; margin-bottom: 0.75rem; display: flex; flex-direction: column; gap: 8px; }
.redir-header { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #475569; padding: 0 2px; }
.redirect-row { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; align-items: center; }
.redir-from,.redir-to { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 0.55rem 0.75rem; font-size: 0.82rem; color: #F1F5F9; font-family: monospace; outline: none; transition: all 0.2s; }
.redir-from:focus,.redir-to:focus { border-color: #6366F1; box-shadow: 0 0 0 2px rgba(99,102,241,0.15); }
.redir-arrow { color: #475569; font-size: 0.9rem; flex-shrink: 0; text-align: center; }
.remove-row { background: transparent; border: none; color: #475569; cursor: pointer; font-size: 0.85rem; padding: 4px; }
.remove-row:hover { color: #F87171; }

/* ══════════════════════════════════════════════════════
   MANUAL CHECKLIST PAGE v2
══════════════════════════════════════════════════════ */
.manual-intro { display: flex; align-items: flex-start; gap: 12px; background: rgba(99,102,241,0.07); border: 1px solid rgba(99,102,241,0.2); border-radius: 12px; padding: 1rem 1.25rem; font-size: 0.85rem; color: #94A3B8; line-height: 1.6; margin-bottom: 1.25rem; }
.manual-intro i { color: #818CF8; flex-shrink: 0; margin-top: 2px; }
.manual-progress-bar { height: 8px; background: rgba(255,255,255,0.07); border-radius: 20px; overflow: hidden; margin-bottom: 2rem; }
.manual-progress-fill { height: 100%; background: linear-gradient(90deg, #6366F1, #EC4899); border-radius: 20px; transition: width 0.5s ease; }

.cl-section { margin-bottom: 1rem; }
.cl-cat-header { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem 0.5rem; }
.cl-cat-name { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #64748B; }
.cl-cat-count { font-size: 0.78rem; font-weight: 600; color: #818CF8; }
.cl-row { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; margin-bottom: 6px; overflow: hidden; transition: all 0.2s; }
.cl-row:hover { border-color: rgba(255,255,255,0.12); }
.cl-row.cl-done { border-color: rgba(16,185,129,0.25); background: rgba(16,185,129,0.03); }
.cl-row-top { display: flex; align-items: flex-start; gap: 12px; padding: 0.9rem 1rem; }
.cl-checkbox { background: none; border: 2px solid rgba(255,255,255,0.15); border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; font-size: 1.1rem; color: #475569; transition: all 0.2s; margin-top: 1px; }
.cl-checkbox:hover { border-color: #6366F1; color: #818CF8; }
.cl-checkbox.checked { background: rgba(16,185,129,0.15); border-color: #10B981; color: #34D399; }
.cl-row-body { flex: 1; min-width: 0; }
.cl-item-title  { font-size: 0.87rem; font-weight: 500; color: #E2E8F0; line-height: 1.4; }
.cl-item-detail { font-size: 0.78rem; color: #64748B; margin-top: 3px; line-height: 1.5; }
.cl-item-action { font-size: 0.78rem; color: #818CF8; margin-top: 5px; display: flex; align-items: center; gap: 5px; }
.cl-expand-btn { background: none; border: none; color: #475569; cursor: pointer; padding: 4px; font-size: 0.85rem; flex-shrink: 0; transition: all 0.2s; margin-top: 4px; }
.cl-expand-btn:hover { color: #94A3B8; }
.cl-row-extra { border-top: 1px solid rgba(255,255,255,0.06); padding: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cl-label { display: block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #64748B; margin-bottom: 0.4rem; }
.cl-textarea { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 0.7rem; font-size: 0.83rem; color: #E2E8F0; font-family: inherit; resize: vertical; outline: none; min-height: 80px; transition: all 0.2s; }
.cl-textarea:focus { border-color: #6366F1; box-shadow: 0 0 0 2px rgba(99,102,241,0.12); }
.cl-note-wrap,.cl-upload-wrap { display: flex; flex-direction: column; }
.cl-upload-box { border: 2px dashed rgba(255,255,255,0.1); border-radius: 10px; padding: 1.5rem 1rem; text-align: center; cursor: pointer; transition: all 0.2s; min-height: 80px; display: flex; align-items: center; justify-content: center; }
.cl-upload-box:hover { border-color: rgba(99,102,241,0.4); background: rgba(99,102,241,0.05); }
.cl-upload-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #475569; font-size: 0.8rem; }
.cl-upload-placeholder i { font-size: 1.4rem; }
.cl-preview-img { width: 100%; border-radius: 8px; max-height: 120px; object-fit: cover; }

/* ══════════════════════════════════════════════════════
   REPORT PAGE v2
══════════════════════════════════════════════════════ */
.report-builder { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 2.5rem; margin-bottom: 1.5rem; }
.report-hero { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.report-hero-icon { width: 60px; height: 60px; background: linear-gradient(135deg, #6366F1, #8B5CF6); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: white; flex-shrink: 0; }
.report-hero-text h2 { font-size: 1.2rem; font-weight: 700; color: #F1F5F9; margin-bottom: 0.4rem; }
.report-hero-text p  { font-size: 0.87rem; color: #64748B; line-height: 1.6; }
.report-sections h3,.report-extras h3 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #64748B; margin-bottom: 1rem; }
.report-section-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 2rem; }
.rs-item { display: flex; align-items: flex-start; gap: 12px; padding: 0.9rem 1rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; }
.rs-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.rs-icon.green  { color: #34D399; }
.rs-icon.indigo { color: #818CF8; }
.rs-icon.pink   { color: #F472B6; }
.rs-icon.amber  { color: #FBBF24; }
.rs-title { font-size: 0.87rem; font-weight: 600; color: #E2E8F0; }
.rs-desc  { font-size: 0.78rem; color: #64748B; margin-top: 2px; }
.report-extras { margin-bottom: 2rem; }
.optional-tag { font-size: 0.7rem; font-weight: 500; color: #475569; font-style: italic; text-transform: none; letter-spacing: 0; }
.report-generate-row { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; margin-top: 2rem; }
.report-hint { font-size: 0.78rem; color: #475569; display: flex; align-items: center; gap: 6px; }
.report-preview-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 1.5rem; }
.report-preview-card h3 { font-size: 0.9rem; font-weight: 600; color: #94A3B8; margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; }
.rp-stats { display: flex; gap: 1.5rem; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .metric-row { grid-template-columns: repeat(3, 1fr); }
  .fix-summary-row { grid-template-columns: repeat(2, 1fr); }
  .report-section-grid { grid-template-columns: 1fr; }
  .cl-row-extra { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .app-content { padding: 1rem; }
  .verdict-banner { flex-direction: column; }
  .cat-stats { display: none; }
  .report-hero { flex-direction: column; }
}

/* ── Payment modal styles ── */
.modal-box--wide { max-width: 540px; }
.pre-checklist { display:flex; flex-direction:column; gap:12px; margin:20px 0; text-align:left; }
.pre-check-item { display:flex; align-items:flex-start; gap:10px; cursor:pointer; font-size:14px; line-height:1.4; }
.pre-check-item input[type=checkbox] { margin-top:3px; flex-shrink:0; width:16px; height:16px; accent-color:var(--indigo); }
.pre-check-item a { color:var(--indigo); }
.pricing-card { background:rgba(99,102,241,0.06); border:1px solid rgba(99,102,241,0.2); border-radius:12px; padding:20px; margin:16px 0; display:flex; gap:20px; align-items:center; text-align:left; }
.pricing-what { flex-shrink:0; text-align:center; min-width:80px; }
.pricing-badge { font-size:10px; font-weight:700; letter-spacing:1px; color:var(--indigo); background:rgba(99,102,241,0.1); border-radius:20px; padding:2px 8px; margin-bottom:6px; display:inline-block; }
.pricing-amount { font-size:40px; font-weight:800; color:var(--indigo); line-height:1; }
.pricing-desc { font-size:11px; color:#888; margin-top:4px; }
.pricing-includes { list-style:none; padding:0; margin:0; font-size:13px; display:flex; flex-direction:column; gap:7px; }
.pricing-includes li { display:flex; align-items:center; gap:8px; }
.pricing-includes i.fa-check { color:var(--green); font-size:11px; }
.payment-hint { font-size:11px; color:#888; margin-top:10px; }
.fx-hint { display:block; font-size:10.5px; color:#94a3b8; text-align:center; margin:-4px 0 0; line-height:1.4; min-height:14px; }
.modal-icon--payment { background:linear-gradient(135deg,var(--indigo),var(--pink)); }

/* Payment option buttons */
.payment-options { display:flex; flex-direction:column; gap:12px; margin-top:16px; }
.btn-pay { width:100%; padding:14px 20px; border:none; border-radius:10px; font-size:15px; font-weight:600; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; transition:opacity .15s,transform .1s; }
.btn-pay:hover { opacity:.9; transform:translateY(-1px); }
.btn-pay:active { transform:translateY(0); }
.btn-pay:disabled { opacity:.6; cursor:not-allowed; transform:none; }
.btn-pay .spinner { display:none; width:16px; height:16px; border:2px solid rgba(255,255,255,.4); border-top-color:#fff; border-radius:50%; animation:spin .7s linear infinite; }
.btn-pay.loading .btn-text { display:none; }
.btn-pay.loading .spinner { display:block; }
.btn-paypal { background:#003087; color:#fff; }
.btn-paypal:hover { background:#002070; }
.btn-square { background:#3e4348; color:#fff; }
.btn-square:hover { background:#2a2d31; }

/* ══════════════════════════════════════════════════════
   CHAT SUPPORT WIDGET
══════════════════════════════════════════════════════ */
#chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: inherit;
}

/* Bubble button */
#chat-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo, #6366f1), #8b5cf6);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(99,102,241,0.45);
  color: #fff;
  font-size: 22px;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
#chat-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(99,102,241,0.55);
}

/* Ping animation dot */
.chat-bubble-ping {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #0f172a;
  animation: chat-ping 2s ease-in-out infinite;
}
@keyframes chat-ping {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: .6; }
}

/* Chat panel */
#chat-panel {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 340px;
  max-height: 500px;
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chat-slide-in .2s ease-out;
}
@keyframes chat-slide-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header */
#chat-header {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
}
.chat-header-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.chat-header-status {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 5px;
}
.chat-status-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  animation: chat-ping 2s ease-in-out infinite;
}
.chat-header-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background .15s;
}
.chat-header-close:hover { background: rgba(255,255,255,0.25); }

/* Messages area */
#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
#chat-messages::-webkit-scrollbar { width: 4px; }
#chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

/* Message bubbles */
.chat-msg {
  display: flex;
  max-width: 88%;
}
.chat-msg.bot  { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }

.chat-msg-bubble {
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}
.chat-msg.bot .chat-msg-bubble {
  background: rgba(255,255,255,0.07);
  color: #e2e8f0;
  border-bottom-left-radius: 4px;
}
.chat-msg.user .chat-msg-bubble {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg-bubble a { color: #a5b4fc; }

/* Suggestion chips */
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 0 4px 0;
}
.chat-suggest-btn {
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  color: #a5b4fc;
  border-radius: 20px;
  padding: 5px 11px;
  font-size: 12px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.chat-suggest-btn:hover {
  background: rgba(99,102,241,0.22);
  border-color: rgba(99,102,241,0.5);
}

/* Typing indicator */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}
.chat-typing span {
  width: 7px;
  height: 7px;
  background: #94a3b8;
  border-radius: 50%;
  animation: chat-bounce .9s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .30s; }
@keyframes chat-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40%           { transform: translateY(-6px); }
}

/* Input row */
#chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.15);
  flex-shrink: 0;
}
#chat-input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 8px 14px;
  color: #e2e8f0;
  font-size: 13px;
  outline: none;
  transition: border-color .15s;
}
#chat-input::placeholder { color: #64748b; }
#chat-input:focus { border-color: rgba(99,102,241,0.5); }
#chat-send-btn {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .15s, opacity .15s;
}
#chat-send-btn:hover   { transform: scale(1.1); }
#chat-send-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Mobile */
@media (max-width: 480px) {
  #chat-panel {
    width: calc(100vw - 32px);
    right: -12px;
    bottom: 64px;
  }
  #chat-widget { bottom: 16px; right: 16px; }
}
