/* =========================================================================
   MYF 2026 â€” Mising Youth Festival design system
   Palette + typeface matched to the official festival site, myf.org.in
   (theme colours: purple #31136C / #110B4B / #0B082F, red #F41100,
    green #4CB050, gold #D19B45, yellow #FFC000 Â· font: Outfit).
   ========================================================================= */

:root {
  --brand:       #31136C;   /* myf.org.in heading purple â€” primary  */
  --brand-dark:  #110B4B;   /* dark sections                        */
  --brand-deep:  #0B082F;   /* sidebar / footer                     */
  --brand-soft:  #EFECFA;   /* purple tint for chips & hovers       */
  --gold:        #D19B45;   /* gold / tan buttons                   */
  --gold-soft:   #FBF5EA;

  --red:         #F41100;   /* outline buttons / emphasis           */
  --red-hover:   #C50E00;
  --green:       #4CB050;   /* decorative ticks, links              */
  --green-soft:  #EAF9EB;
  --yellow:      #FFC000;   /* highlight blocks                     */
  --blue:        #0262B3;   /* informational                        */

  --ink:    #0B0B0B;
  --ink-2:  #2B2B2B;
  --muted:  #6E6B66;
  --line:   #E6E3DD;
  --line-2: #F2F1EC;
  --bg:     #F7F6F3;
  --card:   #FFFFFF;

  --ok:   #2F8F35;   /* darker than #4CB050 so badge text stays legible */
  --warn: #A56A08;
  --bad:  #C40F00;
  --blue: #0262B3;

  --radius:   10px;
  --radius-sm: 7px;
  --shadow:   0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
  --shadow-lg:0 16px 40px rgba(11,8,47,.18);
  --grad:     linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  --grad-gold:linear-gradient(135deg, var(--gold) 0%, #A8752B 100%);
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; }
code { background: var(--line-2); padding: 1px 5px; border-radius: 4px; font-size: .86em; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--gold); color: #000;
  padding: 10px 16px; z-index: 999; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ------------------------------ Ticker --------------------------------- */
.ticker {
  background: var(--brand-deep); color: #fff; overflow: hidden;
  font-size: .8rem; font-weight: 600; white-space: nowrap; position: relative;
}
.ticker--sm { background: var(--gold); color: #2A1D00; }
.ticker-track {
  display: inline-flex; gap: 60px; padding: 8px 0;
  animation: tickerMove 38s linear infinite; min-width: 100%;
}
.ticker-track span { flex: 0 0 auto; padding-right: 60px; }
.ticker a.ticker-track, a.ticker-track { color: inherit; }
@keyframes tickerMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ------------------------------ Accent --------------------------------- */
.accent-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--gold) 50%, var(--brand) 100%);
}

/* ----------------------------- Public head ----------------------------- */
.pub-shell { background: var(--bg); }
.site-header {
  background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 60;
}
.header-inner {
  max-width: 1180px; margin: 0 auto; padding: 11px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; }
.brand-text small  { font-size: .72rem; color: var(--muted); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav > a {
  padding: 8px 12px; border-radius: 7px; font-weight: 600;
  font-size: .875rem; color: var(--ink-2);
}
.nav > a:hover { background: var(--line-2); color: var(--ink); }
.nav > a.active { color: var(--brand); background: var(--brand-soft); }
.nav .nav-cta { margin-left: 8px; color: #fff !important; }
.pub-overlay {
  position: fixed; inset: 0; background: rgba(6,32,58,.5); z-index: 70;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.pub-overlay.show { opacity: 1; pointer-events: auto; }
.pub-toggle { display: none; }

.icon-btn {
  background: transparent; border: 1px solid var(--line); border-radius: 8px;
  width: 40px; height: 40px; font-size: 1.1rem; cursor: pointer; color: var(--ink);
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }

/* ------------------------------- Hero ---------------------------------- */
.hero {
  background: var(--grad); color: #fff; padding: 70px 0 62px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(240,165,0,.24), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(255,255,255,.08), transparent 50%);
}
.hero-inner { position: relative; z-index: 1; max-width: 860px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  padding: 6px 15px; border-radius: 999px; font-size: .74rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; margin-bottom: 20px;
}
.hero-eyebrow b { color: var(--gold); }
.hero h1 {
  margin: 0 0 10px; font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.08;
}
.hero .hero-mising {
  display: block; font-size: clamp(1rem, 2.2vw, 1.35rem); font-weight: 600;
  color: var(--gold); letter-spacing: .01em; margin-bottom: 14px;
}
.hero p { margin: 0 0 26px; font-size: 1.06rem; opacity: .93; max-width: 660px; }
.hero-meta { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta b { font-size: 1.3rem; font-weight: 800; }
.hero-meta span { font-size: .74rem; opacity: .8; text-transform: uppercase; letter-spacing: .07em; }
.hero .btn--ghost { border-color: rgba(255,255,255,.45); color: #fff !important; }
.hero .btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff !important; }
.hero .btn--gold { background: var(--gold); color: #2A1D00 !important; }
.hero .btn--gold:hover { background: #FFB81F; color: #2A1D00 !important; }

/* ------------------------------ Sections ------------------------------- */
.section { padding: 60px 0; }
.section--alt { background: var(--card); border-block: 1px solid var(--line); }
.sec-head { margin-bottom: 30px; }
.sec-eyebrow {
  font-size: .72rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 7px;
  display: flex; align-items: center; gap: 9px;
}
.sec-eyebrow::before {
  content: ''; width: 22px; height: 3px; border-radius: 2px; background: var(--gold);
}
.sec-head h2 {
  margin: 0 0 8px; font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800; letter-spacing: -.02em;
}
.sec-head p { margin: 0; color: var(--muted); max-width: 680px; }

/* --------------------------- Cards & grids ------------------------------ */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 1.02rem; font-weight: 700; }
.card p  { margin: 0; color: var(--muted); font-size: .89rem; }
.card-icon {
  width: 44px; height: 44px; border-radius: 11px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
  background: linear-gradient(135deg, rgba(49,19,108,.11), rgba(240,165,0,.20));
}
.card-link { display: block; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }

.stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--grad-gold); opacity: .85;
}
.stat-card .num   { font-size: 2.1rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.stat-card .label { font-size: .76rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.stat-card .sub   { font-size: .76rem; color: var(--muted); margin-top: 6px; }

/* ------------------------------ Buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-family: inherit; font-size: .875rem; font-weight: 600; cursor: pointer;
  transition: all .15s ease; text-decoration: none !important; line-height: 1.3;
}
.btn--red    { background: var(--brand); color: #fff !important; }
.btn--red:hover{ background: var(--brand-dark); color: #fff !important; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(49,19,108,.30); }
.btn--gold   { background: var(--gold); color: #2A1D00 !important; }
.btn--gold:hover { background: #FFB81F; color: #2A1D00 !important; }
.btn--dark   { background: var(--ink); color: #fff !important; }
.btn--dark:hover { background: #000; color: #fff !important; }
.btn--ghost  { background: transparent; border-color: var(--line); color: var(--ink-2) !important; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand) !important; }
.btn--sm { padding: 7px 14px; font-size: .8rem; }
.btn--xs { padding: 4px 10px; font-size: .72rem; border-radius: 5px; }
.btn--danger {
  background: #FEF2F2; color: var(--bad) !important; border-color: #FECACA;
}
.btn--danger:hover { background: var(--bad); color: #fff !important; border-color: var(--bad); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.w-100 { width: 100%; }
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}
.mb-0{margin-bottom:0}.mb-8{margin-bottom:8px}.mb-16{margin-bottom:16px}.mb-24{margin-bottom:24px}
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.small       { font-size: .82rem; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ------------------------------- Panels -------------------------------- */
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.panel-head {
  padding: 15px 22px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; background: #FAFBFC;
}
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1.03rem; font-weight: 700; }
.panel-head p { margin: 3px 0 0; font-size: .82rem; color: var(--muted); }
.panel-body { padding: 22px; }
.panel-body--flush { padding: 0; }

/* ------------------------------- Forms --------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 660px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .8rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-family: inherit; font-size: .875rem;
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(49,19,108,.12);
}
.field textarea { min-height: 96px; resize: vertical; }
.field .help { font-size: .74rem; color: var(--muted); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--bad); }

fieldset.fs { border: none; padding: 0; margin: 0 0 8px; }
fieldset.fs legend {
  font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); padding: 0 0 8px;
  margin-bottom: 16px; border-bottom: 1px solid var(--line); width: 100%;
}
.check-row { display: flex; align-items: center; gap: 9px; font-size: .86rem; }
.check-row input { width: 17px; height: 17px; accent-color: var(--brand); }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: 999px; background: var(--brand-soft); color: var(--brand);
  font-size: .76rem; font-weight: 700;
}
.chip--gold { background: var(--gold-soft); color: #8A5E00; }

/* ------------------------------ Alerts --------------------------------- */
.alert {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 16px;
  font-size: .875rem; border: 1px solid transparent;
}
.alert-ic { font-weight: 800; flex: 0 0 auto; }
.alert-x {
  margin-left: auto; background: none; border: 0; font-size: 1.2rem;
  cursor: pointer; color: inherit; opacity: .55; line-height: 1;
}
.alert-x:hover { opacity: 1; }
.alert--info { background: var(--brand-soft); color: var(--brand-dark); border-color: #CFE0EE; }
.alert--ok   { background: #F0FDF4; color: var(--ok); border-color: #BBF7D0; }
.alert--warn { background: #FFFBEB; color: var(--warn); border-color: #FDE68A; }
.alert--bad  { background: #FEF2F2; color: var(--bad); border-color: #FECACA; }

/* ------------------------------ Badges --------------------------------- */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.b-ok   { background: #F0FDF4; color: var(--ok);   border: 1px solid #BBF7D0; }
.b-info { background: var(--brand-soft); color: var(--brand); border: 1px solid #CFE0EE; }
.b-warn { background: #FFFBEB; color: var(--warn); border: 1px solid #FDE68A; }
.b-bad  { background: #FEF2F2; color: var(--bad);  border: 1px solid #FECACA; }
.b-mute { background: #F3F4F6; color: var(--muted);border: 1px solid var(--line); }
.b-gold { background: var(--gold-soft); color: #8A5E00; border: 1px solid #FCE7A8; }

/* ------------------------------ Tables --------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data {
  width: 100%; border-collapse: collapse; font-size: .875rem; background: var(--card);
}
table.data th {
  text-align: left; padding: 12px 16px; background: #FAFBFC;
  font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted);
  border-bottom: 1px solid var(--line); white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
table.data td {
  padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle;
}
table.data tbody tr:hover { background: #FAFCFE; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data .t-main { font-weight: 600; color: var(--ink); }
table.data .t-sub  { font-size: .78rem; color: var(--muted); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.empty {
  text-align: center; padding: 52px 24px; color: var(--muted);
}
.empty-ic { font-size: 2.4rem; opacity: .35; margin-bottom: 10px; }
.empty h3 { margin: 0 0 6px; color: var(--ink); font-size: 1.05rem; }
.empty p  { margin: 0 0 18px; font-size: .88rem; }

/* ------------------------------ Filter bar ------------------------------ */
.filters {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.filters .field { min-width: 150px; flex: 1 1 150px; }
.filters .field--sm { min-width: 110px; flex: 0 1 130px; }
.filters .f-actions { display: flex; gap: 8px; }

/* ------------------------------ Pagination ------------------------------ */
.pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line);
  background: #FAFBFC; flex-wrap: wrap;
}
.pg, .pg-n {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 11px; border-radius: 7px;
  background: #fff; border: 1px solid var(--line); font-size: .82rem;
  font-weight: 600; color: var(--ink-2);
}
.pg:hover, .pg-n:hover { border-color: var(--brand); color: var(--brand); }
.pg.is-off { opacity: .4; pointer-events: none; }
.pg-n.is-cur { background: var(--brand); border-color: var(--brand); color: #fff; }
.pg-nums { display: inline-flex; gap: 6px; align-items: center; }
.pg-ellipsis { color: var(--muted); }
@media (max-width: 620px) { .pg-nums { display: none; } }

/* ============================ AUTH SHELL =============================== */
.auth-shell { background: var(--bg); min-height: 100vh; }

.auth-topbar { position: relative; z-index: 5; }

.auth-stage {
  display: grid; grid-template-columns: 400px 1fr; min-height: calc(100vh - 34px);
}
@media (max-width: 900px) { .auth-stage { grid-template-columns: 1fr; } }

.auth-brand {
  background: var(--grad); color: #fff; padding: 44px 38px;
  display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden;
}
.auth-brand::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 90% 10%, rgba(240,165,0,.28), transparent 55%);
}
.auth-brand > * { position: relative; z-index: 1; }
.auth-logo {
  width: auto; height: 104px; border-radius: 0;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,.42));
}
.auth-brand-text h1 {
  margin: 6px 0 4px; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
}
.auth-brand-sub { margin: 0; opacity: .85; font-size: .86rem; }
.auth-brand-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.auth-chip {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.26);
  padding: 5px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700;
}
.auth-brand-support {
  margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.2);
}
.auth-brand-support-tt { font-size: .78rem; opacity: .8; margin-bottom: 7px; }
.auth-brand-support-link {
  display: inline-flex; align-items: center; gap: 9px; color: #fff;
  font-weight: 800; font-size: 1.05rem;
}
.auth-brand-support-link:hover { color: var(--gold); }

.auth-main {
  display: flex; flex-direction: column; justify-content: center;
  padding: 44px 32px; position: relative;
}
.auth-wrap { width: 100%; max-width: 430px; margin: 0 auto; }
.auth-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.auth-head { padding: 26px 28px 0; }
.auth-head h1 { margin: 0 0 5px; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.auth-head p  { margin: 0; font-size: .84rem; color: var(--muted); }
.auth-body { padding: 22px 28px 26px; }
.auth-foot { text-align: center; padding: 22px 0 6px; font-size: .76rem; color: var(--muted); }

.auth-tabs {
  display: flex; gap: 6px; margin: 0 0 18px; background: var(--line-2);
  border-radius: 10px; padding: 4px;
}
.auth-tabs label {
  flex: 1; text-align: center; padding: 9px 6px; border-radius: 8px;
  font-weight: 600; font-size: .82rem; color: var(--muted); cursor: pointer;
  transition: background .15s, color .15s; user-select: none;
}
.auth-tabs label:hover { color: var(--ink); }
.hide-radio { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.auth-pane { display: none; }
#mOtp:checked ~ .auth-pane--otp, #mPw:checked ~ .auth-pane--pw { display: block; }
#mOtp:checked ~ .auth-tabs label[for=mOtp],
#mPw:checked  ~ .auth-tabs label[for=mPw] {
  background: var(--brand); color: #fff; box-shadow: 0 1px 3px rgba(49,19,108,.35);
}
#mOtp:checked ~ .auth-tabs label[for=mOtp]:hover,
#mPw:checked  ~ .auth-tabs label[for=mPw]:hover { color: #fff; }

.phone-row { display: flex; align-items: stretch; gap: 0; }
.phone-prefix {
  display: flex; align-items: center; padding: 0 13px;
  border: 1px solid var(--line); border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: var(--line-2); font-size: .875rem; font-weight: 700; color: var(--ink-2);
}
.phone-row input {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
  letter-spacing: .06em; font-weight: 600;
}

.otp-box {
  display: flex; gap: 9px; justify-content: space-between; margin-top: 6px;
}
.otp-box input {
  flex: 1; text-align: center; font-size: 1.5rem; font-weight: 800;
  letter-spacing: .34em; padding: 13px 8px !important;
}

.demo-otp {
  background: var(--gold-soft); border: 1px dashed var(--gold);
  border-radius: var(--radius-sm); padding: 12px 15px; margin-top: 14px;
  font-size: .84rem; color: #7A5300;
}
.demo-otp b { font-size: 1.3rem; letter-spacing: .2em; color: var(--brand-dark); display: block; margin-top: 4px; }

/* ============================ PANEL SHELL ============================== */
.panel-shell { background: var(--bg); }

.panel-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 252px; flex: 0 0 252px; background: var(--brand-deep); color: #fff;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
  z-index: 70; transition: margin-left .2s ease;
}
.side-collapsed .sidebar { margin-left: -252px; }

.sidebar-head {
  display: flex; align-items: center; gap: 11px; padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.sidebar-logo { border-radius: 9px; background: #fff; }
.sidebar-brand { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.sidebar-brand strong { font-size: .95rem; font-weight: 800; }
.sidebar-brand small  { font-size: .68rem; opacity: .68; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-x {
  display: none; background: none; border: 0; color: #fff;
  font-size: 1.5rem; cursor: pointer; line-height: 1;
}

.side-nav { flex: 1; overflow-y: auto; padding: 10px 9px; }
.side-div { height: 1px; background: rgba(255,255,255,.12); margin: 10px 7px; }
.side-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px;
  border-radius: 8px; color: rgba(255,255,255,.80); font-size: .875rem;
  font-weight: 600; margin-bottom: 2px; transition: background .13s, color .13s;
}
.side-link:hover { background: rgba(255,255,255,.09); color: #fff; }
.side-link.is-active { background: var(--brand); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.side-ic { width: 20px; text-align: center; opacity: .85; flex: 0 0 20px; }
.side-txt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-count {
  background: rgba(255,255,255,.16); border-radius: 999px; padding: 1px 8px;
  font-size: .68rem; font-weight: 800; min-width: 22px; text-align: center;
}
.side-link--out { color: rgba(255,255,255,.62); }

.sidebar-foot {
  border-top: 1px solid rgba(255,255,255,.12); padding: 12px 9px 14px;
}
.who { display: flex; align-items: center; gap: 10px; padding: 4px 9px 11px; }
.who-av {
  width: 34px; height: 34px; border-radius: 50%; background: var(--gold);
  color: #2A1D00; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem; flex: 0 0 34px;
}
.who-txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.who-txt strong { font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-txt small  { font-size: .68rem; opacity: .65; }

.panel-overlay {
  position: fixed; inset: 0; background: rgba(6,32,58,.55); z-index: 65;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.panel-overlay.show { opacity: 1; pointer-events: auto; }

.panel-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.panel-top {
  background: var(--card); border-bottom: 1px solid var(--line);
  padding: 13px 22px; display: flex; align-items: center; gap: 14px;
  position: sticky; top: 0; z-index: 40;
}
.panel-top-title { flex: 1; min-width: 0; }
.panel-top-title h1 { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -.015em; }
.panel-top-title p  { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.panel-top-right { display: flex; gap: 9px; align-items: center; }

.panel-body { padding: 24px 22px 40px; flex: 1; }
.panel-layout.is-wide .panel-body { padding-inline: 16px; }

.panel-foot {
  background: var(--card); border-top: 1px solid var(--line);
  padding: 14px 22px; display: flex; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; font-size: .78rem; color: var(--muted);
}

/* Desktop: allow collapsing the sidebar to give tables full width */
@media (min-width: 981px) {
  .sidebar { box-shadow: none; }
  .side-collapsed .sidebar { box-shadow: none; }
}
@media (max-width: 980px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; height: 100dvh;
    margin-left: -252px; transform: translateX(0);
  }
  .sidebar.open { margin-left: 0; box-shadow: 0 0 60px rgba(0,0,0,.4); }
  .side-collapsed .sidebar { margin-left: -252px; }
  .sidebar-x { display: block; }
  #sideToggle { display: inline-flex; }
}
@media (min-width: 981px) {
  #sideToggle { display: inline-flex; }
}

/* =============================== FOOTER =============================== */
.site-foot { background: var(--brand-deep); color: rgba(255,255,255,.78); margin-top: 0; }
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 40px;
  padding-top: 50px; padding-bottom: 40px;
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
.foot-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.foot-brand img { border-radius: 9px; background: #fff; }
.foot-brand strong { display: block; color: #fff; font-size: 1rem; font-weight: 800; }
.foot-brand small  { font-size: .74rem; opacity: .7; }
.foot-about { font-size: .86rem; line-height: 1.65; margin: 0; }
.site-foot h4 {
  color: #fff; font-size: .78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .09em; margin: 0 0 14px;
}
.site-foot a { display: block; color: rgba(255,255,255,.75); font-size: .875rem; padding: 4px 0; }
.site-foot a:hover { color: var(--gold); }
.foot-addr { font-size: .82rem; line-height: 1.6; margin: 10px 0 0; opacity: .7; }
.foot-bar {
  border-top: 1px solid rgba(255,255,255,.13); padding: 16px 0;
  font-size: .78rem; opacity: .7;
}

/* ============================== WIDGETS =============================== */
.wa-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.42); transition: transform .15s;
}
.wa-fab:hover { transform: scale(1.08); }

.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(180deg, var(--brand), var(--gold));
}
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item::before {
  content: ''; position: absolute; left: -26px; top: 5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand);
}
.tl-item.is-now::before { border-color: var(--gold); background: var(--gold); }
.tl-year { font-size: .74rem; font-weight: 800; color: var(--brand); letter-spacing: .06em; }
.tl-title { font-weight: 700; margin: 2px 0 3px; }
.tl-meta { font-size: .8rem; color: var(--muted); }
.tl-body { font-size: .86rem; color: var(--ink-2); margin-top: 6px; line-height: 1.6; }

.kv { display: grid; grid-template-columns: 190px 1fr; gap: 10px 18px; font-size: .89rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; color: var(--ink); }
@media (max-width: 620px) { .kv { grid-template-columns: 1fr; gap: 3px; } .kv dd { margin-bottom: 10px; } }

.tabs { display: flex; gap: 5px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab {
  padding: 9px 16px; font-size: .85rem; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer;
  background: none; border-top: 0; border-left: 0; border-right: 0; font-family: inherit;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--brand); border-bottom-color: var(--brand); }

.day-grid { display: grid; gap: 14px; }
.slot {
  display: grid; grid-template-columns: 118px 1fr auto; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow); transition: border-color .15s;
}
.slot:hover { border-color: var(--brand); }
.slot-time { font-weight: 800; color: var(--brand); font-size: .86rem; line-height: 1.4; }
.slot-time small { display: block; color: var(--muted); font-weight: 600; font-size: .72rem; }
.slot-title { font-weight: 700; font-size: .95rem; }
.slot-meta { font-size: .79rem; color: var(--muted); margin-top: 3px; }
@media (max-width: 720px) {
  .slot { grid-template-columns: 1fr; gap: 8px; }
}

.print-only { display: none; }

/* ============================== ERRORS ================================ */
.err-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 40px 24px; gap: 12px;
}
.err-code {
  font-size: clamp(4rem, 16vw, 8rem); font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.err-page h1 { margin: 0; font-size: 1.5rem; }
.err-page p  { margin: 0 0 18px; color: var(--muted); max-width: 460px; }

/* ============================= INSTALL ================================ */
.install-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 34px 20px;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(240,165,0,.14), transparent 50%),
    var(--grad);
}
.install-card {
  width: 100%; max-width: 640px; background: var(--card);
  border-radius: 16px; box-shadow: var(--shadow-lg); padding: 34px 36px;
}
.install-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.install-head img { border-radius: 12px; }
.install-head h1 { margin: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.install-head p  { margin: 3px 0 0; color: var(--muted); font-size: .86rem; }
.install-form h3 { margin: 0 0 10px; font-size: .95rem; font-weight: 700; }
.install-list { margin: 0; padding-left: 20px; font-size: .88rem; color: var(--ink-2); line-height: 1.9; }
.install-success { text-align: center; }
.install-tick {
  width: 68px; height: 68px; border-radius: 50%; background: #F0FDF4;
  border: 3px solid var(--ok); color: var(--ok); font-size: 2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.install-success h2 { margin: 0 0 6px; font-size: 1.3rem; }
.install-success > p { color: var(--muted); margin: 0 0 20px; }
.install-accounts {
  background: var(--line-2); border-radius: var(--radius-sm); padding: 16px 20px;
  font-size: .86rem; text-align: left; display: grid; gap: 6px;
}
.install-pw { margin-top: 8px; padding-top: 9px; border-top: 1px dashed var(--line); color: var(--muted); }
.install-warn {
  margin-top: 22px; font-size: .8rem; background: #FFFBEB;
  border: 1px solid #FDE68A; border-radius: var(--radius-sm);
  padding: 12px 15px; color: var(--warn); text-align: left;
}
.install-foot { margin-top: 26px; text-align: center; font-size: .76rem; color: var(--muted); }

/* ============================== PWA bar =============================== */
.pwa-install {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 95;
  background: var(--ink); color: #fff; border-radius: 12px;
  padding: 14px 16px; display: flex; gap: 14px; align-items: center;
  box-shadow: 0 14px 40px rgba(0,0,0,.34); font-size: .84rem;
}
.pwa-install-txt { flex: 1; }
.pwa-install-txt b { display: block; font-size: .9rem; }
.pwa-install-btn {
  background: var(--gold); color: #2A1D00; border: 0; border-radius: 8px;
  padding: 9px 18px; font-weight: 800; font-family: inherit; cursor: pointer;
}

/* ========================= SIDEBAR GROUPS ============================= */
.side-group {
  font-size: .63rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: rgba(255,255,255,.42); padding: 16px 12px 7px;
}
.side-group:first-child { padding-top: 6px; }

/* ========================== TOP BAR SEARCH ============================ */
.top-search {
  display: flex; align-items: center; background: var(--line-2);
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.top-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(49,19,108,.12); }
.top-search input {
  border: 0; background: transparent; padding: 8px 12px; font-family: inherit;
  font-size: .84rem; width: 210px; color: var(--ink); outline: none;
}
.top-search button {
  border: 0; background: transparent; padding: 7px 11px; cursor: pointer; font-size: .86rem;
}
@media (max-width: 760px) {
  .top-search { display: none; }
}

/* ============================== TOOLBAR =============================== */
.toolbar {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 18px; box-shadow: var(--shadow); margin-bottom: 18px;
}
.toolbar .grow { flex: 1; min-width: 200px; }
.toolbar input[type=search], .toolbar input[type=text] {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-family: inherit; font-size: .88rem;
}
.toolbar input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(49,19,108,.12); }
.kbd-hint {
  font-size: .72rem; color: var(--muted); background: var(--line-2);
  border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; font-weight: 700;
}

/* ============================ CHECK-IN ================================ */
.checkin-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; }
@media (max-width: 980px) { .checkin-grid { grid-template-columns: 1fr; } }

.checkin-hero {
  background: var(--grad); color: #fff; border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 18px; position: relative; overflow: hidden;
}
.checkin-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 88% 12%, rgba(240,165,0,.26), transparent 58%);
}
.checkin-hero > * { position: relative; z-index: 1; }
.checkin-hero .big { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.checkin-hero .cap { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; opacity: .82; }

.entity-toggle { display: flex; gap: 6px; flex-wrap: wrap; }
.entity-toggle label {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  font-size: .8rem; font-weight: 700; cursor: pointer; color: var(--muted);
  background: #fff; transition: all .14s; user-select: none;
}
.entity-toggle label:hover { border-color: var(--brand); color: var(--brand); }
#et:checked ~ .entity-toggle label[for=et],
#ev:checked ~ .entity-toggle label[for=ev],
#ed:checked ~ .entity-toggle label[for=ed],
#es:checked ~ .entity-toggle label[for=es] {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.et-pane { display: none; }
#et:checked ~ .et-pane--t, #ev:checked ~ .et-pane--v,
#ed:checked ~ .et-pane--d, #es:checked ~ .et-pane--s { display: block; }

/* ============================== BADGE ================================= */
.badge-page {
  display: flex; flex-wrap: wrap; gap: 22px; justify-content: center;
  padding: 26px; background: var(--bg); min-height: 100vh;
}
.pass {
  width: 302px; background: #fff; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; page-break-inside: avoid;
  break-inside: avoid;
}
.pass-head {
  background: var(--grad); color: #fff; padding: 15px 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.pass-head .org { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.pass-head .ed { font-size: .72rem; font-weight: 800; color: var(--gold); }
.pass-band {
  background: var(--gold); color: #2A1D00; text-align: center;
  font-weight: 800; font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; padding: 7px 10px;
}
.pass-body { padding: 18px 17px; text-align: center; flex: 1; }
.pass-name { font-size: 1.24rem; font-weight: 800; line-height: 1.2; margin-bottom: 4px; }
.pass-org  { font-size: .82rem; color: var(--muted); margin-bottom: 12px; min-height: 20px; }
.pass-role {
  display: inline-block; background: var(--brand-soft); color: var(--brand);
  font-weight: 700; font-size: .74rem; padding: 4px 12px; border-radius: 999px;
  margin-bottom: 14px;
}
.pass-meta { font-size: .76rem; color: var(--muted); line-height: 1.7; text-align: left; }
.pass-meta b { color: var(--ink); font-weight: 700; }
.pass-code {
  border-top: 1px dashed var(--line); padding: 12px; text-align: center;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 1.02rem; font-weight: 700; letter-spacing: .1em; color: var(--ink);
}
.pass-qr { display: flex; justify-content: center; padding: 4px 0 10px; }
.pass-foot {
  background: var(--brand-deep); color: rgba(255,255,255,.82);
  font-size: .64rem; text-align: center; padding: 7px 10px; letter-spacing: .04em;
}
@media print {
  .badge-page { padding: 0; background: #fff; gap: 0; }
  .pass { box-shadow: none; border: 1px solid #ccc; border-radius: 0;
          width: 100mm; margin: 0; page-break-after: always; }
}

/* ============================== BOOKLET =============================== */
.booklet { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.bk-cover {
  background: var(--grad); color: #fff; padding: 54px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.bk-cover::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(240,165,0,.3), transparent 62%);
}
.bk-cover > * { position: relative; z-index: 1; }
.bk-cover .ed { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.bk-cover h1 { margin: 14px 0 6px; font-size: clamp(1.7rem,4vw,2.6rem); font-weight: 800; letter-spacing: -.02em; }
.bk-cover .mis { font-size: 1.05rem; color: var(--gold); margin-bottom: 20px; }
.bk-cover .meta { font-size: .88rem; opacity: .9; line-height: 1.8; }
.bk-section { padding: 30px 34px; border-bottom: 1px solid var(--line); }
.bk-section:last-child { border-bottom: 0; }
.bk-h2 {
  font-size: 1.15rem; font-weight: 800; margin: 0 0 4px; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 11px;
}
.bk-h2::before { content: ''; width: 20px; height: 3px; border-radius: 2px; background: var(--gold); }
.bk-sub { margin: 0 0 18px; color: var(--muted); font-size: .84rem; }
.bk-note {
  background: var(--gold-soft); border-left: 3px solid var(--gold);
  padding: 12px 16px; font-size: .82rem; color: #7A5300; border-radius: 0 6px 6px 0;
}
@media print {
  .booklet { border: 0; }
  .bk-section { page-break-inside: avoid; break-inside: avoid; padding: 18px 0; }
  .bk-cover { page-break-after: always; }
}

/* ============================ ACTIVITY ================================ */
.feed { position: relative; padding-left: 30px; }
.feed::before {
  content: ''; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--brand), var(--gold));
}
.feed-item { position: relative; padding-bottom: 20px; }
.feed-item::before {
  content: ''; position: absolute; left: -30px; top: 5px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; border: 3px solid var(--brand);
  font-size: 10px; line-height: 1;
}
.feed-item.is-del::before { border-color: var(--bad); }
.feed-item.is-add::before { border-color: var(--ok); }
.feed-item.is-auth::before { border-color: var(--gold); }
.feed-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.feed-act {
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  padding: 2px 9px; border-radius: 999px;
}
.feed-act.is-add { background: #F0FDF4; color: var(--ok); }
.feed-act.is-del { background: #FEF2F2; color: var(--bad); }
.feed-act.is-auth{ background: var(--gold-soft); color: #8A5E00; }
.feed-act.is-edit{ background: var(--brand-soft); color: var(--brand); }
.feed-when { font-size: .75rem; color: var(--muted); }
.feed-who { font-size: .82rem; font-weight: 700; }
.feed-what { font-size: .86rem; margin-top: 4px; color: var(--ink-2); }
.feed-meta { font-size: .76rem; color: var(--muted); margin-top: 3px; }

/* =========================== STAT ROW ================================= */
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: .82rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--shadow);
}
.pill-stat b { color: var(--brand); font-size: 1rem; }
.pill-stat.gold b { color: #8A5E00; }
.pill-stat.warn b { color: var(--warn); }
.pill-stat.bad b  { color: var(--bad); }

/* ========================= METER / OCCUPANCY ========================== */
.meter { background: var(--line-2); border-radius: 999px; height: 10px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--gold)); }
.meter > i.full { background: var(--bad); }
.meter > i.mid  { background: var(--warn); }

/* ====================== myf.org.in IMAGERY LAYER ======================== */

/* Hero with a real festival photograph under the brand gradient.
   Gradient runs dark→light left-to-right so copy stays legible. */
.hero--photo {
  background-image:
    linear-gradient(100deg, rgba(11,8,47,.95) 0%, rgba(49,19,108,.86) 45%, rgba(11,8,47,.58) 100%),
    url('../img/hero-02.jpg');
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
}
.hero--photo::after {
  background: radial-gradient(ellipse at 78% 16%, rgba(209,155,69,.30), transparent 56%);
}
.hero-eyebrow b { color: var(--gold); }

/* --- brand logo (the real 10th MYF emblem) --- */
.brand-logo { height: 44px; width: auto; }
.brand-logo--sm { height: 34px; }
.brand-logo--lg { height: 92px; filter: drop-shadow(0 8px 22px rgba(0,0,0,.35)); }

/* --- photo mosaic in the About block --- */
.mosaic {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-bottom: 26px;
}
.mosaic figure {
  margin: 0; position: relative; overflow: hidden; border-radius: 14px;
  aspect-ratio: 4 / 3; background: var(--line-2); box-shadow: var(--shadow);
}
.mosaic figure.tall { grid-row: span 2; aspect-ratio: auto; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block;
              transition: transform .55s ease; }
.mosaic figure:hover img { transform: scale(1.07); }
.mosaic figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 14px 11px;
  color: #fff; font-size: .76rem; font-weight: 600;
  background: linear-gradient(to top, rgba(11,8,47,.92), rgba(11,8,47,0));
  opacity: 0; transition: opacity .3s ease;
}
.mosaic figure:hover figcaption { opacity: 1; }
@media (max-width: 900px) { .mosaic { grid-template-columns: repeat(2, 1fr); } }

/* --- "Memorable Moments" gallery --- */
.moments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.moment {
  position: relative; margin: 0; overflow: hidden; border-radius: 14px;
  aspect-ratio: 4 / 3; background: var(--line-2); box-shadow: var(--shadow);
}
.moment.tall { aspect-ratio: 3 / 4; }
.moment img { width: 100%; height: 100%; object-fit: cover; display: block;
              transition: transform .6s ease; }
.moment:hover img { transform: scale(1.08); }
.moment figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 34px 14px 12px; color: #fff; font-size: .78rem; font-weight: 600;
  background: linear-gradient(to top, rgba(11,8,47,.93), rgba(11,8,47,0));
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.moment:hover figcaption { opacity: 1; transform: none; }
.moment::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  border: 2px solid transparent; border-radius: 14px; transition: border-color .3s;
}
.moment:hover::after { border-color: var(--gold); }
@media (max-width: 980px) { .moments { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .moments { grid-template-columns: repeat(2, 1fr); } }

/* --- Mising cuisine strip --- */
.cuisine { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; }
.dish { text-align: center; }
.dish .dish-img {
  aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--gold); background: var(--line-2);
  box-shadow: 0 6px 18px rgba(11,8,47,.14);
  transition: transform .3s ease, box-shadow .3s ease;
}
.dish:hover .dish-img { transform: translateY(-5px); box-shadow: 0 12px 26px rgba(11,8,47,.22); }
.dish img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dish h4 { margin: 11px 0 3px; font-size: .86rem; font-weight: 700; color: var(--ink); }
.dish p { margin: 0; font-size: .73rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 980px) { .cuisine { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) { .cuisine { grid-template-columns: repeat(2, 1fr); } }

/* --- dark caption panel beside the mosaic --- */
.showcase-note {
  background: var(--brand-deep); color: rgba(255,255,255,.86);
  border-radius: 14px; padding: 26px; position: relative; overflow: hidden;
}
.showcase-note::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 90% 0%, rgba(209,155,69,.30), transparent 60%);
}
.showcase-note > * { position: relative; }
.showcase-note h3 { color: #fff; margin: 0 0 10px; }
.showcase-note p { color: rgba(255,255,255,.82); }

/* --- login: photograph behind the brand panel --- */
.auth-brand--photo {
  background-image:
    linear-gradient(160deg, rgba(49,19,108,.94) 0%, rgba(11,8,47,.93) 100%),
    url('../img/hero-01.jpg');
  background-size: cover;
  background-position: center;
}
.auth-brand--photo::after {
  background: radial-gradient(ellipse at 20% 90%, rgba(209,155,69,.34), transparent 58%);
}

/* ============================ RESPONSIVE ============================== */@media (max-width: 900px) {
  .pub-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .pub-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(82vw, 320px);
    background: var(--card); flex-direction: column; align-items: stretch;
    padding: 72px 20px 24px; gap: 4px; z-index: 75;
    transform: translateX(105%); transition: transform .22s ease;
    box-shadow: -20px 0 50px rgba(0,0,0,.2); overflow-y: auto;
  }
  .pub-nav.open { transform: translateX(0); }
  .pub-nav > a { padding: 13px 14px; font-size: .95rem; border-radius: 9px; }
  .pub-nav .nav-cta { margin: 14px 0 0; text-align: center; padding: 13px; }
  .hero { padding: 48px 0 44px; }
  .section { padding: 42px 0; }
  .panel-body { padding: 18px 14px 36px; }
  .panel-top { padding: 11px 14px; }
  .panel-top-right .btn--ghost { display: none; }
  .filters { padding: 13px 14px; }
}

@media (max-width: 560px) {
  .brand-text strong { font-size: .93rem; }
  .brand-text small  { font-size: .66rem; }
  .hero-meta { gap: 18px; }
  .install-card { padding: 26px 20px; }
  .auth-main { padding: 30px 18px; }
  .auth-brand { padding: 32px 24px; }
}

/* ============================== PRINT ================================= */
@media print {
  .site-header, .ticker, .site-foot, .wa-fab, .sidebar, .panel-top,
  .panel-foot, .filters, .pager, .btn, .pub-toggle, .accent-bar { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .panel-layout { display: block; }
  .panel-body { padding: 0; }
  .panel, .card, table.data { box-shadow: none; border-color: #ccc; }
  table.data th { background: #f2f2f2 !important; -webkit-print-color-adjust: exact; }
  .print-only { display: block; }
  a { color: #000; }
}
