/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* Isi ruang kosong agar footer turun */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333;
}

.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    background-color: #1a2b5b;
    color: #ffffff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    /*color: #f1480f;*/
    color: #ffffff;
    text-decoration: none;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
}

.nav-menu ul li a:hover {
    color: #f1480f;
}

.nav-text {
    display: none;
}
.fas.fa-heart {
    display: block;
}
.fas.fa-cart-shopping {
    display: block;
}
.fas.fa-bell {
    display: block;
}
.fas.fa-user-circle {
    display: none;
}
.bantuan-desktop {
    display: block;
}
.bantuan-mobile {
    display: none;
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* Responsive - Mobile */
@media (max-width: 768px) {

    .nav-text {
        display: block;
    }

    /* Sembunyikan icon di hamburger */
    .fas.fa-heart{
        display: none;
    }

    .fas.fa-user-circle {
        display: block;
    }

    .bantuan-desktop {
        display: none;
    }
    .bantuan-mobile {
        display: block;
    }

    .logo a {
        font-size: 20px; /* Aman & tetap terlihat */
    }

    /* Menu jadi vertical */
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        padding: 12px 0;

        /* Hilangkan jarak kosong dari desktop */
        gap: 0 !important;
    }

    /* Garis rapi antar item */
    .nav-menu ul li {
        width: 100%;
        text-align: center;
        padding: 6px 0;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Item terakhir tanpa garis */
    .nav-menu ul li:last-child {
        border-bottom: none;
    }

    .nav-menu ul li a {
        display: block;
        padding: 8px 12px;
        text-align: center;
        font-size: 16px;
        color: #fff;
    }

    .mobile-menu-toggle {
        display: block;
        font-size: 26px;
    }

    .navbar {
        padding: 8px 0;
    }

  /* sembunyikan li yg berisi link history AND li notif-dropdown */
  .nav-menu ul li:has(> a[href*="history"]),
  .nav-menu ul li.notif-dropdown {
    display: none !important;
  }
}

/* Default: sembunyikan mobile icons di desktop */
.mobile-only {
    display: none !important;
}

/* HP mode */
@media (max-width: 768px) {

    /* Aktifkan mobile icons */
    .mobile-only {
        display: flex !important;
        align-items: center;
        gap: 8px;
        margin-left: 8px;
    }

    .mobile-only a {
        display: inline-block;
        position: relative;
        color: #fff;
        text-decoration: none;
    }

    .mobile-only a i {
        font-size: 18px;     /* ikon kecil */
    }

    .mobile-only .notif-badge {
        position: absolute;
        top: -6px;
        right: -10px;
        background: red;
        color: #fff;
        padding: 2px 5px;
        border-radius: 50%;
        font-size: 10px;
    }

}

h4 a {
    color: inherit;
    text-decoration: none;
}
h4 a:hover {
    color: #007bff;
}

#profile
/* Dropdown menu styling */
.user-dropdown {
    position: relative;
}
.user-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    background-color: #1a2b5b;
    top: 100%;
    right: 0;
    min-width: 150px;
    z-index: 999;
    border-radius: 0 0 8px 8px;
}
.user-dropdown .dropdown-menu li {
    padding: 10px;
    border-bottom: 1px solid #fff2;
}
.user-dropdown .dropdown-menu li:last-child {
    border-bottom: none;
}
.user-dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    position: relative;
}
.dropdown-item.unread {
    background-color: #f9f9f9;
    font-weight: bold;
}

.dropdown-item .dot {
    height: 10px;
    width: 10px;
    background-color: orange;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

/* IZINKAN SUBMENU KELUAR TANPA TERPOTONG */
.user-dropdown .dropdown-menu {
    overflow: visible !important;
}

/* POSISI SUBMENU (ke kiri, sejajar Profile) */
.has-submenu .submenu {
    position: absolute;
    right: 100% !important;
    left: auto !important;
    top: 0 !important;

    background: #1a2b5b;
    display: none;
    min-width: 180px;
    z-index: 99999;
}

/* tampil jika aktif */
.has-submenu.active > .submenu {
    display: block !important;
}


/* Home banner - FIXED gradient supaya nggak crash sama navbar */
/* Container banner */
.home-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Slideshow container */
.slideshow {
    position: relative;
}

/* Setiap slide */
.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slide.active {
    opacity: 1;
    position: relative;
}

/* Gambar banner */
.banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Default: Desktop image muncul, mobile image sembunyi */
.banner-img.desktop {
    display: block;
}
.banner-img.mobile {
    display: none;
}

/* Konten teks di atas gambar */
.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.banner-content h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}
.banner-content p {
    font-size: 1.2em;
}

/* Responsive untuk HP */
@media (max-width: 768px) {
    .banner-img.desktop {
        display: none;
    }
    .banner-img.mobile {
        display: block;
    }
    .banner-content h1 {
        font-size: 1.5em;
    }
    .banner-content p {
        font-size: 1em;
    }
}

/* Responsive banner button */
.banner-text-wrapper {
    text-align: center;
    padding: 20px;
    background: #fff; /* Desktop default */
}

.banner-text-wrapper h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.banner-text-wrapper p {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.btn-banner {
    display: inline-block;
    background: #f1480f;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.2em;
    text-decoration: none;
    transition: background 0.3s ease;
}
.btn-banner:hover {
    background: #d13e0d;
}

/* HP biar kontras sama background gambar */
@media (max-width: 768px) {
    .banner-text-wrapper {
        background: #f9f9f9;
    }
    .banner-text-wrapper h1 {
        font-size: 1.5em;
    }
    .banner-text-wrapper p {
        font-size: 1em;
    }
}

.blink-text {
    animation: blinkAnimation 1s infinite;
}

@keyframes blinkAnimation {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* DOT PAGINATION */
.banner-dots {
    text-align: center;
    margin-top: 10px;
    position: relative;
    z-index: 5;
}

.banner-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 4px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.banner-dots .active {
    background: #f1480f;
    width: 12px;
    height: 12px;
}


/* Section spacing */
.home-section {
    padding: 20px 15px;
}

/* Features grid - responsive */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.feature-box {
    flex: 1 1 260px;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.feature-box h4 {
    margin-bottom: 10px;
    color: #1a2b5b; /* tetap konsisten warna heading */
}

.feature-box p {
    font-size: 0.95em;
    color: #333;
}

/* Responsive for Chrome Android & small screens */
@media screen and (max-width: 480px) {
    .home-banner h1 {
        font-size: 1.5em;
    }

    .home-banner p {
        font-size: 0.95em;
    }

    .btn-banner {
        padding: 10px 18px;
        font-size: 0.9em;
    }

    .feature-box {
        padding: 20px;
    }
}

.product-list-container {
    width: 100%;
}

/* Desktop */
.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start; /* kayak FB, mulai dari kiri */
}

.product-card {
    border: 1px solid #ddd;
    padding: 10px;
    width: 200px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: #fff;
    box-sizing: border-box;
}

/* Gambar proporsional */
.product-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1; /* kotak seperti FB */
    object-fit: cover;
    border-radius: 5px;
}

.product-image-wrapper {
    position: relative;
    display: inline-block;
}

.badge-premium {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: gold;
    color: #000;
    font-weight: bold;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 5px;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
    z-index: 2;
}

.badge-komunitas {
    position: absolute;
    top: 36px; /* agak turun biar nggak nabrak badge premium */
    right: 8px;
    background-color: #28a745;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 5px;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
    z-index: 2;
}

.badge-komunitas.single {
    top: 8px; /* kalau cuma komunitas aja, taruh di posisi premium */
}

.badge-agen {
    position: absolute;
    top: 36px; /* sama posisi seperti komunitas */
    right: 8px;
    background: linear-gradient(145deg, #000, #222);
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    border: 1px solid #333;
    z-index: 2;
}

.badge-agen.single {
    top: 8px; /* kalau cuma agen tanpa premium */
}


.price {
    font-weight: bold;
    color: #2c3e50;
}

.kategori {
    font-size: 0.85em;
    color: #777;
}

.btn-detail {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
}

.btn-detail:hover {
    background-color: #0056b3;
}

/* HP - 2 kolom */
@media (max-width: 768px) {
    .product-list {
        flex-direction: row; /*ini harusnya di ganti row bukan column*/
        align-items: center;
        gap: 10px; 
    }
    .product-card {
        flex: 0 0 calc(50% - 10px); /* 2 kolom */
        max-width: calc(50% - 10px);
    }
}

/* HP kecil banget - 1 kolom */
/*@media (max-width: 400px) {*/
/*    .product-card {*/
/*        flex: 0 0 100%;*/
/*        max-width: 100%;*/
/*    }*/
/*}*/

/* Footer */
.footer {
    background-color: #1a2b5b;
    color: #ffffff;
    padding: 20px 0;
    margin-top: 50px;

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

/* Payment Partner */
.payment-partner {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    opacity: 0.9;
}

.midtrans-logo {
    width: 120px;        /* ukuran normal */
    height: auto;        /* biar rasio tidak rusak */

    max-width: 140px;    /* batas maksimal biar nggak gede */
    max-height: 40px;    /* batas tinggi maksimal */

    object-fit: contain; /* jaga proporsi logo */
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu ul {
        display: none;
        flex-direction: column;
        background-color: #1a2b5b;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        border-radius: 5px;
    }
    
    .nav-menu ul.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
        color: #ffffff;
    }
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366; /* warna hijau WA */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
}

.whatsapp-float img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px); /* biar bawah tidak putus */
    padding: 20px;
    background-color: #ffffff;
}

.login-card {
    background-color: #fff;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-title {
    font-size: 24px;
    font-weight: bold;
    color: #1a2b5b;
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.btn-login {
    width: 100%;
    background-color: #f1480f;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-login:hover {
    background-color: #d03d0a;
}

.login-register-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.login-register-link a {
    color: #1a2b5b;
    text-decoration: none;
    font-weight: bold;
}

.login-register-link a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .login-card {
        padding: 20px;
    }
}

.form-extra {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: all 0.2s ease-in-out;
}

.radio-option:hover {
    border-color: #888;
    background-color: #f9f9f9;
}

.radio-option input[type="radio"] {
    margin-right: 8px;
    accent-color: #007bff;
}

.forgot-instruction {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

/* Styling untuk halaman Register - disamakan dengan Login dan Forgot Password */
.register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px); /* supaya tidak putus di bawah */
    padding: 20px;
    background-color: #ffffff;
}

.register-card {
    background-color: #fff;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.register-title {
    font-size: 24px;
    font-weight: bold;
    color: #1a2b5b;
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
}

.btn-register {
    width: 100%;
    background-color: #f1480f;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-register:hover {
    background-color: #d03d0a;
}

.login-register-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.login-register-link a {
    color: #1a2b5b;
    text-decoration: none;
    font-weight: bold;
}

.login-register-link a:hover {
    text-decoration: underline;
}

.register-card a.btn-register {
    display: block;
    text-align: center;
    text-decoration: none;
}


/* Responsive */
@media (max-width: 600px) {
    .register-card {
        padding: 20px;
    }

    .register-title {
        font-size: 20px;
    }

    .form-group label {
        font-size: 12px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
    }

    .btn-register {
        font-size: 14px;
    }
}

.form-group.terms {
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
}

.form-group.terms label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
}

.form-group.terms input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    accent-color: #1a2b5b; /* warna checkbox saat dicentang */
}

.form-group.terms a {
    color: #1a2b5b;
    text-decoration: none;
    font-weight: bold;
}

.form-group.terms a:hover {
    text-decoration: underline;
}

/* Privacy Policy Page */
.privacy-policy-container {
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

.privacy-policy-container h1,
.privacy-policy-container h2,
.privacy-policy-container h3 {
    color: #1a2b5b;
    margin-bottom: 20px;
}

.privacy-policy-container p {
    margin-bottom: 20px;
}

.privacy-policy-container ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.privacy-policy-container ul li {
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    .privacy-policy-container {
        padding: 20px;
        font-size: 14px;
    }

    .privacy-policy-container h1 {
        font-size: 22px;
    }

    .privacy-policy-container h2 {
        font-size: 18px;
    }
}

/* FAQ / Bantuan Page */
.faq-container {
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

.faq-container h1 {
    color: #1a2b5b;
    margin-bottom: 30px;
    font-size: 28px;
    text-align: center;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: bold;
    color: #1a2b5b;
    margin-bottom: 8px;
    font-size: 18px;
}

.faq-answer {
    color: #555;
    font-size: 16px;
    display: none;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    display: block;
}
.faq-question {
    cursor: pointer;
    position: relative;
}

.faq-question::after {
    content: '▼';
    float: right;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 600px) {
    .faq-container {
        padding: 20px;
        font-size: 14px;
    }

    .faq-container h1 {
        font-size: 22px;
    }

    .faq-question {
        font-size: 16px;
    }

    .faq-answer {
        font-size: 14px;
    }
}

.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}


.container-admin {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #f9fbff;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', sans-serif;
}

.card-admin {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h2 {
    margin-bottom: 20px;
    color: #1e3a8a;
}

.alert-success {
    color: green;
    background-color: #d1fae5;
    padding: 10px;
    margin-bottom: 20px;
    border-left: 5px solid #10b981;
    border-radius: 5px;
}

.table-responsive {
    overflow-x: auto;
}

.table-admin {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table-admin th, .table-admin td {
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    text-align: left;
    vertical-align: middle;
}

.table-admin th {
    background-color: #1e40af;
    color: white;
    font-weight: normal;
}

.table-admin td img {
    border-radius: 5px;
}

.btn-verifikasi, .btn-tolak {
    display: inline-block;
    padding: 6px 12px;
    margin: 2px 0;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

.btn-verifikasi {
    background-color: #10b981;
    color: white;
}

.btn-tolak {
    background-color: #ef4444;
    color: white;
}

.btn-verifikasi:hover {
    background-color: #059669;
}

.btn-tolak:hover {
    background-color: #dc2626;
}

.premium-btn {
  background-color: #f5c518 !important; /* KUNING */
  color: #000 !important;
  border: 1px solid #d1b300;
}
.premium-btn:hover {
  background-color: #e4b416 !important;
  color: #000 !important;
}

/* COMMUNITY = HITAM */
.community-btn {
  background-color: #333 !important;   /* Hitam tua */
  color: #fff !important;              /* Putih */
  border: 1px solid #444;              /* Border soft */
}
.community-btn:hover {
  background-color: #000 !important;   /* Hitam pekat */
  color: #fff !important;
}

/* AGENT = ORANGE PASTEL (seperti warna community sebelumnya) */
.agent-btn {
  background-color: #f7e1da !important;  /* Orange pastel */
  color: #d03d0a !important;             /* Orange solid teks */
  border: 1px solid #e3b6a8;             /* Border soft */
  transition: all 0.3s ease;
}
.agent-btn:hover {
  background-color: #d03d0a !important;  /* Orange solid */
  color: #fff !important;
}

.preview-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.preview-box {
    width: 100px;
    height: 100px;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: #f9f9f9;
}

.preview-box img {
    max-width: 100%;
    max-height: 100%;
}

.preview-box input {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.preview-img-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.preview-img-modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
}

.preview-img-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.market-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.market-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-form select,
.filter-form button {
    padding: 8px 12px;
    font-size: 14px;
}

/* HP - bikin tiap select & tombol di baris sendiri, jarak konsisten */
@media (max-width: 768px) {
    .market-filter {
        flex-direction: column;
        padding-left: 24px; /* jarak dari kiri */
        padding-right: 8px;  /* jarak dari kanan */
        margin-top: 10px;    /* jarak dari navbar */
    }

    .filter-form {
        width: 100%;
        /* display: flex; */ /* dihapus biar mepet kiri */
        flex-direction: column;
    }

    .filter-form select,
    .filter-form button {
        width: 100%;
        margin-bottom: 5px; /* jarak antar elemen */
    }

    /* Hilangkan jarak terakhir biar rapi */
    .filter-form select:last-child,
    .filter-form button:last-child {
        margin-bottom: 0;
    }
}

/* Box Deskripsi Ringkas - Clean Style */
.deskripsi-box {
    margin-bottom: 20px;
}

.deskripsi-box h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333; /* hitam abu */
}

/* Clamp 3 baris */
.desc-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    font-size: 15px;
    line-height: 1.6;
    color: #333; /* warna hitam lembut seperti teks detail */
}

/* Soft fade agar halus (background putih normal) */
.desc-clamp:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 25px;
    width: 100%;
    background: linear-gradient(to bottom, transparent, white);
}

/* Tombol toggle */
.btn-deskripsi-toggle {
    background: none;
    border: none;
    color: #1a2b5b;  /* biru navy khas LelangMart */
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 5px;
    font-size: 14px;
}

.btn-deskripsi-toggle:hover {
    text-decoration: underline;
}

/* ===== RAPIKAN DETAIL PRODUK DI HP — TANPA UBAH UKURAN ===== */
@media (max-width: 768px) {
    .deskripsi-box ,
    .info-item, .desc-clamp, #desc-full {
        text-align: left !important;
        margin-bottom: 5px;
    }
}


/* Produk */
.product-card img {
    width: 100%;
    cursor: pointer;
    border-radius: 8px;
}
.product-card h4 {
    margin: 10px 0 5px;
}
.price {
    font-weight: bold;
    color: #1a2b5b;
}
.kategori {
    font-size: 13px;
    color: #666;
}
.btn-detail {
    margin-top: 10px;
    display: inline-block;
    background: #1a2b5b;
    color: #fff;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
}

/* Modal Gambar */
.img-modal {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    text-align: center;
}

.img-modal .modal-content {
    margin-top: 5%;
    max-width: 90%;
    max-height: 80%;
    border: 4px solid white;
    border-radius: 8px;
}

.img-modal .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.btn-cari {
    /*width: 100%;*/
    background-color: #f1480f;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-cari:hover {
    background-color: #d03d0a;
}

@media (max-width: 768px) {
    .btn-cari {
        margin-top: 5px;
    }
}

.product-detail {
    display: flex;
    gap: 30px;
    padding: 40px 0;
    flex-wrap: wrap;
}

.detail-left {
    flex: 1;
    min-width: 280px;
}

.product-main-img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.detail-right {
    flex: 2;
    min-width: 300px;
}

.detail-right h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: #f1480f;
}

.bid-form {
    margin-top: 20px;
}

.bid-form input {
    padding: 10px;
    font-size: 16px;
    width: 200px;
    margin-right: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.bid-form button {
    padding: 10px 20px;
    background-color: #1a2b5b;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.bid-form button:hover {
    background-color: #f1480f;
}

.bid-closed {
    margin-top: 20px;
    color: #888;
    font-weight: bold;
}

.bid-history {
    margin-top: 50px;
}

.bid-history h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.bid-history ul {
    list-style: none;
    padding: 0;
}

.bid-history li {
    padding: 8px 0;
    border-bottom: 1px dashed #ccc;
}

/* Versi desktop tab lebih ke atas */
@media (min-width: 768px) {
    .product-tab-section {
        margin-top: -30px; /* naikkan sedikit */
    }
}

.login-reminder {
    text-align: center;
    background-color: #fff3ed;
    border: 1px dashed #f1480f;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 1rem;
    color: #444;
}

.login-reminder a {
    color: #2563eb;
    font-weight: bold;
    text-decoration: none;
}

.login-reminder a:hover {
    text-decoration: underline;
}


@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
        align-items: center;
        padding: 20px 10px;
    }

    .detail-right {
        width: 100%;
        text-align: center;
    }

    .detail-right h2 {
        font-size: 20px;
    }

    .price {
        font-size: 18px;
    }

    .bid-form input {
        width: 100%;
        max-width: 300px;
        margin-bottom: 10px;
    }

    .bid-form button {
        width: 100%;
        max-width: 300px;
    }

    .bid-history {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .product-main-img {
        max-width: 100%;
        height: auto;
    }

    .bid-history li {
        font-size: 14px;
    }
}

.additional-photos {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.product-thumb-img {
    width: 80px;
    cursor: pointer;
    border: 2px solid transparent;
}
.product-thumb-img:hover {
    border-color: navy;
}

.product-main-img {
    width: 100%;
    max-width: 500px;     /* batas lebar maksimal */
    height: 350px;         /* tinggi tetap agar konsisten */
    object-fit: cover;     /* potong gambar dari tengah */
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.product-tab-section {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    border-top: 1px solid #ddd;
}

/* Navigasi Tab */
.product-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
    flex-wrap: wrap;
}

/* Tombol Tab */
.tab-btn {
    background-color: transparent;
    border: 2px solid #f1480f;
    color: #f1480f;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background-color: #f1480f;
    color: white;
}

.btn-aksi-produk {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

/* Konten Tab */
.tab-content {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    background-color: #fff8f3;
    border: 1px solid #f1480f;
    border-radius: 10px;
    margin-bottom: 40px;
}

/* Styling badge nominal */
.badge.bg-danger-subtle {
    background-color: #ffe2d9;
    color: #f1480f;
}

/* Highlight bid tertinggi */
.bg-warning-subtle {
    background-color: #fff3cd !important;
    border-color: #ffeeba;
}

.toko-container {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}

.product-shop {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product-item {
    flex: 0 0 48%;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 15px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.product-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.product-info {
    flex-grow: 1;
}

.product-info a {
    font-size: 0.9em;
    margin-right: 5px;
    text-decoration: none;
    color: #0066cc;
}

@media (max-width: 768px) {
    .product-shop {
        flex-direction: column; 
        align-items: center;
    }

    .product-item {
        width: 100%;
        max-width: 350px;
        margin-bottom: 20px;
    }

    .product-info {
        text-align: left;
        padding: 0px;
    }

    .product-img {
        max-height: 180px;
        object-fit: cover;
        width: 100%;
    }
    
 .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-group a {
    width: 100%;
    text-align: center;
  }
  
  .btn-aksi-produk {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-aksi-produk a {
    width: 100%;
    text-align: center;
  }
}

.toko-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-tambah-produk {
    background-color: #0057a3;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-tambah-produk:hover {
    background-color: #004080;
}

.notif-dropdown {
    position: relative;
    /*font-size: 16px;*/
}

.notif-toggle {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    /*padding: 10px 15px;*/
    cursor: pointer;
}

.notif-toggle:hover {
    color: #f1480f;
}

.notif-badge {
    background-color: red;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    margin-left: 5px;
}

.notif-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 250px;
    background-color: #1a2b5b;
    border-radius: 0 0 8px 8px;
    z-index: 999;
    padding: 0;
    font-size: 14px !important;
}

.notif-deskripsi {
    font-size: 13px;
    color: #ccc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    max-width: 200px; /* <= sesuaikan lebar maksimum kontainer dropdown */
}

.notif-dropdown.active .notif-menu {
    display: block !important;
}

.dropdown-item {
    border-bottom: 1px solid #fff2;
    padding: 10px 15px;
}

.dropdown-item a {
    text-decoration: none;
    color: #ffffff;
    display: block;
    font-size: 14px !important;
}

.dropdown-item a:hover {
    background-color: #f1480f;
    color: #ffffcc !important;
}

.dropdown-item.unread {
    background-color: #233456;
    font-size: 14px !important;
    font-weight: bold;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: orange;
    border-radius: 50%;
    margin-right: 5px;
}

.lihat-semua a {
    text-align: center;
    font-size: 14px !important;
}

.kosong {
    text-align: center;
    padding: 10px 0;
    color: #ccc;
}

.unread a {
    font-weight: bold;
    color: #007bff;
}

#pagination button[disabled] {
    background-color: #1a2b5b;
    color: white;
}

#pagination button:hover:not([disabled]) {
    background-color: #eee;
}

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

.product-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: #333;
}

.favorite-btn {
    margin: 0;
}

.love-button {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    transition: transform 0.2s ease;
    color: #ccc;
    padding: 0;
}

.love-button:hover {
    transform: scale(1.2);
}

.love-button.favorited {
    color: red;
}

.pagination-container ul.pagination {
    display: inline-block;
    padding-left: 0;
    margin: 0;
    border-radius: 4px;
}

.pagination-container ul.pagination li {
    display: inline;
    margin: 0 2px;
}

.pagination-container ul.pagination li a,
.pagination-container ul.pagination li span {
    color: #000;
    padding: 6px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination-container ul.pagination li.active span {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: start;
    gap: 5px;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    font-size: 2.5rem; /* Ukuran besar untuk desktop */
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #f5b301;
}

/* Saat dipilih, semua label ke kiri ikut aktif */
.star-rating input[type="radio"]:checked ~ label {
    color: #f5b301;
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .star-rating label {
        font-size: 1.8rem;
    }
}

button[id^="btn-hapus-"] {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.85);
    color: white;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.checkbox-group {
    display: flex ; 
    flex-direction: column;
    gap: 10px;
    margin-left: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.checkbox-label input {
    transform: scale(1.2);
}

.text-note {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.affiliate-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.affiliate-card {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.affiliate-card h3 {
    margin-bottom: 10px;
    font-size: 16px;
}
.affiliate-value {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .table-wrapper {
        width: 100%;
        overflow-x: auto;   /* geser horizontal */
        -webkit-overflow-scrolling: touch; /* biar enak di-swipe di iOS */
    }
    
    .affiliate-info {
        flex-direction: column; /* biar ke bawah */
        gap: 15px; /* jarak antar card */
    }

    .affiliate-card {
        width: 100%;  /* full lebar */
    }
}

.riwayat-table {
    min-width: 600px;  /* biar nggak mepet di HP */
    border-collapse: collapse;
    width: 100%;
}

.riwayat-table th,
.riwayat-table td {
    padding: 8px 10px;
    border: 1px solid #ddd;
    text-align: center;
    white-space: nowrap; /* cegah teks patah jadi 2 baris */
}

.komunitas-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f7fa;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.komunitas-info h3 {
    margin: 0 0 10px;
    color: #003366; /* biru navy */
    font-size: 22px;
}

.komunitas-deskripsi {
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}

.dropdown-role {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    background: #333;      /* hitam tua */
    color: #fff;           /* putih */
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-toggle:hover {
    background: #000;      /* full hitam pas hover */
    color: #fff;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 140px;      /* cukup lebar */
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 99;
    margin-top: 4px;
}

.dropdown-menu a {
    display: block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

.dropdown-menu a:hover {
    background-color: #333;  /* hitam saat hover */
    color: #fff;
}

/* aktif pas toggle di klik */
.dropdown-role.show .dropdown-menu {
    display: block;
}

/* Tombol kecil: Keluar Komunitas */
.btn-leave {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  background: #fff;                 /* dasar putih */
  color: #dc2626;                   /* merah elegan */
  border: 1px solid #dc2626;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;              /* biar nggak patah di HP */
}

.btn-leave:hover {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

.btn-leave:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220,38,38,.15); /* focus ring halus */
}

.btn-leave:active {
  transform: translateY(1px);
}

.btn-leave .icon {
  font-size: 12px;                  /* ukuran ikon kecil */
  line-height: 1;
}

/* Container opsional biar nempel kiri & jarak atas kecil */
.leave-wrap {
  margin-top: 12px;
  text-align: left;
}

/* Sedikit penyesuaian di layar kecil */
@media (max-width: 480px) {
  .btn-leave {
    padding: 4px 8px;
    font-size: 11.5px;
  }
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.popup-box {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 12px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease;
    font-family: Arial, sans-serif;
}

.popup-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
}

.popup-box label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #34495e;
    font-weight: 500;
}

.popup-box input, 
.popup-box textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.2s;
}

.popup-box input:focus, 
.popup-box textarea:focus {
    outline: none;
    border-color: #2980b9;
}

.popup-box .popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.popup-box button {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.popup-box .btn-cancel {
    background: #bdc3c7;
    color: #2c3e50;
}

.popup-box .btn-cancel:hover {
    background: #95a5a6;
}

.popup-box .btn-save {
    background: #0057a3;
    color: #fff;
}

.popup-box .btn-save:hover {
    background: #004080;
}

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

/* Status icon */
.status-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

.status-icon.active {
    background-color: #4CAF50; /* hijau */
    box-shadow: 0 0 5px rgba(0, 200, 0, 0.7);
}

.status-icon.inactive {
    background-color: #999; /* abu */
    box-shadow: 0 0 5px rgba(100, 100, 100, 0.6);
}

.withdraw-table {
    width: 100%;
    border-collapse: collapse;
}

.withdraw-table td {
    padding: 4px 8px;
    vertical-align: top;
}

.withdraw-table td:first-child {
    /*font-weight: bold;*/
    width: 150px; /* biar rata kiri */
}

/* khusus halaman kategori blog */
.blog-category-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
}

.blog-category-table th, 
.blog-category-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
}

.blog-category-table th {
    background-color: #f4f6f8;
    font-weight: bold;
}

/* supaya kolom teks wrap rapi */
.blog-category-table td {
    max-width: 300px;
    white-space: normal;
    word-wrap: break-word;
}

/* atur lebar kolom biar seimbang */
.blog-category-table th:nth-child(1),
.blog-category-table td:nth-child(1) {
    width: 60px; /* ID */
    text-align: center;
}

.blog-category-table th:nth-child(4),
.blog-category-table td:nth-child(4) {
    width: 150px; /* Aksi */
    text-align: center;
}

/* tombol di tabel kategori blog */
.blog-category-table td .btn-register {
    display: inline-block;
    margin: 2px 0;
    padding: 5px 10px;
    font-size: 14px;
}

.blog-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.blog-card {
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.blog-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-content {
    padding: 15px;
}

.blog-title {
    font-size: 1.2rem;
    margin: 0 0 10px;
}

.blog-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.blog-excerpt {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.btn-readmore {
    display: block;       /* bikin jadi block biar gampang di-center */
    margin: 15px auto;    /* auto = center kiri kanan */
    text-decoration: none;
    background: #0d3b66;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    width: fit-content;   /* tombol ngepas isi */
    text-align: center;
}

.blog-detail-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 15px;
}

.blog-detail-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    padding-bottom: 20px;
}

.blog-detail-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.blog-detail-title {
    font-size: 2rem;
    margin: 20px 15px 10px;
}

.blog-detail-meta {
    font-size: 0.9rem;
    color: #666;
    margin: 0 15px 20px;
}

.blog-detail-content {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 15px 20px;
}

.btn-back {
    display: block;       /* jadikan block biar margin auto bekerja */
    margin: 20px auto 0;  /* top 20px, auto kiri-kanan, bottom 0 */
    text-decoration: none;
    background: #0d3b66;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    width: fit-content;   /* biar lebar tombol sesuai isi */
    text-align: center;
}

.penalty-table th {
    background: #f5f5f5;
    text-align: left;
    font-weight: bold;
}

.penalty-table td {
    vertical-align: top;
    padding: 6px 10px;
}

.penalty-table td:nth-child(3) {
    white-space: nowrap;
}


/* ===============================
   ADMIN – PRODUK VERIFIKASI
=============================== */

.produk-verifikasi-admin-card {
    background: #111;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 18px;
    border: 1px solid #222;
}

.produk-verifikasi-admin-title {
    margin-bottom: 10px;
    font-size: 18px;
    color: #fff;
}

.produk-verifikasi-admin-row {
    margin-bottom: 8px;
    font-size: 14px;
    color: #ddd;
}

.produk-verifikasi-admin-foto-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.produk-verifikasi-admin-foto-list img,
.produk-verifikasi-admin-foto-pemilik {
    width: 80px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #333;
}

.produk-verifikasi-admin-aksi {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

/* ===============================
   ADMIN – MODAL PENOLAKAN (RAPI WARNA)
=============================== */

#modal-penolakan form button {
    min-width: 120px;
    padding: 10px 16px;
    margin-right: 14px;
    margin-top: 8px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .15s ease;
}

/* KIRIM – MERAH LEMBUT (DANGER TAPI TENANG) */
#modal-penolakan form button[type="submit"] {
    background: #e53935;       /* merah lembut */
    color: #fff;
}

#modal-penolakan form button[type="submit"]:hover {
    background: #d32f2f;
}

/* BATAL – ABU NETRAL */
#modal-penolakan form button[type="button"] {
    background: #f1f1f1;
    color: #333;
}

#modal-penolakan form button[type="button"]:hover {
    background: #e0e0e0;
}

/* HP – TUMPUK BIAR AMAN JEMPOL */
@media (max-width: 480px) {
    #modal-penolakan form button {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 12px;
    }
}

.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.shipping-card {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px 16px;
    border: 1.5px solid #ddd;
    border-radius: 12px;

    cursor: pointer;
    background: #fff;
    transition: all .2s ease;
}

.shipping-card input[type="radio"] {
    transform: scale(1.15);
    accent-color: #2563eb; /* biru */
}

.shipping-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shipping-text strong {
    font-size: 15px;
    font-weight: 600;
}

.shipping-text span {
    font-size: 13px;
    color: #666;
}

/* hover */
.shipping-card:hover {
    border-color: #2563eb;
    background: #f8faff;
}

/* checked state */
.shipping-card.active {
    border-color: #2563eb;
    background: #eef4ff;
}

/* COD special */
.cod-card {
    border-style: dashed;
}

