:root {
    --bg: #070604;
    --card: rgba(20, 16, 8, .82);
    --card-soft: rgba(255, 204, 77, .08);
    --text: #fff6d7;
    --muted: #bfae7a;
    --gold: #f6c546;
    --gold-2: #ffdf7e;
    --border: rgba(246, 197, 70, .22);
    --shadow: 0 24px 70px rgba(0, 0, 0, .45);
}

html[data-theme="light"] {
    --bg: #fff8e4;
    --card: rgba(255, 255, 255, .88);
    --card-soft: rgba(156, 105, 0, .08);
    --text: #241804;
    --muted: #7e682f;
    --gold: #c99112;
    --gold-2: #f6c546;
    --border: rgba(155, 102, 0, .18);
    --shadow: 0 20px 50px rgba(121, 82, 0, .16);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top, rgba(246, 197, 70, .22), transparent 34%),
        radial-gradient(circle at bottom right, rgba(246, 197, 70, .12), transparent 32%),
        var(--bg);
    color: var(--text);
    padding-bottom: 110px;
}

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

.bg-container {
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto;
}

.bg-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
    background: color-mix(in srgb, var(--bg) 76%, transparent);
    border-bottom: 1px solid var(--border);
}

.bg-header-inner {
    position: relative;
    height: 76px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;
}

.bg-header-left,
.bg-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.bg-header-left {
    justify-content: flex-start;
}

.bg-header-right {
    justify-content: flex-end;
}

.bg-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.bg-logo {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, .22), transparent 40%),
        linear-gradient(145deg, #6b4300, #f6c546 45%, #fff0a8 60%, #8d5b00);
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, .35),
        inset 0 -4px 10px rgba(0, 0, 0, .22),
        0 0 22px rgba(246, 197, 70, .32);
    overflow: hidden;
    padding: 6px;
}

.bg-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 999px;
}

.bg-brand-title {
    font-weight: 950;
    letter-spacing: .06em;
    line-height: 1;
    font-size: 15px;
    white-space: nowrap;
}

.bg-brand-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 5px;
    white-space: nowrap;
}

.bg-wallet-chip {
    height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 15px;
    border-radius: 999px;
    background: var(--card-soft);
    border: 1px solid var(--border);
    color: var(--gold-2);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.bg-theme-btn,
.bg-connect-btn {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 900;
}

.bg-theme-btn {
    border: 1px solid var(--border);
    background: var(--card-soft);
    color: var(--text);
    padding: 0 16px;
}

.bg-connect-btn {
    border: 0;
    padding: 0 18px;
    color: #241804;
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    box-shadow: 0 12px 28px rgba(246, 197, 70, .28);
}

.bg-mobile-brand,
.bg-mobile-only {
    display: none;
}

.bg-desktop-brand {
    display: flex;
}

.bg-desktop-only {
    display: inline-flex;
}

/* SWEET ALERT BABY GOLD */
.swal2-container {
    z-index: 99999 !important;
}

body.swal2-shown {
    padding-right: 0 !important;
}

.swal2-container.swal2-backdrop-show {
    background: rgba(0, 0, 0, .72) !important;
    backdrop-filter: blur(10px);
}

.swal2-popup.bg-swal-popup {
    width: min(420px, calc(100% - 24px)) !important;
    padding: 26px 22px 22px !important;
    border-radius: 28px !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    background:
        radial-gradient(circle at top, rgba(246, 197, 70, .20), transparent 38%),
        linear-gradient(180deg, rgba(35, 27, 10, .98), rgba(14, 11, 5, .98)) !important;
    box-shadow:
        0 28px 80px rgba(0, 0, 0, .58),
        inset 0 1px 0 rgba(255, 255, 255, .06) !important;
    backdrop-filter: blur(22px);
}

.swal2-icon {
    margin: 0 auto 16px !important;
    transform: scale(.88);
}

.swal2-title.bg-swal-title {
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: var(--gold-2) !important;
    font-size: 25px !important;
    line-height: 1.15 !important;
    font-weight: 950 !important;
    letter-spacing: -.03em !important;
}

.swal2-html-container.bg-swal-html {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--muted) !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
}

.swal2-actions {
    width: 100% !important;
    margin: 22px 0 0 !important;
    gap: 10px !important;
}

.swal2-confirm.bg-swal-confirm,
.swal2-cancel.bg-swal-cancel {
    min-width: 120px !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 22px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    box-shadow: none !important;
    outline: none !important;
}

.swal2-confirm.bg-swal-confirm {
    border: 0 !important;
    color: #241804 !important;
    background: linear-gradient(135deg, var(--gold-2), var(--gold)) !important;
    box-shadow: 0 14px 30px rgba(246, 197, 70, .24) !important;
}

.swal2-cancel.bg-swal-cancel {
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    background: var(--card-soft) !important;
}

.swal2-confirm.bg-swal-confirm:hover,
.swal2-cancel.bg-swal-cancel:hover {
    transform: translateY(-1px);
}

.swal2-icon.swal2-success {
    border-color: rgba(246, 197, 70, .45) !important;
    color: var(--gold-2) !important;
}

.swal2-success-ring {
    border-color: rgba(246, 197, 70, .28) !important;
}

.swal2-success-line-tip,
.swal2-success-line-long {
    background-color: var(--gold-2) !important;
}

.swal2-success-circular-line-left,
.swal2-success-circular-line-right,
.swal2-success-fix {
    background: transparent !important;
}

.swal2-icon.swal2-warning,
.swal2-icon.swal2-question {
    border-color: rgba(246, 197, 70, .45) !important;
    color: var(--gold-2) !important;
}

.swal2-icon.swal2-error {
    border-color: rgba(255, 90, 90, .55) !important;
    color: #ff6b6b !important;
}

.swal2-x-mark-line-left,
.swal2-x-mark-line-right {
    background-color: #ff6b6b !important;
}

.bg-theme-icon {
    width: 42px;

    padding: 0 !important;

    font-size: 18px;
}

@media (max-width: 768px) {
    .bg-header-inner {
        height: 64px;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 8px;
    }

    .bg-header-left {
        grid-column: 1;
        justify-content: flex-start;
    }

    .bg-mobile-brand {
        grid-column: 2;
        display: flex;
        justify-content: center;
    }

    .bg-header-right {
        grid-column: 3;
        justify-content: flex-end;
    }

    .bg-desktop-brand,
    .bg-desktop-only {
        display: none;
    }

    .bg-mobile-only {
        display: inline-flex;
    }

    .bg-mobile-brand .bg-logo {
        width: 41px;
        height: 41px;
    }

    .bg-wallet-chip {
        height: 38px;
        font-size: 12px;
        padding: 0 11px;
    }

    .bg-theme-btn,
    .bg-connect-btn {
        height: 38px;
        font-size: 12px;
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .swal2-popup.bg-swal-popup {
        width: calc(100% - 24px) !important;
        padding: 24px 18px 20px !important;
        border-radius: 26px !important;
    }

    .swal2-title.bg-swal-title {
        font-size: 23px !important;
    }

    .swal2-confirm.bg-swal-confirm,
    .swal2-cancel.bg-swal-cancel {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
}

@media (max-width: 390px) {
    .bg-container {
        width: min(100% - 20px, 1120px);
    }

    .bg-wallet-chip {
        font-size: 11px;
        padding: 0 9px;
    }

    .bg-theme-btn,
    .bg-connect-btn {
        font-size: 11px;
        padding: 0 10px;
    }

    .bg-mobile-brand .bg-logo {
        width: 38px;
        height: 38px;
    }
}