/* Vidyagram Skills — one stylesheet for website, student app and admin panel */
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ink: #14213D; --ink-2: #24365E; --ink-3: #3B4D78;
  --accent: #E07A1F; --accent-2: #C9651A; --accent-soft: #FDEBD8;
  --bg: #FBF7F0; --card: #FFFFFF; --line: #E9E2D6; --line-2: #F2ECE2;
  --text: #1B2235; --muted: #5E667A;
  --ok: #1F7A4D; --ok-soft: #E3F3EA; --warn: #A86414; --warn-soft: #FCF0DC; --bad: #B8322A; --bad-soft: #FBE6E4;
  --info: #2457A6; --info-soft: #E5EEFB;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20,33,61,.06), 0 6px 20px rgba(20,33,61,.06);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--ink-2); text-decoration: none; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.8rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); letter-spacing: -.01em; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.hide { display: none !important; }
.right { margin-left: auto; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 16px; } .mt2 { margin-top: 28px; } .mb { margin-bottom: 16px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  background: var(--ink); color: #fff; font: 500 .95rem var(--font); padding: 10px 18px; border-radius: 999px;
  cursor: pointer; text-decoration: none; transition: background .15s, transform .05s; min-height: 42px; }
.btn:hover { background: var(--ink-2); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.accent { background: var(--accent); }
.btn.accent:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--line-2); color: var(--ink); }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: var(--accent-soft); }
.btn.danger { background: var(--bad); }
.btn.ok { background: var(--ok); }
.btn.sm { padding: 6px 12px; min-height: 32px; font-size: .85rem; }
.btn.lg { padding: 14px 26px; font-size: 1.05rem; min-height: 52px; }
.btn.block { width: 100%; }
.linkbtn { background: none; border: 0; color: var(--ink-2); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h3 { margin-bottom: 6px; }
.card-link { display: block; color: inherit; }
.card-link:hover { color: inherit; border-color: var(--accent); }

/* ---------- forms ---------- */
label { display: block; font-weight: 500; font-size: .9rem; color: var(--ink); margin: 0 0 6px; }
.field { margin-bottom: 14px; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 4px; font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=url],
input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; font: 400 .95rem var(--font); color: var(--text); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 12px; min-height: 44px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
input[type=file] { width: 100%; font: .9rem var(--font); padding: 10px; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: #fff; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 16px; }
.code-input { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-weight: 600 !important; }

/* ---------- flash & pills ---------- */
.flash { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: .93rem; border: 1px solid; }
.flash.success { background: var(--ok-soft); color: var(--ok); border-color: #BFE3CE; }
.flash.error { background: var(--bad-soft); color: var(--bad); border-color: #F2C3BE; }
.flash.info { background: var(--info-soft); color: var(--info); border-color: #C7D8F3; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 500;
  background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.accent { background: var(--accent-soft); color: var(--accent-2); }
.dot { display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
th { font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; background: #FDFBF7; }
tr:last-child td { border-bottom: 0; }
td .row { gap: 6px; }

/* ---------- progress ---------- */
.bar { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #F2A65A); border-radius: 99px; }
.kpi { font-size: 1.9rem; font-weight: 700; color: var(--ink); line-height: 1.1; }

/* ---------- media ---------- */
.ratio { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--radius-sm); overflow: hidden; }
.ratio > img, .ratio > iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.poster-ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 60%, var(--accent) 140%); color: #fff; }
.poster-ph strong { font-size: 1.25rem; line-height: 1.2; }
.poster-ph span { opacity: .8; font-size: .85rem; }

/* ================= PUBLIC WEBSITE ================= */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(251,247,240,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); display: grid; place-items: center; color: #fff; font-weight: 700; position: relative; }
.brand-mark::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 4px; background: var(--accent); }
.brand small { display: block; font-weight: 400; color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; margin-top: -3px; }
.nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); font-weight: 500; font-size: .93rem; }
.nav a:hover { color: var(--accent-2); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; font-size: 1.2rem; }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch;
    padding: 12px 16px 18px; gap: 4px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 10px 4px; }
  .nav-toggle { display: block; }
}
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,122,31,.45), rgba(224,122,31,0) 65%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; padding-top: 64px; padding-bottom: 72px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #F6A85B; }
.hero p.lead { font-size: 1.08rem; color: rgba(255,255,255,.82); max-width: 560px; }
.hero .eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #F6A85B; font-weight: 600; margin-bottom: 14px; }
.hero-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 22px; }
.hero-card h3 { color: #fff; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.hero-stats div { background: rgba(255,255,255,.06); border-radius: 12px; padding: 12px; }
.hero-stats b { display: block; font-size: 1.3rem; color: #fff; }
.hero-stats span { font-size: .78rem; color: rgba(255,255,255,.7); }
.qr-box { display: flex; gap: 14px; align-items: center; margin-top: 16px; }
.qr-box img { width: 92px; height: 92px; background: #fff; border-radius: 10px; padding: 6px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 48px; } .hero-card .qr-box { display: none; } }
.section { padding: 64px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); max-width: 560px; }
.kicker { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; margin-bottom: 6px; }
.course-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.course-card .ratio { border-radius: 0; }
.course-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.course-card .body p { color: var(--muted); font-size: .9rem; margin: 0; }
.poster { display: block; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: inherit; transition: transform .15s, box-shadow .15s; }
.poster:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(20,33,61,.12); color: inherit; }
.poster .ratio { border-radius: 0; }
.poster .meta { padding: 12px 14px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.poster .meta b { color: var(--ink); font-size: .95rem; }
.poster .meta span { font-size: .8rem; color: var(--muted); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.steps .card { position: relative; padding-top: 46px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: 14px; left: 18px; width: 26px; height: 26px;
  border-radius: 8px; background: var(--accent-soft); color: var(--accent-2); font-weight: 700; display: grid; place-items: center; font-size: .85rem; }
.work-card { padding: 0; overflow: hidden; }
.work-card .body { padding: 12px 14px; }
.work-card .body b { display: block; color: var(--ink); font-size: .92rem; }
.cta-band { background: var(--accent); color: #fff; border-radius: 22px; padding: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); }
.cta-band .card { color: var(--text); }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 22px; } }
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 44px 0 28px; margin-top: 64px; font-size: .9rem; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #F6A85B; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h4 { color: #fff; font-size: .9rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; } .site-footer li { margin: 6px 0; }
.site-footer .brand-mark { background: var(--accent); } .site-footer .brand-mark::after { background: #fff; }
.site-footer .brand small { color: rgba(255,255,255,.55); }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; }
.staff-link { opacity: .55; } .staff-link:hover { opacity: 1; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.page-head { padding: 44px 0 18px; }
.prose { max-width: 760px; } .prose h2 { margin-top: 1.4em; }
.verify-ok { border-left: 5px solid var(--ok); } .verify-bad { border-left: 5px solid var(--bad); }
.pf-hero { background: var(--ink); color: #fff; padding: 46px 0 34px; }
.pf-hero h1 { color: #fff; margin-bottom: 4px; }
.pf-hero p { color: rgba(255,255,255,.8); }
.avatar { width: 64px; height: 64px; border-radius: 18px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.6rem; flex: none; }
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; background: #1FA855; color: #fff; border-radius: 999px; padding: 12px 16px; font-weight: 600; box-shadow: var(--shadow); }
.wa-float:hover { color: #fff; background: #198F48; }

/* ================= STUDENT APP ================= */
body.app { background: #F6F2EA; padding-bottom: 84px; }
.app-top { position: sticky; top: 0; z-index: 30; background: var(--ink); color: #fff; }
.app-top .in { max-width: 760px; margin: 0 auto; padding: 0 16px; height: 58px; display: flex; align-items: center; gap: 12px; }
.app-top .title { font-weight: 600; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-top a { color: #fff; }
.app-top .icon-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.08); font-size: 1.1rem; }
.app-top .icon-btn .dot { position: absolute; top: -4px; right: -4px; }
.app-main { max-width: 760px; margin: 0 auto; padding: 16px; }
.app-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.app-nav .in { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.app-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 8px; font-size: .7rem; color: var(--muted); font-weight: 500; position: relative; }
.app-nav a .ic { font-size: 1.25rem; line-height: 1; filter: grayscale(1); opacity: .75; }
.app-nav a.on { color: var(--accent-2); }
.app-nav a.on .ic { filter: none; opacity: 1; }
.app-nav a .dot { position: absolute; top: 4px; left: 55%; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin: 0 -16px 14px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .85rem; font-weight: 500; }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.batch-head { background: linear-gradient(135deg, var(--ink), var(--ink-3)); color: #fff; border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.batch-head h2 { color: #fff; font-size: 1.2rem; margin-bottom: 2px; }
.batch-head .muted { color: rgba(255,255,255,.75); }
.batch-head .bar { background: rgba(255,255,255,.18); margin-top: 12px; }
.list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list > * { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-2); color: inherit; }
.list > *:last-child { border-bottom: 0; }
.list > a:hover { background: #FFFBF5; color: inherit; }
.list .grow { flex: 1; min-width: 0; }
.list .grow b { display: block; color: var(--ink); font-weight: 600; font-size: .95rem; }
.list .grow span { font-size: .82rem; color: var(--muted); }
.ic-box { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; font-size: 1.15rem; flex: none; }
.welcome { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.welcome h2 { margin: 0; font-size: 1.25rem; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.badge-chip { display: inline-flex; gap: 6px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 8px; font-size: .82rem; font-weight: 500; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 10px; }
.section-title h3 { margin: 0; }
.chat { display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: .93rem; white-space: pre-wrap; word-wrap: break-word; }
.msg.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg small { display: block; opacity: .65; font-size: .7rem; margin-top: 4px; }
.chat-form { position: sticky; bottom: 76px; display: flex; gap: 8px; background: #F6F2EA; padding: 10px 0; }
.chat-form textarea { min-height: 46px; height: 46px; }
.install-banner { background: var(--accent-soft); border: 1px solid #F5CFA6; border-radius: var(--radius); padding: 12px 14px; display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--ink); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 20px; padding: 28px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.auth-card .brand { margin-bottom: 18px; }
.sub-file { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.thumbs a img { border-radius: var(--radius-sm); aspect-ratio: 16/9; object-fit: cover; width: 100%; border: 1px solid var(--line); }
.feedback { background: var(--warn-soft); border-radius: var(--radius-sm); padding: 12px 14px; border-left: 4px solid var(--warn); white-space: pre-wrap; }
.feedback.ok { background: var(--ok-soft); border-left-color: var(--ok); }
.leader { counter-reset: r; }
.leader > div::before { counter-increment: r; content: counter(r); width: 28px; height: 28px; border-radius: 9px; background: var(--line-2); display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: var(--ink); flex: none; }
.leader > div:nth-child(1)::before { background: #F7D46B; } .leader > div:nth-child(2)::before { background: #DADFE7; } .leader > div:nth-child(3)::before { background: #EDBE93; }

/* ================= ADMIN ================= */
body.admin { background: #F5F3EF; }
.adm { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.adm-side { background: var(--ink); color: rgba(255,255,255,.8); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.adm-side .brand { color: #fff; padding: 4px 8px 16px; }
.adm-side .brand-mark { background: var(--accent); }
.adm-side .brand-mark::after { background: #fff; }
.adm-side .brand small { color: rgba(255,255,255,.55); }
.adm-side nav a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; color: rgba(255,255,255,.82); font-size: .9rem; margin-bottom: 2px; }
.adm-side nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.adm-side nav a.on { background: rgba(224,122,31,.18); color: #fff; }
.adm-side nav .grp { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); margin: 16px 10px 6px; }
.adm-side nav .dot { margin-left: auto; }
.adm-main { padding: 22px 28px 60px; min-width: 0; }
.adm-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.adm-top h1 { font-size: 1.45rem; margin: 0; }
.adm-top .right { display: flex; gap: 8px; align-items: center; }
.adm-user { font-size: .82rem; color: var(--muted); }
.adm-menu { display: none; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpis .card { padding: 14px 16px; }
.kpis .card span { font-size: .8rem; color: var(--muted); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filters input, .filters select { width: auto; min-width: 180px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg a { padding: 6px 14px; border-radius: 999px; font-size: .85rem; color: var(--ink); }
.seg a.on { background: var(--ink); color: #fff; }
.two-col > * { min-width: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.poster-preview { max-width: 480px; }
.danger-zone { border-color: #F2C3BE; }
@media (max-width: 980px) {
  .adm { grid-template-columns: minmax(0, 1fr); }
  .adm-side { position: fixed; z-index: 50; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; }
  .adm-side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .adm-main { padding: 14px 16px 60px; }
  .adm-menu { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 10px; font-size: 1.1rem; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .filters input, .filters select { min-width: 0; flex: 1 1 160px; }
  .adm-top .right { flex-wrap: wrap; }
}
.auth-wrap.admin-auth { background: radial-gradient(circle at 80% 0%, #2B3A5C, var(--ink) 55%); }
.otp-note { background: var(--info-soft); color: var(--info); border-radius: var(--radius-sm); padding: 10px 12px; font-size: .88rem; margin-bottom: 14px; }
pre.code { background: var(--ink); color: #F6E7D6; padding: 12px; border-radius: 10px; overflow-x: auto; font-size: .85rem; }
@media print { .site-header, .site-footer, .app-nav, .app-top, .adm-side { display: none !important; } }
