/* ==========================================================
   Istanbul Birthday Celebration — Amb. Dr. Adekunle Azeez Badmus
   ========================================================== */

:root {
  --cream: #FBF6EC;
  --cream-2: #F3E6CC;
  --paper: #FFFDF7;
  --sand: #EADBBE;
  --gold: #B8862F;
  --gold-soft: #D9C08C;
  --gold-bright: #E9C77B;
  --brown: #4A2A17;
  --brown-2: #5A3520;
  --brown-deep: #2E1A0E;
  --ink: #3A2414;
  --ink-soft: #5B3A1F;
  --muted: #7A5518;
  --red: #8A2B1F;
  --red-dark: #6E2117;
  --on-dark: #F6E7C8;
  --success-bg: #EEF3E6;
  --success-ink: #2F4A1A;
  --error-bg: #FBEAE7;
  --error-ink: #7A1E14;

  --f-display: 'Cinzel', Georgia, serif;
  --f-serif: 'Cormorant Garamond', Georgia, serif;
  --f-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1200px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--muted); }
a:hover { color: var(--brown); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--brown); color: var(--on-dark); padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--brown); color: var(--on-dark);
  border-bottom: 2px solid var(--gold);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand {
  font-family: var(--f-display); font-weight: 600; letter-spacing: 2px; font-size: 17px;
  color: var(--gold-bright); text-decoration: none; white-space: nowrap;
}
.brand:hover { color: #fff1cf; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--on-dark); text-decoration: none; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold-bright); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: inline-flex; border: 1px solid var(--gold-bright); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  min-width: 44px; min-height: 36px; padding: 0 10px; border: 0; background: transparent; color: var(--gold-bright);
  font-family: var(--f-sans); font-size: 13px; font-weight: 600; letter-spacing: 1px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--gold-bright); color: var(--ink); }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--gold-bright); color: var(--gold-bright);
  width: 46px; height: 46px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}

@media (max-width: 1080px) {
  .nav-right { gap: 10px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--brown); border-bottom: 2px solid var(--gold); padding: 8px 24px 16px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; font-size: 15px; }
}
@media (max-width: 480px) {
  .nav { gap: 10px; }
  .brand { font-size: 13px; letter-spacing: 1px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .nav-right { gap: 8px; flex-shrink: 0; }
  .lang-switch button { min-width: 40px; padding: 0 8px; }
}
@media (max-width: 400px) {
  .brand { font-size: 12px; letter-spacing: .3px; }
  .lang-switch button { min-width: 36px; padding: 0 6px; font-size: 12px; }
  .nav-toggle { width: 42px; height: 42px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font-family: var(--f-sans); font-size: 15px; font-weight: 600; letter-spacing: 1px;
  text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--red); color: #FFF8EC; }
.btn-primary:hover { background: var(--red-dark); color: #FFF8EC; }
.btn-outline { border-color: var(--brown); color: var(--brown); background: transparent; }
.btn-outline:hover { background: var(--brown); color: var(--on-dark); }
.btn-gold { background: var(--gold-bright); color: var(--ink); }
.btn-gold:hover { background: #f2d494; color: var(--ink); }
.btn-ghost-light { border-color: var(--gold-bright); color: var(--gold-bright); background: transparent; }
.btn-ghost-light:hover { background: var(--gold-bright); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13px; }

/* ---------- Section scaffolding ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--cream-2); border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold); }
.section-dark { background: var(--brown); color: var(--on-dark); }
.eyebrow {
  font-size: 13px; letter-spacing: 4px; text-transform: uppercase; color: var(--red); font-weight: 600; margin: 0;
}
.section-dark .eyebrow { color: var(--gold-bright); }
.h2 { font-family: var(--f-display); font-size: clamp(30px, 4vw, 44px); line-height: 1.15; color: var(--brown); margin: 12px 0 0; }
.section-dark .h2 { color: var(--gold-bright); }
.lede { font-family: var(--f-serif); font-size: 22px; color: var(--ink-soft); margin: 12px auto 0; max-width: 640px; }
.center { text-align: center; }
.section-head { margin-bottom: 40px; }

/* ---------- Hero ---------- */
.hero { background: var(--cream-2); border-bottom: 3px solid var(--gold); overflow: hidden; }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding: 64px 24px; }
.hero-portrait { flex: 1 1 320px; display: flex; justify-content: center; }
.arch {
  padding: 10px; border: 2px solid var(--gold); border-radius: 220px 220px 14px 14px; background: var(--cream);
  box-shadow: 0 24px 60px rgba(74, 42, 23, .18);
}
.arch img {
  width: 100%; max-width: 380px; height: 500px; object-fit: cover; object-position: top;
  border-radius: 210px 210px 8px 8px;
}
.hero-copy { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero h1 {
  margin: 0; font-family: var(--f-display); font-size: clamp(38px, 5.4vw, 60px); line-height: 1.08; color: var(--brown);
}
.hero-name { margin: 0; font-family: var(--f-serif); font-size: 30px; line-height: 1.3; color: var(--ink-soft); }
.hero-name em { display: block; font-size: 24px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }

.countdown { display: flex; flex-wrap: wrap; gap: 14px; margin: 6px 0 0; padding: 0; list-style: none; }
.countdown li {
  min-width: 92px; padding: 16px 12px; text-align: center;
  background: var(--brown); border: 1px solid var(--gold); border-radius: 10px;
}
.countdown .num { display: block; font-family: var(--f-display); font-size: 40px; line-height: 1.1; color: var(--gold-bright); font-weight: 600; }
.countdown .lbl { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--on-dark); }
.countdown-done {
  font-family: var(--f-display); font-size: 26px; color: var(--red); margin: 0;
}

/* ---------- About ---------- */
.about { display: flex; flex-wrap: wrap; gap: 48px; }
.about-head { flex: 1 1 300px; }
.about-body { flex: 999 1 520px; min-width: 0; font-family: var(--f-serif); font-size: 22px; line-height: 1.6; }
.about-body p { margin: 0 0 18px; }

/* ---------- Milestones ---------- */
.milestones { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.milestones li { padding: 24px; border-top: 3px solid var(--gold-bright); background: var(--brown-2); border-radius: 0 0 10px 10px; }
.milestones .year { font-family: var(--f-display); font-size: 22px; line-height: 1.25; color: var(--gold-bright); }
.milestones p { margin: 8px 0 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery-item {
  position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in;
  background: var(--sand); aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-empty {
  aspect-ratio: 4 / 3; border-radius: 12px; border: 1px dashed var(--gold); background: var(--sand);
  display: flex; align-items: center; justify-content: center; color: var(--muted); letter-spacing: 1px;
}

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(20, 11, 5, .92);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-height: 80vh; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: var(--on-dark); margin-top: 12px; font-family: var(--f-serif); font-size: 20px; }
.lb-btn {
  position: absolute; width: 50px; height: 50px; border-radius: 999px; border: 1px solid var(--gold-bright);
  background: rgba(46, 26, 14, .7); color: var(--gold-bright); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Istanbul week ---------- */
.week-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.hotel-card { padding: 16px 20px; background: var(--cream); border: 1px solid var(--gold); border-radius: 10px; max-width: 400px; }
.hotel-card .tag { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); font-weight: 600; }
.hotel-card .name { font-family: var(--f-serif); font-size: 22px; color: var(--brown); margin-top: 4px; line-height: 1.3; }
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.day { padding: 22px 18px; border-radius: 12px; background: var(--paper); border: 1px solid var(--gold-soft); }
.day .date { font-family: var(--f-display); font-size: 26px; font-weight: 600; }
.day .weekday { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; opacity: .85; }
.day .event { margin-top: 12px; line-height: 1.45; }
.day.is-highlight { background: var(--red); border-color: var(--red); color: #FFF8EC; }
.map-frame { margin-top: 32px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gold); background: var(--sand); }
.map-frame iframe { display: block; width: 100%; height: 360px; border: 0; }

/* ---------- Party ---------- */
.party-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.party-card { padding: 28px; text-align: center; background: var(--paper); border: 1px solid var(--gold-soft); border-radius: 12px; }
.party-card svg { margin: 0 auto; }
.party-card .tag { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); font-weight: 600; margin-top: 10px; }
.party-card .val { font-family: var(--f-serif); font-size: 22px; margin-top: 6px; line-height: 1.3; overflow-wrap: anywhere; }
.party-card .note { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.swatches { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.swatches span { width: 26px; height: 26px; border-radius: 999px; border: 1px solid var(--gold); }
.live-bar {
  margin-top: 28px; padding: 22px 28px; background: var(--brown); color: var(--on-dark); border-radius: 12px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.live-bar p { margin: 0; font-family: var(--f-serif); font-size: 22px; }

/* ---------- Wishes form ---------- */
.wishes-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.wish-form {
  flex: 1 1 360px; padding: 32px; background: var(--paper); border: 1px solid var(--gold-soft); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 16px;
}
.wish-form h3 { margin: 0; font-family: var(--f-display); font-size: 24px; color: var(--brown); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: flex; flex-wrap: wrap; gap: 12px; }
.field-row .field { flex: 1 1 160px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--brown); }
.field .hint { font-size: 13px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid #B8A07A; border-radius: 8px; background: var(--cream);
}
.textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 140px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); outline: 2px solid var(--gold-soft); outline-offset: 0; }
.char-count { font-size: 13px; color: var(--muted); text-align: right; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 0; padding: 12px 14px; border-radius: 8px; font-size: 15px; }
.notice-success { background: var(--success-bg); border: 1px solid #7C9A5B; color: var(--success-ink); }
.notice-error { background: var(--error-bg); border: 1px solid #C7695C; color: var(--error-ink); }
.notice[hidden] { display: none; }

/* ---------- Wish cards ---------- */
.wish-preview { flex: 999 1 520px; min-width: 0; }
.wish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.wish-masonry { column-width: 320px; column-gap: 18px; }
.wish-masonry .wish-card { break-inside: avoid; margin: 0 0 18px; }
.wish-card {
  padding: 24px; background: var(--paper); border: 1px solid var(--gold-soft); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 14px; animation: rise .5s ease both;
}
.wish-card.is-featured { border: 2px solid var(--gold); box-shadow: 0 10px 30px rgba(184, 134, 47, .18); }
.wish-badge {
  align-self: flex-start; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600;
  background: var(--gold-bright); color: var(--ink); padding: 4px 10px; border-radius: 999px;
}
.wish-photo { width: 100%; max-height: 320px; object-fit: cover; border-radius: 10px; }
.wish-msg { margin: 0; font-family: var(--f-serif); font-size: 21px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.wish-foot { margin-top: auto; border-top: 1px solid var(--sand); padding-top: 12px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.wish-name { font-weight: 600; color: var(--brown); overflow-wrap: anywhere; }
.wish-meta { font-size: 13px; color: var(--muted); }
.wish-ago { font-size: 12px; color: #8C7350; white-space: nowrap; }
.wish-empty { font-family: var(--f-serif); font-size: 22px; color: var(--ink-soft); text-align: center; padding: 32px 0; margin: 0; }
.preview-foot { display: flex; justify-content: center; margin-top: 24px; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Wall page ---------- */
.wall-band { background: var(--cream-2); border-bottom: 3px solid var(--gold); }
.wall-band-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; padding: 56px 24px 40px; }
.wall-band h1 { margin: 12px 0 0; font-family: var(--f-display); font-size: clamp(36px, 5vw, 52px); line-height: 1.1; color: var(--brown); }
.stats { flex: 1 1 280px; max-width: 380px; display: flex; gap: 14px; }
.stat { flex: 1 1 0; padding: 16px; background: var(--brown); border: 1px solid var(--gold); border-radius: 10px; text-align: center; }
.stat .num { font-family: var(--f-display); font-size: 36px; color: var(--gold-bright); font-weight: 600; line-height: 1.2; }
.stat .lbl { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--on-dark); }

.screen { background: var(--brown-deep); color: var(--on-dark); }
.screen-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center;
  padding: 56px 24px; min-height: 420px;
}
.screen:fullscreen .screen-inner { min-height: 100vh; padding: 64px; }
.screen:fullscreen .screen-msg { font-size: clamp(36px, 4vw, 64px); max-width: 1300px; }
.screen-label { font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold-bright); font-weight: 600; margin: 0; }
.screen-msg {
  margin: 0; max-width: 880px; font-family: var(--f-serif); font-style: italic; font-size: clamp(26px, 3vw, 36px); line-height: 1.35; color: #FFF8EC;
  white-space: pre-line; overflow-wrap: anywhere; transition: opacity .5s;
}
.screen-msg.is-fading { opacity: 0; }
.screen-name { font-family: var(--f-display); font-size: 20px; color: var(--gold-bright); }
.screen-meta { font-size: 14px; color: #D9C59C; margin-top: 4px; }
.screen-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.round-btn {
  width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--gold-bright); background: transparent; color: var(--gold-bright);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.round-btn:hover { background: var(--gold-bright); color: var(--ink); }
.screen-pos { font-size: 14px; color: #D9C59C; min-width: 72px; }

.wall-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  min-height: 44px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  background: var(--paper); color: var(--brown); border: 1px solid #B8A07A;
}
.pill[aria-pressed="true"] { background: var(--brown); color: var(--on-dark); border-color: var(--brown); }
.search { flex: 0 1 320px; }
.search .input { border-radius: 999px; background: var(--paper); }
.wall-status { font-size: 14px; color: var(--muted); margin: 24px 0 18px; }
.new-banner {
  position: sticky; top: 80px; z-index: 20; margin: 0 auto 18px; display: flex; justify-content: center;
}
.new-banner[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown-deep); color: #E6D3AE; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: 48px 24px; }
.footer-brand { font-family: var(--f-display); font-size: 20px; color: var(--gold-bright); letter-spacing: 2px; }
.footer-sub { font-size: 14px; margin-top: 6px; }
.share { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Admin ---------- */
.admin-shell { max-width: 1100px; margin: 0 auto; padding: 40px 24px 80px; }
.admin-card { background: var(--paper); border: 1px solid var(--gold-soft); border-radius: var(--radius); padding: 32px; }
.login-card { max-width: 440px; margin: 40px auto; display: flex; flex-direction: column; gap: 16px; }
.admin-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.admin-bar h1 { margin: 0; font-family: var(--f-display); font-size: 30px; color: var(--brown); }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.admin-list { display: flex; flex-direction: column; gap: 16px; }
.admin-item { display: flex; flex-wrap: wrap; gap: 20px; padding: 20px; background: var(--paper); border: 1px solid var(--gold-soft); border-radius: 12px; }
.admin-item img { width: 140px; height: 140px; object-fit: cover; border-radius: 8px; }
.admin-item .body { flex: 999 1 320px; min-width: 0; }
.admin-item .msg { margin: 8px 0 0; font-family: var(--f-serif); font-size: 20px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.admin-item .actions { flex: 1 1 180px; display: flex; flex-direction: column; gap: 8px; }
.status-chip { display: inline-block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; padding: 3px 10px; border-radius: 999px; margin-left: 8px; }
.status-pending { background: #FFF1CC; color: #6B4A00; }
.status-approved { background: var(--success-bg); color: var(--success-ink); }
.status-rejected { background: var(--error-bg); color: var(--error-ink); }

/* ---------- Confetti canvas ---------- */
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero-inner { padding: 40px 16px; gap: 36px; }
  .wrap { padding: 0 16px; }
  .arch img { height: 420px; }
  .countdown li { min-width: 70px; padding: 12px 8px; }
  .countdown .num { font-size: 30px; }
  .wish-form, .admin-card { padding: 22px; }
}

/* ---------- Gallery: "show more" on the public site ---------- */
.gallery-foot { display: flex; justify-content: center; margin-top: 24px; }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 14px 10px;
  background: linear-gradient(transparent, rgba(30, 16, 8, .78)); color: #FFF8EC;
  font-family: var(--f-serif); font-size: 17px; text-align: left; line-height: 1.3;
}

/* ---------- Admin: section tabs ---------- */
.main-tabs { display: inline-flex; background: var(--sand); border-radius: 999px; padding: 4px; gap: 4px; }
.main-tabs button {
  min-height: 42px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-family: var(--f-sans); font-size: 15px; font-weight: 600; color: var(--brown);
}
.main-tabs button[aria-selected="true"] { background: var(--brown); color: var(--on-dark); }

/* ---------- Admin: gallery upload ---------- */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  padding: 36px 20px; border: 2px dashed var(--gold); border-radius: var(--radius); background: var(--paper);
  color: var(--brown); cursor: pointer; transition: background .2s, border-color .2s;
}
.dropzone:hover, .dropzone.is-over { background: #FFF6E2; border-color: var(--red); }
.dropzone strong { font-family: var(--f-display); font-size: 20px; }
.dropzone .hint { font-size: 13px; color: var(--muted); }
.dropzone:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }

.upload-queue { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.upload-queue:empty { display: none; }
.q-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 140px auto; align-items: center; gap: 12px;
  padding: 10px 14px; background: var(--paper); border: 1px solid var(--gold-soft); border-radius: 10px; font-size: 14px;
}
.q-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-bar { height: 6px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.q-fill { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }
.q-row.is-done .q-fill { background: #5E8C3A; }
.q-row.is-done .q-state { color: var(--success-ink); }
.q-row.is-error { border-color: #C7695C; }
.q-row.is-error .q-state { color: var(--error-ink); }
@media (max-width: 600px) { .q-row { grid-template-columns: minmax(0, 1fr) auto; } .q-bar { grid-column: 1 / -1; } }

.gallery-help { color: var(--muted); font-size: 14px; margin: 20px 0 12px; }
.gallery-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.g-item {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--gold-soft);
  border-radius: 12px; overflow: hidden; transition: box-shadow .2s, opacity .2s;
}
.g-item.is-dragging { opacity: .4; }
.g-item.is-drop-target { box-shadow: 0 0 0 3px var(--red); }
.g-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--sand); overflow: hidden; }
.g-thumb a { display: block; width: 100%; height: 100%; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-pos {
  position: absolute; top: 8px; left: 8px; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brown); color: var(--gold-bright); font-size: 13px; font-weight: 600;
}
.g-handle {
  position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 8px; border: 0;
  background: rgba(255, 253, 247, .92); color: var(--brown); cursor: grab; display: flex; align-items: center; justify-content: center;
}
.g-handle:active { cursor: grabbing; }
.g-fields { display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 0; }
.g-fields .input { min-height: 40px; font-size: 14px; }
.g-status { font-size: 12px; color: var(--muted); min-height: 16px; }
.g-actions { display: flex; gap: 8px; padding: 10px 12px 12px; }
.g-actions .btn:last-child { margin-left: auto; }

/* ---------- Floating wishes menu ---------- */
.wish-dock {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 60;
  display: flex; flex-direction: column; gap: 8px;
}
.dock-btn {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 11px; border-radius: 14px 0 0 14px; text-decoration: none;
  font-family: var(--f-sans); font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  box-shadow: -4px 6px 18px rgba(46, 26, 14, .25); transition: padding .2s, background .2s, transform .2s;
}
.dock-btn span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.dock-btn:hover, .dock-btn:focus-visible { padding-right: 17px; }
.dock-send { background: var(--red); color: #FFF8EC; border: 1px solid var(--red); }
.dock-send:hover { background: var(--red-dark); color: #FFF8EC; }
.dock-wall { background: var(--brown); color: var(--gold-bright); border: 1px solid var(--gold); border-right: 0; }
.dock-wall:hover { background: var(--brown-2); color: #FFE7AE; }
.dock-btn[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold-bright), -4px 6px 18px rgba(46, 26, 14, .25); }
.screen:fullscreen ~ .wish-dock, body:has(.screen:fullscreen) .wish-dock { display: none; }

@media (max-width: 760px) {
  .wish-dock {
    top: auto; right: 12px; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    transform: none; flex-direction: row; gap: 8px;
  }
  .dock-btn {
    flex: 1 1 0; flex-direction: row; justify-content: center; gap: 8px;
    min-height: 50px; padding: 0 12px; border-radius: 999px; letter-spacing: .5px; font-size: 13px;
    box-shadow: 0 8px 22px rgba(46, 26, 14, .3);
  }
  .dock-btn span { writing-mode: horizontal-tb; transform: none; }
  .dock-btn:hover, .dock-btn:focus-visible { padding-right: 12px; }
  .dock-wall { border-right: 1px solid var(--gold); }
  .dock-btn[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--gold-bright), 0 8px 22px rgba(46, 26, 14, .3); }
  /* keep the footer clear of the bar */
  .site-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .wish-dock { display: none; } }
