:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-soft: #eef2ff;
  --secondary: #06b6d4;
  --accent: #f59e0b;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --page: #f4f6fb;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
  --shadow: 0 12px 34px rgba(15, 23, 42, .10);
  --shadow-lg: 0 24px 70px rgba(37, 36, 94, .16);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Noto Sans Gujarati", "Noto Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .btn { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.section { padding: 76px 0; }
.section-sm { padding: 42px 0; }
.surface-section { background: var(--surface); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 9999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 1000; height: 74px;
  background: rgba(255,255,255,.88); border-bottom: 1px solid rgba(228,231,236,.8);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px;
  color: #fff; font-size: 13px; font-weight: 900; letter-spacing: .04em; border-radius: 13px;
  background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 8px 20px rgba(79,70,229,.26);
}
.brand strong, .brand small { display: block; line-height: 1.2; }
.brand strong { font-size: 15px; letter-spacing: -.01em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.primary-nav { display: flex; align-items: center; gap: 5px; }
.primary-nav > a { padding: 9px 12px; color: #344054; font-size: 14px; font-weight: 650; border-radius: 10px; }
.primary-nav > a:hover { color: var(--primary); background: var(--primary-soft); }
.nav-form { display: inline-flex; margin: 0 0 0 4px; }
.language-switcher { display: inline-flex; align-items: center; gap: 5px; margin: 0 4px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.language-switcher > span { color: var(--primary); font-size: 13px; font-weight: 850; }.language-switcher select { max-width: 88px; padding: 2px 18px 2px 2px; color: #344054; border: 0; outline: 0; background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.nav-toggle span:not(.sr-only) { display: block; width: 21px; height: 2px; margin: 4px auto; border-radius: 3px; background: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 11px 18px; border: 1px solid transparent; border-radius: 12px; cursor: pointer;
  font-weight: 750; line-height: 1.2; text-align: center; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(79,70,229,.24); outline-offset: 2px; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), #6366f1); box-shadow: 0 8px 20px rgba(79,70,229,.22); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); box-shadow: 0 12px 25px rgba(79,70,229,.3); }
.btn-secondary { color: var(--primary-dark); background: var(--primary-soft); border-color: #c7d2fe; }
.btn-ghost { color: #344054; background: #fff; border-color: var(--line); }
.btn-danger { color: #fff; background: var(--danger); }
.btn-danger-soft { color: var(--danger); background: #fef2f2; border-color: #fecaca; }
.btn-success-soft { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.btn-sm { min-height: 38px; padding: 8px 13px; font-size: 13px; border-radius: 10px; }
.btn-icon { width: 44px; min-width: 44px; padding: 0; font-size: 18px; }
.btn-block { width: 100%; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }

.hero {
  position: relative; overflow: hidden; min-height: 650px; display: flex; align-items: center;
  padding: 86px 0 96px; background:
  radial-gradient(circle at 8% 10%, rgba(6,182,212,.16), transparent 33%),
  radial-gradient(circle at 90% 25%, rgba(79,70,229,.18), transparent 36%),
  linear-gradient(180deg, #fff 0%, #f5f7ff 100%);
}
.hero::before { content: ""; position: absolute; inset: 0; opacity: .28; pointer-events: none; background-image: linear-gradient(#dbe2f1 1px, transparent 1px), linear-gradient(90deg,#dbe2f1 1px,transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom,#000,transparent 72%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 7px 12px; color: var(--primary-dark); background: var(--primary-soft); border: 1px solid #c7d2fe; border-radius: 999px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 5px rgba(6,182,212,.14); }
.hero h1 { max-width: 740px; margin: 0 0 20px; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.08; letter-spacing: -.045em; }
.gradient-text { color: transparent; background: linear-gradient(100deg, var(--primary) 8%, #7c3aed 50%, var(--secondary)); -webkit-background-clip: text; background-clip: text; }
.hero-copy { max-width: 650px; margin: 0 0 28px; color: #475467; font-size: clamp(17px, 2vw, 20px); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 25px; color: #475467; font-size: 14px; font-weight: 650; }
.hero-points span::before { content: "✓"; display: inline-grid; place-items: center; width: 21px; height: 21px; margin-right: 7px; color: #fff; background: var(--success); border-radius: 50%; font-size: 12px; }
.reader-preview { position: relative; max-width: 500px; margin-left: auto; }
.reader-preview::before { content: ""; position: absolute; inset: -18px; border-radius: 38px; background: linear-gradient(135deg,rgba(79,70,229,.15),rgba(6,182,212,.1)); transform: rotate(3deg); }
.preview-window { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: 26px; background: rgba(255,255,255,.92); box-shadow: var(--shadow-lg); }
.preview-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d0d5dd; }
.window-dots i:first-child { background: #f97066; }.window-dots i:nth-child(2) { background: #fdb022; }.window-dots i:nth-child(3) { background: #32d583; }
.preview-label { color: var(--muted); font-size: 11px; font-weight: 700; }
.preview-body { display: grid; grid-template-columns: 86px 1fr; min-height: 365px; }
.preview-sidebar { padding: 18px 11px; background: #f8fafc; border-right: 1px solid var(--line); }
.preview-sidebar span { display: block; height: 44px; margin-bottom: 9px; border-radius: 8px; background: #e9eef7; }
.preview-sidebar span:first-child { background: #c7d2fe; border: 2px solid var(--primary); }
.preview-page { margin: 22px; padding: 24px 21px; border-radius: 10px; background: #fff; box-shadow: 0 6px 24px rgba(15,23,42,.12); }
.preview-page .line { height: 9px; margin-bottom: 10px; border-radius: 10px; background: #e7eaf0; }
.preview-page .line.title { width: 67%; height: 18px; margin-bottom: 20px; background: #6366f1; }
.preview-page .line.short { width: 72%; }
.preview-illustration { display: grid; place-items: center; height: 150px; margin: 22px 0; border-radius: 12px; color: #fff; font-size: 58px; background: linear-gradient(135deg,#818cf8,#22d3ee); }
.floating-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.8); border-radius: 13px; background: rgba(255,255,255,.95); box-shadow: var(--shadow); font-size: 12px; font-weight: 750; }
.floating-chip.top { top: 12%; left: -28px; }.floating-chip.bottom { right: -20px; bottom: 12%; }
.chip-icon { display: grid; place-items: center; width: 31px; height: 31px; color: var(--primary); background: var(--primary-soft); border-radius: 9px; }

.section-heading { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.section-heading.left { margin-left: 0; text-align: left; }
.section-heading h2 { margin: 0 0 12px; font-size: clamp(30px,4vw,44px); line-height: 1.15; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 17px; }
.stats-strip { position: relative; z-index: 2; margin-top: -45px; }
.stats-card { display: grid; grid-template-columns: repeat(4,1fr); padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.stat { padding: 12px 20px; text-align: center; border-right: 1px solid var(--line); }.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--primary-dark); font-size: 28px; line-height: 1.1; }.stat span { color: var(--muted); font-size: 13px; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feature-card { padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { display: grid; place-items: center; width: 51px; height: 51px; margin-bottom: 20px; color: var(--primary); background: var(--primary-soft); border-radius: 15px; font-size: 24px; }
.feature-card:nth-child(2n) .feature-icon { color: #0e7490; background: #ecfeff; }
.feature-card:nth-child(3n) .feature-icon { color: #b45309; background: #fffbeb; }
.feature-card h3 { margin: 0 0 8px; font-size: 19px; }.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; counter-reset: steps; }
.step { position: relative; padding: 25px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: steps; content: "0" counter(steps); display: inline-flex; margin-bottom: 25px; color: var(--primary); font-size: 28px; font-weight: 900; }
.step h3 { margin: 0 0 8px; }.step p { margin: 0; color: var(--muted); font-size: 14px; }
.cta-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding: 42px; overflow: hidden; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(120deg,#312e81,#4f46e5 55%,#0891b2); box-shadow: var(--shadow-lg); }
.cta-panel h2 { margin: 0 0 8px; font-size: clamp(28px,4vw,42px); line-height: 1.15; }.cta-panel p { margin: 0; color: #e0e7ff; }
.cta-panel .btn { color: var(--primary-dark); background: #fff; }

.page-hero { padding: 44px 0 34px; color: #fff; background: radial-gradient(circle at 85% 0,rgba(34,211,238,.3),transparent 30%), linear-gradient(125deg,#312e81,#4f46e5 65%,#0e7490); }
.page-hero h1 { margin: 8px 0; font-size: clamp(30px,5vw,46px); line-height: 1.14; letter-spacing: -.035em; }
.page-hero p { max-width: 720px; margin: 0; color: #e0e7ff; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: #c7d2fe; font-size: 12px; font-weight: 700; }
.breadcrumbs a:hover { color: #fff; }
.dashboard-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.dashboard-head .user-welcome { display: flex; align-items: center; gap: 13px; }
.avatar { display: grid; place-items: center; width: 49px; height: 49px; border: 2px solid rgba(255,255,255,.4); border-radius: 15px; color: #312e81; background: #fff; font-weight: 900; }

.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.catalog-sidebar { position: sticky; top: 94px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.catalog-sidebar h2 { margin: 0 0 15px; font-size: 17px; }.standard-link { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; padding: 11px 12px; color: #475467; border-radius: 10px; font-size: 14px; font-weight: 700; }
.standard-link:hover, .standard-link.is-active { color: var(--primary-dark); background: var(--primary-soft); }
.catalog-main { min-width: 0; }
.standard-section { scroll-margin-top: 100px; margin-bottom: 28px; }
.standard-title { display: flex; align-items: center; gap: 13px; margin: 0 0 16px; }
.standard-number { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 13px; color: #fff; background: linear-gradient(135deg,var(--primary),#7c3aed); font-size: 17px; font-weight: 900; }
.standard-title h2 { margin: 0; font-size: 24px; }.standard-title p { margin: 1px 0 0; color: var(--muted); font-size: 13px; }
.subject-card { overflow: hidden; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.subject-head { display: flex; align-items: center; gap: 13px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg,#f8fafc,#fff); }
.subject-icon { display: grid; place-items: center; width: 42px; height: 42px; color: #0e7490; background: #ecfeff; border-radius: 12px; font-size: 19px; }
.subject-head h3 { margin: 0; font-size: 18px; }.subject-head p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.chapter-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; padding: 17px; }
.chapter-item { display: flex; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border .18s ease, transform .18s ease; }
.chapter-item:hover { transform: translateY(-2px); border-color: #a5b4fc; }
.chapter-badge { display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px; color: var(--primary); background: var(--primary-soft); border-radius: 12px; font-weight: 900; }
.chapter-info { flex: 1; min-width: 0; }.chapter-info h4 { margin: 0 0 4px; font-size: 15px; }.chapter-info p { margin: 0; color: var(--muted); font-size: 12px; }
.progress { height: 6px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: #eef2f6; }.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--primary),var(--secondary)); }
.empty-state { padding: 55px 25px; text-align: center; border: 1px dashed #cbd5e1; border-radius: var(--radius); background: #fff; }.empty-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 17px; color: var(--primary); background: var(--primary-soft); border-radius: 21px; font-size: 31px; }.empty-state h2,.empty-state h3 { margin: 0 0 6px; }.empty-state p { margin: 0 auto 18px; max-width: 520px; color: var(--muted); }

.auth-section { min-height: calc(100vh - 74px); display: grid; place-items: center; padding: 48px 0; background: radial-gradient(circle at 12% 10%,rgba(6,182,212,.15),transparent 28%),radial-gradient(circle at 90% 15%,rgba(79,70,229,.16),transparent 28%),#f6f7fc; }
.auth-shell { width: min(calc(100% - 30px), 970px); display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; border: 1px solid rgba(255,255,255,.8); border-radius: 27px; background: #fff; box-shadow: var(--shadow-lg); }
.auth-aside { position: relative; overflow: hidden; padding: 46px 38px; color: #fff; background: linear-gradient(145deg,#312e81,#4f46e5 56%,#0891b2); }
.auth-aside::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 260px; height: 260px; border: 45px solid rgba(255,255,255,.08); border-radius: 50%; }
.auth-aside .brand { margin-bottom: 55px; }.auth-aside .brand small { color: #c7d2fe; }.auth-aside h1 { margin: 0 0 14px; font-size: 34px; line-height: 1.18; }.auth-aside p { color: #e0e7ff; }
.auth-benefits { display: grid; gap: 12px; margin-top: 28px; }.auth-benefits span { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 650; }.auth-benefits span::before { content: "✓"; display: grid; place-items: center; width: 23px; height: 23px; color: #312e81; background: #fff; border-radius: 50%; }
.auth-card { padding: 45px 44px; }.auth-card h2 { margin: 0 0 5px; font-size: 28px; }.auth-card > p { margin: 0 0 27px; color: var(--muted); }.auth-foot { margin: 20px 0 0; text-align: center; color: var(--muted); font-size: 13px; }.auth-foot a { color: var(--primary); font-weight: 750; }
.demo-box { margin-top: 20px; padding: 13px; border: 1px dashed #a5b4fc; border-radius: 11px; color: #4338ca; background: #f5f3ff; font-size: 12px; }

.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-group { min-width: 0; }.form-group.full { grid-column: 1 / -1; }
.form-group label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 7px; color: #344054; font-size: 13px; font-weight: 750; }.form-group label small { color: var(--muted); font-weight: 500; }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 10px 13px; color: var(--ink); border: 1px solid #d0d5dd; border-radius: 11px; outline: none; background: #fff; transition: border .15s ease, box-shadow .15s ease; }
.textarea { min-height: 96px; resize: vertical; }.input:hover,.select:hover,.textarea:hover { border-color: #98a2b3; }.input:focus,.select:focus,.textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79,70,229,.1); }
.input[disabled],.select[disabled] { color: #98a2b3; background: #f2f4f7; }
.input-wrap { position: relative; }.input-wrap .input { padding-right: 65px; }.password-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); padding: 5px 8px; color: var(--primary); border: 0; background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; }
.field-hint { margin-top: 6px; color: var(--muted); font-size: 11px; }.required { color: var(--danger); }
.check-row { display: flex; align-items: flex-start; gap: 9px; color: #475467; font-size: 13px; }.check-row input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--primary); }
.alert { margin: 0 0 18px; padding: 12px 14px; border: 1px solid; border-radius: 11px; font-size: 13px; }.alert-danger { color: #b42318; border-color: #fecdca; background: #fef3f2; }.alert-success { color: #067647; border-color: #abefc6; background: #ecfdf3; }.alert-warning { color: #b54708; border-color: #fedf89; background: #fffaeb; }.alert-info { color: #175cd3; border-color: #b2ddff; background: #eff8ff; }
.toast { position: fixed; top: 88px; right: 18px; z-index: 2000; display: flex; align-items: center; gap: 14px; max-width: min(430px,calc(100% - 36px)); padding: 13px 15px; border: 1px solid; border-radius: 13px; background: #fff; box-shadow: var(--shadow); animation: slideIn .28s ease; }.toast span { flex: 1; font-size: 13px; font-weight: 650; }.toast button { padding: 0; border: 0; color: inherit; background: transparent; font-size: 22px; cursor: pointer; }.toast-success { color: #067647; border-color: #abefc6; }.toast-danger { color: #b42318; border-color: #fecdca; }.toast-warning { color: #b54708; border-color: #fedf89; }.toast-info { color: #175cd3; border-color: #b2ddff; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } }

.reader-page { background: #111827; }.reader-page .site-footer { display: none; }.reader-page main { min-height: calc(100vh - 74px); }
.reader-shell { min-height: calc(100vh - 74px); color: #fff; background: #111827; }
.reader-shell audio[data-page-audio] { display: none; }
.reader-topbar { position: sticky; top: 74px; z-index: 20; display: flex; align-items: center; gap: 14px; min-height: 65px; padding: 9px max(16px,calc((100vw - var(--container))/2)); border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(17,24,39,.94); backdrop-filter: blur(12px); }
.reader-crumbs { flex: 1; min-width: 0; }.reader-crumbs strong,.reader-crumbs small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.reader-crumbs strong { font-size: 14px; }.reader-crumbs small { color: #9ca3af; font-size: 11px; }
.reader-tools { display: flex; align-items: center; gap: 6px; }.tool-button { display: grid; place-items: center; width: 38px; height: 38px; color: #e5e7eb; border: 1px solid #374151; border-radius: 9px; background: #1f2937; cursor: pointer; }.tool-button:hover { background: #374151; }.zoom-value { min-width: 48px; color: #d1d5db; text-align: center; font-size: 11px; }
.audio-tool { color: #c7d2fe; }.audio-tool.is-playing { color: #fff; border-color: #6366f1; background: #4f46e5; }
.reader-body { display: grid; grid-template-columns: minmax(0,1fr) 250px; height: calc(100vh - 139px); }
.reader-stage { min-width: 0; overflow: auto; display: grid; place-items: center; padding: 22px; background: radial-gradient(circle at center,#263244,#111827 68%); }
.image-scroll { width: 100%; min-height: 100%; display: flex; align-items: center; justify-content: center; overflow: auto; }.image-scroll.is-zoomed { align-items: flex-start; justify-content: flex-start; }
.reader-document { max-width: min(100%,1200px); max-height: calc(100vh - 190px); width: auto; height: auto; object-fit: contain; transform-origin: top left; border-radius: 4px; background: #fff; box-shadow: 0 18px 60px rgba(0,0,0,.45); transition: transform .15s ease; }
.pdf-frame { width: min(100%,1200px); height: 100%; min-height: 600px; border: 0; border-radius: 7px; background: #fff; box-shadow: 0 18px 60px rgba(0,0,0,.45); }
.reader-sidebar { overflow: auto; padding: 16px; border-left: 1px solid #374151; background: #18212f; }
.page-counter { padding: 12px; border-radius: 11px; background: #111827; text-align: center; }.page-counter strong { display: block; font-size: 20px; }.page-counter span { color: #9ca3af; font-size: 11px; }
.audio-card { margin-top: 12px; padding: 13px; border: 1px solid #374151; border-radius: 12px; background: linear-gradient(145deg,#222b3c,#151d2a); }.audio-card-title { display: flex; align-items: center; gap: 9px; }.audio-card-title > span:last-child { min-width: 0; }.audio-card-title strong,.audio-card-title small { display: block; }.audio-card-title strong { font-size: 12px; }.audio-card-title small { overflow: hidden; color: #9ca3af; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.audio-card-icon { display: grid; place-items: center; flex: 0 0 31px; height: 31px; border-radius: 9px; color: #fff; background: #4f46e5; font-size: 17px; }.audio-play-button { width: 100%; min-height: 38px; margin-top: 11px; gap: 7px; color: #fff; border-color: #4f46e5; background: #4f46e5; font-size: 11px; }.audio-play-button:hover,.audio-play-button.is-playing { border-color: #6366f1; background: #6366f1; }.audio-progress { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; margin-top: 9px; }.audio-progress progress { width: 100%; height: 5px; overflow: hidden; border: 0; border-radius: 999px; accent-color: #818cf8; }.audio-progress span { color: #9ca3af; font-size: 8px; font-variant-numeric: tabular-nums; }.reader-mobile-audio { display: none; }
.page-select { width: 100%; margin: 12px 0; padding: 10px; color: #fff; border: 1px solid #374151; border-radius: 9px; background: #111827; }
.page-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.page-nav .btn { min-width: 0; padding: 10px 8px; color: #fff; border-color: #374151; background: #1f2937; font-size: 12px; }.page-nav .btn.is-disabled { opacity: .35; pointer-events: none; }
.reader-help { margin-top: 17px; padding-top: 15px; border-top: 1px solid #374151; color: #9ca3af; font-size: 11px; }.reader-help kbd { display: inline-block; min-width: 24px; margin: 2px; padding: 2px 5px; color: #e5e7eb; border: 1px solid #4b5563; border-radius: 5px; background: #111827; text-align: center; }
.reader-mobile-nav { display: none; }

.admin-page { background: #f3f5f9; }.admin-shell { display: grid; grid-template-columns: 250px minmax(0,1fr); min-height: calc(100vh - 74px); }
.admin-sidebar { position: sticky; top: 74px; height: calc(100vh - 74px); overflow: auto; padding: 22px 16px; color: #d1d5db; background: #111827; }.admin-label { margin: 0 9px 12px; color: #6b7280; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.admin-menu { display: grid; gap: 5px; }.admin-menu a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; }.admin-menu a:hover,.admin-menu a.is-active { color: #fff; background: #2d3748; }.admin-menu .menu-icon { display: grid; place-items: center; width: 26px; height: 26px; color: #a5b4fc; border-radius: 8px; background: rgba(99,102,241,.13); }.admin-sidebar-note { margin-top: 25px; padding: 14px; border: 1px solid #374151; border-radius: 12px; color: #9ca3af; background: #18212f; font-size: 11px; }.admin-sidebar-note strong { display: block; margin-bottom: 4px; color: #fff; }
.admin-content { min-width: 0; padding: 30px; }.admin-page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 23px; }.admin-page-head h1 { margin: 0 0 4px; font-size: 29px; letter-spacing: -.025em; }.admin-page-head p { margin: 0; color: var(--muted); font-size: 13px; }
.metric-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; margin-bottom: 24px; }.metric-card { display: flex; align-items: center; gap: 12px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-sm); }.metric-icon { display: grid; place-items: center; flex: 0 0 43px; height: 43px; border-radius: 12px; color: var(--primary); background: var(--primary-soft); font-size: 20px; }.metric-card strong,.metric-card span { display: block; }.metric-card strong { font-size: 22px; line-height: 1.1; }.metric-card span { color: var(--muted); font-size: 11px; }
.admin-grid { display: grid; grid-template-columns: minmax(320px,.38fr) minmax(0,.62fr); gap: 20px; align-items: start; }.admin-grid.wide-form { grid-template-columns: minmax(380px,.48fr) minmax(0,.52fr); }.panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 19px; border-bottom: 1px solid var(--line); }.panel-head h2,.panel-head h3 { margin: 0; font-size: 16px; }.panel-head p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }.panel-body { padding: 19px; }.panel-foot { padding: 13px 19px; border-top: 1px solid var(--line); background: #f9fafb; }
.table-tools { display: flex; align-items: center; gap: 9px; }.search-input { max-width: 220px; min-height: 38px; padding: 7px 11px; }
.table-wrap { width: 100%; overflow-x: auto; }.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; }.data-table th,.data-table td { padding: 12px 14px; border-bottom: 1px solid #eef0f3; text-align: left; font-size: 12px; vertical-align: middle; }.data-table th { color: #667085; background: #f9fafb; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }.data-table tr:last-child td { border-bottom: 0; }.data-table tbody tr:hover { background: #fcfcfd; }.cell-main { max-width: 260px; overflow: hidden; text-overflow: ellipsis; font-weight: 750; }.cell-sub { display: block; color: var(--muted); font-size: 10px; font-weight: 500; }.row-actions { display: flex; gap: 5px; }.icon-action { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: #475467; background: #fff; cursor: pointer; }.icon-action:hover { color: var(--primary); border-color: #a5b4fc; }.icon-action.danger:hover { color: var(--danger); border-color: #fca5a5; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; }.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }.status-on { color: #067647; background: #ecfdf3; }.status-on::before { background: #12b76a; }.status-off { color: #b42318; background: #fef3f2; }.status-off::before { background: #f04438; }.status-pending { color: #b54708; background: #fffaeb; }.status-pending::before { background: #f79009; }
.icon-action.approve { color: #067647; border-color: #abefc6; background: #ecfdf3; }.icon-action.approve:hover { color: #fff; border-color: #12b76a; background: #12b76a; }.approval-policy-panel { border-color: #c7d2fe; }.approval-policy-form { display: flex; align-items: center; justify-content: space-between; gap: 18px; }.approval-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }.approval-switch > input { position: absolute; opacity: 0; pointer-events: none; }.approval-switch-track { position: relative; flex: 0 0 48px; width: 48px; height: 27px; border-radius: 999px; background: #d0d5dd; transition: .2s ease; }.approval-switch-track::after { content: ""; position: absolute; top: 4px; left: 4px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(16,24,40,.2); transition: .2s ease; }.approval-switch input:checked + .approval-switch-track { background: var(--primary); }.approval-switch input:checked + .approval-switch-track::after { transform: translateX(21px); }.approval-switch input:focus-visible + .approval-switch-track { outline: 3px solid #c7d2fe; outline-offset: 2px; }.approval-switch strong,.approval-switch small { display: block; }.approval-switch strong { font-size: 13px; }.approval-switch small { max-width: 590px; margin-top: 2px; color: var(--muted); font-size: 10px; }.approval-policy-actions { display: flex; align-items: center; gap: 13px; flex: 0 0 auto; }.approval-policy-actions > span { color: var(--muted); font-size: 11px; }.approval-policy-actions > span strong { color: var(--ink); font-size: 18px; }
.upload-drop { padding: 25px 18px; border: 2px dashed #c7d2fe; border-radius: 14px; background: #f8faff; text-align: center; }.upload-drop.audio-upload-drop { border-color: #a7f3d0; background: #f4fdf9; }.upload-drop input { width: 100%; margin-top: 10px; }.upload-drop strong { display: block; margin-bottom: 4px; }.upload-drop p { margin: 0; color: var(--muted); font-size: 11px; }.upload-count { display: inline-block; margin-top: 9px; color: var(--primary); font-size: 12px; font-weight: 750; }.audio-upload-drop .upload-count { color: #047857; }.upload-range { margin: 10px 0 0; color: #475467; font-size: 11px; }
.export-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }.export-card { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; }.export-card:hover { border-color: #a5b4fc; background: #f8faff; }.export-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; color: var(--primary); background: var(--primary-soft); font-size: 11px; font-weight: 900; }.export-card strong,.export-card small { display: block; }.export-card strong { font-size: 12px; }.export-card small { color: var(--muted); font-size: 9px; }
.activity-list { display: grid; }.activity-item { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid #eef0f3; }.activity-item:last-child { border-bottom: 0; }.activity-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }.activity-item p { margin: 0; font-size: 12px; }.activity-item small { color: var(--muted); font-size: 10px; }
.page-thumb { width: 42px; height: 42px; object-fit: cover; border: 1px solid var(--line); border-radius: 7px; background: #f2f4f7; }.pdf-thumb { display: grid; place-items: center; color: var(--danger); font-size: 10px; font-weight: 900; }
.inline-form { display: inline; margin: 0; }.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 15px; }.filter-bar .form-group { min-width: 180px; flex: 1; }.filter-bar label { margin-bottom: 4px; }

.site-footer { padding: 48px 0 28px; color: #cbd5e1; background: #101828; }.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr .8fr; gap: 40px; }.footer-brand strong { color: #fff; }.footer-brand small { color: #94a3b8; }.site-footer p { max-width: 450px; color: #94a3b8; font-size: 13px; }.footer-links { display: grid; align-content: start; gap: 7px; font-size: 13px; }.footer-links strong,.footer-note strong { color: #fff; margin-bottom: 5px; }.footer-links a { color: #94a3b8; }.footer-links a:hover { color: #fff; }.footer-note span { color: #64748b; font-size: 11px; }

@media (max-width: 1080px) {
  .hero-grid { gap: 35px; }.metric-grid { grid-template-columns: repeat(3,1fr); }.admin-grid,.admin-grid.wide-form { grid-template-columns: 1fr; }.reader-body { grid-template-columns: minmax(0,1fr) 220px; }
}
@media (max-width: 860px) {
  .site-header { height: 68px; }.nav-toggle { display: block; }.primary-nav { position: fixed; inset: 68px 0 auto 0; z-index: 999; display: grid; align-content: start; gap: 4px; padding: 16px; max-height: calc(100vh - 68px); overflow-y: auto; border-bottom: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); transform: translateY(-130%); opacity: 0; visibility: hidden; transition: transform .24s ease,opacity .2s ease,visibility .2s; }.primary-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }.primary-nav > a { padding: 13px; }.language-switcher { justify-content: center; margin: 5px 0; padding: 9px 12px; }.language-switcher select { width: 100%; max-width: none; }.nav-form { margin: 5px 0 0; }.nav-form .btn { width: 100%; }
  .hero { min-height: auto; padding: 65px 0 92px; }.hero-grid { grid-template-columns: 1fr; }.hero-copy-wrap { text-align: center; }.hero-copy { margin-inline: auto; }.hero .button-row,.hero-points { justify-content: center; }.reader-preview { width: min(92%,500px); margin: 20px auto 0; }.floating-chip.top { left: -12px; }.floating-chip.bottom { right: -12px; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }.steps { grid-template-columns: repeat(2,1fr); }.catalog-layout { grid-template-columns: 1fr; }.catalog-sidebar { position: static; }.chapter-list { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; max-width: 590px; }.auth-aside { padding: 30px; }.auth-aside .brand { margin-bottom: 30px; }.auth-benefits { display: none; }
  .admin-shell { grid-template-columns: 1fr; }.admin-sidebar { position: static; height: auto; padding: 12px; overflow-x: auto; }.admin-label,.admin-sidebar-note { display: none; }.admin-menu { display: flex; min-width: max-content; }.admin-menu a { padding: 9px 11px; }.admin-content { padding: 22px 16px; }.metric-grid { grid-template-columns: repeat(2,1fr); }
  .approval-policy-form { align-items: stretch; flex-direction: column; }.approval-policy-actions { justify-content: space-between; }
  .reader-topbar { top: 68px; padding: 8px 12px; }.reader-body { display: block; height: calc(100vh - 133px - 64px); }.reader-shell.has-audio .reader-body { height: calc(100vh - 133px - 64px - 58px); }.reader-stage { height: 100%; padding: 10px; }.reader-sidebar { display: none; }.reader-document { max-height: calc(100vh - 165px - 64px); }.reader-shell.has-audio .reader-document { max-height: calc(100vh - 165px - 64px - 58px); }.reader-mobile-audio { position: fixed; z-index: 31; right: 0; bottom: calc(61px + env(safe-area-inset-bottom)); left: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; padding: 7px 12px; border-top: 1px solid #374151; background: rgba(24,33,47,.98); box-shadow: 0 -8px 24px rgba(0,0,0,.2); }.reader-mobile-audio button { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 0; color: #fff; border: 0; background: transparent; text-align: left; cursor: pointer; }.reader-mobile-audio button > span:last-child { min-width: 0; }.reader-mobile-audio strong,.reader-mobile-audio small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.reader-mobile-audio strong { font-size: 11px; }.reader-mobile-audio small { max-width: 55vw; color: #9ca3af; font-size: 9px; }.mobile-audio-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; background: #4f46e5; }.mobile-audio-time { flex: 0 0 auto; color: #9ca3af; font-size: 9px; font-variant-numeric: tabular-nums; }.reader-mobile-nav { position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid #374151; background: rgba(17,24,39,.97); }.reader-mobile-nav .btn { min-height: 43px; color: #fff; border-color: #374151; background: #1f2937; }.reader-mobile-nav .btn.is-disabled { opacity: .35; pointer-events: none; }.mobile-page-count { align-self: center; min-width: 70px; color: #d1d5db; text-align: center; font-size: 11px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }.footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 580px) {
  .container { width: min(calc(100% - 22px),var(--container)); }.section { padding: 54px 0; }.section-sm { padding: 30px 0; }
  .brand strong { font-size: 13px; }.brand small { font-size: 9px; }.brand-mark { flex-basis: 39px; width: 39px; height: 39px; border-radius: 11px; }
  .hero { padding-top: 48px; }.hero h1 { font-size: 39px; }.hero-copy { font-size: 16px; }.hero .button-row .btn { width: 100%; }.hero-points { display: grid; justify-content: center; text-align: left; }.reader-preview { width: 100%; }.preview-body { grid-template-columns: 65px 1fr; min-height: 300px; }.preview-page { margin: 14px; padding: 18px 14px; }.preview-illustration { height: 115px; }.floating-chip { display: none; }
  .stats-card { grid-template-columns: repeat(2,1fr); padding: 10px; }.stat { padding: 13px 5px; border-right: 0; }.stat:nth-child(odd) { border-right: 1px solid var(--line); }.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }.stat strong { font-size: 23px; }
  .feature-grid,.steps { grid-template-columns: 1fr; }.feature-card { padding: 22px; }.cta-panel { grid-template-columns: 1fr; padding: 29px 23px; text-align: center; }.cta-panel .btn { width: 100%; }
  .page-hero { padding: 30px 0 27px; }.dashboard-head { align-items: flex-start; flex-direction: column; }.catalog-sidebar { padding: 14px; }.chapter-list { padding: 12px; }.chapter-item { padding: 12px; }
  .auth-section { padding: 20px 0; }.auth-shell { border-radius: 19px; }.auth-aside { padding: 25px 22px; }.auth-aside h1 { font-size: 27px; }.auth-aside .brand { margin-bottom: 22px; }.auth-card { padding: 28px 21px; }.form-grid { grid-template-columns: 1fr; }.form-group.full { grid-column: auto; }
  .admin-content { padding: 18px 11px; }.admin-page-head { align-items: flex-start; flex-direction: column; }.admin-page-head .button-row { width: 100%; }.admin-page-head .button-row .btn { flex: 1; }.metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.metric-card { padding: 13px 10px; }.metric-card:nth-child(5) { grid-column: 1 / -1; }.metric-icon { flex-basis: 37px; height: 37px; }.metric-card strong { font-size: 18px; }.panel-head { align-items: flex-start; flex-direction: column; }.table-tools { width: 100%; }.search-input { max-width: none; }.export-grid { grid-template-columns: 1fr; }.filter-bar { display: grid; }.filter-bar .form-group { min-width: 0; }
  .reader-tools .zoom-value,.reader-tools [data-zoom-reset] { display: none; }.reader-topbar { min-height: 58px; }.reader-body { height: calc(100vh - 126px - 64px); }.reader-shell.has-audio .reader-body { height: calc(100vh - 126px - 64px - 58px); }.reader-crumbs strong { font-size: 12px; }.reader-document { max-height: calc(100vh - 150px - 64px); }.reader-shell.has-audio .reader-document { max-height: calc(100vh - 150px - 64px - 58px); }.pdf-frame { min-height: 100%; }.reader-mobile-audio small { max-width: 48vw; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }.footer-grid > div:first-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print { .site-header,.site-footer,.reader-topbar,.reader-sidebar,.reader-mobile-audio,.reader-mobile-nav,.button-row { display: none !important; } body,.reader-page,.reader-shell,.reader-stage { background: #fff !important; }.reader-body { display: block; height: auto; }.reader-document { max-width: 100%; max-height: none; box-shadow: none; } }
