@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@300;400;500;600;700&family=Onest:wght@300;600&display=swap');

/* ─── SHARROR TECH — DESIGN TOKENS ───────────────────── */
:root {
  /* Brand Colors */
  --night:         #0F221E;
  --night-2:       #173832;
  --night-3:       #1e4840;
  --paper:         #EDEFE9;
  --paper-2:       #F6F7F3;
  --amber:         #0A6E62;
  --amber-dim:     #085A50;
  --signal:        #3FBBA3;
  --signal-dim:    #2da08a;
  --steel:         #52716A;
  --ink:           #122A25;
  --white:         #FFFFFF;

  /* Semantic */
  --bg-primary:    var(--night);
  --bg-secondary:  var(--night-2);
  --bg-card:       rgba(255,255,255,0.05);
  --bg-card-hover: rgba(255,255,255,0.09);
  --accent:        var(--signal);
  --accent-dim:    var(--signal-dim);
  --accent-grad:   linear-gradient(135deg, #0A6E62 0%, #3FBBA3 100%);
  --accent-glow:   0 0 28px rgba(63,187,163,0.3);
  --success:       #3FBBA3;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --text-primary:  var(--white);
  --text-secondary:#94b5ae;
  --text-muted:    var(--steel);
  --border:        rgba(63,187,163,0.12);
  --border-accent: rgba(63,187,163,0.35);
  --glass:         rgba(255,255,255,0.04);

  /* Typography */
  --font-body:     'Inter', system-ui, sans-serif;
  --font-heading:  'Barlow Condensed', sans-serif;
  --font-mono:     'IBM Plex Mono', monospace;
  --font-logo:     'Onest', sans-serif;

  /* Layout */
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --radius-xl:     24px;
  --nav-height:    68px;
  --header-height: 64px;
}

/* ─── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font-body);
  background: var(--night);
  color: var(--white);
  min-height: 100vh;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, select, textarea { font-family: inherit; outline: none; border: none; }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ─── BG ORBS ─────────────────────────────────────────── */
.bg-orb {
  position: fixed; border-radius: 50%;
  filter: blur(90px); pointer-events: none; z-index: 0;
}
.bg-orb-1 { width: 320px; height: 320px; background: #0A6E62; top: -100px; left: -80px; opacity: 0.15; }
.bg-orb-2 { width: 240px; height: 240px; background: #3FBBA3; bottom: 100px; right: -60px; opacity: 0.12; }

/* ─── LOGO ────────────────────────────────────────────── */
.logo {
  font-family: var(--font-logo);
  font-size: 20px;
  display: flex; align-items: center; gap: 4px;
}
.logo-sharror { font-weight: 600; color: var(--paper); }
.logo-tech    { font-weight: 300; color: var(--signal); }

/* ─── EYEBROW / TAG ───────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--signal);
  display: flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: '—'; color: var(--signal); }

/* ─── HEADINGS ────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }

/* ─── LAYOUT ──────────────────────────────────────────── */
.page { position: relative; z-index: 1; min-height: 100vh; }
.page-with-nav    { padding-bottom: calc(var(--nav-height) + 16px); }
.page-with-header { padding-top: var(--header-height); }
.page-with-both   { padding-top: var(--header-height); padding-bottom: calc(var(--nav-height) + 16px); }
.container { padding: 0 20px; }
.section   { padding: 24px 20px; }

/* ─── HEADER ──────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  height: var(--header-height);
  background: rgba(15,34,30,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 20px; z-index: 100; gap: 12px;
}
.header-back {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(63,187,163,0.08);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 18px; flex-shrink: 0;
  transition: background 0.2s;
}
.header-back:active { background: rgba(63,187,163,0.15); }
.header-title { font-size: 16px; font-weight: 600; flex: 1; }
.header-action {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(63,187,163,0.08);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 16px; flex-shrink: 0;
}

/* ─── BOTTOM NAV ──────────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  height: var(--nav-height);
  background: rgba(15,34,30,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-around;
  z-index: 100;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 8px 16px; cursor: pointer;
  transition: all 0.2s;
  color: var(--steel);
  border-radius: var(--radius-sm); min-width: 56px;
}
.nav-item.active { color: var(--signal); }
.nav-item .nav-icon  { font-size: 22px; }
.nav-item .nav-label { font-size: 10px; font-weight: 500; letter-spacing: 0.3px; }
.nav-item.active .nav-icon { filter: drop-shadow(0 0 6px rgba(63,187,163,0.6)); }

/* ─── CARDS ───────────────────────────────────────────── */
.card {
  background: var(--night-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: background 0.2s, transform 0.15s;
}
.card:active { background: var(--night-3); transform: scale(0.99); }
.card-accent { border-color: var(--border-accent); background: rgba(63,187,163,0.07); }

/* ─── STAT CARDS ──────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-card {
  background: var(--night-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.stat-icon  { font-size: 22px; }
.stat-value { font-size: 28px; font-weight: 800; line-height: 1; font-family: var(--font-heading); }
.stat-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.stat-value.accent  { color: var(--signal); }
.stat-value.success { color: var(--signal); }
.stat-value.warning { color: var(--warning); }
.stat-value.danger  { color: var(--danger); }

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 24px;
  border-radius: 9px;
  font-size: 15px; font-weight: 600;
  transition: all 0.2s; width: 100%;
  letter-spacing: 0.2px;
}
.btn-primary {
  background: var(--amber);
  color: var(--white);
  box-shadow: 0 0 20px rgba(10,110,98,0.35);
}
.btn-primary:hover  { background: var(--amber-dim); }
.btn-primary:active { transform: scale(0.97); opacity: 0.9; }
.btn-secondary {
  background: rgba(63,187,163,0.08);
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-secondary:active { background: rgba(63,187,163,0.15); transform: scale(0.97); }
.btn-ghost {
  background: transparent;
  color: var(--signal);
  border: 1px solid var(--border-accent);
}
.btn-ghost:active { background: rgba(63,187,163,0.1); }
.btn-success {
  background: rgba(63,187,163,0.15);
  color: var(--signal);
  border: 1px solid var(--border-accent);
}
.btn-danger { background: rgba(239,68,68,0.1); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-sm); width: auto; }

/* ─── FORMS ───────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); font-family: var(--font-mono); letter-spacing: 0.5px; text-transform: uppercase; }
.form-input {
  background: var(--night-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.form-input::placeholder { color: var(--steel); }
.form-input:focus { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(63,187,163,0.15); }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2352716A'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px;
}
.input-icon-wrap { position: relative; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; }
.input-icon + .form-input { padding-left: 44px; }

/* ─── BADGES ──────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.3px;
  font-family: var(--font-mono);
}
.badge-success { background: rgba(63,187,163,0.12);  color: var(--signal); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-danger  { background: rgba(239,68,68,0.12);  color: var(--danger); }
.badge-accent  { background: rgba(63,187,163,0.1);  color: var(--signal); }
.badge-muted   { background: rgba(82,113,106,0.3);  color: var(--steel); }

/* ─── PROGRESS ────────────────────────────────────────── */
.progress-wrap { display: flex; flex-direction: column; gap: 6px; }
.progress-header { display: flex; justify-content: space-between; align-items: center; }
.progress-label { font-size: 12px; color: var(--text-secondary); }
.progress-value { font-size: 12px; font-weight: 700; color: var(--signal); font-family: var(--font-mono); }
.progress-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,0.07); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; background: var(--accent-grad); transition: width 0.5s ease; }
.progress-bar.thick { height: 8px; }

/* ─── AVATAR ──────────────────────────────────────────── */
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--white);
  flex-shrink: 0;
}
.avatar-lg { width: 72px; height: 72px; font-size: 26px; }
.avatar-sm { width: 34px; height: 34px; font-size: 13px; }

/* ─── LIST ITEMS ──────────────────────────────────────── */
.list-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.list-item:last-child { border-bottom: none; }
.list-item-content { flex: 1; min-width: 0; }
.list-item-title { font-size: 14px; font-weight: 600; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item-sub { font-size: 12px; color: var(--text-secondary); }
.list-item-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ─── MODULE CARD ─────────────────────────────────────── */
.module-card {
  background: var(--night-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px; margin-bottom: 14px;
  transition: all 0.2s; position: relative; overflow: hidden;
}
.module-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent-grad); opacity: 0; transition: opacity 0.2s;
}
.module-card.active::before { opacity: 1; }
.module-card.locked { opacity: 0.45; }
.module-card-num { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--signal); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 4px; }
.module-card-title { font-family: var(--font-heading); font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.module-card-meta { display: flex; gap: 16px; margin-top: 12px; }
.module-card-meta-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--steel); }

/* ─── QUIZ OPTION ─────────────────────────────────────── */
.radio-opt { display: none; }
.radio-label {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--night-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px; cursor: pointer;
  transition: all 0.2s;
}
.radio-label:hover { border-color: rgba(63,187,163,0.3); background: rgba(63,187,163,0.06); }
.radio-opt:checked + .radio-label { border-color: var(--signal); background: rgba(63,187,163,0.1); }
.opt-letter {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
  font-family: var(--font-mono);
  transition: all 0.2s;
}
.radio-opt:checked + .radio-label .opt-letter {
  background: var(--accent-grad); border-color: transparent; color: var(--white);
}
.opt-text { font-size: 14px; font-weight: 500; line-height: 1.4; }

/* ─── SCORE CIRCLE ────────────────────────────────────── */
.score-circle {
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(63,187,163,0.08);
  border: 3px solid rgba(63,187,163,0.3);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0 auto; box-shadow: var(--accent-glow);
}
.score-number { font-size: 52px; font-weight: 800; color: var(--signal); line-height: 1; font-family: var(--font-heading); }
.score-total  { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

/* ─── TABLE ───────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
thead { background: var(--night-2); }
th { padding: 12px 14px; text-align: left; font-size: 10px; font-weight: 600; color: var(--signal); letter-spacing: 1px; text-transform: uppercase; border-bottom: 1px solid var(--border); font-family: var(--font-mono); }
td { padding: 12px 14px; font-size: 13px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(63,187,163,0.04); }

/* ─── CHIP ────────────────────────────────────────────── */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 14px; border-radius: 99px;
  font-size: 12px; font-weight: 500;
  background: var(--night-2); border: 1px solid var(--border);
  color: var(--steel); cursor: pointer; transition: all 0.2s;
}
.chip.active { background: rgba(63,187,163,0.15); border-color: var(--signal); color: var(--signal); }

/* ─── FAB ─────────────────────────────────────────────── */
.fab {
  position: fixed; bottom: calc(var(--nav-height) + 16px); right: 20px;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--white);
  box-shadow: 0 0 24px rgba(10,110,98,0.5), 0 4px 20px rgba(0,0,0,0.4);
  z-index: 90; transition: transform 0.2s;
}
.fab:active { transform: scale(0.93); }

/* ─── VIDEO ───────────────────────────────────────────── */
.video-wrap {
  background: #000; border-radius: var(--radius-md);
  overflow: hidden; position: relative; padding-bottom: 56.25%; height: 0;
}
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* ─── OTP ─────────────────────────────────────────────── */
.otp-inputs { display: flex; gap: 10px; justify-content: center; }
.otp-input {
  width: 52px; height: 60px;
  background: var(--night-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center; font-size: 24px; font-weight: 700; color: var(--white);
  transition: border-color 0.2s;
}
.otp-input:focus { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(63,187,163,0.15); }

/* ─── SEARCH ──────────────────────────────────────────── */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--night-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 11px 14px;
}
.search-bar input { background: transparent; color: var(--white); font-size: 14px; flex: 1; }
.search-bar input::placeholder { color: var(--steel); }
.search-icon { font-size: 18px; color: var(--steel); }

/* ─── ALERTS ──────────────────────────────────────────── */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md); font-size: 13px; line-height: 1.5; }
.alert-warning { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.25); color: var(--warning); }
.alert-success { background: rgba(63,187,163,0.08);  border: 1px solid rgba(63,187,163,0.25);  color: var(--signal); }
.alert-info    { background: rgba(63,187,163,0.06);  border: 1px solid rgba(63,187,163,0.2);   color: var(--signal); }

/* ─── UTILITIES ───────────────────────────────────────── */
.gradient-text { background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-title { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--signal); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider { height: 1px; background: var(--border); margin: 8px 0; }
.text-center { text-align: center; }
.text-sm { font-size: 13px; } .text-xs { font-size: 11px; }
.text-accent  { color: var(--signal); }
.text-success { color: var(--signal); }
.text-warning { color: var(--warning); }
.text-danger  { color: var(--danger); }
.text-muted   { color: var(--steel); }
.text-secondary { color: var(--text-secondary); }
.font-bold { font-weight: 700; } .font-semibold { font-weight: 600; }
.font-heading { font-family: var(--font-heading); }
.font-mono    { font-family: var(--font-mono); }
.mt-4{margin-top:4px} .mt-8{margin-top:8px} .mt-12{margin-top:12px} .mt-16{margin-top:16px} .mt-24{margin-top:24px}
.mb-8{margin-bottom:8px} .mb-16{margin-bottom:16px} .mb-24{margin-bottom:24px}
.flex{display:flex} .flex-col{flex-direction:column}
.items-center{align-items:center} .justify-between{justify-content:space-between}
.flex-1{flex:1} .w-full{width:100%} .gap-8{gap:8px} .gap-12{gap:12px} .gap-16{gap:16px}

/* ─── ANIMATIONS ──────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.fade-up   { animation: fadeUp 0.4s ease both; }
.fade-up-1 { animation-delay: 0.06s; }
.fade-up-2 { animation-delay: 0.12s; }
.fade-up-3 { animation-delay: 0.18s; }
.fade-up-4 { animation-delay: 0.24s; }
.fade-up-5 { animation-delay: 0.30s; }
