/* =============================================
   TJStar Quizzy — Main Stylesheet
   Font: Montserrat | Brand: #4f46e5
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

:root {
  --primary-color: #4f46e5;
  --secondary-color: #818cf8;
  --dark-bg: #0f172a;
  --light-bg: #f8fafc;
  --text-dark: #1e293b;
  --text-light-val: #f1f5f9;
  --white: #ffffff;
  --transition: all 0.3s ease;
  --radius: 12px;
  --border-color: rgba(0,0,0,0.09);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.55;
  color: var(--text-dark);
  background-color: var(--light-bg);
  overflow-x: hidden;
  font-size: 15px;
}

body.light-theme {
  --bg-color: var(--light-bg);
  --text-color: var(--text-dark);
  --header-bg: rgba(255,255,255,0.97);
  --card-bg: var(--white);
  --text-light: #64748b;
  --border-color: rgba(0,0,0,0.09);
}

body.dark-theme {
  --bg-color: var(--dark-bg);
  --text-color: var(--text-light-val);
  --header-bg: rgba(15,23,42,0.97);
  --card-bg: #1e293b;
  --text-light: #94a3b8;
  --border-color: rgba(255,255,255,0.09);
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
main { margin-top: 70px; }

/* ---- Header ---- */
#main-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  z-index: 1000;
  padding: 12px 0;
  box-shadow: 0 1px 12px rgba(0,0,0,0.07);
  transition: var(--transition);
}
#main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo-container a { display: flex; align-items: center; text-decoration: none; color: inherit; gap: 8px; }
.logo { height: 36px; width: auto; }
.logo2 { height: 280px; width: auto; }
body.light-theme .logo-light { display: none; }
body.light-theme .logo-dark { display: block; }
body.dark-theme .logo-light { display: block; }
body.dark-theme .logo-dark { display: none; }
.logo-text { font-weight: 800; font-size: 1.1rem; }
.main-nav ul { display: flex; list-style: none; gap: 18px; align-items: center; }
.main-nav a { text-decoration: none; color: inherit; font-weight: 500; font-size: 0.88rem; transition: var(--transition); }
.main-nav a:hover { color: var(--primary-color); }
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--text-color); cursor: pointer; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 0.88rem;
  transition: var(--transition); cursor: pointer; border: 2px solid transparent;
  font-family: 'Montserrat', sans-serif;
}
.btn-lg { padding: 12px 26px; font-size: 0.95rem; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-primary { background-color: var(--primary-color); color: white !important; }
.btn-primary:hover { background-color: #4338ca; transform: translateY(-1px); }
.btn-outline { border-color: var(--primary-color); color: var(--primary-color) !important; background: transparent; }
.btn-outline:hover { background-color: var(--primary-color); color: white !important; }
.btn-whatsapp { background-color: #25d366; color: white !important; border-color: #25d366; }
.btn-whatsapp:hover { background-color: #1fb855; transform: translateY(-1px); }
.btn-block { width: 100%; justify-content: center; }

/* ---- Section Layout ---- */
.section-padding { padding: 60px 0; }
.bg-subtle { background-color: rgba(79,70,229,0.03); }
body.dark-theme .bg-subtle { background-color: rgba(255,255,255,0.02); }
.section-header { text-align: center; margin-bottom: 36px; }
.section-header h2 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.section-header p { color: var(--text-light); font-size: 0.95rem; }
.section-tag {
  display: inline-block;
  background: rgba(79,70,229,0.1); color: var(--primary-color);
  padding: 4px 14px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  margin-bottom: 10px; text-transform: uppercase;
}

/* ---- Hero ---- */
.hero {
  padding: 80px 0 60px;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at 60% 50%, rgba(79,70,229,0.06) 0%, transparent 70%);
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(79,70,229,0.1); color: var(--primary-color);
  padding: 5px 14px; border-radius: 20px; font-size: 0.78rem; font-weight: 700;
  margin-bottom: 16px; letter-spacing: 0.03em;
}
.hero-content h1 { font-size: 2.8rem; font-weight: 900; line-height: 1.15; margin-bottom: 14px; }
.hero-content p { font-size: 0.97rem; color: var(--text-light); margin-bottom: 24px; max-width: 520px; }
.highlight { color: var(--primary-color); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-stats { display: flex; gap: 28px; }
.hero-stat span { display: block; font-size: 1.6rem; font-weight: 800; color: var(--primary-color); }
.hero-stat small { font-size: 0.76rem; color: var(--text-light); font-weight: 500; }

/* ---- Floating Screenshots ---- */
.hero-visual { position: relative; min-height: 400px; }
.floating-screenshots { position: relative; width: 100%; height: 420px; }
.screenshot-card {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  overflow: hidden;
  transition: transform 0.4s ease;
}
.screenshot-card:hover { transform: translateY(-6px) scale(1.02); }
.screenshot-main { width: 260px; top: 20px; left: 50%; transform: translateX(-50%); z-index: 3; animation: floatMain 4s ease-in-out infinite; }
.screenshot-secondary { width: 175px; z-index: 2; }
.screenshot-tertiary { width: 155px; z-index: 1; }
.screenshot-float-1 { top: 10px; left: 0; animation: floatA 3.5s ease-in-out infinite; }
.screenshot-float-2 { bottom: 30px; left: 10px; animation: floatB 4.2s ease-in-out infinite; }
.screenshot-float-3 { top: 20px; right: 0; animation: floatC 3.8s ease-in-out infinite; }
.screenshot-float-4 { bottom: 20px; right: 5px; animation: floatD 4.5s ease-in-out infinite; }

@keyframes floatMain { 0%,100%{transform:translateX(-50%) translateY(0);} 50%{transform:translateX(-50%) translateY(-10px);} }
@keyframes floatA { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }
@keyframes floatB { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-12px);} }
@keyframes floatC { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-6px);} }
@keyframes floatD { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }

.screenshot-bar { display: flex; gap: 5px; padding: 8px 10px; background: var(--bg-color); border-bottom: 1px solid var(--border-color); }
.screenshot-bar span { width: 8px; height: 8px; border-radius: 50%; background: #e2e8f0; }
.screenshot-bar span:nth-child(1) { background: #fc5c5c; }
.screenshot-bar span:nth-child(2) { background: #fdbc40; }
.screenshot-bar span:nth-child(3) { background: #34c749; }
.screenshot-content { padding: 12px; }
.ss-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ss-icon { width: 30px; height: 30px; background: rgba(79,70,229,0.12); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--primary-color); font-size: 0.85rem; }
.ss-title { font-size: 0.78rem; font-weight: 700; color: var(--text-color); }
.ss-sub { font-size: 0.65rem; color: var(--text-light); }
.ss-stats { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.ss-stat { font-size: 0.68rem; color: var(--text-light); display: flex; align-items: center; gap: 5px; }
.ss-stat i { color: var(--primary-color); width: 12px; }
.ss-btn { background: var(--primary-color); color: white; font-size: 0.65rem; font-weight: 700; padding: 5px 10px; border-radius: 6px; text-align: center; }
.ss-btn-ai { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white; font-size: 0.65rem; font-weight: 700; padding: 5px 10px; border-radius: 6px; text-align: center; }
.ss-input { background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 5px; padding: 4px 8px; font-size: 0.65rem; color: var(--text-light); margin-bottom: 5px; }
.ss-row { display: flex; align-items: center; gap: 6px; font-size: 0.68rem; color: var(--text-light); padding: 4px 0; }
.ss-row i { color: var(--primary-color); width: 12px; }
.ss-score { font-size: 1.4rem; font-weight: 800; color: var(--primary-color); text-align: center; }
.ss-bar { height: 5px; background: var(--border-color); border-radius: 10px; overflow: hidden; margin: 6px 0; }
.ss-bar-fill { height: 100%; background: var(--primary-color); border-radius: 10px; }
.ss-rank { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; padding: 4px 0; color: var(--text-color); }
.rank-num { font-size: 0.6rem; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; background: var(--primary-color); color: white; display: flex; align-items: center; justify-content: center; }
.fa-medal.gold { color: #f59e0b; }
.fa-medal.silver { color: #94a3b8; }
.fa-medal.bronze { color: #cd7c46; }

/* ---- How It Works Steps ---- */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 36px; }
.step-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 28px 22px; position: relative; transition: var(--transition); }
.step-card:hover { border-color: var(--primary-color); transform: translateY(-4px); }
.step-number { font-size: 2.5rem; font-weight: 900; color: rgba(79,70,229,0.1); line-height: 1; margin-bottom: 10px; }
.step-icon { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 10px; }
.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.step-card p { font-size: 0.85rem; color: var(--text-light); }

/* ---- Video ---- */
.video-container {
  position: relative; padding-bottom: 56.25%;
  height: 0; overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ---- Features Grid ---- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--card-bg);
  padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--primary-color); box-shadow: 0 12px 30px rgba(79,70,229,0.1); }
.icon-box { font-size: 1.6rem; color: var(--primary-color); margin-bottom: 14px; }
.feature-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 0.85rem; color: var(--text-light); }

/* ---- App Showcase ---- */
.app-showcase { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; }
.showcase-tabs { display: flex; border-bottom: 1px solid var(--border-color); overflow-x: auto; }
.showcase-tab {
  padding: 12px 20px; font-size: 0.83rem; font-weight: 600;
  background: none; border: none; cursor: pointer;
  color: var(--text-light); white-space: nowrap;
  border-bottom: 2px solid transparent;
  font-family: 'Montserrat', sans-serif;
  transition: var(--transition);
}
.showcase-tab.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }
.showcase-tab:hover { color: var(--primary-color); }
.showcase-panel { display: none; padding: 28px; }
.showcase-panel.active { display: block; }
.showcase-mock { background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; }
.mock-header { padding: 12px 16px; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white; font-size: 0.85rem; font-weight: 600; }
.mock-header em { font-style: normal; opacity: 0.85; font-weight: 400; }
.mock-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mock-stat { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; }
.mock-stat i { color: var(--primary-color); font-size: 1.1rem; width: 20px; }
.mock-stat strong { display: block; font-size: 0.85rem; color: var(--text-color); }
.mock-stat span { font-size: 0.78rem; color: var(--text-light); }
.mock-step { padding: 10px 14px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; font-size: 0.85rem; color: var(--text-light); }
.mock-step.active-step { border-color: var(--primary-color); color: var(--primary-color); font-weight: 600; background: rgba(79,70,229,0.04); }
.mock-enroll { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; font-size: 0.85rem; color: var(--text-color); }
.mock-enroll i { color: var(--primary-color); width: 16px; }
.mock-score { font-size: 2.8rem; font-weight: 900; color: var(--primary-color); text-align: center; padding: 10px 0 4px; }
.mock-bar { height: 8px; background: var(--border-color); border-radius: 10px; overflow: hidden; }
.mock-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); border-radius: 10px; transition: width 1s ease; }
.mock-detail { text-align: center; font-size: 0.8rem; color: var(--text-light); }
.mock-rank { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; font-size: 0.85rem; color: var(--text-color); }
.rank-badge { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: white; }
.rank-1 { background: #f59e0b; }
.rank-2 { background: #94a3b8; }
.rank-3 { background: #cd7c46; }
.mock-caption { padding: 10px 16px; border-top: 1px solid var(--border-color); font-size: 0.78rem; color: var(--text-light); background: var(--card-bg); }

/* ---- Pricing ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.pricing-card {
  background: var(--card-bg); padding: 24px;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  position: relative; border: 1px solid var(--border-color);
  display: flex; flex-direction: column;
  transition: var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(79,70,229,0.1); }
.pricing-card.popular { border: 2px solid var(--primary-color); }
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary-color); color: white;
  padding: 4px 14px; border-radius: 20px; font-size: 0.72rem; font-weight: 700;
}
.plan-header { text-align: center; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); }
.plan-header h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.price { font-size: 1.8rem; font-weight: 900; color: var(--primary-color); }
.price span { font-size: 0.9rem; opacity: 0.7; }
.plan-features { list-style: none; margin-bottom: 20px; flex-grow: 1; }
.plan-features li { margin-bottom: 8px; display: flex; align-items: flex-start; gap: 8px; font-size: 0.84rem; color: var(--text-color); }
.plan-features i { color: var(--primary-color); margin-top: 2px; flex-shrink: 0; }

/* ---- Community CTA ---- */
.community-box {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white; padding: 50px 40px; border-radius: 20px; text-align: center;
}
.community-icon { font-size: 2.5rem; margin-bottom: 14px; }
.community-content h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
.community-content p { margin-bottom: 24px; max-width: 520px; margin-left: auto; margin-right: auto; font-size: 0.95rem; opacity: 0.9; }

/* ---- Footer ---- */
.main-footer { background: #0f172a; color: #94a3b8; padding: 48px 0 16px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-col h3 { color: white; margin-bottom: 14px; font-size: 0.95rem; font-weight: 700; }
.footer-col p { font-size: 0.85rem; line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: inherit; text-decoration: none; font-size: 0.85rem; transition: var(--transition); }
.footer-col a:hover { color: white; }
.social-links { display: flex; gap: 12px; }
.social-links a { font-size: 1.3rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 16px; text-align: center; font-size: 0.82rem; }
.developer-credit a { color: var(--secondary-color); text-decoration: none; }

/* ---- Scroll Animation ---- */
.scroll-animate { opacity: 0; transform: translateY(40px); transition: all 0.7s ease-out; }
.scroll-animate.visible { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ---- Chatbot ---- */
#chatbot-launcher {
  position: fixed; bottom: 20px; right: 20px;
  width: 54px; height: 54px; background: var(--primary-color);
  border-radius: 50%; border: none;
  box-shadow: 0 5px 18px rgba(79,70,229,0.35);
  cursor: pointer; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
#chatbot-launcher:hover { transform: scale(1.1); }
#chatbot-launcher img { width: 28px; height: 28px; }
#chatbot-widget {
  position: fixed; bottom: 84px; right: 20px;
  width: 330px; height: 480px; background: var(--card-bg);
  border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 999; display: flex; flex-direction: column; overflow: hidden;
  transition: var(--transition); transform-origin: bottom right;
}
#chatbot-widget.chatbot-closed { transform: scale(0); opacity: 0; pointer-events: none; }
.chatbot-header { background: var(--primary-color); color: white; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
.chatbot-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.88rem; }
.bot-avatar { width: 28px; height: 28px; border-radius: 50%; padding: 4px; background: rgba(255,255,255,0.2); }
#chatbot-toggle-btn { background: none; border: none; color: white; cursor: pointer; }
.chatbot-body { flex-grow: 1; padding: 14px; overflow-y: auto; background: var(--bg-color); }
.message { margin-bottom: 10px; padding: 9px 13px; border-radius: 10px; max-width: 82%; font-size: 0.85rem; }
.bot-message { background: #e2e8f0; color: #1e293b; border-bottom-left-radius: 2px; }
.user-message { background: var(--primary-color); color: white; margin-left: auto; border-bottom-right-radius: 2px; }
.chatbot-input { padding: 10px; border-top: 1px solid var(--border-color); display: flex; gap: 8px; background: var(--card-bg); }
.chatbot-input input { flex-grow: 1; padding: 7px 12px; border: 1px solid var(--border-color); border-radius: 20px; outline: none; font-family: 'Montserrat', sans-serif; font-size: 0.84rem; background: var(--bg-color); color: var(--text-color); }
#chat-send { background: var(--primary-color); color: white; border: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ---- Auth ---- */
.auth-section { padding: 80px 0; min-height: 80vh; display: flex; align-items: center; justify-content: center; }
.auth-card { background: var(--card-bg); padding: 32px; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,0.09); max-width: 480px; width: 100%; margin: 0 auto; border: 1px solid var(--border-color); }
.auth-card h2 { text-align: center; margin-bottom: 4px; color: var(--primary-color); font-size: 1.4rem; }
.auth-card > p { text-align: center; margin-bottom: 24px; color: var(--text-light); font-size: 0.88rem; }
.auth-form .form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: var(--text-color); font-size: 0.85rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border-color); border-radius: 8px;
  background: var(--bg-color); color: var(--text-color);
  font-family: 'Montserrat', sans-serif; font-size: 0.88rem;
  transition: border-color 0.2s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary-color); }
.form-group textarea { resize: vertical; }
.form-group small { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--text-light); }
.auth-footer { text-align: center; margin-top: 16px; font-size: 0.85rem; }
.auth-footer a { color: var(--primary-color); text-decoration: none; font-weight: 600; }

/* ---- Theme Toggle ---- */
#theme-toggle { background: transparent; border: none; cursor: pointer; font-size: 1.1rem; color: inherit; padding: 7px; border-radius: 8px; transition: var(--transition); }
#theme-toggle:hover { background: rgba(79,70,229,0.1); }

/* ---- Dashboard ---- */
.dashboard-section { padding: 90px 0 48px; }
.dashboard-header { margin-bottom: 20px; }
.dashboard-header h1 { font-size: 1.7rem; font-weight: 800; margin-bottom: 4px; }
.dashboard-header p { font-size: 0.9rem; color: var(--text-light); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--card-bg); padding: 18px; border-radius: var(--radius); border: 1px solid var(--border-color); display: flex; flex-direction: column; align-items: flex-start; transition: transform 0.3s; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.stat-card:hover { transform: translateY(-4px); }
.stat-icon { font-size: 1.6rem; color: var(--primary-color); margin-bottom: 10px; }
.stat-info { flex-grow: 1; }
.stat-info h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 2px; color: var(--text-color); }
.stat-info p { color: var(--text-light); margin-bottom: 12px; font-size: 0.85rem; }
.dashboard-actions h2 { margin-bottom: 14px; font-size: 1.1rem; }
.action-buttons { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.action-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 12px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius); color: var(--text-color); text-decoration: none; transition: all 0.25s; text-align: center; gap: 8px; }
.action-btn:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); }
.action-btn i { font-size: 1.5rem; }
.action-btn span { font-size: 0.82rem; font-weight: 600; }

/* ---- Alerts ---- */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.88rem; }
.alert-danger { background: rgba(239,68,68,0.1); color: #dc2626; border: 1px solid #dc2626; }
.alert-success { background: rgba(34,197,94,0.1); color: #16a34a; border: 1px solid #16a34a; }

/* ---- Notification Bell ---- */
.notification-bell { position: relative; padding: 7px; }
.notification-dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; background: #ef4444; border-radius: 50%; }

/* ---- Quiz Creation ---- */
.create-quiz-section { padding: 90px 0 48px; min-height: 100vh; }
.wizard-container { max-width: 880px; margin: 0 auto; background: var(--card-bg); border-radius: 16px; padding: 28px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.wizard-header h1 { margin-bottom: 24px; text-align: center; font-size: 1.5rem; }
.wizard-steps { display: flex; justify-content: space-between; margin-bottom: 32px; position: relative; }
.wizard-steps::before { content: ""; position: absolute; top: 19px; left: 0; right: 0; height: 2px; background: var(--border-color); z-index: 0; }
.step { display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; z-index: 1; }
.step-num { width: 38px; height: 38px; border-radius: 50%; background: var(--card-bg); border: 2px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; transition: var(--transition); }
.step.active .step-num { background: var(--primary-color); color: white; border-color: var(--primary-color); }
.step-label { font-size: 0.75rem; color: var(--text-light); font-weight: 500; }
.wizard-step { animation: fadeIn 0.4s; }
.wizard-step.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.form-row { margin-bottom: 16px; }
.form-row.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.token-estimate { background: rgba(79,70,229,0.08); padding: 12px 14px; border-radius: 8px; display: flex; align-items: center; gap: 10px; margin: 16px 0; font-size: 0.88rem; }
.token-estimate i { color: var(--primary-color); font-size: 1.1rem; }
.separator { color: var(--border-color); }
.generate-status { text-align: center; padding: 40px 0; }
.spinner { width: 44px; height: 44px; margin: 0 auto 20px; border: 4px solid var(--border-color); border-top-color: var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-bar { width: 100%; height: 7px; background: var(--border-color); border-radius: 10px; overflow: hidden; margin-top: 20px; }
.progress-fill { height: 100%; background: var(--primary-color); width: 0%; animation: progress 3s ease-in-out; }
@keyframes progress { to { width: 100%; } }
.question-card { background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 10px; padding: 14px; margin-bottom: 16px; }
.question-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.question-num { font-weight: 700; color: var(--primary-color); font-size: 0.88rem; }
.btn-icon { background: none; border: none; color: #ef4444; cursor: pointer; padding: 5px; border-radius: 5px; transition: var(--transition); }
.btn-icon:hover { background: rgba(239,68,68,0.1); }
.question-text { width: 100%; padding: 9px 11px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--card-bg); color: var(--text-color); resize: vertical; min-height: 56px; font-family: 'Montserrat', sans-serif; }
.options-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.option-item { display: flex; align-items: center; gap: 8px; }
.option-input { flex: 1; padding: 7px 10px; border: 1px solid var(--border-color); border-radius: 6px; font-family: 'Montserrat', sans-serif; background: var(--card-bg); color: var(--text-color); }

/* ---- Legal Pages ---- */
.legal-page { padding: 90px 0 48px; }
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-header { margin-bottom: 32px; }
.legal-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 6px; }
.last-updated { color: var(--text-light); font-size: 0.85rem; }
.legal-section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border-color); }
.legal-section:last-child { border-bottom: none; }
.legal-section h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--primary-color); }
.legal-section h3 { font-size: 0.95rem; font-weight: 600; margin: 14px 0 6px; }
.legal-section p { font-size: 0.88rem; color: var(--text-color); line-height: 1.7; margin-bottom: 10px; }
.legal-section ul { margin-left: 18px; }
.legal-section ul li { font-size: 0.88rem; color: var(--text-color); margin-bottom: 6px; line-height: 1.6; }

/* ---- Utilities ---- */
.fade-in-up { animation: fadeInUp 0.5s ease-out; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  body { font-size: 14px; }
  .hero { padding: 70px 0 40px; min-height: auto; }
  .hero .container { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .hero-content h1 { font-size: 1.9rem; }
  .hero-content p { font-size: 0.9rem; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .section-padding { padding: 40px 0; }
  .section-header h2 { font-size: 1.5rem; }
  .steps-grid { grid-template-columns: 1fr; gap: 14px; }
  .features-grid { grid-template-columns: 1fr; gap: 14px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
  .pricing-card.popular { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .community-box { padding: 32px 20px; }
  .main-nav {
    position: fixed; top: 60px; left: 0; right: 0;
    background: var(--header-bg);
    padding: 16px 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-100%); opacity: 0;
    transition: all 0.3s ease; pointer-events: none;
  }
  .main-nav.active { transform: translateY(0); opacity: 1; pointer-events: all; }
  .main-nav ul { flex-direction: column; gap: 10px; }
  .main-nav ul li { width: 100%; }
  .main-nav a, .main-nav button { display: block; width: 100%; text-align: left; }
  .mobile-menu-toggle { display: block; }
  #chatbot-widget { width: 92%; right: 4%; }
  .showcase-tabs { flex-wrap: nowrap; }
  .dashboard-section { padding: 80px 0 32px; }
  .stats-grid { grid-template-columns: 1fr; gap: 12px; }
  .form-row.two-cols { grid-template-columns: 1fr; }
}

@media (min-width: 769px) {
  .mobile-menu-toggle { display: none !important; }
  .main-nav { transform: none !important; opacity: 1 !important; pointer-events: all !important; position: static !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; }
  .main-nav ul { flex-direction: row !important; gap: 18px !important; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.6rem; }
  .community-box { padding: 24px 16px; }
  .community-content h2 { font-size: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
}