:root {
    --wallet-bg-light: #f3f4f8;
    --wallet-bg-dark: #1f2153;
    --wallet-surface-light: #ffffff;
    --wallet-surface-dark: #191c47;
    --wallet-sidebar-light: #f8f8fb;
    --wallet-sidebar-dark: #151a43;
    --wallet-border-light: #ececf3;
    --wallet-border-dark: #2a2f63;
    --wallet-accent: #6772ff;
    --wallet-warm: #f89b5b;
    --wallet-ink-light: #21243d;
    --wallet-ink-dark: #eef0ff;
    --wallet-muted-light: #8b8da6;
    --wallet-muted-dark: #a1a6d5;
    --wallet-radius: 1.1rem;
    --wallet-shadow: 0 12px 40px rgba(16, 20, 60, 0.06);
}

body {
    font-family: "Manrope", sans-serif;
    background: var(--wallet-bg-light);
    min-height: 100vh;
    color: var(--wallet-ink-light);
}

.wallet-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at 15% -8%,
            rgba(103, 114, 255, 0.2),
            transparent 35%
        ),
        var(--wallet-bg-light);
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.wallet-loader-card {
    min-width: 220px;
    border: 1px solid var(--wallet-border-light);
    border-radius: 1rem;
    background: var(--wallet-surface-light);
    box-shadow: var(--wallet-shadow);
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.wallet-loader-logo {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.wallet-loader-logo span {
    color: var(--wallet-accent);
}

.wallet-loader-spinner {
    width: 1.35rem;
    height: 1.35rem;
    border-width: 0.18rem;
    color: var(--wallet-accent);
}

.wallet-loader-text {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--wallet-muted-light);
}

body.page-loading .container-fluid {
    visibility: hidden;
}

body.page-loading .wallet-loader {
    opacity: 1;
    visibility: visible;
}

body:not(.page-loading) .wallet-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.wallet-sidebar {
    width: 250px;
    border-right: 1px solid var(--wallet-border-light);
    background: var(--wallet-sidebar-light);
    min-height: 100vh;
}

.wallet-logo {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.wallet-logo span {
    color: var(--wallet-accent);
}

.wallet-chip {
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.45rem 1rem;
    border: 0;
    background: #fff;
    color: #6b75eb;
}

.wallet-chip.active {
    background: var(--wallet-accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(103, 114, 255, 0.35);
}

.wallet-menu-pill {
    border-radius: 0.75rem;
    color: #1d2040;
    padding: 0.55rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.wallet-menu-label {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    flex: 1 1 auto;
}

.wallet-name-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-account-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wallet-menu-pill.active {
    background: #f4ebe6;
    color: #f38d53;
    font-weight: 700;
}

.wallet-menu-pill .btn {
    color: inherit !important;
}

.wallet-menu-pill .btn.text-dark {
    color: inherit !important;
}

.sidebar-verification-card {
    border-radius: 1.15rem;
    background: linear-gradient(180deg, #fbfcff 0%, #f4f0ff 100%);
    border: 1px solid #e7e0f6;
    box-shadow: 0 10px 28px rgba(26, 31, 80, 0.06);
    padding: 1rem;
}

.sidebar-verification-hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 6.8rem;
    margin-bottom: 0.85rem;
}

.sidebar-verification-hero::before {
    content: "";
    position: absolute;
    bottom: 0.4rem;
    width: 6.5rem;
    height: 2.4rem;
    border-radius: 999px;
    background: rgba(135, 125, 255, 0.14);
}

.sidebar-verification-stack {
    position: relative;
    width: 6.4rem;
    height: 5.25rem;
}

.sidebar-verification-doc {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    border: 1px solid #d7d8f7;
    background: #ffffff;
    color: #49508b;
    box-shadow: 0 8px 18px rgba(33, 39, 93, 0.08);
}

.sidebar-verification-doc i {
    font-size: 1.35rem;
}

.sidebar-verification-doc-back {
    left: 0.15rem;
    top: 0.9rem;
    width: 2.45rem;
    height: 3.15rem;
    transform: rotate(-14deg);
}

.sidebar-verification-doc-front {
    left: 1.7rem;
    top: 1.65rem;
    width: 3.15rem;
    height: 2.15rem;
    z-index: 2;
}

.sidebar-verification-doc-side {
    right: 0.15rem;
    top: 0.7rem;
    width: 2.5rem;
    height: 3.25rem;
    transform: rotate(10deg);
}

.sidebar-verification-title {
    font-weight: 800;
    font-size: 1rem;
    color: #232846;
    text-align: center;
    margin-bottom: 0.35rem;
}

.sidebar-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #1e6a3f;
    background: #dff4e8;
    border: 1px solid #b8e5cc;
    border-radius: 999px;
    padding: 0.16rem 0.48rem;
}

.sidebar-verified-badge i {
    font-size: 0.72rem;
}

.sidebar-verification-copy {
    font-size: 0.84rem;
    line-height: 1.45;
    color: #6e7395;
    text-align: center;
    margin-bottom: 0.85rem;
}

.sidebar-verification-status {
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.sidebar-verification-status.state-not-uploaded {
    background: #f0f0f5;
    color: #8a8fa3;
}

.sidebar-verification-status.state-pending {
    background: #fff3cd;
    color: #856404;
}

.sidebar-verification-status.state-verified {
    background: #d4edda;
    color: #155724;
}

.verification-timeline {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.verification-timeline-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.verification-timeline-marker {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.verification-timeline-marker.state-not-uploaded {
    background: #f0f0f5;
    color: #8a8fa3;
}

.verification-timeline-marker.state-pending {
    background: #fff3cd;
    color: #856404;
}

.verification-timeline-marker.state-verified {
    background: #d4edda;
    color: #155724;
}

.verification-timeline-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-top: 0.3rem;
}

.verification-timeline-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #232846;
}

.verification-timeline-status {
    font-size: 0.82rem;
    color: #8a8fa3;
}

.verification-timeline-dialog {
    max-width: 420px;
}

.verification-timeline-modal-content {
    background: #f2f3f6;
    border-radius: 1.35rem;
}

.verification-timeline-content {
    color: #232846;
}

.sidebar-verification-actions {
    display: grid;
    gap: 0.55rem;
}

.sidebar-verification-cta {
    border-radius: 999px;
    white-space: nowrap;
}

.sidebar-verification-action {
    width: 100%;
    border: 1px solid #e5e2f5;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.72);
    padding: 0.7rem 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #2e3558;
    text-align: left;
}

.sidebar-verification-action:hover,
.sidebar-verification-action:focus-visible {
    background: #ffffff;
    border-color: #d7d1ef;
}

.sidebar-verification-action-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: #f7e6d9;
    color: #e08a53;
}

.sidebar-verification-action-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-verification-action-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #252c4a;
}

.sidebar-verification-action-subtitle {
    font-size: 0.77rem;
    font-weight: 700;
    color: #8a90b2;
}

.sidebar-language-trigger {
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid var(--wallet-border-light);
    border-radius: 999px;
    background: #ffffff;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(18, 24, 54, 0.05);
}

.sidebar-language-trigger:hover,
.sidebar-language-trigger:focus-visible {
    border-color: #6772ff;
    outline: none;
}

.sidebar-language-current {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}

.sidebar-language-menu {
    min-width: 3rem;
    border: 1px solid rgba(20, 30, 60, 0.08);
    border-radius: 1rem;
    padding: 0.35rem;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(18, 24, 54, 0.12);
}

.sidebar-language-option {
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    margin: 0.12rem auto;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.sidebar-language-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-language-option.dropdown-item.active,
.sidebar-language-option.dropdown-item:active,
.sidebar-language-option:hover,
.sidebar-language-option:focus-visible {
    background: transparent !important;
    color: inherit;
    outline: none;
    box-shadow: none;
}

.wallet-main {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 12% -6%,
            rgba(103, 114, 255, 0.16),
            transparent 30%
        ),
        var(--wallet-bg-light);
}

.login-page {
    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(103, 114, 255, 0.14),
            transparent 32%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(248, 155, 91, 0.16),
            transparent 26%
        ),
        var(--wallet-bg-light);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 1.05fr) minmax(320px, 0.95fr);
}

.login-panel {
    padding: 2.25rem;
}

.login-panel-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.7),
        rgba(255, 255, 255, 0.38)
    );
    border-right: 1px solid rgba(18, 24, 54, 0.06);
}

.login-brand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.login-panel-form {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-brand-copy {
    max-width: 30rem;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(103, 114, 255, 0.12);
    color: #5d68e6;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin: 2.2rem 0 1.1rem;
}

.login-title {
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

.login-subtitle {
    max-width: 28rem;
    color: #697294;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.6;
}

.login-highlights {
    display: grid;
    gap: 0.9rem;
    margin-top: 2rem;
}

.login-highlight {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #30375f;
    font-weight: 700;
}

.login-highlight i {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #6772ff;
    box-shadow: 0 8px 20px rgba(16, 20, 60, 0.08);
}

.login-note {
    max-width: 28rem;
    color: #7d84a0;
    font-size: 0.9rem;
    font-weight: 700;
}

.login-card {
    width: min(100%, 29rem);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(18, 24, 54, 0.08);
    border-radius: 1.5rem;
    box-shadow: 0 24px 70px rgba(16, 20, 60, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
}

.login-card-title {
    font-size: 1.85rem;
    letter-spacing: -0.03em;
}

.login-card-subtitle {
    color: #7d84a0;
    font-weight: 600;
}

.login-input-label {
    font-size: 0.92rem;
    font-weight: 800;
    color: #31375e;
}

.login-input {
    min-height: 3.3rem;
    border-radius: 1rem;
    border: 1px solid var(--wallet-border-light);
    background: #ffffff;
    color: #21243d;
    font-weight: 600;
    padding: 0.85rem 1rem;
    box-shadow: none;
}

.login-input:focus {
    border-color: #6772ff;
    box-shadow: 0 0 0 4px rgba(103, 114, 255, 0.1);
}

.login-submit-btn {
    min-height: 3.35rem;
    border: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, #6772ff, #5562f4);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 16px 30px rgba(103, 114, 255, 0.26);
}

.login-submit-btn:hover,
.login-submit-btn:focus-visible {
    background: linear-gradient(135deg, #5f69f2, #4c58e8);
    color: #ffffff;
}

.login-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.15rem;
    border-radius: 1rem;
    border: 1px solid var(--wallet-border-light);
    background: #ffffff;
    color: #4b57cf;
    font-weight: 800;
    text-align: center;
}

.login-inline-link {
    color: #5f69e8;
    font-weight: 700;
    text-decoration: none;
}

.login-inline-link:hover {
    color: #4e58d8;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #98a0bb;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--wallet-border-light);
}

.wallet-card {
    background: var(--wallet-surface-light);
    border: 1px solid var(--wallet-border-light);
    border-radius: var(--wallet-radius);
    box-shadow: var(--wallet-shadow);
}

.wallet-account-card {
    border-radius: 1.25rem;
    padding: 1.15rem;
    border: 1px solid var(--wallet-border-light);
    background: #fff;
    box-shadow: 0 10px 30px rgba(18, 23, 67, 0.04);
}

.price-line {
    letter-spacing: 0.15em;
    color: #e35b5b;
    opacity: 0.95;
    font-weight: 800;
    white-space: nowrap;
}

.wallet-action {
    border-radius: 999px;
    font-weight: 800;
    min-width: 102px;
}

.wallet-action.receive {
    background: #f59a5d;
    color: #fff;
    border: 0;
}

.wallet-action.send {
    background: #8fc6a4;
    color: #ffffff;
    border: 0;
}

.wallet-action.buy {
    background: #6f78ff;
    color: #ffffff;
    border: 0;
}

.wallet-utility-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.75);
    color: #5c628f;
}

.wallet-transactions-card {
    background: #ffffff;
    border: 1px solid var(--wallet-border-light);
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(18, 23, 67, 0.04);
}

.tx-row {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) minmax(
            120px,
            160px
        );
    gap: 1rem;
    align-items: center;
}

.tx-row + .tx-row {
    border-top: 1px solid var(--wallet-border-light);
}

.tx-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.tx-icon.sent {
    background: #f8e4e6;
    color: #dd747a;
}

.tx-icon.received {
    background: #dff2e4;
    color: #5ca46e;
}

.tx-icon.pending {
    background: #f8efd9;
    color: #c1842d;
}

.tx-icon.canceled {
    background: #eceef3;
    color: #8c93a6;
}

.tx-status,
.tx-meta,
.tx-amount {
    min-width: 0;
}

.tx-amount {
    text-align: right;
}

.tx-party {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.receive-modal-dialog {
    max-width: 420px;
}

.receive-modal-content {
    background: #f2f3f6;
    border-radius: 1.75rem;
}

.receive-close-btn {
    width: 2.75rem;
    height: 2.75rem;
    background: #e8eaf0;
    color: #4d536f;
    border: 0;
}

.receive-qr-card {
    background: #f7f8fa;
    border: 1px solid #e1e3ea;
}

.receive-address-text {
    font-size: 1.2rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.receive-btn-primary {
    background: #f5955b;
    color: #ffffff;
    border: 0;
}

.receive-btn-primary:hover,
.receive-btn-primary:focus {
    background: #ef894d;
    color: #ffffff;
}

.receive-more-btn {
    border: 0;
}

.receive-more-btn i {
    transition: transform 0.2s ease;
}

.receive-more-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.receive-more-btn:hover,
.receive-more-btn:focus {
    background: transparent;
}

.receive-more-panel {
    background: #e9ecf2;
    border: 1px solid #d8dce6;
}

.send-modal-dialog {
    max-width: 500px;
}

.send-modal-content {
    background: #f2f3f6;
    border-radius: 1.35rem;
}

.send-currency {
    font-size: 2.2rem;
    line-height: 1;
    color: #404660;
    font-weight: 600;
}

.send-value {
    font-size: 4.2rem;
    line-height: 0.95;
    color: #222741;
    letter-spacing: -0.03em;
}

.send-recipient-list {
    border-top: 1px solid #d8dce6;
    border-bottom: 1px solid #d8dce6;
}

.send-recipient-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.8rem 0;
}

.send-recipient-row + .send-recipient-row {
    border-top: 1px solid #e0e3eb;
}

.send-recipient-main {
    min-width: 0;
}

.send-recipient-icon {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.67rem;
    font-weight: 700;
}

.send-recipient-icon-a {
    background: #fbe3d6;
    color: #d37f55;
}

.send-recipient-icon-b {
    background: #dbe8ff;
    color: #6f8fc4;
}

.send-recipient-text {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.send-recipient-amount {
    font-size: 0.9rem;
}

.send-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
}

.send-note-card {
    background: #e9ecf2;
    border-radius: 0.95rem;
    padding: 0.8rem 0.95rem;
}

.send-confirm-btn {
    border-radius: 999px;
    color: #fff;
    border: 0;
    background: linear-gradient(90deg, #6a73ee 0%, #6774f4 100%);
    box-shadow: 0 10px 20px rgba(103, 116, 244, 0.25);
}

.send-confirm-btn:hover,
.send-confirm-btn:focus {
    color: #fff;
    background: linear-gradient(90deg, #5f68e7 0%, #5f6ced 100%);
}

.send-confirm-btn:disabled {
    opacity: 0.55;
    box-shadow: none;
}

.support-submit-btn {
    background: #f5955b;
    box-shadow: 0 10px 20px rgba(245, 149, 91, 0.28);
}

.support-submit-btn:hover,
.support-submit-btn:focus {
    background: #ef894d;
}

.send-unit-switch {
    background: #e3e6ed;
    border-radius: 999px;
    padding: 0.2rem;
}

.send-unit-btn {
    border: 0;
    border-radius: 999px !important;
    color: #4e5472;
    font-weight: 700;
    min-width: 76px;
}

.send-unit-btn.active {
    background: #ffffff;
    color: #242944;
    box-shadow: 0 3px 10px rgba(18, 23, 67, 0.08);
}

.send-compose-amount-line {
    display: inline-flex;
    align-items: flex-end;
    gap: 0.45rem;
    margin-bottom: 0.3rem;
}

.send-amount-input {
    width: auto;
    min-width: 6ch;
    max-width: 12ch;
    text-align: center;
    font-size: 3.2rem;
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 800;
    border: 0;
    padding: 0;
    background: transparent;
    color: #222741;
}

.send-amount-input:focus {
    box-shadow: none;
    background: transparent;
}

.send-amount-input::placeholder {
    color: #9aa0b7;
}

.send-compose-unit {
    font-size: 1.2rem;
    font-weight: 700;
    color: #49516f;
    margin-bottom: 0.45rem;
}

.contact-modal-dialog {
    max-width: 500px;
}

.contact-modal-content {
    background: #f2f3f6;
    border-radius: 1.35rem;
}

.contact-close-btn {
    color: #2d334d;
    border: 0;
    background: transparent;
}

.contact-link {
    color: #6875f5;
}

.contact-input {
    border-radius: 0.7rem;
    border: 1px solid #d7dbe5;
    background: #f9fafc;
    color: #252a42;
    font-weight: 500;
}

.contact-input:focus {
    border-color: #9ca6ff;
    box-shadow: 0 0 0 0.2rem rgba(103, 114, 255, 0.15);
}

.contact-textarea {
    min-height: 115px;
    resize: vertical;
}

.contact-cancel-btn {
    border-radius: 0.7rem;
    border: 1px solid #bcc2d3;
    background: #f1f3f8;
    color: #2a3048;
    font-weight: 700;
}

.contact-submit-btn {
    border-radius: 0.7rem;
    border: 0;
    background: #707cf7;
    color: #ffffff;
    font-weight: 700;
}

.contact-submit-btn:hover,
.contact-submit-btn:focus {
    background: #616df0;
    color: #ffffff;
}

.send-result-modal-dialog {
    max-width: 420px;
}

.send-result-modal-content {
    background: #f2f3f6;
    border-radius: 1.35rem;
}

.send-result-icon {
    width: 90px;
    height: 90px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.send-result-icon.success {
    color: #7f86f2;
    background: radial-gradient(
        circle,
        rgba(127, 134, 242, 0.25),
        rgba(127, 134, 242, 0.05)
    );
}

.send-result-icon.error {
    color: #de5f6f;
    background: radial-gradient(
        circle,
        rgba(222, 95, 111, 0.2),
        rgba(222, 95, 111, 0.06)
    );
}

.send-result-secondary-btn {
    border-radius: 999px;
    border: 0;
    background: #d9dce3;
    color: #31384f;
}

.send-result-secondary-btn:hover,
.send-result-secondary-btn:focus {
    background: #d1d4dc;
    color: #31384f;
}

.verification-modal-dialog {
    max-width: 460px;
}

.verification-modal-content {
    background: #f2f3f6;
    border-radius: 1.35rem;
}

.verification-instructions-gate-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(103, 116, 244, 0.1);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #6774f4;
}

.verification-instructions-section {
    margin-bottom: 1.25rem;
}

.verification-instructions-section:last-child {
    margin-bottom: 0;
}

.verification-instructions-section-heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8b92a5;
    margin-bottom: 0.5rem;
}

.verification-upload-row-wrap {
    display: block;
}

.verification-upload-row-wrap.is-hidden {
    display: none;
}

.verification-upload-row {
    min-height: 3.15rem;
    border: 1px solid #d7dbe5;
    border-radius: 0.7rem;
    background: #f9fafc;
    padding: 0.45rem 0.55rem 0.45rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: inherit;
    cursor: pointer;
}

.verification-upload-row:hover,
.verification-upload-row:focus-within {
    border-color: #c6ccdc;
}

.verification-upload-row-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1 1 auto;
}

.verification-upload-row-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: #1f2740;
}

.verification-upload-row-file {
    font-size: 0.77rem;
    color: #6e7395;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.verification-upload-row-preview {
    width: 2.2rem;
    height: 2.2rem;
    object-fit: cover;
    border-radius: 0.45rem;
    border: 1px solid #d9deea;
    background: #f3f5fa;
    flex: 0 0 auto;
}

.verification-upload-row-cta {
    flex: 0 0 auto;
    border: 1px solid #cfd5e1;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #2f3554;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.33rem 0.55rem;
}

.settings-modal-dialog {
    max-width: 520px;
}

.settings-modal-content {
    background: #f2f3f6;
    border-radius: 1.35rem;
}

.settings-card {
    border: 1px solid #d8dce6;
    border-radius: 1rem;
    overflow: hidden;
    background: #f7f8fa;
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.2rem;
}

.settings-row + .settings-row {
    border-top: 1px solid #d8dce6;
}

.settings-language-picker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: #e9ecf2;
}

.settings-language-option.sidebar-language-option {
    width: auto;
    height: auto;
    min-width: 0;
    margin: 0;
    padding: 0.38rem 0.52rem;
    border-radius: 999px;
    border: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    color: #46507a;
    font-weight: 700;
    line-height: 1;
}

.settings-language-option.sidebar-language-option img {
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    object-fit: cover;
}

.settings-language-option.sidebar-language-option.active {
    background: #ffffff;
    color: #2f3658;
    box-shadow: 0 4px 12px rgba(18, 24, 54, 0.1);
}

.settings-icon {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e38a55;
    background: #fbe6da;
}

.settings-ghost-icon {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 999px;
    border: 0;
    background: #e9ebf1;
    color: #636987;
}

.settings-switch {
    width: 2.7rem;
    height: 1.55rem;
    border-color: #cfd4e0;
    background-color: #e8eaf0;
}

.settings-switch:checked {
    background-color: #f29a5f;
    border-color: #f29a5f;
}

.edit-display-field {
    transition: color 0.2s ease;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.3rem;
    display: inline-block;
}

.edit-display-field:hover {
    background-color: rgba(103, 114, 255, 0.08);
}

.edit-display-field.d-none {
    display: none !important;
}

.edit-input-field {
    font-size: 1.25rem;
    font-weight: 600;
    border: 1px solid #d0d5e0;
    border-radius: 0.5rem;
    padding: 0.4rem 0.65rem;
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    height: auto;
    line-height: 1.5;
}

.edit-input-field:focus {
    border-color: #6772ff;
    box-shadow: 0 0 0 3px rgba(103, 114, 255, 0.1);
    outline: none;
}

.currency-select {
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid #d0d5e0;
    border-radius: 0.5rem;
    padding: 0.4rem 0.65rem;
    padding-right: 2rem;
    background: #ffffff
        url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236a77a0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e")
        right 0.5rem center/1.2em 1.2em no-repeat;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    height: auto;
    line-height: 1.5;
}

.currency-select:focus {
    border-color: #6772ff;
    box-shadow: 0 0 0 3px rgba(103, 114, 255, 0.1);
    outline: none;
}

.theme-toggle {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid var(--wallet-border-light);
    background: #fff;
    color: #73779d;
}

.mobile-menu-btn {
    border: 0;
    background: transparent;
    color: #4a4f75;
    padding: 0.1rem 0.2rem;
    line-height: 1;
}

.mobile-menu-btn i {
    font-size: 1.85rem;
    line-height: 1;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus-visible {
    color: #2d3258;
}

.mobile-menu-btn:focus-visible {
    outline: 2px solid rgba(103, 114, 255, 0.4);
    outline-offset: 3px;
    border-radius: 0.5rem;
}

/* ── Support Tickets – List Modal ──────────────────────────── */

.support-tickets-modal-dialog {
    max-width: 540px;
}

.support-tickets-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.support-ticket-item {
    background: var(--wallet-surface-light);
    border: 1px solid var(--wallet-border-light);
    border-radius: 0.9rem;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.18s ease;
}

.support-ticket-item:hover {
    background: #eef0f6;
}

.support-ticket-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

.support-ticket-ref {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--wallet-ink-light);
}

.support-ticket-status {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.18rem 0.62rem;
    border-radius: 999px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.support-ticket-status.open {
    background: #e8f5e9;
    color: #2e7d32;
}

.support-ticket-status.closed {
    background: #f0f0f0;
    color: #757575;
}

.support-ticket-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--wallet-muted-light);
    margin-bottom: 0.2rem;
}

.support-ticket-preview {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--wallet-muted-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-bottom: 0.2rem;
}

.support-ticket-date {
    font-size: 0.72rem;
    font-weight: 500;
    color: #b0b3c7;
}

.support-tickets-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--wallet-muted-light);
    font-size: 0.92rem;
    font-weight: 500;
}

/* ── Support Tickets – Chat Modal ──────────────────────────── */

.support-chat-modal-dialog {
    max-width: 540px;
}

.support-chat-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.support-chat-back-btn {
    border: 0;
    background: transparent;
    color: #4a4f75;
    padding: 0.25rem;
    line-height: 1;
    font-size: 1.25rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.support-chat-back-btn:hover {
    background: rgba(103, 114, 255, 0.08);
}

.support-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: #d1d4de transparent;
}

.support-chat-messages::-webkit-scrollbar {
    width: 5px;
}

.support-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.support-chat-messages::-webkit-scrollbar-thumb {
    background: #d1d4de;
    border-radius: 999px;
}

.support-chat-bubble {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    max-width: 80%;
    word-wrap: break-word;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.45;
}

.support-chat-bubble.user {
    align-self: flex-end;
    background: rgba(103, 114, 255, 0.12);
    color: var(--wallet-ink-light);
}

.support-chat-bubble.admin {
    align-self: flex-start;
    background: #f0f1f5;
    color: var(--wallet-ink-light);
}

.support-chat-time {
    font-size: 0.72rem;
    font-weight: 500;
    color: #b0b3c7;
    margin-top: 0.15rem;
    padding: 0 0.35rem;
}

.support-chat-time.user {
    text-align: right;
}

.support-chat-time.admin {
    text-align: left;
}

.support-chat-date-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: #b0b3c7;
}

.support-chat-date-divider::before,
.support-chat-date-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--wallet-border-light);
}

.support-chat-input-area {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border-top: 1px solid var(--wallet-border-light);
    padding: 0.85rem 0 0;
    margin-top: 0.5rem;
}

.support-chat-input {
    flex: 1;
    border-radius: 0.7rem;
    border: 1px solid #d7dbe5;
    background: #f9fafc;
    color: #252a42;
    font-weight: 500;
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.support-chat-input:focus {
    border-color: #9ca6ff;
    box-shadow: 0 0 0 0.2rem rgba(103, 114, 255, 0.15);
}

.support-chat-send-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 0.7rem;
    background: var(--wallet-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.support-chat-send-btn:hover {
    background: #5a64f0;
}

html[data-bs-theme="dark"] body {
    background: var(--wallet-bg-dark);
    color: var(--wallet-ink-dark);
}

[data-bs-theme="dark"] .wallet-loader {
    background:
        radial-gradient(
            circle at 15% -8%,
            rgba(103, 114, 255, 0.24),
            transparent 35%
        ),
        var(--wallet-bg-dark);
}

[data-bs-theme="dark"] .wallet-loader-card {
    background: var(--wallet-surface-dark);
    border-color: var(--wallet-border-dark);
}

[data-bs-theme="dark"] .wallet-loader-text {
    color: var(--wallet-muted-dark);
}
html[data-bs-theme="dark"] .wallet-sidebar {
    background: var(--wallet-sidebar-dark);
    border-right-color: rgba(255, 255, 255, 0.06);
}

html[data-bs-theme="dark"] .wallet-main {
    background:
        radial-gradient(
            circle at 12% -6%,
            rgba(91, 101, 255, 0.22),
            transparent 32%
        ),
        var(--wallet-bg-dark);
}

html[data-bs-theme="dark"] .login-page {
    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(103, 114, 255, 0.22),
            transparent 32%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(248, 155, 91, 0.12),
            transparent 24%
        ),
        var(--wallet-bg-dark);
}

html[data-bs-theme="dark"] .login-panel-brand {
    background: linear-gradient(
        180deg,
        rgba(26, 30, 76, 0.88),
        rgba(23, 27, 68, 0.55)
    );
    border-right-color: rgba(255, 255, 255, 0.06);
}

html[data-bs-theme="dark"] .login-badge {
    background: rgba(143, 153, 255, 0.16);
    color: #aeb6ff;
}

html[data-bs-theme="dark"] .login-subtitle,
html[data-bs-theme="dark"] .login-note,
html[data-bs-theme="dark"] .login-card-subtitle {
    color: #a1a6d5;
}

html[data-bs-theme="dark"] .login-highlight {
    color: #eef0ff;
}

html[data-bs-theme="dark"] .login-highlight i {
    background: rgba(255, 255, 255, 0.08);
    color: #aeb6ff;
    box-shadow: none;
}

html[data-bs-theme="dark"] .login-card {
    background: rgba(29, 34, 85, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

html[data-bs-theme="dark"] .login-input-label {
    color: #eef0ff;
}

html[data-bs-theme="dark"] .login-input,
html[data-bs-theme="dark"] .login-secondary-btn {
    background: #232850;
    border-color: rgba(255, 255, 255, 0.12);
    color: #eef0ff;
}

html[data-bs-theme="dark"] .login-input::placeholder {
    color: #98a0bb;
}

html[data-bs-theme="dark"] .login-divider {
    color: #8f95bb;
}

html[data-bs-theme="dark"] .login-divider::before,
html[data-bs-theme="dark"] .login-divider::after {
    background: rgba(255, 255, 255, 0.08);
}

html[data-bs-theme="dark"] .wallet-card,
html[data-bs-theme="dark"] .wallet-account-card {
    background: var(--wallet-surface-dark);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

html[data-bs-theme="dark"] .wallet-chip {
    background: rgba(255, 255, 255, 0.06);
    color: #8f99ff;
}

html[data-bs-theme="dark"] .wallet-chip.active {
    background: #6f78ff;
    color: #fff;
}

html[data-bs-theme="dark"] .wallet-menu-pill {
    color: #d7dcff;
}

html[data-bs-theme="dark"] .wallet-menu-pill.active {
    background: #3b271f;
    color: #ff9c56;
}

html[data-bs-theme="dark"] .wallet-menu-pill .btn.text-dark {
    color: inherit !important;
}

html[data-bs-theme="dark"] .sidebar-verification-card {
    background: linear-gradient(180deg, #2d315e 0%, #262a53 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

html[data-bs-theme="dark"] .sidebar-verification-hero::before {
    background: rgba(130, 120, 255, 0.18);
}

html[data-bs-theme="dark"] .sidebar-verification-doc {
    background: #f4f5fb;
    border-color: #d4d8f8;
}

html[data-bs-theme="dark"] .sidebar-verification-title {
    color: #eef0ff;
}

html[data-bs-theme="dark"] .sidebar-verified-badge {
    color: #c9f6dc;
    background: rgba(49, 148, 96, 0.2);
    border-color: rgba(111, 216, 160, 0.35);
}

html[data-bs-theme="dark"] .sidebar-verification-copy {
    color: #b6bbe2;
}

html[data-bs-theme="dark"] .sidebar-verification-status.state-not-uploaded {
    background: rgba(138, 143, 163, 0.2);
    color: #c6cbf2;
}

html[data-bs-theme="dark"] .sidebar-verification-status.state-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

html[data-bs-theme="dark"] .sidebar-verification-status.state-verified {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

html[data-bs-theme="dark"] .verification-timeline-marker.state-not-uploaded {
    background: rgba(138, 143, 163, 0.2);
    color: #c6cbf2;
}

html[data-bs-theme="dark"] .verification-timeline-marker.state-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

html[data-bs-theme="dark"] .verification-timeline-marker.state-verified {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

html[data-bs-theme="dark"] .verification-timeline-title {
    color: #eef0ff;
}

html[data-bs-theme="dark"] .verification-timeline-status {
    color: #b6bbe2;
}

html[data-bs-theme="dark"] .sidebar-verification-action {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: #eef0ff;
}

html[data-bs-theme="dark"] .sidebar-verification-action:hover,
html[data-bs-theme="dark"] .sidebar-verification-action:focus-visible {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.16);
}

html[data-bs-theme="dark"] .sidebar-verification-action-title {
    color: #eef0ff;
}

html[data-bs-theme="dark"] .sidebar-verification-action-subtitle {
    color: #aab0d6;
}

html[data-bs-theme="dark"] .sidebar-language-trigger {
    background: #232850;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

html[data-bs-theme="dark"] .sidebar-language-menu {
    background: #242b57;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

html[data-bs-theme="dark"] .wallet-action.send {
    background: #4f8d68;
    color: #eef7f2;
}

html[data-bs-theme="dark"] .wallet-action.buy {
    background: #5e67eb;
    color: #eef0ff;
}

html[data-bs-theme="dark"] .wallet-utility-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #c6cbf2;
}

html[data-bs-theme="dark"] .wallet-transactions-card {
    background: var(--wallet-surface-dark);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

html[data-bs-theme="dark"] .tx-row + .tx-row {
    border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-bs-theme="dark"] .receive-modal-content {
    background: #2a2f58;
}

html[data-bs-theme="dark"] .receive-close-btn {
    background: #3a406b;
    color: #d7dcff;
}

html[data-bs-theme="dark"] .receive-qr-card {
    background: #23284f;
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-bs-theme="dark"] .receive-more-panel {
    background: #343a66;
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-bs-theme="dark"] .send-modal-content {
    background: #2a2f58;
}

html[data-bs-theme="dark"] .send-currency,
html[data-bs-theme="dark"] .send-value {
    color: #eef0ff;
}

html[data-bs-theme="dark"] .send-recipient-list,
html[data-bs-theme="dark"] .send-recipient-row + .send-recipient-row,
html[data-bs-theme="dark"] .send-summary-row {
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-bs-theme="dark"] .send-note-card {
    background: #3a406c;
}

html[data-bs-theme="dark"] .send-unit-switch {
    background: #3a4069;
}

html[data-bs-theme="dark"] .send-unit-btn {
    color: #c9cff8;
}

html[data-bs-theme="dark"] .send-unit-btn.active {
    background: #4a5181;
    color: #eef0ff;
    box-shadow: none;
}

html[data-bs-theme="dark"] .send-amount-input,
html[data-bs-theme="dark"] .send-compose-unit {
    color: #eef0ff;
}

html[data-bs-theme="dark"] .send-amount-input::placeholder {
    color: #8f95bb;
}

html[data-bs-theme="dark"] .contact-modal-content {
    background: #2a2f58;
}

html[data-bs-theme="dark"] .contact-close-btn {
    color: #dce0ff;
}

html[data-bs-theme="dark"] .contact-input {
    background: #232850;
    border-color: rgba(255, 255, 255, 0.14);
    color: #eef0ff;
}

html[data-bs-theme="dark"] .contact-input::placeholder {
    color: #a5aad4;
}

html[data-bs-theme="dark"] .contact-cancel-btn {
    background: #3e456f;
    border-color: rgba(255, 255, 255, 0.2);
    color: #eef0ff;
}

html[data-bs-theme="dark"] .contact-link {
    color: #8f99ff;
}

html[data-bs-theme="dark"] .send-result-modal-content {
    background: #2a2f58;
}

html[data-bs-theme="dark"] .verification-instructions-gate-icon {
    background: rgba(103, 116, 244, 0.18);
}

html[data-bs-theme="dark"] .verification-modal-content {
    background: #2a2f58;
}

html[data-bs-theme="dark"] .verification-timeline-modal-content {
    background: #2a2f58;
}

html[data-bs-theme="dark"] .verification-upload-row {
    background: #232850;
    border-color: rgba(255, 255, 255, 0.16);
}

html[data-bs-theme="dark"] .verification-upload-row:hover,
html[data-bs-theme="dark"] .verification-upload-row:focus-within {
    border-color: rgba(255, 255, 255, 0.24);
}

html[data-bs-theme="dark"] .verification-upload-row-title {
    color: #eef0ff;
}

html[data-bs-theme="dark"] .verification-upload-row-file {
    color: #aeb3dc;
}

html[data-bs-theme="dark"] .verification-upload-row-preview {
    border-color: rgba(255, 255, 255, 0.14);
    background: #1f2448;
}

html[data-bs-theme="dark"] .verification-upload-row-cta {
    background: #2f355d;
    border-color: rgba(255, 255, 255, 0.16);
    color: #eef0ff;
}

html[data-bs-theme="dark"] .send-result-icon.success {
    color: #9ca3ff;
    background: radial-gradient(
        circle,
        rgba(121, 133, 255, 0.25),
        rgba(121, 133, 255, 0.06)
    );
}

html[data-bs-theme="dark"] .send-result-icon.error {
    color: #ff8ca0;
    background: radial-gradient(
        circle,
        rgba(255, 140, 160, 0.2),
        rgba(255, 140, 160, 0.05)
    );
}

html[data-bs-theme="dark"] .send-result-secondary-btn {
    background: #3e456f;
    color: #eef0ff;
}

html[data-bs-theme="dark"] .tx-icon.pending {
    background: #4a3d23;
    color: #ffd28d;
}

html[data-bs-theme="dark"] .tx-icon.canceled {
    background: #3a3f64;
    color: #c3c9de;
}

html[data-bs-theme="dark"] .settings-modal-content {
    background: #2a2f58;
}

html[data-bs-theme="dark"] .settings-card {
    background: #313762;
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-bs-theme="dark"] .settings-row + .settings-row {
    border-top-color: rgba(255, 255, 255, 0.12);
}

html[data-bs-theme="dark"] .settings-language-picker {
    background: #434a77;
}

html[data-bs-theme="dark"] .settings-language-option.sidebar-language-option {
    color: #cfd5ff;
}

html[data-bs-theme="dark"]
    .settings-language-option.sidebar-language-option.active {
    background: #2f365e;
    color: #eef0ff;
    box-shadow: none;
}

html[data-bs-theme="dark"] .settings-icon {
    background: #4a3d3a;
    color: #ffb487;
}

html[data-bs-theme="dark"] .settings-ghost-icon {
    background: #434a77;
    color: #d7dcff;
}

html[data-bs-theme="dark"] .settings-switch {
    border-color: rgba(255, 255, 255, 0.22);
    background-color: #444b75;
}

html[data-bs-theme="dark"] .settings-switch:checked {
    background-color: #f29a5f;
    border-color: #f29a5f;
}

html[data-bs-theme="dark"] .edit-display-field:hover {
    background-color: rgba(103, 114, 255, 0.12);
}

html[data-bs-theme="dark"] .edit-input-field {
    background: #232850;
    border-color: rgba(255, 255, 255, 0.14);
    color: #eef0ff;
}

html[data-bs-theme="dark"] .edit-input-field:focus {
    border-color: #6772ff;
    box-shadow: 0 0 0 3px rgba(103, 114, 255, 0.2);
}

html[data-bs-theme="dark"] .currency-select {
    background-color: #232850;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23a1a6d5' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    border-color: rgba(255, 255, 255, 0.14);
    color: #eef0ff;
}

html[data-bs-theme="dark"] .currency-select:focus {
    border-color: #6772ff;
    box-shadow: 0 0 0 3px rgba(103, 114, 255, 0.2);
}

html[data-bs-theme="dark"] .currency-select option {
    background: #232850;
    color: #eef0ff;
}

html[data-bs-theme="dark"] .receive-more-btn {
    color: #d7dcff !important;
}

html[data-bs-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #c4c8ef;
}

html[data-bs-theme="dark"] .mobile-menu-btn {
    color: #d2d7ff;
}

html[data-bs-theme="dark"] .mobile-menu-btn:hover,
html[data-bs-theme="dark"] .mobile-menu-btn:focus-visible {
    color: #f1f3ff;
}

html[data-bs-theme="dark"] .text-body-tertiary,
html[data-bs-theme="dark"] .text-secondary {
    color: var(--wallet-muted-dark) !important;
}

html[data-bs-theme="dark"] .text-dark {
    color: var(--wallet-ink-dark) !important;
}

html[data-bs-theme="dark"] .text-primary {
    color: #8f99ff !important;
}

/* ── Support Tickets – Dark Mode ───────────────────────────── */

html[data-bs-theme="dark"] .support-ticket-item {
    background: var(--wallet-surface-dark);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-bs-theme="dark"] .support-ticket-item:hover {
    background: #232850;
}

html[data-bs-theme="dark"] .support-ticket-ref {
    color: var(--wallet-ink-dark);
}

html[data-bs-theme="dark"] .support-ticket-status.open {
    background: rgba(46, 125, 50, 0.18);
    color: #81c784;
}

html[data-bs-theme="dark"] .support-ticket-status.closed {
    background: rgba(255, 255, 255, 0.08);
    color: #9e9e9e;
}

html[data-bs-theme="dark"] .support-ticket-category {
    color: var(--wallet-muted-dark);
}

html[data-bs-theme="dark"] .support-ticket-preview {
    color: var(--wallet-muted-dark);
}

html[data-bs-theme="dark"] .support-ticket-date {
    color: #6e74a4;
}

html[data-bs-theme="dark"] .support-tickets-empty {
    color: var(--wallet-muted-dark);
}

html[data-bs-theme="dark"] .support-chat-back-btn {
    color: #d2d7ff;
}

html[data-bs-theme="dark"] .support-chat-back-btn:hover {
    background: rgba(143, 153, 255, 0.12);
}

html[data-bs-theme="dark"] .support-chat-bubble.user {
    background: rgba(103, 114, 255, 0.2);
    color: #eef0ff;
}

html[data-bs-theme="dark"] .support-chat-bubble.admin {
    background: var(--wallet-surface-dark);
    color: var(--wallet-ink-dark);
}

html[data-bs-theme="dark"] .support-chat-time {
    color: #6e74a4;
}

html[data-bs-theme="dark"] .support-chat-date-divider {
    color: #6e74a4;
}

html[data-bs-theme="dark"] .support-chat-date-divider::before,
html[data-bs-theme="dark"] .support-chat-date-divider::after {
    background: rgba(255, 255, 255, 0.08);
}

html[data-bs-theme="dark"] .support-chat-messages {
    scrollbar-color: #3a406b transparent;
}

html[data-bs-theme="dark"] .support-chat-messages::-webkit-scrollbar-thumb {
    background: #3a406b;
}

html[data-bs-theme="dark"] .support-chat-input-area {
    border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-bs-theme="dark"] .support-chat-input {
    background: #232850;
    border-color: rgba(255, 255, 255, 0.14);
    color: #eef0ff;
}

html[data-bs-theme="dark"] .support-chat-input::placeholder {
    color: #a5aad4;
}

html[data-bs-theme="dark"] .support-chat-input:focus {
    border-color: rgba(143, 153, 255, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(103, 114, 255, 0.18);
}

@media (max-width: 991.98px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-panel {
        padding: 1.25rem;
    }

    .login-panel-brand {
        border-right: 0;
        border-bottom: 1px solid rgba(18, 24, 54, 0.06);
        gap: 2rem;
    }

    .login-badge {
        margin-top: 1.4rem;
    }

    .login-title {
        font-size: 2.5rem;
    }

    .login-card {
        width: 100%;
        padding: 1.35rem;
    }

    .wallet-topbar {
        margin-bottom: 1rem !important;
        gap: 0.8rem !important;
    }

    .wallet-title-row {
        width: 100%;
        justify-content: flex-start;
    }

    .wallet-top-actions {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.55rem !important;
        overflow-x: auto;
        padding-bottom: 0.2rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .wallet-top-actions::-webkit-scrollbar {
        display: none;
    }

    .wallet-top-actions .wallet-chip {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 1rem;
        padding: 0.55rem 0.95rem;
    }

    .wallet-sidebar {
        width: 100%;
        min-height: auto;
        border-right: none;
    }

    .wallet-main {
        min-height: auto;
    }

    .wallet-account-card .vr {
        display: none;
    }

    .wallet-action {
        min-width: 0;
        flex: 1 1 auto;
    }

    .wallet-transactions-card {
        border-radius: 1rem;
    }

    .tx-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .tx-amount {
        text-align: left;
    }

    .tx-party {
        white-space: normal;
        overflow: visible;
    }

    .modal .modal-dialog {
        max-width: 100%;
        width: 100%;
        height: 100%;
        margin: 0;
    }

    .modal .modal-content {
        min-height: 100%;
        border-radius: 0;
    }

    .modal .modal-body {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }

    .receive-address-text {
        font-size: 1rem;
    }

    .send-currency {
        font-size: 1.9rem;
    }

    .send-value {
        font-size: 3.6rem;
    }

    .send-amount-input {
        max-width: 10ch;
        font-size: 2.5rem;
    }
}

/* ─── My Tickets ─────────────────────────────────────────── */

.ticket-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #e53e3e;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    margin-left: 6px;
    vertical-align: middle;
}

.ticket-list-row {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #f9fafc;
    border: 1px solid #d7dbe5;
    border-radius: 0.7rem;
    padding: 13px 15px;
    margin-bottom: 10px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
}

.ticket-list-row:hover {
    background: #f3f5fa;
    border-color: #c6ccdc;
}

.ticket-list-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.ticket-list-ref {
    font-weight: 900;
    font-size: 1.15rem;
    color: #1f2740;
    letter-spacing: -0.02em;
}

.ticket-list-category {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: #eceef3;
    color: #2f3554;
    white-space: nowrap;
    border: 1px solid #d7dbe5;
}

.ticket-list-date {
    font-size: 0.78rem;
    font-weight: 700;
    color: #6e7395;
}

.ticket-unread-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e53e3e;
    margin-left: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Ticket chat bubbles */
.ticket-bubble-wrap {
    display: flex;
    margin-bottom: 10px;
}

.ticket-bubble-wrap.bubble-admin {
    justify-content: flex-start;
}

.ticket-bubble-wrap.bubble-user {
    justify-content: flex-end;
}

.ticket-bubble {
    max-width: 100%;
    padding: 9px 13px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
    word-break: break-word;
}

.ticket-bubble-wrap.bubble-admin .ticket-bubble {
    background: rgb(255 255 255);
    color: rgb(0 0 0);
}

.ticket-bubble-wrap.bubble-user .ticket-bubble {
    background: rgb(255 255 255);
    color: rgb(0 0 0);
}

.ticket-bubble-sender {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 4px;
    opacity: 0.7;
}

.ticket-bubble-date {
    font-size: 0.68rem;
    opacity: 0.55;
    margin-top: 4px;
    text-align: right;
}

/* Dark mode */
html[data-bs-theme="dark"] .ticket-list-row {
    background: #232850;
    border-color: rgba(255, 255, 255, 0.16);
}

html[data-bs-theme="dark"] .ticket-list-row:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background: #232850;
}

html[data-bs-theme="dark"] .ticket-list-ref {
    color: #eef0ff;
}

html[data-bs-theme="dark"] .ticket-list-category {
    background: #2f355d;
    color: #eef0ff;
    border-color: rgba(255, 255, 255, 0.16);
}

html[data-bs-theme="dark"] .ticket-list-date {
    color: #aeb3dc;
}

html[data-bs-theme="dark"] .ticket-bubble-wrap.bubble-admin .ticket-bubble {
    background: #1e2247;
    color: #eef0ff;
}

html[data-bs-theme="dark"] .ticket-bubble-wrap.bubble-user .ticket-bubble {
    background: #1e2247;
    color: #eef0ff;
}
