/*! badcoder-undangan · (c) 2026 bad-coder.com · https://bad-coder.com */
/* CSS dasar semua tema undangan (dipakai bersama Tailwind) */
html { scroll-behavior: smooth; }
body.locked { overflow: hidden; }
.cover { position: fixed; inset: 0; z-index: 60; transition: transform .9s cubic-bezier(.7,0,.2,1), opacity .9s; }
.cover.opened { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .cover { transition: none; } }
.music-btn { position: fixed; right: 16px; bottom: 86px; z-index: 50; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 1.1rem; box-shadow: 0 6px 20px rgba(0,0,0,.18); cursor: pointer; }
.music-btn.playing i { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bottom-nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 12px; z-index: 50; display: flex; gap: 2px; padding: 6px; border-radius: 999px; box-shadow: 0 8px 30px rgba(0,0,0,.15); backdrop-filter: blur(12px); }
.bottom-nav a { display: grid; place-items: center; width: 52px; height: 44px; border-radius: 999px; font-size: 1.1rem; }
.bottom-nav a span { font-size: .55rem; margin-top: -4px; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 12px; top: 50%; } .lb-next { right: 12px; top: 50%; }
.preview-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 90; background: #13312f; color: #fff; text-align: center; font: 600 12px/1 system-ui, sans-serif; padding: 8px; }
.preview-bar a { color: #f3d48a; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 90; background: #111; color: #fff; padding: 10px 18px; border-radius: 999px; font: 500 13px system-ui, sans-serif; opacity: 0; transition: opacity .3s; pointer-events: none; }
.toast.show { opacity: 1; }
.qr-holder img, .qr-holder canvas { width: 180px !important; height: 180px !important; }

/* =========================================================
   Kerangka tema bersama (kelas t-*) — tema cukup mengganti variabel
   ========================================================= */
.t-body {
    --t-bg: #faf8f5; --t-page: #efe9e1; --t-surface: #ffffff; --t-alt: #f3eee7; --t-strong: #2b2b2b; --t-strong-text: #faf8f5;
    --t-text: #2b2b2b; --t-muted: #7a746c; --t-accent: #7d8c74; --t-btn: #2b2b2b; --t-btn-text: #faf8f5; --t-line: #e3ddd4;
    --t-display: Georgia, serif; --t-sans: system-ui, sans-serif; --t-heading: Georgia, serif;
    --t-radius: 24px; --t-photo-radius: 999px 999px 24px 24px;
    background: var(--t-page); color: var(--t-text); font-family: var(--t-sans);
}
.t-main { max-width: 28rem; margin: 0 auto; background: var(--t-bg); min-height: 100vh; padding-bottom: 7rem; position: relative; overflow: hidden; box-shadow: 0 0 60px rgba(0,0,0,.08); }
.t-cover { background: var(--t-bg); color: var(--t-text); }
.t-cover-photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .3; }
.t-cover-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, var(--t-bg) 92%); }
.t-sec { padding: 4rem 1.75rem; position: relative; }
.t-sec-alt { background: var(--t-alt); }
.t-sec-strong { background: var(--t-strong); color: var(--t-strong-text); }
.t-sec-strong .t-kicker { color: inherit; opacity: .7; }
.t-hero { padding-top: 4.5rem; }
.t-kicker { text-transform: uppercase; letter-spacing: .32em; font-size: .72rem; color: var(--t-muted); }
.t-kicker-sm { letter-spacing: .2em; font-size: .68rem; color: var(--t-accent); }
.t-opening { font-size: 1.05rem; margin-bottom: .75rem; color: var(--t-accent); }
.t-display { font-family: var(--t-display); line-height: 1.1; }
.t-display-xl { font-size: 3.4rem; } .t-display-lg { font-size: 3rem; } .t-display-md { font-size: 2.4rem; }
.t-amp { color: var(--t-accent); font-style: italic; }
.t-amp-big { font-size: 3.2rem; color: var(--t-accent); }
.t-date { letter-spacing: .2em; font-size: .85rem; text-transform: uppercase; color: var(--t-muted); }
.t-guest { font-family: var(--t-heading); font-size: 1.6rem; }
.t-title { font-family: var(--t-heading); font-size: 2.3rem; text-align: center; line-height: 1.15; }
.t-title-sm { font-size: 1.8rem; }
.t-name { font-family: var(--t-heading); font-size: 2.1rem; line-height: 1.15; }
.t-quote { font-family: var(--t-heading); font-size: 1.25rem; font-style: italic; line-height: 1.7; }
.t-muted { color: var(--t-muted); }
.t-accent { color: var(--t-accent); }
.t-divider { width: 60px; height: 1px; background: var(--t-accent); margin: 1.25rem auto; opacity: .8; }
.t-orn { display: flex; justify-content: center; margin: 1rem auto 1.5rem; color: var(--t-accent); }
.t-orn svg { width: 150px; height: auto; }
.t-photo-frame { width: 16rem; height: 20rem; margin: 2rem auto 0; overflow: hidden; border-radius: var(--t-photo-radius); }
.t-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.t-avatar { width: 9rem; height: 9rem; border-radius: 50%; object-fit: cover; margin: 0 auto; border: 6px solid var(--t-alt); }
.t-card { background: var(--t-surface); border-radius: var(--t-radius); padding: 1.75rem; border: 1px solid var(--t-line); }
.t-card-title { font-family: var(--t-heading); font-size: 1.9rem; line-height: 1.2; }
.t-card-title-sm { font-size: 1.45rem; }
.t-note { background: var(--t-alt); border-radius: var(--t-radius); padding: 1.25rem; }
.t-media { border-radius: calc(var(--t-radius) - 6px); }
.t-btn, .t-btn-ghost { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; padding: .8rem 1.6rem; font-size: .92rem; letter-spacing: .02em; transition: transform .2s, opacity .2s; cursor: pointer; }
.t-btn { background: var(--t-btn); color: var(--t-btn-text); border: 0; }
.t-btn:hover { transform: translateY(-1px); opacity: .92; }
.t-btn-ghost { border: 1px solid var(--t-line); color: var(--t-text); background: transparent; }
.t-btn-sm { padding: .5rem 1rem; font-size: .82rem; }
.t-cd { border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 20%, transparent); border-radius: 16px; padding: .9rem 0; }
.t-cd-num { font-family: var(--t-heading); font-size: 2.1rem; line-height: 1; }
.t-cd-lbl { font-size: .6rem; text-transform: uppercase; letter-spacing: .15em; opacity: .65; margin-top: .3rem; }
.t-timeline { position: relative; border-left: 1px solid var(--t-accent); margin-left: .75rem; display: grid; gap: 2rem; }
.t-timeline li { position: relative; padding-left: 1.5rem; }
.t-timeline li::before { content: ''; position: absolute; left: -7px; top: .45rem; width: 13px; height: 13px; border-radius: 50%; background: var(--t-accent); }
.t-field { width: 100%; border: 1px solid var(--t-line); background: var(--t-surface); color: var(--t-text); border-radius: 14px; padding: .8rem 1rem; outline: none; font: inherit; }
.t-field::placeholder { color: var(--t-muted); }
.t-field:focus { border-color: var(--t-accent); }
.t-choice { display: block; text-align: center; border-radius: 14px; border: 1px solid var(--t-line); background: var(--t-surface); padding: .75rem .25rem; transition: .2s; }
.peer:checked + .t-choice { background: var(--t-btn); color: var(--t-btn-text); border-color: var(--t-btn); }
.t-wish { display: flex; gap: .75rem; background: var(--t-surface); border: 1px solid var(--t-line); border-radius: 16px; padding: 1rem; }
.t-wish-ava { flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--t-alt); font-family: var(--t-heading); font-size: 1.1rem; }
[data-msg][data-ok="1"] { color: var(--t-accent); } [data-msg][data-ok="0"] { color: #e5484d; }
.t-closing { padding-bottom: 5rem; }
.t-credit { color: var(--t-muted); } .t-credit a { color: var(--t-accent); }
.t-nav { background: color-mix(in srgb, var(--t-surface) 88%, transparent); }
.t-nav a { color: var(--t-muted); } .t-nav a:hover { color: var(--t-text); background: var(--t-alt); }
.t-body .music-btn { background: var(--t-btn); color: var(--t-btn-text); }

/* ===== Bagian fitur Platinum & Diamond (dipakai semua tema) — bad-coder.com ===== */
.x-sec { padding: 3.5rem 1.5rem; }
.x-title { text-align: center; font-size: 1.6rem; line-height: 1.2; font-family: var(--t-heading, inherit); color: var(--t-accent, inherit); }
.x-muted { opacity: .75; }
.x-card { border-radius: 1.5rem; padding: 1.75rem 1.25rem; background: var(--t-surface, rgba(127,127,127,.08)); border: 1px solid rgba(127,127,127,.18); }
.x-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
         background: var(--t-btn, var(--t-accent, #0f766e)); color: var(--t-btn-text, #fff); text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.x-btn:hover { filter: brightness(1.06); }
.x-video { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 1.25rem; background: #000; }
.x-video video { width: 100%; height: 100%; object-fit: contain; }
.x-live-dot { display: inline-flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; padding: .35rem .8rem; border-radius: 999px; background: #dc2626; color: #fff; }
.x-live-dot span { width: .5rem; height: .5rem; border-radius: 50%; background: #fff; animation: xpulse 1.4s infinite; }
@keyframes xpulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }
.x-banner { position: relative; z-index: 5; margin: 0; padding: .75rem 1rem; text-align: center; font-size: .85rem; background: #1f2937; color: #f9fafb; }
