:root {
  --bg: #0f1117;
  --bg-card: #1a1d27;
  --bg-card-hover: #222633;
  --surface: #252a3a;
  --primary: #6c5ce7;
  --primary-light: #a29bfe;
  --primary-glow: rgba(108, 92, 231, 0.3);
  --accent: #00cec9;
  --accent-light: #81ecec;
  --success: #00b894;
  --warning: #fdcb6e;
  --danger: #e17055;
  --error: #e17055;
  --text: #f0f0f5;
  --text-secondary: #a0a3b5;
  --text-muted: #6b6f82;
  --border: rgba(255, 255, 255, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

/* ─── Prepared By Banner ─── */

.prepared-by-banner {
  background: linear-gradient(135deg, #6c5ce7 0%, #0984e3 40%, #00cec9 100%);
  padding: 0.5rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.prepared-by-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 25%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.08) 75%,
    transparent 100%
  );
  animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-30%); }
  50% { transform: translateX(30%); }
}

.prepared-by-text {
  font-family: var(--font);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.4px;
  position: relative;
  z-index: 1;
}

.prepared-by-text strong {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.prepared-by-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: border-color 0.2s;
}
.prepared-by-link:hover {
  border-bottom-color: #fff;
}

.prepared-by-clock {
  display: block;
  font-family: var(--font);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
  margin-top: 1px;
}

/* ─── Top Navigation ─── */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.top-nav-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
}

.nav-back {
  background: none;
  border: none;
  color: var(--primary-light);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.nav-back:hover {
  color: var(--accent);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.brand-icon {
  font-size: 1.3rem;
}

.nav-streak {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-card);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.streak-icon {
  font-size: 1rem;
}

/* ─── Screens ─── */

.screen {
  display: none;
  padding: 1.25rem;
  animation: fadeIn 0.3s ease;
}

.screen.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Hero Section ─── */

.hero {
  text-align: center;
  padding: 1.5rem 0 1rem;
}

.hero-greeting {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 1rem 0.5rem;
  border: 1px solid var(--border);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── Progress Banner ─── */

.progress-banner {
  margin: 1.25rem 0;
}

.progress-bar-bg {
  height: 8px;
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  transition: width 0.6s ease;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
}

/* ─── Section Titles ─── */

.section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

/* ─── Topics Grid ─── */

.topics {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.topic-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
}

.topic-card:hover,
.topic-card:focus {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  transform: translateY(-1px);
}

.topic-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 12px;
}

.topic-info {
  flex: 1;
  min-width: 0;
}

.topic-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.topic-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topic-badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.topic-badge.new {
  background: var(--primary);
  color: white;
}

.topic-badge.started {
  background: var(--warning);
  color: #333;
}

.topic-badge.done {
  background: var(--success);
  color: white;
}

/* ─── Quick Actions ─── */

.quick-actions {
  margin-top: 2rem;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.action-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
  font-family: var(--font);
}

.action-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.action-icon {
  font-size: 1.75rem;
}

.action-label {
  font-size: 0.85rem;
  font-weight: 500;
}

/* ─── Motivation Banner ─── */

.motivation-banner {
  margin-top: 2rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(0, 206, 201, 0.1));
  border-radius: var(--radius);
  border: 1px solid rgba(108, 92, 231, 0.2);
  text-align: center;
}

.motivation-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--primary-light);
  line-height: 1.5;
}

/* ─── Topic Detail Screen ─── */

.topic-header {
  text-align: center;
  padding: 1.5rem 0;
}

.topic-header .topic-icon-large {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.topic-header h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.topic-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.lesson-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.lesson-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  text-align: left;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
}

.lesson-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
}

.lesson-num {
  width: 32px;
  height: 32px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--primary-light);
  flex-shrink: 0;
}

.lesson-num.completed {
  background: var(--success);
  color: white;
}

.lesson-title {
  flex: 1;
  font-weight: 500;
}

.lesson-arrow {
  color: var(--text-muted);
}

.quiz-start-btn {
  margin-top: 1.5rem;
  width: 100%;
}

/* ─── Content Page ─── */

.content-page {
  padding-bottom: 2rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ─── Lesson Content ─── */

.lesson-container {
  padding-bottom: 2rem;
}

.lesson-container h1 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--accent-light);
}

.lesson-container h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--primary-light);
}

.lesson-container h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--accent);
}

.lesson-container p {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.lesson-container ul,
.lesson-container ol {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--text-secondary);
}

.lesson-container li {
  margin-bottom: 0.4rem;
}

.lesson-container strong {
  color: var(--text);
}

.example-box {
  background: var(--surface);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.example-box h4 {
  color: var(--primary-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.example-box p {
  color: var(--text);
  font-size: 0.9rem;
}

.example-box code {
  display: block;
  margin: 0.3rem 0;
  color: var(--accent-light);
  font-family: 'DM Sans', monospace;
  font-size: 0.9rem;
}

.key-point {
  background: rgba(0, 206, 201, 0.1);
  border: 1px solid rgba(0, 206, 201, 0.2);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin: 1rem 0;
}

.key-point strong {
  color: var(--accent);
}

.lesson-nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.lesson-nav .btn {
  flex: 1;
}

/* ─── Quiz ─── */

.quiz-container h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.quiz-progress {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.quiz-question {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.quiz-question p {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quiz-option {
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  text-align: left;
  width: 100%;
}

.quiz-option:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.quiz-option.selected {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.15);
}

.quiz-option.correct {
  border-color: var(--success);
  background: rgba(0, 184, 148, 0.15);
}

.quiz-option.incorrect {
  border-color: var(--danger);
  background: rgba(225, 112, 85, 0.15);
}

.quiz-option:disabled {
  cursor: default;
}

.quiz-explanation {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 206, 201, 0.08);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 206, 201, 0.15);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  animation: fadeIn 0.3s ease;
}

.quiz-explanation strong {
  color: var(--accent);
}

.quiz-results {
  text-align: center;
  padding: 2rem 0;
}

.quiz-results .score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--font-display);
  border: 4px solid;
}

.quiz-results .score-circle.good {
  border-color: var(--success);
  background: rgba(0, 184, 148, 0.1);
}

.quiz-results .score-circle.okay {
  border-color: var(--warning);
  background: rgba(253, 203, 110, 0.1);
}

.quiz-results .score-circle.needs-work {
  border-color: var(--danger);
  background: rgba(225, 112, 85, 0.1);
}

.score-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.score-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quiz-results h2 {
  margin-bottom: 0.5rem;
}

.quiz-results p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ─── Tip Card ─── */

.tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.tip-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.tip-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.tip-card ul {
  margin: 0.5rem 0 0 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.tip-card li {
  margin-bottom: 0.3rem;
}

.tip-card code {
  display: block;
  color: var(--accent-light);
  font-family: 'DM Sans', monospace;
  font-size: 0.88rem;
  margin: 0.2rem 0;
}

/* ─── Formula Cards ─── */

.formula-group {
  margin-bottom: 1.5rem;
}

.formula-group h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.formula-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 0.6rem;
}

.formula {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 0.25rem;
  font-family: 'DM Sans', monospace;
}

.formula-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.formula-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ─── Progress Detail ─── */

.progress-topic {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.progress-topic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.progress-topic-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.progress-topic-score {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.progress-bar-sm {
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-sm-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.4s ease;
}

/* ─── Past Papers ─── */

.paper-section {
  margin-bottom: 2rem;
}

.paper-section h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
}

.paper-question {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 0.75rem;
}

.paper-question p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.paper-question .marks {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  margin-bottom: 0.5rem;
}

.paper-answer {
  display: none;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.paper-answer.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

.paper-answer p {
  color: var(--accent-light);
}

.btn-reveal {
  margin-top: 0.5rem;
}

/* ─── Buttons ─── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #8b7cf7);
  color: white;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--primary-glow);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-danger {
  background: rgba(225, 112, 85, 0.15);
  color: var(--danger);
  border: 1px solid rgba(225, 112, 85, 0.3);
  margin-top: 2rem;
}

.btn-danger:hover {
  background: rgba(225, 112, 85, 0.25);
}

/* ─── Term Banner ─── */

.term-banner {
  margin-bottom: 1.5rem;
}

.term-card {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(0, 206, 201, 0.08));
  border: 1px solid rgba(108, 92, 231, 0.25);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.term-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.term-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-light);
}

.term-status-badge {
  background: var(--accent);
  color: #0f1117;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  letter-spacing: 1px;
}

.term-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.term-focus {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.term-focus-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.term-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.term-topic-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
}

.term-now-tag {
  display: inline-block;
  background: var(--accent);
  color: #0f1117;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 10px;
  margin-top: 0.5rem;
  letter-spacing: 0.5px;
}

/* ─── Topic Focus Indicator ─── */

.topic-card.topic-focus {
  border-color: rgba(0, 206, 201, 0.3);
}

.topic-focus-dot {
  color: var(--accent);
  font-size: 0.6rem;
  vertical-align: super;
  margin-left: 0.25rem;
}

/* ─── Difficulty Selector ─── */

.difficulty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.difficulty-btn {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font);
  color: var(--text);
  text-align: center;
}

.difficulty-btn:hover {
  transform: translateY(-2px);
}

.difficulty-easy:hover {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.2);
}

.difficulty-medium:hover {
  border-color: var(--warning);
  box-shadow: 0 0 0 3px rgba(253, 203, 110, 0.2);
}

.difficulty-hard:hover {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(225, 112, 85, 0.2);
}

.diff-icon {
  font-size: 1.5rem;
}

.diff-label {
  font-weight: 700;
  font-size: 0.9rem;
}

.diff-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ─── Attribution Footer ─── */

.attribution {
  margin-top: 3rem;
  padding: 1.5rem 0;
  text-align: center;
}

.attribution-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 0 auto 1.25rem;
  border-radius: 1px;
}

.attribution-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-style: italic;
}

.footer-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.footer-dot {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ─── Welcome & Profile Screens ─── */

.welcome-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
  min-height: 70vh;
  justify-content: center;
}

.welcome-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.welcome-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.welcome-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 340px;
  margin-bottom: 2rem;
}

.welcome-form {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.welcome-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: left;
  margin-top: 0.5rem;
  font-weight: 500;
}

.welcome-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  transition: var(--transition);
  box-sizing: border-box;
}

.welcome-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.welcome-input::placeholder {
  color: var(--text-muted);
}

.pin-input {
  text-align: center;
  letter-spacing: 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.btn-lg {
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
  margin-top: 1rem;
}

.welcome-hint {
  font-size: 0.8rem;
  color: var(--error);
  min-height: 1.2em;
  margin-top: 0.25rem;
}

.welcome-existing {
  width: 100%;
  max-width: 320px;
  margin-top: 1rem;
}

.welcome-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.welcome-divider::before,
.welcome-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Profile Cards ─── */

.profile-list {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  color: var(--text);
  font-family: var(--font);
}

.profile-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.profile-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.profile-stats {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.profile-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.profile-row .profile-card {
  flex: 1;
  min-width: 0;
}

.profile-delete {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.profile-delete:hover {
  background: rgba(225, 112, 85, 0.15);
  color: var(--danger);
  border-color: var(--danger);
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary-light);
  font-family: var(--font);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition);
}

.btn-link:hover {
  color: var(--accent);
}

/* ─── PIN Display ─── */

.pin-display {
  font-family: var(--font);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.75rem;
  color: var(--accent);
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 2rem;
  margin: 0.75rem 0;
  text-align: center;
}

/* ─── Edit Profile ─── */

.edit-profile-form {
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* ─── Forgot PIN Recovery ─── */

.forgot-pin-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.btn-recover {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-recover-wa {
  background: #25D366;
  color: white;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.btn-recover-wa:hover {
  background: #22c35e;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.btn-recover-sms {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-recover-sms:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.sms-icon {
  font-size: 1.1rem;
}

/* ─── Welcome Support Link ─── */

.welcome-support {
  width: 100%;
  max-width: 320px;
  margin-top: 1.5rem;
}

.welcome-wa-btn,
.welcome-wa-btn:visited,
.welcome-wa-btn:link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: #25D366;
  color: white !important;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  border-radius: 50px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.welcome-wa-btn:hover {
  background: #22c35e;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.welcome-wa-btn .wa-icon {
  width: 20px;
  height: 20px;
}

/* ─── WhatsApp Support Section ─── */

.support-banner {
  margin-top: 2rem;
  padding: 0 0.25rem;
}

.support-card {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.08) 0%, rgba(37, 211, 102, 0.03) 100%);
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.support-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.support-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.support-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.support-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: white;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.support-wa-btn:hover {
  background: #22c35e;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.wa-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ─── Landing Page (Ebukhosini-style) ─── */

.land-hero {
  width: 100%;
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(108, 92, 231, 0.08) 100%);
}

.land-hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.land-hero-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}

.land-hero-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.land-hero-sub em {
  font-style: italic;
  color: var(--accent);
}

.land-term-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99,102,241,0.15);
  border: 1px solid var(--primary);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  animation: ribbonPulse 3s ease-in-out infinite;
}
.land-term-ribbon .ribbon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: dotBlink 2s ease-in-out infinite;
}
@keyframes ribbonPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.3); }
  50% { box-shadow: 0 0 12px 4px rgba(99,102,241,0.15); }
}
@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.land-hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.land-feature-term {
  border-color: var(--primary) !important;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(99,102,241,0.08) 100%);
  position: relative;
  overflow: hidden;
}
.land-feature-term::before {
  content: 'LIVE';
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--success);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.08em;
}
.land-feature-term h3 {
  color: var(--accent) !important;
}
.land-feature-term-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
}
.land-feature-term-topics .term-tag {
  font-size: 0.65rem;
  background: rgba(99,102,241,0.15);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 1rem;
  font-weight: 600;
}

.land-section {
  width: 100%;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.land-section-alt {
  background: rgba(108, 92, 231, 0.05);
}

.land-heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.land-subheading {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.land-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto;
}

.land-subject-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: var(--transition);
}

a.land-subject-card {
  text-decoration: none;
  cursor: pointer;
}

.land-subject-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.land-card-cta {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  opacity: 0.7;
  transition: var(--transition);
}

.land-subject-card:hover .land-card-cta {
  opacity: 1;
}

.land-subject-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.land-subject-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
}

.land-subject-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.land-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(0, 206, 201, 0.1);
  border: 1px solid rgba(0, 206, 201, 0.2);
  border-radius: 12px;
  padding: 0.2rem 0.65rem;
}

.land-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 740px;
  margin: 0 auto;
}

.land-feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: left;
  transition: var(--transition);
}

.land-feature:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.land-feature-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.6rem;
}

.land-feature h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.land-feature p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.land-register-box {
  max-width: 400px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

/* ─── Khan Academy Reference ─── */

.khan-ref {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.khan-ref a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.khan-ref a:hover {
  color: var(--accent);
}

.land-cta {
  background: linear-gradient(135deg, var(--primary), #4834d4);
  padding: 2.5rem 1.5rem;
}

.land-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .land-hero-title {
    font-size: 1.7rem;
  }
  .land-hero {
    padding: 2.5rem 1.25rem 2rem;
  }
  .land-heading {
    font-size: 1.3rem;
  }
  .land-cards-row {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
  .land-features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .land-section {
    padding: 2rem 1.25rem;
  }
  .land-register-box {
    padding: 1.25rem 1rem;
  }
}

/* ─── Subject Selector ─── */

.subject-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: 380px;
  margin-top: 0.5rem;
}

.subject-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.5rem 1.25rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  color: var(--text);
  font-family: var(--font);
}

.subject-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.subject-mathlit:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.subject-maths:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 206, 201, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.subject-icon {
  font-size: 2.5rem;
}

.subject-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.subject-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 280px;
}

.subject-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0, 206, 201, 0.1);
  border: 1px solid rgba(0, 206, 201, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

/* ─── Admin Broadcast ─── */

.broadcast-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1rem;
}

.broadcast-textarea {
  width: 100%;
  min-height: 80px;
  resize: vertical;
  font-family: var(--font);
  font-size: 0.9rem;
  line-height: 1.5;
}

.broadcast-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.broadcast-tip {
  margin-top: 1rem;
  padding: 0.85rem;
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.15);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.broadcast-numbers {
  margin-top: 1rem;
  max-height: 200px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.8;
  padding: 0.75rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.broadcast-number-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 0;
}

.broadcast-number-row a {
  color: var(--success);
  text-decoration: none;
  font-size: 0.75rem;
}

/* ─── Profile Search ─── */

.profile-search-wrap {
  width: 100%;
  max-width: 360px;
  margin-bottom: 0.75rem;
}

.profile-list {
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--surface) transparent;
}

.profile-list::-webkit-scrollbar {
  width: 6px;
}

.profile-list::-webkit-scrollbar-track {
  background: transparent;
}

.profile-list::-webkit-scrollbar-thumb {
  background: var(--surface);
  border-radius: 3px;
}

/* ─── Admin Link ─── */

.admin-link {
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
  opacity: 0.5;
  margin-bottom: 0.75rem;
}

.admin-link:hover {
  opacity: 1;
  color: var(--primary-light) !important;
}

/* ─── Admin Dashboard ─── */

.admin-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.admin-search-bar {
  margin-bottom: 1rem;
}

.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.admin-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
}

.admin-stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.admin-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 0.15rem;
}

.admin-profile-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 500px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--surface) transparent;
}

.admin-profile-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  color: var(--text);
  font-family: var(--font);
}

.admin-profile-card:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.admin-profile-details {
  flex: 1;
  min-width: 0;
}

.admin-profile-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.admin-profile-phone {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.admin-profile-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.admin-profile-arrow {
  color: var(--text-muted);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ─── Admin View Profile ─── */

.admin-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.admin-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.admin-detail-row:last-child {
  border-bottom: none;
}

.admin-detail-label {
  color: var(--text-muted);
  font-weight: 500;
}

.admin-detail-value {
  color: var(--text);
  font-weight: 600;
}

.admin-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.admin-actions .btn {
  width: 100%;
}

/* ─── Utilities ─── */

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ─── Responsive ─── */

@media (min-width: 600px) {
  #app {
    padding: 0 1rem 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .actions-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .stat-value {
    font-size: 1.1rem;
  }

  .topic-card {
    padding: 0.85rem 1rem;
  }
}
