:root {
  --black: #000000;
  --white: #ffffff;
  --gold: #D4AF37;
  --gold-light: #f0d060;
  --gold-dark: #b8962f;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea { font-family: inherit; font-size: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }

.skip-link {
  position: absolute; top: -100%; left: 0; background: var(--gold); color: var(--black);
  padding: 12px 24px; z-index: 10000; font-weight: 600; transition: top 0.3s;
}
.skip-link:focus { top: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.gold { color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { border: 2px solid var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold); color: var(--black); transform: translateY(-1px); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--gray-800); transform: translateY(-1px); }
.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #20bd5a; transform: translateY(-1px); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200); transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 20px;
}
.header-left { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; }
.logo-icon {
  width: 40px; height: 40px; background: var(--black); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; color: var(--gold);
  font-weight: 900; font-size: 1.1rem;
}
.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a {
  padding: 8px 14px; border-radius: var(--radius-sm); font-size: 0.875rem;
  font-weight: 500; color: var(--gray-600); transition: var(--transition);
  position: relative;
}
.header-nav a:hover, .header-nav a.active { color: var(--black); background: var(--gray-100); }
.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.search-toggle {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-100); transition: var(--transition);
}
.search-toggle:hover { background: var(--gray-200); }
.search-toggle svg { width: 20px; height: 20px; }

.header-social { display: flex; align-items: center; gap: 6px; }
.header-social a {
  width: 36px; height: 36px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; background: var(--gray-100);
  transition: var(--transition); font-size: 0.8rem;
}
.header-social a:hover { background: var(--gold); color: var(--black); }

.mobile-toggle { display: none; width: 42px; height: 42px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--black); border-radius: 2px; transition: var(--transition); }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  position: fixed; top: 0; right: -100%; width: 320px; height: 100vh;
  background: var(--white); z-index: 999; padding: 100px 30px 30px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xl); overflow-y: auto;
}
.mobile-nav.open { right: 0; }
.mobile-nav a {
  display: block; padding: 14px 0; font-size: 1.1rem; font-weight: 500;
  border-bottom: 1px solid var(--gray-100); color: var(--gray-700);
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; pointer-events: none;
  transition: var(--transition);
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

/* Search Bar */
.search-bar {
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
.search-bar.open { max-height: 200px; }
.search-bar-inner { padding: 20px 0; }
.search-container { position: relative; max-width: 700px; margin: 0 auto; }
.search-input {
  width: 100%; padding: 16px 60px 16px 20px; border: 2px solid var(--gray-200);
  border-radius: var(--radius-md); font-size: 1.1rem; outline: none;
  transition: var(--transition); background: var(--gray-50);
}
.search-input:focus { border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px rgba(212,175,55,0.15); }
.search-submit {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--gold); color: var(--black); display: flex;
  align-items: center; justify-content: center; transition: var(--transition);
}
.search-submit:hover { background: var(--gold-light); }

.autocomplete-box {
  position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
  border: 1px solid var(--gray-200); border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg); z-index: 100; display: none; max-height: 400px;
  overflow-y: auto;
}
.autocomplete-box.show { display: block; }
.autocomplete-item {
  padding: 12px 20px; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; transition: var(--transition);
  border-bottom: 1px solid var(--gray-100);
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover, .autocomplete-item.active { background: var(--gray-50); }
.autocomplete-item .word { font-weight: 600; }
.autocomplete-item .pos { font-size: 0.8rem; color: var(--gray-400); }
.autocomplete-item .meaning { font-size: 0.85rem; color: var(--gray-500); }
.autocomplete-header {
  padding: 10px 20px; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--gray-400); font-weight: 600;
}

/* Hero */
.hero {
  padding: 80px 0 100px; text-align: center;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; background: rgba(212,175,55,0.1); color: var(--gold-dark);
  border-radius: 50px; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero p { font-size: 1.15rem; color: var(--gray-500); max-width: 600px; margin: 0 auto 36px; line-height: 1.7; }
.hero-search { max-width: 640px; margin: 0 auto; position: relative; }
.hero-search input {
  width: 100%; padding: 20px 60px 20px 24px; border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg); font-size: 1.1rem; outline: none;
  transition: var(--transition); background: var(--white);
  box-shadow: var(--shadow-sm);
}
.hero-search input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,0.15); }
.hero-search button {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--gold); color: var(--black); display: flex;
  align-items: center; justify-content: center; transition: var(--transition);
}
.hero-search button:hover { background: var(--gold-light); }
.hero-quick-links { display: flex; justify-content: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero-quick-links a {
  padding: 8px 16px; border-radius: 50px; background: var(--gray-100);
  font-size: 0.85rem; color: var(--gray-600); transition: var(--transition);
}
.hero-quick-links a:hover { background: var(--gold); color: var(--black); }

/* Section */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; margin-bottom: 12px; }
.section-header p { color: var(--gray-500); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.section-header .badge {
  display: inline-flex; padding: 4px 14px; background: rgba(212,175,55,0.1);
  color: var(--gold-dark); border-radius: 50px; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em;
}

/* Word Cards Grid */
.word-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.word-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 24px; transition: var(--transition);
  cursor: default;
}
.word-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.word-card .word { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.word-card .word a:hover { color: var(--gold); }
.word-card .pronunciation { font-size: 0.85rem; color: var(--gray-400); margin-bottom: 8px; }
.word-card .meaning { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 12px; line-height: 1.5; }
.word-card .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.word-card .meta span {
  font-size: 0.75rem; padding: 3px 10px; border-radius: 50px;
  background: var(--gray-100); color: var(--gray-500);
}

/* Category Cards */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.category-card {
  padding: 32px 20px; border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  text-align: center; transition: var(--transition); cursor: pointer;
}
.category-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.category-card .icon { font-size: 2rem; margin-bottom: 12px; }
.category-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.category-card p { font-size: 0.85rem; color: var(--gray-500); }

/* Word of Day */
.word-day {
  background: var(--black); color: var(--white); padding: 60px 0;
  position: relative; overflow: hidden;
}
.word-day::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(212,175,55,0.1) 0%, transparent 60%);
}
.word-day-inner { position: relative; z-index: 1; text-align: center; max-width: 700px; margin: 0 auto; }
.word-day-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; background: rgba(212,175,55,0.15); color: var(--gold);
  border-radius: 50px; font-size: 0.8rem; font-weight: 600; margin-bottom: 16px;
}
.word-day-word { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 800; margin-bottom: 8px; }
.word-day-pron { font-size: 1rem; color: var(--gray-400); margin-bottom: 16px; }
.word-day-meaning { font-size: 1.1rem; color: var(--gray-300); margin-bottom: 24px; line-height: 1.6; }
.word-day .btn { background: var(--gold); color: var(--black); }

/* Enroll Section */
.enroll-section {
  background: linear-gradient(135deg, var(--black) 0%, var(--gray-900) 100%);
  color: var(--white); padding: 80px 0; text-align: center;
}
.enroll-section h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; margin-bottom: 16px; }
.enroll-section p { color: var(--gray-400); max-width: 560px; margin: 0 auto 32px; font-size: 1.05rem; }
.enroll-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Blog Grid */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.blog-card {
  border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  overflow: hidden; transition: var(--transition);
}
.blog-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card-img { height: 200px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--gray-300); font-size: 2rem; }
.blog-card-body { padding: 24px; }
.blog-card .tag {
  display: inline-block; padding: 3px 10px; background: rgba(212,175,55,0.1);
  color: var(--gold-dark); border-radius: 50px; font-size: 0.75rem; font-weight: 600;
  margin-bottom: 10px;
}
.blog-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.blog-card h3 a:hover { color: var(--gold); }
.blog-card p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.5; margin-bottom: 12px; }
.blog-card .meta { font-size: 0.8rem; color: var(--gray-400); }

/* Letter Filters */
.letter-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.letter-filter-btn {
  padding: 6px 16px; font-size: 0.85rem; font-weight: 500;
  border: 1px solid var(--gray-200); border-radius: 50px;
  background: transparent; color: var(--gray-600); cursor: pointer;
  transition: var(--transition);
}
.letter-filter-btn:hover { border-color: var(--gold); color: var(--black); }
.letter-filter-btn.active { background: var(--gold); color: var(--black); border-color: var(--gold); }

.voice-search-btn {
  position: absolute; right: 56px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: none; align-items: center; justify-content: center;
  color: var(--gray-400); transition: var(--transition);
}
.voice-search-btn:hover { color: var(--gold); }
.voice-search-btn.listening { color: #ef4444; animation: pulse 1s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.word-day-pron .audio-btn { width: 32px; height: 32px; font-size: 0.85rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.1); color: var(--gray-400); transition: var(--transition); }
.word-day-pron .audio-btn:hover { background: var(--gold); color: var(--black); }

/* ==========================================================================
   Footer - Light Theme Update
   ========================================================================== */
.footer {
  background: var(--gray-50); 
  color: var(--gray-600); 
  padding: 60px 0 0;
  border-top: 1px solid var(--gray-200);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-about .logo { margin-bottom: 16px; }
.footer-about p { color: var(--gray-600); font-size: 0.9rem; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; 
  border: 1px solid var(--gray-300);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600); transition: var(--transition);
}
.footer-social a:hover { border-color: var(--gold); color: var(--black); background: var(--gold); }
.footer h4 { font-size: 1rem; font-weight: 600; margin-bottom: 20px; color: var(--gray-900); }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--gray-600); font-size: 0.9rem; }
.footer ul a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--gray-200); padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--gray-500); font-size: 0.85rem;
}

/* Breadcrumb */
.breadcrumb { padding: 20px 0; font-size: 0.85rem; color: var(--gray-500); }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gray-300); margin: 0 8px; }

/* Page Header */
.page-header { padding: 40px 0 48px; background: var(--gray-50); }
.page-header h1 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; margin-bottom: 12px; }
.page-header p { color: var(--gray-500); font-size: 1.05rem; max-width: 600px; }

/* Word Page */
.word-page-content { padding: 40px 0 80px; }
.word-head { margin-bottom: 32px; }
.word-head h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; line-height: 1.1; }
.word-pron {
  display: flex; align-items: center; gap: 12px; margin: 8px 0 16px;
  font-size: 1.1rem; color: var(--gray-500);
}
.word-pron .ipa { font-family: var(--font-serif); }
.word-pron .audio-btn {
  width: 36px; height: 36px; border-radius: 50%; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.word-pron .audio-btn:hover { background: var(--gold); color: var(--black); }

.audio-btn {
  width: 36px; height: 36px; border-radius: 50%; background: var(--gray-100);
  display: inline-flex; align-items: center; justify-content: center;
  transition: var(--transition); cursor: pointer; vertical-align: middle;
}
.audio-btn:hover { background: var(--gold); color: var(--black); }
.word-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.word-tags span {
  padding: 4px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 500;
}
.tag-pos { background: rgba(212,175,55,0.1); color: var(--gold-dark); }
.tag-cefr { background: var(--gray-100); color: var(--gray-600); }

.meaning-section { margin-bottom: 40px; }
.meaning-section h2 { font-size: 1.1rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.meaning-simple {
  font-size: 1.3rem; font-weight: 500; color: var(--gray-900);
  padding: 20px; background: var(--gray-50); border-radius: var(--radius-md);
  border-left: 4px solid var(--gold); margin-bottom: 24px;
}
.meaning-full { font-size: 1rem; color: var(--gray-600); line-height: 1.7; }

.translations { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 32px; }
.translation-item {
  padding: 16px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
}
.translation-item .lang { font-size: 0.75rem; color: var(--gray-400); text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }
.translation-item .trans { font-size: 1rem; font-weight: 500; }

.examples { margin-bottom: 32px; }
.example-item {
  padding: 16px 20px; background: var(--gray-50); border-radius: var(--radius-sm);
  margin-bottom: 8px; font-style: italic; color: var(--gray-600);
  border-left: 3px solid var(--gray-300);
}

.related-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.related-list h3 { font-size: 0.9rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.related-list .items { display: flex; flex-wrap: wrap; gap: 8px; }
.related-list .items a {
  padding: 6px 14px; border: 1px solid var(--gray-200); border-radius: 50px;
  font-size: 0.85rem; transition: var(--transition);
}
.related-list .items a:hover { border-color: var(--gold); background: rgba(212,175,55,0.05); }

.info-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 32px; }
.info-card {
  padding: 20px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
}
.info-card h3 { font-size: 0.85rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.info-card p { font-size: 0.95rem; color: var(--gray-700); line-height: 1.6; }

.faq-item {
  border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  margin-bottom: 8px; overflow: hidden;
}
.faq-question {
  padding: 16px 20px; display: flex; justify-content: space-between;
  align-items: center; font-weight: 500; cursor: pointer;
  background: var(--gray-50); transition: var(--transition);
}
.faq-question:hover { background: var(--gray-100); }
.faq-question .icon { transition: transform 0.3s; }
.faq-question.active .icon { transform: rotate(45deg); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: all 0.3s ease; }
.faq-answer.open { padding: 16px 20px; max-height: 300px; }
.faq-answer p { color: var(--gray-600); font-size: 0.95rem; line-height: 1.6; }

/* Translate Page */
.translate-header { padding: 40px 0; background: var(--gray-50); }
.translate-box { max-width: 700px; margin: 0 auto; }
.translate-tabs { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.translate-tab {
  padding: 8px 18px; border-radius: var(--radius-sm); font-size: 0.9rem;
  font-weight: 500; color: var(--gray-500); background: var(--gray-100);
  transition: var(--transition);
}
.translate-tab.active, .translate-tab:hover { background: var(--gold); color: var(--black); }
.translate-input { margin-bottom: 16px; }
.translate-input input {
  width: 100%; padding: 16px 20px; border: 2px solid var(--gray-200);
  border-radius: var(--radius-md); font-size: 1.1rem; outline: none;
  transition: var(--transition);
}
.translate-input input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,0.15); }

/* Content Page */
.content-page { padding: 40px 0 80px; }
.content-page h2 { font-size: 1.5rem; margin: 32px 0 16px; }
.content-page h3 { font-size: 1.2rem; margin: 24px 0 12px; }
.content-page p { margin-bottom: 16px; line-height: 1.8; color: var(--gray-600); }
.content-page ul, .content-page ol { margin: 0 0 20px 20px; }
.content-page li { margin-bottom: 8px; line-height: 1.7; color: var(--gray-600); }
.content-page ul li { list-style: disc; }

/* Contact Form */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: 0.95rem; outline: none;
  transition: var(--transition); background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,0.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* 404 */
.page-404 { text-align: center; padding: 120px 20px; }
.page-404 h1 { font-size: 6rem; font-weight: 800; color: var(--gray-200); line-height: 1; }
.page-404 h2 { font-size: 2rem; margin: 16px 0; }
.page-404 p { color: var(--gray-500); margin-bottom: 32px; }

/* Loading */
.loading { display: flex; align-items: center; justify-content: center; padding: 60px; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--gray-200); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px; padding: 16px 24px;
  border-radius: var(--radius-sm); color: var(--white); font-weight: 500;
  z-index: 10000; transform: translateY(100px); opacity: 0;
  transition: all 0.4s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { background: #10b981; }
.toast-error { background: #ef4444; }
.toast-info { background: var(--black); }

/* Back to Top */
.back-top {
  position: fixed; bottom: 24px; left: 24px; width: 44px; height: 44px;
  border-radius: 50%; background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); z-index: 100; opacity: 0;
  transform: translateY(20px); pointer-events: none; transition: var(--transition);
}
.back-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top:hover { background: var(--gold); color: var(--black); }

/* Grammar / Idiom / Phrasal Verb cards */
.article-card {
  border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  padding: 24px; transition: var(--transition); margin-bottom: 16px;
}
.article-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.article-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.article-card h3 a:hover { color: var(--gold); }
.article-card p { color: var(--gray-500); font-size: 0.9rem; line-height: 1.6; }

/* Responsive */
@media (max-width: 1024px) {
  .header-nav a:not(.nav-essential) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .mobile-toggle { display: flex; }
  .header-social { display: none; }
  .hero { padding: 60px 0 80px; }
  .section { padding: 60px 0; }
  .word-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .related-lists { grid-template-columns: 1fr; }
  .translations { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .info-cards { grid-template-columns: 1fr; }
  .word-day { padding: 40px 0; }
  .enroll-section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
  .translations { grid-template-columns: 1fr; }
  .enroll-actions { flex-direction: column; align-items: center; }
  .hero-quick-links { flex-direction: column; align-items: center; }
  .container { padding: 0 16px; }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root { --white: #0a0a0a; --gray-50: #111; --gray-100: #1a1a1a; --gray-200: #2a2a2a; --gray-300: #3a3a3a; --gray-400: #6b7280; --gray-500: #9ca3af; --gray-600: #d1d5db; --gray-700: #e5e7eb; --gray-800: #f3f4f6; --gray-900: #f9fafb; --black: #ffffff; }
  .header { background: rgba(10,10,10,0.98); }
  .hero { background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%); }
  .word-card, .blog-card, .article-card, .category-card { background: var(--gray-50); }
  .example-item { background: var(--gray-100); }
  .meaning-simple { background: var(--gray-100); }
}

/* Print */
@media print {
  .header, .footer, .enroll-section, .back-top, .toast, .search-bar, .mobile-nav, .mobile-overlay { display: none !important; }
  body { color: #000; background: #fff; }
  .container { max-width: 100%; padding: 0; }
}