:root {
  --ink: #122033;
  --muted: #667789;
  --line: #e4eaf0;
  --bg: #f3f6f8;
  --surface: #ffffff;
  --brand: #f57200;
  --brand-2: #d86200;
  --soft: #fff4eb;
  --green: oklch(0.58 0.12 165);
  --ok: #1b6b45;
  --ok-bg: #e8f6ee;
  --danger: #8d2e2e;
  --danger-bg: #f8ecec;
  --warn: #8a5a12;
  --warn-bg: #f8f1e4;
  --shadow: 0 1px 2px rgba(18, 32, 51, 0.04), 0 10px 28px rgba(18, 32, 51, 0.05);
  --sans: "Plus Jakarta Sans", "Montserrat", sans-serif;
  color-scheme: light;
  font: 16px/1.5 var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1, h2, h3, p { margin: 0; }

.shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: stretch;
  transition: grid-template-columns 0.2s ease;
}
.sidebar {
  position: sticky;
  top: 0;
  align-self: stretch;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: #003D73;
  color: white;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  padding: 0 12px 16px;
  gap: 0;
  box-shadow: 1px 0 0 rgba(0, 0, 0, 0.04);
}
.shell.collapsed { grid-template-columns: 76px minmax(0, 1fr); }
.shell.collapsed .sidebar { padding-inline: 10px; align-items: center; }
.shell.collapsed .brand { margin: 0 0 12px; justify-content: center; padding: 0; width: 100%; }
.shell.collapsed .brand-copy,
.shell.collapsed .nav-label { display: none; }
.shell.collapsed .side-nav { width: 100%; }
.shell.collapsed .side-nav a,
.shell.collapsed .sign-out { justify-content: center; padding: 0; width: 100%; }
.sidebar-toggle {
  position: absolute;
  top: 28px;
  right: -14px;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(18, 32, 51, 0.08);
}
.sidebar-toggle svg { width: 16px; height: 16px; }
.brand {
  display: flex; gap: 12px; align-items: center; min-width: 0;
  min-height: 64px; margin: 0 -12px 12px; padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.brand > div { min-width: 0; }
.brand small { overflow-wrap: anywhere; }
.sidebar-close { display: none; }
.admin-logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-mark {
  width: 32px; height: 32px; border-radius: 6px; flex: none;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.16); color: white;
  font-size: 12px; font-weight: 800;
}
.admin-logo-full {
  color: white; font-size: 12px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.15;
}
.shell.collapsed .admin-logo-full { display: none; }
.brand strong, .account strong { display: block; font-size: 15px; line-height: 1.2; }
.brand small, .account small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; margin-top: 2px; }
.side-nav { display: grid; gap: 4px; }
.side-label {
  margin: 0 8px 6px; color: rgba(255, 255, 255, 0.55); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.side-nav a {
  display: flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 12px; border-radius: 12px;
  color: rgba(255, 255, 255, 0.8); text-decoration: none;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.side-nav a:hover { background: rgba(255, 255, 255, 0.1); color: white; }
.side-nav a.active, .side-nav a.active:hover {
  background: white; color: #003D73;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.sidebar-event-flow {
  margin-top: 8px;
  display: grid;
  gap: 4px;
}
.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  margin: 6px 4px 10px;
}
.side-event-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 12px;
  margin: 0 4px 6px;
  display: grid;
  gap: 2px;
}
.side-event-type {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}
.side-event-name {
  font-size: 13px;
  color: white;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.event-side-nav {
  display: grid;
  gap: 0;
}
.flow-item {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.flow-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 22px;
  flex: none;
}
.flow-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 11px;
  font-weight: 800;
}
.flow-item.is-current .flow-num { background: white; color: #003D73; }
.flow-line {
  width: 2px;
  flex: 1;
  min-height: 10px;
  margin: 3px 0;
  background: rgba(255, 255, 255, 0.22);
}
.flow-body { min-width: 0; flex: 1; display: grid; padding-bottom: 6px; }
.event-side-nav a.active,
.event-side-nav a.active:hover {
  background: white;
  color: #003D73;
}
.flow-sub {
  display: grid;
  gap: 2px;
  margin: 2px 0 4px 8px;
  padding-left: 10px;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
}
.flow-sub a {
  min-height: 32px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.flow-sub-num {
  width: 16px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 800;
}
.flow-sub a.active .flow-sub-num { color: white; }
.shell.collapsed .flow-rail,
.shell.collapsed .flow-sub { display: none; }
.shell.collapsed .sidebar-event-flow .side-event-chip,
.shell.collapsed .sidebar-event-flow .side-label {
  display: none;
}

.nav-ico { width: 18px; height: 18px; flex: none; }
.sidebar-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 12px; }
.avatar {
  width: 36px; height: 36px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--brand); color: white; font-size: 13px; font-weight: 700;
}
.sign-out {
  display: flex; align-items: center; gap: 10px;
  min-height: 42px; padding: 0 12px; border: 0; border-radius: 12px;
  background: transparent; color: rgba(255, 255, 255, 0.82); font-weight: 600; text-align: left;
}
.sign-out:hover { background: rgba(255, 255, 255, 0.08); color: white; }
.workspace { min-width: 0; background: #f4f6fb; }
.admin-bar { display: flex; align-items: center; gap: 12px; padding: 18px 28px 0; }
.admin-bar .menu, .admin-bar-title { display: none; }
.account-menu { position: relative; margin-left: auto; }
.admin-user {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  border: 1px solid var(--line); border-radius: 14px; background: white;
  padding: 6px 8px 6px 6px; text-align: left;
}
.admin-user.active, .admin-user[aria-expanded="true"] { border-color: color-mix(in oklch, var(--brand) 45%, var(--line)); }
.admin-user div { min-width: 0; }
.admin-user strong { display: block; font-size: 14px; line-height: 1.2; }
.admin-user small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.caret { width: 16px; height: 16px; flex: none; color: var(--muted); }
.account-drop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
  min-width: 196px; padding: 6px; display: grid;
  background: white; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(18, 32, 51, 0.1);
}
.account-drop a, .account-drop button {
  display: flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 10px; border: 0; border-radius: 10px;
  background: transparent; color: #314354; text-decoration: none;
  font-weight: 600; text-align: left;
}
.account-drop a:hover, .account-drop button:hover,
.account-drop a.active { background: #f4f7f9; }
.account-form { max-width: 480px; }
.account-page { display: grid; gap: 16px; max-width: 760px; }
.account-kicker {
  margin-bottom: 6px; color: #003D73; font-size: 11px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.account-card { display: grid; gap: 6px; }
.account-card .stack { margin-top: 10px; }
.account-wa { display: grid; gap: 10px; margin-top: 12px; }
.account-wa-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #f7f9fb;
}
.account-wa-row span { color: var(--muted); font-size: 13px; }
.wa-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.wa-pill {
  border: 1px solid #003d7333; border-radius: 999px; padding: 6px 10px;
  background: #f3f7fb; color: #003D73; font-size: 12px; font-weight: 700;
}
main { padding: 16px 28px 48px; max-width: 1200px; }
main:has(.send-desk) { max-width: none; }
.backdrop { display: none; }

.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
h1 { font-size: 30px; letter-spacing: -0.03em; line-height: 1.15; }
h2 { font-size: 17px; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.stack { display: grid; gap: 16px; }
.grid-4, .grid-3, .grid-2 { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.stat span { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat strong { display: block; font-size: 26px; letter-spacing: -0.03em; margin-top: 6px; }

.dash-hello { display: grid; gap: 4px; margin-bottom: 4px; }
.dash-hello h1 { color: #003D73; }
.dash-hello p { color: var(--muted); }
.hello {
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap;
  background: linear-gradient(100deg, #003D73, #14508f);
  color: white; border-radius: 18px; padding: 22px 24px;
}
.workspace .btn { background: #003D73; }
.workspace .btn:hover { background: #002a56; }
.hello p { margin-top: 8px; color: color-mix(in oklch, white 82%, transparent); font-size: 14px; }
.hello-kicker {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px;
  background: color-mix(in oklch, white 16%, transparent); font-size: 12px; font-weight: 700;
}
.hello h1 { color: white; font-size: clamp(26px, 3vw, 34px); margin-top: 12px; }
.quick-row, .metric-grid { display: grid; gap: 14px; }
.quick-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick {
  display: flex; align-items: center; gap: 12px;
  background: white; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  color: inherit; text-decoration: none; font-weight: 700;
}
.quick:hover { border-color: color-mix(in oklch, var(--brand) 35%, var(--line)); }
.quick span { margin-left: auto; color: var(--muted); font-weight: 500; }
.quick i, .metric-ico {
  width: 36px; height: 36px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: var(--soft); color: var(--brand);
}
.quick i svg, .metric-ico svg { width: 18px; height: 18px; }
.metric {
  position: relative; background: white; border: 1px solid var(--line); border-radius: 16px;
  border-top: 3px solid var(--accent, var(--brand)); padding: 16px 16px 18px;
}
.metric-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.metric strong { display: block; font-size: 28px; letter-spacing: -0.03em; margin-top: 14px; }
.metric small { display: block; color: var(--muted); margin-top: 4px; }
.metric-blue { --accent: #001564; }
.metric-blue .metric-ico { background: #e8edff; color: #001564; }
.metric-green { --accent: var(--ok); }
.metric-green .metric-ico { background: var(--ok-bg); color: var(--ok); }
.metric-amber { --accent: #d0892b; }
.metric-amber .metric-ico { background: var(--warn-bg); color: var(--warn); }
.metric-rose { --accent: #c45b78; }
.metric-rose .metric-ico { background: #fdecef; color: #c45b78; }

.btn, .btn-ghost, .btn-danger {
  border-radius: 10px; border: 1px solid transparent;
  min-height: 42px; padding: 8px 16px; background: var(--brand); color: white;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.btn:hover { background: var(--brand-2); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-ghost { background: white; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #f7f9fb; }
.btn-danger { background: white; color: var(--danger); border-color: #efd4d4; }
.btn-danger:hover { background: var(--danger-bg); }
.btn-small { min-height: 34px; padding: 5px 10px; font-size: 14px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #24364a; }
input, select, textarea {
  width: 100%; border: 1px solid #d5dee6; border-radius: 10px;
  background: white; padding: 10px 12px; min-height: 44px; font-weight: 450;
}
input[type="checkbox"] {
  width: 16px; height: 16px; min-height: 16px; padding: 0; flex: none;
  border-radius: 4px; accent-color: var(--brand);
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #93a1ae; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand) 18%, transparent);
}
button:focus-visible, a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: end; }
.type-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.type-add input { flex: 1; }
.span-2 { grid-column: span 2; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.detail-grid span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.detail-grid strong { display: block; margin-top: 4px; font-weight: 650; white-space: pre-wrap; }

.banner { border-radius: 10px; padding: 12px 14px; background: var(--soft); }
.banner.error { background: var(--danger-bg); color: var(--danger); }
.banner.ok { background: var(--ok-bg); color: var(--ok); }
.banner.warn { background: var(--warn-bg); color: var(--warn); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 2px; }
.tabs button {
  background: white; border: 1px solid var(--line); border-radius: 999px;
  min-height: 38px; padding: 6px 14px; font-weight: 600; color: #3d5164;
}
.tabs button[aria-selected="true"] { background: var(--brand); color: white; border-color: var(--brand); }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f8fbfb; }

.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; background: #eef2f5; color: #3d5164; }
.badge.sent, .badge.delivered { background: var(--ok-bg); color: var(--ok); }
.badge.failed, .badge.rejected { background: var(--danger-bg); color: var(--danger); }
.badge.pending, .badge.skipped { background: var(--warn-bg); color: var(--warn); }

.empty { padding: 32px 8px; text-align: center; }
.pager { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 14px; }
.filters { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr; gap: 10px; margin-bottom: 12px; }
.upcoming-link {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.upcoming-link:last-child { border-bottom: 0; padding-bottom: 0; }
.upcoming-link span { color: var(--muted); font-size: 14px; white-space: nowrap; }

.event-list ul { list-style: none; margin: 0; padding: 0; }
.event-head, .event-list a {
  display: grid;
  grid-template-columns: minmax(150px, 1.7fr) minmax(120px, 1.1fr) minmax(80px, 0.9fr) 88px minmax(100px, 0.9fr) 168px;
  gap: 12px; align-items: center;
}
.event-head {
  padding: 0 8px 10px; color: var(--muted); font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.event-list a {
  padding: 14px 8px; border-top: 1px solid var(--line);
  color: inherit; text-decoration: none;
}
.event-list a:hover { background: #f8fbfb; }
.event-name { display: grid; gap: 2px; min-width: 0; }
.event-name strong { font-size: 15px; }
.event-name small { color: var(--muted); font-size: 13px; font-weight: 600; }
.event-row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.icon-text { display: inline-flex; align-items: center; gap: 6px; }

.modal-root { position: fixed; inset: 0; background: rgba(18, 32, 51, 0.46); display: grid; place-items: center; padding: 16px; z-index: 40; }
.modal { width: min(520px, 100%); max-height: min(90vh, 760px); overflow: auto; background: white; border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.modal-wide { width: min(680px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.modal-head h2 { margin: 0; }
.modal-close {
  width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent;
  color: var(--ink); font-size: 22px; line-height: 1;
}
.sample { white-space: pre-wrap; background: var(--bg); border-radius: 10px; padding: 12px; font-size: 14px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.check input { width: 16px; min-height: 16px; }

.login-screen {
  min-height: 100vh; display: grid; place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(90% 70% at 50% 120%, #16315f 0%, transparent 55%),
    linear-gradient(180deg, #00124f 0%, #001564 48%, #021033 100%);
}
.auth-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(320px, 0.9fr);
  background: white;
}
.auth-hero {
  background: #003D73;
  color: white;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}
.auth-hero h2 { font-size: 36px; letter-spacing: -0.03em; max-width: 14ch; }
.auth-hero p { max-width: 36ch; color: rgba(255, 255, 255, 0.82); }
.auth-kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.auth-panel { display: grid; place-items: center; padding: 32px 20px; background: #f4f7fb; }
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: #f4f7fb; }
.auth-screen .btn { background: #003D73; }
.auth-screen .btn:hover { background: #002a56; }
.register-avatar { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; background: #eef3f8; color: #003D73; display: grid; place-items: center; }
.register-avatar svg { width: 28px; height: 28px; }
.pin-label { margin: 0; text-align: center; font-size: 13px; font-weight: 700; color: #667085; }
.login-legal { margin: 0; text-align: center; color: #98a2b3; font-size: 12px; }
.stack-field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: #344054; }
.auth-panel .btn { background: #003D73; }
.auth-panel .btn:hover { background: #002a56; }
.auth-panel .login-card { width: min(420px, 100%); }
.login-copy { text-align: center; }
.login-switch button {
  border: 0; background: transparent; color: #003D73; font-weight: 700; padding: 0;
}
.pin-row { display: flex; justify-content: center; gap: 10px; }
.pin-row input {
  width: 52px; min-height: 56px; padding: 0; text-align: center;
  font-size: 22px; font-weight: 700;
}
.pin-row input[type="password"] {
  -webkit-text-security: disc;
}
.account-choice { display: grid; gap: 8px; }
.account-choice button {
  display: grid; gap: 2px; text-align: left;
  border: 1px solid var(--line); border-radius: 14px; background: white; padding: 12px 14px;
}
.account-choice button.selected { border-color: #003D73; background: #f3f7fb; }
.account-choice span { color: var(--muted); font-size: 13px; font-weight: 500; }

.otp-phone-chip {
  margin: 0 auto;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eef3f8;
  color: #003D73;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.otp-methods {
  display: grid;
  gap: 10px;
  animation: otp-methods-in 0.35s ease both;
}
.otp-method {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1px solid #dce3ec;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 14px 14px 14px 12px;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.otp-method:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 61, 115, 0.08);
}
.otp-method:disabled { opacity: 0.65; cursor: wait; }
.otp-method-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}
.otp-method-icon svg { width: 24px; height: 24px; }
.otp-method-copy { display: grid; gap: 2px; min-width: 0; }
.otp-method-copy strong { font-size: 15px; color: #101828; }
.otp-method-copy span { color: #667085; font-size: 13px; font-weight: 500; }
.otp-method-go {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #98a2b3;
  background: #f2f4f7;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.otp-method:hover:not(:disabled) .otp-method-go {
  transform: translateX(2px);
}
.otp-method-wa .otp-method-icon {
  color: #fff;
  background: linear-gradient(145deg, #25D366 0%, #128C7E 100%);
}
.otp-method-wa:hover:not(:disabled) {
  border-color: #25D366;
  background: linear-gradient(180deg, #f4fff8 0%, #ffffff 100%);
}
.otp-method-wa:hover:not(:disabled) .otp-method-go {
  color: #128C7E;
  background: #e8f8ef;
}
.otp-method-sms .otp-method-icon {
  color: #fff;
  background: linear-gradient(145deg, #003D73 0%, #001564 100%);
}
.otp-method-sms:hover:not(:disabled) {
  border-color: #003D73;
  background: linear-gradient(180deg, #f3f7fb 0%, #ffffff 100%);
}
.otp-method-sms:hover:not(:disabled) .otp-method-go {
  color: #003D73;
  background: #e8eef5;
}
.otp-sending { margin: 0; }
@keyframes otp-methods-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.activate-card { width: min(420px, 100%); gap: 12px; }
.activate-card h1 { color: #003D73; font-size: 26px; margin: 4px 0 0; }
.activate-card .login-copy { margin: 0; }
.activate-card .login-copy strong { color: #003D73; }
.activate-plans {
  justify-self: center; display: inline-flex; gap: 4px; padding: 4px;
  border-radius: 12px; background: #eef3f8;
}
.activate-plans button {
  border: 0; background: transparent; border-radius: 9px; min-height: 34px; padding: 0 14px;
  color: #475467; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.activate-plans button.on { background: #fff; color: #003D73; box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12); }
.activate-plans button span {
  padding: 2px 6px; border-radius: 6px; background: #dfe5ec; color: #667085;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.activate-plans button.on.is-business { background: #003D73; color: #fff; }
.activate-plans button.on.is-business span { background: rgba(255, 255, 255, 0.18); color: #fff; }
.activate-note { margin: 0; text-align: center; color: #667085; font-size: 13px; }
.partner-perks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.partner-perks li {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid #e4e9f0; border-radius: 14px; background: #f8fafc;
}
.partner-perks strong { display: block; color: #003D73; font-size: 14px; }
.partner-perks small { display: block; color: #667085; font-size: 12px; margin-top: 2px; }
.partner-perk-icon {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: #e8eef5; color: #003D73;
}
.partner-perk-icon svg { width: 16px; height: 16px; }
a.activate-pay { text-decoration: none; color: #fff; margin-top: 6px; }
.activate-pay svg:last-child:not(:first-child) { width: 15px; height: 15px; opacity: 0.85; }
.activate-label {
  margin: 6px 0 0; color: #667085; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.activate-networks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.activate-networks button {
  position: relative; aspect-ratio: 1; display: grid; place-items: center; padding: 8px;
  border: 1.5px solid #dce3ec; border-radius: 14px; background: #fff; cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.activate-networks button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0, 61, 115, 0.08); }
.activate-networks button.on { border-color: #003D73; box-shadow: 0 0 0 3px rgba(0, 61, 115, 0.12); }
.activate-networks button.is-red { background: #E60000; border-color: #E60000; }
.activate-networks button.is-red.on { border-color: #b30000; box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.18); }
.activate-networks .pay-mark { width: 100%; height: auto; max-height: 48px; display: block; }
.activate-networks i {
  position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: #003D73; color: #fff; border: 2px solid #fff;
  font-style: normal; font-size: 11px; font-weight: 700;
}
.activate-networks button.is-red i { background: #fff; color: #E60000; border-color: #E60000; }
.activate-card .field input { background: #f8fafc; }
.activate-pay { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; font-size: 16px; }
.activate-pay svg { width: 20px; height: 20px; }
.activate-wait {
  display: grid; justify-items: center; gap: 12px; padding: 18px 12px;
  border-radius: 14px; background: #f3f7fb; text-align: center;
}
.activate-wait p { margin: 0; color: #475467; font-size: 14px; }
.activate-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid #d0dbe7; border-top-color: #003D73; animation: activate-spin 0.9s linear infinite;
}
@keyframes activate-spin { to { transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.8s linear infinite; display: inline-block; }
.activate-foot { display: flex; justify-content: center; padding-top: 12px; border-top: 1px solid #eef2f6; }
.activate-foot button {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent;
  color: #667085; font-size: 14px; font-weight: 500; cursor: pointer;
}
.activate-foot button svg { width: 16px; height: 16px; }
.activate-foot button:hover { color: #003D73; }
@media (max-width: 420px) {
  .activate-networks { grid-template-columns: repeat(2, 1fr); }
}
.pin-setup-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 2px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #003D73 0%, #001564 100%);
  box-shadow: 0 10px 22px rgba(0, 21, 100, 0.18);
  animation: otp-methods-in 0.3s ease both;
}
.pin-setup-badge svg { width: 24px; height: 24px; }
.pin-setup {
  display: grid;
  gap: 12px;
  animation: otp-methods-in 0.35s ease both;
}
.pin-setup-field {
  display: grid;
  gap: 10px;
  padding: 14px 14px 16px;
  border: 1px solid #dce3ec;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.pin-setup-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.pin-setup-head strong {
  font-size: 14px;
  color: #101828;
}
.pin-setup-head span {
  font-size: 12px;
  font-weight: 600;
  color: #98a2b3;
}
.pin-row-setup { gap: 8px; }
.pin-row-setup input {
  width: 54px;
  min-height: 58px;
  border-radius: 14px;
  border: 1.5px solid #d0d5dd;
  background: #fff;
  color: #001564;
  font-size: 24px;
  font-weight: 700;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.pin-row-setup input[type="password"] {
  -webkit-text-security: disc;
}
.pin-row-setup input:focus {
  outline: none;
  border-color: #003D73;
  box-shadow: 0 0 0 4px rgba(0, 61, 115, 0.12);
  transform: translateY(-1px);
}
.pin-row-setup input.filled {
  border-color: #003D73;
  background: #f3f7fb;
}
.pin-setup-match .pin-setup-field:last-child {
  border-color: #12b76a;
  background: linear-gradient(180deg, #f6fef9 0%, #ffffff 100%);
}
.pin-setup-match .pin-setup-field:last-child .pin-setup-head span {
  color: #039855;
}
.pin-setup-match .pin-row-setup input.filled {
  border-color: #12b76a;
  background: #ecfdf3;
}
.pin-setup-mismatch .pin-setup-field:last-child {
  border-color: #f04438;
  background: linear-gradient(180deg, #fff7f6 0%, #ffffff 100%);
}
.pin-setup-mismatch .pin-setup-field:last-child .pin-setup-head span {
  color: #d92d20;
}
.pin-setup-mismatch .pin-row-setup input.filled {
  border-color: #f04438;
  background: #fef3f2;
}
@media (max-width: 860px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-hero { min-height: 200px; justify-content: center; }
  .auth-hero h2 { font-size: 28px; }
}
.login-brand { display: flex; justify-content: center; text-decoration: none; margin-bottom: 4px; }
.login-card {
  width: min(380px, 100%); background: white; border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow); padding: 28px 24px 22px; display: grid; gap: 14px;
}
.login-icon {
  width: 64px; height: 64px; margin: 0 auto 4px; border-radius: 50%;
  border: 2px solid var(--brand); display: grid; place-items: center;
  color: var(--green); text-decoration: none; font-weight: 800; font-style: italic; font-size: 22px;
}
.login-card h1 { font-size: 22px; text-align: center; }
.login-card .btn { width: 100%; margin-top: 4px; border-radius: 12px; min-height: 46px; }
.login-switch { color: var(--muted); font-size: 14px; text-align: center; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.login-switch a { color: var(--brand); font-weight: 700; text-decoration: none; }
.field { position: relative; }
.field input { padding-left: 42px; }
.field-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted); display: grid; place-items: center; pointer-events: none;
}
.field-icon svg { width: 18px; height: 18px; }
.password-field input { padding-right: 72px; }
.password-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--brand); min-height: 32px; padding: 4px 8px; font-weight: 700;
}

/* Floating create-event button in the dashboard */
.create-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f57200 0%, #ff8a1f 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(245, 114, 0, 0.38), 0 4px 10px rgba(0, 21, 100, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: create-fab-in 0.35s ease both;
}
.create-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(245, 114, 0, 0.45);
  animation: create-fab-pulse 2.6s ease-out infinite;
  pointer-events: none;
}
.create-fab svg {
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.create-fab:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(245, 114, 0, 0.45), 0 6px 14px rgba(0, 21, 100, 0.2); }
.create-fab:focus-visible { outline: 3px solid #001564; outline-offset: 3px; }
@keyframes create-fab-in {
  from { opacity: 0; transform: translateY(16px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes create-fab-pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 114, 0, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(245, 114, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 114, 0, 0); }
}
@media (max-width: 640px) {
  .create-fab { right: 18px; bottom: 18px; width: 60px; height: 60px; min-height: 0; padding: 0; justify-content: center; }
  .create-fab span { display: none; }
  .create-fab svg { width: 30px; height: 30px; background: transparent; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .create-fab, .create-fab::before { animation: none; }
}

/* Modern sign-in: brand visual on the left, form on the right */
.auth-modern {
  --auth-tint: #001564;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.95fr);
  background: #f4f7fb;
}
.auth-visual {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--auth-tint) 95%, transparent) 0%, color-mix(in srgb, var(--auth-tint) 84%, transparent) 55%, rgba(245, 114, 0, 0.6) 100%),
    url('/login-banner.jpg') left center / cover no-repeat;
}
.auth-visual::after {
  content: '';
  position: absolute;
  inset: auto -120px -160px auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 114, 0, 0.35), transparent 70%);
}
.auth-visual-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 44px 52px;
}
.si-logo.si-logo-light { color: #fff; }
.auth-visual-copy { display: grid; gap: 18px; max-width: 30rem; }
.auth-visual-kicker {
  margin: 0;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-visual h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.auth-visual-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.auth-visual-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  font-size: 15px;
  font-weight: 600;
}
.auth-visual-points span {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f57200;
  color: #fff;
}
.auth-visual-points svg { width: 18px; height: 18px; }
.auth-visual-foot { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 12px; letter-spacing: 0.08em; }

.auth-main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 72px 24px 32px;
}
.auth-back {
  position: absolute;
  top: 24px;
  left: 28px;
  color: #475467;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.auth-back:hover { color: var(--auth-tint); }
.auth-modern .login-card {
  width: min(430px, 100%);
  padding: 36px 32px 28px;
  border: 1px solid #e6ebf2;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 21, 100, 0.1);
  gap: 16px;
}
.auth-modern .login-brand { display: none; }
.auth-modern .login-card h1 { margin: 0; color: var(--auth-tint); font-size: 28px; letter-spacing: -0.02em; }
.auth-modern .login-copy { margin: -6px 0 2px; }
.auth-modern .login-card input:not([type='checkbox']) {
  min-height: 52px;
  border-radius: 14px;
  border: 1.5px solid #dce3ec;
  background: #f8fafc;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.auth-modern .login-card input:focus {
  outline: none;
  border-color: var(--auth-tint);
  background: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--auth-tint) 14%, transparent);
}
.auth-modern .btn {
  min-height: 52px;
  border-radius: 14px;
  background: var(--auth-tint);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--auth-tint) 22%, transparent);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.auth-modern .btn:hover:not(:disabled) { transform: translateY(-1px); background: #f57200; box-shadow: 0 14px 28px rgba(245, 114, 0, 0.28); }
.auth-modern .btn:disabled { opacity: 0.55; box-shadow: none; }
.auth-modern .btn-ghost { min-height: 46px; border-radius: 14px; }
.auth-modern .login-switch {
  padding-top: 14px;
  border-top: 1px solid #eef2f6;
  justify-content: space-between;
}
.auth-modern .login-switch a, .auth-modern .login-switch button { color: var(--auth-tint); }
.auth-notice {
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 14px;
  line-height: 1.45;
}
.auth-notice svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: #f57200; }
.auth-help { margin: 0; color: #667085; font-size: 14px; }
.auth-help a { color: #f57200; font-weight: 700; text-decoration: none; }
.auth-help a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .auth-modern { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-modern .login-brand { display: flex; }
  .auth-main { padding-top: 64px; }
}
@media (max-width: 480px) {
  .auth-modern .login-card { padding: 28px 20px 22px; border-radius: 20px; }
  .auth-back { left: 20px; }
}

.invite-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.invite-card { width: min(560px, 100%); display: grid; gap: 14px; }
.eyebrow { color: var(--muted); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.center { min-height: 40vh; display: grid; place-items: center; }

@media (max-width: 980px) {
  .grid-4, .metric-grid, .quick-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr; }
  main { padding: 22px 16px 40px; }
}
@media (max-width: 1024px) {
  .shell, .shell.collapsed { grid-template-columns: 1fr; }
  .shell.collapsed .sidebar { padding-inline: 16px; align-items: stretch; }
  .shell.collapsed .brand { justify-content: flex-start; padding: 0 8px; }
  .shell.collapsed .brand-copy,
  .shell.collapsed .nav-label { display: block; }
  .shell.collapsed .side-nav a,
  .shell.collapsed .sign-out { justify-content: flex-start; padding: 0 12px; width: auto; }
  .sidebar-toggle { display: none; }
  .sidebar {
    position: fixed; z-index: 30; height: 100dvh; width: min(300px, 88vw);
    transform: translateX(-105%); box-shadow: 8px 0 28px rgba(18, 32, 51, 0.12);
    transition: transform 0.2s ease; overflow-y: auto;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .sidebar.open { transform: none; }
  .sidebar-close {
    display: grid; place-items: center; margin-left: auto; flex: none;
    width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; position: relative;
  }
  .sidebar-close span {
    position: absolute; width: 16px; height: 1.5px; background: white;
  }
  .shell.collapsed .admin-logo-full { display: inline; }
  .shell.collapsed .admin-logo-mark { display: none; }
  .shell.collapsed .flow-rail { display: flex; }
  .shell.collapsed .flow-sub { display: grid; }
  .sidebar-close span:first-child { transform: rotate(45deg); }
  .sidebar-close span:last-child { transform: rotate(-45deg); }
  .side-nav a { min-height: 48px; }
  .backdrop { display: block; position: fixed; inset: 0; background: rgba(18, 32, 51, 0.4); z-index: 25; border: 0; padding: 0; }
  .admin-bar {
    position: sticky; top: 0; z-index: 10;
    padding: 12px 16px; background: white; border-bottom: 1px solid var(--line);
  }
  .admin-bar .menu { display: grid; }
  .admin-bar-title { display: block; }
  .menu {
    width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: white;
    display: grid; gap: 4px; place-content: center;
  }
  .menu span { display: block; width: 16px; height: 1.5px; background: var(--ink); }
}
@media (max-width: 860px) {
  .grid-3, .grid-2, .form-grid, .metric-grid, .quick-row { grid-template-columns: 1fr; }
  .event-head { display: none; }
  .event-list a { grid-template-columns: 1fr; gap: 2px; }
  .event-list a > span:not(.event-name) { color: var(--muted); font-size: 14px; }
  .span-2 { grid-column: auto; }
  .table-wrap table thead { display: none; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 4px 0; background: white; }
  .table-wrap td { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-bottom: 0; }
  .table-wrap td::before { content: attr(data-label); color: var(--muted); font-weight: 700; font-size: 12px; }
  tbody tr:hover td { background: transparent; }
  .upcoming-link { flex-direction: column; align-items: flex-start; gap: 2px; }
  .upcoming-link span { white-space: normal; }
}
.site {
  --ink: #1c2434;
  --muted: #64748b;
  --line: #e5e7eb;
  --paper: #f8fafc;
  --blue: #001564;
  --orange: #f57200;
  --green: #f57200;
  --card: #fff;
  background: #f8fafc;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", "Montserrat", sans-serif;
  overflow-x: hidden;
  max-width: 100vw;
}
.site a { color: inherit; }
.site h1, .site h2, .site .product-name, .site .wordmark-mark, .site blockquote {
  font-family: "Plus Jakarta Sans", "Montserrat", sans-serif; font-weight: 600; letter-spacing: -0.03em;
}
.site-wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.site-top { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid #f3f4f6; }
.lang-switch {
  display: inline-flex; flex: none; padding: 3px; border-radius: 999px;
  background: #fff; border: 1px solid #001564;
}
.lang-switch button {
  border: 0; background: transparent; color: #001564;
  min-width: 52px; min-height: 32px; border-radius: 999px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.06em;
}
.lang-switch button.on { background: #001564; color: #fff; }
.site-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 69px; padding: 12px 0; }
.wordmark { display: flex; align-items: center; text-decoration: none; }
.si-logo { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; color: #001564; line-height: 1; }
.si-logo span { color: #f57200; }
.si-mark {
  width: 36px; height: 36px; margin-right: 10px; border-radius: 10px;
  display: grid; place-items: center; background: #001564; color: white;
  font-weight: 800; font-size: 18px; letter-spacing: -0.04em;
}
.site-links { display: flex; align-items: center; gap: 22px; }
.site-links a { color: #475569; text-decoration: none; font-size: 14px; font-weight: 500; }
.site-links a:hover,
.site-links a.active { color: #001564; font-weight: 700; }
.site-cta { display: flex; align-items: center; gap: 16px; }
.site-cta-desktop { display: flex; align-items: center; gap: 16px; }
.site-mobile-auth { display: none; }
.site-backdrop { display: none; }
.site-signin { color: #64748b; text-decoration: none; font-size: 14px; font-weight: 500; }
.site-signin:hover { color: #001564; }
.site-menu { display: none; }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 8px 16px; border-radius: 8px; border: 0;
  background: #f57200; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px;
}
.pill-sm { min-height: 36px; padding: 8px 16px; border-radius: 8px; }
.site a.pill,
.site button.pill { background: #f57200; color: #fff; }
.pill:hover { filter: brightness(1.06); color: #fff; }
.pill-line,
.site a.pill-line { background: white; color: var(--ink); border: 1px solid var(--line); box-shadow: none; font-weight: 600; }
.pill-line:hover,
.site a.pill-line:hover { background: #f8fafc; color: var(--ink); filter: none; }
.hero-glow {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(90% 70% at 50% 100%, #16315f 0%, transparent 55%),
    linear-gradient(180deg, #00124f 0%, #001564 42%, #021033 100%);
  color: white;
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 21, 100, 0.2), rgba(0, 8, 40, 0.35));
}
.hero-ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 220px; }
.hero-copy { position: relative; z-index: 1; text-align: center; padding: 96px 0 120px; max-width: 920px; }
.hero-split {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px; align-items: center; padding: 72px 0 96px;
}
.hero-split .hero-copy { text-align: left; padding: 0; max-width: none; }
.hero-split .hero-copy .lede { margin-left: 0; margin-right: 0; }
.hero-split .hero-actions { justify-content: flex-start; }
.site .hero-split .hero-copy h1 { margin-left: 0; margin-right: 0; max-width: 14ch; }
.hero-offer {
  background: white; color: #122033; border-radius: 28px; padding: 28px 26px 24px;
  box-shadow: 0 28px 70px rgba(0, 8, 40, 0.32);
  display: grid; gap: 8px;
}
.hero-offer-kicker {
  margin: 0; color: #f57200; font-size: 12px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.hero-offer-price {
  margin: 0; color: #001564; font-size: 64px; font-weight: 800;
  letter-spacing: -0.05em; line-height: 0.95;
}
.hero-offer-price span {
  margin-left: 8px; font-size: 18px; letter-spacing: 0.08em; font-weight: 800;
}
.hero-offer-note { margin: 0 0 8px; color: #64748b; font-size: 14px; }
.hero-offer ul { list-style: none; margin: 0 0 12px; padding: 12px 0 0; border-top: 1px solid #e5e7eb; display: grid; gap: 10px; }
.hero-offer li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.hero-offer li span { color: #f57200; font-weight: 800; }
.hero-offer .pill { width: 100%; margin-top: 8px; }
.hero-badge {
  display: inline-flex; align-items: center; margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: white; border-radius: 999px; padding: 6px 16px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.site .hero-copy h1 {
  margin: 24px auto 0; max-width: 16ch; color: white;
  font-size: clamp(40px, 4.6vw, 60px); font-weight: 600; line-height: 1.12;
}
.site .hero-copy h1 span { color: #f57200; }
.hero-copy .lede {
  margin: 22px auto 0; max-width: 42rem; color: rgba(255, 255, 255, 0.86);
  font-size: 18px; line-height: 1.6;
}
.hero-copy .hero-actions { justify-content: center; }
.hero-actions .pill { min-height: 52px; padding: 14px 28px; border-radius: 12px; font-size: 16px; }
.pill-ghost,
.site a.pill-ghost,
.site button.pill-ghost {
  background: #fff; color: #001564; border: 1px solid #fff; box-shadow: none;
}
.pill-ghost:hover,
.site a.pill-ghost:hover,
.site button.pill-ghost:hover { background: #fff4eb; color: #001564; filter: none; }
.hero-note { margin: 18px 0 0; color: rgba(255, 255, 255, 0.72); font-size: 14px; }
.promo-band { background: #f4f7fb; border-bottom: 0; padding: 28px 0 4px; }
.promo-row {
  display: flex; align-items: center; gap: 22px;
  background: white; border: 1px solid #e7edf5; border-left: 4px solid #f57200;
  border-radius: 20px; padding: 22px 24px;
  box-shadow: 0 14px 36px rgba(0, 21, 100, 0.05);
}
.promo-row h2 { margin: 0; font-size: 22px; max-width: none; color: var(--ink); }
.promo-row p { margin: 4px 0 0; color: var(--muted); max-width: 40rem; }
.promo-row > a { margin-left: auto; color: #f57200; font-weight: 600; text-decoration: none; white-space: nowrap; }
.promo-row > a:hover { text-decoration: underline; }
.new-pill {
  flex: none; background: #f57200; color: white; border-radius: 999px;
  padding: 4px 10px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
}
.site h1 { margin-top: 10px; font-size: clamp(32px, 4vw, 44px); line-height: 1.15; color: var(--ink); }
.site .lede { margin-top: 16px; max-width: 40rem; color: var(--muted); font-size: 17px; line-height: 1.6; }
.site .hero-copy .lede { color: #fff; }
.sublede { margin-top: 14px; max-width: 38rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 460px; margin: 42px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.metrics dt { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.metrics dd { margin: 2px 0 0; font-family: "Montserrat", sans-serif; font-size: 24px; font-weight: 700; }
.stage { position: relative; min-height: 460px; }
.handset {
  width: 300px; margin-left: auto; transform: rotate(-4deg);
  background: white; color: var(--ink); border: 10px solid var(--ink); border-radius: 36px; padding: 16px;
  box-shadow: 0 24px 50px rgba(28, 43, 74, 0.12);
}
.handset-top, .handset-foot { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.invite-face { margin-top: 16px; background: var(--blue); color: var(--paper); border-radius: 16px; padding: 20px; display: grid; gap: 6px; }
.invite-face p { font-size: 12px; opacity: 0.85; }
.invite-face strong { font-family: "Montserrat", sans-serif; font-size: 26px; line-height: 1.05; }
.invite-face div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-top: 6px; }
.handset-foot { margin-top: 12px; }
.float-card {
  position: absolute; left: 0; bottom: 8px; width: 220px; transform: rotate(6deg);
  background: white; border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  box-shadow: 0 18px 40px rgba(28, 43, 74, 0.1); display: grid; gap: 4px;
}
.float-card p { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--green); font-size: 11px; font-weight: 600; }
.float-card strong { font-family: "Montserrat", sans-serif; font-size: 16px; }
.float-card > span, .bar-meta { color: var(--muted); font-size: 11px; }
.bar { height: 6px; border-radius: 999px; background: oklch(0.94 0.012 240); margin-top: 8px; }
.bar i { display: block; width: 68%; height: 100%; border-radius: inherit; background: var(--blue); }
.bar-meta { display: flex; justify-content: space-between; }
.band { padding: 88px 0; }
.narrow { width: min(820px, calc(100% - 48px)); }
.kicker { margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.site h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.2; max-width: 22ch; font-weight: 600; }
/* Core Services Showcase on Public HomePage */
.services-band {
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 28%);
  border-top: 0;
  border-bottom: 0;
  padding: 88px 0;
}
.page-hero-space { padding-top: 56px; }
.services-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.services-header-row h2 {
  margin: 0;
}
.services-header-row p {
  color: var(--muted);
  max-width: 32rem;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.service-card {
  background: white;
  border: 1px solid #e8eef6;
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  box-shadow: 0 12px 32px rgba(0, 21, 100, 0.05);
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, #001564, #f57200);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.service-card:hover::before { opacity: 1; }
.service-meta { display: flex; align-items: center; gap: 8px; }
.service-index { color: #98a2b3; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; }
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 18px 40px rgba(28, 43, 74, 0.09);
  background: white;
}
.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.service-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff4eb;
  color: #f57200;
  border: 0;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.service-card:hover .service-icon-wrap {
  background: #f57200;
  color: white;
}
.service-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--blue) 12%, white);
  color: var(--blue);
}
.service-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  color: var(--ink);
}
.service-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.service-features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.4;
}
.service-feature-item .check-mark {
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}

.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.price-grid article { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.price-grid p { color: var(--muted); flex: 1; }
.price-grid .pill { margin-top: 10px; }
.estimate {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 18px; align-items: center; margin-top: 28px;
  background: white; border: 1px solid #e5e7eb; border-radius: 22px; padding: 22px 24px;
  box-shadow: 0 16px 40px rgba(0, 21, 100, 0.06);
}
.estimate label { display: grid; gap: 8px; color: #001564; font-weight: 700; }
.estimate input {
  font-size: 32px; font-weight: 800; letter-spacing: -0.04em; color: #001564;
  min-height: 64px; border-radius: 14px;
}
.estimate-total span {
  display: block; color: #64748b; font-size: 12px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.estimate-total strong {
  display: block; margin-top: 4px; color: #001564; font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.04em; line-height: 1.1;
}
.estimate-total p { margin: 6px 0 0; color: #64748b; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 22px; align-items: stretch; }
.plan-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  background: white; border: 1px solid #e5e7eb; border-radius: 22px; padding: 24px;
  box-shadow: 0 14px 36px rgba(0, 21, 100, 0.06);
}
.plan-card.featured {
  background: #001564; color: white; border-color: #001564;
  box-shadow: 0 22px 48px rgba(0, 21, 100, 0.22);
}
.plan-badge {
  position: absolute; top: 16px; right: 16px;
  background: #f57200; color: white; border-radius: 999px;
  padding: 4px 10px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.plan-card h3 { margin: 0; }
.plan-card.featured h3 { color: white; }
.plan-line { margin: 0; color: #64748b; min-height: 3em; }
.plan-card.featured .plan-line,
.plan-card.featured .plan-math { color: rgba(255, 255, 255, 0.78); }
.plan-amount { margin: 8px 0 0; color: #001564; font-size: 32px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.plan-card.featured .plan-amount { color: white; }
.plan-math { margin: 0; color: #64748b; font-size: 14px; flex: 1; }
.plan-card .pill { margin-top: 14px; }
.pill-on-navy,
.site a.pill-on-navy { background: #f57200; color: white; }
.plan-footnote { margin: 18px 0 0; color: #64748b; }
.plan-includes {
  margin-top: 28px; background: white; border: 1px solid #e5e7eb; border-radius: 22px; padding: 24px;
}
.plan-includes h3 { margin-top: 0; }
.plan-includes ul { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; }
.plan-includes li { display: flex; gap: 8px; align-items: flex-start; }
.plan-includes li span { color: #f57200; font-weight: 800; }
.plan-includes p { color: #64748b; margin: 0 0 10px; }
.step-grid, .point-grid, .about-grid, .value-grid { display: grid; gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.step-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step-grid li, .about-grid article, .value-grid li, .soft-card {
  background: white; border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  box-shadow: 0 12px 32px rgba(28, 43, 74, 0.06);
}
.step-grid span {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: #fff4eb; color: #f57200; font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 14px;
}
.how-band { background: #f4f7fb; }
.section-more { margin-top: 22px; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr); gap: 28px; align-items: start; }
.about-panel {
  background: #001564; color: white; border-radius: 24px; padding: 28px 24px;
  box-shadow: 0 22px 48px rgba(0, 21, 100, 0.18);
}
.about-panel strong { display: block; font-size: 56px; line-height: 0.95; letter-spacing: -0.05em; }
.about-panel > span { display: block; margin-top: 8px; color: #f57200; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.about-panel ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 0; }
.about-panel li { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 15px; }
.faq-kicker, .faq-title { text-align: center; }
.faq-title { margin: 0 auto 8px; }
.faq button span {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: #f4f7fb; color: #001564; font-size: 18px;
}
.site h3 { font-family: "Montserrat", sans-serif; font-size: 22px; margin-top: 8px; }
.step-grid p, .about-grid p, .value-grid p, .about-copy p { color: var(--muted); margin-top: 8px; }
.ink-band { background: #001564; color: white; padding: 88px 0; }
.ink-band .kicker, .ink-band .lede, .ink-band p { color: color-mix(in oklch, var(--paper) 78%, transparent); }
.ink-band h2, .ink-band h3 { color: var(--paper); }
.ink-band .lede { max-width: 40rem; }
.point-grid, .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.point-grid li, .value-grid li { display: flex; gap: 12px; align-items: flex-start; }
.point-grid li {
  background: color-mix(in oklch, white 14%, transparent);
  border: 1px solid color-mix(in oklch, white 28%, transparent);
  border-radius: 18px; padding: 20px;
}
.tick {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: color-mix(in oklch, white 16%, transparent); color: var(--paper); font-weight: 700;
}
.value-grid .tick { background: color-mix(in oklch, var(--green) 16%, white); color: var(--green); }
.quote-band { padding: 72px 0; }
.quote-card { text-align: center; padding: 36px 28px; }
.quote-card blockquote { margin: 0 auto; max-width: 36rem; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.25; }
.home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: -42px;
  position: relative;
  z-index: 2;
}
.home-stat {
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 21, 100, 0.08);
}
.home-stat strong { display: block; color: #001564; font-size: 18px; line-height: 1.25; letter-spacing: -0.03em; }
.home-stat span { color: var(--muted); font-size: 13px; }
.home-section-link { color: #f57200; font-weight: 700; text-decoration: none; }
.home-section-link:hover { text-decoration: underline; }
.quote-card p { color: var(--muted); margin-top: 16px; }
.paper-band { background: white; border-top: 1px solid var(--line); padding: 88px 0; }
.partner-home {
  padding: 88px 0;
  background: linear-gradient(135deg, #001564 0%, #0a2a8a 100%);
  color: white;
}
.partner-home-layout { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.partner-home .kicker { color: #f57200; }
.partner-home h2 { color: white; }
.partner-home .lede { color: rgba(255, 255, 255, 0.78); max-width: 34rem; }
.partner-home-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 28px 0; max-width: 30rem; }
.partner-home-figures div {
  padding: 18px 20px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
}
.partner-home-figures strong { display: block; font-size: 26px; letter-spacing: -0.02em; }
.partner-home-figures span { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.72); font-size: 13px; }
.partner-home .hero-actions { align-items: center; }
.partner-home .home-section-link { color: #ffb066; }
.partner-home-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.partner-home-perks li {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 18px;
  background: white; color: var(--ink); box-shadow: 0 18px 40px rgba(0, 8, 40, 0.22);
}
.partner-home-perks li > span {
  flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: #fff1e5; color: #f57200; font-weight: 800; font-size: 13px;
}
.partner-home-perks h3 { margin: 0 0 4px; color: #001564; font-size: 16px; }
.partner-home-perks p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
@media (max-width: 900px) {
  .partner-home { padding: 64px 0; }
  .partner-home-layout { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .partner-home-figures { grid-template-columns: 1fr; }
}
.partners-sub { margin: 36px 0 0; color: #001564; font-size: 20px; }
.partners-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.partners-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 24px 0; }
.partners-prices article {
  display: grid; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff;
}
.partners-prices span { color: #667085; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.partners-prices strong { color: #001564; font-size: 28px; letter-spacing: -0.02em; }
.partners-prices p { margin: 0; color: var(--muted); }
@media (max-width: 900px) {
  .partners-steps, .partners-prices { grid-template-columns: 1fr; }
}
.about-copy { display: grid; gap: 12px; max-width: 46rem; margin-top: 16px; }
.about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.values-title { margin: 36px 0 0; }
.faq { display: grid; gap: 8px; margin-top: 28px; }
.faq article {
  background: white; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 8px 24px rgba(28, 43, 74, 0.05); padding: 4px 18px;
}
.faq button {
  width: 100%; min-height: 56px; border: 0; background: transparent; color: var(--ink);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 12px 0; font-weight: 600; text-align: left; font-size: 16px;
}
.faq p { color: var(--muted); margin: 0 0 16px; }
.site label { color: var(--ink); font-family: "Montserrat", sans-serif; }
.site input, .site select, .site textarea {
  background: white; border: 1px solid var(--line); border-radius: 12px; min-height: 44px;
}
.site input:focus, .site select:focus, .site textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in oklch, var(--blue) 18%, transparent); }
.contact-page {
  background:
    radial-gradient(circle at 8% 12%, rgba(245, 114, 0, 0.08), transparent 32%),
    linear-gradient(180deg, #f7f9fc 0%, #fff 42%);
  padding: 56px 0 72px;
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 48px;
  align-items: start;
}
.contact-intro h1 {
  margin: 0;
  color: #001564;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.contact-intro .lede { margin-top: 14px; max-width: 34rem; font-size: 18px; }
.contact-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-points li {
  display: grid; gap: 2px; padding-left: 14px;
  border-left: 3px solid #f57200;
}
.contact-points strong { color: #001564; font-size: 15px; }
.contact-points span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.contact-direct {
  margin-top: 28px; display: grid; gap: 4px;
  padding: 18px 18px 16px; border-radius: 16px;
  background: #001564; color: white;
}
.contact-direct p { margin: 0; color: #f57200; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-direct strong { font-size: 15px; letter-spacing: -0.02em; line-height: 1.35; }
.contact-direct span { color: rgba(255, 255, 255, 0.72); font-size: 13px; }
.contact-direct a { color: white; font-weight: 700; text-decoration: none; margin-top: 8px; }
.contact-direct a:hover { color: #f57200; }
.contact-card {
  display: grid; gap: 14px;
  background: white; border: 1px solid #e7edf5; border-radius: 24px;
  padding: 28px; box-shadow: 0 24px 50px rgba(0, 21, 100, 0.08);
}
.contact-card h2 { margin: 0; color: #001564; font-size: 24px; letter-spacing: -0.03em; }
.contact-card > p { margin: -6px 0 0; color: var(--muted); }
.contact-card label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.contact-card input, .contact-card textarea { width: 100%; padding: 0 12px; }
.contact-card textarea { padding: 12px; min-height: 120px; resize: vertical; }
.contact-card .pill { justify-self: start; min-width: 180px; border: 0; cursor: pointer; }
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-done { align-content: center; min-height: 320px; }
.contact-done p { margin: 0; color: var(--muted); max-width: 28rem; }
.close-band { padding: 48px 0 64px; }
.close-card p { color: var(--muted); margin-top: 12px; max-width: 36rem; }
.we-accept {
  padding: 72px 0 64px;
  text-align: center;
  background:
    radial-gradient(circle at 12% 20%, rgba(245, 114, 0, 0.08), transparent 34%),
    radial-gradient(circle at 88% 70%, rgba(0, 21, 100, 0.06), transparent 40%),
    #f7f9fc;
  border-top: 1px solid #e7ecf3;
  border-bottom: 1px solid #e7ecf3;
}
.we-accept .lede { margin: 10px auto 0; max-width: 34rem; }
.we-accept-board {
  margin: 28px auto 0;
  width: min(720px, 100%);
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e4e9f0;
  box-shadow: 0 14px 36px rgba(7, 19, 58, 0.06);
}
.we-accept-logos {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.we-accept-names {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
}
.we-accept-names li {
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dde5ef;
  color: #001564;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.navy-cta { background: #001564; color: white; text-align: center; padding: 72px 0; }
.navy-cta h2 { color: white; max-width: 18ch; margin: 0 auto; font-size: clamp(32px, 4vw, 44px); }
.navy-cta p { margin: 14px auto 0; max-width: 34rem; color: rgba(255, 255, 255, 0.8); }
.navy-cta .hero-actions { justify-content: center; }
.site-footer { background: #07133a; color: rgba(255, 255, 255, 0.78); border-top: 0; padding: 56px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer p, .site-footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.site-footer a:hover { color: white; }
.site-footer h3 { margin: 0 0 12px; color: white; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; }
.site-footer .si-logo { color: white; }
.site-footer .si-mark { background: #f57200; }
.site-footer .wordmark { margin-bottom: 12px; }
.on-dark .wordmark-mark { border-color: white; }
.on-dark .wordmark-line { color: white; }
.on-dark .wordmark-line.accent { color: var(--green); }
.footer-grid > div:not(:first-child) { display: grid; align-content: start; gap: 8px; }
.footer-company { font-weight: 700; color: #f57200; line-height: 1.35; margin-top: 12px; }
.footer-base {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

@keyframes menuSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .site-wrap { width: min(1120px, calc(100% - 32px)); }
  .site-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 60px;
    padding: 10px 0;
  }
  .si-logo { font-size: 20px; }
  .si-mark { width: 32px; height: 32px; font-size: 16px; margin-right: 8px; border-radius: 8px; flex-shrink: 0; }
  .lang-switch { padding: 2px; flex-shrink: 0; }
  .lang-switch button {
    min-width: 44px; min-height: 28px; font-size: 11px; padding: 0 4px;
  }

  .site-cta { gap: 8px; flex-shrink: 0; }
  .site-cta-desktop { display: none !important; }
  .site-signin { display: none !important; }

  .site-menu {
    display: grid; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 999px; background: white;
    place-content: center; gap: 4px; cursor: pointer; flex-shrink: 0; padding: 0;
    transition: all 0.2s ease;
  }
  .site-menu span {
    display: block; width: 16px; height: 1.8px; background: var(--ink); border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .site-menu.open {
    background: #f1f5f9;
    border-color: #cbd5e1;
  }
  .site-menu.open span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
  .site-menu.open span:nth-child(2) { opacity: 0; }
  .site-menu.open span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

  .site-backdrop {
    display: block;
    position: fixed;
    top: 60px;
    inset-inline: 0;
    bottom: 0;
    background: rgba(11, 31, 68, 0.4);
    backdrop-filter: blur(2px);
    z-index: 25;
  }

  .site-links {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30;
    background: white; border: 1px solid #e2e8f0; border-radius: 16px; padding: 10px;
    flex-direction: column; align-items: stretch; gap: 2px;
    box-shadow: 0 20px 45px -10px rgba(11, 31, 68, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .site-links.open { display: flex; animation: menuSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
  .site-links a {
    min-height: 42px; display: flex; align-items: center; padding: 0 12px;
    border-radius: 8px; font-size: 15px; font-weight: 600; color: #334155;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .site-links a:hover,
  .site-links a.active {
    background: #f1f5f9; color: #001564; font-weight: 700;
  }

  .site-mobile-auth {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
  }
  .site-mobile-auth-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
    align-items: center;
  }
  .site-mobile-btn {
    min-height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    font-weight: 700 !important;
    border-radius: 10px;
    text-decoration: none;
    padding: 0 12px;
    box-sizing: border-box;
    white-space: nowrap;
  }
  .site-mobile-btn.outline {
    background: #f8fafc;
    color: #001564 !important;
    border: 1.5px solid #cbd5e1;
  }
  .site-mobile-btn.outline:hover {
    background: #edf2f7;
    border-color: #94a3b8;
  }
  .site-mobile-btn.primary {
    background: #f57200 !important;
    color: #fff !important;
    border: 0;
    box-shadow: 0 4px 12px rgba(245, 114, 0, 0.25);
  }
  .site-mobile-btn.primary:hover {
    filter: brightness(1.08);
  }

  .site-top { position: sticky; }
  .site-bar { position: relative; }
  .services-grid, .step-grid, .point-grid, .about-grid, .about-layout, .value-grid, .price-grid, .plan-grid, .contact-layout, .contact-split, .metrics, .footer-grid, .home-stats, .hero-split, .estimate { grid-template-columns: 1fr; }
  .hero-offer-price { font-size: 52px; }
  .promo-row { flex-direction: column; align-items: flex-start; }
  .promo-row > a { margin-left: 0; }
  .hero-copy { padding: 72px 0 96px; }
  .quote-card blockquote { max-width: 34rem; }
}
@media (max-width: 430px) {
  h1, .login-card h1 { font-size: 24px; }
  .site h1 { font-size: 40px; }
  .grid-4 { grid-template-columns: 1fr; }
  .login-card { padding: 22px 16px; }
  .actions .btn, .actions .btn-ghost, .actions .btn-danger { flex: 1 1 130px; }
}

/* ==========================================================================
   ENHANCED EVENT INVITATION SYSTEM STYLES (Check-In, QR, WhatsApp, Analytics)
   ========================================================================== */

/* Event Flow Navigation Bar */
.event-flow-bar {
  display: flex;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 2px 10px rgba(18, 32, 51, 0.04);
  overflow-x: auto;
}
.flow-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #4a5c6d;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.15s ease;
  cursor: pointer;
}
.flow-tab-btn:hover {
  background: #f4f7f9;
  color: var(--ink);
}
.flow-tab-btn.active {
  background: var(--brand);
  color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.flow-tab-icon { font-size: 15px; }

/* Status Pills & Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.status-pill.status-attending { background: #e8f6ee; color: #1b6b45; }
.status-pill.status-maybe { background: #fdf6e6; color: #9a6500; }
.status-pill.status-declined { background: #fbeeed; color: #9c2727; }
.status-pill.status-pending { background: #f0f4f8; color: #5a6e82; }

.badge-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--line);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}
.badge-pill.green { background: #e8f6ee; color: #1b6b45; }

.btn-green-pill {
  background: #1b6b45;
  color: white;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}
.btn-green-pill:hover { opacity: 0.9; }

.text-green { color: #1b6b45 !important; }
.text-amber { color: #b46d00 !important; }
.text-danger { color: #b42b2b !important; }
.accent-text { color: var(--brand) !important; }

/* Guest Page Enhancements */
.head-actions { display: flex; gap: 8px; align-items: center; }
.guest-actions-bar { flex-wrap: wrap; gap: 10px; align-items: center; }
.dropdown-action-group { display: flex; gap: 6px; flex-wrap: wrap; }
.guest-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .guest-filters { grid-template-columns: 1fr; }
}

/* Digital Ticket & QR Card */
.digital-ticket {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}
.ticket-header h3 { font-size: 20px; margin-top: 6px; }
.ticket-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eef4fb;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ticket-guest { font-size: 18px; font-weight: 700; margin: 4px 0 2px; }
.ticket-party { color: var(--muted); font-size: 13px; font-weight: 600; }
.ticket-qr-wrap {
  padding: 16px;
  background: #fbfcfd;
  border: 1px dashed var(--line);
  border-radius: 16px;
  display: inline-block;
  margin: 0 auto;
}
.ticket-checked-banner {
  margin-top: 10px;
  padding: 6px 12px;
  background: #e8f6ee;
  color: #1b6b45;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.ticket-code code {
  background: #f0f4f8;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
}
.ticket-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

/* Check-In Tab View */
.checkin-view { display: grid; gap: 18px; }
.checkin-header {
  padding: 20px 24px;
  border-radius: 16px;
}
.checkin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 768px) {
  .checkin-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.checkin-stat { display: grid; gap: 4px; }
.checkin-stat span { font-size: 12px; font-weight: 600; }
.checkin-stat strong { font-size: 26px; line-height: 1.1; }
.checkin-progress-wrap {
  margin-top: 14px;
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.checkin-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand) 0%, #1b6b45 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.checkin-main-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 920px) {
  .checkin-main-grid { grid-template-columns: 1fr; }
}

.scanner-box { padding: 22px; display: grid; gap: 16px; }
.scanner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.scanner-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.scanner-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px currentColor;
  transition: background-color 0.3s ease;
}
.scanner-actions-top {
  display: flex;
  gap: 8px;
  align-items: center;
}
.scanner-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.camera-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.camera-select-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.camera-dropdown {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 13px;
  background: white;
  color: var(--text);
  max-width: 240px;
}
.scanner-extra-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.torch-active {
  background: #fef08a !important;
  color: #854d0e !important;
  border-color: #facc15 !important;
}

.scanner-error-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 10px;
  color: #9f1239;
  font-size: 13px;
}
.scanner-error-banner .error-badge {
  font-size: 18px;
  line-height: 1;
}
.scanner-error-banner .error-content {
  flex: 1;
}
.scanner-error-banner .error-content p {
  margin: 2px 0 0;
  line-height: 1.4;
}

/* Scanner Viewport */
.scanner-viewport-wrapper {
  position: relative;
  background: #080d19;
  border-radius: 16px;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.6);
}

.qr-reader-stream {
  width: 100% !important;
  min-height: 320px;
  background: #000;
  overflow: hidden;
  border-radius: 16px;
}
.qr-reader-stream video {
  width: 100% !important;
  height: auto !important;
  max-height: 420px;
  object-fit: cover !important;
  display: block !important;
  border-radius: 16px;
}
.qr-reader-stream canvas {
  display: none !important;
}
.qr-reader-stream img {
  display: none !important;
}

/* Scanner Idle State */
.scanner-idle-prompt {
  text-align: center;
  padding: 36px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: white;
  width: 100%;
}
.scanner-idle-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  transition: transform 0.2s ease, background 0.2s ease;
}
.scanner-idle-prompt:hover .scanner-idle-icon-wrap {
  transform: scale(1.06);
  background: rgba(56, 189, 248, 0.15);
}
.scanner-idle-text strong {
  display: block;
  font-size: 16px;
  color: white;
  margin-bottom: 4px;
}
.scanner-idle-text p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 320px;
}

/* Scanner Active Overlay */
.scanner-active-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.scanner-laser-line {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #22c55e, #86efac, transparent);
  box-shadow: 0 0 10px #22c55e, 0 0 18px #22c55e;
  border-radius: 3px;
  animation: scanLaser 2s ease-in-out infinite alternate;
}
@keyframes scanLaser {
  0% { top: 18%; opacity: 0.85; }
  50% { opacity: 1; }
  100% { top: 78%; opacity: 0.85; }
}

.scanner-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
}
.scanner-reticle::before,
.scanner-reticle::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}
.scanner-reticle::before {
  top: 0; left: 0;
  border-right: none; border-bottom: none;
  border-top-left-radius: 8px;
}
.scanner-reticle::after {
  bottom: 0; right: 0;
  border-left: none; border-top: none;
  border-bottom-right-radius: 8px;
}
.scanner-reticle-corners::before,
.scanner-reticle-corners::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}
.scanner-reticle-corners::before {
  top: 0; right: 0;
  border-left: none; border-bottom: none;
  border-top-right-radius: 8px;
}
.scanner-reticle-corners::after {
  bottom: 0; left: 0;
  border-right: none; border-top: none;
  border-bottom-left-radius: 8px;
}

.scanner-floating-hint {
  margin-top: auto;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: 20px;
  color: white;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.scan-feedback {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: 14px;
  animation: fadeIn 0.25s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.scan-feedback.success { background: #e8f6ee; border: 1px solid #c2e9d2; color: #155737; }
.scan-feedback.already_checked_in { background: #fff8e8; border: 1px solid #f6dfad; color: #8a5800; }
.scan-feedback.error,
.scan-feedback.not_found { background: #fbeeed; border: 1px solid #f6cbca; color: #9c2727; }
.scan-feedback-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.08);
  flex: none;
}
.scan-feedback-body { flex: 1; display: grid; gap: 2px; }
.scan-feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.feedback-dismiss-btn {
  padding: 2px 6px;
  font-size: 14px;
  line-height: 1;
}
.scan-feedback-sub { font-size: 13px; margin: 2px 0 0; }

.manual-checkin-wrap { margin-top: 4px; }
.manual-checkin-label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}
.field-action-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.field-action-row input { flex: 1; }

.checkin-sidebar-panel { padding: 22px; display: grid; gap: 14px; }
.checkin-search-input { width: 100%; }
.search-results-list {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}
.search-guest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f7f9fa;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.recent-checkins-section { margin-top: 10px; display: grid; gap: 10px; }
.recent-checkin-items {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}
.recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.recent-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e8f6ee;
  color: #1b6b45;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  flex: none;
}
.recent-info { flex: 1; display: grid; }
.undo-btn { color: #1b6b45; font-weight: 600; }

/* Analytics View */
.analytics-view { display: grid; gap: 20px; }
.analytics-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.analytics-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 900px) {
  .analytics-two-col { grid-template-columns: 1fr; }
}

.rsvp-progress-stacked {
  height: 18px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  display: flex;
}
.seg { height: 100%; transition: width 0.3s ease; }
.seg-attending { background: #1b6b45; }
.seg-maybe { background: #d99100; }
.seg-declined { background: #c53030; }
.seg-pending { background: #8fa0b2; }

.rsvp-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.rsvp-detail-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fbfcfd;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
  margin-top: 5px;
}
.dot-green { background: #1b6b45; }
.dot-amber { background: #d99100; }
.dot-red { background: #c53030; }
.dot-gray { background: #8fa0b2; }

.checkin-gate-card {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  background: #f8fafb;
  border-radius: 14px;
}
.gate-circle-wrap { flex: none; }
.gate-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: white;
  border: 4px solid var(--brand);
  display: grid;
  place-content: center;
  text-align: center;
}
.gate-circle strong { font-size: 20px; line-height: 1; color: var(--brand); }
.gate-details { display: grid; gap: 4px; }

.hourly-timeline { margin-top: 14px; }
.timeline-bars {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  height: 130px;
  padding-top: 14px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.timeline-col {
  flex: 1;
  min-width: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.timeline-bar-val { font-size: 11px; font-weight: 700; color: var(--brand); }
.timeline-bar-fill {
  width: 18px;
  background: var(--brand);
  border-radius: 4px 4px 0 0;
  transition: height 0.4s ease;
}
.timeline-hour { font-size: 11px; color: var(--muted); margin-top: 4px; }

.fin-summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 12px 14px;
  background: #f8fafb;
  border-radius: 12px;
}
.goal-progress-box { display: grid; gap: 6px; }
.goal-label-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.progress-bar-track { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: #1b6b45; border-radius: 999px; transition: width 0.4s ease; }

.methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.method-chip {
  padding: 10px 12px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 2px;
}
.method-name { font-size: 11px; font-weight: 800; color: var(--muted); }

.top-contributors-list { display: grid; gap: 8px; margin-top: 8px; }
.contributor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.sms-metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 600px) {
  .sms-metric-row { grid-template-columns: repeat(2, 1fr); }
}
.sms-chip {
  padding: 10px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 2px;
}
.compact-table th, .compact-table td { padding: 8px 10px; font-size: 13px; }

/* WhatsApp Modal & Button */
.btn-whatsapp {
  background: #25d366;
  color: white;
  border: 0;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background: #1ebc59;
  color: white;
  transform: translateY(-1px);
}

.whatsapp-modal-content {
  display: grid;
  gap: 16px;
}

.wa-card-preview-container {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--paper-warm, #f8fafc);
  border: 1px solid var(--line, #e2e8f0);
  padding: 12px 14px;
  border-radius: 12px;
}
.wa-card-preview-thumb {
  width: 84px;
  height: 126px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  background: #fffdfa;
  border: 1px solid rgba(0,0,0,0.08);
}
.wa-card-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wa-card-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.wa-badge-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue, #2563eb);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wa-card-thumb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.whatsapp-templates-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wa-template-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.wa-template-pill:hover {
  background: #e2e8f0;
}
.wa-template-pill.active {
  background: #0f172a;
  color: white;
  border-color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.whatsapp-chat-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d1d7db;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.whatsapp-chat-header {
  background: #075e54;
  color: white;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wa-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.wa-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.wa-header-info strong {
  font-size: 15px;
  line-height: 1.2;
}
.wa-header-info small {
  font-size: 11px;
  opacity: 0.85;
}
.wa-header-brand {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  opacity: 0.9;
  font-weight: 600;
}

.whatsapp-preview-box {
  background: #efeae2;
  background-image: radial-gradient(#d6cdc4 1px, transparent 1px);
  background-size: 18px 18px;
  padding: 16px;
  max-height: 440px;
  overflow-y: auto;
}
.whatsapp-bubble {
  background: white;
  border-radius: 8px 8px 8px 0;
  padding: 12px 16px;
  max-width: 92%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  display: grid;
  gap: 10px;
}
.wa-bubble-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f2f5;
}
.wa-card-type-tag {
  background: #dbeafe;
  color: #1e40af;
  font-weight: 700;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
}
.wa-card-ref-tag {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
}
.wa-balance-tag {
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
}

.whatsapp-bubble-text {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.5;
  color: #111b21;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  word-break: break-word;
}
.whatsapp-edit-area {
  width: 100%;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.45;
  padding: 8px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  resize: vertical;
}
.whatsapp-bubble-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 4px;
}
.btn-edit-inline {
  background: transparent;
  border: none;
  color: #0284c7;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  font-weight: 600;
}
.btn-edit-inline:hover {
  text-decoration: underline;
}
.whatsapp-time {
  font-size: 11px;
  color: #53bdeb;
  font-weight: 600;
}

.whatsapp-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 8px;
}

.btn-whatsapp:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.wa-send-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: #f0fdf4;
}

.wa-send-panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  align-items: baseline;
}

.wa-send-field {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
}

.wa-send-field input {
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
}

.wa-send-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.wa-send-checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.wa-send-hint {
  margin: 0;
  font-size: 12px;
}

/* Contribution Payment Settings Banner */
.contribution-payment-settings-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  margin-bottom: 8px;
}
.contribution-banner-info {
  display: grid;
  gap: 4px;
}
.contribution-banner-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #166534;
  font-size: 15px;
}
.contribution-banner-title strong {
  font-weight: 700;
}
.banner-icon {
  font-size: 18px;
}
@media (max-width: 768px) {
  .contribution-payment-settings-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Public Invite Page Styles */
.invite-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.badge-success { background: #e8f6ee; color: #1b6b45; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge-info { background: #eef4fb; color: var(--brand); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

.invite-hero { display: grid; gap: 8px; margin: 4px 0 12px; }
.invite-type-pill {
  display: inline-block;
  align-self: start;
  padding: 3px 10px;
  background: var(--soft);
  color: var(--brand);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.invite-date-row, .invite-loc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  margin: 2px 0;
}
.invite-loc-row svg, .invite-date-row svg { stroke: var(--brand); flex: none; }
.invite-greeting-box {
  padding: 14px 18px;
  background: #f7f9fb;
  border-radius: 14px;
  border-left: 4px solid var(--brand);
}

.rsvp-form-container {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.rsvp-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.rsvp-summary-card {
  padding: 16px 20px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.rsvp-status-badge-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.digital-pass-card {
  background: linear-gradient(135deg, #ffffff 0%, #f7f9fb 100%);
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(18, 32, 51, 0.06);
  display: grid;
  gap: 14px;
  margin-top: 8px;
}
.pass-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.pass-holder { font-size: 20px; font-weight: 800; margin: 2px 0; color: var(--ink); }
.pass-party-tag {
  display: inline-block;
  padding: 2px 10px;
  background: var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.pass-qr-center { margin: 8px auto; }
.pass-verified-stamp {
  margin-top: 10px;
  padding: 6px 14px;
  background: #e8f6ee;
  color: #1b6b45;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  display: grid;
}
.pass-scan-hint { font-size: 12px; margin-top: 8px; }
.pass-actions { display: flex; justify-content: center; }

.contribution-card {
  padding: 16px 20px;
  background: #fffdf5;
  border: 1px solid #f6e6b8;
  border-radius: 16px;
  display: grid;
  gap: 10px;
}
.contribution-metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.invite-footer { text-align: center; margin-top: 12px; }

/* Dashboard Event Row */
.dashboard-event-row {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.dashboard-event-row:last-child { border-bottom: 0; }
.dashboard-event-stats {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ==========================================================================
   e-CARD MODULE & DIGITAL INVITATION STYLING
   ========================================================================== */

/* Typography Stacks for e-Cards */
.font-serif {
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
}
.font-script {
  font-family: "Great Vibes", "Brush Script MT", "Allura", cursive, serif;
}
.font-sans {
  font-family: "Inter", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.font-display {
  font-family: "Cinzel", "Bodoni MT", "Trajan Pro", serif;
}

/* Studio Layout & Topbar */
.ecard-studio {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ecard-studio-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}
.ecard-studio-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.status-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.status-badge.unsaved {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.status-badge.saved {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.ecard-studio-workspace {
  display: grid;
  grid-template-columns: minmax(360px, 460px) 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 960px) {
  .ecard-studio-workspace {
    grid-template-columns: 1fr;
  }
}

/* Studio Left Controls Panel */
.ecard-controls-panel {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.ecard-section-nav {
  display: flex;
  overflow-x: auto;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  padding: 6px 8px;
  gap: 4px;
}
.ecard-sec-btn {
  background: transparent;
  border: 0;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.ecard-sec-btn:hover {
  background: #e2e8f0;
  color: var(--text);
}
.ecard-sec-btn.active {
  background: var(--navy);
  color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.ecard-section-body {
  padding: 20px;
  max-height: 720px;
  overflow-y: auto;
}

/* Templates Catalog Grid */
.templates-catalog {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.catalog-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.templates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.template-card-choice {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  align-items: flex-start;
  min-width: 0;
  height: 100%;
}
.template-card-choice:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.template-card-choice.selected {
  border-color: var(--navy);
  background: #f8fafc;
  box-shadow: 0 0 0 1px var(--navy);
}
.tpl-color-swatch {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.tpl-symbol {
  font-size: 22px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.tpl-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tpl-info strong {
  font-size: 14px;
  color: var(--text);
}
.tpl-occasion-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
}
.tpl-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
  margin: 0;
}

/* Harmonized Color Palettes */
.palettes-preset-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.palette-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}
.palettes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.palette-chip-btn {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.palette-chip-btn:hover {
  border-color: var(--navy);
  background: #f8fafc;
}
.palette-colors-row {
  display: flex;
  gap: 4px;
}
.palette-colors-row span {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.palette-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.color-pickers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.color-picker-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text);
}
.color-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.color-input-wrap input[type="color"] {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 2px;
  background: transparent;
}
.color-input-wrap code {
  font-size: 12px;
  color: var(--muted);
  width: 65px;
}

/* Font Preview Box */
.font-preview-box {
  padding: 16px;
  background: #0f172a;
  border-radius: 12px;
  color: #f8fafc;
  margin-top: 10px;
  text-align: center;
}
.sample-heading {
  font-size: 24px;
  font-weight: 700;
  color: #d4af37;
  margin-bottom: 6px;
}
.sample-body {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0;
}

/* Message Suggestions */
.message-suggestions-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.suggestion-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}
.suggestions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Right Column: Preview Viewport */
.ecard-preview-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 80px;
}
.preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: white;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.preview-toggle-group {
  display: flex;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 3px;
}
.toolbar-btn {
  background: transparent;
  border: 0;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.toolbar-btn:hover {
  color: var(--text);
}
.toolbar-btn.active {
  background: white;
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.preview-guest-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 13px;
}
.switcher-label {
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.preview-viewport-box {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px;
  background: #090d16;
  border-radius: 20px;
  min-height: 560px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow-x: auto;
}
.preview-viewport-box.is-phone-mockup {
  max-width: 420px;
  margin: 0 auto;
  border: 12px solid #1e293b;
  border-radius: 44px;
  padding: 32px 14px 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  background: #0b1120;
}
.phone-notch {
  width: 120px;
  height: 18px;
  background: #1e293b;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* ==========================================================================
   INTERACTIVE ENVELOPE & WAX SEAL
   ========================================================================== */
.ecard-envelope-container {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  padding: 20px 10px;
  width: 100%;
}
.ecard-envelope {
  width: min(460px, 100%);
  height: 310px;
  background: var(--envelope-bg, #0f172a);
  border-radius: 18px;
  position: relative;
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  overflow: visible;
  user-select: none;
}
.ecard-envelope:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
}

/* Top Triangular Flap */
.envelope-top-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(0 0, 100% 0, 50% 56%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0.25) 100%);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  z-index: 4;
  pointer-events: none;
}

/* Pocket body */
.envelope-pocket {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  clip-path: polygon(0 35%, 50% 0, 100% 35%, 100% 100%, 0 100%);
  background: var(--envelope-bg, #0f172a);
  filter: brightness(0.95);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 22px;
}

/* Liner shimmer */
.envelope-liner {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.15), transparent 70%);
  z-index: 1;
}

/* Card peek out */
.envelope-card-peek {
  position: absolute;
  top: 20px;
  left: 30px;
  right: 30px;
  height: 120px;
  background: var(--ecard-bg, #0b1120);
  border: 1px solid var(--ecard-primary, #d4af37);
  border-radius: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}
.ecard-envelope:hover .envelope-card-peek {
  transform: translateY(-14px);
}
.peek-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ecard-primary, #d4af37);
}
.peek-title {
  font-size: 17px;
  color: var(--ecard-text, #ffffff);
  margin-top: 4px;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Recipient Label on Envelope */
.envelope-recipient-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.label-for {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}
.label-guest {
  font-size: 16px;
  color: #ffffff;
  font-weight: 700;
}
.label-party {
  font-size: 11px;
  color: var(--ecard-accent, #f59e0b);
}

/* Wax Seal Badge */
.wax-seal {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: radial-gradient(circle at 35% 35%, #ff6b6b 0%, var(--wax-color, #b91c1c) 55%, #7f1d1d 95%, #450a0a 100%);
  border-radius: 50%;
  z-index: 5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 2px 5px rgba(255, 255, 255, 0.4), inset 0 -3px 6px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  cursor: pointer;
}
.wax-seal:hover {
  transform: translate(-50%, -50%) scale(1.12) rotate(-3deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), inset 0 2px 6px rgba(255, 255, 255, 0.5);
}
.wax-seal:active {
  transform: translate(-50%, -50%) scale(0.96);
}
.wax-seal-inner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.wax-seal-crest {
  font-family: "Cinzel", "Playfair Display", Georgia, serif;
  font-size: 28px;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Pulsating Tap Prompt */
.envelope-prompt-badge {
  position: absolute;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: pulsePrompt 2s infinite ease-in-out;
}
@keyframes pulsePrompt {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(-4px); opacity: 0.85; }
}

/* ==========================================================================
   UNFOLDED e-CARD CANVAS
   ========================================================================== */
.ecard-wrapper {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

/* Typography Pairings for Luxury e-Cards */
.ecard-wrapper.font-serif,
.font-preview.font-serif {
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
}
.ecard-wrapper.font-serif .ecard-headline,
.ecard-wrapper.font-serif .salutation-guest-name {
  font-family: "Playfair Display", Georgia, serif;
}
.ecard-wrapper.font-serif .ecard-message-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
}
.ecard-wrapper.font-serif .ecard-quote-box p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
}

.ecard-wrapper.font-script,
.font-preview.font-script {
  font-family: "Montserrat", sans-serif;
}
.ecard-wrapper.font-script .ecard-headline {
  font-family: "Great Vibes", cursive, serif;
  font-size: clamp(38px, 6.2vw, 56px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  padding: 4px 0;
}
.ecard-wrapper.font-script .salutation-guest-name {
  font-family: "Playfair Display", Georgia, serif;
}
.ecard-wrapper.font-script .ecard-message-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.65;
}

.ecard-wrapper.font-sans,
.font-preview.font-sans {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}
.ecard-wrapper.font-sans .ecard-headline {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ecard-wrapper.font-sans .salutation-guest-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ecard-wrapper.font-display,
.font-preview.font-display {
  font-family: "Montserrat", sans-serif;
}
.ecard-wrapper.font-display .ecard-headline {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ecard-wrapper.font-display .salutation-guest-name {
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0.04em;
}
.ecard-wrapper.font-display .ecard-kicker-pill {
  font-family: "Cinzel", serif;
  letter-spacing: 0.16em;
}

.ecard-canvas {
  width: 100%;
}
.animate-card-unfold {
  animation: unfoldCard 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes unfoldCard {
  0% { opacity: 0; transform: translateY(30px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.ecard-close-envelope-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.ecard-close-envelope-bar button {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.ecard-close-envelope-bar button:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* e-Card Outer Frame */
.ecard-frame {
  background: linear-gradient(175deg, var(--ecard-bg, #0b1120) 0%, var(--ecard-secondary, #1e293b) 100%);
  border: 2px solid var(--ecard-primary, #d4af37);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 175, 55, 0.1);
  border-radius: 24px;
  position: relative;
  padding: 40px 32px;
  text-align: center;
  color: var(--ecard-text, #f8fafc);
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
}
@media (max-width: 500px) {
  .ecard-frame {
    padding: 30px 18px;
    gap: 18px;
  }
}

/* Corner Ornaments SVG */
.corner-ornament {
  position: absolute;
  color: var(--ecard-primary, #d4af37);
  opacity: 0.9;
  pointer-events: none;
}
.corner-ornament.top-left { top: 12px; left: 12px; }
.corner-ornament.top-right { top: 12px; right: 12px; }
.corner-ornament.bottom-left { bottom: 12px; left: 12px; }
.corner-ornament.bottom-right { bottom: 12px; right: 12px; }

/* e-Card Header */
.ecard-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ecard-kicker-pill {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ecard-primary, #d4af37);
  padding: 4px 14px;
  background: rgba(212, 175, 55, 0.12);
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.ecard-headline {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ecard-text, #ffffff);
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.ecard-type-sub {
  font-size: 13px;
  color: var(--ecard-accent, #f59e0b);
  font-weight: 600;
}

/* Guest Personalization Salutation */
.ecard-guest-salutation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.salutation-prefix {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
}
.salutation-guest-name {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  color: var(--ecard-primary, #d4af37);
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.salutation-party-tag {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* Divider */
.ecard-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ecard-primary, #d4af37);
}
.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ecard-primary, #d4af37), transparent);
}
.divider-diamond {
  font-size: 14px;
}

/* Heartfelt Body */
.ecard-heartfelt-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ecard-message-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ecard-text, #f8fafc);
  margin: 0;
}
.ecard-quote-box {
  margin: 0;
  padding: 12px 18px;
  background: rgba(212, 175, 55, 0.07);
  border-left: 3px solid var(--ecard-primary, #d4af37);
  border-radius: 0 10px 10px 0;
  text-align: left;
}
.ecard-quote-box p {
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ecard-accent, #f59e0b);
  margin: 0;
}

/* Logistics Card */
.ecard-logistics-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  text-align: left;
}
.logistic-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logistic-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--ecard-primary, #d4af37);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logistic-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  display: block;
}
.logistic-val {
  font-size: 15px;
  color: #ffffff;
  display: block;
}

.logistic-action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.quick-link-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--ecard-primary, #d4af37);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.15s ease;
}
.quick-link-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Dress Code Banner */
.ecard-dresscode-banner {
  padding: 10px 16px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px dashed var(--ecard-accent, #f59e0b);
  border-radius: 12px;
  font-size: 13px;
  color: var(--ecard-accent, #f59e0b);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Countdown Grid */
.ecard-countdown-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.countdown-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.65);
}
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 380px;
}
.countdown-tile {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.count-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--ecard-primary, #d4af37);
}
.count-label {
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* Digital Gate Pass Ticket Inside e-Card */
.ecard-pass-ticket {
  background: #ffffff;
  color: #0f172a;
  border-radius: 18px;
  padding: 24px 20px;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}
.ecard-pass-ticket::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ecard-primary, #d4af37), var(--ecard-accent, #f59e0b), var(--ecard-primary, #d4af37));
}
.ticket-pass-badge {
  display: inline-block;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.ecard-pass-ticket h4 {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
}
.ticket-guest-name {
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  margin: 4px 0 14px;
}
.ticket-qr-frame {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  padding: 10px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1.5px dashed #cbd5e1;
  width: fit-content;
}
.ticket-qr-frame img {
  border-radius: 8px;
  display: block;
}
.ticket-hint {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  margin-top: 12px;
}

/* RSVP Actions Box */
.ecard-rsvp-action-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.ecard-rsvp-action-box h3 {
  font-size: 16px;
  color: #ffffff;
  margin: 0;
}
.rsvp-buttons-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
.btn-rsvp-choice {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-rsvp-choice:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-rsvp-choice.selected {
  background: var(--ecard-primary, #d4af37);
  color: #0b1120;
  border-color: var(--ecard-primary, #d4af37);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

/* Card Footer */
.ecard-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.host-line {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
.powered-line {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

/* Sharing Actions Bar */
.ecard-share-actions-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.ecard-share-actions-bar button {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   MODERN & ATTRACTIVE TEMPLATE THEMES & DISTINCT ARTWORK
   ========================================================================== */

/* Ambient Card Glow */
.ecard-ambient-glow {
  position: absolute;
  top: -25%;
  left: 5%;
  right: 5%;
  height: 50%;
  background: radial-gradient(circle, var(--ecard-primary) 0%, transparent 70%);
  opacity: 0.18;
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
}

/* Template Art & Crests */
.template-artwork {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: -6px;
  position: relative;
  z-index: 2;
}
.art-crest-top {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ecard-primary);
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.5));
  margin-bottom: 2px;
}

/* 1. Royal 24k Gold & Midnight Onyx */
.template-royal_gold .ecard-frame {
  background: radial-gradient(circle at 50% 12%, #221832 0%, #0c0a14 55%, #050408 100%);
  border: 2px solid #f59e0b;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.85), 0 0 50px rgba(245, 158, 11, 0.28), inset 0 0 35px rgba(245, 158, 11, 0.08);
}
.template-royal_gold .ecard-headline {
  background: linear-gradient(135deg, #ffffff 0%, #fef08a 35%, #f59e0b 70%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Playfair Display", Georgia, serif;
  text-shadow: 0 2px 14px rgba(245, 158, 11, 0.3);
}
.template-royal_gold .salutation-guest-name {
  color: #fbbf24;
  text-shadow: 0 0 24px rgba(245, 158, 11, 0.5);
}
.template-royal_gold .ecard-kicker-pill {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

/* 2. Emerald Foliage & Rose Botanical */
.template-floral_romance .ecard-frame {
  background: radial-gradient(circle at 50% 15%, #064e3b 0%, #022c22 65%, #01140e 100%);
  border: 2px solid #f472b6;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.85), 0 0 50px rgba(244, 114, 182, 0.25), inset 0 0 30px rgba(244, 114, 182, 0.06);
}
.template-floral_romance .ecard-headline {
  background: linear-gradient(135deg, #ffffff 0%, #fbcfe8 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Great Vibes", cursive, serif;
  font-size: clamp(38px, 6vw, 54px);
  text-shadow: 0 2px 12px rgba(244, 114, 182, 0.35);
}
.template-floral_romance .salutation-guest-name {
  color: #fbcfe8;
}
.template-floral_romance .ecard-kicker-pill {
  background: rgba(244, 114, 182, 0.15);
  border-color: rgba(244, 114, 182, 0.4);
}

/* 3. African Heritage & Vitenge Chic */
.template-kitenge_warmth .ecard-frame {
  background: linear-gradient(180deg, #321105 0%, #1a0802 60%, #0d0401 100%);
  border: 3px solid #f59e0b;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.85), 0 0 50px rgba(245, 158, 11, 0.28);
}
.kitenge-border-strip {
  width: 100%;
  height: 12px;
  background: repeating-linear-gradient(45deg, #f59e0b 0, #f59e0b 12px, #b45309 12px, #b45309 24px, #78350f 24px, #78350f 36px);
  border-radius: 6px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.template-kitenge_warmth .ecard-headline {
  background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 60%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Cinzel", serif;
  text-shadow: 0 2px 14px rgba(245, 158, 11, 0.35);
}
.template-kitenge_warmth .salutation-guest-name {
  color: #fde68a;
}

/* 4. Minimalist Pearl & Frosted Glass */
.template-modern_glass .ecard-frame {
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 45px rgba(56, 189, 248, 0.22);
}
.template-modern_glass .ecard-headline {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.2);
}
.template-modern_glass .salutation-guest-name {
  color: #38bdf8;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

/* 5. Golden Birthday Jubilee & Neon Glow */
.template-festive_confetti .ecard-frame {
  background: radial-gradient(circle at 50% 20%, #380824 0%, #1c0f1e 65%, #0f0a12 100%);
  border: 2px solid #fbbf24;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.85), 0 0 55px rgba(244, 63, 94, 0.3), inset 0 0 30px rgba(251, 191, 36, 0.08);
}
.confetti-sparks {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin-bottom: 8px;
}
.confetti-sparks .sparkle {
  font-size: 20px;
  animation: sparkFloat 2.4s infinite ease-in-out;
}
.confetti-sparks .s1 { animation-delay: 0s; }
.confetti-sparks .s2 { animation-delay: 0.6s; }
.confetti-sparks .s3 { animation-delay: 1.2s; }
.confetti-sparks .s4 { animation-delay: 1.8s; }
@keyframes sparkFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
  50% { transform: translateY(-10px) scale(1.25); opacity: 1; filter: drop-shadow(0 0 8px #fbbf24); }
}
.template-festive_confetti .ecard-headline {
  background: linear-gradient(135deg, #ffffff 0%, #fef08a 40%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  text-shadow: 0 2px 14px rgba(244, 63, 94, 0.35);
}
.template-festive_confetti .salutation-guest-name {
  color: #fbbf24;
}

/* 6. Cyber Platinum & Executive Sapphire */
.template-executive_navy .ecard-frame {
  background: linear-gradient(180deg, #0a1428 0%, #030712 100%);
  border: 1.5px solid #38bdf8;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.9), 0 0 50px rgba(56, 189, 248, 0.24);
}
.template-executive_navy .ecard-headline {
  background: linear-gradient(135deg, #ffffff 0%, #bae6fd 60%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(56, 189, 248, 0.3);
}
.template-executive_navy .salutation-guest-name {
  color: #7dd3fc;
}

/* 7. Academic Honor & Gold Laurel Crest */
.template-sapphire_honor .ecard-frame {
  background: radial-gradient(circle at 50% 20%, #1a2c66 0%, #0e172e 65%, #050914 100%);
  border: 2px solid #facc15;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.85), 0 0 50px rgba(250, 204, 21, 0.28);
}
.template-sapphire_honor .ecard-headline {
  background: linear-gradient(135deg, #fef08a 0%, #facc15 60%, #ca8a04 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Cinzel", serif;
  text-shadow: 0 2px 14px rgba(250, 204, 21, 0.35);
}
.template-sapphire_honor .salutation-guest-name {
  color: #fde047;
}

/* 8. Pastel Dreamland & Crescent Stardust */
.template-baby_stardust .ecard-frame {
  background: radial-gradient(circle at 50% 15%, #1e293b 0%, #0c1222 70%, #050812 100%);
  border: 2px solid #38bdf8;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.8), 0 0 50px rgba(244, 114, 182, 0.28);
}
.template-baby_stardust .ecard-headline {
  background: linear-gradient(135deg, #ffffff 0%, #bae6fd 50%, #fbcfe8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Great Vibes", cursive, serif;
  font-size: clamp(38px, 6vw, 52px);
  text-shadow: 0 2px 12px rgba(244, 114, 182, 0.3);
}
.template-baby_stardust .salutation-guest-name {
  color: #7dd3fc;
}

/* 9. Silver Jubilee & Diamond Prism */
.template-silver_anniversary .ecard-frame {
  background: radial-gradient(circle at 50% 20%, #440974 0%, #1e0f36 65%, #0b0416 100%);
  border: 2px solid #e2e8f0;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.85), 0 0 50px rgba(192, 132, 252, 0.3), inset 0 0 25px rgba(255, 255, 255, 0.1);
}
.template-silver_anniversary .ecard-headline {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 40%, #c084fc 80%, #9333ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Cinzel", serif;
  text-shadow: 0 2px 14px rgba(192, 132, 252, 0.35);
}
.template-silver_anniversary .salutation-guest-name {
  color: #e9d5ff;
}

/* 10. Celestial Dove & Sacred Pearlescent Light */
.template-serene_memorial .ecard-frame {
  background: radial-gradient(circle at 50% 15%, #222d42 0%, #0d121e 70%, #060910 100%);
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.9), 0 0 40px rgba(203, 213, 225, 0.22);
}
.template-serene_memorial .ecard-headline {
  color: #f8fafc;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(30px, 4.8vw, 42px);
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}
.template-serene_memorial .salutation-guest-name {
  color: #e2e8f0;
}

/* Realistic Perforated Ticket Notches */
.ecard-pass-ticket {
  position: relative;
  overflow: hidden;
}
.ticket-notch {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  background: var(--ecard-bg, #09090b);
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 5;
}
.ticket-notch.left-notch {
  left: -12px;
}
.ticket-notch.right-notch {
  right: -12px;
}

/* ==========================================================================
   GLOBAL e-CARDS PAGE (GALLERY & LISTING)
   ========================================================================== */
.ecards-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.occasion-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.occasion-pill {
  background: white;
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.occasion-pill:hover {
  background: #f8fafc;
  color: var(--text);
}
.occasion-pill.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

/* User's Created e-Cards Grid */
.ecards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.ecard-listing-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ecard-listing-thumb {
  height: 120px;
  position: relative;
  padding: 16px;
  display: flex;
  align-items: flex-end;
  box-shadow: inset 0 -20px 30px rgba(0, 0, 0, 0.4);
}
.thumb-wax-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.thumb-title {
  font-size: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  max-width: 85%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ecard-listing-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.listing-tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.link-badge {
  text-decoration: none;
}
.listing-msg {
  line-height: 1.4;
  margin: 0;
  flex: 1;
}
.ecard-listing-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.invite-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.invite-tile {
  background: #fff;
  border: 1px solid #e6eaf2;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 10px 28px rgba(0, 21, 100, 0.05);
}
.invite-tile-face {
  min-height: 176px;
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}
.invite-tile-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.invite-tile-face strong {
  font-size: 18px;
  line-height: 1.25;
  max-width: 16ch;
}
.invite-tile-line {
  width: 36px;
  height: 2px;
  border-radius: 2px;
}
.invite-tile-face em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.78;
}
.invite-tile-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  background: #fff;
}
.invite-tile-body h4 { margin: 0; font-size: 15px; }
.invite-tile-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.invite-tile-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}
.invite-tile-actions .btn,
.invite-tile-actions .btn-ghost,
.invite-tile-body > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.invite-tile-body > .btn { margin-top: auto; width: 100%; }

/* Templates Gallery Grid */
.templates-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.template-gallery-card { height: 100%; }
.gallery-card-body { display: flex; flex-direction: column; flex: 1; gap: 8px; }
.gallery-card-foot { margin-top: auto; }
.message-channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.message-channels .actions { flex-wrap: wrap; }
@media (max-width: 860px) {
  .templates-grid, .message-channels { grid-template-columns: 1fr; }
}
.template-gallery-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gallery-card-hero {
  padding: 24px 20px;
  text-align: center;
  position: relative;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.gallery-wax {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.gallery-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.gallery-headline {
  font-size: 18px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.gallery-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.gallery-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gallery-heartfelt-quote {
  background: #f8fafc;
  border-left: 3px solid var(--navy);
  border-radius: 0 8px 8px 0;
  padding: 8px 12px;
  font-style: italic;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 4px;
}
.gallery-heartfelt-quote p {
  margin: 0;
}
.gallery-card-foot {
  margin-top: auto;
  padding-top: 10px;
}

/* Public Invite Page e-Card Container */
.invite-public-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(560px, 100%);
  margin-bottom: 12px;
}
.invite-ecard-wrapper {
  width: min(560px, 100%);
}

/* ==========================================================================
   TANZANIAN LUXURY ARCH & FLORAL CARD (KAMA PICHA YA MFANO)
   ========================================================================== */
.tz-luxury-card-container {
  width: 100%;
  display: flex;
  justify-content: center;
}
.tz-luxury-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background-color: #fffdfa;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
  container-type: inline-size;
  display: flex;
  flex-direction: column;
}
.tz-backdrop-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
}
.tz-card-badge {
  position: absolute;
  top: clamp(14px, 3.6cqi, 22px);
  left: clamp(16px, 4.4cqi, 28px);
  font-family: 'Cinzel', 'Montserrat', sans-serif;
  font-size: clamp(11.5px, 2.9cqi, 15.5px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 5;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}
.tz-card-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: clamp(520px, 138cqi, 680px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(14px, 3.4cqi, 22px) clamp(14px, 3.4cqi, 24px) clamp(10px, 2.4cqi, 16px) clamp(16px, 3.8cqi, 26px);
  box-sizing: border-box;
}
.tz-family-intro {
  text-align: center;
  font-family: 'Plus Jakarta Sans', 'Montserrat', sans-serif;
  font-size: clamp(9.5px, 2.3cqi, 12px);
  font-weight: 600;
  color: #4a3427;
  line-height: 1.3;
  margin-top: clamp(6px, 1.4cqi, 10px);
}
.tz-guest-wrap {
  text-align: center;
  margin: clamp(3px, 0.8cqi, 6px) 0 clamp(1px, 0.3cqi, 3px);
}
.tz-guest-name {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  font-size: clamp(15px, 3.8cqi, 23px);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #21150f;
  margin: 0;
  line-height: 1.15;
  word-break: break-word;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95);
}
.tz-purpose-block {
  text-align: center;
  margin-bottom: clamp(2px, 0.5cqi, 4px);
}
.tz-event-purpose {
  font-family: 'Plus Jakarta Sans', 'Montserrat', sans-serif;
  font-size: clamp(9px, 2.1cqi, 11px);
  font-weight: 600;
  color: #5c4233;
  margin: 0 0 1px;
  line-height: 1.25;
}
.tz-celebrant-name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(25px, 6cqi, 38px);
  font-weight: 400;
  color: #922c1b;
  margin: 0;
  line-height: 1.05;
  word-break: break-word;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.75);
}
.tz-date-block {
  text-align: center;
  margin: clamp(2px, 0.5cqi, 4px) auto clamp(3px, 0.8cqi, 6px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tz-date-kicker {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(8.5px, 1.9cqi, 10.5px);
  color: #785340;
  text-transform: lowercase;
}
.tz-date-row {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2cqi, 13px);
  font-family: 'Montserrat', 'Plus Jakarta Sans', sans-serif;
}
.tz-date-month, .tz-date-weekday {
  font-size: clamp(9.5px, 2.2cqi, 12px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3b2518;
}
.tz-date-day {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 5.6cqi, 34px);
  font-weight: 800;
  color: #26160e;
  line-height: 1;
}
.tz-date-year {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(9.5px, 2.1cqi, 11.5px);
  font-weight: 700;
  color: #3b2518;
  letter-spacing: 0.06em;
}
.tz-lower-grid {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: clamp(6px, 1.5cqi, 10px);
  align-items: flex-end;
  margin-top: auto;
}
.tz-lower-grid.no-photo {
  grid-template-columns: 1fr;
}
.ecard-classic-portrait-frame {
  display: flex;
  justify-content: center;
  margin: 12px auto;
}
.ecard-classic-portrait-frame img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--ecard-primary, #d4af37);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.tz-lower-left {
  display: flex;
  flex-direction: column;
  gap: clamp(2px, 0.7cqi, 5px);
  text-align: left;
}
.tz-meta-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.tz-meta-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(8px, 1.8cqi, 10px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5c3f30;
}
.tz-meta-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(9.5px, 2.2cqi, 11.5px);
  font-weight: 700;
  color: #1e130c;
  line-height: 1.2;
}
.tz-color-names {
  font-size: clamp(7px, 1.5cqi, 8.5px);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #785340;
  margin-bottom: 2px;
  line-height: 1.15;
}
.tz-swatch-boxes {
  display: flex;
  gap: 4px;
}
.tz-swatch-box {
  width: clamp(14px, 3cqi, 18px);
  height: clamp(14px, 3cqi, 18px);
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.tz-bottom-contacts-qr-row {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.8cqi, 11px);
  margin-top: clamp(2px, 0.5cqi, 4px);
}
.tz-qr-scan-box {
  background: white;
  padding: 3px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: inline-flex;
  flex-shrink: 0;
}
.tz-qr-scan-box img {
  width: clamp(48px, 11.5cqi, 66px);
  height: clamp(48px, 11.5cqi, 66px);
  display: block;
  border-radius: 3px;
}
.tz-qr-placeholder {
  width: clamp(48px, 11.5cqi, 66px);
  height: clamp(48px, 11.5cqi, 66px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #64748b;
}
.tz-contacts-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.tz-contacts-list {
  display: flex;
  flex-direction: column;
  font-size: clamp(8.5px, 2cqi, 10.5px);
  color: #26160e;
  line-height: 1.2;
}
.tz-contact-line {
  display: flex;
  flex-direction: column;
}
.tz-contact-line strong {
  font-weight: 700;
  color: #1e130c;
  font-size: clamp(9px, 2.1cqi, 11px);
}
.tz-contact-name {
  color: #645347;
  font-size: 0.9em;
}
.tz-lower-right {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  height: 100%;
}
.tz-celebrant-portrait {
  width: 100%;
  max-width: clamp(120px, 30cqi, 180px);
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.tz-celebrant-portrait img {
  width: 100%;
  max-height: clamp(140px, 35cqi, 220px);
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

/* ==========================================================================
   CUSTOM TEMPLATE IMAGE OVERLAY MODE
   ========================================================================== */
.custom-template-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
  background-color: #0b1120;
}
.custom-template-bg-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.custom-template-empty-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}
.custom-overlay-guest-name {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  max-width: 86%;
  text-align: center;
  word-break: break-word;
  line-height: 1.15;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.9), 0 0 2px rgba(255, 255, 255, 0.8);
  z-index: 10;
}
.custom-overlay-badge {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: 'Cinzel', 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 10;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.85);
}
.custom-overlay-qr {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.custom-overlay-qr.white-box {
  background: white;
  padding: 6px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}
.custom-overlay-qr img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Custom Template Editor UI */
.custom-upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}
.custom-upload-zone:hover {
  border-color: var(--navy);
  background: #f1f5f9;
}
.custom-preview-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  max-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  border: 1px solid var(--line);
}
.custom-preview-thumb img {
  max-height: 180px;
  width: auto;
  object-fit: contain;
}
.preset-pos-btn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* Post-Event Thank You & Gratitude System */
.thank-you-modal-content {
  gap: 18px;
}
.thank-you-intro-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(30, 41, 59, 0.4) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 16px 20px;
}
.intro-icon {
  font-size: 32px;
  flex-shrink: 0;
}
.intro-text strong {
  display: block;
  font-size: 1.05rem;
  color: #d4af37;
  margin-bottom: 4px;
}
.intro-text p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.audience-selector-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.section-mini-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.audience-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.audience-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}
.audience-pill:hover {
  border-color: #d4af37;
  background: #fdfbf7;
}
.audience-pill.active {
  border-color: #d4af37;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.04) 100%);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.18);
}
.pill-icon {
  font-size: 1.3rem;
}
.pill-title {
  font-weight: 600;
  font-size: 0.92rem;
  flex: 1;
}
.pill-badge {
  background: #e2e8f0;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.audience-pill.active .pill-badge {
  background: #d4af37;
  color: #ffffff;
}

.channel-tabs-bar {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 6px;
}
.channel-tab-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s;
}
.channel-tab-btn:hover {
  color: var(--ink);
}
.channel-tab-btn.active {
  color: var(--ink);
  background: #f1f5f9;
  font-weight: 700;
}

.channel-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.channel-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 12px;
}
.channel-panel-header h4 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}
.badge-highlight {
  background: #0284c7;
  color: white;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.sms-live-preview-box {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sms-preview-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  font-weight: 600;
}
.sms-bubble {
  background: #1e293b;
  border-left: 3px solid #22c55e;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.sms-meta-row {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.thankyou-guests-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}
.thankyou-guest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  gap: 12px;
}
.guest-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.mini-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 6px;
}
.mini-badge.checked-in {
  background: #dcfce7;
  color: #15803d;
}
.mini-badge.paid {
  background: #fef3c7;
  color: #b45309;
}
.btn-wa-action {
  background: #25d366;
  color: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-wa-action:hover {
  background: #1eb857;
}

.card-instruction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 12px 0;
}
.instruction-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  position: relative;
}
.inst-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.checkin-thankyou-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(212, 175, 55, 0.08) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  margin-top: 12px;
}

/* ==========================================================================
   GLATECH-INSPIRED SMART CARDS & EXECUTIVE HOMEPAGE STYLING
   ========================================================================== */

/* Brand Logo Badge */
.brand-logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* Hero Announcement Badge */
.hero-announcement-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.1);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.25);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

/* Hero Trust Stats Row */
.hero-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}
.hero-stat-item {
  display: flex;
  flex-direction: column;
}
.hero-stat-item strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.hero-stat-item span {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

/* Smart Card Preview Stage */
.hero-card-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}
.smart-card-preview-box {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(165deg, #0b1120 0%, #060911 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 24px;
  padding: 24px;
  color: #f8fafc;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.smart-card-preview-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.15);
}
.smart-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.smart-badge-pill {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(225, 29, 72, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(225, 29, 72, 0.3);
}

.smart-guest-plate {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 16px 0;
  text-align: center;
}
.smart-guest-plate small {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 4px;
}
.smart-guest-plate h4 {
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
}

.smart-logistics-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
  font-size: 0.88rem;
  color: #cbd5e1;
}
.smart-logistic-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.smart-logistic-row svg {
  color: #f59e0b;
  flex-shrink: 0;
}

.smart-qr-gate-section {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 14px;
  margin-top: 18px;
}
.smart-qr-box {
  width: 80px;
  height: 80px;
  background: #ffffff;
  border-radius: 10px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.smart-qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.smart-gate-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.smart-gate-info strong {
  font-size: 0.88rem;
  color: #ffffff;
}
.smart-gate-info p {
  font-size: 0.76rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.35;
}

/* Service Feature Cards */
.services-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.service-feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.service-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}
.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f0f9ff;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
}
.service-feature-card p {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 16px;
}

/* Presets Showcase Grid */
.presets-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.preset-showcase-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.preset-showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}
.preset-thumb-frame {
  height: 140px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.preset-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.preset-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}
.preset-body p {
  font-size: 0.84rem;
  color: #64748b;
  margin: 0 0 14px;
  line-height: 1.45;
}

/* Pricing Plans Grid */
.pricing-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.pricing-plan-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s, box-shadow 0.25s;
}
.pricing-plan-card.highlighted {
  border-color: #0284c7;
  box-shadow: 0 12px 36px -6px rgba(2, 132, 199, 0.16);
  transform: scale(1.02);
}
.pricing-popular-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: #0284c7;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 9999px;
}
.pricing-plan-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}
.pricing-plan-card .plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 14px 0 20px;
  letter-spacing: -0.02em;
}
.pricing-plan-card .plan-price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: #64748b;
}

/* Contact Form Layout */
.contact-form-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 36px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}
@media (max-width: 860px) {
  .contact-form-layout {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

/* ==========================================================================
   ECARDS PAGE (/ecards) EXECUTIVE STYLES
   ========================================================================== */

.ecards-page-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px;
}

.ecards-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}
.ecard-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-text-wrap {
  display: flex;
  flex-direction: column;
}
.stat-text-wrap strong {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}
.stat-text-wrap span {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ecard-filter-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
  background: #ffffff;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}
.search-input-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
}
.search-icon-pos {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}
.search-input-wrap input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input-wrap input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.occasion-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.occasion-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}
.occasion-pill-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.occasion-pill-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.ecards-smart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.smart-card-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.smart-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}
.smart-card-thumb {
  min-height: 180px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.smart-thumb-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.thumb-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
}
.thumb-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.smart-thumb-body h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.3;
}
.smart-thumb-body p {
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.4;
}
.smart-thumb-pass-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}
.pass-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.85;
}
.thumb-qr-icon-box {
  width: 32px;
  height: 32px;
  background: #ffffff;
  color: #0f172a;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.smart-card-info-pane {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.info-event-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}
.info-meta-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: #64748b;
}
.info-meta-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.smart-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.smart-card-actions .btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Minimalist Swatches in ECardRenderer */
.tz-smart-dresscode {
  margin-top: 6px;
}
.tz-smart-dress-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tz-swatch-dots-minimal {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 2px;
}
.tz-swatch-dot-min {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  display: inline-block;
}

.sidebar-foot { display: grid; gap: 4px; margin-top: auto; padding-top: 12px; }
.sidebar-foot a, .sidebar-foot .side-phone {
  display: flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 12px; border-radius: 12px;
  color: rgba(255, 255, 255, 0.8); text-decoration: none;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.sidebar-foot a.side-guide { height: auto; min-height: 40px; padding-top: 8px; padding-bottom: 8px; line-height: 1.25; white-space: normal; }
.sidebar-foot a:hover, .sidebar-foot .side-phone:hover { background: rgba(255, 255, 255, 0.1); color: white; }
.sidebar-foot a.active { background: white; color: #003D73; }
.sidebar-foot .side-support { height: auto; min-height: 48px; padding-top: 6px; padding-bottom: 6px; }
.sidebar-foot .side-support .nav-label {
  display: grid; gap: 1px; letter-spacing: 0; text-transform: none; line-height: 1.2; font-size: 12px;
}
.sidebar-foot .side-support small { font-size: 11px; font-weight: 700; letter-spacing: 0.01em; }

.guide {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start;
}
.guide article {
  background: white; border: 1px solid #e7edf5; border-radius: 18px; padding: 20px 22px;
  box-shadow: 0 10px 28px rgba(0, 21, 100, 0.05);
}
.guide article > p { margin: 0; color: #F57200; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.guide h2 { margin: 6px 0 0; color: #001564; font-size: 26px; letter-spacing: -0.03em; }
.guide article > span { display: block; margin: 6px 0 14px; color: #667085; font-size: 14px; }
.guide ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.guide li a {
  display: flex; align-items: flex-start; gap: 12px; text-decoration: none; color: #102033;
  border-radius: 12px; padding: 8px; 
}
.guide li a:hover { background: #f7f9fc; }
.guide li b {
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto;
  background: #001564; color: white; font-size: 13px;
}
.guide li strong { display: block; color: #001564; font-size: 14px; }
.guide li small { display: block; margin-top: 2px; color: #667085; font-size: 13px; font-weight: 500; }
.guide-video {
  width: 280px; padding: 10px; background: white; border: 1px solid #e7edf5; border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 21, 100, 0.05);
}
.guide-video p { margin: 2px 4px 0; color: #F57200; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.guide-video h3 { margin: 2px 4px 8px; color: #001564; font-size: 14px; letter-spacing: -0.02em; line-height: 1.25; }
.guide-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; display: block; background: #001564; }
.wallet-actions, .desk-event { display: flex; align-items: center; gap: 8px; }
.desk-event { display: grid; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #667085; }
.desk-event select, .rsvp-page select {
  min-height: 40px; border: 1px solid #e4e7ec; border-radius: 10px; padding: 0 10px; background: white; color: #101828;
  font-weight: 700; letter-spacing: 0; text-transform: none;
}
.rsvp-tools { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.rsvp-tools input { min-height: 40px; border: 1px solid #e4e7ec; border-radius: 10px; padding: 0 12px; min-width: 220px; }
.rsvp-table-wrap { overflow: auto; }
.wallet-plus { color: #067647; }
.wallet-minus { color: #b42318; }
@media (max-width: 900px) {
  .guide { grid-template-columns: 1fr; }
  .guide-video { width: min(280px, 100%); }
}

.kadi { display: grid; gap: 18px; }
.kadi h1 { margin: 0; color: #003D73; font-size: 28px; letter-spacing: -0.03em; }
.kadi h2 { margin: 0 0 8px; color: #003D73; font-size: 18px; }
.kadi-kicker { margin: 0; color: #808080; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.kadi-hello, .kadi-event-head, .kadi-price-head, .kadi-cal-bar, .kadi-panel-head {
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap;
}
.kadi-hello p, .kadi-event-head p { margin: 4px 0 0; color: #667085; }
.kadi-switch { position: relative; }
.kadi-switch > button, .kadi-switch-list button {
  display: grid; text-align: left; background: white; border: 1px solid rgba(0, 61, 115, 0.15);
  border-radius: 12px; padding: 10px 14px; min-width: 220px; cursor: pointer;
}
.kadi-switch > button strong { color: #003D73; }
.kadi-switch > button span, .kadi-switch-list small { color: #808080; font-size: 12px; }
.kadi-switch-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; background: white;
  border: 1px solid rgba(0, 61, 115, 0.15); border-radius: 12px; padding: 6px; display: grid; gap: 4px; min-width: 240px;
}
.kadi-banner {
  display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap;
  background: #003D73; color: white; border-radius: 14px; padding: 16px 18px;
}
.kadi-banner p { margin: 0; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: 13px; }
.kadi-banner .btn { background: white; color: #003D73; }
.kadi-banner .btn-ghost { color: white; border-color: rgba(255,255,255,.4); }
.kadi-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kadi-stats.five { grid-template-columns: repeat(5, 1fr); }
.kadi-stats.three { grid-template-columns: repeat(3, 1fr); }
.kadi-stats article {
  background: white; border: 1px solid rgba(0, 61, 115, 0.12); border-radius: 14px; padding: 16px;
}
.kadi-stats span { display: block; color: #808080; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.kadi-stats strong { display: block; margin-top: 8px; color: #003D73; font-size: 28px; }
.kadi-split, .kadi-price, .kadi-preview { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.kadi-panel, .kadi-section {
  background: white; border: 1px solid rgba(0, 61, 115, 0.12); border-radius: 14px; padding: 16px 18px;
}
.kadi-steps, .kadi-docs { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.kadi-steps a, .kadi-docs a { color: #003D73; font-weight: 700; }
.kadi-dl { display: grid; gap: 10px; margin: 0 0 12px; }
.kadi-dl div { display: grid; gap: 2px; }
.kadi-dl dt, .kadi-field span { color: #808080; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.kadi-dl dd, .kadi-field strong { margin: 0; color: #102033; }
.kadi-sections { display: grid; gap: 14px; }
.kadi-section h2 { display: flex; align-items: center; gap: 10px; }
.kadi-section h2 span {
  width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center;
  background: #003D73; color: white; font-size: 12px;
}
.kadi-field { display: grid; gap: 4px; padding: 8px 0; border-bottom: 1px solid #f0f2f5; }
.kadi-section label, .kadi-panel label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: #003D73; }
.kadi-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.kadi-chip {
  display: inline-flex; margin: 8px 0; padding: 6px 10px; border-radius: 8px;
  border: 1px solid rgba(0, 61, 115, 0.15); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #003D73;
}
.kadi-product {
  border: 2px solid #003D73; border-radius: 14px; padding: 16px; display: grid; gap: 2px; max-width: 220px;
}
.kadi-product b { font-size: 32px; color: #003D73; }
.kadi-stepper span { display: flex; gap: 6px; align-items: center; }
.kadi-stepper input { width: 64px; text-align: center; }
.kadi-total { font-size: 18px; color: #003D73; }
.price-shop { display: grid; gap: 16px; }
.price-top, .price-panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.price-shop h1 { margin: 0; color: #001564; font-size: 28px; letter-spacing: -0.03em; }
.price-top .kadi-switch { margin-top: 6px; }
.price-top .kadi-switch > button { min-width: 0; }
.price-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.price-layout.solo { grid-template-columns: 1fr; }
.price-main { display: grid; gap: 16px; }
.price-panel, .price-summary {
  background: white; border: 1px solid #e6ebf5; border-radius: 16px; padding: 18px;
  box-shadow: 0 8px 24px rgba(0, 21, 100, 0.04);
}
.price-panel h2, .price-summary h2 { margin: 0; color: #001564; font-size: 16px; }
.price-panel-head p, .price-label { margin: 4px 0 0; color: #98a2b3; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.price-panel-head span {
  border: 1px solid #e6ebf5; border-radius: 999px; padding: 6px 10px; color: #667085;
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}
.price-service {
  margin-top: 16px; width: min(220px, 100%); min-height: 148px; border: 1px solid #e6ebf5; border-radius: 16px;
  background: white; color: #001564; display: grid; justify-items: start; align-content: center; gap: 2px;
  padding: 16px 18px; position: relative; text-align: left;
}
.price-service.on { background: #001564; color: white; border-color: #001564; }
.price-service-mark {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: #001564; color: white; font-weight: 800; margin-bottom: 8px;
}
.price-service.on .price-service-mark { background: rgba(255,255,255,.14); color: white; }
.price-service strong { font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; }
.price-service b { font-size: 14px; font-weight: 700; }
.price-service em {
  font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; opacity: .8;
}
.price-service i {
  position: absolute; top: 14px; right: 14px; width: 14px; height: 14px; min-width: 14px; min-height: 14px;
  margin: 0; padding: 0; border-radius: 50%; border: 1.5px solid #c5cdd8; background: transparent;
  box-sizing: border-box; font-size: 0; line-height: 0;
}
.price-service i.on { border-color: #001564; background: #001564; box-shadow: inset 0 0 0 3px white; }
.price-service.on i.on { border-color: white; background: white; box-shadow: inset 0 0 0 3px #001564; }
.price-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 12px; }
.price-balance {
  display: grid; gap: 8px; margin-bottom: 14px; padding: 14px 16px; border-radius: 14px;
  background: #f4f7fb; border: 1px solid #e6ebf5;
}
.price-balance p { margin: 0; color: #667085; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.price-balance div { display: flex; justify-content: space-between; align-items: center; }
.price-balance span { color: #001564; font-weight: 800; }
.price-balance strong { color: #001564; font-size: 28px; letter-spacing: -0.03em; }
.price-balance button {
  justify-self: start; border: 0; background: transparent; color: #001564; font-weight: 800; padding: 0; min-height: 28px;
}
.price-tabs button, .price-networks button {
  border: 1px solid #e6ebf5; background: white; border-radius: 12px; min-height: 42px; font-weight: 800; color: #001564;
}
.price-tabs button.on { background: #001564; color: white; border-color: #001564; }
.price-networks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0 16px; }
.price-networks button { min-height: 92px; position: relative; display: grid; place-items: center; padding: 8px 10px; }
.price-networks button.on { border-color: #001564; box-shadow: inset 0 0 0 1px #001564; }
.price-networks .pay-mark { width: min(156px, 100%); height: 58px; display: block; }
.price-networks i {
  position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 999px;
  background: #001564; color: white; font-style: normal; font-size: 11px; display: grid; place-items: center;
}
.price-phone, .price-promo, .price-step { display: grid; gap: 6px; color: #667085; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.price-phone input, .price-promo input, .price-step input {
  text-transform: none; letter-spacing: 0; font-weight: 600; color: #101828; min-height: 42px;
  border: 1px solid #e6ebf5; border-radius: 10px; padding: 0 12px;
}
.price-buy {
  margin-top: 16px; width: 100%; min-height: 46px; border: 0; border-radius: 10px;
  background: #001564; color: white; font-weight: 800;
}
.price-buy:disabled { opacity: 0.55; }
.price-summary { display: grid; gap: 14px; }
.price-step span, .price-promo span { display: flex; gap: 8px; align-items: center; }
.price-step button, .price-promo button {
  width: 36px; min-height: 42px; border: 1px solid #e6ebf5; background: white; border-radius: 10px; font-weight: 800; color: #001564;
}
.price-step input { width: 88px; flex: 0 0 88px; text-align: center; user-select: text; cursor: text; }
.price-promo button { width: auto; padding: 0 12px; }
.price-promo input { flex: 1; }
.price-line, .price-payable { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.price-line button {
  border: 0; background: transparent; color: #b42318; font-weight: 800; min-height: 32px; padding: 0;
}
.price-line strong, .price-payable strong { color: #001564; }
.price-payable {
  background: #f4f7fb; border-radius: 12px; padding: 14px;
}
.price-payable span, .price-secure { color: #98a2b3; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.price-payable strong { font-size: 22px; }
.price-secure { margin: 0; text-align: center; }
.price-orders-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid #e6ebf5; border-radius: 999px; background: white; color: #001564;
  font-weight: 800; box-shadow: 0 8px 20px rgba(0, 21, 100, 0.06);
}
.price-orders-btn:hover { border-color: #001564; }
.orders-modal {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px;
  background: rgba(16, 24, 40, 0.45);
}
.orders-card {
  width: min(920px, 100%); background: white; border-radius: 18px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.22); overflow: hidden;
}
.orders-card header { display: flex; align-items: center; gap: 12px; padding: 16px 18px 8px; }
.orders-card h2 { margin: 0; color: #001564; font-size: 18px; white-space: nowrap; }
.orders-search { flex: 1; }
.orders-search input {
  width: 100%; min-height: 38px; border: 1px solid #e6ebf5; border-radius: 10px; padding: 0 12px;
  font-weight: 600; color: #101828;
}
.orders-card header > button {
  width: 34px; height: 34px; border: 0; border-radius: 999px; background: #f4f7fb; color: #001564; font-size: 22px;
}
.orders-table-wrap { overflow: auto; padding: 8px 18px 0; }
.orders-card table { width: 100%; border-collapse: collapse; min-width: 680px; }
.orders-card th {
  background: #001564; color: white; text-align: left; font-size: 13px; font-weight: 700; padding: 10px 12px;
}
.orders-card th:first-child { border-radius: 8px 0 0 8px; }
.orders-card th:last-child { border-radius: 0 8px 8px 0; }
.orders-card td { padding: 12px; border-bottom: 1px solid #eef2f6; color: #101828; font-size: 14px; }
.orders-status {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 800;
}
.orders-status.ok { background: #ecfdf3; color: #067647; }
.orders-status.wait { background: #fffaeb; color: #b54708; }
.orders-status.bad { background: #fef3f2; color: #b42318; }
.orders-card footer {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 18px 16px; color: #667085; font-size: 13px;
}
.orders-card footer p { margin: 0; }
.orders-card footer span { margin: 0 6px; color: #d0d5dd; }
.orders-card footer b.ok { color: #067647; }
.orders-card footer b.wait { color: #b54708; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
@media (max-width: 980px) {
  .price-layout, .price-networks { grid-template-columns: 1fr 1fr; }
  .price-summary { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .price-networks, .price-tabs { grid-template-columns: 1fr 1fr; }
  .price-panel-head { flex-direction: column; }
}
.promo-row { display: flex; gap: 8px; }
.kadi-seg { display: flex; gap: 4px; background: #f3f6f9; border-radius: 10px; padding: 4px; }
.kadi-seg button { border: 0; background: transparent; border-radius: 8px; padding: 6px 10px; font-weight: 800; text-transform: capitalize; cursor: pointer; color: #003D73; }
.kadi-seg button.on { background: white; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.kadi-month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.kadi-dow { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #808080; padding: 4px; }
.kadi-day { min-height: 88px; background: white; border: 1px solid #e8eef5; border-radius: 10px; padding: 6px; display: grid; align-content: start; gap: 4px; }
.kadi-day.outside { opacity: .45; }
.kadi-day.today { outline: 2px solid #003D73; }
.kadi-day button { border: 0; background: #003D73; color: white; border-radius: 6px; font-size: 11px; padding: 3px 6px; text-align: left; cursor: pointer; }
.kadi-year { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kadi-year button { background: white; border: 1px solid #e8eef5; border-radius: 12px; padding: 16px; text-align: left; cursor: pointer; }
.kadi-cal-nav { display: flex; gap: 6px; }
.phone-mock { background: white; border: 1px solid #e8eef5; border-radius: 18px; padding: 16px; }
.phone-bubble { white-space: pre-wrap; background: #f4f7fb; border-radius: 14px; padding: 12px; color: #102033; }
.phone-bubble.wa { background: #e7f8ef; }
.phone-card { height: 120px; border-radius: 12px; margin-bottom: 8px; background: linear-gradient(160deg, #003D73, #4d7eab); color: white; display: grid; place-items: center; font-weight: 800; }
.kadi-table { width: 100%; border-collapse: collapse; background: white; }
.kadi-table th { text-align: left; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #808080; padding: 8px; border-bottom: 1px solid #e8eef5; }
.kadi-table td { padding: 10px 8px; border-bottom: 1px solid #f3f5f8; }
.kadi-empty, .kadi-empty-block { background: white; border: 1px dashed rgba(0, 61, 115, 0.25); border-radius: 14px; padding: 28px; text-align: center; }
.kadi-upload { display: grid; gap: 8px; max-width: 280px; }
.kadi-upload img { width: 100%; border-radius: 12px; }
.kadi-upload input { display: none; }
.kadi-tabs { display: flex; gap: 8px; }
.kadi-tabs button { border: 0; background: transparent; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #808080; padding: 8px 2px; cursor: pointer; }
.kadi-tabs button.on { color: #003D73; box-shadow: inset 0 -2px 0 #003D73; }
.kadi-history { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.kadi-history li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f2f5; }
.kadi-history small { display: block; color: #808080; }
.kadi-progress { height: 8px; background: #e8eef5; border-radius: 99px; overflow: hidden; }
.kadi-progress span { display: block; height: 100%; background: #003D73; }
.kadi-drawer { position: fixed; right: 16px; top: 16px; bottom: 16px; width: min(380px, calc(100vw - 32px)); background: white; border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.16); padding: 16px; z-index: 20; overflow: auto; }
.kadi-drawer header { display: flex; justify-content: space-between; align-items: center; }
.kadi-drawer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.kadi-drawer li { display: flex; justify-content: space-between; gap: 8px; }
.stack { display: grid; gap: 10px; }
@media (max-width: 900px) {
  .kadi-stats, .kadi-stats.five, .kadi-stats.three, .kadi-split, .kadi-price, .kadi-preview, .kadi-year { grid-template-columns: 1fr; }
}

.msg-preview { display: grid; gap: 16px; }
.msg-title { display: flex; align-items: center; gap: 12px; }
.msg-title h1 { margin: 0; color: #003D73; font-size: 26px; letter-spacing: -0.03em; }
.msg-title p { margin: 2px 0 0; color: #8a94a6; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.msg-eye {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: #003D73; color: white;
}
.msg-event {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: white; border: 1px solid #e6ebf2; border-radius: 12px; padding: 14px 16px;
  color: #667085; font-size: 14px;
}
.msg-event strong { color: #101828; font-weight: 700; }
.msg-badge {
  background: #eef3f8; color: #003D73; border-radius: 999px; padding: 4px 10px;
  font-size: 12px; font-weight: 700;
}
.msg-sheet { background: white; border: 1px solid #e6ebf2; border-radius: 14px; padding: 18px 18px 8px; }
.msg-sheet > header h2 { margin: 0; color: #1d2939; font-size: 18px; }
.msg-sheet > header p { margin: 4px 0 14px; color: #98a2b3; font-size: 13px; }
.msg-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.msg-col-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.msg-col-head h3 { margin: 0; display: flex; align-items: center; gap: 8px; color: #344054; font-size: 14px; font-weight: 700; }
.msg-col-head h3 svg { color: #667085; }
.msg-cols article.wa .msg-col-head h3 svg { color: #12b76a; }
.msg-col-head div { text-align: right; }
.msg-col-head strong { display: block; color: #98a2b3; font-size: 11px; letter-spacing: 0.04em; }
.msg-cols article.wa .msg-col-head strong { color: #12b76a; }
.msg-col-head small { color: #98a2b3; font-size: 11px; }
.msg-cols pre {
  margin: 0; white-space: pre-wrap; font-family: inherit; font-size: 13px; line-height: 1.55;
  color: #175cd3; background: #f8fafc; border: 1px solid #eef2f6; border-radius: 12px; padding: 14px 16px;
}
.msg-cols footer { margin: 8px 2px 14px; color: #98a2b3; font-size: 12px; }
.msg-card {
  min-height: 150px; border-radius: 12px; background: #f7f4ee; border: 1px solid #eeeae2;
  display: grid; place-items: center; overflow: hidden; color: #98a2b3;
}
.msg-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.msg-card span { display: grid; justify-items: center; gap: 6px; font-size: 13px; }
.msg-wa-copy { margin: 12px 2px 4px; white-space: pre-wrap; color: #1d2939; font-size: 14px; line-height: 1.45; }
.msg-wa-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 14px; }
.msg-wa-foot time { color: #98a2b3; font-size: 12px; margin-left: auto; }
.msg-wa-foot button {
  border: 0; background: transparent; color: #12b76a; font-weight: 700; font-size: 14px; cursor: default;
}
.sidebar { background: #001564; }
.admin-mark { background: #F57200; color: white; }
.side-nav a.active, .side-nav a.active:hover {
  background: rgba(245, 114, 0, 0.16);
  color: white;
  box-shadow: inset 3px 0 0 #F57200;
}
.workspace .btn { background: #F57200; color: white; }
.workspace .btn:hover { background: #dd6500; }
.workspace { background: #f5f7fb; }
.desk-intro p:last-child, .desk-hero span { color: #667085; }
.desk-hero {
  display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap;
  background: linear-gradient(120deg, #001564, #0b2a86); color: white; border-radius: 18px; padding: 22px 24px;
}
.desk-hero p { margin: 0; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; font-weight: 800; color: rgba(255,255,255,.72); }
.desk-hero strong { display: block; font-size: 42px; line-height: 1.1; margin: 4px 0; }
.desk-hero span { color: rgba(255,255,255,.8); }
.desk-hero .btn { background: #F57200; }
.desk-issue { margin-top: 16px; display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid #e8eef5; }
.desk-math { margin: 0; color: #001564; font-weight: 700; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-methods button {
  border: 1px solid #d9e2ef; background: white; color: #001564; border-radius: 999px;
  padding: 8px 14px; font-weight: 700; cursor: pointer;
}
.pay-methods button.on { background: #001564; color: white; border-color: #001564; }
.kadi-table small { display: block; }
@media (max-width: 900px) {
  .msg-cols { grid-template-columns: 1fr; }
}

.guest-desk { display: grid; gap: 16px; width: 100%; max-width: 1152px; }
.guest-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.guest-title { display: flex; align-items: center; gap: 12px; }
.guest-mark {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(0, 21, 100, 0.08); color: #001564;
}
.guest-title h1 { margin: 0; font-size: 28px; font-weight: 900; color: #001564; letter-spacing: -0.03em; }
.guest-title p { margin: 2px 0 0; text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; color: #667789; }
.guest-title strong { color: #001564; }
.guest-stats {
  display: flex; align-items: stretch; background: #001564; color: white;
  border-radius: 12px; overflow: hidden; border: 1px solid rgba(0, 21, 100, 0.2);
}
.guest-stats div { padding: 10px 18px; min-width: 88px; }
.guest-stats div + div { border-left: 1px solid rgba(255,255,255,.18); }
.guest-stats span { display: block; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800; opacity: .75; }
.guest-stats strong { display: block; font-size: 22px; font-weight: 900; line-height: 1.1; }
.guest-actions { display: flex; gap: 12px; }
.guest-actions button {
  flex: 1; min-height: 52px; border-radius: 12px; border: 1.5px solid #001564; background: white; color: #001564;
  font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.guest-actions button:hover { background: #001564; color: white; }
.guest-list { background: white; border: 1px solid #e6edf5; border-radius: 14px; overflow: hidden; }
.guest-toast {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0; padding: 10px 14px; border-radius: 10px;
  background: #e7f8ef; color: #157347; border: 1px solid #b7ebc9; font-weight: 650;
}
.guest-toast span { display: inline-flex; align-items: center; gap: 8px; }
.guest-toast button { border: 0; background: transparent; color: #157347; font-size: 20px; line-height: 1; }
.guest-filters { display: flex; align-items: center; gap: 8px; padding: 12px 16px 0; color: #98a2b3; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.guest-filters button {
  border: 1px solid #d0d5dd; background: white; color: #344054; border-radius: 8px;
  padding: 6px 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.guest-filters button.on { background: #001564; color: white; border-color: #001564; }
.guest-filters button.danger { color: #8d2e2e; border-color: #efd4d4; }
.guest-list-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #eef2f7; flex-wrap: wrap; }
.guest-search { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 180px; max-width: 320px; border: 1px solid #e4eaf0; border-radius: 10px; padding: 0 10px; color: #98a2b3; }
.guest-search input { border: 0; min-height: 36px; padding: 0; box-shadow: none; }
.guest-search input:focus { box-shadow: none; }
.guest-list-bar .guest-export { background: #12b76a; color: white; border-color: #12b76a; }
.guest-list-bar .guest-export:hover { background: #0e9f5a; color: white; }
.guest-sort { border: 0; background: transparent; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; font-weight: 800; }
.guest-done, .guest-wait { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.guest-done { background: #ecfdf3; color: #027a48; }
.guest-wait { background: #f8f1e4; color: #8a5a12; }
.guest-view {
  display: inline-flex; align-items: center; gap: 4px; border: 1px solid #d0d5dd; background: #f8fafc; color: #344054;
  border-radius: 8px; padding: 4px 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.guest-row-actions { display: flex; gap: 4px; }
.guest-row-actions button { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #667085; }
.guest-row-actions button:hover { background: #f4f6fb; color: #001564; }
.guest-card-view { width: min(420px, 100%); display: block; margin: 0 auto; border-radius: 12px; }
.share-sub { margin: -6px 0 12px; color: #667789; font-size: 13px; }
.share-note { background: #f4f7ff; border: 1px solid #d9e2f2; border-radius: 12px; padding: 12px 14px; }
.share-note strong { color: #001564; }
.share-note p { margin: 6px 0 0; color: #44566c; font-size: 14px; }
.share-label { margin: 14px 0 6px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #667789; font-weight: 800; }
.share-url { display: flex; gap: 8px; align-items: center; background: #f7f9fc; border: 1px solid #e6edf5; border-radius: 10px; padding: 8px 8px 8px 12px; }
.share-url span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #001564; font-size: 13px; }
.share-url button { border: 0; border-radius: 8px; background: #001564; color: white; min-height: 36px; padding: 0 14px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.share-actions { display: flex; gap: 8px; margin-top: 14px; }
.share-actions a { flex: 1; text-decoration: none; }
.share-wa { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 10px; background: #12b76a; color: white; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.share-close { display: block; margin: 12px auto 0; border: 0; background: transparent; color: #667789; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.cards-public { min-height: 100vh; background: #f5f7fb; padding: 28px 16px 48px; }
.cards-public header { max-width: 880px; margin: 0 auto 16px; }
.cards-public header p { margin: 0; color: #F57200; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; }
.cards-public header h1 { margin: 4px 0; color: #001564; font-size: 32px; }
.cards-public header span { color: #667789; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
.cards-public section { max-width: 880px; margin: 0 auto; background: white; border: 1px solid #e6edf5; border-radius: 16px; padding: 16px; }
.cards-tools { display: grid; gap: 10px; margin-bottom: 12px; }
.cards-tools div { display: flex; gap: 8px; flex-wrap: wrap; }
.cards-tools button { border: 1px solid #d0d5dd; background: white; border-radius: 999px; padding: 6px 12px; font-weight: 800; color: #001564; }
.cards-tools button.on { background: #001564; color: white; }
.cards-public ul { list-style: none; margin: 0; padding: 0; }
.cards-public li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid #eef2f7; }
.cards-public li strong { display: block; color: #122033; }
.cards-public li small { color: #667789; }
.cards-public li button { border: 0; border-radius: 8px; background: #001564; color: white; min-height: 36px; padding: 0 12px; font-weight: 700; }
.guest-list-bar strong { letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; color: #001564; }
.guest-list-bar div { display: flex; gap: 8px; }
.guest-list-bar button {
  border: 1px solid #001564; background: white; color: #001564; border-radius: 8px;
  padding: 7px 12px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.guest-list-bar button:hover { background: #001564; color: white; }
.guest-list-bar button:disabled { opacity: .45; }
.guest-empty { margin: 0; padding: 48px 16px; text-align: center; letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; font-weight: 800; color: #8a97a6; }
.guest-scroll { max-height: 520px; overflow: auto; }
.guest-table { width: 100%; border-collapse: collapse; }
.guest-table th { position: sticky; top: 0; background: #f7f9fc; text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #667789; padding: 10px 12px; }
.guest-table td { padding: 12px; border-top: 1px solid #f0f3f8; font-size: 14px; }
.guest-table a { color: #001564; word-break: break-all; }
.guest-table .row-bad td { background: #fff6f4; color: #8d2e2e; }
.modal-bulk { width: min(960px, 100%); }
.edit-guest { width: min(420px, 100%); padding: 18px 20px 16px; border-radius: 12px; }
.edit-guest .modal-head { margin-bottom: 16px; }
.edit-guest .modal-head h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: 0; text-transform: none; color: #101828; }
.edit-guest label { display: grid; gap: 6px; margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #667085; }
.edit-guest input { width: 100%; border: 1px solid #e4e7ec; border-radius: 8px; min-height: 42px; padding: 0 12px; font-size: 14px; color: #101828; background: white; }
.edit-guest-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 4px; }
.edit-guest-actions .btn-ghost { border: 0; background: transparent; color: #667085; min-height: 36px; padding: 0 10px; }
.workspace .edit-guest .btn { background: #001564; border-color: #001564; border-radius: 8px; min-height: 36px; padding: 0 14px; letter-spacing: 0; text-transform: none; }
.modal-bulk .modal-head h2, .guest-modal .modal-head h2 {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; font-weight: 900; color: #001564;
}
.bulk-drop {
  border: 1.5px dashed #001564; border-radius: 14px; background: #f7f9ff; padding: 28px 16px;
  display: grid; justify-items: center; gap: 8px; text-align: center;
}
.bulk-file {
  min-height: 46px; padding: 0 18px; border-radius: 10px; border: 0; background: #001564; color: white;
  font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.bulk-drop p { margin: 0; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #667789; font-weight: 700; }
.bulk-format { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #f5f7fb; display: grid; gap: 4px; }
.bulk-format strong { letter-spacing: 0.1em; text-transform: uppercase; font-size: 12px; color: #001564; }
.bulk-format p { margin: 0; color: #44566c; font-size: 14px; }
.bulk-preview { margin-top: 14px; border: 1px solid #e6edf5; border-radius: 12px; overflow: hidden; }
.bulk-preview .guest-scroll { max-height: 280px; }
.bulk-preview-bar { display: flex; justify-content: space-between; padding: 10px 12px; background: #001564; color: white; font-size: 13px; }
.bulk-preview-bar span { opacity: .8; }
.guest-modal-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }
.bulk-actions { align-items: center; }
.bulk-spacer { flex: 1; }
@media (max-width: 720px) {
  .guest-actions { flex-direction: column; }
  .guest-stats { width: 100%; }
  .guest-stats div { flex: 1; }
}

.tpl { display: grid; gap: 16px; width: 100%; max-width: 1040px; }
.tpl-head h1 { margin: 0; font-size: 28px; font-weight: 900; color: #001564; letter-spacing: -0.03em; }
.tpl-title { display: flex; gap: 12px; align-items: flex-start; }
.tpl-mark {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(0, 21, 100, 0.08); color: #001564; flex: none;
}
.tpl-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tpl-title p { margin: 2px 0 0; text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; color: #667789; font-weight: 700; }
.tpl-title strong { color: #001564; }
.tpl-pdf-link {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 10px;
  border: 1px solid rgba(0, 21, 100, 0.2); background: white; color: #001564; text-decoration: none;
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.tpl-pdf-link:hover { background: #001564; color: white; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tpl-card, .tpl-editor {
  background: white; border: 1px solid #e6edf5; border-radius: 16px; padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 21, 100, 0.04);
}
.tpl-card { display: grid; gap: 12px; color: inherit; text-decoration: none; }
.tpl-card:hover { border-color: #F57200; }
.tpl-shot { display: block; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: #f4f1ea; }
.tpl-shot.is-landscape { aspect-ratio: 3 / 2; }
.tpl-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpl-card-top { display: flex; gap: 12px; align-items: center; }
.tpl-card-top h2, .tpl-editor h2, .tpl-editor h3 { margin: 0; color: #001564; }
.tpl-badge {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid #e6edf5; background: #f7f9fc; color: #001564; font-weight: 900;
}
.tpl-badge.ok { background: #e8f6ee; color: #1b6b45; border-color: #cfeedd; }
.tpl-required {
  display: inline-block; margin-top: 4px; padding: 2px 6px; border-radius: 6px;
  background: #fff4eb; color: #c45b12; border: 1px solid #ffe0c2;
  font-size: 9px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.tpl-card-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid #eef2f7; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #8a97a6; }
.tpl-card-foot .is-ok, .tpl-state.is-ok { color: #1b6b45; }
.tpl-card-foot b { color: #F57200; }
.tpl-back {
  justify-self: start; border: 0; background: transparent; color: #44566c; font-weight: 800; padding: 0;
}
.tpl-back:hover { color: #001564; }
.tpl-editor { display: grid; gap: 16px; }
.tpl-default-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-left: 5px solid #16a34a;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tpl-default-banner-text {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 260px;
}
.tpl-default-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tpl-status, .tpl-filebar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tpl-state { padding: 6px 12px; border-radius: 999px; background: #f7f9fc; color: #8a97a6; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.tpl-state.is-ok { background: #e8f6ee; }
.tpl-positions { border: 1px solid #e6edf5; border-radius: 14px; padding: 14px; }
.tpl-positions-bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.tpl-positions-bar span, .tpl-filebar span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #667789; font-weight: 800; }
.tpl-tabs { display: flex; gap: 4px; overflow: auto; border-bottom: 1px solid #e6edf5; margin: 12px 0; }
.tpl-tabs button {
  border: 0; border-bottom: 2px solid transparent; background: transparent; color: #667789;
  padding: 10px 12px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
.tpl-tabs button.on { color: #001564; border-bottom-color: #F57200; }
.tpl-place-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.tpl-place-row p, .tpl-style p { margin: 4px 0 0; color: #44566c; font-size: 14px; }
.tpl-style { margin-top: 12px; padding: 12px; border-radius: 12px; background: #f7f9ff; display: grid; gap: 10px; }
.tpl-style-grid { display: grid; grid-template-columns: 88px 1fr 100px; gap: 10px; align-items: end; }
.tpl-style-tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.tpl-style-tools button {
  border: 1px solid #d5dee6; background: white; border-radius: 8px; min-height: 34px; padding: 0 10px;
  font-size: 12px; font-weight: 700; text-transform: capitalize;
}
.tpl-style-tools button.on { background: #001564; color: white; border-color: #001564; }
.tpl-stage {
  position: relative; width: min(420px, 100%); aspect-ratio: 2 / 3; margin: 0 auto;
  background: #f4f1ea; border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 21, 100, 0.12);
}
.tpl-stage.is-landscape { width: min(640px, 100%); aspect-ratio: 3 / 2; }
.tpl-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tpl-stage.placing { cursor: crosshair; outline: 2px solid #F57200; }
.tpl-empty {
  position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; border: 0; background:
    linear-gradient(180deg, #001564 0%, #0b2a86 100%);
  color: white; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 24px; text-align: center;
}
.tpl-empty strong { font-size: 22px; }
.tpl-empty span { max-width: 280px; color: rgba(255,255,255,.8); font-size: 14px; }
.tpl-mark-live { position: absolute; z-index: 2; touch-action: none; pointer-events: auto; cursor: grab; }
.tpl-mark-live:active { cursor: grabbing; }
.tpl-remove {
  position: absolute; top: -12px; right: -12px; z-index: 3; width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: #8d2e2e; color: white; font-size: 16px; line-height: 1; padding: 0;
}
.tpl-mark-live img { display: block; background: white; border-radius: 6px; }
.tpl-mark-live.on b, .tpl-mark-live.on img { outline: 2px solid #F57200; outline-offset: 3px; }
.tpl-filebar { padding-top: 12px; border-top: 1px solid #eef2f7; }
.tpl-filebar strong { display: block; letter-spacing: 0.1em; text-transform: uppercase; font-size: 12px; color: #001564; }
.tpl-filebar > div:last-child { display: flex; gap: 8px; }
.tpl-filebar span.tpl-hint { display: block; margin-top: 4px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; }
.tpl-pdf { display: grid; gap: 14px; background: white; border: 1px solid #e6edf5; border-radius: 16px; padding: 18px; }
.tpl-pdf section { display: flex; gap: 12px; align-items: flex-start; }
.tpl-pdf section > span {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: #001564; color: white; font-weight: 800; flex: none;
}
.tpl-pdf h2 { margin: 0 0 8px; color: #001564; font-size: 16px; }
.tpl-file {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px;
  border: 1px dashed #001564; color: #001564; font-weight: 700; cursor: pointer;
}
.tpl-file input { display: none; }
.tpl-orients { display: flex; gap: 10px; flex-wrap: wrap; }
.tpl-orients button {
  width: 160px; border: 1px solid #e6edf5; background: white; border-radius: 14px; padding: 12px;
  display: grid; justify-items: center; gap: 6px; color: #001564;
}
.tpl-orients button.on { border-color: #F57200; box-shadow: inset 0 0 0 1px #F57200; }
.tpl-orients i { display: block; border: 2px solid #001564; border-radius: 4px; background: #f5f7fb; }
.tpl-orients i.portrait { width: 42px; height: 64px; }
.tpl-orients i.landscape { width: 64px; height: 42px; }
.tpl-orients small { color: #667789; letter-spacing: 0.06em; }
.tpl-result { display: grid; justify-items: center; gap: 12px; }
.tpl-result-frame {
  width: min(360px, 100%); aspect-ratio: 2 / 3; border-radius: 16px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 21, 100, 0.16); background: #f4f1ea;
}
.tpl-result-frame.is-landscape { width: min(520px, 100%); aspect-ratio: 3 / 2; }
.tpl-result-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 720px) {
  .tpl-style-grid { grid-template-columns: 1fr; }
  .tpl-place-row { flex-direction: column; align-items: stretch; }
}

.side-nav a { position: relative; }
.nav-alert {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #e11d48; color: white;
  font-size: 10px; font-weight: 800; letter-spacing: 0;
  display: inline-grid; place-items: center; line-height: 1;
}
.shell.collapsed .nav-alert { position: absolute; top: 4px; right: 6px; margin: 0; }

.guest-dup {
  display: inline-flex; margin-left: 8px; padding: 1px 6px; border-radius: 4px;
  background: #fde8e8; color: #d92d20; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.guest-filters button.dup { color: #d92d20; border-color: #f3c7c7; background: #fff5f5; }
.guest-filters button.dup.on { background: #d92d20; color: white; border-color: #d92d20; }

.send-desk { display: grid; gap: 14px; width: min(1180px, 100%); margin-inline: auto; }
.send-head, .send-tabs, .send-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.send-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.send-title { grid-column: 2; justify-self: center; }
.send-head-actions { grid-column: 3; justify-self: end; }
.send-title { display: flex; align-items: center; gap: 12px; }
.send-mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: #001564; color: white; box-shadow: 0 1px 2px rgba(0, 21, 100, 0.18);
}
.send-title h1 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; color: #001564; }
.send-title p { margin: 2px 0 0; display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #98a2b3; }
.send-title p i { width: 4px; height: 4px; border-radius: 50%; background: #d0d5dd; }
.send-title strong { color: #001564; font-weight: 900; }
.send-head-actions { display: flex; gap: 8px; flex-wrap: nowrap; }
.send-head-actions button, .send-tools button {
  height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid #d6def0;
  background: white; color: #001564; font-size: 10px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 1px 1px rgba(16, 24, 40, 0.04);
}
.send-go { background: #001564 !important; color: white !important; border-color: #001564 !important; }
.send-go:disabled { opacity: 0.45; }
.send-tabs { border-bottom: 1px solid #e4e7ec; align-items: flex-end; gap: 16px; }
.send-tabs > div { display: flex; gap: 2px; }
.send-tabs button {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-bottom: 2px solid transparent; background: transparent; color: #98a2b3;
  padding: 10px 16px; font-size: 10px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase;
}
.send-tabs button.on { color: #001564; border-bottom-color: #001564; background: rgba(0, 21, 100, 0.05); }
.send-quota {
  margin-bottom: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(0, 21, 100, 0.05); border: 1px solid rgba(0, 21, 100, 0.08);
  color: #001564; font-size: 10px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
}
.send-tools { justify-content: flex-start; gap: 12px; }
.send-tools strong { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #98a2b3; font-weight: 900; }
.send-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.send-filters p { margin: 0 0 8px; display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: #001564; }
.send-filters div div { display: flex; flex-wrap: wrap; gap: 6px; }
.send-filters button {
  border: 1px solid transparent; border-radius: 4px; padding: 4px 8px; background: #f8fafc; color: #667085;
  font-size: 9px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase;
}
.send-filters button.on { background: #001564; color: white; }
.send-note { margin: 0; color: #667085; font-size: 12px; font-weight: 600; }
.send-balance {
  margin-bottom: 8px; padding: 7px 12px; border-radius: 8px; border: 1px solid #d6e4f5;
  background: #f3f8fd; color: #001564; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.send-balance b { font-weight: 900; letter-spacing: 0.06em; }
.uku-panel {
  background: white; border: 1px solid #e7edf5; border-radius: 12px; padding: 18px 18px 22px;
}
.uku-panel h2 { margin: 0; font-size: 12px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: #667085; }
.uku-panel > p { margin: 6px 0 16px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #98a2b3; }
.uku-empty {
  min-height: 280px; border: 1px dashed #d0d5dd; border-radius: 12px;
  display: grid; justify-items: center; align-content: center; gap: 8px; color: #98a2b3; text-align: center; padding: 32px 16px;
}
.uku-empty strong { color: #001564; font-size: 18px; font-weight: 800; letter-spacing: 0; text-transform: none; }
.uku-empty span { color: #667085; font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }

.event-sheet { display: grid; gap: 16px; max-width: 980px; }
.event-sheet header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.event-sheet header p { margin: 0; color: #F57200; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.event-sheet h1 { margin: 4px 0 0; color: #001564; font-size: 34px; letter-spacing: -0.03em; }
.workspace .event-sheet .btn { background: #001564; border-color: #001564; border-radius: 12px; min-height: 42px; }
.event-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.event-facts article, .event-grid section {
  background: white; border: 1px solid #e7edf5; border-radius: 18px; padding: 16px 18px;
  box-shadow: 0 10px 28px rgba(0, 21, 100, 0.05);
}
.event-facts span, .event-field span { display: block; color: #667085; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.event-facts strong { display: block; margin-top: 8px; color: #001564; font-size: 16px; line-height: 1.35; }
.event-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.event-grid h2 { margin: 0 0 12px; padding-left: 10px; border-left: 3px solid #F57200; color: #001564; font-size: 15px; }
.event-field { display: grid; gap: 3px; padding: 10px 0; border-top: 1px solid #eef2f7; }
.event-field strong { color: #102033; font-size: 15px; font-weight: 700; }
.event-grid a { display: inline-block; margin-top: 8px; color: #F57200; font-weight: 700; font-size: 13px; }
@media (max-width: 800px) {
  .event-facts, .event-grid { grid-template-columns: 1fr; }
  .event-sheet header { align-items: flex-start; flex-direction: column; }
}

.create-event { max-width: 920px; margin: 0 auto; display: grid; gap: 14px; }
.create-back { justify-self: start; border: 0; background: transparent; color: #001564; font-weight: 800; padding: 0; min-height: 28px; text-decoration: none; }
.create-hero { display: grid; gap: 4px; padding: 8px 4px 4px; }
.create-hero p { margin: 0; color: #F57200; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.create-event h1 { margin: 0; color: #001564; font-size: 32px; letter-spacing: -0.03em; }
.create-hero span, .create-form-head p { color: #667085; font-size: 15px; }
.create-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.create-grid button {
  display: flex; align-items: center; gap: 14px; text-align: left;
  border: 1px solid #e6ebf5; background: white; border-radius: 18px; padding: 16px 18px; color: #001564;
  box-shadow: 0 8px 24px rgba(0, 21, 100, 0.05); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.create-grid button:hover { border-color: #F57200; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 21, 100, 0.1); }
.create-mark {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto;
  background: linear-gradient(160deg, #001564, #0b2a86); color: white;
}
.create-grid strong { display: block; letter-spacing: 0.08em; text-transform: uppercase; font-size: 14px; }
.create-grid small { display: block; color: #667085; font-size: 13px; margin-top: 3px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.create-form-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.create-form-head p { margin: 6px 0 0; }
.create-card {
  background: white; border: 1px solid #e7edf5; border-radius: 22px; padding: 22px;
  display: grid; gap: 14px; box-shadow: 0 16px 40px rgba(0, 21, 100, 0.06);
}
.create-card h2 {
  margin: 10px 0 0; padding-left: 12px; border-left: 3px solid #F57200;
  font-size: 15px; color: #001564; letter-spacing: -0.01em;
}
.create-note {
  margin: 0; padding: 14px 16px; border-radius: 14px; color: #243056; font-size: 14px; line-height: 1.5;
  background: linear-gradient(90deg, rgba(245, 114, 0, 0.12), rgba(0, 21, 100, 0.05));
}
.when-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.when-choice button {
  border: 1px solid #e6ebf5; background: white; color: #001564; border-radius: 999px;
  min-height: 38px; padding: 0 16px; font-weight: 800;
}
.when-choice button.on { background: #001564; color: white; border-color: #001564; }
.create-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.create-row.three { grid-template-columns: 1fr 1fr 1fr; }
.create-row.four { grid-template-columns: 1.2fr 1fr 0.8fr 1fr; }
.create-card label { display: grid; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #667085; }
.create-card .create-hint { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; color: #98a2b3; line-height: 1.35; }
.create-card input, .create-card select {
  text-transform: none; letter-spacing: 0; font-weight: 600; color: #101828;
  border-radius: 12px; min-height: 44px; border-color: #e4e7ec; background: #fbfcfe;
}
.create-card select, .create-card select option {
  text-transform: uppercase; letter-spacing: 0.04em; font-weight: 800;
}
.create-card input:focus, .create-card select:focus { border-color: #001564; box-shadow: 0 0 0 3px rgba(0, 21, 100, 0.08); }
.create-card a { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 700; color: #F57200; }
.create-submit { display: flex; justify-content: flex-end; margin-top: 6px; }
.workspace .create-submit .btn {
  background: #001564; border-radius: 12px; text-transform: none; letter-spacing: 0;
  min-height: 44px; padding: 0 22px; box-shadow: 0 10px 20px rgba(0, 21, 100, 0.18);
}
@media (max-width: 800px) { .create-grid, .create-row, .create-row.three, .create-row.four { grid-template-columns: 1fr; } }

/* MCHANGO Specific Event Form */
.create-mchango-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 10px 0 40px;
}
.mchango-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}
.mchango-header-row h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: #002b66;
  letter-spacing: -0.02em;
}
.mchango-header-row p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}
.mchango-lang-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.mchango-lang-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #475569;
  text-transform: uppercase;
}
.mchango-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  user-select: none;
}
.mchango-lang-btn input[type="radio"] {
  width: 15px;
  height: 15px;
  min-width: 15px;
  min-height: 15px;
  max-width: 15px;
  max-height: 15px;
  accent-color: #003D73;
  margin: 0;
  cursor: pointer;
  vertical-align: middle;
}
.mchango-card {
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}
.mchango-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #001564;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 24px;
}
.mchango-callout-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.mchango-callout-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #475569;
}
.mchango-section-title {
  margin: 24px 0 14px;
  font-size: 15px;
  font-weight: 800;
  color: #001564;
  letter-spacing: -0.01em;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.mchango-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.harusi-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 820px) {
  .harusi-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .harusi-grid-4 {
    grid-template-columns: 1fr;
  }
}
.harusi-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .harusi-grid-3 {
    grid-template-columns: 1fr;
  }
}
.mchango-full-row {
  margin-bottom: 16px;
}
.mchango-field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 6px;
}
.mchango-inline-radios {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 12px;
  color: #475569;
}
.mchango-inline-radios label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #334155;
  user-select: none;
}
.mchango-inline-radios input[type="radio"] {
  width: 15px;
  height: 15px;
  min-width: 15px;
  min-height: 15px;
  max-width: 15px;
  max-height: 15px;
  accent-color: #003D73;
  margin: 0;
  cursor: pointer;
  vertical-align: middle;
}
.mchango-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  border: 1.5px solid #d0d5dd;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mchango-input:focus {
  outline: none;
  border-color: #003D73;
  box-shadow: 0 0 0 3px rgba(0, 61, 115, 0.12);
}
.mchango-hint {
  display: block;
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 5px;
  font-weight: 500;
}
.mchango-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: #003D73;
  text-decoration: underline;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
}
.mchango-link-btn:hover {
  color: #002b54;
}
.mchango-submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}
.mchango-btn-primary {
  background: #003D73;
  color: white;
  border: 0;
  border-radius: 10px;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 61, 115, 0.22);
  transition: background 0.15s ease, transform 0.1s ease;
}
.mchango-btn-primary:hover:not(:disabled) {
  background: #002b54;
  transform: translateY(-1px);
}
.mchango-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
@media (max-width: 768px) {
  .mchango-grid-2 { grid-template-columns: 1fr; }
  .mchango-header-row { flex-direction: column; align-items: flex-start; }
  .mchango-card { padding: 18px 16px; }
}
.fund { display: grid; gap: 14px; max-width: 1080px; }
.fund-public { min-height: 100vh; padding: 28px 20px 64px; margin: 0 auto; background: #f5f7fb; }
.fund-title em.public { background: #101828; }
.fund-head, .fund-switch, .fund-link, .fund-tools, .fund-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fund-title { display: flex; align-items: center; gap: 12px; }
.fund-title h1, .fund-public h1 { margin: 0; color: #001564; font-size: 22px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.fund-title em { display: inline-block; margin-left: 8px; padding: 2px 6px; border-radius: 4px; background: #001564; color: white; font-style: normal; font-size: 9px; letter-spacing: 0.08em; vertical-align: middle; }
.fund-title p, .fund-public p { margin: 4px 0 0; color: #667085; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.fund-head-actions, .fund-actions, .fund-lang { display: flex; gap: 8px; align-items: center; }
.fund-head-actions button, .fund-actions button, .fund-lang button, .fund-link select, .fund-tools select {
  height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid #d6def0; background: white; color: #001564;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.fund-switch { align-items: center; }
.fund-switch > div:first-child { display: flex; gap: 8px; }
.fund-switch > div:first-child button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #e4e7ec; background: white; color: #667085; font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.fund-switch > div:first-child button.on { background: #001564; color: white; border-color: #001564; }
.fund-lang span { color: #98a2b3; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.fund-lang button.on { background: #001564; color: white; border-color: #001564; }
.fund-link, .fund-progress, .fund-plan article { background: white; border: 1px solid #e7edf5; border-radius: 12px; padding: 14px 16px; }
.fund-link h2, .fund-plan h2 { margin: 0; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #001564; }
.fund-link p { margin: 4px 0 0; color: #98a2b3; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.fund-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fund-stats article, .fund-stats button { text-align: left; background: white; border: 1px solid #e7edf5; border-radius: 12px; padding: 14px 16px; color: #667085; }
.fund-stats span, .fund-progress span { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #98a2b3; }
.fund-stats strong { display: block; margin-top: 8px; color: #001564; font-size: 22px; }
.fund-stats small { font-size: 12px; color: #98a2b3; }
.fund-progress { display: grid; gap: 8px; }
.fund-progress > div { display: flex; justify-content: space-between; gap: 12px; color: #667085; font-size: 11px; font-weight: 800; }
.fund-progress b { color: #001564; }
.fund-bar { height: 8px; border-radius: 99px; background: #eef2f6; overflow: hidden; }
.fund-bar i { display: block; height: 100%; background: #001564; }
.fund-tools { justify-content: stretch; }
.fund-tools .guest-search { max-width: none; }
.fund-green { background: #12b76a !important; color: white !important; border-color: #12b76a !important; }
.fund-edit { height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid #d6def0; background: white; color: #001564; font-size: 11px; font-weight: 800; }
.fund-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.fund-cats button { border: 1px solid #e4e7ec; background: white; color: #667085; border-radius: 8px; padding: 6px 10px; font-size: 11px; font-weight: 800; }
.fund-cats button.on { background: #001564; color: white; border-color: #001564; }
.fund-plan { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fund-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fund-plan-head em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #F57200; background: #fff4eb; border-radius: 999px; padding: 4px 8px; }
.fund-plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.fund-plan-grid div { background: #f7f9fc; border-radius: 10px; padding: 10px 12px; }
.fund-expense-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: white; border: 1px solid #e7edf5; border-radius: 16px; padding: 10px; box-shadow: 0 8px 24px rgba(0, 21, 100, 0.04); }
.fund-expense-bar .guest-search { flex: 1; min-width: 180px; max-width: none; background: #f7f9fc; border-color: transparent; }
.fund-expense-bar select { min-height: 42px; border: 1px solid #e4eaf0; border-radius: 12px; padding: 0 12px; background: white; color: #344054; font-weight: 700; }
.fund-add {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 16px; border: 0; border-radius: 12px;
  background: #001564; color: white; font-weight: 800; letter-spacing: 0; text-transform: none;
  box-shadow: 0 8px 18px rgba(0, 21, 100, 0.16);
}
.fund-add span { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 16px; line-height: 1; }
.fund-add:hover { background: #0b2a86; }
.fund-add:disabled { opacity: .55; }
.fund-expense-bar .fund-add { margin-left: auto; }
.fund-empty {
  display: grid; justify-items: center; align-content: center; gap: 8px; text-align: center;
  min-height: 280px; background: white; border: 1px solid #e7edf5; border-radius: 18px; padding: 48px 16px;
  box-shadow: 0 10px 28px rgba(0, 21, 100, 0.05);
}
.fund-empty svg { color: #001564; background: #eef3ff; border-radius: 16px; padding: 12px; width: 52px; height: 52px; box-sizing: border-box; }
.fund-empty strong { color: #001564; font-size: 18px; font-weight: 800; }
.fund-empty span { max-width: 360px; color: #667085; font-size: 14px; font-weight: 500; }
.fund-empty .fund-add { margin-top: 8px; }
.fund-expense-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fund-expense-form .wide, .fund-expense-actions { grid-column: 1 / -1; }
.fund-expense-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.fund-expense-modal .modal-head h2 { color: #001564; font-size: 20px; letter-spacing: -0.02em; text-transform: none; }
@media (max-width: 700px) { .fund-expense-form { grid-template-columns: 1fr; } .fund-expense-bar .fund-add { margin-left: 0; } }
.wa-config { background: white; border: 1px solid #e6edf5; border-radius: 16px; padding: 18px; }
.wa-config h2 { margin: 0; color: #001564; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.wa-config > p { margin: 16px 0 8px; color: #98a2b3; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.wa-sources { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wa-sources button { position: relative; text-align: left; background: white; border: 1px solid #e4eaf0; border-radius: 14px; padding: 16px; min-height: 108px; }
.wa-sources button.on { border-color: #001564; background: #f4f7ff; box-shadow: inset 0 0 0 1px #001564; }
.wa-sources strong { display: block; color: #001564; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.wa-sources span { display: block; margin-top: 4px; color: #667789; font-size: 13px; }
.wa-sources b { display: block; margin-top: 10px; color: #F57200; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.wa-sources em { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: #001564; color: white; display: grid; place-items: center; font-style: normal; font-size: 12px; }
.wa-alert { margin-top: 14px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 12px 14px; }
.wa-alert strong { display: block; color: #c2410c; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.wa-alert span { display: block; margin-top: 4px; color: #9a3412; font-size: 14px; }
.wa-sub-kicker { margin: -4px 0 12px; color: #98a2b3; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 800; }
.wa-sub-note { background: #f4f7ff; border: 1px solid #d9e2f2; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.wa-sub-note strong { display: block; color: #001564; }
.wa-sub-note span { display: block; margin-top: 4px; color: #44566c; font-size: 13px; }
.wa-sub-fee { text-align: center; border: 1px solid #e6edf5; border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.wa-sub-fee span { display: block; color: #98a2b3; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.wa-sub-fee strong { display: block; margin-top: 6px; color: #001564; font-size: 32px; }
.wa-sub-fee small { font-size: 14px; color: #667789; }
.wa-promo { display: flex; gap: 8px; }
.wa-promo input { flex: 1; }
.wa-promo button { border: 0; border-radius: 10px; background: #e8eef8; color: #001564; min-height: 42px; padding: 0 14px; font-weight: 800; }
.wa-provider-label { margin: 12px 0 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #98a2b3; }
.wa-providers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.wa-providers button { border: 1px solid #e4eaf0; background: white; border-radius: 12px; min-height: 64px; font-weight: 800; }
.wa-providers button.on { border-color: #001564; box-shadow: inset 0 0 0 1px #001564; }
.wa-sub-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.cards-public { max-width: 1100px; margin: 0 auto; }
.cards-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: white; border: 1px solid #e6edf5; border-radius: 16px; padding: 14px 16px; }
.cards-public .cards-bar h1 { margin: 0; font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; color: #001564; }
.cards-public .cards-bar p { margin: 4px 0 0; color: #667789; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.cards-bar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cards-bar-actions input { min-height: 40px; border: 1px solid #e4eaf0; border-radius: 999px; padding: 0 14px; min-width: 220px; }
.cards-bar-actions button { border: 1px solid #d0d5dd; background: white; color: #001564; border-radius: 999px; min-height: 40px; padding: 0 14px; font-weight: 800; }
.cards-wa { background: #12b76a !important; border-color: #12b76a !important; color: white !important; }
.cards-count { margin: 14px 4px; color: #667789; font-size: 13px; }
.cards-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cards-gallery li { background: white; border: 1px solid #e6edf5; border-radius: 16px; overflow: hidden; }
.cards-gallery img, .cards-pending { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #f4f7fb; display: grid; place-items: center; color: #98a2b3; }
.cards-gallery div { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 10px 12px; }
.cards-gallery strong { color: #122033; font-size: 13px; }
.cards-gallery span { color: #001564; background: #eef3ff; border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 800; }
.cards-public footer { margin-top: 28px; text-align: center; color: #98a2b3; font-size: 13px; }
@media (max-width: 800px) { .wa-sources, .wa-providers { grid-template-columns: 1fr 1fr; } }
.fund-plan p { margin: 10px 0 0; color: #98a2b3; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.fund-plan strong { display: block; color: #001564; font-size: 20px; }
.fund-plan b { display: block; margin-top: 10px; color: #001564; }
.fund-modal-note { margin: 0 0 12px; color: #667085; font-size: 12px; }
.fund-preview { white-space: pre-wrap; background: #f8fafc; border: 1px solid #e7edf5; border-radius: 10px; padding: 12px; color: #001564; font-size: 12px; max-height: 240px; overflow: auto; }
.fund-check { display: flex; gap: 8px; align-items: center; margin: 8px 0; color: #344054; font-size: 13px; }
.fund-file { position: relative; overflow: hidden; }
.fund-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fund-history { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.fund-history li { display: flex; justify-content: space-between; gap: 12px; }
.fund-public-form { background: white; border: 1px solid #e7edf5; border-radius: 12px; padding: 16px; }
@media (max-width: 800px) { .fund-stats, .fund-plan { grid-template-columns: 1fr; } }
.send-card { background: white; border: 1px solid #e7edf5; border-radius: 12px; overflow: hidden; }
.send-table { width: 100%; border-collapse: collapse; background: white; }
.send-table th { text-align: left; padding: 12px 16px; font-size: 10px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: #001564; border-bottom: 1px solid #eef2f6; }
.send-table td { padding: 10px 16px; border-bottom: 1px solid #f2f4f7; font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: #001564; vertical-align: middle; }
.send-table tr:last-child td { border-bottom: 0; }
.send-table tbody tr:hover { background: #fafbfd; }
.send-phone { font-family: ui-monospace, SFMono-Regular, monospace; color: #667085; letter-spacing: 0; font-weight: 700; font-size: 11px; text-transform: none; }
.send-status { display: grid; gap: 2px; justify-items: start; }
.send-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 4px; background: #f2f4f7; color: #667085; font-size: 9px; font-weight: 900; letter-spacing: 0.08em; box-shadow: 0 1px 1px rgba(16, 24, 40, 0.04); }
.send-pill { text-transform: uppercase; }
.send-pill.delivered, .send-pill.read, .send-pill.sent, .send-pill.accepted { background: #001564; color: white; }
.send-pill.failed, .send-pill.not_in_wa { background: #d92d20; color: white; }
.send-live { margin: 0; color: #001564; font-size: 13px; font-weight: 800; }
.send-status small { color: #98a2b3; font-size: 8px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding-left: 2px; }
.send-table td:last-child { color: #98a2b3; font-size: 9px; font-weight: 800; letter-spacing: 0.04em; }
.send-empty { text-align: center; color: #667085; padding: 28px 16px !important; text-transform: none; letter-spacing: 0; font-weight: 600; }
@media (max-width: 800px) {
  .send-filters { grid-template-columns: 1fr; }
  .send-head { grid-template-columns: 1fr; justify-items: center; }
  .send-title, .send-head-actions { grid-column: auto; justify-self: center; }
}
.send-confirm p { margin: 0; color: #344054; font-size: 14px; line-height: 1.55; font-weight: 500; letter-spacing: 0; text-transform: none; }
.send-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.send-confirm-actions .send-go { height: 38px; padding: 0 16px; border-radius: 10px; }

.account { display: grid; gap: 16px; max-width: 880px; }
.account-hero p { margin: 0; color: #F57200; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.account-hero h1 { margin: 4px 0 0; color: #001564; font-size: 34px; letter-spacing: -0.03em; }
.account-hero span { display: block; margin-top: 6px; color: #667085; font-size: 15px; }
.account-id {
  display: flex; align-items: center; gap: 14px;
  background: white; border: 1px solid #e7edf5; border-radius: 18px; padding: 16px 18px;
  box-shadow: 0 10px 28px rgba(0, 21, 100, 0.05);
}
.account-avatar {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: 0 0 auto;
  background: linear-gradient(160deg, #001564, #0b2a86); color: white; font-size: 22px; font-weight: 800;
}
.account-id strong { display: block; color: #001564; font-size: 18px; }
.account-id small { display: block; margin-top: 2px; color: #667085; font-size: 13px; }
.account-id em {
  margin-left: auto; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: #667085; background: #f4f6fb; border-radius: 999px; padding: 6px 10px;
}
.account-id em.on { color: #027a48; background: #ecfdf3; }
.account-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; background: white; border: 1px solid #e7edf5; border-radius: 16px; padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 21, 100, 0.04);
}
.account-tabs button {
  display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #667085;
  border-radius: 12px; min-height: 42px; padding: 0 14px; font-weight: 800; letter-spacing: 0.04em;
}
.account-tabs button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-tabs button.on { background: #001564; color: white; }
.account-card {
  background: white; border: 1px solid #e7edf5; border-radius: 18px; padding: 18px 20px;
  box-shadow: 0 10px 28px rgba(0, 21, 100, 0.05);
}
.account-card h2 { margin: 0 0 14px; padding-left: 10px; border-left: 3px solid #F57200; color: #001564; font-size: 16px; letter-spacing: 0; text-transform: none; }
.account-fields { display: grid; gap: 0; margin-bottom: 16px; }
.account-fields div { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid #eef2f7; }
.account-fields span, .account-stats span { color: #667085; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.account-fields strong { color: #102033; font-size: 16px; }
.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.account-stats article { background: #f7f9fc; border-radius: 14px; padding: 14px; }
.account-stats strong { display: block; margin-top: 8px; color: #001564; font-size: 16px; text-transform: capitalize; }
.account-card > p { margin: 14px 0 0; color: #667085; font-size: 14px; }
.workspace .account .btn { background: #001564; border-color: #001564; border-radius: 12px; min-height: 42px; }
.workspace .account .wa-sub .btn { background: #F57200; border-color: #F57200; }
.account .wa-sources button { border-radius: 16px; box-shadow: 0 8px 20px rgba(0, 21, 100, 0.04); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.account .wa-sources button:hover { transform: translateY(-2px); border-color: #F57200; }
@media (max-width: 800px) {
  .account-stats { grid-template-columns: 1fr; }
  .account-hero h1 { font-size: 28px; }
}

.clients-page { display: grid; gap: 18px; }
.clients-head h1 { margin: 4px 0 0; color: #101828; font-size: 32px; letter-spacing: -0.04em; }
.clients-head p { margin: 8px 0 0; max-width: 560px; color: #667085; }
.clients-metrics {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: white; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.clients-metrics article { padding: 18px 20px; transition: background 0.15s ease; }
.clients-metrics article + article { border-left: 1px solid #f1f5f9; }
.clients-metrics article:hover { background: #fafafa; }
.clients-metrics span { color: #64748b; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; display: flex; align-items: center; gap: 6px; }
.clients-metrics strong { display: block; margin-top: 8px; color: #0f172a; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.clients-sheet { background: white; border: 1px solid #e2e8f0; border-radius: 16px; overflow: visible; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); }
.clients-toolbar, .clients-sheet-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 20px; border-bottom: 1px solid #f1f5f9;
}
.clients-sheet-head h2 { margin: 0; color: #101828; font-size: 18px; font-weight: 800; }
.clients-sheet-head p { margin: 4px 0 0; color: #667085; font-size: 13px; }
.clients-sheet-head > span {
  min-width: 32px; height: 32px; padding: 0 12px; border-radius: 999px;
  display: grid; place-items: center; background: #f1f5f9; color: #003D73; font-weight: 800; font-size: 13px;
}
.clients-search { display: block; flex: 1; min-width: 220px; max-width: 360px; margin: 0; }
.clients-search input { min-height: 40px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 13px; }
.clients-search input:focus { background: #ffffff; border-color: #003D73; }
.clients-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.clients-filters button {
  border: 1px solid transparent; background: #f1f5f9; color: #475569; border-radius: 8px;
  min-height: 36px; padding: 0 14px; font-weight: 700; font-size: 13px; cursor: pointer;
  transition: all 0.15s ease;
}
.clients-filters button:hover { background: #e2e8f0; color: #0f172a; }
.clients-filters button.on { background: #003D73; color: white; border-color: #003D73; box-shadow: 0 2px 4px rgba(0, 61, 115, 0.2); }
.clients-empty { margin: 0; padding: 36px 20px; color: #64748b; text-align: center; font-size: 14px; }
.impersonation-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: 10px 18px; background: #001564; color: #fff;
}
.impersonation-bar p { margin: 0; font-size: 14px; }
.impersonation-bar strong { color: #fff; }
.impersonation-bar button {
  border: 0; border-radius: 999px; min-height: 34px; padding: 0 14px;
  background: #f57200; color: #fff; font-weight: 700; cursor: pointer;
  transition: all 0.15s ease;
}
.impersonation-bar button:hover { filter: brightness(1.08); }
.clients-list-head, .client-row {
  display: grid; grid-template-columns: minmax(200px, 1.4fr) minmax(130px, 1fr) 110px 90px 90px 145px;
  gap: 12px; align-items: center; padding: 14px 20px;
}
.clients-list-head { color: #94a3b8; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; background: #f8fafc; border-bottom: 1px solid #f1f5f9; }
.client-row { border-top: 1px solid #f1f5f9; transition: background 0.15s ease; position: relative; }
.client-row:hover { background: #fbfcfe; }
.client-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.client-person strong, .client-person small { display: block; }
.client-person strong { color: #0f172a; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-person small { color: #64748b; font-size: 12px; margin-top: 2px; }
.client-avatar {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: linear-gradient(135deg, #002244 0%, #003D73 100%);
  color: white; font-weight: 800; font-size: 13px; box-shadow: 0 2px 5px rgba(0, 61, 115, 0.18);
}
.client-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.client-figure { color: #0f172a; font-weight: 700; font-size: 13px; }
.badge-cards {
  display: inline-flex; align-items: center; padding: 4px 10px;
  background: #eff6ff; color: #1d4ed8; border-radius: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: -0.01em;
}
.badge-sms {
  display: inline-flex; align-items: center; padding: 4px 10px;
  background: #fff7ed; color: #ea580c; border-radius: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: -0.01em;
}

/* Modern Action Menu Dropdown */
.client-actions-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.btn-recharge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  background: #003D73;
  color: #ffffff !important;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 61, 115, 0.15);
  white-space: nowrap;
  text-decoration: none;
}
.btn-recharge-pill:hover {
  background: #002b52;
  box-shadow: 0 3px 6px rgba(0, 61, 115, 0.25);
  transform: translateY(-1px);
}
.btn-kebab-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  transition: all 0.15s ease;
  padding: 0;
}
.btn-kebab-menu:hover, .btn-kebab-menu.active {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}
.client-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  min-width: 195px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.16), 0 4px 10px -2px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: menuFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes menuFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.client-dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  box-sizing: border-box;
}
.client-dropdown-item:hover {
  background: #f8fafc;
  color: #0f172a;
}
.client-dropdown-item .dropdown-icon {
  font-size: 14px;
  width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.client-dropdown-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 4px 0;
}
.client-dropdown-item.danger {
  color: #dc2626;
}
.client-dropdown-item.danger:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.client-tags .pill,
.clients-pay .pill {
  display: inline-flex; align-items: center; border-radius: 6px; padding: 3px 8px;
  background: #f1f5f9; color: #475569; font-size: 11px; font-weight: 700; text-transform: capitalize;
}
.client-tags .pill.active, .client-tags .pill.completed,
.clients-pay .pill.active, .clients-pay .pill.completed { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.client-tags .pill.pending, .clients-pay .pill.pending { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.client-tags .pill.failed, .clients-pay .pill.failed { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.client-tags .pill.organizer, .clients-pay .pill.organizer { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; text-transform: none; }
.client-tags .pill.reseller, .clients-pay .pill.reseller { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; text-transform: none; }
.client-tags .pill.method, .clients-pay .pill.method { text-transform: none; }
.clients-pay-wrap { overflow-x: auto; }
.clients-pay { width: 100%; border-collapse: collapse; }
.clients-pay th, .clients-pay td { padding: 12px 16px; text-align: left; border-top: 1px solid #f2f4f7; }
.clients-pay th { color: #98a2b3; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border-top: 0; }
.clients-pay td { color: #101828; }
.clients-pay-form { display: grid; gap: 14px; }
.clients-pay-form .client-person { padding-bottom: 4px; }
.clients-quote {
  margin: -4px 0 0; padding: 10px 12px; border-radius: 12px;
  background: #f8fafc; color: #001564; font-weight: 700;
}
.clients-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.clients-methods button {
  border: 1px solid #e4e7ec; background: white; color: #344054; border-radius: 999px;
  min-height: 36px; padding: 0 12px; font-weight: 700; cursor: pointer;
}
.clients-methods button.on { background: #001564; color: white; border-color: #001564; }
@media (max-width: 900px) {
  .clients-metrics { grid-template-columns: 1fr 1fr; }
  .clients-metrics article:nth-child(odd) { border-left: 0; }
  .clients-metrics article:nth-child(n + 3) { border-top: 1px solid #eef2f6; }
  .clients-list-head { display: none; }
  .client-row { grid-template-columns: 1fr auto; padding: 14px; }
  .client-tags, .client-figure, .client-cards, .client-sms, .client-actions-cell { grid-column: 1 / -1; }
  .client-actions-cell { justify-content: flex-start; }
  .client-dropdown-menu { right: auto; left: 0; }
}
@media (max-width: 640px) {
  .clients-metrics { grid-template-columns: 1fr; }
  .clients-metrics article + article { border-left: 0; border-top: 1px solid #eef2f6; }
  .clients-pay thead { display: none; }
  .clients-pay, .clients-pay tbody, .clients-pay tr, .clients-pay td { display: block; width: 100%; }
  .clients-pay tr { padding: 8px 0; border-top: 1px solid #f2f4f7; }
  .clients-pay td { display: flex; justify-content: space-between; gap: 12px; border-top: 0; padding: 6px 16px; }
  .clients-pay td::before { content: attr(data-label); color: #98a2b3; font-weight: 700; }
}

.partner-desk h2 { margin-top: 8px; }
.partner-colors, .partner-rates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.partner-rates small { display: block; color: #667085; font-size: 12px; margin-top: 4px; }
.partner-logo { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; background: #f8fafc; }

/* ==========================================================================
   Bulk SMS Mobile Phone Preview Mockup
   ========================================================================== */
.sms-preview-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .sms-preview-wrap {
    grid-template-columns: 1fr;
  }
}

.sms-editor-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.sms-char-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #64748b;
  margin-top: -10px;
}

.sms-tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sms-tag-btn {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sms-tag-btn:hover {
  background: #dbeafe;
  color: #1e40af;
}

.sms-presets-grid {
  display: grid;
  gap: 8px;
}

.sms-preset-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  color: #334155;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sms-preset-chip:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* Smartphone realistic frame */
.smartphone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.smartphone-frame {
  width: 340px;
  height: 640px;
  background: #1e293b;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), 0 0 0 2px #334155;
  position: relative;
  box-sizing: border-box;
}

.smartphone-inner {
  width: 100%;
  height: 100%;
  background: #f8fafc;
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.smartphone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 20px;
  background: #1e293b;
  border-radius: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.smartphone-speaker {
  width: 36px;
  height: 3px;
  background: #475569;
  border-radius: 2px;
}

.smartphone-camera {
  width: 7px;
  height: 7px;
  background: #0f172a;
  border-radius: 50%;
  border: 1px solid #334155;
}

.smartphone-status-bar {
  height: 36px;
  padding: 8px 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  z-index: 10;
}

.smartphone-app-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.smartphone-sender-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.smartphone-sender-info {
  flex: 1;
}

.smartphone-sender-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 4px;
}

.smartphone-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  background: #0284c7;
  color: white;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
}

.smartphone-sender-sub {
  font-size: 10.5px;
  color: #64748b;
}

.smartphone-chat-body {
  flex: 1;
  padding: 14px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f1f5f9;
}

.smartphone-date-pill {
  align-self: center;
  background: #e2e8f0;
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
}

.sms-bubble-in {
  max-width: 90%;
  background: #ffffff;
  color: #0f172a;
  padding: 10px 12px;
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
  white-space: pre-wrap;
}

.sms-bubble-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #94a3b8;
  margin-top: 4px;
}

.smartphone-delivery-status {
  font-size: 10px;
  color: #64748b;
  text-align: center;
  margin-top: 4px;
}

.smartphone-bottom-bar {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.smartphone-fake-input {
  flex: 1;
  background: #f1f5f9;
  border-radius: 20px;
  padding: 7px 12px;
  font-size: 12px;
  color: #94a3b8;
}

.smartphone-send-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}
.partner-steps { margin: 0 0 16px; padding-left: 18px; color: #344054; }
.partner-steps li + li { margin-top: 6px; }
.check-row { display: flex; align-items: center; gap: 8px; }
.portal-card { display: grid; gap: 12px; }
.partner-sale { margin-top: 4px; padding-top: 14px; border-top: 1px solid #eef2f7; display: grid; gap: 12px; }
.partner-page { display: grid; gap: 16px; }
.partner-page .guide-hero ul { grid-template-columns: repeat(4, 1fr); }
.partner-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.partner-tabs button {
  border: 1px solid #e7edf5; background: white; color: #001564; border-radius: 999px;
  min-height: 38px; padding: 0 14px; font-weight: 800; cursor: pointer;
}
.partner-tabs button.on { background: #001564; color: white; border-color: #001564; }
.partner-panel {
  display: grid; gap: 12px; background: white; border: 1px solid #e7edf5; border-radius: 18px; padding: 18px 20px;
  box-shadow: 0 10px 28px rgba(0, 21, 100, 0.04);
}
.partner-panel h2 { margin: 0; color: #001564; font-size: 18px; letter-spacing: -0.02em; }
.partner-panel > p, .partner-sale > p { margin: 0; color: #667085; font-size: 14px; line-height: 1.5; }
.partner-panel a { color: #f57200; font-weight: 800; }
.partner-pay { display: grid; gap: 12px; max-width: 420px; }
.partner-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.partner-page .btn { background: #001564; color: white; border-color: #001564; border-radius: 12px; }
.partner-page .btn:hover { background: #003D73; }
.partner-page .btn-ghost { background: white; color: #001564; border: 1px solid #d0d5dd; border-radius: 12px; }
.partner-page input[type="color"] { width: 72px; height: 42px; padding: 4px; }
.partner-page table .btn { min-height: 34px; padding: 0 12px; }
@media (max-width: 800px) {
  .partner-page .guide-hero ul { grid-template-columns: 1fr 1fr; }
}

.guide-page { display: grid; gap: 22px; }
.guide-hero {
  background: linear-gradient(145deg, #001564 0%, #003D73 70%);
  color: white; border-radius: 20px; padding: 28px 28px 22px;
  box-shadow: 0 16px 40px rgba(0, 21, 100, 0.16);
}
.guide-hero p { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #f57200; }
.guide-hero h1 { margin: 8px 0 0; font-size: 32px; letter-spacing: -0.03em; }
.guide-hero > span { display: block; max-width: 46rem; margin-top: 8px; color: rgba(255,255,255,0.82); font-size: 15px; line-height: 1.5; }
.guide-hero ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.guide-hero li { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 12px 14px; }
.guide-hero li strong { display: block; font-size: 16px; }
.guide-hero li span { display: block; margin-top: 2px; color: rgba(255,255,255,0.72); font-size: 12px; }
.guide-block h2 { margin: 0 0 6px; color: #001564; font-size: 18px; letter-spacing: -0.02em; }
.guide-block-head p { margin: 0 0 14px; color: #667085; font-size: 14px; }
.guide-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.guide-path li { display: flex; gap: 12px; background: white; border: 1px solid #e7edf5; border-radius: 16px; padding: 14px; }
.guide-path li > span {
  flex: 0 0 28px; height: 28px; border-radius: 50%; background: #001564; color: white;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
}
.guide-path a { color: #001564; font-weight: 800; text-decoration: none; }
.guide-path a:hover { color: #f57200; }
.guide-path p { margin: 4px 0 0; color: #667085; font-size: 13px; line-height: 1.45; }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.guide-card {
  display: grid; gap: 4px; background: white; border: 1px solid #e7edf5; border-radius: 16px;
  padding: 14px 16px; text-decoration: none; color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.guide-card:hover { border-color: #f57200; box-shadow: 0 8px 22px rgba(0, 21, 100, 0.06); }
.guide-card strong { color: #001564; font-size: 15px; }
.guide-card span { color: #667085; font-size: 13px; line-height: 1.45; }
.guide-owner {
  display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap;
  background: white; border: 1px solid #e7edf5; border-left: 4px solid #f57200; border-radius: 16px; padding: 18px 20px;
}
.guide-owner p { margin: 0; color: #f57200; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.guide-owner h2 { margin: 4px 0 0; color: #001564; font-size: 18px; }
.guide-owner span { display: block; max-width: 40rem; margin-top: 6px; color: #667085; font-size: 14px; line-height: 1.5; }
.guide-owner .btn { background: #001564; color: white; border-radius: 12px; }
@media (max-width: 800px) {
  .guide-hero ul, .guide-path, .guide-grid { grid-template-columns: 1fr; }
  .guide-hero h1 { font-size: 26px; }
}
@media (max-width: 640px) {
  .partner-colors, .partner-rates { grid-template-columns: 1fr; }
}

.docs { background: #f4f7fb; padding-bottom: 8px; }
.docs-tools {
  width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding-top: 28px;
  display: flex; align-items: center; gap: 12px;
}
.docs-search { position: relative; flex: 1; }
.docs-search input {
  width: 100%; height: 40px; border: 1px solid #e5e7eb; border-radius: 12px;
  background: #f8fafc; padding: 0 14px;
}
.docs-search input:focus { outline: 2px solid #001564; outline-offset: 1px; background: white; }
.docs-hits {
  position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0;
  background: white; border: 1px solid #e7edf5; border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 21, 100, 0.12); padding: 6px; display: grid;
}
.docs-hits a, .docs-hits p { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; text-decoration: none; }
.docs-hits a:hover { background: #f8fafc; }
.docs-hits strong { color: #001564; font-size: 14px; }
.docs-hits span, .docs-hits p { color: #64748b; font-size: 12px; margin: 0; }
.docs-menu-btn {
  display: none; border: 1px solid #e5e7eb; background: white; border-radius: 10px;
  min-height: 36px; padding: 0 12px; font-weight: 700; color: #001564;
}
.docs-frame {
  width: min(1240px, calc(100% - 40px)); margin: 0 auto;
  display: grid; grid-template-columns: 232px minmax(0, 1fr) 220px;
  gap: 28px; align-items: start; padding: 18px 0 72px;
}
.docs-side, .docs-toc { position: sticky; top: 96px; }
.docs-side p, .docs-toc p {
  margin: 0 0 10px; color: #94a3b8; font-size: 11px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.docs-side nav, .docs-toc nav { display: grid; }
.docs-side a {
  color: #475569; text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 9px 12px; border-radius: 10px; border-left: 3px solid transparent;
}
.docs-side a.active { background: white; color: #001564; border-left-color: #f57200; box-shadow: 0 8px 20px rgba(0, 21, 100, 0.05); }
.docs-article {
  background: white; border: 1px solid #e7edf5; border-radius: 22px;
  padding: 36px 40px 28px; min-width: 0;
  box-shadow: 0 16px 40px rgba(0, 21, 100, 0.04);
}
.docs-eyebrow { margin: 0; color: #f57200; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.docs-article h1 { margin: 8px 0 0; color: #001564; font-size: 40px; line-height: 1.12; letter-spacing: -0.04em; }
.docs-lede { margin: 14px 0 0; color: #64748b; font-size: 18px; line-height: 1.6; }
.docs-article section { margin-top: 36px; scroll-margin-top: 108px; }
.docs-article h2 { margin: 0 0 8px; color: #001564; font-size: 24px; letter-spacing: -0.03em; }
.docs-article section > p, .docs-article li { color: #334155; font-size: 16px; line-height: 1.7; }
.docs-article section > p { margin: 10px 0; }
.docs-article ul, .docs-article ol { margin: 8px 0 8px 1.25rem; padding: 0; }
.docs-article li + li { margin-top: 6px; }
.docs-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #f4f7fb; border: 1px solid #e7edf5; border-radius: 12px;
  padding: 12px 14px; color: #001564; font-size: 14px; overflow-x: auto;
}
.docs-callout { margin: 14px 0; padding: 14px 16px; border-radius: 14px; border: 1px solid transparent; }
.docs-callout p { margin: 0; }
.docs-callout.info { background: #eef3ff; border-color: #d9e4ff; }
.docs-callout.note { background: #fff7ed; border-color: #ffedd5; }
.docs-callout.important { background: #fef2f2; border-color: #fecaca; }
.docs-table-wrap { overflow-x: auto; margin: 14px 0 6px; }
.docs-article table { width: 100%; border-collapse: collapse; font-size: 14px; }
.docs-article th { text-align: left; background: #001564; color: white; font-weight: 700; padding: 11px 12px; }
.docs-article th:first-child { border-radius: 12px 0 0 0; }
.docs-article th:last-child { border-radius: 0 12px 0 0; }
.docs-article td { padding: 11px 12px; border-bottom: 1px solid #e7edf5; vertical-align: top; }
.docs-article tbody tr:nth-child(even) td { background: #f8fafc; }
.docs-faq details { border-bottom: 1px solid #e7edf5; padding: 12px 0; }
.docs-faq summary { cursor: pointer; color: #001564; font-weight: 700; }
.docs-faq details p { margin: 8px 0 0; }
.docs-checks { list-style: none; margin-left: 0; display: grid; gap: 8px; }
.docs-checks li { background: #f0fdf4; border-radius: 12px; padding: 10px 12px; }
.docs-checks li::before { content: "✓  "; color: #15803d; font-weight: 800; }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.docs-pager a {
  display: grid; gap: 4px; text-decoration: none; border: 1px solid #e7edf5;
  border-radius: 16px; padding: 14px 16px; background: #f8fafc;
}
.docs-pager a:hover { border-color: #f57200; }
.docs-pager a.next { text-align: right; }
.docs-pager span { color: #94a3b8; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.docs-pager strong { color: #001564; font-size: 16px; }
.docs-toc a {
  display: block; text-decoration: none; color: #64748b; font-size: 13px; line-height: 1.4;
  padding: 7px 0 7px 12px; border-left: 2px solid #e5e7eb;
}
.docs-toc a.on { color: #001564; border-left-color: #f57200; font-weight: 700; }
.docs-toc-mobile { display: none; }
@media (max-width: 980px) {
  .docs-tools, .docs-frame { width: min(1240px, calc(100% - 28px)); }
  .docs-frame { grid-template-columns: 1fr; }
  .docs-toc { display: none; }
  .docs-side { display: none; position: static; background: white; border: 1px solid #e7edf5; border-radius: 16px; padding: 14px; }
  .docs-side.open { display: block; }
  .docs-toc-mobile { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
  .docs-toc-mobile a {
    text-decoration: none; color: #001564; background: #f4f7fb; border-radius: 999px;
    padding: 6px 10px; font-size: 12px; font-weight: 700;
  }
  .docs-menu-btn { display: inline-flex; align-items: center; flex: none; }
  .docs-article { padding: 24px 18px; }
  .docs-article h1 { font-size: 30px; }
  .docs-lede { font-size: 16px; }
  .docs-pager { grid-template-columns: 1fr; }
  .docs-pager a.next { text-align: left; }
}



