/* ============================================================
   SomTrust — Premium CSS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ---- Variables -------------------------------------------- */
:root {
  --bg:          #0a0c12;
  --bg2:         #0f1219;
  --bg3:         #151923;
  --surface:     #1a2030;
  --surface2:    #202840;
  --border:      rgba(255,255,255,0.07);
  --border2:     rgba(255,255,255,0.12);

  --txt:         #f0f2f8;
  --txt2:        #8b94b0;
  --txt3:        #5a637a;

  --blue:        #3d7fff;
  --purple:      #7c5cfc;
  --cyan:        #22d3ee;
  --green:       #22c55e;
  --yellow:      #eab308;
  --red:         #ef4444;
  --orange:      #f97316;

  --grad-main:   linear-gradient(135deg, #3d7fff 0%, #7c5cfc 50%, #22d3ee 100%);
  --grad-scam:   linear-gradient(135deg, #ef4444, #f97316);
  --grad-legit:  linear-gradient(135deg, #22c55e, #22d3ee);
  --grad-warn:   linear-gradient(135deg, #eab308, #f97316);

  --radius:      16px;
  --radius-sm:   10px;
  --radius-lg:   24px;
  --shadow:      0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:   0 24px 64px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(61,127,255,0.15);

  --nav-h:       64px;
  --bot-nav:     72px;

  font-size: 16px;
}

.light {
  --bg:          #f4f6fb;
  --bg2:         #ffffff;
  --bg3:         #eef1f8;
  --surface:     #ffffff;
  --surface2:    #f0f4ff;
  --border:      rgba(0,0,0,0.07);
  --border2:     rgba(0,0,0,0.12);
  --txt:         #0d1020;
  --txt2:        #4a5272;
  --txt3:        #9aa2c0;
  --shadow:      0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg:   0 24px 64px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 40px rgba(61,127,255,0.08);
}

/* ---- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--txt);
  min-height: 100dvh;
  overflow-x: hidden;
  padding-bottom: calc(var(--bot-nav) + 16px);
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ---- Scrollbar -------------------------------------------- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 99px; }

/* ---- Typography ------------------------------------------- */
h1,h2,h3,h4,h5 { font-family: 'Syne', sans-serif; line-height: 1.2; }
.syne { font-family: 'Syne', sans-serif; }

/* ---- Layout ----------------------------------------------- */
.container { max-width: 600px; margin: 0 auto; padding: 0 16px; }
.section { padding: 28px 0; }

/* ---- Top Navbar ------------------------------------------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(10,12,18,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.light .navbar { background: rgba(244,246,251,0.88); }

.navbar-inner {
  max-width: 600px; margin: 0 auto; padding: 0 16px;
  width: 100%;
  display: flex; align-items: center; gap: 12px;
}

.logo {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.25rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo-icon {
  width: 34px; height: 34px;
  background: var(--grad-main);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(61,127,255,0.4);
}
.logo-icon svg { width: 18px; height: 18px; fill: #fff; }
.logo-text { background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-search-wrap { flex: 1; position: relative; }
.nav-search {
  width: 100%; padding: 9px 14px 9px 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--txt); font-size: 0.88rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.nav-search:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61,127,255,0.15); }
.nav-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--txt3); pointer-events: none; }
.nav-search-icon svg { width: 15px; height: 15px; }

.theme-btn {
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--txt2);
  transition: background .2s, color .2s;
}
.theme-btn:hover { background: var(--surface2); color: var(--txt); }
.theme-btn svg { width: 17px; height: 17px; }

/* ---- Hero ------------------------------------------------- */
.hero {
  padding: 36px 0 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: -40px;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(61,127,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: rgba(61,127,255,0.12);
  border: 1px solid rgba(61,127,255,0.25);
  border-radius: 99px;
  font-size: 0.75rem; font-weight: 600;
  color: var(--blue);
  margin-bottom: 16px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.hero-badge svg { width: 12px; height: 12px; }
.hero h1 {
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.hero h1 span { background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p {
  font-size: 0.95rem; color: var(--txt2); line-height: 1.6;
  max-width: 340px; margin: 0 auto 24px;
}

/* ---- Search Box ------------------------------------------- */
.search-box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  display: flex; align-items: center;
  gap: 10px; padding: 10px 10px 10px 48px;
  box-shadow: var(--shadow), var(--shadow-glow);
  transition: border-color .25s, box-shadow .25s;
}
.search-box:focus-within {
  border-color: var(--blue);
  box-shadow: var(--shadow), 0 0 0 3px rgba(61,127,255,0.2), var(--shadow-glow);
}
.search-box-icon { position: absolute; left: 16px; color: var(--txt3); }
.search-box-icon svg { width: 18px; height: 18px; }
.search-input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 0.97rem; color: var(--txt);
  font-family: 'DM Sans', sans-serif;
}
.search-input::placeholder { color: var(--txt3); }
.search-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  background: var(--grad-main);
  border-radius: 10px;
  color: #fff; font-weight: 600; font-size: 0.9rem;
  font-family: 'Syne', sans-serif;
  transition: opacity .2s, transform .15s;
  box-shadow: 0 4px 20px rgba(61,127,255,0.35);
  white-space: nowrap;
}
.search-btn:hover { opacity: .9; transform: scale(1.02); }
.search-btn:active { transform: scale(.97); }
.search-btn:disabled { opacity: .6; pointer-events: none; }

/* ---- Stat strip ------------------------------------------- */
.stat-strip { display: flex; gap: 12px; margin-top: 20px; }
.stat-chip {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 10px; text-align: center;
}
.stat-chip-val { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--blue); }
.stat-chip-lbl { font-size: 0.72rem; color: var(--txt3); margin-top: 2px; }

/* ---- Loading ---------------------------------------------- */
.loading-wrap {
  display: none; flex-direction: column; align-items: center;
  gap: 16px; padding: 40px 0;
}
.loading-wrap.active { display: flex; }
.spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--surface2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: var(--txt2); font-size: .9rem; }
.loading-dots span { animation: blink 1.2s infinite; }
.loading-dots span:nth-child(2) { animation-delay: .2s; }
.loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100%{opacity:0} 40%{opacity:1} }

/* ---- Result Card ------------------------------------------ */
.result-card {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: slideUp .4s cubic-bezier(0.16,1,0.3,1);
}
.result-card.active { display: block; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-header {
  padding: 24px;
  display: flex; align-items: center; gap: 16px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.result-header::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0.06;
  background: var(--result-grad);
}

.result-ring-wrap { flex-shrink: 0; position: relative; }
.ring-svg { transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--surface2); stroke-width: 5; }
.ring-fill { fill: none; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 283; stroke-dashoffset: 283; transition: stroke-dashoffset 1.2s cubic-bezier(0.16,1,0.3,1), stroke .4s; }
.ring-score {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ring-score-num { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 800; line-height: 1; }
.ring-score-lbl { font-size: 0.6rem; color: var(--txt3); text-transform: uppercase; letter-spacing: 0.06em; }

.result-meta { flex: 1; min-width: 0; position: relative; }
.result-domain {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-bottom: 8px;
}
.verdict-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.verdict-badge.legit { background: rgba(34,197,94,0.15); color: var(--green); border: 1px solid rgba(34,197,94,0.3); }
.verdict-badge.scam  { background: rgba(239,68,68,0.15);  color: var(--red);   border: 1px solid rgba(239,68,68,0.3); }

.risk-row { display: flex; align-items: center; gap: 8px; }
.risk-label { font-size: 0.78rem; color: var(--txt3); }
.risk-pill {
  padding: 3px 10px; border-radius: 99px;
  font-size: 0.73rem; font-weight: 600;
}
.risk-pill.low    { background: rgba(34,197,94,0.12);  color: var(--green); }
.risk-pill.medium { background: rgba(234,179,8,0.12);  color: var(--yellow); }
.risk-pill.high   { background: rgba(239,68,68,0.12);  color: var(--red); }
.risk-pill.unknown{ background: rgba(139,148,176,0.12); color: var(--txt2); }

.result-body { padding: 20px 24px; }
.result-reason {
  font-size: 0.9rem; line-height: 1.65; color: var(--txt2);
  background: var(--bg3);
  border-left: 3px solid var(--blue);
  padding: 12px 14px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 16px;
}

.action-row { display: flex; gap: 8px; flex-wrap: wrap; }
.action-btn {
  flex: 1; min-width: 0;
  padding: 10px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--txt2); font-size: 0.8rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .2s, color .2s, border-color .2s;
}
.action-btn:hover { background: var(--surface); color: var(--txt); border-color: var(--border2); }
.action-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Cached indicator */
.cached-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; color: var(--txt3);
  padding: 3px 8px; background: var(--surface2);
  border-radius: 99px; margin-left: 8px;
}
.cached-tag svg { width: 11px; height: 11px; }

/* ---- Section Header --------------------------------------- */
.sec-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sec-title { font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sec-title svg { width: 18px; height: 18px; color: var(--blue); }
.sec-link { font-size: 0.82rem; color: var(--blue); font-weight: 500; }

/* ---- Review Section --------------------------------------- */
.review-stars { display: flex; gap: 4px; margin: 12px 0; }
.star-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--txt3); background: var(--surface2);
  transition: color .15s, background .15s, transform .1s;
}
.star-btn:hover, .star-btn.active { color: var(--yellow); background: rgba(234,179,8,0.12); }
.star-btn:hover { transform: scale(1.15); }
.star-btn svg { width: 18px; height: 18px; }

.form-group { margin-bottom: 14px; }
.form-label { font-size: 0.8rem; font-weight: 500; color: var(--txt2); margin-bottom: 6px; display: block; }
.form-input, .form-textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--txt); font-size: 0.9rem; font-family: 'DM Sans', sans-serif;
  outline: none; transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(61,127,255,0.15);
}
.form-textarea { min-height: 80px; }

.captcha-row { display: flex; gap: 10px; align-items: flex-end; }
.captcha-q {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 600; font-size: 0.9rem;
  white-space: nowrap; color: var(--txt2);
  display: flex; align-items: center; gap: 6px;
}
.captcha-q svg { width: 15px; height: 15px; color: var(--purple); }
.captcha-input { flex: 1; }
.captcha-refresh {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--txt2); transition: color .2s;
}
.captcha-refresh:hover { color: var(--blue); }
.captcha-refresh svg { width: 16px; height: 16px; }

.submit-btn {
  width: 100%; padding: 13px;
  background: var(--grad-main);
  border-radius: 12px; color: #fff;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 6px 24px rgba(61,127,255,0.3);
  transition: opacity .2s, transform .15s;
  margin-top: 4px;
}
.submit-btn:hover { opacity: .92; transform: translateY(-1px); }
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: .6; pointer-events: none; }

/* Review list */
.review-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.review-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  animation: fadeIn .3s ease;
}
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.review-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.review-name { font-weight: 600; font-size: 0.9rem; }
.review-stars-disp { display: flex; gap: 2px; }
.star-filled { color: var(--yellow); }
.star-empty  { color: var(--txt3); }
.review-stars-disp svg { width: 13px; height: 13px; }
.review-comment { font-size: 0.87rem; color: var(--txt2); line-height: 1.55; }
.review-date { font-size: 0.73rem; color: var(--txt3); margin-top: 6px; }

/* AI Summary */
.ai-summary-box {
  background: linear-gradient(135deg, rgba(61,127,255,0.08), rgba(124,92,252,0.08));
  border: 1px solid rgba(61,127,255,0.2);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.88rem; line-height: 1.65; color: var(--txt2);
  position: relative; overflow: hidden;
  margin-bottom: 16px;
}
.ai-summary-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-main);
}
.ai-label { font-size: 0.72rem; font-weight: 600; color: var(--purple); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.ai-label svg { width: 12px; height: 12px; }

/* Rating summary */
.rating-summary { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.rating-big { font-family: 'Syne', sans-serif; font-size: 2.4rem; font-weight: 800; line-height: 1; }
.rating-right { flex: 1; }
.rating-stars-big { display: flex; gap: 3px; margin-bottom: 4px; }
.rating-stars-big svg { width: 16px; height: 16px; }
.rating-count { font-size: 0.8rem; color: var(--txt3); }

/* ---- Trending --------------------------------------------- */
.trending-grid { display: flex; flex-direction: column; gap: 10px; }
.trend-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  display: flex; align-items: center; gap: 12px;
  transition: border-color .2s, transform .15s;
  cursor: pointer;
}
.trend-item:hover { border-color: var(--border2); transform: translateX(2px); }
.trend-rank { font-family: 'Syne', sans-serif; font-size: 0.78rem; font-weight: 700; color: var(--txt3); min-width: 22px; text-align: center; }
.trend-favicon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.trend-favicon img { width: 20px; height: 20px; }
.trend-info { flex: 1; min-width: 0; }
.trend-domain { font-weight: 600; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trend-sub { font-size: 0.76rem; color: var(--txt3); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.trend-scans { display: flex; align-items: center; gap: 3px; }
.trend-scans svg { width: 11px; height: 11px; }
.trend-verdict { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; }
.trend-verdict.legit { color: var(--green); }
.trend-verdict.scam  { color: var(--red); }
.trend-score {
  font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700;
  flex-shrink: 0; text-align: center;
}
.trend-score.high   { color: var(--green); }
.trend-score.medium { color: var(--yellow); }
.trend-score.low    { color: var(--red); }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- Bottom Nav ------------------------------------------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: var(--bot-nav);
  background: rgba(10,12,18,0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--border);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.light .bottom-nav { background: rgba(244,246,251,0.9); }

.nav-items { display: flex; width: 100%; }
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px;
  color: var(--txt3); font-size: 0.68rem; font-weight: 500;
  transition: color .2s;
  padding: 8px 0;
  position: relative;
}
.nav-item.active { color: var(--blue); }
.nav-item svg { width: 22px; height: 22px; }
.nav-item-indicator {
  position: absolute; top: 8px;
  width: 20px; height: 2px; border-radius: 2px;
  background: var(--grad-main);
  opacity: 0; transition: opacity .2s;
}
.nav-item.active .nav-item-indicator { opacity: 1; }

/* ---- Toast ------------------------------------------------ */
.toast-container { position: fixed; top: calc(var(--nav-h) + 12px); right: 12px; left: 12px; z-index: 999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 0.87rem; display: flex; align-items: center; gap: 10px;
  animation: toastIn .3s cubic-bezier(0.16,1,0.3,1);
  pointer-events: auto;
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--blue); }
.toast svg { width: 16px; height: 16px; flex-shrink: 0; }
.toast.success svg { color: var(--green); }
.toast.error   svg { color: var(--red); }
.toast.info    svg { color: var(--blue); }
@keyframes toastIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } }

/* ---- Pages (view switching) ------------------------------- */
.page { display: none; }
.page.active { display: block; }

/* ---- Empty state ------------------------------------------ */
.empty-state {
  text-align: center; padding: 36px 20px;
  color: var(--txt3);
}
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 12px; opacity: .4; }
.empty-state p { font-size: .88rem; }

/* ---- Error banner ----------------------------------------- */
.error-banner {
  display: none;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--red); font-size: .87rem;
  gap: 8px; align-items: center; margin-top: 12px;
}
.error-banner.active { display: flex; }
.error-banner svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---- Safe check button ------------------------------------ */
.quick-check-btn {
  width: 100%; padding: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--txt2); font-size: 0.88rem; font-weight: 500;
  transition: background .2s, border-color .2s;
  margin-top: 10px;
}
.quick-check-btn:hover { background: var(--surface2); border-color: var(--border2); }
.quick-check-btn svg { width: 16px; height: 16px; color: var(--green); }

/* ---- Share row -------------------------------------------- */
.share-row { display: flex; gap: 8px; }
.share-btn {
  flex: 1; padding: 10px 8px;
  border-radius: 10px;
  font-size: 0.8rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--border); color: var(--txt2);
  transition: background .2s, color .2s;
}
.share-btn:hover { background: var(--surface2); }
.share-btn.wa  { color: #25d366; border-color: rgba(37,211,102,0.25); }
.share-btn.tg  { color: #229ed9; border-color: rgba(34,158,217,0.25); }
.share-btn.cp  { color: var(--blue); border-color: rgba(61,127,255,0.25); }
.share-btn svg { width: 16px; height: 16px; }

/* ---- Profile Page ----------------------------------------- */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px; text-align: center;
  margin-bottom: 20px;
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 20px;
  background: var(--grad-main);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: #fff;
}
.profile-name { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700; }
.profile-sub  { font-size: .83rem; color: var(--txt3); margin-top: 4px; }
.profile-stats { display: flex; gap: 12px; margin-top: 20px; }
.profile-stat { flex: 1; background: var(--bg3); border-radius: 12px; padding: 12px; }
.profile-stat-val { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--blue); }
.profile-stat-lbl { font-size: .73rem; color: var(--txt3); margin-top: 2px; }

.settings-list { display: flex; flex-direction: column; gap: 2px; }
.settings-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s;
}
.settings-item:hover { background: var(--surface2); }
.settings-item-left { display: flex; align-items: center; gap: 12px; }
.settings-item-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
}
.settings-item-icon svg { width: 17px; height: 17px; }
.settings-item-label { font-size: .9rem; font-weight: 500; }
.settings-item-arrow { color: var(--txt3); }
.settings-item-arrow svg { width: 16px; height: 16px; }

/* ---- Toggle ---------------------------------------------- */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--surface2); border-radius: 99px;
  transition: background .25s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; border-radius: 50%;
  left: 3px; top: 3px; background: #fff;
  transition: transform .25s;
}
input:checked + .toggle-slider { background: var(--blue); }
input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ---- Utilities -------------------------------------------- */
.mt4  { margin-top: 4px; }
.mt8  { margin-top: 8px; }
.mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; }
.mt20 { margin-top: 20px; }
.mb16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ---- Divider ---------------------------------------------- */
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ---- Related sites ---------------------------------------- */
.related-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.related-chip {
  padding: 6px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: .8rem; color: var(--txt2);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.related-chip:hover { background: var(--surface); color: var(--blue); border-color: rgba(61,127,255,.3); }

/* ---- Responsive ------------------------------------------- */
@media (max-width: 380px) {
  .search-btn { padding: 10px 14px; font-size: .83rem; }
  .result-ring-wrap { display: none; }
}
