:root {
    --primary: #8B4513;
    --secondary: #D2B48C;
    --white: #FFFFFF;
    --black: #333333;
    --glass: rgba(255, 255, 255, 0.1);
    --light-brown: #F5E5D5;
    --dark-brown: #4A2C22;
    --text-grey: #666;
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.08);
    --form-bg: #F7E6D6;
    --font-serif: 'Georgia', serif;
    --font-sans: 'Inter', sans-serif;
    --primary-color: #8B4513;
    --accent-color: #D2B48C;
    --bg-light: #F7F3F0;
    --card-light: #FFFFFF;
    --text-dark: #333333;
    --danger-color: #EF4444;
}

body{margin:0;padding:0;overflow-x:hidden;display:flex;flex-direction:column;min-height:100vh}

/* GLOBAL */
.hidden{display:none!important}
.text-center{text-align:center}
.bg-light-brown{background-color:var(--light-brown)}

.btn-outline{background:transparent;color:var(--primary);border:2px solid var(--primary)}
.btn-outline:hover{background:var(--primary);color:var(--white)}

/* --- hero section --- */
.hero {position: relative; width: 100%; height: 450px; background-size: cover; background-position: center; display: flex; align-items: center;}
.hero-overlay {position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.35); display: flex; align-items: center;}
.hero-content {color: #fff; max-width: 600px; padding-left: 40px;}
.hero-content h1 {font-size: 3rem; margin-bottom: 15px; text-align: left;}
.hero-content p {font-size: 1.2rem; margin-bottom: 25px; text-align: left;}
.hero-buttons {display: flex; gap: 15px;}
.hero-buttons .btn {font-size: 1rem; padding: 12px 28px; border-radius: 6px; transition: all 0.3s ease;}
.btn-primary {background-color: #FF6F00; color: #fff; border: none;}
.btn-primary:hover {background-color: #e65c00;}
.btn-secondary {background-color: transparent; color: #fff; border: 2px solid #fff;}
.btn-secondary:hover {background-color: #fff; color: #000;}

/* --- SECTION HEADER --- */
.section-header{margin-bottom:50px}
.section-header h2{font-family:var(--font-serif);font-size:34px;color:var(--dark-brown);margin-bottom:12px}
.section-header p{font-size:16px;color:var(--text-grey)}

/* --- header_admin.php --- */
.admin-name {font-size: 14px; font-weight: 500;}
.account-dropdown {position: absolute; top: 45px; right: 0; background: var(--card-light); border-radius: 12px; box-shadow: var(--shadow-light); overflow: hidden; display: none; min-width: 160px; z-index: 999;}
.account-dropdown a {display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--text-dark); text-decoration: none; font-size: 14px; transition: background 0.2s ease;}
.account-dropdown a:hover {background: var(--bg-light); color: var(--danger-color);}
.account-dropdown.show {display: block;}
.container {max-width: 1200px; margin: 0 auto; width: 90%;}
.admin-header {background: linear-gradient(135deg, var(--dark-brown), var(--primary)); color: var(--white); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); position: sticky; top: 0; z-index: 1000; width: 100%;}
.header-inner {max-width: 1200px; margin: 0 auto; padding: 16px 5%; display: flex; justify-content: space-between; align-items: center; width: 90%;}
.logo {display: flex; align-items: center; gap: 12px; font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--white); text-decoration: none; transition: all 0.3s ease;}
.logo:hover {opacity: 0.9; transform: translateX(2px);}
.logo-image {width: 42px; height: 42px; object-fit: contain; transition: transform 0.3s ease;}
.logo:hover .logo-image {transform: scale(1.05);}

.admin-nav ul {list-style: none; display: flex; gap: 32px; margin: 0; padding: 0;}
.admin-nav a {color: var(--white); text-decoration: none; font-family: var(--font-sans); font-size: 16px; display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 10px; transition: all 0.3s ease; font-weight: 500;}
.admin-nav a:hover {background: rgba(255, 255, 255, 0.15); color: var(--accent-color); transform: translateY(-2px);}
.admin-nav a i {font-size: 18px;}

.admin-account {position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--white); font-family: var(--font-sans); padding: 10px 20px; border-radius: 10px; transition: all 0.3s ease;}
.admin-account:hover {background: rgba(255, 255, 255, 0.15);}
.admin-account i {font-size: 26px;}
.admin-name {font-size: 15px; font-weight: 500; display: flex; align-items: center;}

/* header_user.php */
.main-header {background: linear-gradient(135deg, var(--dark-brown), var(--primary)); color: var(--white); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); position: sticky; top: 0; z-index: 1000; width: 100%;}

/* --- NAVIGATION ---  */
.main-nav ul {list-style: none; display: flex; gap: 28px; margin: 0; padding: 0;}
.main-nav a {color: var(--white); text-decoration: none; font-family: var(--font-sans); font-size: 16px; font-weight: 500; padding: 10px 18px; border-radius: 10px; transition: all 0.3s ease;}
.main-nav a:hover {background: rgba(255, 255, 255, 0.15); color: var(--accent-color); transform: translateY(-2px);}

/* Button Order Now */
.btn-nav-order { background: var(--accent-color); color: var(--dark-brown) !important; padding: 10px 22px; border-radius: 999px; font-weight: 700;}
.btn-nav-order:hover {background: var(--white); color: var(--primary) !important;}

/* =============================== POPUP DETAIL OVERLAY & BOX =============================== */
#popupDetail {position: fixed; inset: 0; background: rgba(42, 28, 22, 0.6); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 10000; padding: 20px;}
#popupDetail > div {background: var(--card-light); width: 100%; max-width: 420px; border-radius: 28px; padding: 24px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.15); animation: popupFadeScale 0.3s ease;}
#popupCloseBtn {position: absolute; top: 16px; right: 16px; border: none; background: var(--light-brown); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; color: var(--dark-brown); display: flex; align-items: center; justify-content: center; z-index: 10;}

/* IMAGE - Perbaikan Total Agar Tidak Terpotong */
#popupImg {width: 100%; height: auto; max-height: 350px; aspect-ratio: 4/3; object-fit: contain; background: #fff; border-radius: 20px; margin-bottom: 20px; display: block;}

/* TYPOGRAPHY */
#popupTitle {font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--dark-brown); margin: 0 0 4px 0;}
#popupDesc {font-size: 0.95rem; color: var(--text-grey); margin-bottom: 20px; line-height: 1.4;}

/* TEMPERATURE BUTTONS - Desain Button yang Jelas (Pill Style) */
.temp-choice {display: flex; gap: 10px; margin-bottom: 20px; background: var(--bg-light); padding: 5px; border-radius: 14px;}
#chooseIce, #chooseHot {flex: 1; padding: 12px; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; font-weight: 700; transition: all 0.2s ease; text-align: center; color: var(--text-grey); font-size: 14px;}
#chooseIce.active, #chooseHot.active {background: var(--white); color: var(--primary); border-color: rgba(0,0,0,0.05); box-shadow: 0 4px 10px rgba(0,0,0,0.08);}
#chooseIce:not(.active):hover, #chooseHot:not(.active):hover {color: var(--dark-brown);}

/* QTY & PRICE ROW */
.price-qty-row {display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;}
.popup-price {font-size: 1.3rem; font-weight: 700; color: var(--primary);}
.qty-control {display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--light-brown); padding: 4px; border-radius: 12px;}
#qtyMinus, #qtyPlus {width: 32px; height: 32px; border-radius: 8px; border: none; background: var(--light-brown); cursor: pointer; font-size: 18px; font-weight: bold; color: var(--dark-brown); transition: 0.2s; display: flex; align-items: center; justify-content: center;}
#qtyMinus:hover, #qtyPlus:hover {background: var(--secondary); color: var(--white);}
#popupQty {width: 35px; text-align: center; font-weight: 700; border: none; background: transparent; font-size: 1.1rem; color: var(--black);}

/* TOTAL & SAVE BUTTON */
.popup-total {display: flex; align-items: center; justify-content: space-between; padding-top: 15px; border-top: 1px dashed var(--secondary); margin-bottom: 20px;}
#popupPrice {font-size: 1.4rem; font-weight: 800; color: var(--dark-brown);}
#addToCartConfirmBtn {width: 100%; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, var(--primary), var(--dark-brown)); color: var(--white); font-weight: 700; border: none; cursor: pointer; transition: 0.3s; font-size: 1rem; letter-spacing: 0.5px;}
#addToCartConfirmBtn:hover {transform: translateY(-2px); box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);}

@keyframes popupFadeScale { from {opacity: 0; transform: scale(0.95);} to {opacity: 1; transform: scale(1);} }

/* --- ABOUT US SECTION --- */
.about-grid {display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; text-align: center;}
.about-card {background: #fff; padding: 1rem; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s;}
.about-card:hover {transform: translateY(-5px);}
.about-card img {width: 100%; height: 220px; object-fit: cover; border-radius: 10px; margin-bottom: 1rem;}
.about-card h3 {margin: 0.5rem 0 0.25rem 0; font-size: 1.2rem;}
.about-card p {margin: 0; font-size: 0.95rem; color: #555;}

/* --- SPACING FIX --- */
.mt-6 {margin-top: 40px !important;} 
.see-more, .about-link {margin-top: 50px; display: block; width: 100%;} 
.about-us {padding-top: 100px; padding-bottom: 100px;} 
.about-grid {margin-bottom: 50px;}
.menu-grid {margin-bottom: 50px;} 
.menu { padding: 60px 0 40px 0; } 
.about-us { padding: 40px 0 80px 0; }
.section-header { margin-bottom: 40px; }
.section-header h2 { font-family: var(--font-serif); font-size: 32px; color: var(--dark-brown); margin-bottom: 10px; }

/* CLOSE BUTTON */
.btn-close,
.popup-close {position: absolute; top: 12px; right: 14px; border: none; background: transparent; font-size: 26px; font-weight: bold; cursor: pointer; color: #444;}
.btn-close:hover,
.popup-close:hover {color: #a35d1e;}

/* POPUP IMAGE  */
.popup-image,
.popup-img {width: 100%; height: 220px; object-fit: cover; border-radius: 14px; margin-bottom: 16px;}

/* TITLE & DESCRIPTION */
.popup-title,
#popupTitle {font-size: 1.3rem; font-weight: 700; margin-bottom: 6px;}
.popup-description,
#popupDesc {font-size: 0.9rem; color: #666; margin-bottom: 16px; line-height: 1.5;}

/* ICE / HOT TOGGLE */
.temp-choice {display: flex; gap: 12px; margin-bottom: 16px;}

.btn-choice,
.temp-choice button {flex: 1; padding: 10px 0; border-radius: 999px; border: 1.5px solid #ddd; font-weight: 600; background: #f7f7f7; cursor: pointer; transition: all 0.25s ease;}
.btn-choice.ice,
#chooseIce {color: #1e88e5;}
.btn-choice.hot,
#chooseHot {color: #d84315;}
.btn-choice.active,
.temp-choice button.active {background: #a35d1e; color: #fff; border-color: #a35d1e;}

/* QTY INPUT */
.input-group,
.qty-row {display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;}
.qty-input,
#popupQty {width: 80px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid #ddd; font-size: 1rem; text-align: center;}
.qty-input:focus,
#popupQty:focus {outline: none; border-color: #a35d1e;}

/* PRICE  */
.popup-price-total,
.popup-footer {display: flex; justify-content: space-between; align-items: center; margin-top: 10px;}
.popup-price-total span,
#popupPrice {font-size: 1.2rem; font-weight: 700; color: #a35d1e;}

/* SAVE BUTTON */
.order-btn,
#addToCartConfirmBtn {width: 100%; margin-top: 16px; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, #a35d1e, #8b4d16); color: #fff; font-weight: 700; border: none; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease;}
.order-btn:hover,
#addToCartConfirmBtn:hover {transform: translateY(-2px); box-shadow: 0 10px 20px rgba(163,93,30,0.3);}

/* --- MENU GRID SYSTEM --- */
.menu-grid {
    display: grid;
    gap: 30px;
    width: 100%;
    margin-top: 30px;
}

/* Pengaturan 3 Kolom */
.menu-grid-3col {
    grid-template-columns: repeat(3, 1fr);
}


/* Khusus untuk Popular Menu agar ukurannya tidak raksasa */
.menu-grid .menu-item {
    max-width: 100%;
    overflow: hidden;
}

/* Responsive: 2 kolom di tablet, 1 kolom di hp */
@media (max-width: 992px) {
    .menu-grid-3col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .menu-grid-3col { grid-template-columns: repeat(1, 1fr); }
}

/* --- PERBAIKAN GAMBAR AGAR TIDAK TEPOTONG --- */
.menu-item img {
    width: 100%;
    height: auto;          /* Mengikuti tinggi asli gambar */
    aspect-ratio: 1 / 1;    /* Menjaga bentuk kotak tetap konsisten */
    object-fit: contain;    /* Gambar akan terlihat utuh di dalam bingkai */
    background-color: #fff; /* Memberi dasar putih jika gambar punya transparansi */
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    display: block;
}

.menu-item:hover {
    transform: translateY(-10px);
}

.menu-info {
    padding: 20px;
    flex-grow: 1;
}

.menu-info h4 {
    margin: 0 0 10px 0;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--dark-brown);
}

.menu-info p {
    font-size: 0.9rem;
    color: var(--text-grey);
    line-height: 1.4;
}

.menu-actions-item {
    padding: 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-actions-item .price {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
}

/* --- CART & MENU TOGGLE --- */
.cart-summary {display: flex; align-items: center; gap: 18px;}

/* Cart Icon */
#cartIcon {color: #fff; font-size: 22px; position: relative; text-decoration: none;}
#cartIcon i {color: #fff;}
#cartIcon:hover i {color: var(--accent-color);}
#cartCount {position: absolute; top: -6px; right: -10px; background: var(--danger-color); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 999px;}

/* ===============================
   MINI CART FLOATING (USER)
================================ */
#miniCart {position: fixed; bottom: 90px; right: 30px; width: 320px; max-width: 90%; background: #fff; border-radius: 18px; box-shadow: 0 18px 45px rgba(0,0,0,.25); z-index: 9999; display: none; animation: slideUpMiniCart .25s ease;}

/* ketika aktif */
#miniCart:not(.hidden) {display: block;}
.mini-cart-inner {padding: 18px;}
.mini-cart-items {max-height: 240px; overflow-y: auto; margin-bottom: 14px;}
.mini-cart-items::-webkit-scrollbar {width: 6px;}
.mini-cart-items::-webkit-scrollbar-thumb {background: #ddd; border-radius: 6px;}

/* item */
.mini-item {display: flex; gap: 12px; margin-bottom: 12px;}
.mini-item img {width: 48px; height: 48px; border-radius: 10px; object-fit: cover;}

/* info bawah */
.mini-cart-info {display: flex; align-items: center; justify-content: space-between; font-weight: 600; margin-bottom: 14px;}

/* ===============================
   CART ITEM (YOUR CART)
=============================== */

.cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

/* IMAGE FIX */
.cart-item img {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: #f3f3f3;
}

/* INFO AREA */
.cart-item .cart-info {
    flex: 1;
}

.cart-item .cart-title {
    font-weight: 700;
    font-size: 15px;
    color: #2b2b2b;
}

.cart-item .cart-type {
    font-size: 12px;
    font-weight: 600;
    margin-top: 2px;
    color: #6b7280;
}

.cart-item .cart-price {
    font-size: 13px;
    color: #555;
    margin-top: 4px;
}

/* BADGE */
.badge-hot {
    color: #dc2626;
}

.badge-ice {
    color: #2563eb;
}
/* Container Item Keranjang */
.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0;
}

/* Tombol Remove Modern */
.remove-item {
    margin-left: auto;
    background: #fff1f2;
    border: none;
    color: #ef4444;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-item:hover {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.remove-item i {
    font-size: 1.1rem;
}

/* ===============================
   CART DELETE BUTTON
=============================== */

.cart-delete-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all .2s ease;
}

.cart-delete-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

@keyframes slideUpMiniCart {
    from {opacity:0; transform: translateY(20px);}
    to   {opacity:1; transform: translateY(0);}
}

/* --- LAYOUT UTAMA: LEBAR SEIMBANG & SIMETRIS --- */
.order-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; width: 100%; max-width: 1400px; margin: 0 auto; padding: 40px 20px; align-items: start; box-sizing: border-box; }
@media (max-width: 1100px) { .order-container { grid-template-columns: 1fr; } }

/* --- LEFT SIDE: YOUR CART (LEBAR DITAMBAH, TINGGI PAS) --- */
.sticky-cart { position: sticky; top: 110px; background: #ffffff; border-radius: 28px; padding: 30px; box-shadow: 0 15px 50px rgba(0,0,0,0.05); border: 1px solid #f0f0f0; width: 100%; box-sizing: border-box; }
.cart-items-container { height: 380px; overflow-y: auto; margin: 20px 0; padding-right: 10px; }
.total-display { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-top: 2px dashed #eee; }
.price-amount { font-size: 30px; font-weight: 800; color: #6f4e37; }

/* --- CSS PAYMENT METHOD & BUTTON (SELARAS) --- */
.custom-select { width: 100%; padding: 15px; border-radius: 15px; border: 2px solid #f0f0f0; background: #fafafa; font-weight: 600; color: #444; outline: none; transition: 0.3s; appearance: none; cursor: pointer; }
.custom-select:focus { border-color: #6f4e37; background: #fff; }

/* --- SINKRONISASI TOMBOL --- */
.space-y-3 { margin-bottom: 5px; }

.custom-select { 
    width: 100%; padding: 15px; border-radius: 12px; 
    border: 1.5px solid #eee; background: #f9f9f9; 
    outline: none; transition: 0.3s; margin-top: 8px;
}

.btn-checkout-premium { 
    width: 100%; padding: 18px; border-radius: 15px; 
    background: #6f4e37; color: #fff; 
    font-weight: 700; border: none; cursor: pointer; 
    transition: 0.3s; box-shadow: 0 8px 20px rgba(111,78,55,0.2);
    margin-top: 10px; 
}

.btn-checkout-premium:hover { 
    background: #3d2b1f; transform: translateY(-3px); 
    box-shadow: 0 12px 25px rgba(111,78,55,0.3); 
}
.btn-checkout-premium:active { transform: scale(0.98); }

/* --- RIGHT SIDE: MENU LIST --- */
.menu-scroll-view { height: calc(100vh - 100px); overflow-y: auto; padding: 10px; background: rgba(245, 245, 245, 0.4); border-radius: 24px; }
.menu-order-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

/* --- MENU CARD --- */
.menu-order-card { background: #ffffff; border-radius: 22px; padding: 18px; display: flex; align-items: center; justify-content: space-between; transition: 0.4s; border: 1px solid #f5f5f5; }
.menu-order-card:hover { transform: translateY(-5px); border-color: #d7ccc8; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.card-inner { display: flex; align-items: center; gap: 15px; }
.img-wrapper { width: 80px; height: 80px; border-radius: 15px; overflow: hidden; }
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.details h4 { font-size: 18px; font-weight: 700; color: #2d3436; }
.price-tag { color: #6f4e37; font-weight: 800; }

/* --- BUTTON PLUS (REFERENSI) --- */
.add-btn-circle { width: 44px; height: 44px; border-radius: 12px; background: #6f4e37; color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.add-btn-circle:hover { background: #3d2b1f; transform: scale(1.1); }

/* --- SCROLLBAR --- */
.custom-scrollbar::-webkit-scrollbar { width: 5px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #d7ccc8; border-radius: 10px; }

/* --- ABOUT HERO SECTION --- */
.about-hero{padding:80px 0;background:linear-gradient(to right,#ffffff,#fdfaf7)} .hero-container{display:grid;grid-template-columns:1fr 1.2fr;gap:60px;align-items:center}
.hero-image img{width:100%;border-radius:30px;box-shadow:0 20px 40px rgba(0,0,0,0.1);transition:0.5s} .hero-image:hover img{transform:scale(1.02)}
.hero-title{font-family:var(--font-serif);font-size:42px;color:var(--dark-brown);margin-bottom:10px} .hero-subtitle{font-size:24px;color:var(--primary);margin-bottom:24px;font-weight:600;display:block}
.hero-text p{font-size:16px;color:var(--text-grey);line-height:1.8;margin-bottom:20px}

/* --- TEAM SECTION PROFESSIONAL --- */
.team-section{padding:80px 0} .section-title{font-family:var(--font-serif);font-size:36px;color:var(--dark-brown);margin-bottom:10px}
.team-container-about{display:grid;grid-template-columns:repeat(2,1fr);gap:40px;margin-top:50px}
.team-card{background:var(--white);border-radius:24px;padding:40px;text-align:center;box-shadow:0 10px 30px rgba(0,0,0,0.05);border:1px solid rgba(0,0,0,0.02);transition:0.4s ease}
.team-card:hover{transform:translateY(-10px);box-shadow:0 20px 40px rgba(139,69,19,0.1)}
.team-card img{width:160px;height:160px;border-radius:50%;object-fit:cover;margin-bottom:25px;border:6px solid var(--bg-light);box-shadow:0 10px 20px rgba(0,0,0,0.1)}
.team-card h3{font-family:var(--font-serif);font-size:24px;color:var(--dark-brown);margin-bottom:12px}
.team-card p{font-size:15px;color:var(--text-grey);line-height:1.6}

/* --- MOMENTS GALLERY (PUZZLE) --- */
.puzzle-section{padding:80px 0} .puzzle-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:40px}
.puzzle-grid img{width:100%;height:250px;object-fit:cover;border-radius:20px;transition:0.4s;filter:grayscale(30%)}
.puzzle-grid img:hover{transform:scale(1.05);filter:grayscale(0);box-shadow:0 15px 30px rgba(0,0,0,0.2);z-index:2}

/* --- DIVIDER & SPACING --- */
hr{border:0;height:1px;background:linear-gradient(to right,transparent,rgba(139,69,19,0.2),transparent);margin:20px 0}
.py-10{padding-top:80px;padding-bottom:80px}

/* Container Utama (Fixed & Center) */
#qrisPopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Diatur via JS (flex/none) */
    align-items: center;
    justify-content: center;
}

/* Latar Belakang Blur */
.qris-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65); /* Hitam Transparan */
    backdrop-filter: blur(12px); /* Blur Level Pro */
    -webkit-backdrop-filter: blur(12px);
    z-index: -1;
}

/* Kotak Putih (Card) */
.qris-card {
    background: white;
    width: 90%;
    max-width: 380px;
    border-radius: 28px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

/* Header */
.qris-header h3 { margin-top: 10px; }

/* Image Styling */
.qris-image-container {
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    padding: 15px;
    border-radius: 20px;
    margin: 20px 0;
}

#qrisImg {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* Alert Box */
.qris-alert {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 20px;
}

.qris-alert i { color: #d97706; margin-top: 3px; }
.qris-alert p { font-size: 11px; color: #92400e; line-height: 1.4; }

/* Button Premium */
.btn-status-qris {
    width: 100%;
    background: #15803d; /* Hijau Sukses */
    color: white;
    padding: 15px;
    border-radius: 16px;
    font-weight: 700;
    border: none;
    transition: all 0.2s;
    box-shadow: 0 10px 15px -3px rgba(21, 128, 61, 0.2);
}

.btn-status-qris:hover {
    background: #166534;
    transform: translateY(-2px);
}

.btn-status-qris:active { transform: scale(0.98); }

/* --- CUSTOM TOAST NOTIFICATION --- */
.toast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Overlay tipis */
    backdrop-filter: blur(4px); /* Blur background agar fokus ke pesan */
    display: none; /* Default sembunyi */
    align-items: center;
    justify-content: center;
    z-index: 1000000; /* Di atas segalanya */
    pointer-events: none; /* Agar tidak menghalangi klik jika tidak sengaja muncul */
}

.toast-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.toast-box {
    background: var(--dark-brown);
    color: var(--white);
    padding: 20px 40px;
    border-radius: 20px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    text-align: center;
    min-width: 280px;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-overlay.show .toast-box {
    transform: translateY(0);
}

#toastMsg {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Variasi Warna Berdasarkan Tipe */
.toast-overlay.warning .toast-box { border-color: var(--secondary); }
.toast-overlay.danger .toast-box { border-color: var(--danger-color); }

/* Animasi */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* --- menu_admin.php --- */
.admin-content {background: var(--card-light); border-radius: 0; padding: 28px 0; box-shadow: none; font-family: var(--font-sans);}
.admin-content h2 {font-family: var(--font-serif); font-size: 28px; margin-bottom: 32px; color: var(--dark-brown); font-weight: 700; border-bottom: 3px solid var(--primary); padding-bottom: 18px; letter-spacing: 0.5px;}

.form-admin {display: grid; grid-template-columns: 1fr 1fr; gap: 24px; background: linear-gradient(135deg, #ffffff 0%, #faf9f8 100%); padding: 28px; border-radius: 16px; margin-bottom: 40px; border: 1px solid #e0d6cf; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);}
.form-column {display: flex; flex-direction: column; gap: 18px;}
.form-admin > button {grid-column: 1 / -1; width: 100%; margin-top: 16px; padding: 16px 28px; font-size: 16px;}
.form-admin > div {display: flex; flex-direction: column;}
.form-admin label {display: block; font-size: 13px; color: var(--text-grey); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px;}
.form-admin input,
.form-admin textarea,
.form-admin select {padding: 14px 16px; border-radius: 12px; border: 2px solid #e0d6cf; font-size: 14px; font-family: var(--font-sans); outline: none; background: var(--white); width: 100%; box-sizing: border-box; transition: all 0.3s ease;}
.form-admin input::placeholder,
.form-admin textarea::placeholder {color: #999; font-style: italic;}
.form-admin textarea {resize: vertical; min-height: 200px;}
.form-admin input:focus,
.form-admin textarea:focus,
.form-admin select:focus {border-color: var(--primary); background: #fffbf7; box-shadow: 0 0 8px rgba(139, 69, 19, 0.15), inset 0 0 4px rgba(139, 69, 19, 0.05);}
.form-admin input[type="file"] {padding: 12px;}
.form-admin input[type="file"]::file-selector-button {background: linear-gradient(135deg, var(--primary), var(--dark-brown)); color: white; border: none; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; transition: all 0.3s ease;}
.form-admin input[type="file"]::file-selector-button:hover {opacity: 0.9; transform: translateY(-1px);}
.btn {display: inline-block; padding: 14px 28px; border-radius: 12px; font-size: 14px; font-family: var(--font-sans); font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: all 0.3s ease; letter-spacing: 0.3px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);}
.btn:hover {transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);}
.btn-primary {background: linear-gradient(135deg, var(--primary), var(--dark-brown)); color: var(--white); border: none;}
.btn-primary:hover {opacity: 0.95; background: linear-gradient(135deg, var(--dark-brown), #3a1f15);}
.btn-primary:active {transform: translateY(0); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);}
.btn-secondary {background: var(--accent-color); color: var(--dark-brown); border: 2px solid var(--accent-color);}
.btn-secondary:hover {background: var(--secondary); color: var(--dark-brown);}
.btn-danger {background: rgba(239, 68, 68, 0.15); color: var(--danger-color); border: 2px solid var(--danger-color);}
.btn-danger:hover {background: var(--danger-color); color: var(--white);}
.btn-sm {padding: 8px 16px; font-size: 12px;}
.btn-block {width: 100%; display: block; text-align: center;}
.admin-table {width: 100%; border-collapse: collapse; background: var(--white); border-radius: 14px; overflow: hidden; border: 1px solid #e0d6cf; margin-top: 28px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); min-height: 500px;}
.admin-table thead th {background: linear-gradient(135deg, var(--dark-brown), var(--primary)); color: var(--white); padding: 18px 15px; text-align: left; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; border: 1px solid var(--primary);}
.admin-table thead tr {border-bottom: 2px solid var(--primary);}
.admin-table tbody td {padding: 16px 15px; border: 1px solid #e0d6cf; vertical-align: middle; font-size: 14px; color: var(--text-dark);}
.admin-table tbody tr {transition: all 0.3s ease; border-bottom: 1px solid #e0d6cf;}
.admin-table tbody tr:last-child {border-bottom: 1px solid #e0d6cf;}
.admin-table tbody tr:hover {background-color: #fffbf7; box-shadow: inset 0 2px 8px rgba(139, 69, 19, 0.08);}
.menu-img-preview {width: 70px; height: 70px; object-fit: cover; border-radius: 10px; border: 2px solid #e0d6cf; transition: transform 0.3s ease;}
.admin-table tbody tr:hover .menu-img-preview {transform: scale(1.05);}

/* SweetAlert2 Customization */
.swal2-container {align-items: center !important; justify-content: center !important;}
.swal2-popup {width: auto; max-width: 500px; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);}
.swal2-title {color: var(--dark-brown); font-family: var(--font-serif); font-size: 24px; margin-bottom: 16px;}
.swal2-html-container {color: var(--text-dark); font-family: var(--font-sans); font-size: 14px; line-height: 1.6;}
.swal2-confirm {background: linear-gradient(135deg, var(--primary), var(--dark-brown)) !important; border-radius: 10px; padding: 12px 24px; font-weight: 600;}
.swal2-confirm:hover {opacity: 0.95 !important;}
.swal2-cancel {background: #999 !important; border-radius: 10px; padding: 12px 24px; font-weight: 600;}
.swal2-cancel:hover {opacity: 0.95 !important;}
.swal2-icon {color: var(--primary) !important;}
.swal2-icon.swal2-success [class*='swal2-success-line'] {background: var(--primary) !important;}
.swal2-icon.swal2-success .swal2-success-ring {border-color: var(--primary) !important;}
.swal2-icon.swal2-error {border-color: #ef4444 !important; color: #ef4444 !important;}
.swal2-icon.swal2-warning {border-color: #f59e0b !important; color: #f59e0b !important;}

/* Table Container */
.table-container {width: 100%; overflow-x: auto;}

/* Report Admin Styles */
.report-header {background: linear-gradient(135deg, var(--dark-brown), var(--primary)); color: white; padding: 28px; border-radius: 14px; margin-bottom: 32px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);}
.report-header h3 {margin: 0 0 12px 0; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9;}
.report-header p {margin: 8px 0; font-size: 28px; font-weight: 700;}
.report-stats {display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px;}
.stat-card {background: linear-gradient(135deg, #ffffff 0%, #faf9f8 100%); padding: 24px; border-radius: 14px; border: 1px solid #e0d6cf; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); transition: all 0.3s ease;}
.stat-card:hover {transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);}
.stat-card h4 {margin: 0 0 12px 0; color: var(--dark-brown); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;}
.stat-card .value {font-size: 24px; font-weight: 700; color: var(--primary); margin-bottom: 8px;}
.stat-card .label {font-size: 12px; color: var(--text-grey);}

/* Filter and Search Styles */
.admin-controls {display: flex; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; align-items: center;}
.admin-controls select,
.admin-controls input,
.admin-controls button {padding: 14px 16px; border-radius: 12px; border: 2px solid #e0d6cf; font-size: 14px; font-family: var(--font-sans); background: white; color: var(--text-dark);}
.admin-controls select:focus,
.admin-controls input:focus {border-color: var(--primary); outline: none;}
.admin-controls input {flex: 1; min-width: 200px;}
.admin-controls button {background: linear-gradient(135deg, var(--primary), var(--dark-brown)); color: white; border: none; font-weight: 600; cursor: pointer; transition: all 0.3s ease; padding: 14px 24px;}
.admin-controls button:hover {opacity: 0.95; transform: translateY(-1px);}

/* Card Styles for Report Page */
.card {background: linear-gradient(135deg, #ffffff 0%, #faf9f8 100%); padding: 24px; border-radius: 14px; border: 1px solid #e0d6cf; margin-bottom: 32px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);}
.card h3 {margin: 0 0 16px 0; color: var(--dark-brown); font-size: 18px; font-weight: 600;}
.card p {margin: 8px 0; color: var(--text-dark); line-height: 1.6;}

/* Additional Admin Utilities */
.admin-section {margin-bottom: 32px;}
.admin-section-title {font-size: 18px; font-weight: 700; color: var(--dark-brown); margin-bottom: 20px; display: flex; align-items: center; gap: 12px;}
.admin-section-title::before {content: ''; display: inline-block; width: 4px; height: 24px; background: linear-gradient(135deg, var(--primary), var(--dark-brown)); border-radius: 2px;}

.table-container {overflow-x: auto;}
.no-data-message {text-align: center; padding: 48px 20px; color: var(--text-grey); font-size: 16px;}
.no-data-message i {font-size: 48px; color: #ddd; display: block; margin-bottom: 16px;}

/* Action Cell Styling */
.action-cell {display: flex; gap: 10px; flex-wrap: wrap;}
.action-cell .btn {padding: 10px 16px; font-size: 13px; border-radius: 10px;}

/* Alert/Status Messages */
.alert {padding: 16px 18px; border-radius: 10px; margin-bottom: 20px; border-left: 4px solid; font-size: 14px;}
.alert-success {background: #f0fdf4; border-left-color: #10b981; color: #047857;}
.alert-danger {background: #fef2f2; border-left-color: #ef4444; color: #991b1b;}
.alert-warning {background: #fffbeb; border-left-color: #f59e0b; color: #b45309;}
.alert-info {background: #eff6ff; border-left-color: #3b82f6; color: #1e40af;}

/* Loading and Disabled States */
.btn:disabled, .btn.disabled {opacity: 0.6; cursor: not-allowed; transform: none;}
.form-admin input:disabled, .form-admin textarea:disabled, .form-admin select:disabled {background: #f5f5f5; color: #999; cursor: not-allowed;}

/* Chart Container */
.chart-container {background: linear-gradient(135deg, #ffffff 0%, #faf9f8 100%); padding: 24px; border-radius: 14px; border: 1px solid #e0d6cf; margin-bottom: 32px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);}
.chart-container h3 {margin: 0 0 20px 0; color: var(--dark-brown); font-size: 18px; font-weight: 600;}

/* Badge Styling */
.badge {display: inline-block; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;}
.badge-success {background: #d1fae5; color: #065f46;}
.badge-danger {background: #fee2e2; color: #991b1b;}
.badge-warning {background: #fef3c7; color: #b45309;}
.badge-info {background: #dbeafe; color: #1e40af;}

/* Empty State */
.empty-state {text-align: center; padding: 60px 20px;}
.empty-state-icon {font-size: 64px; color: #ddd; margin-bottom: 20px;}
.empty-state h3 {color: var(--dark-brown); margin: 0 0 10px 0;}
.empty-state p {color: var(--text-grey); margin: 0 0 20px 0;}

/* --- Authentication Pages (login.php & register.php) --- */
.auth-page {margin: 0; padding: 0; background: linear-gradient(135deg, var(--dark-brown) 0%, var(--primary) 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; font-family: var(--font-sans);}
.auth-box {background: var(--white); padding: 48px; border-radius: 20px; box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35); width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 24px; animation: slideUp 0.5s ease-out;}

@keyframes slideUp {from {opacity: 0; transform: translateY(30px);} to {opacity: 1; transform: translateY(0);}}
.auth-brand {text-align: center; margin-bottom: 8px;}
.auth-logo {width: 90px; height: 90px; object-fit: contain; margin-bottom: 16px; transition: transform 0.3s ease;}
.auth-logo:hover {transform: scale(1.05);}
.auth-brand h1 {margin: 0 0 4px 0; font-family: var(--font-serif); font-size: 32px; color: var(--dark-brown); font-weight: 700; letter-spacing: -0.5px;}
.auth-brand p {font-size: 15px; color: var(--text-grey); margin: 0; font-weight: 500; letter-spacing: 0.3px;}
.auth-box h2 {font-family: var(--font-serif); font-size: 26px; color: var(--dark-brown); margin: 0 0 20px 0; text-align: left; font-weight: 700;}
.auth-box input[type="text"],
.auth-box input[type="email"],
.auth-box input[type="password"] {padding: 14px 18px; border: 2px solid #e0d6cf; border-radius: 12px; font-size: 15px; font-family: var(--font-sans); outline: none; background: #faf9f8; color: var(--text-dark); transition: all 0.3s ease;}
.auth-box input[type="text"]::placeholder,
.auth-box input[type="email"]::placeholder,
.auth-box input[type="password"]::placeholder {color: #aaa; font-weight: 500;}
.auth-box input[type="text"]:focus,
.auth-box input[type="email"]:focus,
.auth-box input[type="password"]:focus {border-color: var(--primary); background: var(--white); box-shadow: 0 0 14px rgba(139, 69, 19, 0.25);}
.auth-box button[type="submit"] {padding: 15px 24px; background: linear-gradient(135deg, var(--primary), var(--dark-brown)); color: var(--white); border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; letter-spacing: 0.4px; box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3); margin-top: 8px;}
.auth-box button[type="submit"]:hover {opacity: 0.95; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(139, 69, 19, 0.4);}
.auth-box button[type="submit"]:active {transform: translateY(-1px); box-shadow: 0 4px 12px rgba(139, 69, 19, 0.25);}
.auth-box p {text-align: center; color: var(--text-grey); margin: 12px 0 0 0; font-size: 14px; line-height: 1.6;}
.auth-box p a {color: var(--primary); text-decoration: none; font-weight: 600; transition: all 0.3s ease;}
.auth-box p a:hover {color: var(--dark-brown); text-decoration: underline;}

/* Error and Success Messages */
.auth-error {background: #fef2f2; border: 2px solid #fecaca; border-radius: 12px; padding: 14px 16px; margin-bottom: 8px;}
.auth-error strong {color: #dc2626; display: block; font-size: 14px; margin-bottom: 4px;}
.auth-error p {margin: 0; color: #991b1b; font-size: 13px; line-height: 1.5;}

.auth-success {background: #f0fdf4; border: 2px solid #86efac; border-radius: 12px; padding: 14px 16px; margin-bottom: 8px;}
.auth-success strong {color: #16a34a; display: block; font-size: 14px; margin-bottom: 4px;}
.auth-success p {margin: 0; color: #15803d; font-size: 13px; line-height: 1.5;}

/* --- footer.php --- */
.main-footer {background-color: var(--black); color: var(--white); padding-top: 30px; width: 100%; margin-top: auto;}
.footer-container {max-width: 1200px; margin: 0 auto; padding: 30px 5%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; width: 90%;}
.footer-grid {display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; padding: 0 5% 40px 5%; margin-bottom: 0; border-bottom: 1px solid #444; max-width: 1200px; margin-left: auto; margin-right: auto; width: 90%;}
.footer-brand .logo { color: var(--white); display: flex; align-items: center; font-size: 2.2em; font-weight: bold; margin-bottom: 5px;}
.footer-brand .logo-image {height: 50px; width: auto; margin-right: 15px;}
.footer-brand .footer-address {color: var(--white) !important; font-size: 1.2em !important; font-weight: normal !important; line-height: 1.4; margin-top: 5px !important; padding-bottom: 0; padding-left: 65px;}
.footer-brand p:not(.footer-address) {color: #ccc; font-size: 0.9em; margin-top: 10px;}
.footer-links h4,
.footer-contact h4 { color: var(--secondary); margin-bottom: 15px; font-size: 1.2em;}
.footer-links ul {list-style: none;}
.footer-links a {color: #ccc; display: block; padding: 5px 0;}
.footer-links a:hover {color: var(--white);}
.social-icons a {display: inline-block; margin-right: 15px; transition: opacity 0.3s;}
.social-icons a:hover {opacity: 0.8;}
.social-icons img {width: 30px; height: 30px; margin-right: 10px;}
.footer-contact p {margin-top: 10px; font-size: 0.9em; color: #ccc;}
/* --- REVISI FOOTER BOTTOM FULL WIDTH --- */
.footer-bottom {
    text-align: center; 
    padding: 15px 0; 
    font-size: 0.8em; 
    background-color: #222; 
    width: 100%;       /* Menggunakan 100% lebar layar */
    max-width: none;    /* Menghapus batasan 1200px */
    margin: 0;          /* Menghapus margin auto */
}

/* Pastikan main-footer juga tidak memiliki hambatan lebar */
.main-footer {
    background-color: var(--black); 
    color: var(--white); 
    padding-top: 30px; 
    width: 100%; 
    margin-top: auto;
    display: flex;
    flex-direction: column;
}
/*  CONTACT PAGE  */
.container-contact {padding: 60px 0;}
.contact-page-wrapper {display: grid; grid-template-columns: 1fr 1fr; gap: 60px;}
.contact-title {font-family: var(--font-serif); font-size: 32px; color: var(--dark-brown); margin-bottom: 10px;}
.contact-subtitle {color: var(--text-grey); margin-bottom: 30px; line-height: 1.6;}
.contact-group {display: flex; flex-direction: column; gap: 20px;}
.contact-detail-item { padding-bottom: 20px; border-bottom: 1px solid #e8dcd2;}
.contact-detail-item h3 {margin: 0 0 6px; color: var(--primary);}
.contact-detail-item p,
.contact-detail-item a {margin: 0; color: var(--text-dark); text-decoration: none;}
.contact-detail-item.no-border {border-bottom: none;}

/* FORM */
.form-section-wrapper {background: var(--form-bg); padding: 40px; border-radius: 18px; box-shadow: var(--shadow-light);}
.contact-form .form-group {margin-bottom: 20px;}
.contact-form label {display: block; margin-bottom: 6px; font-weight: 600;}
.contact-form input,
.contact-form textarea {width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #d7c8bb; font-family: var(--font-sans);}
.submit-btn-override {width: 100%; margin-top: 10px;}

/* MESSAGE BOX */
.message-box {padding: 14px 20px; border-radius: 10px; margin-bottom: 30px; font-weight: 500;}
.message-box.success {background: #dcfce7; color: #166534;}
.message-box.error {background: #fee2e2; color: #7f1d1d;}

/* CHECKOUT PAGE  */
.checkout-section {background: var(--card-light); border-radius: 16px; box-shadow: var(--shadow-light); padding: 24px;}
.checkout-title {font-size: 24px; font-weight: 700; margin-bottom: 16px; color: var(--text-dark);}
.cart-item-row {display: flex; justify-content: space-between; align-items: center; background: #fafafa; padding: 14px; border-radius: 12px;}
.cart-item-row img {width: 56px; height: 56px; border-radius: 10px; object-fit: cover;}
.cart-item-row button {background: none; border: none; cursor: pointer; color: var(--danger-color); font-size: 18px;}
.checkout-total {display: flex; justify-content: space-between; font-size: 22px; font-weight: 700; margin-top: 20px;}
.checkout-btn {width: 100%; background: var(--primary); color: #fff; padding: 14px; border-radius: 14px; font-size: 18px; font-weight: 600; border: none; cursor: pointer;}
.checkout-btn:disabled {background: #ccc; cursor: not-allowed;}

/* INVOICE PAGE */
.invoice-wrapper {max-width: 720px; margin: 40px auto; background: #fff; padding: 32px; border-radius: 18px; box-shadow: var(--shadow-light);}
.invoice-header {text-align: center; margin-bottom: 24px;}
.invoice-header h1 {font-size: 28px; font-weight: 800;}
.invoice-info p {margin: 6px 0; font-size: 14px; color: var(--text-grey);}
.invoice-items {margin-top: 24px;}
.invoice-item {display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed #ddd;}
.invoice-item:last-child {border-bottom: none;}
.invoice-total {display: flex; justify-content: space-between; font-size: 22px; font-weight: 800; margin-top: 24px;}
.invoice-actions {display: flex; gap: 12px; margin-top: 32px;}
.invoice-actions .btn {flex: 1;}

/* RESPONSIVE */
@media (max-width:900px){
    .hero-container{grid-template-columns:1fr;text-align:center;gap:40px}
    .team-container-about{grid-template-columns:1fr}
    .puzzle-grid{grid-template-columns:repeat(2,1fr)}
    .hero-title{font-size:32px}
}

@media (max-width: 768px) {
    /* index.php */
    .hero-title {font-size: 36px;}
    .hero-section {padding: 80px 0;}
    .menu {padding: 70px 0;}
    .team-section {padding: 70px 0;}

    /* header_admin.php */
    .admin-nav { display: none; position: absolute; top: 70px; right: 5%; background: var(--card-light); border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); padding: 16px; width: 220px; z-index: 999;}
    .admin-nav ul {flex-direction: column; gap: 8px; margin: 0; padding: 0;}
    .admin-nav a {color: var(--text-dark); border-radius: 8px; font-size: 15px; padding: 10px 14px;}
    .admin-nav a:hover {background: var(--bg-light); color: var(--primary);}
    .admin-nav.active {display: block;}

    /* admin wrapper */
    .admin-wrapper {padding: 0 5%; width: 90%;}

    /* menu_admin.php */
    .admin-content {padding: 20px 0; width: 90%;}
    .admin-content h2 {font-size: 22px; margin-bottom: 24px;}
    .form-admin {padding: 18px; gap: 12px; grid-template-columns: 1fr;}
    .form-admin > button {grid-column: 1 / -1; width: 100%; padding: 14px 24px; font-size: 14px;}
    .admin-table {margin-top: 20px; min-height: auto;}
    .admin-table thead {display: none;}
    .admin-table tbody tr {display: block; padding: 16px; border-bottom: 2px solid #e0d6cf; margin-bottom: 12px; border-radius: 8px; background: #faf9f8;}
    .admin-table tbody td {display: flex; justify-content: space-between; padding: 8px 0; border: none;}
    .admin-table tbody td::before {content: attr(data-label); font-weight: 600; color: var(--dark-brown);}

    /* Report styles */
    .report-stats {grid-template-columns: 1fr;}
    .admin-controls {flex-direction: column;}
    .admin-controls input {width: 100%;}

    /* Footer */
    .footer-brand .footer-address {padding-left: 0;}
    .footer-grid {padding: 0 5% 32px 5%; width: 90%;}
    .footer-bottom {width: 90%;}

    .main-nav {display: none;}
    .hero-title {font-size: 2.5em;}
    .contact-page-wrapper {flex-direction: column;}
    .info-section, .form-section-wrapper {padding: 30px;}
}

@media (max-width: 480px) {
    .auth-box { padding: 32px 24px; max-width: 100%; margin: 20px; }
    .auth-box h2 { font-size: 24px; margin-bottom: 6px;}
    .auth-box input[type="text"],
    .auth-box input[type="email"],
    .auth-box input[type="password"] {padding: 12px 14px; font-size: 14px;}
    .auth-box button[type="submit"] {padding: 12px 20px; font-size: 14px;}
    #popupDetail > div {padding: 20px;}
    #popupImg {height: 180px;}
}

@keyframes popupFade {
    from {opacity: 0; transform: scale(0.95);}
    to {opacity: 1; transform: scale(1);}
}