/* ============================================================
   Combo Camps Parent Portal — design system
   Fonts: Bricolage Grotesque (display) + Plus Jakarta Sans (UI)
   Brand: orange #f68d28 (action) · cyan #51c9e9 (accent/logo)
   ============================================================ */

:root {
  --orange:      #f68d28;
  --orange-dk:   #e07a12;
  --orange-soft: #fdebd6;
  --cyan:        #51c9e9;
  --cyan-dk:     #28aed1;
  --cyan-soft:   #e2f6fc;

  --ink:         #103039;   /* deep teal-navy text */
  --ink-2:       #3c5b63;
  --muted:       #6b858d;
  --line:        #e3ebed;
  --line-2:      #eef3f5;

  --bg:          #eef3f5;
  --surface:     #ffffff;
  --surface-2:   #f7fafb;

  --green:       #1f9d57;
  --green-soft:  #e3f6ec;
  --red:         #d6493c;
  --red-soft:    #fae5e3;

  --radius:      18px;
  --radius-sm:   12px;
  --radius-lg:   26px;
  --shadow-sm:   0 1px 2px rgba(16,48,57,.05), 0 2px 8px rgba(16,48,57,.04);
  --shadow:      0 6px 24px rgba(16,48,57,.08), 0 2px 6px rgba(16,48,57,.05);
  --shadow-lg:   0 24px 60px rgba(16,48,57,.18), 0 6px 16px rgba(16,48,57,.08);

  --display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --sidebar-w: 256px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, .display { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; color: var(--ink); }
a { color: var(--cyan-dk); text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: var(--orange-soft); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--orange); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg); color: var(--fg);
  border: none; border-radius: 999px;
  padding: 12px 22px; font-weight: 700; font-size: 14.5px;
  cursor: pointer; transition: transform .14s ease, box-shadow .2s ease, background .2s ease, filter .2s ease;
  box-shadow: 0 6px 16px rgba(246,141,40,.28); white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-cyan { --bg: var(--cyan-dk); box-shadow: 0 6px 16px rgba(40,174,209,.28); }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: none; border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--surface-2); filter: none; }
.btn-dark { --bg: var(--ink); box-shadow: 0 6px 16px rgba(16,48,57,.22); }
.btn-danger { --bg: var(--red); box-shadow: 0 6px 16px rgba(214,73,60,.22); }
.btn-soft { --bg: var(--orange-soft); --fg: var(--orange-dk); box-shadow: none; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { padding: 9px; border-radius: 12px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field > label, .label { display: block; font-weight: 600; font-size: 13px; color: var(--ink-2); margin-bottom: 7px; }
.input, input[type=text], input[type=password], input[type=email], input[type=date], input[type=number], input[type=url], textarea, select {
  width: 100%; background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease; outline: none;
}
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.input:focus, input:focus, textarea:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-soft); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

/* toggle switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .track { width: 42px; height: 24px; background: var(--line); border-radius: 999px; position: relative; transition: background .2s ease; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s ease; }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(18px); }

/* ---------- Cards / panels ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--cyan-soft); color: var(--cyan-dk); }
.pill.orange { background: var(--orange-soft); color: var(--orange-dk); }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.gray { background: var(--line-2); color: var(--muted); }

/* ---------- Rich text content ---------- */
.rt { color: var(--ink-2); line-height: 1.7; }
.rt h2, .rt h3 { color: var(--ink); margin: 22px 0 10px; }
.rt h2 { font-size: 21px; } .rt h3 { font-size: 17px; }
.rt p { margin: 0 0 13px; }
.rt ul, .rt ol { margin: 0 0 14px; padding-left: 22px; }
.rt li { margin-bottom: 6px; }
.rt a { color: var(--cyan-dk); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.rt strong { color: var(--ink); }
.rt img { width: 100%; border-radius: 14px; margin: 6px 0 18px; box-shadow: var(--shadow-sm); display: block; }
.rt figure { margin: 0 0 18px; }
.rt figure img { margin-bottom: 6px; }
.rt figcaption { font-size: 13px; color: var(--muted); text-align: center; }
.rt blockquote { margin: 0 0 16px; padding: 4px 0 4px 18px; border-left: 3px solid var(--orange); color: var(--ink); font-style: italic; }
.rt hr { border: none; border-top: 1px solid var(--line); margin: 24px 0; }
.rt :first-child { margin-top: 0; }

/* ---------- Loaders / empty ---------- */
.spinner { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--orange); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.center-load { display: grid; place-items: center; padding: 60px 0; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .emo { font-size: 40px; margin-bottom: 12px; }
.empty h3 { color: var(--ink-2); margin-bottom: 6px; }

/* ============================================================
   AUTH (premium split login — parent & admin)
   ============================================================ */
.auth-screen { min-height: 100vh; min-height: 100dvh; background: var(--surface); }
.auth-split { display: grid; grid-template-columns: 1.08fr 1fr; min-height: 100vh; min-height: 100dvh; }

.auth-visual {
  position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 60px;
  background: #0c2730 url('/assets/img/hero-lake.webp') center 35% / cover no-repeat;
}
.auth-visual-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(65% 55% at 82% 8%, rgba(246,141,40,.40), transparent 55%),
    radial-gradient(50% 50% at 10% 95%, rgba(81,201,233,.30), transparent 60%),
    linear-gradient(192deg, rgba(12,39,48,.30) 0%, rgba(12,39,48,.50) 50%, rgba(7,24,30,.93) 100%);
}
.auth-visual-content { position: relative; color: #fff; max-width: 460px; animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.auth-visual-logo { height: 56px; width: auto; margin-bottom: 30px; filter: drop-shadow(0 6px 20px rgba(0,0,0,.35)); }
.auth-visual-tagline { color: #fff; font-size: 42px; line-height: 1.04; margin-bottom: 28px; text-shadow: 0 2px 28px rgba(0,0,0,.35); letter-spacing: -.025em; }
.auth-feats { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.auth-feats li { display: flex; align-items: center; gap: 13px; font-weight: 600; font-size: 15.5px; }
.auth-feats .fi { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); display: grid; place-items: center; font-size: 19px; flex: none; }

.auth-panel { display: grid; place-items: center; padding: 36px; background: linear-gradient(180deg, #ffffff 0%, #fbf7f1 100%); }
.auth-card { width: 100%; max-width: 384px; animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.auth-card-logo { display: none; height: 46px; margin: 0 auto 22px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.auth-eyebrow { font-weight: 800; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-dk); margin-bottom: 10px; }
.auth-title { font-size: 31px; margin-bottom: 9px; letter-spacing: -.03em; }
.auth-sub { color: var(--muted); font-size: 15px; margin-bottom: 26px; line-height: 1.55; }
.auth-card .field { margin-bottom: 14px; }
.code-input { text-align: center; letter-spacing: .24em; font-weight: 800; font-size: 21px; text-transform: uppercase; padding: 15px; }
.auth-error { background: var(--red-soft); color: var(--red); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 13.5px; font-weight: 600; margin-bottom: 14px; display: none; }
.auth-error.show { display: block; animation: shake .4s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
.auth-foot { margin-top: 26px; font-size: 13.5px; color: var(--muted); }
.auth-foot a { font-weight: 700; color: var(--cyan-dk); }

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; min-height: 100dvh; }
  .auth-visual { min-height: 220px; max-height: 32vh; padding: 28px; }
  .auth-visual-logo { height: 44px; margin-bottom: 14px; }
  .auth-visual-tagline { font-size: 27px; margin-bottom: 0; }
  .auth-feats { display: none; }
  .auth-panel { padding: 30px 22px 44px; align-items: start; }
  .auth-card { max-width: 440px; }
}

/* ============================================================
   PARENT APP
   ============================================================ */
.app { display: none; min-height: 100vh; min-height: 100dvh; flex-direction: column; }
.app.show { display: flex; }

.appbar {
  position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; gap: 12px;
}
.appbar-brand { display: flex; align-items: center; gap: 13px; }
.appbar-brand img { height: 46px; width: auto; }
.brand-tag { font-weight: 800; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-dk); background: var(--cyan-soft); padding: 5px 11px; border-radius: 999px; }

/* desktop top nav */
.tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px; box-shadow: var(--shadow-sm); }
.tab { display: inline-flex; align-items: center; gap: 7px; border: none; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: all .18s ease; }
.tab .ti { font-size: 16px; }
.tab:hover { background: var(--surface-2); }
.tab.active { background: var(--ink); color: #fff; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 26px 20px 40px; flex: 1; }
.view { display: none; animation: fade .35s ease both; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.view-head { margin-bottom: 18px; }
.view-head h1 { font-size: 26px; }
.view-head p { color: var(--muted); margin-top: 4px; }

/* Home */
.welcome {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 48px 44px;
  color: #fff; box-shadow: var(--shadow); min-height: 252px;
  display: flex; flex-direction: column; justify-content: center;
  background: #0c2730 url('/assets/img/hero-lake.webp') center 32% / cover no-repeat;
}
.welcome::before { content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(60% 90% at 88% 4%, rgba(246,141,40,.42), transparent 52%),
    linear-gradient(108deg, rgba(7,24,30,.9) 0%, rgba(12,39,48,.62) 46%, rgba(12,39,48,.15) 100%); }
.welcome > * { position: relative; z-index: 1; }
.welcome .eyebrow { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-weight: 800; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: #0b2d36; background: var(--orange); padding: 6px 13px; border-radius: 999px; margin-bottom: 15px; box-shadow: 0 6px 16px rgba(246,141,40,.42); }
.welcome h1 { color: #fff; font-size: 34px; margin-bottom: 13px; max-width: 20ch; text-shadow: 0 2px 22px rgba(0,0,0,.32); }
.welcome p { max-width: 54ch; opacity: .96; font-size: 15.5px; text-shadow: 0 1px 12px rgba(0,0,0,.3); }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.quick-card { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; cursor: pointer; transition: transform .16s ease, box-shadow .2s ease, border-color .2s; box-shadow: var(--shadow-sm); }
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--cyan); }
.quick-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 23px; background: var(--cyan-soft); margin-bottom: 12px; }
.quick-card:nth-child(2) .quick-ico { background: var(--orange-soft); }
.quick-card:nth-child(4) .quick-ico { background: var(--green-soft); }
.quick-card h3 { font-size: 16px; }
.quick-card p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.home-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin-top: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.panel-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-h h3 { font-size: 17px; }
.contact-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.contact-row:last-child { border-bottom: none; }
.contact-row .ci { width: 38px; height: 38px; border-radius: 11px; background: var(--surface-2); display: grid; place-items: center; font-size: 18px; flex: none; }
.contact-row .cl { font-size: 12px; color: var(--muted); }
.contact-row .cv { font-weight: 700; }

/* Info / FAQ */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.info-card .ico { font-size: 30px; margin-bottom: 8px; }
.info-card h2 { font-size: 20px; margin-bottom: 12px; }

.accordion { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.acc-item { border-bottom: 1px solid var(--line-2); }
.acc-item:last-child { border-bottom: none; }
.acc-q { width: 100%; text-align: left; background: none; border: none; padding: 18px 22px; font-weight: 700; font-size: 15.5px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink); }
.acc-q .chev { transition: transform .25s ease; color: var(--cyan-dk); flex: none; }
.acc-item.open .acc-q .chev { transform: rotate(180deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 22px; }
.acc-a .inner { padding-bottom: 18px; }

/* Bike levels */
.bike-list { display: flex; flex-direction: column; gap: 16px; }
.bike-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.bike-head { display: flex; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; }
.bike-swatch { width: 14px; align-self: stretch; border-radius: 8px; flex: none; min-height: 44px; }
.bike-meta { flex: 1; }
.bike-meta h3 { font-size: 18px; }
.bike-meta p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.bike-head .chev { color: var(--muted); transition: transform .25s ease; }
.bike-card.open .bike-head .chev { transform: rotate(180deg); }
.bike-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; padding: 0 22px 0 52px; }
.bike-body .inner { padding-bottom: 22px; }
.embed { position: relative; padding-top: 56.25%; border-radius: var(--radius-sm); overflow: hidden; margin-top: 14px; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Photos — album-style camp cards */
.camp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.camp-card { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .25s ease; aspect-ratio: 4/3.2; background: var(--ink); }
.camp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.camp-cover { position: absolute; inset: 0; background: var(--cyan-soft) center/cover no-repeat; transition: transform .45s ease; }
.camp-card:hover .camp-cover { transform: scale(1.05); }
.camp-card .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; opacity: .55; z-index: 1; }
.camp-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 38%, rgba(7,24,30,.88)); }
.camp-text { position: absolute; left: 18px; right: 18px; bottom: 15px; z-index: 2; color: #fff; }
.camp-text h3 { color: #fff; font-size: 19px; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.camp-text p { font-size: 12.5px; opacity: .92; margin-top: 2px; }
.camp-count { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(8px); }

.back { display: inline-flex; align-items: center; gap: 7px; background: none; border: none; color: var(--ink-2); font-weight: 700; cursor: pointer; margin-bottom: 14px; font-size: 14px; }
.back:hover { color: var(--orange-dk); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-item { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: var(--line-2); position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(9,24,29,.94); display: none; align-items: center; justify-content: center; }
.lightbox.show { display: flex; animation: fade .25s ease; }
.lb-img { max-width: 92vw; max-height: 82vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.14); border: none; color: #fff; cursor: pointer; border-radius: 50%; display: grid; place-items: center; transition: background .18s ease; backdrop-filter: blur(6px); }
.lb-close { top: 18px; right: 18px; width: 46px; height: 46px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lb-nav:hover, .lb-close:hover { background: rgba(255,255,255,.28); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-bar { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; color: #fff; background: rgba(255,255,255,.12); padding: 8px 8px 8px 18px; border-radius: 999px; backdrop-filter: blur(8px); max-width: 90vw; }
.lb-cap { font-size: 13.5px; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Newsletters */
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px 14px 14px; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .2s, border-color .2s; display: flex; align-items: center; gap: 16px; }
.news-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--cyan); }
.news-thumb { width: 96px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; background: var(--cyan-soft) center/cover; }
.news-cal { width: 72px; height: 72px; border-radius: 12px; background: linear-gradient(160deg, var(--orange) 0%, var(--orange-dk) 100%); color: #fff; display: grid; place-content: center; text-align: center; flex: none; }
.news-cal .d { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; }
.news-cal .m { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.news-item .nm { flex: 1; min-width: 0; }
.news-item .nm h3 { font-size: 17px; }
.news-item .nm .meta { color: var(--muted); font-size: 12.5px; margin-top: 4px; display: flex; align-items: center; gap: 8px; }

/* newsletter reading view */
.news-read { max-width: 760px; margin: 0 auto; }
.news-hero { width: 100%; aspect-ratio: 16/7; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; box-shadow: var(--shadow); background: var(--cyan-soft) center/cover; }
.news-read .news-title { font-size: 32px; letter-spacing: -.025em; margin-bottom: 12px; }
.news-read .news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--muted); font-size: 13.5px; flex-wrap: wrap; }
.news-read .rt { font-size: 16px; }
.news-read .rt h2 { font-size: 23px; }

/* ---------- mobile bottom tabs (parent) ---------- */
.mtabs { display: none; }
@media (max-width: 820px) {
  .tabs { display: none; }
  .wrap { padding-bottom: 90px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .home-cols, .info-grid { grid-template-columns: 1fr; }
  .camp-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .mtabs {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); justify-content: space-around;
  }
  .mtab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: none; color: var(--muted); font-size: 10.5px; font-weight: 600; cursor: pointer; padding: 4px; transition: color .15s ease; }
  .mtab .ti { font-size: 21px; }
  .mtab.active { color: var(--orange-dk); }
  .welcome h1 { font-size: 24px; }
  .appbar-brand .pname { font-size: 15px; }
}
@media (max-width: 420px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .camp-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin { display: none; min-height: 100vh; min-height: 100dvh; }
.admin.show { display: grid; grid-template-columns: var(--sidebar-w) 1fr; }

/* mobile sidebar backdrop — hidden by default so it never takes a grid cell on desktop */
.scrim { display: none; position: fixed; inset: 0; background: rgba(16,48,57,.45); z-index: 55; }
.scrim.show { display: block; }

.sidebar {
  background: linear-gradient(185deg, #0f2c34 0%, #0c252c 100%); color: #cfe1e6;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; height: 100dvh; z-index: 60;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.side-brand img { height: 40px; }
.side-brand .sb-txt { font-family: var(--display); font-weight: 700; color: #fff; font-size: 15px; line-height: 1.1; }
.side-brand .sb-txt small { display: block; font-family: var(--body); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.side-nav { flex: 1; padding: 14px 12px; overflow-y: auto; }
.side-sec { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6f93999c; padding: 14px 12px 6px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 12px; color: #b6cfd5; font-weight: 600; font-size: 14px; cursor: pointer; transition: all .15s ease; border: none; background: none; width: 100%; text-align: left; margin-bottom: 2px; }
.side-link .si { font-size: 18px; width: 22px; text-align: center; }
.side-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-link.active { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(246,141,40,.3); }
.side-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.side-foot a, .side-foot button { color: #9fbcc2; font-size: 13px; font-weight: 600; background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; width: 100%; }
.side-foot a:hover, .side-foot button:hover { background: rgba(255,255,255,.07); color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(238,243,245,.85); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: space-between; padding: 16px 26px; border-bottom: 1px solid var(--line); gap: 12px; }
.topbar h1 { font-size: 21px; }
.topbar .sub { color: var(--muted); font-size: 13px; margin-top: 1px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; width: 42px; height: 42px; place-items: center; cursor: pointer; }
.page { padding: 26px; max-width: 1200px; width: 100%; }
.apage { display: none; animation: fade .3s ease both; }
.apage.active { display: block; }

/* stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.stat .si { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--cyan-soft); margin-bottom: 12px; }
.stat .sn { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1; }
.stat .sl { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* section header within page */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-head h2 { font-size: 19px; }
.sec-head p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }

/* tables */
.tbl-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-weight: 700; }
.tbl td { padding: 14px 18px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--surface-2); }
.tbl .t-title { font-weight: 700; color: var(--ink); }
.tbl .t-sub { color: var(--muted); font-size: 12.5px; }
.t-actions { display: flex; gap: 6px; justify-content: flex-end; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--ink-2); transition: all .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn.danger:hover { background: var(--red-soft); color: var(--red); border-color: var(--red-soft); }
.handle { cursor: grab; color: var(--muted); }

.card-list { display: flex; flex-direction: column; gap: 12px; }
.list-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.list-row.dragging { opacity: .5; }
.list-row .lr-main { flex: 1; min-width: 0; }
.list-row .lr-main h3 { font-size: 15.5px; }
.list-row .lr-main p { color: var(--muted); font-size: 13px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(16,48,57,.5); backdrop-filter: blur(3px); display: none; align-items: flex-start; justify-content: center; padding: 30px 16px; overflow-y: auto; }
.modal.show { display: flex; animation: fade .2s ease; }
.modal-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 620px; margin: auto; animation: rise .3s cubic-bezier(.2,.7,.2,1) both; }
.modal-card.wide { max-width: 900px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 20px; }
.modal-body { padding: 24px 26px; max-height: 70vh; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 26px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* RTE */
.rte { border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.rte:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-soft); }
.rte-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 7px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.rte-bar button { width: 32px; height: 32px; border: none; background: none; border-radius: 8px; cursor: pointer; color: var(--ink-2); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.rte-bar button:hover { background: var(--cyan-soft); color: var(--cyan-dk); }
.rte-area { padding: 14px 16px; min-height: 180px; outline: none; line-height: 1.6; color: var(--ink-2); }
.rte-area:empty::before { content: attr(data-ph); color: var(--muted); }

/* uploader */
.drop { border: 2px dashed var(--cyan); border-radius: var(--radius); background: var(--cyan-soft); padding: 36px 24px; text-align: center; cursor: pointer; transition: background .18s, border-color .18s; }
.drop:hover, .drop.over { background: #d3f0f8; border-color: var(--cyan-dk); }
.drop .di { font-size: 38px; margin-bottom: 8px; }
.drop h3 { margin-bottom: 4px; }
.drop p { color: var(--ink-2); font-size: 13.5px; }
.up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 20px; }
.up-item { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--line-2); border: 1px solid var(--line); }
.up-item img { width: 100%; height: 100%; object-fit: cover; }
.up-item .up-del { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 8px; background: rgba(16,48,57,.7); color: #fff; border: none; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(4px); }
.up-item .up-prog { position: absolute; inset: 0; background: rgba(16,48,57,.55); display: grid; place-items: center; color: #fff; }
.up-item .up-prog .spinner { width: 22px; height: 22px; border-width: 2px; border-top-color: #fff; border-color: rgba(255,255,255,.3); }

/* toast */
.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; animation: rise .3s cubic-bezier(.2,.7,.2,1) both; }
.toast.ok { background: var(--green); } .toast.err { background: var(--red); }

@media (max-width: 900px) {
  .admin.show { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .28s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .hamburger { display: grid; }
  .scrim { display: none; position: fixed; inset: 0; background: rgba(16,48,57,.45); z-index: 55; }
  .scrim.show { display: block; }
  .page { padding: 18px; }
  .topbar { padding: 14px 16px; }
}
