/* ============================================
   Portal Pelanggan — Mobile First Design
   ============================================ */

:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg: #f1f5f9;
    --surface: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.12);
    --header-h: 72px;
    --nav-h: 68px;
    --sidebar-text: rgba(255, 255, 255, 0.75);
    --sidebar-text-active: #ffffff;
    --sidebar-hover: rgba(255, 255, 255, 0.12);
    --sidebar-border: rgba(255, 255, 255, 0.12);
    --sidebar-active-bg: rgba(255, 255, 255, 0.18);
}

* {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

/* ========== Login Page ========== */

.login-page {
    min-height: 100dvh;
    background: #f8fafc;
}

.login-wrapper {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.login-panel {
    display: none;
}

.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.1), 0 4px 16px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.login-card-brand {
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-card-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.75rem 0 0.35rem;
    color: var(--text);
}

.login-card-brand p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.logo-frame--card {
    width: 100%;
    max-width: 200px;
    height: 72px;
    margin: 0 auto;
}

.logo-frame--card-mobile {
    display: flex;
}

.logo-frame--card-mobile .brand-logo-sm {
    mix-blend-mode: normal;
    filter: none;
}

.brand-logo-sm {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.logo-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
}

.logo-frame--mobile {
    width: 100%;
    max-width: 200px;
    height: 72px;
    margin: 0 auto 0.75rem;
}

.logo-frame--panel {
    width: 100%;
    max-width: 200px;
    height: 64px;
    margin: 0 0 2rem;
    background: transparent;
}

.logo-blend {
    mix-blend-mode: screen;
}

.logo-frame--sidebar {
    width: 100%;
    max-width: 180px;
    height: 64px;
    margin: 0 auto;
}

.logo-frame img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.captcha-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.captcha-image-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.captcha-img {
    flex: 1;
    height: 56px;
    width: 100%;
    max-width: 305px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: #f8fafc;
    cursor: pointer;
    object-fit: fill;
}

.btn-captcha-refresh {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--primary);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-captcha-refresh:hover {
    background: #eff6ff;
    border-color: var(--primary-light);
    color: var(--primary-dark);
}

.captcha-input {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.captcha-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}


.login-input-wrap {
    position: relative;
}

.login-input-wrap i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    z-index: 2;
}

.login-input-wrap .form-control {
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input-wrap .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.btn-login {
    padding: 0.9rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    border: none;
    transition: transform 0.15s, box-shadow 0.2s;
    letter-spacing: 0.02em;
}

.btn-login:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.35);
}

.btn-login:active {
    transform: translateY(0);
}

.login-help {
    margin-top: 1.5rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.login-help i {
    color: var(--primary);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .login-wrapper {
        flex-direction: row;
    }

    .login-panel {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 48%;
        max-width: 560px;
        min-height: 100dvh;
        background: linear-gradient(160deg, #9a9da2 0%, #1e3a8a 45%, #5b3838 100%);
        color: #fff;
        padding: 3rem 2.5rem;
        position: relative;
        overflow: hidden;
    }

    .login-panel::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.2) 0%, transparent 40%);
        pointer-events: none;
    }

    .login-panel-inner {
        position: relative;
        z-index: 1;
    }

    .login-panel-logo {
        height: 64px;
        width: auto;
        max-width: 200px;
        object-fit: contain;
    }

    .login-main {
        flex: 1;
        background: #f8fafc;
        align-items: center;
        padding: 2rem;
    }

    .login-card {
        padding: 2rem 2.25rem;
        margin: 0 auto;
    }

    .login-card-brand .logo-frame--card-mobile {
        display: none;
    }

    .login-card-brand h1 {
        margin-top: 0;
    }

    .login-panel-title {
        font-size: 1.75rem;
        font-weight: 700;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .login-panel-desc {
        font-size: 0.95rem;
        opacity: 0.85;
        line-height: 1.7;
        margin-bottom: 2rem;
    }

    .login-features {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .login-features li {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.65rem 0;
        font-size: 0.9rem;
        opacity: 0.9;
    }

    .login-features i {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
    }

    .login-panel-footer {
        position: relative;
        z-index: 1;
        opacity: 0.6;
        font-size: 0.8rem;
    }
}

/* ========== Payment Page ========== */

.payment-page {
    min-height: 100dvh;
    background: var(--bg);
}

.payment-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
}

.payment-header-title {
    font-weight: 600;
    font-size: 1rem;
}

.btn-payment-back {
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.15s;
}

.btn-payment-back:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.payment-main {
    max-width: 520px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
}

.payment-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.payment-total {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

/* ========== In-App Payment (Professional) ========== */

.pay-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.pay-loading p {
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.pay-wrapper {
    max-width: 480px;
    margin: 0 auto;
}

.pay-hero {
    text-align: center;
    padding: 1.75rem 1.25rem 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(145deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    border-radius: var(--radius);
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    position: relative;
    overflow: hidden;
}

.pay-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.pay-hero-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    font-size: 1.25rem;
}

.pay-hero-label {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pay-hero-amount {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.pay-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.pay-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.pay-status-badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.pay-status-badge.pending {
    background: rgba(251, 191, 36, 0.25);
    color: #fef3c7;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.pay-status-badge.waiting {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.pay-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.pay-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.pay-card-title i {
    color: var(--primary);
}

.pay-card-empty {
    text-align: center;
    padding: 2rem 1.25rem;
}

.pay-empty-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 50%;
    font-size: 1.5rem;
}

.pay-card-empty h5 {
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.pay-card-empty p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.pay-card-detail {
    padding: 0.75rem 1rem;
}

.pay-card-detail .icon-detail-list li {
    padding: 0.5rem 0;
}

.pay-method-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.pay-copy-box {
    margin-bottom: 0.875rem;
}

.pay-copy-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.pay-copy-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
}

.pay-copy-row code {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.04em;
    word-break: break-all;
    background: none;
}

.btn-copy {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--primary);
    cursor: pointer;
    transition: all 0.15s;
}

.btn-copy:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pay-qr-frame {
    text-align: center;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}

.pay-qr-frame p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.pay-qr-frame img {
    max-width: 220px;
    border-radius: 12px;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pay-expired {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem;
    background: #fef3c7;
    color: #92400e;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.75rem;
}

.pay-steps {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.pay-steps h6 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pay-steps ol {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.pay-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.btn-pay-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(135deg, #059669, #10b981);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-pay-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
    color: #fff;
}

.btn-pay-primary:disabled {
    opacity: 0.7;
    transform: none;
}

.btn-pay-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s;
}

.btn-pay-secondary:hover {
    background: #f8fafc;
}

.btn-back-tagihan {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-decoration: none;
}

.btn-back-tagihan:hover {
    color: var(--primary);
}

.pay-detail-collapse {
    margin-bottom: 0.5rem;
}

.pay-detail-collapse summary {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.pay-detail-collapse summary::-webkit-details-marker {
    display: none;
}

.pay-detail-collapse summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.pay-detail-collapse[open] summary::after {
    transform: rotate(180deg);
}

.section-header--flow {
    gap: 0.75rem;
}

.section-header--flow h2 {
    flex: 1;
    text-align: center;
    margin-right: 2.25rem;
}

.btn-flow-back {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ========== Fluid Flow Pages (Payment & Detail) ========== */

.flow-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.flow-loading p {
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.flow-page {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.flow-hero {
    background: linear-gradient(145deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 1.25rem 1.125rem 1.125rem;
    margin-bottom: 0;
}

.flow-hero--paid {
    background: linear-gradient(145deg, #065f46 0%, #059669 55%, #10b981 100%);
}

.flow-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.875rem;
}

.flow-invoice {
    font-size: 0.8rem;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.flow-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.flow-status--pending {
    background: rgba(251, 191, 36, 0.22);
    color: #fef3c7;
    border: 1px solid rgba(251, 191, 36, 0.45);
}

.flow-status--waiting {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.flow-status-spinner {
    width: 0.75rem;
    height: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fef3c7;
    border-radius: 50%;
    animation: flowSpin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes flowSpin {
    to {
        transform: rotate(360deg);
    }
}

.flow-amount-label {
    font-size: 0.75rem;
    opacity: 0.85;
    margin: 0 0 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.flow-amount {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.flow-meta {
    font-size: 0.8rem;
    opacity: 0.9;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.flow-page--stacked {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 0.875rem;
    border: 1px solid var(--border);
    background: var(--surface);
}

.flow-page--stacked .flow-hero {
    border-radius: 0;
    margin-bottom: 0;
}

.flow-page--stacked .flow-section--card {
    background: var(--surface);
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
    padding: 1.125rem 1.25rem;
    margin-bottom: 0;
    box-shadow: none;
}

.flow-page--stacked.flow-page--paid {
    border-color: #a7f3d0;
}

.flow-page--stacked.flow-page--paid .flow-section--card {
    border-top-color: #d1fae5;
}

.flow-page--stacked.flow-page--unpaid {
    border-color: #bfdbfe;
}

.flow-page--stacked.flow-page--unpaid .flow-section--card {
    border-top-color: #dbeafe;
}

.flow-page--stacked.flow-page--service {
    border-color: #bfdbfe;
}

.flow-page--stacked.flow-page--service .flow-section--card {
    border-top-color: #dbeafe;
}

.flow-page--stacked.flow-page--wifi {
    border-color: #a5f3fc;
}

.flow-page--stacked.flow-page--wifi .flow-section--card {
    border-top-color: #cffafe;
}

.flow-page--stacked.flow-page--ticket {
    border-color: #ddd6fe;
}

.flow-page--stacked.flow-page--ticket .flow-section--card {
    border-top-color: #ede9fe;
}

.flow-section--toggle {
    padding: 0 !important;
}

.flow-section--empty-inner {
    text-align: center;
    padding: 0.5rem 0;
}

.flow-section--empty-inner .pay-empty-icon {
    margin-bottom: 0.75rem;
}

.flow-section--empty-inner h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.flow-section--empty-inner p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.flow-section {
    padding: 1.125rem 0;
    border-bottom: 1px solid var(--border);
}

.flow-section:last-of-type {
    border-bottom: none;
}

.flow-section--empty {
    text-align: center;
    padding: 1.5rem 0;
}

.flow-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.875rem;
}

.flow-section-title i {
    color: var(--primary);
    font-size: 0.85rem;
}

.flow-section .icon-detail-list li {
    padding: 0.625rem 0;
}

.flow-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.875rem;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.875rem;
}

.flow-copy {
    margin-bottom: 0.75rem;
}

.flow-copy-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.flow-copy-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.875rem;
    background: #f8fafc;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
}

.flow-copy-row code {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    word-break: break-all;
    background: none;
}

.flow-qr {
    text-align: center;
    padding: 1rem 0;
}

.flow-qr p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.flow-qr img {
    max-width: 200px;
    border-radius: 12px;
    border: 3px solid var(--border);
}

.flow-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.75rem 0 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.flow-steps {
    margin: 0.875rem 0 0;
    padding-left: 1.15rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.flow-empty-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 50%;
    font-size: 1.15rem;
}

.flow-section--empty p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.flow-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 1rem 0 0.5rem;
}

.btn-flow-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.flow-amount--sm {
    font-size: 1.15rem;
    font-weight: 700;
}

.flow-hero--service {
    background: linear-gradient(145deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
}

.flow-hero--wifi {
    background: linear-gradient(145deg, #0e7490 0%, #0891b2 55%, #06b6d4 100%);
}

.flow-hero--ticket {
    background: linear-gradient(145deg, #6d28d9 0%, #7c3aed 55%, #8b5cf6 100%);
}

.flow-desc-box {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text);
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
}

.flow-section--form {
    border-bottom: none;
}

.flow-form .flow-section--form {
    padding-top: 0;
}

/* ========== Payment Page ========== */

.pay-inline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--border);
}

.pay-inline-actions.row {
    display: flex;
    flex-wrap: wrap;
}

.pay-page {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.pay-page>.flow-actions {
    margin-top: 0;
}

.pay-page>.flow-actions+.flow-actions {
    margin-top: 0.625rem;
}

.pay-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.pay-panel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.pay-panel-title i {
    color: var(--primary);
    font-size: 0.85rem;
}

.pay-method-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pay-va-block {
    margin-bottom: 1rem;
}

.pay-va-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.pay-va-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.75rem;
}

.pay-va-code {
    flex: 1;
    min-width: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: 0.03em;
    word-break: break-all;
    background: none;
}

.pay-va-copy {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.15s;
}

.pay-va-copy:hover {
    background: var(--primary-dark);
}

.pay-qr-block {
    text-align: center;
    padding: 0.75rem 0 1rem;
    border-top: 1px dashed var(--border);
    margin-top: 0.25rem;
}

.pay-qr-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.pay-qr-block img {
    max-width: 180px;
    border-radius: 12px;
    border: 3px solid var(--border);
}

.pay-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: #9a3412;
    margin-bottom: 1rem;
}

.pay-timer i {
    flex-shrink: 0;
}

.pay-guide {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pay-guide li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.pay-guide li span {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
}

.pay-empty-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 50%;
    font-size: 1.15rem;
}

.pay-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.pay-panel .icon-detail-list li {
    padding: 0.625rem 0;
}

.pay-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.25rem;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    transition: background 0.15s;
}

.pay-toggle-btn:hover {
    background: #f8fafc;
}

.pay-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pay-toggle-label i {
    color: var(--primary);
}

.pay-toggle-chevron {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.pay-toggle-btn[aria-expanded="true"] .pay-toggle-chevron {
    transform: rotate(180deg);
}

.pay-detail-content {
    padding: 0 1.25rem 1.125rem;
    border-top: 1px solid var(--border);
}

.flow-section--panduan .pay-panel-head {
    margin-bottom: 0.875rem;
}

.pay-panduan-accordion {
    --bs-accordion-border-color: var(--border);
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-active-bg: #eff6ff;
    --bs-accordion-active-color: var(--text);
    border-radius: 0.75rem;
    overflow: hidden;
}

.pay-panduan-item {
    border: none;
    border-bottom: 1px solid var(--border);
}

.pay-panduan-item:last-child {
    border-bottom: none;
}

.pay-panduan-accordion .accordion-button {
    padding: 0.875rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    background: #fff;
    box-shadow: none;
}

.pay-panduan-accordion .accordion-button:not(.collapsed) {
    color: var(--primary);
}

.pay-panduan-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.pay-panduan-icon {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    background: #eff6ff;
    color: var(--primary);
    flex-shrink: 0;
}

.pay-panduan-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.pay-panduan-name {
    line-height: 1.3;
}

.pay-panduan-group {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pay-panduan-steps {
    margin: 0;
    padding-left: 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.pay-panduan-steps li {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.pay-panduan-steps li b,
.pay-panduan-steps li strong {
    color: var(--text);
    font-weight: 700;
}

.pay-panduan-hint {
    margin: 0 0 0.875rem;
    padding: 0.75rem 0.875rem;
    border-radius: 0.625rem;
    background: #eff6ff;
    color: #1e40af;
    font-size: 0.8rem;
    line-height: 1.5;
}

.pay-panduan-hint i {
    margin-right: 0.35rem;
}

/* ========== Toast Centered ========== */

.app-toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1100;
    padding: 0;
    pointer-events: none;
}

.app-toast-container .toast {
    pointer-events: auto;
    min-width: 220px;
    max-width: min(90vw, 320px);
    box-shadow: var(--shadow-lg);
}

.paid-badge-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.flow-hero .badge-status {
    font-size: 0.72rem;
}

.paid-banner {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    background: #d1fae5;
    color: #065f46;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.paid-banner i {
    font-size: 0.85rem;
}

#page-payment .section-header h2,
#page-tagihan-detail .section-header h2,
#page-layanan-detail .section-header h2,
#page-tiket-detail .section-header h2,
#page-tiket-new .section-header h2,
#page-wifi-settings .section-header h2 {
    flex: 1;
    text-align: center;
    margin-right: 2.25rem;
}

.payment-pending-box {
    margin-bottom: 0.5rem;
}

.payment-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.payment-section-title i {
    color: var(--primary);
}

.payment-pending-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.payment-expired-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.75rem;
}

.icon-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.icon-detail-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.icon-detail-list li:last-child {
    border-bottom: none;
}

.icon-detail-list li.highlight {
    padding-top: 0.875rem;
    margin-top: 0.25rem;
    border-top: 2px solid var(--border);
    border-bottom: none;
}

.icon-detail-list li.highlight .icon-list-value {
    font-size: 1.05rem;
    color: var(--primary);
}

.icon-list-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 8px;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.icon-list-label {
    flex: 1;
    color: var(--text-muted);
    min-width: 0;
}

.icon-list-value {
    font-weight: 600;
    text-align: right;
    word-break: break-word;
    max-width: 55%;
}

.channel-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem;
}

.channel-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
}

.channel-list-item:hover,
.channel-list-item.selected {
    border-color: var(--primary);
    background: #eff6ff;
}

.channel-list-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: var(--primary);
    border-radius: 10px;
    flex-shrink: 0;
    font-size: 1rem;
}

.channel-list-item.selected .channel-list-icon {
    background: var(--primary);
    color: #fff;
}

.channel-list-body {
    flex: 1;
    min-width: 0;
}

.channel-list-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.channel-list-fee {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.channel-list-arrow {
    color: var(--text-muted);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.layanan-detail-header .badge-status {
    display: inline-block;
}

/* ========== Custom Alerts ========== */

.app-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    line-height: 1.5;
    border: 1px solid transparent;
    margin-bottom: 0.75rem;
}

.app-alert-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.app-alert-body {
    flex: 1;
    font-weight: 500;
}

.app-alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.app-alert-danger .app-alert-icon {
    color: #dc2626;
}

.app-alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.app-alert-success .app-alert-icon {
    color: #059669;
}

.app-alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.app-alert-warning .app-alert-icon {
    color: #d97706;
}

.app-alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.app-alert-info .app-alert-icon {
    color: #2563eb;
}

.modal-body .app-alert:last-child {
    margin-bottom: 0;
}

/* ========== App Layout ========== */

.app-body {
    min-height: 100dvh;
    padding-bottom: calc(var(--nav-h) + var(--safe-bottom));
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 1rem 1.25rem;
    padding-top: max(1rem, env(safe-area-inset-top));
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 0.25rem;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.greeting {
    font-size: 0.75rem;
    opacity: 0.85;
    margin: 0;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.btn-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.15s;
}

.btn-header-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.app-main {
    width: 100%;
    padding: 1rem 1.25rem 1.5rem;
}

.app-main.container-fluid {
    max-width: 100%;
}

.page-section {
    display: none;
    animation: fadeIn 0.25s ease;
}

.page-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.section-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 1.25rem 0 0.75rem;
    color: var(--text);
}

.welcome-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 1rem 1.125rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.welcome-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.welcome-label {
    font-size: 0.7rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.welcome-info strong {
    font-size: 0.85rem;
    font-weight: 600;
    word-break: break-word;
}

.info-card-highlight {
    background: rgba(253, 224, 71, 0.5);
    border-left: 4px solid #eab308;
    border-color: rgba(234, 179, 8, 0.35);
}

.info-card-text {
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.6;
}

.stat-value-sm {
    font-size: 1rem !important;
}

@media (max-width: 576px) {
    .welcome-card {
        grid-template-columns: 1fr;
    }
}

/* ========== Bottom Navigation ========== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--nav-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0.5rem 0.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    transition: color 0.15s;
    cursor: pointer;
}

.nav-item i {
    font-size: 1.25rem;
    transition: transform 0.15s;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active i {
    transform: scale(1.1);
}

/* ========== Cards ========== */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-card .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.stat-card .stat-body {
    min-width: 0;
    flex: 1;
}

.stat-card .stat-icon.blue {
    background: #dbeafe;
    color: var(--primary);
}

.stat-card .stat-icon.green {
    background: #d1fae5;
    color: var(--success);
}

.stat-card .stat-icon.orange {
    background: #fef3c7;
    color: var(--warning);
}

.stat-card .stat-icon.red {
    background: #fee2e2;
    color: var(--danger);
}

.stat-card .stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.15rem;
}

.stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.info-card {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 1rem 1.125rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 0.75rem;
    transition: transform 0.15s, box-shadow 0.15s;
}

.info-card.clickable {
    cursor: pointer;
}

@media (max-width: 991.98px) {

    .page-list,
    #dashboardContent {
        padding-bottom: calc(var(--nav-h) + 0.75rem);
    }

    .page-list .info-card.clickable:last-child,
    #dashboardContent .info-card.clickable:last-child {
        margin-bottom: 0.5rem;
    }

    #page-payment,
    #page-tagihan-detail,
    #page-layanan-detail,
    #page-tiket-detail,
    #page-tiket-new,
    #page-wifi-settings {
        padding-bottom: calc(var(--nav-h) + 0.75rem);
    }

    .flow-amount {
        font-size: 1.45rem;
    }

    .flow-hero {
        padding: 1.125rem 1rem;
    }

    .flow-actions {
        padding-bottom: 0.25rem;
    }
}

.info-card.clickable:active {
    transform: scale(0.98);
}

.info-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.info-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}

.info-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.info-card-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.badge-status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3em 0.65em;
    border-radius: 6px;
    white-space: nowrap;
}

.badge-status.unpaid {
    background: #fef3c7;
    color: #92400e;
}

.badge-status.paid {
    background: #d1fae5;
    color: #065f46;
}

.badge-status.expired {
    background: #fee2e2;
    color: #991b1b;
}

.badge-status.active {
    background: #dbeafe;
    color: #1e40af;
}

.badge-status.suspended {
    background: #fee2e2;
    color: #991b1b;
}

.badge-status.unknown {
    background: #f1f5f9;
    color: #64748b;
}

.badge-status.open {
    background: #dbeafe;
    color: #1e40af;
}

.badge-status.closed {
    background: #f1f5f9;
    color: #64748b;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    gap: 1rem;
}

.detail-list li:last-child {
    border-bottom: none;
}

.detail-list .label {
    color: var(--text-muted);
    flex-shrink: 0;
}

.detail-list .value {
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 1rem;
    display: block;
}

.empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* ========== Skeleton Loader ========== */

.skeleton-loader {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skeleton-card {
    height: 100px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    border-radius: var(--radius-sm);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ========== Payment Section ========== */

.payment-channels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
}

.channel-btn {
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.channel-btn:hover,
.channel-btn.selected {
    border-color: var(--primary);
    background: #eff6ff;
    color: var(--primary);
}

.channel-group {
    margin-bottom: 1rem;
}

.channel-group-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.history-group {
    margin-bottom: 1.5rem;
}

.history-group-header {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 0.75rem;
}

.history-group-header strong {
    font-size: 0.95rem;
}

.bank-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
    margin-bottom: 0.5rem;
}

.bank-card strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.bank-account {
    font-family: monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.bank-owner {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.qr-container {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}

.qr-container img {
    max-width: 200px;
    border-radius: 8px;
}

/* ========== Tiket Chat ========== */

.ticket-replies {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
    max-height: 300px;
    overflow-y: auto;
}

.reply-bubble {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    max-width: 85%;
}

.reply-bubble.admin {
    background: #f1f5f9;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.reply-bubble.client {
    background: #dbeafe;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.reply-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ========== WiFi Form ========== */

.wifi-band-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.wifi-band-tabs .btn {
    flex: 1;
}

/* ========== Desktop Enhancements ========== */

@media (min-width: 768px) {
    .login-card {
        padding: 2.5rem 2rem;
    }

    .stat-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .bottom-nav {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--radius) var(--radius) 0 0;
        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
    }

    .app-main {
        padding: 1.5rem;
    }

    .payment-channels {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== Desktop Layout ========== */

.app-layout {
    min-height: 100dvh;
}

.desktop-sidebar {
    display: none;
}

@media (min-width: 992px) {
    .app-body {
        padding-bottom: 0;
    }

    .app-layout {
        display: flex;
    }

    .desktop-sidebar {
        display: flex;
        flex-direction: column;
        width: 260px;
        min-height: 100dvh;
        background: linear-gradient(135deg, var(--primary-dark), var(--primary));
        border-right: 1px solid var(--sidebar-border);
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 200;
        box-shadow: 4px 0 24px rgba(30, 58, 138, 0.25);
    }

    .sidebar-brand {
        padding: 1.5rem 1.25rem;
        border-bottom: 1px solid var(--sidebar-border);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        text-align: center;
    }

    .sidebar-logo {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .sidebar-logo-fallback {
        width: 56px;
        height: 56px;
        background: linear-gradient(135deg, var(--primary), var(--accent));
        border-radius: 14px;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 1.5rem;
    }

    .sidebar-title {
        font-weight: 700;
        font-size: 0.95rem;
        color: var(--sidebar-text-active);
        line-height: 1.3;
    }

    .sidebar-nav {
        flex: 1;
        padding: 1rem 0.75rem;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        overflow-y: auto;
    }

    .sidebar-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        padding: 0.75rem 1rem;
        border: none;
        background: none;
        border-radius: var(--radius-sm);
        color: var(--sidebar-text);
        font-size: 0.9rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.15s;
        text-align: left;
    }

    .sidebar-item i {
        font-size: 1.15rem;
        width: 24px;
        text-align: center;
    }

    .sidebar-item:hover {
        background: var(--sidebar-hover);
        color: var(--sidebar-text-active);
    }

    .sidebar-item.active {
        background: var(--sidebar-active-bg);
        color: var(--sidebar-text-active);
    }

    .sidebar-footer {
        padding: 1rem 0.75rem;
        border-top: 1px solid var(--sidebar-border);
    }

    .sidebar-logout {
        color: #fca5a5;
    }

    .sidebar-logout:hover {
        background: rgba(239, 68, 68, 0.15);
        color: #f87171;
    }

    .app-content {
        flex: 1;
        margin-left: 260px;
        min-width: 0;
        width: calc(100% - 260px);
    }

    .bottom-nav {
        display: none;
    }

    .app-header {
        padding: 1rem 1.5rem;
    }

    .app-main {
        padding: 1.25rem 1.5rem 2rem;
    }
}