/* ===== Event Organizer — Panel Admin ===== */
:root {
    --primary: #6d28d9;
    --ink: #1c1530;
    --text: #3f3a4d;
    --muted: #7b7590;
    --bg: #f5f4f9;
    --card: #ffffff;
    --line: #e8e5f0;
    --primary-soft: color-mix(in srgb, var(--primary) 10%, white);
    --info: #2563eb; --warning: #d97706; --success: #059669; --danger: #e11d48;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Plus Jakarta Sans", system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.55; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3 { color: var(--ink); margin: 0 0 .6em; line-height: 1.25; }
.muted { color: var(--muted); }
img { max-width: 100%; }

/* Sidebar */
.sidebar { position: fixed; inset: 0 auto 0 0; width: 256px; background: #170f2b; color: rgba(255,255,255,.75); display: flex; flex-direction: column; z-index: 40; transition: transform .25s ease; overflow-y: auto; }
.side-brand { display: flex; gap: .7rem; align-items: center; padding: 22px 20px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.side-brand strong { display: block; font-size: .98rem; line-height: 1.2; }
.side-brand small { color: rgba(255,255,255,.55); font-size: .75rem; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), #f59e0b); color: #fff; font-size: 1.1rem; flex-shrink: 0; }
.side-nav { padding: 14px 12px 30px; display: flex; flex-direction: column; gap: 2px; }
.side-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.38); padding: 16px 12px 6px; font-weight: 700; }
.side-nav a { display: flex; align-items: center; gap: .75rem; padding: .62rem .85rem; border-radius: 10px; color: rgba(255,255,255,.75); font-weight: 500; }
.side-nav a i { font-size: 1.05rem; width: 20px; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.active { background: var(--primary); color: #fff; }
.pill { margin-left: auto; background: #f59e0b; color: #1c1530; font-size: .72rem; font-weight: 800; padding: .1em .6em; border-radius: 999px; }

.main { margin-left: 256px; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 28px; height: 64px; }
.page-title { font-size: 1.15rem; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-right form { margin: 0; }
.hello { color: var(--muted); font-size: .9rem; }
.menu-btn { display: none; }
.content { padding: 28px; max-width: 1280px; }
.backdrop { display: none; }

@media (max-width: 960px) {
    .sidebar { transform: translateX(-100%); }
    .side-open .sidebar { transform: none; }
    .side-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 35; }
    .main { margin-left: 0; }
    .menu-btn { display: grid; }
    .topbar { padding: 0 16px; }
    .content { padding: 18px 16px; }
    .hello { display: none; }
}

/* Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .62em 1.15em; border-radius: 10px; font: inherit; font-weight: 700; font-size: .9rem; border: 1px solid transparent; cursor: pointer; transition: .15s; white-space: nowrap; line-height: 1.2; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { filter: brightness(.92); }
.btn-light { background: #fff; color: var(--text); border-color: var(--line); }
.btn-light:hover { background: var(--bg); }
.btn-danger { background: #fff; color: var(--danger); border-color: #fecdd3; }
.btn-danger:hover { background: #fff1f2; }
.btn-success { background: #059669; color: #fff; }
.btn-wa { background: #25d366; color: #fff; }
.btn-sm { padding: .45em .8em; font-size: .82rem; }
.btn-block { width: 100%; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 1.3rem; cursor: pointer; place-items: center; color: var(--ink); }

/* Kartu & statistik */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2 { font-size: 1.05rem; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; gap: 14px; align-items: center; color: inherit; }
.stat:hover { border-color: var(--primary); }
.stat i { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.stat strong { display: block; font-size: 1.6rem; color: var(--ink); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .85rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* Tabel */
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #faf9fd; }
td .thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; display: block; }
td .thumb-ph { width: 64px; height: 48px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.actions { display: flex; gap: 6px; justify-content: flex-end; }
.actions form { margin: 0; }
.nowrap { white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.empty i { font-size: 2rem; display: block; margin-bottom: .4rem; opacity: .6; }

/* Badge */
.badge { display: inline-block; padding: .25em .7em; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.badge-info { background: #dbeafe; color: #1d4ed8; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-success { background: #d1fae5; color: #047857; }
.badge-danger { background: #ffe4e6; color: #be123c; }
.badge-muted { background: #f1f0f5; color: #6b6680; }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.form-grid .field { margin-bottom: 0; }
.field label { display: block; font-weight: 700; font-size: .85rem; color: var(--ink); margin-bottom: .35rem; }
.field input:not([type=checkbox]):not([type=file]):not([type=color]), .field select, .field textarea {
    width: 100%; padding: .65em .9em; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: .92rem; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field small { display: block; color: var(--muted); font-size: .78rem; margin-top: .3rem; }
.field input[type=color] { width: 60px; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: #fff; }
.check { display: flex; align-items: center; gap: .55rem; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.img-preview { max-width: 220px; max-height: 150px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: .6rem; display: block; object-fit: cover; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.req { color: var(--danger); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 18px; }
.filters .field { margin: 0; }
.filters input, .filters select { min-width: 140px; }
.status-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.status-tabs a { padding: .4em .9em; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text); font-size: .85rem; font-weight: 600; }
.status-tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 36px; height: 36px; padding: 0 10px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--text); font-weight: 600; font-size: .88rem; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

.detail { display: grid; grid-template-columns: 170px 1fr; gap: 0; font-size: .93rem; }
.detail dt { color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--line); }
.detail dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; word-break: break-word; }
@media (max-width: 520px) { .detail { grid-template-columns: 1fr; } .detail dt { border: 0; padding-bottom: 0; } }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs button { border: 0; background: none; font: inherit; font-weight: 700; color: var(--muted); padding: 12px 16px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }

.list-mini { list-style: none; margin: 0; padding: 0; }
.list-mini li { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.list-mini li:last-child { border-bottom: 0; }
.list-mini strong { color: var(--ink); display: block; }
.list-mini small { color: var(--muted); }

.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: .92rem; }
.alert-error { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

/* Halaman login */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(800px 400px at 80% 0%, color-mix(in srgb, var(--primary) 25%, transparent), transparent), #170f2b; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 20px; padding: 34px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.auth-card h1 { font-size: 1.5rem; margin-bottom: .2em; }
.auth-brand { display: flex; gap: .75rem; align-items: center; margin-bottom: 26px; }
.auth-brand strong { display: block; color: var(--ink); }
.auth-brand small { color: var(--muted); }
.auth-back { display: block; text-align: center; margin-top: 20px; font-size: .88rem; color: var(--muted); }

.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.grid-detail { grid-template-columns: 1.4fr 1fr; }
.grid-akses { grid-template-columns: 1fr 1.1fr; }
@media (max-width: 900px) { .grid-detail, .grid-akses { grid-template-columns: 1fr; } }

/* ===== Wizard editor undangan ===== */
.stepper { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 4px; scrollbar-width: none; scroll-margin-top: 76px; }
.stepper::-webkit-scrollbar { display: none; }
.stepper button { flex: 1 0 auto; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px 6px 6px; font: inherit; font-size: .85rem; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.stepper button b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--muted); font-size: .8rem; }
.stepper button.active { border-color: var(--primary); color: var(--primary); }
.stepper button.active b { background: var(--primary); color: #fff; }
.stepper button.done b { background: #d1fae5; color: #047857; }
.step-all { font-size: .82rem; font-weight: 500; color: var(--muted); margin: 0 0 12px; }
.step-title { font-size: 1.1rem; margin-bottom: .3rem; }
.step-help { font-size: .88rem; margin: 0 0 14px; }
.step { margin-bottom: 14px; }
.tampilan-grid { display: grid; grid-template-columns: minmax(170px, 220px) 1fr; gap: 24px; align-items: start; }
.color-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.color-pick { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .8rem; font-weight: 600; cursor: pointer; }
.color-pick input { width: 64px; height: 64px; border: 2px solid var(--line); border-radius: 16px; padding: 3px; background: #fff; cursor: pointer; }
.acara-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 1.4rem 0 .8rem; flex-wrap: wrap; }
.acara-head:first-of-type { margin-top: .4rem; }
.acara-head h3 { font-size: .98rem; margin: 0; color: var(--primary); }
.maps-help { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.rek-row { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr auto; gap: 8px; margin-bottom: 10px; align-items: center; }
.rek-row input { width: 100%; padding: .65em .8em; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.upload-box { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.upload-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 26px; border: 2px dashed var(--line); border-radius: 16px; color: var(--muted); font-weight: 600; cursor: pointer; text-align: center; }
.upload-drop i { font-size: 2rem; color: var(--primary); }
.upload-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.galeri-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.galeri-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.done-card { text-align: center; }
.done-card > i { font-size: 2.6rem; color: #059669; }
.done-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.wizard-bar { position: sticky; bottom: 10px; z-index: 20; display: flex; justify-content: space-between; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.3); margin-top: 10px; }
.wizard-bar .btn { min-height: 44px; }
.wizard-bar .btn-primary { flex: 1; max-width: 260px; }

/* ===== Ramah HP ===== */
@media (max-width: 700px) {
    .field input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]), .field select, .field textarea, .rek-row input { font-size: 16px; padding: .75em .9em; }
    .btn { min-height: 40px; }
    .tampilan-grid { grid-template-columns: 1fr; }
    #tplPreview { max-width: 200px; margin: 0 auto; }
    .tpl-pick-grid { max-height: none; grid-template-columns: repeat(2, 1fr); }
    .rek-row { grid-template-columns: 1fr 1fr; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
    .rek-row input:nth-child(2) { grid-column: 2; }
    .rek-row input:nth-child(3) { grid-column: 1; }
    .wizard-bar { bottom: 6px; padding: 8px; }
    .wizard-bar .btn span { display: none; }
    .content { padding-bottom: 30px; }
    /* Tabel jadi kartu */
    table.table-cards thead { display: none; }
    table.table-cards, table.table-cards tbody, table.table-cards tr, table.table-cards td { display: block; width: 100%; }
    table.table-cards tr { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
    table.table-cards td { border: 0; padding: 3px 0; max-width: none !important; }
    table.table-cards td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .8rem; }
    table.table-cards .actions { justify-content: flex-start; margin-top: 6px; flex-wrap: wrap; }
    .table-wrap:has(table.table-cards) { margin: 0; padding: 0; overflow: visible; }
}
.img-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: .4rem; }
.img-actions:empty { display: none; }

/* v1.5: angka rupiah di kartu statistik tidak terpotong; kartu kecil di dalam card */
.stat > div { min-width: 0; }
.stat strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: clamp(1.05rem, 1.6vw, 1.6rem); }
.card .stats { gap: 10px; }
.card .stat { padding: 12px 14px; }
.card .stat strong { font-size: 1.05rem; }
.card .stat span { font-size: .78rem; }
.card .stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; }
.card .stat strong { overflow: visible; text-overflow: clip; }
.btn[hidden], .ci-result[hidden] { display: none !important; }

/* Logo & favicon dari Pengaturan di panel */
.brand-mark.has-img { background: none; padding: 0; overflow: hidden; }
.brand-mark.has-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; }
.side-logo { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; min-width: 0; text-align: center; }
.side-logo img { display: block; max-width: 100%; max-height: 44px; width: auto; object-fit: contain; object-position: center; }
.side-logo small { color: rgba(255,255,255,.7); font-size: .88rem; font-weight: 600; letter-spacing: .04em; }
.auth-body { grid-template-rows: auto auto; align-content: center; gap: 22px; }
.auth-logo { display: block; text-align: center; }
.auth-logo img { max-height: 56px; max-width: min(80vw, 320px); width: auto; object-fit: contain; }

/* ===== Editor undangan: pratinjau HP langsung ===== */
.ed-layout { display: block; }
.ed-pv { display: none; }
.ed-pv-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; }
.ed-pv-status { margin-left: auto; font-size: .75rem; font-weight: 500; color: #6b7280; display: inline-flex; align-items: center; gap: 4px; }
.ed-pv-btn { border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 34px; height: 34px; cursor: pointer; color: inherit; display: grid; place-items: center; }
.ed-pv-btn:hover { background: #f4f2fa; }
.ed-pv-stage { position: relative; flex: 1; min-height: 0; display: flex; justify-content: center; }
.ed-phone {
    position: absolute; top: 0; left: 50%; width: 414px; height: 868px; padding: 12px; border-radius: 62px; transform-origin: top center;
    background: linear-gradient(145deg, #3a3542, #15121b 55%, #2b2732); box-shadow: 0 0 0 2px #4a4552, 0 30px 60px -24px rgba(0, 0, 0, .55);
}
.ed-screen { position: relative; width: 390px; height: 844px; border-radius: 50px; overflow: hidden; background: #fff; }
.ed-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; transition: opacity .15s; }
.ed-screen iframe.back { opacity: 0; pointer-events: none; }
.ed-island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 120px; height: 34px; border-radius: 20px; background: #000; z-index: 3; pointer-events: none; }
.ed-pv-note { font-size: .76rem; color: #6b7280; margin: 0; text-align: center; line-height: 1.45; }
/* Layar kecil–sedang: pratinjau sebagai lapisan penuh, dibuka dari tombol */
@media (max-width: 1279px) {
    .ed-pv.open { display: flex; flex-direction: column; gap: 10px; position: fixed; inset: 0; z-index: 1001; background: #f6f4fb; padding: 12px 14px 14px; }
    body.pv-open { overflow: hidden; }
}
/* Layar lebar: form di kiri, HP menempel di kanan */
@media (min-width: 1280px) {
    .ed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
    .ed-pv { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 14px; height: calc(100vh - 28px); max-height: 900px; }
    .ed-pv-close, .pv-bar-btn { display: none !important; }
}

/* ===== Geser & zoom foto ===== */
.pos-box { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; margin-top: 10px; padding: 12px; border: 1px dashed var(--line); border-radius: 14px; background: #faf9fd; }
.pos-box[hidden] { display: none; }
.pos-frame { position: relative; flex: none; overflow: hidden; background: #e9e6f2; cursor: grab; touch-action: none; user-select: none; outline: none; }
.pos-frame:focus-visible { box-shadow: 0 0 0 3px var(--primary); }
.pos-frame.dragging { cursor: grabbing; }
.pos-frame img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; max-width: none; }
.pos-frame.is-foto { width: 120px; height: 147px; border-radius: 999px 999px 14px 14px; }
.pos-frame.is-cover { width: 108px; height: 234px; border-radius: 18px; border: 3px solid #1d1824; }
.pos-hint { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); background: rgba(0, 0, 0, .55); color: #fff; font-size: .7rem; font-weight: 600; padding: .25em .6em; border-radius: 999px; white-space: nowrap; pointer-events: none; transition: opacity .2s; }
.pos-frame.dragging .pos-hint, .pos-frame.moved .pos-hint { opacity: 0; }
.pos-tools { display: flex; flex-direction: column; gap: 8px; min-width: 150px; flex: 1; }
.pos-tools strong { font-size: .86rem; }
.pos-tools small { color: #6b7280; font-size: .76rem; line-height: 1.4; }
.pos-tools .btn { align-self: flex-start; }
.pos-zoom { display: flex; align-items: center; gap: 8px; color: #6b7280; }
.pos-zoom input { flex: 1; min-width: 0; accent-color: var(--primary); }

@media (max-width: 560px) { .pv-bar-btn span { display: none; } }

/* Pilihan animasi galeri */
.anim-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.anim-opt { cursor: pointer; }
.anim-opt input { position: absolute; opacity: 0; pointer-events: none; }
.anim-opt span { display: flex; align-items: center; gap: 8px; padding: .65em .8em; border: 1px solid var(--line); border-radius: 12px; font-size: .86rem; font-weight: 600; background: #fff; transition: border-color .15s, background .15s; min-height: 44px; }
.anim-opt span i { color: var(--primary); font-size: 1.05rem; }
.anim-opt:hover span { border-color: var(--primary); }
.anim-opt input:checked + span { border-color: var(--primary); background: var(--primary-soft, #f1ebff); box-shadow: 0 0 0 2px var(--primary) inset; }
.anim-opt input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.notice-tf { margin: -.4rem 0 1rem; padding: 10px 12px; border-radius: 12px; background: #eef6ff; border: 1px solid #bfdbfe; color: #1e3a5f; font-size: .84rem; }
.notice-tf[hidden] { display: none; }

/* Posisi teks di atas foto sampul */
.pos-teks { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.pos-teks-opt { cursor: pointer; }
.pos-teks-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pos-teks-opt span { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; height: 100%; }
.pos-teks-opt i { grid-row: span 2; font-size: 1.3rem; color: var(--primary); }
.pos-teks-opt b { font-size: .86rem; }
.pos-teks-opt small { font-size: .74rem; color: #6b7280; line-height: 1.35; }
.pos-teks-opt input:checked + span { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary) inset; background: var(--primary-soft, #f1ebff); }
.pos-teks-opt input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Pilihan bingkai foto mempelai */
.bk-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.bk-opt { cursor: pointer; }
.bk-opt input { position: absolute; opacity: 0; pointer-events: none; }
.bk-opt span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; height: 100%; text-align: center; }
.bk-opt b { font-size: .72rem; font-weight: 600; line-height: 1.2; }
.bk-opt input:checked + span { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary) inset; background: var(--primary-soft, #f1ebff); }
.bk-opt input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.bk-shape { display: block; width: 38px; height: 46px; background: linear-gradient(160deg, #d9c9f5, #8b5cf6); position: relative; }
.bk-auto { border-radius: 8px; background: repeating-linear-gradient(45deg, #ede9fe 0 5px, #ddd6fe 5px 10px); }
.bk-tanpa { border-radius: 5px; }
.bk-lengkung { border-radius: 99px 99px 5px 5px; outline: 1.5px solid #8b5cf6; outline-offset: 2px; }
.bk-bulat { width: 42px; height: 42px; border-radius: 50%; outline: 1.5px solid #8b5cf6; outline-offset: 2px; }
.bk-oval { width: 36px; height: 48px; border-radius: 50%; outline: 1.5px solid #8b5cf6; outline-offset: 2px; }
.bk-kotak { border: 4px solid #fff; outline: 1px solid #8b5cf6; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.bk-emas { border-radius: 3px; outline: 1.5px solid #c9a24e; outline-offset: 2px; box-shadow: 0 0 0 5px #fff, 0 0 0 6px #c9a24e; }
.bk-polaroid { border: 4px solid #fff; border-bottom-width: 12px; rotate: -5deg; box-shadow: 0 3px 8px rgba(0, 0, 0, .25); }
.bk-bunga { width: 36px; height: 36px; border-radius: 50%; margin: 5px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #7c9a6e; }
.bk-kubah { border-radius: 50% 50% 4px 4px / 34% 34% 4px 4px; outline: 1.5px solid #8b5cf6; outline-offset: 2px; }
.bk-berlian { width: 44px; height: 44px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.bk-heksagon { width: 48px; height: 42px; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.bk-hati { width: 44px; height: 40px; clip-path: path("M22 40 C10 30 0 22 0 12.5 C0 5 6 0 12.5 0 C17 0 20.5 2.5 22 6 C23.5 2.5 27 0 31.5 0 C38 0 44 5 44 12.5 C44 22 34 30 22 40 Z"); }
.bk-organik { border-radius: 46% 54% 52% 48% / 58% 52% 48% 42%; outline: 1.5px solid #8b5cf6; outline-offset: 2px; }
.bk-film { border: 4px solid #111; border-left-width: 7px; border-right-width: 7px; border-radius: 2px; }

/* Dua versi undangan */
.dv-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
.dv-col { border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.dv-head { font-weight: 700; font-size: .9rem; margin-bottom: .6rem; display: flex; gap: 6px; align-items: center; color: var(--primary); }
.dv-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 6px; }
.dv-link { display: flex; gap: 6px; }
.dv-link input { flex: 1; min-width: 0; font-size: .8rem; padding: .45em .6em; border: 1px solid var(--line); border-radius: 8px; background: #faf9fd; }
.pv-dari { font: inherit; font-size: .75rem; padding: .3em .4em; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-left: auto; }
.pv-dari[hidden] { display: none; }
.pv-dari:not([hidden]) + .ed-pv-status { margin-left: 4px; }
@media (max-width: 760px) { .dv-cols, .dv-links { grid-template-columns: 1fr; } }

/* Pilihan bersegmen (dipakai di daftar tamu, dll.) */
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label { flex: 1; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: .55em .6em; font-size: .85rem; font-weight: 600; cursor: pointer; position: relative; background: #fff; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { border-color: var(--primary); color: var(--primary); background: var(--primary-soft, #f1ebff); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
