/* =====================================================
   STUDENTS SECURITY GUIDE — STYLESHEET
   ===================================================== */

.nav-active { color: var(--accent) !important; background: rgba(0,212,170,.1) !important; }
.btn-outline {
  display: inline-flex; align-items: center;
  border: 1.5px solid rgba(0,212,170,.4); color: var(--accent);
  padding: 13px 28px; border-radius: 10px; text-decoration: none;
  font-weight: 700; font-size: .95rem; transition: all .25s;
}
.btn-outline:hover { background: rgba(0,212,170,.08); border-color: var(--accent); }

/* =====================================================
   HERO
   ===================================================== */
.st-hero {
  position: relative; overflow: hidden;
  padding: 80px 0 70px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,212,170,.1) 0%, transparent 70%);
}
.st-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.st-shape { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .18; }
.st-shape.s1 { width: 450px; height: 450px; background: #00d4aa; top: -180px; left: -120px; }
.st-shape.s2 { width: 350px; height: 350px; background: #7c3aed; bottom: -100px; right: -80px; }
.st-shape.s3 { width: 200px; height: 200px; background: #f59e0b; top: 30%; right: 20%; }

.st-hero-content { position: relative; text-align: center; }
.st-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,212,170,.1); border: 1px solid rgba(0,212,170,.3);
  color: var(--accent); padding: 5px 16px; border-radius: 100px;
  font-size: .8rem; font-weight: 600; margin-bottom: 24px;
}
.st-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900; color: #fff; margin-bottom: 14px; line-height: 1.2;
}
.st-hero-desc { color: var(--muted); max-width: 540px; margin: 0 auto 32px; font-size: .98rem; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }

/* ---- Risk Widget ---- */
.risk-widget {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 28px;
  max-width: 540px; margin: 0 auto; text-align: right;
}
.risk-widget-title {
  display: flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 700; color: var(--text);
  margin-bottom: 16px;
}
.risk-questions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.risk-q {
  display: flex; align-items: center; gap: 10px;
  font-size: .87rem; color: var(--muted); cursor: pointer;
  padding: 8px 10px; border-radius: 8px; transition: background .2s;
  user-select: none;
}
.risk-q:hover { background: rgba(255,255,255,.03); }
.risk-q input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
.risk-result { display: flex; flex-direction: column; gap: 8px; }
.risk-bar-wrap { height: 8px; background: var(--bg3); border-radius: 100px; overflow: hidden; }
.risk-bar { height: 100%; width: 0%; border-radius: 100px; transition: width .5s, background .4s; }
.risk-score { font-size: .82rem; color: var(--muted); font-weight: 600; }

/* =====================================================
   CHECKLIST
   ===================================================== */
.checklist-layout {
  display: grid; grid-template-columns: 1fr 280px;
  gap: 28px; align-items: start;
}
@media (max-width: 860px) { .checklist-layout { grid-template-columns: 1fr; } }

/* Progress */
.progress-header {
  display: flex; justify-content: space-between;
  font-size: .85rem; color: var(--muted); margin-bottom: 8px; font-weight: 600;
}
.progress-bar-wrap { height: 10px; background: var(--bg3); border-radius: 100px; overflow: hidden; margin-bottom: 8px; }
.progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), #7c3aed); border-radius: 100px; transition: width .5s cubic-bezier(.4,0,.2,1); }
.progress-label { font-size: .8rem; color: var(--muted); margin-bottom: 28px; }

/* Category */
.check-category { margin-bottom: 24px; }
.check-cat-header {
  display: flex; align-items: center; gap: 12px;
  font-size: .95rem; font-weight: 700; color: var(--text);
  margin-bottom: 14px;
}
.check-cat-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.cat-count { margin-right: auto; font-size: .78rem; color: var(--muted); font-weight: 600; }

/* Check Items */
.check-items { display: flex; flex-direction: column; gap: 8px; }
.check-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
  cursor: pointer; transition: all .25s; user-select: none;
}
.check-item:hover { border-color: rgba(0,212,170,.25); }
.check-item.done { background: rgba(0,212,170,.05); border-color: rgba(0,212,170,.3); }
.check-item.done .check-box { background: var(--accent); border-color: var(--accent); }
.check-item.done .check-box::after {
  content: ''; display: block; width: 6px; height: 10px;
  border: 2px solid #0a0f1e; border-top: none; border-left: none;
  transform: rotate(45deg); margin: 1px auto 0;
}
.check-item.done strong { text-decoration: line-through; color: var(--muted); }

.check-box {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px;
  border: 2px solid var(--border); background: var(--bg3);
  margin-top: 1px; transition: all .2s;
}
.check-text { flex: 1; }
.check-text strong { display: block; font-size: .9rem; color: var(--text); margin-bottom: 3px; line-height: 1.4; }
.check-text span  { font-size: .8rem; color: var(--muted); line-height: 1.55; }
.check-level { font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; white-space: nowrap; flex-shrink: 0; margin-top: 3px; }
.level-high { background: rgba(239,68,68,.12); color: #f87171; border: 1px solid rgba(239,68,68,.25); }
.level-med  { background: rgba(245,158,11,.12); color: #fbbf24; border: 1px solid rgba(245,158,11,.25); }

/* ---- Rings ---- */
.progress-rings { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ring-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ring-svg { width: 56px; height: 56px; transform: rotate(-90deg); }
.ring-bg   { fill: none; stroke: var(--bg3); stroke-width: 4; }
.ring-fill { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .5s cubic-bezier(.4,0,.2,1); }
.ring-item span { font-size: .72rem; color: var(--muted); text-align: center; }

/* ---- Emergency ---- */
.emergency-card { border-color: rgba(239,68,68,.25) !important; }
.emergency-steps {
  list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 10px;
}
.emergency-steps li {
  counter-increment: step; display: flex; gap: 10px;
  font-size: .83rem; color: var(--text); line-height: 1.5;
}
.emergency-steps li::before {
  content: counter(step); width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: rgba(239,68,68,.15); color: #f87171;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800; margin-top: 1px;
}

/* ---- Useful links ---- */
.useful-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.useful-links a {
  color: var(--muted); text-decoration: none; font-size: .85rem;
  transition: color .2s; display: block; padding: 4px 0;
}
.useful-links a:hover { color: var(--accent); }

/* =====================================================
   PLATFORMS
   ===================================================== */
.platforms-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 32px;
}
.platform-tab {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted); font-family: var(--font); font-size: .88rem;
  padding: 10px 20px; border-radius: 12px; cursor: pointer;
  transition: all .2s; font-weight: 600;
}
.platform-tab:hover { border-color: var(--accent); color: var(--text); }
.platform-tab.active { border-color: var(--accent); color: var(--accent); background: rgba(0,212,170,.07); }

.pt-icon {
  width: 28px; height: 28px; border-radius: 8px; font-size: .72rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.pt-ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.pt-sc { background: #FFFC00; color: #000; }
.pt-tw { background: #000; color: #fff; }
.pt-tt { background: #010101; color: #fff; }
.pt-wa { background: #25d366; color: #fff; }
.pt-tg { background: #229ED9; color: #fff; }

.platform-content {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.pc-header {
  display: flex; align-items: center; gap: 16px;
  padding: 24px 28px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.pc-platform-icon {
  width: 52px; height: 52px; border-radius: 14px; font-size: 1.1rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pc-header h3 { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.pc-header p  { font-size: .83rem; color: var(--muted); }

.pc-body { padding: 28px; }
.pc-sections { display: flex; flex-direction: column; gap: 28px; }
.pc-section h4 {
  font-size: .88rem; font-weight: 700; color: var(--accent);
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.steps-list { display: flex; flex-direction: column; gap: 10px; }
.step {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
}
.step-num {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: rgba(0,212,170,.12); color: var(--accent);
  font-size: .8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step-text { flex: 1; }
.step-text strong { display: block; font-size: .88rem; color: var(--text); margin-bottom: 3px; }
.step-text span   { font-size: .8rem; color: var(--muted); line-height: 1.55; }
.step-arrow { display: flex; align-items: center; gap: 4px; font-size: .75rem; color: var(--muted); flex-wrap: wrap; }
.step-arrow b { color: var(--accent2); }

.danger-settings { display: flex; flex-direction: column; gap: 8px; }
.danger-item {
  display: flex; align-items: center; gap: 12px;
  background: rgba(239,68,68,.05); border: 1px solid rgba(239,68,68,.15);
  border-radius: 8px; padding: 12px 14px; font-size: .85rem; color: var(--text);
}
.danger-item svg { color: var(--danger); flex-shrink: 0; }

/* =====================================================
   THREATS
   ===================================================== */
.threats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.threat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  position: relative; transition: all .25s;
}
.threat-card:hover { transform: translateY(-4px); border-color: rgba(0,212,170,.25); box-shadow: 0 12px 32px rgba(0,0,0,.3); }
.threat-num {
  position: absolute; top: 18px; left: 18px;
  font-size: 2rem; font-weight: 900; color: rgba(255,255,255,.04);
  line-height: 1; font-family: monospace;
}
.threat-icon { margin-bottom: 14px; }
.threat-card h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.threat-card p  { font-size: .83rem; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.threat-tip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,212,170,.07); border: 1px solid rgba(0,212,170,.15);
  border-radius: 7px; padding: 8px 12px; font-size: .78rem; color: var(--accent);
}
.threat-tip svg { flex-shrink: 0; }
