@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/nunito.woff2') format('woff2');
}

.font-nunito,
body.font-nunito {
    font-family: 'Nunito', ui-sans-serif, system-ui, sans-serif;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    min-width: 230px;
    border-radius: 0.375rem;
    border: 1px solid #ebedf2;
    background: #fff;
    padding: 0.5rem 0;
    box-shadow: 0 12px 30px rgba(14, 23, 38, 0.12);
}

.dropdown-menu[hidden] {
    display: none;
}

.header-dropdown-menu,
.header-user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    min-width: 200px;
    border-radius: 0.375rem;
    border: 1px solid #ebedf2;
    background: #fff;
    padding: 0.5rem 0;
    box-shadow: 0 12px 30px rgba(14, 23, 38, 0.12);
}

.header-dropdown-menu[hidden],
.header-user-menu[hidden] {
    display: none;
}

.header-dropdown-menu li span,
.header-dropdown-active {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    font-weight: 600;
    color: #4361ee;
    background: rgba(67, 97, 238, 0.1);
}

.header-user-menu {
    min-width: 240px;
}

.header-user-head {
    padding: 0.75rem 1rem;
}

.header-user-divider {
    margin: 0.375rem 0;
    border-top: 1px solid #ebedf2;
}

.header-user-menu li a,
.header-user-menu li button {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.625rem 1rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
}

.header-user-menu li a:hover,
.header-user-menu li button:hover {
    color: #4361ee;
}

.header-user-menu li a.text-danger {
    color: #e7515a;
}

.dropdown-menu li a,
.dropdown-menu li button {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.625rem 1rem;
    font-weight: 600;
    color: #3b3f5c;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
}

.dropdown-menu li a:hover {
    background: rgba(67, 97, 238, 0.08);
    color: #4361ee;
}

.dropdown-divider {
    margin: 0.375rem 0;
    border-top: 1px solid #ebedf2;
}

.dropdown-head {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #ebedf2;
}

.deposit-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    background: rgba(14, 23, 38, 0.45);
    padding: 1rem;
}

.deposit-modal[hidden] {
    display: none;
}

.platform-card {
    position: relative;
}

.main-logo {
    line-height: 0;
}

.site-logo {
    display: block;
    width: auto;
    object-fit: contain;
    object-position: left center;
}

.site-logo--icon {
    height: 2.5rem;
    max-width: 2.5rem;
}

.site-logo--wide {
    height: 4rem;
    max-width: 14rem;
}

.site-logo-desktop.site-logo--icon {
    height: 2.5rem;
    max-width: 2.5rem;
}

.site-logo-desktop.site-logo--wide {
    height: 4.75rem;
    max-width: 17rem;
}

@media (min-width: 1280px) {
    .site-logo--wide {
        height: 4.25rem;
        max-width: 15rem;
    }

    .site-logo-desktop.site-logo--wide {
        height: 5rem;
        max-width: 18rem;
    }
}

.platform-logo {
    display: block;
    flex-shrink: 0;
}

.platform-card-loader {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.08);
    border-radius: inherit;
}

.platform-card-loader.hidden {
    display: none;
}

.platform-card .btn svg {
    margin-right: 0.35rem;
}

.custom-select .form-select {
    background-position: right 0.75rem center;
}

/* Dark mode — smsalmak / VRIST palette (arbitrary Tailwind dark: classes are not in vrist.css) */
.dark {
    color-scheme: dark;
}

.dark .main-section,
.dark .main-container {
    background-color: #060818;
    color: #888ea8;
}

.dark header .shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.dark .header-dropdown-menu,
.dark .header-user-menu,
.dark .dropdown-menu {
    background-color: #0e1726;
    border-color: #191e3a;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.dark .header-dropdown-menu li span,
.dark .header-dropdown-active {
    background: rgba(67, 97, 238, 0.14);
    color: #4361ee;
}

.dark .header-user-divider,
.dark .dropdown-divider,
.dark .dropdown-head {
    border-color: #191e3a;
}

.dark .header-user-menu li a,
.dark .header-user-menu li button,
.dark .dropdown-menu li a,
.dark .dropdown-menu li button {
    color: #888ea8;
}

.dark .header-user-menu li a:hover,
.dark .header-user-menu li button:hover,
.dark .dropdown-menu li a:hover {
    color: #4361ee;
    background: rgba(67, 97, 238, 0.08);
}

.dark .header-user-head h4,
.dark .header-user-head h4 strong {
    color: #e0e6ed !important;
}

.dark .header-user-head .text-black\/60,
.dark .header-user-head strong.text-black\/60,
.dark .header-user-head span.text-black\/60 {
    color: #888ea8 !important;
}

.dark .platform-card {
    background-color: #191e3a !important;
    border-color: #1b2e4b !important;
    box-shadow: none !important;
}

.dark .platform-card-loader {
    background: rgba(0, 0, 0, 0.35);
}

.dark [data-platform-search-wrap] .flex > div:first-child {
    background-color: #1b2e4b !important;
    border-color: #17263c !important;
    color: #888ea8;
}

.dark .platform-card h5 {
    color: #e0e6ed !important;
}

.dark .platform-card .font-semibold,
.dark .platform-card .text-sm,
.dark .text-gray-500 {
    color: #888ea8 !important;
}

.dark .platform-card [data-price],
.dark .platform-card [data-total-price],
.dark .platform-card [data-stock-wrap]:not(.text-danger) [data-stock] {
    color: #e0e6ed;
}

.dark .panel h5,
.dark .panel h6,
.dark .deposit-modal h5 {
    color: #e0e6ed;
}

.dark .panel form.rounded-md.border,
.dark .panel .grid .rounded-md.border {
    background-color: #0e1726;
    border-color: #191e3a !important;
}

.dark .panel .flex.h-11.w-11.items-center.justify-center.overflow-hidden.rounded-md.border {
    background-color: #121e32;
    border-color: #191e3a !important;
}

.dark table tbody td {
    color: #888ea8;
}

.dark table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.dark .deposit-modal {
    background: rgba(0, 0, 0, 0.72);
}

.dark label {
    color: #888ea8;
}

.dark .form-checkbox,
.dark .form-radio {
    background-color: #121e32;
    border-color: #253b5c;
}

.dark .btn-outline-primary:not(:hover):not(:disabled) {
    background-color: transparent;
    color: #4361ee;
    border-color: #4361ee;
}

.dark .btn-outline-primary:hover:not(:disabled) {
    background-color: #4361ee;
    color: #fff;
}

.dark .nav-link .text-black {
    color: #506690 !important;
}

.dark .nav-link.active .text-black,
.dark .nav-link:hover .text-black {
    color: #888ea8 !important;
}

/* ===== Admin panel layout ===== */
.admin-body {
    margin: 0;
    background: #fafafa;
    color: #3b3f5c;
}

.dark .admin-body {
    background: #060818;
    color: #888ea8;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.admin-sidebar {
    display: none;
    width: 260px;
    flex-shrink: 0;
    border-right: 1px solid #ebedf2;
    background: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.dark .admin-sidebar {
    background: #0e1726;
    border-color: #191e3a;
}

.admin-sidebar-head {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid #ebedf2;
}

.dark .admin-sidebar-head {
    border-color: #191e3a;
}

.admin-sidebar-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
    color: #4361ee;
}

.admin-sidebar-user {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: #888ea8;
    word-break: break-all;
}

.admin-nav {
    padding: 0.75rem;
}

.admin-nav-link {
    display: block;
    margin-bottom: 0.25rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 600;
    color: #3b3f5c;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}

.dark .admin-nav-link {
    color: #888ea8;
}

.admin-nav-link:hover {
    background: rgba(67, 97, 238, 0.08);
    color: #4361ee;
}

.admin-nav-link.is-active {
    background: rgba(67, 97, 238, 0.12);
    color: #4361ee;
}

.admin-nav-link--muted {
    margin-top: 1rem;
}

.admin-nav-link--danger {
    color: #e7515a;
}

.admin-nav-link--danger:hover {
    background: rgba(231, 81, 90, 0.1);
    color: #e7515a;
}

.admin-main {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.admin-mobile-header {
    display: block;
    border-bottom: 1px solid #ebedf2;
    background: #fff;
    padding: 1rem 1.25rem;
}

.dark .admin-mobile-header {
    background: #0e1726;
    border-color: #191e3a;
}

.admin-mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.admin-mobile-actions {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-mobile-actions a {
    text-decoration: none;
    color: #888ea8;
}

.admin-mobile-tabs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.admin-mobile-tab {
    flex-shrink: 0;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.6);
    color: #888ea8;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.dark .admin-mobile-tab {
    background: rgba(255, 255, 255, 0.06);
}

.admin-mobile-tab.is-active {
    background: #4361ee;
    color: #fff;
}

.admin-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem;
}

.admin-page-head {
    margin-bottom: 1.5rem;
}

.admin-page-head h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0e1726;
}

.dark .admin-page-head h1 {
    color: #e0e6ed;
}

.admin-page-head p {
    margin: 0.35rem 0 0;
    color: #888ea8;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.admin-form-grid--3 {
    grid-template-columns: 1fr;
}

.admin-form-grid--5 {
    grid-template-columns: 1fr;
}

.admin-form-actions {
    display: flex;
    align-items: flex-end;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #ebedf2;
    text-align: left;
    vertical-align: middle;
}

.dark .admin-table th,
.dark .admin-table td {
    border-color: #191e3a;
}

.admin-table th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888ea8;
}

.admin-table tbody tr:hover {
    background: rgba(67, 97, 238, 0.04);
}

.admin-flash {
    margin-bottom: 1rem;
}

.admin-flash--error {
    border: 1px solid rgba(231, 81, 90, 0.3);
    background: rgba(231, 81, 90, 0.08);
    color: #e7515a;
}

.admin-flash--success {
    border: 1px solid rgba(0, 171, 85, 0.3);
    background: rgba(0, 171, 85, 0.08);
    color: #00ab55;
}

.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.admin-login-wrap {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .admin-content {
        padding: 1.5rem 2rem;
    }

    .admin-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-form-grid--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-form-grid--5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.admin-section {
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .admin-form-grid--5 .admin-form-span-2 {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .admin-sidebar {
        display: block;
    }

    .admin-mobile-header {
        display: none;
    }

    .admin-form-grid--5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .admin-stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Profile page */
.profile-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.profile-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0e1726;
}

.dark .profile-title {
    color: #e0e6ed;
}

.profile-subtitle {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
}

.profile-balance-box {
    border-radius: 0.375rem;
    background: rgba(67, 97, 238, 0.1);
    padding: 0.5rem 1rem;
    text-align: right;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.profile-form {
    border: 1px solid #ebedf2;
    border-radius: 0.375rem;
    padding: 1.25rem;
    display: grid;
    gap: 1rem;
}

.dark .profile-form {
    border-color: #191e3a;
    background: #0e1726;
}

.profile-api-panel {
    margin-top: 1.25rem;
}

.profile-api-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.profile-api-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.profile-api-copy {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.profile-api-copy .form-input {
    flex: 1;
    font-family: ui-monospace, monospace;
    font-size: 0.8125rem;
}

.profile-api-docs {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.375rem;
    background: rgba(67, 97, 238, 0.06);
    border: 1px solid rgba(67, 97, 238, 0.12);
}

.dark .profile-api-docs {
    background: rgba(67, 97, 238, 0.08);
    border-color: #191e3a;
}

.profile-api-docs-title {
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.profile-api-code {
    display: block;
    padding: 0.75rem;
    border-radius: 0.375rem;
    background: #fff;
    font-size: 0.75rem;
    word-break: break-all;
}

.dark .profile-api-code {
    background: #121e32;
    color: #888ea8;
}

.profile-api-list {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
    color: #888ea8;
    font-size: 0.875rem;
}

.profile-api-empty {
    padding: 1.25rem;
    border-radius: 0.375rem;
    border: 1px dashed #ebedf2;
    text-align: center;
}

.dark .profile-api-empty {
    border-color: #191e3a;
}

.admin-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.payment-grid--dual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .payment-grid--dual {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.wallet-banner {
    background: linear-gradient(135deg, #4361ee 0%, #805dca 100%);
    border-radius: 12px;
    padding: 24px;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 12px 30px rgba(67, 97, 238, 0.25);
}

.wallet-banner-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wallet-banner-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.wallet-label {
    display: block;
    opacity: 0.9;
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 0.875rem;
}

.wallet-amount {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.panel-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
    color: #0e1726;
}

.panel-subtitle {
    margin: 4px 0 0;
    color: #888ea8;
    font-weight: 600;
}

.payment-card {
    border: 1px solid #ebedf2;
    border-radius: 8px;
    padding: 18px;
    background: #fff;
}

.payment-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.payment-logo-wrap {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 12px;
    background: #f8f9fc;
    border: 1px solid #ebedf2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.payment-logo {
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
    display: block;
}

.payment-logo-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.75rem;
    color: #4361ee;
}

.payment-card h3 {
    margin: 0 0 2px;
    font-size: 1rem;
    font-weight: 800;
    color: #0e1726;
}

.payment-group {
    margin: 0;
    font-size: 12px;
    color: #888ea8;
    font-weight: 700;
    text-transform: uppercase;
}

.payment-limits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #888ea8;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 13px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.status-active {
    background: #ecfdf5;
    color: #00ab55;
}

.status-passive {
    background: #fff5f5;
    color: #e7515a;
}

.payment-card-disabled {
    opacity: 0.65;
}

.payment-select {
    width: 100%;
}

.payment-picker-card {
    max-width: 520px;
}

.payment-picker-subtitle {
    margin: 0 0 1rem;
    color: #888ea8;
    font-size: 0.8125rem;
    font-weight: 600;
}

.payment-grid--picker {
    display: grid;
    gap: 0.75rem;
}

.modal-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(14, 23, 38, 0.18);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #ebedf2;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
}

.modal-close {
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #888ea8;
}

.modal-body {
    padding: 20px;
}

.modal-balance {
    margin: 8px 0 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(67, 97, 238, 0.1);
    color: #4361ee;
    font-weight: 700;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.field-hint {
    display: block;
    margin-top: 6px;
    color: #888ea8;
    font-weight: 600;
    font-size: 12px;
}

.deposit-input {
    width: 100%;
    display: block;
}

.deposit-input--amount {
    font-size: 1rem;
    font-weight: 700;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.deposit-input--amount::-webkit-outer-spin-button,
.deposit-input--amount::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.deposit-input--amount[type='number'] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.dark .deposit-modal .form-input,
.dark .deposit-modal .deposit-input {
    background-color: #121e32;
    border-color: #253b5c;
    color: #e0e6ed;
}

.dark .deposit-modal .form-input:read-only,
.dark .deposit-modal .deposit-input:read-only {
    color: #888ea8;
}

.dark .deposit-modal label {
    color: #888ea8;
}

.dark .payment-card {
    background: #191e3a;
    border-color: #1b2e4b;
}

.dark .payment-logo-wrap {
    background: #121e32;
    border-color: #191e3a;
}

.dark .payment-card h3 {
    color: #e0e6ed;
}

.dark .panel-subtitle {
    color: #888ea8;
}

.dark .deposit-modal .modal-card {
    background: #0e1726;
    color: #888ea8;
}

.dark .payment-picker-modal .payment-picker-subtitle {
    color: #888ea8;
}

.dark .deposit-modal .modal-header {
    border-color: #191e3a;
}

.dark .deposit-modal .modal-header h3 {
    color: #e0e6ed;
}

.site-notices {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(100vw - 2rem, 380px);
    pointer-events: none;
}

.site-notice {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.95rem 2.75rem 0.95rem 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(67, 97, 238, 0.18);
    background: #fff;
    box-shadow: 0 14px 40px rgba(14, 23, 38, 0.12);
    overflow: hidden;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(1.25rem);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.site-notice.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.site-notice.is-leaving {
    opacity: 0;
    transform: translateX(1.25rem);
}

.site-notice-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(67, 97, 238, 0.1);
    color: #4361ee;
}

.site-notice-body {
    min-width: 0;
    flex: 1;
    padding-top: 0.15rem;
}

.site-notice-text {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.45;
    color: #0e1726;
}

.site-notice-close {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 1.75rem;
    height: 1.75rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #888ea8;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-notice-close:hover {
    background: rgba(136, 142, 168, 0.12);
    color: #0e1726;
}

.site-notice-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    transform-origin: left center;
    animation: site-notice-progress 5.2s linear forwards;
    background: currentColor;
    opacity: 0.35;
}

.site-notice--success {
    border-color: rgba(0, 171, 85, 0.22);
}

.site-notice--success .site-notice-icon {
    background: rgba(0, 171, 85, 0.12);
    color: #00ab55;
}

.site-notice--success .site-notice-progress {
    color: #00ab55;
}

.site-notice--error {
    border-color: rgba(231, 81, 90, 0.22);
}

.site-notice--error .site-notice-icon {
    background: rgba(231, 81, 90, 0.12);
    color: #e7515a;
}

.site-notice--error .site-notice-progress {
    color: #e7515a;
}

.site-notice--warning {
    border-color: rgba(226, 160, 63, 0.28);
}

.site-notice--warning .site-notice-icon {
    background: rgba(226, 160, 63, 0.14);
    color: #e2a03f;
}

.site-notice--warning .site-notice-progress {
    color: #e2a03f;
}

.site-notice--info .site-notice-progress {
    color: #4361ee;
}

.dark .site-notice {
    background: #0e1726;
    border-color: #253b5c;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.dark .site-notice-text {
    color: #e0e6ed;
}

.dark .site-notice-close:hover {
    background: rgba(136, 142, 168, 0.16);
    color: #e0e6ed;
}

@keyframes site-notice-progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

.payment-wallet-note {
    margin: 0 0 12px;
    color: #888ea8;
    font-size: 0.875rem;
    line-height: 1.45;
}

.modal-card--wallet {
    max-width: 480px;
}

.wallet-deposit-body {
    padding-top: 0.5rem;
}

.wallet-deposit-loading {
    display: grid;
    place-items: center;
    gap: 0.75rem;
    min-height: 220px;
    color: #888ea8;
    font-weight: 700;
}

.wallet-deposit-loading[hidden],
.wallet-deposit-content[hidden],
.wallet-deposit-watch[hidden] {
    display: none !important;
}

.wallet-deposit-spinner {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 3px solid rgba(67, 97, 238, 0.18);
    border-top-color: #4361ee;
    animation: wallet-spin 0.8s linear infinite;
}

.wallet-deposit-method {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.wallet-deposit-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(67, 97, 238, 0.12);
    color: #4361ee;
    font-size: 0.8125rem;
    font-weight: 800;
}

.wallet-deposit-network {
    color: #888ea8;
    font-size: 0.8125rem;
    font-weight: 700;
}

.wallet-qr-wrap {
    display: grid;
    place-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #ebedf2;
}

.wallet-address-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.wallet-address-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.wallet-address-row .form-input {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
}

.wallet-deposit-info {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    background: rgba(67, 97, 238, 0.08);
    color: #4361ee;
}

.wallet-deposit-info ul {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
}

.wallet-deposit-info li + li {
    margin-top: 0.25rem;
}

.wallet-deposit-watch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0 0;
    font-weight: 700;
}

.wallet-deposit-watch-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    background: #00ab55;
    animation: wallet-watch-pulse 1.2s ease-in-out infinite;
}

@keyframes wallet-watch-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.45;
        transform: scale(0.85);
    }
}

.admin-wallet-muted {
    color: #888ea8;
    font-size: 0.8125rem;
}

.admin-wallet-help {
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid #ebedf2;
    border-radius: 12px;
    background: rgba(67, 97, 238, 0.04);
}

.admin-wallet-help-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 800;
}

.admin-wallet-help-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #888ea8;
    line-height: 1.6;
}

.admin-wallet-help-list li + li {
    margin-top: 0.35rem;
}

.admin-wallet-card--full {
    margin-bottom: 1rem;
}

.admin-wallet-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-wallet-stat {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #ebedf2;
    background: #fff;
}

.admin-wallet-stat--primary {
    border-color: rgba(67, 97, 238, 0.28);
    background: rgba(67, 97, 238, 0.06);
}

.admin-wallet-stat-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #888ea8;
}

.admin-wallet-stat-value {
    display: block;
    font-size: 1.35rem;
    line-height: 1.2;
}

.admin-wallet-stat small {
    display: block;
    margin-top: 0.35rem;
    color: #888ea8;
    font-size: 0.75rem;
}

.admin-wallet-main-address {
    padding: 1rem;
    border-radius: 12px;
    border: 1px dashed #d8dbe5;
    background: rgba(136, 142, 168, 0.06);
}

.dark .admin-wallet-help {
    border-color: #253b5c;
    background: rgba(67, 97, 238, 0.08);
}

.dark .admin-wallet-stat {
    background: #0e1726;
    border-color: #253b5c;
}

.dark .admin-wallet-main-address {
    border-color: #253b5c;
    background: rgba(136, 142, 168, 0.08);
}

@media (max-width: 1100px) {
    .admin-wallet-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .admin-wallet-stats {
        grid-template-columns: 1fr;
    }
}

.admin-wallet-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-wallet-card {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #ebedf2;
    background: rgba(67, 97, 238, 0.04);
}

.admin-wallet-card--info {
    margin-bottom: 1rem;
    background: rgba(226, 160, 63, 0.08);
    border-color: rgba(226, 160, 63, 0.25);
}

.admin-wallet-card--warn {
    margin-bottom: 1rem;
    background: rgba(231, 81, 90, 0.08);
    border-color: rgba(231, 81, 90, 0.25);
}

.admin-wallet-card--main {
    border-color: rgba(67, 97, 238, 0.28);
    background: rgba(67, 97, 238, 0.08);
}

.admin-wallet-info-text {
    margin: 0;
    line-height: 1.5;
    color: #888ea8;
}

.admin-wallet-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #888ea8;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-wallet-address,
.admin-wallet-address-sm {
    display: block;
    word-break: break-all;
    font-size: 0.8125rem;
}

.admin-wallet-balances {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
    font-weight: 700;
}

.admin-wallet-balances--lg {
    font-size: 1.125rem;
}

.admin-wallet-withdraw-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.admin-wallet-withdraw-action {
    margin-bottom: 0;
}

.dark .wallet-qr-wrap {
    background: #121e32;
    border-color: #253b5c;
}

.dark .admin-wallet-card {
    background: rgba(67, 97, 238, 0.08);
    border-color: #253b5c;
}

@keyframes wallet-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .admin-wallet-grid,
    .admin-wallet-withdraw-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .wallet-address-row {
        flex-direction: column;
    }
}


@media (max-width: 640px) {
    .site-notices {
        left: 1rem;
        right: 1rem;
        width: auto;
    }

    .site-notice {
        transform: translateY(-0.75rem);
    }

    .site-notice.is-visible {
        transform: translateY(0);
    }

    .site-notice.is-leaving {
        transform: translateY(-0.75rem);
    }
}

.site-announcement {
    width: 100%;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.site-announcement__text {
    margin: 0;
    padding: 0.4rem 1rem 0.15rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.55;
    color: #506690;
}

.dark .site-announcement__text {
    color: #888ea8;
}

.country-flag-select {
    position: relative;
    width: 100%;
}

.country-flag-select__native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.country-flag-select__trigger {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #ebedf2;
    border-radius: 0.375rem;
    background: #fff;
    padding: 0.55rem 2rem 0.55rem 0.75rem;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: #3b3f5c;
    cursor: pointer;
    text-align: left;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%23888ea8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.country-flag-select__trigger:hover,
.country-flag-select.is-open .country-flag-select__trigger {
    border-color: #4361ee;
}

.country-flag-select__flag {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
}

.country-flag-select__label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.country-flag-select__menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 30;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    max-height: 14rem;
    overflow-y: auto;
    border: 1px solid #ebedf2;
    border-radius: 0.375rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(14, 23, 38, 0.12);
}

.country-flag-select__menu[hidden] {
    display: none;
}

.country-flag-select__option {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    background: transparent;
    padding: 0.5rem 0.75rem;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: #3b3f5c;
    cursor: pointer;
    text-align: left;
}

.country-flag-select__option:hover,
.country-flag-select__option.is-active {
    background: #eaf1ff;
    color: #4361ee;
}

.dark .country-flag-select__trigger {
    border-color: #17263c;
    background-color: #121e32;
    color: #e0e6ed;
}

.dark .country-flag-select__menu {
    border-color: #17263c;
    background: #121e32;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.dark .country-flag-select__option {
    color: #e0e6ed;
}

.dark .country-flag-select__option:hover,
.dark .country-flag-select__option.is-active {
    background: rgba(67, 97, 238, 0.15);
    color: #fff;
}

.transactions-panel {
    padding: 1.25rem;
}

.transactions-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.transactions-subtitle {
    margin-top: 0.35rem;
    font-size: 0.875rem;
    color: #888ea8;
}

.transactions-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ebedf2;
    padding-bottom: 0.75rem;
}

.transactions-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #888ea8;
    background: #f1f2f3;
    transition: background 0.2s, color 0.2s;
}

.transactions-tab:hover {
    color: #4361ee;
    background: #eaf1ff;
}

.transactions-tab.is-active {
    color: #fff;
    background: #4361ee;
}

.transactions-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #888ea8;
    font-weight: 600;
}

.transactions-platform {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.transactions-platform-logo {
    width: 28px;
    height: 28px;
    border-radius: 0.375rem;
    object-fit: contain;
    background: #fff;
    border: 1px solid #ebedf2;
}

.transactions-copy-cell {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.transactions-copy-btn {
    border: 0;
    background: transparent;
    color: #4361ee;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.transactions-copy-btn:hover {
    text-decoration: underline;
}

.transactions-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.dark .transactions-subtitle,
.dark .transactions-empty {
    color: #888ea8;
}

.dark .transactions-tabs {
    border-color: #191e3a;
}

.dark .transactions-tab {
    background: #121e32;
    color: #888ea8;
}

.dark .transactions-tab:hover {
    background: rgba(67, 97, 238, 0.15);
    color: #fff;
}

.dark .transactions-tab.is-active {
    background: #4361ee;
    color: #fff;
}

.dark .transactions-platform-logo {
    background: #0e1726;
    border-color: #191e3a;
}

