/* ===== Reset & Dasar ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: #e9e1e0;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navbar ===== */
.navbar {
    background-color: white;
    border-bottom: 1px solid #dcd3d2;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.24s ease, opacity 0.24s ease;
    will-change: transform;
}

.navbar.navbar-hidden {
    transform: translateY(-110%);
    opacity: 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand h2 {
    color: #2c3e50;
}

.navbar-menu a {
    margin-left: 30px;
    color: #34495e;
    font-weight: 500;
    transition: color 0.2s;
}

.navbar-menu a:hover {
    color: #2c3e50;
}

.btn-login {
    background-color: #2c3e50;
    color: white !important;
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid #2c3e50;
}

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

/* ===== Hero Section ===== */
.hero {
    padding: 60px 0;
    background-color: #f9f5f4;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1 1 400px;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: #2c3e50;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    border: 1px solid #2c3e50;
    transition: 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #1e2b37;
}

.btn-secondary {
    background-color: white;
    color: #2c3e50;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    border: 1px solid #dcd3d2;
    transition: 0.2s;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #f0eae9;
}

.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 2500;
}

.confirm-dialog {
    width: min(420px, 100%);
    background: #ffffff;
    border: 1px solid #dcd3d2;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.2);
}

.confirm-dialog h3 {
    margin: 0 0 6px;
    color: #2c3e50;
    font-size: 1.15rem;
}

.confirm-dialog p {
    margin: 0;
    color: #5f6c74;
}

.confirm-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.toast-container {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 2400;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}

.app-toast {
    display: grid;
    grid-template-columns: 26px 1fr 28px;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid #dcd3d2;
    border-left: 5px solid #7f8c8d;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
    color: #2c3e50;
    pointer-events: auto;
    animation: toastIn 0.2s ease-out;
}

.app-toast.closing {
    animation: toastOut 0.18s ease-in forwards;
}

.app-toast > i {
    margin-top: 2px;
    color: #7f8c8d;
    font-size: 1.05rem;
}

.app-toast.success {
    border-left-color: #0f766e;
}

.app-toast.success > i {
    color: #0f766e;
}

.app-toast.failed {
    border-left-color: #b91c1c;
}

.app-toast.failed > i {
    color: #b91c1c;
}

.app-toast.warning {
    border-left-color: #d97706;
}

.app-toast.warning > i {
    color: #d97706;
}

.app-toast.info {
    border-left-color: #2c3e50;
}

.app-toast.info > i {
    color: #2c3e50;
}

.app-toast-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.app-toast-body strong {
    font-size: 0.98rem;
    line-height: 1.25;
}

.app-toast-body span {
    color: #65727a;
    font-size: 0.9rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.app-toast-close {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #7f8c8d;
    cursor: pointer;
}

.app-toast-close:hover {
    background: #f4eeee;
    color: #2c3e50;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .toast-container {
        top: 12px;
        left: 12px;
        right: 12px;
        width: auto;
    }

    .app-toast {
        grid-template-columns: 24px 1fr 28px;
        padding: 12px;
        border-radius: 10px;
    }
}

.hero-image {
    flex: 1 1 300px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* ===== Section Umum ===== */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 40px;
}

/* ===== Legal Pages ===== */
.legal-page {
    background: #f9f5f4;
    min-height: 100vh;
}

.legal-section {
    padding: 42px 0 56px;
}

.legal-card {
    background: #fff;
    border: 1px solid #dcd3d2;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
    padding: 26px 24px;
}

.legal-meta {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-top: -18px;
    margin-bottom: 18px;
}

.legal-card h2 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 18px 0 8px;
}

.legal-card p {
    color: #475866;
    margin-bottom: 10px;
}

.legal-card ul {
    list-style: disc;
    margin: 0 0 12px 20px;
    color: #475866;
}

.legal-card li {
    margin-bottom: 6px;
}

/* ===== Layanan ===== */
.services {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: #f9f5f4;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: 0.2s;
    border: 1px solid #dcd3d2;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.service-item i {
    font-size: 2.5rem;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.service-item h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.service-item p {
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* ===== Produk Populer ===== */
.products {
    background-color: #f9f5f4;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.landing-products-status {
    color: #6b7885;
    margin-bottom: 16px;
}

.landing-promo-banner {
    margin-bottom: 22px;
}

.landing-promo-banner.promo-empty {
    padding: 20px;
    border-radius: 12px;
    box-shadow: none;
}

.landing-promo-banner.promo-empty .promo-badge {
    padding: 8px 15px;
    font-size: 0.95rem;
}

.landing-promo-banner.promo-empty .promo-copy h3 {
    font-size: 1.35rem;
    margin: 14px 0 10px;
}

.landing-promo-banner.promo-empty .promo-copy p {
    font-size: 1.02rem;
}

.product-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #dcd3d2;
    transition: 0.2s;
    position: relative;
    overflow: hidden;
}

.product-card.promo-active {
    border-color: #f5d58d;
}

.landing-product-promo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 9px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.product-card img {
    max-width: 80px;
    margin-bottom: 15px;
}

.product-card h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.product-card-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #f0eae9;
    border: 1px solid #dcd3d2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-icon i {
    font-size: 2rem;
    color: #7f8c8d;
}

.price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.price.promo-card-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.price-old {
    color: #7f8c8d;
    font-size: 0.86rem;
    text-decoration: line-through;
    font-weight: 600;
}

.price-new {
    color: #145c49;
    font-size: 1.2rem;
    font-weight: 800;
}

.btn-product {
    display: inline-block;
    background-color: #e9e1e0;
    color: #2c3e50;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    border: 1px solid #dcd3d2;
    transition: 0.2s;
}

.btn-product:hover {
    background-color: #dcd3d2;
}

/* ===== Testimoni ===== */
.testimonials {
    background-color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: #f9f5f4;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #dcd3d2;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.testimonial-header i {
    font-size: 2.5rem;
    color: #7f8c8d;
}

.testimonial-header h4 {
    color: #2c3e50;
}

.testimonial-header span {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.testimonial-card p {
    font-style: italic;
    color: #34495e;
}

/* ===== Footer ===== */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-about h3,
.footer-links h4,
.footer-contact h4 {
    margin-bottom: 15px;
    color: #e9e1e0;
}

.footer-about p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #bdc3c7;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 8px;
    color: #bdc3c7;
}

.footer-contact i {
    margin-right: 8px;
    color: #e9e1e0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* ===== Login Page ===== */
.login-page {
    background-color: #e9e1e0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background-color: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #dcd3d2;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.login-header p {
    color: #7f8c8d;
    font-size: 0.95rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcd3d2;
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #7f8c8d;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    top: auto;
    bottom: 6px;
    right: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transform: none;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #7f8c8d;
    cursor: pointer;
}

.password-toggle:hover {
    background: #f0eae9;
    color: #2c3e50;
}

.captcha-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #dcd3d2;
    border-radius: 10px;
    background: #f9f5f4;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.captcha-box strong {
    color: #2c3e50;
    font-size: 1.2rem;
    letter-spacing: 0.16em;
}

.captcha-code {
    font-family: Consolas, 'Courier New', monospace;
    user-select: none;
}

.captcha-refresh {
    flex: 0 0 auto;
}

.turnstile-box {
    min-height: 68px;
    display: flex;
    align-items: center;
}

.turnstile-box iframe {
    max-width: 100%;
}

.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 16px;
    color: #4a5b69;
    font-size: 0.92rem;
    line-height: 1.45;
}

.consent-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #2c3e50;
    flex: 0 0 auto;
}

.consent-check a {
    color: #2c3e50;
    font-weight: 600;
}

.consent-check a:hover {
    color: #1e2b37;
}

.btn-login-submit {
    width: 100%;
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-login-submit:hover {
    background-color: #1e2b37;
}

.login-note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #95a5a6;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: #f9f5f4;
    border: 1px solid #e9e1e0;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 18px;
}

.auth-tab {
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #7f8c8d;
    padding: 10px 12px;
    font-weight: 700;
    cursor: pointer;
}

.auth-tab.active {
    background: white;
    color: #2c3e50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.auth-view {
    display: none;
}

.auth-view.active {
    display: block;
}

.auth-message {
    min-height: 22px;
    margin-bottom: 14px;
    color: #7f8c8d;
    font-size: 0.92rem;
}

.auth-message.success {
    color: #237255;
    font-weight: 700;
}

.auth-message.failed {
    color: #c0392b;
    font-weight: 700;
}

.auth-link-btn {
    border: none;
    background: transparent;
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin: -6px 0 14px;
    padding: 0;
    text-align: left;
}

.auth-link-btn:hover {
    text-decoration: underline;
}

.btn-login-submit:disabled {
    cursor: wait;
    opacity: 0.75;
}

.btn-auth-secondary {
    width: 100%;
    background: white;
    color: #2c3e50;
    border: 1px solid #dcd3d2;
    padding: 12px;
    border-radius: 30px;
    margin-top: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-auth-secondary:hover {
    background: #f0eae9;
}

.otp-target {
    border: 1px solid #e9e1e0;
    border-radius: 12px;
    background: #f9f5f4;
    padding: 14px;
    margin-bottom: 18px;
}

.otp-target span {
    display: block;
    color: #7f8c8d;
    font-size: 0.86rem;
    margin-bottom: 4px;
}

.otp-target strong {
    color: #2c3e50;
    overflow-wrap: anywhere;
}

/* ===== Dashboard (dari kode sebelumnya) ===== */
.dashboard {
    background-color: #e9e1e0;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    border-right: 1px solid #dcd3d2;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid #e9e1e0;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    color: #2c3e50;
}

.sidebar-header p {
    color: #95a5a6;
    font-size: 0.9rem;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.sidebar-nav ul li {
    margin: 5px 0;
}

.sidebar-nav ul li a {
    display: block;
    padding: 12px 20px;
    color: #34495e;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: 0.2s;
}

.sidebar-nav ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #95a5a6;
}

.sidebar-nav ul li.active a,
.sidebar-nav ul li a:hover {
    background-color: #f5f0ef;
    border-left-color: #7f8c8d;
    color: #2c3e50;
}

.sidebar-nav ul li.active a i,
.sidebar-nav ul li a:hover i {
    color: #2c3e50;
}

.mobile-only-nav {
    display: none;
}

@keyframes mobileNavIconSpin {
    0% {
        transform: translateX(6px) rotate(14deg);
    }
    100% {
        transform: translateX(0) rotate(0deg);
    }
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #e9e1e0;
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e74c3c;
    font-weight: 500;
}

.main-content {
    flex: 1;
    padding: 20px 30px;
    overflow-y: auto;
}

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

.header-left h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 600;
}

.header-right .user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    border: 1px solid #dcd3d2;
}

.user-info i {
    font-size: 1.2rem;
    color: #7f8c8d;
}

.dashboard-view {
    display: none;
}

.dashboard-view.active {
    display: block;
}

.balance-card {
    background: white;
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    border: 1px solid #dcd3d2;
}

.balance-info span {
    font-size: 1rem;
    color: #7f8c8d;
    display: block;
    margin-bottom: 5px;
}

.balance-info h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    font-weight: 600;
}

.quick-services {
    margin-bottom: 40px;
}

.quick-services h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.5rem;
}

.direct-pay-info {
    background: #f9f5f4;
    border: 1px solid #dcd3d2;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.direct-pay-info i {
    color: #2c3e50;
    font-size: 1rem;
    margin-top: 2px;
}

.direct-pay-info h3 {
    color: #2c3e50;
    font-size: 0.98rem;
    margin-bottom: 4px;
}

.direct-pay-info p {
    color: #5f6f7f;
    font-size: 0.9rem;
    line-height: 1.5;
}

.promo-banner {
    border: 1px solid #d9d2d1;
    background: linear-gradient(135deg, #223448 0%, #2c3e50 55%, #36506a 100%);
    color: #f8fafc;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    overflow: hidden;
}

.promo-banner.promo-empty {
    background: #ffffff;
    color: #2c3e50;
}

.promo-banner.promo-empty .promo-copy p,
.promo-banner.promo-empty .promo-countdown span {
    color: #6b7885;
}

.promo-banner.promo-empty .promo-badge {
    background: #f0eae9;
    color: #2c3e50;
}

.promo-banner.promo-empty .promo-countdown,
.promo-banner.promo-empty .promo-price,
.promo-banner.promo-empty .btn-primary,
.promo-banner.promo-empty .promo-side,
.promo-banner.promo-empty .promo-dots {
    display: none;
}

.promo-banner.promo-switching .promo-copy,
.promo-banner.promo-switching .promo-side {
    animation: promoSlideIn 0.34s ease both;
}

@keyframes promoSlideIn {
    from {
        opacity: 0;
        transform: translateX(18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.promo-copy h3 {
    font-size: 1.05rem;
    margin: 6px 0 4px;
}

.promo-copy p {
    margin: 0;
    color: #d6e0ea;
    font-size: 0.9rem;
}

.promo-price {
    margin-top: 8px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.promo-price-original {
    font-size: 0.82rem;
    color: #dbe7f4;
    text-decoration: line-through;
    opacity: 0.9;
}

.promo-price-final {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.promo-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.16);
}

.promo-side {
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.promo-countdown {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.promo-countdown span {
    font-size: 0.75rem;
    color: #dbe7f4;
}

.promo-countdown strong {
    font-size: 1rem;
    letter-spacing: 1px;
}

.promo-dots {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.promo-dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    padding: 0;
    cursor: pointer;
}

.promo-dot.active {
    width: 18px;
    background: #ffffff;
}

.dashboard-menu-shortcuts {
    border: 1px solid #ded6d5;
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 20px;
}

.dashboard-menu-shortcuts h3 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 10px;
}

.menu-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.menu-shortcut-card {
    border: 1px solid #e5dddc;
    background: #f9f5f4;
    border-radius: 10px;
    min-height: 92px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
    cursor: pointer;
    transition: 0.2s ease;
}

.menu-shortcut-card i {
    font-size: 1.2rem;
    color: #5d6d7d;
}

.menu-shortcut-card span {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
}

.menu-shortcut-card:hover {
    transform: translateY(-1px);
    border-color: #cfc5c4;
    background: #f3edec;
}

.shortcut-flow-panel {
    border: 1px solid #ddd5d4;
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 20px;
}

.shortcut-flow-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.shortcut-flow-head h3 {
    color: #2c3e50;
    font-size: 1rem;
}

.shortcut-flow-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.shortcut-flow-body .form-group:last-of-type,
.shortcut-flow-body .checkout-actions,
.shortcut-flow-body .checkout-status {
    grid-column: 1 / -1;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    grid-auto-rows: 1fr;
}

.service-card {
    background: white;
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    border: 1px solid #dcd3d2;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.service-card i {
    font-size: 2.5rem;
    color: #7f8c8d;
    margin-bottom: 0;
}

.service-card h3 {
    margin: 0;
    color: #2c3e50;
    width: 100%;
    flex: 1;
    line-height: 1.35;
}

.btn-service {
    background: #e9e1e0;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid #dcd3d2;
    color: #2c3e50;
    margin-top: auto;
}

.btn-service:hover {
    background: #dcd3d2;
}

.prepaid-products {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    border: 1px solid #dcd3d2;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.products-header h2 {
    color: #2c3e50;
    font-size: 1.5rem;
}

.btn-refresh-products {
    border-radius: 10px;
    padding: 9px 14px;
    cursor: pointer;
}

.btn-refresh-products i {
    margin-right: 6px;
}

.product-browser {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.browser-column {
    border: 1px solid #e4dbda;
    border-radius: 12px;
    background: #f9f5f4;
    padding: 14px;
}

.browser-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 700;
}

.browser-title small {
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 999px;
    background: white;
    border: 1px solid #dcd3d2;
    color: #7f8c8d;
    font-size: 0.78rem;
    text-align: center;
}

.filter-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 4px;
}

.filter-chip {
    border: 1px solid #dcd3d2;
    background: white;
    color: #2c3e50;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-chip:hover,
.filter-chip.active {
    background: #2c3e50;
    border-color: #2c3e50;
    color: white;
}

.product-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) minmax(160px, 220px) minmax(160px, 220px);
    gap: 14px;
    margin-bottom: 12px;
}

.product-search {
    position: relative;
}

.product-search i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #95a5a6;
}

.product-search input,
.product-filters select {
    width: 100%;
    height: 44px;
    border: 1px solid #dcd3d2;
    border-radius: 10px;
    background: #f9f5f4;
    color: #2c3e50;
    font-size: 0.95rem;
}

.product-search input {
    padding: 0 14px 0 42px;
}

.product-filters select {
    padding: 0 12px;
}

.native-filter-select {
    display: none;
}

.fancy-filter-select {
    position: relative;
}

.fancy-filter-trigger {
    width: 100%;
    height: 44px;
    border: 1px solid #dcd3d2;
    border-radius: 10px;
    background: #f9f5f4;
    color: #2c3e50;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.fancy-filter-trigger:hover {
    background: #f4efee;
}

.fancy-filter-select.open .fancy-filter-trigger,
.fancy-filter-trigger:focus-visible {
    outline: none;
    border-color: #2c3e50;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.12);
}

.fancy-filter-trigger-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.fancy-filter-trigger i {
    font-size: 0.8rem;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.fancy-filter-select.open .fancy-filter-trigger i {
    transform: rotate(180deg);
}

.fancy-filter-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 25;
    background: #ffffff;
    border: 1px solid #dcd3d2;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    padding: 6px;
    max-height: 260px;
    overflow-y: auto;
    display: none;
}

.fancy-filter-select.open .fancy-filter-menu {
    display: block;
}

.fancy-filter-option {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    color: #334155;
    font-size: 0.93rem;
    font-weight: 500;
    padding: 10px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.fancy-filter-option:hover {
    background: #f3f6fb;
}

.fancy-filter-option.active {
    background: #2c3e50;
    color: #ffffff;
}

.product-search input:focus,
.product-filters select:focus {
    outline: none;
    border-color: #7f8c8d;
    background: white;
}

.product-status {
    min-height: 22px;
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.prepaid-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

.prepaid-product-card {
    border: 1px solid #dcd3d2;
    border-radius: 12px;
    padding: 16px;
    background: #fdfcfc;
    display: flex;
    min-height: 220px;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.2s;
}

.prepaid-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}

.prepaid-product-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.prepaid-product-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e9e1e0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
}

.product-badge {
    max-width: 130px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #edf7f2;
    color: #237255;
    font-size: 0.78rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prepaid-product-card h3 {
    color: #2c3e50;
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 8px;
    min-height: 44px;
}

.product-meta,
.product-sku {
    color: #7f8c8d;
    font-size: 0.86rem;
}

.product-sku {
    margin-top: 4px;
    font-family: Consolas, 'Courier New', monospace;
}

.product-price {
    color: #145c49;
    font-size: 1.18rem;
    font-weight: 700;
    margin: 16px 0 12px;
}

.product-price-promo {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 8px;
}

.product-price-promo .product-promo-label {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
}

.product-price-promo .product-price-original {
    color: #7f8c8d;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: line-through;
}

.product-price-promo .product-price-final {
    color: #145c49;
    font-size: 1.18rem;
    font-weight: 800;
}

.prepaid-product-card .btn-service {
    width: 100%;
    border-radius: 10px;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.btn-load-more {
    border-radius: 10px;
    cursor: pointer;
}

.checkout-panel {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-top: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    border: 1px solid #dcd3d2;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}

.checkout-step {
    display: inline-block;
    color: #7f8c8d;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.checkout-header h2 {
    color: #2c3e50;
    font-size: 1.45rem;
    line-height: 1.3;
}

.icon-button {
    width: 40px;
    height: 40px;
    border: 1px solid #dcd3d2;
    border-radius: 10px;
    background: #f9f5f4;
    color: #2c3e50;
    cursor: pointer;
}

.icon-button:hover {
    background: #e9e1e0;
}

.checkout-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.checkout-summary div {
    border: 1px solid #e9e1e0;
    border-radius: 12px;
    background: #f9f5f4;
    padding: 14px;
}

.checkout-summary span {
    display: block;
    color: #7f8c8d;
    font-size: 0.84rem;
    margin-bottom: 4px;
}

.checkout-summary strong {
    color: #2c3e50;
    overflow-wrap: anywhere;
}

.checkout-form .form-group {
    margin-bottom: 14px;
}

.game-account-fields label {
    display: block;
    margin-bottom: 8px;
}

.checkout-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 10px;
}

.checkout-account-grid input {
    width: 100%;
    height: 44px;
    border: 1px solid #dcd3d2;
    border-radius: 10px;
    padding: 0 12px;
    background: #f9f5f4;
    color: #2c3e50;
    font-size: 0.95rem;
}

.checkout-account-grid input:focus {
    outline: none;
    border-color: #7f8c8d;
    background: white;
}

.field-help {
    display: block;
    margin-top: 8px;
    color: #6b7280;
    font-size: 0.85rem;
}

.checkout-status {
    min-height: 22px;
    color: #7f8c8d;
    margin-bottom: 16px;
}

.checkout-status.success {
    color: #237255;
    font-weight: 700;
}

.checkout-status.failed {
    color: #c0392b;
    font-weight: 700;
}

.checkout-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.checkout-actions .btn-primary,
.checkout-actions .btn-secondary {
    border-radius: 10px;
    cursor: pointer;
}

.checkout-actions .btn-primary:disabled {
    cursor: wait;
    opacity: 0.7;
}

.checkout-payment-result {
    border: 1px solid #e9e1e0;
    border-radius: 12px;
    background: #f9f5f4;
    padding: 16px;
    margin-top: 14px;
}

.checkout-payment-result h3 {
    color: #2c3e50;
    font-size: 1.02rem;
    margin-bottom: 10px;
}

.checkout-payment-result img {
    width: 240px;
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid #dcd3d2;
    background: #fff;
    display: block;
    margin-bottom: 10px;
}

.checkout-payment-result p {
    color: #7f8c8d;
    margin-bottom: 10px;
}

.checkout-payment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topup-panel {
    margin-top: 18px;
    border: 1px solid #e9e1e0;
    border-radius: 12px;
    background: #f9f5f4;
    padding: 16px;
}

.topup-panel h3 {
    color: #2c3e50;
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.topup-info {
    margin-bottom: 14px;
    border: 1px solid #e9e1e0;
    border-radius: 12px;
    background: #f9f5f4;
    padding: 14px 16px;
}

.topup-info h3 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 8px;
}

.topup-info ul {
    margin: 0;
    padding-left: 18px;
    color: #5f6c74;
    font-size: 0.92rem;
    line-height: 1.5;
}

.recent-transactions {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    border: 1px solid #dcd3d2;
}

.recent-transactions h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.5rem;
}

.admin-transaction-tools {
    margin-bottom: 14px;
}

.admin-transaction-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.admin-transaction-filters label {
    color: #7f8c8d;
    font-size: 0.85rem;
    font-weight: 600;
}

.admin-transaction-filters input,
.admin-transaction-filters select {
    border: 1px solid #dcd3d2;
    background: #fff;
    color: #2c3e50;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.9rem;
}

.admin-transaction-filters .fancy-filter-select {
    min-width: 170px;
}

.admin-transaction-filters input[type="search"] {
    min-width: 240px;
}

.admin-transaction-filters .btn-secondary {
    padding: 8px 14px;
    border-radius: 10px;
}

.admin-transaction-count {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.admin-transaction-count strong {
    color: #2c3e50;
}

.admin-pagination {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.admin-pagination span {
    color: #7f8c8d;
    font-size: 0.9rem;
    min-width: 120px;
    text-align: center;
}

.account-section {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-top: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    border: 1px solid #dcd3d2;
}

.account-section h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.5rem;
}

.account-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.account-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    border: 1px solid #e9e1e0;
    border-radius: 12px;
    background: #f9f5f4;
    padding: 16px;
}

.account-card span {
    color: #7f8c8d;
}

.account-card strong {
    color: #2c3e50;
    overflow-wrap: anywhere;
}

.account-actions {
    margin-top: 14px;
}

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

.transactions-table th {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 2px solid #e9e1e0;
    color: #7f8c8d;
    font-weight: 600;
}

.transactions-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e9e1e0;
    color: #2c3e50;
}

.transactions-table tbody tr:hover {
    background-color: #f9f5f4;
}

.status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status.success {
    color: #0f766e;
    background: #ccfbf1;
}

.status.pending {
    color: #92400e;
    background: #fef3c7;
}

.status.failed {
    color: #b91c1c;
    background: #fee2e2;
}

.receipt-btn {
    border: 1px solid #dcd3d2;
    background: #fff;
    color: #2c3e50;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.receipt-btn i {
    margin-right: 6px;
}

.receipt-btn:hover {
    background: #f0eae9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    border: 1px solid #dcd3d2;
}

.stat-card i {
    font-size: 2.5rem;
    color: #7f8c8d;
}

.stat-card h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    line-height: 1.2;
}

.stat-card p {
    color: #7f8c8d;
}

.user-list {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    border: 1px solid #dcd3d2;
}

.user-list h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.5rem;
}

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

.user-table th {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 2px solid #e9e1e0;
    color: #7f8c8d;
    font-weight: 600;
}

.user-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e9e1e0;
    color: #2c3e50;
}

.admin-products {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    border: 1px solid #dcd3d2;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.admin-section-header h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.admin-section-header p {
    color: #7f8c8d;
}

.admin-sync-btn {
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
}

.admin-sync-btn:disabled {
    cursor: wait;
    opacity: 0.7;
}

.admin-sync-btn i {
    margin-right: 6px;
}

.product-sync-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.product-sync-stats div {
    border: 1px solid #e9e1e0;
    border-radius: 12px;
    background: #f9f5f4;
    padding: 14px;
}

.product-sync-stats span {
    display: block;
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.product-sync-stats strong {
    color: #2c3e50;
    font-size: 1.1rem;
}

.admin-pricing-config {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 18px;
    border: 1px solid #e9e1e0;
    border-radius: 12px;
    background: #f9f5f4;
    padding: 14px;
}

.admin-pricing-config .form-group {
    margin-bottom: 0;
    min-width: 240px;
}

.admin-pricing-config p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

.setting-toggle-group {
    min-width: 280px;
}

.setting-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
    font-weight: 500;
}

.setting-toggle-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2c3e50;
}

.admin-backup-actions {
    align-items: center;
}

/* ===== Desktop Admin Table Polish ===== */
@media (min-width: 769px) {
    .main-content,
    #productsView,
    #productsSection {
        min-width: 0;
        max-width: 100%;
    }

    #productsSection {
        overflow-x: hidden;
    }

    #productsSection .product-filters {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    #productsSection .product-search,
    #productsSection .fancy-filter-select {
        min-width: 0;
    }

    #productsSection .transactions-table {
        table-layout: fixed;
        width: 100%;
        min-width: 0;
        font-size: 0.93rem;
    }
    #productsSection .transactions-table th,
    #productsSection .transactions-table td {
        vertical-align: middle;
        padding-left: 8px;
        padding-right: 8px;
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: normal;
    }
    #productsSection .transactions-table th:nth-child(1),
    #productsSection .transactions-table td:nth-child(1) {
        width: 21%;
    }
    #productsSection .transactions-table th:nth-child(2),
    #productsSection .transactions-table td:nth-child(2) {
        width: 10%;
    }
    #productsSection .transactions-table th:nth-child(3),
    #productsSection .transactions-table td:nth-child(3) {
        width: 9%;
    }
    #productsSection .transactions-table th:nth-child(4),
    #productsSection .transactions-table td:nth-child(4) {
        width: 9%;
    }
    #productsSection .transactions-table th:nth-child(5),
    #productsSection .transactions-table td:nth-child(5) {
        width: 10%;
    }
    #productsSection .transactions-table th:nth-child(6),
    #productsSection .transactions-table td:nth-child(6) {
        width: 10%;
    }
    #productsSection .transactions-table th:nth-child(7),
    #productsSection .transactions-table td:nth-child(7) {
        width: 9%;
    }
    #productsSection .transactions-table th:nth-child(8),
    #productsSection .transactions-table td:nth-child(8) {
        width: 12%;
    }
    #productsSection .transactions-table th:nth-child(9),
    #productsSection .transactions-table td:nth-child(9) {
        width: 10%;
    }
    #productsSection .transactions-table td:nth-child(8),
    #productsSection .transactions-table td:nth-child(9) {
        text-align: left;
    }
    #productsSection .transactions-table td:nth-child(8) .receipt-btn,
    #productsSection .transactions-table td:nth-child(9) .receipt-btn {
        justify-content: center;
        display: inline-flex;
        align-items: center;
        max-width: 100%;
        min-width: 0;
        white-space: nowrap;
        font-size: 0.82rem;
        line-height: 1.2;
        padding: 8px 9px;
    }
    #productsSection .transactions-table td:nth-child(7) .status {
        white-space: nowrap;
    }

    #paymentsView .recent-transactions {
        overflow-x: hidden;
    }
    #paymentsView .transactions-table {
        table-layout: fixed;
        width: 100%;
    }
    #paymentsView .transactions-table th,
    #paymentsView .transactions-table td {
        padding-left: 10px;
        padding-right: 10px;
        vertical-align: middle;
    }
    #paymentsView .transactions-table th:nth-child(1),
    #paymentsView .transactions-table td:nth-child(1) { width: 12%; }
    #paymentsView .transactions-table th:nth-child(2),
    #paymentsView .transactions-table td:nth-child(2) { width: 8%; }
    #paymentsView .transactions-table th:nth-child(3),
    #paymentsView .transactions-table td:nth-child(3) { width: 9%; }
    #paymentsView .transactions-table th:nth-child(4),
    #paymentsView .transactions-table td:nth-child(4) { width: 7%; }
    #paymentsView .transactions-table th:nth-child(5),
    #paymentsView .transactions-table td:nth-child(5) { width: 17%; }
    #paymentsView .transactions-table th:nth-child(6),
    #paymentsView .transactions-table td:nth-child(6) { width: 8%; }
    #paymentsView .transactions-table th:nth-child(7),
    #paymentsView .transactions-table td:nth-child(7) { width: 8%; }
    #paymentsView .transactions-table th:nth-child(8),
    #paymentsView .transactions-table td:nth-child(8) { width: 17%; }
    #paymentsView .transactions-table th:nth-child(9),
    #paymentsView .transactions-table td:nth-child(9) { width: 14%; }
    #paymentsView .transactions-table td {
        min-width: 0;
        overflow-wrap: anywhere;
    }
    #paymentsView .transactions-table td:nth-child(1),
    #paymentsView .transactions-table td:nth-child(5),
    #paymentsView .transactions-table td:nth-child(8) {
        white-space: normal;
        overflow-wrap: anywhere;
    }
    #paymentsView .transactions-table td:nth-child(4),
    #paymentsView .transactions-table td:nth-child(6),
    #paymentsView .transactions-table td:nth-child(7) {
        white-space: nowrap;
    }
    #paymentsView .transactions-table td:nth-child(9) .receipt-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 7px 9px;
        font-size: 0.82rem;
        line-height: 1.2;
        max-width: 100%;
    }

    #transactionsView .transactions-table th,
    #paymentsView .transactions-table th,
    #settingsView .transactions-table th,
    #usersView .user-table th {
        white-space: nowrap;
    }

    #transactionsView .transactions-table td,
    #paymentsView .transactions-table td,
    #settingsView .transactions-table td,
    #usersView .user-table td {
        vertical-align: middle;
    }

    #transactionsView .transactions-table td:last-child .receipt-btn,
    #paymentsView .transactions-table td:last-child .receipt-btn,
    #settingsView .transactions-table td:last-child .btn-secondary {
        white-space: nowrap;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    body.dashboard {
        overflow-x: hidden;
    }
    .dashboard-container {
        flex-direction: column;
        max-width: 100%;
    }
    .sidebar {
        width: 100%;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        border-right: none;
        border-top: none;
        background: transparent;
        box-shadow: none;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    }
    .sidebar-header,
    .sidebar-footer {
        display: none;
    }
    .sidebar-nav {
        flex: none;
        padding: 0;
    }
    .mobile-only-nav {
        display: block;
    }
    .sidebar-nav ul {
        position: relative;
        display: block;
        height: 76px;
        overflow: hidden;
        padding: 4px 6px;
        border-radius: 14px;
        background: #ffffff;
        border: 1px solid #dcd3d2;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    }
    .sidebar-nav ul::before {
        content: none;
    }
    .sidebar-nav ul li {
        margin: 0;
        position: absolute;
        top: 4px;
        left: 50%;
        width: clamp(82px, 28vw, 108px);
        transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease, filter 0.26s ease;
        z-index: 1;
        transform: translateX(calc(-50% + var(--nav-shift, 0px))) scale(0.85);
        opacity: 0;
        filter: blur(0.4px);
    }
    .sidebar-nav ul li a {
        border-left: none;
        border-radius: 11px;
        width: 100%;
        min-height: 66px;
        padding: 8px 4px 7px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-size: 0.68rem;
        line-height: 1.2;
        color: #5d6d7e;
        background: #f8f4f3;
    }
    .sidebar-nav ul li a i {
        margin-right: 0;
        font-size: 0.98rem;
        width: auto;
        color: inherit;
    }
    .sidebar-nav ul li.nav-pos-center {
        z-index: 4;
        opacity: 1;
        filter: none;
        transform: translateX(calc(-50% + var(--nav-shift, 0px))) scale(1);
    }
    .sidebar-nav ul li.nav-pos-left,
    .sidebar-nav ul li.nav-pos-right {
        z-index: 3;
        opacity: 0.92;
        filter: none;
        transform: translateX(calc(-50% + var(--nav-shift, 0px))) scale(0.92);
    }
    .sidebar-nav ul li.nav-pos-far-left,
    .sidebar-nav ul li.nav-pos-far-right {
        z-index: 2;
        opacity: 0.4;
        filter: blur(0.3px);
        transform: translateX(calc(-50% + var(--nav-shift, 0px))) scale(0.82);
    }
    .sidebar-nav ul li.nav-hidden {
        z-index: 1;
        opacity: 0;
        pointer-events: none;
    }
    .sidebar-nav ul li.nav-pos-center a {
        background: #2c3e50;
        color: #ffffff;
    }
    .sidebar-nav ul li.nav-pos-center.mobile-only-nav a {
        background: #991b1b;
        color: #ffffff;
    }
    .sidebar-nav ul li.mobile-only-nav a {
        color: #b91c1c;
        background: #fff1f2;
    }
    .sidebar-nav ul li.nav-pos-center a i {
        animation: mobileNavIconSpin 0.32s ease;
        color: inherit;
    }
    .main-content {
        padding: 16px 14px 98px;
        max-width: 100%;
        overflow-x: hidden;
    }
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 18px;
        padding-bottom: 12px;
    }
    .header-left h1 {
        font-size: 1.7rem;
        line-height: 1.2;
    }
    .header-right {
        width: 100%;
        max-width: 100%;
    }
    .header-right .user-info {
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
        padding: 8px 12px;
    }
    .header-right .user-info #userEmail {
        display: block;
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .balance-card {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px 16px;
        border-radius: 14px;
    }
    .balance-info h2 {
        font-size: 2rem;
    }
    .direct-pay-info {
        padding: 12px;
        margin-bottom: 18px;
    }
    .promo-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .promo-side {
        width: 100%;
        min-width: 0;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    .promo-countdown {
        text-align: left;
    }
    .promo-dots {
        width: 100%;
        justify-content: flex-start;
    }
    .menu-shortcut-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .menu-shortcut-card {
        min-height: 84px;
        padding: 8px 6px;
    }
    .menu-shortcut-card i {
        font-size: 1.05rem;
    }
    .menu-shortcut-card span {
        font-size: 0.75rem;
    }
    .shortcut-flow-body {
        grid-template-columns: 1fr;
    }
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-header {
        align-items: stretch;
        flex-direction: column;
    }
    .product-browser {
        grid-template-columns: 1fr;
    }
    .product-filters {
        grid-template-columns: 1fr;
    }
    .checkout-account-grid {
        grid-template-columns: 1fr;
    }
    .account-card {
        align-items: flex-start;
        flex-direction: column;
    }
    .admin-section-header {
        flex-direction: column;
    }
    .admin-transaction-filters input[type="search"] {
        min-width: 100%;
    }
    .admin-pagination {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 8px;
        justify-content: stretch;
    }
    .admin-pagination .btn-secondary {
        width: 100%;
        min-width: 0;
        padding: 8px 10px;
        white-space: nowrap;
    }
    .admin-pagination .btn-secondary:first-child {
        justify-self: stretch;
    }
    .admin-pagination .btn-secondary:last-child {
        justify-self: stretch;
    }
    .admin-pagination span {
        min-width: 0;
        text-align: center;
        white-space: nowrap;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Riwayat user: ubah tabel jadi kartu agar tidak pecah di mobile */
    #historySection .transactions-table,
    #historySection .transactions-table tbody,
    #historySection .transactions-table tr,
    #historySection .transactions-table td {
        display: block;
        width: 100%;
    }
    #historySection .transactions-table thead {
        display: none;
    }
    #historySection .transactions-table tbody tr {
        border: 1px solid #e9e1e0;
        border-radius: 12px;
        background: #f9f5f4;
        padding: 10px 12px;
        margin-bottom: 10px;
    }
    #historySection .transactions-table tbody td {
        border: none;
        padding: 6px 0;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
        color: #2c3e50;
    }
    #historySection .transactions-table tbody td::before {
        content: attr(data-label);
        color: #7f8c8d;
        font-weight: 600;
        font-size: 0.82rem;
        flex: 0 0 72px;
    }
    #historySection .transactions-table .tx-date,
    #historySection .transactions-table .tx-amount {
        white-space: nowrap;
    }
    #historySection .transactions-table .tx-product {
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: left;
    }
    #historySection .transactions-table .tx-product::before {
        text-align: left;
    }
    #historySection .transactions-table .tx-status .status {
        margin-left: auto;
    }
    #historySection .transactions-table .tx-action .receipt-btn {
        margin-left: auto;
        padding: 7px 10px;
        border-radius: 8px;
    }

    /* Produk admin: ubah tabel jadi kartu agar kolom tidak kepotong */
    #productsSection .transactions-table,
    #productsSection .transactions-table tbody,
    #productsSection .transactions-table tr,
    #productsSection .transactions-table td {
        display: block;
        width: 100%;
    }
    #productsSection .transactions-table thead {
        display: none;
    }
    #productsSection .transactions-table tbody tr {
        border: 1px solid #e9e1e0;
        border-radius: 12px;
        background: #fff;
        padding: 10px 12px;
        margin-bottom: 10px;
    }
    #productsSection .transactions-table tbody td {
        border: none;
        padding: 6px 0;
        display: grid;
        grid-template-columns: 96px 1fr;
        gap: 8px;
        align-items: start;
        color: #2c3e50;
        overflow-wrap: anywhere;
    }
    #productsSection .transactions-table tbody td::before {
        content: attr(data-label);
        color: #7f8c8d;
        font-weight: 600;
        font-size: 0.82rem;
    }
    #productsSection .transactions-table tbody td .status,
    #productsSection .transactions-table tbody td .receipt-btn {
        justify-self: start;
    }

    /* Transaksi admin: ubah tabel jadi kartu agar rapi di mobile */
    #transactionsView .transactions-table,
    #transactionsView .transactions-table tbody,
    #transactionsView .transactions-table tr,
    #transactionsView .transactions-table td {
        display: block !important;
        width: 100% !important;
    }
    #transactionsView .transactions-table thead {
        display: none;
    }
    #transactionsView .transactions-table tbody tr {
        border: 1px solid #e9e1e0;
        border-radius: 12px;
        background: #fff;
        padding: 10px 12px;
        margin-bottom: 10px;
    }
    #transactionsView .transactions-table tbody td {
        border: none;
        padding: 6px 0;
        display: grid !important;
        grid-template-columns: 96px 1fr;
        gap: 8px;
        align-items: start;
        color: #2c3e50;
        overflow-wrap: anywhere;
    }
    #transactionsView .transactions-table tbody td::before {
        content: attr(data-label);
        color: #7f8c8d;
        font-weight: 600;
        font-size: 0.82rem;
    }
    #transactionsView .transactions-table tbody td .status,
    #transactionsView .transactions-table tbody td .receipt-btn {
        justify-self: start;
    }
    #transactionsView .recent-transactions {
        overflow-x: hidden;
    }

    /* Pembayaran admin: ubah tabel jadi kartu agar rapi di mobile */
    #paymentsView .transactions-table,
    #paymentsView .transactions-table tbody,
    #paymentsView .transactions-table tr,
    #paymentsView .transactions-table td {
        display: block !important;
        width: 100% !important;
    }
    #paymentsView .transactions-table thead {
        display: none;
    }
    #paymentsView .transactions-table tbody tr {
        border: 1px solid #e9e1e0;
        border-radius: 12px;
        background: #fff;
        padding: 10px 12px;
        margin-bottom: 10px;
    }
    #paymentsView .transactions-table tbody td {
        border: none;
        padding: 6px 0;
        display: grid !important;
        grid-template-columns: 96px 1fr;
        gap: 8px;
        align-items: start;
        color: #2c3e50;
        overflow-wrap: anywhere;
    }
    #paymentsView .transactions-table tbody td::before {
        content: attr(data-label);
        color: #7f8c8d;
        font-weight: 600;
        font-size: 0.82rem;
    }
    #paymentsView .transactions-table tbody td .status,
    #paymentsView .transactions-table tbody td .receipt-btn {
        justify-self: start;
    }
    #paymentsView .recent-transactions {
        overflow-x: hidden;
    }

    /* Pengguna admin: ubah tabel jadi kartu agar rapi di mobile */
    #usersView .user-table,
    #usersView .user-table tbody,
    #usersView .user-table tr,
    #usersView .user-table td {
        display: block !important;
        width: 100% !important;
    }
    #usersView .user-table thead {
        display: none;
    }
    #usersView .user-table tbody tr {
        border: 1px solid #e9e1e0;
        border-radius: 12px;
        background: #fff;
        padding: 10px 12px;
        margin-bottom: 10px;
    }
    #usersView .user-table tbody td {
        border: none;
        padding: 6px 0;
        display: grid !important;
        grid-template-columns: 80px 1fr;
        gap: 8px;
        align-items: start;
        color: #2c3e50;
        overflow-wrap: anywhere;
    }
    #usersView .user-table tbody td::before {
        content: attr(data-label);
        color: #7f8c8d;
        font-weight: 600;
        font-size: 0.82rem;
    }
    #usersView .user-list {
        overflow-x: hidden;
    }

    /* Setting admin: form full-width + tabel backup mode kartu */
    #settingsView .admin-pricing-config {
        flex-direction: column;
        align-items: stretch;
    }
    #settingsView .admin-pricing-config .form-group {
        min-width: 0;
        width: 100%;
    }
    #settingsView .admin-pricing-config .btn-primary,
    #settingsView .admin-pricing-config .btn-secondary {
        width: 100%;
    }
    #settingsView .transactions-table,
    #settingsView .transactions-table tbody,
    #settingsView .transactions-table tr,
    #settingsView .transactions-table td {
        display: block !important;
        width: 100% !important;
    }
    #settingsView .transactions-table thead {
        display: none;
    }
    #settingsView .transactions-table tbody tr {
        border: 1px solid #e9e1e0;
        border-radius: 12px;
        background: #fff;
        padding: 10px 12px;
        margin-bottom: 10px;
    }
    #settingsView .transactions-table tbody td {
        border: none;
        padding: 6px 0;
        display: grid !important;
        grid-template-columns: 108px 1fr;
        gap: 8px;
        align-items: start;
        color: #2c3e50;
        overflow-wrap: anywhere;
    }
    #settingsView .transactions-table tbody td::before {
        content: attr(data-label);
        color: #7f8c8d;
        font-weight: 600;
        font-size: 0.82rem;
    }
    #settingsView .admin-products,
    #settingsView .recent-transactions {
        overflow-x: hidden;
    }
}
/* ===== About Section ===== */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 15px;
    color: #34495e;
    line-height: 1.8;
}

.about-text strong {
    color: #2c3e50;
}

.about-stats {
    flex: 1;
    min-width: 250px;
    background-color: #f9f5f4;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #dcd3d2;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-item i {
    font-size: 2.2rem;
    color: #7f8c8d;
    width: 50px;
    text-align: center;
}

.stat-item h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    line-height: 1.2;
}

.stat-item p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 14px;
    }

    .navbar {
        padding: 10px 0;
    }

    .navbar .container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .navbar-brand h2 {
        font-size: 1.9rem;
        line-height: 1.1;
        white-space: nowrap;
    }

    .navbar-menu {
        display: flex;
        align-items: center;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .navbar-menu::-webkit-scrollbar {
        display: none;
    }

    .navbar-menu a {
        margin-left: 0;
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 7px 10px;
        border-radius: 999px;
        border: 1px solid #dfd6d5;
        background: #f9f5f4;
        font-size: 0.88rem;
    }

    .navbar-menu a:hover {
        background: #efe7e6;
    }

    .navbar-menu .btn-login {
        order: -1;
        margin-left: 0;
        padding: 7px 14px;
        border-color: #2c3e50;
        background-color: #2c3e50;
        color: white !important;
    }

    .about-content {
        flex-direction: column;
    }
}
