/* =================================================================
   1. GLOBAL STYLES & VARIABLES
   ================================================================= */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}
<--!html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { font-family: Arial, sans-serif; margin: 0; background-color: var(--light-gray); overflow-x: hidden;}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =================================================================
   2. PUBLIC PAGES STYLES
   ================================================================= */
.public-header { background-color: #fff; padding: 0 20px; height: 60px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.public-header .container { display: flex; justify-content: space-between; align-items: center; height: 100%; padding: 0; }
.logo { font-size: 20px; font-weight: bold; text-decoration: none; color: var(--dark-gray); }
.public-nav { display: flex; align-items: center; gap: 20px; }
.public-nav a { text-decoration: none; color: var(--dark-gray); font-weight: 500; }
.public-nav .btn-register { background-color: var(--primary-color); color: white; padding: 8px 15px; border-radius: 5px; }
.public-nav .btn-register:hover { background-color: #0056b3; }
.nav-link-mobile { display: none; }
.body-logged-out { display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.body-logged-out .form-container { margin: 20px; }
.form-container { width: 90%; max-width: 500px; margin: 40px auto; padding: 30px; background-color: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.form-container h2 { text-align: center; margin-bottom: 10px; }
.form-container p { text-align: center; margin-bottom: 20px; color: #666; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input, .form-group select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; font-size: 1rem; }
.btn { display: inline-block; padding: 12px 30px; background-color: var(--primary-color); color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 15px; font-weight: bold; text-decoration: none; text-align: center; }
.btn:hover { background-color: #0056b3; }
.form-container .btn, .form-wrapper .btn, .contact-card .btn, .empty-state .btn, .upload-form .btn { width: 100%; box-sizing: border-box;}
.alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; text-align: center; }
.alert-danger { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }
.alert-success { color: #155724; background-color: #d4edda; border-color: #c3e6cb; }
.search-container { margin: 25px 0; max-width: 700px; margin-left: auto; margin-right: auto; }
.search-container form { display: flex; align-items: stretch; width: 100%; border: 1px solid #ddd; border-radius: 50px; overflow: hidden; background-color: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.05); height: 50px; }
.search-container input[type="text"] { flex-grow: 1; border: none; padding: 0 20px; font-size: 16px; outline: none; background: none; height: 100%; width: 100%; }
.search-container .search-buttons { display: flex; flex-shrink: 0; }
.search-container .btn-reset, .search-container button[type="submit"] { display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; background-color: transparent; padding: 0; }
.search-container .btn-reset { width: 50px; color: #888; font-size: 16px; text-decoration: none; }
.search-container .btn-reset:hover { color: #333; }
.search-container button[type="submit"] { width: 60px; background-color: var(--primary-color); color: white; font-size: 18px; transition: background-color 0.2s; }
.search-container button[type="submit"]:hover { background-color: #0056b3; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 40px; }
.product-grid .product-card:first-child:last-child { grid-column: 1 / 2; }
.product-card { background-color: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); display: flex; flex-direction: column; overflow: hidden; }
.slider-container { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; }
.slider { display: flex; height: 100%; transition: transform 0.5s ease-in-out; }
.slide { min-width: 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 20px; flex-grow: 1; }
.product-info h2 { margin: 0 0 10px 0; }
.product-footer { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; padding: 20px; border-top: 1px solid #eee; }
.product-footer .actions { display: flex; width: 100%; gap: 10px; }
.product-footer .btn-primary, .product-footer .btn-secondary { flex-grow: 1; padding: 10px; }
.price { font-size: 20px; font-weight: bold; color: var(--primary-color); }
.actions { display: flex; gap: 10px; }
.btn-primary, .btn-secondary { padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; text-decoration: none; text-align: center; }
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-secondary { background-color: var(--secondary-color); color: white; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; z-index: 2000; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background-color: #fff; padding: 30px; border-radius: 8px; width: 90%; max-width: 480px; box-shadow: 0 5px 20px rgba(0,0,0,0.2); transform: scale(0.9); transition: transform 0.3s; }
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-content h3 { text-align: center; margin-top: 0; margin-bottom: 15px; font-size: 24px; }
.modal-intro { text-align: center; color: #666; margin-bottom: 25px; }
.modal-demo-info { background-color: #f7f7f9; border: 1px solid #e1e1e1; border-radius: 8px; padding: 20px; margin-bottom: 30px; line-height: 1.7; font-family: monospace; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 20px; border-top: 1px solid #eee; }
.btn-modal-close, .btn-modal-action { padding: 10px 25px; border: none; border-radius: 5px; cursor: pointer; text-decoration: none; text-align: center; font-weight: bold; font-size: 15px; }
.btn-modal-close { background-color: #e9ecef; color: #495057; }
.btn-modal-close:hover { background-color: #d6dade; }
.btn-modal-action { background-color: #28a745; color: white; }
.btn-modal-action:hover { background-color: #218838; }

/* =================================================================
   3. LOGGED-IN AREA STYLES
   ================================================================= */
body.body-logged-in { padding-bottom: 80px; }
.wrapper { display: flex; }
.main-content { margin-left: 250px; width: 100%; padding: 20px; transition: margin-left 0.3s ease-in-out; }
.main-content .container { padding-left: 0; padding-right: 0; }
.header-desktop { background-color: white; padding: 0 20px; height: 60px; border-bottom: 1px solid #dee2e6; display: flex; align-items: center; justify-content: space-between; }
.header-left, .header-center, .header-right { display: flex; align-items: center; }
.header-left { gap: 15px; }
#toggle-sidebar { background: none; border: none; font-size: 24px; cursor: pointer; padding: 0; }
.header-logo { font-size: 20px; font-weight: bold; text-decoration: none; color: var(--dark-gray); }
.page-title { margin: 0; font-size: 20px; }
.user-info-mobile { display: none; }
.sidebar { width: 250px; background-color: var(--dark-gray); color: white; position: fixed; height: 100%; left: 0; z-index: 1100; transition: width 0.3s ease-in-out; }
.sidebar h3 { padding: 20px; text-align: center; border-bottom: 1px solid #4a4a4a; }
.sidebar ul { list-style-type: none; padding: 0; }
.sidebar ul li a { padding: 15px 20px; display: flex; align-items: center; color: white; text-decoration: none; border-bottom: 1px solid #4a4a4a; }
.sidebar ul li a:hover { background-color: #495057; }
.sidebar ul li a i { margin-right: 15px; width: 20px; text-align: center; }
body.sidebar-collapsed .sidebar { width: 80px; }
body.sidebar-collapsed .sidebar h3, body.sidebar-collapsed .sidebar ul li a span { display: none; }
body.sidebar-collapsed .sidebar ul li a { justify-content: center; }
body.sidebar-collapsed .sidebar ul li a i { margin-right: 0; }
body.sidebar-collapsed .main-content { margin-left: 80px; }
body.sidebar-collapsed #toggle-sidebar i { transform: rotate(180deg); }
.bottom-nav-mobile { display: none; }
.akun-container { max-width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 30px; }
.akun-container .form-wrapper { margin: 0; }
.order-container { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; background-color: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.order-summary .price-tag { margin-top: 20px; padding: 15px; background-color: var(--light-gray); border-radius: 5px; display: flex; justify-content: space-between; align-items: center; font-size: 18px; }
.order-summary .price { font-weight: bold; color: var(--primary-color); font-size: 22px; }
.payment-details .payment-method, .payment-details .payment-qris { margin: 20px 0; line-height: 1.6; }
.upload-form .form-group input[type="file"] { padding: 10px; border: 1px solid #ccc; border-radius: 4px; width: 100%; }
.konfirmasi-container { text-align: center; max-width: 600px; margin: 40px auto; padding: 40px; background-color: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.icon-sukses { font-size: 60px; color: #28a745; margin-bottom: 20px; }
.konfirmasi-container .pesan { font-size: 18px; color: #333; }
.konfirmasi-container hr { margin: 30px 0; border: 0; border-top: 1px solid #eee; }
.btn-wa { display: inline-block; background-color: #25D366; color: white; padding: 12px 25px; border-radius: 5px; text-decoration: none; font-weight: bold; font-size: 16px; }
.btn-wa i { margin-right: 8px; }
.link-kembali { display: block; margin-top: 20px; margin-bottom: 20px; color: var(--primary-color); }
.transaksi-container, .verifikasi-container, .form-wrapper { background-color: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.table-responsive { overflow-x: auto; }
.transaksi-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.transaksi-table th, .transaksi-table td { padding: 12px 15px; border: 1px solid #ddd; text-align: left; }
.transaksi-table th { background-color: #f8f9fa; }
.transaksi-table tbody tr:nth-child(even) { background-color: #f2f2f2; }
.status-badge { padding: 5px 10px; border-radius: 15px; font-size: 12px; color: white; font-weight: bold; }
.status-tiket-buka, .status-tiket-menunggu-balasan-admin { background-color: #007bff; }
.status-tiket-menunggu-balasan-pelanggan { background-color: #ffc107; color: #333; }
.status-tiket-ditutup { background-color: #6c757d; }
.status-menunggu-konfirmasi { background-color: #ffc107; color: #333; }
.status-sukses { background-color: #28a745; }
.status-gagal { background-color: #dc3545; }
.btn-aksi { background-color: var(--primary-color); color: white; padding: 5px 10px; text-decoration: none; border-radius: 4px; font-size: 14px; }
.verifikasi-container .link-kembali { display: inline-block; margin-bottom: 20px; color: var(--primary-color); text-decoration: none; }
.verifikasi-container .link-kembali i { margin-right: 5px; }
.verifikasi-container hr, .form-wrapper hr { margin: 20px 0; border: 0; border-top: 1px solid #eee; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.info-transaksi p { line-height: 1.8; }
.harga-unik { font-weight: bold; background-color: #fff3cd; padding: 3px 6px; border-radius: 4px; }
.bukti-pembayaran-img { max-width: 100%; border: 1px solid #ddd; border-radius: 5px; padding: 5px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.form-actions button { width: 100%; padding: 12px; border-radius: 5px; border: none; color: white; cursor: pointer; font-size: 15px; font-weight: bold; }
.btn-setuju { background-color: #28a745; }
.btn-tolak { background-color: #dc3545; }
textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; font-size: 14px; }
.info-download textarea { background-color: #f2f2f2; cursor: not-allowed; }
.header-section { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.btn-tambah { background-color: var(--primary-color); color: white; padding: 10px 15px; text-decoration: none; border-radius: 5px; font-size: 14px; }
.btn-tambah i { margin-right: 5px; }
.kolom-aksi { display: flex; gap: 10px; }
.btn-edit { background-color: #ffc107; color: #333; }
.btn-hapus { background-color: #dc3545; }
.form-wrapper { max-width: 100%; margin: 0; }
.form-wrapper h4 { margin-top: 0; margin-bottom: 20px; }
.form-wrapper small { display: block; margin-top: 5px; color: #666; }
.existing-images-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 20px; }
.image-preview { border: 1px solid #ddd; border-radius: 8px; padding: 10px; text-align: center; display: flex; flex-direction: column; justify-content: space-between; background-color: #f9f9f9; }
.image-preview img { width: 100%; height: 140px; object-fit: cover; display: block; margin-bottom: 10px; border-radius: 6px; }
.image-preview label { font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 10px; border-top: 1px solid #eee; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.dashboard-card { background-color: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: flex; align-items: center; }
.dashboard-card .card-icon { font-size: 36px; margin-right: 20px; padding: 15px; border-radius: 50%; color: #fff; }
.card-pendapatan .card-icon { background-color: #28a745; }
.card-transaksi-baru .card-icon { background-color: #ffc107; }
.card-produk .card-icon { background-color: #17a2b8; }
.card-pengguna .card-icon { background-color: #6f42c1; }
.card-info .card-title { color: #6c757d; font-size: 14px; margin-bottom: 5px; }
.card-info .card-value { font-size: 28px; font-weight: bold; color: var(--dark-gray); }
.my-products-page .product-card { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.my-products-page .slider-container { aspect-ratio: 16 / 10; }
.my-products-page .slider-container img { width: 100%; height: 100%; object-fit: cover; }
.my-products-page .product-info { text-align: center; padding: 20px; flex-grow: 1; }
.my-products-page .product-footer-download { display: block; padding: 15px; border-top: 1px solid #eee; }
.btn-download-full { display: block; width: 100%; text-align: center; background-color: #28a745; color: white; padding: 12px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: background-color 0.2s; }
.btn-download-full:hover { background-color: #218838; }
.btn-download-full i { margin-right: 8px; }
.history-card .card-actions .btn-invoice {
    background-color: var(--secondary-color); /* Abu-abu */
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}
.history-card .card-actions .btn-invoice:hover {
    background-color: #5a6268;
}
.history-card .card-actions .btn-invoice i {
    margin-right: 8px;
}
.empty-state { text-align: center; padding: 60px 20px; background-color: #fff; border-radius: 8px; margin: 40px 0; }
.empty-state i { font-size: 60px; color: #ccc; margin-bottom: 20px; }
.empty-state h3 { font-size: 24px; margin-bottom: 10px; }
.empty-state p { color: #666; margin-bottom: 30px; }
.empty-state .btn { max-width: 200px; margin: 0 auto; }
.help-center-page { max-width: 100%; margin-left: auto; margin-right: auto; }
.help-center-page .katalog-header i { color: var(--primary-color); margin-right: 10px; }
.help-section { background-color: #fff; padding: 30px; border-radius: 8px; margin-bottom: 30px; }
.help-section h2 { margin-top: 0; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 20px; }
.faq-accordion { border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.faq-item { border-bottom: 1px solid #ddd; }
.faq-item:last-child { border-bottom: none; }
.faq-question { width: 100%; background-color: #f9f9f9; border: none; padding: 20px; text-align: left; font-size: 16px; font-weight: bold; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--dark-gray); }
.faq-question:hover { background-color: #f1f1f1; }
.faq-question i { transition: transform 0.3s ease; }
.faq-item.active .faq-question { color: var(--primary-color); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background-color: #fff; }
.faq-answer p { padding: 20px; margin: 0; line-height: 1.7; color: #555; border-top: 1px solid #eee; }
.contact-grid { display: grid; gap: 20px; }
.contact-grid:not(.wide) { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.contact-grid.wide { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.contact-card { text-align: center; border: 1px solid #ddd; border-radius: 8px; padding: 30px; display: flex; flex-direction: column; align-items: center; }
.contact-card.primary-action { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
.contact-card.primary-action i, .contact-card.primary-action h3 { color: white; }
.contact-card.primary-action p { color: rgba(255,255,255,0.8); }
.contact-card.primary-action .btn { background-color: white; color: var(--primary-color); }
.contact-card i { font-size: 40px; color: var(--primary-color); margin-bottom: 15px; }
.contact-card h3 { margin-bottom: 10px; }
.contact-card p { color: #666; margin-bottom: 25px; flex-grow: 1; }
.contact-card .btn { width: 100%; }
.ticket-detail-container { max-width: 100%; margin: 0 auto; }
.ticket-header { background-color: #fff; padding: 20px 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 20px; }
.ticket-header h3 { margin: 0 0 10px 0; }
.ticket-meta { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: #666; }
.ticket-replies { display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; }
.reply-card { padding: 15px 20px; border-radius: 12px; max-width: 80%; }
.reply-card p { margin: 0; line-height: 1.6; white-space: pre-wrap; }
.reply-header { margin-bottom: 10px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.reply-header .reply-time { font-size: 12px; color: #888; }
.admin-tag { background-color: var(--primary-color); color: white; font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: bold; }
.reply-admin { background-color: #e9ecef; align-self: flex-start; border-top-left-radius: 0; }
.reply-customer { background-color: #d1e7dd; align-self: flex-end; border-top-right-radius: 0; }
.lampiran-link { display: inline-block; margin-top: 10px; font-size: 14px; }
.lampiran-link i { margin-right: 5px; }
.reply-form-container, .ticket-closed-notice { background-color: #fff; padding: 30px; border-radius: 8px; border-top: 4px solid var(--primary-color); }
.ticket-closed-notice { text-align: center; border-top-color: #6c757d; }
.history-page { max-width: 100%; margin-left: auto; margin-right: auto; }
.history-list { display: flex; flex-direction: column; gap: 20px; }
.history-card { background-color: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.07); overflow: hidden; border: 1px solid #eee; }
.history-card .card-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background-color: #f8f9fa; border-bottom: 1px solid #eee; font-size: 14px; color: #666; }
.history-card .transaction-date i { margin-right: 8px; }
.history-card .card-body { display: flex; align-items: center; padding: 20px; gap: 20px; }
.history-card .product-image { width: 90px; height: 90px; flex-shrink: 0; border-radius: 6px; overflow: hidden; }
.history-card .product-image img { width: 100%; height: 100%; object-fit: cover; }
.history-card .product-details { flex-grow: 1; }
.history-card .product-name { margin: 0 0 8px 0; font-size: 18px; }
.history-card .invoice-id { font-size: 13px; color: #888; background-color: #f1f1f1; padding: 3px 6px; border-radius: 4px; }
.history-card .card-footer { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-top: 1px solid #eee; }
.history-card .total-price { display: flex; flex-direction: column; font-size: 14px; color: #666; }
.history-card .total-price strong { font-size: 18px; font-weight: bold; color: var(--dark-gray); }
.history-card .card-actions .btn-download { background-color: #28a745; color: white; padding: 8px 15px; text-decoration: none; border-radius: 5px; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; border: none; cursor: pointer; transition: background-color 0.2s; }
.history-card .card-actions .btn-download:hover { background-color: #218838; }
.history-card .card-actions .btn-download i { margin-right: 8px; }
.history-card .card-actions .btn-secondary[disabled] { cursor: not-allowed; background-color: #e9ecef; opacity: 0.8; }
.ticket-list { display: flex; flex-direction: column; gap: 15px; }
.history-item-card { display: flex; justify-content: space-between; align-items: center; background-color: #fff; padding: 15px 20px; border-radius: 8px; border: 1px solid #eee; box-shadow: 0 2px 8px rgba(0,0,0,0.05); text-decoration: none; color: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.history-item-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.history-item-info { overflow: hidden; }
.history-item-subject { margin: 0 0 8px 0; font-size: 16px; color: var(--dark-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-item-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #666; }
.history-item-arrow { font-size: 14px; color: #ccc; padding-left: 15px; }

/* =================================================================
   4. RESPONSIVE MEDIA QUERIES
   ================================================================= */
@media (max-width: 992px) {
    .order-container, .detail-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    /* --- Perilaku Umum di Mobile --- */
    .body-logged-in .main-content { margin-left: 0; padding: 10px; } /* --- Perilaku Umum di Mobile Login--- */
    .container { padding: 0 5px; } /* --- Perilaku Umum di Mobile sebelum Login--- */

    /* ==============================================
       TAMPILAN MOBILE UNTUK PELANGGAN
       ============================================== */
    .role-pelanggan .header-desktop { display: none; }
    .role-pelanggan .sidebar { display: none; }
    .role-pelanggan .bottom-nav-mobile {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background-color: white;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    .bottom-nav-mobile a { color: var(--dark-gray); text-decoration: none; text-align: center; font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
    .bottom-nav-mobile a i { font-size: 18px; }
    .bottom-nav-mobile a:hover { color: var(--primary-color); }
	
    /* (Aturan mobile lain untuk pelanggan, seperti katalog, riwayat, dll.) */
    .katalog-header { text-align: left; margin: 0 0 20px 0; padding-bottom: 15px; border-bottom: 1px solid #eee; }
    .katalog-header h1 { font-size: 24px; margin: 0; }
    .katalog-header p { display: none; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 0; }
    .product-card .slider-container { aspect-ratio: 1 / 1; }
    .product-card .product-info { padding: 10px; }
    .product-card .product-info h2 { font-size: 14px; line-height: 1.3; margin-bottom: 5px; }
    .product-card .product-info p { display: none; }
    .product-card .price { font-size: 16px; }
    .product-card .actions { width: 100%; }
    .my-products-page .slider-container { aspect-ratio: 1 / 1; }
    .contact-grid { grid-template-columns: 1fr; }
    .akun-container { grid-template-columns: 1fr; }
    .history-card .card-body { padding: 15px; gap: 15px; }
    .history-card .product-image { width: 60px; height: 60px; }
    .history-card .product-name { font-size: 16px; }
    .history-card .card-footer { padding: 15px; }
    .history-card .total-price strong { font-size: 16px; }
    .history-card .card-actions .btn-download, .history-card .card-actions .btn-secondary[disabled] { padding: 8px 10px; font-size: 12px; }

    /* ==============================================
       TAMPILAN MOBILE UNTUK ADMIN
       ============================================== */
    /* Sembunyikan navigasi bawah untuk admin */
    .role-admin .bottom-nav-mobile {
        display: none;
    }
    
    /* Sidebar admin menjadi overlay */
    .role-admin .sidebar {
        position: fixed;
        left: -250px;
        z-index: 2000;
        box-shadow: 2px 0 5px rgba(0,0,0,0.5);
    }
    .role-admin .sidebar.active {
        left: 0;
    }
    
    /* Header admin tetap terlihat */
    .role-admin .header-desktop {
        display: flex;
    }

    /* Latar belakang gelap saat sidebar admin terbuka */
    body.sidebar-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1999;
    }

/* =================================================================
   5. PENYESUAIAN KHUSUS DESKTOP (Layar Lebar)
   ================================================================= */
@media (min-width: 769px) {
    .reply-card { padding: 15px 20px; border-radius: 18px; max-width: 80%; line-height: 1.6; }
    .reply-card p { word-wrap: break-word; }
    .reply-header strong { font-size: 13px; }
    .reply-header .reply-time { font-size: 11px; color: #777; }
    .reply-admin { align-self: flex-start; border-top-left-radius: 4px; }
    .reply-customer { background-color: var(--primary-color); color: white; align-self: flex-end; border-top-right-radius: 4px; }
    .reply-customer .reply-header strong, .reply-customer .reply-header .reply-time { color: rgba(255,255,255,0.9); }
    .reply-customer .lampiran-link { color: #fff; text-decoration: underline; }
}