html, body, #app, .page {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    background: #000 !important;
    color: #eee !important;
    border: none !important;
    box-shadow: none !important;
}

/* When side box is hidden, allow main play area to use left space */
.side-hidden #clickedBox { display: none !important; }
.side-hidden .main { margin-left: 12px !important; }
.side-hidden .main { display: flex; flex-direction: column; align-items: stretch; }
.side-hidden .grid { width: 100%; }

@media (max-width: 1024px) {
  .side-hidden .main { margin-left: 12px !important; }
}
.root-vars {
  /* fallback class - not used; keep for compatibility */
}

/* Ensure logo variables are available in the app regardless of site.css load order */
:root {
  --logo-blue: #0000FF;
  --logo-red: #FF0000;
  /* Card colors for pricing / feature cards */
  --card-bg: #fbf7f2; /* soft beige */
  --card-border: rgba(16,24,40,0.06);
  --card-border-strong: rgba(2,6,23,0.12);
  --card-border-hover: #3b82f6; /* vivid blue */
  --card-border-featured: #4f46e5; /* optional featured outline */
  --card-shadow: 0 12px 28px rgba(2,6,23,0.06);
  --card-shadow-strong: 0 30px 60px rgba(2,6,23,0.12);
  --card-highlight: rgba(255,255,255,0.28);
  --card-outline: rgba(59,130,246,0.18);
}
.page { display:flex; height:100vh; font-family: Inter, Arial, sans-serif; background: #000; color: #eee; min-height:100vh; width:100%; }

/* Brand two-color parts for app UI (use variables) */
.brand-vision { color: var(--logo-red); font-weight:800; }
.brand-sync { color: var(--logo-blue); font-weight:800; }

/* Landing page typography and spacing tweaks */
.hero h1 {
  font-size: 1.9rem;
  font-weight: 800;
  color: #071023;
  margin: 0 0 8px 0;
  line-height: 1.05;
}
.hero .sub {
  font-size: 1.05rem;
  color: #475569;
  max-width: 720px;
  margin: 0;
  text-align: left;
  line-height: 1.45;
}

.accent-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #071023;
  margin-bottom: 12px;
}

.compare-grid {
  gap: 22px;
}

.compare-card {
  padding: 18px 20px;
  background: transparent;
  box-sizing: border-box;
  text-align: center; /* center the heading and block-level content */
}

.compare-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #071023;
  margin: 0 0 10px 0;
}

.compare-card ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.55;
  color: #475569;
  display: inline-block; /* center the list as a block while keeping items left-aligned inside */
  text-align: left;
  max-width: 420px;
  width: auto;
}

.compare-card ul li { margin-bottom: 8px; }

/* Pricing cards: tighten typography and left-align content */
#pricing-grid .plan {
  align-items: flex-start;
  text-align: left;
  padding: 20px 22px;
}

#pricing-grid .plan h3 { font-size: 22px; margin-bottom:6px; }
#pricing-grid .plan .desc { font-size: 14px; color: #475569; max-width: 100%; }

#pricing-grid .features { margin-top: 10px; }
#pricing-grid .features li { margin: 8px 0; }

/* Ensure hero and compare sections have comfortable vertical rhythm */
section.section-centered { padding-top: 8px; padding-bottom: 12px; }


/* Explicitly remove subtle white-ish borders on the main app UI that
   interfere with the dark theme. Use !important to override landing CSS. */
.page, .main, header, .card-illustration, .compare-card, .level-item, .login-card {
    border: none !important;
    box-shadow: none !important;
}

/* Remove any focus outlines that might appear around the viewport due to focus rings */
.page *:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Darken scrollbar track so white edges are not visible in some browsers */
::-webkit-scrollbar { width: 12px; height: 12px; background: transparent; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 8px; }
.sidebar { width:220px; padding:20px; background:#000; }
.main { flex:1; padding:20px; overflow:auto; margin-top:60px; margin-left:160px; }
.grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(var(--cell-min,100px), 1fr)); gap:var(--grid-gap,8px); margin-top:10px; align-items:stretch; align-content:stretch; width:100%; height: var(--game-area-height, calc(100dvh - 270px)); min-height:150px; }
.grid .cell { display:flex; align-items:center; justify-content:center; background:#000; border-radius:8px; cursor:pointer; font-weight:bold; border: none; min-width:0; padding:6px; }
.target { display:flex; gap:6px; margin-top:10px; flex-wrap:wrap; justify-content:center; align-items:center; }
 .target .letter { display:flex; align-items:center; justify-content:center; background:black; color:blue; border-radius:8px; font-weight:bold; border: none; padding:0; min-width:50px; min-height:50px; width:auto; height:auto; }
 .target .letter.big { width: var(--target-cell-size, 64px); height: var(--target-cell-size, 64px); font-size: var(--target-font-size, 32px); }
.controls { display:flex; gap:8px; align-items:center; margin-bottom:8px; }
.info { margin-top:10px; }
button { cursor:pointer; background:#111; color:#9cf; border:1px solid #444; padding:6px 10px; border-radius:6px; }
select { background:#111; color:#9cf; border:1px solid #444; padding:6px; border-radius:6px; }
input { background:#111; color:#eee; border:1px solid #444; padding:6px; border-radius:6px; }

/* Signup form layout */
.signup-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; align-items:start; }
.form-row { display:flex; flex-direction:column; }
.field { display:flex; flex-direction:column; }
.field-inline { display:flex; align-items:center; gap:8px; }
.captcha-block { display:flex; gap:10px; align-items:center; }
.captcha-image { height:60px; display:block; }
.btn-row { display:flex; gap:8px; flex-wrap:wrap; }
.error-msg { color:#ffcccc; }
.success-msg { color:#0a5; }

/* password show/hide */
.pw-wrap { position:relative; }
.pw-toggle { position:absolute; right:8px; top:50%; transform:translateY(-50%); background:transparent; border:none; color:#9cf; cursor:pointer; font-size:16px; }

/* responsive: stack columns on small screens */
@media (max-width: 600px) {
  .signup-grid { grid-template-columns: 1fr; }
  .captcha-block { flex-direction:column; align-items:flex-start; }
}

/* Responsive helpers (minimal-impact additions)
   - Provide safe wrappers for tables, charts and admin drawer
   - Keep default layouts intact on desktop; adjust only on smaller viewports
*/
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive .table { min-width: 640px; }

/* Stats bar styling: remove borders/icons and keep compact on small screens */
.stats-bar {
  pointer-events: auto;
  background: rgba(0,0,0,0.45);
  border: none !important;
  box-shadow: none !important;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stats-bar .stats-content { display:flex; gap:12px; align-items:center; }
.stats-bar .level-group select { background:transparent; border:1px solid rgba(255,255,255,0.04); color:#fff; }
.stat-item { display:flex; gap:8px; align-items:center; margin-right:12px }
.stat-icon { width:18px; height:18px; }
.stat-icon--small { width:14px; height:14px; }

@media (max-width: 480px) {
  /* Reduce clock and icon sizes on very small screens */
  .stat-icon--small { width:10px !important; height:10px !important; }
  .stats-bar { height:44px !important; }
  .stats-bar .stat-item { font-size:0.82rem; }
  .stats-bar .stat-icon { width:14px !important; height:14px !important; }
  .stats-bar .level-group label { display:none; }
}

.chart-wrapper { width: 100%; max-width: 100%; overflow: hidden; display: block; }
.chart-wrapper svg { width: 100% !important; height: 34px !important; }

/* Pricing controls and plan card styles moved from landing page inline styles */
/* Pricing tab styles (monthly/yearly toggle) */
.tab-wrapper { width:100%; display:flex; justify-content:center; align-items:center; margin: 0 0 8px 0; }
.tabs { background: #f1f5f9; padding: 6px; border-radius: 12px; display:flex; position: relative; border: 1px solid rgba(2,6,23,0.06); align-items:center; width: max-content; margin: 0 auto; }
.tabs .tab-slider { position: absolute; height: calc(100% - 8px); width: calc(50% - 8px); background: #3b82f6; top: 4px; left: 4px; border-radius: 10px; transition: transform 0.28s cubic-bezier(0.4,0,0.2,1); z-index: 0; box-shadow: 0 6px 18px rgba(59,130,246,0.12); }
.tabs.yearly-active .tab-slider { transform: translateX(100%); }
.tab { padding: 12px 30px; font-size: 1rem; font-weight:800; color: #94a3b8; cursor: pointer; border-radius:8px; position: relative; z-index: 1; }
.tab.active { color: #fff; }
.tabs .discount-badge { position: absolute; top: -10px; right: -6px; background: #10b981; color: #fff; font-weight:800; padding:8px 12px; border-radius: 10px; font-size:13px; box-shadow: 0 8px 22px rgba(16,185,129,0.14); transform: rotate(6deg); }

/* Make CTA buttons in pricing white text and tighter spacing to match screenshot */
#pricing-grid .cta { color: #fff !important; background: #0b5cff !important; padding:12px 20px !important; min-width:160px !important; border-radius:12px !important; box-shadow: 0 10px 30px rgba(11,92,202,0.12) !important; }

/* ===== PRICING PLAN CARDS - SINGLE AUTHORITATIVE DEFINITION ===== */

#pricing-grid .plan {
  position: relative;
  overflow: visible;
  padding: 22px 28px;
  border-radius: 14px;
  width: 360px;
  background: #fbf7f2;
  border: 1px solid rgba(16, 24, 40, 0.06);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
  color: #071023;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all .28s cubic-bezier(0.2, 0.9, 0.2, 1);
  z-index: 0;
}

#pricing-grid .plan h3 { 
  font-size: 26px; 
  margin: 4px 0 4px 0; 
  color: #071023; 
  font-weight: 800; 
}

#pricing-grid .plan .desc { 
  color: #475569; 
  font-size: 14px; 
  margin: 4px 0 8px 0; 
  max-width: 300px; 
}

#pricing-grid .price { 
  color: #0b5cff; 
  font-size: 34px; 
  font-weight: 900; 
  display: inline-block; 
  margin-right: 6px; 
}

#pricing-grid .per { 
  color: #6b7280; 
  font-size: 15px; 
  font-weight: 600; 
}

#pricing-grid .price-line { 
  margin: 4px 0 2px 0; 
}

#pricing-grid .yearly-total { 
  margin: 2px 0 6px 0; 
  color: #6b7280; 
  font-size: 0.95rem; 
  display: block; 
  opacity: 0; 
  transform: translateY(-6px); 
  transition: opacity .25s, transform .25s; 
}

body.billing-yearly #pricing-grid .plan .yearly-total { 
  opacity: 1; 
  transform: translateY(0); 
}

#pricing-grid .cta { 
  color: #fff !important; 
  background: #0b5cff !important; 
  padding: 12px 20px !important; 
  min-width: 160px !important; 
  border-radius: 12px !important; 
  box-shadow: 0 10px 30px rgba(11, 92, 202, 0.12) !important; 
  margin: 6px 0 10px 0;
}

#pricing-grid .features { 
  margin-top: 6px; 
}

#pricing-grid .features li { 
  color: #334155; 
  margin: 6px 0; 
  padding-left: 0; 
  list-style: none; 
  position: relative; 
}

#pricing-grid .features li:before { 
  content: '\2713'; 
  color: #10b981; 
  position: absolute; 
  left: -20px; 
  top: 3px; 
  font-weight: 700; 
}

/* Card color variants */
#pricing-grid .plan.basic { 
  background: linear-gradient(180deg, #f3f8ff 0%, #fbf7f2 60%);
}

#pricing-grid .plan.pro { 
  background: linear-gradient(180deg, #fff8f3 0%, #fbf7f2 60%);
}

/* Glossy highlight on top */
#pricing-grid .plan::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* Floating shadow beneath card */
#pricing-grid .plan::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -20px;
  height: 30px;
  background: radial-gradient(closest-side, rgba(2, 6, 23, 0.14), rgba(2, 6, 23, 0));
  filter: blur(22px);
  z-index: -2;
  border-radius: 14px;
  transform: translateY(8px);
  transition: transform .28s ease, filter .28s ease;
}

/* HOVER STATE - VIVID BLUE BORDER + LIFTED SHADOW */
#pricing-grid .plan:hover {
  transform: translateY(-10px);
  border: 2px solid #3b82f6;
  box-shadow: 0 34px 70px rgba(2, 6, 23, 0.14), 0 6px 18px rgba(59, 130, 246, 0.08);
  z-index: 2;
}

#pricing-grid .plan:hover::after {
  transform: translateY(26px);
  filter: blur(28px);
  opacity: 0.98;
}

/* Featured card gets extra lift */
#pricing-grid .plan.featured:hover {
  transform: translateY(-12px);
  box-shadow: 0 40px 80px rgba(2, 6, 23, 0.16), 0 8px 24px rgba(59, 130, 246, 0.1);
}

/* Focus state for accessibility */
#pricing-grid .plan:focus-within {
  border: 2px solid #3b82f6;
  box-shadow: 0 0 0 6px rgba(59, 130,246, 0.08);
}

/* ===== TRAINING TIERS CARDS - 3D HOVER EFFECT ===== */
.training-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 24px;
  margin-top: 30px;
}

.training-top-item {
  grid-column: 2 / 3;
  justify-self: center;
  max-width: 520px;
}

.training-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.training-col-left {
  grid-column: 1 / 2;
  justify-self: start;
  align-items: flex-start;
}

.training-col-right {
  grid-column: 3 / 4;
  justify-self: end;
  align-items: flex-end;
}

.keyboard-wrapper {
  grid-column: 2 / 3;
  display: flex;
  justify-content: center;
  width: 100%;
}

.training-grid .level-item {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(2, 6, 23, 0.06);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
  text-align: center;
  transition: all .28s cubic-bezier(0.2, 0.9, 0.2, 1);
  z-index: 0;
  overflow: visible;
}

/* Glossy highlight on training tier items */
.training-grid .level-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* Floating shadow beneath training tier card */
.training-grid .level-item::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -20px;
  height: 30px;
  background: radial-gradient(closest-side, rgba(2, 6, 23, 0.14), rgba(2, 6, 23, 0));
  filter: blur(22px);
  z-index: -2;
  border-radius: 14px;
  transform: translateY(8px);
  transition: transform .28s ease, filter .28s ease;
}

.training-grid .level-item:hover {
  transform: translateY(-10px);
  border: 2px solid #3b82f6;
  box-shadow: 0 34px 70px rgba(2, 6, 23, 0.14), 0 6px 18px rgba(59, 130, 246, 0.08);
  z-index: 2;
}

.training-grid .level-item:hover::after {
  transform: translateY(26px);
  filter: blur(28px);
  opacity: 0.98;
}

.training-grid .level-item.premium-border:hover {
  border: 2px solid #4f46e5;
}

.level-name {
  font-weight: 800;
  color: var(--accent);
  position: relative;
  z-index: 2;
}

.level-desc {
  font-size: 0.85rem;
  color: var(--muted);
  position: relative;
  z-index: 2;
}

/* ===== MOBILE RESPONSIVE STYLES ===== */

/* Extra small screens (320px - 480px) */
@media (max-width: 480px) {
  /* Header layout: stack elements vertically */
  header.card-header {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 12px !important;
    align-items: center !important;
    text-align: center !important;
  }
  
  .brand {
    flex-direction: column !important;
    gap: 4px !important;
    order: 1;
  }
  
  .brand img {
    height: 32px !important;
  }
  
  #country-selector {
    order: 2;
    width: 100%;
  }
  
  #country-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 8px !important;
  }
  
  #country-name {
    font-size: 0.85rem !important;
  }
  
  #country-list {
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: 200px !important;
  }
  
  .actions {
    order: 3;
    width: 100%;
    gap: 8px !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  .actions button {
    width: 100% !important;
    padding: 10px 12px !important;
    font-size: 0.9rem !important;
  }
  
  /* Hero section: reduce margins and font sizes */
  .hero {
    padding: 24px 12px !important;
  }
  
  .hero h1 {
    font-size: 1.3rem !important;
    margin: 0 0 12px 0 !important;
  }
  
  .sub {
    font-size: 0.85rem !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
  }
  
  .card-illustration {
    max-width: 100% !important;
    padding: 16px !important;
    margin-bottom: 0 !important;
  }
  
  /* Section centered: reduce padding */
  .section-centered {
    max-width: 100% !important;
    padding: 0 12px !important;
    margin: 30px auto !important;
  }
  
  .accent-title {
    font-size: 1.5rem !important;
    margin-bottom: 12px !important;
  }
  
  /* Training grid: single column layout */
  .training-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-top: 16px !important;
  }
  
  .training-top-item {
    grid-column: auto !important;
    justify-self: auto !important;
    max-width: 100% !important;
  }
  
  .training-grid .level-item {
    padding: 14px 12px !important;
    max-width: 100% !important;
  }
  
  .training-col {
    grid-column: auto !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 8px !important;
  }
  
  .training-col-left,
  .training-col-right {
    justify-self: auto !important;
    width: 100% !important;
    align-items: center !important;
  }
  
  .training-col-left .level-item,
  .training-col-right .level-item {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 120px !important;
  }
  
  .keyboard-wrapper {
    grid-column: auto !important;
    width: 100% !important;
    order: 2;
    justify-content: center !important;
  }
  
  .keyboard-bg {
    width: 100% !important;
    max-width: 320px !important;
    padding: 8px !important;
  }
  
  :root {
    --key-size: 40px !important;
    --key-font-size: 0.95rem !important;
  }
  
  /* Pricing grid: single column */
  #pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-top: 20px !important;
  }
  
  #pricing-grid .plan {
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 16px !important;
  }
  
  #pricing-grid .plan h3 {
    font-size: 22px !important;
  }
  
  #pricing-grid .plan .desc {
    font-size: 13px !important;
  }
  
  #pricing-grid .price {
    font-size: 28px !important;
  }
  
  #pricing-grid .cta {
    width: 100% !important;
    min-width: auto !important;
    padding: 10px 16px !important;
  }
  
  /* Compare grid: single column */
  .compare-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-top: 20px !important;
  }
  
  .compare-card {
    padding: 16px 12px !important;
  }
  
  .compare-card h3 {
    font-size: 1.1rem !important;
    margin-bottom: 8px !important;
  }
  
  /* Tab wrapper: horizontal scroll if needed */
  .tab-wrapper {
    width: 100%;
    overflow-x: auto;
  }
  
  .tabs {
    width: auto !important;
  }
  
  .tab {
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
  }
  
  .tabs .discount-badge {
    font-size: 11px !important;
    padding: 6px 10px !important;
  }
  
  /* Footer: vertical layout */
  footer {
    padding: 12px !important;
  }
  
  .site-footer-inner {
    flex-direction: column !important;
    text-align: center !important;
  }
  
  .site-footer-nav {
    flex-direction: column !important;
    gap: 8px !important;
    font-size: 0.85rem !important;
  }
  
  .site-footer-nav nav {
    flex-direction: column !important;
    gap: 6px !important;
  }
}

/* Small screens (480px - 768px) */
@media (max-width: 768px) {
  header.card-header {
    padding: 16px !important;
    flex-wrap: wrap !important;
  }
  
  .brand {
    gap: 8px !important;
  }
  
  .brand img {
    height: 36px !important;
  }
  
  .actions {
    flex-direction: row !important;
    gap: 10px !important;
  }
  
  .actions button {
    padding: 10px 16px !important;
    font-size: 0.95rem !important;
  }
  
  .hero {
    padding: 40px 20px !important;
  }
  
  .hero h1 {
    font-size: 1.8rem !important;
    margin-bottom: 16px !important;
  }
  
  .sub {
    font-size: 0.95rem !important;
    max-width: 90% !important;
    margin-bottom: 24px !important;
  }
  
  .section-centered {
    max-width: 100% !important;
    padding: 0 16px !important;
    margin: 40px auto !important;
  }
  
  .accent-title {
    font-size: 1.8rem !important;
    margin-bottom: 20px !important;
  }
  
  /* Training grid: 2 columns on small tablets */
  .training-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  
  .training-top-item {
    grid-column: 1 / -1 !important;
    justify-self: auto !important;
    max-width: 100% !important;
  }
  
  .training-grid .level-item {
    padding: 16px !important;
  }
  
  .training-col {
    grid-column: auto !important;
    align-items: center !important;
    gap: 12px !important;
  }
  
  .training-col-left,
  .training-col-right {
    justify-self: auto !important;
    flex-direction: row !important;
    width: 100% !important;
  }
  
  .training-col-left .level-item,
  .training-col-right .level-item {
    flex: 1 !important;
  }
  
  .keyboard-wrapper {
    grid-column: 1 / -1 !important;
    width: 100%;
    justify-content: center;
  }
  
  .keyboard-bg {
    width: 100% !important;
    max-width: 380px !important;
  }
  
  :root {
    --key-size: 46px !important;
    --key-font-size: 1.05rem !important;
  }
  
  /* Pricing grid: 2 columns on tablets */
  #pricing-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
  
  #pricing-grid .plan {
    width: 100% !important;
    padding: 20px 24px !important;
  }
  
  /* Compare grid: keep as 2 columns or single based on space */
  .compare-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .compare-card {
    padding: 20px 16px !important;
  }
  
  footer {
    padding: 24px !important;
  }
  
  .site-footer-nav {
    flex-direction: column !important;
    gap: 12px !important;
    margin-left: auto !important;
  }
  
  .site-footer-nav nav {
    flex-direction: row !important;
    gap: 12px !important;
  }
}

/* Medium screens (768px - 1024px) */
@media (max-width: 1024px) {
  header.card-header {
    padding: 18px 24px !important;
  }
  
  .hero {
    padding: 48px 24px !important;
  }
  
  .hero h1 {
    font-size: 2.2rem !important;
  }
  
  .sub {
    font-size: 1rem !important;
    max-width: 95% !important;
  }
  
  .section-centered {
    max-width: 100% !important;
    padding: 0 24px !important;
    margin: 48px auto !important;
  }
  
  .accent-title {
    font-size: 2rem !important;
  }
  
  /* Training grid: full 3 columns but tighter */
  .training-grid {
    gap: 18px !important;
  }
  
  .training-top-item {
    grid-column: 2 / 3 !important;
    justify-self: center !important;
  }
  
  .training-col-left {
    grid-column: 1 / 2 !important;
    justify-self: start !important;
  }
  
  .training-col-right {
    grid-column: 3 / 4 !important;
    justify-self: end !important;
  }
  
  .keyboard-wrapper {
    grid-column: 2 / 3 !important;
  }
  
  .training-grid .level-item {
    padding: 18px !important;
  }
  
  :root {
    --key-size: 50px !important;
    --key-font-size: 1.15rem !important;
  }
  
  /* Pricing grid: 2 columns on medium */
  #pricing-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 22px !important;
  }
  
  #pricing-grid .plan {
    width: 100% !important;
  }
  
  .compare-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}

/* Prevent training grid overflow on very small screens */
@media (max-width: 360px) {
  .training-col-left .level-item,
  .training-col-right .level-item {
    flex: 1 1 100% !important;
    margin-bottom: 8px !important;
  }
  
  #pricing-grid .plan h3 {
    font-size: 20px !important;
  }
  
  #pricing-grid .price {
    font-size: 26px !important;
  }
}
