/* ══════════════════════════════════════════════
   ScamCheck — IT-MASTER CyberAwareness
   Modern SaaS Theme — Teal/Cyan Dark
   ══════════════════════════════════════════════ */

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

:root {
  --bg-deep: #0a0e1a;
  --bg-card: #111827;
  --bg-elevated: #1a2236;
  --bg-input: #0d1220;
  --accent: #06b6d4;
  --accent-bright: #22d3ee;
  --accent-deep: #0891b2;
  --accent-glow: rgba(6, 182, 212, 0.25);
  --accent-2: #8b5cf6;
  --accent-2-glow: rgba(139, 92, 246, 0.2);
  --safe: #34d399;
  --warn: #fbbf24;
  --danger: #f43f5e;
  --info-color: #38bdf8;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-faint: #475569;
  --border: #1e293b;
  --border-hover: #334155;
  --gradient-1: linear-gradient(135deg, #06b6d4, #8b5cf6);
  --gradient-2: linear-gradient(135deg, #0891b2, #06b6d4, #22d3ee);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(6,182,212,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139,92,246,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.spotlight { position: fixed; width: 600px; height: 600px; border-radius: 50%; pointer-events: none; z-index: 0; }
.spotlight-1 { background: radial-gradient(circle, rgba(6,182,212,0.06) 0%, transparent 70%); top: -100px; right: -80px; }
.spotlight-2 { background: radial-gradient(circle, rgba(139,92,246,0.04) 0%, transparent 70%); bottom: -150px; left: -100px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-glow { 0%,100% { box-shadow: 0 0 20px rgba(6,182,212,0.15); } 50% { box-shadow: 0 0 40px rgba(6,182,212,0.3); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ═══ TOP NAVIGATION ═══ */
.top-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,26,0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 56px;
}
.nav-brand {
  font-size: 15px; font-weight: 800; color: #fff;
  text-decoration: none; display: flex; align-items: center; gap: 8px;
  letter-spacing: -0.3px;
}
.nav-brand img { height: 28px; width: auto; border-radius: 4px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 8px 16px; font-size: 13px; font-weight: 600;
  color: var(--text-dim); text-decoration: none;
  border-radius: 8px; transition: all 0.2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--accent-bright); background: rgba(6,182,212,0.08); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 20px;
  padding: 6px 10px; cursor: pointer;
}

/* ═══ LAYOUT ═══ */
.page-wrap { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 36px 24px 40px; }

.header { text-align: center; margin-bottom: 36px; animation: fadeUp 0.6s ease-out; }
.brand { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.brand-icon {
  width: 52px; height: 52px;
  background: var(--gradient-1);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  animation: pulse-glow 3s ease-in-out infinite;
  box-shadow: 0 0 24px rgba(6,182,212,0.2);
}
.brand-name {
  font-size: 34px; font-weight: 900; letter-spacing: -1.5px; color: #fff;
}
.brand-name span {
  background: var(--gradient-1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.tagline {
  font-size: 13px; color: var(--text-dim);
  letter-spacing: 2px; text-transform: uppercase; font-weight: 500;
}
.tagline a { color: var(--accent-bright); text-decoration: none; font-weight: 700; }
.tagline a:hover { color: #fff; }

.main-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; animation: fadeUp 0.6s ease-out 0.1s both; }

/* ═══ SIDEBAR ═══ */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 76px; align-self: start; }

/* CyberAwareness Card */
.aware-card {
  display: block; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; text-decoration: none; color: var(--text);
  transition: all 0.3s;
}
.aware-card:hover {
  border-color: rgba(6,182,212,0.3); transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(6,182,212,0.1);
}
.aware-img { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--border); }
.aware-content { padding: 18px 16px; }
.aware-badge {
  display: inline-block; padding: 3px 10px;
  background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.2);
  border-radius: 100px; font-size: 10px; font-weight: 700;
  color: var(--accent-bright); letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 10px;
}
.aware-title { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.aware-desc { font-size: 12px; color: var(--text-dim); line-height: 1.6; margin-bottom: 14px; }
.aware-btn {
  display: block; width: 100%; text-align: center; padding: 10px;
  background: var(--gradient-1); border-radius: 10px;
  font-size: 13px; font-weight: 700; color: #fff; transition: all 0.3s;
}
.aware-card:hover .aware-btn { box-shadow: 0 4px 16px var(--accent-glow); }

/* E-Learning Card */
.elearn-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px 18px; text-align: center;
}
.elearn-icon { font-size: 32px; margin-bottom: 10px; }
.elearn-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.elearn-desc { font-size: 12px; color: var(--text-dim); line-height: 1.6; margin-bottom: 14px; }
.elearn-btn {
  display: block; width: 100%; padding: 10px;
  background: var(--gradient-1); border-radius: 10px;
  font-size: 13px; font-weight: 700; color: #fff;
  text-decoration: none; text-align: center; transition: all 0.3s;
}
.elearn-btn:hover { box-shadow: 0 4px 16px var(--accent-glow); transform: translateY(-2px); }

/* ═══ MAIN CONTENT ═══ */
.main-content { min-width: 0; }
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px; margin-bottom: 24px;
  transition: border-color 0.3s;
}
.card:focus-within { border-color: rgba(6,182,212,0.3); }
.card-title {
  font-size: 11px; font-weight: 700; color: var(--text-dim);
  letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}

/* Tabs */
.tabs {
  display: flex; gap: 4px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 5px; margin-bottom: 24px;
}
.tab {
  flex: 1; padding: 14px 16px; border: none; border-radius: 10px;
  background: transparent; font-family: 'Outfit', sans-serif;
  font-size: 14px; font-weight: 600; color: var(--text-dim);
  cursor: pointer; transition: all 0.3s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.tab:hover { color: var(--text); background: rgba(6,182,212,0.05); }
.tab.active {
  background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(139,92,246,0.08));
  color: var(--accent-bright);
  box-shadow: 0 2px 12px rgba(6,182,212,0.1);
}

.panel { display: none; animation: fadeUp 0.4s ease-out; }
.panel.active { display: block; }

/* Text Area */
.text-area {
  width: 100%; min-height: 140px; background: var(--bg-input);
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: 18px 20px; font-family: 'Outfit', sans-serif;
  font-size: 15px; color: var(--text); outline: none;
  resize: vertical; transition: all 0.3s; line-height: 1.6;
}
.text-area::placeholder { color: var(--text-faint); }
.text-area:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(6,182,212,0.08); }

/* Upload Grid */
.upload-section { margin-top: 24px; }
.upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.upload-slot {
  aspect-ratio: 1; border: 2px dashed var(--border); border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s; position: relative;
  overflow: hidden; background: var(--bg-input);
}
.upload-slot:hover { border-color: var(--accent); background: rgba(6,182,212,0.03); }
.upload-slot.has-image { border-style: solid; border-color: var(--border-hover); padding: 0; }
.upload-slot-icon { font-size: 28px; margin-bottom: 6px; opacity: 0.5; }
.upload-slot-text { font-size: 11px; color: var(--text-faint); }
.slot-img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.slot-remove {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px;
  border-radius: 50%; background: rgba(0,0,0,0.75); border: none;
  color: #fff; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
}
.upload-slot:hover .slot-remove { opacity: 1; }
.upload-hint { font-size: 12px; color: var(--text-faint); margin-top: 10px; text-align: center; }

/* QR Zone */
.qr-upload-zone {
  border: 2px dashed var(--border); border-radius: 16px;
  padding: 48px 24px; text-align: center; cursor: pointer; transition: all 0.3s;
}
.qr-upload-zone:hover { border-color: var(--accent); background: rgba(6,182,212,0.03); }
.qr-upload-zone.dragover { border-color: var(--accent-bright); background: rgba(6,182,212,0.06); }

/* Scan Button */
.scan-btn {
  width: 100%;
  background: var(--gradient-2);
  background-size: 200% 200%;
  border: none; border-radius: 14px; padding: 18px;
  font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 700;
  color: #fff; cursor: pointer; transition: all 0.3s;
  animation: shimmer 4s ease-in-out infinite;
  margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.scan-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }
.scan-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* Usage Guide */
.usage-guide {
  margin-top: 24px; background: rgba(6,182,212,0.03);
  border: 1px solid rgba(6,182,212,0.1); border-radius: 16px; padding: 24px;
}
.usage-title { font-size: 15px; font-weight: 700; color: var(--accent-bright); margin-bottom: 16px; }
.usage-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.usage-step { display: flex; align-items: flex-start; gap: 12px; }
.step-num {
  width: 28px; height: 28px; background: var(--gradient-1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.step-text { font-size: 13px; color: var(--text-dim); line-height: 1.6; padding-top: 3px; }
.step-text strong { color: var(--text); }
.usage-footer {
  border-top: 1px solid rgba(6,182,212,0.1); padding-top: 16px;
  font-size: 13px; color: var(--text-dim); line-height: 1.7;
}
.usage-footer a { color: var(--accent-bright); text-decoration: none; }
.usage-footer a:hover { color: #fff; }

/* ═══ LOADER ═══ */
.loader { display: none; text-align: center; padding: 50px 0; }
.loader.active { display: block; animation: fadeUp 0.4s ease-out; }
.scan-ring {
  width: 80px; height: 80px; margin: 0 auto 20px;
  border: 3px solid var(--border); border-top-color: var(--accent);
  border-right-color: var(--accent-bright); border-radius: 50%;
  animation: spin 1s linear infinite; position: relative;
}
.scan-ring::after {
  content: ''; position: absolute; inset: 7px;
  border: 2px solid var(--border); border-bottom-color: var(--safe);
  border-radius: 50%; animation: spin 1.5s linear infinite reverse;
}
.loader-text { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--accent-bright); }
.loader-sub { font-size: 13px; color: var(--text-dim); margin-top: 5px; }

/* ═══ RESULTS ═══ */
.results { display: none; }
.results.active { display: block; animation: fadeUp 0.5s ease-out; }

.risk-banner {
  border-radius: 20px; padding: 32px; text-align: center;
  margin-bottom: 24px; border: 1px solid; position: relative; overflow: hidden;
}
.risk-banner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.risk-banner.scam { background: rgba(244,63,94,0.06); border-color: rgba(244,63,94,0.2); }
.risk-banner.scam::before { background: linear-gradient(90deg, var(--danger), #ff0055); }
.risk-banner.suspicious { background: rgba(251,191,36,0.06); border-color: rgba(251,191,36,0.2); }
.risk-banner.suspicious::before { background: linear-gradient(90deg, var(--warn), #ff8800); }
.risk-banner.legit { background: rgba(52,211,153,0.06); border-color: rgba(52,211,153,0.2); }
.risk-banner.legit::before { background: linear-gradient(90deg, var(--safe), var(--accent-bright)); }

.risk-icon { font-size: 44px; margin-bottom: 10px; }
.risk-percent {
  font-family: 'JetBrains Mono', monospace; font-size: 52px;
  font-weight: 900; line-height: 1; margin-bottom: 8px;
}
.risk-banner.scam .risk-percent { color: var(--danger); }
.risk-banner.suspicious .risk-percent { color: var(--warn); }
.risk-banner.legit .risk-percent { color: var(--safe); }
.risk-label { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.risk-summary { font-size: 14px; color: var(--text-dim); line-height: 1.7; max-width: 550px; margin: 0 auto; }

.detail-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.detail-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 22px;
  display: flex; align-items: flex-start; gap: 14px;
  animation: slideUp 0.4s ease-out both;
}
.detail-icon { font-size: 20px; flex-shrink: 0; padding-top: 2px; }
.detail-info { flex: 1; }
.detail-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.detail-desc { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

.tag-danger { color: var(--danger); }
.tag-warning { color: var(--warn); }
.tag-safe { color: var(--safe); }
.tag-info { color: var(--info-color); }

.safety-box {
  background: rgba(52,211,153,0.04); border: 1px solid rgba(52,211,153,0.15);
  border-radius: 16px; padding: 24px; margin-bottom: 24px;
}
.safety-title { font-size: 15px; font-weight: 700; color: var(--safe); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.safety-list { list-style: none; }
.safety-list li { padding: 6px 0 6px 20px; position: relative; font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.safety-list li::before { content: '✓'; position: absolute; left: 0; color: var(--safe); font-weight: 700; }

.raw-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--text-dim); cursor: pointer; transition: all 0.2s;
}
.raw-toggle:hover { border-color: var(--accent); color: var(--accent); }
.raw-response {
  display: none; margin-top: 14px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 14px; padding: 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  line-height: 1.7; color: var(--text-dim); white-space: pre-wrap;
  word-break: break-word; max-height: 350px; overflow-y: auto;
}
.raw-response.active { display: block; }

/* ═══ AWARE LANDING SECTION ═══ */
.aware-landing { margin-top: 48px; padding: 48px 0; border-top: 1px solid var(--border); }
.aware-landing-header { text-align: center; margin-bottom: 40px; }
.aware-landing-badge {
  display: inline-block; padding: 6px 18px;
  background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.2);
  border-radius: 100px; font-size: 12px; font-weight: 700;
  color: var(--accent-bright); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 20px;
}
.aware-landing-title { font-size: 28px; font-weight: 900; color: #fff; margin-bottom: 14px; line-height: 1.3; }
.aware-landing-subtitle { font-size: 15px; color: var(--text-dim); line-height: 1.7; max-width: 650px; margin: 0 auto; }

.aware-threats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.threat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px 20px; text-align: center; transition: all 0.3s;
  display: block;
}
.threat-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.threat-card:hover .threat-name { color: var(--accent-bright); }
.threat-icon { font-size: 36px; margin-bottom: 12px; }
.threat-name { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.threat-desc { font-size: 12px; color: var(--text-dim); line-height: 1.6; }

.aware-landing-cta {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px;
  background: linear-gradient(135deg, #0c1a2e, #0a1628);
  border: 1px solid rgba(6,182,212,0.15); border-radius: 24px;
  padding: 36px; overflow: hidden; align-items: center;
}
.aware-cta-img { width: 100%; border-radius: 16px; }
.aware-cta-title { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.aware-cta-desc { font-size: 14px; color: var(--text-dim); line-height: 1.7; margin-bottom: 18px; }
.aware-cta-features { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 22px; font-size: 13px; color: var(--safe); }
.aware-cta-btn {
  display: inline-block; padding: 16px 32px;
  background: var(--gradient-1); border-radius: 14px;
  font-size: 15px; font-weight: 800; color: #fff;
  text-decoration: none; transition: all 0.3s;
}
.aware-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }

/* ═══ VPN COMPARISON ═══ */
.vpn-compare-section { margin-top: 48px; text-align: center; }
.vpn-compare-title { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.vpn-compare-desc { font-size: 14px; color: var(--text-dim); margin-bottom: 28px; }
.vpn-compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.vpn-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px 20px; text-align: center; transition: all 0.3s;
}
.vpn-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.3); }
.vpn-card-badge {
  display: inline-block; padding: 4px 14px; border-radius: 100px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 14px;
}
.vpn-card-badge.nord { background: rgba(69,130,247,0.12); color: #4582f7; border: 1px solid rgba(69,130,247,0.2); }
.vpn-card-badge.surf { background: rgba(30,215,178,0.12); color: #1ed7b2; border: 1px solid rgba(30,215,178,0.2); }
.vpn-card-badge.pure { background: rgba(139,92,246,0.12); color: var(--accent-2); border: 1px solid rgba(139,92,246,0.2); }
.vpn-card-name { font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 18px; }
.vpn-card-features { text-align: left; margin-bottom: 22px; }
.vpn-card-feat { font-size: 12px; color: var(--text-dim); padding: 5px 0; line-height: 1.5; }
.vpn-card-btn {
  display: block; width: 100%; padding: 14px; border: none; border-radius: 12px;
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 700;
  color: #fff; text-decoration: none; text-align: center; transition: all 0.3s;
}
.vpn-card-btn:hover { transform: translateY(-2px); }
.nord-btn { background: linear-gradient(135deg, #3366ff, #4582f7); }
.nord-btn:hover { box-shadow: 0 8px 24px rgba(69,130,247,0.3); }
.surf-btn { background: linear-gradient(135deg, #17b89c, #1ed7b2); }
.surf-btn:hover { box-shadow: 0 8px 24px rgba(30,215,178,0.3); }
.pure-btn { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.pure-btn:hover { box-shadow: 0 8px 24px rgba(139,92,246,0.3); }

/* ═══ SPONSOR BANNER ═══ */
.sponsor-banner {
  margin-top: 32px; padding: 16px 28px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.sponsor-label {
  font-size: 11px; font-weight: 700; color: var(--text-faint);
  letter-spacing: 2px; text-transform: uppercase; padding: 4px 12px;
  background: rgba(6,182,212,0.08); border-radius: 6px;
}
.sponsor-text { font-size: 14px; color: var(--text-dim); }
.sponsor-text a { color: var(--accent-bright); text-decoration: none; font-weight: 600; }
.sponsor-text a:hover { color: #fff; }

/* ═══ FOOTER ═══ */
.footer {
  text-align: center; padding-top: 28px; margin-top: 28px;
  font-size: 12px; color: var(--text-faint); border-top: 1px solid var(--border);
}
.footer a { color: var(--text-dim); text-decoration: none; }
.footer a:hover { color: var(--accent-bright); }
.footer-brand { color: var(--accent-bright); font-weight: 700; }
.footer .jp-text { font-size: 11px; color: var(--text-faint); margin-top: 4px; }

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; overflow-x: auto; }
  .aware-card { min-width: 260px; }
  .elearn-card { min-width: 200px; }
  .vpn-compare-grid { grid-template-columns: 1fr; }
  .aware-threats-grid { grid-template-columns: repeat(2, 1fr); }
  .aware-landing-cta { grid-template-columns: 1fr; }
  .aware-cta-img { max-height: 200px; object-fit: cover; }
  .nav-links {
    display: none; position: absolute; top: 56px; left: 0; right: 0;
    background: rgba(10,14,26,0.97); flex-direction: column;
    padding: 12px; border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

@media (max-width: 640px) {
  .page-wrap { padding: 24px 16px 40px; }
  .brand-name { font-size: 26px; }
  .card { padding: 24px 18px; }
  .upload-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .risk-percent { font-size: 40px; }
  .sidebar { flex-direction: column; }
  .aware-threats-grid { grid-template-columns: 1fr; }
  .aware-landing-title { font-size: 22px; }
  .sponsor-banner { flex-direction: column; gap: 8px; text-align: center; }
}

/* ═══ WEBGUARD SPECIFIC ═══ */
.scan-section {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px; margin-bottom: 24px; transition: border-color 0.3s;
}
.scan-section:focus-within { border-color: rgba(6,182,212,0.3); box-shadow: 0 0 30px rgba(6,182,212,0.08); }
.input-group { display: flex; gap: 12px; margin-bottom: 20px; }
.url-input {
  flex: 1; background: var(--bg-input); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 16px 20px; font-family: 'JetBrains Mono', monospace;
  font-size: 15px; color: var(--text); outline: none; transition: all 0.3s;
}
.url-input::placeholder { color: var(--text-faint); }
.url-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(6,182,212,0.08); }

.check-options { display: flex; flex-wrap: wrap; gap: 10px; }
.check-tag {
  display: flex; align-items: center; gap: 6px; padding: 8px 16px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 100px; font-size: 13px; color: var(--text-dim);
  cursor: pointer; transition: all 0.2s; user-select: none;
}
.check-tag.active { border-color: rgba(6,182,212,0.4); color: var(--accent-bright); background: rgba(6,182,212,0.06); }
.check-tag:hover { border-color: rgba(6,182,212,0.3); }
.check-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); transition: all 0.2s; }
.check-tag.active .check-dot { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }

.error-msg {
  display: none; background: rgba(244,63,94,0.06); border: 1px solid rgba(244,63,94,0.2);
  border-radius: 12px; padding: 18px 24px; color: var(--danger); font-size: 14px; margin-bottom: 20px;
}
.error-msg.active { display: block; }

.scanner { display: none; text-align: center; padding: 60px 20px; }
.scanner.active { display: block; animation: fadeUp 0.4s ease-out; }
.scan-ring-web {
  width: 100px; height: 100px; margin: 0 auto 24px;
  border: 3px solid var(--border); border-top-color: var(--accent);
  border-right-color: var(--accent-bright); border-radius: 50%;
  animation: spin 1s linear infinite; position: relative;
}
.scan-ring-web::after {
  content: ''; position: absolute; inset: 8px;
  border: 2px solid var(--border); border-bottom-color: var(--safe);
  border-radius: 50%; animation: spin 1.5s linear infinite reverse;
}
.scan-status { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--accent-bright); margin-bottom: 8px; }
.scan-substatus { font-size: 13px; color: var(--text-dim); }

/* Score Card */
.score-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px; text-align: center;
  margin-bottom: 24px; position: relative; overflow: hidden;
  animation: slideUp 0.3s ease-out both;
}
.score-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 20px 20px 0 0; }
.score-card.safe::before { background: linear-gradient(90deg, var(--safe), var(--accent-bright)); }
.score-card.warning::before { background: linear-gradient(90deg, var(--warn), var(--danger)); }
.score-card.danger::before { background: linear-gradient(90deg, var(--danger), #ff0055); }
.score-number { font-size: 72px; font-weight: 900; line-height: 1; margin-bottom: 8px; font-family: 'JetBrains Mono', monospace; }
.score-card.safe .score-number { color: var(--safe); }
.score-card.warning .score-number { color: var(--warn); }
.score-card.danger .score-number { color: var(--danger); }
.score-label { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.score-url { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text-dim); }
.score-summary { margin-top: 12px; color: var(--text-dim); font-size: 14px; line-height: 1.6; }
.score-engines { display: flex; justify-content: flex-start; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.engine-badge { padding: 5px 14px; border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; }
.engine-safe { background: rgba(52,211,153,0.1); color: var(--safe); border: 1px solid rgba(52,211,153,0.2); }
.engine-danger { background: rgba(244,63,94,0.1); color: var(--danger); border: 1px solid rgba(244,63,94,0.2); }
.engine-unknown { background: rgba(6,182,212,0.1); color: var(--accent-bright); border: 1px solid rgba(6,182,212,0.2); }
.engine-ai { background: rgba(56,189,248,0.1); color: var(--info-color); border: 1px solid rgba(56,189,248,0.2); }

/* Detail Cards */
.detail-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; margin-bottom: 12px; overflow: hidden;
  animation: slideUp 0.4s ease-out both; transition: border-color 0.2s;
}
.detail-card:hover { border-color: var(--border-hover); }
.detail-header { display: flex; align-items: center; gap: 12px; padding: 18px 24px; cursor: pointer; transition: background 0.2s; }
.detail-header:hover { background: rgba(6,182,212,0.02); }
.severity-badge { padding: 4px 12px; border-radius: 100px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; flex-shrink: 0; }
.severity-high { background: rgba(244,63,94,0.08); color: var(--danger); border: 1px solid rgba(244,63,94,0.15); }
.severity-medium { background: rgba(251,191,36,0.08); color: var(--warn); border: 1px solid rgba(251,191,36,0.15); }
.severity-low { background: rgba(52,211,153,0.08); color: var(--safe); border: 1px solid rgba(52,211,153,0.15); }
.severity-info { background: rgba(56,189,248,0.08); color: var(--info-color); border: 1px solid rgba(56,189,248,0.15); }
.detail-title { flex: 1; font-weight: 600; font-size: 15px; }
.detail-arrow { color: var(--text-faint); transition: transform 0.3s; font-size: 16px; }
.detail-card.open .detail-arrow { transform: rotate(180deg); color: var(--accent); }
.detail-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.detail-card.open .detail-body { max-height: 2000px; }
.detail-content { padding: 0 24px 20px; font-size: 14px; line-height: 1.7; color: var(--text-dim); }
.detail-content strong { color: var(--text); }

/* Safe Browsing Banner */
.sb-banner { display: flex; align-items: flex-start; gap: 16px; padding: 22px 26px; border-radius: 16px; margin-bottom: 20px; border: 1px solid; animation: slideUp 0.3s ease-out both; }
.sb-icon { font-size: 28px; flex-shrink: 0; padding-top: 2px; }
.sb-content { flex: 1; }
.sb-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.sb-desc { font-size: 13px; opacity: 0.75; line-height: 1.5; }
.sb-danger { background: rgba(244,63,94,0.06); border-color: rgba(244,63,94,0.25); color: var(--danger); }
.sb-safe { background: rgba(52,211,153,0.06); border-color: rgba(52,211,153,0.25); color: var(--safe); }
.sb-unknown { background: rgba(6,182,212,0.06); border-color: rgba(6,182,212,0.2); color: var(--accent-bright); }
.sb-threats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sb-threat-tag { padding: 4px 12px; background: rgba(244,63,94,0.12); border: 1px solid rgba(244,63,94,0.2); border-radius: 100px; font-size: 12px; font-weight: 700; color: var(--danger); }

/* VPN CTA inline */
.vpn-cta {
  background: linear-gradient(135deg, #0c1a2e, #0a1628, #0c1a2e);
  border: 1px solid rgba(6,182,212,0.2); border-radius: 24px;
  padding: 40px 32px; text-align: center; position: relative; overflow: hidden; margin: 24px 0;
}
.vpn-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center top, rgba(6,182,212,0.07) 0%, transparent 70%); pointer-events: none; }
.vpn-cta::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), var(--accent-bright), var(--accent), transparent); }
.vpn-cta-badge { display: inline-block; padding: 5px 14px; background: rgba(6,182,212,0.15); border: 1px solid rgba(6,182,212,0.25); border-radius: 100px; font-size: 11px; font-weight: 700; color: var(--accent-bright); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 18px; }
.vpn-cta-icon { font-size: 38px; margin-bottom: 14px; }
.vpn-cta-title { font-size: 22px; font-weight: 800; margin-bottom: 10px; color: #fff; }
.vpn-cta-desc { font-size: 14px; color: var(--text-dim); line-height: 1.7; max-width: 500px; margin: 0 auto 24px; }
.vpn-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6, var(--accent-bright));
  background-size: 200% 200%; border: none; border-radius: 14px;
  padding: 16px 40px; font-family: 'Outfit', sans-serif; font-size: 15px;
  font-weight: 800; color: #fff; cursor: pointer; transition: all 0.4s;
  text-decoration: none; animation: shimmer 4s ease-in-out infinite;
}
.vpn-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(139,92,246,0.3); }
.vpn-cta-features { display: flex; justify-content: center; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.vpn-feature { font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.vpn-feature-dot { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
.vpn-cta-urgent { border-color: rgba(244,63,94,0.3) !important; }
.vpn-cta-urgent::after { background: linear-gradient(90deg, transparent, var(--danger), var(--accent-bright), var(--danger), transparent) !important; }
