/* ===================================================================
   Seyed Mohammad Hossein Taheri — Persian RTL Dark Developer Portfolio
   =================================================================== */

:root{
  --bg:#0A0A0A;
  --card:#111111;
  --card-2:#151515;
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.14);
  --text:#FFFFFF;
  --text-secondary:#888888;
  --text-muted:#5c5c5c;
  --accent:#00FF88;
  --accent-2:#00D9FF;
  --accent-soft: rgba(0,255,136,.10);
  --accent-2-soft: rgba(0,217,255,.10);
  --radius-sm:10px;
  --radius-md:16px;
  --radius-lg:22px;
  --shadow-soft: 0 4px 24px rgba(0,0,0,.35);
  --font-fa:'Vazirmatn', 'Tahoma', sans-serif;
  --font-mono:'JetBrains Mono','Consolas', monospace;
  --container: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-fa);
  direction:rtl;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul,ol{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p{ margin:0; }
button{ font-family:inherit; }

.skip-link{
  position:absolute; right:-999px; top:0; z-index:200;
  background:var(--accent); color:#001a0d; padding:10px 16px; border-radius:0 0 10px 10px;
}
.skip-link:focus{ right:0; }

:focus-visible{ outline:2px solid var(--accent-2); outline-offset:3px; border-radius:6px; }

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}

/* ===== Background FX ===== */
.bg-fx{ position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.bg-grid{
  position:absolute; inset:-2px;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size:42px 42px;
  mask-image: radial-gradient(circle at 50% 0%, rgba(0,0,0,.9), transparent 75%);
}
.bg-glow{ position:absolute; width:640px; height:640px; border-radius:50%; filter:blur(120px); opacity:.16; }
.bg-glow--1{ background:var(--accent); top:-220px; right:-160px; }
.bg-glow--2{ background:var(--accent-2); bottom:-260px; left:-200px; opacity:.12; }
.bg-code{
  position:absolute; top:8%; left:2%; width:340px;
  font-family:var(--font-mono); font-size:12px; line-height:1.9; color:var(--accent);
  opacity:.05; white-space:pre; direction:ltr; text-align:left;
}
@media (max-width:900px){ .bg-code{ display:none; } }

/* ===== Header ===== */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(10,10,10,.72);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid var(--border);
  transition:background .3s ease, border-color .3s ease;
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:72px; gap:24px;
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:700; font-size:17px; }
.brand-logo{
  width:36px; height:36px; border-radius:8px;
  object-fit:cover; object-position:center;
  border:1px solid rgba(180,0,0,.35);
  box-shadow:0 0 10px rgba(180,0,0,.25), 0 0 3px rgba(180,0,0,.15) inset;
  transition:box-shadow .3s, transform .3s;
  flex-shrink:0;
}
.brand:hover .brand-logo{
  box-shadow:0 0 18px rgba(200,0,0,.55), 0 0 6px rgba(200,0,0,.3) inset;
  transform:scale(1.08);
}
.brand-name{ font-family:var(--font-mono); letter-spacing:.2px; }

.main-nav ul{ display:flex; align-items:center; gap:6px; }
.nav-link{
  display:inline-block; padding:9px 14px; border-radius:999px;
  font-size:14.5px; color:var(--text-secondary); transition:color .2s, background .2s;
}
.nav-link:hover, .nav-link.active{ color:var(--text); background:rgba(255,255,255,.05); }

.header-actions{ display:flex; align-items:center; gap:14px; }
.status-badge{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12.5px; color:var(--accent);
  background:var(--accent-soft); border:1px solid rgba(0,255,136,.25);
  padding:7px 14px; border-radius:999px; white-space:nowrap;
}
.status-dot{
  width:7px; height:7px; border-radius:50%; background:var(--accent);
  box-shadow:0 0 0 0 rgba(0,255,136,.6); animation:pulse 2.2s infinite;
}
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(0,255,136,.55); }
  70%{ box-shadow:0 0 0 8px rgba(0,255,136,0); }
  100%{ box-shadow:0 0 0 0 rgba(0,255,136,0); }
}

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:40px; height:40px; border-radius:10px; border:1px solid var(--border);
  background:var(--card); cursor:pointer;
}
.nav-toggle span{ width:18px; height:2px; background:var(--text); margin:0 auto; transition:transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.mobile-nav{
  display:none; max-height:0; overflow:hidden;
  border-top:1px solid var(--border);
  transition:max-height .3s ease;
}
.mobile-nav.open{ max-height:calc(100vh - 72px); overflow-y:auto; }
.mobile-nav ul{ padding:10px 24px; display:flex; flex-direction:column; }
.mobile-nav-link{ display:block; padding:13px 4px; font-size:15.5px; color:var(--text-secondary); border-bottom:1px solid var(--border); }
.mobile-nav-link:hover{ color:var(--text); }
.status-badge--mobile{ margin:14px 24px 18px; }

@media (max-width:900px){
  .main-nav{ display:none; }
  .header-actions .status-badge{ display:none; }
  .nav-toggle{ display:flex; }
  .mobile-nav{ display:block; }
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 24px; border-radius:12px; font-size:14.5px; font-weight:600;
  border:1px solid transparent; transition:transform .2s, box-shadow .2s, background .2s, border-color .2s;
  cursor:pointer; white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:linear-gradient(135deg, var(--accent), var(--accent-2)); color:#001a0d; box-shadow:0 8px 24px rgba(0,255,136,.18); }
.btn-primary:hover{ box-shadow:0 10px 30px rgba(0,255,136,.28); }
.btn-secondary{ background:var(--card); color:var(--text); border-color:var(--border-strong); }
.btn-secondary:hover{ border-color:var(--accent-2); color:var(--accent-2); }
.btn-ghost{ background:transparent; color:var(--text-secondary); border-color:var(--border); }
.btn-ghost:hover{ color:var(--text); border-color:var(--border-strong); }

/* ===== Hero ===== */
.hero{ position:relative; padding:76px 0 60px; min-height:88vh; display:flex; align-items:center; }
.hero-inner{
  display:grid; grid-template-columns:1.15fr .85fr; gap:56px; align-items:center;
}
.hero-eyebrow{ color:var(--accent-2); font-size:14px; font-weight:600; margin-bottom:14px; }
.hero-title{
  font-size:clamp(34px, 5vw, 56px); font-weight:800; line-height:1.2; margin-bottom:16px;
  background:linear-gradient(90deg, #fff 55%, var(--accent));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-subtitle{ font-size:clamp(16px, 2.2vw, 20px); color:var(--text); font-weight:500; margin-bottom:10px; }
.hero-stack{ font-family:var(--font-mono); font-size:13.5px; color:var(--accent-2); direction:ltr; text-align:right; margin-bottom:18px; letter-spacing:.2px; }
.hero-desc{ color:var(--text-secondary); font-size:16px; max-width:560px; margin-bottom:32px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:12px; }

.hero-visual{ display:flex; flex-direction:column; align-items:center; gap:28px; }

.profile-frame{
  position:relative; width:200px; height:200px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:radial-gradient(circle at 50% 30%, rgba(0,255,136,.08), transparent 60%), var(--card);
  border:1px solid var(--border-strong);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), var(--shadow-soft);
}
.profile-frame__glow{
  position:absolute; inset:-14px; border-radius:50%;
  background:conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent));
  opacity:.18; filter:blur(18px); animation:spin 10s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }
.profile-frame__avatar{ width:64%; height:64%; position:relative; z-index:1; }
.profile-frame__tag{
  position:absolute; bottom:-14px; left:50%; transform:translateX(-50%);
  font-family:var(--font-mono); font-size:10.5px; color:var(--text-muted);
  background:var(--bg); border:1px solid var(--border); padding:3px 10px; border-radius:999px;
  white-space:nowrap; direction:ltr;
}

.terminal{
  width:100%; max-width:360px; background:var(--card); border:1px solid var(--border-strong);
  border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-soft);
}
.terminal-bar{ display:flex; align-items:center; gap:8px; padding:10px 14px; background:var(--card-2); border-bottom:1px solid var(--border); direction:ltr; }
.dot{ width:10px; height:10px; border-radius:50%; }
.dot--red{ background:#ff5f57; } .dot--yellow{ background:#febc2e; } .dot--green{ background:#28c840; }
.terminal-title{ margin-left:auto; font-family:var(--font-mono); font-size:11px; color:var(--text-muted); }
.terminal-body{
  margin:0; padding:16px; min-height:260px; font-family:var(--font-mono); font-size:13px;
  color:var(--accent); direction:ltr; text-align:left; white-space:pre-wrap; word-break:break-word;
}
.terminal-body .caret{ display:inline-block; width:7px; height:1em; background:var(--accent); vertical-align:-2px; animation:blink 1s steps(1) infinite; }
@keyframes blink{ 50%{ opacity:0; } }

.scroll-cue{
  position:absolute; bottom:22px; right:50%; transform:translateX(50%);
  width:26px; height:42px; border:1px solid var(--border-strong); border-radius:16px;
  display:flex; justify-content:center; padding-top:6px;
}
.scroll-cue span{ width:4px; height:8px; border-radius:2px; background:var(--accent); animation:cue 1.6s infinite; }
@keyframes cue{ 0%{ transform:translateY(0); opacity:1; } 100%{ transform:translateY(14px); opacity:0; } }

@media (max-width:980px){
  .hero-inner{ grid-template-columns:1fr; text-align:center; }
  .hero-desc{ margin-inline:auto; }
  .hero-actions{ justify-content:center; }
  .hero-stack{ text-align:center; }
}

/* ===== Sections ===== */
.section{ padding:96px 0; position:relative; z-index:1; scroll-margin-top:72px; }
.section--alt{ background:linear-gradient(180deg, transparent, rgba(255,255,255,.015), transparent); }
.section-tag{ font-family:var(--font-mono); font-size:12.5px; color:var(--accent); letter-spacing:.5px; margin-bottom:12px; }
.section-title{ font-size:clamp(26px, 3.4vw, 38px); font-weight:800; margin-bottom:18px; }
.section-desc{ color:var(--text-secondary); max-width:680px; margin-bottom:44px; font-size:16px; }

/* ===== About ===== */
.about-grid{ display:grid; grid-template-columns:1.3fr 1fr; gap:40px; margin-bottom:36px; }
.about-text{ color:#c9c9c9; font-size:16.5px; max-width:640px; }
.about-text strong{ color:var(--text); }
.about-tags{ display:flex; flex-wrap:wrap; gap:10px; align-content:flex-start; }
.about-tags li{
  font-family:var(--font-mono); font-size:12.5px; color:var(--accent-2);
  background:var(--accent-2-soft); border:1px solid rgba(0,217,255,.2);
  padding:7px 13px; border-radius:999px; direction:ltr;
}
@media (max-width:860px){ .about-grid{ grid-template-columns:1fr; } }

.education-card{
  display:flex; align-items:flex-start; gap:20px;
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:28px; box-shadow:var(--shadow-soft);
}
.education-card__icon{ font-size:34px; line-height:1; }
.education-card__body h3{ font-size:19px; margin-bottom:6px; }
.education-card__body p{ color:var(--text-secondary); margin-bottom:4px; }
.education-card__meta{ font-family:var(--font-mono); font-size:13px; color:var(--accent); direction:rtl; }

/* ===== Skills ===== */
.skills-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:22px;
}
@media (max-width:1080px){ .skills-grid{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:640px){ .skills-grid{ grid-template-columns:1fr; } }

.skill-card{
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:24px; transition:border-color .25s, transform .25s, box-shadow .25s;
}
.skill-card:hover{ transform:translateY(-4px); border-color:var(--border-strong); box-shadow:var(--shadow-soft); }
.skill-card--primary{
  grid-column:span 1; border-color:rgba(0,255,136,.28);
  background:linear-gradient(160deg, rgba(0,255,136,.06), var(--card) 55%);
  box-shadow:0 0 0 1px rgba(0,255,136,.08), var(--shadow-soft);
}
.skill-card__head{ display:flex; align-items:center; gap:10px; margin-bottom:18px; flex-wrap:wrap; }
.skill-card__icon{ font-size:20px; }
.skill-card__head h3{ font-size:17.5px; font-weight:700; }
.skill-card__badge{
  margin-inline-start:auto; font-size:11px; font-family:var(--font-mono); color:#001a0d;
  background:var(--accent); padding:3px 10px; border-radius:999px; font-weight:600;
}
.skill-list{ display:flex; flex-direction:column; gap:11px; }
.skill-list li{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.skill-name{ font-size:14.5px; color:#dcdcdc; }
.skill-name--muted{ color:var(--text-secondary); font-size:13.5px; }
.skill-level{ display:inline-flex; gap:4px; direction:ltr; }
.skill-level::before{ content:''; }
.skill-level{ position:relative; width:60px; height:6px; border-radius:4px; background:rgba(255,255,255,.08); overflow:hidden; flex:0 0 auto; }
.skill-level::after{
  content:''; position:absolute; inset-inline-start:0; top:0; bottom:0;
  width:calc(var(--lvl, 0) * 20%);
  background:linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius:4px;
}

/* ===== Focus ===== */
.focus-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; }
@media (max-width:900px){ .focus-grid{ grid-template-columns:1fr; } }
.focus-card{
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:34px 28px; transition:transform .25s, border-color .25s;
}
.focus-card:hover{ transform:translateY(-6px); border-color:var(--border-strong); }
.focus-card--main{
  border-color:rgba(0,255,136,.32);
  background:linear-gradient(160deg, rgba(0,255,136,.08), var(--card) 60%);
  box-shadow:0 0 40px rgba(0,255,136,.06);
}
.focus-card__icon{ font-size:32px; display:block; margin-bottom:16px; }
.focus-card h3{ font-size:20px; margin-bottom:16px; }
.focus-card ul{ display:flex; flex-direction:column; gap:9px; }
.focus-card li{ font-size:14.5px; color:var(--text-secondary); padding-inline-start:18px; position:relative; }
.focus-card li::before{ content:''; position:absolute; inset-inline-start:0; top:9px; width:6px; height:6px; border-radius:50%; background:var(--accent); }

/* ===== Chips ===== */
.chip-grid{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:40px; }
.chip-grid--small{ margin-top:16px; margin-bottom:0; }
.chip{
  font-family:var(--font-mono); font-size:12.5px; color:#d6d6d6; direction:ltr;
  background:var(--card-2); border:1px solid var(--border); padding:8px 14px; border-radius:999px;
}
.chip--accent{ color:var(--accent); border-color:rgba(0,255,136,.25); background:var(--accent-soft); }

.connect-row{ display:grid; }
.connect-card{
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:32px; box-shadow:var(--shadow-soft);
}
.connect-card__icon{ font-size:28px; }
.connect-card h3{ font-size:19px; margin:14px 0 10px; }
.connect-card p{ color:var(--text-secondary); max-width:640px; }

/* ===== Timeline ===== */
.timeline{ position:relative; padding-inline-start:0; margin:0 0 48px; display:flex; flex-direction:column; gap:0; }
.timeline::before{
  content:''; position:absolute; inset-inline-start:9px; top:6px; bottom:6px; width:2px;
  background:linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
  opacity:.4;
}
.timeline__item{ position:relative; padding-inline-start:36px; padding-bottom:30px; }
.timeline__item:last-child{ padding-bottom:0; }
.timeline__dot{
  position:absolute; inset-inline-start:0; top:2px; width:20px; height:20px; border-radius:50%;
  background:var(--card); border:2px solid var(--accent-2);
}
.timeline__item--current .timeline__dot{ background:var(--accent); border-color:var(--accent); box-shadow:0 0 0 5px var(--accent-soft); }
.timeline__content{
  display:inline-block; background:var(--card); border:1px solid var(--border);
  border-radius:12px; padding:12px 18px; font-size:14.5px; color:#e0e0e0;
}
.timeline__item--current .timeline__content{ color:var(--accent); border-color:rgba(0,255,136,.3); font-weight:600; }

.learning-now{
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:28px;
}
.learning-now h3{ font-size:18px; margin-bottom:16px; }

/* ===== Projects ===== */
.projects-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:22px; }
@media (max-width:900px){ .projects-grid{ grid-template-columns:1fr; } }
.project-card{
  background:var(--card); border:1px dashed var(--border-strong); border-radius:var(--radius-lg);
  padding:32px 24px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:14px;
  transition:transform .25s, border-color .25s;
}
.project-card:hover{ transform:translateY(-5px); border-color:var(--accent-2); }
.project-card__icon{ font-size:30px; }
.project-card h3{ font-size:16px; color:#dcdcdc; font-weight:600; }
.soon-badge{
  font-family:var(--font-mono); font-size:11.5px; color:var(--accent-2);
  background:var(--accent-2-soft); border:1px solid rgba(0,217,255,.25);
  padding:5px 14px; border-radius:999px;
}
.section-desc + .projects-grid{ margin-top:4px; }

/* ===== Contact ===== */
.contact-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:18px; }
@media (max-width:900px){ .contact-grid{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:560px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-card{
  display:flex; flex-direction:column; gap:8px; align-items:flex-start;
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius-md);
  padding:22px; transition:transform .2s, border-color .2s, background .2s;
}
.contact-card:hover{ transform:translateY(-4px); border-color:var(--accent); background:var(--card-2); }
.contact-card__icon{ font-size:22px; }
.contact-card__label{ font-size:13px; color:var(--text-secondary); }
.contact-card__value{ font-size:14px; color:var(--text); direction:ltr; text-align:right; word-break:break-word; }

/* ===== Footer ===== */
.site-footer{ border-top:1px solid var(--border); padding:40px 0; position:relative; z-index:1; }
.footer-inner{ display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.footer-name{ font-weight:700; }
.footer-role{ color:var(--text-secondary); font-size:13.5px; margin-top:4px; }
.footer-socials{ display:flex; gap:14px; font-size:18px; }
.footer-socials a{ opacity:.8; transition:opacity .2s, transform .2s; }
.footer-socials a:hover{ opacity:1; transform:translateY(-2px); }
.footer-copy{ color:var(--text-secondary); font-size:12.5px; width:100%; text-align:center; margin-top:8px; }

.to-top{
  position:fixed; inset-inline-end:24px; bottom:24px; z-index:90;
  width:44px; height:44px; border-radius:50%; border:1px solid var(--border-strong);
  background:var(--card); color:var(--accent); font-size:18px; cursor:pointer;
  opacity:0; visibility:hidden; transform:translateY(10px);
  transition:opacity .25s, transform .25s, visibility .25s;
  box-shadow:var(--shadow-soft);
}
.to-top.visible{ opacity:1; visibility:visible; transform:translateY(0); }

/* ===== Reveal animation ===== */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in-view{ opacity:1; transform:translateY(0); }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
}

/* ===== Secret Analytics Modal ===== */
.analytics-modal{
  position:fixed; inset:0; z-index:300;
  background:rgba(0,0,0,.75); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  display:flex; align-items:center; justify-content:center; padding:20px;
  opacity:0; visibility:hidden; transition:opacity .3s ease, visibility .3s ease;
}
.analytics-modal.open{ opacity:1; visibility:visible; }
.analytics-card{
  width:100%; max-width:400px; background:var(--card); border:1px solid var(--border-strong);
  border-radius:var(--radius-lg); padding:28px; box-shadow:0 20px 50px rgba(0,0,0,.6);
  position:relative; transform:scale(.92); transition:transform .3s ease;
  direction:rtl; text-align:right;
}
.analytics-modal.open .analytics-card{ transform:scale(1); }
.analytics-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.analytics-title{ font-size:17px; font-weight:700; color:var(--text); display:flex; align-items:center; gap:8px; }
.analytics-close{
  background:none; border:none; color:var(--text-secondary); font-size:20px; cursor:pointer;
  padding:4px 8px; border-radius:6px; transition:color .2s, background .2s; line-height:1;
}
.analytics-close:hover{ color:var(--text); background:rgba(255,255,255,.08); }
.analytics-body{ display:flex; flex-direction:column; gap:16px; }
.analytics-stat-box{
  background:var(--card-2); border:1px solid var(--border); border-radius:var(--radius-md);
  padding:20px; text-align:center; position:relative; overflow:hidden;
}
.analytics-stat-box::before{
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg, var(--accent), var(--accent-2));
}
.analytics-stat-num{ font-family:var(--font-mono); font-size:38px; font-weight:800; color:var(--accent); line-height:1.2; margin-bottom:4px; }
.analytics-stat-label{ font-size:13px; color:var(--text-secondary); }
.analytics-toggle-row{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  background:rgba(255,255,255,.03); border:1px solid var(--border); padding:12px 16px; border-radius:var(--radius-sm);
}
.analytics-toggle-label{ font-size:13px; color:var(--text); }
.analytics-switch{
  position:relative; display:inline-block; width:44px; height:24px; flex-shrink:0;
}
.analytics-switch input{ opacity:0; width:0; height:0; }
.analytics-slider{
  position:absolute; cursor:pointer; inset:0; background-color:#333; border-radius:24px; transition:.3s;
}
.analytics-slider:before{
  position:absolute; content:""; height:18px; width:18px; left:3px; bottom:3px; background-color:white; border-radius:50%; transition:.3s;
}
.analytics-switch input:checked + .analytics-slider{ background-color:var(--accent); }
.analytics-switch input:checked + .analytics-slider:before{ transform:translateX(20px); background-color:#001a0d; }
.analytics-hint{ font-size:11.5px; color:var(--text-muted); text-align:center; line-height:1.6; }

