/* ============ Cheervite brand system v2 ============ */
:root {
  --plum: #3B1F45;
  --plum-deep: #2A1630;
  --rose: #D81B60;
  --rose-dark: #B01450;
  --marigold: #F2A93B;
  --blush: #FBEDF2;
  --cream: #FFF9F5;
  --ink: #2A1630;
  --muted: #77687F;
  --line: #EDE2E8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(59, 31, 69, .07), 0 1px 2px rgba(59, 31, 69, .05);
  --shadow: 0 6px 24px -6px rgba(59, 31, 69, .13);
  --shadow-lg: 0 24px 60px -16px rgba(59, 31, 69, .25);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-head); color: var(--plum); line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 1.13rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--rose); text-decoration: none; }
a:hover { text-decoration: underline; }
.ic { vertical-align: -.22em; flex: 0 0 auto; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .98rem var(--font-body);
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform .12s ease, box-shadow .12s ease, background .12s, border-color .12s;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--rose); color: #fff; box-shadow: 0 6px 18px -4px rgba(216, 27, 96, .45); }
.btn-primary:hover { background: var(--rose-dark); box-shadow: 0 8px 22px -4px rgba(216, 27, 96, .55); }
.btn-secondary { background: #fff; color: var(--plum); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--plum); }
.btn-dark { background: var(--plum); color: #fff; }
.btn-dark:hover { background: var(--plum-deep); }
.btn-ghost { background: transparent; color: var(--rose); padding: 13px 16px; }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.link-btn { background: none; border: 0; color: var(--rose); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

/* ---- Site header ---- */
.site-header {
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 249, 245, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.nav-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 12px; }
.logo-link { display: flex; align-items: center; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--plum); font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--rose); text-decoration: none; }
.nav-muted { color: var(--muted) !important; }

/* ---- Footer ---- */
.site-footer { background: var(--plum-deep); color: #fff; margin-top: 96px; padding: 56px 0 28px; }
.site-footer-slim { padding: 22px 0; margin-top: 64px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; margin-bottom: 30px; }
.footer-grid nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-grid nav a { color: var(--blush); opacity: .85; }
.footer-tag { color: var(--blush); opacity: .7; margin-top: 12px; font-size: .94rem; }
.footer-fine { color: rgba(255, 255, 255, .45); font-size: .84rem; margin: 0; }

/* ---- Flash ---- */
.flash { padding: 12px 20px; text-align: center; font-weight: 500; font-size: .94rem; }
.flash-success { background: #E7F6EC; color: #14683A; }
.flash-error { background: #FDE8EE; color: #A11043; }
.flash-info { background: var(--blush); color: var(--plum); }

/* ---- Forms ---- */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 30px; max-width: 440px; margin: 56px auto; }
.form-wide { max-width: 760px; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 18px 0 6px; color: var(--plum); }
label .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time],
input[type=number], input[type=tel], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: 400 1rem var(--font-body);
  color: var(--ink);
  background: #fff;
  transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(216, 27, 96, .12); }
textarea { resize: vertical; min-height: 100px; }
.field-hint { font-size: .84rem; color: var(--muted); margin-top: 4px; }
.error-list { background: #FDE8EE; color: #A11043; border-radius: var(--radius-sm); padding: 12px 18px 12px 32px; margin: 0 0 8px; }
.form-footer-text { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 18px; }

/* ---- Cards & grids ---- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px; }
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ============ Homepage ============ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(52rem 30rem at 85% -10%, #F6DDE7 0%, transparent 60%),
    radial-gradient(40rem 26rem at -10% 110%, #FDEEDC 0%, transparent 55%),
    var(--cream);
  padding: 76px 0 0;
}
.hero-grid { display: grid; gap: 48px; align-items: center; padding-bottom: 72px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: .84rem; font-weight: 600; color: var(--plum);
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero-eyebrow .ic { color: var(--marigold); }
.hero h1 { max-width: 560px; margin-bottom: .45em; }
.hero h1 em { font-style: italic; color: var(--rose); }
.hero-sub { font-size: 1.13rem; color: var(--muted); max-width: 470px; margin: 0 0 30px; line-height: 1.7; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-fine { margin-top: 18px; color: var(--muted); font-size: .87rem; display: flex; gap: 18px; flex-wrap: wrap; }
.hero-fine span { display: inline-flex; align-items: center; gap: 6px; }
.hero-fine .ic { color: var(--rose); }

/* Phone mockup with the real product inside */
.hero-device-wrap { display: flex; justify-content: center; position: relative; }
.hero-device {
  width: 340px; height: 660px;
  border-radius: 44px;
  background: var(--plum-deep);
  padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06);
  position: relative;
  transform: rotate(2.5deg);
}
.hero-device::before {
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 22px; background: var(--plum-deep); border-radius: 12px; z-index: 3;
}
.hero-screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #FAF7F2; position: relative; }
.hero-screen iframe {
  width: 421px; height: 812px;
  transform: scale(.75); transform-origin: 0 0;
  border: 0; pointer-events: none;
}
.hero-device-caption {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%) rotate(2.5deg);
  background: #fff; border-radius: 999px; box-shadow: var(--shadow);
  padding: 9px 18px; font-size: .84rem; font-weight: 600; color: var(--plum);
  display: flex; gap: 8px; align-items: center; white-space: nowrap;
}
.hero-device-caption .ic { color: var(--rose); }

.section { padding: 84px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 48px; }
.section-head .kicker {
  text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600;
  color: var(--rose); display: block; margin-bottom: 10px;
}
.section-head p { color: var(--muted); }

/* Steps */
.steps-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 14px;
  background: var(--blush); color: var(--rose); margin-bottom: 16px;
}
.step-card h3 { margin-bottom: 6px; }
.step-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.step-card .step-count {
  position: absolute; top: 24px; right: 26px;
  font: 700 2.4rem var(--font-head); color: var(--blush);
}

/* Template gallery cards with live miniatures */
.tpl-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tpl-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s;
  box-shadow: var(--shadow-sm); padding: 0; text-align: left;
}
.tpl-card:hover, .tpl-card:focus-visible { border-color: var(--rose); transform: translateY(-3px); box-shadow: var(--shadow); }
.tpl-card.selected { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(216,27,96,.15); }
.tpl-meta { padding: 13px 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tpl-name { font-weight: 600; font-size: .94rem; color: var(--plum); }
.tpl-cat { font-size: .8rem; color: var(--muted); display: block; }
.tier-pill {
  font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--blush); color: var(--rose); text-transform: uppercase; letter-spacing: .06em;
}
.tier-pill.free { background: #E7F6EC; color: #14683A; }

/* Live template miniature */
.tpl-mini { background: linear-gradient(160deg, #EFE6EB, #F8F1ED); padding: 22px 30px 0; }
.tm-chrome { display: flex; gap: 5px; padding: 0 2px 8px; }
.tm-chrome i { width: 7px; height: 7px; border-radius: 50%; background: rgba(59,31,69,.18); }
.tm-page {
  background: var(--tm-bg); border-radius: 10px 10px 0 0;
  box-shadow: 0 -4px 24px rgba(59,31,69,.13);
  aspect-ratio: 3 / 3.4; overflow: hidden; display: flex; flex-direction: column;
}
.tm-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 16px 18px; gap: 7px; }
.tm-hero.tm-left { align-items: flex-start; text-align: left; padding-left: 22px; }
.tm-hero.tm-framed { margin: 14px 14px 0; border: 1px solid color-mix(in srgb, var(--tm-accent) 35%, transparent); outline: 1px solid color-mix(in srgb, var(--tm-accent) 35%, transparent); outline-offset: 3px; background: color-mix(in srgb, #fff 55%, var(--tm-bg)); }
.tm-kicker { font-size: .5rem; letter-spacing: .18em; font-weight: 700; color: var(--tm-accent); }
.tm-topline { font-size: .5rem; letter-spacing: .24em; font-weight: 600; color: color-mix(in srgb, var(--tm-accent) 55%, #999); }
.tm-names { font-family: var(--tm-font); font-size: 1.35rem; font-weight: 700; color: color-mix(in srgb, var(--tm-accent) 25%, var(--tm-ink, #2A1630)); line-height: 1.1; }
.tm-caps { text-transform: uppercase; letter-spacing: -.01em; font-size: 1.5rem; }
.tm-orn { color: var(--tm-accent); font-size: .6rem; }
.tm-date { font-size: .62rem; color: var(--tm-mut, #8a7f88); }
.tm-bar { width: 30px; height: 3px; background: var(--tm-accent); border-radius: 2px; margin-top: 3px; }
.tm-bunting { display: flex; gap: 3px; margin-bottom: 4px; }
.tm-bunting i { width: 9px; height: 12px; clip-path: polygon(0 0, 100% 0, 50% 100%); background: var(--tm-accent); }
.tm-bunting i:nth-child(2n) { background: #F2A93B; }
.tm-bunting i:nth-child(3n) { background: #3B1F45; }
.tm-body { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 20px; }
.tm-block { width: 100%; height: 26px; border-radius: 6px; background: var(--tm-soft); }
.tm-pills { display: flex; gap: 6px; width: 100%; }
.tm-pills i { flex: 1; height: 12px; border-radius: 99px; background: color-mix(in srgb, var(--tm-soft) 60%, #fff); border: 1px solid color-mix(in srgb, var(--tm-accent) 22%, transparent); }
.tm-btn {
  margin-top: 2px; background: var(--tm-accent); color: #fff; font-size: .58rem; font-weight: 700;
  letter-spacing: .08em; padding: 6px 22px; border-radius: 99px;
}

/* Occasions — strict 3-col grid, icon tiles */
.occasion-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); max-width: 880px; margin: 0 auto; }
@media (max-width: 640px) { .occasion-grid { grid-template-columns: 1fr 1fr; } }
.occasion-card {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 18px; cursor: pointer; box-shadow: var(--shadow-sm);
  font: inherit; color: inherit;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  text-decoration: none !important;
}
.occasion-card:hover, .occasion-card:focus-visible { border-color: var(--rose); transform: translateY(-2px); box-shadow: var(--shadow); }
.occasion-card.selected { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(216,27,96,.15); }
.oc-icon {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 46px; height: 46px; border-radius: 14px; background: var(--blush); color: var(--rose);
}
.oc-label { font-weight: 600; color: var(--plum); font-size: .96rem; line-height: 1.3; }
.oc-tag { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }

/* Feature band */
.band { background: var(--plum-deep); color: #fff; border-radius: 24px; padding: 56px 40px; text-align: center; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(30rem 16rem at 80% 0%, rgba(216,27,96,.35), transparent 60%); }
.band > * { position: relative; }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.75); max-width: 480px; margin: 0 auto 26px; }
.feature-row { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 760px) { .feature-row { grid-template-columns: repeat(4, 1fr); } }
.feature-cell { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 20px 16px; font-size: .9rem; color: rgba(255,255,255,.85); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.feature-cell .ic { color: var(--marigold); }

/* ============ App shell (dashboard + admin) ============ */
.dash-body { background: #F7F2F5; }
.app-shell { display: flex; min-height: 100vh; }
.side {
  width: 248px; flex: 0 0 248px;
  background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  padding: 20px 14px;
}
.side-logo { padding: 4px 10px 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.side-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 6px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--plum); font-weight: 500; font-size: .93rem;
  text-decoration: none !important; transition: background .12s;
}
.side-nav a .ic { color: var(--muted); }
.side-nav a:hover { background: var(--blush); }
.side-nav a.active { background: var(--plum); color: #fff; }
.side-nav a.active .ic { color: var(--marigold); }
.side-cta { margin: 16px 10px 8px; }
.side-foot { margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid var(--line); }
.side-user { font-size: .85rem; color: var(--muted); padding: 0 2px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-main { flex: 1; min-width: 0; padding: 30px 34px 60px; }
.app-topbar { display: none; }

@media (max-width: 900px) {
  .app-shell { display: block; }
  .side { display: none; }
  .app-topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 18px; position: sticky; top: 0; z-index: 40;
  }
  .app-topbar nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
  .app-topbar nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 9px; color: var(--plum); font-weight: 500; font-size: .87rem; text-decoration: none !important; }
  .app-topbar nav a.active { background: var(--blush); color: var(--rose); }
  .app-main { padding: 22px 18px 48px; }
}

/* Dashboard components */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.page-head h1 { font-size: 1.65rem; margin: 0; }
.page-sub { color: var(--muted); font-size: .9rem; margin: 4px 0 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.event-row {
  display: flex; gap: 18px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 18px 22px; margin-bottom: 12px; flex-wrap: wrap;
  transition: box-shadow .15s, border-color .15s;
}
.event-row:hover { box-shadow: var(--shadow); }
.event-row-main { flex: 1; min-width: 220px; }
.event-row h3 { margin: 0 0 3px; }
.event-row h3 a { color: var(--plum); }
.ev-meta { color: var(--muted); font-size: .87rem; display: flex; gap: 6px 14px; flex-wrap: wrap; }
.ev-meta span { display: inline-flex; align-items: center; gap: 5px; }

.status-pill { font-size: .7rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.status-live { background: #E7F6EC; color: #14683A; }
.status-draft { background: #FFF3D6; color: #8A5B00; }
.status-archived, .status-sleeping { background: #EEE9F1; color: var(--muted); }

.stat-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 24px; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 18px 20px;
  display: flex; gap: 14px; align-items: center;
}
.stat-ic { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--blush); color: var(--rose); flex: 0 0 auto; }
.stat-num { font: 700 1.45rem/1.1 var(--font-head); color: var(--plum); display: block; }
.stat-label { color: var(--muted); font-size: .8rem; }

table.data { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
table.data th, table.data td { padding: 12px 16px; text-align: left; font-size: .91rem; border-bottom: 1px solid var(--line); }
table.data th { background: #FCF8FA; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #FDFAFB; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }

.filter-row { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.filter-row input[type=text] { max-width: 260px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--plum); font: 500 .87rem var(--font-body);
  cursor: pointer; text-decoration: none !important;
}
.chip:hover { border-color: var(--plum); }
.chip.active { background: var(--plum); color: #fff; border-color: var(--plum); }

/* ---- Wizard ---- */
.wizard-steps { display: flex; gap: 8px; justify-content: center; margin: 6px 0 34px; font-size: .87rem; color: var(--muted); flex-wrap: wrap; }
.wizard-steps span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.wizard-steps .active { background: var(--plum); color: #fff; border-color: var(--plum); font-weight: 600; }
.wizard-steps .done { color: #14683A; border-color: #BEE3CC; background: #F2FAF5; }
.autosave-hint { font-size: .82rem; color: var(--muted); text-align: right; min-height: 1.2em; }
.slug-row { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.slug-row:focus-within { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(216,27,96,.12); }
.slug-prefix { color: var(--muted); font-size: .95rem; white-space: nowrap; padding: 12px 2px 12px 14px; background: #FCF8FA; }
.slug-row input { border: 0; box-shadow: none !important; flex: 1; min-width: 120px; }
.slug-status { font-size: .85rem; min-height: 1.5em; margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.slug-status.ok { color: #14683A; }
.slug-status.bad { color: #A11043; }
.cover-drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 30px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .12s, background .12s; background: #FCFAFB; }
.cover-drop:hover, .cover-drop.dragover { border-color: var(--rose); background: var(--blush); }
.cover-drop img { max-height: 190px; border-radius: 10px; }
.sched-item { display: grid; gap: 8px; grid-template-columns: 1fr; background: #FCF8FA; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 10px; }
@media (min-width: 700px) { .sched-item { grid-template-columns: 1.2fr .8fr .6fr .6fr 1.2fr auto; align-items: center; } }
.sched-item input { padding: 9px 10px; font-size: .92rem; }
.sched-remove { background: none; border: 0; color: var(--muted); cursor: pointer; display: flex; padding: 6px; border-radius: 8px; }
.sched-remove:hover { background: var(--blush); color: #A11043; }

/* ---- Pricing ---- */
.price-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; max-width: 1000px; margin: 0 auto; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); padding: 32px 28px; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--rose); position: relative; box-shadow: var(--shadow); }
.price-card.featured::before { content: "Most loved"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--rose); color: #fff; font-size: .74rem; font-weight: 700; padding: 4px 16px; border-radius: 999px; }
.price-amount { font: 700 2.5rem var(--font-head); color: var(--plum); }
.price-amount small { font: 500 .95rem var(--font-body); color: var(--muted); }
.price-features { list-style: none; padding: 0; margin: 18px 0 26px; flex: 1; }
.price-features li { padding: 7px 0 7px 28px; position: relative; font-size: .93rem; }
.price-features li::before { content: "✓"; position: absolute; left: 2px; color: var(--rose); font-weight: 700; }
.price-features li.na { color: var(--muted); opacity: .55; }
.price-features li.na::before { content: "—"; color: var(--muted); }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

@media (max-width: 560px) {
  .site-nav { gap: 12px; font-size: .9rem; }
  .site-nav a.nav-muted { display: none; }
  .hero { padding-top: 48px; }
  .hero-device { width: 290px; height: 570px; }
  .hero-screen iframe { transform: scale(.633); }
  .band { padding: 44px 22px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- Hero laptop mockup (layered behind the phone) ---- */
.hero-device-wrap { position: relative; min-height: 620px; align-items: center; justify-content: flex-end; }
.hero-laptop { position: absolute; left: -30px; top: 50%; transform: translateY(-50%); width: 500px; max-width: none; }
.hero-laptop-screen {
  background: var(--plum-deep); border-radius: 18px 18px 0 0; padding: 12px 12px 0;
  box-shadow: var(--shadow-lg);
  height: 350px; overflow: hidden;
}
.hero-laptop-screen { height: 312px; }
.hero-laptop-screen iframe {
  width: 1280px; height: 800px; border: 0; pointer-events: none;
  transform: scale(.372); transform-origin: 0 0; border-radius: 8px 8px 0 0; background: #fff;
}
.hero-laptop-base {
  height: 16px; background: linear-gradient(180deg, #4A3554, #2A1630);
  border-radius: 0 0 22px 22px; margin: 0 -22px;
}
.hero-device { position: relative; z-index: 2; margin-right: 10px; }
@media (max-width: 1100px) { .hero-laptop { left: -70px; width: 440px; } .hero-laptop-screen { height: 276px; } .hero-laptop-screen iframe { transform: scale(.325); } }
@media (max-width: 900px) {
  .hero-device-wrap { min-height: 0; }
  .hero-laptop { display: none; }
  .hero-device { margin-left: 0; }
}

/* ============ Homepage v3 ============ */
/* Announcement bar above the header */
.announce-bar {
  background: linear-gradient(90deg, #2A1630, #56164B, #2A1630);
  background-size: 200% 100%;
  animation: announce-sheen 9s ease infinite;
  color: #fff; text-align: center; font: 500 .84rem var(--font-body);
  padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px;
}
.announce-bar a { color: #F8BBD0; font-weight: 600; }
@keyframes announce-sheen { 0%,100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }

/* Hero v3: animated aurora blobs + floating confetti */
.hero { isolation: isolate; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55;
}
.hero::before {
  width: 560px; height: 560px; right: -120px; top: -180px;
  background: radial-gradient(circle, #F4C2D7, #F6DDE7 60%, transparent 70%);
  animation: blob-drift 14s ease-in-out infinite alternate;
}
.hero::after {
  width: 440px; height: 440px; left: -140px; bottom: -160px;
  background: radial-gradient(circle, #FBE3C4, #FDEEDC 60%, transparent 70%);
  animation: blob-drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes blob-drift { to { transform: translate(40px, 30px) scale(1.08); } }
.hero-confetti { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.hero-confetti i {
  position: absolute; width: 8px; height: 12px; border-radius: 2px; opacity: .5;
  animation: float-drift 7s ease-in-out infinite alternate;
}
.hero-confetti i:nth-child(1) { left: 6%; top: 22%; background: var(--rose); animation-delay: 0s; }
.hero-confetti i:nth-child(2) { left: 44%; top: 10%; background: var(--marigold); animation-delay: -2s; }
.hero-confetti i:nth-child(3) { left: 38%; top: 72%; background: var(--plum); animation-delay: -4s; width: 6px; height: 6px; border-radius: 50%; }
.hero-confetti i:nth-child(4) { left: 60%; top: 30%; background: #7BC4A5; animation-delay: -1s; }
.hero-confetti i:nth-child(5) { left: 90%; top: 62%; background: var(--rose); animation-delay: -5s; width: 6px; height: 6px; border-radius: 50%; }
.hero-confetti i:nth-child(6) { left: 12%; top: 78%; background: var(--marigold); animation-delay: -3s; }
@keyframes float-drift { to { transform: translateY(-26px) rotate(40deg); } }

/* Device parallax (JS sets --scroll-y) */
.hero-device, .hero-laptop { will-change: transform; }

/* ---- Showcase marquee: sample pages drifting by ---- */
.showcase { overflow: hidden; padding: 10px 0 6px; position: relative; }
.showcase::before, .showcase::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.showcase::before { left: 0; background: linear-gradient(90deg, var(--cream), transparent); }
.showcase::after { right: 0; background: linear-gradient(-90deg, var(--cream), transparent); }
.showcase-track {
  display: flex; gap: 20px; width: max-content;
  animation: marquee 55s linear infinite;
}
.showcase:hover .showcase-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.showcase .tpl-card { width: 240px; flex: 0 0 auto; }
@media (prefers-reduced-motion: reduce) {
  .showcase-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ---- Occasion tiles v2: colorful, roomy ---- */
.occasion-grid { gap: 18px; }
.occasion-card { padding: 24px 20px; border: 0; position: relative; overflow: hidden; }
.occasion-card::before {
  content: ""; position: absolute; inset: 0; opacity: .16;
  background: linear-gradient(135deg, var(--oc-a, #D81B60), var(--oc-b, #F2A93B));
  transition: opacity .18s;
}
.occasion-card:hover::before { opacity: .3; }
.occasion-card > * { position: relative; }
.oc-icon {
  width: 56px; height: 56px; border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, var(--oc-a, #D81B60), var(--oc-b, #F2A93B));
  box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--oc-a, #D81B60) 55%, transparent);
}
.oc-wedding     { --oc-a: #D81B60; --oc-b: #8C2F4A; }
.oc-birthday    { --oc-a: #F2A93B; --oc-b: #E4572E; }
.oc-engagement  { --oc-a: #7C4DBE; --oc-b: #D81B60; }
.oc-baby_shower { --oc-a: #6FB3C9; --oc-b: #7BC4A5; }
.oc-graduation  { --oc-a: #2E5EAA; --oc-b: #7C4DBE; }
.oc-corporate   { --oc-a: #3B1F45; --oc-b: #5E6B77; }
.oc-memorial    { --oc-a: #5E6B77; --oc-b: #8A9BA8; }
.oc-anniversary { --oc-a: #A67C2E; --oc-b: #D4AF37; }
.oc-general     { --oc-a: #D81B60; --oc-b: #F2A93B; }

/* ---- Blog cards ---- */
.blog-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none !important;
  transition: transform .15s, box-shadow .15s; display: block; color: inherit;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.blog-card-body { padding: 18px 20px 20px; }
.blog-card .blog-cat { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rose); }
.blog-card h3 { margin: 6px 0 8px; font-size: 1.08rem; line-height: 1.3; }
.blog-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.blog-post { max-width: 720px; margin: 0 auto; padding: 48px 24px; }
.blog-post img.cover { border-radius: var(--radius); margin: 18px 0 26px; }
.blog-post h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.blog-post .post-meta { color: var(--muted); font-size: .9rem; margin-bottom: 4px; }
.blog-post .post-body { font-size: 1.05rem; line-height: 1.8; }
.blog-post .post-body h2 { margin-top: 1.4em; font-size: 1.4rem; }

/* ---- Dashboard color pass ---- */
.event-row { position: relative; overflow: hidden; }
.event-row .ev-avatar {
  width: 52px; height: 52px; border-radius: 16px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, var(--oc-a, #D81B60), var(--oc-b, #F2A93B));
  box-shadow: 0 5px 14px -4px color-mix(in srgb, var(--oc-a, #D81B60) 55%, transparent);
}
.quick-tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 24px; }
.quick-tile {
  border-radius: var(--radius); padding: 18px; color: #fff; text-decoration: none !important;
  background: linear-gradient(135deg, var(--qt-a), var(--qt-b));
  display: flex; flex-direction: column; gap: 10px; font-weight: 600; font-size: .93rem;
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--qt-a) 60%, transparent);
  transition: transform .15s, box-shadow .15s;
}
.quick-tile:hover { transform: translateY(-2px); }
.quick-tile .ic { opacity: .9; }

/* ============ Hero v4: art-directed device stage ============ */
.stage { position: relative; min-height: 640px; display: flex; align-items: center; justify-content: center; padding-left: 90px; }
@media (max-width: 980px) { .stage { padding-left: 0; } }

/* Realistic iPhone frame */
.ph {
  position: relative; width: 282px; height: 576px; border-radius: 44px;
  background: linear-gradient(160deg, #3a3140, #17121c 60%);
  padding: 10px;
  box-shadow:
    0 30px 70px -18px rgba(42, 22, 48, .45),
    inset 0 0 0 1.5px rgba(255,255,255,.14),
    inset 0 0 0 4px rgba(0,0,0,.55);
}
.ph::before { /* dynamic island */
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 24px; border-radius: 14px; background: #000; z-index: 5;
}
.ph::after { /* side button */
  content: ""; position: absolute; right: -2.5px; top: 150px; width: 3px; height: 64px;
  border-radius: 2px; background: #2c2433;
}
.ph-screen {
  width: 100%; height: 100%; border-radius: 38px; overflow: hidden;
  background: #FAF7F2; display: flex; flex-direction: column; position: relative;
}
.ph-screen::after { /* glass reflection */
  content: ""; position: absolute; inset: 0; border-radius: 38px; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 28%);
}

/* Front phone position */
.ph-front { z-index: 3; transform: rotate(2deg); }
/* Back phone: dark party page peeking out */
.ph-back {
  position: absolute; z-index: 1; transform: rotate(-7deg) scale(.92) translateX(-158px) translateY(8px);
  filter: brightness(.96);
}
@media (max-width: 1180px) { .ph-back { transform: rotate(-7deg) scale(.88) translateX(-132px); } }
@media (max-width: 980px) { .ph-back { display: none; } }

/* --- Composed screen: wedding (front) --- */
.scr-hero { position: relative; flex: 0 0 62%; background-size: cover; background-position: center; display: flex; }
.scr-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(185deg, rgba(20,10,18,.05) 35%, rgba(20,10,18,.62) 92%); }
.scr-hero-inner { position: relative; margin-top: auto; width: 100%; text-align: center; color: #fff; padding: 0 18px 20px; }
.scr-kicker { display: block; font: 600 .55rem/1.4 var(--font-body); letter-spacing: .24em; opacity: .9; }
.scr-names { display: block; font: 600 1.7rem/1.1 var(--font-head); margin: 6px 0 4px; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.scr-date { display: block; font: 500 .68rem/1.4 var(--font-body); opacity: .92; }
.scr-rsvp {
  display: inline-block; margin-top: 12px; background: #fff; color: #3B1F45;
  font: 700 .68rem var(--font-body); padding: 8px 22px; border-radius: 999px;
}
.scr-body { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: #FFFDFB; }
.scr-count { display: flex; gap: 7px; justify-content: center; }
.scr-count b {
  background: #fff; border: 1px solid #F0E4EA; border-radius: 9px; min-width: 48px; padding: 7px 4px 5px;
  text-align: center; font: 700 .95rem var(--font-head); color: var(--rose);
}
.scr-count b small { display: block; font: 600 .42rem var(--font-body); letter-spacing: .1em; color: #A392AC; margin-top: 2px; }
.scr-row {
  display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid #F0E4EA;
  border-radius: 11px; padding: 9px 11px; font: 500 .68rem var(--font-body); color: #574a5e;
}
.scr-row .ic { color: var(--rose); }

/* --- Composed screen: dark party (back) --- */
.scr-dark { background: #171310; }
.scr-dark .scr-hero::before { background: linear-gradient(185deg, rgba(15,10,6,.12) 30%, rgba(15,10,6,.78) 95%); }
.scr-dark .scr-names { color: #F5EFE4; }
.scr-dark .scr-kicker, .scr-dark .scr-date { color: #D9CDB4; }
.scr-dark .scr-rsvp { background: #D4AF37; color: #1A1510; }
.scr-dark .scr-body { background: #1D1814; }
.scr-dark .scr-count b { background: #262019; border-color: #362D22; color: #D4AF37; }
.scr-dark .scr-count b small { color: #8C8070; }

/* --- Floating product cards around the stage --- */
.float-card {
  position: absolute; z-index: 4; background: #fff; border-radius: 14px;
  box-shadow: 0 14px 40px -10px rgba(42,22,48,.3); border: 1px solid #F3E8EE;
  padding: 11px 15px; display: flex; align-items: center; gap: 10px;
  font: 600 .8rem var(--font-body); color: var(--plum);
  animation: float-card 6s ease-in-out infinite alternate;
}
.float-card small { display: block; font-weight: 500; color: var(--muted); font-size: .7rem; }
.float-card .fc-ic {
  width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; color: #fff; flex: 0 0 auto;
}
.fc-rsvp { top: 7%; right: -10px; animation-delay: -1s; }
.fc-rsvp .fc-ic { background: linear-gradient(135deg, #2FA36B, #14683A); }
.fc-qr { bottom: 13%; right: -12px; animation-delay: -3s; }
.fc-qr .fc-ic { background: linear-gradient(135deg, var(--plum), #56164B); }
.fc-guests { bottom: 24%; left: 6px; animation-delay: -2s; z-index: 4; }
.fc-guests .fc-ic { background: linear-gradient(135deg, var(--rose), #8C2F4A); }
@keyframes float-card { to { transform: translateY(-12px); } }
@media (max-width: 980px) {
  .fc-guests { left: -8px; }
  .fc-rsvp { right: -8px; }
  .stage { min-height: 680px; }
}

/* ============ Showcase v2: real-photo page cards ============ */
.page-card {
  position: relative; width: 250px; aspect-ratio: 3/4; border-radius: 18px; overflow: hidden;
  flex: 0 0 auto; display: block; text-decoration: none !important;
  box-shadow: 0 10px 30px -10px rgba(42,22,48,.3);
  transition: transform .18s;
}
.page-card:hover { transform: translateY(-5px); }
.page-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(185deg, rgba(20,10,18,0) 38%, rgba(20,10,18,.72) 95%);
}
.pc-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; z-index: 2; color: #fff; text-align: center; }
.pc-kicker { display: block; font: 600 .56rem var(--font-body); letter-spacing: .22em; opacity: .85; }
.pc-title { display: block; font: 600 1.5rem/1.1 var(--font-head); margin: 5px 0 3px; }
.pc-serif-i .pc-title { font-style: italic; }
.pc-caps .pc-title { text-transform: uppercase; font-family: var(--font-body); font-weight: 700; letter-spacing: .02em; font-size: 1.25rem; }
.pc-date { display: block; font: 500 .68rem var(--font-body); opacity: .9; }
.pc-chip {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(255,255,255,.92); color: var(--plum);
  font: 700 .62rem var(--font-body); padding: 5px 11px; border-radius: 999px;
}

/* ============ Occasions v3: photo tiles ============ */
.occasion-grid.oc-photos { max-width: 980px; }
.oc-photo-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  display: flex; align-items: flex-end; text-decoration: none !important;
  box-shadow: 0 8px 26px -8px rgba(42,22,48,.28);
  transition: transform .16s, box-shadow .16s;
}
.oc-photo-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px -8px rgba(42,22,48,.4); }
.oc-photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oc-photo-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(185deg, rgba(20,10,18,.02) 35%, rgba(20,10,18,.68) 96%);
}
.oc-photo-card .opc-txt { position: relative; z-index: 2; color: #fff; padding: 16px 18px; width: 100%; display: flex; align-items: center; gap: 11px; }
.oc-photo-card .opc-ic {
  width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.3);
}
.oc-photo-card .opc-label { font: 600 1.02rem var(--font-head); }
.oc-photo-card .opc-tag { display: block; font: 400 .74rem var(--font-body); opacity: .85; }

/* ============ Professional footer ============ */
.footer-cols {
  display: grid; gap: 36px; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 22px;
}
@media (max-width: 860px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-cols h4 { font: 600 .8rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin: 0 0 14px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-cols a { color: var(--blush); opacity: .85; font-size: .92rem; }
.footer-cols a:hover { opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.pay-marks { display: flex; gap: 8px; align-items: center; }
.pay-marks span {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  border-radius: 6px; padding: 4px 10px; font: 700 .68rem var(--font-body); color: rgba(255,255,255,.75);
  letter-spacing: .04em;
}

/* CTA button: richer gradient */
.btn-primary { background: linear-gradient(135deg, #E62268, #B01450); }
.btn-primary:hover { background: linear-gradient(135deg, #D81B60, #9C0F46); }

/* ============ Hero v5: three phones + scroll choreography ============ */
.ph-right {
  position: absolute; z-index: 2; transform: rotate(8deg) scale(.86) translateX(200px) translateY(46px);
  filter: brightness(.97);
}
@media (max-width: 1180px) { .ph-right { display: none; } }
.scr-soft .scr-hero::before { background: linear-gradient(185deg, rgba(90,50,60,.04) 30%, rgba(90,50,60,.55) 95%); }
.scr-soft .scr-body { background: #FDF5F7; }
.scr-soft .scr-count b { color: #C97B8E; border-color: #F3DEE4; }

.fc-seat { top: 40%; right: -34px; animation-delay: -4.2s; z-index: 4; }
.fc-seat .fc-ic { background: linear-gradient(135deg, #7C4DBE, #56164B); }
.fc-mail { top: 20%; left: -14px; animation-delay: -2.6s; z-index: 2; }
.fc-mail .fc-ic { background: linear-gradient(135deg, #F2A93B, #E4572E); }

/* app logos inside screen rows */
.scr-row .app-ic { width: 18px; height: 18px; flex: 0 0 auto; }

/* extra ambient background: floating rings */
.hero-rings i {
  position: absolute; border: 2px solid rgba(216, 27, 96, .14); border-radius: 50%;
  animation: float-drift 9s ease-in-out infinite alternate;
}
.hero-rings i:nth-child(1) { width: 90px; height: 90px; left: 4%; top: 12%; animation-delay: -1s; }
.hero-rings i:nth-child(2) { width: 46px; height: 46px; left: 52%; top: 82%; border-color: rgba(242,169,59,.22); animation-delay: -4s; }
.hero-rings i:nth-child(3) { width: 60px; height: 60px; left: 94%; top: 16%; border-color: rgba(124,77,190,.16); animation-delay: -6s; }

/* ============ How it works: live wizard phone ============ */
.hiw-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 920px) { .hiw-grid { grid-template-columns: 1.1fr .9fr; } }
.hiw-steps { display: flex; flex-direction: column; gap: 16px; }
.hiw-steps .step-card { display: flex; gap: 18px; align-items: flex-start; }
.hiw-steps .step-num { margin: 0; flex: 0 0 auto; }
.hiw-phone-wrap { display: flex; justify-content: center; }
.ph-mini { width: 262px; height: 536px; border-radius: 42px; transform: rotate(-2deg); }
.ph-mini .ph-screen { border-radius: 34px; }
.hiw-slides { position: relative; flex: 1; }
.hiw-slide {
  position: absolute; inset: 0; padding: 44px 18px 18px; opacity: 0;
  display: flex; flex-direction: column; gap: 10px;
  animation: hiw-cycle 12s infinite;
}
.hiw-slide:nth-child(2) { animation-delay: 4s; }
.hiw-slide:nth-child(3) { animation-delay: 8s; }
@keyframes hiw-cycle {
  0% { opacity: 0; transform: translateY(10px); }
  4%, 30% { opacity: 1; transform: translateY(0); }
  36%, 100% { opacity: 0; transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hiw-slide { animation: none; }
  .hiw-slide:first-child { opacity: 1; position: relative; }
}
.hiw-title { font: 600 .95rem var(--font-head); color: var(--plum); text-align: center; margin-bottom: 2px; }
.hiw-sub { font: 500 .62rem var(--font-body); color: var(--muted); text-align: center; margin-bottom: 6px; }
.hiw-occ { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hiw-occ span {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 6px;
  font: 600 .62rem var(--font-body); color: var(--plum);
}
.hiw-occ span .ic { color: var(--rose); }
.hiw-occ span.sel { border-color: var(--rose); background: var(--blush); }
.hiw-field { background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.hiw-field small { display: block; font: 600 .5rem var(--font-body); color: var(--muted); letter-spacing: .04em; }
.hiw-field b { font: 600 .72rem var(--font-body); color: var(--ink); }
.hiw-field.focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(216,27,96,.1); }
.hiw-qr { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hiw-qr .ic { color: var(--plum); }
.hiw-link { font: 600 .66rem var(--font-body); color: var(--rose); background: var(--blush); border-radius: 999px; padding: 6px 12px; }
.hiw-btn { margin-top: auto; background: linear-gradient(135deg, #E62268, #B01450); color: #fff; text-align: center; border-radius: 999px; padding: 11px; font: 700 .74rem var(--font-body); }

/* ============ Payment logos ============ */
.pay-marks span { display: inline-flex; align-items: center; padding: 5px 9px; background: #fff; border: 0; }
.pay-marks svg { display: block; height: 16px; width: auto; }

/* ============ Auth split pages ============ */
.auth-split {
  display: grid; max-width: 920px; margin: 48px auto; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg); background: #fff;
}
@media (min-width: 860px) { .auth-split { grid-template-columns: 1fr 1.1fr; } }
.auth-photo { position: relative; min-height: 240px; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.auth-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(42,22,48,.05) 30%, rgba(42,22,48,.72) 100%); }
.auth-photo blockquote { position: relative; color: #fff; padding: 26px; margin: 0; font: 500 1.05rem/1.6 var(--font-head); }
.auth-photo blockquote small { display: block; font: 500 .8rem var(--font-body); opacity: .8; margin-top: 8px; }
.auth-form { padding: 40px 36px; }
@media (max-width: 859px) { .auth-photo { min-height: 180px; } .auth-form { padding: 30px 24px; } }

/* ============ Dashboard warmth ============ */
.dash-body { background: linear-gradient(160deg, #FAF3F7 0%, #F7F2F5 40%, #FDF7F0 100%); }
.dash-hello {
  border-radius: var(--radius); padding: 26px 28px; margin-bottom: 24px; color: #fff;
  background: linear-gradient(120deg, #3B1F45 0%, #6B2D5B 55%, #A13F63 100%);
  position: relative; overflow: hidden;
}
.dash-hello h1 { color: #fff; font-size: 1.6rem; margin: 0 0 4px; }
.dash-hello p { color: rgba(255,255,255,.75); margin: 0; font-size: .93rem; }
.dash-hello::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(216,27,96,.5), transparent 65%);
}

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ============ The traveling phone (hero → How it works) ============ */
#traveler {
  position: fixed; z-index: 80; pointer-events: none; display: none;
  perspective: 1500px;
}
#traveler .trav-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; will-change: transform;
}
#traveler .trav-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
#traveler .trav-face .ph { width: 100%; height: 100%; }
#traveler .trav-back { transform: rotateX(180deg); }
.anchor-hidden { visibility: hidden !important; }

/* ============ Content & settings hub ============ */
.content-photo-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); margin-top: 14px; }
.cp-item { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--blush); }
.cp-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-item.cp-pending { outline: 2.5px solid var(--marigold); outline-offset: -2.5px; }
.cp-badge {
  position: absolute; top: 6px; left: 6px; background: var(--marigold); color: #4A3000;
  font: 700 .62rem var(--font-body); padding: 3px 8px; border-radius: 999px;
}
.cp-actions { position: absolute; bottom: 6px; right: 6px; display: flex; gap: 4px; }
.cp-actions .chip { padding: 5px 8px; background: rgba(255,255,255,.94); }

.switch-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; margin: 0; border-bottom: 1px solid var(--line); font-weight: 500; cursor: pointer; }
.switch-row:last-of-type { border-bottom: 0; }
.switch-row input { width: auto; margin-top: 4px; accent-color: var(--rose); }
.switch-row span { color: var(--plum); }
.switch-row small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.switch-row.switch-locked { opacity: .55; }
.gift-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }
#meal-rows .gift-row { grid-template-columns: 1fr auto; }
.gift-row input { padding: 9px 11px; font-size: .92rem; }
#gifts-form .btn, #meals-form .btn { margin-right: 6px; margin-top: 8px; }
.ic.flip { transform: scaleX(-1); }

/* ============ ✨ AI assist widgets ============ */
.ai-quickstart { max-width: 720px; margin: 0 auto; border: 1.5px solid #F3D9E4; background: linear-gradient(135deg, #FFF6FA, #FFF9F0); }
.ai-qs-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.ai-spark {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 13px; color: #fff;
  background: linear-gradient(135deg, #E62268, #7C4DBE);
  box-shadow: 0 6px 16px -6px rgba(216, 27, 96, .5);
}
.ai-qs-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ai-qs-row input { flex: 1; min-width: 220px; }
.ai-tones { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 4px 0 8px; }
.ai-writer-label { display: inline-flex; align-items: center; gap: 5px; font: 600 .84rem var(--font-body); color: #7C4DBE; }
.ai-tone { padding: 6px 13px; font-size: .82rem; }
.ai-tone.active { background: linear-gradient(135deg, #E62268, #7C4DBE); color: #fff; border-color: transparent; }
.ai-status { margin: 0 0 0 4px; }

/* ============ Seating planner ============ */
.sp-app { display: flex; flex-direction: column; gap: 14px; }
.sp-toolbar { display: flex; flex-wrap: wrap; gap: 14px 26px; padding: 16px 20px; align-items: center; }
.sp-tool-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sp-tool-label { font: 700 .72rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.sp-toolbar input[type=number], .sp-toolbar select { width: auto; padding: 7px 9px; font-size: .88rem; }
.sp-toolbar input[type=number] { width: 64px; }
.sp-props { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 18px; min-height: 56px; }
.sp-props input[type=text] { width: 170px; padding: 8px 10px; font-size: .9rem; }
.sp-prop { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; }
.sp-prop button { width: 28px; height: 28px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 1rem; line-height: 1; }
.sp-danger { color: #A11043; }
.sp-split { display: grid; gap: 14px; grid-template-columns: 1fr 280px; align-items: start; }
@media (max-width: 980px) { .sp-split { grid-template-columns: 1fr; } }
.sp-canvas { padding: 14px; overflow: auto; }
.sp-svg { width: 100%; height: auto; display: block; touch-action: none; }
.sp-floor { fill: #FDFBF8; }
.sp-grid { stroke: #EFE7EC; stroke-width: 0.05; }
.sp-wall { fill: none; stroke: #3B1F45; stroke-width: 0.22; }
.sp-dim { font-size: 1.1px; fill: #A392AC; font-family: Inter, sans-serif; }
.sp-el { cursor: grab; }
.sp-el:active { cursor: grabbing; }
.sp-shape { stroke: #7A6884; stroke-width: 0.1; }
.sp-round .sp-shape, .sp-rect .sp-shape { fill: #FFFFFF; }
.sp-head .sp-shape { fill: #FDF3E3; }
.sp-stage .sp-shape { fill: #EBE4F3; }
.sp-dance .sp-shape { fill: #FDF0F5; stroke-dasharray: 0.5 0.35; }
.sp-entrance .sp-shape { fill: #E8F3EC; }
.sp-buffet .sp-shape { fill: #FFF3D9; }
.sp-bar .sp-shape { fill: #E9F0F5; }
.sp-gift .sp-shape { fill: #F3E9EF; }
.sp-selected .sp-shape { stroke: #D81B60; stroke-width: 0.22; }
.sp-label { font-size: 1.05px; fill: #3B1F45; font-family: Inter, sans-serif; font-weight: 600; pointer-events: none; }
.sp-seat circle { fill: #FFFFFF; stroke: #B9A9C2; stroke-width: 0.08; cursor: pointer; }
.sp-seat:hover circle { stroke: #D81B60; stroke-width: 0.14; }
.sp-seat-full circle { fill: #D81B60; stroke: #B01450; }
.sp-seat-txt { font-size: 0.55px; fill: #fff; font-family: Inter, sans-serif; font-weight: 700; pointer-events: none; }
.sp-side { padding: 18px; position: sticky; top: 14px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.sp-roster { overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.sp-party { display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.sp-guest {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  padding: 7px 11px; font: 500 .86rem var(--font-body); color: var(--plum); cursor: pointer; text-align: left;
}
.sp-guest small { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.sp-guest-seated { border-color: #BEE3CC; background: #F2FAF5; }
.sp-guest-seated small { color: #14683A; }
.sp-guest-picked { border-color: var(--rose); background: var(--blush); box-shadow: 0 0 0 3px rgba(216,27,96,.14); }
.sp-mini { max-width: 420px; margin: 12px auto 0; }
.findseat-hit { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px 14px; margin-top: 10px; border: 1px solid rgba(216,27,96,.25); border-radius: 12px;
  background: rgba(216,27,96,.05); }
.findseat-hit span { color: var(--rose); font-weight: 600; white-space: nowrap; }
.sp-mini-hl .sp-shape { fill: #D81B60 !important; stroke: #B01450; }

/* ---- Brand marks, calendar menu, share panel ---- */
.brand-ic { vertical-align: -3px; }
.cal-menu { position: relative; display: inline-block; }
.cal-options { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 220px;
  background: #fff; border: 1px solid #EDE2E8; border-radius: 14px; padding: 6px;
  box-shadow: 0 12px 34px rgba(59,31,69,.16); }
.cal-options a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px;
  color: #3B1F45; font-size: .9rem; font-weight: 500; text-decoration: none; }
.cal-options a:hover { background: #FBEDF2; }
.share-panel { display: flex; flex-wrap: wrap; gap: 8px; }
.share-panel .btn { gap: 7px; }

/* ---- Template mini variants: every card previews its real personality ---- */
.tm-page { position: relative; overflow: hidden; }
.tm-decor { position: absolute; width: 16px; height: 16px; opacity: .4; z-index: 1; color: var(--tm-accent); }
.tm-decor svg { width: 100%; height: 100%; display: block; }
.tm-decor-l { top: 12px; left: 10px; transform: rotate(-10deg); }
.tm-decor-r { top: 26px; right: 10px; transform: rotate(10deg); }
.tm-dark .tm-framed { background: color-mix(in srgb, #000 18%, var(--tm-bg)); }
.tm-dark .tm-block { background: color-mix(in srgb, #fff 7%, var(--tm-bg)); }
.tm-dark .tm-pills i { background: color-mix(in srgb, #fff 5%, var(--tm-bg)); }
.tm-caps-wide { text-transform: uppercase; letter-spacing: .1em; font-size: 1.05rem; }
.tm-burst-hero { padding-top: 14px; }
.tm-burst { display: flex; align-items: center; justify-content: center; width: 190px; height: 96px;
  background: #F5C518; border: 2.5px solid #1E1A10; filter: drop-shadow(3px 3px 0 #1E1A10); padding: 0 14px; text-align: center;
  clip-path: polygon(50% 0, 60% 14%, 74% 4%, 76% 20%, 92% 16%, 86% 32%, 100% 38%, 88% 50%, 100% 64%, 84% 66%, 90% 84%, 74% 78%, 70% 96%, 56% 84%, 44% 98%, 38% 82%, 22% 92%, 24% 72%, 6% 74%, 16% 56%, 0 48%, 14% 38%, 4% 22%, 22% 24%, 20% 6%, 36% 14%, 42% 0); }
.tm-burst .tm-names { font-size: 1.05rem; color: #1E1A10; }
.tm-sign { display: flex; flex-direction: column; gap: 5px; align-items: center; padding: 14px 20px; border-radius: 10px;
  background: color-mix(in srgb, #000 24%, var(--tm-bg)); border: 2px solid var(--tm-accent);
  background-image: radial-gradient(circle 2px at 8px 6px, var(--tm-accent) 1.6px, transparent 2.4px);
  background-size: 20px 100px; background-position: 4px 2px; background-repeat: repeat-x; padding-top: 18px; }
.tm-sign .tm-names { color: var(--tm-accent); text-shadow: 0 0 12px color-mix(in srgb, var(--tm-accent) 65%, transparent); }
.tm-crest { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px solid var(--tm-accent); outline: 1px dotted color-mix(in srgb, var(--tm-accent) 55%, transparent); outline-offset: -6px;
  font-family: var(--tm-font); font-size: 1rem; color: var(--tm-accent); margin-bottom: 2px; }
.tm-photo-frame { background: #fff; padding: 6px 6px 3px; box-shadow: 0 5px 14px rgba(30,20,30,.22); transform: rotate(-2.5deg); margin-top: 4px; }
.tm-photo { display: block; width: 120px; height: 62px; background: linear-gradient(135deg, var(--tm-soft), color-mix(in srgb, var(--tm-accent) 35%, var(--tm-soft))); }
.tm-caption { display: block; text-align: center; font-family: var(--tm-font); font-size: .78rem; color: #3B342B; padding-top: 2px; }
.tm-deco { margin: 12px 14px 0; border: 1.5px double var(--tm-accent); padding: 16px 12px 12px; gap: 5px; }
.tm-arch { width: 84px; height: 62px; border-radius: 60px 60px 6px 6px; background: linear-gradient(160deg, color-mix(in srgb, var(--tm-accent) 45%, var(--tm-soft)), var(--tm-soft)); margin-bottom: 2px; }
.tm-bp { margin: 12px 14px 0; border: 1px dashed color-mix(in srgb, var(--tm-accent) 65%, transparent); padding: 16px 10px 12px;
  background-image: linear-gradient(color-mix(in srgb, var(--tm-accent) 10%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--tm-accent) 10%, transparent) 1px, transparent 1px); background-size: 14px 14px; }
.tm-bp .tm-names { font-size: 1.05rem; }
.tm-aurora { background:
  radial-gradient(ellipse 60% 50% at 25% 30%, rgba(52,211,153,.32), transparent 70%),
  radial-gradient(ellipse 55% 45% at 72% 24%, rgba(129,140,248,.32), transparent 70%),
  radial-gradient(ellipse 50% 40% at 55% 70%, rgba(34,211,238,.26), transparent 70%); }
.tm-neon { text-transform: uppercase; letter-spacing: .03em; color: #fff !important;
  text-shadow: 0 0 10px color-mix(in srgb, var(--tm-accent) 85%, transparent), 0 0 24px rgba(80,220,255,.5); }
.tm-starfield { background:
  radial-gradient(1.2px 1.2px at 18% 26%, var(--tm-accent) 50%, transparent 51%),
  radial-gradient(1px 1px at 74% 18%, #fff 50%, transparent 51%),
  radial-gradient(1.2px 1.2px at 86% 56%, var(--tm-accent) 50%, transparent 51%),
  radial-gradient(1px 1px at 32% 68%, #fff 50%, transparent 51%); }
.tm-beams { background: linear-gradient(115deg, transparent 40%, color-mix(in srgb, var(--tm-accent) 16%, transparent) 46%, transparent 54%); }
.tm-lines { background-image: repeating-linear-gradient(0deg, transparent 0 13px, color-mix(in srgb, var(--tm-accent) 14%, transparent) 13px 14px); }
.tm-sunburst { overflow: hidden; position: relative; }
.tm-sunburst::before { content: ""; position: absolute; inset: auto -30% -70% -30%; height: 120%; border-radius: 50% 50% 0 0; opacity: .22;
  background: repeating-radial-gradient(circle at 50% 100%, var(--tm-accent) 0 12px, #F2A93B 12px 24px, #4E937A 24px 36px, var(--tm-bg) 36px 48px); }
.tm-sunburst > * { position: relative; }
.tm-wash { background:
  radial-gradient(ellipse 55% 45% at 15% 15%, color-mix(in srgb, var(--tm-accent) 22%, transparent), transparent),
  radial-gradient(ellipse 50% 40% at 85% 20%, rgba(240,180,158,.3), transparent),
  radial-gradient(ellipse 50% 45% at 75% 85%, rgba(151,188,220,.24), transparent); }
.tm-sunset { background: linear-gradient(180deg, color-mix(in srgb, var(--tm-accent) 30%, var(--tm-bg)) 0%, var(--tm-bg) 78%); }
.tm-tiles { display: flex; gap: 4px; margin-bottom: 4px; }
.tm-tiles i { width: 14px; height: 14px; transform: rotate(45deg); border-radius: 2px; }
.tm-tiles i:nth-child(1) { background: #0F766E; } .tm-tiles i:nth-child(2) { background: #B45309; }
.tm-tiles i:nth-child(3) { background: #7C3AED; } .tm-tiles i:nth-child(4) { background: #BE185D; }
.tm-tiles i:nth-child(5) { background: #0F766E; }
.tm-corners { position: relative; }
.tm-corner-l, .tm-corner-r { position: absolute; font-size: 16px; opacity: .8; }
.tm-corner-l { top: 6px; left: 10px; } .tm-corner-r { bottom: 6px; right: 10px; transform: rotate(180deg); }
.tm-band { background: linear-gradient(160deg, color-mix(in srgb, var(--tm-accent) 82%, #171A2B), #171A2B); }
.tm-band .tm-names, .tm-band .tm-date { color: #fff; }
.tm-band .tm-kicker { color: rgba(255,255,255,.75); }

/* Card hover: lift + accent glow so the gallery invites clicks */
.tpl-card { transition: transform .25s ease, box-shadow .25s ease; }
.tpl-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(59,31,69,.16); }

/* ---- Admin shell: dark command-center, unmistakably not the host view ---- */
.admin-side { background: linear-gradient(180deg, #221329, #171019); border-right: 1px solid #362140; }
.admin-side .side-nav a { color: #C9B8D2; }
.admin-side .side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-side .side-nav a.active { background: rgba(216,27,96,.22); color: #fff; }
.admin-side .side-label { color: #8A7495; }
.admin-side .side-user { color: #C9B8D2; }
.admin-badge { display: inline-block; margin: 6px 0 0 4px; padding: 2px 9px; border-radius: 999px;
  background: #D81B60; color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .14em; }
.admin-body .app-main { background: #F5F2F7; }
.admin-topbar { background: #221329; }
.admin-topbar nav a { color: #C9B8D2; }

/* ---- Fluid "watery" sidebar interactions (Apple-feel micro-motion) ---- */
.side-nav a { position: relative; overflow: hidden; transition: transform .28s cubic-bezier(.34,1.56,.64,1), background .25s ease, color .25s ease; }
.side-nav a:hover { transform: translateX(4px); }
.side-nav a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: radial-gradient(120px 40px at var(--mx, 20%) 50%, rgba(216,27,96,.14), transparent 70%);
  transition: opacity .35s ease; pointer-events: none; }
.side-nav a:hover::after { opacity: 1; }
.side-nav a:active { transform: translateX(4px) scale(.97); }
.quick-tile { transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease; }
.quick-tile:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 34px rgba(59,31,69,.22); }
.stat-card { transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease; }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(59,31,69,.12); }
@media (prefers-reduced-motion: reduce) {
  .side-nav a, .quick-tile, .stat-card, .tpl-card { transition: none; }
}

/* Photo-real mini cards */
.tm-photo-hero { position: relative; background-size: cover; background-position: center 30%; padding: 34px 14px 22px; }
.tm-photo-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,10,20,.12) 0%, rgba(20,10,20,.62) 100%); }
.tm-photo-hero > * { position: relative; }
.tm-photo-hero .tm-names { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.tm-photo-hero .tm-kicker { color: #fff; opacity: .85; }
.tm-photo-hero .tm-date { color: rgba(255,255,255,.85); }
.tm-thumbs { display: flex; gap: 5px; width: 100%; }
.tm-thumbs i { flex: 1; height: 30px; border-radius: 6px; background-size: cover; background-position: center; }

/* Card sheen: a light sweep on hover so cards feel alive */
.tpl-card { position: relative; }
.tpl-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  background-size: 250% 100%; background-position: 120% 0; opacity: 0; }
.tpl-card:hover::after { opacity: 1; animation: tpl-sheen .9s ease forwards; }
@keyframes tpl-sheen { to { background-position: -60% 0; } }

/* ---- Seating planner: premium feel ---- */
.sp-svg { touch-action: none; }
.sp-el { cursor: grab; }
.sp-el .sp-shape { transition: filter .18s ease, stroke .18s ease; filter: drop-shadow(0 0.18px 0.35px rgba(43,27,50,.28)); stroke: #D9CCD4; stroke-width: 0.12; }
.sp-el:hover .sp-shape { filter: drop-shadow(0 0.35px 0.7px rgba(43,27,50,.38)) brightness(1.02); }
.sp-selected .sp-shape { stroke: #D81B60; stroke-width: 0.22; filter: drop-shadow(0 0.4px 0.9px rgba(216,27,96,.35)); }
.sp-dragging { cursor: grabbing; }
.sp-dragging .sp-shape { filter: drop-shadow(0 0.7px 1.3px rgba(43,27,50,.4)); }
.sp-pop { animation: sp-pop .45s cubic-bezier(.34,1.56,.64,1); transform-origin: center; transform-box: fill-box; }
@keyframes sp-pop { 0% { opacity: 0; scale: .6; } 100% { opacity: 1; scale: 1; } }
.sp-seat circle { fill: #fff; stroke: #C9B8C6; stroke-width: 0.1; transition: fill .15s ease, stroke .15s ease; cursor: pointer; }
.sp-seat:hover circle { stroke: #D81B60; stroke-width: 0.16; }
.sp-seat-full circle { fill: #D81B60; stroke: #B01450; }
.sp-seat-txt { fill: #fff; font-size: 0.55px; font-weight: 700; pointer-events: none; }
.sp-label { pointer-events: none; }
.sp-chairs .sp-shape { fill: #F1F1F4; }
.sp-floor { fill: #FDFAF6; }
.sp-grid { stroke: rgba(59,31,69,.05); stroke-width: 0.06; }
.sp-wall { fill: none; stroke: #3B1F45; stroke-width: 0.3; }

/* More per-template card personalities */
.tm-pearls { display: flex; gap: 5px; margin-bottom: 6px; }
.tm-pearls i { width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #E8E2DA 60%, #C9C0B4); box-shadow: 0 1px 2px rgba(60,50,40,.25); }
.tm-candlelight { background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(201,164,92,.28), transparent 70%); }
.tm-flame { width: 10px; height: 16px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 50% 75%, #F5C518, #E8862E 80%); box-shadow: 0 0 14px rgba(245,197,24,.65); margin-bottom: 2px; }
.tm-sky { background: linear-gradient(180deg, #DCE8F4 0%, var(--tm-bg) 75%); }
.tm-sky::before { content: ""; width: 46px; height: 12px; border-radius: 12px; margin-bottom: 6px;
  background: #fff; box-shadow: 18px -4px 0 -2px #fff, -16px -2px 0 -3px #fff; opacity: .9; }
.tm-pine { position: relative; }
.tm-pines { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 6px; }
.tm-pines i { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 20px solid #2F5D3A; }
.tm-pines i:nth-child(2) { border-bottom-width: 26px; border-left-width: 9px; border-right-width: 9px; }
.tm-pines i:nth-child(3) { border-bottom-width: 16px; }
.tm-vine .tm-grapes { display: grid; grid-template-columns: repeat(3, 9px); gap: 2px; justify-content: center; margin-bottom: 5px; }
.tm-vine .tm-grapes i { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #9C4A66, #6E1F35); }
.tm-vine .tm-grapes i:nth-child(5) { grid-column: 2; }

/* ---- Seating planner v2: palette sidebar + realistic furniture ---- */
.sp-app-sidebar { display: grid; grid-template-columns: 230px minmax(0, 1fr) 260px; gap: 14px; align-items: start; }
@media (max-width: 1100px) { .sp-app-sidebar { grid-template-columns: 1fr; } }
.sp-palette { padding: 14px; position: sticky; top: 14px; }
.sp-pal-title { font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #77687F); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.sp-pal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.sp-pal-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 7px;
  border: 1px solid #EDE2E8; border-radius: 12px; background: #fff; cursor: pointer; font-size: .7rem; font-weight: 600; color: #3B1F45;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), border-color .2s, box-shadow .2s; }
.sp-pal-item:hover { transform: translateY(-2px); border-color: #D81B60; box-shadow: 0 8px 18px rgba(59,31,69,.12); }
.sp-pal-item:active { transform: scale(.95); }
.sp-pal-item svg { width: 40px; height: 40px; }
.pi-top { fill: #FFF; stroke: #C9B8C6; stroke-width: 1.4; }
.pi-gold { fill: #FDF3E3; } .pi-purple { fill: #EBE4F3; } .pi-pink { fill: #FDF0F5; }
.pi-warm { fill: #FFF3D9; } .pi-blue { fill: #E9F0F5; } .pi-rose { fill: #F3E9EF; }
.pi-chair { fill: #D9CCD4; }
.pi-tile { fill: rgba(216,27,96,.12); }
.pi-dish { fill: #fff; stroke: #C9A45C; stroke-width: 1.2; }
.pi-bottle { fill: #7A6884; }
.pi-ribbon { fill: #D81B60; opacity: .55; }
.pi-line { fill: none; stroke: #7A6884; stroke-width: 1.6; stroke-linecap: round; }
.pi-line-b { fill: none; stroke: #3B1F45; stroke-width: 2.4; stroke-linecap: round; }
.sp-gen { display: flex; flex-direction: column; gap: 8px; }
.sp-gen-fixtures { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px; font-size: .78rem; }
.sp-gen-fixtures label { display: flex; gap: 5px; align-items: center; }
.sp-room-row { display: flex; gap: 6px; align-items: center; }
.sp-room-row input { width: 62px; }
.sp-pal-actions { display: flex; gap: 6px; margin-top: 12px; }

/* Realistic furniture on the canvas */
.sp-top { fill: #FFFDF9; }
.sp-top-ring { fill: none; stroke: rgba(122,104,132,.3); stroke-width: 0.08; stroke-dasharray: 0.28 0.2; }
.sp-centerpiece { fill: #E9BFD2; stroke: #D81B60; stroke-width: 0.06; }
.sp-chair-seat { fill: #FFFFFF; stroke: #B9A7B6; stroke-width: 0.07; }
.sp-chair-back { fill: #D9CCD4; }
.sp-seat { cursor: pointer; }
.sp-seat:hover .sp-chair-seat { stroke: #D81B60; stroke-width: 0.12; }
.sp-seat-full .sp-chair-seat { fill: #D81B60; stroke: #B01450; }
.sp-seat-full .sp-chair-back { fill: #B01450; }
.sp-seat-mine .sp-chair-seat { fill: #2E7D5B; stroke: #14683A; }
.sp-seat-mine .sp-chair-back { fill: #14683A; }
.sp-seat-free .sp-chair-seat { fill: #F3FBF6; stroke: #7BC29A; }
.sp-guestmap .sp-seat-free:hover .sp-chair-seat { fill: #D7F2E3; stroke: #2E7D5B; stroke-width: 0.14; }
.sp-curtain { fill: none; stroke: rgba(124,77,190,.4); stroke-width: 0.14; }
.sp-stage-edge { fill: rgba(124,77,190,.28); }
.sp-tile { fill: rgba(216,27,96,.07); }
.sp-cloth { fill: #FFF8EC; }
.sp-dish { fill: #FFFFFF; stroke: #C9A45C; stroke-width: 0.09; }
.sp-dish-knob { fill: #C9A45C; }
.sp-counter { fill: #EFE4D6; }
.sp-bottle { fill: #7A6884; }
.sp-stool { fill: #FFF; stroke: #B9A7B6; stroke-width: 0.08; }
.sp-door { fill: none; stroke: #2E7D5B; stroke-width: 0.14; stroke-dasharray: 0.3 0.22; }
.sp-door-sill { fill: #2E7D5B; opacity: .5; }
.sp-giftbox { fill: #FBEDF2; stroke: #D81B60; stroke-width: 0.08; }
.sp-ribbon { fill: rgba(216,27,96,.55); }
.sp-row-guide { fill: rgba(122,104,132,.2); }
.sp-guestmap { max-width: 620px; margin: 0 auto; display: block; }
.sp-app-tool { grid-template-columns: 230px minmax(0, 1fr); }
@media (max-width: 1100px) { .sp-app-tool { grid-template-columns: 1fr; } }

/* ---- Seating planner on mobile: palette becomes a swipeable strip ---- */
@media (max-width: 1100px) {
  .sp-palette { position: static; }
  .sp-pal-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 86px; grid-template-columns: none;
    overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; scrollbar-width: thin; }
  .sp-pal-item { min-width: 86px; }
  .sp-canvas { touch-action: none; }
  .sp-props { position: sticky; top: 0; z-index: 30; }
  .sp-props .chip, .sp-props button { min-height: 40px; min-width: 40px; }
  .sp-gen-fixtures { grid-template-columns: repeat(3, 1fr); }
  .sp-gen-fixtures label { min-height: 34px; }
}
@media (max-width: 640px) {
  .sp-pal-title { margin-top: 10px; }
  .sp-side { order: 3; }
  .sp-roster { max-height: 240px; overflow-y: auto; }
}

/* Seat booking: gender colors, reserved tables, legend */
.sp-seat-gf .sp-chair-seat { fill: #E05C8F; stroke: #B23A6C; }
.sp-seat-gf .sp-chair-back { fill: #B23A6C; }
.sp-seat-gm .sp-chair-seat { fill: #4C7FD8; stroke: #2F5AA8; }
.sp-seat-gm .sp-chair-back { fill: #2F5AA8; }
.sp-seat-gx .sp-chair-seat { fill: #8A7495; stroke: #6B5878; }
.sp-seat-gx .sp-chair-back { fill: #6B5878; }
.sp-seat-blocked .sp-chair-seat { fill: #E6E1E4; stroke: #C9C0C6; }
.sp-seat-blocked .sp-chair-back { fill: #C9C0C6; }
.sp-seat-blocked { cursor: not-allowed; }
.sp-reserved .sp-top, .sp-reserved .sp-shape { fill: #F5EFE6 !important; stroke: #C9A45C; stroke-dasharray: 0.4 0.25; }
.sp-label-reserved { fill: #A8894F; font-weight: 700; }
.sp-reserved-chip { background: #FDF3E3; border-color: #C9A45C; }
.seat-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: center; margin-top: 12px; font-size: .78rem; color: #77687F; }
.seat-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 5px; border: 1px solid transparent; }
.seat-legend .lg-free { background: #F3FBF6; border-color: #7BC29A; }
.seat-legend .lg-f { background: #E05C8F; }
.seat-legend .lg-m { background: #4C7FD8; }
.seat-legend .lg-x { background: #8A7495; }
.seat-legend .lg-mine { background: #2E7D5B; }
.seat-legend .lg-res { background: #F5EFE6; border-color: #C9A45C; }

/* Seat tooltip + guest-map parity with the planner */
.sp-tooltip { position: absolute; z-index: 90; display: none; transform: translate(-50%, -100%);
  background: #2A1630; color: #fff; font-size: .78rem; font-weight: 600; line-height: 1.3;
  padding: 6px 11px; border-radius: 9px; pointer-events: none; white-space: pre-line;
  box-shadow: 0 6px 18px rgba(42,22,48,.35); }
.sp-tooltip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: #2A1630; }
.sp-top { fill: #FFFCF4; }
.sp-top-ring { stroke: rgba(122,104,132,.35); stroke-dasharray: none; }
.sp-chair-seat { stroke: #A390A0; }
.sp-guestmap .sp-shape, .sp-guestmap .sp-top { filter: drop-shadow(0 0.18px 0.4px rgba(43,27,50,.3)); }
.sp-guestmap .sp-seat { cursor: default; }
.sp-guestmap .sp-seat-free { cursor: pointer; }

/* Wizard extras: music picker grid */
.music-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.music-opt { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; border: 1px solid #EDE2E8;
  border-radius: 12px; cursor: pointer; transition: border-color .18s, background .18s; }
.music-opt:hover { border-color: #D81B60; }
.music-opt:has(input:checked) { border-color: #D81B60; background: #FBEDF2; }
.music-opt span { font-size: .86rem; font-weight: 600; line-height: 1.25; }
.music-opt small { display: block; font-weight: 400; color: #77687F; }

/* ---- Mobile: header collapses to burger; nothing overflows the viewport ---- */
.nav-burger { display: none; }
@media (max-width: 700px) {
  .site-nav { gap: 10px; }
  .site-nav .nav-link { display: none; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border: 1px solid #EDE2E8; border-radius: 12px;
    background: #fff; font-size: 1.15rem; color: #3B1F45; cursor: pointer; }
  .site-nav.nav-open { position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
    flex-direction: column; align-items: stretch; gap: 0; background: #fff;
    border-bottom: 1px solid #EDE2E8; box-shadow: 0 18px 40px rgba(59,31,69,.14); padding: 8px 16px 16px; }
  .site-nav.nav-open .nav-link { display: block; padding: 13px 6px; border-bottom: 1px solid #F5EDF2; font-size: 1rem; }
  .site-nav.nav-open .btn { margin-top: 12px; text-align: center; }
  .site-nav.nav-open .nav-burger { position: absolute; top: -54px; right: 16px; }
  .site-header { position: relative; }
}
/* Planner grids: 1fr must never mean "at least content width" on phones */
@media (max-width: 1100px) {
  .sp-app-sidebar, .sp-app-tool { grid-template-columns: minmax(0, 1fr); }
  .sp-palette, .sp-main, .sp-side { min-width: 0; max-width: 100%; }
  .sp-pal-grid { max-width: 100%; }
}

/* Small-phone header + hero fine print */
@media (max-width: 700px) {
  .site-header .container > a svg, .site-header svg[aria-label="Cheervite"] { width: 150px !important; height: auto; }
  .hero-fine { flex-wrap: wrap; row-gap: 6px; }
}

/* ---- Mobile final polish ---- */
@media (max-width: 700px) {
  /* M1: template cards keep their proportions — no giant empty minis */
  .tpl-grid { grid-template-columns: 1fr; }
  .tpl-grid .tpl-card { max-width: 340px; margin: 0 auto; width: 100%; }
  /* M3: compact dashboard top menu */
  .app-topbar > a svg { width: 132px !important; height: auto; }
  .app-topbar nav { gap: 2px; }
  .app-topbar nav a { padding: 7px 8px; font-size: .8rem; gap: 4px; }
}
/* M7: the payment CTA reads as one confident line */
.btn-block { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }

/* Save toast */
.sp-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px); z-index: 95;
  color: #fff; font-weight: 600; font-size: .9rem; padding: 11px 22px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.sp-toast-show { opacity: 1; transform: translate(-50%, 0); }


/* Start-free button: text stays white always, including hover (mirrors live fix) */
.site-nav a.btn-primary, .site-nav a.btn-primary:hover, .site-nav a.btn-primary:focus,
.site-nav a.btn-primary:visited, .btn-primary, .btn-primary:hover { color: #fff !important; }
.btn-primary:hover { background: #C01555; }

/* Footer + admin: the white vertical lockup gets room to breathe */
.site-footer img[alt="Cheervite"] { height: 116px !important; width: auto !important; }
.admin-side .side-logo img { height: 96px !important; width: auto !important; }
.admin-topbar img { height: 44px !important; width: auto !important; }

/* AI floor-design overlay: visible for the whole generation */
.sp-ai-overlay { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center;
  background: rgba(255,249,245,.88); backdrop-filter: blur(3px); border-radius: inherit; }
.sp-ai-box { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 24px; color: #3B1F45; }
.sp-ai-spin { width: 40px; height: 40px; border-radius: 50%; border: 4px solid #F3D9E4; border-top-color: #D81B60; animation: sp-spin 0.9s linear infinite; }
@keyframes sp-spin { to { transform: rotate(360deg); } }
.sp-ai-step { color: #77687F; font-size: .88rem; min-height: 1.2em; }
.sp-ai-bar { width: 220px; height: 6px; border-radius: 99px; background: #F3D9E4; overflow: hidden; }
.sp-ai-bar i { display: block; height: 100%; width: 40%; border-radius: 99px; background: #D81B60; animation: sp-ai-slide 1.4s ease-in-out infinite; }
@keyframes sp-ai-slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }

/* Quick-start date field sits beside the description on wide screens */
.ai-qs-row input[type="date"] { flex: 0 0 auto; width: auto; min-width: 150px; padding: 12px 14px;
  border: 1.5px solid #EAD9E1; border-radius: 12px; font: inherit; color: #3B1F45; background: #fff; }
@media (max-width: 640px) { .ai-qs-row input[type="date"] { flex: 1 1 100%; } }

/* Inline AI spinner — every "AI is thinking" moment shows one */
.ai-spin-inline { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; border-radius: 50%;
  border: 2px solid #F3D9E4; border-top-color: #D81B60; animation: sp-spin 0.8s linear infinite; }
.ai-writer.ai-busy .ai-tone { opacity: .55; cursor: wait; }
.ai-status { font-weight: 600; }
