/* ==========================================================================
   BungaDigital — global tweaks layered on top of Tailwind CDN.
   Phase 1: minimal. The somber theme is mostly carried by Tailwind utilities.
   ========================================================================== */

:root {
    --navy-900: #0B1B2B;
    --gold-500: #C9A24A;
    --paper:    #FAFAF7;
    --cream: #F6F2EA;
    --cream-deep: #EDE7DA;
    --moss-500: #556B4C;
    --moss-600: #3F5438;
    --moss-700: #344830;
    --sage: #8B9B82;
    --hairline: #E2DDD2;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* Subtle premium texture behind hero */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(60rem 30rem at 80% -10%, rgba(201, 162, 74, 0.08), transparent 60%),
      radial-gradient(50rem 30rem at -10% 110%, rgba(11, 27, 43, 0.06), transparent 60%);
    z-index: -1;
}

/* Section divider used in future phases */
.divider-soft {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(11, 27, 43, 0.12), transparent);
}

/* Respect reduced-motion users */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Image ratio containers — independent of Tailwind CDN.
   ----------------------------------------------------------------------------
   Tailwind's CDN (cdn.tailwindcss.com) is a runtime JIT and can fail to load
   reliably on mobile networks / older mobile Safari, leaving aspect-[x/y]
   classes with no effect. These plain CSS rules use the universally-supported
   padding-bottom hack so almarhum/rumah-duka photos always render correctly,
   even when the Tailwind CDN is slow, blocked, or unreachable.

   We also force `display:block` on the surrounding photo-card anchor (via the
   `.foto-card` class) and on `.foto-ratio` itself, so an inline-collapsed
   parent (which happens when Tailwind's `block` utility never loads on
   mobile) cannot squeeze the ratio container down to zero width — which
   previously made every photo look "broken" on mobile.

   Markup contract:
     <a class="foto-card …"> <div class="foto-ratio foto-ratio-4-3"> <img …> </div> </a>
     <div class="foto-ratio foto-ratio-4-5"> <img …> </div>
     <div class="foto-ratio foto-ratio-4-3"> <div class="foto-fill">…</div> </div>
   ========================================================================== */
.foto-card { display: block; }
.foto-ratio {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    background: rgba(11, 27, 43, 0.05);
}
.foto-ratio-4-3 { padding-bottom: 75%; }
.foto-ratio-4-5 { padding-bottom: 125%; }

/* Foto mendiang di /detail/:slug (satu-satunya pemakai rasio 4:5).
   Padding-bottom hack menurunkan tinggi dari LEBAR, jadi di ponsel foto
   menjadi 125% lebar kartu (~440px di layar 390px) dan mendorong berita duka
   jauh ke bawah lipatan. Di layar kecil tingginya dikunci ke tinggi viewport
   supaya foto ikut ukuran layar, bukan ukuran lebar.

   padding-bottom WAJIB dinolkan lebih dulu: keduanya menambah tinggi. Tinggi
   eksplisit juga wajib karena seluruh anak .foto-ratio position:absolute —
   tanpa itu kotaknya kolaps ke 0. object-fit:cover di bawah menjaga foto
   tetap terisi penuh tanpa distorsi. */
@media (max-width: 640px) {
    .foto-ratio-4-5 {
        padding-bottom: 0;
        height: clamp(15rem, 125vw, 45vh);
    }
}
.foto-ratio > img,
.foto-ratio > .foto-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.foto-ratio > img { object-fit: cover; display: block; }
.foto-ratio > .foto-fill {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Mobile-resilient fallbacks for sender / brand logos.
   ----------------------------------------------------------------------------
   Sender logos in bunga.html, slideshow.html, pesan.html and rolling_credits
   rely on Tailwind utilities like `max-h-12` and `object-contain`. When
   Tailwind CDN fails, those become no-ops and a 5000px-tall PNG explodes the
   layout. The `.logo-pengirim` class encodes the same constraints in plain
   CSS so logos stay sane regardless of CDN state.
   ========================================================================== */
.logo-pengirim {
    display: block;
    max-height: 15vh;
    max-width: 15vw;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ==========================================================================
   Step 1 template gallery (pesan.html) — independent of Tailwind CDN.
   ----------------------------------------------------------------------------
   Mirrors the `.foto-ratio` strategy above: the whole gallery (grid, card,
   4:3 frame, hover/selected states) is encoded in plain CSS so the 20
   template cards still render correctly when the Tailwind CDN is slow,
   blocked, or unreachable on mobile.

   Markup contract:
     <div class="tpl-grid">
       <label class="tpl-card …"> <input type="radio" …>
         <div class="tpl-frame"> <img …> </div>
         <div class="tpl-meta">
           <span class="tpl-num">01</span>
           <span class="tpl-name"><span class="tpl-title">…</span><small>…</small></span>
           <span class="tpl-tag">…</span>
         </div>
       </label>
     </div>
   ========================================================================== */
.tpl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: 20px;
}
.tpl-card {
    display: block;
    cursor: pointer;
    background: #FFFFFF;
    border: 2px solid rgba(11, 27, 43, 0.10);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
/* Hide the radio without relying on Tailwind's `sr-only` utility. */
.tpl-card > input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.tpl-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-500);
    box-shadow: 0 14px 34px rgba(11, 27, 43, 0.18);
}
/* Selected state fallback (progressive enhancement — Alpine also applies
   Tailwind classes when the CDN is available). */
.tpl-card:has(input[type="radio"]:checked) {
    border-color: var(--gold-500);
    box-shadow: 0 14px 34px rgba(11, 27, 43, 0.22);
}
/* Extra fallback for browsers WITHOUT :has() support (older mobile Safari):
   the checked radio is the first child of the card, so a sibling selector
   can reach the frame and draw a gold outline around the artwork. */
.tpl-card > input[type="radio"]:checked ~ .tpl-frame {
    outline: 2px solid #C9A24A;
    outline-offset: -2px;
}
.tpl-frame {
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 75%;      /* 4:3 ratio — padding-bottom hack */
    overflow: hidden;
    background: rgba(11, 27, 43, 0.06);
}
.tpl-frame > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tpl-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}
.tpl-num {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--gold-500);
    font-size: 1.2rem;
    font-weight: 500;
    min-width: 2rem;
    line-height: 1;
}
.tpl-name {
    flex: 1;
    min-width: 0;
    display: block;
    font-size: 1rem;
    color: var(--navy-900);
}
.tpl-title { display: block; }
.tpl-name small {
    display: block;
    color: rgba(11, 27, 43, 0.55);
    font-size: 0.85rem;
    margin-top: 2px;
}
.tpl-tag {
    flex: 0 0 auto;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy-900);
    background: var(--paper);
    border: 1px solid rgba(201, 162, 74, 0.5);
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
}

/* ==========================================================================
   Full-width page containers — independent of Tailwind CDN.
   ----------------------------------------------------------------------------
   All outer page/header/footer containers (max-w-4xl … max-w-7xl) should
   stretch to the full viewport width instead of being capped. They all
   come from views/layouts/main.html and views/pages/*.html; the fullscreen
   layout (slideshow, rolling credits, bunga) does NOT load this file, so
   these rules cannot affect those pages.

   Why doubled-class selectors (.max-w-4xl.max-w-4xl):
   Tailwind CDN injects its stylesheet at runtime via a <style> tag that
   appears AFTER this <link>, so same-specificity rules there win by source
   order. Doubling the class raises specificity without !important, which we
   deliberately avoid so future, more targeted overrides stay possible.

   Deliberately untouched: max-w-3xl and below — those wrap narrow
   single-column pages that must stay narrow: login (max-w-md), account
   (max-w-xl), rekening / venue edit / error (max-w-3xl). Note that the
   owner payout detail page uses max-w-4xl, so it intentionally goes
   full-width like the other owner pages.

   Markup contract:
     <section class="max-w-6xl mx-auto px-5 …">   ← outer page container
     <div class="max-w-7xl mx-auto px-6 py-10">   ← outer page container
   ========================================================================== */
.max-w-4xl.max-w-4xl,
.max-w-5xl.max-w-5xl,
.max-w-6xl.max-w-6xl,
.max-w-7xl.max-w-7xl {
    max-width: none;
    padding-inline: clamp(1.25rem, 5vw, 4.5rem);
}

/* Anti-overflow guards: removing the width caps means oversized media can
   now push the page horizontally, so keep the viewport clipped and shrink
   media to fit. These rules do not depend on Tailwind CDN at all. */
html, body { overflow-x: clip; }
img, video, svg, canvas { max-width: 100%; }
/* Horizontal scroll regions (e.g. wide tables) must keep scrolling. */
.overflow-x-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
/* Long unbroken strings (emails, account numbers) in tables must wrap. */
td, th { overflow-wrap: break-word; }

/* ==========================================================================
   Evermore public components — CDN-independent.
   These rules do NOT depend on Tailwind CDN; they provide the structural
   layout for the warm-cream "evermore" design so pages work even when the
   CDN is blocked on mobile.
   ========================================================================== */

/* --- Hero band ---------------------------------------------------------- */
/* Markup contract:
     <section class="ev-hero">
       <img class="ev-hero-media" src="..." alt="" width="1792" height="1024" ...>
       <div class="ev-hero-inner"> … text content … </div>
     </section>                                                              */
.ev-hero {
    position: relative;
    background: var(--cream);
    overflow: hidden;
}
.ev-hero-inner {
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 5vw, 4.5rem);
    padding-block: clamp(3rem, 7vw, 5rem);
    position: relative;
    z-index: 1;
}
.ev-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}
.ev-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        to right,
        var(--cream) 0%,
        rgba(246, 242, 234, 0.92) 40%,
        transparent 72%
    );
    pointer-events: none;
}
@media (max-width: 1023px) {
    .ev-hero-media { opacity: 0.18; }
}

/* --- Card --------------------------------------------------------------- */
.ev-card {
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: 1rem;
    padding: 1.25rem;
}

/* --- List row ----------------------------------------------------------- */
/* Markup contract:
     <a class="ev-row" href="…">
       <div class="ev-row-thumb">…</div>
       <div class="ev-row-body">…</div>
       <div class="ev-row-actions">…</div>
       <div class="ev-row-chev">…</div>
     </a>                                                                    */
a.ev-row, .ev-row { display: grid; }
.ev-row {
    grid-template-columns: 8rem 1fr auto 1.5rem;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: 1rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}
.ev-row:hover {
    box-shadow: 0 6px 24px -8px rgba(11, 27, 43, 0.14);
    transform: translateY(-1px);
}
.ev-row-thumb {
    width: 8rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    overflow: hidden;
}
.ev-row-body { min-width: 0; }
.ev-row-actions { white-space: nowrap; }
.ev-row-chev {
    display: flex;
    align-items: center;
    color: var(--sage);
}
@media (max-width: 639px) {
    .ev-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.75rem;
    }
    .ev-row-thumb { width: 100%; }
    .ev-row-actions { justify-self: center; }
    .ev-row-chev { display: none; }
}

/* --- Buttons ------------------------------------------------------------ */
.ev-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--moss-600);
    color: #FAF9F6;
    border-radius: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.ev-btn:hover { background: var(--moss-700); }

.ev-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    border: 1px solid var(--hairline);
    background: transparent;
    color: var(--moss-700);
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.ev-btn-outline:hover {
    background: #FAF9F6;
    border-color: var(--moss-500);
}

/* --- Input -------------------------------------------------------------- */
.ev-input-wrap { position: relative; }
.ev-input {
    width: 100%;
    height: 3.25rem;
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: 0.75rem;
    padding-left: 3rem;
    padding-right: 1rem;
    font-size: 1rem;
    color: #1F2937;
    transition: border-color 0.2s, outline 0.2s;
}
.ev-input:focus {
    outline: 2px solid var(--moss-500);
    outline-offset: 1px;
    border-color: var(--moss-500);
}
.ev-input::placeholder { color: var(--sage); }
.ev-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sage);
    pointer-events: none;
}

/* --- Sidebar card ------------------------------------------------------- */
.ev-side {
    background: var(--cream);
    border-radius: 1rem;
    padding: 1.75rem;
}
.ev-side-badge {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--hairline);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Typography --------------------------------------------------------- */
.ev-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--moss-500);
}
.ev-section-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #1F2937;
}

/* Penekanan di dalam judul hero. Cormorant Garamond italic dipilih sebagai
   pendamping Playfair: kontrasnya lebih tinggi dan bentuknya lebih kaligrafis,
   jadi terbaca sebagai pergantian font, bukan sekadar miring.

   Dua penyesuaian optik yang wajib ada. Pertama, x-height Cormorant jauh lebih
   pendek dari Playfair, sehingga pada ukuran font yang sama hurufnya tampak
   mengecil — 1.08em mengembalikannya sejajar. Kedua, italic-nya menjorok ke
   kanan, jadi kata terakhir sebelum spasi terasa menempel; padding kanan tipis
   memberi napas tanpa mengubah alur baris.

   Ditulis sebagai kelas di main.css, bukan utility Tailwind, karena Tailwind di
   sini dimuat lewat CDN: kalau CDN-nya lambat atau gagal, penekanan ini tetap
   tampil. Georgia sebagai cadangan kalau Google Fonts tak terjangkau. */
.ev-accent {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-weight: 600;
    font-size: 1.08em;
    padding-right: 0.02em;
}

/* --- Template tag filter pills (pesan.html Step 1) ----------------------- */
.tpl-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tpl-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid var(--hairline);
    background: #fff;
    color: var(--moss-700);
    padding: 0.375rem 0.9rem;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.tpl-pill:hover { border-color: var(--moss-500); }

/* --- Public accent recolors (appended, do not edit original selectors) --- */
.tpl-pill--active {
    background: var(--moss-600) !important;
    border-color: var(--moss-600) !important;
    color: #fff !important;
}
.tpl-card:hover { border-color: var(--moss-500); }
.tpl-card:has(:checked) {
    border-color: var(--moss-600);
    outline-color: var(--moss-600);
}
.tpl-tag { color: var(--moss-700); }

/* Alpine v3 cloak — hide [x-cloak] elements until Alpine initialises. */
[x-cloak] { display: none !important; }

/* ==========================================================================
   Floating CTA (detail.html) — "Kirim Papan Bunga Digital" selalu terjangkau.
   ----------------------------------------------------------------------------
   Ditulis dengan CSS biasa, bukan utility Tailwind, dengan alasan yang sama
   seperti .foto-ratio di atas: kalau CDN Tailwind lambat/diblokir di ponsel,
   `fixed` tidak berlaku dan tombol ini akan jatuh sebagai tautan biasa di
   dasar halaman. Dengan CSS ini posisinya tetap benar tanpa Tailwind.

   Wrapper-nya pointer-events:none supaya lapisan gradiennya tidak memblokir
   sentuhan pada konten di belakangnya; hanya tombolnya yang bisa diklik.
   Markup: <div class="cta-float"><a class="cta-float__btn" …></a></div>
   ========================================================================== */
.cta-float {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40; /* di atas konten, sejajar nav sticky (z-30) */
    padding: 2rem 1rem 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    pointer-events: none;
    background: linear-gradient(to top, var(--paper) 35%, rgba(250, 250, 247, 0) 100%);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
/* Disetel oleh IntersectionObserver di detail.html saat kartu CTA utama
   sedang terlihat — dua tombol identik di layar sekaligus hanya membingungkan.
   visibility (bukan hanya opacity) supaya tombol tak bisa diklik saat tersembunyi. */
.cta-float--hidden {
    opacity: 0;
    visibility: hidden;
}
.cta-float__btn {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    max-width: 26rem;
    margin: 0 auto;
    padding: 0.875rem 1.5rem;
    border-radius: 9999px;
    background: var(--moss-600);
    color: var(--paper);
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(11, 27, 43, 0.18);
    transition: background 0.2s;
}
.cta-float__btn:hover { background: var(--moss-700); }
.cta-float__btn svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

/* ==========================================================================
   Admin console (.adm-*) — ADDITIVE, hanya dipakai halaman admin/owner.
   ----------------------------------------------------------------------------
   Identitas kerja yang tenang di atas brand cream/moss: permukaan kerja paper
   hangat, kartu putih, aksen moss untuk aksi primer, gold tipis untuk aksen
   sekunder. Semua selektor di bawah berprefix .adm- sehingga tidak menyentuh
   komponen publik mana pun. Partial baris htmx dirender sendiri oleh handler,
   jadi gaya baris (.adm-table, .adm-badge, .adm-btn, .adm-actions) harus tetap
   benar tanpa chrome halaman — semuanya didefinisikan di sini, bukan di layout.
   ========================================================================== */

/* --- Permukaan kerja & lebar terkendali ----------------------------------
   Sengaja TIDAK memakai .max-w-*xl: aturan global di atas membuka lebar
   kelas-kelas itu, sedangkan halaman admin butuh lebar kerja yang terkendali. */
body.adm-shell { background: var(--cream); }
.adm-wrap {
    width: 100%;
    max-width: 76rem;
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
}
.adm-wrap-narrow { max-width: 52rem; }

/* --- Topbar & navigasi sekunder ------------------------------------------ */
.adm-topbar {
    background: rgba(250, 249, 246, 0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--hairline);
}
.adm-console-tag {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #8A6D1F;
    background: #F7EFDA;
    border: 1px solid #E4D3A2;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    white-space: nowrap;
}
.adm-nav { border-top: 1px solid rgba(226, 221, 210, 0.6); }
/* Baris tab SATU baris yang bisa digeser di mobile. Sengaja didefinisikan di
   sini (bukan hanya utilitas Tailwind overflow-x-auto/flex di markup): bila
   CDN Tailwind gagal memuat, nav tetap ter-scroll, tidak terpotong. Di desktop
   semua tab muat sehingga tidak ada scrollbar yang terlihat. */
.adm-nav .adm-wrap {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--sage) transparent;
}
.adm-nav .adm-wrap::-webkit-scrollbar { height: 4px; }
.adm-nav .adm-wrap::-webkit-scrollbar-track { background: transparent; }
.adm-nav .adm-wrap::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 999px; }
.adm-nav-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0.6rem 0.9rem;
    font-size: 0.875rem;
    color: var(--moss-700);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}
.adm-nav-link:hover { color: var(--navy-900); }
.adm-nav-link.adm-nav-active {
    color: var(--navy-900);
    font-weight: 600;
    border-bottom-color: var(--moss-600);
}

/* --- Kepala halaman ------------------------------------------------------- */
.adm-eyebrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--moss-600);
}
.adm-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.4rem, 2.5vw, 1.75rem);
    font-weight: 600;
    color: var(--navy-900);
    line-height: 1.2;
}
.adm-sub { font-size: 0.875rem; color: #6B7280; }

/* --- Kartu ---------------------------------------------------------------- */
.adm-card {
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(11, 27, 43, 0.04);
}
.adm-card-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--hairline);
}
.adm-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy-900);
}
.adm-card-body { padding: 1.25rem; }

/* --- Tabel ---------------------------------------------------------------- */
.adm-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--sage) var(--cream);
}
.adm-table-scroll::-webkit-scrollbar { height: 8px; }
.adm-table-scroll::-webkit-scrollbar-track { background: var(--cream); border-radius: 999px; }
.adm-table-scroll::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 999px; }
.adm-table-scroll::-webkit-scrollbar-thumb:hover { background: var(--moss-500); }
.adm-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
    color: #1F2937;
}
.adm-table thead th {
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6B7280;
    background: var(--cream);
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--hairline);
    white-space: nowrap;
}
.adm-table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #EFEAE0;
    vertical-align: top;
}
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table tbody tr { transition: background 0.15s; }
.adm-table tbody tr:hover { background: #FBF9F3; }
.adm-empty {
    padding: 2.5rem 1rem;
    text-align: center;
    color: #6B7280;
    font-size: 0.9rem;
}

/* --- Badge status semantik ------------------------------------------------ */
.adm-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
}
.adm-badge-success { background: #EAF1E6; color: #344830; border-color: #CBDCC2; }
.adm-badge-warning { background: #FBF3DC; color: #8A6D1F; border-color: #EBD9A8; }
.adm-badge-danger  { background: #FBEAE7; color: #9A3B2E; border-color: #EFC7BF; }
.adm-badge-info    { background: #E8EFF6; color: #2C4A66; border-color: #C6D8E8; }
.adm-badge-neutral { background: #F1EEE6; color: #5B6470; border-color: #E0DACB; }
.adm-badge-gold    { background: #F7EFDA; color: #8A6D1F; border-color: #E4D3A2; }
.adm-badge-violet  { background: #F0EAF7; color: #5B3E86; border-color: #D9CBEA; }

/* --- Tombol --------------------------------------------------------------- */
.adm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.55rem;
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.adm-btn:disabled, .adm-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.adm-btn-primary { background: var(--moss-600); color: #FAF9F6; }
.adm-btn-primary:hover:not(:disabled) { background: var(--moss-700); }
.adm-btn-outline { background: #fff; border-color: var(--hairline); color: var(--moss-700); }
.adm-btn-outline:hover:not(:disabled) { border-color: var(--moss-500); background: #FAF9F6; }
.adm-btn-ghost { background: transparent; color: #6B7280; }
.adm-btn-ghost:hover:not(:disabled) { color: var(--navy-900); background: var(--cream); }
.adm-btn-danger { background: #fff; border-color: #EFC7BF; color: #9A3B2E; }
.adm-btn-danger:hover:not(:disabled) { background: #FBEAE7; }
.adm-btn-sm { padding: 0.35rem 0.7rem; font-size: 0.8rem; border-radius: 0.45rem; }

/* --- Tautan & chip kecil -------------------------------------------------- */
.adm-link {
    color: var(--moss-700);
    font-weight: 500;
    text-decoration: none;
}
.adm-link:hover { text-decoration: underline; }
.adm-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: #374151;
    background: var(--cream);
    border: 1px solid var(--hairline);
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    white-space: nowrap;
}
.adm-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }

/* --- Form ----------------------------------------------------------------- */
.adm-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}
.adm-input, .adm-select, .adm-textarea {
    width: 100%;
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: 0.55rem;
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
    color: #1F2937;
    transition: border-color 0.15s, outline 0.15s;
}
.adm-input:focus, .adm-select:focus, .adm-textarea:focus {
    outline: 2px solid var(--moss-500);
    outline-offset: 1px;
    border-color: var(--moss-500);
}
.adm-input::placeholder, .adm-textarea::placeholder { color: var(--sage); }
.adm-textarea { resize: vertical; }
.adm-hint { font-size: 0.75rem; color: #6B7280; margin-top: 0.3rem; }
/* Opsi ruangan unavailable (advisory): tetap tampil & terbaca, hanya miring
   abu-abu — bukan kontras rendah yang membuatnya tak terbaca. */
.adm-select option:disabled { color: #6B7280; font-style: italic; }

/* --- Flash banner (bisa di-dismiss via Alpine lokal) ---------------------- */
.adm-flash {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    border-radius: 0.75rem;
    padding: 0.8rem 1rem;
    border: 1px solid;
    font-size: 0.875rem;
}
.adm-flash-ok  { background: #EAF1E6; color: #344830; border-color: #CBDCC2; }
.adm-flash-err { background: #FBEAE7; color: #9A3B2E; border-color: #EFC7BF; }
.adm-flash-x {
    margin-left: auto;
    flex-shrink: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    font-size: 1rem;
    line-height: 1;
    padding: 0.1rem 0.25rem;
}
.adm-flash-x:hover { opacity: 1; }

/* --- Seksi form collapsible (pola konsisten semua form tambah) ------------ */
.adm-sec {
    border: 1px solid var(--hairline);
    border-radius: 0.8rem;
    background: #fff;
}
.adm-sec-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy-900);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
}
.adm-sec-num {
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cream);
    border: 1px solid var(--hairline);
    color: var(--moss-700);
    font-size: 0.75rem;
    font-weight: 600;
}
.adm-sec-chev {
    margin-left: auto;
    flex-shrink: 0;
    color: var(--sage);
    transition: transform 0.2s;
}
.adm-sec-chev-open { transform: rotate(180deg); }
.adm-sec-body { padding: 0.25rem 1rem 1rem; }

/* --- Bilah submit sticky di dasar area form ------------------------------- */
.adm-sticky-submit {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    padding-bottom: calc(0.8rem + env(safe-area-inset-bottom));
    background: rgba(250, 249, 246, 0.95);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-top: 1px solid var(--hairline);
    border-radius: 0 0 1rem 1rem;
}

/* --- Statistik ringkas ----------------------------------------------------- */
.adm-stat-value {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy-900);
    line-height: 1.15;
}

/* ==========================================================================
   F4 — owner venue hub (ADDITIVE ONLY; existing .adm-* rules untouched).
   .own-shortcut: tile pintasan di hub venue (/owner/rumah-duka/{id}).
   ========================================================================== */
.own-shortcut {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--hairline);
    border-radius: 0.75rem;
    background: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--navy-900);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.own-shortcut:hover {
    border-color: var(--moss-500);
    box-shadow: 0 4px 14px rgba(11, 27, 43, 0.08);
    transform: translateY(-1px);
}
.own-shortcut:focus-visible {
    outline: 2px solid var(--moss-500);
    outline-offset: 2px;
}
.own-shortcut span {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: #6B7280;
}
