/* =======================
   GLOBAL STYLE
======================= */
/* POIN 2: sediakan ruang scrollbar permanen → navbar/layout TIDAK bergeser saat
   berpindah antar halaman (yang punya scrollbar maupun tidak). */
html{
    scrollbar-gutter: stable;
    background: #f5f5f5;        /* cegah kilatan putih saat first-paint/transisi halaman */
}
body{
    font-family: Arial, sans-serif;
    margin:0;
    background:#f5f5f5;
    font-size: var(--font-base);
}

/* Catatan: animasi perpindahan halaman (page transition / View Transitions /
   fade-in & slide-up saat load) SENGAJA DIHAPUS — halaman dibuka langsung, cepat,
   bersih, tanpa white flash. Yang dipertahankan hanya transisi kecil komponen UI
   (hover tombol, hover card, animasi navbar, dsb). */

p, label, button, input, select, textarea {
    font-size: var(--font-base);  
}

h1 {
    font-size: var(--font-h1);
}

h2 {
    font-size: var(--font-h2);
}

:root {
    --font-base: clamp(14px, 2vw, 18px);  
    --font-h1: clamp(20px, 4vw, 36px);     
    --font-h2: clamp(18px, 3vw, 28px);     
}

img{
    max-width:100%;$
}



/* =======================
   NAVBAR
======================= */
.navbar{
    background:#ff6b00;
    padding:21px 50px;     /* POIN 6: navbar sedikit lebih tinggi/kokoh (ukuran teks/ikon/logo tetap) */
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
}

.navbar h2{
    color:white;
}

.menu{
    position:relative;        /* acuan posisi underline geser */
}

.menu a{
    margin-left:20px;
    text-decoration:none;
    color:white;
    font-weight:bold;
    padding-bottom:6px;       /* ruang untuk garis bawah indikator */
}

/* garis bawah animatif menu aktif (gaya New Balance, tema FoodRate) */
.menu-underline{
    position:absolute;
    bottom:-2px;
    left:0;
    width:0;
    height:3px;
    background:#ffffff;
    border-radius:3px;
    opacity:0;
    pointer-events:none;
    /* POIN 7: garis bawah TUMBUH dari TENGAH menu → melebar ke kiri & kanan.
       transform-origin center + scaleX(0→1); posisi (left/width) dipindah instan
       lewat JS sehingga efeknya benar-benar "muncul dari tengah", bukan menggeser. */
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .55s cubic-bezier(.22,.61,.36,1),
                opacity .3s ease;
}
.menu-underline.show{ opacity:1; transform: scaleX(1); }

/* POIN 5: tidak ada efek fade pada teks navbar — feedback hanya dari garis bawah.
   (opacity teks dibiarkan tetap 1 baik saat hover maupun aktif) */
.menu a.aktif{ opacity:1; }
.menu a:hover{ opacity:1; }

/* AKUN BUTTON */
.navbar-akun {
    display: flex;
    align-items: center;
    gap: 6px;
}

.akun-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: white;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.2s;
}

.akun-btn:hover {
    background: rgba(255,255,255,0.35);
}

/* NAVBAR STICKY */
.navbar{
    position: sticky;
    top: 0;
    z-index: 1000; 
}


/* =======================
   HERO SECTION
======================= */
.hero{
    height:350px;
    background-image:url("bannerratingmakanan.jpg");
    background-size:cover;
    background-position:center;

    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:white;
}

.hero h1{
    background:rgba(0,0,0,0.5);
    padding:20px;
    border-radius:10px;
}


/* =======================
   SECTION
======================= */
.section{
    padding:40px;
    text-align:center;
}

.section h2{
    margin-bottom:30px;
}


/* =======================
   CARDS (FLEXBOX)
======================= */
.cards{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
}

.card{
    background:white;
    width:250px;
    max-width:300px;
    flex:1 1 250px;

    border-radius:10px;
    overflow:hidden;
    box-shadow:0 4px 12px rgba(0,0,0,0.1);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover{
    transform: translateY(-6px);              /* subtle: lift lebih halus & premium */
    box-shadow:0 12px 26px rgba(0,0,0,0.16);
}

.card img{
    width:100%;
    height:170px;
    object-fit:cover;
}

.card p{
    padding:15px;
}

/* =======================
   STATUS BADGE
======================= */
.card{
    position: relative;
}

.status{
    position:absolute;
    top:10px;
    right:10px; 
    padding:5px 10px;
    font-size:12px;
    border-radius:20px;
    color:white;
    font-weight:bold;
}

.status.open{
    background-color:green;
}

.status.closed{
    background-color:red;
}


/* =======================
   FOOD PREVIEW
======================= */
.food-preview{
    text-align:center;
    margin-bottom:15px;
}

.food-preview img{
    width:220px;
    border-radius:10px;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

.food-preview h3{
    margin-top:10px;
    color:#333;
}


/* =======================
   FORM
======================= */
.form-section{
    background-color:#fff3e6;
    padding:40px;
    margin-top:0;          /* POIN 5: hapus celah putih → krem langsung menyambung navbar */

    display:flex;
    flex-direction:column;
    align-items:center;
}

form{
    width:90%;
    max-width:600px;
    margin:0 auto;
}

fieldset{
    background-color:white;
    border:2px dashed #ff6b00;
    border-radius:15px;
    padding:25px;
    margin-top:20px;
}

legend{
    font-weight:bold;
    color:#ff6b00;
    font-size:18px;
    padding:0 10px;
}

input, select, textarea{
    width:100%;
    padding:10px;
    margin-top:5px;
    margin-bottom:10px;
    border-radius:6px;
    border:1px solid #ccc;
    box-sizing:border-box;
}

input[type="radio"],
input[type="checkbox"]{
    width:auto;
}

input:focus, select:focus, textarea:focus{
    outline:none;
    border:2px solid #ff6b00;
    box-shadow:0 0 5px rgba(255,107,0,0.4);
}

button{
    width:100%;
    padding:14px;
    background:#ff6b00;
    color:white;
    border:none;
    border-radius:8px;
    font-size:16px;
    cursor:pointer;
    margin-top:20px;
}

button:hover{
    background:#e65c00;
}

/* BACK TO TOP BUTTON */
#backToTop{
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;           
    height: 50px;
    border-radius: 50%;    
    border: none;
    background-color: #e65c00;
    color: white;
    font-size: 20px;       
    display: flex;         
    align-items: center;
    justify-content: center;
    cursor: pointer;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* hover effect */
#backToTop:hover{
    background-color: #e65c00;
    transform: scale(1.1);
}

/* =======================
   RESPONSIVE (MOBILE)
======================= */
@media (max-width: 768px){

    /* NAVBAR */
    .navbar{
        flex-direction:column;
        align-items:flex-start;
        padding:15px 20px;
    }

    .menu{
        display:flex;
        flex-direction:column;
        width:100%;
    }

    .menu a{
        margin:10px 0;
    }

    /* menu vertikal di mobile → underline geser tidak relevan */
    .menu-underline{ display:none; }

    .navbar-akun {
        width: 100%;
        margin-top: 10px;
        flex-wrap: wrap;
    }

    .akun-btn {
        justify-content: center;
        width: 100%;
    }

    /* HERO */
    .hero{
        height:250px;
    }

    /* CARDS */
    .cards{
        gap:15px;
    }

    .card{
        width:90%;
    }

    /* SECTION */
    .section{
        padding:20px;
    }

    :root {
        --font-base: 14px;
        --font-h1: 28px;
        --font-h2: 22px;
    }
}

/* =======================
   FOOTER
======================= */
.footer{
    display: flex;
    gap: 50px;
    padding: 50px;
    background-color: #111;
    color: white;
}

.footer-col{
    flex: 1;
}

.footer-col h3{
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-col ul{
    list-style: none;
    padding: 0;
}

.footer-col ul li{
    margin-bottom: 8px;
    font-size: 14px;
    cursor: pointer;
}

.footer-col ul li:hover{
    color: #e65c00;
}

.signup p{
    font-size: 13px;
    color: #ccc;
    margin-bottom: 15px;
}

.signup-btn{
    display: inline-block;
    text-align: center;
    text-decoration: none;
    padding: 10px 15px;
    border: none;
    background-color: #e65c00;
    color: white;
    font-weight: bold;
    cursor: pointer;
    width: auto;
    margin-top: 0;
}

.signup-btn:hover{
    background-color: #ff7a1a;
}

/* FOOTER RESPONSIVE */
@media (max-width: 768px){
    .footer{
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px;
    }
}


/* =======================
   MENU PAGE
======================= */
/* POIN 7: header/banner judul halaman lebih menarik (minimalis & on-theme) */
.hero-menu {
    position: relative;
    overflow: hidden;
    height: 210px;
    background: linear-gradient(135deg, #ff7a1a 0%, #ff6b00 48%, #e65c00 100%);
}
/* dekor halus: sorot cahaya lembut, tetap minimalis */
.hero-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(255,255,255,.20), transparent 40%),
        radial-gradient(circle at 88% 88%, rgba(0,0,0,.14), transparent 42%);
    pointer-events: none;
}
/* dekor cincin tipis di pojok (variasi visual ringan) */
.hero-menu::after {
    content: "";
    position: absolute;
    right: -48px;
    top: -56px;
    width: 220px;
    height: 220px;
    border: 2px solid rgba(255,255,255,.16);
    border-radius: 50%;
    pointer-events: none;
}
.hero-menu .hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}
/* judul: hilangkan kotak gelap polos → teks bersih dengan bayangan lembut */
.hero-menu h1 {
    background: transparent;
    padding: 0;
    margin: 0;
    border-radius: 0;
    font-size: clamp(24px, 4vw, 36px);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 12px rgba(0,0,0,.28);
}
.hero-menu .hero-sub {
    margin: 10px 0 0;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,.93);
    text-shadow: 0 1px 8px rgba(0,0,0,.25);
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card-makanan {
    cursor: pointer;
}

.card-body {
    padding: 12px 15px 15px;
    text-align: left;
}

.card-nama {
    font-weight: bold;
    font-size: 15px;
    margin: 0 0 4px;
    color: #222;
}

.card-restoran {
    font-size: 12px;
    color: #888;
    margin: 0 0 8px;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.rating-angka {
    font-size: 13px;
    color: #555;
    font-weight: bold;
}

.rating-count {
    font-size: 12px;
    color: #aaa;
}

/* BINTANG */
.star {
    font-size: 16px;
}

.star.full  { color: #f5a623; }
.star.half  { color: #f5a623; opacity: 0.6; }
.star.empty { color: #ddd; }

/* BADGE KATEGORI */
.badge-kategori {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff6b00;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
}


/* =======================
   DETAIL MAKANAN PAGE
======================= */
.breadcrumb {
    padding: 12px 40px;
    font-size: 13px;
    color: #888;
    background: #f5f5f5;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: #ff6b00;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.detail-section {
    max-width: 1140px;
    margin: 0 auto;
    text-align: left;
}

.detail-container {
    display: flex;
    gap: 50px;
    align-items: stretch;
    margin-bottom: 55px;
    flex-wrap: wrap;
}

.detail-img-wrap {
    position: relative;
    flex: 1 1 460px;
    max-width: 560px;
}

.detail-img-wrap img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 26px rgba(0,0,0,0.16);
    object-fit: cover;
    height: 420px;
}

.detail-img-wrap .badge-kategori {
    font-size: 14px;
    padding: 7px 16px;
}

.detail-info {
    flex: 1 1 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-info h1 {
    margin: 0 0 12px;
    color: #222;
    font-size: clamp(28px, 3vw, 40px);
}

.detail-restoran {
    font-size: 16px;
    color: #888;
    margin: 0 0 16px;
}

.detail-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.detail-rating-row .star { font-size: 26px; }
.detail-rating-row .rating-angka { font-size: 18px; }

.detail-harga {
    font-size: 28px;
    font-weight: bold;
    color: #ff6b00;
    margin: 0 0 18px;
}

.detail-desc {
    font-size: 17px;
    color: #555;
    line-height: 1.8;
}

/* FORM RATING DETAIL */
.rating-form-wrap {
    background: #fff3e6;
    border-radius: 16px;
    padding: 35px;
    margin-top: 10px;
}

.rating-form-wrap h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #ff6b00;
}

/* STAR INPUT (RTL trick agar klik kiri = bintang 1) */
.star-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    margin: 10px 0;
}

.star-input input[type="radio"] {
    display: none;
    width: auto;
    margin: 0;
}

.star-input label {
    font-size: 36px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label {
    color: #f5a623;
}


/* =======================
   RESPONSIVE DETAIL & MENU
======================= */
@media (max-width: 768px) {
    .detail-container {
        flex-direction: column;
    }

    .detail-img-wrap {
        max-width: 100%;
    }

    .breadcrumb {
        padding: 10px 20px;
    }

    .rating-form-wrap {
        padding: 20px;
    }
}


/* =======================
   SEARCH BAR
======================= */
.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 18px;
    border: 2px solid #eee;
    border-radius: 30px;
    font-size: 15px;
    outline: none;
    transition: border 0.2s;
    width: auto;
    margin-top: 0;
}

.search-input:focus {
    border-color: #ff6b00;
}

.search-btn {
    padding: 11px 24px;
    background: #ff6b00;
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    width: auto;
    margin-top: 0;
}

.search-btn:hover { background: #e65c00; }

.search-reset {
    color: #aaa;
    font-size: 13px;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
}

.search-reset:hover { background: #f5f5f5; }

.search-info {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}


/* =======================
   PAGINATION
======================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 9px 16px;
    border: 2px solid #eee;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s;
}

.page-btn:hover  { border-color: #ff6b00; color: #ff6b00; }
.page-btn.active { background: #ff6b00; border-color: #ff6b00; color: white; }


/* =======================
   ULASAN / KOMENTAR
======================= */
.komentar-section {
    margin-top: 50px;
}

.komentar-section h2 {
    margin-bottom: 20px;
}

.komentar-card {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.komentar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.komentar-tanggal {
    font-size: 12px;
    color: #bbb;
    margin-left: auto;
}

.komentar-kriteria {
    margin-bottom: 8px;
}

.tag-kriteria {
    display: inline-block;
    background: #fff0e6;
    color: #ff6b00;
    border-radius: 20px;
    font-size: 12px;
    padding: 3px 10px;
    margin-right: 5px;
    font-weight: bold;
}

.komentar-teks {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 8px 0;
}

.komentar-foto {
    width: 120px;
    border-radius: 8px;
    margin-top: 10px;
    object-fit: cover;
    height: 90px;
}

.alert-sukses {
    background: #e8f8e8;
    color: #2d7a2d;
    padding: 12px 18px;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
    margin-bottom: 20px;
    font-size: 14px;
}


/* =======================
   ADMIN PANEL
======================= */
.admin-section {
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

/* Stat cards dashboard */
.admin-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 25px 0;
}

.stat-card {
    flex: 1 1 180px;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 14px;
    padding: 25px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-icon { font-size: 32px; }
.stat-num  { font-size: 32px; font-weight: bold; color: #ff6b00; }
.stat-label{ font-size: 13px; color: #888; }

/* Admin form */
.admin-form fieldset {
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.admin-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    margin: 6px 0 16px;
    background: white;
}

/* Admin table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
}

.admin-table th {
    background: #ff6b00;
    color: white;
    padding: 12px 14px;
    text-align: left;
}

.admin-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.admin-table tr:hover td { background: #fff8f3; }

.tabel-img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
}

.aksi-col { white-space: nowrap; }

.btn-edit {
    background: #3498db;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    margin-right: 5px;
}

.btn-hapus {
    background: #e74c3c;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}

.btn-edit:hover  { background: #2980b9; }
.btn-hapus:hover { background: #c0392b; }

/* Navbar akun variants */
.akun-nama {
    color: white;
    font-size: 14px;
    font-weight: bold;
    margin-right: 8px;
}

.akun-admin  { background: #333 !important; }
.akun-logout { background: rgba(255,255,255,0.15) !important; }

/* =======================
   HERO HOME (FOTO PIRING MAKANAN)
======================= */
.hero-home {
    background-image: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
                       url("https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1600&q=70");
    background-size: cover;
    background-position: center;
}

.hero-home h1 {
    background: rgba(0,0,0,0.45);
    font-size: clamp(26px, 5vw, 48px);
    letter-spacing: 1px;
}

/* =======================
   PROMO HERO
======================= */
/* POIN 7: variasi ringan warna header promo (lebih "panas") */
.hero-promo {
    background: linear-gradient(135deg, #ff8a1f 0%, #ff5722 58%, #d84315 100%);
}

/* =======================
   NAVBAR AVATAR
======================= */
.navbar-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 4px;
    border: 1px solid rgba(255,255,255,0.6);
}

.akun-nama {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 30px;
    transition: background 0.2s;
}

.akun-nama:hover {
    background: rgba(255,255,255,0.3);
}

/* =======================
   PROFIL SAYA
======================= */
.profil-card {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 35px;
    display: flex;
    gap: 35px;
    flex-wrap: wrap;
    text-align: left;
}

.profil-foto-wrap {
    flex: 0 0 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.profil-foto {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff3e6;
}

.profil-foto-kosong {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    background: #fff3e6;
    color: #ff6b00;
}

.profil-foto-form { width: 140px; }

.btn-ganti-foto {
    display: block;
    width: 140px;
    box-sizing: border-box;
    text-align: center;
    background: #ff6b00;
    color: white;
    padding: 9px 0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-ganti-foto:hover { background: #e65c00; }

.profil-foto-hint {
    display: block;
    width: 140px;
    text-align: center;
    color: #aaa;
    font-size: 10px;
    line-height: 1.3;
}

/* =====================================================================
   MODAL / POPUP (rating diberikan + form beri rating)
===================================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1000;
    padding: 24px;
    overflow-y: auto;
}
.modal-overlay.show { display: flex; align-items: flex-start; justify-content: center; }
.modal-box {
    background: #fff;
    width: 100%;
    max-width: 560px;
    margin: auto;
    border-radius: 16px;
    box-shadow: 0 16px 50px rgba(0,0,0,.3);
    display: flex;
    flex-direction: column;
    max-height: 86vh;
    overflow: hidden;
    animation: modalPop .28s cubic-bezier(.22,.61,.36,1);   /* POIN 3: kemunculan popup lebih halus */
}
@keyframes modalPop {
    from { transform: translateY(16px) scale(.98); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #222;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-close {
    border: none;
    background: #f3f3f3;
    color: #666;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex: 0 0 auto;
}
.modal-close:hover { background: #ffe0cc; color: #ff6b00; }
.modal-body {
    padding: 18px 20px;
    overflow-y: auto;
}

/* Tombol Kirim & Batal simetris */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}
.form-actions .btn-kirim,
.form-actions .btn-batal {
    flex: 1 1 0;
    text-align: center;
    padding: 12px 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .15s;
}
.form-actions .btn-kirim { background: #ff6b00; color: #fff; }
.form-actions .btn-kirim:hover { background: #e65c00; }
.form-actions .btn-batal {
    background: #fff;
    color: #777;
    border-color: #e3e3e3;
}
.form-actions .btn-batal:hover { border-color: #ff6b00; color: #ff6b00; }

.profil-info {
    flex: 1 1 320px;
}

.profil-nama-form input[disabled] {
    background: #f5f5f5;
    color: #999;
}

.profil-nama-form button {
    width: auto;
    padding: 10px 28px;
}

/* POIN 5: kotak "Rating Diberikan" selebar field Nama/Email (form = 90%, maks 600px,
   di-center). Tampilan jadi proporsional & konsisten, tidak terlihat pendek. */
.profil-stats {
    display: flex;
    gap: 15px;
    margin: 25px auto 0;
    flex-wrap: wrap;
    width: 90%;
    max-width: 600px;
}

.profil-stats .stat-card {
    flex: 1 1 100%;
    max-width: 100%;
}

/* POIN 8: hover "Rating Diberikan" → sinyal jelas dapat diklik (selaras tombol Trending) */
.profil-stats .stat-card-link {
    transition: transform .2s ease, box-shadow .2s ease,
                border-color .2s ease, background .2s ease, color .2s ease;
}
.profil-stats .stat-card-link .stat-icon {
    transition: transform .2s ease, color .2s ease;
    color: #ff6b00;
}
.profil-stats .stat-card-link:hover {
    transform: translateY(-5px);
    border-color: #ff6b00;
    background: #fff7f0;
    box-shadow: 0 10px 22px rgba(255,107,0,0.18);
}
.profil-stats .stat-card-link:hover .stat-label { color: #ff6b00; }
.profil-stats .stat-card-link:hover .stat-icon  { transform: scale(1.1); }

/* =======================
   DETAIL RESTORAN
======================= */
.resto-header {
    display: flex;
    gap: 50px;
    align-items: stretch;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.resto-img-wrap {
    position: relative;
    flex: 1 1 460px;
    max-width: 560px;
}

.resto-img-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 26px rgba(0,0,0,0.16);
}

.resto-info {
    flex: 1 1 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.resto-info h1 {
    margin: 0 0 12px;
    color: #222;
    font-size: clamp(28px, 3vw, 40px);
}

.resto-meta p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 11px 0;
    font-size: 16px;
    color: #555;
}

.resto-fasilitas {
    margin-top: 20px;
    font-size: 16px;
    color: #555;
}

.fasilitas-tags {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.tag-fasilitas {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff0e6;
    color: #ff6b00;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    padding: 6px 14px;
    line-height: 1;
}
.tag-fasilitas .ic { vertical-align: middle; }

/* Judul menu di halaman detail restoran */
.detail-menu-judul {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    text-align: left;
}

.resto-aksi {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-aksi {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 30px;
    border: 2px solid #ff6b00;
    background: white;
    color: #ff6b00;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-aksi:hover {
    background: #ff6b00;
    color: white;
}

.btn-favorit.active {
    background: #ff6b00;
    color: white;
}

/* =======================
   FASILITAS CHECKBOX (ADMIN)
======================= */
.fasilitas-checkbox {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 6px 0 16px;
}

.fasilitas-checkbox label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    width: auto;
}

.fasilitas-checkbox input {
    width: auto;
    margin: 0;
}

/* =======================
   BADGE & HARGA PROMO
======================= */
.badge-promo {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff3d3d, #ff7a00);
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.card-harga-promo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.harga-asli {
    text-decoration: line-through;
    color: #aaa;
    font-size: 12px;
}

.harga-promo {
    color: #ff3d3d;
    font-weight: bold;
    font-size: 15px;
}

/* =======================
   PITA PROMO (kuning + teks merah, di samping nama)
======================= */
.pita-off {
    display: inline-block;
    background: #ffe600;
    color: #ff3d3d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .3px;
    padding: 2px 7px;
    border-radius: 5px;
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

/* Foto restoran/menu yang sedang TUTUP → abu-abu */
.img-tutup {
    filter: grayscale(100%);
    opacity: .85;
}

/* =======================
   RESPONSIVE TAMBAHAN
======================= */
@media (max-width: 768px) {
    .resto-header {
        flex-direction: column;
    }
    .resto-img-wrap {
        max-width: 100%;
    }
    .profil-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* card-restoran sebagai link ke detail restoran */
a.card-restoran {
    color: #888;
    text-decoration: none;
    display: inline-block;
}

a.card-restoran:hover {
    color: #ff6b00;
    text-decoration: underline;
}

.detail-restoran a {
    color: #ff6b00;
    text-decoration: none;
    font-weight: bold;
}

.detail-restoran a:hover {
    text-decoration: underline;
}

/* =======================
   TRENDING
======================= */
/* POIN 7: variasi ringan warna header trending (sorot lebih cerah) */
.hero-trending {
    background: linear-gradient(135deg, #ff9b3d 0%, #ff6b00 52%, #e65c00 100%);
}

.badge-trending {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #222;
    color: #ffd700;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}


/* =====================================================================
   ADMIN NAVBAR (menu aktif + jarak antar elemen)
===================================================================== */
.admin-navbar .navbar-akun {
    gap: 10px;
}

.admin-navbar .menu a.active {
    background: rgba(255,255,255,0.25);
    padding: 6px 12px;
    border-radius: 20px;
}

/* Tombol "Lihat Website" dengan gaya tombol tersendiri */
.btn-lihat-web {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    background: #fff;
    color: #ff6b00;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.btn-lihat-web:hover {
    background: #fff3e6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.22);
}

/* Versi tombol besar di area dashboard */
.btn-lihat-web.lg {
    padding: 12px 24px;
    font-size: 15px;
    background: #222;
    color: #fff;
    border-color: #222;
}

.btn-lihat-web.lg:hover {
    background: #000;
    color: #ffd24d;
}


/* =====================================================================
   ADMIN FOOTER (ringkas & profesional)
===================================================================== */
.admin-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #1c1c1c;
    color: #cfcfcf;
    padding: 18px 40px;
    font-size: 13px;
    margin-top: 50px;
}

.admin-footer strong { color: #ff8c33; }

.admin-footer-ver {
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

.admin-footer-right { display: flex; align-items: center; gap: 10px; }
.admin-footer-right a { color: #ff8c33; text-decoration: none; font-weight: bold; }
.admin-footer-right a:hover { text-decoration: underline; }
.admin-footer-sep { color: #555; }

@media (max-width: 768px) {
    .admin-footer { flex-direction: column; text-align: center; padding: 18px 20px; }
}


/* =====================================================================
   DASHBOARD: STAT CARD DAPAT DIKLIK
===================================================================== */
a.stat-card,
button.stat-card {
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.stat-card:hover,
button.stat-card:hover {
    transform: translateY(-5px);
    border-color: #ff6b00;
    box-shadow: 0 10px 22px rgba(255,107,0,0.18);
}

.stat-card .stat-go {
    margin-top: 6px;
    font-size: 12px;
    font-weight: bold;
    color: #ff6b00;
}


/* =====================================================================
   BADGE STATUS (USER & RATING) DI TABEL ADMIN
===================================================================== */
.badge-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.badge-status.aktif     { background: #e8f8e8; color: #2d7a2d; }
.badge-status.dibatasi  { background: #fff4e0; color: #b06f00; }
.badge-status.nonaktif  { background: #fdecea; color: #c0392b; }
.badge-status.admin     { background: #ecebff; color: #4b3bd1; }
.badge-status.tampil    { background: #e8f8e8; color: #2d7a2d; }
.badge-status.tersembunyi { background: #f0f0f0; color: #777; }

/* Tombol aksi tambahan di tabel admin */
.btn-aksi-sm {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    color: #fff;
    margin: 2px 2px;
    border: none;
    cursor: pointer;
}

.btn-warn    { background: #e67e22; }
.btn-warn:hover { background: #ca6f1e; }
.btn-danger  { background: #e74c3c; }
.btn-danger:hover { background: #c0392b; }
.btn-ok      { background: #27ae60; }
.btn-ok:hover { background: #1f8b4c; }
.btn-neutral { background: #7f8c8d; }
.btn-neutral:hover { background: #6c7a7b; }

/* Baris yang sedang dibatasi / nonaktif / tersembunyi diberi nuansa */
.row-muted td { background: #fafafa; color: #999; }
.row-hidden td { background: #f7f7f7; }

/* Toggle trending kecil di tabel makanan */
.trending-on  { color: #ff6b00; font-weight: bold; }
.trending-off { color: #bbb; }

/* Komentar panjang di tabel rating */
.cell-komentar {
    max-width: 280px;
    white-space: normal;
    word-break: break-word;
    color: #555;
}

.rating-foto-mini {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 6px;
}

/* Filter bar admin (reuse search-form look) */
.admin-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 22px;
}

.admin-filter a.filter-chip {
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid #eee;
    text-decoration: none;
    color: #666;
    font-size: 13px;
    font-weight: bold;
}

.admin-filter a.filter-chip.active {
    background: #ff6b00;
    border-color: #ff6b00;
    color: #fff;
}

/* =====================================================================
   FILTER BAR — KARTU "KATEGORI" & "URUTKAN" (simetris, rapi di HP)
===================================================================== */
.filter-bar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: stretch;
    margin-bottom: 24px;
}
.filter-card {
    flex: 1 1 280px;
    min-width: 0;
    background: #fff;
    border: 2px solid #f1f1f1;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.filter-card-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 800;
    color: #ff6b00;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.filter-card-label .ic { vertical-align: middle; }
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.filter-chips .filter-chip {
    padding: 7px 14px;
    border-radius: 20px;
    border: 2px solid #eee;
    text-decoration: none;
    color: #666;
    font-size: 13px;
    font-weight: bold;
    transition: all .15s;
}
.filter-chips .filter-chip:hover { border-color: #ffd0ad; color: #ff6b00; }
.filter-chips .filter-chip.active {
    background: #ff6b00;
    border-color: #ff6b00;
    color: #fff;
}
.filter-card .sort-form { margin: 0; display: block; }
.filter-card .sidebar-select,
.filter-card .sort-form select { width: 100%; }
@media (max-width: 600px) {
    .filter-bar { flex-direction: column; }
    .filter-card { flex: 1 1 auto; }
}


/* =====================================================================
   PROMPT 2: TOMBOL "BERI RATING" (TOGGLE) & BATAL
===================================================================== */
.btn-beri-rating {
    display: inline-block;
    padding: 12px 28px;
    background: #ff6b00;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}
.btn-beri-rating:hover {
    background: #e65c00;
    transform: translateY(-2px);
}
.btn-batal-rating {
    background: #aaa !important;
    margin-left: 8px;
}
.btn-batal-rating:hover {
    background: #888 !important;
}

/* Tombol favorit dinonaktifkan untuk admin */
.btn-favorit-disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
    border: 1px dashed #ccc;
}

/* Link di footer (Kontak Kami WhatsApp) */
.footer-link {
    color: #ccc;
    text-decoration: none;
}
.footer-link:hover { color: #fff; }
.footer-wa:hover  { color: #25D366; }

/* IKUTI KAMI — section media sosial di footer (ikon saja, satu baris horizontal) */
.footer-social { margin-top: 22px; }
.footer-social-title {
    margin: 0 0 12px;
    font-size: 16px;
    color: #fff;
    letter-spacing: .3px;
}
.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,0.1);
    text-decoration: none;
    transition: background .2s ease, transform .2s ease, color .2s ease;
}
.footer-social-icon:hover {
    background: #ff6b00;
    color: #fff;
    transform: translateY(-3px);
}
.footer-social-icon .ic { display: block; }

/* =====================================================================
   PROMPT 2: PROFIL - DAFTAR RATING YANG DIBERIKAN
===================================================================== */
.stat-card-link { text-decoration: none; color: inherit; }

.rating-diberikan-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 760px;
    margin: 0 auto;
}
.rating-diberikan-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: #222;
    transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}
.rating-diberikan-item:hover {
    transform: translateY(-3px);
    border-color: #ff6b00;
    box-shadow: 0 8px 18px rgba(255,107,0,0.15);
}
.rating-diberikan-item img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}
.rd-info { flex: 1; min-width: 0; }
.rd-nama { font-weight: bold; font-size: 16px; margin: 0 0 2px; }
.rd-resto { color: #777; font-size: 13px; margin: 0 0 6px; }
.rd-bintang { margin-bottom: 4px; }
.rd-komentar {
    color: #555;
    font-size: 13px;
    font-style: italic;
    margin: 4px 0 0;
}
.rd-meta {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.rd-tanggal { color: #999; font-size: 12px; }

@media (max-width: 600px) {
    .rating-diberikan-item { flex-wrap: wrap; }
    .rd-meta { width: 100%; text-align: left; align-items: flex-start; }
}


/* =====================================================================
   PROMPT 1 — NAVBAR: LOGO, IKON FAVORIT, DROPDOWN PROFIL
===================================================================== */
.nav-logo { text-decoration: none; }
.nav-logo h2 { margin: 0; }

.nav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    font-size: 18px;
    text-decoration: none;
    margin-right: 10px;
    transition: background 0.2s, transform 0.15s;
}
.nav-icon-btn:hover { background: rgba(255,255,255,0.35); transform: scale(1.08); }

/* DROPDOWN PROFIL */
.profil-dropdown { position: relative; display: inline-block; }

.profil-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    margin: 0;
    padding: 6px 12px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.2s;
}
.profil-trigger:hover { background: rgba(255,255,255,0.32); }

.navbar-avatar-kosong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    font-size: 16px;
}

.profil-nama-txt { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-arrow { font-size: 11px; transition: transform 0.2s; }
.profil-dropdown.open .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 1200;
}
.profil-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
.dropdown-menu a:hover { background: #fff3e6; color: #ff6b00; }
.dropdown-logout { color: #c0392b !important; border-top: 1px solid #f0f0f0; margin-top: 4px; }
.dropdown-logout:hover { background: #fdecea !important; color: #c0392b !important; }


/* =====================================================================
   PROMPT 1 — CAROUSEL / BANNER OTOMATIS
===================================================================== */
.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 340px;
}
.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease;
}
.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    position: relative;
}
.carousel-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.42);
}
.cs-1 { background-image: url("https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1600&q=70"); }
.cs-2 { background-image: url("https://images.unsplash.com/photo-1600891964092-4316c288032e?auto=format&fit=crop&w=1600&q=70"); }
.cs-3 { background-image: url("https://images.unsplash.com/photo-1565299624946-b28f40a0ae38?auto=format&fit=crop&w=1600&q=70"); }
.cs-4 { background-image: url("https://images.unsplash.com/photo-1504754524776-8f4f37790ca0?auto=format&fit=crop&w=1600&q=70"); }

.cs-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 20px;
}
.cs-tag {
    display: inline-block;
    background: #ff6b00;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.cs-content h1 {
    margin: 0 0 10px;
    font-size: clamp(24px, 4vw, 42px);
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.cs-content p {
    margin: 0 0 20px;
    font-size: clamp(14px, 2vw, 18px);
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.cs-btn {
    display: inline-block;
    background: #ff6b00;
    color: #fff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: bold;
    transition: background 0.2s, transform 0.15s;
}
.cs-btn:hover { background: #e65c00; transform: translateY(-2px); }

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.85);
    color: #ff6b00;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.carousel-nav:hover { background: #fff; }
.carousel-nav.prev { left: 18px; }
.carousel-nav.next { right: 18px; }

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.carousel-dots .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.carousel-dots .dot.active { background: #ff6b00; transform: scale(1.25); }


/* =====================================================================
   PROMPT 1 — LAYOUT HOME (ALA YOUTUBE) + SIDEBAR FILTER + SORTIR
===================================================================== */
.home-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding: 35px 40px;
    max-width: 1300px;
    margin: 0 auto;
}
.home-sidebar {
    flex: 0 0 210px;
    position: sticky;
    top: 90px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 18px;
}
.home-sidebar h3 {
    margin: 0 0 14px;
    font-size: 16px;
    color: #333;
}
.filter-cat {
    display: block;
    padding: 9px 14px;
    margin-bottom: 6px;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
.filter-cat:hover { background: #fff3e6; color: #ff6b00; }
.filter-cat.active { background: #ff6b00; color: #fff; }

.home-main { flex: 1; min-width: 0; }
/* anchor #hasil: pindah halaman pagination tidak melompat ke paling atas
   (offset agar tak tertutup navbar sticky) */
#hasil { scroll-margin-top: 90px; }

.home-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.home-controls h2 { margin: 0; text-align: left; }

.sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    margin: 0;
}
.sort-form label { font-size: 14px; color: #777; }
.sort-form select {
    width: auto;
    margin: 0;
    padding: 8px 14px;
    border: 2px solid #eee;
    border-radius: 20px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}
.sort-form select:focus { border-color: #ff6b00; box-shadow: none; }


/* =====================================================================
   PROMPT 1 — GRID KARTU SIMETRIS (6 per baris area)
===================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 24px;
    justify-content: initial;
}
.cards-grid .card {
    width: auto;
    max-width: none;
    flex: none;
}
.cards-grid .card-link { display: block; }
.extra-item { display: none; }

.show-more-wrap { text-align: center; margin: 28px 0 10px; }
.btn-show-more {
    width: auto;
    margin: 0;
    background: #fff;
    color: #ff6b00;
    border: 2px solid #ff6b00;
    border-radius: 30px;
    padding: 11px 30px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.btn-show-more:hover { background: #ff6b00; color: #fff; }


/* =====================================================================
   PROMPT 1 — BADGE BEST SELLER, HARGA, RENTANG, IKON FAVORIT
===================================================================== */
.badge-bestseller {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ffb300, #ff8f00);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.card-harga {
    font-size: 15px;
    font-weight: bold;
    color: #ff6b00;
    margin: 6px 0 8px;
}
.harga-coret { text-decoration: line-through; color: #aaa; font-size: 12px; font-weight: normal; }
.harga-promo-txt { color: #ff3d3d; font-weight: bold; }

.card-rentang {
    font-size: 13px;
    color: #555;
    font-weight: 600;
    margin: 6px 0 8px;
}

/* Ikon hati favorit di pojok kartu */
.fav-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;                 /* PENTING: batalkan global button{margin-top:20px} yg mendorong ikon turun */
    padding: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    text-decoration: none;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.15s, background 0.2s;
}
.fav-icon:hover { transform: scale(1.15); background: #fff; }
.fav-icon.active { background: #ffe9e9; }

/* Tombol favorit di halaman detail makanan */
.detail-aksi { margin-top: 18px; }
.btn-favorit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 30px;
    border: 2px solid #ff6b00;
    background: #fff;
    color: #ff6b00;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-favorit:hover { background: #ff6b00; color: #fff; }
.btn-favorit.active { background: #ff6b00; color: #fff; }
.btn-favorit.active:hover { background: #e65c00; }

/* =====================================================================
   POIN 7: GRUP TOMBOL FAVORIT + BAGIKAN — sejajar & SELALU di dalam frame.
   Berlaku sama untuk Detail Makanan (.detail-aksi) & Detail Restoran (.resto-aksi).
===================================================================== */
.detail-aksi,
.resto-aksi {
    display: flex;
    flex-wrap: nowrap;        /* [Favorit] [Bagikan] SELALU satu baris, sejajar horizontal */
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}
.detail-aksi > *,
.resto-aksi > * {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;      /* label tombol tidak pecah di tengah kata */
    box-sizing: border-box;
}
/* POIN 4: tombol Favorit & Bagikan IDENTIK PERSIS (bentuk, ukuran, radius, warna,
   tinggi) di Detail Makanan & Detail Restoran → satu kesatuan aksi utama.
   Box-model & appearance disamakan agar <button> (Bagikan) == <a> (Favorit). */
.detail-aksi .btn-favorit,
.detail-aksi .btn-bagikan,
.resto-aksi .btn-aksi,
.resto-aksi .btn-bagikan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: auto;                  /* PENTING: batalkan global button{width:100%} */
    margin: 0;                    /* PENTING: batalkan global button{margin-top:20px} */
    height: 44px;                 /* tinggi sama persis untuk <a> & <button> */
    padding: 0 22px;
    font-size: 14px;
    font-family: inherit;
    font-weight: bold;
    border-radius: 30px;
    border: 2px solid #ff6b00;
    gap: 8px;
    line-height: 1;
    background: #fff;
    color: #ff6b00;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
    -webkit-appearance: none;
    appearance: none;
}
/* POIN 1: hover dikembalikan — Favorit & Bagikan sama-sama menyala oranye saat hover
   (kecuali tombol favorit yang dinonaktifkan untuk admin). Transisi halus dari base. */
.detail-aksi .btn-favorit:not(.btn-favorit-disabled):hover,
.detail-aksi .btn-bagikan:hover,
.resto-aksi .btn-aksi:not(.btn-favorit-disabled):hover,
.resto-aksi .btn-bagikan:hover { background: #ff6b00; color: #fff; }
/* Favorit yang sudah aktif tetap terisi penuh sebagai penanda status */
.detail-aksi .btn-favorit.active,
.resto-aksi .btn-favorit.active { background: #ff6b00; color: #fff; }
/* Favorit non-aktif (admin) tetap tampak nonaktif, tapi bentuk/tinggi tetap sama */
.detail-aksi .btn-favorit-disabled,
.resto-aksi .btn-favorit-disabled {
    background: #f0f0f0;
    color: #999;
    border-color: #e0e0e0;
    cursor: not-allowed;
}


/* =====================================================================
   PROMPT 1 — TRENDING: TAB MAKANAN / RESTORAN
===================================================================== */
.trending-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 28px auto 0;
    flex-wrap: wrap;
}
.trend-tab {
    width: auto;
    margin: 0;
    background: #fff;
    color: #555;
    border: 2px solid #eee;
    border-radius: 30px;
    padding: 11px 26px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.trend-tab:hover { border-color: #ff6b00; color: #ff6b00; background: #fff; }
.trend-tab.active { background: #ff6b00; border-color: #ff6b00; color: #fff; }

.trend-hot {
    margin: 8px 0 0;
    font-size: 12px;
    font-weight: bold;
    color: #ff3d3d;
}


/* =====================================================================
   PROMPT 1 — JUDUL SEKSI FAVORIT
===================================================================== */
.fav-section-judul {
    text-align: left;
    max-width: 1300px;
    margin: 0 auto 18px;
    color: #333;
    border-left: 5px solid #ff6b00;
    padding-left: 12px;
}


/* =====================================================================
   PROMPT 1 — POPUP NOTIFIKASI (TOAST)
===================================================================== */
.fr-popup {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translate(-50%, -30px);
    display: flex;
    align-items: center;
    gap: 10px;
    background: #2d7a2d;
    color: #fff;
    padding: 14px 22px;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
    font-size: 14px;
    font-weight: 600;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    max-width: 90%;
}
.fr-popup.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.fr-popup.error { background: #c0392b; }
.fr-popup-icon { font-size: 18px; display: inline-flex; align-items: center; }
.fr-popup-close {
    width: auto;
    margin: 0 0 0 6px;
    padding: 0 4px;
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: none;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}
.fr-popup-close:hover { background: transparent; color: #fff; }


/* =====================================================================
   PROMPT 1 — RESPONSIVE TAMBAHAN
===================================================================== */
@media (max-width: 900px) {
    .home-layout { flex-direction: column; padding: 25px 20px; }
    .home-sidebar {
        position: static;
        width: 100%;
        flex: none;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }
    .home-sidebar h3 { width: 100%; margin-bottom: 8px; }
    .filter-cat { margin-bottom: 0; }
}

@media (max-width: 768px) {
    .carousel { height: 260px; }
    .cards-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
    .home-controls { flex-direction: column; align-items: flex-start; }
    .profil-nama-txt { max-width: 90px; }
    /* Navbar dropdown agar tidak terpotong di mobile */
    .dropdown-menu { right: auto; left: 0; }
}


/* =====================================================================
   PROMPT 2 — IKON SVG GLOBAL (ic())
===================================================================== */
.ic {
    display: inline-block;
    vertical-align: -0.15em;
    flex-shrink: 0;
}
/* Ikon di dalam tombol/elemen flex tetap rapi */
.btn-favorit .ic, .nav-icon-btn .ic, .navbar-avatar-kosong .ic,
.profil-trigger .ic, .dropdown-menu a .ic, .sidebar-label .ic,
.block-sub .ic, .home-search button .ic { vertical-align: middle; }

/* Ikon hati favorit (SVG mewarisi currentColor) */
.fav-icon { color: #c9c9c9; }
.fav-icon.active { color: #ff3d3d; background: #ffe9e9; }
.fav-icon:hover { color: #ff3d3d; }

/* Ikon favorit kartu kini <button> (toggle AJAX) — reset gaya bawaan tombol */
button.fav-icon {
    border: none;
    margin: 0;                 /* PENTING: batalkan global button{margin-top:20px} */
    padding: 0;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font: inherit;
    -webkit-appearance: none;
    appearance: none;
}
/* tampilkan satu ikon hati sesuai status .active */
.fav-icon .fav-heart-outline,
.fav-icon .fav-heart-fill { display: inline-flex; align-items: center; justify-content: center; }
.fav-icon .fav-heart-fill { display: none; }
.fav-icon.active .fav-heart-outline { display: none; }
.fav-icon.active .fav-heart-fill { display: inline-flex; }
/* sedang proses simpan favorit */
.fav-icon.is-busy { opacity: .55; pointer-events: none; }
.fav-icon.fav-pop { animation: favPop .32s ease; }
@keyframes favPop {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.32); }
    100% { transform: scale(1); }
}

/* Dropdown profil: ikon + teks sejajar */
.dropdown-menu a { display: flex; align-items: center; gap: 10px; }
.nav-icon-btn { color: #fff; }


/* =====================================================================
   PROMPT 2 — CAROUSEL: KONTROL TRANSISI VIA JS (loop mulus)
   .clone = duplikat slide pertama di akhir track
===================================================================== */
.carousel-slide.clone { min-width: 100%; }


/* =====================================================================
   PROMPT 2 — SIDEBAR HOME: DROPDOWN KATEGORI + URUTKAN
===================================================================== */
.sidebar-box { margin-bottom: 16px; }
.sidebar-box:last-child { margin-bottom: 0; }
.sidebar-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin-bottom: 8px;
}
.sidebar-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
    /* POIN 3: transisi dropdown filter lebih halus & konsisten */
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.sidebar-select:hover { border-color: #ffc49a; }
.sidebar-select:focus { outline: none; border-color: #ff6b00; box-shadow: 0 0 0 3px rgba(255,107,0,.12); }


/* =====================================================================
   PROMPT 2 — TOPBAR + SEARCH HOME (kanan atas cards)
===================================================================== */
.home-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.home-topbar-info { font-size: 15px; color: #666; }
.home-topbar-info strong { color: #ff6b00; }
.home-search {
    display: flex;
    align-items: center;
    width: auto;
    margin: 0;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 30px;
    overflow: hidden;
    transition: border-color 0.15s;
}
.home-search:focus-within { border-color: #ff6b00; }
.home-search input {
    width: 420px;
    max-width: 60vw;
    border: none;
    margin: 0;
    padding: 11px 20px;
    font-size: 15px;
    background: transparent;
}
.home-search input:focus { outline: none; box-shadow: none; }
.home-search button {
    width: 42px;
    margin: 0;
    border: none;
    background: #ff6b00;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
}
.home-search button:hover { background: #e65c00; }


/* =====================================================================
   PROMPT 2 — GRID HOME 4/BARIS (jeda rapat) + BLOK SELANG-SELING
===================================================================== */
.cards-home {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    justify-content: initial;
}
.cards-home .card { width: auto; max-width: none; flex: none; }
.cards-home .card-link { display: block; }

.home-block { margin-bottom: 10px; }
.home-block.extra-block { display: none; }

.block-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 26px 0 16px;
    font-size: 18px;
    color: #333;
    text-align: left;
}

@media (max-width: 1100px) {
    .cards-home { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    .cards-home { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .home-search { width: 100%; }
    .home-search input { width: 100%; max-width: none; }
    .home-topbar { gap: 10px; }
}


/* =====================================================================
   REVISI UI/UX — PENYERAGAMAN LABEL, GRID, FILTER, MODAL, NAVBAR, NOTIF
===================================================================== */

/* ---- 1 & 13: LABEL PROMO BERBENTUK PITA (RIBBON) — SAMA DI SEMUA HALAMAN ---- */
.ribbon-promo {
    position: absolute;
    top: 12px;
    left: 0;
    background: linear-gradient(135deg, #ff5b5b, #e60000);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .4px;
    line-height: 1;
    padding: 6px 18px 6px 12px;
    z-index: 4;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    /* potongan kanan menyerupai ujung pita (notch / fork) */
    clip-path: polygon(0 0, 100% 0, 84% 50%, 100% 100%, 0 100%);
}
/* lipatan kecil pita di pojok kiri (efek "pita" menggantung) */
.ribbon-promo::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 0 6px;
    border-color: transparent transparent transparent #9e0000;
}

/* ---- 13: BADGE BEST SELLER SERAGAM (home + trending + lainnya) ---- */
.badge-bestseller,
.badge-trending {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ffb300, #ff8f00);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: 20px;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.22);
    letter-spacing: .2px;
}

/* Kategori dipindah ke kiri-bawah pada kartu agar tak bentrok dgn pita promo */
.card-makanan .badge-kategori {
    top: auto;
    bottom: 10px;
    left: 10px;
}

/* ---- 8 & 14: UKURAN KARTU KONSISTEN (tinggi & lebar sama, posisi elemen seragam) ---- */
.cards-grid .card-link,
.cards-home .card-link { height: 100%; }
.cards-grid .card,
.cards-home .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.cards-grid .card img,
.cards-home .card img { height: 165px; }
.cards-grid .card-body,
.cards-home .card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
/* rating selalu menempel di dasar kartu → posisi seragam */
.cards-grid .card-rating,
.cards-home .card-rating { margin-top: auto; }

/* ---- 10 & 11: BARIS RESTORAN DI HOME DIBERI LATAR ABU-ABU ---- */
.home-resto-row {
    background: #f1f2f4;
    border-radius: 14px;
    padding: 16px 18px 10px;
    margin: 8px 0 22px;
}
.home-resto-row .block-sub { margin: 2px 0 14px; }

/* ---- 5 & 15: FILTER KIRI (menu & restoran pakai layout sidebar seperti home) ---- */
.home-sidebar .sidebar-box + .sidebar-box { margin-top: 16px; }

/* Tombol Reset Filter — muncul saat ada filter aktif, mengosongkan semua filter */
.sidebar-reset { background: transparent; box-shadow: none; padding: 0; }
.btn-reset-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    padding: 10px 14px;
    border: 1.5px solid #ff6b00;
    border-radius: 10px;
    background: #fff;
    color: #ff6b00;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}
.btn-reset-filter:hover { background: #ff6b00; color: #fff; }
.btn-reset-filter .ic { vertical-align: middle; }

/* ---- 17: TOMBOL FAVORIT/BAGIKAN SEJAJAR FOTO (menempel bawah area foto) ---- */
.detail-info,
.resto-info { justify-content: flex-start; }
.detail-aksi { margin-top: auto; padding-top: 18px; }
.resto-aksi  { margin-top: auto; padding-top: 18px; }

/* ---- 18: MODAL BERI RATING — TOMBOL KIRIM/BATAL SELALU TERLIHAT ---- */
.modal-body { flex: 1 1 auto; }
.modal-footer {
    flex: 0 0 auto;
    padding: 18px 22px 24px;   /* jarak bawah lega → tombol tidak mepet dasar popup */
    border-top: 1px solid #f0f0f0;
    background: #fff;
}
.modal-footer .form-actions { margin-top: 0; }
/* POIN 4: judul "Rating untuk…" lebih ke tengah + jarak atas/bawah proporsional */
.modal-body fieldset { padding-top: 22px; }
.modal-body legend {
    float: none;
    width: 100%;
    text-align: center;
    padding: 4px 10px;
    margin: 0 0 14px;
}
/* POIN 5: form dalam modal mengisi penuh kotak (batalkan form{width:90%} global)
   agar header / body / footer & garis separator sejajar dan tampil utuh */
.modal-box form { width: 100%; max-width: none; margin: 0; }
.modal-box .modal-body fieldset {
    width: 100%;
    box-sizing: border-box;
    border: 2px dashed #ff6b00;   /* pastikan border kotak penilaian tampil penuh */
    border-radius: 14px;
}
/* separator antar-bagian di dalam fieldset (Nilai/Kriteria/Komentar/Foto) */
.modal-body fieldset .field-sep {
    border: 0;
    border-top: 1px solid #eee;
    margin: 16px 0;
}
/* label judul tiap bagian agar rapi & konsisten */
.modal-body fieldset .field-label {
    display: block;
    font-weight: 700;
    color: #444;
    margin: 0 0 6px;
}
/* daftar kriteria: chip checkbox sejajar & rapi */
.modal-body fieldset .kriteria-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 4px;
}
.modal-body fieldset .kriteria-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.modal-body fieldset .kriteria-item input[type="checkbox"] { margin: 0; }
.modal-body fieldset .kriteria-item label { margin: 0; font-weight: 500; color: #555; }

/* =====================================================================
   POIN 6: FORM RATING RAPI DI CHROME (tanpa scroll horizontal, tombol utuh)
   - form jadi kolom flex yang mengisi modal → body scroll, footer selalu terlihat
   - semua kontrol dibatasi lebar (box-sizing) agar tidak meluap keluar popup
===================================================================== */
.modal-box form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;            /* penting: izinkan anak (.modal-body) men-scroll */
}
.modal-body {
    overflow-x: hidden;       /* cegah scroll horizontal */
    min-height: 0;
}
.modal-body fieldset { min-width: 0; }
.modal-body fieldset textarea,
.modal-body fieldset input[type="text"],
.modal-body fieldset input[type="file"],
.modal-body fieldset select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.modal-body fieldset textarea { resize: vertical; }
.modal-body fieldset input[type="file"] { font-size: 13px; }
.modal-footer { flex: 0 0 auto; }   /* tombol Kirim/Perbarui/Batal tak pernah terpotong */

@media (max-width: 480px) {
    .modal-overlay { padding: 12px; }
    .modal-box { max-height: 92vh; }
    .form-actions { flex-direction: column; }
}

/* ---- 19: ADMIN NAVBAR — ITEM AKTIF TIDAK MENGGESER MENU LAIN ---- */
.admin-navbar .menu { display: flex; align-items: center; gap: 6px; }
.admin-navbar .menu a {
    margin-left: 0;
    padding: 7px 14px;
    border-radius: 20px;
    line-height: 1;
    transition: background .15s;
}
.admin-navbar .menu a:hover { background: rgba(255,255,255,0.15); opacity: 1; }
.admin-navbar .menu a.active {
    background: rgba(255,255,255,0.28);
    padding: 7px 14px;
    border-radius: 20px;
}

/* ---- 16: NOTIFIKASI (TOAST) LATAR ABU-ABU ---- */
.fr-popup { background: #3a3f44; }
.fr-popup.error { background: #4d4346; }


/* =====================================================================
   REVISI TAMBAHAN UI/UX  (acuan utama — menimpa aturan lama bila bentrok)
===================================================================== */

/* ---- 1: SECTION RESTORAN DI HOME — ABU LEBIH KONTRAS, TETAP ON-THEME ---- */
.home-resto-row {
    background: #e5e7eb;            /* abu lebih jelas dari #f1f2f4 */
    border: 1px solid #d4d7dd;
    border-left: 4px solid #ff8a3d; /* aksen tipis warna tema */
    border-radius: 16px;
    padding: 18px 22px 14px;
    margin: 12px 0 28px;
}
.home-resto-row .block-sub {
    margin: 2px 0 14px;
    color: #2f343b;
    font-weight: 700;
}

/* ---- 2: CARD RESTORAN — LEBIH PENDEK & SEDIKIT LEBIH LEBAR, ISI RUANG ---- */
.home-resto-row .cards-home { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card-resto img { height: 150px; }                 /* lebih pendek dari makanan (165) */
.card-resto .card-body { padding: 12px 16px 14px; }
.card-alamat {
    font-size: 12px;
    color: #7d818a;
    margin: 4px 0 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-alamat .ic { vertical-align: -0.15em; flex-shrink: 0; }

/* ---- 3: LABEL KATEGORI — INLINE DI BODY (bawah nama, atas restoran), lebih kecil ---- */
.card-body .badge-kategori {
    position: static;
    top: auto; left: auto; right: auto; bottom: auto;
    align-self: flex-start;
    display: inline-block;
    background: #fff1e3;
    color: #e65c00;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2px;
    text-transform: uppercase;
    padding: 2px 9px;
    border-radius: 11px;
    margin: 0 0 6px;
}

/* ---- 4: LABEL PROMO — PITA VERTIKAL KUNING DI SISI KANAN, SEJAJAR NAMA ---- */
.ribbon-promo {
    position: absolute;
    top: 130px;                    /* sejajar area bawah foto / nama */
    right: 0;
    left: auto;
    background: linear-gradient(135deg, #ffd633, #ffb300);
    color: #5c3a00;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    line-height: 1;
    padding: 11px 6px 16px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: -2px 3px 8px rgba(0,0,0,0.22);
    border-radius: 5px 0 0 5px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 86%, 0 100%); /* ujung pita bawah */
}
.ribbon-promo::after { display: none; }   /* hapus lipatan desain lama */

/* ---- 5: LABEL BEST SELLER — LATAR HITAM, FONT KUNING (sama di semua halaman) ---- */
.badge-bestseller,
.badge-trending {
    background: #161616;
    color: #ffcf2e;
    box-shadow: 0 2px 6px rgba(0,0,0,0.28);
}

/* ---- 6: GRID PADAT — HOME (makanan) & DAFTAR MAKANAN/RESTORAN ---- */
.cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 18px;
    justify-content: stretch;
}
.cards-home { gap: 16px; }

/* ---- 7: TRENDING / FAVORIT / PROMO — KARTU DI TENGAH (centered) ---- */
.cards-centered {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 220px));
    gap: 20px;
    justify-content: center;
    align-content: start;
}
.cards-centered .card { width: auto; max-width: none; flex: none; }
.cards-centered .card-link { display: block; height: 100%; }
.cards-centered .card-link,
.cards-centered .card { height: 100%; }
.cards-centered .card { display: flex; flex-direction: column; }
.cards-centered .card img { height: 165px; }
.cards-centered .card-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.cards-centered .card-rating { margin-top: auto; }

/* ---- 8: CARD MAKANAN SELALU BISA DIKLIK → DETAIL (cover-link, tanpa nested <a>) ---- */
.card-cover {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    text-indent: -9999px;
    overflow: hidden;
}
.card .fav-icon { z-index: 4; }
.card .ribbon-promo,
.card .badge-bestseller,
.card .badge-trending,
.card .status { z-index: 4; }
/* link/aksi di dalam body harus tetap bisa diklik (di atas cover) */
.card-body a,
.card-body .btn-aksi { position: relative; z-index: 2; }

/* ---- 9: DETAIL — TOMBOL FAVORIT/BAGIKAN SEJAJAR FOTO (foto mengikuti tinggi info) ---- */
.detail-container,
.resto-header { align-items: stretch; }
.detail-img-wrap,
.resto-img-wrap { align-self: stretch; }
.detail-img-wrap img,
.resto-img-wrap img {
    height: 100%;
    min-height: 380px;
    max-height: none;
    object-fit: cover;
}
.detail-info,
.resto-info { justify-content: flex-start; }
.detail-aksi,
.resto-aksi { margin-top: auto; padding-top: 18px; }

/* ---- 10: RESPONSIF (paling akhir agar menang sumber-urutan) ---- */
@media (max-width: 1100px) {
    .cards-home { grid-template-columns: repeat(3, 1fr); }
    .home-resto-row .cards-home { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .cards-home { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .home-resto-row .cards-home { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cards-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .cards-centered { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; justify-content: center; }
    .ribbon-promo { top: 118px; }
}
@media (max-width: 480px) {
    .cards-home { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .home-resto-row .cards-home { grid-template-columns: repeat(1, 1fr); }
    .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cards-centered { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .detail-img-wrap img,
    .resto-img-wrap img { min-height: 240px; }
}


/* =====================================================================
   PENYEMPURNAAN KONSISTENSI CARD & LAYOUT  (ACUAN FINAL — menimpa semua)
   Prinsip: SATU desain kartu makanan & SATU desain kartu restoran
   dipakai di seluruh website. Acuan ukuran = kartu Home.
===================================================================== */

/* ---------- A. GRID PER JENIS KARTU — UKURAN KARTU TETAP DI SEMUA HALAMAN ----------
   Lebar kartu DIKUNCI dalam px (auto-fill), sehingga ukuran kartu IDENTIK di
   Home / Menu / Promo / Trending / Favorit / Restoran. Yang berubah hanya
   JUMLAH kolom per baris mengikuti lebar layar (bukan ukuran kartunya).
   max-width membatasi grid ke lebar acuan kolom Home, agar di halaman .section
   yang lebar pun jumlah & ukuran kartu sama persis seperti Home.
   minmax(min(100%,Npx), Npx) → kartu mengecil hanya bila layar lebih sempit dari
   satu kartu (mencegah overflow di ponsel), selebihnya selalu Npx. */
.cards-home,
.cards-centered {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 230px));
    gap: 18px;
    justify-content: center;
    align-content: start;
    max-width: 980px;
    margin-inline: auto;
}
.cards-resto {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 310px));
    gap: 18px;
    justify-content: center;
    align-content: start;
    max-width: 980px;
    margin-inline: auto;
}
.home-resto-row .cards-resto { margin-inline: auto; }

/* ---------- B. STRUKTUR KARTU SERAGAM (tinggi sama, posisi elemen tetap) ---------- */
.cards-home .card-link,
.cards-centered .card-link,
.cards-resto .card-link { display: block; height: 100%; }

.cards-home .card,
.cards-centered .card,
.cards-resto .card {
    position: relative;
    width: auto; max-width: none; flex: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.cards-home .card-body,
.cards-centered .card-body,
.cards-resto .card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
/* rating selalu menempel dasar → posisinya sejajar antar-kartu */
.cards-home .card-rating,
.cards-centered .card-rating,
.cards-resto .card-rating { margin-top: auto; }

/* Foto kartu seragam (crop sama, object-fit cover) */
.cards-home .card-makanan img,
.cards-centered .card-makanan img { height: 170px; width: 100%; object-fit: cover; }
.card-resto img,
.cards-resto .card-resto img { height: 140px; width: 100%; object-fit: cover; }
/* Kartu restoran info-nya sedikit → body lebih rapat, tidak menyisakan ruang kosong */
.cards-resto .card-resto .card-body { padding: 12px 16px 14px; }

/* Nama: SATU baris saja + ellipsis (…) bila terlalu panjang → tinggi kartu konsisten */
.card-nama {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    font-size: 15px;
    font-weight: bold;
    color: #222;
    margin: 0 0 6px;
}
/* Nama restoran pada kartu makanan: 1 baris, ellipsis */
.card-restoran,
a.card-restoran {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    margin: 0 0 8px;
}

/* ---------- C. PITA PROMO — kuning, teks BERTUMPUK (persen di atas, OFF di bawah) ---------- */
.ribbon-promo {
    position: absolute;
    left: auto;
    right: 8px;                 /* jarak dari tepi → tidak menempel sudut */
    display: flex;
    flex-direction: column;     /* teks bertumpuk: baris 1 = persen, baris 2 = OFF */
    align-items: center;
    justify-content: center;
    writing-mode: horizontal-tb; /* reset: batalkan vertical-rl dari aturan lama */
    text-orientation: mixed;
    background: linear-gradient(135deg, #ffd633, #ffb300);
    color: #5c3a00;
    line-height: 1;
    padding: 7px 8px 13px;      /* bawah lebih besar → ruang untuk takik "V" */
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 3px 9px rgba(0,0,0,.26);
    border-radius: 0;
    /* takik khas PITA: ujung bawah dipotong "V" ke dalam (bukan label/badge persegi) */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}
.ribbon-promo .rb-num {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .3px;
}
.ribbon-promo .rb-off {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-top: 2px;
}
/* POIN 1: varian RESTORAN — proporsi SAMA seperti pita makanan (tegak & tidak gepeng).
   "s/d" jadi baris kecil di atas, angka sebesar pita makanan, OFF di bawah. */
.ribbon-promo.ribbon-resto .rb-num { font-size: 15px; }
.ribbon-promo .rb-sd {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 1px;
}
/* varian tanpa persen: hanya tulisan PROMO */
.ribbon-promo.ribbon-promo-single .rb-off { font-size: 11px; padding: 2px 0; }
.ribbon-promo::after { display: none; }
/* POIN 3: pita sedikit DITURUNKAN → sejajar dengan baris NAMA makanan/restoran.
   Margin kanan konsisten (right:8px, diset di atas) untuk makanan & restoran. */
.card-makanan .ribbon-promo { top: 184px; }   /* foto makanan 170 + masuk ke baris nama */
.card-resto   .ribbon-promo { top: 150px; }   /* foto restoran 140 + masuk ke baris nama */
/* POIN 2: HANYA baris atas (nama & sub-info) yg diberi ruang kanan untuk pita.
   Harga/rating/tombol memakai lebar penuh → "Hapus dari Favorit" tetap 1 baris,
   dan tinggi kartu tidak berubah karena isi tombol. */
.card-makanan:has(.ribbon-promo) .card-nama,
.card-makanan:has(.ribbon-promo) .card-restoran,
.card-resto:has(.ribbon-promo) .card-nama,
.card-resto:has(.ribbon-promo) .card-alamat,
.card-resto:has(.ribbon-promo) .card-rentang { padding-right: 48px; }

/* ---------- D. BEST SELLER — pojok KIRI-ATAS, hitam + kuning, tak bentrok ikon hati ---------- */
.badge-bestseller,
.badge-trending {
    top: 10px;
    left: 10px;
    right: auto;
    background: #161616;
    color: #ffcf2e;
    box-shadow: 0 2px 6px rgba(0,0,0,0.28);
}
/* POIN 3: ikon hati SELALU di pojok kanan-atas kartu, konsisten & paling atas.
   Best seller di kiri-atas, pita promo turun di bawah foto → tak ada tabrakan. */
/* POIN 2 (revisi final): ikon hati PASTI di pojok kanan-atas, sejajar label Best Seller.
   Posisi INDEPENDEN dari isi card (promo, rating, nama, dll) — tidak pernah bergeser.
   top SAMA seperti badge (10px), di sisi KANAN card (mirror dari kiri). */
.card .fav-icon,
.card-makanan .fav-icon,
.card-resto   .fav-icon,
.card-makanan .badge-bestseller ~ .fav-icon,
.card-makanan .badge-bestseller + .fav-icon,
.card-makanan .ribbon-promo ~ .fav-icon,
.card-resto   .ribbon-promo ~ .fav-icon {
    position: absolute;
    top: 10px;             /* sama dengan .badge-bestseller { top:10px } */
    right: 10px;           /* mirror dari badge { left:10px } */
    left: auto;
    bottom: auto;
    margin: 0;             /* batalkan margin global button → tak terdorong turun */
    z-index: 8;            /* paling atas: di atas pita promo & badge */
}

/* ---------- E. DETAIL — bingkai foto seragam & proporsional (acuan "Tenderloin Steak") ---------- */
.detail-container,
.resto-header { align-items: flex-start; }
.detail-img-wrap,
.resto-img-wrap {
    align-self: flex-start;
    max-width: 560px;           /* acuan halaman "Sirloin Steak" — foto besar & seimbang */
    width: 100%;
}
.detail-img-wrap img,
.resto-img-wrap img {
    width: 100%;
    height: 420px;              /* proporsi Sirloin Steak — jangan diperkecil lagi */
    min-height: 0;
    max-height: 420px;
    object-fit: cover;
    border-radius: 14px;
}
.detail-info,
.resto-info { min-height: 420px; justify-content: flex-start; }
.detail-aksi,
.resto-aksi { margin-top: auto; padding-top: 18px; }

/* ---------- F. HAPUS LABEL "SEDANG BUKA/TUTUP" DI SISI PUBLIK ---------- */
.card .status,
.resto-img-wrap .status,
.makanan-item .status,
.restoran-item .status,
.status.open,
.status.closed { display: none !important; }

/* ---------- G. TOMBOL HAPUS FAVORIT DI KARTU ---------- */
/* POIN 2: tombol SELALU 1 baris (nowrap) & lebar penuh; ukuran disesuaikan agar muat
   walau kartu punya pita promo, tanpa mengubah tinggi kartu. */
.card-remove-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    margin-top: 10px;
    white-space: nowrap;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 13px;
    gap: 6px;
}
.card-remove-btn .ic { flex: 0 0 auto; }

/* ---------- H. RESPONSIF — UKURAN KARTU TETAP, hanya jumlah kolom & jarak yang berubah ----------
   Jumlah kolom diatur otomatis oleh auto-fill (Section A); di sini cukup
   menyesuaikan jarak antar-kartu dan tata letak halaman detail. */
@media (max-width: 1100px) {
    .cards-home, .cards-centered, .cards-resto { gap: 16px; }
}
@media (max-width: 760px) {
    .cards-home, .cards-centered, .cards-resto { gap: 12px; max-width: none; }
    .detail-container, .resto-header { flex-direction: column; }
    .detail-img-wrap, .resto-img-wrap { max-width: none; }
    .detail-info, .resto-info { min-height: 0; }
}
@media (max-width: 480px) {
    .cards-home, .cards-centered, .cards-resto { gap: 10px; }
    .detail-img-wrap img, .resto-img-wrap img { height: 240px; max-height: 240px; }
}

/* =====================================================================
   POIN 4: HALAMAN INFORMASI (Tentang, S&K, Privasi, Sitemap)
   Minimalis, on-theme FoodRate, responsif.
===================================================================== */
.static-page { display: flex; justify-content: center; }
.static-card {
    background: #fff;
    width: 100%;
    max-width: 860px;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.06);
    padding: 34px 38px;
    box-sizing: border-box;
    line-height: 1.75;
    color: #444;
}
.static-card .static-lead {
    font-size: 16.5px;
    color: #333;
    border-left: 4px solid #ff6b00;
    background: #fff7f0;
    padding: 14px 18px;
    border-radius: 0 10px 10px 0;
    margin: 0 0 24px;
}
.static-card h2 {
    font-size: 19px;
    color: #222;
    margin: 26px 0 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid #ffe0c2;
    display: flex;
    align-items: center;
    gap: 8px;
}
.static-card h2 .ic { color: #ff6b00; vertical-align: middle; }
.static-card p { margin: 0 0 14px; }

/* Sitemap */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 26px;
}
.sitemap-col h2 { margin-top: 0; }
.sitemap-links { list-style: none; margin: 0; padding: 0; }
.sitemap-links li { margin: 0 0 4px; }
.sitemap-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.sitemap-links a .ic { color: #ff6b00; vertical-align: middle; }
.sitemap-links a:hover { background: #fff3e8; color: #ff6b00; }

@media (max-width: 600px) {
    .static-card { padding: 24px 20px; }
}

/* =====================================================================
   POIN 1: LAYOUT HALAMAN TRENDING
   - Isi dimulai dari TENGAH container (flex + justify-center) → tidak berat
     ke kiri saat kartu sedikit; baris terakhir restoran otomatis di tengah.
   - Trending Makanan: seluruh kartu (maks 5) dalam SATU baris pada desktop.
===================================================================== */
.trend-panel .cards-centered,
.trend-panel .cards-resto {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    max-width: none;
    margin-inline: auto;
}
.trend-panel .cards-centered .card-link { width: 210px; flex: 0 0 auto; }
.trend-panel .cards-resto    .card-link { width: 300px; flex: 0 0 auto; }

/* Desktop lebar: Trending Makanan dipaksa 1 baris penuh, kartu berbagi ruang merata */
@media (min-width: 1100px) {
    #tab-makanan .cards-centered { flex-wrap: nowrap; }
    #tab-makanan .cards-centered .card-link {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        max-width: 220px;
    }
}

/* =====================================================================
   POIN 2: TINGGI KARTU RESTORAN MENGIKUTI ISI (tidak ada ruang kosong besar
   di bawah). Kartu tidak lagi dipaksa setinggi kartu tertinggi di barisnya;
   rating menempel langsung di bawah info, bukan didorong ke dasar. Lebar tetap. */
.cards-resto { align-items: start; }
.cards-resto .card-link,
.cards-resto .card { height: auto; }
.cards-resto .card-rating { margin-top: 8px; }
.trend-panel .cards-resto { align-items: start; }
.trend-panel .cards-resto .card-link { height: auto; }

/* =====================================================================
   POIN 5: Logo/judul "Admin FoodRate" jadi tautan ke DASHBOARD ADMIN
   (tetap memakai navbar admin, tidak berpindah ke navbar website user).
===================================================================== */
.admin-logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
}
.admin-logo-link h2 { margin: 0; }
.admin-logo-link:hover { opacity: .9; }

/* =====================================================================
   POIN 6: STICKY FOOTER DASHBOARD ADMIN
   Body halaman admin = kolom flex setinggi minimal 1 layar; footer didorong
   ke bawah (margin-top:auto) sehingga selalu menempel di dasar viewport
   walau konten sedikit. Hanya berlaku di halaman ber-navbar admin. */
body:has(.admin-navbar) {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body:has(.admin-navbar) .admin-footer {
    margin-top: auto;   /* dorong footer ke paling bawah */
}

/* =====================================================================
   POIN 7: PANEL AKTIVITAS TERBARU (Dashboard Admin) — desain konsisten kartu admin
===================================================================== */
.admin-activity {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    padding: 22px 24px;
    margin-top: 30px;
    text-align: left;
}
.admin-activity-head { margin-bottom: 8px; }
.admin-activity-head h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #222;
    font-size: 18px;
}
.admin-activity-head h3 .ic { color: #ff6b00; vertical-align: middle; }
.admin-activity-hint { display: block; color: #999; font-size: 13px; margin-top: 2px; }
.admin-activity-empty { color: #999; padding: 12px 0; }

.admin-activity-list { list-style: none; margin: 8px 0 0; padding: 0; }
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 2px;
    border-top: 1px solid #f2f2f2;
}
.activity-item:first-child { border-top: 0; }
.activity-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff3e6;
    color: #ff6b00;
}
.activity-icon.activity-user       { background: #e8f1ff; color: #2b6cb0; }
.activity-icon.activity-restaurant { background: #eafaf0; color: #2f9e57; }
.activity-icon.activity-food       { background: #fff3e6; color: #ff6b00; }
.activity-icon.activity-star-fill  { background: #fff8e1; color: #e6a100; }
.activity-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.activity-text { color: #333; font-size: 14px; line-height: 1.45; }
.activity-sub  { color: #888; }
.activity-time { color: #aaa; font-size: 12px; }

/* =====================================================================
   HALAMAN LOGIN & DAFTAR — gaya modern (background fullscreen + card, ala SIMASTER)
===================================================================== */
.auth-body { margin: 0; background: #181410; }
.auth-wrap {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;            /* POIN 3: kedua kolom dikelompokkan di tengah */
    gap: clamp(36px, 5vw, 80px);        /* lebih dekat → tidak ada ruang kosong dominan */
    padding: 5vw 6vw;
    box-sizing: border-box;
    background: #181410 url("https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat fixed;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* POIN 1: tombol "Kembali ke Beranda" = BAGIAN dari branding (di bawah deskripsi),
   bukan di dalam card & bukan di atas halaman. */
.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.28);
    padding: 11px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: background .2s ease, transform .2s ease;
}
.auth-back:hover { background: rgba(255,255,255,.3); transform: translateX(-3px); }
.auth-back .ic { flex: 0 0 auto; }
/* overlay gelap transparan agar konten tetap terbaca */
.auth-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.55) 45%, rgba(20,10,0,.40) 100%);
}
.auth-wrap > * { position: relative; z-index: 1; }

/* ---- Branding di sisi background ---- */
.auth-brand { color: #fff; max-width: 560px; }
.auth-logo {
    display: inline-block;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 800;
    letter-spacing: .5px;
    color: #fff;
    text-decoration: none;
    margin: 0 0 16px;
    text-shadow: 0 2px 16px rgba(0,0,0,.4);
}
.auth-logo span { color: #ff8a1f; }
.auth-tagline {
    font-size: clamp(16px, 2.2vw, 23px);
    font-weight: 600;
    color: #ffd9b3;
    margin: 0 0 16px;
    letter-spacing: .3px;
}
.auth-promo {
    font-size: clamp(14px, 1.5vw, 18px);
    line-height: 1.75;
    color: rgba(255,255,255,.92);
    margin: 0;
    max-width: 470px;
    text-shadow: 0 1px 10px rgba(0,0,0,.3);
}

/* ---- Card form di sisi kanan (POIN 2: lebih besar & proporsional) ---- */
.auth-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 22px;
    padding: 48px 50px;
    box-shadow: 0 30px 80px rgba(0,0,0,.4);
    box-sizing: border-box;
}
.auth-title {
    margin: 0 0 6px;
    font-size: 32px;
    font-weight: 800;
    color: #1f1f1f;
    text-align: left;
}
.auth-subtitle {
    margin: 0 0 26px;
    color: #8a8a8a;
    font-size: 15px;
    text-align: left;
}
.auth-form { width: 100%; max-width: none; margin: 0; }
.auth-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #555;
    margin: 16px 0 7px;
    text-align: left;
}
.auth-input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    border: 1.5px solid #e4e4e4;
    border-radius: 12px;
    font-size: 15px;
    margin: 0;
    background: #fafafa;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.auth-input::placeholder { color: #b3b3b3; }
.auth-input:focus {
    outline: none;
    border-color: #ff6b00;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,107,0,.12);
}
.auth-btn {
    width: 100%;
    margin-top: 28px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff8a1f, #ff6b00);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(255,107,0,.34);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(255,107,0,.44);
    filter: brightness(1.05);
}
.auth-btn:active { transform: translateY(0); }
.auth-alt {
    margin: 24px 0 0;
    text-align: center;
    color: #777;
    font-size: 14px;
}
.auth-alt a { color: #ff6b00; font-weight: 700; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }
.auth-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6c2;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px;
    margin: 0 0 18px;
}
.auth-error a { color: inherit; font-weight: 700; text-decoration: underline; }
.auth-error .ic { flex: 0 0 auto; }

/* ---- Responsif: tablet & mobile ---- */
@media (max-width: 880px) {
    .auth-wrap {
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        padding: 48px 22px;
        background-attachment: scroll;
    }
    .auth-brand { text-align: center; max-width: 560px; }
    .auth-promo { margin-inline: auto; }
    .auth-card { margin: 0 auto; }
}
@media (max-width: 480px) {
    .auth-card { padding: 32px 22px; border-radius: 18px; }
    .auth-title { font-size: 27px; }
}
