:root,
[data-bs-theme="light"] {
    color-scheme: light;
    --bs-primary: #a87500;
    --bs-primary-rgb: 168, 117, 0;
    --bs-primary-text-emphasis: #5c4200;
    --bs-primary-bg-subtle: #f5e8c3;
    --bs-primary-border-subtle: #e8ce83;
    --bs-link-color: #805900;
    --bs-link-hover-color: #5c4000;
    --bs-body-bg: #f8f6f0;
    --bs-body-bg-rgb: 248, 246, 240;
    --bs-body-color: #29271f;
    --bs-secondary-bg: #f0ede4;
    --bs-secondary-bg-rgb: 240, 237, 228;
    --bs-tertiary-bg: #f8f6f0;
    --bs-tertiary-bg-rgb: 248, 246, 240;
    --bs-border-color: #c5e7f2;
    --bs-card-bg: rgb(255 254 250 / 90%);
    --bs-navbar-color: #393326;
    --bs-navbar-hover-color: #805900;
    --fx-accent: #bb8b21;
    --fx-accent-soft: rgb(168 117 0 / 10%);
    --fx-surface: rgb(255 254 250 / 84%);
    --fx-shadow: 0 1.25rem 3.5rem rgb(50 42 21 / 8%);
    --fx-grid: rgb(120 99 53 / 5%);
    --fx-line-color: rgb(49 151 190 / 40%);
    --fx-line-strong: rgb(49 151 190 / 68%);
    --fx-cyan: #198eb8;
    --fx-gold-highlight: #fff2b0;
    --fx-gold-mid: #d6a52f;
    --fx-gold-shadow: #936000;
}

[data-bs-theme="dark"] {
    color-scheme: dark;
    --bs-primary: #ffd34f;
    --bs-primary-rgb: 255, 211, 79;
    --bs-primary-text-emphasis: #ffe99b;
    --bs-primary-bg-subtle: #493811;
    --bs-primary-border-subtle: #bd8c1f;
    --bs-link-color: #ffdf73;
    --bs-link-hover-color: #fff0ae;
    --bs-body-bg: #0c0b09;
    --bs-body-bg-rgb: 12, 11, 9;
    --bs-body-color: #f7f1df;
    --bs-secondary-bg: #15130f;
    --bs-secondary-bg-rgb: 21, 19, 15;
    --bs-tertiary-bg: #100f0c;
    --bs-tertiary-bg-rgb: 16, 15, 12;
    --bs-border-color: #244354;
    --bs-card-bg: rgb(25 22 16 / 93%);
    --bs-navbar-color: #f2eddf;
    --bs-navbar-hover-color: #fff0ae;
    --bs-emphasis-color: #fff8e6;
    --fx-accent: #ffd34f;
    --fx-accent-soft: rgb(255 211 79 / 12%);
    --fx-surface: rgb(23 20 14 / 88%);
    --fx-shadow: 0 1.5rem 4rem rgb(0 0 0 / 42%);
    --fx-grid: rgb(92 191 225 / 5%);
    --fx-line-color: rgb(80 194 230 / 32%);
    --fx-line-strong: rgb(80 194 230 / 58%);
    --fx-cyan: #64d8ff;
    --fx-gold-highlight: #fff2b0;
    --fx-gold-mid: #ffd34f;
    --fx-gold-shadow: #b87508;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(ellipse at 12% 0%, rgb(var(--bs-primary-rgb) / 8%), transparent 34rem),
        radial-gradient(ellipse at 95% 35%, rgb(var(--bs-primary-rgb) / 5%), transparent 32rem),
        var(--bs-tertiary-bg) !important;
    color: var(--bs-body-color);
    font-family: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    isolation: isolate;
    letter-spacing: -0.01em;
    min-height: 100vh;
    position: relative;
    transition: background-color 180ms ease, color 180ms ease;
}

body::before {
    background-image:
        linear-gradient(var(--fx-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--fx-grid) 1px, transparent 1px);
    background-size: 48px 48px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(to bottom, rgb(0 0 0 / 32%), transparent 75%);
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

::selection {
    background: rgb(var(--bs-primary-rgb) / 24%);
    color: var(--bs-body-color);
}

a {
    text-underline-offset: 0.2em;
}

.theme-navbar,
.theme-admin-header {
    background: var(--fx-surface) !important;
    backdrop-filter: blur(18px);
    border-color: var(--fx-line-color) !important;
}

.theme-navbar {
    box-shadow: 0 0.5rem 2rem rgb(0 0 0 / 3%);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.user-top-navbar .container {
    column-gap: 0.9rem;
}

.user-top-navbar .navbar-brand {
    flex: 0 0 auto;
    margin-right: 0;
}

.user-top-navbar .brand-logo {
    height: 2.35rem;
    width: 2.35rem;
}

.user-top-navbar .navbar-brand-label {
    font-size: 0.88rem;
}

.user-top-navbar .navbar-collapse {
    min-width: 0;
}

.user-primary-navigation,
.user-navbar-actions {
    align-items: center;
}

.user-navbar-actions .btn {
    align-items: center;
    display: inline-flex;
    font-size: 0.78rem;
    justify-content: center;
    min-height: 2.15rem;
    padding-inline: 0.65rem;
    white-space: nowrap;
}

.user-navbar-actions form {
    margin: 0;
}

.user-primary-navigation .nav-link {
    font-size: 0.84rem;
    font-weight: 550;
    padding-inline: 0.62rem;
    white-space: nowrap;
}

.user-theme-switch {
    background: rgb(var(--bs-primary-rgb) / 8%);
    border-color: var(--fx-line-strong);
    border-radius: 999px;
    box-shadow: none;
    color: var(--bs-body-color);
    gap: 0.5rem;
    height: 2.15rem;
    padding-inline: 0.65rem;
    width: auto;
}

.user-theme-switch:hover {
    background: rgb(80 194 230 / 12%);
    border-color: var(--fx-cyan);
    box-shadow: 0 0.25rem 0.85rem rgb(80 194 230 / 15%);
    color: var(--bs-body-color);
    transform: translateY(-1px);
}

.user-theme-switch i {
    color: var(--bs-primary);
}

.theme-switch-label {
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.015em;
}

.user-navbar-toggler {
    align-items: center;
    background: rgb(80 194 230 / 7%);
    border: 1px solid var(--fx-line-strong);
    border-radius: 0.75rem;
    color: var(--fx-cyan);
    display: inline-flex;
    height: 2.15rem;
    justify-content: center;
    padding: 0;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
    width: 2.15rem;
}

.user-navbar-toggler:hover,
.user-navbar-toggler:focus-visible,
.user-navbar-toggler[aria-expanded="true"] {
    background: rgb(80 194 230 / 14%);
    border-color: var(--fx-cyan);
    color: var(--fx-cyan);
}

.user-navbar-toggler i {
    font-size: 1rem;
}

.user-top-navbar .navbar-collapse.show {
    border-top: 1px solid var(--fx-line-color);
    margin-top: 0.9rem;
    padding-top: 0.5rem;
}

@media (max-width: 991.98px) {
    .user-top-navbar .container {
        row-gap: 0;
    }

    .user-top-navbar .user-navbar-controls {
        gap: 0.45rem !important;
    }

    .user-top-navbar .brand-logo {
        height: 2.1rem;
        width: 2.1rem;
    }

    .user-top-navbar .navbar-brand-label {
        font-size: 0.82rem;
    }

    .user-top-navbar .theme-switch-label {
        display: none;
    }

    .user-top-navbar .user-theme-switch {
        height: 2.1rem;
        justify-content: center;
        padding-inline: 0;
        width: 2.1rem;
    }

    .user-top-navbar .user-navbar-toggler {
        height: 2.1rem;
        width: 2.1rem;
    }

    .user-top-navbar .navbar-collapse.show {
        flex-basis: 100%;
        margin-top: 0.65rem;
    }

    .user-primary-navigation {
        align-items: stretch;
        gap: 0.2rem;
        padding-top: 0.25rem !important;
    }

    .user-primary-navigation .nav-link {
        border: 1px solid transparent;
        border-radius: 0.65rem;
        font-size: 0.84rem;
        padding: 0.48rem 0.65rem;
    }

    .user-primary-navigation .nav-link:hover,
    .user-primary-navigation .nav-link.active {
        background: rgb(80 194 230 / 8%);
        border-color: var(--fx-line-color);
    }

    .user-navbar-actions {
        align-items: stretch;
        border-top: 1px solid var(--fx-line-color);
        gap: 0.45rem !important;
        flex-direction: column;
        margin-top: 0.45rem;
        padding-top: 0.6rem !important;
    }

    .user-navbar-actions form {
        width: 100%;
    }

    .user-navbar-actions .btn {
        justify-content: flex-start;
        min-height: 2.1rem;
    }
}

.theme-navbar .navbar-brand,
.theme-navbar .nav-link {
    color: var(--bs-body-color);
}

.theme-navbar .nav-link {
    border-radius: 0.75rem;
    font-size: 0.94rem;
    padding-inline: 0.9rem;
    transition: color 160ms ease, background-color 160ms ease;
}

.theme-navbar .nav-link:hover,
.theme-navbar .navbar-brand:hover {
    color: var(--bs-primary);
}

.theme-navbar .nav-link:hover {
    background: var(--fx-accent-soft);
}

.navbar-brand {
    align-items: center;
    display: inline-flex;
    gap: 0.65rem;
    letter-spacing: 0.03em;
}

.brand-logo {
    border: 1px solid rgb(var(--bs-primary-rgb) / 35%);
    border-radius: 0.65rem;
    box-shadow: 0 0.35rem 1rem rgb(var(--bs-primary-rgb) / 15%);
    flex: 0 0 auto;
    height: 2.8rem;
    object-fit: cover;
    width: 2.8rem;
}

.navbar-brand-label {
    font-weight: 750;
}

.theme-switch {
    align-items: center;
    background: linear-gradient(145deg, #fff8e5, #f1dfaa);
    border: 1px solid #d5ad4f;
    border-radius: 999px;
    box-shadow: 0 0.2rem 0.75rem rgb(168 117 0 / 18%);
    color: #765000;
    display: inline-flex;
    flex: 0 0 auto;
    height: 2.5rem;
    justify-content: center;
    transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    width: 2.5rem;
}

.theme-switch:hover {
    box-shadow: 0 0.3rem 1rem rgb(168 117 0 / 28%);
    transform: translateY(-1px) rotate(-8deg);
}

.theme-switch:focus-visible,
.btn:focus-visible,
a:focus-visible {
    outline: 3px solid rgb(var(--bs-primary-rgb) / 42%);
    outline-offset: 3px;
}

.btn {
    border-radius: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.btn-primary {
    --bs-btn-color: #211800;
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #211800;
    --bs-btn-hover-bg: #c28a12;
    --bs-btn-hover-border-color: #c28a12;
    --bs-btn-active-color: #211800;
    --bs-btn-active-bg: #d29a20;
    --bs-btn-active-border-color: #d29a20;
    --bs-btn-disabled-color: #211800;
    --bs-btn-disabled-bg: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
    box-shadow: 0 0.45rem 1.25rem rgb(var(--bs-primary-rgb) / 22%);
}

[data-bs-theme="dark"] .btn-primary {
    --bs-btn-color: #211500;
    --bs-btn-hover-color: #211500;
    --bs-btn-active-color: #211500;
    --bs-btn-disabled-color: #211500;
    --bs-btn-hover-bg: #ffe17b;
    --bs-btn-hover-border-color: #ffe17b;
    --bs-btn-active-bg: #f4bf35;
    --bs-btn-active-border-color: #f4bf35;
    --bs-btn-disabled-bg: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
    background-image: linear-gradient(180deg, rgb(255 255 255 / 38%), transparent 58%);
    box-shadow: 0 0.5rem 1.5rem rgb(255 195 45 / 28%), inset 0 1px rgb(255 255 255 / 48%);
    text-shadow: 0 1px rgb(255 255 255 / 30%);
}

.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: rgb(var(--bs-primary-rgb) / 58%);
    --bs-btn-hover-color: #211800;
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-active-color: #211800;
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
}

.text-bg-primary {
    background: linear-gradient(135deg, #f2d47d, #c18b19) !important;
    color: #211800 !important;
}

[data-bs-theme="dark"] .text-bg-primary {
    background: linear-gradient(145deg, #fff2ad 0%, #ffd34f 45%, #ce8b12 100%) !important;
    box-shadow: inset 0 1px rgb(255 255 255 / 65%), 0 0.35rem 1rem rgb(255 195 45 / 18%);
}

.card {
    background: var(--fx-surface);
    border: 1px solid var(--fx-line-color) !important;
    border-radius: 1.25rem;
    box-shadow: var(--fx-shadow) !important;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(16px);
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.card::before {
    background: linear-gradient(90deg, transparent, var(--fx-cyan), #ffd34f 50%, var(--fx-cyan), transparent);
    content: "";
    height: 1px;
    left: 10%;
    opacity: 0.72;
    position: absolute;
    right: 10%;
    top: 0;
}

.card h1,
.card h2 {
    letter-spacing: -0.035em;
}

.card-body {
    position: relative;
    z-index: 1;
}

.form-control,
.form-select {
    background-color: rgb(var(--bs-body-bg-rgb) / 70%);
    border-color: var(--fx-line-color);
    border-radius: 0.75rem;
    color: var(--bs-body-color);
    min-height: 2.9rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--bs-body-bg);
    border-color: var(--fx-cyan);
    box-shadow: 0 0 0 0.22rem rgb(80 194 230 / 18%);
    color: var(--bs-body-color);
}

.form-label {
    font-size: 0.91rem;
    font-weight: 600;
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.form-check-input {
    border-color: var(--fx-line-strong);
}

.table {
    --bs-table-border-color: var(--fx-line-color);
}

.list-group {
    --bs-list-group-border-color: var(--fx-line-color);
}

.accordion {
    --bs-accordion-border-color: var(--fx-line-color);
}

.alert {
    border-radius: 0.9rem;
}

.payment-safety-note,
.deposit-invoice-instructions {
    background: var(--fx-accent-soft);
    border: 1px solid var(--fx-line-color);
    border-radius: 0.9rem;
    color: var(--bs-body-color);
    padding: 0.9rem 1rem;
}

.deposit-invoice-bank-details {
    display: grid;
    gap: 0.65rem;
}

.deposit-invoice-bank-row {
    align-items: center;
    background: var(--fx-accent-soft);
    border: 1px solid var(--fx-line-color);
    border-radius: 0.75rem;
    column-gap: 1rem;
    display: grid;
    grid-template-columns: minmax(7rem, 0.35fr) minmax(0, 1fr);
    padding: 0.85rem 1rem;
}

.deposit-invoice-copy {
    align-items: center;
    display: inline-flex;
    flex-shrink: 0;
    gap: 0.4rem;
    justify-content: center;
    white-space: nowrap;
}

.deposit-invoice-wallet {
    align-items: flex-start;
    background: var(--fx-accent-soft);
    border: 1px solid var(--fx-line-color);
    border-radius: 0.85rem;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.85rem;
}

.deposit-invoice-wallet-address {
    font-size: 0.925rem;
    line-height: 1.65;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.deposit-invoice-page dl dd {
    min-width: 0;
}

.deposit-invoice-page dl dd > span,
.deposit-invoice-bank-row > div {
    min-width: 0;
}

.swal2-popup {
    background: var(--bs-card-bg) !important;
    border: 1px solid var(--fx-line-strong);
    border-radius: 1.25rem;
    box-shadow: var(--fx-shadow);
    color: var(--bs-body-color);
    font-family: inherit;
}

.swal2-title,
.swal2-html-container {
    color: var(--bs-body-color) !important;
}

.swal2-html-container {
    white-space: pre-line;
}

.swal2-confirm,
.swal2-cancel {
    border-radius: 0.75rem !important;
    font-weight: 650 !important;
    padding: 0.65rem 1.1rem !important;
}

.swal2-confirm {
    background: var(--bs-primary) !important;
    color: #17130a !important;
}

.swal2-cancel {
    background: transparent !important;
    border: 1px solid var(--fx-line-strong) !important;
    color: var(--bs-body-color) !important;
}

.swal2-confirm:focus,
.swal2-cancel:focus {
    box-shadow: 0 0 0 0.2rem rgb(var(--bs-primary-rgb) / 25%) !important;
}

.modal-content {
    background: var(--bs-card-bg);
    border: 1px solid var(--fx-line-strong) !important;
    border-radius: 1.25rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--fx-shadow) !important;
}

.modal-header,
.modal-footer {
    border-color: var(--fx-line-color);
}

.hero-panel {
    background:
        radial-gradient(ellipse at 80% 6%, rgb(var(--bs-primary-rgb) / 16%), transparent 26rem),
        linear-gradient(135deg, var(--fx-surface), rgb(var(--bs-body-bg-rgb) / 58%));
    border: 1px solid var(--fx-line-color);
    border-radius: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--fx-shadow);
    isolation: isolate;
    overflow: hidden;
    padding: clamp(2.25rem, 7vw, 6rem) clamp(1.25rem, 6vw, 5rem);
    position: relative;
}

.hero-panel::after {
    border: 1px solid var(--fx-line-color);
    border-radius: 50%;
    box-shadow: 0 0 0 2.25rem rgb(var(--bs-primary-rgb) / 3%), 0 0 0 4.5rem rgb(var(--bs-primary-rgb) / 2%);
    content: "";
    height: 24rem;
    position: absolute;
    right: -9rem;
    top: -13rem;
    width: 24rem;
    z-index: -1;
}

.hero-kicker,
.eyebrow {
    align-items: center;
    color: var(--bs-primary-text-emphasis);
    display: inline-flex;
    font-size: 0.74rem;
    font-weight: 750;
    gap: 0.55rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-kicker::before {
    background: var(--bs-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 0.3rem rgb(var(--bs-primary-rgb) / 13%);
    content: "";
    height: 0.45rem;
    width: 0.45rem;
}

.hero-title {
    font-size: clamp(2.45rem, 7vw, 5.3rem);
    font-weight: 760;
    letter-spacing: -0.075em;
    line-height: 0.99;
    max-width: 13ch;
    text-wrap: balance;
}

.hero-title span {
    background: linear-gradient(105deg, var(--fx-gold-highlight, var(--bs-primary)), var(--fx-gold-mid, #e5bd5a) 55%, var(--fx-gold-shadow, #a87500));
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-copy {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.75;
    max-width: 39rem;
}

.hero-actions .btn {
    min-width: 10.5rem;
}

.hero-footnote {
    color: var(--bs-secondary-color);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    margin-top: 2rem;
    text-transform: uppercase;
}

.hero-emblem {
    align-items: center;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    max-width: 20rem;
    position: relative;
    width: 100%;
}

.hero-emblem::before,
.hero-emblem::after,
.hero-emblem-orbit {
    border: 1px solid var(--fx-line-color);
    border-radius: 50%;
    content: "";
    inset: 9%;
    position: absolute;
}

.hero-emblem::after {
    inset: 20%;
    transform: rotateX(68deg) rotate(-35deg);
}

.hero-emblem-orbit {
    border-color: var(--fx-line-strong);
    box-shadow: inset 0 0 2.5rem rgb(var(--bs-primary-rgb) / 8%), 0 0 2rem rgb(var(--bs-primary-rgb) / 8%);
    transform: rotateX(68deg) rotate(35deg);
}

.hero-brand-image {
    border-radius: 1.5rem;
    filter: drop-shadow(0 1rem 2rem rgb(var(--bs-primary-rgb) / 20%));
    height: min(100%, 19rem);
    object-fit: contain;
    position: relative;
    width: min(100%, 19rem);
    z-index: 1;
}

.hero-emblem-caption {
    bottom: 8%;
    color: var(--bs-secondary-color);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    position: absolute;
}

.dashboard-welcome {
    background:
        radial-gradient(ellipse at 100% 0%, rgb(var(--bs-primary-rgb) / 14%), transparent 25rem),
        var(--fx-surface);
}

.dashboard-balance {
    background:
        radial-gradient(ellipse at 100% 0%, rgb(255 211 79 / 16%), transparent 19rem),
        linear-gradient(145deg, #17150f, #090a0d 78%);
    border-color: rgb(255 211 79 / 44%) !important;
    box-shadow: 0 1rem 2.5rem rgb(0 0 0 / 25%), inset 0 0 0 1px rgb(255 211 79 / 8%) !important;
    color: #fff8e6;
}

.dashboard-balance::before {
    background: linear-gradient(90deg, transparent, #ffd34f 25%, #64d8ff 75%, transparent);
    height: 2px;
}

.dashboard-balance-label {
    color: #d8c99e;
    font-size: 0.875rem;
    font-weight: 650;
    letter-spacing: 0.035em;
}

.dashboard-balance-amount {
    color: #fff8e6;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 1.1;
}

.dashboard-balance-icon {
    align-items: center;
    background: linear-gradient(145deg, rgb(255 211 79 / 15%), rgb(100 216 255 / 8%));
    border: 1px solid rgb(255 211 79 / 42%);
    border-radius: 0.9rem;
    box-shadow: 0 0 1.5rem rgb(255 211 79 / 10%);
    color: #ffd34f;
    display: inline-flex;
    flex: 0 0 2.9rem;
    height: 2.9rem;
    justify-content: center;
}

.dashboard-balance-meta {
    border-top: 1px solid rgb(100 216 255 / 38%);
    color: #dbe8f2;
    font-size: 0.8rem;
    padding-top: 1rem;
    position: relative;
}

.dashboard-balance-meta::before {
    background: #64d8ff;
    border-radius: 50%;
    box-shadow: 0 0 0.65rem rgb(100 216 255 / 70%);
    content: "";
    height: 0.35rem;
    left: 0;
    position: absolute;
    top: -0.2rem;
    width: 0.35rem;
}

.dashboard-balance-actions {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-balance-actions .btn {
    align-items: center;
    display: inline-flex;
    font-size: 0.76rem;
    gap: 0.35rem;
    justify-content: center;
    min-height: 2.4rem;
    min-width: 0;
    padding-inline: 0.35rem;
    white-space: nowrap;
}

.dashboard-balance-actions .btn i {
    flex: 0 0 auto;
}

.dashboard-withdraw-button {
    box-shadow: 0 0.4rem 1.1rem rgb(220 53 69 / 22%);
}

.dashboard-deposit-button {
    box-shadow: 0 0.4rem 1.1rem rgb(25 135 84 / 22%);
}

.dashboard-history-button {
    box-shadow: 0 0.4rem 1.1rem rgb(25 135 84 / 22%);
}

.history-table {
    min-width: 46rem;
}

.history-table th {
    color: var(--bs-secondary-color);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.history-detail-cell {
    max-width: 22rem;
    overflow-wrap: anywhere;
}

.history-card-list {
    display: grid;
    gap: 0.75rem;
}

.history-card {
    background: var(--fx-surface);
    border: 1px solid var(--fx-line-color);
    border-radius: 0.9rem;
    display: grid;
    gap: 0.7rem;
    min-width: 0;
    padding: 0.9rem;
}

.history-card-header,
.history-card-summary {
    align-items: center;
    display: flex;
    gap: 0.6rem;
    justify-content: space-between;
    min-width: 0;
}

.history-card-date {
    color: var(--bs-secondary-color);
    font-size: 0.72rem;
    text-align: right;
}

.history-card-amount {
    font-size: 1.08rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.history-card-details {
    border-top: 1px solid var(--fx-line-color);
    display: grid;
    font-size: 0.84rem;
    gap: 0.25rem;
    min-width: 0;
    overflow-wrap: anywhere;
    padding-top: 0.65rem;
}

.history-load-more-wrap {
    display: flex;
    justify-content: center;
}

.history-load-more {
    min-width: 10rem;
}

.dashboard-balance-error {
    color: #ffb4a9;
    font-size: 0.82rem;
}

.dashboard-summary-card {
    background:
        radial-gradient(ellipse at 100% 0%, rgb(255 211 79 / 9%), transparent 16rem),
        linear-gradient(145deg, #17150f, #0d0e11 82%);
    border-color: rgb(100 216 255 / 34%) !important;
    box-shadow: 0 0.8rem 2rem rgb(0 0 0 / 18%), inset 0 0 0 1px rgb(100 216 255 / 5%) !important;
    color: #fff8e6;
}

.dashboard-summary-card::before {
    background: linear-gradient(90deg, transparent, rgb(100 216 255 / 88%), transparent);
}

.dashboard-summary-icon {
    align-items: center;
    background: linear-gradient(145deg, rgb(100 216 255 / 16%), rgb(100 216 255 / 5%));
    border: 1px solid rgb(100 216 255 / 35%);
    border-radius: 0.7rem;
    box-shadow: 0 0 1rem rgb(100 216 255 / 10%);
    color: #64d8ff;
    display: inline-flex;
    height: 2.45rem;
    justify-content: center;
    width: 2.45rem;
}

.dashboard-summary-label {
    color: #b6c3ce;
    font-size: 0.82rem;
    font-weight: 550;
}

.dashboard-summary-amount {
    color: #ffd34f;
    font-size: clamp(1.05rem, 3vw, 1.4rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

.dashboard-withdrawal-row {
    background: linear-gradient(100deg, rgb(37 144 190 / 9%), rgb(37 144 190 / 2%) 65%, transparent);
    border: 1px solid rgb(100 216 255 / 28%);
    border-left: 3px solid #42c8fa;
    border-radius: 0.85rem;
    box-shadow: inset 0 0 1rem rgb(66 200 250 / 4%);
    padding: 0.85rem 1rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dashboard-withdrawal-row:hover {
    border-color: rgb(100 216 255 / 55%);
    box-shadow: inset 0 0 1.25rem rgb(66 200 250 / 8%), 0 0 1rem rgb(66 200 250 / 8%);
    transform: translateY(-1px);
}

.dashboard-withdrawal-row .fw-semibold {
    color: #ffd34f;
}

.dashboard-withdrawal-row code {
    color: #8bdfff;
}

.dashboard-page > .row > .col-12 > .card:not(.dashboard-welcome) {
    border-color: rgb(100 216 255 / 28%) !important;
}

.dashboard-page .dashboard-welcome {
    background:
        radial-gradient(ellipse at 100% 0%, rgb(255 211 79 / 8%), transparent 23rem),
        linear-gradient(145deg, #17150f, #0d0e11 86%);
    border-color: rgb(255 211 79 / 27%) !important;
    color: #fff8e6;
}

.dashboard-page .dashboard-welcome .text-body-secondary {
    color: #b6c3ce !important;
}

.dashboard-page .dashboard-user-icon {
    background: rgb(255 211 79 / 12%) !important;
    border: 1px solid rgb(255 211 79 / 34%);
    color: #ffd34f !important;
}

.dashboard-page .modal-content {
    background: linear-gradient(145deg, #19170f, #0d0e11 85%);
    border-color: rgb(100 216 255 / 42%) !important;
    color: #fff8e6;
}

.dashboard-page .modal-header,
.dashboard-page .modal-footer {
    border-color: rgb(100 216 255 / 24%);
}

.dashboard-page .modal-content .text-body-secondary,
.dashboard-page .modal-content .form-text {
    color: #b6c3ce !important;
}

.dashboard-page .modal-content .form-control {
    background-color: #111318;
    border-color: rgb(100 216 255 / 35%);
    color: #fff8e6;
}

.dashboard-page .modal-content .form-control:focus {
    border-color: #64d8ff;
    box-shadow: 0 0 0 0.22rem rgb(100 216 255 / 17%);
}

.dashboard-page .modal-content .alert-warning {
    background: rgb(255 211 79 / 9%);
    border-color: rgb(255 211 79 / 26%);
    color: #f0dfb0;
}

.dashboard-status-badge {
    font-size: 0.72rem;
    text-transform: capitalize;
}

.dashboard-status-pending {
    background: rgb(226 167 49 / 16%);
    color: var(--bs-primary-text-emphasis);
}

.dashboard-page .dashboard-status-pending {
    background: rgb(255 211 79 / 15%);
    border: 1px solid rgb(255 211 79 / 32%);
    color: #ffdf73;
}

.dashboard-page .dashboard-status-completed {
    background: rgb(59 215 145 / 12%);
    border: 1px solid rgb(59 215 145 / 32%);
    color: #85edb7;
}

.dashboard-page .dashboard-status-rejected {
    background: rgb(255 114 130 / 12%);
    border: 1px solid rgb(255 114 130 / 30%);
    color: #ff9aa5;
}

.dashboard-status-completed {
    background: rgb(25 135 84 / 16%);
    color: #198754;
}

.dashboard-status-rejected {
    background: rgb(220 53 69 / 14%);
    color: #dc3545;
}

[data-bs-theme="dark"] .dashboard-status-completed {
    background: rgb(25 135 84 / 24%);
    color: #8be0ad;
}

[data-bs-theme="dark"] .dashboard-status-rejected {
    background: rgb(220 53 69 / 22%);
    color: #ff9aa5;
}

.admin-finance-table th,
.admin-finance-table td {
    vertical-align: middle;
}

.admin-finance-address {
    display: inline-block;
    max-width: 13rem;
    overflow-wrap: anywhere;
}

.admin-stat-card {
    background:
        radial-gradient(ellipse at 100% 0%, rgb(var(--bs-primary-rgb) / 10%), transparent 14rem),
        var(--fx-surface);
    border-color: var(--fx-line-color) !important;
}

.admin-stat-icon {
    align-items: center;
    background: var(--fx-accent-soft);
    border: 1px solid var(--fx-line-color);
    border-radius: 0.85rem;
    color: var(--bs-primary);
    display: inline-flex;
    height: 2.75rem;
    justify-content: center;
    width: 2.75rem;
}

.admin-activity-card {
    border-color: var(--fx-line-color) !important;
}

.admin-chart-legend {
    border-radius: 999px;
    display: inline-block;
    height: 0.65rem;
    width: 0.65rem;
}

.admin-chart-legend-deposit,
.admin-activity-bar-deposit {
    background: #27ae78;
}

.admin-chart-legend-withdrawal,
.admin-activity-bar-withdrawal {
    background: #d65b66;
}

.admin-activity-list {
    display: grid;
    gap: 0.9rem;
}

.admin-activity-row {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: 4.25rem minmax(8rem, 1fr) minmax(10rem, 12rem);
}

.admin-activity-date {
    color: var(--bs-secondary-color);
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.admin-activity-bars {
    display: grid;
    gap: 0.3rem;
}

.admin-activity-track {
    background: var(--fx-accent-soft);
    border-radius: 999px;
    height: 0.45rem;
    overflow: hidden;
}

.admin-activity-bar {
    border-radius: inherit;
    display: block;
    height: 100%;
    min-width: 0;
}

.admin-activity-values {
    color: var(--bs-secondary-color);
    display: flex;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    justify-content: space-between;
    white-space: nowrap;
}

.deposit-approval-tabs,
.withdrawal-approval-tabs {
    border-bottom: 1px solid var(--fx-line-color);
    padding-bottom: 1rem;
}

.deposit-approval-tabs .nav-link,
.withdrawal-approval-tabs .nav-link {
    align-items: center;
    background: var(--fx-accent-soft);
    border: 1px solid var(--fx-line-color);
    color: var(--bs-body-color);
    display: inline-flex;
    font-weight: 600;
    gap: 0.25rem;
    justify-content: center;
    min-width: 7rem;
}

.deposit-approval-tabs .nav-link.active,
.withdrawal-approval-tabs .nav-link.active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #17130a;
}

.deposit-approval-tabs .nav-link.active .badge,
.withdrawal-approval-tabs .nav-link.active .badge {
    background: rgb(0 0 0 / 15%) !important;
    color: inherit !important;
}

.deposit-approval-table,
.withdrawal-approval-table {
    min-width: 61rem;
}

.deposit-approval-table th,
.withdrawal-approval-table th {
    color: var(--bs-secondary-color);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.deposit-approval-table td,
.withdrawal-approval-table td {
    max-width: 16rem;
    white-space: nowrap;
}

.deposit-approval-email {
    display: block;
    max-width: 13rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deposit-approval-payment-type {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
}

.deposit-approval-payment-detail {
    max-width: 13rem;
    overflow-wrap: anywhere;
}

.deposit-review-modal .modal-header {
    align-items: flex-start;
}

.deposit-review-details {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.deposit-review-detail {
    background: var(--fx-accent-soft);
    border: 1px solid var(--fx-line-color);
    border-radius: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.8rem 0.9rem;
}

.deposit-review-actions {
    align-items: flex-end;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.deposit-review-reject-form {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.deposit-review-reject-form .form-label {
    margin-bottom: 0;
}

.deposit-review-reject-form textarea {
    min-width: 0;
}

.withdrawal-approval-email {
    display: block;
    max-width: 13rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.withdrawal-approval-address {
    display: block;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.withdrawal-review-modal .modal-header {
    align-items: flex-start;
}

.withdrawal-review-details {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.withdrawal-review-detail {
    background: var(--fx-accent-soft);
    border: 1px solid var(--fx-line-color);
    border-radius: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.8rem 0.9rem;
}

.withdrawal-review-actions {
    align-items: flex-end;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.withdrawal-review-reject-form,
.withdrawal-review-complete-form {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.withdrawal-review-reject-form .form-label,
.withdrawal-review-complete-form .form-label {
    margin-bottom: 0;
}

.withdrawal-review-reject-form textarea,
.withdrawal-review-complete-form input {
    min-width: 0;
}

.dashboard-user-icon {
    flex: 0 0 3rem;
    height: 3rem;
}

.account-avatar {
    background: #211f18;
    border-color: rgb(var(--bs-primary-rgb) / 40%) !important;
    box-shadow: 0 0 0 0.35rem var(--fx-accent-soft), 0 0.7rem 1.5rem rgb(0 0 0 / 12%);
    height: 5rem;
    object-fit: cover;
    padding: 0.15rem;
    width: 5rem;
}

.account-profile-card {
    background:
        radial-gradient(ellipse at 100% 0%, rgb(var(--bs-primary-rgb) / 13%), transparent 24rem),
        var(--fx-surface);
    border-color: var(--fx-line-color) !important;
}

.account-profile-copy {
    min-width: 0;
}

.account-profile-copy h2 {
    font-size: 1.25rem;
}

.account-profile-email {
    font-size: 0.92rem;
}

.account-section-label {
    color: var(--bs-primary-text-emphasis);
    display: block;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.account-readonly-badge {
    background: var(--fx-accent-soft);
    color: var(--bs-secondary-color);
    font-size: 0.72rem;
    font-weight: 550;
    padding: 0.45rem 0.65rem;
}

.account-setting-card {
    height: 100%;
}

.account-setting-copy p {
    font-size: 0.9rem;
    line-height: 1.55;
}

.account-action {
    min-height: 2.65rem;
    white-space: nowrap;
}

.account-security-icon {
    background: var(--fx-accent-soft);
    border: 1px solid var(--fx-line-color);
    color: var(--bs-primary);
    flex: 0 0 2.8rem;
    height: 2.8rem;
}

.user-bottom-nav-container {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

.user-bottom-nav {
    left: 0;
    position: fixed;
    right: 0;
    z-index: 1030;
}

.user-bottom-nav-panel {
    background: var(--fx-surface) !important;
    border-color: var(--fx-line-color) !important;
    box-shadow: 0 0.75rem 2.5rem rgb(0 0 0 / 11%) !important;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.user-bottom-nav-item {
    align-items: center;
    color: var(--bs-secondary-color);
    display: flex;
    flex-direction: column;
    font-size: 0.7rem;
    gap: 0.25rem;
    justify-content: center;
    min-height: 4rem;
    padding: 0.625rem 0.25rem;
    transition: color 160ms ease, background-color 160ms ease;
}

.user-bottom-nav-item i {
    font-size: 1.1rem;
}

.user-bottom-nav-item.active {
    background: var(--fx-accent-soft);
    color: var(--bs-primary);
    font-weight: 700;
}

.user-bottom-nav a:hover {
    color: var(--bs-primary);
}

.admin-sidebar {
    background:
        radial-gradient(ellipse at 0% 0%, rgb(232 185 73 / 15%), transparent 18rem),
        #171713;
    border-right: 1px solid var(--fx-line-strong);
    color: #f2eddf;
    min-height: 100vh;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar .navbar-brand {
    color: #fff8e6;
}

.admin-sidebar .navbar-toggler {
    border-color: rgb(242 237 223 / 35%);
}

.admin-navigation {
    --bs-nav-link-color: rgb(242 237 223 / 70%);
    --bs-nav-link-hover-color: #ffda7c;
}

.admin-navigation .nav-link {
    border: 1px solid transparent;
    border-radius: 0.75rem;
    margin-block: 0.15rem;
    padding: 0.7rem 0.85rem;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.admin-navigation .nav-link i {
    width: 1.25rem;
    text-align: center;
}

.admin-navigation .nav-link:hover,
.admin-navigation .nav-link.active {
    background: rgb(232 185 73 / 10%);
    border-color: var(--fx-line-color);
    color: #ffda7c;
}

.theme-admin-header {
    position: sticky;
    top: 0;
    z-index: 1010;
}

@media (max-width: 767.98px) {
    .admin-sidebar {
        height: auto;
        min-height: 0;
        overflow: visible;
        padding: 0.85rem 1rem !important;
        position: relative;
    }

    .admin-sidebar .navbar-brand {
        gap: 0.5rem;
    }

    .admin-sidebar .brand-logo {
        height: 2.25rem;
        width: 2.25rem;
    }

    .admin-sidebar .navbar-brand-label {
        font-size: 0.875rem;
    }

    .admin-navigation {
        border-top: 1px solid rgb(242 237 223 / 15%);
        padding-top: 0.6rem;
    }

    .admin-navigation .nav-link {
        min-height: 2.75rem;
        padding: 0.7rem 0.85rem;
    }

    .admin-sidebar .admin-sidebar-footer {
        margin-top: 0.75rem !important;
        padding-top: 0.75rem !important;
    }

    .theme-admin-header {
        padding-block: 0.85rem !important;
    }
}

footer {
    opacity: 0.8;
}

[data-bs-theme="dark"] .theme-switch:not(.user-theme-switch) {
    background: linear-gradient(145deg, #fff0a1 0%, #ffd34f 42%, #b87508 100%);
    border-color: #ffe69a;
    box-shadow: 0 0.25rem 1rem rgb(255 195 45 / 32%), inset 0 1px rgb(255 255 255 / 76%);
    color: #332000;
}

[data-bs-theme="dark"] .navbar-toggler:not(.user-navbar-toggler) {
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .navbar-toggler-icon {
    filter: invert(1) grayscale(100%) brightness(200%);
}

[data-bs-theme="dark"] .text-body-secondary {
    color: #b7af9c !important;
}

[data-bs-theme="dark"] .bg-white {
    background-color: var(--bs-secondary-bg) !important;
}

.qris-image-preview {
    display: flex;
    width: 100%;
    max-width: 16rem;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    background: #fff;
}

.qris-image-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.deposit-invoice-qr {
    display: block;
    width: min(100%, 12.5rem);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    flex: 0 0 auto;
}

.deposit-invoice-qris-image {
    display: flex;
    width: min(100%, 22rem);
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-inline: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    background: #fff;
}

.deposit-invoice-qris-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .admin-activity-row {
        column-gap: 0.75rem;
        grid-template-columns: 3.5rem minmax(4rem, 1fr);
        row-gap: 0.35rem;
    }

    .admin-activity-values {
        grid-column: 2;
        gap: 0.75rem;
        justify-content: space-between;
    }

    .deposit-approval-tabs,
    .withdrawal-approval-tabs {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .deposit-approval-tabs .nav-link,
    .withdrawal-approval-tabs .nav-link {
        min-width: 0;
        padding-inline: 0.5rem;
    }

    .deposit-approval-table,
    .withdrawal-approval-table {
        min-width: 61rem;
    }

    .deposit-approval-payment-detail {
        max-width: none;
    }

    .deposit-review-details {
        grid-template-columns: 1fr;
    }

    .withdrawal-review-details {
        grid-template-columns: 1fr;
    }

    .deposit-review-actions {
        align-items: stretch;
        grid-template-columns: 1fr 1fr;
    }

    .deposit-review-reject-form {
        grid-column: 1 / -1;
    }

    .deposit-review-actions > .btn {
        width: 100%;
    }

    .withdrawal-review-actions {
        grid-template-columns: 1fr;
    }

    .user-layout {
        font-size: 0.9375rem;
    }

    .user-layout .theme-navbar {
        padding-block: 0.45rem !important;
    }

    .user-layout .navbar-brand {
        gap: 0.45rem;
    }

    .user-layout .brand-logo {
        height: 2.25rem;
        width: 2.25rem;
    }

    .user-layout .navbar-brand-label {
        font-size: 0.875rem;
    }

    .user-layout .user-navbar-actions .btn {
        font-size: 0.8125rem;
        padding: 0.45rem 0.7rem;
    }

    .user-layout .page-heading {
        margin-bottom: 1.25rem !important;
    }

    .user-layout .page-heading h1 {
        font-size: 1.375rem;
    }

    .user-layout .page-heading p {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .account-page .account-profile-copy h2 {
        font-size: 1.125rem;
    }

    .account-page .account-profile-email,
    .account-page .account-setting-copy p {
        font-size: 0.875rem;
    }

    .account-page .account-readonly-badge {
        white-space: normal;
    }

    .account-page .account-action {
        width: 100%;
    }

    .user-layout .user-bottom-nav-item {
        font-size: 0.75rem;
    }

    .user-layout .user-bottom-nav-item i {
        font-size: 1rem;
    }

    .theme-navbar .navbar-collapse {
        border-top: 1px solid var(--fx-line-color);
        margin-top: 0.8rem;
        padding-bottom: 0.4rem;
    }

    .theme-navbar .navbar-nav {
        padding-top: 0.65rem;
    }

    .hero-panel {
        text-align: left;
    }

    .hero-title {
        max-width: 11ch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .deposit-invoice-page {
        margin-inline: -0.25rem;
    }

    .deposit-invoice-card .card-body {
        padding: 1rem !important;
    }

    .deposit-invoice-page .h4 {
        font-size: 1.25rem;
    }

    .deposit-invoice-amount {
        overflow-wrap: anywhere;
        font-size: 1.125rem !important;
    }

    .deposit-invoice-qris-image {
        width: min(100%, 17rem);
    }

    .deposit-invoice-qris {
        padding: 1rem !important;
    }

    .deposit-invoice-page dl dd {
        overflow-wrap: anywhere;
    }

    .deposit-invoice-bank-row {
        align-items: start;
        grid-template-columns: 1fr;
        row-gap: 0.35rem;
    }

    .deposit-invoice-wallet {
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .deposit-invoice-wallet-address {
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
