:root {
    --primary: #7B4B61;
    --primary-dark: #6A3F53;
    --soft-pink: #F7DCE8;
    --light-pink: #FBEAF1;
    --cream: #FAF7F5;
    --beige: #E8E3DE;
    --white: #FFFFFF;
    /* --- Warna Baru untuk UI/UX Latar Belakang --- */
    --bg-main: #FAFAFA; /* Off-white netral untuk background utama */
    --bg-alt: #FDF9FA;  /* Pink sangat pucat/hangat untuk selang-seling section */
    /* --------------------------------------------- */
    --text: #1F1F1F;
    --muted: #6F6F6F;
    --border: #EAE1E4; /* Diperhalus sedikit agar tidak terlalu kontras */
    --shadow: 0 8px 30px rgba(123, 75, 97, .06); /* Shadow diperhalus (opacity 6%) agar Card putih terlihat melayang lembut */
}

* { box-sizing: border-box; }
/* Background body diubah dari --cream ke --bg-main yang lebih ramah mata */
body { margin: 0; font-family: 'Poppins', sans-serif; color: var(--text); background: var(--bg-main); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

/* Typo warna merah (239, 5, 5) diperbaiki menjadi putih glassmorphic (255, 255, 255) */
.site-header { background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid rgba(230,214,220,.7); position: sticky; top: 0; z-index: 20; }
.navbar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-size: 22px; font-weight: 600; color: var(--primary); }
.nav-menu { display: flex; align-items: center; gap: 34px; }
/* 1. Bentuk Oval Pill */
.nav-link { 
    font-size: 14px !important; 
    font-weight: 600 !important; 
    position: relative !important; 
    display: inline-block !important; /* Wajib agar padding berfungsi */
    padding: 8px 20px !important; 
    border-radius: 999px !important; 
    transition: all 0.25s ease !important; 
    background-color: transparent !important;
}

/* 2. Matikan paksa garis bawah yang lama */
.nav-link::after { 
    display: none !important; 
}

/* 3. Paksa warna background Pink dan teks Primary saat Hover & Aktif */
.nav-link.active, 
.nav-link:hover { 
    background-color: #F8C8DC !important; /* Warna pink dari referensi Anda */
    color: var(--primary) !important; /* Warna font tetap gelap */
}
/* --- PERBAIKAN UI/UX: JARAK DAN TOUCH TARGET ICON HEADER --- */
.nav-actions { 
    display: flex; 
    gap: 4px; /* Gap diperkecil karena icon sudah memiliki padding */
    align-items: center; 
    color: var(--primary); 
}
.icon-link { 
    font-size: 20px; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px; /* Menambah area klik */
    min-width: 44px; /* Standar minimal area klik jari (Apple/Google UX Guidelines) */
    min-height: 44px;
    border-radius: 50%; /* Efek melingkar saat disentuh */
    transition: background-color 0.2s ease;
}
.icon-link:hover {
    background-color: rgba(123, 75, 97, 0.08); /* Memberi feedback visual saat ditekan */
}
.nav-toggle { 
    display: none; 
    background: none; 
    border: 0; 
    flex-direction: column; 
    gap: 5px; 
    padding: 10px; /* Menambah area klik hamburger menu */
    min-width: 44px; 
    min-height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--primary); display: block; }
/* ------------------------------------------------------------- */

/* Import varian font Poppins yang paling tebal (Black 900) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;900&display=swap');

/* Class khusus untuk judul Hero */
.font-hero-title {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 900 !important; /* Ketebalan maksimal (Black) */
    font-style: normal !important; /* Tegak lurus, tidak miring */
    text-transform: none !important; /* Sesuai dengan ketikan asli */
    letter-spacing: -0.03em; /* Jarak antar huruf dirapatkan sedikit agar tampak solid */
}

/* Class khusus untuk sub-judul section (Kategori, Produk, Testimonial) */
.font-section-title {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 900 !important; /* Sama tebalnya dengan Hero */
    font-style: normal !important;
    text-transform: none !important;
    letter-spacing: -0.02em; /* Sedikit lebih renggang dari judul hero agar mudah dibaca pada ukuran kecil */
}

/* ========================================================= */
/* GRADASI BACKGROUND HERO YANG MENYATU (FADE TO WHITE)      */
/* ========================================================= */
.hero-section { 
    min-height: 520px; 
    position: relative; 
    display: grid; 
    place-items: center; 
    overflow: hidden; 
    /* Gradient pink pekat di atas, sedikit memudar di bawah */
    background: linear-gradient(135deg, rgba(255, 192, 203, 0.95) 0%, rgba(255, 192, 203, 0.8) 100%);
}

/* Layer overlay yang menutupi bagian bawah hero (termasuk gambar) agar memudar menjadi putih */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px; 
    background: linear-gradient(to bottom, rgba(250, 250, 250, 0) 0%, var(--bg-main) 100%);
    z-index: 1; /* Di atas gambar tapi di bawah tombol */
    pointer-events: none;
}

.dark .hero-section::after {
    background: linear-gradient(to bottom, rgba(31, 27, 29, 0) 0%, #1f1b1d 100%);
}
/* ========================================================= */

.hero-content { position: relative; text-align: center; max-width: 760px; padding: 80px 0; }
.hero-badge { display: inline-block; padding: 7px 16px; background: var(--soft-pink); color: var(--primary); border-radius: 999px; font-size: 12px; margin-bottom: 18px; }
.hero-content h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.15; margin: 0 0 22px; }
.hero-content p { max-width: 640px; margin: 0 auto 34px; color: var(--muted); line-height: 1.8; }
.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 28px; border-radius: 999px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: .2s ease; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: var(--white); color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--light-pink); }
.btn.full { width: 100%; }

.section { padding: 78px 0; }
.section-heading { margin-bottom: 44px; }
.section-heading.center { text-align: center; }
.section-heading.row-between { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading h1, .section-heading h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 42px); }
.section-heading p { margin: 0; color: var(--muted); }
.see-all { color: var(--primary); font-weight: 600; }

.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.category-card { min-height: 136px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow); font-weight: 500; }
.category-icon { width: 58px; height: 58px; display: grid; place-items: center; background: var(--soft-pink); border-radius: 50%; font-size: 24px; }

/* Mengganti background seksi agar tidak pure white, menciptakan kontras yang nyaman */
.products-section { background: var(--bg-main); }
.testimonials-section { background: var(--bg-alt); }

.featured-products { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; }
.featured-card { background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.product-image { min-height: 245px; background: linear-gradient(135deg, #f3c2d2, #fdf7f4); position: relative; }
.large-card .product-image { min-height: 360px; }
.product-image-flower { background: radial-gradient(circle at 40% 45%, #f49bbd 0 8%, transparent 9%), radial-gradient(circle at 52% 45%, #f8e7ec 0 8%, transparent 9%), radial-gradient(circle at 47% 35%, #ef89ad 0 8%, transparent 9%), linear-gradient(135deg, #d6c3aa, #fff4f6); }
.product-image-snack { background: linear-gradient(135deg, #f7c7c8, #f9dfb8); }
.status-badge { position: absolute; top: 14px; right: 14px; padding: 6px 12px; border-radius: 999px; font-size: 12px; }
.status-badge.ready { background: #C8F7DC; color: #2E7D4F; }
.status-badge.preorder { background: #FFD9A8; color: #8A5A13; }
.status-badge.habis { background: #ECE9EF; color: #555; }
.overlay-info { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 22px; border-radius: 10px; background: rgba(255,255,255,.82); backdrop-filter: blur(8px); }
.overlay-info h3, .product-info h3 { margin: 5px 0 6px; }
.overlay-info small, .product-info small, .catalog-info small { color: var(--primary); }
.size-row, .tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.size-row span, .tag-row span { font-size: 11px; padding: 4px 8px; background: var(--light-pink); border-radius: 999px; }
.price-label { position: absolute; right: 22px; bottom: 18px; color: var(--muted); }
.product-info { padding: 20px; position: relative; }
.product-price { margin: 28px 0 0; font-weight: 700; font-size: 18px; }
.cart-mini { position: absolute; right: 18px; bottom: 18px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--soft-pink); color: var(--primary); border-radius: 50%; }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.testimonial-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 30px; box-shadow: var(--shadow); }
.stars { color: var(--primary); letter-spacing: 3px; margin-bottom: 16px; }
.testimonial-card p { color: #424242; line-height: 1.8; font-style: italic; }
.person { display: flex; gap: 14px; align-items: center; margin-top: 22px; }
.person span { width: 44px; height: 44px; background: var(--soft-pink); display: grid; place-items: center; border-radius: 50%; color: var(--primary); font-weight: 600; }
.person small { display: block; color: var(--muted); }

.site-footer { background: var(--beige); padding-top: 70px; color: #5e5a58; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 70px; }
.site-footer h3, .site-footer h4 { color: #5a5552; }
.site-footer a { display: block; margin: 12px 0; }
.social-row { display: flex; gap: 12px; margin-top: 22px; }
.social-row a { width: 38px; height: 38px; display: grid; place-items: center; background: var(--white); border-radius: 50%; }
.footer-bottom { margin-top: 60px; border-top: 1px solid rgba(0,0,0,.06); padding: 26px; text-align: center; color: var(--muted); }

.catalog-layout { display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: start; }
.filter-sidebar { background: var(--white); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); position: sticky; top: 100px; }
.filter-sidebar h2 { font-size: 28px; margin: 0 0 20px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.filter-group { border-bottom: 1px solid var(--border); padding: 18px 0; }
.filter-group:last-child { border-bottom: none; }
.filter-group h3 { font-size: 14px; margin: 0 0 12px; }
.filter-group label { display: block; margin: 12px 0; color: #333; }
.size-filter { display: flex; flex-wrap: wrap; gap: 9px; }
.size-filter span { padding: 6px 13px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; }
.catalog-content h1 { color: var(--primary); font-size: clamp(38px, 5vw, 62px); margin: 0 0 28px; }
.catalog-tools { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 34px; }
.search-box { width: min(420px, 100%); display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--white); padding: 0 18px; }
.search-box input, .catalog-tools select, .custom-form input, .custom-form select, .custom-form textarea, .auth-card input { width: 100%; min-height: 48px; border: 1px solid var(--border); border-radius: 10px; padding: 0 14px; font: inherit; background: var(--white); }
.search-box input { border: 0; outline: 0; }
.catalog-tools select { width: 180px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.catalog-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.catalog-image { height: 310px; background: #D8D4EA; position: relative; }
.catalog-info { padding: 24px; }
.catalog-info h3 { margin: 5px 0 4px; font-weight: 500; }
.catalog-info p { color: var(--muted); font-size: 13px; }
.catalog-info strong { display: block; color: var(--primary); font-size: 20px; margin: 16px 0; }

.simple-page, .form-page { max-width: 780px; }
.soft-card, .auth-card { background: var(--white); border-radius: 18px; box-shadow: var(--shadow); padding: 34px; }
.custom-form { display: grid; gap: 18px; }
.custom-form label, .auth-card label { display: grid; gap: 8px; font-weight: 500; }
.custom-form textarea { padding-top: 14px; resize: vertical; }
.auth-section { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 60px 24px; }
.auth-card { width: min(430px, 100%); }
.auth-card h1 { margin: 0 0 8px; color: var(--primary); }
.auth-card p { color: var(--muted); }
.auth-card form { display: grid; gap: 18px; margin: 24px 0; }

@media (max-width: 992px) {
    .nav-toggle { display: flex; }
    .nav-menu { display: none; position: absolute; left: 24px; right: 24px; top: 76px; background: var(--white); padding: 20px; border-radius: 14px; box-shadow: var(--shadow); flex-direction: column; align-items: flex-start; gap: 12px; }
    .nav-menu.open { display: flex; }
    .category-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-products, .catalog-layout, .footer-grid { grid-template-columns: 1fr; }
    .filter-sidebar { position: static; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .container { width: min(100% - 28px, 1180px); }
    .navbar { height: 68px; }
    .brand { font-size: 18px; }
    
    /* PENTING: display none pada .nav-actions saya hapus agar icon tetap terlihat di layar HP */
    /* .nav-actions { display: none; } */
    
    .section { padding: 54px 0; }
    .hero-section { min-height: 460px; }
    .hero-actions, .catalog-tools { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; }
    .category-grid, .testimonial-grid, .product-grid { grid-template-columns: 1fr; }
    .section-heading.row-between { align-items: flex-start; flex-direction: column; }
    .price-label { position: static; margin-top: 14px; }
    .large-card .product-image, .catalog-image { min-height: 240px; height: 240px; }
}

/* ============================================================
   CUSTOM ANIMATIONS & UI ENHANCEMENTS
   ============================================================ */

/* ── Smooth Scroll ── */
html {
    scroll-behavior: smooth;
}

/* ── Fade-in-up on scroll (safe: elements visible by default) ── */
.animate-visible {
    animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Slide-left variant */
.animate-on-scroll.slide-in-left.animate-visible {
    animation-name: slideInLeft;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Slide-right variant */
.animate-on-scroll.slide-in-right.animate-visible {
    animation-name: slideInRight;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Stagger delay classes ── */
.stagger-1  { transition-delay: 0.05s; }
.stagger-2  { transition-delay: 0.10s; }
.stagger-3  { transition-delay: 0.15s; }
.stagger-4  { transition-delay: 0.20s; }
.stagger-5  { transition-delay: 0.25s; }
.stagger-6  { transition-delay: 0.30s; }
.stagger-7  { transition-delay: 0.35s; }
.stagger-8  { transition-delay: 0.40s; }
.stagger-9  { transition-delay: 0.45s; }
.stagger-10 { transition-delay: 0.50s; }

/* ── Navbar scroll effect ── */
.navbar-scrolled {
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    background-color: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 4px 30px rgba(121, 84, 101, 0.12) !important;
    border-bottom-color: rgba(210, 195, 199, 0.2) !important;
}

.dark .navbar-scrolled {
    background-color: rgba(48, 48, 48, 0.92) !important;
}

/* ── Mobile menu smooth transition ── */
[data-nav-menu] {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
}

[data-nav-menu].open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ── Card hover enhancement ── */
.card-hover {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(121, 84, 101, 0.15);
}

.card-hover .card-img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-hover:hover .card-img {
    transform: scale(1.08);
}

/* ── Tab button transition ── */
.tab-btn {
    transition: color 0.2s ease, border-color 0.2s ease;
}

/* ── Image modal entrance ── */
#imageModal:not(.hidden) {
    animation: modalFadeIn 0.25s ease-out forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; backdrop-filter: blur(0px); }
    to   { opacity: 1; backdrop-filter: blur(4px); }
}

#imageModal:not(.hidden) #modalImage {
    animation: modalScaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes modalScaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

/* ── Product thumbnail enhancement ── */
.thumb-btn {
    transition: all 0.25s ease;
}

.thumb-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(121, 84, 101, 0.12);
}

/* ── Hero background slow zoom ── */
.hero-bg-zoom {
    animation: heroBgZoom 20s ease-in-out infinite alternate;
}

@keyframes heroBgZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}

/* ── Pulse animation ── */
.pulse-dot {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(1.15); }
}

/* ── Flash message slide-down ── */
.flash-slide-down {
    animation: flashSlideDown 0.4s ease-out forwards;
}
@keyframes flashSlideDown {
    from { opacity: 0; transform: translateY(-16px); max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
    to   { opacity: 1; transform: translateY(0); max-height: 80px; }
}

/* ── Gallery overlay for custom-order ── */
.gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(121,84,101,0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 0.4rem;
}
.group:hover .gallery-overlay,
.group:focus-within .gallery-overlay {
    opacity: 1;
}
.gallery-overlay span:first-child {
    font-size: 2rem; color: white;
}
.gallery-overlay span:last-child {
    color: white; font-weight: 600; font-size: 0.8rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ── FAQ accordion smooth animation ── */
details.faq-item p {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
    opacity: 0; margin: 0;
}
details.faq-item[open] p {
    max-height: 600px; opacity: 1;
}
details.faq-item summary::-webkit-details-marker {
    display: none;
}
details.faq-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
details.faq-item summary::after {
    content: 'expand_more';
    font-family: 'Material Symbols Outlined';
    font-size: 1.25rem;
    transition: transform 0.3s ease;
    color: #795465;
}
details.faq-item[open] summary::after {
    transform: rotate(180deg);
}

/* ── Slide-in variants ── */
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Focus glow for auth inputs ── */
.focus-glow:focus {
    outline: none;
    border-color: #795465;
    box-shadow: 0 0 0 3px rgba(121,84,101,0.12), 0 0 0 1px #795465, 0 4px 12px rgba(121,84,101,0.08);
}

/* ── Auth decorative blur blobs ── */
.auth-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}
.auth-bg-blob.blob-1 {
    width: 400px; height: 400px;
    background: #f8c8dc;
}
.auth-bg-blob.blob-2 {
    width: 320px; height: 320px;
    background: #ffcb99;
}

/* ============================================================
   ADMIN PANEL — unified Aye Bouquet color system
   ============================================================ */

/* Isolate admin from legacy global body styles */
body.admin-panel {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: inherit;
    background: transparent;
}

/* ── Semantic alerts ── */
.admin-alert-success {
    background-color: #DCEFDF;
    border: 1px solid #C3E6CB;
    color: #1E7E34;
}
.dark .admin-alert-success {
    background-color: rgba(30, 126, 52, 0.15);
    border-color: rgba(76, 175, 80, 0.3);
    color: #A8E6B8;
}
.admin-alert-error {
    background-color: #FCE8E6;
    border: 1px solid #FAD2CF;
    color: #C5221F;
}
.dark .admin-alert-error {
    background-color: rgba(186, 26, 26, 0.15);
    border-color: rgba(239, 83, 80, 0.3);
    color: #FFABAB;
}

/* ── Status badges (product / variant / testimonial) ── */
.admin-badge-ready,
.admin-badge-active,
.admin-badge-approved {
    background-color: #E6F4EA;
    color: #137333;
    border: 1px solid #CEEAD6;
}
.dark .admin-badge-ready,
.dark .admin-badge-active,
.dark .admin-badge-approved {
    background-color: rgba(30, 126, 52, 0.2);
    color: #A8E6B8;
    border-color: rgba(76, 175, 80, 0.25);
}
.admin-badge-preorder,
.admin-badge-pending {
    background-color: #FEF7E0;
    color: #B06000;
    border: 1px solid #FEEFC3;
}
.dark .admin-badge-preorder,
.dark .admin-badge-pending {
    background-color: rgba(176, 96, 0, 0.2);
    color: #FFD699;
    border-color: rgba(255, 183, 77, 0.25);
}
.admin-badge-habis,
.admin-badge-inactive {
    background-color: #FCE8E6;
    color: #C5221F;
    border: 1px solid #FAD2CF;
}
.dark .admin-badge-habis,
.dark .admin-badge-inactive {
    background-color: rgba(186, 26, 26, 0.15);
    color: #FFABAB;
    border-color: rgba(239, 83, 80, 0.25);
}
.admin-badge-dot-ready,
.admin-badge-dot-active,
.admin-badge-dot-approved { background-color: #137333; }
.dark .admin-badge-dot-ready,
.dark .admin-badge-dot-active,
.dark .admin-badge-dot-approved { background-color: #4CAF50; }
.admin-badge-dot-pending,
.admin-badge-dot-preorder { background-color: #E65100; }
.dark .admin-badge-dot-pending,
.dark .admin-badge-dot-preorder { background-color: #FFB74D; }

/* ── Stat icon containers ── */
.admin-stat-success {
    background-color: #E6F4EA;
    color: #137333;
}
.dark .admin-stat-success {
    background-color: rgba(30, 126, 52, 0.15);
    color: #A8E6B8;
}

/* ── Admin card hover lift ── */
.card-hover-admin {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover-admin:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(121,84,101,0.1);
}

/* ── Admin entrance animation (visible by default) ── */
.admin-enter {
    animation: adminSlideUp 0.4s ease-out forwards;
}

.admin-enter-delay-1 { animation-delay: 0.08s; }
.admin-enter-delay-2 { animation-delay: 0.16s; }
.admin-enter-delay-3 { animation-delay: 0.24s; }
.admin-enter-delay-4 { animation-delay: 0.32s; }
.admin-enter-delay-5 { animation-delay: 0.40s; }
.admin-enter-delay-6 { animation-delay: 0.48s; }

@keyframes adminSlideUp {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Admin sidebar active state ── */
.sidebar-active {
    position: relative;
    background-color: #f8c8dc;
    color: #795465;
    font-weight: 600;
}
.dark .sidebar-active {
    background-color: rgba(138, 90, 112, 0.35);
    color: #ffd8e7;
}
.sidebar-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #795465;
    border-radius: 0 3px 3px 0;
}
.dark .sidebar-active::before {
    background: #f8c8dc;
}

/* ============================================================
   STORY DRAGGABLE POLAROID CARDS
   ============================================================ */

/* ── Stage: contains all cards, sets the play area ── */
.story-drag-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 440px;
    border-radius: 16px;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 70%, rgba(248,200,220,0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(121,84,101,0.08) 0%, transparent 50%),
        #f5eff2;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

/* ── Individual polaroid card ── */
.story-drag-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    margin-left: -100px;   /* center horizontally */
    margin-top: -130px;    /* center vertically */
    background: #fff;
    border-radius: 8px;
    padding: 10px 10px 6px;
    box-shadow:
        0 4px 16px rgba(0,0,0,0.10),
        0 1px 4px rgba(0,0,0,0.06);
    cursor: grab;
    will-change: transform;
    transition: box-shadow 0.2s ease;
}

.story-drag-card:hover {
    box-shadow:
        0 8px 28px rgba(121,84,101,0.18),
        0 2px 8px rgba(0,0,0,0.08);
}

.story-drag-card.is-dragging {
    cursor: grabbing;
    box-shadow:
        0 14px 40px rgba(121,84,101,0.22),
        0 4px 12px rgba(0,0,0,0.10);
}

.story-drag-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 4px;
    pointer-events: none;
    display: block;
}

.story-drag-card__caption {
    display: block;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #795465;
    padding: 6px 4px 4px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Solo card: larger and centered, no drag needed */
.story-drag-card--solo {
    width: 240px;
    margin-left: -120px;
    margin-top: -160px;
    cursor: default;
}

/* ── Responsive: smaller cards on mobile ── */
@media (max-width: 768px) {
    .story-drag-stage {
        aspect-ratio: 1 / 1;
        max-height: 360px;
    }
    .story-drag-card {
        width: 160px;
        margin-left: -80px;
        margin-top: -110px;
        padding: 8px 8px 4px;
    }
    .story-drag-card__caption {
        font-size: 10px;
        padding: 4px 2px 2px;
    }
    .story-drag-card--solo {
        width: 200px;
        margin-left: -100px;
        margin-top: -130px;
    }
}

@media (max-width: 480px) {
    .story-drag-stage {
        max-height: 300px;
    }
    .story-drag-card {
        width: 140px;
        margin-left: -70px;
        margin-top: -95px;
        padding: 6px 6px 3px;
    }
    .story-drag-card--solo {
        width: 170px;
        margin-left: -85px;
        margin-top: -115px;
    }
}

/* ============================================================
   AYE BOUQUET BENTO CARD SYSTEM  (lightweight, pure CSS)
   ============================================================ */

/* ── Bento Card Base ── */
.aye-bento-card {
    border-radius: 1.5rem;
    background: var(--surface-container-lowest, #ffffff);
    border: 1px solid rgba(210, 195, 199, 0.2);
    box-shadow: 0 4px 24px rgba(121, 84, 101, 0.06);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.dark .aye-bento-card {
    background: #1b1c1c;
    border-color: rgba(210, 195, 199, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* ── Subtle Hover Glow (radial gradient at top) ── */
.aye-bento-glow {
    position: relative;
    overflow: hidden;
}

.aye-bento-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(
        480px circle at 50% 0%,
        rgba(121, 84, 101, 0.08) 0%,
        transparent 60%
    );
}

.aye-bento-glow:hover::before {
    opacity: 1;
}

.dark .aye-bento-glow::before {
    background: radial-gradient(
        480px circle at 50% 0%,
        rgba(233, 186, 205, 0.06) 0%,
        transparent 60%
    );
}

/* ── Hover Lift ── */
.aye-hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px -16px rgba(121, 84, 101, 0.18);
}

.dark .aye-hover-lift:hover {
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.5);
}

/* ── Disable hover effects on touch devices for perf ── */
@media (hover: none) {
    .aye-bento-glow::before { display: none; }
    .aye-hover-lift:hover { transform: none !important; }
}

/* ============================================================
   DARK MODE — GLOBAL OVERRIDES
   ============================================================ */
.dark {
    color-scheme: dark;
}

/* ── Body base ── */
.dark body {
    background-color: #1f1b1d;
}

/* ── Common text colors ── */
.dark .text-on-surface { color: #f8f4f6; }

.dark .text-on-surface-variant { color: #c4b6bc; }

.dark .text-primary { color: #e9bacd; }

/* ── Common surface backgrounds ── */
.dark .bg-surface { background-color: #262024; }

.dark .bg-surface-container-lowest { background-color: #2a2328; }

.dark .bg-surface-container { background-color: #332b30; }

/* ── Common borders ── */
.dark .border-surface-container { border-color: rgba(255,255,255,0.08); }

/* ── Shadow reset for dark mode ── */
.dark .soft-shadow { box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3); }

.dark .soft-shadow-hover:hover { box-shadow: 0 15px 35px -10px rgba(0,0,0,0.4); }

/* ── Hero overlay for dark mode ── */
.dark .hero-bg-zoom { opacity: 0.15; }

/* ── Kustomisasi Kolom Pencarian Navbar ── */
.navbar-search-container {
    border: 1px solid var(--border) !important; /* Garis soft mengikuti tema white mode */
    background-color: var(--white);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Ketika dalam posisi fokus/diklik (Efek UX agar lebih interaktif) */
.navbar-search-container:focus-within {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(123, 75, 97, 0.15);
}

/* Saat aplikasi beralih ke Dark Mode */
.dark .navbar-search-container {
    border-color: #e9bacd !important; /* Berubah menjadi warna pink khas dark mode Anda */
    background-color: rgba(255, 255, 255, 0.05); /* Latar belakang dibuat transparan gelap */
}

/* Fokus saat diklik pada posisi Dark Mode */
.dark .navbar-search-container:focus-within {
    border-color: #F8C8DC !important;
    box-shadow: 0 0 0 3px rgba(248, 200, 220, 0.2);
}

/* ============================================================
   DARK MODE — ADMIN FORM ELEMENTS (native dropdown fix)
   ============================================================ */

/* Tell Chrome to render native select dropdown in dark mode */
.dark .admin-panel select {
    color-scheme: dark;
}

/* Style the native option elements inside the dropdown */
.dark .admin-panel select option {
    background-color: #2a2328;
    color: #f8f4f6;
}

.dark .admin-panel select option:checked {
    background-color: #795465;
    color: #ffffff;
}

.dark .admin-panel select option:disabled {
    color: #6b5f64;
}

/* Calendar/time picker icons in dark mode */
.dark .admin-panel input[type="date"]::-webkit-calendar-picker-indicator,
.dark .admin-panel input[type="time"]::-webkit-calendar-picker-indicator,
.dark .admin-panel input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(0.85);
}

/* Number input spinner in dark mode */
.dark .admin-panel input[type="number"]::-webkit-inner-spin-button,
.dark .admin-panel input[type="number"]::-webkit-outer-spin-button {
    filter: invert(0.85);
}

/* File input button in dark mode */
.dark .admin-panel input[type="file"]::file-selector-button {
    background-color: #3d3239;
    color: #f8f4f6;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dark .admin-panel input[type="file"]::file-selector-button:hover {
    background-color: #4f3f47;
}

/* Autofill background override for Chrome dark mode */
.dark .admin-panel input:-webkit-autofill,
.dark .admin-panel textarea:-webkit-autofill,
.dark .admin-panel select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #2a2328 inset !important;
    -webkit-text-fill-color: #f8f4f6 !important;
    caret-color: #f8f4f6;
}

/* Prevent autofill background on focus in dark mode */
.dark .admin-panel input:-webkit-autofill:focus,
.dark .admin-panel textarea:-webkit-autofill:focus,
.dark .admin-panel select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #2a2328 inset !important;
    -webkit-text-fill-color: #f8f4f6 !important;
}

/* ============================================================
   ADMIN SCROLLBAR — elegant mauve theme for WebKit & Firefox
   Targets sidebar nav, modals, tables, and the document root.
   ============================================================ */

/* ── Firefox fallback (inherit via body) ── */
.admin-panel {
    scrollbar-width: thin;
    scrollbar-color: #c5aeb8 #f0eeee;
}
.dark .admin-panel {
    scrollbar-color: #7f5b6b #1e1c1d;
}

/* ── WebKit / Blink (Chrome, Edge, Opera, Safari) ── */
/* Document-level scrollbar (on html — admin pages use min-h-screen on body) */
html::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
html::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 9px;
}
html::-webkit-scrollbar-thumb {
    background: #c5aeb8;
    border-radius: 9px;
    border: 1px solid transparent;
    background-clip: content-box;
}
html::-webkit-scrollbar-thumb:hover {
    background: #b491a0;
}
html::-webkit-scrollbar-thumb:active {
    background: #a07d8f;
}

/* ── Sidebar nav scrollbar ── */
#admin-sidebar nav::-webkit-scrollbar {
    width: 4px;
}
#admin-sidebar nav::-webkit-scrollbar-track {
    background: transparent;
}
#admin-sidebar nav::-webkit-scrollbar-thumb {
    background: #795465;
    border-radius: 9px;
}
#admin-sidebar nav::-webkit-scrollbar-thumb:hover {
    background: #9b6f82;
}

/* ── Modal / card / overflow containers ── */
.admin-panel [class*="overflow-y-auto"]::-webkit-scrollbar,
.admin-panel [class*="overflow-x-auto"]::-webkit-scrollbar,
.admin-panel [class*="overflow-scroll"]::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
.admin-panel [class*="overflow-y-auto"]::-webkit-scrollbar-track,
.admin-panel [class*="overflow-x-auto"]::-webkit-scrollbar-track,
.admin-panel [class*="overflow-scroll"]::-webkit-scrollbar-track {
    background: transparent;
}
.admin-panel [class*="overflow-y-auto"]::-webkit-scrollbar-thumb,
.admin-panel [class*="overflow-x-auto"]::-webkit-scrollbar-thumb,
.admin-panel [class*="overflow-scroll"]::-webkit-scrollbar-thumb {
    background: #c5aeb8;
    border-radius: 9px;
    border: 1px solid transparent;
    background-clip: content-box;
}
.admin-panel [class*="overflow-y-auto"]::-webkit-scrollbar-thumb:hover,
.admin-panel [class*="overflow-x-auto"]::-webkit-scrollbar-thumb:hover,
.admin-panel [class*="overflow-scroll"]::-webkit-scrollbar-thumb:hover {
    background: #b491a0;
}
.admin-panel [class*="overflow-y-auto"]::-webkit-scrollbar-thumb:active,
.admin-panel [class*="overflow-x-auto"]::-webkit-scrollbar-thumb:active,
.admin-panel [class*="overflow-scroll"]::-webkit-scrollbar-thumb:active {
    background: #a07d8f;
}

/* ── Dark mode overrides: document scrollbar ── */
.dark html::-webkit-scrollbar-thumb {
    background: #7f5b6b;
}
.dark html::-webkit-scrollbar-thumb:hover {
    background: #9b6f82;
}
.dark html::-webkit-scrollbar-thumb:active {
    background: #b6849a;
}

.dark #admin-sidebar nav::-webkit-scrollbar-thumb {
    background: #5d3f4d;
}
.dark #admin-sidebar nav::-webkit-scrollbar-thumb:hover {
    background: #7f5b6b;
}

.dark .admin-panel [class*="overflow-y-auto"]::-webkit-scrollbar-thumb,
.dark .admin-panel [class*="overflow-x-auto"]::-webkit-scrollbar-thumb,
.dark .admin-panel [class*="overflow-scroll"]::-webkit-scrollbar-thumb {
    background: #7f5b6b;
}
.dark .admin-panel [class*="overflow-y-auto"]::-webkit-scrollbar-thumb:hover,
.dark .admin-panel [class*="overflow-x-auto"]::-webkit-scrollbar-thumb:hover,
.dark .admin-panel [class*="overflow-scroll"]::-webkit-scrollbar-thumb:hover {
    background: #9b6f82;
}
.dark .admin-panel [class*="overflow-y-auto"]::-webkit-scrollbar-thumb:active,
.dark .admin-panel [class*="overflow-x-auto"]::-webkit-scrollbar-thumb:active,
.dark .admin-panel [class*="overflow-scroll"]::-webkit-scrollbar-thumb:active {
    background: #b6849a;
}

