:root {
  --green: #1B5E20;
  --green-mid: #2E7D32;
  --green-soft: #E8F5E9;
  --brown: #3E2723;
  --brown-soft: #5D4037;
  --gold: #C9A227;
  --gold-soft: #F5E6B8;
  --paper: #F7F3EC;
  --paper-deep: #EDE6DA;
  --white: #FFFFFF;
  --text: #2A211E;
  --muted: #6B5E57;
  --danger: #B71C1C;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(62, 39, 35, 0.1);
  --font: "Outfit", system-ui, sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
h1, h2, h3, .brand-script {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--brown);
}

.container { width: min(1100px, 92%); margin-inline: auto; }
.muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .85rem 1.3rem; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-gold { background: var(--gold); color: var(--brown); }
.btn-ghost { background: transparent; border: 1.5px solid rgba(62,39,35,.22); color: var(--brown); }
.btn-on-dark { color: #fff !important; border-color: rgba(255,255,255,.45) !important; }
.btn-sm { padding: .5rem .9rem; font-size: .9rem; }
.btn-danger { background: var(--danger); color: #fff; }

/* ===== Landing ===== */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 4%;
  background: rgba(247, 243, 236, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(62,39,35,.08);
}
.nav-brand { display: flex; align-items: center; gap: .7rem; color: var(--brown); font-weight: 700; }
.nav-brand img { width: auto; height: 56px; max-width: 72px; object-fit: contain; background: transparent; }
.nav-links { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--brown-soft); font-weight: 500; font-size: .92rem; }

.hero {
  position: relative; min-height: 88vh;
  display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(30,20,16,.74), rgba(27,94,32,.52)),
    url("../images/study-hall.jpg") center/cover no-repeat;
}
.hero-inner { width: min(820px, 90%); padding: 4rem 0 5.5rem; }
.hero .eyebrow {
  letter-spacing: .18em; text-transform: uppercase; font-size: .75rem;
  color: var(--gold-soft); margin-bottom: .75rem;
}
.hero h1 {
  color: #fff; font-size: clamp(2.6rem, 8vw, 4.8rem); margin: 0 0 .45rem;
  text-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.hero .tagline { font-size: clamp(1rem, 2.4vw, 1.2rem); color: #f3efe7; margin: 0 auto 1.5rem; max-width: 28rem; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.hero-side {
  position: absolute; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; letter-spacing: .22em; font-weight: 700;
  color: rgba(255,255,255,.72); font-size: .82rem;
}
.hero-side.left { left: 1.1rem; }
.hero-side.right { right: 1.1rem; transform: translateY(-50%) rotate(180deg); }

.section { padding: 4.2rem 0; }
.section-head { text-align: center; margin-bottom: 2rem; }
.section-head p { max-width: 34rem; margin: .55rem auto 0; color: var(--muted); }
.section-kicker {
  display: inline-block; letter-spacing: .14em; text-transform: uppercase;
  font-size: .72rem; font-weight: 700; color: var(--green); margin: 0 0 .5rem;
}

.amenities { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.amenity {
  padding: 1.2rem; border-radius: var(--radius);
  background: #fff; border: 1px solid rgba(62,39,35,.06);
}
.amenity-img { border-radius: 12px; margin-bottom: .9rem; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.amenity h3 { margin: 0 0 .35rem; color: var(--green); }

/* Pricing */
.pricing-section { background: linear-gradient(180deg, #F7F3EC, #EFE6D8 40%, #F7F3EC); }
.price-compare {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem;
  margin: 0 auto 1.75rem; max-width: 720px;
}
.price-compare-item {
  text-align: center; background: #fff; border-radius: 14px; padding: .9rem .6rem;
  border: 1px solid rgba(62,39,35,.08);
}
.price-compare-item span { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; }
.price-compare-item strong {
  display: block; font-family: var(--display); font-size: 1.55rem; color: var(--brown); margin: .15rem 0;
}
.price-compare-item em { font-style: normal; font-size: .8rem; color: var(--muted); }
.price-compare-item.highlight {
  background: linear-gradient(160deg, #1B5E20, #2E7D32); color: #fff; border: 0;
}
.price-compare-item.highlight span,
.price-compare-item.highlight strong,
.price-compare-item.highlight em { color: #fff; }
.price-compare-item.highlight em { opacity: .85; }

.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
.plan-card {
  background: #fff; border-radius: 20px; padding: 1.35rem;
  border: 1px solid rgba(62,39,35,.08); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.plan-card.is-featured {
  border-color: var(--gold);
  box-shadow: 0 14px 40px rgba(201,162,39,.22);
  transform: translateY(-4px);
}
.plan-card-top { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .7rem; }
.plan-badge {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--green-soft); color: var(--green); padding: .28rem .55rem; border-radius: 999px;
}
.plan-save {
  font-size: .72rem; font-weight: 700;
  background: var(--gold-soft); color: #7A5B00; padding: .28rem .55rem; border-radius: 999px;
}
.plan-card h3 { margin: 0 0 .35rem; font-size: 1.45rem; }
.plan-price-row { display: flex; align-items: baseline; gap: .35rem; margin: .2rem 0; }
.plan-price { font-family: var(--display); font-size: 2.2rem; color: var(--green); font-weight: 700; }
.plan-period { color: var(--muted); font-size: .95rem; }
.plan-total { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; min-height: 2.6em; }
.plan-perks { list-style: none; padding: 0; margin: 0 0 1.2rem; flex: 1; }
.plan-perks li {
  position: relative; padding: .4rem 0 .4rem 1.35rem; font-size: .92rem;
  border-top: 1px solid rgba(62,39,35,.06);
}
.plan-perks li::before {
  content: ""; position: absolute; left: 0; top: .85rem;
  width: .55rem; height: .55rem; border-radius: 50%; background: var(--green);
}
.plan-cta { width: 100%; margin-top: auto; }
.pricing-note {
  margin-top: 1.5rem; padding: 1rem 1.2rem; border-radius: 14px;
  background: rgba(27,94,32,.08); color: var(--brown); font-size: .95rem;
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step { padding: 1.15rem; background: var(--green-soft); border-radius: var(--radius); }
.step span {
  display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem;
  border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; margin-bottom: .55rem;
}

.inquiry {
  background: linear-gradient(160deg, var(--brown), #1f1411);
  color: #f7f3ec; border-radius: 24px; padding: 1.75rem;
}
.inquiry h2 { color: var(--gold); margin-top: 0; }
.inquiry-lead { opacity: .88; margin-top: 0; }
.inquiry-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.5rem; align-items: start; }
.inquiry-meta { margin-top: 1rem; opacity: .9; font-size: .95rem; }
.form-grid { display: grid; gap: .85rem; }
.form-row { display: grid; gap: .3rem; }
label { font-size: .88rem; font-weight: 600; }
input, select, textarea {
  width: 100%; padding: .8rem 1rem; border-radius: 12px;
  border: 1px solid rgba(62,39,35,.16); background: #fff; font: inherit;
}
.inquiry input, .inquiry select, .inquiry textarea { background: rgba(255,255,255,.96); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }

.site-footer { text-align: center; padding: 2rem 1rem 5.5rem; color: var(--muted); font-size: .9rem; }

.shorts-section {
  padding: 3.4rem 0 2.6rem;
  background:
    radial-gradient(1200px 280px at 50% 0%, rgba(201,162,39,.18), transparent 60%),
    #140e09;
  overflow: hidden;
}
.shorts-section .section-head h2,
.shorts-section .section-kicker { color: var(--gold-soft); }
.shorts-section .section-head p { color: rgba(245,230,184,.72); }
.shorts-wrap {
  overflow: hidden;
  margin-top: .4rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.shorts-track {
  display: flex;
  gap: 1.15rem;
  width: max-content;
  padding: .85rem 0 1.3rem;
  animation: shorts-rtl 28s linear infinite;
  will-change: transform;
}
.shorts-wrap:hover .shorts-track { animation-play-state: paused; }
.short-card {
  flex: 0 0 auto;
  width: 228px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.short-bezel {
  position: relative;
  display: block;
  width: 228px;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  background: #0b0704;
  box-shadow: 0 18px 40px rgba(0,0,0,.38), inset 0 0 0 2px rgba(201,162,39,.55);
}
.short-bezel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.18);
  filter: saturate(1.08);
  transition: transform .35s ease;
}
.short-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,14,9,.15) 0%, transparent 32%, rgba(20,14,9,.62) 100%);
}
.short-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  margin: 0;
  border-radius: 50%;
  background: rgba(201,162,39,.94);
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
}
.short-play::after {
  content: "";
  position: absolute;
  left: 56%;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #1A1208;
  transform: translate(-30%, -50%);
  filter: none;
}
.short-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #F5E6B8;
}
.short-card:hover .short-bezel { box-shadow: 0 20px 46px rgba(0,0,0,.45), inset 0 0 0 2px #C9A227; }
.short-card:hover .short-bezel img { transform: scale(1.22); }
.short-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10,8,6,.88);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.short-modal[hidden] { display: none !important; }
.short-modal-frame {
  width: min(360px, 92vw);
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}
.short-modal-frame iframe { width: 100%; height: 100%; border: 0; }
.short-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}
@keyframes shorts-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}
@media (max-width: 700px) {
  .short-card, .short-bezel { width: 168px; }
}
@media (prefers-reduced-motion: reduce) {
  .shorts-track { animation: none; }
}
.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: none; gap: .55rem; padding: .7rem;
  background: rgba(247,243,236,.97); border-top: 1px solid rgba(62,39,35,.1);
}
.mobile-cta .btn { flex: 1; }

/* ===== Admin portal ===== */
.admin-app { background: var(--paper); }
.portal-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
  background: #2A1C18;
  color: #f3efe7; padding: 1.15rem .85rem; position: sticky; top: 0; height: 100vh; overflow: auto;
  border-right: 1px solid rgba(201,162,39,.18);
}
.sidebar-brand { display: flex; align-items: center; gap: .65rem; color: #fff; font-weight: 700; margin-bottom: 1.1rem; }
.sidebar-brand img { width: auto; height: 48px; max-width: 60px; object-fit: contain; background: transparent; }
.sidebar-brand span { font-family: var(--display); font-size: 1.15rem; line-height: 1.2; }
.sidebar-nav { display: grid; gap: .12rem; }
.sidebar-nav .nav-section {
  margin: .9rem 0 .25rem; padding: 0 .75rem;
  font-size: .65rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.sidebar-nav .nav-section:first-child { margin-top: 0; }
.sidebar-nav a { color: rgba(255,255,255,.78); padding: .52rem .75rem; border-radius: 10px; font-size: .88rem; }
.sidebar-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar-nav a.is-on { background: var(--green); color: #fff; font-weight: 700; }
.nav-danger { color: #ffcdd2 !important; margin-top: .6rem; }
.portal-main { min-width: 0; background: var(--paper); }
.portal-top {
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  padding: 1rem 1.35rem; border-bottom: 1px solid rgba(62,39,35,.08); background: #fff;
}
.portal-top .eyebrow {
  margin: 0 0 .15rem; letter-spacing: .14em; text-transform: uppercase;
  font-size: .68rem; font-weight: 700; color: var(--gold); font-family: var(--font);
}
.portal-top h1 { margin: 0; font-size: 1.45rem; }
.portal-content { padding: 1.25rem 1.35rem 2rem; }
.menu-toggle { display: none; border: 0; background: var(--paper-deep); border-radius: 10px; padding: .5rem .7rem; font-size: 1.1rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; margin-bottom: 1.1rem; }
.stat, a.stat {
  background: #fff; border-radius: 14px; padding: 1rem 1.05rem;
  border: 1px solid rgba(62,39,35,.07); color: inherit; text-decoration: none;
  border-top: 3px solid var(--gold);
}
a.stat:hover { border-color: var(--green); }
.stat strong { display: block; font-size: 1.5rem; color: var(--green); font-family: var(--display); }
.dash-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: 1.1rem; }
.dash-tile {
  background: #fff; border-radius: 14px; padding: .95rem 1rem;
  border: 1px solid rgba(62,39,35,.08); color: inherit;
}
.dash-tile strong { display: block; font-family: var(--font); font-size: .95rem; color: var(--brown); }
.dash-tile span { display: block; margin-top: .2rem; font-size: .8rem; color: var(--muted); }
.dash-tile:hover { border-color: var(--green); }
.page-tabs {
  display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem;
}
.page-tabs a {
  padding: .45rem .85rem; border-radius: 999px; font-weight: 700; font-size: .82rem;
  background: #fff; color: var(--brown); border: 1px solid rgba(62,39,35,.1);
}
.page-tabs a.is-on { background: var(--green); color: #fff; border-color: var(--green); }
.panel {
  background: #fff; border-radius: 14px; padding: 1.15rem 1.2rem;
  border: 1px solid rgba(62,39,35,.07); margin-bottom: 1rem;
}
.panel h2 { margin-top: 0; font-size: 1.25rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
th, td { padding: .7rem .55rem; border-bottom: 1px solid rgba(62,39,35,.08); text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.badge { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge-ok { background: var(--green-soft); color: var(--green); }
.badge-warn { background: #FFF3E0; color: #E65100; }
.badge-danger { background: #FFEBEE; color: var(--danger); }
.badge-info { background: #E3F2FD; color: #1565C0; }
.badge-gold { background: var(--gold-soft); color: #7A5B00; }
.flash { padding: .85rem 1rem; border-radius: 12px; margin-bottom: .9rem; font-weight: 500; }
.flash-success { background: var(--green-soft); color: var(--green); }
.flash-error { background: #FFEBEE; color: var(--danger); }
.flash-info { background: #E3F2FD; color: #1565C0; }

.seat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .7rem; }
.seat-tile {
  text-align: center; padding: .9rem .5rem; border-radius: 12px; background: #fff;
  border: 1px solid rgba(62,39,35,.1);
}
.seat-tile.free { border-color: var(--green-mid); }
.seat-tile.occupied { border-color: var(--gold); background: var(--gold-soft); }
.seat-tile.maintenance { opacity: .55; }
.login-page {
  min-height: 100vh; display: grid; place-items: center; padding: 1.25rem;
  padding-top: max(1.25rem, env(safe-area-inset-top));
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  background: radial-gradient(circle at top right, rgba(201,162,39,.22), transparent 42%), linear-gradient(160deg, var(--paper), var(--paper-deep));
}
.login-card { width: min(420px, 100%); background: #fff; padding: 1.5rem 1.25rem; border-radius: 20px; box-shadow: var(--shadow); }
.login-card h1 { margin-top: 0; font-size: clamp(1.45rem, 4vw, 1.85rem); }
.brand-logo {
  display: block;
  margin: 0 auto 1rem;
  width: auto;
  max-width: 220px;
  height: 96px;
  object-fit: contain;
  background: transparent;
}
.login-card .btn { width: 100%; }
.auth-links { margin-top: 1rem; display: flex; justify-content: space-between; font-size: .9rem; gap: .5rem; flex-wrap: wrap; }
.qr-box { text-align: center; }
.qr-box img { margin: .6rem auto; width: 180px; height: 180px; object-fit: contain; }

.hall-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: end; }
.hall-filters { display: flex; flex-wrap: wrap; gap: 1rem; flex: 1; }
.hall-filters .form-row { min-width: 180px; flex: 1; }
.hall-legend { display: flex; gap: .55rem; flex-wrap: wrap; }
.leg { font-size: .75rem; font-weight: 700; padding: .3rem .65rem; border-radius: 999px; }
.leg.free { background: #E8F5E9; color: #1B5E20; }
.leg.occupied { background: #FFF3E0; color: #E65100; }
.leg.maintenance { background: #ECEFF1; color: #546E7A; }
.slot-chips { display: flex; gap: .65rem; overflow-x: auto; padding-bottom: .35rem; margin-bottom: 1rem; }
.slot-chip {
  display: grid; gap: .12rem; min-width: 132px; padding: .8rem .95rem; border-radius: 14px;
  background: #fff; border: 1.5px solid rgba(62,39,35,.1); color: inherit;
}
.slot-chip span { font-size: .78rem; color: var(--muted); }
.slot-chip.active { border-color: var(--green); background: #F1F8F2; }
.chip-count { color: var(--green) !important; font-weight: 700; }
.panel-head-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: start; margin-bottom: 1rem; }
.hall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: .7rem; }
.hall-seat {
  display: block; text-align: left; padding: .9rem .75rem; border-radius: 14px;
  border: 1.5px solid rgba(62,39,35,.1); background: #fff; color: inherit; min-height: 100px;
}
.hall-seat.free { background: #F1F8F2; border-color: #66BB6A; }
.hall-seat.occupied { background: #FFF8E7; border-color: #FFB74D; }
.hall-seat.maintenance { background: #F5F5F5; border-color: #B0BEC5; opacity: .75; }
.hall-seat.selected, .seat-radio.selected { outline: 3px solid var(--green); }
.hall-seat-code { font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: var(--brown); }
.hall-seat-name { font-size: .85rem; font-weight: 600; margin-top: .2rem; }
.hall-seat-meta { font-size: .72rem; color: var(--muted); margin-top: .2rem; }
.seat-radio { cursor: pointer; position: relative; }
.seat-radio input { position: absolute; opacity: 0; pointer-events: none; }
.slot-avail-list { display: grid; gap: .7rem; }
.slot-avail-card {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1rem; border-radius: 14px; border: 1px solid rgba(62,39,35,.08); background: var(--paper);
}
.slot-avail-card.is-free { border-color: #81C784; background: #F1F8F2; }
.slot-avail-card.is-busy { border-color: #FFCC80; background: #FFF8E7; }
.onboard-hero { background: linear-gradient(135deg, #3E2723, #1B5E20); color: #fff; border: 0; }
.onboard-hero h2, .onboard-hero .muted { color: #F5E6B8; }

/* Admin filters */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: end;
  padding: .25rem 0;
}
.filter-field { display: grid; gap: .3rem; min-width: 140px; flex: 1; }
.filter-field label { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.filter-field input, .filter-field select {
  min-height: 42px; border-radius: 10px; border: 1px solid rgba(62,39,35,.14);
  padding: .55rem .75rem; font: inherit; background: #fff;
}
.filter-actions { display: flex; gap: .45rem; align-items: center; padding-bottom: 1px; }


/* Cinema seat picker */
.cinema {
  background: linear-gradient(180deg, #1a1410 0%, #2a211c 40%, #1f1814 100%);
  border-radius: 20px;
  padding: 1.25rem 1rem 1.5rem;
  margin: .75rem 0 1.5rem;
  color: #f5efe7;
  overflow-x: auto;
}
.cinema-screen-wrap {
  display: flex; justify-content: center; margin-bottom: 1.25rem;
}
.cinema-screen {
  width: min(420px, 92%);
  text-align: center;
  padding: .55rem 1rem .85rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: rgba(255,255,255,.75);
  background: linear-gradient(180deg, rgba(201,162,39,.55), rgba(201,162,39,.08));
  border-radius: 6px 6px 50% 50% / 6px 6px 18px 18px;
  box-shadow: 0 8px 24px rgba(201,162,39,.25);
}
.cinema-legend {
  display: flex; flex-wrap: wrap; gap: .75rem 1.1rem; justify-content: center;
  font-size: .78rem; margin-bottom: 1.1rem; color: rgba(255,255,255,.8);
}
.cinema-legend .cz {
  display: inline-block; width: 14px; height: 14px; border-radius: 4px;
  margin-right: .35rem; vertical-align: -2px;
}
.cz.available { background: #2E7D32; }
.cz.selected { background: #C9A227; }
.cz.taken { background: #5c534e; }
.cz.maint { background: #37474F; }

.cinema-hall { display: grid; gap: .55rem; min-width: max-content; margin: 0 auto; width: fit-content; }
.cinema-row {
  display: flex; align-items: center; gap: .55rem; justify-content: center;
}
.cinema-row-label {
  width: 1.4rem; text-align: center; font-weight: 700; font-size: .85rem;
  color: rgba(255,255,255,.55);
}
.cinema-seats { display: flex; align-items: center; gap: .35rem; }
.cinema-aisle { width: 1.4rem; flex: 0 0 1.4rem; }
.cinema-seat {
  position: relative;
  width: 34px; height: 34px;
  border-radius: 8px 8px 4px 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700;
  border: 0; cursor: default;
  user-select: none;
}
.cinema-seat input { position: absolute; opacity: 0; pointer-events: none; }
.cinema-seat.is-available {
  background: #2E7D32; color: #fff; cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.2);
  transition: transform .12s ease, background .12s ease;
}
.cinema-seat.is-available:hover { transform: translateY(-2px); background: #388E3C; }
.cinema-seat.is-selected,
.cinema-seat.is-available.is-selected {
  background: #C9A227 !important; color: #2A1C12;
  box-shadow: 0 0 0 2px #fff, inset 0 -3px 0 rgba(0,0,0,.15);
}
.cinema-seat.is-taken {
  background: #4a433f; color: rgba(255,255,255,.35);
  cursor: not-allowed;
}
.cinema-seat.is-maint {
  background: #37474F; color: rgba(255,255,255,.3);
  cursor: not-allowed;
}
.cinema-picked {
  text-align: center; margin: 1rem 0 0; font-size: .9rem;
  color: #F5E6B8; font-weight: 600;
}

@media (max-width: 600px) {
  .cinema-seat { width: 30px; height: 30px; font-size: .68rem; }
  .cinema-aisle { width: .9rem; flex-basis: .9rem; }
}

.library-map-meta {
  text-align: center; margin: 0 0 1rem; opacity: .85; font-size: .88rem;
}
.library-map {
  display: grid;
  grid-template-columns: 1fr minmax(110px, 160px) 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  min-width: max-content;
}
.library-wing { min-width: 0; }
.wing-title {
  margin: 0; text-align: center; font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem; color: #F5E6B8; letter-spacing: .04em;
}
.wing-range { text-align: center; margin: .15rem 0 .75rem; font-size: .78rem; color: rgba(255,255,255,.65); }
.library-logo-col {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: .65rem; padding-top: 2.2rem;
}
.library-map-logo {
  width: auto; height: auto; max-width: 120px; max-height: 120px; object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.35));
}
.library-qr-note {
  text-align: center; font-size: .72rem; line-height: 1.35;
  color: rgba(255,255,255,.75); margin: 0;
}
.library-map-wrap .cinema-seat { width: 28px; height: 28px; font-size: .62rem; border-radius: 6px 6px 3px 3px; }
.library-map-wrap .cinema-seats { gap: .28rem; }
.library-map-wrap .cinema-aisle { width: .7rem; flex-basis: .7rem; }

@media (max-width: 960px) {
  .library-map { grid-template-columns: 1fr; min-width: 0; }
  .library-logo-col { padding-top: 0; order: -1; }
}


/* ===== Student app (clean mobile) ===== */
.student-app {
  background: #EDE8DF;
  min-height: 100vh;
}
.portal-shell-student {
  display: block !important;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: #F4F0E8;
  position: relative;
  box-shadow: 0 0 0 1px rgba(62,39,35,.06);
}
.s-topbar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  background: #1B5E20;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.s-top-logo {
  width: auto; height: 48px; max-width: 64px; object-fit: contain; background: transparent; flex: 0 0 auto;
}
.s-topbar h1 { margin: 0; color: #fff; font-size: 1.15rem; font-family: var(--font); font-weight: 700; }
.s-topbar p { margin: 0; font-size: .78rem; opacity: .85; }
.s-logout {
  margin-left: auto; color: #fff; font-size: .8rem; font-weight: 600;
  background: rgba(255,255,255,.15); padding: .4rem .7rem; border-radius: 999px;
}
.s-content { padding: 1rem 1rem 5.8rem !important; }

.s-balance {
  background: linear-gradient(145deg, #3E2723, #5D4037);
  color: #fff; border-radius: 20px; padding: 1.2rem 1.15rem; margin-bottom: .9rem;
}
.s-label { margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .75; }
.s-amount { margin: .2rem 0; font-family: var(--display); font-size: 2.15rem; font-weight: 700; line-height: 1.1; }
.s-sub { margin: 0; opacity: .9; font-size: .92rem; }
.s-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: 1rem; }

.s-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: .7rem 1rem; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: .95rem; border: 0; cursor: pointer; text-align: center;
}
.s-btn-gold { background: #C9A227; color: #2A1C12; }
.s-btn-green { background: #1B5E20; color: #fff; width: 100%; }
.s-btn-soft { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28); }

.s-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: .9rem; }
.s-card {
  background: #fff; border-radius: 18px; padding: 1rem 1.05rem;
  margin-bottom: .9rem; box-shadow: 0 6px 18px rgba(62,39,35,.05);
}
.s-card-center { text-align: center; margin-bottom: 0; }
.s-card-accent { background: #E8F5E9; }
.s-card-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .55rem; }
.s-card-head a { font-size: .85rem; font-weight: 600; }
.s-title { margin: .15rem 0 .35rem; font-size: 1.2rem; color: var(--brown); font-family: var(--font); font-weight: 700; }
.s-metric { margin: .25rem 0; font-size: 1.45rem; font-weight: 700; color: var(--green); font-family: var(--display); }
.s-hint { margin: 0; color: var(--muted); font-size: .86rem; }
.s-body { margin: .4rem 0 0; color: var(--text); font-size: .95rem; }
.s-copy { margin: .2rem 0 .8rem; font-size: 1.1rem; font-weight: 700; color: var(--brown); word-break: break-all; }
.s-qr { text-align: center; margin: .5rem 0; }
.s-qr img { width: 170px; height: 170px; margin: 0 auto; object-fit: contain; background: #fff; border-radius: 12px; }

.s-notice { padding: .7rem 0; border-top: 1px solid rgba(62,39,35,.07); }
.s-notice:first-of-type { border-top: 0; padding-top: 0; }
.s-notice p { margin: .25rem 0 0; color: var(--muted); font-size: .88rem; }

.s-row {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  padding: .75rem 0; border-top: 1px solid rgba(62,39,35,.07);
}
.s-row:first-of-type { border-top: 0; padding-top: 0; }
.s-row-right { text-align: right; display: grid; gap: .25rem; justify-items: end; }
.s-pill {
  display: inline-block; font-size: .72rem; font-weight: 700; padding: .22rem .55rem;
  border-radius: 999px; text-transform: capitalize;
}
.s-pill-ok { background: #E8F5E9; color: #1B5E20; }
.s-pill-warn { background: #FFF3E0; color: #E65100; }
.s-pill-bad { background: #FFEBEE; color: #C62828; }

.s-form { display: grid; gap: .8rem; margin-top: .6rem; }
.s-form label { display: grid; gap: .3rem; font-size: .85rem; font-weight: 600; color: var(--brown); }
.s-form input, .s-form select {
  width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid rgba(62,39,35,.15);
  padding: .7rem .9rem; font: inherit; background: #FAFAF8;
}

.s-chips { display: flex; gap: .55rem; overflow-x: auto; margin-bottom: .9rem; padding-bottom: .15rem; }
.s-chip {
  flex: 0 0 auto; min-width: 108px; padding: .7rem .85rem; border-radius: 14px;
  background: #fff; border: 1.5px solid rgba(62,39,35,.1); color: inherit;
  display: grid; gap: .1rem;
}
.s-chip span { font-size: .78rem; color: var(--muted); }
.s-chip.is-on { border-color: #1B5E20; background: #E8F5E9; }

.s-seat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.s-seat {
  border-radius: 12px; padding: .7rem .45rem; text-align: center;
  border: 1.5px solid rgba(62,39,35,.1); background: #fff;
}
.s-seat strong { display: block; font-size: 1rem; color: var(--brown); }
.s-seat span { display: block; font-size: .7rem; color: var(--muted); margin-top: .2rem; }
.s-seat-free { background: #F1F8F2; border-color: #66BB6A; }
.s-seat-occupied { background: #FFF8E7; border-color: #FFB74D; }
.s-seat-maintenance { opacity: .55; }
.s-seat.is-mine { outline: 2px solid #1B5E20; background: #C8E6C9; }

.s-top-id { min-width: 0; }
.s-who {
  display: flex; align-items: center; gap: .35rem;
  margin: 0; font-size: .78rem; opacity: .95;
}
.s-name-logo {
  width: 18px; height: 18px; object-fit: contain; background: transparent; flex: 0 0 18px;
}
.s-tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(480px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .1rem;
  background: #fff;
  border-top: 1px solid rgba(62,39,35,.1);
  padding: .35rem .3rem calc(.4rem + env(safe-area-inset-bottom));
  z-index: 40;
}
.s-tabbar.has-pay { grid-template-columns: repeat(5, 1fr); }
.s-tabbar a {
  text-align: center;
  color: #8A7A72;
  font-size: .68rem;
  font-weight: 700;
  padding: .4rem .1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
}
.s-tabbar svg { width: 20px; height: 20px; display: block; }
.s-tabbar a.is-on { color: #1B5E20; background: #E8F5E9; }

/* Student app: kill broken width-100% button overrides from old CSS */
.an-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
  margin-bottom: 1rem;
}
.an-kpis-4 { grid-template-columns: repeat(4, 1fr); }
.an-kpis-5 { grid-template-columns: repeat(5, 1fr); }
.an-kpi.tone-ok strong { color: var(--green); }
.dash-legend { display: flex; gap: 1rem; font-size: .8rem; color: var(--muted); margin: .2rem 0 .7rem; font-weight: 600; }
.lg-in::before, .lg-out::before, .lg-upi::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .35rem; vertical-align: -1px;
}
.lg-in::before { background: var(--green); }
.lg-out::before { background: #E65100; }
.lg-upi::before { background: #1565C0; }
.dash-twin { overflow-x: auto; min-height: 140px; }
.dash-twin-bars { display: flex; align-items: flex-end; gap: 2px; height: 110px; }
.dash-twin .an-week-bar { width: 8px; max-width: 10px; min-height: 4px; }
.an-week-bar.is-exp { background: #E65100; }
.dash-stack {
  display: flex; height: 18px; border-radius: 99px; overflow: hidden; background: #F0EBE3; margin: .8rem 0 .4rem;
}
.dash-stack-in { background: var(--green); height: 100%; }
.dash-stack-upi { background: #1565C0; height: 100%; }
.staff-user-card { padding: 1rem 0; border-bottom: 1px solid rgba(62,39,35,.08); }
.role-mods { border: 1px solid rgba(62,39,35,.1); border-radius: 12px; padding: .7rem 1rem 1rem; margin: 0 0 .75rem; }
.role-mods legend { font-weight: 700; color: var(--brown); padding: 0 .35rem; }
.role-mod { display: flex; align-items: center; gap: .5rem; font-weight: 500; margin: .35rem 0; }
@media (max-width: 900px) {
  .an-kpis-4, .an-kpis-5 { grid-template-columns: 1fr 1fr; }
}
.an-kpi {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  border: 1px solid rgba(62,39,35,.07);
  box-shadow: 0 6px 20px rgba(62,39,35,.05);
  color: inherit;
  text-decoration: none;
}
.an-kpi span { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.an-kpi strong { display: block; font-size: 1.45rem; font-family: var(--display); color: var(--green); margin: .2rem 0 .1rem; }
.an-kpi em { font-style: normal; color: var(--muted); font-size: .82rem; }
.an-kpi.tone-danger strong { color: var(--danger); }
.an-kpi.tone-warn strong { color: #E65100; }
.an-kpi.tone-info strong { color: #1565C0; }
.an-kpi.is-picked { outline: 2px solid var(--green); }
.an-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.an-week {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: .4rem; min-height: 160px; padding-top: .5rem;
}
.an-week-col { flex: 1; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.an-week-bar {
  width: 70%; max-width: 36px; background: var(--green); border-radius: 8px 8px 4px 4px;
  min-height: 8px;
}
.an-week-col strong { display: block; font-size: .85rem; margin-top: .35rem; }
.an-week-col span { font-size: .72rem; color: var(--muted); }
.an-track { height: 10px; background: #F0EBE3; border-radius: 99px; overflow: hidden; margin-bottom: .85rem; }
.row-moved { background: #FFF8E1; }


.an-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .5rem; }
.an-head h2 { margin: 0; }
.an-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: .85rem 0 1rem; }
.pager { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1rem; }
.pager-link {
  min-width: 36px; text-align: center; padding: .4rem .55rem; border-radius: 8px;
  border: 1px solid rgba(62,39,35,.12); color: var(--brown); font-weight: 600;
}
.pager-now { font-weight: 700; color: var(--brown); padding: .4rem .55rem; }

.student-app,
.admin-app {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}
.student-app h1,
.student-app h2,
.student-app .s-metric,
.student-app .s-amount,
.student-app .s-title,
.admin-app h1,
.admin-app h2,
.admin-app .stat strong,
.admin-app .an-kpi strong {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}
.s-status {
  display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .75rem;
}
.s-status > div {
  background: #fff; border-radius: 16px; padding: .85rem 1rem;
  border: 1px solid rgba(62,39,35,.06);
}
.s-status span { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.s-status strong { font-size: 1.15rem; color: var(--green); }
.s-pay-strip {
  display: block; margin-bottom: .75rem; background: var(--brown); color: #fff;
  border-radius: 14px; padding: .8rem 1rem; font-weight: 700; font-size: .9rem;
}
.s-attend { text-align: center; }
.s-btn-row-1 { grid-template-columns: 1fr; }
.s-attend .s-btn-soft { background: #EEE8DF; color: var(--brown); }

.student-app .btn-primary,
.student-app .btn-gold,
.student-app .btn-ghost { width: auto; }

@media (max-width: 900px) {
  .plans-grid, .steps, .amenities, .price-compare, .inquiry-grid { grid-template-columns: 1fr; }
  .plan-card.is-featured { transform: none; }
  .two-col { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .mobile-cta { display: flex; }
  .stats, .dash-tiles { grid-template-columns: 1fr 1fr; }
  .an-kpis, .an-kpis-4, .an-kpis-5, .an-kpis-sm, .an-split { grid-template-columns: 1fr 1fr; }
  .portal-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(280px, 86%);
    transform: translateX(-105%); transition: transform .25s ease; z-index: 60;
  }
  .sidebar.open { transform: none; }
  .menu-toggle { display: inline-block; }
  .nav-links .hide-mobile { display: none; }
  .portal-top { flex-wrap: wrap; padding: .85rem 1rem; }
  .portal-top h1 { font-size: 1.15rem; }
  .portal-content { padding: 1rem; }
  .filter-bar { gap: .55rem; }
  .filter-field { min-width: 100%; }
  .cinema { margin-left: -1rem; margin-right: -1rem; padding: 1rem .6rem 1.2rem; }
  .library-map-wrap .cinema-seat { width: 24px; height: 24px; font-size: .55rem; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .an-kpis, .an-kpis-sm, .an-split { grid-template-columns: 1fr; }
  .s-grid-2 { grid-template-columns: 1fr; }
  .s-amount { font-size: 1.75rem; }
  .s-tabbar a { font-size: .62rem; padding: .45rem .1rem; }
}

@media (min-width: 901px) {
  .student-app {
    padding: 1.5rem 0;
    background: linear-gradient(180deg, #cfc6b8, #e8e1d4);
  }
  .portal-shell-student {
    max-width: 720px;
    border-radius: 24px;
    overflow: hidden;
    min-height: calc(100vh - 3rem);
    box-shadow: 0 20px 50px rgba(62,39,35,.12);
  }
  .s-tabbar { width: min(720px, 100%); }
  .s-content { padding: 1.25rem 1.4rem 6rem !important; }
  .login-card { width: min(480px, 100%); padding: 2rem 1.6rem; }
  .rules-card { width: min(720px, 96vw) !important; }
}

.rules-page { align-items: start; padding-top: 1.25rem; }
.rules-card { width: min(640px, 100%) !important; }
.rules-logo { width: auto; height: 96px; margin: 0 auto .6rem; object-fit: contain; background: transparent; }
.rules-card .eyebrow {
  text-align: center; letter-spacing: .14em; text-transform: uppercase;
  font-size: .72rem; color: var(--gold); margin: 0 0 .35rem; font-weight: 700;
}
.rules-card h1 { text-align: center; }
.rules-box {
  max-height: min(48vh, 420px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(62,39,35,.12);
  border-radius: 14px;
  padding: .9rem 1rem .9rem 1.15rem;
  background: #FAFAF7;
  margin: .85rem 0 1rem;
}
.rules-box ol { margin: 0; padding-left: 1.15rem; }
.rules-box li { margin: 0 0 .55rem; font-size: .9rem; }
.rules-declaration {
  margin: .8rem 0 0; font-size: .88rem; font-style: italic; color: var(--brown);
}
.rules-check {
  display: flex; gap: .65rem; align-items: flex-start;
  font-size: .9rem; font-weight: 600; color: var(--brown);
}
.rules-check input { margin-top: .25rem; width: 18px; height: 18px; flex: 0 0 18px; }
.rules-form .btn { width: 100%; min-height: 48px; }

html.pwa-installed .pwa-sheet,
html.pwa-installed .pwa-banner { display: none !important; }
.pwa-sheet {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(27, 22, 18, .62);
  display: none;
  place-items: end center;
  padding: 0 .65rem max(.85rem, env(safe-area-inset-bottom));
}
.pwa-sheet.is-open { display: grid; }
.pwa-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 22px 22px 16px 16px;
  padding: 1.35rem 1.25rem 1.1rem;
  text-align: center;
  border-top: 4px solid var(--gold);
}
.pwa-logo { height: 64px; width: auto; object-fit: contain; margin: 0 auto .5rem; display: block; }
.pwa-card h2 { margin: 0 0 .35rem; font-size: 1.35rem; }
.pwa-card .btn { width: 100%; margin-top: .45rem; min-height: 46px; }
.pwa-steps {
  text-align: left;
  margin: .75rem 0 .4rem;
  padding-left: 1.2rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--brown);
}
.pwa-steps li { margin: 0 0 .45rem; }
.pwa-link {
  display: block;
  margin: .65rem auto 0;
  background: none;
  border: 0;
  color: var(--green);
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
}
.pwa-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 50;
  background: var(--green);
  color: #fff;
  border-radius: 14px;
  padding: .7rem .85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  font-size: .88rem;
  font-weight: 600;
}
.pwa-banner.is-hide { display: none !important; }
.pwa-banner button {
  background: var(--gold);
  color: #1a1208;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  padding: .45rem .85rem;
  cursor: pointer;
}
.student-app .pwa-banner { bottom: calc(78px + env(safe-area-inset-bottom)); }

.period-bar { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.period-chip {
  display: inline-block; padding: .4rem .8rem; border-radius: 999px;
  background: #fff; border: 1px solid rgba(62,39,35,.12);
  font-weight: 700; font-size: .82rem; color: var(--brown); text-decoration: none;
}
.period-chip.is-on { background: var(--green); color: #fff; border-color: var(--green); }
.cam-box {
  margin: .8rem 0;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  min-height: 240px;
}
#qrReader { width: 100%; }
#qrReader video { width: 100% !important; border-radius: 16px; }

.s-mini { display: block; font-style: normal; font-size: .75rem; color: var(--muted); font-weight: 600; margin-top: .15rem; }
.s-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .75rem; }
.s-kpi {
  background: #fff; border-radius: 16px; padding: .85rem 1rem;
  border: 1px solid rgba(62,39,35,.06);
}
.s-kpi span { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.s-kpi strong { font-size: 1.2rem; color: var(--green); }
.s-bars {
  display: flex; align-items: flex-end; gap: .35rem; min-height: 150px; padding-top: .4rem; overflow-x: auto;
}
.s-bar-col { flex: 1; min-width: 28px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.s-bars-thin .s-bar-col { min-width: 14px; flex: 0 0 auto; }
.s-bar {
  width: 70%; max-width: 28px; background: var(--green); border-radius: 8px 8px 3px 3px; min-height: 6px;
}
.s-bars-thin .s-bar { width: 10px; max-width: 10px; }
.s-bar-col strong { display: block; font-size: .68rem; margin-top: .28rem; }
.s-bar-col span { font-size: .62rem; color: var(--muted); }
.s-goal-fill { height: 100%; background: var(--green); border-radius: 99px; }
.s-goal-sheet {
  position: fixed; inset: 0; z-index: 80; background: rgba(26,18,8,.45);
  display: grid; place-items: end center; padding: 1rem;
}
.s-goal-sheet[hidden] { display: none !important; }
.s-goal-card {
  width: min(440px, 100%); background: #fff; border-radius: 20px 20px 16px 16px;
  padding: 1.2rem 1.15rem calc(1.1rem + env(safe-area-inset-bottom));
  text-align: center;
}
.s-goal-card h2 { margin: .2rem 0 .5rem; }
.s-goal-card .s-btn { width: 100%; margin-top: .45rem; }
