/* =========================================
   Dijital Düğünüm — Shared Stylesheet
   Wedding palette: ivory / cream / blush / brown / gold
   ========================================= */

:root {
  --ivory: #FAF7F2;
  --cream: #F3ECE0;
  --blush: #D4A59A;
  --blush-dark: #BE8B7E;
  --gold: #B89968;
  --brown: #4A3F35;
  --brown-soft: #5A4F44;
  --muted: #8A7D70;
  --line: #EEE6DB;
  --card: #FFFEFB;
  --danger: #B5524F;
  --success: #547A57;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(74, 63, 53, 0.06);
  --shadow-md: 0 4px 18px rgba(74, 63, 53, 0.08);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'DM Sans', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Restore the HTML `hidden` attribute for elements that set an
   explicit `display` (e.g. .callout uses display:flex, which would
   otherwise win over the user-agent rule for [hidden]). */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ivory);
  color: var(--brown);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a {
  color: var(--blush-dark);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--brown); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--brown);
  letter-spacing: .2px;
  margin: 0 0 var(--space-4) 0;
}
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; }
h2 { font-size: clamp(22px, 3vw, 32px); line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.3; }

p { margin: 0 0 var(--space-4) 0; color: var(--brown-soft); }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left:  max(var(--space-5), env(safe-area-inset-left));
  padding-right: max(var(--space-5), env(safe-area-inset-right));
}

/* =========================================
   Navigation (marketing pages)
   ========================================= */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0;
}
.nav-brand {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--brown);
  letter-spacing: 1px;
}
.nav-brand .accent { color: var(--blush-dark); }
.nav-links { display: flex; gap: var(--space-5); align-items: center; }
.nav-links a { color: var(--brown-soft); font-size: 14px; }
.nav-links a:hover { color: var(--brown); }

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .3px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--blush);
  color: #FFFEFB;
}
.btn-primary:hover { background: var(--blush-dark); color: #FFFEFB; }
.btn-secondary {
  background: transparent;
  color: var(--brown);
  border-color: var(--brown);
}
.btn-secondary:hover { background: var(--brown); color: var(--ivory); }
.btn-ghost {
  background: transparent;
  color: var(--brown-soft);
}
.btn-ghost:hover { color: var(--brown); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* =========================================
   Forms
   ========================================= */
.form { display: flex; flex-direction: column; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--brown);
  letter-spacing: .2px;
}
.field input, .field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--brown);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blush);
  box-shadow: 0 0 0 3px rgba(212, 165, 154, 0.18);
}
.field .hint {
  font-size: 12px;
  color: var(--muted);
}
.field-error {
  display: none;
  font-size: 12px;
  color: var(--danger);
}
.field.has-error input,
.field.has-error textarea {
  border-color: var(--danger);
}
.field.has-error .field-error { display: block; }

/* =========================================
   Alerts (inline form feedback)
   ========================================= */
.alert {
  display: none;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid transparent;
}
.alert.show { display: block; }
.alert-error {
  background: #F8E9E8;
  color: var(--danger);
  border-color: #EFD0CE;
}
.alert-success {
  background: #E6EFE6;
  color: var(--success);
  border-color: #CFDFCF;
}
.alert-info {
  background: #FBF3E9;
  color: var(--brown);
  border-color: var(--cream);
}

/* =========================================
   Auth card layout
   ========================================= */
.auth-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-4);
  background:
    radial-gradient(1200px 600px at 50% -10%, #F5E9DD 0%, transparent 60%),
    var(--ivory);
}

/* "Back to home" link — lives at the top-left INSIDE the auth card */
.back-home {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin-bottom: var(--space-3);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brown-soft);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.back-home:hover { color: var(--brown); border-color: var(--blush); background: #FBF3E9; }
.back-home .arrow { font-size: 14px; line-height: 1; margin-top: -1px; }
/* Ensure the auth card's children stack so align-self works */
.auth-card { display: flex; flex-direction: column; }

/* Two-column form row for name + surname (stacks on phone) */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  box-shadow: var(--shadow-md);
}
.auth-card .brand {
  text-align: center;
  margin-bottom: var(--space-6);
}
.auth-card .brand-mark {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--brown);
  letter-spacing: 1px;
}
.auth-card .brand-mark .accent { color: var(--blush-dark); }
.auth-card .brand-rule {
  width: 40px; height: 2px; background: var(--blush);
  margin: var(--space-3) auto 0 auto;
}
.auth-card h1 {
  text-align: center;
  font-size: 26px;
  margin-bottom: var(--space-2);
}
.auth-card .subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: var(--space-5);
}
.auth-card .foot {
  margin-top: var(--space-5);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.auth-card .foot a { color: var(--blush-dark); font-weight: 600; }

.divider-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: -4px;
}
.forgot-link { font-size: 13px; color: var(--muted); }
.forgot-link:hover { color: var(--brown); }

/* =========================================
   Landing page
   ========================================= */
.hero {
  padding: var(--space-7) 0 var(--space-8) 0;
  text-align: center;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blush-dark);
  margin-bottom: var(--space-4);
}
.hero h1 {
  margin-bottom: var(--space-4);
  font-size: clamp(34px, 5.5vw, 60px);
}
.hero p {
  max-width: 620px;
  margin: 0 auto var(--space-6) auto;
  font-size: 17px;
  color: var(--brown-soft);
}
.hero .cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}
.flourish {
  width: 80px;
  height: 2px;
  background: var(--blush);
  margin: 0 auto var(--space-5) auto;
  opacity: .8;
}

.features {
  padding: var(--space-7) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.features .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.feature .icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--blush-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 18px;
  margin-bottom: var(--space-3);
}
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { font-size: 14px; margin: 0; color: var(--brown-soft); }

.how {
  padding: var(--space-8) 0;
  text-align: center;
}
.how h2 { margin-bottom: var(--space-2); }
.how .lead { color: var(--muted); margin-bottom: var(--space-6); }
.how .steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  text-align: left;
}
.step {
  padding: var(--space-5);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.step .num {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--blush);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.step h3 { font-size: 18px; margin-bottom: 4px; }
.step p { margin: 0; font-size: 14px; color: var(--brown-soft); }

.pricing {
  padding: var(--space-7) 0 var(--space-8) 0;
  text-align: center;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--cream) 100%);
  border-top: 1px solid var(--line);
}
.pricing .card {
  margin: var(--space-5) auto 0 auto;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}
.pricing .price {
  font-family: var(--serif);
  font-size: 52px;
  color: var(--brown);
  line-height: 1;
}
.pricing .price .cents { font-size: 22px; color: var(--muted); margin-left: 4px; }
.pricing ul {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 var(--space-5) 0;
}
.pricing li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--brown-soft);
  font-size: 14px;
  display: flex; align-items: center; gap: 8px;
}
.pricing li:last-child { border-bottom: none; }
.pricing li::before {
  content: "✓";
  color: var(--blush-dark);
  font-weight: 700;
}

.footer {
  padding: var(--space-6) 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

/* =========================================
   Dashboard
   ========================================= */
.dash {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: var(--ivory);
}
.dash-side {
  background: var(--card);
  border-right: 1px solid var(--line);
  padding: var(--space-5) 0;
  display: flex;
  flex-direction: column;
}
.dash-side .brand {
  padding: 0 var(--space-5) var(--space-5) var(--space-5);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-3);
}
.dash-side .brand-mark {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--brown);
  letter-spacing: 1px;
}
.dash-side .brand-mark .accent { color: var(--blush-dark); }
.dash-nav { display: flex; flex-direction: column; padding: 0 var(--space-2); flex: 1; }
.dash-nav a, .dash-nav button {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  margin: 2px 0;
  border: none; background: transparent;
  border-radius: var(--radius);
  color: var(--brown-soft);
  font-family: var(--sans);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: background .12s ease, color .12s ease;
}
.dash-nav a:hover, .dash-nav button:hover { background: var(--cream); color: var(--brown); }
.dash-nav a.active { background: var(--cream); color: var(--brown); font-weight: 600; }
.dash-nav .nav-section {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); padding: var(--space-4) var(--space-3) 6px var(--space-3);
}
.dash-nav .icon {
  width: 18px; display: inline-flex; justify-content: center;
  color: var(--blush-dark);
}
.dash-foot {
  padding: var(--space-3);
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.dash-main {
  padding: var(--space-6) var(--space-7);
  overflow-x: hidden;
}
.dash-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-6);
}
.dash-header h1 { margin: 0; font-size: 28px; }
.dash-header .user-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--brown-soft);
}
.dash-header .user-chip .avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--blush); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 13px;
}

.welcome {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.welcome h2 { font-size: 22px; margin-bottom: var(--space-2); }
.welcome p { color: var(--brown-soft); }
.welcome .cta-row {
  margin-top: var(--space-4);
  display: flex; gap: var(--space-3); flex-wrap: wrap;
}

.callout {
  margin-top: var(--space-5);
  background: #FBF3E9;
  border: 1px solid var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex; gap: var(--space-3); align-items: flex-start;
}
.callout .badge {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blush);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif);
}
.callout h3 { font-size: 16px; margin: 0 0 4px 0; }
.callout p { margin: 0; font-size: 14px; }

/* =========================================
   Spinner
   ========================================= */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 880px) {
  .features .grid, .how .steps {
    grid-template-columns: 1fr;
  }
  .dash {
    grid-template-columns: 1fr;
  }
  .dash-side {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: var(--space-3) 0;
  }
  .dash-side .brand { border-bottom: none; padding: 0 var(--space-4) var(--space-3) var(--space-4); margin-bottom: 0; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; padding: 0 var(--space-3); }
  .dash-nav .nav-section { display: none; }
  .dash-nav a, .dash-nav button { width: auto; padding: 8px 12px; }
  .dash-foot { display: none; }
  .dash-main { padding: var(--space-5); }
  .dash-header { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
}

/* =========================================
   Batch 3 — Event management
   List / Wizard / Detail / Edit
   ========================================= */

/* Dash page header tweaks */
.dash-header h1 { font-size: clamp(24px, 3vw, 30px); }
.dash-eyebrow {
  margin: 0 0 4px 0;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--blush-dark);
}
.back-link {
  display: inline-block;
  margin-bottom: var(--space-3);
  font-size: 14px;
  color: var(--brown-soft);
  text-decoration: none;
}
.back-link:hover { color: var(--brown); }

.dash-loading {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--brown-soft);
  font-size: 14px;
}
.spinner-dark {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(74, 63, 53, 0.18);
  border-top-color: var(--brown);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  padding: var(--space-7) var(--space-4);
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}
.empty-art {
  display: flex; justify-content: center;
  margin-bottom: var(--space-3);
  opacity: .85;
}
.empty-state h2 { font-size: 22px; margin-bottom: var(--space-2); }
.empty-state p { color: var(--brown-soft); max-width: 460px; margin: 0 auto var(--space-5); }

/* ---------- Event list grid + card ---------- */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}
.event-card {
  display: block;
  padding: var(--space-5);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--cream);
}
.event-card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  margin-bottom: 6px;
}
.event-card-head h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0;
  color: var(--brown);
}
.event-card-date {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: var(--brown-soft);
}
.event-card-url {
  margin: 0 0 var(--space-3) 0;
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}
.event-card-stats { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.card-stat {
  font-size: 13px;
  color: var(--brown-soft);
  padding: 3px 8px;
  background: var(--cream);
  border-radius: 999px;
}
.card-stat strong { color: var(--brown); font-weight: 700; margin-right: 2px; }
.card-stat-muted { font-size: 12.5px; color: var(--muted); font-style: italic; }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.badge-success { background: #E6EFE6; color: var(--success); }
.badge-pending { background: #FBF3E9; color: var(--gold);    }
.badge-muted   { background: var(--line); color: var(--muted); }
.badge-danger  { background: #F8E9E8; color: var(--danger); }

/* ---------- Wizard ---------- */
.wizard {
  max-width: 640px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  box-shadow: var(--shadow-md);
}
.wizard.wizard-static { /* edit page — no step transitions */ }

.wizard-progress {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-6);
}
.wizard-pips { display: flex; gap: 8px; flex: 1; }
.wizard-pip {
  flex: 1; height: 6px;
  background: var(--line); border-radius: 4px;
  transition: background .25s ease;
}
.wizard-pip.done   { background: var(--blush); }
.wizard-pip.active { background: var(--blush-dark); }
.wizard-step-num {
  margin-left: var(--space-4);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.wizard-step { display: none; animation: hd-wiz-in .35s ease; }
.wizard-step.active { display: block; }
@keyframes hd-wiz-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wizard-eyebrow {
  margin: 0 0 6px 0;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--blush-dark);
}
.wizard h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 28px);
  margin: 0 0 8px 0;
}
.wizard-lead {
  color: var(--brown-soft);
  font-size: 15px;
  margin: 0 0 var(--space-5);
}
.wizard-hint {
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 12.5px;
}
.wizard-warn {
  margin: var(--space-4) 0 0 0;
  padding: 12px 14px;
  background: #FBF3E9;
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  color: var(--brown);
  font-size: 13px;
  line-height: 1.55;
}
.wizard-info {
  margin: var(--space-4) 0 0 0;
  padding: 12px 14px;
  background: #F3ECE0;
  border-radius: var(--radius);
  color: var(--brown-soft);
  font-size: 13px;
  line-height: 1.55;
}
.wizard-locked {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); margin-left: 6px;
}
.wizard-date-preview {
  margin: 8px 0 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--brown);
}
.wizard-alert {
  margin-bottom: var(--space-4);
  display: none;
}
.wizard-alert.show { display: block; }
.wizard-alert.ok   { background: #E6EFE6; color: var(--success); border-color: #CFDFCF; }
.wizard-alert.err  { background: #F8E9E8; color: var(--danger);  border-color: #EFD0CE; }

.wizard-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: var(--space-6);
  gap: var(--space-3);
}
.wizard-nav .btn { min-width: 130px; }

/* ---------- Slug input ---------- */
.slug-input-row {
  display: flex; align-items: stretch;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.slug-input-row:focus-within {
  border-color: var(--blush);
  box-shadow: 0 0 0 3px rgba(212, 165, 154, 0.18);
}
.slug-prefix {
  padding: 12px 12px;
  font-size: 14px;
  color: var(--muted);
  background: var(--cream);
  white-space: nowrap;
  font-family: ui-monospace, Menlo, monospace;
}
.slug-input-row input {
  border: 0; outline: 0;
  flex: 1;
  padding: 12px 12px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 14px;
  color: var(--brown);
  background: transparent;
  min-width: 0;
}
.slug-indicator {
  width: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cream);
  font-size: 16px;
  font-weight: 700;
}
.slug-indicator.available::before { content: '✓'; color: var(--success); }
.slug-indicator.taken::before     { content: '✕'; color: var(--danger); }
.slug-indicator.checking::before  { content: ''; display: inline-block; width: 12px; height: 12px;
  border: 2px solid rgba(74,63,53,.18); border-top-color: var(--brown);
  border-radius: 50%; animation: spin .8s linear infinite; }
.slug-hint { margin: 6px 0 0; font-size: 12.5px; min-height: 1em; }
.slug-hint.success { color: var(--success); }
.slug-hint.danger  { color: var(--danger);  }

/* ---------- Toggle switch ---------- */
.switch-row {
  display: flex; align-items: center; gap: 12px;
  padding: var(--space-3) 0;
  cursor: pointer;
}
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch {
  width: 42px; height: 24px;
  background: var(--line);
  border-radius: 999px;
  position: relative;
  transition: background .2s ease;
  flex-shrink: 0;
}
.switch::after {
  content: '';
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #FFFEFB;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
  transition: transform .2s ease;
}
.switch-row input:checked + .switch { background: var(--blush); }
.switch-row input:checked + .switch::after { transform: translateX(18px); }
.switch-row input:focus-visible + .switch { box-shadow: 0 0 0 3px rgba(212,165,154,.3); }
.switch-label { font-size: 14px; color: var(--brown); font-weight: 500; }

/* ---------- Review card ---------- */
.review-card {
  background: #FBF6EE;
  border: 1px solid var(--cream);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  margin-top: var(--space-3);
}
.review-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--cream);
}
.review-row:last-child { border-bottom: none; }
.review-row span { font-size: 13px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.review-row strong { font-family: var(--serif); font-size: 17px; color: var(--brown); text-align: right; }

/* ---------- Event detail header ---------- */
.event-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0 var(--space-4);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-5);
}
.event-header-main h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 0 0 6px 0;
}
.event-meta {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  font-size: 14px;
  color: var(--brown-soft);
}
.event-meta a { color: var(--blush-dark); word-break: break-all; }
.meta-dot { color: var(--muted); }
.event-header-side {
  display: flex; align-items: center; gap: var(--space-3);
  flex-shrink: 0;
}

.activate-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: #FBF3E9;
  border: 1px solid var(--cream);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
}
.activate-cta h3 { margin: 0 0 4px 0; font-size: 18px; }
.activate-cta p  { margin: 0; color: var(--brown-soft); font-size: 14px; }

/* ---------- Tabs ---------- */
.tabs {
  display: flex; gap: 4px;
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.tab {
  background: transparent; border: none; cursor: pointer;
  padding: 12px 18px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--brown-soft);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
}
.tab:hover { color: var(--brown); }
.tab.active {
  color: var(--brown);
  border-bottom-color: var(--blush);
  font-weight: 600;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Generic card ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
}
.card h2 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 var(--space-3) 0;
}

/* ---------- Detail list ---------- */
.detail-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px var(--space-5);
  margin: 0;
}
.detail-list > div {
  display: flex; flex-direction: column; gap: 4px;
}
.detail-list dt {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
  font-size: 16px;
  color: var(--brown);
}

/* ---------- QR tab ---------- */
.qr-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-4);
}
.qr-basic { text-align: center; }
.qr-img {
  width: 100%; max-width: 240px;
  height: auto;
  margin: var(--space-3) auto;
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.chooser { margin-bottom: var(--space-3); }
.chooser-label {
  margin: 0 0 6px 0;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted);
}
.chip-row {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--brown-soft);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { color: var(--brown); border-color: var(--blush); }
.chip.active {
  background: var(--blush);
  border-color: var(--blush);
  color: #FFFEFB;
}
.chip-swatch .swatch {
  width: 14px; height: 14px; border-radius: 50%;
  display: inline-block;
}

.qr-preview-wrap {
  margin: var(--space-3) 0;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  background: var(--ivory);
  min-height: 220px;
  display: flex; align-items: center; justify-content: center;
}
.qr-preview-wrap img {
  max-width: 100%;
  max-height: 380px;
  height: auto;
  display: none;
}
.qr-preview-wrap.ready img { display: block; }
.qr-preview-wrap.loading { opacity: .5; }

/* ---------- Empty mini (in panels) ---------- */
.empty-mini {
  text-align: center;
  color: var(--brown-soft);
}
.empty-mini h2 { font-size: 20px; }

/* ---------- Danger card ---------- */
.danger-card { border-color: #EFD0CE; background: #FDF7F7; }
.danger-card h2 { color: var(--danger); }
.btn-danger {
  background: var(--danger);
  color: #FFFEFB;
  border: 1px solid var(--danger);
}
.btn-danger:hover { background: #973F3C; border-color: #973F3C; color: #FFFEFB; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  padding: var(--space-4);
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(74, 63, 53, 0.4);
  backdrop-filter: blur(2px);
}
.modal-card {
  position: relative;
  width: 100%; max-width: 460px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 60px rgba(74,63,53,.25);
  padding: var(--space-6);
}
.modal-card h3 { margin: 0 0 8px 0; font-family: var(--serif); font-size: 22px; }
.modal-card p { color: var(--brown-soft); margin: 0 0 var(--space-3); }
.modal-confirm-target {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 14px;
  background: var(--cream);
  padding: 8px 12px;
  border-radius: var(--radius);
  text-align: center;
}
.modal-actions {
  display: flex; justify-content: flex-end; gap: var(--space-2);
  margin-top: var(--space-4);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translate(-50%, 80px);
  background: var(--card);
  color: var(--brown);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px;
  box-shadow: var(--shadow-md);
  z-index: 200;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  max-width: calc(100% - 32px);
}
.toast.in { opacity: 1; transform: translate(-50%, 0); }
.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--danger);  color: var(--danger); }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .wizard { padding: var(--space-5) var(--space-4); border-radius: var(--radius); }
  .wizard-nav { flex-direction: column-reverse; align-items: stretch; }
  .wizard-nav .btn { width: 100%; }
  .wizard-progress { flex-direction: column; align-items: stretch; gap: 8px; }
  .wizard-step-num { margin-left: 0; text-align: right; }

  .event-header { flex-direction: column; align-items: flex-start; }
  .event-header-side { width: 100%; justify-content: space-between; }

  .activate-cta { flex-direction: column; align-items: flex-start; }

  .qr-split { grid-template-columns: 1fr; }
  .detail-list { grid-template-columns: 1fr; }

  /* Bottom-sheet-style modal on mobile */
  .modal { align-items: flex-end; padding: 0; }
  .modal-card {
    max-width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: var(--space-5) var(--space-4) calc(var(--space-5) + env(safe-area-inset-bottom));
  }
}

/* =========================================
   Panel animations + quick actions
   ========================================= */

@keyframes hd-reveal-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hd-side-slide {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.reveal-up      { animation: hd-reveal-up .55s ease-out both; }
.reveal-stagger > * { animation: hd-reveal-up .55s ease-out both; }
.reveal-stagger > *:nth-child(1) { animation-delay: .04s; }
.reveal-stagger > *:nth-child(2) { animation-delay: .10s; }
.reveal-stagger > *:nth-child(3) { animation-delay: .16s; }
.reveal-stagger > *:nth-child(4) { animation-delay: .22s; }
.reveal-stagger > *:nth-child(5) { animation-delay: .28s; }
.reveal-stagger > *:nth-child(6) { animation-delay: .34s; }

/* Dashboard layout — gentle entrance for the side rail and the
   main content area so the panel breathes when it loads. */
.dash-side  { animation: hd-side-slide .45s ease-out both; }
.dash-main  { animation: hd-reveal-up   .55s ease-out both .05s; }
.tab-panel.active { animation: hd-reveal-up .35s ease-out both; }

/* Activate-CTA: a faint heartbeat to draw the eye when an event
   is pending payment. Calm, not flashy. */
@keyframes hd-cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.0); }
  50%      { box-shadow: 0 0 0 8px rgba(201, 168, 76, 0.16); }
}
.activate-cta { animation: hd-cta-pulse 3s ease-in-out infinite; }

/* ---------- Blocked banner (one-event-per-user) ---------- */
.blocked-card {
  max-width: 520px;
  margin: var(--space-6) auto;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  box-shadow: var(--shadow-md);
}
.blocked-icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--space-4) auto;
  color: var(--gold);
}
.blocked-icon svg { width: 100%; height: 100%; }
.blocked-card h2 {
  font-family: var(--serif);
  font-size: 26px;
  margin-bottom: var(--space-3);
}
.blocked-card p {
  color: var(--brown-soft);
  margin-bottom: var(--space-5);
  font-size: 15px;
  line-height: 1.6;
}
.blocked-card strong { color: var(--brown); font-style: italic; }
.blocked-actions {
  display: flex; gap: var(--space-3);
  justify-content: center; flex-wrap: wrap;
}

/* ---------- Visibility choice cards (wizard step 4) ---------- */
.visibility-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}
.vc-card {
  position: relative;
  display: block;
  padding: var(--space-5);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color .15s ease, background .2s ease, transform .15s ease;
}
.vc-card input { position: absolute; opacity: 0; pointer-events: none; }
.vc-card:hover { border-color: var(--blush); }
.vc-card:has(input:checked) {
  border-color: var(--blush-dark);
  background: #FBF3E9;
}
.vc-card:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(212,165,154,.25); }
.vc-card-body { display: flex; flex-direction: column; gap: 8px; }
.vc-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FBF3E9, #F5D8CB);
  color: var(--blush-dark);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.vc-icon svg { width: 22px; height: 22px; }
.vc-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0;
  color: var(--brown);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.vc-card p {
  margin: 0;
  font-size: 14px;
  color: var(--brown-soft);
  line-height: 1.55;
}
.vc-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--gold);
  color: #FFFEFB;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--sans);
}
@media (max-width: 560px) {
  .visibility-choice { grid-template-columns: 1fr; }
  .vc-card { padding: var(--space-4); }
}

/* ---------- Slug input — stack prefix on phones ---------- */
@media (max-width: 480px) {
  .slug-input-row { flex-wrap: wrap; }
  .slug-prefix {
    flex-basis: 100%;
    text-align: center;
    border-right: none;
    border-bottom: 1px solid var(--line);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 8px 12px;
    font-size: 12.5px;
  }
  .slug-input-row input {
    border-radius: 0 0 0 var(--radius);
    min-width: 0;
    width: 0;          /* let flex:1 stretch it to fill */
  }
  .slug-indicator {
    border-radius: 0 0 var(--radius) 0;
  }
}

/* ---------- Mobile sidebar stability ---------- */
@media (max-width: 880px) {
  /* Keep the horizontal nav items at a stable size — no scaling,
     no flex-shrink, no tap-highlight flash that can look like
     "resizing" on touch. Also kill the dash-side slide-in (which
     animates transform on a sticky-ish element) to avoid any flash
     while content lazy-loads. */
  .dash-side, .dash-main { animation: none; }
  .dash-nav a, .dash-nav button {
    flex: 0 0 auto;
    min-height: 38px;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
    transition: background .12s ease, color .12s ease;
  }
  .dash-nav a:active, .dash-nav button:active {
    background: var(--cream);
  }
  /* Remove sticky-hover on touch for all card-like interactive elements */
  .quick-card:hover, .quick-card:hover .qa-icon,
  .vc-card:hover, .event-card:hover, .exp-card:hover { transform: none; }
}

/* ---------- Quick action cards (Overview tab) ---------- */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.quick-card {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.quick-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blush);
}
.qa-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FBF3E9, #F5D8CB);
  color: var(--blush-dark);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .25s ease;
}
.quick-card:hover .qa-icon { transform: scale(1.08) rotate(-3deg); }
.qa-icon svg { width: 22px; height: 22px; }
.qa-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qa-body strong { color: var(--brown); font-size: 14px; font-weight: 600; }
.qa-body span   { color: var(--muted); font-size: 12px; }

@media (max-width: 880px) {
  .quick-actions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .quick-actions { grid-template-columns: 1fr; }
}

/* Honour reduced-motion users — kill the entrances + pulse. */
@media (prefers-reduced-motion: reduce) {
  .reveal-up, .reveal-stagger > *,
  .dash-side, .dash-main, .tab-panel.active,
  .activate-cta { animation: none !important; }
  .quick-card:hover .qa-icon { transform: none; }
}

/* =========================================
   Accessibility helpers
   ========================================= */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 2px solid var(--blush-dark);
  outline-offset: 2px;
}

/* =========================================
   Brand logo (image)
   The badge is circular + already contains
   the wordmark, so every placement just needs
   to size the square image consistently.
   ========================================= */
.brand-logo {
  display: block;
  width: auto; height: auto;
  -webkit-user-drag: none;
  user-select: none;
}
/* Header (home nav) */
.home-nav .nav-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  line-height: 1;
  text-decoration: none;
}
.home-nav .nav-brand .brand-logo { width: 96px; height: 96px; }
.nav-brand-text {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  color: var(--brown);
  letter-spacing: 1px;
  white-space: nowrap;
}
.nav-brand-text .accent { color: var(--blush-dark); }
/* On narrow screens keep the wordmark next to the logo but shrink it,
   and tighten the gap so it still fits with the right-side CTA button. */
@media (max-width: 520px) {
  .home-nav .nav-brand { gap: 8px; }
  .nav-brand-text { font-size: 15px; letter-spacing: .4px; }
}
@media (max-width: 360px) {
  .nav-brand-text { font-size: 13px; letter-spacing: .2px; }
}
/* Auth pages (signup / login / etc.) */
.auth-card .brand .brand-mark { display: inline-flex; line-height: 1; }
.auth-card .brand .brand-logo { width: 96px; height: 96px; margin: 0 auto; }
/* Dashboard sidebar */
.dash-side .brand .brand-mark { display: inline-flex; line-height: 1; }
.dash-side .brand .brand-logo { width: 40px; height: 40px; }
/* Footer */
.footer-brand .brand-logo { width: 32px; height: 32px; }

/* Mobile reductions */
@media (max-width: 720px) {
  .home-nav .nav-brand .brand-logo { width: 76px; height: 76px; }
  .auth-card .brand .brand-logo { width: 78px; height: 78px; }
}

/* =========================================
   Landing page (page-home) — refinements,
   wedding-themed animations, mobile-first
   ========================================= */

/* ---------- Keyframes ---------- */
@keyframes hd-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hd-petal-drift {
  0%   { transform: translate3d(0, -10vh, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: .8; }
  90%  { opacity: .8; }
  100% { transform: translate3d(8vw, 110vh, 0) rotate(360deg); opacity: 0; }
}
@keyframes hd-float-soft {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(.6deg); }
}
@keyframes hd-sparkle {
  0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); }
  50%      { opacity: 1; transform: scale(1) rotate(45deg); }
}
@keyframes hd-shimmer {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}
@keyframes hd-qr-scan {
  0%   { transform: translateY(-30px); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(40px); opacity: 0; }
}
@keyframes hd-photo-rise {
  0%   { transform: translateY(20px) scale(.85); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(-40px) scale(1); opacity: 0; }
}
@keyframes hd-heart-rise {
  0%   { transform: translateY(0) scale(.9); opacity: 0; }
  20%  { opacity: .9; }
  100% { transform: translateY(-30px) scale(1.1); opacity: 0; }
}
@keyframes hd-check-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes hd-pulse-once {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); box-shadow: 0 0 0 8px rgba(212, 165, 154, 0.18); }
}

/* ---------- Petals (decorative) ---------- */
.page-home .petals {
  position: fixed; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.page-home .petal {
  position: absolute;
  top: -10vh;
  left: var(--x, 50vw);
  width: 14px; height: 14px;
  border-radius: 50% 0 50% 50%;
  background: radial-gradient(circle at 30% 30%, #F5D8CB 0%, #D4A59A 60%, #BE8B7E 100%);
  filter: drop-shadow(0 1px 2px rgba(190, 139, 126, 0.25));
  animation: hd-petal-drift var(--dur, 24s) linear var(--d, 0s) infinite;
  opacity: 0;
}

/* ---------- Reveal-on-scroll system ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Sticky-ish nav (home only) ---------- */
.page-home { position: relative; z-index: 1; }
.home-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.home-nav .nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-2) 0;
}
.home-nav .nav-links { display: flex; gap: var(--space-5); align-items: center; }
.home-nav .nav-links a {
  color: var(--brown-soft);
  font-size: 14px;
  font-weight: 500;
}
.home-nav .nav-links a:hover { color: var(--brown); }
.home-nav .nav-cta-mobile { display: none; }

/* ---------- Hero ---------- */
.page-home .hero {
  position: relative;
  padding: clamp(40px, 8vw, 88px) 0 clamp(48px, 9vw, 112px);
  text-align: left;
  overflow: hidden;
}
.page-home .hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(212, 165, 154, .22), transparent 70%),
    radial-gradient(70% 60% at 10% 100%, rgba(184, 153, 104, .12), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
}
.page-home .eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blush-dark);
  margin-bottom: var(--space-4);
}
.hero-headline {
  margin: 0 0 var(--space-4) 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.1;
  letter-spacing: -.5px;
  color: var(--brown);
}
.hero-script {
  font-style: italic;
  font-weight: 600;
  color: var(--blush-dark);
  position: relative;
}
.hero-script::after {
  content: '';
  position: absolute;
  left: 4%; right: 4%; bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: hd-shimmer 3.5s ease-in-out infinite;
}
.hero-sub {
  margin: 0 0 var(--space-5) 0;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.65;
  color: var(--brown-soft);
  max-width: 560px;
}
.hero-cta {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.hero-bullets {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  font-size: 13px;
  color: var(--muted);
}
.hero-bullets li {
  position: relative;
  padding-left: 18px;
}
.hero-bullets li::before {
  content: '✦';
  position: absolute;
  left: 0; top: 0;
  color: var(--gold);
  font-size: 12px;
}

/* Hero visual: floating wedding balloons + sparkles */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  aspect-ratio: 26/30;       /* taller — accommodates the dangling strings */
}
.hero-rings {
  width: 100%; height: 100%;
  filter: drop-shadow(0 14px 28px rgba(74, 63, 53, .12));
}
/* Each balloon floats independently, with the string trailing along.
   Stagger the timing so they don't look mechanically synced. */
.hero-rings .balloon-a       { transform-origin: 100px 86px; animation: hd-balloon-float 5.5s ease-in-out infinite; }
.hero-rings .balloon-b       { transform-origin: 168px 78px; animation: hd-balloon-float 6.5s ease-in-out infinite reverse; }
.hero-rings .balloon-string:nth-of-type(1) { transform-origin: 100px 152px; animation: hd-string-sway 5.5s ease-in-out infinite; }
.hero-rings .balloon-string:nth-of-type(2) { transform-origin: 168px 144px; animation: hd-string-sway 6.5s ease-in-out infinite reverse; }
/* Wedding rings: a slower, calmer drift — they're the "anchor" of the composition */
.hero-rings .wed-rings    { transform-origin: 130px 248px; animation: hd-rings-drift 7s ease-in-out infinite; }
.hero-rings .wed-diamond  { transform-origin: 152px 215px; animation: hd-diamond-sparkle 2.4s ease-in-out infinite; }
@keyframes hd-rings-drift {
  0%, 100% { transform: translateY(0)    rotate(-1deg); }
  50%      { transform: translateY(-4px) rotate(1deg); }
}
@keyframes hd-diamond-sparkle {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.25) drop-shadow(0 0 4px rgba(255,255,255,.8)); }
}
@keyframes hd-balloon-float {
  0%, 100% { transform: translateY(0)    rotate(-1.5deg); }
  50%      { transform: translateY(-10px) rotate(1.5deg); }
}
@keyframes hd-string-sway {
  0%, 100% { transform: translateY(0)    rotate(-1deg); }
  50%      { transform: translateY(-10px) rotate(1deg); }
}

.sparkle {
  position: absolute;
  top: var(--top, 50%);
  left: var(--left, 50%);
  width: 14px; height: 14px;
  background:
    radial-gradient(circle, #fff 0%, transparent 60%),
    conic-gradient(from 0deg, var(--gold), var(--blush), var(--gold));
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 22%),
                conic-gradient(transparent 70%, #000 75%, transparent 80%);
          mask: radial-gradient(circle, #000 18%, transparent 22%),
                conic-gradient(transparent 70%, #000 75%, transparent 80%);
  border-radius: 50%;
  opacity: 0;
  animation: hd-sparkle 3.6s ease-in-out var(--d, 0s) infinite;
}
.sparkle::before, .sparkle::after {
  content: '';
  position: absolute; left: 50%; top: 50%;
  width: 14px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translate(-50%, -50%);
}
.sparkle::after { transform: translate(-50%, -50%) rotate(90deg); }

/* ---------- Features ---------- */
.page-home .features {
  padding: clamp(40px, 7vw, 80px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--cream);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FBF3E9, #F5D8CB);
  color: var(--brown);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-3);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 0 0 6px 0;
}
.feature p { margin: 0; font-size: 14.5px; color: var(--brown-soft); line-height: 1.6; }

/* ---------- Nasıl çalışır ---------- */
.page-home .how {
  padding: clamp(48px, 8vw, 96px) 0;
  text-align: center;
}
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 36px);
  margin: 0 0 var(--space-2) 0;
  color: var(--brown);
}
.section-lead {
  color: var(--muted);
  font-size: 15px;
  margin: 0 auto var(--space-6) auto;
  max-width: 560px;
}
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr 60px 1fr 60px 1fr;
  align-items: stretch;
  gap: 0;
  text-align: left;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-illustration {
  background: linear-gradient(180deg, #FBF3E9, #FFFEFB);
  border: 1px solid var(--cream);
  border-radius: var(--radius);
  padding: var(--space-3);
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4/3;
}
.step-illustration svg { width: 100%; height: auto; max-height: 140px; }
.step-num {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 6px;
  color: var(--gold);
  text-transform: uppercase;
}
.step-body h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 4px 0 6px 0;
}
.step-body p { margin: 0; font-size: 14.5px; color: var(--brown-soft); line-height: 1.6; }
.step-body strong { color: var(--brown); font-weight: 600; }
.step-connector {
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.step-connector svg { width: 100%; max-width: 60px; height: 20px; }
.how-foot {
  margin: var(--space-6) auto 0 auto;
  max-width: 560px;
  color: var(--muted);
  font-style: italic;
  font-size: 14px;
}

/* In-illustration animations (active when card is .in) */
.step.in .check {
  stroke-dasharray: 28; stroke-dashoffset: 28;
  animation: hd-check-draw .9s ease-out forwards .25s;
}
.step.in .qr-scan {
  animation: hd-qr-scan 2.4s ease-in-out infinite .3s;
}
.step.in .photos {
  transform-origin: 60px 60px;
  animation: hd-photo-rise 3.2s ease-in-out infinite .4s;
}
.step.in .photos-2 { animation-delay: 1.6s; }
.step.in .float-heart {
  transform-origin: 18px 55px;
  animation: hd-heart-rise 3s ease-in-out infinite .5s;
}
.step.in .float-heart-2 {
  transform-origin: 96px 36px;
  animation-delay: 1.4s;
}

/* ---------- Deneyim (Host + Guest) ---------- */
@keyframes hd-tile-in {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes hd-dot-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.5); opacity: .55; }
}
@keyframes hd-upload-pulse {
  0%   { transform: scale(1);   opacity: .55; }
  100% { transform: scale(1.45); opacity: 0; }
}
@keyframes hd-phone-tilt {
  0%, 100% { transform: rotate(-1.5deg) translateY(0); }
  50%      { transform: rotate(1deg)    translateY(-4px); }
}
@keyframes hd-chip-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}

.experience {
  padding: clamp(48px, 8vw, 96px) 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-6);
  text-align: left;
}
.exp-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform .3s ease, box-shadow .3s ease;
}
.exp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.exp-head { display: flex; flex-direction: column; gap: 6px; }
.exp-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blush-dark);
  background: #FBF3E9;
  border: 1px solid var(--cream);
  padding: 4px 10px;
  border-radius: 999px;
}
.exp-head h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 24px);
  margin: 4px 0 0 0;
  color: var(--brown);
  line-height: 1.2;
}
.exp-features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: var(--space-3);
}
.exp-features li {
  display: flex; gap: var(--space-3);
  font-size: 14.5px;
  color: var(--brown-soft);
  line-height: 1.55;
}
.exp-features strong { color: var(--brown); font-weight: 600; }
.exp-bullet {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FBF3E9, #F5D8CB);
  color: var(--blush-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.exp-illustration {
  margin-top: auto;
  padding: var(--space-4) var(--space-3) 0;
  display: flex; align-items: center; justify-content: center;
}
.exp-svg {
  width: 100%;
  max-width: 360px;
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(74, 63, 53, .08));
}
.exp-phone {
  max-width: 180px;
  transform-origin: center;
}

/* Host card: animate tiles entering, filter chip bobbing, green dot pulsing */
.exp-host .exp-tile { opacity: 0; transform: translateY(8px) scale(.96); }
.exp-card.in .exp-tile { animation: hd-tile-in .55s ease-out forwards; }
.exp-card.in .exp-tile.t1 { animation-delay: .15s; }
.exp-card.in .exp-tile.t2 { animation-delay: .30s; }
.exp-card.in .exp-tile.t3 { animation-delay: .45s; }
.exp-card.in .exp-tile.t4 { animation-delay: .60s; }
.exp-card.in .exp-incoming circle { transform-origin: 26px 157px; animation: hd-dot-pulse 1.8s ease-in-out infinite 1s; }
.exp-card.in .exp-filters { animation: hd-chip-bob 6s ease-in-out infinite; }

/* Guest card: phone tilt + upload-button concentric pulse */
.exp-card.in .exp-phone { animation: hd-phone-tilt 6s ease-in-out infinite; }
.exp-card.in .exp-upload-pulse {
  transform-origin: 120px 158px;
  animation: hd-upload-pulse 1.8s ease-out infinite;
}

/* ---------- Pricing ---------- */
.page-home .pricing {
  padding: clamp(48px, 8vw, 96px) 0;
  text-align: center;
  background: linear-gradient(180deg, var(--ivory) 0%, #F7EFE3 100%);
  border-top: 1px solid var(--line);
}
.pricing-card {
  position: relative;
  margin: var(--space-5) auto 0 auto;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6) var(--space-5);
  box-shadow: var(--shadow-md);
  text-align: left;
}
.pricing-ribbon {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #FFFEFB;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
}
.pricing-card .price {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 500;
  color: var(--brown);
  line-height: 1;
  text-align: center;
}
.pricing-card .price .currency {
  font-size: 28px; vertical-align: super; color: var(--blush-dark); margin-right: 2px;
}
.pricing-card .price-per {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 var(--space-4);
}
.pricing-features {
  list-style: none; padding: 0; margin: 0 0 var(--space-5) 0;
}
.pricing-features li {
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--brown-soft);
  font-size: 14px;
  position: relative;
}
.pricing-features li::before {
  content: '✓';
  position: absolute; left: 4px;
  color: var(--blush-dark);
  font-weight: 700;
}
.pricing-features li em { color: var(--muted); font-style: normal; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-note {
  margin: var(--space-3) 0 0 0;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  padding: clamp(48px, 7vw, 80px) 0;
  text-align: center;
  background: linear-gradient(180deg, #FFFEFB 0%, var(--ivory) 100%);
  border-top: 1px solid var(--line);
}
.cta-strip h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 var(--space-3) 0;
}
.cta-strip p {
  color: var(--brown-soft);
  margin: 0 auto var(--space-5) auto;
  max-width: 500px;
  font-size: 15px;
}

/* ---------- Footer ---------- */
.page-home .footer { background: transparent; border-top: 1px solid var(--line); padding: var(--space-5) 0 calc(var(--space-5) + env(safe-area-inset-bottom)); }
.footer-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  font-size: 13px;
  color: var(--muted);
}
.footer-brand {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--brown);
  letter-spacing: 1px;
}
.footer-brand .accent { color: var(--blush-dark); }

/* ---------- Button size variants ---------- */
.btn-sm { padding: 8px 16px; font-size: 13.5px; border-radius: var(--radius); }
.btn-lg { padding: 14px 26px; font-size: 16px; }

.pulsed-once { animation: hd-pulse-once .9s ease-out 1; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 254, 251, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.mobile-cta-bar .btn { padding: 14px 18px; font-size: 15px; }

/* ---------- Responsive (mobile-first overrides) ---------- */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  /* Give the nav row a touch more side padding on phones so the
     brand text on the left and the CTA button on the right don't
     visually graze the screen edges. */
  .home-nav .nav-row {
    padding-left:  max(var(--space-4), env(safe-area-inset-left));
    padding-right: max(var(--space-4), env(safe-area-inset-right));
  }
  .home-nav .nav-links { display: none; }
  .home-nav .nav-cta-mobile { display: inline-flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .page-home .hero { padding-top: 32px; padding-bottom: 56px; }
  .hero-headline { font-size: 34px; line-height: 1.15; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-cta .btn { width: 100%; max-width: 320px; }
  .hero-bullets { justify-content: center; }
  .hero-visual {
    order: -1;
    max-width: 170px;
    margin: 0 auto var(--space-3) auto;
  }

  .feature-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .feature { padding: var(--space-4); }

  /* Stack the steps; hide the curve connectors (only useful in a row) */
  .steps { grid-template-columns: 1fr; gap: var(--space-4); }
  .step-connector { display: none; }
  .step { padding: var(--space-4); flex-direction: row; align-items: center; }
  .step-illustration { flex: 0 0 96px; aspect-ratio: 1; padding: var(--space-2); }
  .step-illustration svg { max-height: 80px; }

  .pricing-card { padding: var(--space-6) var(--space-5); }
  .pricing-card .price { font-size: 52px; }

  /* Experience: stack the two cards on phone */
  .experience-grid { grid-template-columns: 1fr; }
  .exp-card { padding: var(--space-5); }
  .exp-illustration { padding-top: var(--space-2); }
  .exp-svg { max-width: 320px; }
  .exp-phone { max-width: 160px; }

  .mobile-cta-bar { display: block; }
  body.page-home { padding-bottom: 84px; }  /* reserve space for sticky CTA */

  .footer-row { flex-direction: column; gap: var(--space-2); text-align: center; }
}

@media (max-width: 380px) {
  .hero-headline { font-size: 30px; }
  .hero-bullets { gap: var(--space-2); font-size: 12px; }
  .step h3 { font-size: 18px; }
}

/* ---------- Touch hover behavior (no sticky-hover on mobile) ---------- */
@media (hover: none) {
  .feature:hover, .step:hover { transform: none; box-shadow: var(--shadow-sm); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .petals { display: none; }
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .hero-rings, .hero-rings .balloon-a, .hero-rings .balloon-b,
  .hero-rings .balloon-string, .hero-rings .wed-rings, .hero-rings .wed-diamond,
  .sparkle, .hero-script::after,
  .step.in .check, .step.in .qr-scan,
  .step.in .photos, .step.in .float-heart,
  .exp-card.in .exp-tile, .exp-card.in .exp-incoming circle,
  .exp-card.in .exp-filters, .exp-card.in .exp-phone,
  .exp-card.in .exp-upload-pulse,
  .pulsed-once { animation: none !important; }
  .exp-host .exp-tile { opacity: 1; transform: none; }
  .hero-script::after { opacity: .75; }
}

/* =========================================
   Havale / activation modal (Batch 4)
   ========================================= */
.havale-card {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  max-width: 480px;
  max-height: 92vh;
  text-align: left;
}
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 3;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%;
  background: rgba(74, 63, 53, .06);
  color: var(--brown); font-size: 22px; line-height: 1;
  cursor: pointer; transition: background .15s ease;
}
.modal-close:hover { background: rgba(74, 63, 53, .12); }

.havale-sub { font-size: 14px; color: var(--brown-soft); margin: 0 0 var(--space-4); }
.havale-loading { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); padding: var(--space-5) 0; }

/* Decorative drifting balloons + rings behind the header */
.havale-deco { position: absolute; top: 0; right: 0; width: 150px; height: 100px; pointer-events: none; z-index: 0; }
.hv-balloon { position: absolute; width: 32px; height: 40px; border-radius: 50% 50% 50% 50% / 45% 45% 55% 55%; opacity: .30; }
.hv-balloon-a { left: 16px; top: 12px; background: radial-gradient(circle at 38% 32%, #F4D9A8, #C9A84C); animation: hv-float 6s ease-in-out infinite; }
.hv-balloon-b { left: 56px; top: 4px;  background: radial-gradient(circle at 38% 32%, #F8DBD1, #D4A59A); animation: hv-float 7s ease-in-out infinite .8s; }
.hv-rings { position: absolute; right: 10px; top: 42px; width: 70px; height: 46px; opacity: .45; animation: hv-sway 7s ease-in-out infinite; }
@keyframes hv-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-7px) rotate(3deg); } }
@keyframes hv-sway  { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

.havale-paid, .havale-free { position: relative; z-index: 1; }

.havale-rows {
  display: flex; flex-direction: column;
  margin: 0 0 var(--space-4);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--card);
}
.havale-row { display: flex; align-items: center; gap: var(--space-3); padding: 12px var(--space-4); }
.havale-row + .havale-row { border-top: 1px solid var(--line); }
.hv-ico { flex: 0 0 22px; font-size: 16px; text-align: center; opacity: .8; }
.hv-field { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.hv-label { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.hv-value { font-size: 15px; color: var(--brown); font-weight: 600; word-break: break-word; }
.hv-value.hv-iban { letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.hv-copy {
  flex: 0 0 auto;
  border: 1px solid var(--line); background: var(--ivory); color: var(--brown-soft);
  font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: var(--radius);
  cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.hv-copy:hover { border-color: var(--blush); color: var(--brown); }
.hv-copy.copied { background: #E6EFE6; border-color: var(--success); color: var(--success); }

.havale-amount {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: var(--space-3) var(--space-4); margin-bottom: var(--space-4);
  background: #FBF3E9; border-radius: var(--radius-lg);
}
.hv-amount-label { font-size: 13px; color: var(--brown-soft); }
.hv-amount-value { display: inline-flex; align-items: baseline; gap: 8px; }
.hv-amount-value strong { font-family: var(--serif); font-size: 26px; color: var(--brown); }
.hv-amount-strike { font-size: 15px; color: var(--muted); text-decoration: line-through; }

.havale-referral { margin-bottom: var(--space-4); }
.havale-referral label { display: block; font-size: 13px; color: var(--brown-soft); margin-bottom: 6px; }
.hv-referral-row { display: flex; gap: 8px; }
.hv-referral-row input {
  flex: 1 1 auto; min-width: 0;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--sans); font-size: 14px; text-transform: uppercase;
  background: var(--card); color: var(--brown);
}
.hv-referral-row input:focus { outline: none; border-color: var(--blush); }
.hv-referral-row .btn { flex: 0 0 auto; }
.hv-referral-msg, .hv-notify-msg { font-size: 13px; margin: 8px 0 0; min-height: 18px; }
.hv-referral-msg.success, .hv-notify-msg.success { color: var(--success); }
.hv-referral-msg.danger,  .hv-notify-msg.danger  { color: var(--danger); }
.hv-notify-msg { text-align: center; }

.havale-free { text-align: center; padding: var(--space-4) 0 0; }
.havale-free-art { font-size: 40px; margin-bottom: var(--space-3); }

/* Photo-upload locked state (event detail → settings) */
.photo-locked {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4); margin-top: var(--space-2);
  background: var(--ivory); border: 1px dashed var(--line); border-radius: var(--radius-lg);
  color: var(--brown-soft);
}
.photo-locked p { margin: 0; font-size: 14px; }
.photo-locked-ico { font-size: 20px; opacity: .7; }

@media (prefers-reduced-motion: reduce) {
  .hv-balloon, .hv-rings { animation: none !important; }
}

/* =========================================
   Admin panel (Batch 4)
   ========================================= */
.admin-view { display: none; }
.admin-view.active { display: block; }

.nav-badge {
  display: inline-block; margin-left: 6px;
  background: var(--blush); color: #FFFEFB;
  font-size: 11px; font-weight: 700; line-height: 1;
  padding: 2px 7px; border-radius: 10px;
}

.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-4); margin-bottom: var(--space-5);
}
.stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-5); display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-sm);
}
.stat-num { font-family: var(--serif); font-size: 30px; color: var(--brown); line-height: 1; }
.stat-label { font-size: 13px; color: var(--muted); }
.stat-card-warn { background: #FBF3E9; }
.stat-card-warn .stat-num { color: var(--gold); }
.stat-card-gold { background: #F6EFE2; }
.stat-card-gold .stat-num { color: var(--gold); }

.admin-toolbar { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); flex-wrap: wrap; }
.admin-search {
  flex: 1 1 220px; max-width: 320px;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--sans); font-size: 14px; background: var(--card); color: var(--brown);
}
.admin-search:focus { outline: none; border-color: var(--blush); }
.admin-toolbar .btn { margin-left: auto; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.admin-table-wrap { width: 100%; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th {
  text-align: left; font-weight: 600; color: var(--muted);
  font-size: 12px; text-transform: uppercase; letter-spacing: .4px;
  padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.admin-table td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--brown); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .admin-empty { text-align: center; color: var(--muted); padding: var(--space-5); }
.admin-date { white-space: nowrap; color: var(--brown-soft); font-size: 13px; }
.admin-tick { color: var(--success); font-weight: 700; }
.admin-table .btn-sm { padding: 5px 11px; font-size: 12.5px; }
.admin-del:hover { color: var(--danger); }
.um-pw-hint { font-weight: 400; color: var(--muted); font-size: 12px; }

@media (max-width: 720px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-toolbar .btn { margin-left: 0; }
}

/* =========================================
   Public event page  /:slug  (Batch 4)
   ========================================= */
.page-event { background: var(--ivory); }
.event-public {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center;
  padding: var(--space-5) var(--space-4);
}
.event-public-brand { padding: var(--space-4) 0 var(--space-6); }
.event-public-brand img { width: 192px; height: 192px; max-width: 70vw; }
.event-public-main { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; width: 100%; }
.ep-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); }

.ep-card {
  width: 100%; max-width: 460px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-7) var(--space-6);
}
.ep-deco { width: 220px; max-width: 80%; margin: 0 auto var(--space-4); }
.ep-balloon-a { transform-origin: 78px 58px; animation: ep-float 6s ease-in-out infinite; }
.ep-balloon-b { transform-origin: 140px 50px; animation: ep-float 7s ease-in-out infinite .9s; }
.ep-rings { transform-origin: 111px 140px; animation: ep-sway 7s ease-in-out infinite; }
@keyframes ep-float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes ep-sway  { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

.ep-eyebrow { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--blush-dark); margin-bottom: var(--space-3); }
.ep-card h1 { font-size: clamp(28px, 6vw, 40px); margin: 0 0 var(--space-3); }
.ep-couple { font-style: italic; }
.ep-sub { color: var(--brown-soft); font-size: 16px; margin: 0 0 var(--space-5); }
.ep-sub-soft { color: var(--muted); font-size: 14px; margin: 0 0 var(--space-2); }
.ep-date { color: var(--brown-soft); letter-spacing: 1px; margin: 0 0 var(--space-5); }
.ep-actions { margin-top: var(--space-4); }
.ep-owner-note { color: var(--brown-soft); font-size: 14px; margin: 0 0 var(--space-4); }

.ep-upload-box, #ep-disabled, #ep-notfound { padding-top: var(--space-2); }
.ep-state-ico { font-size: 44px; margin-bottom: var(--space-3); }
.ep-card h2 { font-size: 22px; margin: 0 0 var(--space-3); }
.ep-card p { color: var(--brown-soft); }
.ep-upload-box {
  margin-top: var(--space-5); padding: var(--space-6) var(--space-4);
  background: var(--ivory); border: 1px dashed var(--line); border-radius: var(--radius-lg);
}

.event-public-foot { padding: var(--space-6) 0 var(--space-4); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.ep-foot-brand { font-family: var(--serif); font-size: 15px; letter-spacing: 1px; color: var(--muted); }
.event-public-foot .accent { color: var(--blush-dark); }
.ep-foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }
.ep-foot-links a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blush-dark); font-size: 13px; font-family: var(--sans); font-weight: 600;
  padding: 8px 16px; border: 1px solid var(--blush); border-radius: 999px;
  background: var(--card); transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.ep-foot-links a:hover, .ep-foot-links a:active { background: var(--blush); color: #FFFEFB; border-color: var(--blush); }
.ep-foot-links a svg { transition: stroke .15s ease; }

@media (prefers-reduced-motion: reduce) {
  .ep-balloon-a, .ep-balloon-b, .ep-rings { animation: none !important; }
}

@media (max-width: 480px) {
  .ep-card { padding: var(--space-6) var(--space-5); }
}

/* ---------- Contact phone card (dashboard) ---------- */
.phone-row { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }
.phone-row input {
  flex: 1 1 220px; min-width: 0;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--sans); font-size: 15px; background: var(--card); color: var(--brown);
}
.phone-row input:focus { outline: none; border-color: var(--blush); }
.phone-row .btn { flex: 0 0 auto; }
.phone-lock { white-space: nowrap; }
.phone-msg { font-size: 13px; margin: 10px 0 0; min-height: 18px; }
.phone-msg.success { color: var(--success); }
.phone-msg.danger { color: var(--danger); }

/* =========================================
   Templates / print showcase (homepage)
   ========================================= */
.prints {
  padding: clamp(48px, 8vw, 96px) 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
.prints-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-6);
  text-align: left;
}
.print-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: var(--space-4);
  transition: transform .3s ease, box-shadow .3s ease;
}
.print-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.print-head { display: flex; flex-direction: column; gap: 6px; }
.print-tag {
  display: inline-block; align-self: flex-start;
  font-family: var(--sans); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--blush-dark); background: #FBF3E9; border: 1px solid var(--cream);
  padding: 4px 10px; border-radius: 999px;
}
.print-head h3 { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 24px); margin: 4px 0 0; color: var(--brown); line-height: 1.2; }
.print-head p { margin: 4px 0 0; font-size: 14.5px; color: var(--brown-soft); line-height: 1.55; }
.print-illustration {
  margin-top: auto; padding: var(--space-4) var(--space-3) 0;
  display: flex; align-items: center; justify-content: center;
}
.print-svg {
  width: 100%; max-width: 340px; height: auto;
  filter: drop-shadow(0 12px 22px rgba(74, 63, 53, .08));
}

/* Format + theme strip */
.print-formats {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-6);
}
.print-format { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--brown-soft); font-weight: 500; }
.pf-shape { display: inline-block; border: 1.5px solid var(--gold); border-radius: 2px; background: #FBF3E9; }
.pf-card   { width: 16px; height: 22px; }
.pf-a4     { width: 16px; height: 22px; border-style: dashed; }
.pf-story  { width: 13px; height: 23px; }
.pf-square { width: 20px; height: 20px; }
.print-themes { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.pf-swatch { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ivory), 0 0 0 1px var(--line); }

@media (max-width: 720px) {
  .prints-grid { grid-template-columns: 1fr; }
}

/* =========================================
   Guest upload page (Batch 5)
   ========================================= */
.up-shell { width: 100%; max-width: 460px; margin: 0 auto; }
.up-header { text-align: center; margin-bottom: var(--space-4); }
.up-header .ep-couple { margin: 4px 0 2px; }
.up-card { text-align: center; }
.up-hero-ico { font-size: 44px; margin-bottom: var(--space-2); }
.up-lead { color: var(--brown-soft); margin: 0 0 var(--space-4); }
.up-field { text-align: left; margin-bottom: var(--space-4); }
.up-name-error { color: var(--danger); font-size: 13.5px; margin: calc(-1 * var(--space-2)) 0 var(--space-3); }
.up-fineprint { font-size: 12.5px; color: var(--muted); margin: var(--space-3) 0 0; }

.up-welcome {
  display: flex; align-items: center; justify-content: center; text-align: center;
  gap: var(--space-3); margin-bottom: var(--space-4);
  font-family: var(--serif); font-size: 18px; color: var(--brown);
}
.up-link {
  background: none; border: none; cursor: pointer;
  color: var(--blush-dark); font-size: 13px; font-family: var(--sans); text-decoration: underline;
  flex: 0 0 auto;
}
.up-setname { display: block; margin: -2px auto var(--space-4); font-size: 14px; }

.up-dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: var(--space-7) var(--space-4);
  border: 2px dashed var(--blush); border-radius: var(--radius-lg);
  background: var(--ivory); cursor: pointer; text-align: center;
  transition: background .15s ease, border-color .15s ease;
}
.up-dropzone:hover, .up-dropzone.drag { background: #FBF3E9; border-color: var(--blush-dark); }
.up-dropzone strong { color: var(--brown); font-size: 17px; }
.up-dropzone span { color: var(--muted); font-size: 13px; }
.up-dz-ico { font-size: 38px; }

.up-counter {
  margin: var(--space-4) 0 var(--space-2); text-align: center;
  font-size: 14px; color: var(--brown-soft);
}
.up-counter strong { color: var(--success); font-size: 18px; }

.up-list { display: flex; flex-direction: column; gap: 8px; margin-top: var(--space-2); }
.up-item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  text-align: left;
}
.up-thumb {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 6px; overflow: hidden;
  background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.up-thumb img { width: 100%; height: 100%; object-fit: cover; }
.up-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.up-bar { height: 6px; border-radius: 3px; background: var(--cream); overflow: hidden; }
.up-bar i { display: block; height: 100%; width: 0; background: var(--blush); transition: width .2s ease; }
.up-stat { font-size: 12px; color: var(--muted); }
.up-done .up-bar i { background: var(--success); }
.up-done .up-stat { color: var(--success); }
.up-failed .up-bar i { background: var(--danger); }
.up-failed .up-stat { color: var(--danger); }
.up-retry {
  flex: 0 0 auto; border: 1px solid var(--line); background: var(--ivory); color: var(--brown-soft);
  font-size: 12px; padding: 6px 10px; border-radius: var(--radius); cursor: pointer;
}
.up-retry:hover { border-color: var(--blush); color: var(--brown); }

/* =========================================
   Host photo gallery (Batch 5)
   ========================================= */
.gallery-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-4); padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}
.gt-count { font-size: 14px; color: var(--brown-soft); font-weight: 600; }
.gt-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: auto; }
.gt-select {
  padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--sans); font-size: 13px; background: var(--card); color: var(--brown);
}
.gt-download { position: relative; }
.gt-download-menu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 20;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); overflow: hidden; min-width: 180px;
}
.gt-download-menu button {
  display: block; width: 100%; text-align: left; padding: 10px 14px;
  background: none; border: none; cursor: pointer; font-size: 14px; color: var(--brown); font-family: var(--sans);
}
.gt-download-menu button:hover { background: var(--cream); }

.bulk-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3);
  padding: 10px var(--space-4); margin-bottom: var(--space-3);
  background: #FBF3E9; border: 1px solid var(--cream); border-radius: var(--radius);
}
.bulk-bar #bulk-count { font-weight: 600; font-size: 14px; }
.bulk-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }

.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 6px;
}
.gtile {
  position: relative; aspect-ratio: 1; padding: 0; border: none; cursor: pointer;
  border-radius: 8px; overflow: hidden; background: var(--cream);
  display: block; transition: transform .12s ease, box-shadow .12s ease;
}
.gtile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gtile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gtile.gtile-noimg::after { content: '🎬'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.gtile.is-hidden { opacity: .5; }
.gtile-ov {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 4px;
  background: linear-gradient(transparent, rgba(0,0,0,.55)); display: flex; align-items: center; gap: 4px;
}
.gtile-name { color: #fff; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtile-play {
  position: absolute; top: 6px; left: 6px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,.5); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center;
}
.gtile-badges { position: absolute; top: 5px; right: 5px; display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.gtile-badges .badge { font-size: 9.5px; padding: 2px 6px; }
.gtile-check { position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.85); border: 2px solid var(--blush); display: none; }
.gallery-grid.selecting .gtile-check { display: block; }
.gallery-grid.selecting .gtile-play { display: none; }
.gtile.selected { outline: 3px solid var(--blush); outline-offset: -3px; }
.gtile.selected .gtile-check { background: var(--blush); }
.gtile.selected .gtile-check::after { content: '✓'; color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; height: 100%; }
@keyframes gtile-pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.gtile-new { animation: gtile-pop .35s ease-out; }
.gallery-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: var(--space-4) 0; justify-content: center; }
#gallery-sentinel { height: 1px; }

.guests-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-3); }
.guest-card {
  display: flex; align-items: center; gap: var(--space-3); text-align: left;
  padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--card); cursor: pointer; transition: border-color .15s ease, transform .12s ease;
}
.guest-card:hover { border-color: var(--blush); transform: translateY(-2px); }
.guest-avatar { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--blush); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 17px; }
.guest-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.guest-info strong { color: var(--brown); }
.guest-info span { font-size: 12.5px; color: var(--muted); }
.guest-go { font-size: 12px; color: var(--blush-dark); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(28,22,18,.94); }
.lb-stage { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; width: 100%; padding: 48px 16px 8px; min-height: 0; }
.lb-media { max-width: min(92vw, 1100px); max-height: 76vh; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb-close { position: absolute; top: 12px; right: 16px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 24px; cursor: pointer; }
.lb-close:hover { background: rgba(255,255,255,.22); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; cursor: pointer; }
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-nav:disabled { opacity: .25; cursor: default; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-panel { flex: 0 0 auto; width: 100%; max-width: 720px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); color: #F3ECE0; }
.lb-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.lb-meta strong { font-family: var(--serif); font-size: 17px; color: #fff; }
.lb-info { font-size: 12.5px; color: #C9BCAE; }
.lb-caption { width: 100%; padding: 9px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); background: rgba(255,255,255,.06); color: #fff; font-family: var(--sans); font-size: 14px; margin-bottom: 10px; }
.lb-caption::placeholder { color: #B7A99B; }
.lb-actions { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 600px) {
  .gt-controls { margin-left: 0; width: 100%; }
  .lb-nav { width: 38px; height: 38px; font-size: 22px; }
}

/* Empty / not-activated gallery states */
.gallery-empty-state { text-align: center; padding: var(--space-7) var(--space-5); max-width: 480px; margin: var(--space-5) auto; }
.gallery-empty-state h2 { margin-bottom: var(--space-2); }
.gallery-empty-state p { color: var(--brown-soft); margin: 0 auto var(--space-5); max-width: 420px; }
.empty-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
.empty-anim { position: relative; width: 96px; height: 96px; margin: 0 auto var(--space-4); display: flex; align-items: center; justify-content: center; }
.ea-ring { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, #FBF3E9, transparent 70%); animation: ea-pulse 2.6s ease-in-out infinite; }
.ea-cam { font-size: 46px; animation: ea-float 3s ease-in-out infinite; }
@keyframes ea-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
@keyframes ea-pulse { 0%, 100% { transform: scale(.85); opacity: .5; } 50% { transform: scale(1.1); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .ea-ring, .ea-cam { animation: none !important; } }

/* ---------- Favourites ---------- */
.gtile-fav {
  position: absolute; bottom: 6px; right: 6px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(28, 22, 18, .45); color: rgba(255, 255, 255, .9);
  font-size: 14px; line-height: 1; cursor: pointer;
  transition: transform .1s ease, background .15s ease, color .15s ease;
}
.gtile-fav:hover { background: rgba(28, 22, 18, .68); }
.gtile-fav:active { transform: scale(.88); }
.gtile.fav .gtile-fav { background: var(--gold); color: #fff; }
.gallery-grid.selecting .gtile-fav { display: none; }
#filter-fav-btn.active { background: var(--gold); border-color: var(--gold); color: #fff; }
.lb-fav.on { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ============================================
   Guest live gallery (public event page)
   ============================================ */
.ep-gallery { width: 100%; max-width: 920px; margin: var(--space-7) auto 0; padding: 0 var(--space-3); }
.epg-head { text-align: center; margin-bottom: var(--space-5); }
.epg-head h2 { font-family: var(--serif); font-size: 26px; color: var(--brown); margin: 0 0 4px; }
.epg-count { color: var(--muted); font-size: 14px; margin: 0; }

/* Masonry via CSS columns — 2 up on phones, more as width allows. */
.epg-grid { column-count: 2; column-gap: var(--space-2); }
@media (min-width: 560px) { .epg-grid { column-count: 3; } }
@media (min-width: 820px) { .epg-grid { column-count: 4; } }

.epg-item {
  position: relative; display: block; width: 100%;
  margin: 0 0 var(--space-2); padding: 0; border: none; background: var(--cream);
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  break-inside: avoid; -webkit-column-break-inside: avoid;
  box-shadow: var(--shadow-sm); -webkit-tap-highlight-color: transparent;
}
.epg-item img { width: 100%; display: block; border-radius: inherit; background: var(--cream); }
.epg-item.epg-noimg { min-height: 120px; }
.epg-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Uploader name + relative time, gradient overlay at the tile foot. */
.epg-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 7px;
  display: flex; flex-direction: column; gap: 1px; text-align: left;
  color: #fff; font-size: 11.5px; line-height: 1.25;
  background: linear-gradient(transparent, rgba(28, 22, 18, .62));
  opacity: 0; transition: opacity .2s ease;
}
.epg-item:hover .epg-cap, .epg-item:focus .epg-cap { opacity: 1; }
.epg-cap strong { font-weight: 600; font-size: 12.5px; }
.epg-cap span { color: #E7DCD0; }
@media (hover: none) { .epg-cap { opacity: 1; } }   /* always show on touch devices */

.epg-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%; padding-left: 3px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(28, 22, 18, .5); color: #fff; font-size: 16px; pointer-events: none;
}

/* New arrivals (Socket.IO) pop in at the top. */
.epg-new { animation: epg-pop .5s ease; }
@keyframes epg-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .epg-new { animation: none; } }

.epg-empty { text-align: center; color: var(--muted); padding: var(--space-6) var(--space-4); }
.epg-empty-ico { font-size: 34px; margin-bottom: var(--space-2); }
.epg-empty p { margin: 0; }
#epg-sentinel { height: 1px; }

/* Guest lightbox (reuses the .lightbox / .lb-* shell). Photos show the
   thumbnail (originals stay host-only); videos stream and play inline. */
.epg-lb-media { max-width: min(94vw, 560px); max-height: 80vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.epg-lb-media.video { max-width: min(94vw, 900px); }
.epg-lb-cap { position: absolute; bottom: calc(14px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: #F3ECE0; font-size: 13px; margin: 0; padding: 0 16px; }
.epg-lb-cap strong { font-family: var(--serif); color: #fff; }

/* ============================================
   Shared site footer (site-footer.js)
   ============================================ */
.site-footer { background: var(--brown); color: #E7DCD0; margin-top: var(--space-8); }
.sf-inner { max-width: 1100px; margin: 0 auto; padding: var(--space-7) var(--space-5) var(--space-5); display: grid; grid-template-columns: 1.5fr 1fr 1.6fr 1.1fr; gap: var(--space-6); }
.sf-col h4 { font-family: var(--sans); font-size: 12.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--gold); margin: 0 0 var(--space-3); }
.sf-col a { display: block; color: #E7DCD0; text-decoration: none; font-size: 14px; padding: 4px 0; transition: color .15s ease; }
.sf-col a:hover { color: #fff; }
.sf-brand .sf-logo { font-family: var(--serif); font-size: 22px; color: #fff; text-decoration: none; padding: 0; }
.sf-brand .sf-logo span { color: var(--blush); }
.sf-tag { font-style: italic; color: #C9BCAE; margin: var(--space-2) 0 0; font-size: 14px; }
.sf-bottom { border-top: 1px solid rgba(255,255,255,.12); max-width: 1100px; margin: 0 auto; padding: var(--space-4) var(--space-5) calc(var(--space-5) + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; font-size: 13px; color: #B9AB9C; }
@media (max-width: 760px) {
  .sf-inner { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .sf-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 460px) { .sf-inner { grid-template-columns: 1fr; } }

/* ============================================
   Legal / info pages (page-legal)
   ============================================ */
.page-legal { background: var(--ivory); color: var(--brown); }
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); max-width: 820px; margin: 0 auto; padding: var(--space-4) var(--space-5); }
.legal-brand { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 18px; color: var(--brown); text-decoration: none; }
.legal-brand img { width: 30px; height: 30px; }
.legal-back { color: var(--blush-dark); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.legal-back:hover { text-decoration: underline; }
.legal-shell { max-width: 820px; margin: 0 auto; padding: var(--space-2) var(--space-5) var(--space-8); }
.legal-doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(var(--space-5), 5vw, var(--space-7)); box-shadow: var(--shadow-sm); }
.legal-doc h1 { font-family: var(--serif); font-size: clamp(26px, 5vw, 34px); color: var(--brown); margin: 0 0 var(--space-2); line-height: 1.2; }
.legal-updated { color: var(--muted); font-size: 13px; margin: 0 0 var(--space-4); }
.legal-disclaimer { background: var(--cream); border-left: 3px solid var(--gold); padding: var(--space-3) var(--space-4); border-radius: var(--radius); font-size: 13.5px; color: var(--brown-soft); margin: 0 0 var(--space-5); }
.legal-toc { background: #FBF7F0; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4) var(--space-5); margin: 0 0 var(--space-6); }
.legal-toc h2 { font-family: var(--sans); font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 var(--space-2); }
.legal-toc ol { margin: 0; padding-left: var(--space-5); columns: 2; column-gap: var(--space-6); }
.legal-toc li { margin: 0 0 6px; break-inside: avoid; }
.legal-toc a { color: var(--brown-soft); text-decoration: none; font-size: 14px; }
.legal-toc a:hover { color: var(--blush-dark); text-decoration: underline; }
.legal-doc section { margin-top: var(--space-6); scroll-margin-top: 16px; }
.legal-doc h2 { font-family: var(--serif); font-size: 21px; color: var(--brown); margin: 0 0 var(--space-3); }
.legal-doc h3 { font-size: 16px; color: var(--brown); margin: var(--space-4) 0 var(--space-2); }
.legal-doc p, .legal-doc li { color: var(--brown-soft); line-height: 1.75; font-size: 15px; }
.legal-doc p { margin: 0 0 var(--space-3); }
.legal-doc ul, .legal-doc ol { margin: 0 0 var(--space-4); padding-left: var(--space-5); }
.legal-doc li { margin: 0 0 6px; }
.legal-doc strong { color: var(--brown); }
.legal-doc a { color: var(--blush-dark); }
.legal-kv { list-style: none; padding: 0 !important; margin: 0 0 var(--space-4); }
.legal-kv li { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.legal-kv li strong { min-width: 170px; }
@media (max-width: 560px) { .legal-toc ol { columns: 1; } .legal-kv li strong { min-width: 100%; } }

/* Contact cards */
.contact-grid { display: grid; gap: var(--space-3); margin: var(--space-4) 0; }
.contact-card { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: #FBF7F0; }
.contact-card .ci { font-size: 22px; line-height: 1; }
.contact-card strong { display: block; color: var(--brown); margin-bottom: 2px; }
.contact-card a { color: var(--blush-dark); word-break: break-word; }
.contact-card span { color: var(--brown-soft); font-size: 14px; }

/* FAQ accordion (native <details>) */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: var(--space-2); background: #FBF7F0; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: var(--space-3) var(--space-4); font-weight: 600; color: var(--brown); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--gold); font-size: 20px; line-height: 1; flex: 0 0 auto; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item .faq-body { padding: 0 var(--space-4) var(--space-4); }
.faq-item .faq-body p { margin: 0; color: var(--brown-soft); line-height: 1.7; font-size: 15px; }

/* ============================================
   Help / support strip (home page)
   ============================================ */
.help-strip { padding: clamp(40px, 6vw, 72px) 0; text-align: center; background: var(--cream); border-top: 1px solid var(--line); }
.help-eyebrow { display: inline-block; font-family: var(--sans); font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: var(--space-2); }
.help-strip h2 { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); margin: 0 0 var(--space-3); color: var(--brown); }
.help-strip p { color: var(--brown-soft); margin: 0 auto var(--space-5); max-width: 540px; font-size: 15px; line-height: 1.7; }
.help-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-4); }
.help-card { display: inline-flex; align-items: center; gap: var(--space-3); text-align: left; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-3) var(--space-4); box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease; min-width: 248px; }
.help-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--blush); }
.help-ico { font-size: 24px; line-height: 1; }
.help-text { display: flex; flex-direction: column; }
.help-text strong { color: var(--brown); font-size: 15px; }
.help-text span { color: var(--muted); font-size: 13.5px; }
.help-strip .help-note { font-size: 13px; color: var(--muted); margin: var(--space-2) 0 0; max-width: none; }
@media (max-width: 520px) { .help-card { width: 100%; min-width: 0; } }

/* =========================================
   Account page  (/dashboard/account)
   ========================================= */
.field-optional { font-weight: 500; color: var(--muted); font-size: 12px; }

/* Save button + inline status sit on one line, wrapping on narrow screens */
.form-actions { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.form-actions .phone-msg { margin: 0; }

/* Read-only profile facts, separated from the editable form above */
.account-readonly {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}
.account-readonly dd { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }

/* Resend button sits under the callout copy */
.callout-body { flex: 1; }
.callout-body .btn { margin-top: 12px; }

/* Security card: a description on the left, an action on the right */
.security-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); padding: var(--space-3) 0;
}
.security-row + .security-row { border-top: 1px solid var(--line); }
.security-text { flex: 1; min-width: 0; }
.security-text strong { display: block; color: var(--brown); font-size: 15px; }
.security-text p { margin: 4px 0 0; font-size: 13.5px; color: var(--brown-soft); line-height: 1.5; }
.security-row .btn { flex: 0 0 auto; }

/* Help & support links */
.acct-help-lead { margin: 0 0 var(--space-3); color: var(--brown-soft); font-size: 14.5px; }
.acct-help-links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.acct-help-pill {
  display: inline-flex; align-items: center;
  padding: 8px 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brown);
  font-size: 13.5px; font-weight: 500;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.acct-help-pill:hover { background: var(--blush); border-color: var(--blush); color: #fff; }
.acct-help-note { margin: var(--space-4) 0 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.acct-help-note a { color: var(--brown); }

@media (max-width: 560px) {
  .security-row { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .security-row .btn { width: 100%; }
}

/* =========================================
   Guest List  (Misafir Listesi tab + edit page)
   ========================================= */

/* With a 6th tab, let them wrap on narrow screens instead of overflowing. */
.tabs { flex-wrap: wrap; }

/* ---- Stats bar ---- */
.gl-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.gl-stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-3);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.gl-stat-num { display: block; font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--brown); }
.gl-stat-label { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.gl-stat-attending .gl-stat-num { color: var(--success); }
.gl-stat-maybe .gl-stat-num     { color: var(--gold); }
.gl-stat-declined .gl-stat-num  { color: var(--danger); }
.gl-stat-pending .gl-stat-num   { color: var(--muted); }
.gl-stat-bride .gl-stat-num     { color: var(--blush-dark); }
.gl-stat-groom .gl-stat-num     { color: var(--gold); }
.gl-stat-tables .gl-stat-num    { color: var(--brown); }
@media (max-width: 540px) {
  .gl-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Quick-add ---- */
.gl-add-card { padding: var(--space-4) var(--space-5); }
.gl-add-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr auto;
  gap: var(--space-3);
  align-items: end;
}
.gl-add-grid .field { margin: 0; }
.gl-f-submit .btn { white-space: nowrap; }
.gl-add-hint { margin: var(--space-2) 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 920px) {
  .gl-add-grid { grid-template-columns: 1fr 1fr 1fr; }
  .gl-f-name, .gl-f-submit { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .gl-add-grid { grid-template-columns: 1fr 1fr; }
  .gl-f-name, .gl-f-note, .gl-f-submit { grid-column: 1 / -1; }
}

/* ---- Toolbar ---- */
.gl-toolbar {
  display: flex; align-items: center; gap: var(--space-3);
  flex-wrap: wrap; margin: var(--space-5) 0 var(--space-4);
}
.gl-search {
  flex: 1 1 200px; min-width: 160px;
  font-family: var(--sans); font-size: 14px; color: var(--brown);
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 14px;
}
.gl-search:focus { outline: none; border-color: var(--blush); box-shadow: 0 0 0 3px rgba(212,165,154,.18); }
.gl-toolbar-right { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.gl-view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gl-view-btn {
  background: var(--card); border: none; cursor: pointer;
  padding: 8px 12px; font-size: 15px; color: var(--muted); line-height: 1;
}
.gl-view-btn + .gl-view-btn { border-left: 1px solid var(--line); }
.gl-view-btn.active { background: var(--cream); color: var(--brown); }

/* ---- List view ---- */
.gl-list-view { display: flex; flex-direction: column; gap: var(--space-2); }
.gl-row {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px var(--space-4);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.gl-row:hover { box-shadow: var(--shadow-sm); }
.gl-row.selected { border-color: var(--blush); background: #FBF3E9; }
.gl-check { display: inline-flex; align-items: center; }
.gl-check input { width: 17px; height: 17px; accent-color: var(--blush-dark); cursor: pointer; }
.gl-avatar {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: var(--blush); color: #fff; font-family: var(--serif); font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
}
.gl-row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gl-name { font-weight: 600; color: var(--brown); }
.gl-note { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gl-note-empty, .gl-table-empty { font-style: italic; opacity: .55; font-weight: 400; }
.gl-table-badge {
  flex: 0 0 auto; font-size: 12.5px; color: var(--brown);
  background: var(--cream); border-radius: 999px; padding: 4px 12px; font-weight: 600;
}
.gl-editable { cursor: pointer; border-radius: 4px; padding: 1px 4px; margin: -1px -4px; }
.gl-editable:hover { background: rgba(212,165,154,.16); }
.gl-row-status { flex: 0 0 auto; font-size: 11.5px; min-width: 0; white-space: nowrap; }
.gl-row-status.ok { color: var(--success); }
.gl-row-status.saving { color: var(--muted); }
.gl-row-actions { flex: 0 0 auto; display: flex; gap: 2px; }
.gl-icon-btn {
  background: transparent; border: none; cursor: pointer;
  padding: 5px 7px; border-radius: var(--radius); color: var(--brown-soft);
  font-size: 14px; line-height: 1; text-decoration: none;
}
.gl-icon-btn:hover { background: var(--cream); color: var(--brown); }
.gl-del:hover { color: var(--danger); }
.gl-inline-input, .gl-inline-select {
  font-family: var(--sans); font-size: 14px; color: var(--brown);
  padding: 5px 9px; border: 1px solid var(--blush); border-radius: var(--radius);
  background: var(--card); max-width: 100%;
}
.gl-inline-input:focus, .gl-inline-select:focus { outline: none; box-shadow: 0 0 0 3px rgba(212,165,154,.2); }

/* RSVP pills */
.gl-rsvp {
  flex: 0 0 auto; border: none; border-radius: 999px;
  padding: 4px 11px; font-family: var(--sans); font-size: 12px; font-weight: 600;
  cursor: pointer; line-height: 1.3;
}
.gl-rsvp-attending { background: #E6EFE6; color: var(--success); }
.gl-rsvp-maybe     { background: #FBF3E9; color: var(--gold); }
.gl-rsvp-declined  { background: #F8E9E8; color: var(--danger); }
.gl-rsvp-pending   { background: #F0ECE4; color: var(--muted); }

/* Side (taraf) chips */
.gl-side {
  flex: 0 0 auto; border: none; border-radius: 999px;
  padding: 4px 10px; font-family: var(--sans); font-size: 11.5px; font-weight: 600;
  cursor: pointer; line-height: 1.3;
}
.gl-side-bride { background: rgba(212, 165, 154, .20); color: var(--blush-dark); }
.gl-side-groom { background: rgba(184, 153, 104, .22); color: var(--gold); }
.gl-side-none  { background: transparent; color: var(--muted); border: 1px dashed var(--line); font-weight: 500; }
.gl-side-none:hover { border-color: var(--blush); color: var(--blush-dark); }

@keyframes gl-flash { from { background: #FBF3E9; } to { background: var(--card); } }
.gl-just-added { animation: gl-flash 1.5s ease-out; }

@media (max-width: 620px) {
  .gl-row { flex-wrap: wrap; row-gap: 6px; }
  .gl-row-main { flex-basis: 100%; order: 3; }
  .gl-row-status { order: 5; }
  .gl-row-actions { order: 4; margin-left: auto; }
}

/* ---- Table (seating) view ---- */
.gl-tables-view {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4);
}
.gl-table-card {
  background: var(--card); border: 1px solid var(--line);
  border-top: 3px solid var(--gold); border-radius: var(--radius-lg);
  padding: var(--space-4); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.gl-table-card-none { border-top-color: var(--muted); }
.gl-table-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.gl-table-head h3 { margin: 0; font-size: 18px; }
.gl-table-count { flex: 0 0 auto; font-size: 11.5px; color: var(--brown-soft); background: var(--cream); border-radius: 999px; padding: 2px 9px; }
.gl-table-mini { font-size: 12px; color: var(--muted); margin: 4px 0 var(--space-3); }
.gl-table-guests { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
.gl-table-guests li {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: 8px 0; border-top: 1px solid var(--line);
}
.gl-tg-name { color: var(--brown); font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-tg-chips { display: inline-flex; gap: 6px; align-items: center; flex: 0 0 auto; }
@media (max-width: 900px) { .gl-tables-view { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gl-tables-view { grid-template-columns: 1fr; } }

/* ---- PDF export dialog ---- */
.gl-pdf-opt {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-3) var(--space-4); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: var(--space-2); cursor: pointer;
}
.gl-pdf-opt:has(input:checked) { border-color: var(--blush); background: #FBF3E9; }
.gl-pdf-opt input { margin-top: 3px; accent-color: var(--blush-dark); }
.gl-pdf-opt span { display: flex; flex-direction: column; }
.gl-pdf-opt small { color: var(--muted); font-size: 12px; }
.gl-pdf-section { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin: var(--space-4) 0 var(--space-2); }
.gl-pdf-checks { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--space-2); }
.gl-pdf-checks label { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--brown); cursor: pointer; }
.gl-pdf-checks input { width: 16px; height: 16px; accent-color: var(--blush-dark); flex: 0 0 auto; }

/* ---- Guest limit dialog (friendly activation prompt) ---- */
.gl-limit-card { text-align: center; max-width: 420px; }
.gl-limit-art { font-size: 44px; line-height: 1; margin-bottom: var(--space-2); }
.gl-limit-card h3 { margin-bottom: var(--space-3); }
.gl-limit-cute { color: var(--blush-dark); font-style: italic; margin-top: var(--space-2); }
.gl-limit-card .modal-actions { justify-content: center; }

/* ---- Edit page ---- */
.gle-breadcrumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: var(--space-4); }
.gle-breadcrumb a { color: var(--brown-soft); }
.gle-breadcrumb a:hover { color: var(--brown); }
.gle-bc-sep { color: var(--muted); }
.gle-bc-current { color: var(--brown); font-weight: 600; }
.gle-group-label { display: block; font-size: 13px; font-weight: 600; color: var(--brown); margin-bottom: 8px; letter-spacing: .2px; }
.gle-radios { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.gle-radio { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--brown); }
.gle-radio input { accent-color: var(--blush-dark); }
.gle-radio:has(input:checked) { border-color: var(--blush); background: #FBF3E9; font-weight: 600; }
.gle-actions { display: flex; gap: var(--space-3); align-items: center; margin-top: var(--space-2); }
