/* ==========================================================================
   MAMMALEARN - AUTHENTIC BRIGHT DUOLINGO SHOP THEME
   ========================================================================== */

:root {
  /* Color Palette - Duolingo Bright Aesthetic */
  --bg-app: #FFFFFF;            /* Pure Clean White */
  --bg-sidebar: #FFFFFF;        /* Sidebar White Background */
  --bg-card: #FFFFFF;           /* Flat White Cards */
  --bg-hover: #F7F7F7;          /* Soft Gray Hover State */
  
  --border-light: #E5E5E5;      /* Duolingo Standard Light Divider Gray */
  --border-active: #84D8FF;     /* Active Blue Border */
  
  /* Primary Text Colors */
  --text-primary: #3C3C3C;      /* Classic Charcoal Dark Gray */
  --text-secondary: #777777;    /* Muted Slate Body Gray */
  --text-muted: #AFAFAF;        /* Light Gray placeholder */
  
  /* Duolingo Brand Colors */
  --color-blue: #1899D6;        /* Duolingo Blue */
  --color-blue-light: #DDF4FF;  /* Active Background Blue Pill */
  --color-blue-dark: #147EB0;
  
  --color-green: #58CC02;       /* Duolingo Green */
  --color-green-light: #E2F7D6;
  --color-green-dark: #46A302;
  
  --color-orange: #FF9600;      /* Streak/Gem Orange Gold */
  --color-orange-light: #FFEECF;
  
  --color-red: #FF4B4B;         /* Hearts Red */
  --color-red-light: #FFDFDF;
  
  /* Layout Dimensions */
  --border-radius-sm: 8px;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  
  /* Duolingo 3D Button Shadows (No gradients, flat solid offset) */
  --button-shadow-blue: 0 4px 0 var(--color-blue-dark);
  --button-shadow-green: 0 4px 0 var(--color-green-dark);
  --button-shadow-gray: 0 4px 0 #CBD5E1;
  --card-shadow-3d: 0 2px 0 var(--border-light);
  
  /* Fonts */
  --font-family: 'Nunito', sans-serif;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

.hidden {
  display: none !important;
}

/* Announcement Bar - Slim Flat Alert */
.announcement-bar {
  background-color: #E2F7D6;
  color: var(--color-green-dark);
  padding: 8px 24px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  border-bottom: 2px solid #C4ECAC;
  letter-spacing: 0.04em;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ==========================================================================
   DUOLINGO 3D BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 0.1s ease, filter 0.15s ease;
  user-select: none;
}

.btn:active {
  transform: translateY(4px);
  box-shadow: none !important;
}

.btn-primary {
  background-color: var(--color-blue);
  color: #FFFFFF;
  border-color: var(--color-blue);
  box-shadow: var(--button-shadow-blue);
}

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

.btn-secondary {
  background-color: var(--color-green);
  color: #FFFFFF;
  border-color: var(--color-green);
  box-shadow: var(--button-shadow-green);
}

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

.btn-outline {
  background-color: #FFFFFF;
  border: 2px solid var(--border-light);
  color: var(--color-blue);
  border-bottom: 4px solid var(--border-light);
}

.btn-outline:hover {
  background-color: var(--bg-hover);
}

.btn-large {
  padding: 14px 28px;
  font-size: 0.95rem;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: 8px;
}

.btn-full {
  width: 100%;
}

.section-badge {
  display: inline-block;
  background-color: #ECEFF1;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

/* ==========================================================================
   DUOLINGO LEFT FIXED NAVIGATION
   ========================================================================== */

.duo-left-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background-color: var(--bg-sidebar);
  border-right: 2px solid var(--border-light);
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  z-index: 1000;
}

.sidebar-logo-container {
  padding: 0 24px;
  margin-bottom: 24px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-logo .logo-emoji {
  font-size: 1.8rem;
}

.sidebar-logo .logo-text {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.05em;
  color: var(--color-green); /* Duolingo Green logo style */
}

.sidebar-logo .logo-highlight {
  color: var(--color-blue);
}

.duo-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.duo-nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 12px;
  margin: 0 16px;
  transition: var(--transition-fast);
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.duo-nav-link:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.duo-nav-link.active {
  background-color: var(--color-blue-light);
  color: var(--color-blue);
  border: 2px solid var(--border-active);
}

.duo-nav-link .nav-icon {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
}

.sidebar-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 24px 8px 24px;
  border-top: 2px solid var(--border-light);
  margin-top: 12px;
}

.duo-lang-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  max-height: calc(100vh - 420px);
  padding-bottom: 8px;
}

.duo-lang-links::-webkit-scrollbar {
  width: 4px;
}
.duo-lang-links::-webkit-scrollbar-thumb {
  background-color: var(--border-light);
  border-radius: 4px;
}

.duo-lang-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 12px;
  margin: 0 16px;
  transition: var(--transition-fast);
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.duo-lang-link:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.duo-lang-link.active {
  background-color: var(--color-blue-light);
  color: var(--color-blue);
  border: 2px solid var(--border-active);
}

.duo-lang-link .lang-flag {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
}

.duo-lang-link .lang-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-footer-action {
  margin-top: auto;
  padding: 0 16px;
}

.duo-etsy-link {
  width: 100%;
  border-radius: 12px;
}

/* ==========================================================================
   DUOLINGO MAIN VIEWPORT (2-COLUMNS SPLIT)
   ========================================================================== */

.duo-main-viewport {
  margin-left: 240px; /* Offset fixed left bar */
  display: grid;
  grid-template-columns: 1fr 360px; /* Center column + Right stats column */
  min-height: 100vh;
}

/* Middle Column: Central Feed */
.duo-center-feed {
  padding: 40px 48px; /* More generous static padding for a spacious, airy look */
  border-right: 2px solid var(--border-light);
  min-width: 0;
}

/* Feed Header (Search & Lang) */
.feed-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.feed-search-wrapper {
  display: flex;
  align-items: center;
  background-color: var(--bg-hover);
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 0 14px;
  flex: 1;
  max-width: 450px;
  transition: var(--transition-fast);
}

.feed-search-wrapper:focus-within {
  border-color: var(--color-blue);
  background-color: #FFFFFF;
}

.feed-search-icon {
  color: var(--text-muted);
  margin-right: 8px;
  font-size: 0.9rem;
}

.feed-search-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
}

.feed-search-wrapper input::placeholder {
  color: var(--text-muted);
}

/* Dropdown Language Selector */
.feed-language-filter {
  position: relative;
}

.feed-lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #FFFFFF;
  border: 2px solid var(--border-light);
  border-bottom: 4px solid var(--border-light);
  border-radius: 12px;
  padding: 8px 14px;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.feed-lang-dropdown-btn:hover {
  background-color: var(--bg-hover);
}

.feed-lang-dropdown-btn i {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.feed-lang-menu {
  position: absolute;
  top: 44px;
  right: 0;
  width: 200px;
  background-color: #FFFFFF;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  z-index: 100;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  padding: 6px 0;
  max-height: 300px;
  overflow-y: auto;
}

.feed-lang-item {
  display: block;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.feed-lang-item:hover {
  background-color: var(--bg-hover);
  color: var(--color-blue);
}

.feed-lang-item.active {
  color: var(--color-blue);
  background-color: var(--color-blue-light);
}

/* Category Filter Ribbon */
.feed-category-ribbon {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.feed-category-ribbon::-webkit-scrollbar {
  display: none;
}

.category-pill {
  background-color: #FFFFFF;
  border: 2px solid var(--border-light);
  border-bottom: 4px solid var(--border-light);
  border-radius: 50px;
  padding: 6px 14px;
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: var(--transition-fast);
}

.category-pill:hover {
  background-color: var(--bg-hover);
}

.category-pill.active {
  background-color: var(--color-blue-light);
  color: var(--color-blue);
  border-color: var(--color-blue);
  border-bottom: 4px solid var(--color-blue-dark);
}

/* Store Horizontal Channel Sub-Tab Bar */
.store-channel-tab-bar {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.store-channel-tab-bar::-webkit-scrollbar {
  display: none;
}

.channel-tab {
  background-color: #FFFFFF;
  border: 2px solid var(--border-light);
  border-bottom: 5px solid var(--border-light);
  font-family: 'Quicksand', 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1.05rem; /* Large, eye-catching typography */
  color: var(--text-secondary);
  padding: 12px 24px; /* удовлетворяет chunkier padding */
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  box-shadow: 0 4px 0 rgba(0,0,0,0.02);
}

.channel-tab i {
  font-size: 1.2rem; /* Larger icon size */
}

.channel-tab:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
  border-bottom: 7px solid var(--border-light);
}

.channel-tab:active {
  transform: translateY(3px);
  border-bottom: 2px solid var(--border-light);
}

.channel-tab[data-tab="etsy"].active {
  background-color: var(--color-blue-light);
  color: var(--color-blue);
  border-color: var(--color-blue);
  border-bottom: 6px solid var(--color-blue-dark);
}
.channel-tab[data-tab="etsy"].active:hover {
  border-bottom: 8px solid var(--color-blue-dark);
}

.channel-tab[data-tab="amazon"].active {
  background-color: #eefbe8;
  color: #46a302;
  border-color: #58cc02;
  border-bottom: 6px solid #3b8801;
}
.channel-tab[data-tab="amazon"].active:hover {
  border-bottom: 8px solid #3b8801;
}

.channel-tab[data-tab="videos"].active {
  background-color: #ffebeb;
  color: #cc0000;
  border-color: #ff0000;
  border-bottom: 6px solid #990000;
}
.channel-tab[data-tab="videos"].active:hover {
  border-bottom: 8px solid #990000;
}

/* Semi-transparent state for formats with 0 results */
.channel-tab.empty-tab {
  opacity: 0.55;
  background-color: #fafafa;
}
.channel-tab.empty-tab:hover {
  background-color: #f0f0f0;
  transform: none;
  border-bottom: 5px solid var(--border-light);
}

/* ==========================================================================
   VIEW 1: PROMO BANNER & HORIZONTAL DENSE FEED ROWS
   ========================================================================== */

.duo-promo-banner {
  position: relative;
  background: linear-gradient(135deg, #18003C 0%, #3B007A 100%); /* Deep purple gradient */
  border-radius: 16px;
  padding: 24px;
  overflow: hidden;
  margin-bottom: 24px;
}

.promo-banner-inner {
  position: relative;
  z-index: 2;
}

.promo-banner-inner .promo-badge {
  background-color: #58CC02; /* Green super tag */
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.duo-promo-banner h2 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #FFFFFF;
  margin: 10px 0 4px 0;
  letter-spacing: -0.01em;
}

.duo-promo-banner p {
  color: #D3C3F0;
  font-size: 0.88rem;
  margin-bottom: 16px;
  max-width: 500px;
}

.promo-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.promo-cta-btn {
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 0.8rem;
}

.promo-extra {
  font-size: 0.72rem;
  color: #A580E2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-status-banner {
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* HIGH-DENSITY GRID TILE ITEMS - MORE SPACIOUS & LESS CLUTTERED */
.product-feed-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Larger tiles */
  gap: 24px; /* More breathing room */
  width: 100%;
}

.product-tile-card {
  background-color: #FFFFFF;
  border: 2px solid var(--border-light);
  border-bottom: 4px solid var(--border-light);
  border-radius: 20px; /* Rounder, friendlier corners */
  padding: 20px; /* Spacious card interior */
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.15s ease;
  min-width: 0;
  overflow: hidden;
}

.product-tile-card:hover {
  border-color: var(--color-blue);
  background-color: var(--bg-hover);
}

.product-tile-card:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}

.tile-img-box {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-light);
  background-color: var(--bg-hover);
  margin-bottom: 14px;
  flex-shrink: 0;
}

.tile-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-content-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.tile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 2px;
}

.tile-tag {
  background-color: var(--bg-hover);
  color: var(--text-secondary);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  text-transform: uppercase;
}

.tile-title {
  padding-top: 4px;
  font-size: 1.05rem; /* Larger, bold font */
  font-weight: 800;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  height: 2.6em; /* Lock title height for card grid alignment */
}

.tile-desc {
  font-size: 0.82rem; /* Larger, readable description */
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  height: 2.8em; /* Lock description height for card grid alignment */
  margin-bottom: 16px;
}

.tile-action-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1.5px solid var(--border-light);
  padding-top: 12px;
}

/* Amazon Style Split Pricing */
.tile-price {
  display: flex;
  align-items: flex-start;
  font-weight: 900;
  color: var(--text-primary);
  font-size: 1.05rem; /* Slightly larger price scale */
}

.tile-btn {
  padding: 6px 12px;
  font-size: 0.72rem;
  border-radius: 8px;
  text-transform: uppercase;
}

/* Amazon Style Split Pricing */
.row-price {
  display: flex;
  align-items: flex-start;
  font-family: var(--font-family);
  font-weight: 900;
  color: var(--text-primary);
}

.price-symbol {
  font-size: 0.72rem;
  margin-top: 1px;
  margin-right: 1px;
}

.price-whole {
  font-size: 1.35rem;
  line-height: 1;
}

.price-fraction {
  font-size: 0.72rem;
  margin-top: 1px;
}

.row-btn {
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.75rem;
}

/* ==========================================================================
   LANGUAGE BUNDLED HUB HEADER
   ========================================================================== */

.language-hub-header {
  background: var(--bg-hover);
  border: 2px solid var(--border-light);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: center;
}

.hub-details h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.hub-details p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.youtube-lesson-card {
  background-color: #FFFFFF;
  border: 2px solid var(--border-light);
  border-bottom: 4px solid var(--border-light);
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  transition: all 0.15s ease;
}

.youtube-lesson-card:hover {
  border-color: #FF0000;
  border-bottom-color: #cc0000;
  transform: translateY(-2px);
}

.youtube-lesson-card:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}

.video-thumb-preview {
  position: relative;
  width: 76px;
  height: 48px;
  border-radius: 8px;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}

.video-play-btn {
  background-color: #FF0000;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.video-play-btn i {
  font-size: 0.75rem;
}

.video-details h4 {
  font-size: 0.95rem; /* Larger font size */
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 3px 0;
  letter-spacing: -0.01em;
}

.video-details span {
  font-size: 0.78rem; /* Larger font size */
  color: var(--text-secondary);
  font-weight: 700;
}

.bundled-section {
  margin-top: 16px;
}

.bundled-section h3 {
  padding-top: 12px;
  font-size: 0.88rem;
  font-weight: 900;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Page Section & Sub-tab Main Title Padding */
.feed-main-title,
.feed-section-content .section-title,
.feed-section-content > h2,
.about-text-column h2 {
  padding-top: 12px;
}

/* ==========================================================================
   VIEW 2: PLAYROOM GAME BOARD (TACTILE WOOD & STAR TILES)
   ========================================================================== */

.play-room-box {
  background-color: var(--bg-hover);
  border-radius: 16px;
  border: 2px solid var(--border-light);
  padding: 24px;
  width: 100%;
  margin: 0 auto;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#viewGameSection,
#viewGameSection *,
.victory-card,
.victory-card * {
  font-family: 'Fredoka', 'Nunito', sans-serif !important;
}

.game-setup-card {
  background: #FFFFFF;
  border: 3px solid var(--border-light);
  border-radius: 36px;
  padding: 48px 36px;
  text-align: center;
  max-width: 540px;
  margin: 20px auto;
  box-shadow: 0 20px 48px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}

/* Beautiful color border gradient accent */
.game-setup-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: linear-gradient(90deg, #1890FF, #58CC02, #FFA200);
}

.game-setup-header-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #E6F7FF, #F6FFED);
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  font-size: 3.2rem !important;
}

.game-setup-card h3 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.game-setup-card p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.5;
}

.game-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 30px;
  text-align: left;
}

.field-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.field-item label {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Custom styled inputs with distinct category colors */
.field-item select {
  width: 100%;
  padding: 16px 18px;
  border-radius: 20px;
  border: 3px solid var(--border-light);
  background-color: #FFFFFF;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px;
}

/* Color-code each field type */
#gameModeSelect {
  border-color: #91d5ff;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231890FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
#gameModeSelect:hover, #gameModeSelect:focus {
  border-color: #1890FF;
  background-color: #F0F5FF;
  box-shadow: 0 0 0 5px rgba(24,144,255,0.15);
}

#gameLanguageSelect {
  border-color: #b7eb8f;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2358CC02' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
#gameLanguageSelect:hover, #gameLanguageSelect:focus {
  border-color: #58CC02;
  background-color: #F6FFED;
  box-shadow: 0 0 0 5px rgba(88,204,2,0.15);
}

#gameCategorySelect {
  border-color: #ffd591;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FFA200' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
#gameCategorySelect:hover, #gameCategorySelect:focus {
  border-color: #FFA200;
  background-color: #FFF7E6;
  box-shadow: 0 0 0 5px rgba(255,162,0,0.15);
}

/* 3D Button Style */
.btn-game-start {
  width: 100%;
  padding: 18px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  background-color: var(--color-brand);
  border: none;
  border-radius: 22px;
  box-shadow: 0 8px 0 #4BB402;
  transition: all 0.1s ease;
  cursor: pointer;
  display: block;
}

.btn-game-start:hover {
  background-color: #61E202;
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #4BB402;
}

.btn-game-start:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #4BB402;
}


#viewGameSection .section-title {
  font-family: 'Fredoka', sans-serif !important;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-top: 8px;
  margin-bottom: 6px;
}

#viewGameSection .section-subtitle {
  font-family: 'Fredoka', sans-serif !important;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
}

#viewGameSection .section-badge {
  font-family: 'Fredoka', sans-serif !important;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
}

.game-hud-stat {
  font-size: 0.95rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 16px;
  letter-spacing: 0.05em;
}

/* Time Stat Bubble */
.game-hud-stat:first-child {
  background: #E6F7FF;
  border: 2px solid #BAE7FF;
  color: #1890FF;
}

/* Score Stat Bubble */
.game-hud-stat:nth-child(2) {
  background: #F6FFED;
  border: 2px solid #D3F9B3;
  color: #58CC02;
}

#resetGameBtn {
  font-family: 'Fredoka', sans-serif !important;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 12px;
  padding: 8px 16px;
  border: 2px solid #E5E5E5;
  border-bottom: 4px solid #E5E5E5;
  background: #FFFFFF;
  color: var(--text-secondary);
  transition: all 0.1s ease;
  box-shadow: none;
  cursor: pointer;
}

#resetGameBtn:hover {
  background: var(--bg-hover);
  transform: translateY(1px);
  border-bottom-width: 3px;
}

#resetGameBtn:active {
  transform: translateY(3px);
  border-bottom-width: 1px;
}

.wooden-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.game-card {
  perspective: 1000px;
  aspect-ratio: 0.85;
  cursor: pointer;
}

.game-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  border-radius: 18px;
  border: 3px solid var(--border-light);
  border-bottom: 5px solid var(--border-light);
}

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

.game-card.matched {
  cursor: default;
  opacity: 0.6;
}

.game-card.matched .game-card-inner {
  border-color: var(--color-green);
  border-bottom-color: var(--color-green-dark);
}

.card-back, .card-front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-back {
  background-color: #FFFFFF;
  color: var(--color-blue);
  font-size: 3.2rem;
  border-radius: 16px;
}

.card-front {
  background-color: #FFFFFF;
  border-radius: 16px;
  transform: rotateY(180deg);
  padding: 8px;
  text-align: center;
}

.card-front-emoji {
  font-size: 3rem;
  margin-bottom: 4px;
}

.card-front-text {
  font-family: 'Fredoka', 'Nunito', sans-serif !important;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: 0.06em;
}

.card-front-lang {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: auto;
}

.game-success-overlay {
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.confetti-emoji {
  font-size: 2.8rem;
  margin-bottom: 8px;
}

.game-success-overlay h2 {
  font-size: 1.5rem;
  color: var(--color-green);
  margin-bottom: 4px;
}

.game-success-overlay p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.victory-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* ==========================================================================
   VIEW 3: ETHOS / PHILOSOPHY LAYOUT
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 24px;
}

.about-text-column h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.about-text-column p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.ethos-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ethos-item {
  display: flex;
  gap: 12px;
}

.ethos-num {
  font-family: var(--font-family);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--color-blue);
}

.ethos-detail h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.ethos-detail p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.about-visual-column {
  display: flex;
  justify-content: center;
}

.artistic-circle-graphic {
  position: relative;
  width: 160px;
  height: 160px;
}

.graphic-circle {
  position: absolute;
  border-radius: 50%;
}

.c-green {
  background-color: var(--color-green-light);
  width: 120px;
  height: 120px;
  top: 0;
  left: 0;
}

.c-clay {
  background-color: var(--color-orange-light);
  width: 90px;
  height: 90px;
  bottom: 0;
  right: 0;
}

.graphic-center-emoji {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  letter-spacing: -6px;
}

/* ==========================================================================
   DUOLINGO RIGHT SIDEBAR PANEL
   ========================================================================== */

.duo-right-sidebar {
  padding: 24px;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Top stats list elements (No icons borders, clean row) */
.duo-stats-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding: 4px 0;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}

.stat-badge:hover {
  background-color: var(--bg-hover);
}

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

/* Sidebar Info Card Styles (Duolingo Card Aesthetics: Flat border + 3D offset shadow) */
.sidebar-info-card {
  background-color: #FFFFFF;
  border: 2px solid var(--border-light);
  border-bottom: 4px solid var(--border-light);
  border-radius: 16px;
  padding: 16px;
}

.sidebar-info-card h3 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 6px;
}

.sidebar-info-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.sidebar-card-btn {
  border-radius: 12px;
  font-size: 0.78rem;
  padding: 8px 12px;
}

/* Channels Checkboxes inside Card */
.channel-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.channel-toggle-row input[type="checkbox"] {
  accent-color: var(--color-blue);
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.channel-toggle-row label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 700;
  cursor: pointer;
}

/* Sidebar Freebie Form */
.sidebar-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-form input, .sidebar-form select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid var(--border-light);
  background-color: #FFFFFF;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  width: 100%;
}

.sidebar-form input:focus, .sidebar-form select:focus {
  border-color: var(--color-blue);
}

.form-feedback {
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 8px;
}

.form-feedback.success {
  color: var(--color-green-dark);
}

/* Compact Sidebar Footer */
.compact-duo-footer {
  margin-top: auto;
  text-align: center;
  padding-top: 16px;
}

.compact-duo-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
}

.compact-duo-footer .footer-links a {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.compact-duo-footer .footer-links a:hover {
  color: var(--color-blue);
}

.compact-duo-footer .copyright {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PRODUCT DETAILS MODAL REDESIGN
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background-color: #FFFFFF;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border: 2px solid var(--border-light);
  border-bottom: 6px solid var(--border-light);
  position: relative;
  animation: modalSlideUp 0.3s ease-out;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background-color: #FFFFFF;
  border: 2px solid var(--border-light);
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: var(--text-secondary);
}

.modal-close:hover {
  background-color: var(--bg-hover);
}

.modal-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
}

.modal-image-main-box {
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg-hover);
  border: 2px solid var(--border-light);
  margin-bottom: 8px;
}

.modal-image-main-box img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
}

.modal-image-thumbs-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.thumb-img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
}

.thumb-img.active {
  border-color: var(--color-blue);
}

.modal-content-side {
  display: flex;
  flex-direction: column;
}

.modal-metadata {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.modal-metadata .product-badge {
  background-color: var(--color-blue-light);
  color: var(--color-blue);
  font-weight: 800;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  border: 1px solid var(--color-blue);
}

.modal-metadata .product-source-badge {
  background-color: var(--color-green-light);
  color: var(--color-green-dark);
  font-weight: 800;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  border: 1px solid var(--color-green);
}

.modal-content-side h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.product-pricing {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.languages-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}

.lang-bubble {
  background-color: var(--bg-hover);
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 50px;
  text-transform: uppercase;
  border: 1px solid var(--border-light);
}

.product-details-description {
  margin-bottom: 12px;
}

.product-details-description h3 {
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.product-details-description p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  max-height: 80px;
  overflow-y: auto;
}

.modal-cta-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.btn-cta-buy {
  border-radius: 12px;
}

.trust-notice {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 700;
}

/* Tactile Previewer Deck */
.tactile-card-deck {
  background-color: var(--bg-hover);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  border: 2px solid var(--border-light);
}

.deck-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 4px;
}

.deck-header h4 {
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--text-primary);
}

.deck-header span {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.deck-main-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.deck-nav-btn {
  background-color: #fff;
  border: 2px solid var(--border-light);
  border-bottom-width: 4px;
  color: var(--color-blue);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deck-nav-btn:hover {
  background-color: var(--bg-hover);
}

.wooden-vocab-card {
  width: 100px;
  height: 120px;
  background-color: #fff;
  border: 2px solid var(--text-primary);
  border-radius: 8px;
  box-shadow: 0 4px 0 var(--text-primary);
  padding: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.w-emoji {
  font-size: 1.8rem;
  margin-bottom: 2px;
}

.w-label-en {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.w-label-foreign {
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.2;
}

.w-lang {
  position: absolute;
  bottom: 6px;
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-blue);
}

.deck-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
}

.deck-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: rgba(24, 153, 214, 0.2);
  cursor: pointer;
}

.deck-dot.active {
  background-color: var(--color-blue);
  width: 10px;
  border-radius: 2px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1200px) {
  .duo-main-viewport {
    grid-template-columns: 1fr;
  }
  
  .duo-right-sidebar {
    border-top: 2px solid var(--border-light);
  }
}

@media (max-width: 768px) {
  .duo-left-sidebar {
    width: 65px;
  }
  
  .duo-left-sidebar .logo-text,
  .duo-left-sidebar .nav-text,
  .duo-left-sidebar .duo-etsy-link span {
    display: none;
  }
  
  .duo-left-sidebar .sidebar-logo-container {
    padding: 0;
    display: flex;
    justify-content: center;
  }
  
  .duo-main-viewport {
    margin-left: 65px;
  }
  
  .duo-nav-link {
    margin: 0 6px;
    padding: 10px;
    justify-content: center;
  }
  
  .duo-center-feed {
    padding: 16px;
  }
  
  .language-hub-header {
    grid-template-columns: 1fr;
  }

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

  .about-visual-column {
    display: none;
  }
  
  .product-feed-list {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  
  .product-tile-card {
    padding: 10px;
    border-radius: 12px;
  }

  .tile-title {
    font-size: 0.8rem;
    height: 2.5em;
  }

  .tile-desc {
    display: none; /* Hide descriptions on mobile for compact card grids */
  }

  .sidebar-section-title,
  .duo-lang-link .lang-name {
    display: none;
  }
  
  .duo-lang-link {
    margin: 0 6px;
    padding: 8px;
    justify-content: center;
  }
}

/* ==========================================================================
   VIDEO LESSONS SECTION
   ========================================================================== */

.video-lessons-section {
  margin-top: 48px;
  padding: 36px 0 24px;
  border-top: 2px solid var(--border-light);
}

.video-lessons-header {
  margin-bottom: 24px;
}

.video-lessons-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-primary);
  margin: 8px 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.video-lessons-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.video-lessons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.video-lesson-card {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.video-lesson-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  border-color: #FF0000;
}

.video-thumb-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  overflow: hidden;
}

.video-thumb-wrap img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-lesson-card:hover .video-thumb-wrap img {
  transform: scale(1.04);
}

.video-thumb-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  background: rgba(255,0,0,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-lesson-card:hover .video-thumb-play {
  transform: translate(-50%, -50%) scale(1.15);
  background: #FF0000;
}

.video-lesson-info {
  padding: 12px 14px 14px;
}

.video-lesson-lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-brand);
  background: rgba(88,204,2,0.1);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 7px;
}

.video-lesson-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 10px;
}

.video-lesson-watch-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #CC0000;
  background: rgba(255,0,0,0.07);
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
  width: 100%;
  justify-content: center;
  transition: background 0.2s ease;
}

.video-lesson-watch-btn:hover {
  background: rgba(255,0,0,0.14);
}

/* Responsive grid */
@media (max-width: 1100px) {
  .video-lessons-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .video-lessons-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .video-lessons-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   VIDEO LIGHTBOX
   ========================================================================== */

.video-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInOverlay 0.2s ease;
}

.video-lightbox-overlay.hidden { display: none; }

.video-lightbox-card {
  background: #111;
  border-radius: 20px;
  width: min(860px, 95vw);
  overflow: hidden;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
}

.video-lightbox-close {
  position: absolute;
  top: 12px; right: 14px;
  z-index: 10;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}

.video-lightbox-close:hover { background: rgba(255,255,255,0.3); }

.video-lightbox-lang {
  padding: 14px 18px 10px;
  font-size: 0.85rem;
  font-weight: 800;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.video-lightbox-player {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}

.video-lightbox-player iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.video-lightbox-yt-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.video-lightbox-yt-link:hover { color: #FF0000; }

/* ==========================================================================
   MATCH MADNESS & PRONUNCIATION POP STYLING
   ========================================================================== */

.madness-split-container {
  display: flex;
  gap: 20px;
  width: 100%;
  margin-top: 15px;
}

.madness-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.madness-card {
  background: var(--bg-card);
  border: 2px solid #E5E5E5;
  border-bottom: 5px solid #E5E5E5;
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.1s ease, background-color 0.1s ease;
  user-select: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  letter-spacing: 0.05em;
}

.madness-card:hover {
  background: var(--bg-hover);
  transform: translateY(2px);
  border-bottom-width: 3px;
}

.madness-card.selected {
  border-color: var(--border-active);
  border-bottom-color: var(--border-active);
  background: #E8F4FA;
  color: #1890FF;
  transform: translateY(4px);
  border-bottom-width: 1px;
}

.madness-card.matched {
  border-color: #58CC02;
  border-bottom-color: #58CC02;
  background: #EAF7E2;
  color: #58CC02;
  transform: translateY(4px) scale(0.95);
  border-bottom-width: 1px;
  opacity: 0.5;
  pointer-events: none;
}

.madness-card.error {
  border-color: #EA2B2B;
  border-bottom-color: #EA2B2B;
  background: #FDE8E8;
  color: #EA2B2B;
  transform: translateY(4px);
  border-bottom-width: 1px;
  animation: shake 0.35s ease;
}

/* Pronunciation Pop Layout */
.audio-prompt-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: #F8F8F8;
  border: 3px dashed #E5E5E5;
  border-radius: 24px;
  margin-bottom: 24px;
}

.speaker-btn {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--color-brand);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 0 #4BB402;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  margin-bottom: 12px;
}

.speaker-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #4BB402;
}

.speaker-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #4BB402;
}

.choices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
}

.choice-card {
  background: var(--bg-card);
  border: 2px solid #E5E5E5;
  border-bottom: 5px solid #E5E5E5;
  border-radius: 22px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.1s ease, background-color 0.1s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.choice-card:hover {
  transform: translateY(2px);
  border-bottom-width: 3px;
  background: var(--bg-hover);
}

.choice-card .choice-emoji {
  font-size: 3.8rem;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.06));
}

.choice-card:hover .choice-emoji {
  transform: scale(1.06);
}

.choice-card .choice-word {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  text-transform: capitalize;
}

.choice-card.correct {
  border-color: #58CC02;
  border-bottom-color: #58CC02;
  background: #EAF7E2;
  color: #58CC02;
  transform: translateY(4px);
  border-bottom-width: 1px;
}

.choice-card.incorrect {
  border-color: #EA2B2B;
  border-bottom-color: #EA2B2B;
  background: #FDE8E8;
  color: #EA2B2B;
  transform: translateY(4px);
  border-bottom-width: 1px;
  animation: shake 0.35s ease;
}

/* Animations */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

@media (max-width: 560px) {
  .choices-grid {
    grid-template-columns: 1fr;
  }
  .madness-split-container {
    flex-direction: column;
    gap: 12px;
  }
}

/* SEO Screen Reader Only Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Article Modal Styling */
.article-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 31, 46, 0.4);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.article-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.article-modal-card {
  background: #ffffff;
  width: 90%;
  max-width: 680px;
  max-height: 85vh;
  border-radius: 28px;
  padding: 40px;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border: 4px solid var(--border-light);
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.article-modal-overlay.active .article-modal-card {
  transform: scale(1);
}

.article-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2.2rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
  padding: 4px;
}

.article-modal-close:hover {
  color: var(--color-red);
  transform: scale(1.1);
}

.article-modal-body h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.article-modal-body .meta-info {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--color-orange);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  display: block;
}

.article-modal-body p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.article-modal-body ul, .article-modal-body ol {
  margin: 16px 0 24px 20px;
}

.article-modal-body li {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

