/* ============================================================
   Hindi to English — Shared Design System
   Theme: Dark Navy + Electric Indigo + Gold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #0a0e27;
  --bg-secondary: #0f1535;
  --bg-card: rgba(255,255,255,0.05);
  --bg-card-hover: rgba(255,255,255,0.1);
  --indigo: #6c63ff;
  --indigo-light: #8b84ff;
  --indigo-dark: #4a42cc;
  --gold: #ffd700;
  --gold-light: #ffe55c;
  --teal: #00d4aa;
  --pink: #ff6b9d;
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.7);
  --text-muted: rgba(255,255,255,0.4);
  --border: rgba(108,99,255,0.3);
  --border-light: rgba(255,255,255,0.1);
  --shadow: 0 8px 32px rgba(108,99,255,0.2);
  --shadow-strong: 0 20px 60px rgba(108,99,255,0.4);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --nav-height: 72px;
  --font-main: 'Inter', sans-serif;
  --font-display: 'Poppins', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

::selection { background: var(--indigo); color: #fff; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--indigo); border-radius: 3px; }

/* ---- Typography ---- */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p { color: var(--text-secondary); }
a { color: var(--indigo-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }

/* ---- Gradient Text ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--indigo-light) 0%, var(--gold) 50%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-2 {
  background: linear-gradient(135deg, var(--gold) 0%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Animated Background ---- */
.animated-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  overflow: hidden;
}

.animated-bg::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108,99,255,0.15) 0%, transparent 70%);
  top: -200px; left: -200px;
  animation: floatBg1 15s ease-in-out infinite;
}

.animated-bg::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,215,0,0.08) 0%, transparent 70%);
  bottom: -150px; right: -150px;
  animation: floatBg2 18s ease-in-out infinite reverse;
}

@keyframes floatBg1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(100px, 50px) scale(1.1); }
  66% { transform: translate(-50px, 100px) scale(0.9); }
}
@keyframes floatBg2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-80px, -60px) scale(1.15); }
}

/* ---- NAVIGATION ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(10,14,39,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 2rem;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10,14,39,0.97);
  box-shadow: var(--shadow);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}

.nav-logo img {
  width: 38px; height: 38px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-logo .logo-text span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  flex: 1;
  flex-wrap: wrap;
}

.nav-links a {
  display: block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-links a.active { color: var(--gold); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-cta a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-cta .tg-btn {
  background: linear-gradient(135deg, #229ED9, #0d7ab5);
  color: white;
}

.nav-cta .tg-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(34,158,217,0.4); }

.nav-cta .ig-btn {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: white;
}

.nav-cta .ig-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(131,58,180,0.4); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: rgba(10,14,39,0.97);
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 0.3rem;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }
  .nav-links.open a { padding: 10px 16px; font-size: 0.95rem; }
  .nav-cta { display: none; }
}

/* ---- MAIN CONTENT ---- */
.main-content {
  padding-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- SECTION ---- */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header .tag {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.4);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--indigo-light);
  margin-bottom: 16px;
}

/* ---- GLASS CARD ---- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: var(--transition);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-dark) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(108,99,255,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,99,255,0.5);
  color: white;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #ff9f43 100%);
  color: #0a0e27;
  box-shadow: 0 4px 20px rgba(255,215,0,0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,215,0,0.5);
  color: #0a0e27;
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  background: var(--bg-card);
  border-color: var(--indigo);
  color: var(--indigo-light);
}

.btn-sm { padding: 7px 16px; font-size: 0.82rem; border-radius: 8px; }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; border-radius: var(--radius); }

/* Copy button */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 6px;
  color: var(--indigo-light);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.copy-btn:hover { background: rgba(108,99,255,0.3); }
.copy-btn.copied { background: rgba(0,212,170,0.2); border-color: var(--teal); color: var(--teal); }

/* ---- SENTENCE CARD ---- */
.sentence-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: var(--transition);
  animation: fadeInUp 0.4s ease both;
}

.sentence-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border);
  transform: translateX(4px);
}

.sentence-number {
  display: inline-block;
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-dark));
  border-radius: 8px;
  text-align: center;
  line-height: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  margin-right: 10px;
  flex-shrink: 0;
}

.sentence-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.sentence-content { flex: 1; min-width: 0; }

.sentence-hindi { font-size: 1.05rem; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.sentence-hinglish { font-size: 0.85rem; color: var(--gold); font-style: italic; margin-bottom: 5px; }
.sentence-english { font-size: 1rem; color: var(--teal); font-weight: 500; }

/* ---- PAGINATION ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination button {
  width: 40px; height: 40px;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  font-family: var(--font-main);
}

.pagination button:hover {
  border-color: var(--indigo);
  color: var(--indigo-light);
  background: rgba(108,99,255,0.1);
}

.pagination button.active {
  background: linear-gradient(135deg, var(--indigo), var(--indigo-dark));
  border-color: var(--indigo);
  color: white;
  box-shadow: 0 4px 12px rgba(108,99,255,0.4);
}

.pagination button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination .page-info {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0 8px;
}

/* ---- SEARCH BAR ---- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin-bottom: 30px;
  transition: var(--transition);
}

.search-bar:focus-within {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}

.search-bar svg { color: var(--text-muted); flex-shrink: 0; }

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
}

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

/* ---- QUIZ CARD ---- */
.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.quiz-question {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.quiz-hindi { font-size: 0.9rem; color: var(--gold); margin-bottom: 24px; }

.quiz-options { display: flex; flex-direction: column; gap: 12px; }

.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: left;
  font-family: var(--font-main);
  width: 100%;
}

.quiz-option:hover { border-color: var(--indigo); color: var(--text-primary); background: rgba(108,99,255,0.08); }
.quiz-option.correct { border-color: var(--teal); background: rgba(0,212,170,0.12); color: var(--teal); }
.quiz-option.wrong { border-color: var(--pink); background: rgba(255,107,157,0.12); color: var(--pink); }
.quiz-option.disabled { cursor: not-allowed; pointer-events: none; }

.option-label {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.quiz-explanation {
  margin-top: 20px;
  padding: 14px 18px;
  background: rgba(0,212,170,0.08);
  border: 1px solid rgba(0,212,170,0.3);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--teal);
  display: none;
}

.quiz-explanation.show { display: block; animation: fadeInUp 0.3s ease; }

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.quiz-score {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.quiz-score .score-val { font-weight: 700; color: var(--gold); font-size: 1.1rem; }

.quiz-progress {
  width: 100%;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  margin-bottom: 24px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--indigo), var(--teal));
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ---- STORY CARD ---- */
.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  animation: fadeInUp 0.4s ease both;
}

.story-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.story-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 8px;
}

.story-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--indigo-light);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.story-tag {
  padding: 3px 10px;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
}

.story-body { padding: 18px 20px; display: flex; gap: 20px; }
.story-col { flex: 1; }
.story-col h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.story-col.hindi-col h4 { color: var(--pink); }
.story-col.english-col h4 { color: var(--teal); }
.story-col p { font-size: 0.9rem; line-height: 1.7; color: var(--text-secondary); }
.story-col.hindi-col p { color: rgba(255,255,255,0.75); }

@media (max-width: 600px) {
  .story-body { flex-direction: column; }
}

/* ---- DICTIONARY ---- */
.dict-letter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 30px;
}

.dict-letter-nav button {
  width: 36px; height: 36px;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  font-family: var(--font-main);
}

.dict-letter-nav button:hover { border-color: var(--indigo); color: var(--indigo-light); }
.dict-letter-nav button.active { background: var(--indigo); border-color: var(--indigo); color: white; }

.dict-entry {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
  animation: fadeInUp 0.3s ease both;
}

.dict-entry:hover { background: var(--bg-card); padding-left: 24px; }

.dict-hindi { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); min-width: 120px; }
.dict-arrow { color: var(--indigo-light); font-size: 1rem; margin-top: 2px; }
.dict-english { font-size: 1rem; color: var(--teal); font-weight: 500; }
.dict-type { font-size: 0.75rem; color: var(--text-muted); font-style: italic; display: block; margin-top: 2px; }
.dict-example { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* ---- CONVERSATION CARD ---- */
.convo-section { margin-bottom: 40px; }

.convo-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.convo-title h3 { font-size: 1.2rem; }

.convo-bubble-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 6px;
}

.convo-bubble {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.convo-bubble.right { flex-direction: row-reverse; }

.bubble-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  font-weight: 700;
}

.bubble-content {
  max-width: 75%;
}

.bubble-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  color: var(--text-muted);
}

.bubble-text {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.convo-bubble:not(.right) .bubble-text {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 4px 16px 16px 16px;
  color: var(--text-primary);
}

.convo-bubble.right .bubble-text {
  background: linear-gradient(135deg, rgba(108,99,255,0.25), rgba(108,99,255,0.1));
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 16px 4px 16px 16px;
  color: var(--text-primary);
}

.bubble-hindi { font-size: 0.78rem; color: var(--gold); margin-top: 4px; display: block; }
.bubble-copy { display: flex; justify-content: flex-end; margin-top: 4px; }
.convo-bubble.right .bubble-copy { justify-content: flex-start; }

/* ---- STATS ROW ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--indigo);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stat-icon { font-size: 2rem; margin-bottom: 8px; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--indigo-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ---- REVIEW CARD ---- */
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.review-card:hover { border-color: var(--indigo); transform: translateY(-4px); box-shadow: var(--shadow); }

.review-stars { color: var(--gold); font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px; }

.review-text { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }

.review-author { display: flex; align-items: center; gap: 10px; }

.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.review-name { font-weight: 700; font-size: 0.9rem; }
.review-location { font-size: 0.78rem; color: var(--text-muted); }

/* ---- GRID LAYOUTS ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media (min-width: 600px) and (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(108,99,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 { margin-bottom: 12px; }
.page-hero p { font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ---- BADGE ---- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-indigo { background: rgba(108,99,255,0.15); color: var(--indigo-light); border: 1px solid rgba(108,99,255,0.3); }
.badge-gold { background: rgba(255,215,0,0.15); color: var(--gold); border: 1px solid rgba(255,215,0,0.3); }
.badge-teal { background: rgba(0,212,170,0.15); color: var(--teal); border: 1px solid rgba(0,212,170,0.3); }
.badge-pink { background: rgba(255,107,157,0.15); color: var(--pink); border: 1px solid rgba(255,107,157,0.3); }

/* ---- FOOTER ---- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 50px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand p { font-size: 0.88rem; color: var(--text-muted); margin-top: 12px; max-width: 280px; line-height: 1.7; }

.footer-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); letter-spacing: 0.5px; }

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover { color: var(--indigo-light); transform: translateX(4px); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-social a:hover { border-color: var(--indigo); color: var(--indigo-light); background: rgba(108,99,255,0.1); }

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 0.83rem; color: var(--text-muted); }
.footer-bottom strong { color: var(--gold); }
.footer-bottom a { color: var(--indigo-light); }

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(108,99,255,0.3); }
  50% { box-shadow: 0 0 40px rgba(108,99,255,0.6); }
}

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

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Stagger children */
.stagger-children > * { opacity: 0; transform: translateY(20px); }
.stagger-children.visible > *:nth-child(1) { animation: fadeInUp 0.5s ease 0.05s both; }
.stagger-children.visible > *:nth-child(2) { animation: fadeInUp 0.5s ease 0.15s both; }
.stagger-children.visible > *:nth-child(3) { animation: fadeInUp 0.5s ease 0.25s both; }
.stagger-children.visible > *:nth-child(4) { animation: fadeInUp 0.5s ease 0.35s both; }
.stagger-children.visible > *:nth-child(5) { animation: fadeInUp 0.5s ease 0.45s both; }
.stagger-children.visible > *:nth-child(6) { animation: fadeInUp 0.5s ease 0.55s both; }

/* ---- TOAST NOTIFICATION ---- */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: rgba(0,212,170,0.15);
  border: 1px solid var(--teal);
  color: var(--teal);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  z-index: 9999;
  animation: slideInRight 0.3s ease, fadeIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.hidden { display: none; }

/* ---- TABS ---- */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab-btn {
  flex: 1;
  padding: 9px 16px;
  background: transparent;
  border: none;
  border-radius: 7px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
  white-space: nowrap;
}

.tab-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.tab-btn.active { background: var(--indigo); color: white; box-shadow: 0 2px 10px rgba(108,99,255,0.35); }

/* ---- FILTER CHIPS ---- */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-chip {
  padding: 6px 16px;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
}

.filter-chip:hover { border-color: var(--indigo); color: var(--indigo-light); }
.filter-chip.active { background: var(--indigo); border-color: var(--indigo); color: white; }

/* ---- MISC ---- */
.divider { height: 1px; background: var(--border-light); margin: 40px 0; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ---- ADSENSE PLACEHOLDER ---- */
.ad-slot {
  background: rgba(255,255,255,0.02);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 30px 0;
}
