/* ==========================================================================
   SIGAB - Tagihan Corporate Design System (Harmonized Corporate Theme)
   PT. Bontang Migas Dan Energi
   Brand Colors:
   - Primary Corporate Navy: #2e3285
   - Secondary Cerulean Blue: #269fee
   - Natural Energy Green: #5c9c4c
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
    /* Corporate Brand Palette */
    --brand-primary: #2e3285;
    --brand-primary-dark: #1e2266;
    --brand-secondary: #269fee;
    --brand-accent: #54b4f5;
    --brand-light-blue: #f0f7ff;
    --brand-green: #5c9c4c;
    --brand-green-dark: #15803d;
    --brand-green-light: #f0fdf4;
    --brand-orange: #f97316;
    --danger-color: #dc2626;
    --danger-light: #fef2f2;
    --danger-border: #fecaca;

    /* Solid Colors */
    --brand-gradient: #2e3285;
    --accent-gradient: #269fee;
    --green-gradient: #15803d;

    /* Surface & White Background */
    --surface-bg: #f4f7fb;
    --surface-card: #ffffff;
    --surface-card-border: #e2e8f0;
    --surface-tile: #f8fafc;
    --surface-tile-border: #e2e8f0;

    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-on-accent: #ffffff;

    /* Shadows */
    --card-shadow: 0 10px 30px -5px rgba(46, 50, 133, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --card-shadow-hover: 0 20px 35px -5px rgba(46, 50, 133, 0.14), 0 10px 15px -3px rgba(0, 0, 0, 0.05);

    /* Radii */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Global Body & Harmonized Light Background ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f4f7fb;
    background-image: none;
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Header Branding (Logo Ring, Title & Subtitle)
   ========================================================================== */
.header-branding {
    padding: 2.2rem 0 1.2rem;
    text-align: center;
}

.logo-ring {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    padding: 4px;
    border-radius: 50%;
    background: #ffffff;
    border: 5px solid #22b8cf;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.25);
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    padding: 0;
}

.brand-title, .profile-name {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #0f172a;
    margin-bottom: 2px;
}

.brand-subtitle, .profile-desc {
    font-size: 0.88rem;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.2px;
    margin-bottom: 0;
}

/* ==========================================================================
   Cards & Layout
   ========================================================================== */
.main-card, .invoice-card, .payment-voucher-card {
    background: var(--surface-card);
    border: 1px solid var(--surface-card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
    transition: all var(--transition-base);
}

.main-card:hover, .invoice-card:hover, .payment-voucher-card:hover {
    box-shadow: var(--card-shadow-hover);
}

/* Integrated Hero Header inside Main Card */
.integrated-hero-header {
    background: #2e3285;
    padding: 30px 24px 24px;
    color: #ffffff;
    text-align: center;
    position: relative;
}

.integrated-hero-header .logo-ring {
    width: 74px;
    height: 74px;
    margin: 0 auto 12px;
    padding: 4px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.integrated-hero-header .brand-title {
    color: #ffffff;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 3px;
}

.card-accent-strip {
    height: 5px;
    background: #2e3285;
    width: 100%;
}

.card-header-corporate {
    background: #2e3285;
    padding: 24px 24px 20px;
    color: #ffffff;
    text-align: center;
    border-bottom: none;
}

.card-header-custom {
    background: #ffffff;
    padding: 26px 28px 10px;
    border-bottom: none;
}

.card-header-custom h5 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 800;
    color: var(--brand-primary);
    font-size: 1.4rem;
    letter-spacing: -0.3px;
}

.card-body-custom {
    padding: 15px 28px 28px;
}

/* ==========================================================================
   Form Inputs & Buttons
   ========================================================================== */
.custom-input-group {
    position: relative;
    border-radius: var(--radius-full);
}

.custom-input-group .input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--brand-secondary);
    z-index: 5;
    pointer-events: none;
    transition: color var(--transition-fast);
}

.form-control-custom {
    border-radius: var(--radius-full) !important;
    padding: 15px 22px 15px 54px !important;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
    border: 2px solid #cbd5e1;
    background-color: #f8fafc;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.form-control-custom:focus {
    background-color: #ffffff;
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 4px rgba(38, 159, 238, 0.18);
}

.form-select-custom {
    border-radius: var(--radius-full) !important;
    padding: 12px 36px 12px 18px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    border: 2px solid #cbd5e1 !important;
    background-color: #f8fafc !important;
    color: var(--text-primary) !important;
    height: auto !important;
    min-height: 52px !important;
    line-height: 1.5 !important;
    transition: all var(--transition-base);
    cursor: pointer;
}

.form-select-custom:focus {
    background-color: #ffffff !important;
    border-color: var(--brand-secondary) !important;
    box-shadow: 0 0 0 4px rgba(38, 159, 238, 0.18) !important;
}


.btn-primary-gradient {
    background: #2e3285;
    border: none;
    border-radius: var(--radius-full);
    padding: 14px 28px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(46, 50, 133, 0.28);
    transition: all var(--transition-base);
}

.btn-primary-gradient:hover {
    background: #1e2266;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(46, 50, 133, 0.38);
    color: #ffffff;
}

.btn-pill {
    border-radius: var(--radius-full);
}

/* ==========================================================================
   Partners Section (Beranda)
   ========================================================================== */
.partner-section-title {
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--text-muted);
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-section-title::before,
.partner-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #cbd5e1;
}

.partner-section-title span {
    padding: 0 16px;
    background: transparent;
}

.partner-card-modern {
    background: #ffffff;
    border: 1px solid var(--surface-card-border);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.partner-card-modern:hover {
    transform: translateY(-5px);
    border-color: var(--brand-secondary);
    box-shadow: 0 12px 24px rgba(38, 159, 238, 0.18);
}

.partner-card-modern .img-partner {
    max-height: 48px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 8px;
    transition: transform var(--transition-fast);
}

.partner-card-modern:hover .img-partner {
    transform: scale(1.08);
}

.partner-card-modern .partner-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin: 0;
}

/* ==========================================================================
   Result / Invoice Card
   ========================================================================== */
/* Solid Color Headers & Highlights */
.invoice-header-modern {
    background: #2e3285;
    color: #ffffff;
    padding: 24px 28px;
    position: relative;
}

.invoice-header-modern .badge-status {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 5px 14px;
    border-radius: var(--radius-full);
}

.section-badge-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--brand-primary);
    background: var(--brand-light-blue);
    border: 1px solid rgba(46, 50, 133, 0.15);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.info-tile {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    height: 100%;
    transition: all var(--transition-fast);
}

.info-tile:hover {
    background: #ffffff;
    border-color: var(--brand-secondary);
    box-shadow: 0 6px 16px rgba(38, 159, 238, 0.1);
}

.info-tile-label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-tile-value {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    word-break: break-word;
}

/* Meter Box Cards */
.meter-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 14px 12px;
    text-align: center;
    position: relative;
    transition: transform var(--transition-fast);
}

.meter-card:hover {
    transform: translateY(-2px);
}

.meter-card .meter-label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.meter-card .meter-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-primary);
}

.meter-card-success {
    background: var(--brand-green-light);
    border-color: #bbf7d0;
}

.meter-card-success .meter-label {
    color: var(--brand-green-dark);
}

.meter-card-success .meter-val {
    color: var(--brand-green-dark);
}

/* Breakdown Line */
.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.breakdown-row .breakdown-val {
    font-weight: 700;
    color: var(--text-primary);
}

.breakdown-divider {
    border-top: 1px dashed #cbd5e1;
    margin: 12px 0 16px;
}

/* Total Pay Box (Solid Corporate Navy) */
.total-pay-box {
    background: #2e3285;
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 8px 24px rgba(46, 50, 133, 0.28);
    margin: 20px 0;
    position: relative;
}

.total-pay-box .total-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.92;
    margin-bottom: 4px;
}

.total-pay-box .total-number {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

/* Status Page Navigation Switch Tabs */
.nav-tab-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 9999px;
    text-decoration: none;
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-tab-pill:hover {
    background: #f1f5f9;
    color: var(--brand-primary);
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.nav-tab-pill.active {
    background: #2e3285;
    color: #ffffff !important;
    border-color: #2e3285;
    box-shadow: 0 4px 14px rgba(46, 50, 133, 0.3);
}

.nav-tab-pill.active:hover {
    background: #23276b;
    border-color: #23276b;
    color: #ffffff !important;
}

/* Payment Method Cards Differentiation */
.payment-choice-card {
    border-radius: var(--radius-md);
    padding: 18px 16px;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-base);
    position: relative;
    cursor: pointer;
}

.payment-choice-card:hover .method-icon-wrap {
    transform: scale(1.08);
}

.payment-choice-card .method-details h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.02rem;
    margin-bottom: 3px;
}

.payment-choice-card .method-details p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

/* Virtual Account Card Style (Solid Corporate Navy Theme) */
.payment-choice-card.va {
    border: 2px solid #2e3285;
    background: #ffffff;
}

.payment-choice-card.va .method-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #2e3285;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(46, 50, 133, 0.25);
    transition: transform var(--transition-fast);
}

.payment-choice-card.va .method-details h6 {
    color: #2e3285;
}

.payment-choice-card.va .badge-rec {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    background: #2e3285;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.payment-choice-card.va .chevron-icon {
    color: #2e3285;
    font-size: 1.25rem;
    transition: transform var(--transition-fast);
}

.payment-choice-card.va:hover {
    background: #f4f6fd;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(46, 50, 133, 0.22);
}

.payment-choice-card.va:hover .chevron-icon {
    transform: translateX(3px);
}

/* QRIS Payment Card Style (Solid Natural Green Energy Theme) */
.payment-choice-card.qris {
    border: 2px solid #15803d;
    background: #ffffff;
}

.payment-choice-card.qris .method-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #15803d;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
    transition: transform var(--transition-fast);
}

.payment-choice-card.qris .method-details h6 {
    color: #15803d;
}

.payment-choice-card.qris .badge-rec {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    background: #15803d;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.payment-choice-card.qris .chevron-icon {
    color: #15803d;
    font-size: 1.25rem;
    transition: transform var(--transition-fast);
}

.payment-choice-card.qris:hover {
    background: #f2fcf5;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(21, 128, 61, 0.22);
}

.payment-choice-card.qris:hover .chevron-icon {
    transform: translateX(3px);
}

/* ==========================================================================
   VA & QRIS Vouchers
   ========================================================================== */
.voucher-header {
    padding: 24px 28px;
    background: var(--brand-gradient);
    color: #ffffff;
    text-align: center;
}

.va-box-highlight {
    background: var(--brand-light-blue);
    border: 2px dashed var(--brand-secondary);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
    margin: 18px 0;
    position: relative;
}

.va-number-display {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--brand-primary);
    margin-bottom: 8px;
    word-break: break-all;
}

.btn-copy-action {
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.qr-code-wrapper {
    display: inline-block;
    padding: 16px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
    position: relative;
}

.qr-code-wrapper svg,
.qr-code-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}

.expiry-badge {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.voucher-details-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.voucher-total-row {
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.25);
}

.voucher-total-row .total-title,
.voucher-total-row .total-val,
.voucher-total-row .btn-copy-total {
    color: #15803d;
}

/* Accordion Steps */
.accordion-instructions .accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md) !important;
    margin-bottom: 10px;
    overflow: hidden;
    background: #ffffff;
}

.accordion-instructions .accordion-button {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--brand-primary);
    background: #f8fafc;
    padding: 14px 18px;
}

.accordion-instructions .accordion-button:not(.collapsed) {
    background: var(--brand-light-blue);
    color: var(--brand-primary);
    box-shadow: none;
}

.accordion-instructions .accordion-body {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 16px 20px;
}

.step-num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--brand-primary);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-content-custom {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.18);
}

.modal-header-custom {
    background: var(--brand-gradient);
    color: #ffffff;
    padding: 20px 24px;
    border-bottom: none;
}

.modal-header-custom .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.modal-header-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary) !important;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.modal-header-icon-wrap.qris {
    color: var(--brand-green-dark) !important;
}

.voucher-header-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary) !important;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.voucher-header-icon-wrap.qris {
    color: var(--brand-green-dark) !important;
}

/* Error / System Alert Components */
.error-icon-wrap {
    width: 76px;
    height: 76px;
    background: rgba(220, 38, 38, 0.08);
    border: 2px solid rgba(220, 38, 38, 0.2);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.12);
    color: #dc2626;
    font-size: 2.2rem;
}

.error-title {
    color: #0f172a;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.error-msg-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

/* Badge Optional / Subtle */
.badge-optional {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.instruction-step:last-child {
    margin-bottom: 0;
}

.step-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand-light-blue);
    color: var(--brand-primary);
    font-weight: 800;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    padding-top: 2px;
}

/* Toast Copy Feedback */
.copy-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0f172a;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Footer Corporate */
.footer-corporate {
    margin-top: auto;
    padding: 24px 0 20px;
    text-align: center;
}

.footer-corporate p {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.2px;
    margin: 0;
}

.footer-corporate a {
    color: var(--brand-primary);
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-corporate a:hover {
    color: var(--brand-secondary);
    text-decoration: underline;
}

/* Back to Home Button Hover */
.btn-back-home {
    color: var(--brand-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 6px 12px;
    border-radius: var(--radius-full);
}

.btn-back-home:hover {
    color: #ffffff !important;
    background: var(--brand-primary);
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* Responsive tweaks for Mobile View */
@media (max-width: 576px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .header-branding {
        padding: 1.2rem 0 0.6rem;
    }

    .brand-title, .profile-name {
        font-size: 22px;
        letter-spacing: 1.5px;
    }

    .brand-subtitle, .profile-desc {
        font-size: 0.8rem;
    }

    .logo-ring {
        width: 68px;
        height: 68px;
        margin-bottom: 10px;
    }

    .main-card, 
    .invoice-card, 
    .payment-voucher-card {
        border-radius: 20px;
        margin-bottom: 16px;
    }

    .card-header-custom,
    .invoice-header-modern,
    .voucher-header {
        padding: 16px 16px;
    }
    
    .card-body-custom,
    .invoice-card .card-body,
    .payment-voucher-card .card-body {
        padding: 16px 14px 20px;
    }

    .partner-section-title {
        font-size: 0.72rem;
        margin: 8px 0;
        padding: 0 12px;
    }

    .section-badge-title {
        font-size: 0.72rem;
        padding: 4px 10px;
        margin-bottom: 10px;
    }

    /* Customer Info Tiles on Mobile */
    .info-tile {
        padding: 10px 12px;
        border-radius: 12px;
    }

    .info-tile-label {
        font-size: 0.7rem;
        margin-bottom: 2px;
    }

    .info-tile-value {
        font-size: 0.92rem;
    }

    .info-tile-value.fs-5 {
        font-size: 1.05rem !important;
    }

    /* Meter Reading Cards on Mobile */
    .meter-card {
        padding: 10px 4px;
        border-radius: 12px;
    }

    .meter-card .meter-label {
        font-size: 0.66rem;
        letter-spacing: 0;
        margin-bottom: 2px;
    }

    .meter-card .meter-val {
        font-size: 0.98rem;
    }

    /* Breakdown Rows on Mobile */
    .breakdown-row {
        padding: 6px 0;
        font-size: 0.86rem;
    }

    .breakdown-row .breakdown-val {
        font-size: 0.9rem;
    }

    /* Total Payment Box on Mobile */
    .total-pay-box {
        padding: 15px 16px;
        margin: 14px 0;
        border-radius: 14px;
    }

    .total-pay-box .total-label {
        font-size: 0.74rem;
        letter-spacing: 0.5px;
    }

    .total-pay-box .total-number {
        font-size: 1.8rem;
    }

    /* Payment Choice Cards on Mobile */
    .payment-choice-card {
        padding: 12px 14px;
        gap: 12px;
        border-radius: 14px;
    }

    .payment-choice-card.va .method-icon-wrap,
    .payment-choice-card.qris .method-icon-wrap {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
        border-radius: 12px;
    }

    .payment-choice-card .method-details h6 {
        font-size: 0.92rem;
        margin-bottom: 2px;
    }

    .payment-choice-card .method-details p {
        font-size: 0.73rem;
        line-height: 1.3;
    }

    .payment-choice-card .badge-rec {
        font-size: 0.62rem;
        padding: 2px 7px;
    }

    /* Virtual Account Display on Mobile */
    .va-number-display {
        font-size: 1.25rem;
        letter-spacing: 2px;
    }

    /* Partner Cards on Mobile */
    .partner-card-modern {
        padding: 10px 6px;
        border-radius: 12px;
    }

    .partner-card-modern .img-partner {
        max-height: 38px;
    }

    .partner-card-modern .partner-name {
        font-size: 0.74rem;
    }

    /* Form Inputs on Mobile */
    .form-control-custom {
        font-size: 1rem !important;
        padding: 12px 16px 12px 46px !important;
    }

    .custom-input-group .input-icon {
        left: 16px;
        font-size: 1.1rem;
    }

    /* Instructions / Steps on Mobile */
    .instruction-step {
        font-size: 0.8rem;
        gap: 10px;
        margin-bottom: 8px;
    }

    .instruction-step .step-circle {
        width: 22px;
        height: 22px;
        font-size: 0.72rem;
    }
}

/* ==========================================================================
   SweetAlert2 Theme Customization (SIGAB Theme)
   ========================================================================== */
.swal2-container {
    z-index: 99999 !important;
}

.swal2-popup {
    border-radius: 20px !important;
    padding: 2.2rem 1.8rem !important;
    font-family: 'Inter', sans-serif !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16) !important;
    max-width: 440px !important;
    width: 90% !important;
}

.swal2-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.35rem !important;
    color: #0f172a !important;
    margin-top: 0.6rem !important;
    margin-bottom: 0.2rem !important;
}

.swal2-html-container {
    color: #64748b !important;
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
    margin-top: 0.5rem !important;
    margin-bottom: 1.2rem !important;
}

.swal2-actions {
    margin-top: 1.2rem !important;
    gap: 8px !important;
}

.swal2-confirm {
    background-color: #2e3285 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 10px 26px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 4px 14px rgba(46, 50, 133, 0.28) !important;
    transition: all 0.2s ease !important;
}

.swal2-confirm:hover {
    background-color: #1e2266 !important;
    box-shadow: 0 6px 18px rgba(46, 50, 133, 0.38) !important;
    transform: translateY(-1px) !important;
}

.swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(46, 50, 133, 0.3) !important;
}

.swal2-icon.swal2-success {
    border-color: #16a34a !important;
    color: #16a34a !important;
    margin: 0.5rem auto 0.5rem auto !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #16a34a !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(22, 163, 74, 0.3) !important;
}

.swal2-icon.swal2-error {
    border-color: #dc2626 !important;
    color: #dc2626 !important;
    margin: 0.5rem auto 0.5rem auto !important;
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #dc2626 !important;
}

/* ==========================================================================
   Floating Theme Switcher (Light & Dark Mode)
   ========================================================================== */
.theme-toggle-wrapper {
    position: fixed;
    top: 14px;
    right: 18px;
    z-index: 1030;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s;
}

/* Sembunyikan floating button saat modal popup atau alert sedang terbuka agar tidak menutupi tombol close */
body.modal-open .theme-toggle-wrapper,
body.swal2-shown .theme-toggle-wrapper {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-8px) scale(0.95);
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(203, 213, 225, 0.8);
    color: #1e293b;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    outline: none;
}

.theme-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    border-color: #269fee;
    color: #269fee;
}

.theme-toggle-btn .theme-icon-light {
    color: #f59e0b;
    font-size: 0.95rem;
}

.theme-toggle-btn .theme-icon-dark {
    color: #38bdf8;
    font-size: 0.92rem;
}

/* Floating Theme Toast Notification Pill (Bottom Center) */
.theme-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(12px) scale(0.95);
    z-index: 1080;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

[data-bs-theme="dark"] .theme-toast,
[data-theme="dark"] .theme-toast,
body.dark-theme .theme-toast {
    background: rgba(30, 41, 59, 0.95) !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55) !important;
    color: #f8fafc !important;
}

/* ==========================================================================
   Dark Theme Design Tokens & Component Overrides (Harmonized Color Palette)
   ========================================================================== */
[data-bs-theme="dark"],
[data-theme="dark"],
body.dark-theme {
    --surface-bg: #0b0f19;
    --surface-card: #151d2e;
    --surface-card-border: #243048;
    --surface-tile: #1a2438;
    --surface-tile-border: #2d3c59;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --brand-primary: #38bdf8;
    --brand-primary-dark: #0284c7;
    --brand-secondary: #38bdf8;
    --brand-light-blue: #1e293b;
    --brand-green: #4ade80;
    --brand-green-light: #064e3b;

    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.35);
    --card-shadow-hover: 0 20px 35px -5px rgba(0, 0, 0, 0.7), 0 10px 15px -3px rgba(0, 0, 0, 0.45);
}

[data-bs-theme="dark"] body,
[data-theme="dark"] body,
body.dark-theme {
    background-color: #0b0f19 !important;
    color: #f8fafc !important;
}

/* Dark Mode Theme Toggle Button */
[data-bs-theme="dark"] .theme-toggle-btn,
[data-theme="dark"] .theme-toggle-btn,
body.dark-theme .theme-toggle-btn {
    background: rgba(21, 29, 46, 0.92);
    border-color: rgba(51, 65, 85, 0.9);
    color: #f1f5f9;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

[data-bs-theme="dark"] .theme-toggle-btn:hover,
[data-theme="dark"] .theme-toggle-btn:hover,
body.dark-theme .theme-toggle-btn:hover {
    border-color: #38bdf8;
    color: #38bdf8;
}

/* Dark Mode: Cards, Headers & Layout */
[data-bs-theme="dark"] .main-card,
[data-bs-theme="dark"] .invoice-card,
[data-bs-theme="dark"] .payment-voucher-card,
[data-theme="dark"] .main-card,
[data-theme="dark"] .invoice-card,
[data-theme="dark"] .payment-voucher-card {
    background: #151d2e !important;
    border-color: #243048 !important;
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .integrated-hero-header,
[data-bs-theme="dark"] .card-header-corporate,
[data-theme="dark"] .integrated-hero-header,
[data-theme="dark"] .card-header-corporate {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border-bottom: 1px solid #243048 !important;
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .card-accent-strip,
[data-theme="dark"] .card-accent-strip {
    background: linear-gradient(90deg, #38bdf8 0%, #2563eb 100%) !important;
}

[data-bs-theme="dark"] .logo-ring,
[data-theme="dark"] .logo-ring {
    background: #ffffff !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.28) !important;
}

[data-bs-theme="dark"] .profile-logo,
[data-theme="dark"] .profile-logo {
    background: #ffffff !important;
}

[data-bs-theme="dark"] .brand-title,
[data-bs-theme="dark"] .profile-name,
[data-theme="dark"] .brand-title,
[data-theme="dark"] .profile-name {
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .brand-subtitle,
[data-bs-theme="dark"] .profile-desc,
[data-theme="dark"] .brand-subtitle,
[data-theme="dark"] .profile-desc {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .card-header-custom,
[data-theme="dark"] .card-header-custom {
    background: #151d2e !important;
    border-color: #243048 !important;
}

[data-bs-theme="dark"] .partner-section-title,
[data-theme="dark"] .partner-section-title {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .partner-section-title span,
[data-theme="dark"] .partner-section-title span {
    background: transparent !important;
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .partner-section-title::before,
[data-bs-theme="dark"] .partner-section-title::after,
[data-theme="dark"] .partner-section-title::before,
[data-theme="dark"] .partner-section-title::after {
    background: #2d3c59 !important;
}

[data-bs-theme="dark"] .card-footer,
[data-theme="dark"] .card-footer {
    background-color: #101623 !important;
    border-color: #243048 !important;
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .btn-back-home,
[data-theme="dark"] .btn-back-home {
    color: #38bdf8 !important;
}

[data-bs-theme="dark"] .btn-back-home:hover,
[data-theme="dark"] .btn-back-home:hover {
    color: #7dd3fc !important;
}

/* Dark Mode: Vibrant Primary & Action Buttons */
[data-bs-theme="dark"] .btn-primary-gradient,
[data-theme="dark"] .btn-primary-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.4) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-primary-gradient:hover,
[data-theme="dark"] .btn-primary-gradient:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.55) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-outline-primary,
[data-theme="dark"] .btn-outline-primary {
    color: #38bdf8 !important;
    border-color: #38bdf8 !important;
}

[data-bs-theme="dark"] .btn-outline-primary:hover,
[data-theme="dark"] .btn-outline-primary:hover {
    background-color: #38bdf8 !important;
    color: #0b0f19 !important;
}

[data-bs-theme="dark"] .btn-outline-success,
[data-theme="dark"] .btn-outline-success {
    color: #4ade80 !important;
    border-color: #4ade80 !important;
}

[data-bs-theme="dark"] .btn-outline-success:hover,
[data-theme="dark"] .btn-outline-success:hover {
    background-color: #4ade80 !important;
    color: #0b0f19 !important;
}

/* Dark Mode: Global Text & Form Labels */
[data-bs-theme="dark"] .text-dark,
[data-theme="dark"] .text-dark,
body.dark-theme .text-dark {
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .form-label,
[data-theme="dark"] .form-label,
body.dark-theme .form-label {
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .section-badge-title,
[data-theme="dark"] .section-badge-title {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.12) !important;
    border-color: rgba(56, 189, 248, 0.25) !important;
}

/* Dark Mode: Inputs & Selects */
[data-bs-theme="dark"] .form-control-custom,
[data-bs-theme="dark"] .form-select-custom,
[data-theme="dark"] .form-control-custom,
[data-theme="dark"] .form-select-custom {
    background-color: #1a2438 !important;
    border-color: #2d3c59 !important;
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .form-control-custom:focus,
[data-bs-theme="dark"] .form-select-custom:focus,
[data-theme="dark"] .form-control-custom:focus,
[data-theme="dark"] .form-select-custom:focus {
    background-color: #1e293b !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.22) !important;
}

[data-bs-theme="dark"] .form-select-custom option,
[data-theme="dark"] .form-select-custom option {
    background-color: #151d2e !important;
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .input-group-text,
[data-theme="dark"] .input-group-text {
    background-color: #1a2438 !important;
    border-color: #2d3c59 !important;
    color: #94a3b8 !important;
}

/* Dark Mode: Info Tiles, Meter Readings & Breakdown */
[data-bs-theme="dark"] .info-tile,
[data-theme="dark"] .info-tile {
    background: #1a2438 !important;
    border-color: #2d3c59 !important;
}

[data-bs-theme="dark"] .info-tile-label,
[data-theme="dark"] .info-tile-label {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .info-tile-value,
[data-theme="dark"] .info-tile-value {
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .meter-card,
[data-theme="dark"] .meter-card {
    background: #1a2438 !important;
    border-color: #2d3c59 !important;
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .meter-card .meter-label,
[data-theme="dark"] .meter-card .meter-label {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .meter-card .meter-val,
[data-theme="dark"] .meter-card .meter-val {
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .meter-card-success,
[data-theme="dark"] .meter-card-success {
    background: rgba(34, 197, 94, 0.12) !important;
    border-color: rgba(34, 197, 94, 0.35) !important;
}

[data-bs-theme="dark"] .meter-card-success .meter-val,
[data-theme="dark"] .meter-card-success .meter-val {
    color: #4ade80 !important;
}

[data-bs-theme="dark"] .breakdown-row,
[data-theme="dark"] .breakdown-row {
    border-color: #243048 !important;
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .breakdown-val,
[data-theme="dark"] .breakdown-val {
    color: #f8fafc !important;
}

/* Dark Mode: Total Pay Box */
[data-bs-theme="dark"] .total-pay-box,
[data-theme="dark"] .total-pay-box {
    background: linear-gradient(135deg, #131c2e 0%, #1e293b 100%) !important;
    border: 1px solid #2d3c59 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

[data-bs-theme="dark"] .total-pay-box .total-label,
[data-theme="dark"] .total-pay-box .total-label {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .total-pay-box .total-amount,
[data-theme="dark"] .total-pay-box .total-amount {
    color: #60a5fa !important;
}

/* Dark Mode: Payment Choices & Partner Cards */
[data-bs-theme="dark"] .payment-choice-card,
[data-theme="dark"] .payment-choice-card {
    background: #1a2438 !important;
    border-color: #2d3c59 !important;
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .payment-choice-card h6,
[data-theme="dark"] .payment-choice-card h6 {
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .payment-choice-card p,
[data-theme="dark"] .payment-choice-card p {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .payment-choice-card:hover,
[data-theme="dark"] .payment-choice-card:hover {
    background: #1e293b !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

[data-bs-theme="dark"] .partner-card-modern,
[data-theme="dark"] .partner-card-modern {
    background: #151d2e !important;
    border: 1px solid #243048 !important;
}

[data-bs-theme="dark"] .partner-card-modern:hover,
[data-theme="dark"] .partner-card-modern:hover {
    background: #1a2438 !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-bs-theme="dark"] .partner-card-modern .img-partner,
[data-theme="dark"] .partner-card-modern .img-partner {
    background: #ffffff !important;
    border-radius: 8px !important;
    padding: 3px 6px !important;
}

[data-bs-theme="dark"] .partner-card-modern .partner-name,
[data-theme="dark"] .partner-card-modern .partner-name {
    color: #cbd5e1 !important;
}

/* Dark Mode: Modals & Accordions */
[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] .modal-content-custom,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .modal-content-custom {
    background: #151d2e !important;
    color: #f8fafc !important;
    border-color: #243048 !important;
}

[data-bs-theme="dark"] .modal-body,
[data-theme="dark"] .modal-body {
    background: #151d2e !important;
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .modal-header,
[data-theme="dark"] .modal-header {
    border-color: #243048 !important;
}

[data-bs-theme="dark"] .modal-footer,
[data-theme="dark"] .modal-footer {
    background: #101623 !important;
    border-color: #243048 !important;
}

[data-bs-theme="dark"] .modal-header .btn-close,
[data-theme="dark"] .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

[data-bs-theme="dark"] .instruction-step .step-text,
[data-theme="dark"] .instruction-step .step-text {
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .instruction-step .step-circle,
[data-theme="dark"] .instruction-step .step-circle {
    background: #2563eb !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .accordion-item,
[data-theme="dark"] .accordion-item {
    background: #1a2438 !important;
    border-color: #2d3c59 !important;
}

[data-bs-theme="dark"] .accordion-button,
[data-theme="dark"] .accordion-button {
    background: #1a2438 !important;
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .accordion-button:not(.collapsed),
[data-theme="dark"] .accordion-button:not(.collapsed) {
    background: #1e293b !important;
    color: #38bdf8 !important;
}

[data-bs-theme="dark"] .accordion-body,
[data-theme="dark"] .accordion-body {
    background: #151d2e !important;
    color: #cbd5e1 !important;
}

/* Dark Mode: Tables & Receipt Cards */
[data-bs-theme="dark"] #tableVaMonthly,
[data-theme="dark"] #tableVaMonthly {
    color: #f8fafc !important;
    border-color: #243048 !important;
}

[data-bs-theme="dark"] #tableVaMonthly thead.table-light th,
[data-theme="dark"] #tableVaMonthly thead.table-light th {
    background-color: #1a2438 !important;
    color: #cbd5e1 !important;
    border-color: #243048 !important;
}

[data-bs-theme="dark"] #tableVaMonthly tbody td,
[data-theme="dark"] #tableVaMonthly tbody td {
    border-color: #243048 !important;
}

[data-bs-theme="dark"] #tableVaMonthly tbody tr:hover,
[data-theme="dark"] #tableVaMonthly tbody tr:hover {
    background-color: #1e293b !important;
}

[data-bs-theme="dark"] #receiptArea,
[data-bs-theme="dark"] #receiptAreaVA,
[data-theme="dark"] #receiptArea,
[data-theme="dark"] #receiptAreaVA {
    background: #1a2438 !important;
    color: #f8fafc !important;
    border-color: #22c55e !important;
}

[data-bs-theme="dark"] #receiptArea .border-bottom,
[data-bs-theme="dark"] #receiptAreaVA .border-bottom,
[data-theme="dark"] #receiptArea .border-bottom,
[data-theme="dark"] #receiptAreaVA .border-bottom {
    border-color: #2d3c59 !important;
}

[data-bs-theme="dark"] #receiptArea .bg-light,
[data-bs-theme="dark"] #receiptAreaVA .bg-light,
[data-theme="dark"] #receiptArea .bg-light,
[data-theme="dark"] #receiptAreaVA .bg-light {
    background: #151d2e !important;
}

[data-bs-theme="dark"] #monthlyListCardVA > div,
[data-theme="dark"] #monthlyListCardVA > div {
    background: #151d2e !important;
    border-color: #243048 !important;
}

/* Dark Mode: Badges */
[data-bs-theme="dark"] .badge.bg-success,
[data-theme="dark"] .badge.bg-success {
    background-color: rgba(34, 197, 94, 0.2) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(34, 197, 94, 0.35) !important;
}

[data-bs-theme="dark"] .badge.bg-danger,
[data-theme="dark"] .badge.bg-danger {
    background-color: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
}

[data-bs-theme="dark"] .badge.bg-warning,
[data-theme="dark"] .badge.bg-warning {
    background-color: rgba(234, 179, 8, 0.2) !important;
    color: #facc15 !important;
    border: 1px solid rgba(234, 179, 8, 0.35) !important;
}

[data-bs-theme="dark"] .badge.bg-primary,
[data-theme="dark"] .badge.bg-primary {
    background-color: rgba(59, 130, 246, 0.2) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.35) !important;
}

/* Dark Mode: SweetAlert */
[data-bs-theme="dark"] .swal2-popup,
[data-theme="dark"] .swal2-popup,
body.dark-theme .swal2-popup {
    background: #151d2e !important;
    border-color: #243048 !important;
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .swal2-title,
[data-theme="dark"] .swal2-title,
body.dark-theme .swal2-title {
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .swal2-html-container,
[data-theme="dark"] .swal2-html-container,
body.dark-theme .swal2-html-container {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .swal2-confirm,
[data-theme="dark"] .swal2-confirm {
    background-color: #2563eb !important;
}

[data-bs-theme="dark"] .swal2-confirm:hover,
[data-theme="dark"] .swal2-confirm:hover {
    background-color: #1d4ed8 !important;
}

/* Dark Mode: Vouchers & Transaction Boxes */
[data-bs-theme="dark"] .voucher-details-box,
[data-theme="dark"] .voucher-details-box {
    background: #1a2438 !important;
    border-color: #2d3c59 !important;
}

[data-bs-theme="dark"] .voucher-details-box .border-bottom,
[data-theme="dark"] .voucher-details-box .border-bottom {
    border-color: #2d3c59 !important;
}

[data-bs-theme="dark"] .voucher-total-row,
[data-theme="dark"] .voucher-total-row {
    background: rgba(34, 197, 94, 0.15) !important;
    border-color: rgba(34, 197, 94, 0.35) !important;
}

[data-bs-theme="dark"] .voucher-total-row .total-title,
[data-bs-theme="dark"] .voucher-total-row .total-val,
[data-bs-theme="dark"] .voucher-total-row .btn-copy-total,
[data-theme="dark"] .voucher-total-row .total-title,
[data-theme="dark"] .voucher-total-row .total-val,
[data-theme="dark"] .voucher-total-row .btn-copy-total {
    color: #4ade80 !important;
}

[data-bs-theme="dark"] .qr-code-wrapper,
[data-theme="dark"] .qr-code-wrapper {
    background: #ffffff !important;
    border-color: #2d3c59 !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45) !important;
}

[data-bs-theme="dark"] .expiry-badge,
[data-theme="dark"] .expiry-badge {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #f87171 !important;
}

[data-bs-theme="dark"] .va-box-highlight,
[data-theme="dark"] .va-box-highlight {
    background: #1a2438 !important;
    border-color: #38bdf8 !important;
}

[data-bs-theme="dark"] .va-number-display,
[data-theme="dark"] .va-number-display {
    color: #38bdf8 !important;
}

/* Dark Mode: Toast & Footer */
[data-bs-theme="dark"] .copy-toast,
[data-theme="dark"] .copy-toast {
    background: rgba(15, 23, 42, 0.95) !important;
    color: #f8fafc !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

[data-bs-theme="dark"] .footer-corporate,
[data-theme="dark"] .footer-corporate,
body.dark-theme .footer-corporate {
    background: #080c14 !important;
    border-top: 1px solid #1e293b !important;
    color: #94a3b8 !important;
}

/* Dark Mode: Error & System Alert Page */
[data-bs-theme="dark"] .error-icon-wrap,
[data-theme="dark"] .error-icon-wrap {
    background: rgba(239, 68, 68, 0.16) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.25) !important;
    color: #f87171 !important;
}

[data-bs-theme="dark"] .error-title,
[data-theme="dark"] .error-title {
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .error-msg-box,
[data-theme="dark"] .error-msg-box {
    background: #1a2438 !important;
    border-color: #2d3c59 !important;
    color: #cbd5e1 !important;
}

/* Dark Mode: Partner Modal */
[data-bs-theme="dark"] #partnerImageModal .modal-content,
[data-bs-theme="dark"] #partnerImageModal .modal-header,
[data-bs-theme="dark"] #partnerImageModal .modal-body,
[data-theme="dark"] #partnerImageModal .modal-content,
[data-theme="dark"] #partnerImageModal .modal-header,
[data-theme="dark"] #partnerImageModal .modal-body {
    background: #151d2e !important;
    color: #f8fafc !important;
}

[data-bs-theme="dark"] #partnerImageTitle,
[data-theme="dark"] #partnerImageTitle {
    color: #f8fafc !important;
}

[data-bs-theme="dark"] #partnerModalIcon,
[data-theme="dark"] #partnerModalIcon {
    border-color: #2d3c59 !important;
    background: #ffffff !important;
}

[data-bs-theme="dark"] #partnerZoomWrapper,
[data-theme="dark"] #partnerZoomWrapper {
    border-color: #2d3c59 !important;
    background: #0f172a !important;
}

/* Dark Mode: Navigation Tab Pills */
[data-bs-theme="dark"] .nav-tab-pill,
[data-theme="dark"] .nav-tab-pill,
body.dark-theme .nav-tab-pill {
    background: #1a2438 !important;
    color: #94a3b8 !important;
    border-color: #2d3c59 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

[data-bs-theme="dark"] .nav-tab-pill:hover,
[data-theme="dark"] .nav-tab-pill:hover,
body.dark-theme .nav-tab-pill:hover {
    background: #243048 !important;
    color: #f8fafc !important;
    border-color: #38bdf8 !important;
}

[data-bs-theme="dark"] .nav-tab-pill.active,
[data-theme="dark"] .nav-tab-pill.active,
body.dark-theme .nav-tab-pill.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45) !important;
}

/* Dark Mode: Optional & Subtle Badges */
[data-bs-theme="dark"] .badge-optional,
[data-theme="dark"] .badge-optional,
body.dark-theme .badge-optional,
[data-bs-theme="dark"] .badge.bg-light,
[data-theme="dark"] .badge.bg-light,
body.dark-theme .badge.bg-light {
    background-color: #1a2438 !important;
    color: #94a3b8 !important;
    border-color: #2d3c59 !important;
}




