* {
  -webkit-tap-highlight-color: transparent;
}

:root {
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --radius: 18px;
}

/* Theme like dashboard */
body.mode-pre {
    --bg: #f6f9ff;
    --brand: #2563eb;
    --brand2: #0ea5e9;
    --chipBg: rgba(37, 99, 235, .10);
}

body.mode-pro {
    --bg: #fff7ed;
    --brand: #ea580c;
    --brand2: #f59e0b;
    --chipBg: rgba(234, 88, 12, .12);
}

body.mode-school {
    --bg: #f0fdf4;
    --brand: #16a34a;
    --brand2: #22c55e;
    --chipBg: rgba(22, 163, 74, .12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    color: var(--text);
    background: var(--bg);
}

/* Topbar */
.topbar {
    top: 0;
    z-index: 20;
    background: linear-gradient(180deg, #ffffff, #ffffffcc);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    padding: 12px 14px 12px;
}

.topbarRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.backBtn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, .08);
    background: #fff;
    text-decoration: none;
    color: rgba(15, 23, 42, .85);
    font-weight: 1000;
}

.brandMini {
    display: none;
    gap: 10px;
    align-items: center;
    flex: 1;
}

.logoMini {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    color: #fff;
    font-weight: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
}

.brandName {
    font-weight: 1000;
}

.brandSub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.topBtns {
    display: flex;
    gap: 10px;
}

.iconBtn {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, .08);
    background: #fff;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.iconBtn:active {
    transform: scale(.98);
}

/* Hero */
.heroCard {
    margin-top: 12px;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, .06);
    background: linear-gradient(135deg, var(--chipBg), rgba(255, 255, 255, .86));
    box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
    padding: 14px;
    display: flex;
    gap: 14px;
    align-items: stretch;
    justify-content: space-between;
}

.heroLeft {
    flex: 1;
}

.chipPill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    font-size: 12px;
    font-weight: 1000;
}

.heroTitle {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 1000;
}

.heroSub {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.heroBtns {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btnPriWide {
    border: none;
    padding: 10px 12px;
    border-radius: 14px;
    font-weight: 1000;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    color: #fff;
    cursor: pointer;
}

.btnGhostWide {
    border: none;
    padding: 10px 12px;
    border-radius: 14px;
    font-weight: 1000;
    background: rgba(15, 23, 42, .06);
    color: rgba(15, 23, 42, .80);
    cursor: pointer;
}

.heroMetaRow {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.miniMeta {
    font-size: 11px;
    font-weight: 1000;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    color: rgba(15, 23, 42, .82);
}

.heroArt {
    width: 170px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.heroArtBox {
    width: 100%;
    border-radius: 18px;
    padding: 12px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
}

.heroArtTitle {
    font-weight: 1000;
    font-size: 12px;
}

.heroArtSub {
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
}

/* Layout */
.page {
    padding: 12px;
}

.section {
    margin-top: 12px;
}

.sectionCard {
    background: var(--card);
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 10px 25px rgba(15, 23, 42, .05);
    border-radius: var(--radius);
    padding: 12px;
}

.secHead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.secTitle {
    font-weight: 1000;
    font-size: 16px;
}

.secSub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.secLink {
    font-size: 12px;
    color: var(--brand);
    font-weight: 1000;
    text-decoration: none;
}

/* Quick actions */
.qaGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.qaItem {
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 18px;
    padding: 12px 10px;
    background: #fff;
    cursor: pointer;
    text-align: center;
}

.qaIcon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    background: var(--chipBg);
    font-size: 18px;
}

.qaLbl {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 1000;
    color: rgba(15, 23, 42, .85);
}

.qaSub {
    margin-top: 2px;
    font-size: 10px;
    color: var(--muted);
}

/* Status pack carousel */
.statusTrack {
    display: flex;
    gap: 12px;
    overflow: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}

.statusTrack::-webkit-scrollbar {
    display: none;
}

.statusCard {
    min-width: 78%;
    scroll-snap-align: start;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .08);
    background: #111;
    cursor: pointer;
    position: relative;
}

.statusImg {
    width: 100%;
    height: 420px;
    background-color: #0f2b52;
    background-image: var(--bgimg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.statusOverlay {
    position: absolute;
    display: contents;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .10), rgba(0, 0, 0, .55));
}

.statusTop {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.statusBadge {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 12px;
    font-weight: 1000;
}

.statusBtns {
    display: flex;
    gap: 8px;
}

.pillBtn {
    border: none;
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 1000;
    cursor: pointer;
    font-size: 12px;
    background: #0f172a;
    color: #fff;
}

.pillBtn:active {
    transform: scale(.98);
}

.statusBottom {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    color: #fff;
}

.statusTitle {
    font-weight: 1000;
    font-size: 16px;
}

.statusHint {
    margin-top: 4px;
    font-size: 12px;
    opacity: .92;
}

/* Carousel dots + arrows */
.carBtns {
    display: flex;
    gap: 8px;
}

.carBtn {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, .10);
    background: #fff;
    cursor: pointer;
    font-weight: 1000;
}

.carDots {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding-top: 10px;
}

.carDots .dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .18);
}

.carDots .dot.active {
    background: rgba(0, 0, 0, .55);
}

/* Media grid */
.mediaGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mediaCard {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .08);
    background: #fff;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
}

.mediaThumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.mediaMeta {
    padding: 10px;
}

.mediaTitle {
    font-weight: 1000;
    font-size: 12px;
}

.mediaSub {
    margin-top: 4px;
    font-size: 11px;
    color: var(--muted);
}

/* Videos row */
.videoRow {
    display: flex;
    gap: 12px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}

.videoRow::-webkit-scrollbar {
    display: none;
}

.vCard {
    min-width: 220px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
    cursor: pointer;
    background: #111;
    position: relative;
}

.vThumb {
    width: 100%;
    height: 325px;
    object-fit: cover;
    display: block;
    opacity: .95;
}

.vPlay {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-weight: 1000;
    font-size: 12px;
}

.vMeta {
    padding: 10px;
    background: #fff;
}

.vTitle {
    font-weight: 1000;
    font-size: 12px;
}

.vSub {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

/* Files */
.fileList {
    display: grid;
    gap: 10px;
}

.fileItem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, .06);
    background: #fff;
    cursor: pointer;
}

.fileLeft {
    display: flex;
    gap: 10px;
    align-items: center;
}

.fileIco {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--chipBg);
}

.fileName {
    font-weight: 1000;
    font-size: 12px;
}

.fileSub {
    margin-top: 2px;
    font-size: 11px;
    color: var(--muted);
}

.fileCta {
    font-size: 12px;
    font-weight: 1000;
    color: var(--brand);
}

/* Offer */
.offerCard {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, .06);
    background: rgba(15, 23, 42, .02);
    padding: 12px;
}

.offerTitle {
    font-weight: 1000;
}

.offerText {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.offerBtns {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* FAQ */
.faqList {
    display: grid;
    gap: 10px;
}

.faqItem {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, .06);
    background: #fff;
    padding: 12px;
}

.fqQ {
    font-weight: 1000;
    font-size: 12px;
}

.fqA {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

/* Message area */
.copyBox {
    margin-top: 10px;
}

.ta {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, .08);
    padding: 12px;
    font-size: 12px;
    outline: none;
    resize: vertical;
}

.btnRow {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    border: none;
    padding: 10px 10px;
    border-radius: 14px;
    font-weight: 1000;
    cursor: pointer;
    font-size: 12px;
}

.btnPri {
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    color: #fff;
}

.btnGhost {
    background: rgba(15, 23, 42, .06);
    color: rgba(15, 23, 42, .78);
}

/* Tabs */
.tabStrip {
    display: flex;
    gap: 10px;
    overflow: auto;
    padding-bottom: 4px;
}

.tabStrip::-webkit-scrollbar {
    display: none;
}

.chip {
    border: none;
    background: rgba(15, 23, 42, .05);
    color: rgba(15, 23, 42, .75);
    font-weight: 1000;
    font-size: 12px;
    padding: 9px 12px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}

.chip.active {
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    color: #fff;
    box-shadow: 0 12px 22px rgba(0, 0, 0, .10);
}

.spaceBottom {
    height: 92px;
}

/* Bottom nav (same as dashboard) */
.bottomNav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    background: #ffffffcc;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(15, 23, 42, .06);
    padding: 8px 6px;
}

.navItem {
    flex: 1;
    text-decoration: none;
    color: rgba(15, 23, 42, .65);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
    border-radius: 14px;
    font-weight: 1000;
    font-size: 11px;
}

.navItem.active {
    color: var(--brand);
    background: var(--chipBg);
}

.navIco {
    font-size: 18px;
}

/* WhatsApp modal */
.waModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: none;
    z-index: 9999;
}

.waModal.show {
    display: block;
}

.waSheet {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(520px, 100%);
    background: #fff;
    border-radius: 18px 18px 0 0;
    padding: 12px;
}

.waHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4px 10px;
}

.waTitle {
    font-weight: 1000;
}

.waClose {
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(15, 23, 42, .06);
    cursor: pointer;
    font-weight: 1000;
}

.waOpt {
    width: 100%;
    border: none;
    padding: 12px;
    border-radius: 14px;
    background: rgba(15, 23, 42, .04);
    margin-top: 8px;
    font-weight: 1000;
    cursor: pointer;
    text-align: left;
}

.waNote {
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
}

/* Preview modal (images / pdf) */
.pvOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 90;
}

.pvModal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(94vw, 560px);
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    z-index: 91;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.pvTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.pvTitle {
    font-weight: 1000;
}

.pvClose {
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(15, 23, 42, .06);
    cursor: pointer;
    font-size: 16px;
    font-weight: 1000;
}

.pvBody {
    padding: 12px;
}

.pvBody img {
    width: 100%;
    border-radius: 14px;
    display: block;
}

.pvBody iframe {
    width: 100%;
    height: 62vh;
    border: 0;
    border-radius: 14px;
}

.pvActions {
    padding: 12px;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(15, 23, 42, .06);
}

/* YouTube modal (same as dashboard) */
.ytOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 92;
}

.ytModal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 520px);
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    z-index: 93;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.ytTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.ytTitle {
    font-weight: 1000;
}

.ytClose {
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(15, 23, 42, .06);
    cursor: pointer;
    font-size: 16px;
    font-weight: 1000;
}

.ytFrameWrap {
    position: relative;
    padding-top: 175.25%;
}

.ytFrameWrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Desktop tweaks */
@media(min-width:860px) {
    .page {
        max-width: 860px;
        margin: 0 auto;
    }

    .statusCard {
        min-width: 52%;
    }

    .qaGrid {
        grid-template-columns: repeat(6, 1fr);
    }

    .mediaGrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width:520px) {
    .qaGrid {
        grid-template-columns: repeat(3, 1fr);
    }

    .heroArt {
        display: none;
    }
}

.statusStrip {
    background: #ffffff;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,.06);
}

.sLeft {
    display: flex;
    flex-direction: column;
}

.sName {
    font-weight: 900;
    font-size: 14px;
    color: #0f172a;
}

.sRole {
    font-size: 11px;
    color: #64748b;
    margin-top: 3px;
}

.sRight {
    text-align: right;
}

.sPhone {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
}

.sCode {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 900;
    color: #2563eb;
}
.heroMetaRow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.heroPills{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}

.miniMeta{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  font-size:13px;
  font-weight:700;
  color:#0f172a;
}