:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #3B82F6;
  --secondary: #EC4899;
  --accent: #14B8A6;
  --accent-dark: #0D9488;
  --warning: #F59E0B;
  --success: #16A34A;
  --danger: #EF4444;
  --bg: #EEF2F7;
  --surface: #FFFFFF;
  --surface-alt: #F3F4F6;
  --border: #E5E7EB;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-primary);
  min-height: 100vh;
}

.main-app {
  display: block;
  min-height: 100vh;
}

.main-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  margin-left: 0 !important;
  width: 100% !important;
}

.main-container {
  flex: 1;
  padding: 28px 32px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* ══ SIDEBAR HIDDEN ══ */
.sidebar {
  display: none !important;
}

.sidebar-top { margin-bottom: 24px; }
.logo-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #2563EB, #1E40AF);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; letter-spacing: 0.05em;
  color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,0.45);
}
.sidebar-logo { font-size: 1.45rem; font-weight: 800; letter-spacing: 0.06em; }
.sidebar-logo::after {
  content: ''; display: block; width: 32px; height: 3px;
  background: #60A5FA; border-radius: 3px; margin-top: 4px;
}
.logo-badge {
  display: inline-block; padding: 4px 10px; border-radius: 20px;
  background: rgba(255,255,255,0.12); font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.15em; margin-top: 6px;
}
.sidebar-sub { font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,0.95); line-height: 1.4; }
.sidebar-menu { list-style: none; margin-top: 20px; }
.sidebar-menu li {
  padding: 10px 12px; font-size: 0.9rem; font-weight: 600;
  border-radius: 8px; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  transition: all 0.15s ease; margin-bottom: 6px; position: relative;
}
.sidebar-menu li a {
  text-decoration: none; color: #fff; flex: 1; display: block;
  text-align: center; background: rgba(255,255,255,0.08);
  border-radius: 10px; padding: 10px 14px;
}
.sidebar-menu li:hover { background: rgba(255,255,255,0.12); }
.sidebar-menu li.active { background: rgba(255,255,255,0.2); }
.sidebar-menu li.active::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 4px; border-radius: 4px; background: #60A5FA;
}
.sidebar-menu li.active a { background: linear-gradient(135deg, #2563EB, #1D4ED8); }
.badge { background: rgba(255,255,255,0.3); padding: 4px 8px; border-radius: 20px; font-size: 0.75rem; }

.mega-wrap {
  position: absolute; top: 100%; left: 0; margin-top: 8px; width: 280px;
  background: #fff; color: var(--text-primary); box-shadow: var(--shadow-xl);
  border-radius: 14px; padding: 12px; opacity: 0; pointer-events: none;
  transform: translateY(-8px); transition: all 0.2s ease; z-index: 50;
}
.mega-wrap.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mega-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); margin-bottom: 8px; }
.mega-list { list-style: none; }
.mega-list li { padding: 8px 10px; border-radius: 8px; cursor: pointer; transition: all 0.15s ease; font-size: 0.9rem; }
.mega-list li:hover { background: var(--surface-alt); color: var(--primary); }
.mega-list a { text-decoration: none; color: inherit; }

/* HEADER BAR */
.header-bar { display: flex; justify-content: flex-end; align-items: center; margin-bottom: 12px; gap: 12px; }
.auth-actions { display: flex; gap: 10px; }
.auth-btn {
  padding: 8px 18px; border-radius: 999px; font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.03em; text-decoration: none; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-primary); transition: all 0.2s ease; white-space: nowrap;
}
.auth-btn.auth-login { background: #FFFFFF; color: #1E40AF; border: 2px solid #1E40AF; }
.auth-btn.auth-login:hover { background: #EFF6FF; }
.auth-btn.auth-signup {
  background: linear-gradient(135deg, #2563EB, #1D4ED8); color: #fff; border: none;
  box-shadow: 0 10px 22px rgba(37,99,235,0.35); animation: signupPulse 2.2s infinite;
}
.auth-btn.auth-signup:hover {
  box-shadow: 0 14px 30px rgba(37,99,235,0.55); transform: translateY(-2px); animation: none;
}
@keyframes signupPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,99,235,0.6), 0 10px 22px rgba(37,99,235,0.35); }
  60%  { box-shadow: 0 0 0 10px rgba(37,99,235,0), 0 10px 22px rgba(37,99,235,0.35); }
  100% { box-shadow: 0 0 0 0 rgba(37,99,235,0), 0 10px 22px rgba(37,99,235,0.35); }
}

/* HERO */
.hero-box {
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  align-items: center; gap: 24px;
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 60%, #312E81 100%);
  background-size: 300% 300%; border-radius: 14px; padding: 36px 32px;
  box-shadow: 0 8px 32px rgba(15,23,42,0.35); margin-bottom: 28px;
  position: relative; overflow: hidden; animation: heroGradientShift 8s ease infinite;
}
@keyframes heroGradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-box::before {
  content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.3), transparent 70%);
  top: -100px; right: -100px; pointer-events: none; animation: orbFloat 6s ease-in-out infinite;
}
.hero-box::after {
  content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(236,72,153,0.15), transparent 70%);
  bottom: -80px; left: 30%; pointer-events: none; animation: orbFloat 8s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-20px) scale(1.08); }
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-kicker {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 10px; color: #A5B4FC; opacity: 0.9;
}
.hero-heading { font-size: 1.9rem; line-height: 1.2; font-weight: 800; margin-bottom: 12px; color: #FFFFFF; letter-spacing: 0.02em; }
.hero-heading span {
  background: linear-gradient(135deg, #60A5FA, #A78BFA, #F472B6, #60A5FA);
  background-size: 300% 300%; -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  animation: textGradientShift 4s ease infinite;
}
@keyframes textGradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-sub { font-size: 1rem; margin-bottom: 22px; line-height: 1.6; color: #C7D2FE; opacity: 0.85; max-width: 520px; }
.hero-search {
  display: flex; gap: 8px; background: rgba(255,255,255,0.08);
  border-radius: 12px; padding: 4px; margin-bottom: 16px; max-width: 500px;
  border: 1px solid rgba(255,255,255,0.15); transition: all 0.25s ease;
}
.hero-search input { flex: 1; border: none; background: transparent; color: #FFFFFF; padding: 10px 14px; font-size: 0.95rem; outline: none; }
.hero-search input::placeholder { color: rgba(255,255,255,0.45); }
.hero-search button {
  border: none; background: linear-gradient(135deg, #4F46E5, #3730A3); color: #fff;
  padding: 10px 20px; border-radius: 10px; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: all 0.18s ease; white-space: nowrap;
  letter-spacing: 0.08em; box-shadow: 0 4px 14px rgba(79,70,229,0.45);
}
.hero-search button:hover { background: linear-gradient(135deg, #6366F1, #4F46E5); box-shadow: 0 6px 20px rgba(79,70,229,0.7); transform: translateY(-1px); }
.hero-search:focus-within {
  border-color: rgba(99,102,241,0.7);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.25), 0 0 20px rgba(99,102,241,0.15);
  background: rgba(255,255,255,0.13);
}
.hero-notes { font-size: 0.88rem; opacity: 0.75; margin-bottom: 16px; color: #C7D2FE; letter-spacing: 0.02em; }

/* STATS */
.stat-row { display: flex; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.stat-block {
  background: rgba(255,255,255,0.07); padding: 10px 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1); flex: 1; min-width: 120px;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  position: relative; overflow: hidden;
}
.stat-block::before {
  content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-20deg); transition: left 0.5s ease;
}
.stat-block:hover::before { left: 130%; }
.stat-block:hover { background: rgba(255,255,255,0.14); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.stat-label { font-size: 0.8rem; color: #A5B4FC; margin-bottom: 4px; opacity: 0.85; }
.stat-value { font-size: 1.4rem; font-weight: 700; color: #FFFFFF; }

/* STEPS */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.step-card {
  background: #FFFFFF; border: 1px solid #E5E7EB; border-left: 3px solid transparent;
  border-radius: 16px; padding: 24px; display: flex; gap: 14px; align-items: flex-start;
  box-shadow: 0 4px 12px rgba(15,23,42,0.06); transition: all 0.2s ease;
}
.step-card:hover { box-shadow: 0 10px 24px rgba(15,23,42,0.12); border-left-color: #2563EB; transform: translateY(-3px); }
.step-card:nth-child(2):hover { border-left-color: #7C3AED; }
.step-card:nth-child(3):hover { border-left-color: #14B8A6; }
.step-icon { font-size: 2rem; flex-shrink: 0; }
.step-text-title { font-weight: 700; color: var(--text-primary); margin-bottom: 4px; font-size: 0.95rem; }
.step-text-sub { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.4; }

/* SECTION */
.section { margin-bottom: 32px; }
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 18px; gap: 20px; border-bottom: 1px solid #E5E7EB; padding-bottom: 8px;
}
.section-title { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.section-subtitle { font-size: 0.9rem; color: var(--text-secondary); }

/* CHIPS */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 7px 14px; border-radius: 999px; border: 1px solid #D1D5DB;
  background: #FFFFFF; font-size: 0.85rem; font-weight: 600; cursor: pointer;
  color: var(--text-secondary); transition: all 0.15s ease; position: relative;
}
.chip:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(15,23,42,0.12); }
.chip.active { background: #2563EB; border-color: #2563EB; color: #fff; }
.chip.active::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: -6px;
  height: 3px; border-radius: 3px; background: #2563EB;
}

/* BUNDLES GRID */
#bundles-list-free,
#bundles-list-paid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px; list-style: none; margin: 0; padding: 0;
}

/* BUNDLE CARD */
.bundle-card-prof {
  position: relative; background: linear-gradient(180deg, #FFFFFF, #F8FAFC);
  border: 1px solid #E5E7EB; border-radius: 16px; padding: 16px;
  cursor: pointer; display: flex; flex-direction: column;
  box-shadow: 0 6px 16px rgba(15,23,42,0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; overflow: hidden;
}
.bundle-card-prof::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(0,0,0,0.03)); pointer-events: none;
}
.bundle-card-prof[data-free="1"]       { background: linear-gradient(180deg, #ECFDF5, #FFFFFF); border-color: #A7F3D0; }
.bundle-card-prof[data-category="main"]     { background: linear-gradient(180deg, #EFF6FF, #FFFFFF); border-color: #BFDBFE; }
.bundle-card-prof[data-category="advanced"] { background: linear-gradient(180deg, #F5F3FF, #FFFFFF); border-color: #DDD6FE; }
.bundle-card-prof[data-category="neet"]     { background: linear-gradient(180deg, #ECFEFF, #FFFFFF); border-color: #A5F3FC; }
.bundle-card-prof[data-free="0"] { border: 1.5px solid #CBD5F5; }
.bundle-card-prof[data-free="0"]::before {
  content: 'PREMIUM'; position: absolute; top: 10px; left: 10px;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.12em;
  padding: 4px 8px; border-radius: 6px; background: #EEF2FF; color: #3730A3; z-index: 1;
}
.bundle-card-prof:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15,23,42,0.18); border-color: #2563EB; }
.bundle-card-prof:hover .b-title { color: #1D4ED8; }
.b-thumb {
  width: 100%; height: 135px; border-radius: 14px; object-fit: cover;
  margin-bottom: 12px; background: #FFFFFF; padding: 8px;
  transition: transform 0.4s ease; position: relative; z-index: 0;
}
.bundle-card-prof:hover .b-thumb { transform: translateY(-6px); }
.b-main { flex: 1; display: flex; flex-direction: column; position: relative; z-index: 0; }
.b-title-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; gap: 6px; }
.b-title { font-size: 0.95rem; font-weight: 700; color: #0F172A; line-height: 1.35; }
.bundle-card-prof[data-category="main"] .b-title     { color: #1D4ED8; }
.bundle-card-prof[data-category="advanced"] .b-title { color: #5B21B6; }
.bundle-card-prof[data-category="neet"] .b-title     { color: #0F766E; }
.bundle-card-prof[data-free="1"] .b-title            { color: #166534; }
.b-price {
  background: #2563EB; color: #fff; padding: 4px 12px; border-radius: 999px;
  font-weight: 700; font-size: 0.75rem; white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12); position: relative;
}
.bundle-card-prof[data-free="1"] .b-price { background: linear-gradient(135deg, #22C55E, #16A34A); }
.bundle-card-prof[data-free="0"] .b-price { background: linear-gradient(135deg, #4F46E5, #3730A3); box-shadow: 0 6px 14px rgba(79,70,229,0.4); }
.b-price::after {
  content: ''; position: absolute; inset: -2px; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), transparent); opacity: 0; transition: opacity 0.2s ease;
}
.bundle-card-prof:hover .b-price::after { opacity: 1; }
.b-short {
  font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.45;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.b-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.b-tag-live, .b-tag-soon {
  border-radius: 6px; font-size: 0.68rem; padding: 4px 8px;
  font-weight: 600; letter-spacing: 0.04em; box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}
.b-tag-live { background: linear-gradient(135deg, #22C55E, #16A34A); color: #fff; }
.b-tag-soon { background: linear-gradient(135deg, #F59E0B, #D97706); color: #fff; }
.bundle-card-prof[data-state="active"] .b-tag-live { animation: pulseLive 2s infinite; }
@keyframes pulseLive {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.b-footer { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--border); }
.b-btn-main {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 8px; border: none; cursor: pointer; text-decoration: none;
  padding: 10px 12px; border-radius: 10px; font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
  position: relative; overflow: hidden; background: linear-gradient(135deg, #2563EB, #1D4ED8); transition: all 0.18s ease;
}
.b-btn-main::before {
  content: ''; position: absolute; top: 0; left: -120%; width: 120%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent); transition: left 0.6s ease;
}
.b-btn-main:hover::before { left: 120%; }
.b-btn-main:hover { box-shadow: 0 8px 20px rgba(37,99,235,0.35); transform: translateY(-2px); }
.bundle-card-prof[data-free="1"] .b-btn-main         { background: linear-gradient(135deg, #22C55E, #16A34A); }
.bundle-card-prof[data-category="advanced"] .b-btn-main { background: linear-gradient(135deg, #7C3AED, #5B21B6); }
.bundle-card-prof[data-category="neet"] .b-btn-main  { background: linear-gradient(135deg, #14B8A6, #0F766E); }
.bundle-card-prof[data-free="0"] .b-btn-main         { background: linear-gradient(135deg, #4F46E5, #4338CA); }

/* MODAL */
#bundle-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); z-index: 999; }
#bundle-overlay.active { display: block; }
.b-sidebar-modal {
  position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
  width: 340px; max-width: 90vw; max-height: 90vh;
  background: #FFFFFF; box-shadow: 0 20px 40px rgba(0,0,0,0.15); border-radius: 14px; overflow-y: auto;
}
.b-close {
  position: absolute; top: 12px; right: 12px; background: var(--surface-alt);
  color: var(--text-primary); border: none; border-radius: 8px; width: 32px; height: 32px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease; font-size: 1.2rem; z-index: 10;
}
.b-close:hover { background: var(--border); }
.b-detail-header { width: 100%; height: 180px; overflow: hidden; }
.b-detail-header img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.b-sidebar-modal:hover .b-detail-header img { transform: scale(1.05); }
.b-detail-body { padding: 20px; }
.b-detail-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: #111827; }
.b-detail-price-line { font-size: 0.95rem; margin-bottom: 12px; color: #111827; }
.b-detail-price-line strong { color: #1E40AF; font-size: 1.1rem; }
.b-detail-meta { font-size: 0.9rem; color: #6B7280; margin-bottom: 12px; line-height: 1.6; }
.b-detail-divider { border-bottom: 1px solid var(--border); margin: 12px 0; }
.b-detail-actions { display: flex; flex-direction: column; gap: 8px; }
.b-detail-actions .b-btn-main { padding: 11px 14px; font-size: 0.85rem; }
.b-detail-note { font-size: 0.8rem; color: var(--text-light); text-align: center; margin-top: 8px; }

/* ══ FOOTER — FIXED ══ */
footer {
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-top: none;
  margin-top: 8px;
  padding: 0;
  text-align: left;
}

.footer-wrap {
  background: linear-gradient(135deg, #14532D 0%, #1E1B4B 60%, #1a1a3e 100%);
  border-radius: 20px;
  padding: 44px 44px 28px;
  margin-bottom: 12px;
  color: #fff;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand-mark {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1db97a, #0e9e64);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px; color: #fff;
  box-shadow: 0 4px 18px rgba(29,185,122,0.4);
  margin-bottom: 6px;
  flex-shrink: 0;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.footer-brand-badge {
  font-size: 11px;
  color: #6EE7B7;
  opacity: 0.8;
  margin-bottom: 4px;
}

.footer-brand-sub {
  font-size: 13px;
  color: #A7F3D0;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 220px;
  margin: 0;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.footer-col ul li a {
  font-size: 13px;
  color: #A7F3D0;
  text-decoration: none;
  transition: color 0.18s ease, padding-left 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.footer-col ul li a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-divider {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 16px;
}

.footer-disclaimer {
  font-size: 11px;
  color: #6EE7B7;
  opacity: 0.75;
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

.footer-bottom > span {
  font-size: 12px;
  color: #A7F3D0;
  opacity: 0.7;
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links a {
  font-size: 12px;
  color: #A7F3D0;
  opacity: 0.7;
  text-decoration: none;
  transition: color 0.18s, opacity 0.18s;
}

.footer-bottom-links a:hover {
  color: #fff;
  opacity: 1;
}

/* FOOTER CTA */
.footer-cta {
  background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 16px; padding: 36px;
  color: #111827; margin-bottom: 24px; box-shadow: 0 8px 20px rgba(15,23,42,0.08);
  position: relative; overflow: hidden;
}
.footer-cta h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; }
.footer-cta p  { font-size: 1rem; margin-bottom: 16px; line-height: 1.6; }
.footer-cta ul { list-style: none; font-size: 0.95rem; line-height: 1.7; }
.footer-cta li { margin-bottom: 8px; padding-left: 24px; position: relative; }
.footer-cta li::before { content: '✓'; position: absolute; left: 0; font-weight: bold; color: #2563EB; }

/* IDLE POPUP */
#idle-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 1200; }
#idle-box { background: var(--surface); border-radius: 16px; padding: 24px; max-width: 400px; width: 90%; box-shadow: var(--shadow-xl); border-left: 4px solid var(--danger); }
#idle-box h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--text-primary); }
#idle-box p  { font-size: 0.95rem; margin-bottom: 16px; color: var(--text-secondary); line-height: 1.5; }
#idle-actions { display: flex; gap: 8px; justify-content: flex-end; }
.idle-btn { border-radius: 8px; padding: 8px 16px; font-size: 0.9rem; font-weight: 600; border: none; cursor: pointer; transition: all 0.2s ease; }
.idle-btn-primary   { background: linear-gradient(135deg, var(--success), #10B981); color: #fff; }
.idle-btn-secondary { background: var(--surface-alt); color: var(--text-primary); border: 1px solid var(--border); }
.idle-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* DISCOUNT BADGE */
.discount-badge {
  position: absolute; top: 36px; right: 10px;
  background: linear-gradient(135deg, #FF3B30, #C0392B); color: #fff;
  font-size: 0.62rem; font-weight: 900; padding: 4px 9px; border-radius: 6px;
  letter-spacing: 0.1em; z-index: 3; box-shadow: 0 4px 14px rgba(239,68,68,0.55);
  animation: discountBlink 1.4s infinite; text-transform: uppercase;
}
@keyframes discountBlink {
  0%   { box-shadow: 0 0 0 0 rgba(255,59,48,0.7); transform: scale(1); }
  50%  { box-shadow: 0 0 0 8px rgba(255,59,48,0); transform: scale(1.07); }
  100% { box-shadow: 0 0 0 0 rgba(255,59,48,0); transform: scale(1); }
}

/* SECURITY STRIP */
.home-security-strip {
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 60%, #312E81 100%);
  border-radius: 14px; padding: 28px 32px; margin-bottom: 32px; position: relative; overflow: hidden;
}
.home-security-strip::before { content: '🔒'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 80px; opacity: .05; pointer-events: none; }
.hss-title { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.hss-sub   { font-size: 12px; color: #C7D2FE; margin-bottom: 20px; line-height: 1.6; opacity: .85; }
.hss-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.hss-item  { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 12px 14px; display: flex; align-items: flex-start; gap: 10px; transition: background .18s; }
.hss-item:hover { background: rgba(255,255,255,.12); }
.hss-item-ico  { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.hss-item-ttl  { font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.hss-item-desc { font-size: 11px; color: #C7D2FE; line-height: 1.45; opacity: .85; }
.hss-footer { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.hss-warning { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.3); border-left: 3px solid #F59E0B; border-radius: 8px; padding: 10px 14px; font-size: 12px; color: #FDE68A; line-height: 1.5; flex: 1; }
.hss-link { padding: 9px 18px; border-radius: 8px; background: rgba(255,255,255,.1); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; border: 1px solid rgba(255,255,255,.2); transition: background .18s; text-decoration: none; }
.hss-link:hover { background: rgba(255,255,255,.2); }

/* PAID BUNDLES */
.paid-cats-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.cat-section { display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 12px rgba(15,23,42,0.06); }
.cat-section-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 2px solid transparent; background: #F8FAFC; }
.cat-section-header.main-cat  { border-color: #BFDBFE; background: #EFF6FF; }
.cat-section-header.adv-cat   { border-color: #DDD6FE; background: #F5F3FF; }
.cat-section-header.neet-cat  { border-color: #A5F3FC; background: #ECFEFF; }
.cat-title { font-size: 0.92rem; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.cat-title.main-cat  { color: #1D4ED8; }
.cat-title.adv-cat   { color: #5B21B6; }
.cat-title.neet-cat  { color: #0F766E; }
.cat-count { font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,0.07); color: var(--text-secondary); }
.cat-bundles-grid { display: flex; flex-direction: column; gap: 0; padding: 0; }
.cat-bundles-grid .bundle-card-prof { border-radius: 0; border: none; border-bottom: 1px solid #F1F5F9; box-shadow: none; background: #FFFFFF; padding: 12px 14px; }
.cat-bundles-grid .bundle-card-prof:last-child { border-bottom: none; }
.cat-bundles-grid .bundle-card-prof:hover { background: #F8FAFC; transform: none; box-shadow: inset 3px 0 0 #2563EB; }
.cat-bundles-grid .b-thumb { height: 100px; border-radius: 8px; padding: 4px; }
.show-more-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 12px; border: none; border-top: 1px dashed #E5E7EB; background: #F8FAFC; color: var(--text-secondary); font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: all 0.18s ease; letter-spacing: 0.03em; }
.show-more-btn:hover           { color: var(--primary); background: #EFF6FF; }
.show-more-btn.main-more:hover { color: #1D4ED8; background: #EFF6FF; }
.show-more-btn.adv-more:hover  { color: #5B21B6; background: #F5F3FF; }
.show-more-btn.neet-more:hover { color: #0F766E; background: #ECFEFF; }

/* COUNTDOWN */
.bundle-card-prof[data-state="active"] .countdown { display: none; }
.bundle-card-prof[data-state="coming_soon"] .countdown {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; margin-top: 8px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; color: #92400E;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A); border-radius: 999px;
  border: 1px solid #F59E0B; animation: comingSoonBlink 1.6s infinite;
}
.bundle-card-prof[data-state="coming_soon"] .countdown::before { content: "⏳"; font-size: 0.8rem; }
@keyframes comingSoonBlink {
  0%   { box-shadow: 0 0 0 0 rgba(245,158,11,0.6); opacity: 1; }
  50%  { box-shadow: 0 0 0 8px rgba(245,158,11,0); opacity: 0.85; }
  100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); opacity: 1; }
}

/* ══ BOT POSITION — RIGHT SIDE ══ */
.faq-bot-window,
.chatbot-window,
[class*="faq-bot-window"] {
  right: 24px !important;
  left: auto !important;
  bottom: 80px !important;
}
#faq-bot-btn,
.faq-bot-toggle,
.bot-fab,
.chatbot-fab,
#faq-bot-fab {
  right: 24px !important;
  left: auto !important;
  bottom: 24px !important;
}

/* ══════════════════════════════════════════
   RESPONSIVE — FULL MOBILE FIX
══════════════════════════════════════════ */

/* Tablets: 960px - 1200px */
@media(max-width: 1200px) {
  #bundles-list-free, #bundles-list-paid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
  .steps-row { grid-template-columns: 1fr; }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-wrap { padding: 28px 28px 20px; }
}

/* Tablets: upto 960px */
@media(max-width: 960px) {
  .main-app { display: block; }
  .hero-box { grid-template-columns: 1fr; padding: 24px 20px; }
  .main-container { padding: 20px 16px; }
  .b-sidebar-modal { right: 50%; top: 60px; transform: translateX(50%); width: 90vw; }
  .paid-cats-wrapper { grid-template-columns: 1fr; }
  .cat-bundles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .footer-wrap { padding: 24px 20px 18px; }
}

/* Mobile: upto 768px */
@media(max-width: 768px) {
  #bundles-list-free, #bundles-list-paid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-row { grid-template-columns: 1fr; }
  .hero-heading { font-size: 1.45rem; }
  .bundle-card-prof { padding: 14px; }
  .b-thumb { height: 130px; }
  .footer-cta { padding: 24px; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .chip-row { width: 100%; flex-direction: column; }

  .new-topbar { padding: 0 16px !important; height: 56px; }
  .ntb-nav { display: none !important; }
  .ntb-name { font-size: 1rem; }
  .ntb-login, .ntb-signup { border-radius: 10px; }

  .new-hero { grid-template-columns: 1fr !important; min-height: auto !important; }
  .new-hero-left { padding: 36px 20px !important; }
  .new-hero-right { padding: 28px 20px !important; }
  .nh-h1 { font-size: 2rem; }
  .nh-sub { font-size: 0.92rem; }
  .nh-search { max-width: 100%; }
  .nh-cta-row { flex-direction: column; }
  .nh-cta-primary, .nh-cta-secondary { text-align: center; width: 100%; padding: 13px 20px; }

  .new-stats-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 20px 16px !important;
    gap: 10px;
  }
  .nsb-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 10px 0 !important;
  }
  .nsb-item:nth-child(3), .nsb-item:nth-child(4) { border-bottom: none; }
  .nsb-val { font-size: 1.5rem; }
  .nh-stats-grid { grid-template-columns: 1fr 1fr; }
  .nh-stat-big-val { font-size: 2rem; }

  .testi-grid { grid-template-columns: 1fr 1fr !important; }
  .testi-rating-bar { flex-direction: column; gap: 16px; text-align: center; }

  .hss-grid { grid-template-columns: 1fr 1fr !important; }
  .hss-footer { flex-direction: column; }
  .home-security-strip { padding: 20px 16px; }

  .main-container { padding: 16px 12px; }
  .paid-cats-wrapper { grid-template-columns: 1fr !important; gap: 16px; }

  /* Footer mobile */
  .footer-wrap {
    padding: 22px 16px 16px;
    border-radius: 12px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand-sub { max-width: 100%; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }
}

/* Small Mobile: upto 640px */
@media(max-width: 640px) {
  #bundles-list-free, #bundles-list-paid { grid-template-columns: 1fr; }
  .hero-box { padding: 20px; }
  .hero-heading { font-size: 1.35rem; }
  .hero-sub { font-size: 0.95rem; }
  .stat-row { gap: 8px; }
  .stat-block { padding: 8px 12px; font-size: 0.85rem; }
  .b-sidebar-modal { width: 95vw; }
  .paid-cats-wrapper { grid-template-columns: 1fr !important; }
  .cat-bundles-grid { grid-template-columns: 1fr !important; }

  .nh-h1 { font-size: 1.7rem; letter-spacing: -0.02em; }
  .nh-sub { font-size: 0.88rem; }
  .nh-pills { gap: 6px; }
  .nh-pill { font-size: 0.72rem; padding: 5px 10px; }
  .new-stats-bar { grid-template-columns: repeat(2, 1fr) !important; }
  .testi-grid { grid-template-columns: 1fr !important; }
  .hss-grid { grid-template-columns: 1fr !important; }

  .ntb-login, .ntb-signup {
    padding: 7px 12px;
    font-size: 0.8rem;
    border-radius: 8px;
  }

  .b-sidebar-modal { width: 98vw; right: 1vw; top: 10px; transform: none; max-height: 95vh; }

  /* Footer small mobile */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-brand { grid-column: auto; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .footer-bottom-links {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
}

#faq-bot-btn, #faq-bot-fab { right: 24px !important; left: auto !important; }
