/* Hub Specific Styles - Yulzari Brand */

#hub {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background: var(--bg);
}

/* TOP BAR */
.hub-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  height: 72px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.hub-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hub-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: white;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.hub-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.3px;
}

.hub-logo-sub {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: -2px;
}

.hub-tag {
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--text3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--surface2);
}

.hub-tag.tier-free { background: #f3f4f6; color: #6b7280; }
.hub-tag.tier-standard { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.hub-tag.tier-premium { background: #faf5ff; color: #7e22ce; border-color: #e9d5ff; }

/* HERO */
.hub-hero {
  padding: 100px 36px 60px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid var(--accent-lt);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hub-h1 {
  font-family: var(--font-d);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 900; line-height: 1.1;
  color: var(--navy);
  margin-bottom: 24px;
}

.hub-h1 em, .hub-h1 strong {
  font-style: normal;
  color: var(--accent);
}

.hub-sub {
  font-size: 19px;
  color: var(--text2);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.hub-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hub-pill {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text2);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* STATS */
.hub-stats {
  display: flex;
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hub-stat {
  flex: 1;
  padding: 32px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.hub-stat:last-child {
  border-right: none;
}

.hs-n {
  font-family: var(--font-m);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hs-l {
  font-size: 12px;
  color: var(--text3);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

/* GRID */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 60px 36px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

/* CARDS */
.sec-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.sec-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.sc-top {
  padding: 32px 28px 24px;
  flex: 1;
}

.sc-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--ci, var(--surface2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  border: 1px solid var(--cb, var(--border));
}

.sc-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  color: var(--accent);
}

.sc-title {
  font-family: var(--font-d);
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.2;
}

.sc-score {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 24px;
}

.sc-sep {
  height: 1px;
  background: var(--border);
  margin: 0 0 24px;
}

.sc-feats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sc-feat {
  display: flex;
  align-items: flex-start; gap: 12px;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.5;
}

.sc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 8px;
}

.sc-bot {
  padding: 20px 28px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
}

.sc-tests {
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
}

.sc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  background: var(--accent);
  color: white;
  transition: all 0.2s;
}

.sec-card:hover .sc-btn {
  background: #047857;
  transform: scale(1.05);
}

/* FOOTER */
.hub-footer {
  text-align: center;
  padding: 40px 24px;
  font-size: 13px;
  color: var(--text3);
  border-top: 1px solid var(--border);
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Card colour themes - specific tints */
.sec-card[data-sec="listening"] { --ci: #f0f9ff; --cb: #bae6fd; }
.sec-card[data-sec="reading"]   { --ci: #f0fdf4; --cb: #bbf7d0; }
.sec-card[data-sec="writing"]   { --ci: #fef2f2; --cb: #fecaca; }
.sec-card[data-sec="speaking"]  { --ci: #f5f3ff; --cb: #ddd6fe; }

/* ── STUDY CENTER SPECIFIC ── */
.study-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.study-tab {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text3);
  cursor: pointer;
  transition: all 0.2s;
}

.study-tab:hover { color: var(--accent); }
.study-tab.active {
  background: var(--accent-lt);
  color: var(--accent);
}

.study-section { margin-bottom: 48px; }
.study-h3 {
  font-family: var(--font-d);
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
}

.study-tips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.study-tip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* .faq-* → see global.css */

/* ── VOCABULARY MODULE ── */
.study-vocab-wrap {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 0;
}

.vocab-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.vocab-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.vocab-stat-num {
  font-family: var(--font-m);
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.vocab-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text3);
}

.vocab-stat.known .vocab-stat-num { color: var(--success); }
.vocab-stat.learning .vocab-stat-num { color: var(--accent2); }

.vocab-card-wrap {
  width: 100%;
  perspective: 1000px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 24px;
}

.vocab-card-inner {
  position: relative;
  width: 100%;
  min-height: 280px;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-lg);
}

.vocab-card-inner.flipped {
  transform: rotateY(180deg);
}

.vocab-card-front,
.vocab-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  box-shadow: var(--shadow);
}

.vocab-card-front {
  background: linear-gradient(135deg, var(--navy) 0%, #1e4d8c 100%);
  color: #fff;
}

.vocab-card-back {
  background: var(--surface);
  border: 1px solid var(--border);
  transform: rotateY(180deg);
  color: var(--text);
}

.vocab-card-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 20px;
  font-family: var(--font-m);
}

.vocab-card-word {
  font-family: var(--font-d);
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.vocab-card-hint {
  font-size: 12px;
  opacity: 0.5;
  margin-top: 24px;
}

.vocab-card-definition {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  direction: rtl;
  line-height: 1.4;
  color: var(--navy);
}

.vocab-card-word-small {
  font-size: 14px;
  color: var(--text3);
  margin-top: 16px;
  font-style: italic;
}

.vocab-tier-badge {
  font-size: 10px;
  letter-spacing: 0.1em;
  margin-top: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-m);
  background: rgba(255,255,255,0.1);
}
.vocab-tier-badge.tier-1 { color: #86efac; }
.vocab-tier-badge.tier-2 { color: #67e8f9; }
.vocab-tier-badge.tier-3 { color: #fcd34d; }
.vocab-tier-badge.tier-4 { color: #fdba74; }
.vocab-tier-badge.tier-5 { color: #fca5a5; }

/* Spell Mode (ported from Amirnet) */
.spell-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 24px 16px;
}
.spell-progress {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 16px;
  font-weight: 600;
}
.spell-definition {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.4;
}
.spell-tier {
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 24px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.spell-boxes {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.spell-box {
  width: 40px;
  height: 48px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: white;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  color: var(--navy);
  text-transform: lowercase;
  outline: none;
  transition: all 0.15s ease;
  font-family: inherit;
}
.spell-box:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(5,150,105,0.15);
}
.spell-box.correct {
  background: #d1fae5;
  border-color: #16a34a;
  color: #065f46;
}
.spell-box.wrong {
  background: #fee2e2;
  border-color: #dc2626;
  color: #991b1b;
}
.spell-box.hint {
  background: #fef3c7;
  border-color: #d97706;
  color: #78350f;
}
.spell-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  border: 1.5px solid var(--border);
  transition: all 0.2s;
}
.spell-btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.spell-btn-primary:hover {
  filter: brightness(1.05);
}
.spell-btn-secondary {
  background: white;
  color: var(--text2);
}
.spell-btn-secondary:hover {
  background: var(--bg);
}
.spell-feedback {
  font-size: 14px;
  margin-top: 16px;
  min-height: 22px;
  font-weight: 600;
}
.vocab-tier-btn.active {
  background: var(--accent) !important;
  color: white !important;
  border-color: var(--accent) !important;
}

.vocab-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

.vocab-btn-know, .vocab-btn-learning {
  flex: 1;
  max-width: 200px;
  padding: 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-b);
  transition: all 0.2s;
}

.vocab-btn-know {
  background: var(--success);
  color: #fff;
  box-shadow: 0 4px 12px rgba(5,150,105,0.2);
}

.vocab-btn-learning {
  background: var(--surface);
  border: 2px solid var(--accent2);
  color: var(--accent2);
}

.vocab-btn-know:hover { transform: translateY(-2px); opacity: 0.9; }
.vocab-btn-learning:hover { background: var(--accent2); color: #fff; transform: translateY(-2px); }

.vocab-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.vocab-ctrl-btn {
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-b);
  transition: all 0.15s;
}

.vocab-ctrl-btn:hover { border-color: var(--accent); color: var(--accent); }
.vocab-ctrl-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.vocab-complete {
  text-align: center;
  padding: 60px 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.vocab-complete-icon { font-size: 64px; margin-bottom: 20px; }
.vocab-complete-title {
  font-family: var(--font-d);
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}
.vocab-complete-sub { color: var(--text2); margin-bottom: 32px; font-size: 16px; }

/* ── VOCAB QUIZ MODULE ── */
.vquiz-wrap { max-width: 640px; margin: 0 auto; padding: 24px 16px 40px; }
.vquiz-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.vquiz-progress { font-size: 13px; color: var(--text3); font-weight: 600; }

.vquiz-word {
  background: linear-gradient(135deg, var(--navy), #1e293b); 
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 40px 24px;
  text-align: center; margin-bottom: 24px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}
.vquiz-word-text { font-size: 36px; font-weight: 800; color: #fff; margin-bottom: 8px; letter-spacing: -0.02em; }
.vquiz-tier { font-size: 11px; color: var(--accent); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }

.vquiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
@media (max-width: 480px) { .vquiz-options { grid-template-columns: 1fr; } }

.vquiz-opt {
  background: var(--surface); border: 2px solid var(--border);
  border-radius: 16px; padding: 16px 20px;
  font-size: 15px; font-weight: 600; color: var(--text);
  cursor: pointer; text-align: right; line-height: 1.4;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; justify-content: space-between; align-items: center; direction: rtl;
}
.vquiz-opt:hover:not(:disabled) { 
  border-color: var(--accent); 
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5,150,105,0.1);
}
.vquiz-opt.correct { border-color: var(--success); background: #ecfdf5; color: #065f46; }
.vquiz-opt.wrong { border-color: var(--danger); background: #fef2f2; color: #991b1b; }

.vquiz-num-badge {
  font-size: 12px; font-weight: 800; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; background: var(--surface2); color: var(--text3);
  margin-left: 12px; flex-shrink: 0;
}
.vquiz-opt.correct .vquiz-num-badge { background: var(--success); color: #fff; }
.vquiz-opt.wrong .vquiz-num-badge { background: var(--danger); color: #fff; }

.vquiz-feedback { text-align: center; font-size: 16px; font-weight: 700; min-height: 28px; margin-bottom: 16px; direction: rtl; }
.vquiz-feedback.correct { color: var(--success); }
.vquiz-feedback.wrong   { color: var(--danger); }

.vquiz-next { 
  width: 100%; padding: 16px; border-radius: 50px; border: none;
  background: var(--accent); color: #fff; font-size: 16px; font-weight: 700;
  cursor: pointer; display: none; transition: all 0.2s; 
}
.vquiz-next:hover { background: #047857; transform: translateY(-1px); }

.vquiz-results { text-align: center; padding: 40px 16px; }
.vquiz-score { font-size: 64px; font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.vquiz-score-label { font-size: 14px; font-weight: 700; color: var(--text3); text-transform: uppercase; margin-bottom: 32px; }
.vquiz-bar-wrap { background: var(--border); border-radius: 10px; height: 10px; width: 100%; max-width: 240px; margin: 0 auto 32px; overflow: hidden; }
.vquiz-bar { height: 100%; width: 0; border-radius: 10px; transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1); }

.vquiz-exit-btn { background: none; border: 1px solid var(--border); color: var(--text3); padding: 6px 14px; border-radius: 50px; cursor: pointer; font-size: 12px; font-weight: 700; }
.vquiz-back-btn { background: var(--surface); color: var(--text2); border: 1.5px solid var(--border); padding: 14px 32px; border-radius: 50px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.vquiz-back-btn:hover { background: #fff; transform: translateY(-1px); }

/* ── SCORE CONVERTER ── */
.calculator-card { max-width: 500px; margin: 0 auto; }
.calc-grid { display: flex; flex-direction: column; gap: 16px; }
.calc-row { display: flex; align-items: center; gap: 16px; background: var(--surface2); padding: 12px 20px; border-radius: 12px; border: 1px solid var(--border); }
.calc-row label { flex: 1; font-weight: 700; font-size: 14px; color: var(--navy); }
.calc-row input { width: 70px; padding: 8px; border-radius: 8px; border: 1px solid var(--border); font-family: var(--font-m); font-weight: 700; text-align: center; font-size: 16px; }
.calc-band-result { width: 60px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; border-radius: 8px; font-weight: 800; font-size: 18px; }

.score-charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.chart-h4 { font-family: var(--font-d); font-size: 18px; font-weight: 800; color: var(--accent); margin-bottom: 16px; text-align: center; }
.score-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.score-table th, .score-table td { padding: 10px; text-align: center; border-bottom: 1px solid var(--border); font-size: 13px; }
.score-table th { background: var(--surface2); color: var(--text3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 11px; }
.score-table tr:last-child td { border-bottom: none; }
.score-table tr:hover td { background: var(--accent-lt); color: var(--accent); font-weight: 700; }

/* ── RESOURCES ── */
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.resource-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); transition: all 0.2s; position: relative; }
.resource-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.resource-badge { font-size: 10px; font-weight: 800; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; display: inline-block; margin-bottom: 16px; }
.badge-beginner { background: #ecfdf5; color: #059669; }
.badge-intermediate { background: #fffbeb; color: #d97706; }
.badge-advanced { background: #fef2f2; color: #dc2626; }
.resource-name { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.resource-desc { font-size: 14px; color: var(--text2); line-height: 1.5; margin-bottom: 20px; }
.resource-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; }
.resource-link:hover { text-decoration: underline; }

/* ── ACCESS RESTRICTIONS ── */
.locked-test { opacity: 0.6; position: relative; }
.lock-icon { position: absolute; top: 12px; right: 12px; font-size: 18px; }

/* ── SPELLING MODULE ── */
.vspell-wrap { max-width: 600px; margin: 0 auto; padding: 24px 16px; }
.vspell-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; padding: 48px 32px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; margin-bottom: 32px; box-shadow: var(--shadow);
}
.vspell-audio-btn {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--accent-l); border: 2px solid var(--accent);
  color: var(--accent); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: all 0.2s; margin-bottom: 24px;
}
.vspell-audio-btn:hover { transform: scale(1.05); background: var(--accent); color: #fff; }
.vspell-definition { font-size: 24px; font-weight: 700; color: var(--navy); direction: rtl; }

.vspell-inputs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.vspell-char {
  width: 40px; height: 54px; border: 2px solid var(--border);
  border-radius: 10px; text-align: center; font-size: 24px;
  font-weight: 800; font-family: var(--font-m);
  background: var(--surface); color: var(--navy);
  transition: all 0.15s;
}
.vspell-char:focus { border-color: var(--accent); outline: none; background: #fff; box-shadow: 0 0 0 4px var(--accent-lt); }
.vspell-char.correct { border-color: var(--success); background: #ecfdf5; color: #065f46; }
.vspell-char.wrong { border-color: var(--danger); background: #fef2f2; animation: vshake 0.4s; }

.vspell-feedback { text-align: center; font-size: 18px; font-weight: 800; margin-bottom: 24px; min-height: 28px; }
.vspell-feedback.correct { color: var(--success); }

@keyframes vshake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ── RESPONSIVE DESIGN ── */
@media (max-width: 768px) {
  .hub-bar {
    padding: 0 16px;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .hub-hero {
    padding: 60px 20px 40px;
  }

  .hub-h1 {
    font-size: 36px;
  }

  .hub-sub {
    font-size: 16px;
  }

  .hub-stats {
    flex-direction: column;
    margin-top: 20px;
    padding: 0 20px;
  }

  .hub-stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 24px 20px;
  }

  .hub-stat:last-child {
    border-bottom: none;
  }

  .hs-n {
    font-size: 28px;
  }

  .hub-grid {
    padding: 40px 20px 60px;
    grid-template-columns: 1fr;
  }

  .hub-pills {
    gap: 8px;
  }

  .hub-pill {
    padding: 6px 14px;
    font-size: 12px;
  }

  .sc-btn {
    min-height: 44px;
    padding: 12px 20px;
  }

  .sec-card:hover {
    transform: none;
  }

  .study-tips, .study-grid, .score-charts-grid {
    grid-template-columns: 1fr;
  }

  .vocab-stats {
    grid-template-columns: 1fr;
  }

  .score-charts-grid {
    grid-template-columns: 1fr;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .calc-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .hub-footer {
    padding: 32px 16px;
  }
}

@media (max-width: 480px) {
  .hub-h1 {
    font-size: 28px;
  }

  .hub-sub {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .hub-logo-text {
    font-size: 16px;
  }

  .hub-logo-sub {
    font-size: 10px;
  }

  .hub-eyebrow {
    font-size: 10px;
    padding: 6px 14px;
    gap: 8px;
  }

  .sc-top {
    padding: 24px 20px 20px;
  }

  .sc-title {
    font-size: 22px;
  }

  .sc-bot {
    padding: 16px 20px 20px;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .sc-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 14px;
  }

  .hub-hero {
    padding: 40px 16px 32px;
  }

  .hub-grid {
    padding: 32px 16px 48px;
    gap: 16px;
  }

  .hub-stats {
    padding: 0 16px;
  }

  .vspell-char {
    width: 32px;
    height: 44px;
    font-size: 20px;
  }

  .vspell-box {
    padding: 32px 20px;
  }

  .vspell-definition {
    font-size: 20px;
  }

  .vocab-card-word {
    font-size: 32px;
  }

  .vocab-card-definition {
    font-size: 22px;
  }

  .vocab-card-inner {
    min-height: 240px;
  }

  .vocab-card-front,
  .vocab-card-back {
    padding: 32px 20px;
  }

  .vocab-btn-know, .vocab-btn-learning {
    padding: 14px;
    font-size: 14px;
  }
}
