/* ============================================================
   DASHBOARD glidik - STYLESHEET LENGKAP (REVISI SIDEBAR)
   ============================================================ */

/* 1. RESET & DASAR */
.glidik-dashboard, 
.glidik-dashboard * { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

.glidik-dashboard {
    background-color: var(--brand-primary);
    min-height: 100vh;
}

/* 2. LAYOUT ENGINE */
.glidik-dashboard form {
    margin-left: 280px;
}

/* 3. SIDEBAR */
.glidik-dashboard .sidebar {
    width: 280px;
    padding: 30px 20px;    
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.glidik-dashboard .sidebar::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.glidik-dashboard .sidebar::-webkit-scrollbar {
    width: 4px;
}

.glidik-dashboard .sidebar::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 10px;
}

.glidik-dashboard .profile-brief {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 25px;
    border-bottom: 1px solid #30415b;
    margin-bottom: 20px;
}

.glidik-dashboard .avatar {
    position: relative; 
    cursor: pointer; 
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.glidik-dashboard .avatar img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 50%;
}

.glidik-dashboard .avatar-overlay {
    position: absolute; 
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-primary);
    color: #fff; 
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 5;
}

.profile-brief h3.name-profile {
    display: flex;
    align-items: center;
    font-size: small;
    text-transform: capitalize;
    color: #ccc;
}

.profile-brief h3.name-profile .material-icons-outlined {
    font-size: initial;
    color: #ccc;
}

/* STATUS BADGE */

.profile-brief .identitas {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    line-height: 1.3;
}

.glidik-dashboard .badge {
    font-size: large; 
    font-weight: bold; 
    color: #fff;
    display: flex; 
    align-items: center; 
    gap: 8px;
}

.glidik-dashboard .badge .material-icons-outlined {
    font-size: large;
    color: #7fff00;
}

/* RATING BINTANG */

.glidik-dashboard .profile-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.glidik-dashboard .profile-rating .material-icons-outlined {
    font-size: initial;
    vertical-align: middle;
}

.glidik-dashboard .profile-rating label {
    font-size: small;
    color: #eee;
    margin-left: 5px;
}

.glidik-dashboard .profile-rating small {
    font-size: x-small;
    color: #ccc;
}

/* 4. MENU NAVIGASI */
.glidik-dashboard .nav-menu {
    display: flex;
    flex-direction: column;
}

.glidik-dashboard .nav-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    border-radius: 10px;
    transition: 0.3s;
    font-size: initial;
    font-weight: 600;
    color: #eee;
}

.glidik-dashboard .nav-menu a:hover, 
.glidik-dashboard .nav-menu a.active { color: #ffa500; }
.glidik-dashboard .nav-menu a.logout { color: #007bff; }

.mydashboard {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    gap: 20px;
    padding: 50px 30px;
    background: #fff;
}

@media (max-width: 768px) {
    .mydashboard {
        border-radius: 50px 50px 0 0 ;
        padding: 30px 20px;
    }
}

.glidik-dashboard .content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.glidik-dashboard .content-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: large;
}

.glidik-dashboard .content-header h3 .material-icons-outlined {
    vertical-align: middle;
}

.content-header .date {
    font-size: small;
    color: #999;
}

/* ---------- PROMO PRIMARY ---------- */

.promo-primary {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); 
    color: #fff; 
    padding: 20px; 
    border-radius: 15px; 
    box-shadow: 0 10px 20px rgba(37, 117, 252, 0.2); 
    position: relative; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
}

.promo-primary .material-icons-outlined.stars {
    position: absolute; 
    right: -15px; 
    bottom: -15px; 
    font-size: 100px; 
    opacity: 0.1; 
    transform: rotate(-15deg);
}

.promo-primary-content {
    display: flex; 
    align-items: center; 
    gap: 15px; 
    position: relative; 
    z-index: 1;
}

.promo-primary-content .material-icons-outlined {
    color: #2575fc;
    font-size: 30px;
}

.promo-primary-item.icon {
    background: #fff; 
    width: 50px; 
    height: 50px; 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.promo-primary-item.content {
    flex: 1;
}

.promo-primary-item.content h4 {
    font-size: large; 
    text-transform: uppercase; 
}

.promo-primary-item.content p {
    margin: 0; 
    font-size: 0.85em; 
    opacity: 0.9; 
    line-height: 1.4;
}

.promo-primary-item.arrow {
    position: relative;
    z-index: 1;
}

.promo-primary-item.arrow .material-icons-outlined {
    font-size: 24px;
    opacity: 0.8;
}

/* 6. STATS GRID (CONTENT-HOME) */
.glidik-dashboard .stats-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---------- KARTU DASHBOARD UTAMA ---------- */
.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #eee;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.status-lapak-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.icon-box {
    padding: 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box.active { background: #e8f5e9; color: #2e7d32; }
.icon-box.inactive { background: #ffebee; color: #d32f2f; }
.icon-box.info { background: #e3f2fd; color: #1976d2; }

.header-label { text-align: right; }
.header-label small { color: #888; display: block; margin-bottom: 2px; font-size: 11px; }
.header-label strong { font-size: 13px; letter-spacing: 0.5px; }

/* Angka Utama (ONLINE / OFFLINE) */
.main-display h1 { margin: 0; font-size: x-large; font-weight: 900; line-height:1.3 }
.main-display p { margin: 0; font-size: 13px; color: #666; font-weight: 500; }

.text-active { color: #2ecc71; }
.text-inactive { color: #d32f2f; }

.action-buy-active {
    display: flex;
    gap: 5px;
}

.action-edit-view {
    display: flex;
    gap: 5px;
}

.btn-optimasi.view,
.btn-optimasi.edit {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-optimasi.view {
    background: orange;
}

.btn-optimasi.edit {
    background: #1565c0;
}

@media (max-width: 480px) {
    .action-buy-active {
        flex-direction: column;
    }
}

/* CSS BARU UNTAK COUNTER PERSEN */
.profile-progress-container {
    padding: 15px 0;
    margin: 10px 0;
    border-top: 1px dashed #eee;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-meta span {
    font-size: 11px;
    color: #666;
    font-weight: 600;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.btn-optimasi {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    background: #1565c0;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: small;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-optimasi .material-icons-outlined {
    font-size: large;
}

/* GAYA TOMBOL KARTU */
.btn-optimasi.btn-klaim-bonus {
    background: linear-gradient(135deg, #27ae60, #2ecc71); 
    width: 100%;
    border: none;
    margin-bottom: 8px; 
}

.btn-optimasi.belum-ada-lapak {
    background: #2196f3; 
}

.btn-optimasi.siap-tayang {
    background: #f9ab00; 
}

.btn-optimasi.tambah-masa-aktif {
    background: #2ecc71; 
    flex: 1; 
}

.btn-optimasi.isi-ulang-saldo {
    background: #d32f2f; 
    flex: 1; 
}

/* Kotak Radar / Jangkauan */
.radar-box {
    padding: 15px; 
    background: #fcfcfc; 
    border-radius: 8px; 
    margin: 10px 0; 
    border: 1px solid #f0f0f0;
}

.radar-title {
    display: flex; 
    align-items: center; 
    gap: 5px; 
    margin-bottom: 10px;
}

.radar-title .material-icons-outlined {
    font-size: large;
    color: #1976d2;
}

.radar-title label { 
    font-weight: 700; 
    text-transform: uppercase;
    color: #555; 
    font-size: small; 
}

.radar-history-list {
    display: flex; 
    flex-direction: column; 
    gap: 8px;
}

.radar-log-row {
    display: flex !important; 
    justify-content: space-between !important; 
    align-items: center !important; 
    border-bottom: 1px dashed #eee; 
    padding-bottom: 4px; 
    width: 100%;
}

.radar-log-label {
    display: flex !important; 
    align-items: center !important; 
    gap: 6px; 
    flex: 1;
}

.radar-area-name {
    font-size: 13px; 
    color: #444; 
    text-transform: capitalize; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
}

.radar-empty-msg {
    font-size: 13px; 
    color: #888; 
    text-align: center; 
    padding: 10px; 
    font-style: italic;
}

.radar-status-bar {
    margin-top: 10px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.radar-status-bar label {
    font-size: 11px; 
    color: #999;
}

.radar-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #444;
    margin-bottom: 4px;
}

.radar-row strong { color: #1976d2; }

/* Bagian Alert (Jika Offline) */
.alert-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-box .alert-title { color: #d32f2f; font-weight: 600; display: block; margin-bottom: 4px; font-size: 13px; }
.alert-box .alert-desc { font-size: 12px; color: #666; line-height: 1.4; display: block; }

/* Footer Card */
.stat-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-card-footer .material-icons-outlined {
    font-size: initial;
    color: #f9ab00;
}

.stat-card-footer small { 
    font-size: 11px; 
    line-height: 1.3;
    color: #999; 
}

.stat-card-footer .update-text {
    font-size: 11px; 
    color: #666;
}

/* Animasi Pulse */
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; }
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* HISTORI PEMBAYARAN */

.payment-history-section .stat-card-header {
    display: flex; 
    align-items: center; 
    gap: 12px; 
    margin-bottom: 20px; 
    border-bottom: 1px solid #f0f0f0; 
    padding-bottom: 15px;
}

.payment-history-section .stat-card-header .icon-box {
    background: #e3f2fd; 
    color: #1976d2; 
    width: 45px; 
    height: 45px; 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.payment-history-section .stat-card-header .material-icons-outlined {
    font-size: 26px;
}

.payment-history-section .stat-card-header .header-label small {
    color: #888; 
    display: block; 
    font-size: 11px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}

.payment-history-section .stat-card-header .header-label strong {
    font-size: 16px; 
    color: #333;
}

.history-table-wrapper {
    overflow-x: auto;
}

.history-table-wrapper table {
    width: 100%; 
    border-collapse: collapse; 
    font-size: 13px; 
    min-width: 400px;
}

.history-table-wrapper table tr {
    text-align: left; 
    color: #999; 
    border-bottom: 2px solid #f5f5f5;
}

.history-table-wrapper table th {
    padding: 10px 5px; 
    font-weight: 500;
}

.history-table-wrapper table th:last-child {
    text-align: right;
}

/* 7. DEPOSIT & PAYMENT SECTION */
.payment-section {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.payment-section h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: #333;
    font-weight: 700;
}

.deposit-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.deposit-input-group label {
    display: block;
    font-size: small;
    color: #666;
}

/* Group Input dan Tombol */
.input-action {
    display: flex;
    gap: 5px;
    align-items: center;
}

.input-action #nominal_deposit {
    min-height: 45px;
    flex: 1;
    border-radius: 8px;
    font-size: initial;
    transition: all 0.3s ease;
    outline: none;
}

/* Tombol Bayar */
.btn-pay {
    min-height: 45px;
    background: #1976d2;
    color: #fff;
    border: none;
    padding: 0 25px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-pay:hover {
    background: #1565c0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

.btn-pay:active {
    transform: translateY(0);
}

/* Pesan Error */
#deposit_error {
    font-size: small;
    color: #dc3545;
    line-height: 1.3;
    background: #fff5f5;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
}

/* Info Hint */
.deposit-hint {
    font-size: small;
    line-height: 1.3;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.deposit-hint::before {
    content: 'info';
    font-family: 'Material Icons Outlined';
    font-size: 16px;
    color: #1976d2;
}

/* Responsive buat HP */
@media (max-width: 480px) {
    .input-action {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-pay {
        width: 100%;
    }
}

/* 8. HELP TOMBOL BANTUAN ADMIN */

/* Container Bantuan */
.help-card {
    background: var(--brand-primary);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.help-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.help-icon-box {
    background: #25d366;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.help-text h4 {
    margin: 0;
    font-size: 15px;
    color: #eee;
    font-weight: 700;
}

.help-text p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #ccc;
}

.btn-wa-admin {
    background: #25d366;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-wa-admin:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

@media (max-width: 480px) {
    .help-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-wa-admin {
        width: 100%;
        justify-content: center;
    }
}

/* 9. FORM & INPUT / EDIT PROFIL */

.stat-card.setting {
    gap: 30px;
    padding: 0 0 60px;
    border: none;
}

.glidik-dashboard .grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group-col {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.form-group-col .form-group {
    flex: 1;
}

.form-group label { 
    display: block;
    font-size: small; 
    font-weight: 600;
    line-height: 1.3; 
}

.form-group small {
    display: block;
    font-size: 11px;
    line-height: 1.3;
    color: #666;
}

.form-group.opsional {
    padding: 10px;
    background: #f5fffa;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.form-group .glidik-toggle-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
    user-select: none;
}

.form-group .glidik-toggle-label .material-icons-outlined {
    transition: transform 0.3s ease;
}

.glidik-dashboard input[type="text"],
.glidik-dashboard input[type="number"],
.glidik-dashboard input[type="time"],
.glidik-dashboard input[type="password"],
.glidik-dashboard textarea,
.glidik-dashboard select.glidik-input,
.glidik-dashboard select#main_keyword_select {
    padding: 12px;
    border: 1px solid #ccc;
    font-size: initial;
    width: 100%;
    border-radius: 6px;
}

.glidik-dashboard textarea {
    resize: vertical;
    line-height: 1.5;
}

.glidik-dashboard input:focus,
.glidik-dashboard textarea:focus {
    outline: 1px solid;
}

.glidik-dashboard input::placeholder,
.glidik-dashboard textarea::placeholder {
    color: #999;
    font-size: small;
}

.input-group small {
    display: block;
    font-size: small;
}

.glidik-dashboard .btn-confirm {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.footer-sticky-button .btn-confirm {
	width: 100%; 
	padding: 15px; 
	background: #1e73be; 
	color: #fff; 
	border: none; 
	border-radius: 10px; 
	font-weight: bold; 
	cursor: pointer; 
	font-size: initial;
}

@media (max-width: 768px) {
	.footer-sticky-button {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		background: #fff;
		padding: 10px 20px;
		box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
		z-index: 999;
	}
}

@media (max-width: 480px) {
    .form-group-col {
        flex-direction: column;
        gap: 30px;
    }
}

/* 10. MODAL PAYMENT */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: slideDown 0.3s ease-out;
}

/* Tombol Close (X) */
.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    transition: 0.3s;
}
.close:hover {
    color: #333;
}

/* Tipografi */
.modal-content h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 20px;
}

#payTitle {
    font-weight: bold;
    color: #2ecc71; /* Warna hijau biar semangat bayarnya */
    font-size: 18px;
    margin-bottom: 20px;
    padding: 10px;
    background: #f1fcf5;
    border-radius: 8px;
    display: inline-block;
}

.info-pembayaran {
    margin-bottom: 25px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Tombol Eksekusi QRIS */
.btn-bayar-qris {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-bayar-qris:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Animasi Muncul */
@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 11. RESPONSIVE (AGRESIF) */
@media (max-width: 768px) {
    .glidik-dashboard form { 
        margin-left: 0; 
    }
    
    .glidik-dashboard .sidebar { 
        position: relative;
        width: auto; 
        border-right: none; 
        overflow-y: visible;
    }
    
    .glidik-dashboard .nav-menu { 
        display: grid; 
        grid-template-columns: 1fr 1fr; 
    }
    
    .glidik-dashboard .pricing-grid,
    .glidik-dashboard .grid-2-col { 
        grid-template-columns: 1fr; 
    }
}

@media (max-width: 480px) {
    .glidik-dashboard .nav-menu {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .glidik-dashboard .nav-menu a {
        font-size: small;
        padding: 0;
        gap: 5px;
    }
    .glidik-dashboard .nav-menu .material-icons-outlined {
        font-size: large;
    }
    .glidik-dashboard .nav-menu a:hover,
    .glidik-dashboard .nav-menu a.active {
        background: none;
    }
}

/* ---------- WELCOME BANNER ---------- */
.welcome-banner {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); 
    border-left: 5px solid #1976d2; 
    padding: 15px; 
    border-radius: 15px; 
    position: relative; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    animation: slideDown 0.5s ease-out;
}

.welcome-container {
    display: flex; 
    align-items: center; 
    gap: 15px;
}

.welcome-icon {
    background: white; 
    padding: 10px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.welcome-icon .material-icons-outlined {
    font-size: 40px; 
    color: #1976d2;
}

.welcome-container h2 {
    text-transform: capitalize;
    color: var(--brand-primary); 
    font-size: large;
    line-height: 1.3;
}

.welcome-container p {
    margin: 8px 0 0; 
    color: var(--brand-primary); 
    font-size: 15px; 
    line-height: 1.5;
}

.welcome-banner button {
    position: absolute; 
    top: 10px; 
    right: 10px; 
    background: transparent; 
    border: none; 
    color: #1976d2; 
    cursor: pointer;
}

/* -------------------- EDIT PROFIL ------------------- */

.alert-success {
    background:#d4edda; 
    color:#155724; 
    padding:15px; 
    border-radius:10px; 
    margin-bottom:20px; 
    border: 1px solid #c3e6cb; 
    display: flex; 
    align-items: center; 
    gap: 10px;
}

/* SELECT RADIO */

.select-radio {
    display: flex; 
    gap: 20px; 
    margin-top: 10px;
}

.select-radio .item-radio {
    display: flex; 
    align-items: center; 
    gap: 8px; 
    cursor: pointer; 
    font-size: small;
    font-weight: 700;
}

/* INPUT KEYWORD KATA KUNCI */

.form-keyword {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-keyword select {
    text-transform: capitalize;
}

/* ESTIMASI HARGA */

.glidik-price-mode {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mode-switch-wrapper {
    display: flex; 
    gap: 8px;
}

.estimasi-harga {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
}

@media (max-width: 480px) {
    .estimasi-harga {
        flex-direction: column;
        align-items: stretch;
    }
}

.estimasi-harga .input-group {
    flex: 1;
}

/* FORM PROMO */

.form-promo {
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap;
}

.item-promo-reguler {
    flex: 1; 
    min-width: 250px; 
    padding: 15px; 
    background: #fff; 
    border: 1px solid #ddd;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.item-promo-reguler label {
    color: #1e73be;
}

.item-content-reguler {
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-top: 8px;
}

.item-content-reguler input {
    width: 80px; 
    text-align: center;
}

.item-content-reguler span {
    font-weight: bold; 
    color: #444;
}

/* PROMO FLASH SALE */

.title-reguler,
.title-sale {
    margin: 15px 0;
}

.item-price-reguler,
.item-price-sale {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.item-price-reguler .input-group,
.item-price-sale .input-group {
    flex: 1;
}

.input-group.right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

@media (max-width: 480px) {
    .item-price-sale {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}

.item-promo-flashsale {
    flex: 1; 
    min-width: 250px; 
    padding: 15px; 
    background: #fff; 
    border: 1px solid #ddd; 
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.item-promo-flashsale label {
    color: #ff4500;
}

.item-content-flashsale {
    display: flex; 
    gap: 10px; 
    margin-top: 8px; 
    align-items: flex-end;
}

.item-content-flashsale .sale {
    flex: 1;
}

.item-content-flashsale .sale.left small {
    display:block; 
    font-size: 10px; 
    color: #666;
}

.item-content-flashsale .sale.left input {
    width: 100%; 
    text-align: center;
}

.item-content-flashsale .sale.right small {
    display:block; 
    font-size: 10px; 
    color: #666;
}

.item-content-flashsale .sale.right input {
    width: 100%; 
    text-align: center;
}

/* FORM GALERI */

.galeri-grid-row {
    display: grid; 
    grid-template-columns: repeat(6, 1fr); 
    gap: 8px;
}

@media (max-width: 480px) {
    .galeri-grid-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

.photo-slot {
    aspect-ratio: 1/1; 
    background: #fdfdfd; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    position: relative; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer;
}

.star-image {
    position: absolute; 
    top: 5px; 
    right: 5px; 
    background: rgba(255,255,255,0.8); 
    border-radius: 50%; 
    width: 22px; 
    height: 22px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 10; 
    border: 1px solid #ddd;
}

/* FORM JAM BUKA */

.form-jam {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.form-jam .detail-jam {
    display: flex; 
    align-items: center; 
    gap: 10px;
    font-size: small;
    font-weight: bold;
    line-height: 1;
}

#wrapper-jam .input-group {
    flex: 1;
}

/* FORM ONGKIR */

.form-cod .form-ongkir {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: small;
    background: #fff;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-weight: normal;
}

/* FORM LOKASI */

.form-lokasi label span {
    font-size: 12px; 
    color: #666; 
    font-weight: normal;
}

.form-lokasi small {
    font-size: small;
    line-height: 1.3;
    color: #999; 
    display: block; 
    margin-top: 5px;
}

/* FORM ALAMAT */

.form-alamat {
    color: red; 
    display: block; 
}

.form-alamat small {
    display: block;
    margin-top: 5px;
    font-size: small;
    line-height: 1.3;
}

/* FORM KOORDINAT */

.input-koordinat {
    display: flex; 
    gap: 5px; 
}

.input-koordinat input[type='text'] {
    flex: 1; 
    min-height: 45px;
    background: #eee; 
    cursor: not-allowed; 
    padding: 10px; 
    border: 1px solid #ccc; 
}

.input-koordinat button[type='button'] {
    min-height: 45px;
    background: #007bff; 
    color: white; 
    border: none; 
    padding: 0 20px; 
    cursor: pointer; 
    font-size: 15px; 
    font-weight: bold;
    border-radius: 6px;
}

.info-locations {
    background: #fff3cd; 
    border-left: 4px solid #ffc107; 
    padding: 15px;
    border-radius: 8px; 
}

.info-locations p {
    font-size: small; 
    color: #856404; 
}

@media (max-width: 480px) {
    .input-koordinat {
        flex-direction: column;
    }
}

/* ---------- DASHBOARD PELANGGAN ---------- */

.info-pelanggan {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-pelanggan .header-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.info-pelanggan .header-user .material-icons-outlined {
    font-size: 80px; 
    color: #007bff; 
    opacity: 0.8;
}

.info-pelanggan h3 {
    font-size: x-large; 
    text-align: center;
    line-height: 1.3;
}

.info-pelanggan p {
    color: #333; 
    max-width: 450px; 
    margin: 0 auto; 
    font-size: initial;
    text-align: center;
}

.content-user {
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    align-items: center;
}

.content-user .btn-confirm {
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    padding: 15px 25px; 
    font-weight: bold; 
    font-size: small; 
    border-radius: 50px; 
    transition: all 0.3s ease; 
    background-color: #007bff; 
    color: white;
}

.content-user small {
    text-align: center;
    font-size: small; 
    color: #d32f2f; 
    line-height: 1.3;
}

/* ---------- PENGATURAN AKUN ---------- */ 

.mkr-pengaturan-akun {
    padding: 0;
    border: none;
}

.mkr-pengaturan-akun h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.mkr-pengaturan-akun h3 .material-icons-outlined {
    color: #25d366;
}

.mkr-pengaturan-akun hr {
    border: 0;
    border-top: 1px solid #eee;
    margin-bottom: 25px;
}

.form-group-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mkr-pengaturan-akun .mkr-password {
    position: relative;
}

.mkr-pengaturan-akun .mkr-password .material-icons-outlined {
    position: absolute; 
    right: 15px; 
    top: 50%; 
    transform: translateY(-50%); 
    cursor: pointer; 
    color: #888; 
    user-select: none;
}

.mkr-pengaturan-akun .mkr-password input[type="password"],
.mkr-pengaturan-akun .mkr-password input[type="text"] {
    
}

.mkr-pengaturan-akun .form-control:focus {
    border-color: #25d366;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.mkr-pengaturan-akun .btn-primary {
    background: #25d366;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: initial;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}

.mkr-pengaturan-akun .btn-primary:hover {
    background: #128c7e;
}

.alert-success {
    background: #e8f5e9;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #2e7d32;
    margin-bottom: 20px;
}

/* ---------- MODAL RULES ---------- */

#modal-rules {
    display:none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.8); 
    z-index: 10000; 
    align-items: center; 
    justify-content: center; 
    padding: 20px;
}

.modal-rules-content {
    background: white; 
    width: 100%; 
    max-width: 500px; 
    border-radius: 15px; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    max-height: 90vh;
}

.header-rules-content {
    padding: 20px; 
    background: #f8f9fa; 
    border-bottom: 1px solid #ddd; 
    text-align: center;
}

.header-rules-content h3 {
    font-size: large;
}

#rules-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px; 
    overflow-y: auto; 
    font-size: 14px; 
}

#rules-content .rules-content-info {
    background: #eef2f7; 
    padding: 12px; 
    border-radius: 8px; 
    border-left: 4px solid #1e73be;
}

#rules-content ol {
    list-style: unset;
    margin: revert;
    padding-left: 25px;
}

#rules-content ol li {
	margin-bottom: 5px;
}

.modal-rules-cek {
    background: #fff8e1; 
    padding: 15px; 
    border-radius: 8px; 
    border: 1px solid #ffe082;
}

.modal-rules-cek label {
    display: flex; 
    align-items: center; 
    cursor: pointer; 
    gap: 15px;
}

.modal-rules-cek span {
    font-size: small;
    line-height: 1.5; 
    color: #795548;
}

.modal-rules-footer {
    padding: 20px; 
    border-top: 1px solid #ddd; 
    display: flex; 
    gap: 10px;
}

.modal-rules-footer button[type='button'] {
    flex: 1; 
    padding: 12px; 
    border: 1px solid #ccc; 
    border-radius: 8px; 
    background: none; 
    cursor: pointer; 
    font-size: 14px;
}

.modal-rules-footer button[type='submit'] {
    flex: 2; 
    padding: 12px; 
    border: none; 
    border-radius: 8px; 
    background: #cccccc; 
    color: white; 
    cursor: not-allowed; 
    font-weight: bold; 
    font-size: 14px;
}

/* ----------- CONTENT LAPAK ---------- */

.mkr-daftar-lapak {
    padding: 0;
    border: none;
}

.mini-wallet-card {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%); 
    color: #fff; 
    padding: 15px; 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.2);
}

.mini-wallet-item.center small {
    display: block; 
    opacity: 0.9; 
    font-size: small; 
    text-transform: uppercase; 
}

.mini-wallet-item.center strong {
    font-size: large;
}

.mini-wallet-item.right {
    background: rgba(255,255,255,1); 
    color: #27ae60; 
    padding: 8px 15px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-size: small; 
    font-weight: bold; 
    display: flex; 
    align-items: center; 
    gap: 5px;
}

/* BATAS */

.mkr-daftar-lapak h3.card-title {
    display: flex; 
    align-items: center; 
    gap: 10px;
    margin-bottom: 15px;
}

/* BATAS */

.info-alert-box {
    background: #fff8e1; 
    border-left: 4px solid #ffb300; 
    padding: 15px; 
    border-radius: 8px;
}

.info-alert-box label {
    display: block; 
    margin-bottom: 5px;
}

.info-alert-box p {
    font-size: small;
    line-height: 1.5;
}

/* PROMO BONUS */

.promo-bonus-widget {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); 
    color: #fff; 
    padding: 15px; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(37, 117, 252, 0.3); 
    position: relative; 
    overflow: hidden;
}

.watermark-style {
    position: absolute; 
    right: -10px; 
    top: -10px; 
    opacity: 0.15;
}

.watermark-style .material-icons-outlined {
    font-size: 80px;
}

.promo-bonus-content {
    display: flex; 
    align-items: center; 
    gap: 15px; 
    position: relative; 
    z-index: 1;
}

.promo-bonus-item.icon .material-icons-outlined {
    color: #fff;
}

.promo-bonus-item.content label {
    display: block; 
    font-weight: 700;
}

.promo-bonus-item.content p {
    margin: 0; 
    font-size: 0.85em; 
    opacity: 0.95; 
    line-height: 1.4;
}

/* ---------- ALERT SUCCESS STATUS ---------- */

.alert-success-status {
    background: #e8f5e9; 
    color: #2e7d32; 
    padding: 12px; 
    border-radius: 8px; 
    font-size: 0.85em; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    border: 1px solid #c8e6c9;
}

/* ---------- LAPAK BOX ---------- */

.mkr-lapak-box {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.lapak-header-flex {
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 15px;
    background: #f0f8ff;
    border-bottom: 1px solid #eee;
    text-transform: capitalize;
}

.lapak-header-flex .material-icons-outlined {
    color: #1e73be;
}

.lapak-header-flex .lapak-title {
    font-size: initial;
}

.lapak-details-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    font-size: small; 
}

.mkr-activation-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #ddd; 
    border-radius: 8px; 
    padding: 10px; 
    margin: 0 15px;
}

.activation-header {
    display: flex; 
    align-items: center; 
    gap: 5px;
}

.activation-header .material-icons-outlined {
    font-size: large; 
    color: #2e7d32;
}

.activation-header strong {
    font-size: small; 
    color: #2e7d32;
}

.activation-form-inline {
    display: flex; 
    gap: 8px; 
    align-items: center;
}

@media (max-width: 480px) {
    .activation-form-inline {
        flex-direction: column;
        align-items: stretch;
    }
}

.activation-form-inline .input-wrapper {
    flex: 1; 
    position: relative;
}

.activation-form-inline .input-wrapper input[type="number"] {
    width: 100%; 
    min-height: 40px;
    padding: 0 10px; 
    border: 1px solid #ccc; 
    border-radius: 6px; 
    font-size: small;
}

.activation-form-inline .input-wrapper small {
    position: absolute; 
    right: 8px; 
    top: 10px; 
    color: #999; 
    font-size: small;
}

.activation-form-inline .btn-bayar-aktivasi {
    flex: 2; 
    min-height: 40px;
    background: #2ecc71; 
    color: #fff; 
    border: none; 
    padding: 0 10px; 
    border-radius: 6px; 
    font-weight: bold; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 5px; 
    font-size: initial;
}

.lapak-actions-buttons {
    display: flex; 
    gap: 5px; 
    padding: 20px 15px;
}

.lapak-actions-buttons .btn-primary {
    flex: 1; 
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    text-align: center; 
    text-decoration: none; 
    padding: 0 10px; 
    font-size: small;
    font-weight: 700; 
    text-transform: uppercase;
    color: #fff;
    border-radius: 6px;
}

.lapak-actions-buttons .btn-manage {
    background: #1e73be;
} 

.lapak-actions-buttons .btn-view-profile {
    background: #ffa500;
}

.info-activation {
    display: flex; 
    align-items: center;
    gap: 5px;
}

.info-activation .material-icons-outlined {
    font-size: small;
}

.info-activation small {
    font-size: 12px;
    color: #666;
}

.lapak-footer-toggle {
    border-top: 1px dashed #ddd;
    padding: 15px;
    text-align: right;
}

.toggle-link {
    font-size: 0.75em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

.toggle-link .material-icons-outlined {
    font-size: 14px;
}

.toggle-link.is-draft-action {
    color: #2e7d32;
    font-weight: bold;
    border: 1px solid #2e7d32;
    padding: 4px 8px;
    border-radius: 4px;
    background: #e8f5e9;
}

/* BATAS */

.mkr-add-slot {
    text-align: center; 
    padding: 20px; 
    border: 2px dashed #ccc; 
    border-radius: 8px;
}

.mkr-add-slot p {
    margin-bottom: 15px; 
    font-size: 0.9em; 
    color: #777;
}

/* SCROLL MODAL RULES */

#scroll-rules-tip {
    position: absolute;
    bottom: 120px; /* Pas di atas footer modal */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(29, 41, 61, 0.9);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease;
}

#scroll-rules-tip span { font-weight: 500; }

/* Animasi naik turun dikit biar menarik perhatian */
@keyframes bounce {
    0%, 100% { bottom: 120px; }
    50% { bottom: 128px; }
}
#scroll-rules-tip { animation: bounce 2s infinite; }