/* ============================================================
   ScamRisk AI — style.css
   Premium SaaS / Fintech Design System
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --bg:        #F7F9FC;
  --bg-alt:    #EEF2F8;
  --primary:   #2563EB;
  --primary-h: #1D4ED8;
  --secondary: #06B6D4;
  --violet:    #7C3AED;
  --text:      #0F172A;
  --text-muted:#475569;
  --border:    #E2E8F0;
  --white:     #FFFFFF;
  --success:   #10B981;
  --warning:   #F59E0B;
  --danger:    #EF4444;
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow:    0 4px 16px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.04);
  --shadow-lg: 0 16px 40px rgba(15,23,42,.12), 0 4px 12px rgba(15,23,42,.06);
  --radius:    14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --nav-h:     64px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.25;
  font-weight: 700;
}

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,249,252,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.logo-shield { font-size: 24px; }
.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 18px;
  color: var(--text);
}
.logo-accent { color: var(--primary); }
.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-link {
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px; border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
  text-decoration: none;
}
.nav-link:hover { color: var(--text); background: var(--bg-alt); text-decoration: none; }
.nav-cta { color: var(--primary); font-weight: 600; }
.nav-logout { color: var(--danger); }
.nav-logout:hover { background: rgba(239,68,68,.08); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .3s;
}
.nav-mobile {
  display: none;
  flex-direction: column; gap: 2px;
  padding: 12px 24px;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600;
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #1E40AF);
  color: var(--white);
  padding: 10px 20px;
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-h), #1E3A8A);
  box-shadow: 0 4px 16px rgba(37,99,235,.45);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: 10px 20px;
}
.btn-ghost:hover { background: var(--bg-alt); }
.btn-sm { font-size: 13px; padding: 7px 14px; }
.btn-lg { font-size: 15px; padding: 13px 28px; border-radius: 10px; }
.btn-full { width: 100%; }
.btn-analyze {
  width: 100%; padding: 13px 24px; font-size: 15px;
  background: linear-gradient(135deg, var(--violet), var(--primary));
  color: white;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(124,58,237,.3);
  margin-top: 4px;
}
.btn-analyze:hover {
  box-shadow: 0 6px 24px rgba(124,58,237,.45);
  transform: translateY(-1px);
}
.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.hidden { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Glass cards ── */
.glass {
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow);
}

/* ── Main ── */
.main-content { flex: 1; }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  padding: 100px 24px 80px;
  text-align: center;
}
.hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .15; pointer-events: none;
}
.hero-glow-1 {
  width: 500px; height: 500px;
  background: var(--primary);
  top: -100px; left: -100px;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: var(--violet);
  bottom: -80px; right: -80px;
}
.hero-container { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,.1);
  color: var(--primary);
  font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 100px;
  border: 1px solid rgba(37,99,235,.2);
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-muted);
  max-width: 580px; margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 32px;
  margin-top: 56px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-size: 28px; font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ── Sections ── */
.section { padding: 80px 24px; }
.section-alt { background: var(--bg-alt); }
.section-container { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-tag {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); background: rgba(37,99,235,.1);
  padding: 4px 12px; border-radius: 100px;
  margin-bottom: 14px;
}
.section-title { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.section-subtitle { font-size: 16px; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ── Feature Cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon {
  width: 48px; height: 48px;
  font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; margin-bottom: 16px;
}
.feature-icon.danger  { background: rgba(239,68,68,.1); }
.feature-icon.warning { background: rgba(245,158,11,.1); }
.feature-icon.info    { background: rgba(6,182,212,.1); }
.feature-icon.success { background: rgba(16,185,129,.1); }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ── Steps ── */
.steps {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}
.step {
  flex: 1; min-width: 200px; max-width: 300px;
  text-align: center; padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.step-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 12px;
}
.step-content h3 { font-size: 17px; margin-bottom: 8px; }
.step-content p { font-size: 14px; color: var(--text-muted); }
.step-arrow { font-size: 24px; color: var(--border); font-weight: 300; }

/* ── CTA ── */
.cta-section { background: none; }
.cta-card {
  max-width: 700px; margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative; overflow: hidden;
  border: 1px solid rgba(37,99,235,.15);
}
.cta-glow {
  position: absolute;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(37,99,235,.15), transparent 70%);
  top: -100px; right: -100px; pointer-events: none;
}
.cta-card h2 { font-size: 36px; margin-bottom: 14px; }
.cta-card p  { font-size: 16px; color: var(--text-muted); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ── Auth Pages ── */
.auth-section {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  position: relative; overflow: hidden;
}
.auth-glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .12; pointer-events: none;
}
.auth-glow-1 { width: 400px; height: 400px; background: var(--primary); top: -80px; left: -80px; }
.auth-glow-2 { width: 300px; height: 300px; background: var(--violet); bottom: -60px; right: -60px; }
.auth-container { width: 100%; max-width: 440px; position: relative; z-index: 1; }
.auth-card {
  border-radius: var(--radius-lg);
  padding: 40px;
}
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-logo { font-size: 40px; margin-bottom: 12px; }
.auth-title { font-size: 26px; margin-bottom: 8px; }
.auth-subtitle { font-size: 14px; color: var(--text-muted); }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-footer { text-align: center; font-size: 14px; color: var(--text-muted); margin-top: 20px; }
.auth-footer a { font-weight: 600; }
.auth-terms { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 14px; }
.auth-terms a { color: var(--primary); }

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 13px; font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
}
.form-label-link { font-size: 12px; font-weight: 400; color: var(--primary); }
.form-input, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px; color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-textarea { resize: vertical; min-height: 180px; line-height: 1.6; }
.form-hint { font-size: 12px; color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input-wrapper { position: relative; }
.input-wrapper .form-input { padding-right: 44px; }
.input-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 2px;
  display: flex; align-items: center;
  transition: color .2s;
}
.input-eye:hover { color: var(--primary); }
.char-counter { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.char-counter.warn { color: var(--warning); }
.char-counter.error { color: var(--danger); }

/* Password Strength */
.password-strength { margin-top: 6px; }
.strength-bar { height: 4px; background: var(--bg-alt); border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.strength-fill { height: 100%; width: 0; border-radius: 4px; transition: width .3s, background .3s; }
.strength-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* ── Alerts ── */
.alert {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.alert-error { background: rgba(239,68,68,.08); color: #DC2626; border: 1px solid rgba(239,68,68,.2); }
.alert-success { background: rgba(16,185,129,.08); color: #059669; border: 1px solid rgba(16,185,129,.2); }

/* ── Risk Badges ── */
.risk-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; border-radius: 100px;
  white-space: nowrap;
}
.risk-badge-sm { font-size: 11px; padding: 3px 10px; }
.risk-badge-lg { font-size: 16px; padding: 8px 18px; }
.risk-low    { background: rgba(16,185,129,.12);  color: #059669;  border: 1px solid rgba(16,185,129,.25); }
.risk-medium { background: rgba(245,158,11,.12);  color: #D97706;  border: 1px solid rgba(245,158,11,.25); }
.risk-high   { background: rgba(239,68,68,.12);   color: #DC2626;  border: 1px solid rgba(239,68,68,.25); }

/* ── Analyze Layout ── */
.analyze-section {
  min-height: calc(100vh - var(--nav-h));
  padding: 0;
}
.analyze-container {
  display: flex;
  min-height: calc(100vh - var(--nav-h));
}

/* Sidebar */
.analyze-sidebar {
  width: 260px; min-width: 260px;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex; flex-direction: column; gap: 8px;
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.sidebar-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; margin-bottom: 8px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}
.user-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  color: white; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.user-info { display: flex; flex-direction: column; overflow: hidden; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-email { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  padding: 9px 12px; border-radius: var(--radius-sm);
  transition: all .2s; text-decoration: none;
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(37,99,235,.08);
  color: var(--primary);
  text-decoration: none;
}
.sidebar-logout:hover { background: rgba(239,68,68,.08); color: var(--danger); }
.sidebar-history { margin-top: 16px; }
.history-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); padding: 0 4px; margin-bottom: 8px; }
.history-item { padding: 0; border-radius: var(--radius-sm); cursor: pointer; border-bottom: none; }
.history-item:last-child { border-bottom: none; }
.history-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 0; justify-content: flex-start; }
.history-date { font-size: 10px; color: var(--text-muted); margin-left: auto; }
.history-preview { font-size: 12px; color: var(--text-muted); line-height: 1.4; word-break: break-word; }

/* Main analyze area */
.analyze-main {
  flex: 1; padding: 36px 40px;
  max-width: 840px;
  display: flex; flex-direction: column; gap: 24px;
  overflow-y: auto;
}
.analyze-header { }
.analyze-title { font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.analyze-subtitle { font-size: 15px; color: var(--text-muted); }
.analyze-card { border-radius: var(--radius); padding: 28px; }

/* ── Result Card ── */
.result-card {
  border-radius: var(--radius);
  padding: 28px;
  animation: slideUp .4s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.result-card-high   { border-left: 4px solid var(--danger); }
.result-card-medium { border-left: 4px solid var(--warning); }
.result-card-low    { border-left: 4px solid var(--success); }
.result-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.result-verdict { }
.result-scam-type { font-size: 22px; margin-top: 10px; }
.result-gauge { width: 110px; flex-shrink: 0; }
.gauge-svg { width: 110px; }
.gauge-arc { transition: stroke-dashoffset .8s ease; }
.gauge-label { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 800; }
.result-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 12px;
}
.result-triggers { margin-bottom: 20px; }
.triggers-list { display: flex; flex-wrap: wrap; gap: 8px; }
.trigger-tag {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 500;
  background: rgba(239,68,68,.08);
  color: #DC2626; border: 1px solid rgba(239,68,68,.18);
  padding: 5px 12px; border-radius: 100px;
}
.no-triggers { font-size: 14px; color: var(--success); font-weight: 500; }
.result-recommendation { }
.recommendation-text { font-size: 15px; color: var(--text); line-height: 1.65; }

/* ── Tips Card ── */
.tips-card {
  border-radius: var(--radius);
  padding: 24px 28px;
  border-left: 3px solid var(--secondary);
}
.tips-card h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; margin-bottom: 14px; color: var(--text);
}
.tips-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tips-list li {
  font-size: 14px; color: var(--text-muted);
  padding-left: 18px; position: relative;
  line-height: 1.6;
}
.tips-list li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--secondary); font-weight: 600;
}

/* ── Support ── */
.support-section { padding: 0 0 80px; }
.support-hero {
  text-align: center;
  padding: 80px 24px 60px;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--border);
}
.support-title { font-size: clamp(32px,5vw,48px); margin-bottom: 12px; }
.support-subtitle { font-size: 17px; color: var(--text-muted); }
.support-container {
  max-width: 1100px; margin: 40px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start;
}
.support-card { border-radius: var(--radius); padding: 32px; }
.support-card h2 { font-size: 22px; margin-bottom: 6px; }
.support-card h3 { font-size: 18px; margin-bottom: 16px; }
.card-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.support-form { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.support-info { display: flex; flex-direction: column; gap: 20px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 14px 0;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 18px; font-weight: 300;
  color: var(--primary); flex-shrink: 0; margin-left: 8px;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { font-size: 14px; color: var(--text-muted); padding-bottom: 14px; line-height: 1.65; }
.contact-info-card { border-radius: var(--radius); padding: 24px; }
.contact-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--text-muted);
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-item svg { flex-shrink: 0; color: var(--primary); }

/* ── Team ── */
.team-section { padding: 80px 24px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}
.team-card { border-radius: var(--radius); padding: 32px; text-align: center; }
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  color: white; font-weight: 800; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.team-card h3 { font-size: 20px; margin-bottom: 4px; }
.team-role { font-size: 13px; color: var(--primary); font-weight: 600; display: block; margin-bottom: 12px; }
.team-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.team-links { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.team-link {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  background: var(--bg-alt);
  transition: all .2s;
}
.team-link:hover { background: var(--primary); color: white; text-decoration: none; }
.mission-section { }
.mission-card {
  max-width: 760px; margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  border-left: 4px solid var(--primary);
}
.mission-icon { font-size: 40px; margin-bottom: 16px; }
.mission-card h2 { font-size: 28px; margin-bottom: 16px; }
.mission-card p { font-size: 16px; color: var(--text-muted); line-height: 1.75; margin-bottom: 14px; }

/* ── Footer ── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.6);
  padding: 60px 24px 0;
}
.footer-container {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo-text { color: white; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,.5); margin-top: 12px; max-width: 280px; }
.footer-links { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.8); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  padding: 20px 0;
  font-size: 13px; color: rgba(255,255,255,.35);
}

/* ── Error Page ── */
.error-page {
  max-width: 500px; margin: 100px auto; padding: 24px;
  text-align: center;
}
.error-code { font-size: 60px; margin-bottom: 16px; }
.error-page h1 { font-size: 28px; margin-bottom: 10px; }
.error-page p { color: var(--text-muted); font-size: 16px; margin-bottom: 24px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .support-container { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .analyze-container { flex-direction: column; }
  .analyze-sidebar {
    width: 100%; min-width: unset;
    position: static; height: auto;
    flex-direction: row; flex-wrap: wrap;
    border-right: none; border-bottom: 1px solid var(--border);
    padding: 16px;
  }
  .sidebar-header { flex: 1 1 100%; margin-bottom: 0; }
  .sidebar-nav { flex-direction: row; flex: 1 1 100%; }
  .sidebar-history { display: none; }
  .analyze-main { padding: 24px 20px; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .form-row { grid-template-columns: 1fr; }
  .result-header { flex-direction: column; }
  .result-gauge { display: none; }
  .footer-links { flex-direction: column; gap: 24px; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
}
@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
  .analyze-main { padding: 20px 16px; }
  .cta-card { padding: 40px 24px; }
}

/* ── Language Switcher ── */
.lang-switcher {
  position: relative;
  margin-left: 4px;
}
.lang-trigger {
  display: flex; align-items: center; gap: 5px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 13px; font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.lang-trigger:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(37,99,235,.06);
}
.lang-trigger svg { transition: transform .2s; flex-shrink: 0; }
.lang-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 148px;
  overflow: hidden;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s;
  z-index: 200;
}
.lang-dropdown.open {
  opacity: 1; pointer-events: all;
  transform: translateY(0);
}
.lang-option {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 10px 14px;
  font-size: 13px; font-weight: 500; color: var(--text);
  background: none; border: none; cursor: pointer;
  text-align: left;
  transition: background .15s, color .15s;
}
.lang-option:hover { background: var(--bg-alt); color: var(--primary); }
.lang-option.active {
  color: var(--primary);
  background: rgba(37,99,235,.07);
  font-weight: 700;
}
.lang-option.active::after {
  content: '✓';
  margin-left: auto;
  font-size: 12px;
}

/* Mobile lang row */
.mobile-lang {
  display: flex; gap: 4px; flex-wrap: wrap;
  padding: 8px 4px 4px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.mobile-lang-btn {
  flex: 1; min-width: 80px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-alt);
  font-size: 12px; font-weight: 600;
  justify-content: center;
}
.mobile-lang-btn.active {
  border-color: var(--primary);
  background: rgba(37,99,235,.08);
  color: var(--primary);
}

/* ============================================================
   Upload Zone (analyze page — image upload + OCR)
   ============================================================ */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  transition: border-color .2s, background .2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.upload-zone.drag-over {
  border-color: var(--primary);
  background: rgba(37,99,235,.04);
}
.upload-input { display: none; }
.upload-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 32px 24px; text-align: center; color: var(--text-muted);
}
.upload-placeholder svg { opacity: .4; margin-bottom: 4px; }
.upload-main-text { font-size: 14px; font-weight: 600; color: var(--text); }
.upload-sub-text  { font-size: 12px; color: var(--text-muted); }
.upload-pick-btn  { margin-top: 4px; }

.upload-preview {
  display: flex; flex-direction: column; gap: 10px; padding: 16px;
}
.upload-preview img {
  max-height: 180px; width: auto; max-width: 100%;
  border-radius: var(--radius-sm); object-fit: contain;
  border: 1px solid var(--border); align-self: flex-start;
}
.upload-preview-info {
  display: flex; align-items: center; gap: 8px;
}
.upload-filename {
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px;
}
.upload-remove-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 14px; padding: 2px 6px;
  border-radius: var(--radius-sm); transition: color .15s, background .15s;
  flex-shrink: 0;
}
.upload-remove-btn:hover { color: var(--danger); background: rgba(239,68,68,.08); }
.upload-extracting,
.upload-extracted {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-muted);
}
.upload-extracted { color: var(--success); }

.upload-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0; color: var(--text-muted); font-size: 13px;
}
.upload-divider::before,
.upload-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ============================================================
   History Accordion
   ============================================================ */
.history-item {
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  margin-bottom: 8px;
  cursor: pointer;
  transition: background .15s;
  overflow: hidden;
}
.history-item:hover { background: rgba(37,99,235,.04); }
.history-meta {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px 0;
}
.history-date {
  font-size: 11px; color: var(--text-muted); margin-left: auto;
}
.history-delete-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 2px 4px;
  border-radius: 4px; transition: color .15s, background .15s;
  display: flex; align-items: center;
}
.history-delete-btn:hover { color: var(--danger); background: rgba(239,68,68,.08); }
.history-preview {
  font-size: 12px; color: var(--text-muted);
  padding: 4px 10px 8px; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.history-detail {
  border-top: 1px solid var(--border);
  padding: 10px;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 8px;
}
.history-detail.hidden { display: none; }
.history-detail-risk {
  font-size: 12px; font-weight: 600;
  padding: 4px 8px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; gap: 4px; align-self: flex-start;
}
.history-detail-risk.risk-high   { background: rgba(239,68,68,.1);  color: #EF4444; }
.history-detail-risk.risk-medium { background: rgba(245,158,11,.1); color: #F59E0B; }
.history-detail-risk.risk-low    { background: rgba(16,185,129,.1); color: #10B981; }
.history-detail-triggers {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.history-detail-rec {
  font-size: 12px; color: var(--text-muted); margin: 0;
  line-height: 1.5;
}
.btn-open-analysis {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: var(--primary);
  background: rgba(37,99,235,.07); border: none; cursor: pointer;
  border-radius: var(--radius-sm); padding: 5px 10px;
  transition: background .15s; align-self: flex-start;
}
.btn-open-analysis:hover { background: rgba(37,99,235,.14); }

/* ============================================================
   Cases Section (homepage)
   ============================================================ */
.cases-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 8px;
}
@media (max-width: 768px) {
  .cases-grid { grid-template-columns: 1fr; }
}
.cases-col { display: flex; flex-direction: column; gap: 16px; }
.cases-col-header {
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; gap: 8px;
}
.cases-safe-header {
  background: rgba(16,185,129,.1);
  border: 1.5px solid rgba(16,185,129,.25);
  color: #0d9468;
}
.cases-scam-header {
  background: rgba(239,68,68,.08);
  border: 1.5px solid rgba(239,68,68,.2);
  color: #dc2626;
}
.cases-col-label { font-weight: 700; }
.case-card {
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.case-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.case-safe  { border-left: 3px solid var(--success); }
.case-scam  { border-left: 3px solid var(--danger); }
.case-screenshot-placeholder {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 28px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 12px;
  min-height: 80px;
}
.case-screenshot-placeholder img {
  max-width: 100%; border-radius: var(--radius-sm);
}
.case-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.case-title { font-size: 14px; font-weight: 700; margin: 0; }
.case-text {
  font-size: 13px; color: var(--text-muted);
  margin: 0; line-height: 1.55;
}
.case-verdict { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.risk-badge.risk-low    { background: rgba(16,185,129,.12); color: #0d9468;  font-weight: 700; }
.risk-badge.risk-high   { background: rgba(239,68,68,.1);   color: #dc2626;  font-weight: 700; }
.risk-badge.risk-medium { background: rgba(245,158,11,.1);  color: #b45309;  font-weight: 700; }
/* Fix cases screenshots */
.case-screenshot-img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #f8fafc;
  padding: 8px;
  border-bottom: 1px solid var(--border);
}
/* ===============================
   Founder Hero Section
================================ */

.founder-hero-section {
  padding: 100px 24px 120px;
}

.founder-hero-header {
  margin-bottom: 60px;
}

/* layout */

.founder-hero-layout {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 80px;
  align-items: center;
}

/* LEFT SIDE */

.founder-hero-left {
  display: flex;
  justify-content: flex-start;
}

/* photo */

.founder-image-wrap {
  width: 100%;
  max-width: 460px;
  height: 720px;

  border-radius: 28px;
  overflow: hidden;
  position: relative;

  background: #0f172a;

  border: 1px solid rgba(255,255,255,0.6);

  box-shadow:
    0 30px 80px rgba(15,23,42,0.25),
    0 0 40px rgba(37,99,235,0.15);
}

/* cyber border */

.founder-image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;

  border-radius: 28px;

  padding: 1px;

  background: linear-gradient(
    180deg,
    rgba(37,99,235,.45),
    rgba(124,58,237,.18),
    rgba(255,255,255,.08)
  );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;
}

/* image */

.founder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;

  display: block;

  filter: contrast(1.1) brightness(1.08) saturate(1.05);
}

/* glow */

.founder-image-wrap::after {
  content: "";
  position: absolute;

  left: -20%;
  right: -20%;
  bottom: -40px;

  height: 120px;

  background: radial-gradient(
    circle,
    rgba(37,99,235,0.35),
    transparent 70%
  );

  pointer-events: none;
}

/* RIGHT SIDE */

.founder-hero-right {
  max-width: 760px;
}

/* name */

.founder-name {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

/* badge */

.founder-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 16px;

  border-radius: 999px;

  font-size: 13px;
  font-weight: 700;

  color: rgb(255, 255, 255);

  background: linear-gradient(135deg,#eb2525,#00000036);

  box-shadow: 0 10px 28px rgba(37,99,235,.22);

  margin-bottom: 16px;
}

/* university */

.founder-university {
  font-size: 16px;
  color: var(--text-muted);

  margin-bottom: 22px;
}

/* links */

.founder-links {
  justify-content: flex-start;
  gap: 14px;
}

.founder-links .team-link {
  width: 46px;
  height: 46px;
}

/* mission */

.founder-mission-block {
  margin-top: 40px;
}

.founder-mission-icon {
  font-size: 34px;
  margin-bottom: 12px;
}

.founder-mission-title {
  font-size: clamp(30px,4vw,44px);
  margin-bottom: 18px;
}

.founder-mission-text {
  font-size: 18px;
  line-height: 1.9;

  color: var(--text-muted);

  margin-bottom: 18px;
}

/* ===============================
   Responsive
================================ */

@media (max-width: 1100px) {

  .founder-hero-layout {
    grid-template-columns: 420px 1fr;
    gap: 50px;
  }

  .founder-image-wrap {
    max-width: 380px;
    height: 600px;
  }

}

@media (max-width: 900px) {

  .founder-hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .founder-hero-left {
    justify-content: center;
  }

  .founder-image-wrap {
    max-width: 360px;
    height: 520px;
  }

  .founder-hero-right {
    text-align: center;
    margin: 0 auto;
  }

  .founder-links {
    justify-content: center;
  }

}
.hero-telegram{
margin-top:20px;
}

.telegram-btn{
background:#229ED9;
color:white;
border:none;
}

.telegram-btn:hover{
background:#1b8ac7;
transform:translateY(-2px);
}