.gfca-bn-wrap{padding:1.5rem 0;display:flex;justify-content:center;}
				.gfca-bn-card{
				  background: var(--color-surface);
				  border:2px solid var(--color-border);
				  border-radius:var(--radius-lg);
				  width:100%;max-width:480px;
				  padding:24px 28px 20px;
				  display:flex;flex-direction:column;align-items:center;
				  box-sizing:border-box;
				}
				.gfca-bn-top{display:flex;align-items:center;gap:16px;width:100%;margin-bottom:14px;}
				.gfca-bn-logo img{width:72px;height:72px;object-fit:contain;}
				.gfca-bn-name1{font-size:26px;font-weight:800;color:#1a7a1a;margin:0;line-height:1.1;}
				.gfca-bn-name2{font-size:18px;font-weight:700;color:#1a7a1a;margin:0;line-height:1.2;}
				.gfca-bn-separator{width:100%;height:1.5px;background:rgba(0,0,0,0.1);margin:2px 0 12px;}
				.gfca-bn-services{font-size:13px;color:#333;text-align:center;margin:0 0 8px;}
				.gfca-bn-tagline{font-size:16px;font-weight:700;color:#c0392b;text-align:center;margin:0 0 16px;font-style:italic;}				

.dashboard-shell,
.course-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 70px auto 40px;
}

.course-shell {
  width: min(1280px, calc(100% - 32px));
}

.dashboard-hero,
.course-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding: 24px;
  background: var(--gradient-hero);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.dashboard-hero h1,
.course-hero h1 {
  margin: 0 0 8px;
  color: var(--color-heading);
  font-size: 34px;
}

.dashboard-hero p,
.course-hero p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.local-storage-note {
  margin-top: 10px !important;
  padding: 10px 12px;
  color: var(--color-warning-text) !important;
  background: var(--color-warning-soft);
  border: 1px solid #fcd34d;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.dashboard-grid,
.number-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.number-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-xp);
}

.metric-card span {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 700;
}

.metric-card strong {
  color: var(--color-heading);
  font-size: 30px;
  line-height: 1;
}

.metric-card small {
  color: var(--color-text-soft);
}

.dashboard-section,
.course-section {
  margin-top: 22px;
  padding: 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.dashboard-section h2,
.course-section h2 {
  margin: 0 0 14px;
  color: var(--color-heading);
  font-size: 24px;
}

.progress-stack {
  display: grid;
  gap: 14px;
}

.progress-band {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 280px) auto auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.progress-band h3 {
  margin: 0 0 4px;
  color: var(--color-heading);
}

.progress-band p {
  margin: 0;
  color: var(--color-text-soft);
}

.progress-meter {
  height: 12px;
  overflow: hidden;
  background: var(--color-border);
  border-radius: var(--radius-pill);
}

.progress-meter span {
  display: block;
  height: 100%;
  background: var(--gradient-primary);
}

.dashboard-action,
.course-action,
.lesson-row strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  color: var(--color-text-inverse);
  background: var(--gradient-primary);
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.dashboard-action:hover,
.course-action:hover {
  filter: brightness(1.05);
  color: var(--color-text-inverse);
}

.dashboard-actions {
  display: flex;
  flex-direction:column;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.dashboard-actions .profile-switcher {
  max-width: 100%;
}

.profile-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  color: var(--color-heading);
  background: var(--color-surface);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
}

.profile-avatar,
.score-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  color: var(--color-text-inverse);
  background: #64748b;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.score-avatar {
  width: 74px;
  height: 74px;
  font-size: 22px;
}

.tier-starter {
  background: linear-gradient(135deg, #94a3b8, #64748b);
}

.tier-bronze {
  background: linear-gradient(135deg, #f59e0b, #b45309);
}

.tier-silver {
  background: linear-gradient(135deg, #cbd5e1, #64748b);
}

.tier-gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.tier-platinum {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
}

.profile-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1000;
  display: grid;
  gap: 6px;
  box-sizing: border-box;
  width: min(280px, calc(100vw - 20px));
  min-width: 190px;
  max-width: calc(100vw - 20px);
  max-height: min(380px, calc(100dvh - var(--nav-height) - 24px));
  padding: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.profile-menu[hidden] {
  display: none;
}

.profile-menu strong {
  color: var(--color-heading);
  font-size: 13px;
}

.profile-menu-item {
  min-height: 34px;
  max-width: 100%;
  padding: 6px 8px;
  color: var(--color-text);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu-item.is-active {
  color: var(--color-text-inverse);
  background: var(--gradient-primary);
}

.profile-menu-item.add-user {
  color: var(--color-primary);
  background: var(--color-surface);
  border-color: var(--color-primary);
  font-weight: 700;
}

.profile-score-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  padding: 10px;
  color: var(--color-heading);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.profile-score-card b {
  grid-row: span 2;
  font-size: 22px;
  line-height: 1;
}

.profile-score-card span,
.profile-score-card small {
  color: var(--color-text-soft);
  font-size: 12px;
}

.badge-progress {
  display: grid;
  gap: 6px;
}

.profile-badge-progress {
  grid-column: 1 / -1;
  margin-top: 6px;
}

.badge-progress-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.badge-progress-meta span,
.score-profile-card .badge-progress-meta span {
  color: var(--color-heading);
  font-weight: 800;
}

.badge-progress-meta small {
  color: var(--color-text-soft);
  white-space: nowrap;
}

.badge-progress-track {
  height: 8px;
  overflow: hidden;
  background: var(--color-border);
  border-radius: var(--radius-pill);
}

.badge-progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
  border-radius: inherit;
}

.local-user-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(37, 99, 235, 0.25);
  backdrop-filter: blur(4px);
}

.local-user-dialog {
  width: min(420px, 100%);
  padding: 24px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.local-user-dialog h2 {
  margin: 0 0 8px;
  color: var(--color-heading);
}

.local-user-dialog p {
  margin: 0 0 16px;
  color: var(--color-text-muted);
}

.local-user-dialog label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--color-heading);
  font-weight: 700;
}

.local-user-dialog input,
.local-user-dialog select {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-size: 16px;
  background: var(--color-surface);
  color: var(--color-text);
}

.table-wrap {
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  color: var(--color-text);
}

.dashboard-table th {
  color: var(--color-heading);
  background: var(--color-surface-muted);
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.course-analytics-grid,
.gamification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gamification-grid {
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.course-analytics-grid article {
  padding: 16px;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.course-analytics-grid h3 {
  margin: 0 0 14px;
  color: var(--color-heading);
  font-size: 18px;
}

.score-profile-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  min-height: 142px;
  padding: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.score-profile-card span,
.score-profile-card small {
  display: block;
  color: var(--color-text-soft);
}

.score-profile-card strong {
  display: block;
  margin: 4px 0;
  color: var(--color-heading);
  font-size: 24px;
}

.dashboard-badge-progress {
  grid-column: 1 / -1;
}

.streak-calendar {
  padding: 16px;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.streak-calendar-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--color-heading);
}

.streak-calendar-head span {
  color: var(--color-text-soft);
}

.streak-calendar-grid {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 6px;
}

.streak-calendar-grid span {
  display: grid;
  place-items: center;
  min-height: 34px;
  color: var(--color-text-soft);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.streak-calendar-grid span.is-active {
  color: var(--color-text-inverse);
  background: var(--color-streak);
  border-color: var(--color-streak);
}

.theme-vault-section {
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), transparent 32%),
    radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.1), transparent 28%),
    var(--color-surface);
}

.theme-vault-header {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.theme-vault-pill {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 12px;
  color: var(--color-badge);
  background: var(--color-info-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.theme-vault-header h2 {
  margin-bottom: 8px;
}

.theme-vault-header p {
  max-width: 640px;
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.active-theme-chip {
  min-width: 240px;
}

.active-theme-chip-inner {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  background: var(--gradient-hero);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.active-theme-chip-inner.is-locked {
  background: var(--color-surface-muted);
}

.active-theme-chip-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-size: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
}

.active-theme-chip-inner strong {
  display: block;
  color: var(--color-heading);
  font-size: 18px;
}

.active-theme-chip-inner small {
  color: var(--color-text-soft);
}

.theme-vault-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.theme-vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.theme-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.theme-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.theme-card.is-active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15), var(--shadow-md);
}

.theme-card.is-locked {
  opacity: 0.92;
}

.theme-card-preview {
  position: relative;
  min-height: 108px;
  padding: 16px;
}

.theme-card-emoji {
  font-size: 34px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}

.theme-card-rarity {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  color: #fff;
  background: rgba(15, 23, 42, 0.42);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.theme-card-lock-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  font-size: 16px;
}

.theme-card.is-unlocked .theme-card-lock-badge,
.theme-card.is-active .theme-card-lock-badge {
  background: var(--color-success);
  color: #fff;
}

.theme-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.theme-card-body h3 {
  margin: 0;
  color: var(--color-heading);
  font-size: 18px;
}

.theme-card-body p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 14px;
}

.theme-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 700;
}

.theme-unlock-score {
  color: var(--color-score);
}

.theme-unlock-left {
  color: var(--color-warning-text);
}

.theme-unlock-done {
  color: var(--color-success-text);
}

.theme-progress-track {
  height: 8px;
  overflow: hidden;
  background: var(--color-border);
  border-radius: var(--radius-pill);
}

.theme-progress-track span {
  display: block;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: inherit;
  transition: width var(--transition-normal);
}

.theme-card.is-locked .theme-progress-track span {
  background: linear-gradient(90deg, var(--color-text-soft), var(--color-border-strong));
}

.theme-equip-btn,
.theme-card-status,
.theme-card-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 800;
}

.theme-equip-btn {
  color: var(--color-text-inverse);
  background: var(--gradient-button);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.theme-equip-btn:hover {
  filter: brightness(1.05);
}

.theme-card-status {
  color: var(--color-success-text);
  background: var(--color-success-soft);
  border: 1px solid var(--color-success);
}

.theme-card-lock {
  gap: 8px;
  color: var(--color-warning-text);
  background: var(--color-warning-soft);
  border: 1px solid #fcd34d;
}

.theme-rarity-legendary .theme-card-rarity {
  background: linear-gradient(135deg, #fbbf24, #b45309);
}

.theme-rarity-epic .theme-card-rarity {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.theme-rarity-rare .theme-card-rarity {
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
}

.theme-vault-hint {
  margin: 16px 0 0;
  padding: 12px 14px;
  color: var(--color-info-text);
  background: var(--color-info-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: 600;
}

.chart-grid article {
  padding: 16px;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.chart-grid h3 {
  margin: 0 0 12px;
  color: var(--color-heading);
  font-size: 18px;
}

.weak-key-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.weak-key-list span {
  display: inline-grid;
  gap: 3px;
  min-width: 78px;
  padding: 10px;
  background: var(--color-warning-soft);
  border: 1px solid #fcd34d;
  border-radius: var(--radius-md);
  text-align: center;
}

.weak-key-list strong {
  color: var(--color-heading);
  font-size: 20px;
}

.weak-key-list small {
  color: var(--color-warning-text);
}

.weak-practice-btn {
  width: fit-content;
}

.empty-state {
  margin: 0;
  padding: 18px;
  color: var(--color-text-soft);
  background: var(--color-surface-muted);
  border-radius: var(--radius-md);
}

.course-layout {
  display: grid;
  grid-template-columns: minmax(300px, 460px) minmax(0, 1fr) minmax(250px, 290px);
  gap: 18px;
  align-items: start;
  margin-top: 22px;
}

.course-layout .course-section {
  margin-top: 0;
}

.course-scoreboard-panel {
  position: sticky;
  top: 74px;
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.scoreboard-head {
  display: grid;
  gap: 4px;
}

.scoreboard-head span {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.scoreboard-head strong {
  color: var(--color-heading);
  font-size: 22px;
  line-height: 1.15;
}

.scoreboard-head small,
.scoreboard-foot {
  color: var(--color-text-soft);
  line-height: 1.4;
}

.scoreboard-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scoreboard-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.scoreboard-row.is-active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.scoreboard-row strong,
/*
.scoreboard-table-name {
  color: var(--color-heading);
}*/

.scoreboard-row small {
  display: block;
  margin-top: 3px;
  color: var(--color-text-soft);
  font-size: 12px;
}

.scoreboard-row b {
  color: var(--color-streak);
  font-size: 20px;
}

.scoreboard-rank,
.rank-badge {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--color-text-inverse);
  background: var(--gradient-primary);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.scoreboard-foot {
  margin: 0;
  padding-top: 2px;
  font-size: 13px;
}

.scoreboard-table tr.is-active td {
  background: #eff6ff;
  color:#000;
}

.number-pad-visual {
  display: grid;
  grid-template-columns: repeat(3, 64px);
  gap: 8px;
  align-content: start;
  justify-content: center;
  padding: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.number-pad-visual span {
  display: grid;
  place-items: center;
  min-height: 54px;
  color: var(--color-key-text);
  background: var(--color-key-bg);
  border: 1px solid var(--color-key-border);
  border-radius: var(--radius-sm);
  font-size: 24px;
  font-weight: 700;
  box-shadow: var(--shadow-key);
}

.number-pad-visual .wide {
  grid-column: span 2;
}

.typing-keyboard-visual {
  display: grid;
  gap: 10px;
  align-content: start;
  justify-content: center;
  padding: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.keyboard-row {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.keyboard-row span {
  display: grid;
  place-items: center;
  min-width: 36px;
  min-height: 42px;
  color: var(--color-key-text);
  background: var(--color-key-bg);
  border: 1px solid var(--color-key-border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  box-shadow: var(--shadow-key);
}

.keyboard-row .space-key {
  min-width: 210px;
}

.number-tutor-wrap {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(320px, 420px);
  gap: 14px;
  align-items: stretch;
  justify-content: center;
  padding: 18px 0;
}

.numpad-board {
  display: grid;
  grid-template-columns: repeat(4, 66px);
  grid-auto-rows: 54px;
  gap: 8px;
  justify-content: center;
  align-content: center;
  min-height: 276px;
  padding: 16px;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-muted) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.numpad-key {
  display: grid;
  place-items: center;
  color: var(--color-key-text);
  background: var(--color-key-bg);
  border: 1px solid var(--color-key-border);
  border-radius: var(--radius-sm);
  font-size: 22px;
  font-weight: 700;
  box-shadow: var(--shadow-key);
}

.numpad-key.tall {
  grid-row: span 2;
}

.numpad-key.wide {
  grid-column: span 2;
}

.number-finger-guide {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 50px 0;
}

.number-finger-guide div {
  padding: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
}

.number-finger-guide strong,
.number-finger-guide span {
  display: block;
}

.number-finger-guide strong {
  color: var(--color-heading);
  font-size: 13px;
}

.number-finger-guide span {
  color: var(--color-text-soft);
  font-size: 12px;
}

.number-hand-svg-wrap {
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 276px;
  padding: 14px;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-muted) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.number-hand-svg {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.number-hand-svg .hand-shape {
  fill: var(--color-key-finger);
}

.number-hand-svg .number-finger-dot {
  fill: var(--color-secondary);
  stroke: var(--color-accent-purple);
  stroke-width: 4;
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.5));
  transition: cx 0.1s ease, cy 0.1s ease;
}

.lesson-list {
  display: grid;
  gap: 16px;
}

.lesson-group {
  padding: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.lesson-group h3 {
  margin: 0 0 10px;
  color: var(--color-heading);
}

.lesson-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
}

.lesson-row:first-of-type {
  border-top: 0;
}

.lesson-row.is-done span:before {
  content: "\2713";
  margin-right: 8px;
  color: var(--color-success);
  font-weight: 700;
}

.lesson-row.is-done strong {
  background: var(--color-success);
}

.lesson-row.is-locked {
  opacity: 0.58;
  cursor: not-allowed;
}

.lesson-row.is-locked strong {
  background: #94a3b8;
}

.sidemenu-a.is-locked {
  opacity: 0.55;
  cursor: not-allowed;
}

.locked-lesson-panel {
  display: grid;
  gap: 14px;
  max-width: 560px;
  margin: 80px auto;
  padding: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.locked-lesson-panel h2 {
  margin: 0;
  color: var(--color-heading);
}

.locked-lesson-panel p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .course-layout {
    grid-template-columns: 1fr;
  }

  .course-scoreboard-panel {
    position: static;
  }
}

@media (max-width: 900px) {
  .dashboard-hero,
  .course-hero,
  .course-layout,
  .progress-band {
    grid-template-columns: 1fr;
  }

  .dashboard-actions {
    justify-content: flex-start;
  }

  .dashboard-grid,
  .number-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .course-analytics-grid,
  .gamification-grid,
  .theme-vault-stats {
    grid-template-columns: 1fr;
  }

  .theme-vault-header {
    flex-direction: column;
  }

  .active-theme-chip {
    width: 100%;
  }

  .streak-calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .number-finger-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-inline: 0;
  }

  .number-hand-svg-wrap {
    margin-inline: 0;
  }

  .number-tutor-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .dashboard-shell,
  .course-shell {
    width: min(100% - 18px, 1120px);
    margin-top: 58px;
  }

  .dashboard-grid,
  .number-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-hero h1,
  .course-hero h1 {
    font-size: 28px;
  }

  .numpad-board {
    grid-template-columns: repeat(4, 56px);
    grid-auto-rows: 48px;
  }
}
