@import url('platform-polish.css');

/* ==========================================================================
   Lingora Chinese — นวัตกรรมเรียนภาษาจีนเชิงเรื่องราวและสายอาชีพ
   Main Stylesheet (Customizable Design Tokens, 3D Soft Icons, Page Backgrounds)
   ========================================================================== */

:root {
  --lp-blue: #24599B;
  --lp-blue-1: #24599B;
  --lp-blue-2: #3D7FC2;
  --lp-blue-soft: #EAF4FF;
  --lp-blue-light: #EAF4FF;
  --lp-bg: #F7FAFE;
  --lp-cream: #FFF7EA;
  --lp-caramel: #F1C58D;
  --lp-orange: #F39A38;
  --lp-text: #1B3456;
  --lp-muted: #75859A;
  --lp-border: #DCE6F2;

  --primary-900: #0f2952;
  --primary-800: #163a70;
  --primary-700: #1d4ed8;
  --primary-600: #2563eb;
  --primary-500: #3b82f6;
  --primary-100: #dbeafe;
  --primary-50: #eff6ff;

  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-200: #fde68a;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;

  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --emerald-50: #ecfdf5;

  --rose-600: #e11d48;
  --rose-500: #f43f5e;
  --rose-100: #ffe4e6;
  --rose-50: #fff1f2;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 9999px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px -6px rgba(29, 78, 216, 0.14);
  --shadow-3d-soft:
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -3px 6px rgba(15, 23, 42, 0.08),
    0 8px 18px -4px rgba(15, 23, 42, 0.14);

  --sidebar-width: 278px;
  --header-height: 68px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    'Sukhumvit Set',
    'Prompt',
    'Noto Sans Thai',
    'PingFang SC',
    'Microsoft YaHei',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: var(--slate-100);
  color: var(--slate-900);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.zh-text {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

.svg-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ==========================================================================
   3D Soft Icon Containers & Claymorphic Badges
   ========================================================================== */
.soft-3d-box {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
  box-shadow: var(--shadow-3d-soft);
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.soft-3d-box:hover {
  transform: translateY(-2px) scale(1.03);
}

.soft-3d-box.lg {
  width: 68px;
  height: 68px;
  border-radius: 20px;
}

.soft-3d-box.sm {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.icon-3d-soft {
  width: 82%;
  height: 82%;
  display: block;
}

/* ==========================================================================
   WELCOME TO CHINESE — FRONT LANDING VIEW & NAVBAR
   ========================================================================== */
.welcome-view {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.14) 0%, transparent 38%),
    radial-gradient(circle at 88% 15%, rgba(245, 158, 11, 0.14) 0%, transparent 36%),
    radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.1) 0%, transparent 45%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 52%, #f8fafc 100%);
  position: relative;
}

.welcome-navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--slate-200);
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.brand-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 21px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.35),
    0 4px 12px rgba(29, 78, 216, 0.3);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.brand-tag-chinese {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--amber-600);
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

.brand-subtitle {
  font-size: 11.5px;
  color: var(--slate-500);
}

.welcome-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.welcome-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  color: var(--slate-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}

.welcome-nav-link:hover,
.welcome-nav-link.active {
  color: var(--primary-700);
  background: var(--primary-50);
  border-color: var(--primary-100);
}

.btn-launch-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-launch-app:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.36);
}

/* Welcome Hero Section */
.welcome-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 24px 36px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.welcome-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #eff6ff 0%, #fef3c7 100%);
  border: 1px solid #bfdbfe;
  color: var(--primary-800);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 16px;
}

.welcome-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 14px;
}

.welcome-hero h1 .highlight-welcome {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 55%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.welcome-hero-desc {
  font-size: 16px;
  color: var(--slate-600);
  margin-bottom: 24px;
  max-width: 600px;
}

.welcome-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.3);
  transition: all 0.2s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(29, 78, 216, 0.38);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--slate-800);
  border: 1.5px solid var(--slate-300);
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
  border-color: var(--primary-600);
  color: var(--primary-700);
  background: var(--primary-50);
}

.hero-quick-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--slate-200);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  transition: all 0.16s ease;
}

.quick-mode-chip:hover {
  border-color: var(--primary-500);
  color: var(--primary-700);
  background: #ffffff;
  transform: translateY(-1px);
}

/* Right Hero 3D Showcase Card */
.welcome-showcase-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dbeafe;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.showcase-3d-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.showcase-mini-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.showcase-mini-card:hover {
  border-color: var(--primary-500);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.showcase-mini-card h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--slate-900);
}

.showcase-mini-card p {
  font-size: 11.5px;
  color: var(--slate-500);
}

/* Front Page Sections: Overview, FAQ, Contact */
.welcome-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.section-heading {
  text-align: center;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 6px;
}

.section-heading p {
  font-size: 14.5px;
  color: var(--slate-600);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 18px;
}

.overview-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.overview-card:hover {
  border-color: var(--primary-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.overview-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.overview-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.overview-card p {
  font-size: 13.5px;
  color: var(--slate-600);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: var(--primary-500);
  box-shadow: var(--shadow-sm);
}

.faq-question-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--slate-600);
  border-top: 1px dashed var(--slate-200);
  padding-top: 12px;
}

.contact-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.contact-info-card,
.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}

.contact-form-group {
  margin-bottom: 14px;
}

.contact-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 5px;
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--slate-900);
  background: var(--slate-50);
}

.contact-form-group input:focus,
.contact-form-group select:focus,
.contact-form-group textarea:focus {
  outline: none;
  border-color: var(--primary-600);
  background: #ffffff;
}

/* ==========================================================================
   MAIN LEARNING WEBAPP HEADER & LAYOUT
   ========================================================================== */
.app-header {
  min-height: var(--header-height);
  background: #ffffff;
  border-bottom: 1px solid var(--slate-200);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s ease;
}

.hamburger-btn:hover {
  background: var(--primary-50);
  color: var(--primary-700);
  border-color: var(--primary-200);
}

.header-quick-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--slate-200);
}

.header-nav-pill {
  background: transparent;
  border: 1px solid transparent;
  color: var(--slate-600);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.16s ease;
}

.header-nav-pill:hover {
  background: var(--slate-100);
  color: var(--primary-700);
}

.header-right-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.stat-pill.daily {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.stat-pill.streak {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
}

.stat-pill.xp {
  background: #fefce8;
  color: #b45309;
  border: 1px solid #fde68a;
}

.stat-pill.hearts {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.stat-pill.level {
  background: #0f3a6d;
  color: #ffffff;
  padding: 6px 14px;
}

.audio-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--slate-200);
  background: #ffffff;
  color: var(--primary-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s ease;
}

.audio-toggle-btn:hover {
  background: var(--primary-50);
  border-color: var(--primary-300);
}

.audio-toggle-btn.muted {
  color: var(--slate-400);
  background: var(--slate-100);
}

/* ==========================================================================
   APP WORKSPACE GRID & COLLAPSIBLE SIDEBAR
   ========================================================================== */
.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: calc(100vh - var(--header-height));
  transition: grid-template-columns 0.25s ease;
}

.app-layout.sidebar-collapsed {
  grid-template-columns: 0px minmax(0, 1fr);
}

.app-sidebar {
  background: #ffffff;
  border-right: 1px solid var(--slate-200);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease,
    padding 0.25s ease;
}

.app-layout.sidebar-collapsed .app-sidebar {
  transform: translateX(-100%);
  opacity: 0;
  padding-left: 0;
  padding-right: 0;
  pointer-events: none;
  border-right: none;
}

.sidebar-section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-400);
  padding: 0 10px;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
}

.sidebar-nav-btn {
  width: 100%;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  color: var(--slate-700);
  transition: all 0.16s ease;
}

.sidebar-nav-btn:hover {
  background: var(--slate-50);
  color: var(--slate-900);
}

.sidebar-nav-btn.active {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.sidebar-btn-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.sidebar-btn-icon {
  color: var(--slate-500);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-nav-btn.active .sidebar-btn-icon {
  color: #1d4ed8;
}

.sidebar-btn-texts {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-title-th {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-title-zh {
  font-size: 11px;
  color: var(--slate-400);
  margin-top: 1px;
}

.sidebar-nav-btn.active .sidebar-title-zh {
  color: #3b82f6;
}

.sidebar-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  color: #ffffff;
  flex-shrink: 0;
}

.sidebar-badge.rpg {
  background: #f59e0b;
}
.sidebar-badge.hanzi {
  background: #10b981;
}
.sidebar-badge.career {
  background: #0f3a6d;
}
.sidebar-badge.accent {
  background: #0284c7;
}
.sidebar-badge.ai {
  background: #dc2626;
}
.sidebar-badge.soft {
  background: var(--slate-200);
  color: var(--slate-700);
}

/* Xiaolong Mascot Encouragement Card */
.mascot-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.mascot-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.14);
}

.mascot-avatar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.mascot-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #92400e;
}

.mascot-card-quote {
  font-size: 11.5px;
  color: #b45309;
  line-height: 1.35;
}

/* ==========================================================================
   MAIN CONTENT AREA & THEMED BACKGROUNDS PER MODE
   ========================================================================== */
.main-content {
  padding: 24px 28px 48px;
  min-height: calc(100vh - var(--header-height));
  transition: background 0.3s ease;
}

.main-content.bg-mode-story {
  background:
    radial-gradient(circle at 92% 8%, rgba(37, 99, 235, 0.09) 0%, transparent 35%),
    radial-gradient(circle at 8% 90%, rgba(245, 158, 11, 0.08) 0%, transparent 35%),
    #f4f7fb;
}

.main-content.bg-mode-hanzi {
  background:
    radial-gradient(circle at 85% 12%, rgba(245, 158, 11, 0.1) 0%, transparent 38%),
    linear-gradient(180deg, #f8fafc 0%, #fdfbf7 100%);
}

.main-content.bg-mode-career {
  background:
    radial-gradient(circle at 10% 10%, rgba(15, 58, 109, 0.07) 0%, transparent 40%),
    #f3f6fb;
}

.main-content.bg-mode-dialogue {
  background:
    radial-gradient(circle at 90% 15%, rgba(16, 185, 129, 0.09) 0%, transparent 38%),
    #f4f8fa;
}

.main-content.bg-mode-grammar {
  background:
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 38%),
    #f5f7fb;
}

.main-content.bg-mode-accents {
  background:
    radial-gradient(circle at 15% 20%, rgba(2, 132, 199, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(245, 158, 11, 0.09) 0%, transparent 40%),
    #f2f7fc;
}

.main-content.bg-mode-ai {
  background:
    radial-gradient(circle at 88% 12%, rgba(225, 29, 72, 0.08) 0%, transparent 36%),
    radial-gradient(circle at 12% 85%, rgba(37, 99, 235, 0.09) 0%, transparent 40%),
    #f5f6fb;
}

.content-container {
  max-width: 1120px;
  margin: 0 auto;
}

/* Mode Top Banner / Header */
.mode-header {
  margin-bottom: 20px;
}

.mode-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 800;
  color: #0f2952;
  margin-bottom: 4px;
}

.mode-header-sub {
  font-size: 14px;
  color: var(--slate-500);
}

/* ==========================================================================
   MODE 1: RPG STORY MODE (โหมดผจญภัยเนื้อเรื่อง)
   ========================================================================== */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.episode-card {
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: 18px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
}

.episode-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-sm);
}

.episode-card.active {
  background: #eff6ff;
  border-color: #2563eb;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.12);
}

.episode-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ep-number-badge {
  background: #0f3a6d;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
}

.ep-diff-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.episode-title-en {
  font-size: 16px;
  font-weight: 800;
  color: #0f2952;
  margin-bottom: 2px;
}

.episode-title-zh {
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 8px;
}

.episode-desc {
  font-size: 13px;
  color: var(--slate-600);
  line-height: 1.48;
}

/* Active Story Stage Container */
.story-stage-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.story-stage-banner {
  background: linear-gradient(135deg, #0d3b72 0%, #1d4ed8 100%);
  color: #ffffff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.stage-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stage-banner-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.stage-banner-title {
  font-size: 20px;
  font-weight: 800;
}

.scene-step-badge {
  background: #d97706;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.stage-atmosphere {
  font-size: 13px;
  color: #dbeafe;
  display: flex;
  align-items: center;
  gap: 6px;
}

.speed-control-box {
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 4px 8px 4px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #e2e8f0;
}

.speed-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.speed-btn.active {
  background: #ffffff;
  color: #0f2952;
}

.story-stage-body {
  padding: 24px;
}

.npc-dialogue-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.npc-dialogue-bubble {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: var(--shadow-xs);
}

.npc-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.npc-name-badge {
  background: #eff6ff;
  color: #1e40af;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.btn-listen-audio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-listen-audio:hover {
  background: #dbeafe;
}

.npc-chinese-line {
  font-size: 22px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 6px;
  line-height: 1.4;
}

.npc-pinyin-line {
  font-size: 14.5px;
  color: var(--slate-500);
  margin-bottom: 10px;
}

.npc-thai-line {
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-800);
}

/* Scene Key Vocabulary Box */
.scene-vocab-box {
  background: #f8fafc;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.scene-vocab-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-600);
  margin-bottom: 12px;
}

.scene-vocab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.vocab-mini-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.16s ease;
}

.vocab-mini-card:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.vocab-mini-word {
  font-size: 16px;
  font-weight: 800;
  color: #0f2952;
}

.vocab-mini-pinyin {
  font-size: 12px;
  color: var(--slate-400);
  margin-bottom: 2px;
}

.vocab-mini-meaning {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate-700);
}

/* Cultural Tip Box */
.cultural-tip-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}

.cultural-tip-title {
  font-size: 13px;
  font-weight: 700;
  color: #b45309;
  margin-bottom: 2px;
}

.cultural-tip-text {
  font-size: 13.5px;
  color: #92400e;
}

/* Branching Story Choices */
.choices-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 12px;
}

.choices-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice-option-card {
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.choice-option-card:hover {
  border-color: #2563eb;
  background: #f8fbff;
}

.choice-option-card.selected {
  border-color: #10b981;
  background: #ecfdf5;
}

.choice-intent-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #0f3a6d;
  margin-bottom: 4px;
}

.choice-zh {
  font-size: 16px;
  font-weight: 800;
  color: var(--slate-900);
}

.choice-pinyin {
  font-size: 12.5px;
  color: var(--slate-500);
}

.choice-th {
  font-size: 13px;
  color: var(--slate-700);
  margin-top: 2px;
}

.choice-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-choose-answer {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-choose-answer:hover {
  background: #f59e0b;
  color: #ffffff;
}

.story-feedback-banner {
  margin-top: 16px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   MODE 2: DAILY 5 HANZI & SPACED REPETITION (คัดอักษรวันละ 5 คำ & ทบทวน)
   ========================================================================== */
.hanzi-top-card {
  background: #f0f6ff;
  border: 1px solid #dbeafe;
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.hanzi-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hanzi-mode-switch {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-pill);
  padding: 4px;
  display: inline-flex;
  gap: 4px;
}

.hanzi-switch-btn {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-600);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hanzi-switch-btn.active {
  background: #0f3a6d;
  color: #ffffff;
}

.hanzi-char-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hanzi-tab-btn {
  width: 66px;
  height: 72px;
  border-radius: 14px;
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.16s ease;
}

.hanzi-tab-btn:hover {
  border-color: #60a5fa;
}

.hanzi-tab-btn.active {
  border-color: #1d4ed8;
  background: #eff6ff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.15);
}

.hanzi-tab-btn.completed::after {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #10b981;
}

.hanzi-tab-char {
  font-size: 24px;
  font-weight: 800;
  color: #0f2952;
  line-height: 1.1;
}

.hanzi-tab-pinyin {
  font-size: 11.5px;
  color: var(--slate-500);
}

.hanzi-workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 20px;
}

.hanzi-board-card,
.hanzi-detail-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-xs);
}

.board-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.word-step-pill {
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.btn-outline-sm {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-outline-sm:hover {
  border-color: var(--primary-500);
  color: var(--primary-700);
}

/* Mi Zi Ge (米字格) Canvas Container */
.mizige-wrapper {
  width: 280px;
  height: 280px;
  margin: 0 auto 16px;
  background: #fffdf7;
  border: 2.5px solid #fdba74;
  border-radius: 16px;
  position: relative;
  box-shadow: inset 0 0 18px rgba(251, 146, 60, 0.08);
  user-select: none;
  touch-action: none;
}

.mizige-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  border-radius: 14px;
}

.board-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.btn-submit-hanzi {
  background: #0f3a6d;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(15, 58, 109, 0.25);
  transition: all 0.16s ease;
}

.btn-submit-hanzi:hover {
  background: #1d4ed8;
}

.stroke-order-box {
  border-top: 1px solid var(--slate-100);
  padding-top: 14px;
}

.stroke-order-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--slate-500);
  margin-bottom: 8px;
}

.stroke-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stroke-pill {
  background: #f8fafc;
  border: 1px solid var(--slate-200);
  color: #1e40af;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.stroke-pill:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.stroke-pill.done {
  background: #ecfdf5;
  border-color: #34d399;
  color: #047857;
}

/* Right Column: Character Detail & Directional Dictionary */
.detail-char-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.detail-char-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.detail-big-char {
  font-size: 54px;
  font-weight: 800;
  color: #0f2952;
  line-height: 1;
}

.detail-pinyin-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-pinyin {
  font-size: 24px;
  font-weight: 800;
  color: #1d4ed8;
}

.detail-tone-text {
  font-size: 12.5px;
  color: var(--slate-500);
}

.detail-meaning-line {
  font-size: 16px;
  font-weight: 800;
  color: #0f2952;
  margin-bottom: 14px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.detail-meta-box {
  background: #f8fafc;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 10px 14px;
}

.detail-meta-label {
  font-size: 11.5px;
  color: var(--slate-500);
}

.detail-meta-val {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f2952;
}

.example-sentence-card {
  background: #f8fafc;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.directional-dict-section {
  border-top: 1px dashed var(--slate-200);
  padding-top: 14px;
  margin-bottom: 16px;
}

.directional-dict-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.directional-item {
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.directional-item:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.hanzi-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
}

/* ==========================================================================
   MODE 3: CAREER VOCABULARY & WORKPLACE DIALOGUE (ศัพท์เฉพาะสายอาชีพ 6 สาย)
   ========================================================================== */
.career-track-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.career-track-tab {
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--slate-700);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.16s ease;
}

.career-track-tab:hover {
  border-color: #60a5fa;
}

.career-track-tab.active {
  background: #0f3a6d;
  border-color: #0f3a6d;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 58, 109, 0.22);
}

.career-workspace-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
}

.career-dict-card,
.career-chat-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-xs);
}

.term-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.term-pill-btn {
  background: #f1f5f9;
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.term-pill-btn.active {
  background: #0f3a6d;
  border-color: #0f3a6d;
  color: #ffffff;
}

.active-term-box {
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  padding: 20px;
  background: #ffffff;
}

.workplace-bubble {
  background: #f8fafc;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}

.workplace-bubble.supplier {
  background: #f0f7ff;
  border-color: #bfdbfe;
}

/* ==========================================================================
   MODE 4, 5, 6, 7 CARDS & INTERACTIVE ELEMENTS
   ========================================================================== */
.card-surface {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-xs);
  margin-bottom: 18px;
}

.slot-builder-area {
  background: #f8fafc;
  border: 2px dashed #93c5fd;
  border-radius: 16px;
  padding: 16px;
  min-height: 76px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.word-token-btn {
  background: #ffffff;
  border: 1.5px solid #3b82f6;
  color: #0f2952;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s ease;
}

.word-token-btn:hover {
  background: #eff6ff;
  transform: translateY(-1px);
}

.word-token-btn.used {
  opacity: 0.38;
  pointer-events: none;
}

.lyric-word-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 8px 12px;
  margin: 4px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.lyric-word-chip:hover,
.lyric-word-chip.active {
  border-color: #db2777;
  background: #fdf2f8;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(219, 39, 119, 0.14);
}

.term-pill-btn.wrong {
  background: #fff1f2;
  border-color: #fda4af;
  color: #be123c;
}

.skill-bar-track {
  width: 100%;
  height: 10px;
  background: var(--slate-100);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 6px;
}

.skill-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
  transition: width 0.4s ease;
}

/* Toast Notification for Audio & XP */
.toast-container {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.lingora-toast {
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlideIn 0.22s ease;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.lingora-toast.fade-out {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.lingora-toast.success {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border: 1.5px solid #34D399;
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.45), 0 8px 10px -6px rgba(5, 150, 105, 0.35);
}

.lingora-toast.error {
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  border: 1.5px solid #F87171;
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.45), 0 8px 10px -6px rgba(220, 38, 38, 0.35);
}

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

/* Auto Fade Out Notice (2-3 seconds) for green/red feedback dialogs and banners */
@keyframes autoFadeOutNotice {
  0% {
    opacity: 1;
    transform: translateY(0);
    max-height: 240px;
  }
  68% {
    opacity: 1;
    transform: translateY(0);
    max-height: 240px;
  }
  88% {
    opacity: 0.15;
    transform: translateY(-4px);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
    border-width: 0;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .welcome-hero,
  .hanzi-workspace-grid,
  .career-workspace-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .app-sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: 55;
    box-shadow: var(--shadow-lg);
  }

  .header-quick-nav {
    display: none;
  }

  .welcome-navbar {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
  }
}


/* ============================================================================
   LINGORA — ULTIMATE MASTER PROMPT MULTI-PAGE PLATFORM STYLES
   Mandatory Color Tokens (Section 2.2):
   Primary Blue: #24599B | Secondary Blue: #3D7FC2 | Light Blue: #EAF4FF
   Background: #F7FAFE | White: #FFFFFF | Cream: #FFF7EA
   Caramel: #F1C58D | Orange: #F39A38 | Main Text: #1B3456
   Secondary Text: #75859A | Border: #DCE6F2 | Success: #3D9B83 | Error: #D85A64
   ============================================================================ */

:root {
  --lingora-primary-blue: #24599B;
  --lingora-secondary-blue: #3D7FC2;
  --lingora-light-blue: #EAF4FF;
  --lingora-bg: #F7FAFE;
  --lingora-white: #FFFFFF;
  --lingora-cream: #FFF7EA;
  --lingora-caramel: #F1C58D;
  --lingora-orange: #F39A38;
  --lingora-main-text: #1B3456;
  --lingora-sec-text: #75859A;
  --lingora-border: #DCE6F2;
  --lingora-success: #3D9B83;
  --lingora-error: #D85A64;
}

.lingora-platform-shell {
  min-height: 100vh;
  background: var(--lingora-bg);
  color: var(--lingora-main-text);
  font-family: 'Noto Sans Thai', 'Prompt', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', sans-serif;
  display: flex;
  flex-direction: column;
}

.lingora-platform-shell.reduced-motion * {
  transition: none !important;
  animation: none !important;
}

.lingora-platform-shell.high-contrast-borders .dash-section-card,
.lingora-platform-shell.high-contrast-borders .dash-lang-card,
.lingora-platform-shell.high-contrast-borders .dash-course-card,
.lingora-platform-shell.high-contrast-borders .community-post-card,
.lingora-platform-shell.high-contrast-borders .mascot-collection-card,
.lingora-platform-shell.high-contrast-borders .shop-item-card {
  border-width: 2px !important;
  border-color: var(--lingora-primary-blue) !important;
}

/* Logo Component */
.lingora-logo-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.lingora-logo-texts {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.lingora-brand-word {
  font-size: 21px;
  font-weight: 800;
  color: var(--lingora-primary-blue);
  letter-spacing: -0.02em;
}

.lingora-brand-tagline {
  font-size: 11px;
  font-weight: 700;
  color: var(--lingora-orange);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Global Top Navigation */
.lingora-top-navbar {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--lingora-white);
  border-bottom: 1.5px solid var(--lingora-border);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 2px 12px rgba(27, 52, 86, 0.04);
}

.top-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-nav-brand-link {
  text-decoration: none;
}

.platform-mobile-menu-btn {
  display: none;
  background: var(--lingora-light-blue);
  color: var(--lingora-primary-blue);
  border: 1px solid var(--lingora-border);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  font-size: 18px;
  cursor: pointer;
}

.top-nav-search-wrap {
  flex: 1;
  max-width: 520px;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--lingora-bg);
  border: 1.5px solid var(--lingora-border);
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
}

.top-nav-search-wrap:focus-within {
  border-color: var(--lingora-secondary-blue);
  background: var(--lingora-white);
  box-shadow: 0 0 0 3px rgba(61, 127, 194, 0.14);
}

.search-icon-prefix {
  font-size: 14px;
  margin-right: 8px;
}

.top-nav-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13.5px;
  color: var(--lingora-main-text);
  outline: none;
  font-family: inherit;
}

.search-go-btn,
.search-clear-btn {
  background: var(--lingora-primary-blue);
  color: var(--lingora-white);
  border: none;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.global-search-results-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--lingora-white);
  border: 1.5px solid var(--lingora-border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 14px 32px rgba(27, 52, 86, 0.14);
  z-index: 200;
  max-height: 400px;
  overflow-y: auto;
}

.gsr-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--lingora-sec-text);
  border-bottom: 1px solid var(--lingora-border);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.gsr-group {
  margin-bottom: 10px;
}

.gsr-group-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--lingora-primary-blue);
  margin-bottom: 4px;
}

.gsr-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  background: var(--lingora-bg);
  border: 1px solid var(--lingora-border);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}

.gsr-item:hover {
  background: var(--lingora-light-blue);
  border-color: var(--lingora-secondary-blue);
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-nav-icon-pill,
.top-nav-icon-btn {
  position: relative;
  background: var(--lingora-light-blue);
  color: var(--lingora-primary-blue);
  border: 1px solid var(--lingora-border);
  border-radius: 12px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-counter-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--lingora-orange);
  color: var(--lingora-white);
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 5px;
}

.top-nav-coin-pill {
  display: inline-flex;
  align-items: center;
  background: var(--lingora-cream);
  border: 1.5px solid var(--lingora-caramel);
  border-radius: 999px;
  padding: 3px 5px 3px 10px;
  gap: 6px;
}

.coin-balance-btn {
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  color: var(--lingora-main-text);
  cursor: pointer;
  font-size: 13.5px;
}

.coin-add-btn {
  background: var(--lingora-orange);
  color: var(--lingora-white);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: 800;
  cursor: pointer;
}

.top-nav-dropdown-anchor {
  position: relative;
}

.top-nav-user-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--lingora-white);
  border: 1.5px solid var(--lingora-border);
  border-radius: 999px;
  padding: 4px 12px 4px 5px;
  cursor: pointer;
}

.top-nav-user-meta {
  text-align: left;
  line-height: 1.2;
}

.top-nav-username-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-nav-display-name {
  font-weight: 800;
  font-size: 13.5px;
  color: var(--lingora-main-text);
}

.top-nav-level-badge {
  background: var(--lingora-cream);
  color: #B45309;
  border: 1px solid var(--lingora-caramel);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 800;
}

.top-nav-user-title {
  font-size: 11px;
  color: var(--lingora-primary-blue);
  font-weight: 700;
}

.lingora-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: var(--lingora-white);
  border: 1.5px solid var(--lingora-border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 14px 34px rgba(27, 52, 86, 0.16);
  z-index: 220;
}

.user-dropdown-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px;
}

.uds-name {
  font-weight: 800;
  font-size: 14px;
}

.uds-level {
  font-size: 12px;
  color: #B45309;
  font-weight: 700;
}

.uds-xp {
  font-size: 11.5px;
  color: var(--lingora-sec-text);
}

.dropdown-divider {
  border: none;
  border-top: 1px solid var(--lingora-border);
  margin: 8px 0;
}

.dropdown-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--lingora-main-text);
  cursor: pointer;
  font-family: inherit;
}

.dropdown-item:hover {
  background: var(--lingora-light-blue);
  color: var(--lingora-primary-blue);
}

.dropdown-item.danger {
  color: var(--lingora-error);
}

.notif-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notif-item {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--lingora-bg);
  font-size: 12.5px;
  cursor: pointer;
}

.notif-item.unread {
  background: var(--lingora-light-blue);
  border-left: 3px solid var(--lingora-primary-blue);
}

.notif-time {
  font-size: 11px;
  color: var(--lingora-sec-text);
  margin-top: 3px;
}

/* Main Layout Body (Sidebar + Central Content) */
.lingora-platform-body {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  flex: 1;
}

.lingora-left-sidebar {
  background: var(--lingora-white);
  border-right: 1.5px solid var(--lingora-border);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-group-heading {
  font-size: 11px;
  font-weight: 800;
  color: var(--lingora-sec-text);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  padding: 0 6px;
}

.platform-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.platform-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--lingora-main-text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.15s ease;
}

.platform-nav-btn:hover {
  background: var(--lingora-light-blue);
  color: var(--lingora-primary-blue);
}

.platform-nav-btn.active {
  background: var(--lingora-primary-blue);
  color: var(--lingora-white);
  box-shadow: 0 4px 12px rgba(36, 89, 155, 0.25);
}

.sidebar-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sq-pill {
  background: var(--lingora-bg);
  color: var(--lingora-main-text);
  border: 1px solid var(--lingora-border);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.sq-pill.active,
.sq-pill:hover {
  background: var(--lingora-light-blue);
  color: var(--lingora-primary-blue);
  border-color: var(--lingora-secondary-blue);
}

.sidebar-lang-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sidebar-lang-chip {
  background: var(--lingora-bg);
  border: 1px solid var(--lingora-border);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.sidebar-lang-chip.active {
  background: var(--lingora-primary-blue);
  color: var(--lingora-white);
  border-color: var(--lingora-primary-blue);
}

.sidebar-sublink-btn {
  margin-top: 6px;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--lingora-secondary-blue);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  padding: 4px 6px;
}

.sidebar-learning-langs {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sidebar-learn-lang-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--lingora-bg);
  border: 1px solid var(--lingora-border);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.sll-pct {
  color: var(--lingora-primary-blue);
  font-weight: 800;
}

.sidebar-assistant-card {
  background: linear-gradient(155deg, var(--lingora-cream) 0%, #FFFFFF 100%);
  border: 1.5px solid var(--lingora-caramel);
  border-radius: 16px;
  padding: 12px;
}

.sac-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sac-badge {
  font-size: 10.5px;
  font-weight: 800;
  color: #B45309;
  text-transform: uppercase;
}

.sac-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--lingora-main-text);
}

.sac-quote {
  font-size: 12px;
  color: var(--lingora-sec-text);
  margin: 8px 0 10px;
  line-height: 1.45;
}

.sac-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sac-shortcut-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.sac-btn {
  border-radius: 10px;
  padding: 7px 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--lingora-border);
  font-family: inherit;
}

.sac-btn.primary {
  background: var(--lingora-primary-blue);
  color: var(--lingora-white);
  border-color: var(--lingora-primary-blue);
}

.sac-btn.secondary {
  background: var(--lingora-white);
  color: var(--lingora-main-text);
}

.sac-btn.accent {
  background: var(--lingora-orange);
  color: var(--lingora-white);
  border-color: var(--lingora-orange);
}

/* Central Content Container & Buttons */
.lingora-platform-main {
  padding: 24px 28px 48px;
  min-width: 0;
}

.platform-page-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.btn-lingora-primary {
  background: var(--lingora-primary-blue);
  color: var(--lingora-white);
  border: 1.5px solid var(--lingora-primary-blue);
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

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

.btn-lingora-secondary {
  background: var(--lingora-light-blue);
  color: var(--lingora-primary-blue);
  border: 1.5px solid var(--lingora-secondary-blue);
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.btn-lingora-caramel {
  background: var(--lingora-orange);
  color: var(--lingora-white);
  border: 1.5px solid var(--lingora-orange);
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.btn-lingora-outline {
  background: var(--lingora-white);
  color: var(--lingora-main-text);
  border: 1.5px solid var(--lingora-border);
  border-radius: 12px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.btn-lingora-outline:hover {
  border-color: var(--lingora-secondary-blue);
  color: var(--lingora-primary-blue);
}

.btn-lingora-outline.danger {
  color: var(--lingora-error);
  border-color: #FECDD3;
}

.btn-lingora-primary.sm,
.btn-lingora-secondary.sm,
.btn-lingora-caramel.sm,
.btn-lingora-outline.sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 9px;
}

.btn-lingora-primary.lg,
.btn-lingora-secondary.lg,
.btn-lingora-caramel.lg,
.btn-lingora-outline.lg {
  padding: 12px 22px;
  font-size: 14.5px;
}

.full-width {
  width: 100%;
}

.btn-text-link {
  background: transparent;
  border: none;
  color: var(--lingora-primary-blue);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

/* Dashboard Welcome Banner (Section 7.1) */
.dashboard-welcome-banner {
  background: linear-gradient(135deg, var(--lingora-cream) 0%, var(--lingora-light-blue) 58%, #FDF0DF 100%);
  border: 1.5px solid var(--lingora-caramel);
  border-radius: 22px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: center;
  box-shadow: 0 8px 24px rgba(36, 89, 155, 0.06);
}

.dwb-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.dwb-level-pill {
  background: var(--lingora-primary-blue);
  color: var(--lingora-white);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 800;
}

.dwb-title-pill {
  background: var(--lingora-orange);
  color: var(--lingora-white);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 12.5px;
  font-weight: 800;
}

.dwb-demo-tag {
  background: var(--lingora-white);
  color: var(--lingora-sec-text);
  border: 1px solid var(--lingora-border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
}

.dwb-greeting {
  font-size: 26px;
  font-weight: 800;
  color: var(--lingora-main-text);
  margin: 0 0 6px;
}

.dwb-motivational {
  font-size: 14px;
  color: var(--lingora-sec-text);
  margin: 0 0 14px;
}

.dwb-xp-progress-box {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--lingora-border);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.dwb-xp-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 6px;
}

.lingora-progress-track {
  width: 100%;
  height: 9px;
  background: #E2ECF7;
  border-radius: 999px;
  overflow: hidden;
}

.lingora-progress-track.lg {
  height: 12px;
}

.lingora-progress-track.sm {
  height: 6px;
}

.lingora-progress-fill {
  height: 100%;
  background: var(--lingora-primary-blue);
  border-radius: 999px;
}

.lingora-progress-fill.gold {
  background: linear-gradient(90deg, var(--lingora-primary-blue) 0%, var(--lingora-orange) 100%);
}

.dwb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dwb-mascot-frame {
  text-align: center;
  background: var(--lingora-white);
  border: 1.5px solid var(--lingora-caramel);
  border-radius: 20px;
  padding: 10px;
}

.dwb-mascot-caption {
  font-size: 12px;
  font-weight: 800;
  color: var(--lingora-main-text);
  margin-top: 4px;
}

/* Dashboard Main Grid */
.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.dashboard-center-col,
.dashboard-right-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dash-section-card {
  background: var(--lingora-white);
  border: 1.5px solid var(--lingora-border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(27, 52, 86, 0.03);
}

.dash-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.dash-section-title {
  font-size: 17.5px;
  font-weight: 800;
  color: var(--lingora-primary-blue);
  margin: 0;
}

.dash-section-sub {
  font-size: 13px;
  color: var(--lingora-sec-text);
  margin: 4px 0 0;
}

/* 4 Language Cards */
.dash-language-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dash-lang-card {
  border: 1.5px solid var(--lingora-border);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease;
}

.dash-lang-card:hover {
  transform: translateY(-2px);
}

.dlc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dlc-flag {
  font-size: 22px;
}

.dlc-symbol {
  font-weight: 800;
  font-size: 14px;
  color: var(--lingora-primary-blue);
  margin-left: 6px;
}

.dlc-pct-badge {
  background: var(--lingora-white);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  color: var(--lingora-main-text);
}

.dlc-name {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}

.dlc-status {
  font-size: 12px;
  color: var(--lingora-sec-text);
}

.dlc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
}

/* Recommended Courses Grid */
.dash-courses-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dash-course-card {
  border: 1.5px solid var(--lingora-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--lingora-white);
  display: flex;
  flex-direction: column;
}

.dcc-thumb {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
}

.dcc-thumb.theme-cream-gold {
  background: linear-gradient(135deg, #FFF7EA 0%, #FDE6C4 100%);
  color: #9A5B13;
}

.dcc-thumb.theme-blue-sky {
  background: linear-gradient(135deg, #EAF4FF 0%, #C7E0FF 100%);
  color: var(--lingora-primary-blue);
}

.dcc-thumb.theme-rose-cream {
  background: linear-gradient(135deg, #FFF0F5 0%, #FCE7F3 100%);
  color: #9D174D;
}

.dcc-thumb.theme-mint-blue {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  color: #065F46;
}

.dcc-symbol {
  font-size: 18px;
}

.dcc-diff-pill {
  background: rgba(255, 255, 255, 0.85);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
}

.dcc-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.dcc-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--lingora-sec-text);
  font-weight: 700;
}

.dcc-title {
  font-size: 15.5px;
  font-weight: 800;
  margin: 0;
  color: var(--lingora-main-text);
}

.dcc-desc {
  font-size: 12.5px;
  color: var(--lingora-sec-text);
  margin: 0;
  flex: 1;
}

.dcc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--lingora-border);
}

.dcc-price {
  font-weight: 800;
  font-size: 13px;
  color: var(--lingora-orange);
}

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

.dash-post-mini {
  background: var(--lingora-bg);
  border: 1px solid var(--lingora-border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.dpm-meta {
  font-size: 11.5px;
  color: var(--lingora-sec-text);
  margin-bottom: 4px;
}

.dpm-title {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 4px;
}

.dpm-excerpt {
  font-size: 12.5px;
  color: var(--lingora-sec-text);
  margin: 0 0 8px;
}

.dpm-act-btn {
  background: var(--lingora-white);
  border: 1px solid var(--lingora-border);
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 12px;
  cursor: pointer;
  margin-right: 6px;
}

.dash-chat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: var(--lingora-bg);
  border: 1px solid var(--lingora-border);
  margin-bottom: 8px;
  cursor: pointer;
}

.dcr-avatar {
  position: relative;
}

.online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: var(--lingora-success);
  border: 2px solid var(--lingora-white);
  border-radius: 50%;
}

.dcr-body {
  flex: 1;
  min-width: 0;
}

.dcr-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.dcr-msg {
  font-size: 12px;
  color: var(--lingora-sec-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unread-pill {
  background: var(--lingora-primary-blue);
  color: var(--lingora-white);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
}

/* Dashboard Right Widgets (Profile, Top 10, Assistant) */
.psw-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.psw-name {
  font-size: 16px;
  font-weight: 800;
}

.psw-level {
  font-size: 12.5px;
  color: #B45309;
}

.psw-stats {
  font-size: 12px;
  color: var(--lingora-sec-text);
  font-weight: 700;
}

.psw-bio {
  font-size: 12.5px;
  color: var(--lingora-sec-text);
  margin: 0 0 12px;
}

.psw-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.top10-mini-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.top10-mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--lingora-bg);
  border: 1px solid var(--lingora-border);
  cursor: pointer;
}

.top10-mini-row.is-kk {
  background: var(--lingora-cream);
  border-color: var(--lingora-orange);
}

.t10-rank {
  font-weight: 800;
  font-size: 13px;
  color: var(--lingora-primary-blue);
  min-width: 26px;
}

.t10-user {
  flex: 1;
  min-width: 0;
}

.t10-name {
  font-weight: 800;
  font-size: 13px;
}

.t10-sub {
  font-size: 11px;
  color: var(--lingora-sec-text);
}

.t10-score {
  font-weight: 800;
  font-size: 12.5px;
  color: var(--lingora-primary-blue);
}

.adw-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.adw-pill {
  font-size: 11px;
  font-weight: 800;
  color: #B45309;
  background: var(--lingora-cream);
  padding: 2px 8px;
  border-radius: 999px;
}

.adw-title {
  font-size: 15px;
  font-weight: 800;
  margin: 4px 0 2px;
}

.adw-desc {
  font-size: 12px;
  color: var(--lingora-sec-text);
  margin: 0;
}

.adw-suggestion {
  background: var(--lingora-cream);
  border: 1px solid var(--lingora-caramel);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  margin-bottom: 12px;
}

.adw-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.recent-activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recent-activity-item {
  background: var(--lingora-bg);
  border: 1px solid var(--lingora-border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
}

.rai-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--lingora-sec-text);
  margin-top: 4px;
}

.rai-xp {
  color: var(--lingora-success);
  font-weight: 800;
}

/* Mascot Customizer Two-Column Studio (Section 20) */
.mascot-studio-two-col {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.mascot-preview-panel {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mpp-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mpp-studio-badge {
  background: var(--lingora-light-blue);
  color: var(--lingora-primary-blue);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}

.mpp-species-tag {
  font-size: 11.5px;
  color: var(--lingora-sec-text);
  font-weight: 700;
}

.mpp-canvas-stage {
  background: var(--lingora-bg);
  border: 1.5px solid var(--lingora-border);
  border-radius: 24px;
  padding: 12px;
  margin-bottom: 12px;
}

.mpp-char-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--lingora-main-text);
  margin: 0 0 12px;
}

.mpp-summary-card {
  width: 100%;
  background: var(--lingora-bg);
  border: 1px solid var(--lingora-border);
  border-radius: 14px;
  padding: 12px;
  text-align: left;
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.mpp-sum-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.color-dot-inline {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #94A3B8;
  vertical-align: middle;
}

.mpp-action-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mpp-sub-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mcp-block {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--lingora-border);
}

.mcp-block-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--lingora-primary-blue);
  margin: 0 0 10px;
}

.mcp-character-selector,
.mcp-presets-row,
.mcp-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mcp-char-btn,
.mcp-preset-chip,
.mcp-tab-btn {
  background: var(--lingora-bg);
  color: var(--lingora-main-text);
  border: 1.5px solid var(--lingora-border);
  border-radius: 12px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mcp-char-btn.active,
.mcp-preset-chip.active,
.mcp-tab-btn.active {
  background: var(--lingora-primary-blue);
  color: var(--lingora-white);
  border-color: var(--lingora-primary-blue);
}

.mcp-char-btn.locked,
.cust-choice-btn.locked {
  opacity: 0.65;
  background: #F1F5F9;
}

.color-swatches-grid,
.customizer-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.color-swatch-card,
.cust-choice-btn {
  background: var(--lingora-bg);
  border: 1.5px solid var(--lingora-border);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.color-swatch-card.active,
.cust-choice-btn.active {
  background: var(--lingora-light-blue);
  border-color: var(--lingora-primary-blue);
  box-shadow: 0 0 0 2px rgba(36, 89, 155, 0.15);
}

.swatch-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #94A3B8;
  flex-shrink: 0;
}

.custom-color-picker-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--lingora-bg);
  padding: 10px 14px;
  border-radius: 12px;
}

/* Shared Cards, Grids & Forms across Pages 1–17 */
.page-top-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.page-heading {
  font-size: 24px;
  font-weight: 800;
  color: var(--lingora-primary-blue);
  margin: 0 0 4px;
}

.page-subheading {
  font-size: 13.5px;
  color: var(--lingora-sec-text);
  margin: 0;
}

.page-top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lingora-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--lingora-main-text);
}

.lingora-input,
.lingora-select,
.lingora-textarea {
  border: 1.5px solid var(--lingora-border);
  border-radius: 11px;
  padding: 9px 13px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--lingora-main-text);
  background: var(--lingora-white);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.form-feedback-banner {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  animation: autoFadeOutNotice 2.5s ease-in-out forwards;
}

.form-feedback-banner:hover {
  animation-play-state: paused;
}

.form-feedback-banner.success {
  background: #ECFDF5;
  color: #065F46;
  border: 1.5px solid #6EE7B7;
}

.form-feedback-banner.error {
  background: #FFF1F2;
  color: #9F1239;
  border: 1.5px solid #FECDD3;
}

.demo-mode-banner {
  background: var(--lingora-cream);
  border: 1.5px solid var(--lingora-caramel);
  color: #9A5B13;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  margin-bottom: 14px;
}

/* Public Home & Auth */
.public-hero-banner {
  background: linear-gradient(135deg, var(--lingora-white) 0%, var(--lingora-light-blue) 60%, var(--lingora-cream) 100%);
  border: 1.5px solid var(--lingora-border);
  border-radius: 24px;
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: center;
}

.public-hero-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  margin: 10px 0 12px;
}

.text-primary-blue {
  color: var(--lingora-primary-blue);
}

.public-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.public-mascot-showcase-card {
  background: var(--lingora-white);
  border: 1.5px solid var(--lingora-caramel);
  border-radius: 22px;
  padding: 20px;
  text-align: center;
}

.public-feature-grid,
.mascots-collection-grid,
.shop-items-grid,
.private-rooms-grid,
.partner-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

.public-feature-card,
.mascot-collection-card,
.shop-item-card,
.private-room-card,
.partner-card {
  background: var(--lingora-white);
  border: 1.5px solid var(--lingora-border);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mascot-collection-card.featured-snake {
  border-color: var(--lingora-orange);
  background: linear-gradient(180deg, var(--lingora-cream) 0%, var(--lingora-white) 35%);
}

.mcc-preview-box {
  display: flex;
  justify-content: center;
  padding: 8px;
}

.auth-card {
  max-width: 500px;
  margin: 24px auto;
  background: var(--lingora-white);
  border: 1.5px solid var(--lingora-border);
  border-radius: 22px;
  padding: 28px;
}

.auth-card.wide {
  max-width: 660px;
}

/* Learning Page & Interactive Lesson Player */
.learning-progress-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.lps-card {
  background: var(--lingora-white);
  border: 1.5px solid var(--lingora-border);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.lps-card.active {
  border-color: var(--lingora-primary-blue);
  background: var(--lingora-light-blue);
}

.lps-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 13px;
}

.learning-filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--lingora-white);
  border: 1.5px solid var(--lingora-border);
  border-radius: 16px;
  padding: 14px;
}

.lfb-search {
  flex: 1;
  min-width: 220px;
}

.lfb-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lessons-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.lesson-select-card {
  background: var(--lingora-white);
  border: 1.5px solid var(--lingora-border);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lesson-select-card.active {
  border-color: var(--lingora-primary-blue);
  background: var(--lingora-light-blue);
}

.interactive-lesson-player {
  background: var(--lingora-white);
  border: 2px solid var(--lingora-primary-blue);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ilp-info-grid,
.ilp-vocab-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.ilp-box,
.ilp-vocab-card {
  background: var(--lingora-bg);
  border: 1px solid var(--lingora-border);
  border-radius: 14px;
  padding: 14px;
}

.ilp-box.cream {
  background: var(--lingora-cream);
  border-color: var(--lingora-caramel);
}

.ilp-exercise-stage {
  background: var(--lingora-bg);
  border: 1.5px solid var(--lingora-border);
  border-radius: 16px;
  padding: 18px;
}

.lec-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.lec-option-btn {
  background: var(--lingora-white);
  border: 1.5px solid var(--lingora-border);
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.lec-option-btn.selected {
  background: var(--lingora-primary-blue);
  color: var(--lingora-white);
  border-color: var(--lingora-primary-blue);
}

.lec-feedback {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  animation: autoFadeOutNotice 2.5s ease-in-out forwards;
}

.lec-feedback:hover {
  animation-play-state: paused;
}

.grammar-slot-feedback,
.accent-quiz-feedback,
.workplace-reply-feedback,
.hanzi-board-feedback,
#hanzi-board-feedback,
#contact-form-feedback {
  animation: autoFadeOutNotice 2.5s ease-in-out forwards;
}

.grammar-slot-feedback:hover,
.accent-quiz-feedback:hover,
.workplace-reply-feedback:hover,
.hanzi-board-feedback:hover,
#hanzi-board-feedback:hover,
#contact-form-feedback:hover {
  animation-play-state: paused;
}

.lec-feedback.ok {
  background: #ECFDF5;
  color: #065F46;
}

.lec-feedback.err {
  background: #FFF1F2;
  color: #9F1239;
}

.ilp-ex-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.lesson-completion-summary {
  background: var(--lingora-cream);
  border: 2px solid var(--lingora-orange);
  border-radius: 16px;
  padding: 18px;
}

/* Community, Chat, Arena, Leaderboard, Edit Profile */
.community-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.community-post-card {
  background: var(--lingora-white);
  border: 1.5px solid var(--lingora-border);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
}

.cpc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.cpc-author {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.cpc-interaction-bar {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.cpc-act-btn {
  background: var(--lingora-bg);
  border: 1px solid var(--lingora-border);
  border-radius: 10px;
  padding: 6px 12px;
  font-weight: 700;
  cursor: pointer;
}

.cpc-act-btn.active {
  background: var(--lingora-light-blue);
  color: var(--lingora-primary-blue);
  border-color: var(--lingora-secondary-blue);
}

.cpc-comment-input-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.chat-messenger-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  background: var(--lingora-white);
  border: 1.5px solid var(--lingora-border);
  border-radius: 20px;
  overflow: hidden;
  min-height: 460px;
}

.chat-conv-sidebar {
  border-right: 1.5px solid var(--lingora-border);
  padding: 12px;
  background: var(--lingora-bg);
}

.ccs-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
  margin-bottom: 6px;
}

.ccs-item.active {
  background: var(--lingora-white);
  border-color: var(--lingora-secondary-blue);
}

.chat-active-window {
  display: flex;
  flex-direction: column;
}

.caw-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--lingora-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.caw-messages-area {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #FAFCFF;
}

.chat-bubble-row.mine {
  align-self: flex-end;
}

.chat-bubble-row.theirs {
  align-self: flex-start;
}

.chat-bubble {
  max-width: 460px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--lingora-white);
  border: 1px solid var(--lingora-border);
}

.chat-bubble-row.mine .chat-bubble {
  background: var(--lingora-primary-blue);
  color: var(--lingora-white);
  border-color: var(--lingora-primary-blue);
}

.caw-input-bar {
  padding: 12px 18px;
  border-top: 1px solid var(--lingora-border);
  display: flex;
  gap: 10px;
}

.leaderboard-full-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.5fr) 140px 150px 120px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--lingora-border);
  background: var(--lingora-bg);
  margin-bottom: 8px;
}

.leaderboard-full-row.highlight-kk {
  background: var(--lingora-cream);
  border: 2px solid var(--lingora-orange);
}

.lfr-user-col {
  display: flex;
  align-items: center;
  gap: 12px;
}

.edit-profile-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.profile-hero-card {
  background: var(--lingora-white);
  border: 1.5px solid var(--lingora-border);
  border-radius: 22px;
  overflow: hidden;
}

.phc-cover {
  height: 110px;
  padding: 16px 22px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 8px;
}

.phc-pill {
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.phc-body {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

/* Modals */
.lingora-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27, 52, 86, 0.48);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lingora-modal-card {
  background: var(--lingora-white);
  border: 2px solid var(--lingora-border);
  border-radius: 22px;
  max-width: 520px;
  width: 100%;
  padding: 22px;
  box-shadow: 0 20px 48px rgba(27, 52, 86, 0.25);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.modal-close-btn {
  background: var(--lingora-bg);
  border: 1px solid var(--lingora-border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

/* Responsive Tablet & Mobile Breakpoints (Section 24) */
@media (max-width: 1080px) {
  .dashboard-main-grid,
  .mascot-studio-two-col,
  .community-layout-grid,
  .edit-profile-layout,
  .public-hero-banner {
    grid-template-columns: 1fr;
  }

  .mascot-preview-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .platform-mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .lingora-platform-body {
    grid-template-columns: 1fr;
  }

  .lingora-left-sidebar {
    display: none;
  }

  .lingora-left-sidebar.mobile-open {
    display: flex;
    position: fixed;
    top: 62px;
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: 250;
    overflow-y: auto;
    box-shadow: 8px 0 28px rgba(27, 52, 86, 0.18);
  }

  .dashboard-welcome-banner,
  .dash-language-cards-grid,
  .dash-courses-grid,
  .dash-dual-preview-grid,
  .learning-progress-strip,
  .ilp-info-grid,
  .ilp-vocab-grid,
  .lec-options-grid,
  .chat-messenger-layout,
  .phc-body,
  .form-grid-2,
  .form-grid-3,
  .leaderboard-full-row {
    grid-template-columns: 1fr;
  }

  .lingora-top-navbar {
    flex-wrap: wrap;
    padding: 10px 14px;
  }

  .top-nav-search-wrap {
    order: 3;
    max-width: 100%;
    width: 100%;
  }

  .hide-on-mobile {
    display: none;
  }
}

/* Accessibility: respect reduced-motion preference (Section 25) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
