/* Ila — Kasavu design system
   Banana-leaf green for structure, zari gold for decoration only,
   kumkum red for problems, white cotton for surfaces. */

:root {
  --leaf-dark: #0F3B22;
  --leaf-deep: #154A2C;
  --leaf: #2E7D32;
  --leaf-bright: #3E9B48;
  --leaf-tint: #EEF5EF;
  --zari: #C9A227;
  --zari-tint: #FBF4DE;
  --turmeric: #8A5A12;
  --kumkum: #B42318;
  --kumkum-tint: #FDECEA;
  --declined-chart: #C98B86;
  --page: #FAFBF7;
  --card: #FFFFFF;
  --border: #E4E7E2;
  --border-strong: #7A8177;
  --ink: #1F2937;
  --muted: #5F6673;
  --on-dark: #FFFFFF;
  --on-dark-muted: #C8DCCB;

  --display: "Anek Latin", "Anek Malayalam", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", "Anek Malayalam", system-ui, sans-serif;
  --ml: "Anek Malayalam", "Noto Sans Malayalam", sans-serif;

  --r-hero: 22px;
  --r-card: 16px;
  --r-control: 10px;
  --r-chip: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.55 var(--body);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--leaf); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--zari); outline-offset: 2px; border-radius: 4px; }
.ml { font-family: var(--ml); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- The kasavu border: the one memorable element ---------- */
.kasavu {
  height: 10px;
  background:
    linear-gradient(var(--zari), var(--zari)) top / 100% 4px no-repeat,
    linear-gradient(var(--zari), var(--zari)) bottom 1px left 0 / 100% 2px no-repeat;
}
.kasavu.wide {
  height: 16px;
  background:
    linear-gradient(var(--zari), var(--zari)) top / 100% 7px no-repeat,
    linear-gradient(var(--zari), var(--zari)) bottom 2px left 0 / 100% 2px no-repeat;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border-radius: var(--r-control); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--leaf-dark); color: #fff; }
.btn-primary:hover { background: var(--leaf-deep); }
.btn-secondary { background: var(--card); color: var(--leaf-dark); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--leaf-tint); }
.btn-light { background: #fff; color: var(--leaf-dark); }
.btn-light:hover { background: var(--leaf-tint); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: var(--on-dark-muted); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.08); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }

/* ---------- Status chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-chip); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-coming { background: var(--leaf-tint); color: #256B29; }
.chip-no { background: var(--kumkum-tint); color: var(--kumkum); }
.chip-unsure { background: var(--zari-tint); color: var(--turmeric); }
.chip-pending { background: #F0F1F3; color: #5B616E; }

/* =========================================================
   Landing page
   ========================================================= */
.site-nav {
  max-width: 1200px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; gap: 32px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--leaf-dark); }
.logo-mark { width: 34px; height: 34px; }
.logo-word { font: 600 26px/1 var(--display); }
.logo-ml { font: 500 16px/1 var(--ml); color: var(--turmeric); margin-top: 4px; }
.site-nav .links { display: flex; gap: 26px; margin-left: auto; }
.site-nav .links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav .links a:hover { color: var(--leaf); }
.site-nav .actions { display: flex; gap: 10px; }

.hero {
  max-width: 1200px; margin: 0 auto; padding: 48px 24px 72px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero h1 { font-size: clamp(42px, 5.6vw, 72px); color: var(--leaf-dark); letter-spacing: -0.025em; line-height: 1.02; }
.hero .lede { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 34em; }
.hero .cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero .proof { margin-top: 28px; font-size: 14px; color: var(--muted); }
.hero .proof strong { color: var(--ink); }

/* invite card visual */
.invite-visual { position: relative; padding: 24px 0 24px 24px; }
.invite-card {
  background: var(--leaf-dark); color: #fff; border-radius: var(--r-hero); overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(15,59,34,.55);
  transform: rotate(-1.5deg);
}
.invite-card .inner { padding: 36px 36px 30px; position: relative; }
.invite-card .lang { display: flex; gap: 6px; }
.invite-card .lang span { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(200,220,203,.5); color: var(--on-dark-muted); }
.invite-card .lang span.on { background: #fff; color: var(--leaf-dark); border-color: #fff; font-weight: 600; }
.invite-card .welcome { margin-top: 30px; font: 500 17px/1.4 var(--ml); color: var(--on-dark-muted); }
.invite-card .names { margin-top: 6px; font: 600 46px/1.05 var(--ml); }
.invite-card .date { margin-top: 14px; color: var(--on-dark-muted); font-size: 15px; }
.invite-card .fns { margin-top: 24px; display: grid; gap: 8px; }
.invite-card .fn { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: rgba(255,255,255,.07); border-radius: 12px; font-size: 14px; }
.invite-card .fn b { font-weight: 600; font-size: 15px; display: block; }
.invite-card .fn small { color: var(--on-dark-muted); }
.invite-card .fn .pill { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--leaf-dark); }
.invite-card .leafdeco { position: absolute; right: -40px; top: 18px; width: 220px; opacity: .22; transform: rotate(-18deg); pointer-events: none; }
.float-note {
  position: absolute; left: -8px; bottom: -6px; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 16px; box-shadow: 0 12px 30px -16px rgba(31,41,55,.35);
  display: flex; gap: 12px; align-items: center; font-size: 14px; max-width: 290px;
}
.float-note .dot { width: 36px; height: 36px; border-radius: 10px; background: var(--leaf-tint); display: grid; place-items: center; flex: none; }
.float-note b { display: block; font-size: 15px; }
.float-note span { color: var(--muted); }

/* functions strip */
.functions-strip { background: var(--leaf-dark); color: #fff; }
.functions-strip .wrap { max-width: 1200px; margin: 0 auto; padding: 28px 24px 26px; display: flex; gap: 32px; align-items: baseline; flex-wrap: wrap; }
.functions-strip p { color: var(--on-dark-muted); font-size: 15px; }
.functions-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.functions-strip li { font: 500 18px/1.3 var(--display); }
.functions-strip li .ml { color: var(--zari); margin-left: 6px; font-size: 16px; }

.section { max-width: 1200px; margin: 0 auto; padding: 96px 24px; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(32px, 3.6vw, 46px); color: var(--leaf-dark); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }

/* how it works — a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--leaf-dark); }
.steps li { padding: 24px 24px 0 0; }
.steps .n { font: 600 44px/1 var(--display); color: var(--zari); }
.steps h3 { font-size: 21px; margin-top: 14px; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--border); }
.feature:first-of-type { border-top: 0; }
.feature h3 { font-size: 32px; color: var(--leaf-dark); }
.feature p { margin-top: 14px; color: var(--muted); font-size: 17px; max-width: 32em; }
.feature ul { margin: 18px 0 0; padding-left: 20px; color: var(--ink); }
.feature li { margin: 6px 0; }
.feature li::marker { color: var(--leaf); }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px; }

/* journey */
.journey { list-style: none; margin: 0; padding: 0; position: relative; }
.journey::before { content: ""; position: absolute; left: 15px; top: 14px; bottom: 14px; width: 2px; background: var(--leaf-tint); }
.journey li { position: relative; display: grid; grid-template-columns: 32px 1fr auto; gap: 14px; align-items: start; padding: 10px 0; }
.journey .ic { width: 32px; height: 32px; border-radius: 50%; background: var(--leaf-tint); color: var(--leaf-dark); display: grid; place-items: center; position: relative; z-index: 1; }
.journey .ic.is-done { background: var(--leaf); color: #fff; }
.journey .ic.now { background: var(--zari); color: var(--leaf-dark); }
.journey b { display: block; font-size: 15px; }
.journey span { font-size: 14px; color: var(--muted); }
.journey .t { font-size: 13px; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.panel-head b { font: 600 19px/1.2 var(--display); }

/* language panel */
.lang-rows { display: grid; gap: 10px; }
.lang-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--page); }
.lang-row .msg { font-size: 16px; }
.lang-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.lang-tag { font-size: 13px; font-weight: 600; color: var(--leaf-dark); background: var(--leaf-tint); border-radius: 999px; padding: 4px 10px; }

/* family panel */
.family { display: grid; gap: 0; }
.family-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.family-row:last-child { border-bottom: 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 15px; background: var(--leaf-tint); color: var(--leaf-dark); }
.avatar.gold { background: var(--zari-tint); color: var(--turmeric); }
.family-row b { display: block; font-size: 15px; }
.family-row span { font-size: 14px; color: var(--muted); }
.role { font-size: 13px; font-weight: 600; color: var(--muted); }

/* budget mini */
.budget-bars { display: grid; gap: 14px; }
.bb-row { display: grid; grid-template-columns: 120px 1fr 90px; gap: 12px; align-items: center; font-size: 14px; }
.bb-track { height: 10px; background: var(--leaf-tint); border-radius: 5px; overflow: hidden; }
.bb-fill { height: 100%; background: var(--leaf); border-radius: 5px; }
.bb-fill.over { background: var(--kumkum); }
.bb-row .amt { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }

/* closing */
.closing { background: var(--leaf-dark); color: #fff; }
.closing .wrap { max-width: 1200px; margin: 0 auto; padding: 80px 24px 72px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.closing h2 { font-size: clamp(34px, 4vw, 54px); }
.closing p { color: var(--on-dark-muted); font-size: 18px; margin-top: 16px; }
.closing .cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.site-foot { max-width: 1200px; margin: 0 auto; padding: 28px 24px 40px; display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--leaf); }

/* =========================================================
   App shell (dashboard, guests)
   ========================================================= */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side {
  background: var(--leaf-dark); color: #fff; padding: 22px 16px; display: flex; flex-direction: column; gap: 22px;
  position: sticky; top: 0; height: 100vh;
}
.side .logo { color: #fff; padding: 0 8px; }
.side .logo-ml { color: var(--zari); }
.event-switch { background: rgba(255,255,255,.07); border-radius: 12px; padding: 12px 14px; }
.event-switch b { display: block; font-size: 15px; }
.event-switch span { font-size: 13px; color: var(--on-dark-muted); }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--on-dark-muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side nav a[aria-current="page"] { background: #fff; color: var(--leaf-dark); font-weight: 600; }
.side nav a .count { margin-left: auto; font-size: 12px; background: var(--zari); color: var(--leaf-dark); border-radius: 999px; padding: 1px 8px; font-weight: 700; }
.side nav svg { width: 20px; height: 20px; flex: none; }
.side .me { margin-top: auto; display: flex; gap: 12px; align-items: center; padding: 10px 8px 0; border-top: 1px solid rgba(255,255,255,.12); }
.side .me .avatar { background: var(--zari); color: var(--leaf-dark); }
.side .me b { display: block; font-size: 14px; }
.side .me span { font-size: 12px; color: var(--on-dark-muted); }

.main { padding: 28px 36px 56px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: 36px; color: var(--leaf-dark); }
.page-head p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.grid-dash { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.stack { display: grid; gap: 24px; min-width: 0; }

/* leaf hero */
.leaf-hero { background: var(--leaf-dark); color: #fff; border-radius: var(--r-hero); overflow: hidden; }
.leaf-hero .content { padding: 32px 36px 28px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.leaf-hero .kicker { color: var(--on-dark-muted); font-size: 15px; font-weight: 500; }
.leaf-hero .big { font: 600 clamp(40px, 4.6vw, 60px)/1 var(--display); margin-top: 8px; letter-spacing: -0.02em; }
.leaf-hero .big .unit { color: var(--zari); }
.leaf-hero .how { color: var(--on-dark-muted); margin-top: 14px; max-width: 36em; font-size: 15px; }
.leaf-hero .how strong { color: #fff; font-weight: 600; }
.leaf-hero .actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.leaf-hero .right { display: grid; justify-items: end; gap: 18px; }
.leaf-hero .leafart { width: 230px; }
.leaf-hero .others { display: flex; gap: 28px; }
.leaf-hero .others div { text-align: right; }
.leaf-hero .others b { font: 600 30px/1 var(--display); display: block; }
.leaf-hero .others span { font-size: 13px; color: var(--on-dark-muted); }
.leaf-hero .locked { display: none; align-items: center; gap: 8px; font-weight: 600; color: var(--zari); }
.leaf-hero.is-locked .locked { display: inline-flex; }
.leaf-hero.is-locked .lock-btn { display: none; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px 26px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card-head h2 { font-size: 22px; }
.card-head .sub { color: var(--muted); font-size: 14px; }
.card-head a { font-size: 14px; font-weight: 600; text-decoration: none; }

/* replies */
.replies { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.stacked { display: flex; gap: 3px; height: 16px; margin-top: 4px; }
.stacked span { border-radius: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; font-size: 14px; }
.legend div { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: block; }
.legend b { color: var(--ink); }
.nudge { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--zari-tint); border-radius: 12px; font-size: 14px; }
.nudge b { color: var(--turmeric); }
.perday .lbl { font-size: 13px; color: var(--muted); font-weight: 500; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 84px; margin-top: 10px; }
.bars span { flex: 1; background: var(--leaf-tint); border: 1px solid var(--leaf); border-bottom: 0; border-radius: 3px 3px 0 0; min-width: 6px; }
.bars span.peak { background: var(--leaf); }
.axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; border-top: 1px solid var(--border-strong); padding-top: 4px; }
.perday .note { font-size: 13px; color: var(--leaf); font-weight: 600; margin-top: 8px; }

/* sub-events table */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-weight: 600; font-size: 13px; color: var(--muted); padding: 0 12px 10px 0; border-bottom: 1px solid var(--border); }
.tbl td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl th.num { text-align: right; }
.tbl .fn b { display: block; font-weight: 600; }
.tbl .fn span { font-size: 13px; color: var(--muted); }
.mini-bar { width: 120px; height: 8px; background: var(--leaf-tint); border-radius: 4px; overflow: hidden; display: inline-block; vertical-align: middle; }
.mini-bar i { display: block; height: 100%; background: var(--leaf); }
.who { display: flex; align-items: center; gap: 10px; }
.who .avatar { width: 30px; height: 30px; font-size: 12px; }

/* arrivals */
.arrivals { display: grid; gap: 0; }
.arr { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.arr:last-child { border-bottom: 0; }
.arr .time { font: 600 16px/1.2 var(--display); color: var(--leaf-dark); }
.arr b { font-size: 15px; display: block; }
.arr span { font-size: 13px; color: var(--muted); }
.arr .state { margin-top: 6px; }
.arr .warn { color: var(--kumkum); font-weight: 600; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.arr .assign { margin-top: 8px; }

/* checklist */
.check-group + .check-group { margin-top: 18px; }
.check-group .gh { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.check-group .gh span { color: var(--muted); font-weight: 500; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 14px; cursor: pointer; }
.check input { appearance: none; width: 20px; height: 20px; border: 2px solid var(--border-strong); border-radius: 6px; margin: 0; flex: none; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--leaf); border-color: var(--leaf); }
.check input:checked::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px,-1px); }
.check input:checked + span { color: var(--muted); text-decoration: line-through; }
.check small { display: block; color: var(--muted); font-size: 12px; text-decoration: none; }

/* budget card */
.budget-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.budget-total b { font: 600 30px/1 var(--display); }
.budget-total span { color: var(--muted); font-size: 14px; }
.budget-track { height: 12px; border-radius: 6px; background: var(--leaf-tint); overflow: hidden; margin: 12px 0 16px; }
.budget-track i { display: block; height: 100%; background: var(--leaf); }

/* guests page */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.search { flex: 1 1 260px; position: relative; }
.search input { width: 100%; min-height: 44px; padding: 10px 14px 10px 40px; border: 1px solid var(--border-strong); border-radius: var(--r-control); font: inherit; background: #fff; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; color: var(--muted); }
select { min-height: 44px; padding: 8px 36px 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-control); font: inherit; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235F6673' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; color: var(--ink); }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--border-strong); border-radius: var(--r-control); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--muted); min-height: 36px; }
.seg button[aria-pressed="true"] { background: var(--leaf-dark); color: #fff; font-weight: 600; }
.seg button .c { opacity: .75; margin-left: 4px; font-variant-numeric: tabular-nums; }
.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); overflow-x: auto; }
.gtable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 860px; }
.gtable th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 14px 16px; border-bottom: 1px solid var(--border); background: #FCFDFB; position: sticky; top: 0; }
.gtable td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.gtable tr:last-child td { border-bottom: 0; }
.gtable tbody tr:hover { background: #FBFCFA; }
.gtable .name b { display: block; font-size: 15px; }
.gtable .name span { color: var(--muted); font-size: 13px; }
.fn-dots { display: flex; gap: 4px; }
.fn-dots i { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--leaf-tint); color: var(--leaf-dark); }
.fn-dots i.off { background: transparent; color: #A3A9A0; text-decoration: line-through; }
.travel-cell { font-size: 13px; color: var(--muted); }
.travel-cell b { color: var(--ink); font-weight: 600; display: block; font-size: 14px; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font: 600 20px/1.3 var(--display); margin-bottom: 6px; }
.result-note { font-size: 14px; color: var(--muted); margin: 0 0 10px; }

/* =========================================================
   Guest invite (mobile-first)
   ========================================================= */
.invite-page { background: var(--leaf-dark); min-height: 100vh; }
.invite-shell { max-width: 520px; margin: 0 auto; background: var(--page); min-height: 100vh; }
.inv-top { background: var(--leaf-dark); color: #fff; }
.inv-top .bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; gap: 12px; }
.inv-top .bar .from { font-size: 13px; color: var(--on-dark-muted); }
.lang-switch { display: flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 3px; }
.lang-switch button { border: 0; background: transparent; color: var(--on-dark-muted); font-size: 13px; padding: 6px 12px; border-radius: 999px; min-height: 32px; font-family: var(--ml); }
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--leaf-dark); font-weight: 600; }
.inv-hero { padding: 20px 24px 30px; position: relative; overflow: hidden; }
.inv-hero .leafdeco { position: absolute; right: -60px; top: -10px; width: 240px; opacity: .2; transform: rotate(-20deg); pointer-events: none; }
.inv-hero .dear { color: var(--on-dark-muted); font-size: 16px; position: relative; }
.inv-hero h1 { font-size: 46px; margin-top: 10px; line-height: 1.05; position: relative; }
.inv-hero .with { color: var(--on-dark-muted); margin-top: 12px; font-size: 15px; position: relative; max-width: 26em; }
.inv-body { padding: 24px 20px 40px; display: grid; gap: 16px; }
.inv-body h2 { font-size: 22px; color: var(--leaf-dark); }
.inv-body .hint { color: var(--muted); font-size: 14px; margin-top: 4px; }
.fn-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); padding: 18px; }
.fn-card .top { display: flex; justify-content: space-between; gap: 12px; }
.fn-card h3 { font-size: 20px; }
.fn-card .meta { font-size: 14px; color: var(--muted); margin-top: 4px; }
.fn-card .meta a { font-weight: 600; text-decoration: none; }
.fn-card .when { text-align: right; font: 600 15px/1.2 var(--display); color: var(--leaf-dark); white-space: nowrap; }
.fn-card .when small { display: block; font: 500 13px/1.4 var(--body); color: var(--muted); }
.answer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.answer button { min-height: 46px; border: 1px solid var(--border-strong); background: #fff; border-radius: var(--r-control); font-weight: 600; font-size: 15px; color: var(--ink); font-family: var(--body); }
.answer button[aria-pressed="true"][data-v="yes"] { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.answer button[aria-pressed="true"][data-v="maybe"] { background: var(--zari-tint); border-color: var(--turmeric); color: var(--turmeric); }
.answer button[aria-pressed="true"][data-v="no"] { background: var(--kumkum-tint); border-color: var(--kumkum); color: var(--kumkum); }
.people { display: none; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 15px; }
.fn-card.going .people { display: flex; }
.stepper { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--r-control); overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: 0; background: #fff; font-size: 20px; color: var(--leaf-dark); }
.stepper button:hover { background: var(--leaf-tint); }
.stepper output { width: 40px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.toggle-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.toggle-row b { display: block; font-size: 16px; }
.toggle-row span { font-size: 14px; color: var(--muted); }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; background: #C7CCC4; border-radius: 999px; transition: background .15s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--leaf); }
.switch input:checked + i::after { transform: translateX(22px); }
.switch input:focus-visible + i { outline: 3px solid var(--zari); outline-offset: 2px; }
.travel-fields { display: none; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.travel-fields.on { display: grid; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-control); font: inherit; background-color: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
textarea { width: 100%; min-height: 84px; padding: 12px; border: 1px solid var(--border-strong); border-radius: var(--r-control); font: inherit; resize: vertical; }
.submit-bar { position: sticky; bottom: 0; padding: 14px 20px 18px; background: linear-gradient(to top, var(--page) 70%, rgba(250,251,247,0)); }
.submit-bar .btn { width: 100%; min-height: 52px; font-size: 16px; }
.form-error { color: var(--kumkum); font-size: 14px; font-weight: 600; margin-bottom: 10px; display: none; }
.form-error.on { display: block; }
.done { display: none; padding: 32px 24px 48px; text-align: left; }
.done.on { display: block; }
.done .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--leaf); display: grid; place-items: center; color: #fff; }
.done h2 { font-size: 32px; color: var(--leaf-dark); margin-top: 18px; }
.done p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.summary { margin-top: 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); padding: 6px 18px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.summary div:last-child { border-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .grid-dash { grid-template-columns: 1fr; }
  .grid-dash > aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 24px; }
  .site-nav .links { display: none; }
  .site-nav .actions { margin-left: auto; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .closing .wrap { grid-template-columns: 1fr; }
  .closing .cta { justify-content: flex-start; }
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; gap: 12px; }
  .side .event-switch, .side .me { display: none; }
  .side nav { display: flex; overflow-x: auto; gap: 4px; width: 100%; padding-bottom: 2px; }
  .side nav a { white-space: nowrap; padding: 8px 12px; }
  .main { padding: 22px 16px 48px; }
  .leaf-hero .content { grid-template-columns: 1fr; padding: 26px 22px 22px; }
  .leaf-hero .right { justify-items: start; }
  .leaf-hero .others div { text-align: left; }
  .leaf-hero .leafart { display: none; }
  .replies { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .site-nav { padding: 14px 16px; }
  .site-nav .actions .btn-secondary { display: none; }
  .hero, .section { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .steps { grid-template-columns: 1fr; }
  .invite-visual { padding-left: 0; }
  .invite-card .inner { padding: 26px 22px 22px; }
  .invite-card .names { font-size: 36px; }
  .float-note { position: static; margin-top: 16px; max-width: none; }
  .bb-row { grid-template-columns: 90px 1fr 74px; }
  .card { padding: 20px 18px; }
  .tbl .hide-sm { display: none; }
  .page-head h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Fixes after visual review ---------- */
.journey .ic { flex: none; height: 32px; font-size: 13px; line-height: 1; font-weight: 700; }
.journey .ic svg { width: 16px; height: 16px; }
.invite-visual { padding-bottom: 84px; }
.float-note { bottom: 0; left: 0; }
.bb-row { grid-template-columns: 110px minmax(0,1fr) max-content; }
@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { min-width: 0; }
  .side nav { min-width: 0; max-width: 100%; }
}
@media (max-width: 560px) {
  .invite-visual { padding-bottom: 0; }
  .bb-row { grid-template-columns: 84px minmax(0,1fr) max-content; font-size: 13px; }
}

/* ---------- Leaf as the brand image across the app ---------- */
.leaf-hero { position: relative; isolation: isolate; }
.leaf-hero .bg-leaf { position: absolute; z-index: -1; width: 820px; max-width: none; right: -250px; bottom: -40px; opacity: .55; transform: rotate(-10deg); pointer-events: none; }
.leaf-hero .right { align-self: end; }
.leaf-hero .others b { text-shadow: 0 2px 12px rgba(15,59,34,.6); }
.leaf-hero .others span { color: #fff; }
.inv-hero .leafdeco { width: 560px; max-width: none; right: -260px; top: auto; bottom: -70px; opacity: .3; transform: rotate(-12deg); }
.side .logo-mark, .site-nav .logo-mark { width: 36px; height: 36px; }
@media (max-width: 960px) { .leaf-hero .bg-leaf { width: 600px; right: -260px; opacity: .35; } }
.inv-hero { display: grid; grid-template-columns: 1fr 150px; column-gap: 8px; }
.inv-hero > p, .inv-hero > h1 { grid-column: 1; }
.inv-hero .inv-couple { grid-column: 2; grid-row: 1 / span 4; align-self: end; width: 150px; position: relative; filter: drop-shadow(0 16px 20px rgba(0,0,0,.35)); }
.inv-hero h1 { font-size: 40px; }
.inv-count { margin-top: 14px; display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: baseline; background: rgba(255,255,255,.08); border-radius: 10px; padding: 8px 12px; font-size: 13px; color: var(--on-dark-muted); position: relative; justify-self: start; }
.inv-count b { color: #fff; font: 600 16px/1 var(--display); font-variant-numeric: tabular-nums; }
@media (max-width: 380px) { .inv-hero { grid-template-columns: 1fr 110px; } .inv-hero .inv-couple { width: 110px; } .inv-hero h1 { font-size: 34px; } }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--kumkum); }
.live-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--kumkum); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(180,35,24,.5); } 70% { box-shadow: 0 0 0 8px rgba(180,35,24,0); } 100% { box-shadow: 0 0 0 0 rgba(180,35,24,0); } }
.live-feed { list-style: none; margin: 0; padding: 0; }
.live-feed li { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.live-feed li:last-child { border-bottom: 0; }
.live-feed .avatar { width: 32px; height: 32px; font-size: 12px; }
.live-feed b { display: block; font-size: 14px; }
.live-feed span { font-size: 13px; color: var(--muted); }
.live-feed time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.live-feed li.new time { color: var(--leaf); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .live-feed li.new { animation: slidein .5s ease; }
  @keyframes slidein { from { opacity: 0; transform: translateY(-10px); background: var(--zari-tint); } to { opacity: 1; transform: none; } }
}
.grid-dash > aside { display: grid; gap: 24px; align-content: start; }

/* ---------- ഇla wordmark ---------- */
.logo-word { display: inline-flex; align-items: baseline; font: 600 28px/1 var(--display); letter-spacing: -0.01em; }
.logo-i { font-family: var(--ml); font-weight: 600; color: var(--zari); font-size: 1.12em; margin-right: 1px; }
.site-nav:not(.h-hero .site-nav) .logo-i { color: var(--turmeric); }
.logo-mark { width: 30px !important; height: 30px !important; }
.sent-with { text-align: center; font-size: 13px; color: var(--muted); padding: 0 20px 28px; }
.sent-with a { color: var(--leaf-dark); font-weight: 700; text-decoration: none; }
.sent-with .logo-i { color: var(--turmeric); font-size: 1.1em; }
.site-foot .logo-i { color: var(--turmeric); }
