:root {
  --wl-card-height: auto;
  --wl-card-width: 100%;
  --wl-flip-duration: 0.6s;
  --wl-level-beginner: #2fb45a;
  --wl-level-intermediate: #fd7e14;
  --wl-level-advanced: #dc3545;
}

/* --- Fix Navbar Overlap --- */
.word-lists-page {
  padding-top: 120px !important; /* Space for fixed-top navbar + breadcrumbs margin */
}

/* --- Layout & Grid --- */
.word-lists-header {
  padding: 2rem 0;
  background: var(--omw-color-soft-bg);
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--omw-color-border-soft);
  border-radius: var(--omw-radius-card);
}

/* --- Progressive Rendering --- */
.cv-auto {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

.intro-text-compact {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--omw-color-muted);
}

.intro-text-compact h1, .intro-text-compact h2, .intro-text-compact h3 {
  font-size: 1.25rem;
  margin-top: 1rem;
  color: var(--omw-color-text);
}

.words-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

/* На широких экранах 2 карточки в ряд для табличного выравнивания */
@media (min-width: 768px) {
  .words-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .words-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* --- Word Card (Horizontal Table-like) --- */
.word-list-card {
  background: white;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--omw-color-border-soft);
  border-left: 4px solid var(--omw-color-primary);
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(100px, 0.8fr) minmax(140px, 1fr);
  align-items: center;
  gap: 1rem;
  position: relative;
  box-sizing: border-box;
  max-width: 100%;
}

.word-list-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.word-list-card.level-beginner { border-left-color: var(--wl-level-beginner); }
.word-list-card.level-intermediate { border-left-color: var(--wl-level-intermediate); }
.word-list-card.level-advanced { border-left-color: var(--wl-level-advanced); }

.word-en-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-start;
}

.word-en {
  font-weight: 700;
  font-size: 1rem;
  color: var(--omw-color-text);
  text-align: left;
}

.btn-speak {
  background: rgba(255, 128, 92, 0.1);
  border: none;
  color: var(--omw-color-primary);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 1rem;
  min-width: 32px;
  min-height: 32px;
  flex-shrink: 0;
}

.btn-speak:hover {
  background: var(--omw-color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 128, 92, 0.25);
}

.btn-speak:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(255, 128, 92, 0.2);
}

.btn-speak.speaking {
  background: var(--omw-color-primary);
  color: white;
  animation: pulse-speak 0.8s ease-in-out infinite;
}

@keyframes pulse-speak {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 8px rgba(255, 128, 92, 0.25);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(255, 128, 92, 0.35);
  }
}

.word-transcription {
  color: var(--omw-color-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-align: left;
}

.word-ru {
  color: var(--omw-color-primary-strong);
  font-weight: 500;
  font-size: 1rem;
  text-align: left;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 767px) {
  .word-list-card {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.75rem;
    min-width: 0;
  }

  .word-en-wrapper {
    justify-content: space-between;
    min-width: 0;
  }

  .word-transcription,
  .word-ru {
    padding-left: 0;
    min-width: 0;
  }

  .word-en,
  .word-transcription,
  .word-ru {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* --- Related Lists (Improved) --- */
.related-list-card {
  background: var(--omw-color-cream);
  border: 1px solid var(--omw-color-border-soft);
  border-radius: 1.25rem;
  padding: 1.25rem;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.related-list-card:hover {
  background: white;
  border-color: var(--omw-color-primary);
  box-shadow: var(--omw-shadow-card-soft);
  transform: translateY(-3px);
}

.related-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.related-content h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--omw-color-text);
}

.related-link {
  font-size: 0.85rem;
  color: var(--omw-color-primary);
  font-weight: 600;
}

/* --- Trainer Modal --- */
.trainer-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.trainer-container {
  width: 90%;
  max-width: 600px;
  height: 80vh; 
  max-height: 700px;
  display: flex;
  flex-direction: column;
  perspective: 1000px;
}

@media (min-width: 768px) {
  .trainer-container {
    height: 60vh;
  }
}

.trainer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  margin-bottom: 1rem;
}

.trainer-progress {
  font-size: 1.1rem;
  font-weight: 500;
}

.trainer-settings {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Modern Switch Toggle */
.auto-speak-switch {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  user-select: none;
  position: relative;
}

.switch-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: white;
  white-space: nowrap;
}

.switch-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  transition: background-color 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.switch-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 2px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch-checkbox:checked + .switch-slider {
  background-color: var(--omw-color-primary);
  border-color: var(--omw-color-primary);
}

.switch-checkbox:checked + .switch-slider::before {
  transform: translateX(22px);
}

.auto-speak-switch:hover .switch-slider {
  background-color: rgba(255, 255, 255, 0.3);
}

.switch-checkbox:checked + .switch-slider:hover {
  background-color: #ff6b47;
  border-color: #ff6b47;
}

.trainer-close {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0 0.5rem;
}

/* --- Flashcard --- */
.flashcard-scene {
  flex: 1;
  position: relative;
  cursor: pointer;
}

.flashcard {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform var(--wl-flip-duration);
  transform-style: preserve-3d;
}

.flashcard.flipped {
  transform: rotateY(180deg);
}

.flashcard-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 1.5rem;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.flashcard-back {
  transform: rotateY(180deg);
  background: #fff8f3; 
}

.fc-word-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.fc-word {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--omw-color-text);
}

.btn-speak-card {
  background: linear-gradient(135deg, #ff805c 0%, #ff6b47 100%);
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  box-shadow: 0 4px 12px rgba(255, 128, 92, 0.3);
  flex-shrink: 0;
}

.btn-speak-card:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 128, 92, 0.4);
  background: linear-gradient(135deg, #ff6b47 0%, #ff5733 100%);
}

.btn-speak-card:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 4px 12px rgba(255, 128, 92, 0.3);
}

.btn-speak-card.speaking {
  animation: pulse-card-speak 0.8s ease-in-out infinite;
}

@keyframes pulse-card-speak {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(255, 128, 92, 0.3);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(255, 128, 92, 0.5);
  }
}

.fc-transcription {
  font-size: 1.5rem;
  color: var(--omw-color-muted);
  font-family: 'Inter', sans-serif;
}

.fc-translation {
  font-size: 2.5rem;
  color: var(--omw-color-primary-strong);
  font-weight: 600;
}

.fc-hint {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--omw-color-muted);
  opacity: 0.7;
}

/* --- Trainer Controls --- */
.trainer-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: 1rem;
}

.btn-trainer {
  flex: 1;
  padding: 1rem;
  border-radius: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.1s;
}

.btn-trainer:active {
  transform: scale(0.95);
}

.btn-trainer-prev {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.btn-trainer-flip {
  background: var(--omw-color-primary);
  color: white;
  flex: 2;
  box-shadow: 0 4px 15px rgba(255, 128, 92, 0.4);
}

.btn-trainer-next {
  background: white;
  color: var(--omw-color-primary-strong);
}

/* --- Mobile Sticky Footer --- */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: white;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  transform: translateY(110%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  display: none; 
}

.mobile-sticky-cta.visible {
  transform: translateY(0);
}

@media (max-width: 767px) {
  .mobile-sticky-cta {
    display: block;
  }
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ========================================
   APP CTA COMPONENT
   ======================================== */

/* App CTA Block - modern gradient with animation */
.bg-app-cta {
  position: relative;
  background: linear-gradient(135deg, #ff805c 0%, #ff6b47 50%, #ff5733 100%) !important;
  overflow: hidden;
}

.bg-app-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  animation: rotate-cta-bg 20s linear infinite;
}

.bg-app-cta::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(255, 107, 71, 0.4) 0%, transparent 70%);
  filter: blur(60px);
}

@keyframes rotate-cta-bg {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* App CTA Content - positioned above background effects */
.app-cta-content {
  position: relative;
  z-index: 2;
}

/* App CTA Title - modern typography */
.app-cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.app-cta-description {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.95;
}

/* App Store Button - enhanced */
.btn-app-store {
  background: white !important;
  color: var(--omw-color-primary) !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.btn-app-store::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 128, 92, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.btn-app-store:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
  color: var(--omw-color-primary) !important;
}

.btn-app-store:hover::before {
  width: 300px;
  height: 300px;
}

.btn-app-store:active {
  transform: translateY(-1px);
}

/* Google Play Button - outline enhanced */
.btn-google-play {
  background: transparent !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  color: white !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-google-play:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: white !important;
  color: white !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-google-play:active {
  transform: translateY(-1px);
}

/* Phone Icon Container - decorative circles */
.app-cta-visual {
  position: relative;
  z-index: 1;
}

.phone-icon-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
}

.phone-icon-circle {
  position: absolute;
  border-radius: 50%;
  animation: pulse-circle 3s ease-in-out infinite;
}

.circle-outer {
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.circle-middle {
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  top: 20px;
  left: 20px;
  animation-delay: 0.5s;
}

.circle-inner {
  width: 100px;
  height: 100px;
  background: white;
  top: 40px;
  left: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation-delay: 1s;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.circle-inner i {
  font-size: 3rem;
  color: var(--omw-color-primary);
}

@keyframes pulse-circle {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .app-cta-title {
    font-size: 1.75rem;
  }

  .app-cta-description {
    font-size: 1rem;
  }

  .phone-icon-container {
    width: 140px;
    height: 140px;
  }

  .circle-outer {
    width: 140px;
    height: 140px;
  }

  .circle-middle {
    width: 100px;
    height: 100px;
    top: 20px;
    left: 20px;
  }

  .circle-inner {
    width: 70px;
    height: 70px;
    top: 35px;
    left: 35px;
  }

  .circle-inner i {
    font-size: 2rem;
  }
}

/* ========================================
   CATEGORY PAGE - UX REDESIGN
   ======================================== */

/* Category Hero Section */
.wl-category-hero {
  position: relative;
  padding: 2rem 0;
}

.wl-category-icon-large {
  font-size: 4rem;
  line-height: 1;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.wl-hero-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--omw-color-copy);
}

.wl-hero-description h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--omw-color-text);
}

.wl-hero-meta {
  margin-top: 2rem;
}

.wl-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 128, 92, 0.08);
  border-radius: 2rem;
  font-size: 0.95rem;
  color: var(--omw-color-text);
}

.wl-meta-item i {
  font-size: 1.2rem;
}

/* Hero Visual Card */
.wl-hero-visual {
  position: relative;
  height: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wl-visual-card {
  background: linear-gradient(135deg, rgba(255, 128, 92, 0.1) 0%, rgba(255, 128, 92, 0.05) 100%);
  border: 2px solid rgba(255, 128, 92, 0.15);
  border-radius: 2rem;
  padding: 3rem 2rem;
  text-align: center;
  width: 100%;
  max-width: 350px;
  box-shadow: 0 20px 50px rgba(255, 128, 92, 0.15);
  position: relative;
  overflow: hidden;
}

.wl-visual-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 128, 92, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.wl-visual-icon {
  font-size: 5rem;
  color: var(--omw-color-primary);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

.wl-visual-stats {
  position: relative;
  z-index: 1;
}

.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--omw-color-primary-strong);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-item .stat-label {
  font-size: 1rem;
  color: var(--omw-color-muted);
  font-weight: 500;
}

/* Level Cards */
.wl-levels-section {
  padding: 3rem 0;
}

.wl-level-card {
  display: block;
  background: white;
  border: 2px solid transparent;
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.wl-level-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--wl-level-beginner);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.wl-level-card.level-beginner::before {
  background: var(--wl-level-beginner);
}

.wl-level-card.level-intermediate::before {
  background: var(--wl-level-intermediate);
}

.wl-level-card.level-advanced::before {
  background: var(--wl-level-advanced);
}

.wl-level-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 128, 92, 0.3);
}

.wl-level-card:hover::before {
  transform: scaleX(1);
}

.wl-level-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.wl-level-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(255, 128, 92, 0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.wl-level-card:hover .wl-level-icon {
  background: var(--omw-color-primary);
  color: white;
  transform: rotate(360deg);
}

.wl-level-badge span {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-beginner {
  background: rgba(47, 180, 90, 0.15);
  color: var(--wl-level-beginner);
  border: 1px solid rgba(47, 180, 90, 0.3);
}

.badge-intermediate {
  background: rgba(253, 126, 20, 0.15);
  color: var(--wl-level-intermediate);
  border: 1px solid rgba(253, 126, 20, 0.3);
}

.badge-advanced {
  background: rgba(220, 53, 69, 0.15);
  color: var(--wl-level-advanced);
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.wl-level-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--omw-color-text);
  margin-bottom: 1rem;
  text-transform: capitalize;
}

.wl-level-description {
  color: var(--omw-color-copy);
  margin-bottom: 1.5rem;
  min-height: 140px;
}

.wl-level-description p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.wl-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wl-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--omw-color-copy);
}

.wl-feature-list i {
  color: var(--omw-color-success);
  font-size: 1rem;
  flex-shrink: 0;
}

.wl-level-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: auto;
}

.wl-cta-text {
  font-weight: 600;
  color: var(--omw-color-primary-strong);
  font-size: 1rem;
}

.wl-level-cta i {
  font-size: 1.75rem;
  color: var(--omw-color-primary);
  transition: transform 0.3s ease;
}

.wl-level-card:hover .wl-level-cta i {
  transform: translateX(5px);
}

/* Tips Section */
.wl-tips-section {
  padding: 3rem 0;
}

.wl-tips-card {
  background: linear-gradient(135deg, rgba(255, 244, 237, 0.95) 0%, rgba(255, 235, 222, 0.95) 100%);
  border-radius: 2rem;
  padding: 2.5rem;
  border: 1px solid rgba(255, 128, 92, 0.15);
  box-shadow: 0 10px 40px rgba(255, 128, 92, 0.1);
}

.wl-tips-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tip-item i {
  font-size: 1.5rem;
  color: var(--omw-color-primary);
  flex-shrink: 0;
}

.tip-item span {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--omw-color-copy);
}

.wl-app-promo {
  padding: 1.5rem;
  background: white;
  border-radius: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* ========================================
   WORD LIST PAGE - UX REDESIGN 2.0
   ======================================== */

/* Hero Section - Redesigned */
.wl-list-hero-redesigned {
  padding: 2rem 0 3rem;
  position: relative;
}

.wl-hero-title {
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.wl-hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 600px;
}

/* Level Badges - New Style */
.wl-level-badge-new .badge-pill-new {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.badge-beginner-new {
  background: linear-gradient(135deg, rgba(47, 180, 90, 0.12) 0%, rgba(47, 180, 90, 0.06) 100%);
  color: var(--wl-level-beginner);
  border: 2px solid rgba(47, 180, 90, 0.25);
  box-shadow: 0 4px 12px rgba(47, 180, 90, 0.15);
}

.badge-intermediate-new {
  background: linear-gradient(135deg, rgba(253, 126, 20, 0.12) 0%, rgba(253, 126, 20, 0.06) 100%);
  color: var(--wl-level-intermediate);
  border: 2px solid rgba(253, 126, 20, 0.25);
  box-shadow: 0 4px 12px rgba(253, 126, 20, 0.15);
}

.badge-advanced-new {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.12) 0%, rgba(220, 53, 69, 0.06) 100%);
  color: var(--wl-level-advanced);
  border: 2px solid rgba(220, 53, 69, 0.25);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
}

/* Stats Bar - Enhanced */
.wl-stats-bar-new .stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1.5rem;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.wl-stats-bar-new .stat-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wl-stats-bar-new .stat-badge i {
  font-size: 1.2rem;
}

/* CTA Buttons - Enhanced */
.wl-btn-trainer-new {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wl-btn-trainer-new::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.wl-btn-trainer-new:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(255, 128, 92, 0.35) !important;
}

.wl-btn-trainer-new:hover::before {
  width: 400px;
  height: 400px;
}

.wl-btn-trainer-new:active {
  transform: translateY(-1px);
}

/* App Preview Card - Sidebar */
.wl-sidebar-visual-new {
  position: sticky;
  top: 100px;
}

.wl-app-preview-card {
  background: linear-gradient(135deg, rgba(255, 244, 237, 0.98) 0%, rgba(255, 235, 222, 0.98) 100%);
  border: 2px solid rgba(255, 128, 92, 0.15);
  border-radius: 2rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 15px 50px rgba(255, 128, 92, 0.12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.wl-app-preview-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 128, 92, 0.08) 0%, transparent 70%);
  animation: rotate-slow 30s linear infinite;
  pointer-events: none;
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.app-preview-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.icon-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--omw-color-primary) 0%, #ff6b47 100%);
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(255, 128, 92, 0.3);
  animation: float-gentle 3s ease-in-out infinite;
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

.feature-list-compact {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  position: relative;
  z-index: 1;
}

.feature-list-compact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--omw-color-text);
}

.feature-list-compact i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.social-proof {
  position: relative;
  z-index: 1;
}

.rating i {
  font-size: 1rem;
}

/* Description Expandable */
.wl-description-expandable {
  position: relative;
}

.wl-description-content {
  font-size: 0.95rem;
  line-height: 1.7;
}

.wl-description-content h3 {
  font-size: 1.05rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--omw-color-text);
}

.wl-description-expandable .btn-link {
  color: var(--omw-color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.wl-description-expandable .btn-link:hover {
  color: var(--omw-color-primary-strong);
}

.wl-description-expandable .collapse.show ~ .btn-link .show-more {
  display: none !important;
}

.wl-description-expandable .collapse.show ~ .btn-link .show-less {
  display: inline !important;
}

/* Legacy styles kept for compatibility */
.wl-list-hero {
  padding: 2rem 0 3rem;
}

.wl-level-badge-large span {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-beginner-large {
  background: linear-gradient(135deg, rgba(47, 180, 90, 0.15) 0%, rgba(47, 180, 90, 0.08) 100%);
  color: var(--wl-level-beginner);
  border: 2px solid rgba(47, 180, 90, 0.3);
}

.badge-intermediate-large {
  background: linear-gradient(135deg, rgba(253, 126, 20, 0.15) 0%, rgba(253, 126, 20, 0.08) 100%);
  color: var(--wl-level-intermediate);
  border: 2px solid rgba(253, 126, 20, 0.3);
}

.badge-advanced-large {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(220, 53, 69, 0.08) 100%);
  color: var(--wl-level-advanced);
  border: 2px solid rgba(220, 53, 69, 0.3);
}

.wl-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.25rem;
  background: rgba(255, 128, 92, 0.05);
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 128, 92, 0.1);
}

.wl-stats-bar .stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--omw-color-copy);
}

.wl-stats-bar .stat-item i {
  font-size: 1.25rem;
}

.wl-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--omw-color-copy);
}

.wl-description h3 {
  font-size: 1.1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--omw-color-text);
}

.wl-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.wl-btn-trainer {
  position: relative;
  overflow: hidden;
}

.wl-btn-trainer::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.wl-btn-trainer:hover::before {
  width: 300px;
  height: 300px;
}

/* Sidebar Progress Card */
.wl-sidebar-visual {
  position: sticky;
  top: 120px;
}

.wl-progress-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(255, 128, 92, 0.1);
  text-align: center;
}

.progress-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, rgba(255, 128, 92, 0.15) 0%, rgba(255, 128, 92, 0.08) 100%);
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--omw-color-primary);
}

.wl-progress-preview {
  padding: 1.5rem 0;
}

.progress-ring {
  width: 140px;
  height: 140px;
  position: relative;
  margin: 0 auto;
}

.progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring-bg {
  fill: none;
  stroke: rgba(255, 128, 92, 0.1);
  stroke-width: 8;
}

.progress-ring-fill {
  fill: none;
  stroke: var(--omw-color-primary);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: calc(283 - (283 * var(--progress)) / 100);
  transition: stroke-dashoffset 1s ease;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: 700;
  color: var(--omw-color-text);
}

/* Words Section */
.wl-words-section {
  padding: 3rem 0;
}

.wl-section-header {
  margin-bottom: 2rem;
}

.wl-section-header h2 {
  color: var(--omw-color-text);
}

.wl-section-header p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Post-list CTA */
.wl-post-list-cta {
  margin-top: 4rem;
}

.wl-cta-card {
  background: linear-gradient(135deg, rgba(255, 244, 237, 0.95) 0%, rgba(255, 235, 222, 0.95) 100%);
  border-radius: 2rem;
  padding: 3rem 2rem;
  border: 2px solid rgba(255, 128, 92, 0.15);
  box-shadow: 0 15px 50px rgba(255, 128, 92, 0.15);
}

.wl-cta-card i {
  animation: float 3s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .wl-hero-visual {
    min-height: 250px;
  }

  .wl-visual-card {
    max-width: 100%;
  }

  .wl-sidebar-visual {
    position: static;
    margin-top: 2rem;
  }

  .wl-level-description {
    min-height: auto;
  }
}

@media (max-width: 767px) {
  .wl-category-icon-large {
    font-size: 3rem;
  }

  .wl-hero-meta {
    margin-top: 1.5rem;
  }

  .wl-meta-item {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .wl-visual-icon {
    font-size: 4rem;
  }

  .stat-item .stat-number {
    font-size: 2rem;
  }

  .wl-level-card {
    padding: 1.5rem;
  }

  .wl-level-title {
    font-size: 1.5rem;
  }

  .wl-tips-card {
    padding: 1.5rem;
  }

  .tip-item {
    padding: 0.75rem;
  }

  .wl-stats-bar {
    gap: 1rem;
  }

  .wl-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .wl-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .wl-cta-card {
    padding: 2rem 1.5rem;
  }

  /* Redesigned sections - mobile */
  .wl-hero-title {
    font-size: 2rem;
  }

  .wl-hero-subtitle {
    font-size: 1rem;
  }

  .wl-stats-bar-new {
    flex-direction: column;
    align-items: stretch;
  }

  .wl-stats-bar-new .stat-badge {
    width: 100%;
    justify-content: center;
  }

  .wl-cta-group-new {
    flex-direction: column;
    width: 100%;
  }

  .wl-cta-group-new .btn {
    width: 100%;
    justify-content: center;
  }

  .wl-sidebar-visual-new {
    margin-top: 2rem;
  }

  .wl-app-preview-card {
    padding: 2rem 1.5rem;
  }

  .icon-circle {
    width: 60px;
    height: 60px;
  }
}

/* Medium devices adjustments */
@media (min-width: 768px) and (max-width: 991px) {
  .wl-sidebar-visual-new {
    position: static;
    margin-top: 2rem;
  }
}

/* ========================================
   PROGRESSIVE WORD LOADING
   ======================================== */

.words-grid-container {
  position: relative;
}

.words-chunk {
  transition: opacity 0.4s ease, max-height 0.4s ease;
}

.words-chunk.collapsing {
  overflow: hidden;
}

.words-show-more {
  position: relative;
}

.words-show-more .btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.words-show-more .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 128, 92, 0.2);
}

.words-progress-info {
  padding: 1rem;
  background: rgba(255, 128, 92, 0.05);
  border-radius: 1rem;
  border: 1px dashed rgba(255, 128, 92, 0.2);
}

/* ========================================
   CATEGORY PAGE - UX REDESIGN 2.0
   ======================================== */

/* Category Hero */
.wl-category-hero-new {
  padding: 2rem 0 3rem;
}

.category-icon-badge {
  font-size: 3.5rem;
  line-height: 1;
  animation: float-gentle 3s ease-in-out infinite;
}

.letter-spacing-wide {
  letter-spacing: 0.1em;
}

.category-description {
  max-width: 600px;
}

.category-meta-bar .meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1.5rem;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.category-meta-bar .meta-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-meta-bar .meta-badge i {
  font-size: 1.2rem;
}

.category-full-description .description-content {
  font-size: 0.95rem;
  line-height: 1.7;
}

.category-full-description .btn-link {
  color: var(--omw-color-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.category-full-description .collapse.show ~ .btn-link .show-more-desc {
  display: none !important;
}

.category-full-description .collapse.show ~ .btn-link .show-less-desc {
  display: inline !important;
}

/* Category Visual Promo Card */
.wl-category-visual-new {
  position: sticky;
  top: 100px;
}

.category-promo-card {
  background: linear-gradient(135deg, rgba(255, 244, 237, 0.98) 0%, rgba(255, 235, 222, 0.98) 100%);
  border: 2px solid rgba(255, 128, 92, 0.15);
  border-radius: 2rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 15px 50px rgba(255, 128, 92, 0.12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.category-promo-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 128, 92, 0.08) 0%, transparent 70%);
  animation: rotate-slow 30s linear infinite;
  pointer-events: none;
}

.promo-icon-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.promo-icon-circle {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--omw-color-primary) 0%, #ff6b47 100%);
  border-radius: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 10px 30px rgba(255, 128, 92, 0.3);
  animation: float-gentle 3s ease-in-out infinite;
}

.category-promo-card h3,
.category-promo-card p,
.category-promo-card .btn {
  position: relative;
  z-index: 1;
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Level Cards - Redesigned */
.level-card-new {
  display: block;
  background: white;
  border: 2px solid transparent;
  border-radius: 1.75rem;
  padding: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
  position: relative;
}

.level-card-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--wl-level-beginner);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.level-card-new.level-beginner::before {
  background: linear-gradient(90deg, var(--wl-level-beginner) 0%, #2fb45add 100%);
}

.level-card-new.level-intermediate::before {
  background: linear-gradient(90deg, var(--wl-level-intermediate) 0%, #fd7e14dd 100%);
}

.level-card-new.level-advanced::before {
  background: linear-gradient(90deg, var(--wl-level-advanced) 0%, #dc3545dd 100%);
}

.level-card-new:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 128, 92, 0.3);
}

.level-card-new:hover::before {
  transform: scaleX(1);
}

/* Level Card Header */
.level-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1rem;
}

.level-icon-new {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(255, 128, 92, 0.1);
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--omw-color-primary);
  transition: all 0.4s ease;
}

.level-card-new:hover .level-icon-new {
  background: var(--omw-color-primary);
  color: white;
  transform: rotate(360deg) scale(1.1);
}

.level-badge-new span {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-level-beginner {
  background: rgba(47, 180, 90, 0.12);
  color: var(--wl-level-beginner);
  border: 1px solid rgba(47, 180, 90, 0.25);
}

.badge-level-intermediate {
  background: rgba(253, 126, 20, 0.12);
  color: var(--wl-level-intermediate);
  border: 1px solid rgba(253, 126, 20, 0.25);
}

.badge-level-advanced {
  background: rgba(220, 53, 69, 0.12);
  color: var(--wl-level-advanced);
  border: 1px solid rgba(220, 53, 69, 0.25);
}

/* Level Card Body */
.level-card-body {
  padding: 0 2rem 1.5rem;
}

.level-title-new {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--omw-color-text);
  margin-bottom: 1rem;
}

.level-description-new {
  color: var(--omw-color-copy);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  min-height: 48px;
}

.level-features-new {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.level-features-new li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--omw-color-copy);
  line-height: 1.5;
}

.level-features-new i {
  color: var(--omw-color-success);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Level Card Footer */
.level-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 128, 92, 0.02);
}

.level-cta-text {
  font-weight: 600;
  color: var(--omw-color-primary-strong);
  font-size: 1rem;
}

.level-cta-icon {
  font-size: 2rem;
  color: var(--omw-color-primary);
  transition: transform 0.3s ease;
}

.level-card-new:hover .level-cta-icon {
  transform: translateX(8px);
}

/* Mobile Adjustments for Category Page */
@media (max-width: 767px) {
  .category-icon-badge {
    font-size: 2.5rem;
  }

  .wl-category-visual-new {
    position: static;
    margin-top: 2rem;
  }

  .category-promo-card {
    padding: 2rem 1.5rem;
  }

  .promo-icon-circle {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }

  .level-card-header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .level-card-body {
    padding: 0 1.5rem 1rem;
  }

  .level-card-footer {
    padding: 1.25rem 1.5rem;
  }

  .level-title-new {
    font-size: 1.5rem;
  }

  .level-description-new {
    min-height: auto;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .wl-category-visual-new {
    position: static;
    margin-top: 2rem;
  }
}
