/* Davethane — site, panel and admin styles */
:root {
  /* Brand (from the Davethane logo) */
  --coral: #fc4d56;        /* logo "hane" + envelope: accents, decoration */
  --coral-light: #fd9a9e;  /* envelope light side */
  --brand: #de2c3a;        /* deeper coral (envelope flap): buttons, links — 4.6:1 with white text */
  --brand-dark: #bd2230;
  --brand-soft: #ffeced;
  --charcoal: #20262c;     /* logo "davet" */
  --gold: var(--coral);
  --bg: #faf8f8;
  --surface: #ffffff;
  --text: #20262c;
  --muted: #6b737c;
  --line: #ece6e6;
  --ok: #2f7d4f;
  --ok-soft: #e6f4ec;
  --err: #b3261e;
  --err-soft: #fdecea;
  --info-soft: #eef3fb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(32, 38, 44, .05), 0 8px 24px rgba(32, 38, 44, .06);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Fredoka', 'Inter', system-ui, sans-serif; /* display font, matches the logo's rounded type */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; font-size: clamp(1.6rem, 3vw, 2.1rem); }
code { background: #f3eeee; padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 28px; padding-bottom: 56px; min-height: 60vh; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.inline { display: inline; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 500;
  text-decoration: none; cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn:hover { border-color: #e0d6d6; background: #fffbfb; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-primary:disabled { opacity: .7; cursor: wait; }
.btn-sm { padding: 6px 12px; font-size: .875rem; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1eb956; border-color: #1eb956; color: #fff; }
.btn-ghost-danger { border-color: transparent; color: var(--err); background: transparent; }
.btn-ghost-danger:hover { background: var(--err-soft); border-color: transparent; }
.btn-danger { background: var(--err); border-color: var(--err); color: #fff; }

/* ---------- Header / footer ---------- */
.site-header { background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--charcoal); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; letter-spacing: -.01em; line-height: 1; }
.logo-img { height: 36px; width: auto; }
.logo-word { height: 27px; width: auto; margin-top: 4px; }
@media (max-width: 380px) { .logo-word { height: 22px; } .logo-img { height: 30px; } }
.wordmark b { font-weight: 600; color: var(--charcoal); }
.wordmark i { font-style: normal; font-weight: 600; color: var(--coral); }
.logo-badge { width: 32px; height: 32px; border-radius: 9px; }
.slogan { font-family: var(--serif); font-weight: 500; color: var(--coral); }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--text); }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 12px 16px 18px; border-bottom: 1px solid var(--line); gap: 6px; }
  .nav a:not(.btn) { padding: 10px 4px; }
  .nav-open .nav { display: flex; }
}
.site-footer { border-top: 1px solid var(--line); background: #ffffff; padding: 36px 0 20px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: flex-start; align-content: flex-start; max-width: 560px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.secure-pay { font-size: .85rem; color: var(--muted); }

/* ---------- Alerts / badges ---------- */
.alert { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; font-size: .95rem; border: 1px solid transparent; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-success { background: var(--ok-soft); color: #1e5535; border-color: #c7e6d3; }
.alert-error { background: var(--err-soft); color: #8a1c15; border-color: #f6c9c4; }
.alert-info { background: var(--info-soft); color: #23426e; border-color: #d4e0f3; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.badge-draft { background: #f1ecec; color: #6b737c; }
.badge-live { background: var(--ok-soft); color: var(--ok); }
.badge-off { background: var(--err-soft); color: var(--err); }
.badge-pending { background: #fff4dc; color: #8a5b00; }

/* ---------- Forms ---------- */
.form label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 14px; }
.form input:not([type=checkbox]):not([type=radio]):not([type=file]), .form textarea, .form select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px; font: inherit; font-weight: 400;
  color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 10px; transition: .15s;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(222, 44, 58, .12); }
.form input[type=file] { margin-top: 6px; font-size: .9rem; max-width: 100%; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: 4px; accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
.hint { display: block; color: var(--muted); font-size: .83rem; font-weight: 400; margin-top: 6px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 620px) { .row-3 { grid-template-columns: 1fr; } }

/* ---------- Auth ---------- */
.auth-main { padding: 40px 16px 60px; }
.auth-card { max-width: 420px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px; box-shadow: var(--shadow); }
.auth-page > .auth-card { margin-top: 40px; }
.auth-title { text-align: center; }
.checklist { list-style: none; padding: 0; margin: 0 0 20px; font-size: .92rem; }
.checklist li { padding: 4px 0 4px 26px; position: relative; }
.checklist li::before { position: absolute; left: 0; }
.checklist .ok::before { content: '✅'; }
.checklist .bad::before { content: '❌'; }
.checklist .warn::before { content: '⚠️'; }

/* ---------- Page heads / steps ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { margin: 0; }
.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 8px 0 0; flex-wrap: wrap; }
.steps li { font-size: .8rem; padding: 4px 12px; border-radius: 99px; background: #f1ecec; color: var(--muted); font-weight: 500; }
.steps li.active { background: var(--brand); color: #fff; }
.steps-center { justify-content: center; margin: 18px 0; }

/* ---------- Empty state / result ---------- */
.empty, .result-card { text-align: center; max-width: 560px; margin: 40px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 40px 28px; box-shadow: var(--shadow); }
.empty-icon, .result-icon { font-size: 2.6rem; margin-bottom: 8px; }
.result-card .share-box { margin: 18px 0 12px; }
.share-buttons { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.qr-box { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 24px 0 10px; text-align: left; flex-wrap: wrap; }
.qr { padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }

/* ---------- Invitation list (panel) ---------- */
.inv-list { display: grid; gap: 16px; }
.inv-item { display: grid; grid-template-columns: 140px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.inv-thumb { min-height: 150px; display: grid; place-items: center; padding: 10px; text-align: center; background: var(--inv-bg, #eee); }
.inv-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.inv-thumb-title { font-family: var(--inv-script, var(--serif)); color: var(--inv-accent, var(--brand)); font-size: 1.35rem; line-height: 1.2; }
.inv-item-body { padding: 16px 18px; min-width: 0; }
.inv-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.inv-top h3 { font-size: 1.1rem; margin: 0 0 4px; overflow-wrap: anywhere; }
.inv-item-body p { margin: 0 0 10px; }
.inv-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.share-box { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.share-input { flex: 1 1 220px; min-width: 0; padding: 7px 10px; border: 1px dashed var(--gold); border-radius: 8px; background: #fff7f7; font: inherit; font-size: .88rem; color: var(--text); }
.share-box.big .share-input { padding: 12px 14px; font-size: 1rem; }
@media (max-width: 560px) { .inv-item { grid-template-columns: 1fr; } .inv-thumb { min-height: 120px; max-height: 180px; } }

/* ---------- Editor ---------- */
.editor { max-width: 860px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 8px; margin-bottom: 18px; box-shadow: var(--shadow); }
.panel-title { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.panel-title .num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .8rem; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.theme-option { margin: 0 !important; cursor: pointer; position: relative; }
.theme-option input { position: absolute; opacity: 0; pointer-events: none; }
.theme-swatch { aspect-ratio: 3 / 4; border-radius: 12px; border: 2px solid transparent; overflow: hidden; display: grid; place-items: center; transition: .15s; box-shadow: 0 1px 3px rgba(0,0,0,.08); background: var(--inv-bg); background-image: var(--inv-pattern, none); }
.theme-option input:checked + .theme-swatch { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(222, 44, 58, .2); }
.theme-option input:focus-visible + .theme-swatch { outline: 2px solid var(--brand); outline-offset: 2px; }
.sw-inner { width: 80%; height: 82%; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; background: var(--inv-card); border: 1px solid var(--inv-line); color: var(--inv-text); padding: 6px; }
.sw-small { font-family: var(--inv-body); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--inv-muted); }
.sw-title { font-family: var(--inv-script); font-size: 1.25rem; line-height: 1.1; color: var(--inv-accent); }
.theme-meta { display: flex; flex-direction: column; padding: 6px 2px 0; font-size: .85rem; }
.theme-meta span { color: var(--muted); font-weight: 400; font-size: .75rem; }
.map-search { position: relative; display: flex; gap: 6px; margin-bottom: 10px; }
.map-search input { flex: 1; margin-top: 0 !important; }
.map-results { position: absolute; z-index: 1000; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); max-height: 280px; overflow: auto; }
.map-results li { padding: 9px 10px; border-radius: 7px; cursor: pointer; font-size: .88rem; }
.map-results li:hover, .map-results li:focus { background: var(--brand-soft); outline: none; }
.map-box { height: 340px; border-radius: 12px; border: 1px solid var(--line); z-index: 0; }
.photo-field { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 14px; flex-wrap: wrap; }
.photo-preview { width: 130px; height: 160px; border-radius: 12px; border: 1px dashed #e2d6d6; display: grid; place-items: center; overflow: hidden; background: #fbf7f7; color: var(--muted); font-size: .8rem; flex: none; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.music-list { display: grid; gap: 8px; margin-bottom: 14px; }
.music-item { display: flex !important; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin: 0 !important; font-weight: 400 !important; cursor: pointer; }
.music-item:has(input:checked) { border-color: var(--brand); background: #fff6f6; }
.music-item input { accent-color: var(--brand); }
.music-item span { flex: 1; }
.play-btn { border: 1px solid var(--line); background: #fff; border-radius: 99px; width: 34px; height: 34px; cursor: pointer; font-size: .8rem; color: var(--brand); flex: none; }
.music-upload { padding: 4px 4px 0 34px; }
.slug-field { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.slug-prefix { padding: 11px 4px 11px 12px; color: var(--muted); background: #f8f4f4; font-size: .9rem; white-space: nowrap; display: flex; align-items: center; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.slug-field input { border: 0 !important; margin: 0 !important; border-radius: 0 !important; box-shadow: none !important; min-width: 0; }
.editor-submit { display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 30%); z-index: 5; }

/* ---------- Preview bar & payment box (on invitation page) ---------- */
.is-preview { padding-top: 54px; }
.preview-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 2000; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 16px; background: #20262c; color: #fff; font-family: var(--font); font-size: .9rem; flex-wrap: wrap; }
.preview-bar .btn { color: var(--text); }
.preview-bar .btn-primary { color: #fff; }
.preview-bar-actions { display: flex; gap: 8px; }
.pay-box { max-width: 520px; margin: 28px auto 0; background: #fff; color: var(--text); border-radius: 20px; padding: 28px 24px; box-shadow: 0 10px 40px rgba(0,0,0,.15); font-family: var(--font); text-align: left; scroll-margin-top: 70px; }
.pay-box h2 { font-family: var(--serif); font-size: 1.5rem; }
.pay-line { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 14px 0; }
.pay-line strong { font-size: 1.2rem; white-space: nowrap; }
.pay-link { font-size: .9rem; overflow-wrap: anywhere; }
.pay-note { font-size: .82rem; color: var(--muted); text-align: center; margin: 12px 0 0; }
@media (max-width: 560px) { .is-preview { padding-top: 88px; } }

/* ---------- Landing ---------- */
.hero { position: relative; padding: 64px 16px 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.1; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero-slogan { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 500; font-size: 1.05rem; color: var(--brand); background: var(--brand-soft); padding: 6px 14px 6px 8px; border-radius: 99px; margin-bottom: 18px; }
.hero-slogan img { width: 26px; height: auto; }
.hero-visual { justify-self: center; position: relative; }
.hero-visual::before { content: ''; position: absolute; inset: -40px; background: radial-gradient(circle, rgba(252,77,86,.22), transparent 65%); z-index: -1; }
.hero-badge { position: absolute; right: -36px; top: 60px; width: 92px; filter: drop-shadow(0 10px 20px rgba(32,38,44,.15)); animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .hero-badge { animation: none; } }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-note { font-size: .88rem; color: var(--muted); margin-top: 14px; }
.hero-phone { margin: 0 auto; width: 280px; aspect-ratio: 9 / 18.5; border-radius: 38px; border: 10px solid #20262c; box-shadow: 0 30px 60px rgba(32,38,44,.25); overflow: hidden; position: relative; background: var(--inv-bg); background-image: var(--inv-pattern, none); }
.hero-phone .phone-card { position: absolute; inset: 16px; border-radius: 16px; background: var(--inv-card); border: 1px solid var(--inv-line); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 16px; color: var(--inv-text); font-family: var(--inv-body); }
.phone-card .k { font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--inv-muted); }
.phone-card .t { font-family: var(--inv-script); font-size: 2.3rem; color: var(--inv-accent); line-height: 1.05; }
.phone-card .d { font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; }
.phone-card .line { width: 60px; height: 1px; background: var(--inv-accent); opacity: .6; }
.phone-card .b { font-size: .75rem; padding: 7px 14px; border-radius: 99px; background: var(--inv-accent); color: var(--inv-on-accent); margin-top: 8px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 36px; text-align: center; } .hero p.lead { margin-left: auto; margin-right: auto; } .hero-cta { justify-content: center; } .hero-phone { width: 240px; } .hero-badge { right: -18px; width: 70px; } .hero-slogan { margin-left: auto; margin-right: auto; } }
.section { padding: 56px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 32px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.how-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.how-step .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; margin-bottom: 10px; }
.how-step h3 { font-size: 1.05rem; }
.how-step p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .how { grid-template-columns: 1fr; } }
.showcase { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.showcase .theme-swatch { cursor: default; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature b { display: block; margin-bottom: 4px; }
.feature span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.price-card { max-width: 420px; margin: 0 auto; text-align: center; background: var(--surface); border: 2px solid var(--brand); border-radius: 22px; padding: 32px 26px; box-shadow: var(--shadow); }
.price-card .amount { font-family: var(--serif); font-size: 3rem; color: var(--brand); font-weight: 600; line-height: 1; margin: 10px 0; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 24px; text-align: left; }
.price-card li { padding: 7px 0 7px 28px; position: relative; border-bottom: 1px solid var(--line); font-size: .95rem; }
.price-card li::before { content: '✓'; position: absolute; left: 4px; color: var(--ok); font-weight: 700; }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Static pages ---------- */
.prose { max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.prose h2 { font-size: 1.2rem; margin-top: 1.4em; }
.prose .placeholder-note { background: #fff4dc; border: 1px solid #f0d9a3; padding: 10px 14px; border-radius: 10px; font-size: .9rem; }

/* ---------- Admin ---------- */
.admin-body { background: #f6f4f4; }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-side { background: #20262c; color: #e6e9ec; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.admin-side .logo { margin: 0 6px 22px; }
.admin-side .wordmark b, .admin-top .wordmark b { color: #fff; }
.admin-side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: #c9cfd5; text-decoration: none; font-size: .94rem; margin-bottom: 2px; }
.admin-side nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-side nav a.active { background: var(--brand); color: #fff; }
.admin-side .side-foot { margin-top: 24px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.admin-main { padding: 28px; min-width: 0; }
.admin-top { display: none; }
@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: none; position: fixed; inset: 0 30% 0 0; z-index: 100; height: 100vh; }
  .admin-nav-open .admin-side { display: block; }
  .admin-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #20262c; color: #fff; position: sticky; top: 0; z-index: 90; }
  .admin-top .logo { font-size: 1.2rem; }
  .admin-top button { background: none; border: 0; color: #fff; font-size: 1.4rem; }
  .admin-main { padding: 18px 16px; }
}
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat .label { color: var(--muted); font-size: .85rem; }
.stat .value { font-size: 1.7rem; font-weight: 700; margin-top: 4px; }
.stat .sub { font-size: .8rem; color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; }
.card h2 { font-size: 1.1rem; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid #f1ebeb; vertical-align: middle; }
.table th { background: #faf7f7; font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table td .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters input, .filters select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; font: inherit; background: #fff; }
.filters input { min-width: 220px; flex: 1 1 220px; }
.pagination { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.bar-chart .bar { flex: 1; background: var(--brand-soft); border-radius: 6px 6px 0 0; position: relative; min-height: 2px; }
.bar-chart .bar span { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: .7rem; color: var(--muted); }
.bar-chart .bar b { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-size: .7rem; font-weight: 600; }
.bar-chart .bar.has { background: var(--brand); }

/* Footer brand */
.footer-logo { width: 190px; height: auto; margin-bottom: 6px; }

/* ---------- Discounts, referral, offers ---------- */
.offer-banner { background: #fff4e0; border: 1px solid #f6d79c; color: #6b4a00; padding: 10px 14px; border-radius: 12px; margin: 0 0 16px; font-size: .95rem; }
.hero .offer-banner { display: inline-block; }
.pay-lines { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 14px 0; padding: 6px 0; }
.pay-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .95rem; }
.pay-row.discount { color: var(--ok); }
.pay-row.total { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 10px; }
.pay-row.total strong { font-size: 1.25rem; }
.pay-row small { color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; margin-left: 6px; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85em; }
.code-box { margin: 0 0 14px; }
.code-box summary { cursor: pointer; color: var(--brand); font-weight: 500; font-size: .93rem; }
.code-form { display: flex; gap: 8px; margin-top: 10px; }
.code-form input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; text-transform: uppercase; letter-spacing: .06em; }
.refer-box { margin: 22px auto 10px; padding: 16px 18px; border-radius: 14px; background: var(--brand-soft); text-align: left; max-width: 460px; }
.refer-box p { margin: 6px 0 10px; color: var(--text); font-size: .93rem; }
.refer-card { background: linear-gradient(135deg, #fff, #fff4f4); border: 1px solid #f7d4d6; border-radius: var(--radius); padding: 20px 22px; margin-top: 26px; box-shadow: var(--shadow); scroll-margin-top: 80px; }
.refer-card h2 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 4px; }
.refer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.refer-code { display: inline-block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.3rem; font-weight: 700; letter-spacing: .12em; padding: 6px 14px; border-radius: 10px; background: #fff; border: 2px dashed var(--coral); color: var(--brand); margin: 6px 0 12px; }
.refer-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.refer-stats div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.refer-stats b { display: block; font-size: 1.3rem; color: var(--charcoal); }
.refer-stats span { font-size: .75rem; color: var(--muted); }
.credit-pill { display: inline-block; background: var(--ok-soft); color: var(--ok); padding: 3px 10px; border-radius: 99px; font-size: .85rem; font-weight: 600; }
@media (max-width: 700px) { .refer-grid { grid-template-columns: 1fr; } }
.pay-box a { color: var(--brand); }

/* ---------- Theme picker filters ---------- */
.theme-picker { margin-bottom: 14px; }
.tp-filters { display: grid; gap: 8px; margin-bottom: 16px; min-width: 0; }
.tp-search { width: 100%; max-width: 320px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; margin: 0 !important; }
.tp-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.tp-row::-webkit-scrollbar { height: 4px; }
.tp-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.tp-row-label { font-size: .8rem; color: var(--muted); align-self: center; flex: none; }
.tp-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 99px;
  border: 1px solid var(--line); background: #fff; color: var(--text); font: inherit; font-size: .88rem; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: .15s;
}
.tp-chip small { font-size: .72rem; color: var(--muted); font-weight: 600; }
.tp-chip:hover { border-color: var(--coral-light); }
.tp-chip.active { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.tp-chip.active small { color: rgba(255,255,255,.7); }
.tp-chip-sm { padding: 5px 11px; font-size: .8rem; }
.tp-row-style .tp-chip.active { background: var(--brand-soft); border-color: var(--coral); color: var(--brand); }
.theme-swatch { position: relative; }
.tp-new { position: absolute; top: 8px; right: 8px; z-index: 1; background: var(--brand); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 99px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.showcase-item { text-decoration: none; color: var(--text); }
.showcase-item:hover .theme-swatch { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(32,38,44,.12); }
.showcase .theme-swatch { transition: transform .2s, box-shadow .2s; }
.tp-empty { padding: 20px 0; text-align: center; }

@media (min-width: 761px) { .tp-row { flex-wrap: wrap; overflow: visible; } }

/* ---------- Language switcher ---------- */
.header-right { display: none; align-items: center; gap: 6px; }
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--text); background: #fff; user-select: none; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch[open] summary { border-color: var(--coral-light); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 160px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 100; }
.lang-menu a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text) !important; text-decoration: none; font-size: .92rem; }
.lang-menu a:hover { background: var(--brand-soft); }
.lang-menu a.active { font-weight: 600; color: var(--brand) !important; }
.lang-switch-mobile { display: none; }
@media (max-width: 760px) {
  .header-right { display: flex; }
  .lang-switch-mobile { display: block; }
  .lang-switch-desktop { display: none; }
}
.admin-side .lang-switch summary { background: transparent; color: #e6e9ec; border-color: rgba(255,255,255,.2); }
.admin-side .lang-menu { left: 0; right: auto; bottom: calc(100% + 6px); top: auto; }

/* ---------- Paid extras in the editor ---------- */
.feature-badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); vertical-align: middle; font-family: var(--font); }
.feature-badge.free { background: var(--ok-soft); color: var(--ok); }
.panel-title .feature-badge { margin-left: auto; }
.addon { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 14px; margin-bottom: 14px; }
.addon-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.addon-toggle { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fffbfb; }
.addon-toggle:has(input:checked) { border-color: var(--coral); background: #fff6f6; }
#location-fields { margin-top: 14px; }
.gallery-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin: 10px 0; }
.gallery-thumb { margin: 0 !important; position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #faf7f7; font-weight: 400 !important; }
.gallery-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-thumb .check { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; background: rgba(255,255,255,.9); font-size: .75rem; gap: 5px; display: flex; align-items: center; }
.gallery-thumb .check input { margin: 0; width: 14px; height: 14px; }
.gallery-thumb:has(input:checked) img { opacity: .35; filter: grayscale(1); }
.gallery-thumb.is-new { outline: 2px solid var(--coral); outline-offset: -2px; }
#gallery-count.over { color: var(--err); font-weight: 600; }
.voice-box { display: grid; gap: 12px; margin-bottom: 14px; }
.voice-existing { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.voice-existing audio, .rec-result audio { height: 38px; max-width: 100%; }
.recorder { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.recorder.disabled { opacity: .6; }
.rec-btn { flex: none; width: 58px; height: 58px; border-radius: 50%; border: 3px solid #f3d0d3; background: #fff; display: grid; place-items: center; cursor: pointer; transition: .15s; }
.rec-btn:hover { border-color: var(--coral); }
.rec-btn:disabled { cursor: not-allowed; }
.rec-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); transition: .15s; }
.rec-btn.recording { border-color: var(--brand); animation: recPulse 1.2s ease-in-out infinite; }
.rec-btn.recording .rec-dot { border-radius: 5px; width: 20px; height: 20px; }
@keyframes recPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(222,44,58,.35); } 50% { box-shadow: 0 0 0 10px rgba(222,44,58,0); } }
.rec-info { flex: 1; min-width: 0; }
.rec-status { font-size: .92rem; margin-bottom: 6px; }
.rec-meter { height: 6px; border-radius: 6px; background: #f1ecec; overflow: hidden; }
.rec-meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--coral), var(--brand)); transition: width .08s; }
.rec-time { font-size: .8rem; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.rec-result { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rec-error { color: var(--err); font-size: .9rem; margin: 0; }
.voice-upload summary { cursor: pointer; color: var(--brand); font-size: .9rem; }
.voice-upload input { margin-top: 8px; }
.price-bar { margin-right: auto; display: flex; align-items: baseline; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; box-shadow: var(--shadow); }
.price-bar-label { color: var(--muted); font-size: .9rem; }
.price-bar strong { font-size: 1.2rem; font-family: var(--serif); color: var(--charcoal); }
@media (max-width: 560px) { .editor-submit { flex-wrap: wrap; } .price-bar { width: 100%; justify-content: space-between; } }

/* Panel: extras used on each invitation */
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.feature-tag { font-size: .78rem; padding: 3px 9px; border-radius: 999px; background: #f3eefc; color: #5b3d8f; }
.feature-tag.pending { background: #fff3dc; color: #8a5a00; }

/* Landing: interactive price card */
.price-calc { max-width: 480px; }
.price-calc h2 { margin-bottom: 4px; }
.calc-base, .calc-opt { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; margin-top: 10px; }
.calc-base { background: #faf7f5; margin-top: 18px; }
.calc-base div, .calc-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.calc-base span, .calc-text span { font-size: .82rem; color: var(--muted); }
.calc-base strong, .calc-opt strong { white-space: nowrap; color: var(--brand); }
.calc-opt { cursor: pointer; transition: border-color .15s, background .15s; user-select: none; }
.calc-opt:hover { border-color: var(--brand); }
.calc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.calc-check { width: 22px; height: 22px; flex: none; border: 2px solid var(--line); border-radius: 7px; display: grid; place-items: center; transition: all .15s; }
.calc-opt.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); }
.calc-opt.on .calc-check { background: var(--brand); border-color: var(--brand); }
.calc-opt.on .calc-check::after { content: '✓'; color: #fff; font-size: .8rem; font-weight: 700; }
.calc-opt input:focus-visible + .calc-check { outline: 2px solid var(--brand); outline-offset: 2px; }
.calc-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 2px dashed var(--line); }
.calc-total span { font-weight: 600; }
.calc-total .amount { margin: 0; }
.amount.bump { animation: dvBump .3s ease; }
@keyframes dvBump { 50% { transform: scale(1.08); } }
.calc-total .amount { font-size: clamp(1.9rem, 7vw, 2.5rem); }
.calc-total .amount { padding-right: 4px; }
