/* ---------- FONTS ---------- */

@font-face {
  font-family: "Kruti Dev 010";
  src: url("../fonts/KrutiDev010.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* ---------- BASE ---------- */

.font-english {
  font-family: Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 1.15rem;       /* bigger English */
  line-height: 1.9;
}

.font-hindi {
  font-family: "Noto Sans Devanagari", "Mangal", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.35rem;       /* Hindi a bit larger */
  line-height: 2;
}

.font-kruti {
  font-family: "Kruti Dev 010", "Noto Sans Devanagari", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.4rem;        /* Kruti bigger */
  line-height: 2;
}

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

body,
body.home-shell {
  background: radial-gradient(circle at top, #020617 0, #050815 45%, #020617 100%);
  color: #e5e7eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

/* ---------- NAVBAR ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px 10px;
  background: rgba(5, 8, 21, 0.96);
  border-bottom: 1px solid #111827;
  backdrop-filter: blur(10px);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  height: 40px;
}

.brand-name {
  font-weight: 600;
  font-size: 1.2rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 1rem;
}

.nav-right a {
  color: #9ca3af;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav-right a:hover {
  color: #fbbf24;
  border-bottom-color: #fbbf24;
}

.nav-cta {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  background: #fbbf24;
  color: #111827 !important;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- APP SHELL (HOME) ---------- */

.app-shell {
  display: flex;
  min-height: calc(100vh - 56px);
}

/* GPT-like sidebar */

.app-sidebar {
  position: fixed;
  top: 56px;
  left: 0;
  bottom: 0;
  width: 260px;
  background: #020617;
  border-right: 1px solid #111827;
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.8);
  transition: width 0.18s ease-out;
}

.app-main {
  margin-left: 260px;
  flex: 1;
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
}

/* collapsed */

body.sidebar-collapsed .app-sidebar {
  width: 72px;
}

body.sidebar-collapsed .app-main {
  margin-left: 72px;
}

/* Sidebar header */

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 4px;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #111827;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.sidebar-collapse {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #374151;
  background: #020617;
  color: #9ca3af;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Sidebar sections */

.sidebar-section {
  margin-top: 8px;
  padding: 6px 6px 4px;
  border-top: 1px solid #111827;
}

.sidebar-section:first-of-type {
  border-top: none;
}

.sidebar-section-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 4px;
}

/* Primary button */

.sidebar-primary-btn {
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  border: none;
  background: #fbbf24;
  color: #111827;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-primary-btn .s-icon {
  width: 20px;
  text-align: center;
}

/* Links with icons */

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: #e5e7eb;
  padding: 5px 4px;
  border-radius: 6px;
}

.sidebar-link .s-icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.sidebar-link .s-label {
  white-space: nowrap;
}

.sidebar-link:hover {
  background: #111827;
}

/* collapsed: labels hide, icons center */

body.sidebar-collapsed .sidebar-title,
body.sidebar-collapsed .sidebar-section-label,
body.sidebar-collapsed .sidebar-primary-btn .s-label,
body.sidebar-collapsed .sidebar-link .s-label {
  display: none;
}

body.sidebar-collapsed .sidebar-primary-btn,
body.sidebar-collapsed .sidebar-link {
  justify-content: center;
}

/* ---------- HERO (HOME) ---------- */

.hero {
  position: relative;
  padding: 50px 40px 40px;
  overflow: hidden;
}

/* big glow right-top */
.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(circle, #fbbf24 0, transparent 60%);
  opacity: 0.2;
  top: -140px;
  right: -180px;
  filter: blur(2px);
  animation: hero-orbit 26s linear infinite;
}

@keyframes hero-orbit {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-40px, 20px) rotate(90deg);
  }
  100% {
    transform: translate(0, 0) rotate(180deg);
  }
}

/* ==== HOME PAGE: Start Typing / Try Project Books box ==== */

.hero-cta-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid #1f2937;
  margin: 14px auto 8px;
}

.hero-cta-btn {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: #e5e7eb;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.hero-cta-btn-primary {
  background: #fbbf24;
  border-color: #fbbf24;
  color: #111827;
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.45);
}

.hero-cta-btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 26px rgba(251, 191, 36, 0.55);
}

.hero-cta-btn-secondary {
  border-color: #4b5563;
}

.hero-cta-btn-secondary:hover {
  border-color: #fbbf24;
  color: #fbbf24;
}

/* Extra bubbles & shapes */

.hero-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bubble {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, #22d3ee 0, transparent 60%);
  opacity: 0;
  animation: bubblePulse 16s ease-in-out infinite;
}

.b1 {
  top: 10%;
  left: 8%;
  animation-delay: 0s;
}
.b2 {
  top: 65%;
  left: 15%;
  animation-delay: 3s;
}
.b3 {
  top: 30%;
  right: 10%;
  animation-delay: 6s;
}
.b4 {
  bottom: 10%;
  right: 22%;
  animation-delay: 9s;
}

@keyframes bubblePulse {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  20% {
    transform: scale(0.7);
    opacity: 0.2;
  }
  60% {
    transform: scale(1);
    opacity: 0.1;
  }
  100% {
    transform: scale(0.1);
    opacity: 0;
  }
}

/* subtle 3D rectangles */

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15,23,42,0.7), rgba(30,64,175,0.4));
  box-shadow: 0 18px 50px rgba(0,0,0,0.8);
  opacity: 0.18;
}

.shape.s1 {
  width: 260px;
  height: 120px;
  top: 65%;
  right: 8%;
  transform: rotate(-9deg);
}
.shape.s2 {
  width: 230px;
  height: 100px;
  top: 25%;
  left: 16%;
  transform: rotate(7deg);
}

/* Hero content */

.hero-content {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
  z-index: 1;
}

.hero-text {
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 3.4rem;
  line-height: 1.12;
  margin-bottom: 12px;
}

.hero .accent {
  color: #fbbf24;
}

.hero-subtitle {
  color: #9ca3af;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.hero-typing-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hero-typing-cursor {
  display: inline-block;
  width: 8px;
  color: #fbbf24;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.hero-note {
  font-size: 0.9rem;
  color: #6b7280;
}


/* ===== Home page: Start Typing / Project Books box ===== */

.hero-cta-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);       /* dark navy box */
  border: 1px solid #1f2937;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85);
  margin: 16px auto 0;
}

.hero-cta-btn {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-block;
  text-decoration: none;
  white-space: nowrap;
}

.hero-cta-btn-primary {
  background: #fbbf24;
  border-color: #fbbf24;
  color: #111827;
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.5);
}

.hero-cta-btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 26px rgba(251, 191, 36, 0.6);
}

.hero-cta-btn-secondary {
  background: transparent;
  border-color: #4b5563;
  color: #e5e7eb;
}

.hero-cta-btn-secondary:hover {
  border-color: #fbbf24;
  color: #fbbf24;
}

/* Hero CTA buttons (Start typing / Practice with books) */

.hero-btn {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-btn-primary {
  background: #fbbf24;
  border-color: #fbbf24;
  color: #111827;
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.45);
}

.hero-btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 32px rgba(251, 191, 36, 0.55);
}

.hero-btn-secondary {
  background: transparent;
  border-color: #4b5563;
  color: #e5e7eb;
}

.hero-btn-secondary:hover {
  border-color: #fbbf24;
  color: #fbbf24;
}

/* Keyboard wrapper */

.hero-keyboard-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Hero keyboard */

.hero-keyboard {
  background: radial-gradient(circle at top, #111827 0, #020617 60%);
  border-radius: 30px;
  padding: 36px 50px 30px;
  border: 1px solid #1f2937;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  min-width: 420px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  animation: hero-keyboard-float 2s ease-out forwards;
  transform: translateY(22px);
  opacity: 0;
  position: relative;
  overflow: hidden;
}

/* lights layer */

.hero-keyboard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.35), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease-out;
  pointer-events: none;
}

.hero-keyboard.lit::after {
  opacity: 1;
}

.hero-keyboard.lit .kbd-row span {
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
}

/* keyboard float anim */
@keyframes hero-keyboard-float {
  0% {
    transform: translateY(22px);
    opacity: 0;
  }
  60% {
    transform: translateY(-4px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* keyboard light key */

.kbd-light-key {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #4b5563;
  background: #020617;
  color: #e5e7eb;
  font-size: 0.85rem;
  cursor: pointer;
}

/* key rows */

.kbd-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.kbd-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #020617;
  color: #9ca3af;
  border: 1px solid #1f2937;
  font-size: 1rem;
  transition: all 0.1s ease;
}

.kbd-row span:hover {
  border-color: #fbbf24;
  color: #fbbf24;
}

.kbd-row span.kbd-pressed {
  background: #fbbf24;
  color: #111827;
  transform: translateY(1px);
}

.kbd-active {
  background: #fbbf24 !important;
  color: #111827 !important;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.7);
}

.kbd-space {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  width: 60%;
  height: 36px;
  border-radius: 999px;
  background: #020617;
  border: 1px solid #1f2937;
  color: #9ca3af;
  align-items: center;
  margin: 4px auto 0;
  font-size: 0.95rem;
}

/* Hero stats */

.hero-stats {
  max-width: 1000px;
  margin: 40px auto 0;
  display: flex;
  justify-content: center;
  gap: 24px;
  z-index: 1;
  position: relative;
}

.stat-card {
  background: #020617;
  border-radius: 16px;
  padding: 18px 24px;
  border: 1px solid #1f2937;
  min-width: 180px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fbbf24;
}

.stat-label {
  font-size: 0.95rem;
  color: #9ca3af;
}

/* ---------- GENERIC SECTIONS ---------- */

.section {
  padding: 40px 40px;
}

.section-muted {
  background: #020617;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: #9ca3af;
  margin-bottom: 24px;
}

/* Features grid */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.feature-card {
  background: #020617;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #1f2937;
  display: block;
  transition: transform 0.1s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: #fbbf24;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.feature-card h3 {
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Steps */

.steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.step-card {
  background: #050816;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid #1f2937;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #fbbf24;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ---------- FOOTER ---------- */

.footer {
  border-top: 1px solid #111827;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #6b7280;
}

.footer-links {
  display: flex;
  gap: 16px;
}

/* ===== Admin panel layout ===== */

/* ===== ADMIN PAGE: animated wall + clean layout ===== */




@keyframes admin-stripes {
  0% {
    transform: translate3d(0, 40px, 0);
    opacity: 0.25;
  }
  50% {
    transform: translate3d(0, -10px, 0);
    opacity: 0.65;
  }
  100% {
    transform: translate3d(0, 40px, 0);
    opacity: 0.35;
  }
}

.admin-main {
  max-width: 1100px;
  margin: 28px auto 40px;
  padding: 0 16px 32px;
}

/* Sections as cards */
.admin-section {
  margin-top: 20px;
  padding: 16px 18px 16px;
  border-radius: 18px;
  border: 1px solid #1f2937;
  background: rgba(2, 6, 23, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.95);
}

/* Hero section */
.admin-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.admin-section-description {
  font-size: 0.86rem;
  color: #9ca3af;
}

.admin-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.admin-hero-stat {
  min-width: 120px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid #1f2937;
  background: #020617;
  text-align: center;
}

.admin-hero-stat .label {
  font-size: 0.78rem;
  color: #9ca3af;
}
.admin-hero-stat .value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fbbf24;
}

/* Books layout: sidebar + pane */
.admin-books-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
  gap: 18px;
  margin-top: 10px;
}

/* Sidebar */
.admin-books-sidebar {
  background: #020617;
  border-radius: 14px;
  border: 1px solid #1f2937;
  padding: 10px 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.9);
}

.admin-books-sidebar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.admin-books-sidebar-list {
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-book-item {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #111827;
  background: #020617;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
}

.admin-book-item .label {
  font-size: 0.78rem;
  color: #9ca3af;
}

.admin-book-item.active {
  border-color: #fbbf24;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.5);
}

/* Right pane */
.admin-book-pane {
  background: #020617;
  border-radius: 14px;
  border: 1px solid #1f2937;
  padding: 12px 14px 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.9);
}

/* Book meta bar */
.book-meta-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.book-meta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Form card */
.admin-form {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #1f2937;
  background: #050816;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  background: #020617;
  border-radius: 8px;
  border: 1px solid #1f2937;
  padding: 6px 8px;
  color: #e5e7eb;
  font-size: 0.9rem;
}

.admin-form label {
  font-size: 0.85rem;
  color: #9ca3af;
}

.admin-form-actions {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Chapter editor */
.chapter-editor {
  margin-top: 14px;
}

.chapter-fields-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.chapter-editor textarea#chapter-content {
  width: 100%;
  min-height: 220px;
  max-height: 360px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #1f2937;
  background: #050816;
  color: #e5e7eb;
  resize: vertical;
}

/* Chapter list */
.chapter-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.chapter-list-item {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #111827;
  background: #020617;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  cursor: pointer;
}

.chapter-list-item .label {
  font-size: 0.75rem;
  color: #9ca3af;
}

.chapter-list-item.active {
  border-color: #fbbf24;
}

/* Random texts section reuse .admin-columns etc. */
.admin-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.7fr);
  gap: 18px;
  margin-top: 10px;
}

@media (max-width: 960px) {
  .admin-books-layout,
  .admin-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* List cards reuse .books-list > .book-card already defined */

/* ---------- TEST SETUP PAGE ---------- */

body.test-setup {
  background: radial-gradient(circle at top, #040812 0, #020617 40%, #020617 100%);
  color: #e5e7eb;
  position: relative;
  min-height: 100vh;
}

/* BG shapes only for test page */
.ts-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

/* glowing blobs */
.ts-bubble {
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.8) 0, transparent 60%);
  opacity: 0;
  animation: tsBubble 18s ease-in-out infinite;
  filter: blur(1px);
}

.ts-bubble.b1 {
  top: 8%;
  left: 8%;
  animation-delay: 0s;
}
.ts-bubble.b2 {
  top: 60%;
  left: 16%;
  animation-delay: 4s;
}
.ts-bubble.b3 {
  top: 25%;
  right: 14%;
  animation-delay: 8s;
}

/* diagonal glass panels */

.ts-diag {
  position: absolute;
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.85),
    rgba(59, 130, 246, 0.6),
    rgba(15, 23, 42, 0.9)
  );
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.9);
  opacity: 0.18;
}

.ts-diag.d1 {
  width: 280px;
  height: 120px;
  bottom: 10%;
  right: 8%;
  transform: rotate(-9deg);
}
.ts-diag.d2 {
  width: 230px;
  height: 110px;
  top: 22%;
  left: 18%;
  transform: rotate(7deg);
}

@keyframes tsBubble {
  0% {
    transform: scale(0.2) translateY(0);
    opacity: 0;
  }
  20% {
    transform: scale(0.75) translateY(-8px);
    opacity: 0.23;
  }
  60% {
    transform: scale(1) translateY(-18px);
    opacity: 0.13;
  }
  100% {
    transform: scale(0.1) translateY(0);
    opacity: 0;
  }
}

/* Main container */

.test-main {
  max-width: 760px;
  margin: 42px auto 48px;
  padding: 0 20px;
}

/* Top bar: back + books outside card */

.test-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.test-back-btn {
  border-radius: 999px;
  border: 1px solid #374151;
  background: #020617;
  color: #e5e7eb;
  padding: 8px 18px;
  font-size: 0.95rem;
  cursor: pointer;
}

/* Top bar right button: Practice with books (Test setup page) */
.test-link-btn {
  border-radius: 999px;
  border: 1px solid #374151;
  background: transparent;
  color: #e5e7eb;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
}

.test-link-btn:hover {
  border-color: #fbbf24;
  color: #fbbf24;
}

/* Start Test button inside card (Test setup page) */
.test-start-btn {
  border-radius: 999px;
  border: 1px solid #fbbf24;
  background: #fbbf24;
  color: #111827;
  padding: 9px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(251, 191, 36, 0.5);
}

.test-start-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 32px rgba(251, 191, 36, 0.6);
}

/* Right side topbar button (Practice with books) */

.test-link-btn {
  border-radius: 999px;
  border: 1px solid #374151;
  background: transparent;
  color: #e5e7eb;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
}

.test-link-btn:hover {
  border-color: #fbbf24;
  color: #fbbf24;
}

/* Card */

.test-card {
  background: radial-gradient(circle at top left, #020617 0, #020b2f 45%, #020617 100%);
  border-radius: 20px;
  border: 1px solid #1f2937;
  padding: 26px 28px 24px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.95);
}

.test-title {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.test-subtitle {
  font-size: 0.95rem;
  color: #9ca3af;
  margin-bottom: 14px;
}

/* rows */

.test-row {
  margin-top: 16px;
}

.test-row-double {
  display: flex;
  gap: 18px;
}

/* inputs */

.test-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid #1f2937;
  background: #050815;
  color: #e5e7eb;
  font-size: 0.96rem;
}

.test-label,
.control-group span {
  font-size: 0.9rem;
  color: #9ca3af;
}

/* language buttons */

.lang-buttons {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lang-btn {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: #050815;
  color: #e5e7eb;
  font-size: 0.9rem;
  cursor: pointer;
}

.lang-btn.active {
  background: #fbbf24;
  border-color: #fbbf24;
  color: #111827;
}

/* time buttons */

#ts-time-buttons .time-btn {
  padding: 6px 12px;
  font-size: 0.85rem;
}

/* selects */

.test-select {
  width: 100%;
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid #1f2937;
  background: #050815;
  color: #e5e7eb;
  font-size: 0.96rem;
}

/* textarea */

.test-textarea {
  width: 100%;
  min-height: 120px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid #1f2937;
  background: #050815;
  color: #e5e7eb;
  font-size: 0.95rem;
  resize: vertical;
}

/* message */

.test-message {
  margin-top: 10px;
  font-size: 0.86rem;
  color: #9ca3af;
}

/* Test actions inside card (Start test, etc.) */

.test-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.test-primary-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid #fbbf24;
  background: #fbbf24;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(251, 191, 36, 0.55);
}

.test-primary-btn:hover {
  filter: brightness(1.04);
  box-shadow: 0 14px 32px rgba(251, 191, 36, 0.65);
}

.test-secondary-btn {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid #4b5563;
  background: transparent;
  color: #e5e7eb;
  font-size: 0.9rem;
  cursor: pointer;
}

.test-secondary-btn:hover {
  border-color: #fbbf24;
  color: #fbbf24;
}

/* ---------- PRACTICE PAGE (existing functional layout) ---------- */

.practice-container {
  max-width: 1200px;
  margin: 20px auto 40px;
  padding: 0 16px;
}

.practice-card {
  background: #020617;
  border-radius: 18px;
  border: 1px solid #1f2937;
  padding: 20px 22px 18px;
  margin-bottom: 22px;
}

.practice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.practice-title {
  font-size: 1.5rem;
}

/* Practice page clean layout */
.practice-header-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.practice-main-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* Left = typing area, Right = controls */
.practice-left {
  flex: 2 1 60%;
  min-width: 320px;
}

.practice-right {
  flex: 1 1 260px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Start button spacing on right */
.practice-start-btn {
  align-self: flex-start;
}

/* Mobile: stack columns */
@media (max-width: 960px) {
  .practice-main-layout {
    flex-direction: column;
  }
}

/* Courses & lessons */

.course-section-title {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.course-section-subtitle {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 8px;
}

.course-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-top: 10px;
}

.course-level-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.course-level-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: #050815;
  color: #e5e7eb;
  font-size: 0.8rem;
  cursor: pointer;
}

.course-level-btn.active {
  background: #fbbf24;
  border-color: #fbbf24;
  color: #111827;
}

.course-lessons-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.course-card {
  background: #050816;
  border-radius: 12px;
  border: 1px solid #1f2937;
  padding: 10px 12px;
  font-size: 0.9rem;
}

/* Quick practice controls */

.practice-controls-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.85rem;
  color: #9ca3af;
}

.control-group select {
  background: #050815;
  border-radius: 8px;
  border: 1px solid #1f2937;
  color: #e5e7eb;
  font-size: 0.9rem;
  padding: 6px 8px;
}

/* Time & backspace */

.time-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.time-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.time-btn {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: #050815;
  color: #e5e7eb;
  font-size: 0.8rem;
  cursor: pointer;
}

.time-btn.active {
  background: #fbbf24;
  border-color: #fbbf24;
  color: #111827;
}

/* Typing panel */

.typing-panel {
  margin-top: 10px;
  background: #050816;
  border-radius: 12px;
  border: 1px solid #1f2937;
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.typing-stats-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 6px;
}

.typing-container {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.typing-text {
  flex: 1;
  padding: 10px;
  background: #020617;
  border-radius: 8px;
  border: 1px solid #1f2937;
  min-height: 200px;
  max-height: 260px;
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-y: auto;
}

#typing-input {
  flex: 1;
  padding: 10px;
  background: #020617;
  border-radius: 8px;
  border: 1px solid #1f2937;
  min-height: 200px;
  max-height: 260px;
  color: #e5e7eb;
  resize: vertical;
  overflow-y: auto;
}

.typing-stats-bottom {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 0.85rem;
}

/* ---------- AUTH PAGE ---------- */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 16px;
}

.auth-card {
  background: #020617;
  padding: 24px 26px;
  border-radius: 18px;
  border: 1px solid #1f2937;
  max-width: 420px;
  width: 100%;
  text-align: left;
}

.auth-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.auth-title {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 12px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.auth-tab {
  flex: 1;
  padding: 6px 0;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: #050816;
  color: #9ca3af;
  font-size: 0.85rem;
  cursor: pointer;
}

.auth-tab.active {
  background: #fbbf24;
  color: #111827;
  border-color: #fbbf24;
}

.auth-card label {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 2px;
}

.auth-card input {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 8px;
  border-radius: 8px;
  border: 1px solid #1f2937;
  background: #050816;
  color: #e5e7eb;
  font-size: 0.9rem;
}

/* Password row */

.password-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.password-row input {
  flex: 1;
  margin-bottom: 0;
}

.password-toggle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #374151;
  background: #020617;
  color: #9ca3af;
  font-size: 0.9rem;
  cursor: pointer;
}

.auth-footer-text {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #6b7280;
}

.auth-error {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #fca5a5;
}

.link-button {
  margin-top: 6px;
  background: none;
  border: none;
  color: #fbbf24;
  font-size: 0.8rem;
  padding: 0;
  cursor: pointer;
}


/* ===== AUTH / LOGIN PAGE ===== */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #020617 100%);
  color: #e5e7eb;
}

/* Main shell with 2 columns: left hero, right form */
.auth-shell {
  max-width: 1120px;
  margin: 32px auto 40px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 24px;
}

/* LEFT COLUMN */

.auth-left {
  display: flex;
  align-items: stretch;
}

.auth-left-card {
  flex: 1;
  background: radial-gradient(circle at top left, #020617 0, #020617 45%, #020617 100%);
  border-radius: 24px;
  border: 1px solid #1f2937;
  padding: 20px 22px 18px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

/* subtle animated stripes behind (left panel) */
.auth-left-card::before {
  content: "";
  position: absolute;
  inset: -60px;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    120deg,
    rgba(148, 163, 184, 0.18) 0,
    rgba(148, 163, 184, 0.18) 2px,
    transparent 2px,
    transparent 14px
  );
  opacity: 0.25;
  animation: auth-stripes 22s linear infinite alternate;
}

@keyframes auth-stripes {
  0% {
    transform: translate3d(0, 30px, 0);
    opacity: 0.15;
  }
  50% {
    transform: translate3d(0, -10px, 0);
    opacity: 0.35;
  }
  100% {
    transform: translate3d(0, 30px, 0);
    opacity: 0.15;
  }
}

.auth-left-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  font-size: 0.78rem;
  border: 1px solid rgba(251, 191, 36, 0.4);
  position: relative;
  z-index: 1;
}

.auth-left-title {
  font-size: 2.3rem;
  line-height: 1.2;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.auth-left-title .accent {
  color: #fbbf24;
}

.auth-left-subtitle {
  font-size: 0.95rem;
  color: #9ca3af;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.auth-left-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
  color: #d1d5db;
  position: relative;
  z-index: 1;
}

.auth-left-list li::before {
  content: "✔";
  margin-right: 6px;
  color: #22c55e;
}

/* Media / video area */
.auth-media {
  margin-top: auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #1f2937;
  background: radial-gradient(circle at top, #020617 0, #020617 60%, #020617 100%);
  position: relative;
  z-index: 1;
}

.auth-media-placeholder {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.85rem;
}

.auth-media video,
.auth-media img {
  width: 100%;
  display: block;
}

/* RIGHT COLUMN */

.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: #020617;
  padding: 22px 22px 20px;
  border-radius: 20px;
  border: 1px solid #1f2937;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95);
}

.auth-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.auth-title {
  font-size: 1.7rem;
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 12px;
}

/* Tabs */
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.auth-tab {
  flex: 1;
  padding: 6px 0;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: #050816;
  color: #9ca3af;
  font-size: 0.85rem;
  cursor: pointer;
}

.auth-tab.active {
  background: #fbbf24;
  color: #111827;
  border-color: #fbbf24;
}

/* Inputs */
.auth-card label {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 2px;
  display: block;
}

.auth-card input {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 8px;
  border-radius: 8px;
  border: 1px solid #1f2937;
  background: #050816;
  color: #e5e7eb;
  font-size: 0.9rem;
}

/* field row (label + forgot) */
.auth-field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.auth-link-inline {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  color: #fbbf24;
  cursor: pointer;
}

/* Password */
.password-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.password-row input {
  flex: 1;
  margin-bottom: 0;
}

.password-toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #374151;
  background: #020617;
  color: #9ca3af;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Remember */
.auth-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 6px;
  margin-bottom: 4px;
}

.auth-remember input {
  width: auto;
  margin-bottom: 0;
}

/* Main button */
.auth-main-btn {
  margin-top: 8px;
}

.auth-footer-text {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #6b7280;
}

.auth-footer-text-small {
  margin-top: 8px;
  font-size: 0.78rem;
  color: #6b7280;
}

/* Errors */
.auth-error {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #fca5a5;
}

.link-button {
  margin-top: 6px;
  background: none;
  border: none;
  color: #fbbf24;
  font-size: 0.8rem;
  padding: 0;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 960px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 20px;
  }

  .auth-left-card {
    border-radius: 18px;
    padding: 16px 14px 14px;
  }

  .auth-right {
    margin-top: 18px;
  }
}

/* ---------- BOOKS/ADMIN WARNINGS ---------- */

.warning {
  padding: 10px 16px;
  background: #7f1d1d;
  color: #fecaca;
  border-radius: 6px;
  margin-top: 12px;
}

.page-container {
  max-width: 900px;
  margin: 30px auto 40px;
  padding: 0 16px;
}

.books-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.book-card {
  background: #020617;
  border-radius: 12px;
  border: 1px solid #1f2937;
  padding: 14px;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 960px) {
  .app-sidebar {
    display: none;
  }
  .app-main {
    margin-left: 0;
  }

  .hero {
    padding: 30px 16px 24px;
  }

  .hero-content {
    gap: 20px;
  }

  .section {
    padding: 24px 16px;
  }

  .test-main {
    max-width: 100%;
    margin: 30px auto 40px;
    padding: 0 16px;
  }
}

@media (max-width: 640px) {
  .hero-keyboard {
    min-width: 0;
    padding: 26px 16px 20px;
  }

  .kbd-row span {
    width: 40px;
    height: 40px;
  }

  .navbar {
    padding: 10px 16px;
  }
}
/* ===== Practice page improved layout ===== */

/* Top header: back + title */
.practice-header-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

/* 2-column layout (left = typing, right = controls) */
.practice-main-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.practice-left {
  flex: 2 1 60%;
  min-width: 320px;
}

.practice-right {
  flex: 1 1 260px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Typing panel: passage + input stacked */
.practice-page .typing-panel .typing-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}


 .practice-page .typing-text {
  min-height: 220px;
  max-height: 220px;
  overflow-y: auto;
  padding: 16px 18px;
  background: #020617;
  border-radius: 12px;
  border: 1px solid #1f2937;
  font-size: 1.16rem;
  line-height: 2;
}

/* ===== PRACTICE PAGE: dark wall + big clear boxes ===== */

body.practice-page {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(circle at top, #020617 0, #020617 50%, #020617 100%);
  color: #e5e7eb;
  overflow-x: hidden;
}

/* back button sticky under navbar */
.practice-back-row {
  position: sticky;
  top: 60px;
  z-index: 40;
  max-width: 1200px;
  margin: 6px auto;
  padding: 0 16px;
}

/* font families */
.font-english {
  font-family: Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 1.15rem;       /* bigger English */
  line-height: 1.9;
}

.font-hindi {
  font-family: "Noto Sans Devanagari", "Mangal", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.35rem;       /* Hindi a bit larger */
  line-height: 2;
}

.font-kruti {
  font-family: "Kruti Dev 010", "Noto Sans Devanagari", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.4rem;        /* Kruti bigger */
  line-height: 2;
}

/* container */
.practice-container {
  max-width: 1200px;
  margin: 24px auto 40px;
  padding: 0 16px;
}

.practice-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* main layout */
.practice-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 18px;
}

/* left pane */
.practice-left {
  min-width: 360px;
}

/* right pane */
.practice-right {
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* typing panel */
.practice-page .typing-panel {
  background: radial-gradient(circle at top left, #020617 0, #020617 45%, #0b1220 100%);
  border-radius: 18px;
  border: 1px solid #1f2937;
  padding: 14px 14px 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.9);
}

/* stacked boxes */
.practice-page .typing-panel .typing-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* passage box (fixed height) */
.practice-page .typing-text {
  min-height: 220px;
  max-height: 220px;
  overflow-y: auto;
  padding: 14px 16px;
  background: #020617;
  border-radius: 12px;
  border: 1px solid #1f2937;
}

/* typing box (same height) */
.practice-page #typing-input.typing-input-large {
  min-height: 220px;
  max-height: 220px;
  overflow-y: auto;
  padding: 12px 14px;
  background: #020617;
  border-radius: 12px;
  border: 1px solid #1f2937;
  color: #e5e7eb;
  resize: vertical;
}

/* stats row */
.practice-restart-btn {
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid #4b5563;
  background: #020617;
  color: #e5e7eb;
  padding: 6px 16px;
  font-size: 0.85rem;
}
.practice-restart-btn:hover {
  border-color: #fbbf24;
  color: #fbbf24;
}

/* keyboard panel */
.practice-page .practice-keyboard {
  background: radial-gradient(circle at top, #020617 0, #020617 60%, #020617 100%);
  border-radius: 14px;
  border: 1px solid #1f2937;
  margin-top: 12px;
  padding: 10px 12px 12px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.75);
}

.practice-page .kbd-row-sm {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.practice-page .kbd-row-sm span,
.practice-page .kbd-space-sm span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 34px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  background: linear-gradient(145deg, #111827, #020617);
  border: 1px solid #1f2937;
  box-shadow: 0 2px 0 #020617;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.practice-page .kbd-key-wide {
  min-width: 60px;
}

.practice-page .kbd-space-sm {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

/* keyboard highlight */
.kbd-next {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.6);
}
.kbd-correct {
  background: linear-gradient(145deg, #16a34a, #166534);
  border-color: #16a34a;
  color: #ecfdf5;
}
.kbd-error {
  background: linear-gradient(145deg, #b91c1c, #7f1d1d);
  border-color: #b91c1c;
  color: #fee2e2;
}

/* passage highlight per char */
.practice-page .typing-text .tt-char {
  white-space: pre-wrap;
}
.practice-page .typing-text .tt-correct {
  color: #93c5fd;
}
.practice-page .typing-text .tt-error {
  background: rgba(185, 28, 28, 0.35);
  color: #fecaca;
}
.practice-page .typing-text .tt-active {
  background: #fbbf24;
  color: #111827;
}

/* right side cards */
.practice-timer-panel,
.practice-right .practice-controls-top,
.practice-right .time-mode-row,
.practice-right .practice-custom-wrap,
.practice-right .practice-tips,
.practice-right .practice-options-row {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 14px;
  border: 1px solid #1f2937;
  padding: 10px 12px;
}

/* stopwatch */
.practice-timer-panel {
  box-shadow: 0 16px 40px rgba(0,0,0,0.95);
}

/* responsive */
@media (max-width: 960px) {
  .practice-main-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Main two-column layout */
.practice-main-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.practice-left {
  flex: 3 1 68%;
  min-width: 360px;
}

.practice-right {
  flex: 1 1 260px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Typing panel: dark glass board */
.practice-page .typing-panel {
  background: radial-gradient(circle at top left, #020617 0, #020617 50%, #0b1220 100%);
  border-radius: 18px;
  border: 1px solid #1f2937;
  padding: 16px 16px 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
}

/* Passage + input stacked */
.practice-page .typing-panel .typing-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Passage display (कम से कम ~5 lines) */
.practice-page .typing-text {
  min-height: 220px;
  max-height: 360px;
  overflow-y: auto;
  padding: 16px 18px;
  background: #020617;
  border-radius: 12px;
  border: 1px solid #1f2937;
  font-size: 1.16rem;
  line-height: 2;
}

/* Typing box (कम से कम ~5 lines) */
.practice-page #typing-input.typing-input-large {
  min-height: 180px;
  max-height: 320px;
  padding: 14px 16px;
  background: #020617;
  border-radius: 12px;
  border: 1px solid #1f2937;
  font-size: 1.16rem;
  line-height: 2;
  resize: vertical;
  color: #e5e7eb;
}

/* Stopwatch panel on right */
.practice-timer-panel {
  background: radial-gradient(circle at top, #020617 0, #020617 50%, #0b1120 100%);
  color: #e5e7eb;
  border-radius: 16px;
  padding: 10px 12px 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95);
  border: 1px solid #1f2937;
}

.practice-timer-name {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.practice-timer-name span {
  font-weight: 600;
}

.practice-timer-box {
  margin-top: 4px;
  background: #020617;
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
  border: 1px solid #374151;
}

.practice-timer-label {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 2px;
}

.practice-timer-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fbbf24;
}

/* Right side cards */
.practice-right .practice-controls-top,
.practice-right .time-mode-row,
.practice-right .practice-custom-wrap,
.practice-right .practice-tips,
.practice-right .practice-options-row {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 14px;
  border: 1px solid #1f2937;
  padding: 10px 12px;
}

/* Time row label */
.practice-page .time-mode-row > span {
  font-size: 0.86rem;
  color: #9ca3af;
  min-width: 40px;
}

/* Keyboard background + realistic keys */
.practice-page .practice-keyboard {
  background: radial-gradient(circle at top, #020617 0, #020617 60%, #020617 100%);
  border-radius: 14px;
  border: 1px solid #1f2937;
  margin-top: 12px;
  padding: 10px 12px 12px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.75);
}

.practice-page .kbd-row-sm {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.practice-page .kbd-row-sm span,
.practice-page .kbd-space-sm span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 34px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  background: linear-gradient(145deg, #111827, #020617);
  border: 1px solid #1f2937;
  box-shadow: 0 2px 0 #020617;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.practice-page .kbd-key-wide {
  min-width: 60px;
}

.practice-page .kbd-space-sm {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

/* Keyboard highlight states */
.kbd-next {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.6);
}

.kbd-correct {
  background: linear-gradient(145deg, #16a34a, #166534);
  border-color: #16a34a;
  color: #ecfdf5;
}

.kbd-error {
  background: linear-gradient(145deg, #b91c1c, #7f1d1d);
  border-color: #b91c1c;
  color: #fee2e2;
}

/* Typing text highlight */
.practice-page .typing-text .tt-char {
  white-space: pre-wrap;
}

.practice-page .typing-text .tt-correct {
  color: #93c5fd;
}

.practice-page .typing-text .tt-error {
  background: rgba(185, 28, 28, 0.35);
  color: #fecaca;
}

.practice-page .typing-text .tt-active {
  background: #fbbf24;
  color: #111827;
}

/* Mobile: stack columns */
@media (max-width: 960px) {
  .practice-main-layout {
    flex-direction: column;
  }
}

.practice-restart-btn {
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid #4b5563;
  background: #020617;
  color: #e5e7eb;
  padding: 6px 14px;
  font-size: 0.85rem;
}
.practice-restart-btn:hover {
  border-color: #fbbf24;
  color: #fbbf24;
}

/* ===== ADMIN PAGE: advanced background + layout ===== */

/* ===== ADMIN PAGE: animated wall + clean layout ===== */

body.admin-page {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(circle at top, #020617 0, #020617 55%, #020617 100%);
  color: #e5e7eb;
  overflow-x: hidden;
}

/* moving stripes */
body.admin-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(circle at -10% 0%, rgba(59, 130, 246, 0.4), transparent 60%),
    radial-gradient(circle at 110% 100%, rgba(251, 191, 36, 0.35), transparent 60%);
}

body.admin-page::after {
  content: "";
  position: fixed;
  inset: -80px 0 0 0;
  pointer-events: none;
  z-index: -1;
  background-image: repeating-linear-gradient(
    120deg,
    rgba(148, 163, 184, 0.18) 0,
    rgba(148, 163, 184, 0.18) 2px,
    transparent 2px,
    transparent 14px
  );
  opacity: 0.6;
  animation: admin-stripes 24s linear infinite alternate;
}

@keyframes admin-stripes {
  0% {
    transform: translate3d(0, 40px, 0);
    opacity: 0.25;
  }
  50% {
    transform: translate3d(0, -10px, 0);
    opacity: 0.65;
  }
  100% {
    transform: translate3d(0, 40px, 0);
    opacity: 0.35;
  }
}

.admin-main {
  max-width: 1100px;
  margin: 28px auto 40px;
  padding: 0 16px 32px;
}

/* Sections as cards */
.admin-section {
  margin-top: 20px;
  padding: 16px 18px 16px;
  border-radius: 18px;
  border: 1px solid #1f2937;
  background: rgba(2, 6, 23, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.95);
}

.admin-section-description {
  font-size: 0.86rem;
  color: #9ca3af;
}

/* Hero */
.admin-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.admin-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.admin-hero-stat {
  min-width: 120px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid #1f2937;
  background: #020617;
  text-align: center;
}

.admin-hero-stat .label {
  font-size: 0.78rem;
  color: #9ca3af;
}
.admin-hero-stat .value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fbbf24;
}

/* Books layout */
.admin-books-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
  gap: 18px;
  margin-top: 10px;
}

/* Sidebar */
.admin-books-sidebar {
  background: #020617;
  border-radius: 14px;
  border: 1px solid #1f2937;
  padding: 10px 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.9);
}

.admin-books-sidebar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.admin-books-sidebar-list {
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-book-item {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #111827;
  background: #020617;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
}

.admin-book-item .label {
  font-size: 0.78rem;
  color: #9ca3af;
}

.admin-book-item.active {
  border-color: #fbbf24;
  box-shadow: 0 0 0 1px rgba(251,191,36,0.5);
}

/* Right pane */
.admin-book-pane {
  background: #020617;
  border-radius: 14px;
  border: 1px solid #1f2937;
  padding: 12px 14px 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.9);
}

/* Book meta */
.book-meta-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.book-meta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Generic form */
.admin-form {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #1f2937;
  background: #050816;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  background: #020617;
  border-radius: 8px;
  border: 1px solid #1f2937;
  padding: 6px 8px;
  color: #e5e7eb;
  font-size: 0.9rem;
}

.admin-form label {
  font-size: 0.85rem;
  color: #9ca3af;
}

.admin-form-actions {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Chapter editor */
.chapter-editor {
  margin-top: 14px;
}

.chapter-fields-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.chapter-editor textarea#chapter-content {
  width: 100%;
  min-height: 220px;
  max-height: 360px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #1f2937;
  background: #050816;
  color: #e5e7eb;
  resize: vertical;
}

/* Chapter list */
.chapter-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.chapter-list-item {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #111827;
  background: #020617;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  cursor: pointer;
}

.chapter-list-item .label {
  font-size: 0.75rem;
  color: #9ca3af;
}

.chapter-list-item.active {
  border-color: #fbbf24;
}

.admin-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.7fr);
  gap: 18px;
  margin-top: 10px;
}

@media (max-width: 960px) {
  .admin-books-layout,
  .admin-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Reuse books-list + book-card for lists (already defined elsewhere) */

@media (max-width: 960px) {
  .admin-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== GLOBAL BUTTON STYLE ( पूरे app ke liye ) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn.primary {
  background: #fbbf24;
  border-color: #fbbf24;
  color: #111827;
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.45);
}

.btn.primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 32px rgba(251, 191, 36, 0.55);
}

.btn.secondary {
  background: transparent;
  border-color: #4b5563;
  color: #e5e7eb;
}

.btn.secondary:hover {
  border-color: #fbbf24;
  color: #fbbf24;
}

.btn.small {
  padding: 5px 12px;
  font-size: 0.8rem;
}

.btn.full {
  width: 100%;
}

/* ===== AUTH / LOGIN PAGE ===== */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  color: #e5e7eb;
  overflow: hidden;
}

/* Background video full-screen */
.auth-bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

/* Dark overlay for readability */
.auth-bg-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
  z-index: -2;
}

/* Main shell with 2 columns */
.auth-shell {
  max-width: 1120px;
  margin: 32px auto 40px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 24px;
}

/* LEFT COLUMN */

.auth-left {
  display: flex;
  align-items: stretch;
}

.auth-left-card {
  flex: 1;
  background: radial-gradient(circle at top left, #020617 0, #020617 45%, #020617 100%);
  border-radius: 24px;
  border: 1px solid #1f2937;
  padding: 20px 22px 18px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

/* animated lines */
.auth-left-card::before {
  content: "";
  position: absolute;
  inset: -60px;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    120deg,
    rgba(148, 163, 184, 0.18) 0,
    rgba(148, 163, 184, 0.18) 2px,
    transparent 2px,
    transparent 14px
  );
  opacity: 0.2;
  animation: auth-stripes 22s linear infinite alternate;
}

@keyframes auth-stripes {
  0% {
    transform: translate3d(0, 30px, 0);
    opacity: 0.1;
  }
  50% {
    transform: translate3d(0, -12px, 0);
    opacity: 0.4;
  }
  100% {
    transform: translate3d(0, 30px, 0);
    opacity: 0.1;
  }
}

.auth-left-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  font-size: 0.78rem;
  border: 1px solid rgba(251, 191, 36, 0.4);
  position: relative;
  z-index: 1;
}

.auth-left-title {
  font-size: 2.3rem;
  line-height: 1.2;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.auth-left-title .accent {
  color: #fbbf24;
}

.auth-left-subtitle {
  font-size: 0.95rem;
  color: #9ca3af;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.auth-left-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
  color: #d1d5db;
  position: relative;
  z-index: 1;
}

.auth-left-list li::before {
  content: "✔";
  margin-right: 6px;
  color: #22c55e;
}

/* Media / video */
.auth-media {
  margin-top: auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #1f2937;
  background: radial-gradient(circle at top, #020617 0, #020617 60%, #020617 100%);
  position: relative;
  z-index: 1;
}

.auth-media video,
.auth-media img {
  width: 100%;
  display: block;
}

/* RIGHT COLUMN */

.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: #020617;
  padding: 22px 22px 20px;
  border-radius: 20px;
  border: 1px solid #1f2937;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95);
}

.auth-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.auth-title {
  font-size: 1.7rem;
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 12px;
}

/* Already logged in actions */
.auth-already-actions {
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Tabs */
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.auth-tab {
  flex: 1;
  padding: 6px 0;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: #050816;
  color: #9ca3af;
  font-size: 0.85rem;
  cursor: pointer;
}

.auth-tab.active {
  background: #fbbf24;
  color: #111827;
  border-color: #fbbf24;
}

/* Inputs */
.auth-card label {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 2px;
  display: block;
}

.auth-card input {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 8px;
  border-radius: 8px;
  border: 1px solid #1f2937;
  background: #050816;
  color: #e5e7eb;
  font-size: 0.9rem;
}

/* field row (label + forgot) */
.auth-field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.auth-link-inline {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  color: #fbbf24;
  cursor: pointer;
}

/* Password */
.password-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.password-row input {
  flex: 1;
  margin-bottom: 0;
}

.password-toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #374151;
  background: #020617;
  color: #9ca3af;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Remember */
.auth-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 6px;
  margin-bottom: 4px;
}

.auth-remember input {
  width: auto;
  margin-bottom: 0;
}

/* Main button */
.auth-main-btn {
  margin-top: 8px;
}

.auth-footer-text {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #6b7280;
}

.auth-footer-text-small {
  margin-top: 8px;
  font-size: 0.78rem;
  color: #6b7280;
}

/* Errors */
.auth-error {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #fca5a5;
}

/* Responsive */
@media (max-width: 960px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 20px;
  }

  .auth-left-card {
    border-radius: 18px;
    padding: 16px 14px 14px;
  }

  .auth-right {
    margin-top: 18px;
  }
}

/* ===== STENO EXAM VIEW PAGE ===== */

body.steno-page {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(circle at top, #4b5563 0, #111827 40%, #020617 100%);
  color: #e5e7eb;
  overflow-x: hidden;
}

/* subtle white lines jaise wall par stripes */
body.steno-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image: repeating-linear-gradient(
    130deg,
    rgba(249, 250, 251, 0.16) 0,
    rgba(249, 250, 251, 0.16) 1px,
    transparent 1px,
    transparent 14px
  );
  opacity: 0.4;
}

/* soft vignette */
body.steno-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgba(148, 163, 184, 0.3), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(37, 99, 235, 0.35), transparent 55%);
  mix-blend-mode: soft-light;
}

.steno-main {
  max-width: 1120px;
  margin: 28px auto 40px;
  padding: 0 16px 32px;
}

/* central card like big panel */
.steno-card {
  border-radius: 22px;
  border: 1px solid #1f2937;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.95);
  padding: 16px 18px 18px;
}

/* layout: left editor + right panel */
.steno-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 18px;
}

/* left editor */
.steno-editor-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.steno-editor-header {
  font-size: 0.85rem;
  color: #9ca3af;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #1f2937;
}

/* big textarea */
.steno-textarea {
  width: 100%;
  min-height: 420px;
  max-height: 420px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #1f2937;
  background: rgba(17, 24, 39, 0.96);
  color: #e5e7eb;
  resize: vertical;
  outline: none;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.8);
}

/* right panel */
.steno-panel {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 16px;
  border: 1px solid #1f2937;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.9);
}

.steno-panel-title {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.steno-panel-sub {
  font-size: 0.86rem;
  color: #9ca3af;
  margin-bottom: 4px;
}

/* lock rows */
.steno-lock-row {
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid #1f2937;
  background: #020617;
  font-size: 0.85rem;
  color: #e5e7eb;
}

/* preview box */
.steno-preview {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #1f2937;
  background: #020617;
  min-height: 60px;
}

/* reuse control-group from practice/test pages */
.steno-panel .control-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.86rem;
  color: #9ca3af;
}

/* mobile */
@media (max-width: 960px) {
  .steno-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .steno-textarea {
    min-height: 320px;
    max-height: 320px;
  }
}
/* ===== FEEDBACK WIDGET ===== */

/* ===== FEEDBACK WIDGET ===== */

.feedback-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  border-radius: 999px;
  border: 1px solid #4b5563;
  background: #020617;
  color: #e5e7eb;
  padding: 8px 12px;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.8);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feedback-fab:hover {
  border-color: #fbbf24;
  color: #fbbf24;
}

.feedback-fab-label {
  font-size: 0.8rem;
}

/* Panel */
.feedback-panel {
  position: fixed;
  right: 16px;
  bottom: 72px;
  width: 280px;
  max-width: 80vw;
  border-radius: 16px;
  border: 1px solid #1f2937;
  background: #020617;
  box-shadow: 0 18px 40px rgba(0,0,0,0.95);
  z-index: 9999;
  overflow: hidden;
}

.feedback-hidden {
  display: none;
}

.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: #030712;
  border-bottom: 1px solid #1f2937;
  font-size: 0.86rem;
}

.feedback-close-btn {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 1rem;
  cursor: pointer;
}

.feedback-body {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feedback-body label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8rem;
  color: #9ca3af;
}

.feedback-body input,
.feedback-body textarea {
  background: #050816;
  border-radius: 8px;
  border: 1px solid #1f2937;
  padding: 6px 8px;
  color: #e5e7eb;
  font-size: 0.85rem;
}

.feedback-status {
  font-size: 0.78rem;
  margin-top: 2px;
}
/* ===== Login page scroll fixes ===== */

/* Body ko scroll allow karo */
body.auth-page {
  overflow-y: auto;
}

/* Auth card agar screen se lamba ho to andar scroll ho sake */
.auth-card {
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}
/* ===== Login page demo video resize ===== */

/* Card ke andar wali media ko fixed chhota height de do */
.auth-media {
  margin-top: 16px;          /* thoda gap */
  height: 160px;             /* yaha apni marzi se change kar sakte ho, 120–200 px ok */
  border-radius: 16px;
  overflow: hidden;
}

/* Video ko container ke andar fit karo */
.auth-media video,
.auth-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* zoom/clip karke nicely fill karega */
  display: block;
}
/* ===========================
   BOOK PAGE – PLANS + UPI MODAL
   =========================== */

.subscription-section {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #1f2937;
}

.subscription-section h2 {
  margin-bottom: 4px;
}

.sub-status {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 6px;
}

/* Latest pending payment request line */
#pending-request-status {
  font-size: 0.82rem;
  color: #fbbf24;
  margin-bottom: 10px;
}

/* Plan cards grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.plan-card {
  border-radius: 12px;
  border: 1px solid #1f2937;
  background: #020617;
  padding: 12px 14px;
}

.plan-card.highlight {
  border-color: #4f46e5;
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.6);
}

.plan-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.plan-price {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.plan-tagline {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 6px;
}

.plan-card ul {
  margin-left: 18px;
  margin-top: 4px;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Subscribe buttons */
.plan-btn {
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #4f46e5;
  background: #1d1b3f;
  color: #e5e7eb;
  font-size: 0.85rem;
  cursor: pointer;
}

.plan-btn.secondary {
  border-color: #374151;
  background: transparent;
}

/* Small note under plans */
.sub-note {
  font-size: 0.82rem;
  color: #9ca3af;
}

/* UPI payment request modal (reuses .modal + .modal-content from existing CSS) */
.plan-modal-content {
  max-width: 420px;
}

/* UPI info box inside modal */
.upi-box {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 10px;
}

.upi-qr {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #1f2937;
  background: #020617;
  display: block;
  margin: 6px 0 10px;
}

/* Form fields in payment modal */
.pr-field {
  margin-top: 8px;
}

.pr-field label {
  font-size: 0.85rem;
  color: #9ca3af;
  display: block;
  margin-bottom: 2px;
}

.pr-field input,
.pr-field textarea {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #1f2937;
  background: #020617;
  color: #e5e7eb;
  font-size: 0.9rem;
}

/* Buttons row at bottom of modal */
.plan-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}

#plan-modal-status {
  font-size: 0.82rem;
  margin-top: 6px;
}

/* Mobile spacing tweak */
@media (max-width: 640px) {
  .subscription-section {
    margin-top: 24px;
  }
}
