/* majlis.click — gaya halaman sistem (akaun, borang, papan pemuka) */
:root {
  --bg: #FAF7FC;
  --surface: #FFFFFF;
  --ink: #2A2233;
  --muted: #625A6E;
  --primary: #6D51A5;
  --primary-dark: #5A418F;
  --tint: #EFE8F8;
  --border: #E6DDF0;
  --danger: #A23B4E;
  --ok: #2F6B4F;
  --radius: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Figtree', system-ui, sans-serif; font-size: 16px; line-height: 1.5;
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1; width: 100%; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
h1, h2, .serif { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; }
h1 { font-size: clamp(32px, 6vw, 42px); line-height: 1.1; margin: 0 0 8px; overflow-wrap: anywhere; }
h2 { font-size: 26px; line-height: 1.2; margin: 0; }
.muted { color: var(--muted); }
.ink { color: var(--ink); }
.small { font-size: 14px; }
.center { text-align: center; }

/* ---------- Bar atas ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px; min-height: 64px; border-bottom: 1px solid var(--border); background: rgba(250,247,252,0.96);
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(6px);
}
.logo { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo span { color: #8A69B8; }
.topnav { display: flex; align-items: center; gap: 6px; }
.topnav .btn { white-space: nowrap; }
@media (max-width: 420px) {
  .topbar { padding: 10px 12px; gap: 8px; }
  .logo { font-size: 22px; }
  .topnav { gap: 2px; }
  .topnav .btn-sm { padding: 0 9px; font-size: 13px; }
}
@media (max-width: 340px) {
  .logo { font-size: 20px; }
  .topnav .btn-sm { padding: 0 7px; font-size: 12px; }
}
.foot { text-align: center; padding: 32px 20px; color: var(--muted); font-size: 14px; }
.flash {
  max-width: 720px; margin: 16px auto 0; width: calc(100% - 40px); padding: 12px 16px; border-radius: 12px;
  font-size: 15px; font-weight: 500; background: #E3F0E8; color: #1F5139; border: 1px solid #C5E0CF;
}
.flash-err { background: #F9ECEF; color: #7A2536; border-color: #EBC5CE; }

.wrap { max-width: 720px; margin: 0 auto; padding: 28px 20px 40px; }
.wrap-wide { max-width: 1040px; }
.wrap-narrow { max-width: 460px; }
@media (max-width: 380px) { .wrap { padding: 20px 14px 32px; } }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Butang ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--primary); color: #fff; font: 600 16px 'Figtree', sans-serif; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--tint); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--primary); padding: 0 12px; }
.btn-ghost:hover { background: var(--tint); color: var(--primary-dark); }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: #E3C3CB; }
.btn-danger-ghost:hover { background: #F9ECEF; color: var(--danger); }
.btn-block { width: 100%; }

/* ---------- Seksyen ---------- */
.section {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin-bottom: 16px;
}
@media (max-width: 380px) { .section { padding: 16px; } }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 999px; background: var(--tint); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.section-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.section-title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }

/* ---------- Borang ---------- */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .label { font-size: 14px; font-weight: 600; }
.field .hint, .hint { font-size: 13px; color: var(--muted); }
.req { color: var(--danger); }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=time], input[type=url], textarea, select {
  width: 100%; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid #D9CEE8; border-radius: 12px;
  background: #fff; color: var(--ink); font: 16px 'Figtree', sans-serif; -webkit-appearance: none; appearance: none;
}
input[type=date], input[type=time] { display: block; line-height: 1.5; }
input[readonly] { background: #F5F2F8; color: var(--muted); }
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
input[type=file] { font: 14px 'Figtree', sans-serif; max-width: 100%; }
.file-box {
  border: 1.5px dashed #CDBDE3; border-radius: 12px; padding: 16px; background: #FCFAFE;
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.preview { display: flex; flex-wrap: wrap; gap: 8px; }
.preview img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }

/* Fail sedia ada (mod edit) */
.existing { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.existing img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; }
.existing-audio audio { width: 100%; max-width: 320px; }
.existing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.thumb { display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.thumb .check { min-height: 32px; gap: 6px; }
.thumb:has(input:checked) { border-color: var(--danger); background: #FBF1F3; }
.thumb:has(input:checked) img { opacity: .45; }

.choice { display: flex; gap: 10px; flex-wrap: wrap; }
.choice label {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 12px; background: #fff; font-weight: 500; cursor: pointer;
}
.choice label:has(input:checked) { border-color: var(--primary); background: var(--tint); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; min-height: 44px; cursor: pointer; }
input[type=radio], input[type=checkbox] { accent-color: var(--primary); width: 18px; height: 18px; flex-shrink: 0; margin: 0; }

/* Baris berulang: butang buang sentiasa di kanan baris pertama */
.rows { display: flex; flex-direction: column; gap: 10px; }
.row {
  display: grid; gap: 8px; align-items: start; padding: 12px; border: 1px solid var(--border);
  border-radius: 12px; background: #FCFAFE; grid-auto-flow: row dense;
}
.row > .row-del { grid-row: 1; grid-column: -2 / -1; }
.row-1 { grid-template-columns: minmax(0, 1fr) 44px; }
.row-2 { grid-template-columns: 120px minmax(0, 1fr) 44px; }
.row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) 44px; }
.row-gift { grid-template-columns: repeat(2, minmax(0, 1fr)) 44px; }
.row-story { grid-template-columns: 100px minmax(0, 1fr) 44px; }
.row-story textarea { grid-column: 1 / 3; min-height: 64px; }
.row-note { grid-column: 1 / -1; font-size: 13px; color: var(--ok); font-weight: 500; }
@media (max-width: 600px) {
  .row-3, .row-gift { grid-template-columns: minmax(0, 1fr) 44px; }
  .row-3 > :not(.row-del), .row-gift > :not(.row-del):not(.row-note) { grid-column: 1; }
  .row-2 { grid-template-columns: 104px minmax(0, 1fr) 44px; }
  .row-story { grid-template-columns: 80px minmax(0, 1fr) 44px; }
}
@media (max-width: 360px) {
  .row-2 { grid-template-columns: minmax(0, 1fr) 44px; }
  .row-2 > :not(.row-del) { grid-column: 1; }
}
.row-del {
  width: 44px; height: 48px; border: none; border-radius: 10px; background: transparent; color: var(--muted);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.row-del:hover { background: #F6E9EE; color: var(--danger); }
.add-row { align-self: flex-start; margin-top: 6px; }

.slug-box { display: flex; align-items: stretch; border: 1px solid #D9CEE8; border-radius: 12px; overflow: hidden; background: #fff; }
.slug-box span { display: flex; align-items: center; padding: 0 12px; background: var(--tint); color: var(--muted); font-size: 14px; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.slug-box input { border: none; border-radius: 0; min-width: 0; }
.slug-box:focus-within { outline: 2px solid var(--primary); outline-offset: 1px; }
.slug-box input:focus { outline: none; }

.errors { background: #F9ECEF; border: 1px solid #EBC5CE; color: #7A2536; border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; }
.errors ul { margin: 6px 0 0; padding-left: 20px; }
.notice { background: var(--tint); border-radius: 12px; padding: 14px 18px; font-size: 14px; }

.sticky-submit {
  position: sticky; bottom: 0; z-index: 5; padding: 14px 0 calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 75%, rgba(250,247,252,0));
}
.submit-row { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }

/* ---------- Akaun ---------- */
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px 24px; margin-top: 8px; }
@media (max-width: 380px) { .auth-card { padding: 22px 16px; } }

/* ---------- Kad Saya ---------- */
.card-list { display: flex; flex-direction: column; gap: 0; }
.card-item { display: flex; flex-direction: column; gap: 12px; }
.card-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-item-title { min-width: 0; }
.card-item-title h2 { overflow-wrap: anywhere; }
.card-item-title p { margin: 4px 0 0; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 480px) {
  .card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-actions .inline-form, .card-actions form { display: contents; }
  .card-actions .btn { width: 100%; padding: 0 10px; }
  .card-actions .btn-wa { grid-column: 1 / -1; gap: 8px; }
}
.empty { text-align: center; padding: 40px 22px; }
.empty p { max-width: 400px; margin: 8px auto 20px; }

/* ---------- Pautan ---------- */
.done { text-align: center; }
.linkbox {
  display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 8px 8px 8px 16px; margin: 16px 0;
}
.linkbox code { flex: 1; min-width: 0; font-size: 15px; text-align: left; overflow-wrap: anywhere; font-family: inherit; font-weight: 600; }
.linkbox-sm { margin: 0; }
.linkbox-sm code { font-size: 14px; }
@media (max-width: 420px) {
  .linkbox { flex-wrap: wrap; padding: 12px; }
  .linkbox code { flex-basis: 100%; }
  .linkbox .btn { flex: 1; }
}
.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 420px) { .actions .btn { width: 100%; } }
.next-list { margin: 12px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Papan pemuka ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px; min-width: 0; }
.stat b { display: block; font-size: 30px; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }
.slot-bars { display: flex; flex-direction: column; }
.slot-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.slot-row:last-child { border-bottom: none; }
@media (max-width: 420px) { .slot-row { grid-template-columns: minmax(0, 1fr) auto; } .slot-row .muted { grid-column: 1; } }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.msg-cell { max-width: 300px; overflow-wrap: anywhere; }
.row-actions { white-space: nowrap; }
.row-actions .inline-form { display: block; }
/* Jadual RSVP menjadi senarai kad pada skrin kecil */
@media (max-width: 760px) {
  .rtable thead { display: none; }
  .rtable, .rtable tbody, .rtable tr, .rtable td { display: block; width: 100%; }
  .rtable tr { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; background: #FCFAFE; }
  .rtable td { border: none; padding: 4px 0; max-width: none; }
  .rtable td[data-label]:not([data-label="Name"])::before {
    content: attr(data-label); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600;
  }
  .rtable td[data-label="Name"] { font-size: 16px; }
  .rtable .row-actions { display: flex; gap: 16px; padding-top: 8px; border-top: 1px solid var(--border); margin-top: 6px; }
  .rtable .row-actions .inline-form { display: inline; }
}
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-yes { background: #E3F0E8; color: var(--ok); }
.pill-no { background: #F6E9EE; color: #7A3E57; }
.pill-muted { background: #EEEAF2; color: var(--muted); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.inline-form { display: inline; margin: 0; }
.link-btn {
  background: none; border: none; color: var(--primary); font: inherit; font-size: 14px; cursor: pointer;
  padding: 8px 0; min-height: 36px; text-decoration: underline;
}
.link-btn.danger { color: var(--danger); }
.gift-list { display: flex; flex-direction: column; }
.gift-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--border); }
.gift-row:last-child { border-bottom: none; }
.gift-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pill { white-space: normal; }

/* ---------- Laman utama ---------- */
.hero { text-align: center; padding: 56px 20px 40px; max-width: 660px; margin: 0 auto; }
.hero h1 { font-size: clamp(38px, 8vw, 56px); }
.hero em { color: var(--primary); }
.hero p { font-size: 18px; color: var(--muted); }

/* ---------- Premium & bayaran ---------- */
.pill-premium { background: #F3EAD6; color: #6B4E17; }
.pill-gold { background: #EADCFB; color: #2A2233; }
.pill-warn { background: #FBEFD9; color: #7A5212; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; }
.btn-premium { background: #2A2233; color: #FAF7FC; }
.btn-premium:hover { background: #3A3046; color: #fff; }
.btn-gold { background: #EADCFB; color: #2A2233; }
.btn-gold:hover { background: #fff; color: #2A2233; }
.lock-box {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 16px;
  border-radius: 14px; background: #FBF7EE; border: 1px solid #EADFC6; font-size: 14px;
}
.lock-box span:nth-child(2) { flex: 1; min-width: 180px; }
h2 .pill, label .pill { vertical-align: middle; font-family: 'Figtree', sans-serif; margin-left: 6px; }
.upgrade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
@media (max-width: 760px) { .upgrade { grid-template-columns: 1fr; } }
.feature-list { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feature-list li { padding-left: 26px; position: relative; }
.feature-list li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.price-box { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.price-now { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 48px; font-weight: 600; line-height: 1; }
.price-old { font-size: 20px; color: var(--muted); text-decoration: line-through; }
.promo-ok { margin: 0 0 12px; color: var(--ok); font-weight: 500; font-size: 14px; }
.inline-input { display: flex; gap: 8px; align-items: stretch; }
.inline-input input { flex: 1; }

/* ---------- Admin ---------- */
.admin-nav { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 64px; z-index: 15; }
.admin-nav-inner { max-width: 1040px; margin: 0 auto; padding: 0 12px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.admin-nav-inner::-webkit-scrollbar { display: none; }
.admin-nav a { flex-shrink: 0; padding: 14px 12px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.admin-nav a:hover { color: var(--ink); }
.admin-nav a.is-active { color: var(--primary); border-bottom-color: var(--primary); }
.admin-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-title h1 { margin: 0; }
.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .stats-3 { grid-template-columns: 1fr; } }
.admin-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 860px) { .admin-cols { grid-template-columns: 1fr; } }
.admin-cols .section { margin-bottom: 0; }
.mini-list { display: flex; flex-direction: column; }
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.mini-row:last-child { border-bottom: none; }
.mini-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.mini-row .right { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .03em; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.filter-bar input[type=search] { flex: 1 1 240px; }
.filter-bar select { flex: 0 1 180px; }
input[type=search] {
  width: 100%; min-width: 0; min-height: 44px; padding: 8px 14px; border: 1px solid #D9CEE8; border-radius: 12px;
  background: #fff; color: var(--ink); font: 16px 'Figtree', sans-serif; -webkit-appearance: none; appearance: none;
}
select { min-height: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.admin-list { display: flex; flex-direction: column; }
.admin-item { display: flex; flex-direction: column; gap: 12px; }
.admin-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.admin-item-main { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .admin-item-top { flex-direction: column; } .pills { justify-content: flex-start; } }
.inline-details { position: relative; }
.inline-details summary { list-style: none; }
.inline-details summary::-webkit-details-marker { display: none; }
.details-form { display: grid; gap: 10px; margin-top: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #FCFAFE; min-width: min(320px, 80vw); }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.tp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
@media (max-width: 700px) { .tp-grid { grid-template-columns: 1fr; } }
.tp-box { border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin: 0; display: grid; gap: 12px; min-width: 0; }
.tp-box legend { font-weight: 700; padding: 0 6px; }

/* ---------- Laman utama: pakej ---------- */
.eyebrow-app { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--muted); margin: 0 0 8px; }
.steps-band { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); }
.step-no { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 32px; font-weight: 600; color: #9B7CC4; line-height: 1; }
.pricing { padding-top: 56px; padding-bottom: 24px; }
.pricing-title { font-size: clamp(30px, 5vw, 42px); margin: 0 0 8px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 860px; margin: 28px auto 0; }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } .plan-premium { order: -1; } }
.plan { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 22px; background: #fff; border: 1px solid var(--border); }
.plan-premium { background: #2A2233; color: #FAF7FC; border-color: #2A2233; }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan-name { font-size: 19px; font-weight: 700; }
.plan-price { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 56px; font-weight: 600; line-height: 1; }
.plan-sub { color: #CFC6DA; }
.plan-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list svg { flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.plan-premium .plan-list svg { color: #EADCFB; }
.plan-list .is-no { color: var(--muted); }
.plan-list .is-no svg { color: #B3AABF; }
.cta-band { text-align: center; padding: 48px 20px; }
.cta-band h2 { font-size: clamp(28px, 5vw, 38px); margin-bottom: 8px; }

/* ---------- Halaman dasar (Terma / Privasi) ---------- */
.foot a { color: var(--muted); }
.legal h2 { font-size: 24px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal li { margin: 4px 0; }
.legal .updated { margin-bottom: 20px; }
.legal .legal-box { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin: 16px 0; }
.notice-warn { background: #FFF4DB; color: #5C4200; border: 1px solid #F1DDA8; }
.notice-warn a { color: #7A4E00; font-weight: 600; }
.edit-left { font-size: 13px; color: var(--muted); }

/* ---------- Pilihan tema (borang kad) ---------- */
.theme-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .theme-pick { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.tp-item { position: relative; display: flex; flex-direction: column; border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.tp-item[hidden] { display: none; }
.tp-item input { position: absolute; opacity: 0; pointer-events: none; }
.tp-item:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(109,81,165,0.18); }
.tp-item:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.tp-item:has(input:checked)::after {
  content: '✓'; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; z-index: 2;
}
.tp-shot { position: relative; display: block; aspect-ratio: 300 / 400; overflow: hidden; background: #F3EFF8; }
.tp-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; display: block; transition: transform .3s; }
.tp-item:hover .tp-shot img { transform: scale(1.03); }
.tp-shot .anim3d { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 12%; opacity: 0; transition: opacity .25s ease, transform .3s; pointer-events: none; }
.tp-shot .anim3d.is-on { opacity: 1; }
.tp-item:hover .tp-shot .anim3d { transform: scale(1.03); }
.tp-badge { position: absolute; left: 6px; bottom: 6px; font-size: 10.5px; padding: 2px 8px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.tp-private { position: absolute; left: 6px; bottom: 6px; font: 700 10.5px/1 var(--f-body, sans-serif); padding: 5px 8px; border-radius: 6px; color: #1E3366; background: linear-gradient(135deg, #F3E2B3, #C5A35C); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.tp-item.is-private .tp-shot { outline: 2px solid #C5A35C; outline-offset: 2px; }
.tp-3d { position: absolute; right: 6px; top: 6px; font: 700 10.5px/1 var(--f-body, sans-serif); letter-spacing: .06em; padding: 4px 7px; border-radius: 6px; color: #fff; background: linear-gradient(135deg, #2b2b2b, #5a4a2a); box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.s3d-field { margin-top: 14px; }
.tp-filter { display: flex; gap: 6px; overflow-x: auto; margin: 0 -4px 12px; padding: 2px 4px 4px; scrollbar-width: none; }
.tp-filter::-webkit-scrollbar { display: none; }
.tp-filter button { flex-shrink: 0; border: 1px solid var(--border); background: #fff; color: var(--ink); border-radius: 99px; padding: 7px 13px; font: 500 13.5px 'Figtree', sans-serif; cursor: pointer; }
.tp-filter button span { color: var(--muted); font-size: 12px; margin-left: 2px; }
.tp-filter button.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.tp-filter button.is-on span { color: rgba(255,255,255,.75); }
.tp-meta { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px 2px; }
.tp-meta strong { font-size: 14px; }
.tp-meta span { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
@media (max-width: 480px) { .tp-meta span { display: none; } .tp-meta { padding-bottom: 0; } }
.tp-demo { padding: 2px 10px 10px; font-size: 12px; font-weight: 600; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #8A2437; color: #fff; }
.details-danger[open] { flex-basis: 100%; }
.details-danger .details-form { border-color: #EBC5CE; background: #FDF6F7; }
.details-danger[open] { grid-column: 1 / -1; }
.card-actions details .details-form { display: grid; }
.card-actions details .details-form .btn { width: auto; }

/* ---------- Pilihan kesan animasi ---------- */
.fx-field { margin-top: 18px; }
.fx-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.fx-chip { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; min-width: 0; }
.fx-chip input { position: absolute; opacity: 0; pointer-events: none; }
.fx-chip:has(input:checked) { border-color: var(--primary); background: #F7F2FD; }
.fx-chip:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.fx-chip strong { display: block; font-size: 13.5px; }
.fx-chip small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.fx-chip > span:last-child { min-width: 0; }
.fx-ico { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; background: #F1EAFB; position: relative; overflow: hidden; }
.fx-ico::before, .fx-ico::after { content: ''; position: absolute; }
.fx-ico-auto { background: linear-gradient(135deg, #F4CFCF, #EBD8A8 50%, #C9D3BE); }
.fx-ico-petals::before { width: 12px; height: 7px; border-radius: 50% 50% 50% 0; background: #E9A5AE; left: 5px; top: 7px; transform: rotate(-25deg); }
.fx-ico-petals::after { width: 9px; height: 6px; border-radius: 50% 50% 50% 0; background: #F2C4C9; right: 5px; bottom: 7px; transform: rotate(30deg); }
.fx-ico-snow { background: #E7EEF7; }
.fx-ico-snow::before { width: 6px; height: 6px; border-radius: 50%; background: #fff; left: 7px; top: 8px; box-shadow: 10px 6px 0 -1px #fff, 3px 13px 0 1px #fff; }
.fx-ico-sparkle { background: #3B1420; }
.fx-ico-sparkle::before { width: 10px; height: 10px; left: 10px; top: 10px; background: #E9C66A; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.fx-ico-jasmine { background: #EEF2E8; }
.fx-ico-jasmine::before { width: 12px; height: 12px; left: 9px; top: 9px; background: #fff; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); filter: drop-shadow(0 0 0.5px #9AA890); }
.fx-ico-none::before { width: 16px; height: 2px; background: #B9AEC8; left: 7px; top: 14px; transform: rotate(-45deg); }
.fx-ico-leaves { background: #EDF2E6; }
.fx-ico-leaves::before { width: 13px; height: 7px; border-radius: 0 100% 0 100%; background: #9DB58A; left: 5px; top: 8px; transform: rotate(-20deg); }
.fx-ico-leaves::after { width: 10px; height: 6px; border-radius: 0 100% 0 100%; background: #C9B77E; right: 5px; bottom: 7px; transform: rotate(25deg); }
.fx-ico-paint { background: #FBF4F1; }
.fx-ico-paint::before { width: 16px; height: 14px; border-radius: 48% 52% 60% 40%; background: rgba(214,150,160,.45); left: 4px; top: 5px; }
.fx-ico-paint::after { width: 14px; height: 12px; border-radius: 55% 45% 40% 60%; background: rgba(150,176,214,.45); right: 4px; bottom: 5px; }
.fx-ico-butterflies { background: #FBEFF3; }
.fx-ico-butterflies::before { width: 9px; height: 11px; left: 6px; top: 9px; border-radius: 60% 20% 60% 60%; background: #EFA0B8; box-shadow: 9px 0 0 #C7B2E6; }
.fx-ico-butterflies::after { width: 2px; height: 10px; left: 14px; top: 10px; border-radius: 2px; background: #4A3A48; }
.fx-ico-stars { background: #1F2B45; }
.fx-ico-stars::before { width: 9px; height: 9px; left: 6px; top: 6px; background: #FFF3C4; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); box-shadow: none; }
.fx-ico-stars::after { width: 6px; height: 6px; right: 7px; bottom: 7px; background: #FFF3C4; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.fx-ico-bubbles { background: #EEF3FA; }
.fx-ico-bubbles::before { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #9DB7D4; left: 5px; top: 11px; }
.fx-ico-bubbles::after { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #C9B3EC; right: 6px; top: 6px; }
.fx-ico-confetti { background: #FFF7EC; }
.fx-ico-confetti::before { width: 6px; height: 4px; background: #F29BB4; left: 6px; top: 7px; transform: rotate(-20deg); box-shadow: 9px 3px 0 #7CC6C0, 3px 11px 0 #F4C95D, 13px 13px 0 #9CB6E8; }

/* Animation effect picker (builder form) */
.fx-field { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--border); gap: 6px; }
.fx-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fx-head .label { margin: 0; font-weight: 600; }
.fx-head .pill { flex-shrink: 0; }
.fx-hint { display: block; margin-bottom: 6px; line-height: 1.45; }
.fx-field .fx-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 6px; }
@media (max-width: 560px) { .fx-field .fx-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Mesej jemputan (kongsi) ---------- */
.share-box { display: flex; flex-direction: column; gap: 6px; }
.share-box textarea { min-height: 260px; font-size: 14.5px; line-height: 1.5; font-family: inherit; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.share-actions .btn { flex: 1 1 180px; }
.btn-wa { background: #1FA855; border-color: #1FA855; color: #fff; }
.btn-wa:hover { background: #178C46; border-color: #178C46; color: #fff; }

/* ---------- Suis bahasa ---------- */
.form-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.form-title h1 { margin-bottom: 4px; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: #fff; border: 1px solid var(--border); flex-shrink: 0; }
.lang-switch button { min-width: 44px; min-height: 34px; padding: 0 12px; border: none; border-radius: 999px; background: transparent; color: var(--muted); font: 700 13px 'Figtree', sans-serif; letter-spacing: .04em; cursor: pointer; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.is-active { background: var(--primary); color: #fff; }
.lang-switch button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- Senarai tetamu (urus.php) ---------- */
.g-funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 16px; }
.g-funnel > div { background: #FCFAFE; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; position: relative; }
.g-funnel b { display: block; font-size: 22px; line-height: 1.2; color: var(--ink); }
.g-funnel span { font-size: 12.5px; color: var(--muted); }
.g-funnel > div:not(:last-child)::after { content: '›'; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; z-index: 1; }
.g-tabs { margin-bottom: 12px; }
.gtable td { vertical-align: middle; }
.g-meta { margin-top: 3px; }
.g-meta:empty { display: none; }
.g-actions { white-space: nowrap; }
.g-actions .btn-wa { min-height: 34px; padding: 0 14px; }
.g-actions .btn-wa.is-done { background: #fff; color: #178C46; }
.g-actions .btn-wa.is-done::before { content: '✓ '; }
.g-add { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border); }
.g-add-one { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 10px; align-items: end; }
.g-add-one .field { margin: 0; }
.g-add-one .btn { height: 44px; }
.g-bulk { margin-top: 12px; }
.g-bulk summary { cursor: pointer; color: var(--primary); font-weight: 600; font-size: 14px; }
.g-bulk form { margin-top: 10px; }
@media (max-width: 640px) {
  .g-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-funnel > div::after { display: none; }
  .g-add-one { grid-template-columns: 1fr; }
  .g-actions { white-space: normal; align-items: center; flex-wrap: wrap; }
}
.g-actions > * { vertical-align: middle; margin-right: 14px; }
.g-actions > *:last-child { margin-right: 0; }
.g-actions .inline-form { display: inline-block; }
.gtable th:last-child, .gtable td.g-actions { text-align: right; }
@media (max-width: 640px) { .gtable td.g-actions { text-align: left; } .g-actions > * { margin-right: 0; } }

/* ---------- Alat hari majlis (urus.php) ---------- */
.ed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ed-card { border: 1px solid var(--border); border-radius: 14px; padding: 16px; background: #FCFAFE; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ed-wide { grid-column: 1 / -1; }
.ed-head { display: flex; gap: 12px; align-items: flex-start; }
.ed-head h3 { margin: 0 0 2px; font-size: 17px; }
.ed-head p { margin: 0; }
.ed-ico { flex: 0 0 38px; height: 38px; border-radius: 10px; background: var(--tint); color: var(--primary); display: grid; place-items: center; font-size: 18px; font-weight: 700; }
.ed-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; }
.ed-stat { font-size: 15px; }
.ed-stat b { font-size: 24px; }
.ed-bar { height: 8px; border-radius: 99px; background: #EEE7F6; overflow: hidden; }
.ed-bar i { display: block; height: 100%; background: var(--ok, #1F8A4C); border-radius: 99px; }
.ed-album { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ed-album figure { margin: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.ed-album img { width: 100%; height: 130px; object-fit: cover; display: block; }
.ed-album figure.is-hidden img { opacity: .35; }
.ed-album figcaption { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 6px 8px; flex-wrap: wrap; }
.ed-album figcaption > span:last-child { display: flex; gap: 10px; }
@media (max-width: 640px) { .ed-grid { grid-template-columns: 1fr; } }

/* ---------- Panduan (panduan.php) ---------- */
.gd { max-width: 860px; }
.gd-hero { text-align: center; margin: 8px 0 22px; }
.gd-hero h1 { margin: 6px 0 8px; }
.gd-hero p { max-width: 560px; margin: 0 auto; }
.eyebrow-sm { font-size: 12px; letter-spacing: .18em; font-weight: 700; color: var(--primary); }
.gd-toc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.gd-toc a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border: 1px solid var(--border); border-radius: 99px; background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.gd-toc a:hover { border-color: var(--primary); color: var(--primary); }
.gd-toc span { width: 24px; height: 24px; border-radius: 50%; background: var(--tint); color: var(--primary); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; }
.gd-sec { scroll-margin-top: 80px; }
.gd-sec h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gd-n { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-grid; place-items: center; font: 700 16px 'Figtree', sans-serif; flex-shrink: 0; }
.gd-steps { list-style: none; counter-reset: gd; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.gd-steps li { counter-increment: gd; position: relative; padding-left: 40px; }
.gd-steps li::before { content: counter(gd); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--tint); color: var(--primary); display: grid; place-items: center; font-size: 13.5px; font-weight: 700; }
.gd-steps strong { display: block; font-weight: 600; }
.gd-steps span { display: block; color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.gd-steps em, .gd-tip em, .gd-q em { font-style: normal; font-weight: 600; color: var(--ink); }
.gd-steps code { background: #F3EFF8; padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.gd-tip { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: #FBF6EA; border: 1px solid #F1E3BF; font-size: 14.5px; }
.gd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.gd-card { border: 1px solid var(--border); border-radius: 14px; padding: 16px; background: #FCFAFE; }
.gd-card h3 { margin: 0; font-size: 17px; }
.gd-q { border-bottom: 1px solid var(--border); padding: 12px 0; }
.gd-q summary { cursor: pointer; font-weight: 600; }
.gd-q p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }
.help-link { font-size: 13.5px; font-weight: 500; white-space: nowrap; }
@media (max-width: 640px) { .gd-cols { grid-template-columns: 1fr; } }

/* ---------- Halaman log masuk / daftar: hiasan bunga ---------- */
body.auth-page {
  background:
    radial-gradient(circle at 0 0, rgba(246,207,212,.55), transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(244,220,207,.6), transparent 42%),
    radial-gradient(circle at 100% 0, rgba(234,223,245,.55), transparent 34%),
    #FBF7F3;
  min-height: 100vh; position: relative; overflow-x: hidden;
}
body.auth-page::before, body.auth-page::after {
  content: ''; position: fixed; width: clamp(200px, 30vw, 360px); aspect-ratio: 1; pointer-events: none; z-index: 0;
  background: url('hiasan/bunga-sudut.svg') no-repeat center / contain;
}
body.auth-page::before { left: -18px; top: 40px; }
body.auth-page::after { right: -18px; bottom: -18px; transform: rotate(180deg); }
body.auth-page .topbar { background: rgba(251,247,243,.85); backdrop-filter: blur(8px); position: relative; z-index: 2; }
body.auth-page main, body.auth-page .foot { position: relative; z-index: 1; }
body.auth-page .wrap-narrow { padding-top: 56px; }
body.auth-page .auth-card {
  position: relative; background: rgba(255,255,255,.94); border: 1px solid #EFE2DC; border-radius: 22px;
  padding: 58px 30px 30px; box-shadow: 0 30px 70px rgba(150,95,105,.14), 0 2px 0 #fff inset; backdrop-filter: blur(4px);
}
body.auth-page .auth-card::before { content: ''; position: absolute; inset: 8px; border: 1px solid #F3E7E2; border-radius: 16px; pointer-events: none; }
.auth-sprig { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); width: 240px; height: 58px; background: url('hiasan/bunga-tangkai.svg') no-repeat center / contain; }
body.auth-page .auth-card h1 { text-align: center; font-size: 40px; font-weight: 500; color: #4A2F3E; margin-bottom: 4px; }
body.auth-page .auth-card > p.muted { text-align: center; }
body.auth-page .auth-card .btn:not(.btn-outline) { background: linear-gradient(135deg, #8A5A74, #5B3A5E); box-shadow: 0 10px 24px rgba(91,58,94,.25); }
body.auth-page .auth-card .btn:not(.btn-outline):hover { background: linear-gradient(135deg, #7A4D67, #4C2F50); }
body.auth-page .field input:focus { border-color: #B98A9C; box-shadow: 0 0 0 3px rgba(185,138,156,.18); }
@media (max-width: 560px) {
  body.auth-page::before { width: 190px; left: -40px; top: 44px; opacity: .9; }
  body.auth-page::after { width: 190px; right: -40px; bottom: -30px; opacity: .9; }
  body.auth-page .wrap-narrow { padding-top: 64px; }
  body.auth-page .auth-card { padding: 54px 20px 24px; }
}
.file-box.is-busy { opacity: .6; pointer-events: none; }

/* Borang: slot dengan had, soalan tersuai, pustaka lagu */
.row-slot { grid-template-columns: minmax(0, 1fr) 118px 44px; }
.row-q { grid-template-columns: minmax(0, 1fr) 140px; }
@media (max-width: 480px) {
  .row-slot { grid-template-columns: minmax(0, 1fr) 92px 44px; }
  .row-q { grid-template-columns: minmax(0, 1fr); }
}
.tracks { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 12px; }
.track { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; font-size: 14.5px; }
.track:has(input:checked) { border-color: var(--primary); background: #F7F2FC; }
.track input { margin: 0; flex-shrink: 0; }
.track-name { flex: 1; min-width: 0; }
.track-name small { color: var(--muted); font-size: 12px; margin-left: 4px; }
.track-play { width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--primary); font-size: 12px; cursor: pointer; flex-shrink: 0; }
.track-play.is-playing { background: var(--primary); color: #fff; border-color: var(--primary); }
.track-own { background: transparent; }
.ans { margin-top: 4px; font-size: 12.5px; }
.ans span { color: var(--muted); }
.notify-form { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.head-actions .inline-form { display: inline-flex; }
.feature-list-no { margin-top: 0; } .feature-list-no li { color: var(--muted); } .feature-list-no li::before { border: 0; width: 10px; height: 2px; background: var(--muted); transform: none; top: 11px; }

/* Jenis majlis */
.evtype-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin: 4px 0 16px; }
.evtype-bar > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.evtype-bar small { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.evtype-bar strong { font-size: 15.5px; }
.evtype-thumb { display: block; overflow: hidden; background: #F3EEE6; }
.evtype-bar .evtype-thumb { width: 38px; height: 50px; border-radius: 6px; border: 1px solid var(--border); flex: none; }
.evtype-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.evtype-change { position: relative; }
.evtype-change summary { list-style: none; cursor: pointer; }
.evtype-change summary::-webkit-details-marker { display: none; }
.evtype-change > div { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 30px rgba(42,34,51,.14); padding: 6px; display: flex; flex-direction: column; min-width: 230px; z-index: 20; }
.evtype-change > div a { padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 14.5px; }
.evtype-change > div a:hover { background: #F5EFFA; }
.evtype-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 16px; margin-top: 18px; }
.evtype-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.evtype-card:hover { border-color: var(--ink); box-shadow: 0 10px 24px rgba(42,34,51,.08); color: var(--ink); }
.evtype-card .evtype-thumb { aspect-ratio: 4 / 3.6; border-bottom: 1px solid var(--border); }
.evtype-card:hover .evtype-thumb img { transform: scale(1.02); }
.evtype-card .evtype-thumb img { transition: transform .3s; object-position: 50% 26%; }
.evtype-txt { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.evtype-card strong { font-size: 16px; }
.evtype-txt > span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.evtype-card em { font-style: normal; font-size: 12.5px; color: var(--ink); opacity: .75; margin-top: auto; padding-top: 8px; }
@media (max-width: 480px) {
  .evtype-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .evtype-txt { padding: 10px 11px 12px; }
  .evtype-card strong { font-size: 14.5px; }
  .evtype-txt > span { font-size: 12.5px; }
}


/* Akses tetamu: terbuka / intimate */
.access-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.access-opt { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 400; }
.access-opt:has(input:checked) { border-color: var(--primary); background: var(--tint); }
.access-opt input { margin-top: 2px; }
.access-opt > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.access-opt strong { font-size: 15px; }
.access-opt small { font-size: 13px; color: var(--muted); line-height: 1.45; }
.access-pin { margin-top: 14px; }
.access-pin[hidden] { display: none; }
.pin-row { display: flex; gap: 8px; align-items: center; }
.pin-row input { max-width: 160px; letter-spacing: .12em; }
@media (max-width: 480px) { .access-opts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Borang langkah demi langkah (wizard.js) ---------- */
.wz .wz-hide { display: none !important; }
.wz-intro { display: none; }
.wz .wz-intro { display: block; margin: 4px 2px 14px; }
.wz-intro h2 { font-size: 26px; margin: 0 0 4px; }
.wz-intro h2 .opt { font-family: 'Figtree', sans-serif; font-size: 14px; color: var(--muted); font-weight: 500; }
.wz-intro p { margin: 0; color: var(--muted); font-size: 14.5px; }
.wz-note { margin-top: 12px; }
.wz .section-head .step { display: none; }

.wz-nav { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; position: sticky; top: 0; z-index: 6; background: var(--bg); padding: 10px 0 8px; }
.wz-nav li { min-width: 0; }
.wz-nav button { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0; border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; text-align: left; }
.wz-nav button:disabled { cursor: default; }
.wz-nav button::before { content: ""; display: block; width: 100%; height: 4px; border-radius: 99px; background: var(--border); transition: background .2s; }
.wz-nav .is-done button::before, .wz-nav .is-cur button::before { background: var(--primary); }
.wz-nav .is-cur button { color: var(--ink); }
.wz-no { display: none; }
.wz-lbl { font-size: 12.5px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 380px) { .wz-lbl { font-size: 11.5px; } }

.wz-btns { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.wz-btns #wz-back[hidden] + #wz-next { grid-column: 1 / -1; }
.wz-btns [hidden] { display: none; }
.wz .sticky-submit:not(.wz-final) > :not(.wz-btns) { display: none; }
.wz.is-edit .wz-btns { display: none; }
.wz:not(.is-edit) .sticky-submit.wz-final { display: grid; grid-template-columns: 1fr 2fr; gap: 0 10px; }
.wz:not(.is-edit) .sticky-submit.wz-final .wz-btns { display: block; }
.wz:not(.is-edit) .sticky-submit.wz-final #wz-back { width: 100%; }
.wz:not(.is-edit) .sticky-submit.wz-final > p { grid-column: 1 / -1; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: #C0485F; box-shadow: 0 0 0 3px rgba(192,72,95,.14); }
.row input.is-invalid { border-color: #C0485F; box-shadow: 0 0 0 3px rgba(192,72,95,.14); } /* atur cara: nama acara tanpa masa */

/* Seksyen pilihan: boleh dilipat */
.section.fold { padding-top: 16px; padding-bottom: 16px; margin-bottom: 10px; }
.section.fold:not(.open) > :not(.section-head) { display: none; }
.section.fold .section-head { margin: 0; cursor: pointer; user-select: none; }
.section.fold.open .section-head { margin-bottom: 16px; }
.section.fold .section-head h2 { font-size: 20px; }
.section.fold .section-head p { font-size: 13px; }
.fold-chev { margin-left: auto; flex: none; width: 28px; height: 28px; border-radius: 99px; background: var(--tint); position: relative; }
.fold-chev::before { content: ""; position: absolute; left: 50%; top: 45%; width: 8px; height: 8px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: translate(-50%, -50%) rotate(45deg); transition: transform .2s; }
.section.fold.open .fold-chev::before { transform: translate(-50%, -25%) rotate(-135deg); }
.section.fold.has-data .section-head h2::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 99px; background: var(--primary); margin-left: 8px; vertical-align: middle; }

/* Pemilih tema lebih padat di telefon: tatal mendatar, 2 baris */
@media (max-width: 640px) {
  .theme-pick { grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-template-columns: none; grid-auto-columns: 40%; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -4px; padding: 2px 4px 10px; scrollbar-width: thin; }
  .tp-item { scroll-snap-align: start; }
  .tp-shot { aspect-ratio: 300 / 360; }
}

/* Pemilih kesan animasi lebih padat di telefon */
@media (max-width: 560px) { .fx-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .fx-chip { padding: 8px; gap: 6px; flex-direction: column; text-align: center; } .fx-chip small { display: none; } .fx-chip strong { font-size: 12.5px; } }

/* ---------- Akaun ---------- */
.acc .section { margin-bottom: 14px; }
.acc-h { font-size: 22px; margin: 0 0 14px; }
.acc-form { display: flex; flex-direction: column; gap: 14px; }
.acc-list { margin: 0; padding-left: 20px; color: var(--ink); font-size: 14.5px; line-height: 1.7; }
.acc-danger { border-color: #EBC5CE; }
.acc-danger .acc-h { color: var(--danger); }
.acc-del { margin-top: 16px; }
.acc-del summary { list-style: none; display: inline-flex; cursor: pointer; }
.acc-del summary::-webkit-details-marker { display: none; }
.acc-del[open] summary { display: none; }
.acc-del .acc-form { margin-top: 14px; padding: 16px; border-radius: 12px; background: #FBF3F5; }
.btn-danger:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Kad Saya ---------- */
.ks-links { display: flex; gap: 14px; margin: 6px 0 0; font-size: 14px; }
.ks-actions { align-items: center; }
.ks-more { position: relative; }
.ks-more summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.ks-more summary::-webkit-details-marker { display: none; }
.ks-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 190px; display: flex; flex-direction: column; padding: 6px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 14px 34px rgba(42,34,51,.14); }
.ks-menu a, .ks-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 500 14.5px 'Figtree', sans-serif; text-decoration: none; cursor: pointer; }
.ks-menu a:hover, .ks-menu button:hover { background: #F5EFFA; }
.ks-menu .is-danger { color: var(--danger); }
.ks-menu form { margin: 0; }
@media (max-width: 480px) {
  .card-actions.ks-actions .ks-more { display: block; }
  .card-actions.ks-actions .ks-more summary { width: 100%; justify-content: center; }
  .card-actions.ks-actions .ks-menu form { display: block; }
}

/* ---------- Kad diterbitkan (siap.php) ---------- */
.sp { max-width: 640px; }
.sp-hero { display: flex; align-items: center; gap: 18px; margin: 6px 0 18px; }
.sp-thumb { width: 84px; height: 112px; object-fit: cover; object-position: 50% 14%; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 10px 24px rgba(42,34,51,.1); flex: none; }
.sp-hero h1 { margin: 4px 0 4px; font-size: clamp(26px, 6vw, 34px); line-height: 1.1; }
.sp-ok { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 10px 4px 8px; border-radius: 99px; background: #E6F4EC; color: #1F7A45; font-size: 13px; font-weight: 600; }
.sp-step h2 { display: flex; align-items: center; gap: 10px; font-size: 21px; margin: 0 0 14px; }
.sp-no { width: 26px; height: 26px; border-radius: 99px; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 700 13px 'Figtree', sans-serif; flex: none; }
.sp-step .share-box textarea { min-height: 0; }
.sp-next h2 { font-size: 21px; margin: 26px 0 12px; }
.sp-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sp-tile { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.sp-tile svg { color: var(--primary); }
.sp-tile strong { font-size: 15.5px; }
.sp-tile span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.sp-tile:hover { border-color: var(--primary); box-shadow: 0 10px 24px rgba(42,34,51,.08); color: var(--ink); }
@media (max-width: 560px) {
  .sp-tiles { grid-template-columns: minmax(0, 1fr); }
  .sp-tile { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
  .sp-tile svg { grid-row: 1 / 3; }
  .sp-thumb { width: 64px; height: 86px; }
}

/* Suis paparan gambar tetamu (papan pemuka) */
.alb-vis { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 4px; }
.alb-vis-label { font-weight: 600; font-size: 14.5px; }
.switch { position: relative; flex: none; width: 46px; height: 26px; border-radius: 99px; border: 0; padding: 0; background: #CFC6DA; cursor: pointer; transition: background .2s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch.is-on { background: var(--primary); }
.switch.is-on span { transform: translateX(20px); }

/* Pilihan pakej (naik taraf) */
.up-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; margin: 6px 0 16px; }
.up-opt { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; }
.up-opt.is-on { border-color: var(--primary); background: var(--tint); }
.up-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #B9AEC8; flex: none; }
.up-opt.is-on .up-radio { border-color: var(--primary); box-shadow: inset 0 0 0 3px #fff; background: var(--primary); }
.up-name { flex: 1; font-weight: 600; }
.up-name em { font-style: normal; font-size: 11.5px; font-weight: 600; color: #8A6D1E; background: #F6EACB; border-radius: 99px; padding: 2px 8px; margin-left: 4px; white-space: nowrap; }
.up-price { font-weight: 700; }

/* ---------- Harga sebelum potongan & butang naik taraf ---------- */
.btn-upsell { background: #F6ECCF; color: #5A4210; border: 1px solid #E6D29A; }
.btn-upsell:hover { background: #F1E2B5; color: #3F2E08; }
.btn-upsell s, .btn s.btn-was, .up-price s { font-weight: 500; opacity: .6; margin-right: 2px; }
.pwas { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 2px; line-height: 1.2; }
.pwas s { font-size: 17px; font-weight: 600; color: var(--muted); text-decoration-thickness: 1.5px; text-decoration-color: #C2415B; }
.pwas em { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; background: #E6F4EC; color: #17663A; }
.pwas-save { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #E6F4EC; color: #17663A; vertical-align: middle; }
/* Dalam kad pelan laman utama */
.pwas-plan { margin: 8px 0 -2px; }
.pwas-plan s { font-family: 'Figtree', sans-serif; font-size: 18px; }
.plan-premium .pwas-plan s { color: #BFB2CF; text-decoration-color: #E9C46A; }
.plan-premium .pwas-plan em { background: rgba(233,196,106,.18); color: #F2D78E; }
/* Dalam tag harga hero */
.pwas-tag { display: inline-flex; vertical-align: middle; margin: 0 0 0 6px; gap: 6px; }
.pwas-tag s { font-family: 'Figtree', sans-serif; font-size: 15px; color: #BFB2CF; text-decoration-color: #E9C46A; }
.pwas-tag em { display: none; }
@media (max-width: 640px) {
  .card-actions .btn-upsell { grid-column: 1 / -1; order: 5; }
  .card-actions.ks-actions .ks-more { order: 6; grid-column: 1 / -1; }
}
.mail-tip { margin: 14px 0 0; }

/* ---------- Popup kod promo (halaman bayaran): kad kecil minimalis ---------- */
.wa-promo { position: fixed; z-index: 81; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); width: min(360px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--border);
  box-shadow: 0 14px 36px -10px rgba(42,34,51,.3); color: var(--ink); text-decoration: none;
  transform: translate(-50%, 16px); opacity: 0; transition: transform .3s ease, opacity .25s ease; }
.wa-promo.is-in { transform: translate(-50%, 0); opacity: 1; }
.wa-promo:hover { color: var(--ink); border-color: #BFE6CE; }
.wa-ico { width: 38px; height: 38px; border-radius: 99px; background: #25D366; color: #fff; display: grid; place-items: center; flex: none; }
.wa-ico svg { width: 22px; height: 22px; }
.wa-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.wa-txt b { font-size: 15px; }
.wa-txt small { font-size: 13px; color: var(--muted); }
.wa-x { width: 36px; height: 36px; border: 0; border-radius: 99px; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; flex: none; }
.wa-x:hover { background: var(--tint); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .wa-promo { transition: none; } }

/* ---------- Mod sokongan admin (edit kad pelanggan) ---------- */
.support-bar {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 16px; padding: 12px 14px;
  border-radius: 12px; background: #FCEBDD; border: 1px solid #EFC6A4; color: #5A2A0A; font-size: 14px; line-height: 1.45;
}
.support-bar strong { color: #7A3B12; }
.support-bar span { flex: 1 1 100%; color: #7A4A2A; font-size: 13px; }
.support-bar a { margin-left: auto; color: #7A3B12; font-weight: 600; }
.audit-log { margin-top: 10px; border-top: 1px dashed rgba(0,0,0,.12); padding-top: 8px; }
.audit-log summary { cursor: pointer; color: #7A3B12; font-weight: 600; }
.audit-log ul { margin: 8px 0 0; padding-left: 18px; }
.audit-log li { margin-bottom: 6px; }
.audit-ch { display: inline-block; margin-right: 10px; }
.audit-ch s { color: #9A8F88; }

/* ---------- Pratonton langsung borang kad (live.js) ---------- */
.live { display: none; }
.live-fab {
  position: fixed; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 16px 0 13px; border: 0; border-radius: 999px;
  background: #2A2233; color: #FAF7FC; font: 600 14px var(--f-body, inherit); cursor: pointer;
  box-shadow: 0 10px 28px rgba(42,34,51,.32), 0 2px 6px rgba(42,34,51,.2);
}
.live-fab:active { transform: scale(.97); }
.live-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.live-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: #2A2233; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3FAE6A; box-shadow: 0 0 0 0 rgba(63,174,106,.5); animation: liveDot 2s infinite; }
@keyframes liveDot { 70% { box-shadow: 0 0 0 7px rgba(63,174,106,0); } 100% { box-shadow: 0 0 0 0 rgba(63,174,106,0); } }
.live-close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #F1ECF5; color: #2A2233; cursor: pointer; }
.live-screen { position: relative; overflow: hidden; background: #F4F0F6; }
.live-screen iframe { position: absolute; left: 0; top: 0; border: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.live-screen iframe.is-on { opacity: 1; pointer-events: auto; }
.live-spin { position: absolute; right: 12px; top: 12px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(42,34,51,.15); border-top-color: #6E4FA6; opacity: 0; transition: opacity .2s; animation: liveSpin .8s linear infinite; }
.live.is-loading .live-spin { opacity: 1; }
@keyframes liveSpin { to { transform: rotate(360deg); } }
.live-note { margin: 10px 4px 0; font-size: 12px; color: #857A90; text-align: center; }

/* Telefon & tablet: helaian bawah bila butang ditekan */
@media (max-width: 1179px) {
  .live.is-open {
    display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 90; padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    background: rgba(28,22,34,.55); backdrop-filter: blur(2px);
  }
  .live.is-open .live-head { margin-top: auto; padding: 12px 14px; background: #fff; border-radius: 20px 20px 0 0; }
  .live.is-open .live-phone { height: min(78vh, 760px); background: #fff; }
  .live.is-open .live-screen { height: 100%; }
  .live.is-open .live-screen iframe { width: 100%; height: 100%; }
  .live.is-open .live-note { margin: 0; padding: 8px 12px 12px; background: #fff; border-radius: 0 0 20px 20px; }
  body.live-lock { overflow: hidden; }
}

/* Desktop: telefon melekat di sebelah kanan borang */
@media (min-width: 1180px) {
  .live-fab, .live-close { display: none; }
  body:has(.live) main.wrap, body.has-live main.wrap { margin-left: calc(50% - 570px); margin-right: 0; }
  .live {
    display: block; position: fixed; top: 92px; left: calc(50% + 190px); width: 380px; z-index: 4;
  }
  .live-head { width: 364px; margin: 0 auto; padding: 0 6px 10px; box-sizing: border-box; }
  .live-note { width: 364px; margin-left: auto; margin-right: auto; }
  .live-phone {
    width: 364px; margin: 0 auto; box-sizing: border-box;
    padding: 12px; border-radius: 44px; background: #1E1924;
    box-shadow: 0 30px 60px rgba(42,34,51,.25), 0 0 0 1px rgba(255,255,255,.06) inset;
  }
  .live-screen { --s: .8718; width: 100%; height: min(calc(100vh - 200px), 700px); border-radius: 32px; }
  .live-screen iframe { width: 390px; height: calc(100% / var(--s)); transform: scale(var(--s)); transform-origin: 0 0; }
}

/* ---------- Video Kenangan: panel selepas majlis (tab Video & edit dikunci) ---------- */
.mv-wrap { max-width: 860px; padding-top: 20px; padding-bottom: 48px; }
.mv-over h1 { margin: 0 0 6px; }
.mv-over p { margin: 0 0 18px; max-width: 620px; }
.mv-help { margin: 14px 2px 0; }
.mv-panel { display: flex; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: 0 1px 2px rgba(42,34,51,.04); }
.mv-panel.is-locked { background: linear-gradient(160deg, #FFFDF7, #FFF8E8); border-color: #EBD9A8; }
.mv-frame { position: relative; flex: none; width: 168px; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #2E2140; box-shadow: 0 14px 30px -14px rgba(42,34,51,.55); }
.mv-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mv-frame img.mv-blur { filter: blur(7px) saturate(1.1); transform: scale(1.18); }
.mv-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,26,0) 45%, rgba(20,14,26,.72) 100%); }
.mv-play { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 99px; background: rgba(255,255,255,.94); color: var(--primary); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.mv-play svg { margin-left: 3px; }
.mv-names { position: absolute; left: 10px; right: 10px; bottom: 26px; text-align: center; color: #fff; font: 600 19px/1.1 'Cormorant Garamond', Georgia, serif; overflow-wrap: anywhere; }
.mv-mark { position: absolute; left: 0; right: 0; bottom: 9px; text-align: center; color: rgba(255,255,255,.7); font-size: 10px; letter-spacing: .06em; }
.mv-body { flex: 1; min-width: 0; }
.mv-k { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #A0782A; }
.mv-body h2 { margin: 0 0 6px; font-size: 30px; }
.mv-t { margin: 0 0 12px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.mv-list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mv-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.mv-list svg { color: #1F8A4C; flex: none; margin-top: 2px; }
.mv-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.mv-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .mv-panel { flex-direction: column; align-items: stretch; padding: 18px; gap: 18px; }
  .mv-frame { width: 150px; align-self: center; }
  .mv-body h2 { font-size: 26px; }
  .mv-acts .btn { flex: 1 1 100%; }
}

/* ---------- Kod keselamatan (daftar / log masuk / lupa) ---------- */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cap-row { display: flex; align-items: center; gap: 8px; }
.cap-img { width: 170px; height: 56px; border-radius: 12px; border: 1px solid var(--border); background: #F4EEFA; flex: none; }
.cap-new { width: 56px; height: 56px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--primary); display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .3s; }
.cap-new:hover { background: var(--tint); }
.cap-new:active svg { transform: rotate(-180deg); transition: transform .3s; }
.cap-field input { letter-spacing: .3em; text-transform: uppercase; font-weight: 600; }
.cap-field input::placeholder { letter-spacing: normal; text-transform: none; font-weight: 400; }

/* ---------- Pengesahan log keluar ---------- */
.lo-dialog { border: 0; padding: 0; border-radius: 20px; width: min(360px, calc(100vw - 32px)); background: #fff; color: var(--ink); box-shadow: 0 24px 60px -12px rgba(20,14,26,.45); }
.lo-dialog::backdrop { background: rgba(20,14,26,.5); backdrop-filter: blur(2px); }
.lo-dialog[open] { animation: lo-in .2s ease-out; }
@keyframes lo-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.lo-box { padding: 26px 22px 20px; text-align: center; }
.lo-ico { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px; background: var(--tint); color: var(--primary); display: grid; place-items: center; }
.lo-box h2 { margin: 0 0 6px; font-size: 26px; }
.lo-box p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }
.lo-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lo-acts .btn { min-height: 46px; }
@media (prefers-reduced-motion: reduce) { .lo-dialog[open] { animation: none; } }

/* ---------- Kad Saya: senarai kad kemas (5 Okt 2026) ---------- */
.ks-list { display: flex; flex-direction: column; gap: 14px; }
.ks-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 2px rgba(42,34,51,.04); }
.ks-main { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; border-radius: 14px; margin: -4px; padding: 4px; }
.ks-main:hover { color: var(--ink); background: #FCFAFE; }
.ks-main:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ks-thumb { width: 64px; height: 124px; object-fit: cover; border-radius: 10px; flex: none; box-shadow: 0 6px 16px -6px rgba(42,34,51,.35); background: var(--tint); }
.ks-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ks-kicker { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ks-names { font: 600 25px/1.12 'Cormorant Garamond', Georgia, serif; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 1px 0 3px; }
.ks-meta { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ks-meta b { color: var(--primary); font-weight: 600; }
.ks-pills { margin-top: 6px; gap: 6px; }
.ks-chev { color: #B7ABC6; flex: none; }
.ks-stats { display: flex; gap: 8px; margin: 0; }
.ks-stats span { flex: 1; padding: 9px 12px; border-radius: 12px; background: #F8F5FB; font-size: 13px; color: var(--muted); }
.ks-stats b { display: block; font-size: 20px; line-height: 1.15; color: var(--ink); }
.ks-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: #F8F5FB; font-size: 13.5px; color: var(--muted); }
.ks-note.is-bad { background: #FBEDF0; color: #A23B4E; }
.ks-actions { display: flex; align-items: center; gap: 8px; }
.ks-primary { flex: 1; min-height: 46px; }
/* Draf belum diterbit (14 Okt 2026): jelas kelihatan + butang Terbit terus */
.ks-card.is-draft { border-color: #EBD9A8; box-shadow: 0 0 0 3px #FFF8E8; }
.ks-note.is-draft { background: #FFF6E2; color: #6B4A10; }
.ks-note.is-draft strong { color: #5A3C08; }
.ks-pubform { flex: 1; display: flex; margin: 0; }
.ks-pubform .ks-pub { width: 100%; }
.ks-pub[disabled] { opacity: .7; cursor: progress; }
.ks-ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 14px; background: #fff; color: var(--ink); cursor: pointer; list-style: none; text-decoration: none; transition: background .15s, border-color .15s; }
.ks-ico::-webkit-details-marker { display: none; }
.ks-ico:hover { background: var(--tint); border-color: #D9CEE6; color: var(--ink); }
.ks-ico.is-done { background: #1F8A4C; border-color: #1F8A4C; color: #fff; }
.ks-wa { color: #128C4A; }
.ks-more { position: relative; }
.ks-more[open] > .ks-ico { background: var(--tint); border-color: #D9CEE6; }
.ks-more .ks-menu { right: 0; top: calc(100% + 6px); min-width: 210px; }
.ks-left { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ks-up { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: linear-gradient(135deg, #FFF8E8, #FBEFD6); border: 1px solid #EBD9A8; color: #5A400E; text-decoration: none; font-size: 14.5px; font-weight: 600; }
.ks-up:hover { color: #3F2C08; border-color: #DCC184; }
.ks-up-star { width: 26px; height: 26px; border-radius: 99px; background: #E9C46A; color: #3F2C08; display: grid; place-items: center; font-size: 13px; flex: none; }
.ks-up-t { flex: 1; min-width: 0; }
.ks-up s { font-weight: 500; opacity: .6; margin: 0 2px; }
.ks-up svg { flex: none; opacity: .7; }
@media (min-width: 760px) {
  .ks-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
}
/* WhatsApp support bawah kad draf (Kad Saya, 14 Okt 2026) */
.wa-help { display: flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.wa-help-list { padding: 8px 12px; border-radius: 14px; background: #EEF8F1; border: 1px solid #CFEBD9; color: #2A2233; font-size: 13.5px; }
.wa-help-list:hover { background: #E3F4E9; color: #2A2233; }
.wa-help-list b { color: #14864A; font-weight: 700; }
.wa-help-ico { width: 34px; height: 34px; border-radius: 50%; background: #1FA855; color: #fff; display: grid; place-items: center; flex: none; }
.wa-help-t { flex: 1; min-width: 0; line-height: 1.35; overflow-wrap: anywhere; }
.wa-help-go { flex: none; color: #1A8A47; }
.wa-help-help { margin-top: 18px; padding: 12px 16px; font-size: 14.5px; }
.wa-help-help .wa-help-t { display: flex; flex-direction: column; }
.wa-help-help small { color: #4D6B58; font-size: 13px; }
.ks-links .ks-wa-link { color: #14864A; font-weight: 600; }

/* Tema Eksekutif: logo & warna syarikat dalam borang (15 Okt 2026) */
.brand-field { margin-top: 18px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: #FCFBFE; display: grid; gap: 8px; }
.brand-field[data-off] { display: none; }
.brand-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.brand-head .label { font-weight: 700; }
.brand-sub { font-weight: 600; font-size: 14px; margin-top: 8px; }
.brand-logo { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: start; margin-top: 4px; }
.brand-logo-prev { width: 132px; aspect-ratio: 1; border-radius: 14px; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--bp, #16285A) 70%, #fff 12%), var(--bp, #16285A)); display: grid; place-items: center; padding: 14px; position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.brand-logo-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-logo-prev span { color: rgba(255,255,255,.75); font-size: 12.5px; text-align: center; line-height: 1.3; }
.brand-logo-prev[data-lm="accent"] img, .brand-logo-prev[data-lm="white"] img { visibility: hidden; }
.brand-logo-prev[data-lm="accent"]::after, .brand-logo-prev[data-lm="white"]::after { content: ''; position: absolute; inset: 14px; -webkit-mask: var(--logo) no-repeat center / contain; mask: var(--logo) no-repeat center / contain; background: var(--ba, #C5A35C); }
.brand-logo-prev[data-lm="white"]::after { background: #fff; }
.brand-logo-in { display: grid; gap: 6px; min-width: 0; }
.brand-logo-in input[type="file"] { max-width: 100%; }
.brand-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-chip { position: relative; }
.brand-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.brand-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: 999px; font-size: 14px; background: #fff; }
.brand-chip input:checked + span { border-color: var(--primary); background: var(--tint); font-weight: 600; }
.brand-chip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.brand-pals { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.brand-pal { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; }
.brand-pal input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.brand-pal:has(input:checked) { border-color: var(--primary); background: var(--tint); }
.brand-pal:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.bp-dot { width: 30px; height: 30px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--c1) 0 55%, var(--c2) 55% 100%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.bp-name { font-size: 13.5px; line-height: 1.25; }
.brand-custom { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px dashed var(--border); }
.brand-custom[hidden] { display: none; }
.brand-custom label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.brand-custom input[type="color"] { width: 44px; height: 36px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: none; cursor: pointer; }
.brand-custom .hint { flex-basis: 100%; }
@media (max-width: 420px) { .brand-logo { grid-template-columns: 96px 1fr; } .brand-logo-prev { width: 96px; padding: 10px; } .brand-pals { grid-template-columns: 1fr 1fr; } }
.brand-logo-in label { white-space: normal; overflow-wrap: anywhere; }
.brand-logo-in input[type="file"] { width: 100%; min-width: 0; font-size: 13.5px; }
.brand-logo-in .opt { font-weight: 500; }

/* Borang: cara dapatkan link lokasi (29 Okt 2026) */
.loc-help { margin-top: 10px; padding: 10px 14px; border: 1px dashed var(--border); border-radius: 12px; background: var(--tint, rgba(0,0,0,.02)); font-size: 14px; }
.loc-help summary { cursor: pointer; font-weight: 600; color: var(--accent, inherit); list-style-position: inside; }
.loc-help ol { margin: 10px 0 6px; padding-left: 20px; display: grid; gap: 6px; line-height: 1.5; }
.loc-help p { margin: 0 0 4px; color: var(--muted); line-height: 1.5; }
