/* ==========================================================================
   Design system — soft glass on white, green brand, Hind Siliguri
   Shared by the public site, the student panel and the admin panel.
   ========================================================================== */

:root {
  --font: 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ink: #0C2318;          /* headings */
  --text: #24382D;         /* body */
  --muted: #46584F;        /* secondary text, 7:1 on white */
  --soft: #6B7C73;         /* tertiary text, 4.6:1 on white */
  --line: #E1EEE6;
  --line-strong: #CFE3D7;

  --green-50: #F2FBF5;
  --green-100: #E7F7EE;
  --green-200: #C8EBD6;
  --green-500: #18A35A;
  --green-600: #12804B;
  --green-700: #0E6B42;
  --green-800: #0B5D37;
  --green-900: #0A2A1C;
  --gradient: linear-gradient(135deg, #2BC46A 0%, #15924F 50%, #0B6B3D 100%);

  --amber-bg: #FFF4E5; --amber-ink: #9A4B00; --amber-line: #F5D9B3;
  --red-bg: #FDECEC;   --red-ink: #9B2C2C;   --red-line: #F5C2C2;
  --blue-bg: #EAF3FE;  --blue-ink: #1D4E89;  --blue-line: #C4DAF5;

  --glass-bg: rgba(255, 255, 255, 0.66);
  --glass-border: rgba(255, 255, 255, 0.95);
  --glass-shadow: inset 0 1px 0 #FFFFFF, 0 1px 2px rgba(12, 64, 40, 0.06), 0 22px 44px -22px rgba(12, 90, 55, 0.28);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: #FFFFFF; line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-800); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0; font-weight: 700; }
p { margin: 0; }
[x-cloak] { display: none !important; }
:focus-visible { outline: 3px solid rgba(24, 163, 90, 0.45); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* ---------- Layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.wrap-narrow { max-width: 860px; }
.section { position: relative; padding: 40px 0 80px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.overflow-clip { position: relative; }
#main, .panel, .auth-page { overflow-x: clip; }
.glow { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; background: radial-gradient(circle, rgba(43, 196, 106, 0.22) 0%, rgba(43, 196, 106, 0) 68%); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 6px; } .gap-2 { gap: 10px; } .gap-3 { gap: 16px; } .gap-4 { gap: 24px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 22px; }
.grow { flex: 1 1 0; min-width: 0; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 28px; }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-full { width: 100%; }

/* ---------- Type ---------- */
.eyebrow { font-size: 14px; font-weight: 600; color: var(--green-600); letter-spacing: 0.02em; }
.h1 { font-size: 52px; line-height: 1.15; }
.h2 { font-size: 36px; margin: 6px 0 10px; }
.h3 { font-size: 20px; }
.lead { font-size: 17px; color: var(--muted); }
.muted { color: var(--muted); }
.soft { color: var(--soft); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.strong { font-weight: 700; color: var(--ink); }
.text-green { color: var(--green-700); }
.text-gradient { background: linear-gradient(120deg, #15924F, #0B6B3D); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prose { font-size: 17px; color: var(--text); }
.prose h2 { font-size: 26px; margin: 28px 0 10px; }
.prose h3 { font-size: 21px; margin: 22px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration: underline; }
.prose blockquote { margin: 0 0 14px; padding: 12px 18px; border-left: 3px solid var(--green-200); background: var(--green-50); border-radius: 0 12px 12px 0; }

/* ---------- Glass surfaces ---------- */
.glass { background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); border-radius: var(--radius-lg); }
.card { padding: 24px; }
.card-sm { padding: 18px; }
.card-lg { padding: 36px 40px; border-radius: var(--radius-xl); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.icon-tile { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; background: var(--green-100); display: inline-flex; align-items: center; justify-content: center; color: var(--green-700); }
.thumb { border-radius: var(--radius); background: linear-gradient(140deg, #DDF5E7 0%, #B9E8CC 45%, #7FD3A2 100%); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; color: var(--green-700); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; transition: filter .15s, transform .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gradient); color: #FFFFFF; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 12px 26px -12px rgba(16, 128, 70, 0.7); }
.btn-primary:hover { color: #FFFFFF; filter: brightness(1.06); }
.btn-glass { background: rgba(255, 255, 255, 0.72); color: var(--green-800); border: 1px solid rgba(20, 120, 70, 0.22); box-shadow: inset 0 1px 0 #FFFFFF, 0 8px 20px -14px rgba(12, 90, 55, 0.4); }
.btn-glass:hover { color: var(--green-900); background: #FFFFFF; }
.btn-danger { background: var(--red-bg); color: var(--red-ink); border: 1px solid var(--red-line); }
.btn-danger:hover { color: #7A1F1F; background: #FBDADA; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { background: #EEF2F0; color: var(--soft); box-shadow: none; cursor: not-allowed; filter: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--green-700); font-weight: 600; cursor: pointer; }

/* ---------- Chips & badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--green-100); color: var(--green-700); border: 1px solid var(--green-200); white-space: nowrap; }
.chip-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); }
.chip-white { background: #FFFFFF; }
.chip-grey { background: #F3F5F4; color: var(--muted); border-color: #E1E6E3; }
.chip-amber { background: var(--amber-bg); color: var(--amber-ink); border-color: var(--amber-line); }
.chip-red { background: var(--red-bg); color: var(--red-ink); border-color: var(--red-line); }
.chip-blue { background: var(--blue-bg); color: var(--blue-ink); border-color: var(--blue-line); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 15px; font-weight: 600; color: var(--text); }
.help { font-size: 13px; color: var(--soft); }
.input, .select, .textarea { width: 100%; min-height: 48px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.9); padding: 10px 14px; font-family: inherit; font-size: 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(24, 163, 90, 0.14); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: #D64545; }
.error { font-size: 14px; color: #B42318; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--green-600); }
.input-group { position: relative; }
.input-group .input { padding-right: 52px; }
.input-group button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }

/* Toggle switch */
.switch { position: relative; display: inline-flex; flex: 0 0 auto; width: 52px; height: 30px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #D7E1DB; transition: background .2s; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08); }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); transition: transform .2s; }
.switch input:checked + span { background: var(--gradient); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 3px solid rgba(24, 163, 90, 0.45); outline-offset: 2px; }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + span { opacity: 0.5; }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 16px; font-size: 15px; border: 1px solid; }
.alert-success { background: var(--green-50); border-color: var(--green-200); color: var(--green-800); }
.alert-error { background: var(--red-bg); border-color: var(--red-line); color: var(--red-ink); }
.alert-info { background: var(--blue-bg); border-color: var(--blue-line); color: var(--blue-ink); }
.alert-warn { background: var(--amber-bg); border-color: var(--amber-line); color: var(--amber-ink); }
.alert svg { flex: 0 0 20px; margin-top: 2px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(242, 251, 245, 0.6); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty svg { margin: 0 auto 10px; color: var(--green-600); opacity: .7; }

.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gradient); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; flex: 0 0 auto; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 72px; height: 72px; font-size: 28px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 20px; list-style: none; padding: 0; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-weight: 600; font-size: 15px; background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); color: var(--text); }
.pagination .active span { background: var(--gradient); color: #FFFFFF; border-color: transparent; }
.pagination .disabled span { color: #A9B6AF; }

/* ---------- Site header / footer ---------- */
.promo-bar { background: linear-gradient(90deg, #0B5D37, #13874D, #0B5D37); color: #FFFFFF; font-size: 15px; }
.promo-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; padding-top: 9px; padding-bottom: 9px; text-align: center; }
.promo-bar a { color: #FFFFFF; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.site-header { position: sticky; top: 0; z-index: 40; padding: 14px 0; }
.nav-shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 10px 8px 18px; border-radius: 999px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 19px; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--gradient); display: inline-flex; align-items: center; justify-content: center; color: #FFFFFF; font-size: 18px; font-weight: 700; flex: 0 0 auto; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--text); font-weight: 500; padding: 8px 4px; }
.nav-links a:hover, .nav-links a.active { color: var(--green-700); }
.nav-links a.active { font-weight: 700; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #FFFFFF; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.mobile-nav { display: none; }
.site-footer { background: var(--green-900); color: #CFE6D8; padding: 56px 0 28px; margin-top: 40px; }
.site-footer a { color: #CFE6D8; }
.site-footer a:hover { color: #FFFFFF; }
.site-footer h3 { color: #FFFFFF; font-size: 16px; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(207, 230, 216, 0.18); margin-top: 36px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); display: flex; align-items: center; justify-content: center; }
.floating-contact { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; flex-direction: column; gap: 10px; }
.floating-contact a { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #FFFFFF; box-shadow: 0 12px 24px -10px rgba(12, 60, 40, 0.6); }
.floating-contact .wa { background: #1FA855; }
.floating-contact .call { background: var(--ink); }

/* ---------- Home ---------- */
.hero { padding: 40px 0 72px; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-copy { flex: 1 1 480px; min-width: 0; }
.hero-media { flex: 1 1 440px; min-width: 0; }
.hero-media .frame { padding: 12px; border-radius: var(--radius-xl); }
.hero-media .thumb { height: 340px; border-radius: 22px; }
.hero-media img { width: 100%; height: 340px; object-fit: cover; border-radius: 22px; }
.play { width: 84px; height: 84px; border-radius: 50%; background: rgba(255, 255, 255, 0.78); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 0 #FFFFFF, 0 10px 30px -10px rgba(12, 90, 55, 0.5); }
.trust-line { display: flex; align-items: center; gap: 10px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding: 8px; }
.stats > div { padding: 18px 24px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stat-value { font-size: 34px; font-weight: 700; color: var(--green-700); line-height: 1.2; }
.faq-item { padding: 0; border-radius: 20px; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 24px; font-size: 17px; font-weight: 600; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--green-700); font-size: 22px; line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 24px 20px; color: var(--muted); }

/* ---------- Auth ---------- */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 18px; position: relative; overflow: hidden; }
.auth-card { width: 100%; max-width: 460px; padding: 36px; border-radius: var(--radius-xl); position: relative; z-index: 1; }
.auth-tabs { display: flex; gap: 6px; padding: 5px; background: rgba(231, 247, 238, 0.7); border-radius: 999px; margin-bottom: 22px; }
.auth-tabs a { flex: 1; text-align: center; padding: 9px 12px; border-radius: 999px; color: var(--muted); font-weight: 600; }
.auth-tabs a.active { background: #FFFFFF; color: var(--green-800); box-shadow: 0 4px 12px -6px rgba(12, 90, 55, 0.35); }

/* ---------- Panel shells (student + admin) ---------- */
.panel { position: relative; min-height: 100vh; }
.panel-body { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; padding: 24px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.sidebar { flex: 1 1 240px; max-width: 280px; min-width: 0; padding: 18px 12px; position: sticky; top: 24px; }
.panel-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav .group { font-size: 12px; font-weight: 700; color: var(--soft); letter-spacing: .04em; padding: 14px 14px 6px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; color: var(--text); font-size: 15px; font-weight: 500; }
.side-link svg { flex: 0 0 20px; }
.side-link:hover { background: rgba(231, 247, 238, 0.8); color: var(--green-700); }
.side-link.active { background: linear-gradient(135deg, #E3F6EA, #D2F0DE); color: var(--green-800); font-weight: 700; }
.side-link .count { margin-left: auto; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--amber-bg); color: var(--amber-ink); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.page-head h1 { font-size: 28px; }
.stat-tile { padding: 20px; }
.stat-tile .label { font-size: 14px; font-weight: 500; color: var(--muted); }
.stat-tile .value { font-size: 34px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs a { padding: 8px 16px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 15px; background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line); }
.tabs a.active { background: var(--gradient); color: #FFFFFF; border-color: transparent; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .input, .toolbar .select { min-height: 44px; width: auto; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.bars .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .bar-fill { width: 100%; max-width: 28px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #2BC46A, #0B6B3D); min-height: 3px; }
.bars .bar-label { font-size: 12px; color: var(--soft); }
.perm-table td, .perm-table th { text-align: center; }
.perm-table td:first-child, .perm-table th:first-child { text-align: left; }
.feature-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 4px; border-top: 1px solid var(--line); }
.feature-row:first-of-type { border-top: 0; }
.repeater-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 16px; background: rgba(242, 251, 245, 0.7); border: 1px solid var(--line); }
.image-field { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.image-preview { width: 120px; height: 80px; border-radius: 12px; border: 1px solid var(--line); background: #F6F9F7 center/contain no-repeat; display: flex; align-items: center; justify-content: center; color: var(--soft); font-size: 12px; overflow: hidden; }
.image-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 14px 14px 0 0; background: #F6FBF8; }
.editor-toolbar button { min-width: 36px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 0 8px; }
.editor-toolbar button:hover { background: var(--green-100); }
.editor-area { min-height: 320px; border: 1px solid var(--line-strong); border-radius: 0 0 14px 14px; padding: 16px; background: #FFFFFF; outline: none; }
.editor-area:focus { border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(24, 163, 90, 0.14); }
.secret-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: 16px; background: var(--amber-bg); border: 1px solid var(--amber-line); color: var(--amber-ink); }
.secret-box code { font-size: 20px; font-weight: 700; letter-spacing: .04em; color: var(--ink); background: #FFFFFF; padding: 4px 12px; border-radius: 10px; }
.mobile-panel-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-cta-text { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav { display: block; margin-top: 10px; padding: 10px; }
  .mobile-nav a { display: block; padding: 12px 14px; border-radius: 12px; color: var(--text); font-weight: 600; }
  .mobile-nav a.active { background: var(--green-100); color: var(--green-800); }
  .h1 { font-size: 38px; }
  .h2 { font-size: 28px; }
  .card-lg { padding: 26px 22px; }
  .stats > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .sidebar { display: none; max-width: none; position: static; }
  .sidebar.open { display: block; flex-basis: 100%; }
  .mobile-panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-basis: 100%; padding: 10px 14px; border-radius: 20px; }
  .panel-body { padding: 14px; gap: 14px; }
  .auth-card { padding: 28px 22px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .hero-media .thumb, .hero-media img { height: 230px; }
  .btn { padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media (max-width: 900px) { .hide-mobile { display: none; } }
@media (max-width: 520px) { .panel-main > .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .stat-tile .value { font-size: 28px; } }

/* ==========================================================================
   Phase 3–5: catalog, landing pages, checkout, learning
   ========================================================================== */
.page-hero { padding: 28px 0 36px; }
.page-hero .h1 { font-size: 44px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-bar a, .filter-bar .select { min-height: 40px; }

/* Cards in listings */
.item-card { display: flex; flex-direction: column; padding: 12px; color: inherit; height: 100%; transition: transform .18s ease, box-shadow .18s ease; }
.item-card:hover { color: inherit; transform: translateY(-3px); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(12,64,40,.06), 0 30px 50px -26px rgba(12,90,55,.38); }
.item-card .thumb { aspect-ratio: 16 / 9; width: 100%; }
.item-card .thumb.square { aspect-ratio: 4 / 3; }
.item-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-card .thumb .chip { position: absolute; left: 12px; top: 12px; background: #fff; }
.item-card .body { padding: 16px 8px 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.item-card .title { font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.item-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.price { font-size: 22px; font-weight: 700; color: var(--green-700); white-space: nowrap; }
.price-old { font-size: 15px; color: var(--soft); text-decoration: line-through; margin-left: 6px; white-space: nowrap; }
.free-tag { font-size: 20px; font-weight: 700; color: var(--green-700); }
.dot-live::before { background: #E5484D !important; }

/* Landing page */
.landing-hero { padding: 32px 0 56px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-chips .glass { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 14px; font-size: 15px; color: var(--text); }
.trust-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); padding: 8px; }
.trust-strip > div { padding: 18px 22px; display: flex; gap: 12px; align-items: center; }
.trust-strip > div + div { border-left: 1px solid var(--line); }
.tick { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.tick svg { flex: 0 0 18px; margin-top: 4px; color: var(--green-600); }
.num-badge { width: 44px; height: 44px; border-radius: 14px; background: var(--green-100); color: var(--green-700); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.info-card { display: flex; gap: 14px; align-items: center; padding: 20px; }
.info-card.accent { background: linear-gradient(135deg, #15924F, #0B6B3D); border-color: rgba(255,255,255,.3); color: #fff; }
.info-card.accent .icon-tile { background: rgba(255,255,255,.18); color: #fff; }
.info-card.accent .k, .info-card.accent .s { color: #D6F2E2; }
.info-card.accent .v { color: #fff; }
.info-card .k { font-size: 14px; color: var(--muted); }
.info-card .v { font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.info-card .s { font-size: 13px; color: var(--muted); }
.price-card { padding: 28px; border-radius: var(--radius-xl); border: 1.5px solid rgba(43,196,106,.45); }
.countdown { display: flex; gap: 8px; flex-wrap: wrap; }
.countdown span { min-width: 64px; padding: 6px 10px; text-align: center; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.countdown small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.sticky-buy { display: none; }
.video-tile { position: relative; display: block; width: 100%; border: 0; padding: 0; cursor: pointer; border-radius: var(--radius); overflow: hidden; background: #0C2318; }
.video-tile img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.video-tile:hover img { opacity: 1; }
.video-tile .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; color: var(--green-700); }
.shorts { aspect-ratio: 9 / 16; }
.wide { aspect-ratio: 16 / 9; }
.stars { color: #C27C00; letter-spacing: 1px; }
.review-card { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.shot { width: 100%; border-radius: 14px; border: 1px solid var(--line); background: #F6F9F7; cursor: zoom-in; display: block; padding: 0; }
.shot img { width: 100%; border-radius: 14px; }

/* Modal (video / image) */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(6, 22, 14, .78); display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal-box { width: min(960px, 100%); }
.modal-box.vertical { width: min(420px, 100%); }
.modal-box iframe { width: 100%; border: 0; border-radius: 16px; background: #000; display: block; }
.modal-close { position: absolute; right: 16px; top: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* Checkout */
.checkout-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.checkout-grid > .main { flex: 999 1 520px; min-width: 0; }
.checkout-grid > .side { flex: 1 1 320px; min-width: 0; position: sticky; top: 100px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; }
.summary-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 18px; font-weight: 700; color: var(--ink); }
.pay-logos { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-logos span { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.success-mark { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto; background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 18px 40px -18px rgba(16,128,70,.8); }
.fail-mark { background: linear-gradient(135deg, #F17171, #B42318); box-shadow: 0 18px 40px -18px rgba(180,35,24,.6); }
.wait-mark { background: linear-gradient(135deg, #F5B54B, #B36B00); box-shadow: 0 18px 40px -18px rgba(179,107,0,.6); }

/* Learning */
.progress { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2BC46A, #0B6B3D); }
.course-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 4px; border-top: 1px solid var(--line); }
.course-row:first-child { border-top: 0; }
.course-row .thumb { width: 88px; height: 56px; border-radius: 12px; flex: 0 0 88px; }
.course-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.player-layout { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.player-layout > .main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.player-layout > .side { flex: 1 1 300px; min-width: 0; max-height: calc(100vh - 48px); overflow: auto; position: sticky; top: 24px; }
.player { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #06160E; box-shadow: 0 24px 48px -24px rgba(6, 22, 14, .7); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .shield-top { position: absolute; left: 0; right: 0; top: 0; height: 60px; z-index: 2; }
.lesson-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--text); font-size: 15px; }
.lesson-link:hover { background: rgba(231,247,238,.8); color: var(--green-800); }
.lesson-link.current { background: linear-gradient(135deg, #E3F6EA, #D2F0DE); color: var(--green-800); font-weight: 700; }
.lesson-link .state { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; }
.lesson-link .state.done { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.next-class { border-radius: 24px; padding: 26px; background: linear-gradient(135deg, #1BAA5C 0%, #0E7A45 55%, #0A5A35 100%); color: #fff; position: relative; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 24px 48px -24px rgba(12,90,55,.6); }
.next-class .muted, .next-class .small { color: #E1F5EA; }
.btn-white { background: #fff; color: var(--green-800); }
.btn-white:hover { color: var(--green-900); }
.leader { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); }
.leader .rank { width: 32px; height: 32px; border-radius: 50%; background: var(--green-100); color: var(--green-800); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; }
.leader.me { background: var(--green-50); border-radius: 12px; }

@media (max-width: 900px) {
  .page-hero .h1 { font-size: 34px; }
  .trust-strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 20px 20px 0 0; }
  .has-sticky-buy .floating-contact { bottom: 92px; }
  .has-sticky-buy .site-footer { padding-bottom: 110px; }
  .checkout-grid > .side { position: static; }
  .player-layout > .side { position: static; max-height: none; }
}
