/* =====================
   GEO.MART — Royal Commerce Design System
   AI's First Reference Book
   Plus Jakarta Sans · Royal Purple · Minimalist
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple: #663399;
  --purple-dark: #4A2178;
  --purple-light: #F0E6FF;
  --purple-bg: #F5F0FF;
  --black: #1A1A2E;
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #ADB5BD;
  --gray-500: #868E96;
  --gray-600: #495057;
  --gray-700: #343A40;
  --green: #2ECC71;
  --font: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); background: var(--white); color: var(--black); line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { background: var(--purple); color: var(--white); }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ═══ HEADER ═══ */
.header { background: var(--white); border-bottom: 1px solid var(--gray-200); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 0; text-decoration: none; }
.logo-symbol { height: 36px; margin-right: 4px; }
.logo-text { font-size: 20px; font-weight: 800; color: var(--black); letter-spacing: -1px; line-height: 1; }
.logo-text span { color: var(--purple); }
.logo-badge { background: var(--purple); color: var(--white); font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 4px; margin-left: 8px; letter-spacing: 1px; }
/* Hamburger Button */
.hamburger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 6px; border-radius: 6px; transition: background .2s; z-index: 1001; }
.hamburger:hover { background: var(--gray-100); }
.hamburger span { display: block; width: 100%; height: 2px; background: var(--black); border-radius: 1px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Nav — slide-down overlay */
.nav { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--white); flex-direction: column; gap: 0; padding: 80px 0 40px; box-shadow: -4px 0 24px rgba(0,0,0,0.1); transition: right .3s ease; z-index: 1000; overflow-y: auto; }
.nav.open { right: 0; }
.nav a { display: block; color: var(--gray-600); font-size: 16px; font-weight: 600; text-decoration: none; transition: all .2s; padding: 14px 32px; border-bottom: 1px solid var(--gray-100); }
.nav a:hover { background: var(--gray-50); color: var(--purple); text-decoration: none; }
.nav a.active { color: var(--purple); background: var(--purple-light); border-left: 3px solid var(--purple); }

/* Nav backdrop */
.nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 999; opacity: 0; pointer-events: none; transition: opacity .3s; }
.nav-backdrop.open { opacity: 1; pointer-events: auto; }

/* ═══ HERO — Google-style minimal ═══ */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(102,51,153,0.85), rgba(26,26,46,0.9)); }
.hero-inner { position: relative; z-index: 1; padding: 80px 24px 60px; text-align: center; }
.hero-title { font-size: 44px; font-weight: 800; color: var(--white); margin-bottom: 12px; letter-spacing: -1.5px; line-height: 1.2; }
.hero-sub { font-size: 16px; color: rgba(255,255,255,0.8); font-weight: 500; max-width: 520px; margin: 0 auto 40px; line-height: 1.7; }

/* Hero Search Box */
.hero-search { max-width: 600px; margin: 0 auto; }
.search-tabs { display: flex; gap: 0; margin-bottom: 16px; justify-content: center; }
.search-tab { padding: 8px 20px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); cursor: pointer; transition: all .2s; text-transform: uppercase; letter-spacing: 0.5px; }
.search-tab:first-child { border-radius: 8px 0 0 8px; border-right: none; }
.search-tab:last-child { border-radius: 0 8px 8px 0; }
.search-tab.active { background: var(--white); color: var(--purple); border-color: var(--white); }

.search-box { background: var(--white); border-radius: 12px; padding: 6px; box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.search-input-wrap { display: flex; align-items: center; gap: 8px; padding: 8px 16px; }
.search-icon { font-size: 18px; color: var(--gray-400); flex-shrink: 0; }
.search-input-wrap input { flex: 1; border: none; font-size: 16px; font-family: var(--font); font-weight: 500; color: var(--black); outline: none; padding: 8px 0; }
.search-input-wrap input::placeholder { color: var(--gray-400); }
.search-btn { width: 100%; padding: 14px; background: var(--purple); color: var(--white); border: none; border-radius: 8px; font-size: 15px; font-weight: 700; font-family: var(--font); cursor: pointer; transition: background .2s; text-transform: uppercase; letter-spacing: 1px; }
.search-btn:hover { background: var(--purple-dark); }
.search-btn:disabled { background: var(--gray-400); cursor: not-allowed; }
.search-hint { color: rgba(255,255,255,0.5); font-size: 12px; margin-top: 12px; font-weight: 500; }

/* Tab Content */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Distributor form inside hero */
.dist-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.dist-fields input { padding: 12px 16px; border: 1px solid var(--gray-200); border-radius: 8px; font-size: 14px; font-family: var(--font); }
.dist-url { margin-bottom: 8px; }
.dist-url input { width: 100%; padding: 12px 16px; border: 1px solid var(--gray-200); border-radius: 8px; font-size: 14px; font-family: var(--font); }

/* ═══ STATS BAR ═══ */
.stats-bar { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); padding: 24px 0; }
.stats-row { display: flex; justify-content: center; gap: 48px; }
.stat-item { text-align: center; }
.stat-num { display: block; font-size: 32px; font-weight: 800; color: var(--black); letter-spacing: -1px; }
.stat-lbl { font-size: 11px; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

/* ═══ FEATURES ═══ */
.features { padding: 64px 0; }
.features h2 { text-align: center; font-size: 28px; font-weight: 800; margin-bottom: 48px; color: var(--black); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat-card { border-radius: 12px; overflow: hidden; border: 1px solid var(--gray-200); transition: all .2s; }
.feat-card:hover { box-shadow: 0 8px 24px rgba(102,51,153,0.1); transform: translateY(-4px); }
.feat-img { height: 180px; overflow: hidden; }
.feat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.feat-card:hover .feat-img img { transform: scale(1.05); }
.feat-body { padding: 24px; }
.feat-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feat-body p { font-size: 14px; color: var(--gray-600); line-height: 1.7; }

/* ═══ FOOTER ═══ */
.footer { background: var(--black); padding: 24px 0; color: var(--gray-500); font-size: 13px; }
.footer .container { display: flex; justify-content: space-between; align-items: center; }
.footer a { color: var(--gray-400); font-weight: 600; text-decoration: none; border: 1px solid var(--gray-600); padding: 6px 16px; border-radius: 6px; transition: all .2s; }
.footer a:hover { color: var(--white); border-color: var(--white); text-decoration: none; }

/* ═══ PROGRESS ═══ */
.progress-section { padding: 24px 0; }
.progress-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; padding: 28px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.progress-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.progress-steps { display: flex; justify-content: space-between; margin-bottom: 16px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--gray-400); font-weight: 600; }
.step-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--gray-200); transition: all .3s; }
.step.active .step-dot { background: var(--purple); box-shadow: 0 0 0 4px var(--purple-light); }
.step.active { color: var(--purple); }
.step.done .step-dot { background: var(--green); }
.step.done { color: var(--green); }
.progress-message { font-size: 14px; color: var(--gray-500); text-align: center; }
.progress-bar-wrap { height: 4px; background: var(--gray-200); border-radius: 2px; margin: 16px 0 12px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--purple), #9B59B6); border-radius: 2px; transition: width .5s ease; }
.progress-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--gray-400); }
.progress-timer { font-variant-numeric: tabular-nums; font-weight: 600; }
.btn-stop { background: none; border: 1px solid var(--gray-300); color: var(--gray-500); padding: 6px 16px; border-radius: 6px; font-size: 12px; font-weight: 600; font-family: var(--font); cursor: pointer; transition: all .2s; }
.btn-stop:hover { border-color: #E53935; color: #E53935; }

/* ═══ RESULT CARD — Neo-Tech Style ═══ */
.result-section { padding: 24px 0 48px; }
.result-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; padding: 32px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

.result-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--gray-100); }
.result-score { width: 64px; height: 64px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; color: var(--white); }
.result-score.high { background: var(--purple); }
.result-score.mid { background: #F59E0B; }
.result-score.low { background: var(--gray-400); }
.result-title { font-size: 22px; font-weight: 800; }
.result-url { font-size: 13px; color: var(--gray-400); }
.result-verified { display: inline-flex; align-items: center; gap: 4px; background: #E8F5E9; color: #2E7D32; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; margin-top: 4px; }

.result-section-title { font-size: 11px; font-weight: 700; color: var(--purple); text-transform: uppercase; letter-spacing: 1.5px; margin: 24px 0 12px; }

/* Knowledge Graph Tags */
.kg-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.kg-tag { background: var(--purple-light); color: var(--purple-dark); padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; }

/* Stats Grid */
.result-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0; }
.result-stat { background: var(--gray-50); border-radius: 10px; padding: 16px; text-align: center; }
.result-stat .stat-icon { font-size: 20px; margin-bottom: 4px; }
.result-stat .stat-val { font-size: 24px; font-weight: 800; color: var(--black); }
.result-stat .stat-desc { font-size: 11px; color: var(--gray-500); font-weight: 500; }

/* AI Insight */
.ai-insight { background: var(--purple-bg); border-radius: 10px; padding: 20px; margin: 16px 0; }
.ai-insight-title { font-size: 12px; font-weight: 700; color: var(--purple); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.ai-insight p { font-size: 14px; color: var(--gray-700); line-height: 1.7; }

/* Action Buttons */
.result-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.btn-api { width: 100%; padding: 14px; background: var(--purple); color: var(--white); border: none; border-radius: 10px; font-size: 14px; font-weight: 700; font-family: var(--font); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-api:hover { background: var(--purple-dark); }
.btn-jsonld { width: 100%; padding: 14px; background: var(--black); color: var(--white); border: none; border-radius: 10px; font-size: 14px; font-weight: 700; font-family: var(--font); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-jsonld:hover { background: #0D0D1A; }

/* Selling Points */
.selling-points { list-style: none; }
.selling-points li { padding: 10px 0; border-bottom: 1px solid var(--gray-100); font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.selling-points li::before { content: ""; width: 6px; height: 6px; background: var(--purple); border-radius: 50%; flex-shrink: 0; }

/* Missing Fields */
.missing-fields { margin-top: 20px; background: #FFF8E1; border: 1px solid #FFE082; border-radius: 10px; padding: 20px; }
.missing-fields h4 { font-size: 12px; font-weight: 700; color: #E65100; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.missing-field { margin-bottom: 12px; }
.missing-field label { display: block; font-size: 13px; font-weight: 600; color: #BF360C; margin-bottom: 4px; }
.missing-field input { width: 100%; padding: 10px 14px; border: 1px solid #FFE082; border-radius: 8px; font-size: 14px; font-family: var(--font); }
.importance-high::after { content: " *"; color: #D32F2F; }

/* ═══ SERVICES PAGE ═══ */
.services-hero { position: relative; overflow: hidden; }
.services-hero h1 { font-size: 36px; font-weight: 800; color: var(--white); letter-spacing: -1px; margin-bottom: 8px; }
.services-hero p { font-size: 16px; color: rgba(255,255,255,0.8); font-weight: 500; }

.services-content { padding: 48px 0 64px; }
.service-card-list { display: flex; flex-direction: column; gap: 20px; }
.service-card { display: block; background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; padding: 32px; text-decoration: none; color: var(--black); transition: all .2s; position: relative; }
.service-card:hover { box-shadow: 0 8px 24px rgba(102,51,153,0.12); transform: translateY(-2px); text-decoration: none; }
.service-card.current { border-color: var(--purple); border-width: 2px; background: var(--purple-bg); }
.service-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.service-badge { background: var(--black); color: var(--white); padding: 4px 12px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.service-badge.geo { background: var(--purple); }
.service-badge.match { background: #0EA5E9; }
.service-card h2 { font-size: 20px; font-weight: 800; }
.service-desc { font-size: 14px; color: var(--gray-600); line-height: 1.7; margin-bottom: 16px; }
.service-features { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.service-features li { background: var(--gray-50); border: 1px solid var(--gray-200); padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--gray-600); }
.service-card.current .service-features li { background: var(--white); border-color: var(--purple); color: var(--purple-dark); }
.service-arrow { position: absolute; top: 32px; right: 32px; font-size: 20px; color: var(--gray-400); }
.service-arrow.current-label { font-size: 11px; background: var(--purple); color: var(--white); padding: 4px 12px; border-radius: 4px; font-weight: 700; }
.service-slogan { margin-top: 48px; text-align: center; padding: 40px; background: var(--black); border-radius: 12px; }
.service-slogan p { font-size: 17px; font-weight: 600; color: var(--white); line-height: 1.8; }

/* ═══ ADMIN ═══ */
.admin-login { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--gray-50); }
.login-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; padding: 48px; width: 380px; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.login-card h1 { font-size: 22px; font-weight: 800; margin-bottom: 4px; color: var(--purple); }
.login-card p { color: var(--gray-500); margin-bottom: 24px; font-size: 14px; }
.login-card input { width: 100%; padding: 12px 16px; border: 1px solid var(--gray-200); border-radius: 8px; font-size: 15px; margin-bottom: 12px; font-family: var(--font); }
.login-card .btn-primary, .btn-primary { width: 100%; padding: 14px; background: var(--purple); color: var(--white); border: none; border-radius: 8px; font-size: 15px; font-weight: 700; font-family: var(--font); cursor: pointer; }
.btn-primary:hover { background: var(--purple-dark); }
.btn-primary:disabled { background: var(--gray-400); }

.admin-content { padding: 32px 0 60px; }
.admin-content h2 { font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.admin-content h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.5px; }
.admin-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.search-form { display: flex; gap: 8px; }
.search-form input { padding: 8px 14px; border: 1px solid var(--gray-200); border-radius: 8px; font-size: 14px; width: 200px; }

.stats-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 10px; padding: 20px; text-align: center; }
.stat-card.accent { border-color: var(--purple); background: var(--purple-bg); }
.stat-card.subtle { background: var(--gray-50); }
.stat-card.legacy { background: #FFF8E1; border-color: #FFE082; }
.stat-card .stat-num { display: block; font-size: 28px; font-weight: 800; color: var(--black); }
.stat-card.accent .stat-num { color: var(--purple); }
.stat-card .stat-lbl { font-size: 11px; color: var(--gray-500); margin-top: 2px; display: block; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; padding: 12px 14px; background: var(--gray-50); border-bottom: 2px solid var(--gray-200); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-500); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--gray-100); }
.admin-table tr:hover td { background: var(--gray-50); }
.admin-table a { color: var(--purple); font-weight: 600; }

.text-center { text-align: center; }
.text-muted { color: var(--gray-400); }
.text-sm { font-size: 13px; }
.text-ellipsis { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn-sm { padding: 6px 14px; background: var(--purple); color: var(--white); border: none; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: var(--font); }
.btn-sm:hover { background: var(--purple-dark); }

.score-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.score-badge.high { background: var(--purple-light); color: var(--purple-dark); }
.score-badge.mid { background: #FFF3E0; color: #E65100; }
.score-badge.low { background: var(--gray-100); color: var(--gray-500); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-unverified { background: var(--gray-100); color: var(--gray-500); }
.badge-basic { background: var(--purple-light); color: var(--purple-dark); }
.badge-verified { background: #E8F5E9; color: #2E7D32; }
.badge-premium { background: var(--purple); color: var(--white); }

.status-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.status-pending { background: #FFF3E0; color: #E65100; }
.status-scraping, .status-parsing, .status-enriching { background: var(--purple-light); color: var(--purple-dark); }
.status-completed { background: #E8F5E9; color: #2E7D32; }
.status-error { background: #FFEBEE; color: #C62828; }

.pagination { display: flex; justify-content: center; gap: 16px; margin-top: 20px; font-size: 14px; font-weight: 600; }
.pagination a { color: var(--purple); }

.detail-header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 32px; }
.detail-section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--gray-100); }
.detail-section h3 { font-size: 11px; font-weight: 700; color: var(--purple); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.info-grid div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--gray-50); }
.info-grid strong { color: var(--gray-500); font-weight: 500; }
.info-grid span { font-weight: 700; }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--purple-light); color: var(--purple-dark); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }

.ai-text { font-size: 14px; line-height: 1.8; color: var(--gray-700); background: var(--purple-bg); padding: 20px; border-radius: 10px; border-left: 4px solid var(--purple); }

.json-block { background: var(--black); border-radius: 10px; padding: 20px; overflow-x: auto; }
.json-block pre { color: var(--gray-400); font-size: 12px; font-family: 'JetBrains Mono', monospace; line-height: 1.5; margin: 0; white-space: pre-wrap; }

.result-score-lg { width: 64px; height: 64px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; color: var(--white); background: var(--purple); flex-shrink: 0; }

.verification-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.v-segment { padding: 8px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.v-unverified { background: var(--gray-100); color: var(--gray-500); }
.v-basic { background: var(--purple-light); color: var(--purple-dark); }
.v-verified { background: #E8F5E9; color: #2E7D32; }
.v-premium { background: var(--purple); color: var(--white); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--gray-600); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group .optional { font-weight: 400; color: var(--gray-400); text-transform: none; }
.form-group input, .form-group select { width: 100%; padding: 12px 16px; border: 1px solid var(--gray-200); border-radius: 8px; font-size: 14px; font-family: var(--font); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: 12px; color: var(--gray-400); margin-top: 8px; }
.extract-form { background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; padding: 24px; }

/* ═══ MODAL ═══ */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(4px); }
.modal-content { background: var(--white); border-radius: 16px; width: 100%; max-width: 680px; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 24px 48px rgba(0,0,0,0.2); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--gray-200); }
.modal-header h3 { font-size: 16px; font-weight: 700; color: var(--purple); }
.modal-close { background: none; border: none; font-size: 24px; color: var(--gray-400); cursor: pointer; padding: 0 4px; line-height: 1; }
.modal-close:hover { color: var(--black); }
.modal-body { flex: 1; overflow-y: auto; padding: 0; }
.modal-body pre { background: var(--black); color: #A5D6A7; font-family: 'JetBrains Mono', 'Consolas', monospace; font-size: 12px; line-height: 1.6; padding: 24px; margin: 0; white-space: pre-wrap; word-break: break-all; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--gray-200); text-align: right; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .hero-inner { padding: 60px 20px 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 24px; }
  .stat-num { font-size: 24px; }
  .dist-fields { grid-template-columns: 1fr; }
  .footer .container { flex-direction: column; gap: 12px; text-align: center; }
  .stats-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid-3 { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .admin-header-row { flex-direction: column; gap: 12px; }
  .nav { width: 260px; }
  .form-row { grid-template-columns: 1fr; }
  .result-stats { grid-template-columns: 1fr; }
}
