:root {
    --dark-900: #0a0a0a;
    --dark-850: #111111;
    --dark-800: #1a1a1a;
    --dark-750: #202020;
    --dark-700: #2a2a2a;
    --dark-600: #3a3a3a;

    --neon-green: #00ff88;
    --neon-dark: #00cc6a;
    --neon-light: #4dffaa;

    --text: #ffffff;
    --muted: #9ca3af;
    --muted-strong: #d1d5db;

    --border: #374151;
    --border-soft: rgba(255, 255, 255, 0.08);

    --danger: #ef4444;
    --danger-dark: #dc2626;

    --shadow-neon: 0 0 20px rgba(0, 255, 136, 0.3);
    --shadow-neon-lg: 0 0 40px rgba(0, 255, 136, 0.4);
}

* {
    box-sizing: border-box;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

@keyframes walletFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes walletFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wallet-main {
    min-height: calc(100vh - 80px);
    padding: 34px 24px 150px;
}

.wallet-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.wallet-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) 380px;
    gap: 24px;
    margin-bottom: 24px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.16);
    border-radius: 32px;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 255, 136, 0.18), transparent 34%),
        radial-gradient(circle at 84% 16%, rgba(0, 204, 106, 0.14), transparent 30%),
        linear-gradient(135deg, rgba(26, 26, 26, 0.96), rgba(10, 10, 10, 0.94));
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
    animation: walletFadeUp 0.45s ease-out both;
}

.wallet-hero::before {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -140px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(0, 255, 136, 0.14);
    border-radius: 50%;
    box-shadow:
        inset 0 0 44px rgba(0, 255, 136, 0.08),
        0 0 80px rgba(0, 255, 136, 0.08);
    pointer-events: none;
}

.wallet-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wallet-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-bottom: 16px;
    padding: 9px 12px;
    border: 1px solid rgba(0, 255, 136, 0.24);
    border-radius: 999px;
    color: var(--neon-green);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    background: rgba(0, 255, 136, 0.07);
}

.wallet-kicker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 16px rgba(0, 255, 136, 0.9);
}

.wallet-hero h1 {
    max-width: 680px;
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.92;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.wallet-hero h1 span {
    display: block;
    margin-top: 8px;
    color: var(--neon-green);
    text-shadow: 0 0 22px rgba(0, 255, 136, 0.35);
}

.wallet-hero p {
    max-width: 650px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.wallet-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: var(--muted-strong);
    font-weight: 900;
    background: rgba(255, 255, 255, 0.055);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.hero-action:hover,
.hero-action.active {
    color: var(--dark-900);
    border-color: transparent;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-dark));
    box-shadow: var(--shadow-neon);
    transform: translateY(-1px);
}

.wallet-balance-card {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: space-between;
    min-height: 260px;
    padding: 22px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(0, 255, 136, 0.12), rgba(255, 255, 255, 0.045)),
        rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(16px);
    animation: walletFloat 4s ease-in-out infinite;
}

.balance-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.balance-card-top i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--dark-900);
    background: linear-gradient(135deg, var(--neon-green), var(--neon-dark));
    box-shadow: var(--shadow-neon);
}

.balance-card-amount {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 34px 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.wallet-coin {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--dark-900);
    font-size: 18px;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-dark));
    box-shadow: var(--shadow-neon);
}

.balance-card-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.balance-card-footer div {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
}

.balance-card-footer strong,
.balance-card-footer span {
    display: block;
}

.balance-card-footer strong {
    color: var(--neon-green);
    font-size: 16px;
    font-weight: 950;
}

.balance-card-footer span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.wallet-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.wallet-info-panel {
    display: grid;
    gap: 14px;
    animation: walletFadeUp 0.55s ease-out both;
}

.info-panel-card {
    display: flex;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
        rgba(26, 26, 26, 0.82);
    backdrop-filter: blur(14px);
}

.info-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    color: var(--dark-900);
    background: linear-gradient(135deg, var(--neon-green), var(--neon-dark));
    box-shadow: 0 0 22px rgba(0, 255, 136, 0.18);
}

.info-panel-card h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 950;
}

.info-panel-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.wallet-card {
    padding: 22px;
    border: 1px solid var(--border-soft);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
        rgba(26, 26, 26, 0.92);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(14px);
    animation: walletFadeUp 0.65s ease-out both;
}

.wallet-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 18px;
    background: rgba(10, 10, 10, 0.5);
}

.switch-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    color: var(--muted-strong);
    font-weight: 950;
    background: transparent;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.switch-button:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.055);
}

.switch-button.active {
    color: var(--dark-900);
    background: linear-gradient(135deg, var(--neon-green), var(--neon-dark));
    box-shadow: var(--shadow-neon);
}

.wallet-form {
    display: grid;
    gap: 18px;
}

.wallet-section-title {
    margin-bottom: 2px;
}

.wallet-section-title h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.wallet-section-title p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.form-group,
.details-block {
    display: grid;
    gap: 10px;
}

.details-block {
    gap: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

label {
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

select,
input {
    width: 100%;
    min-height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 15px;
    color: var(--text);
    background: rgba(42, 42, 42, 0.88);
    outline: none;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

select {
    padding: 0 52px 0 20px;
    cursor: pointer;
}

input {
    padding: 0 20px;
}

select:focus,
input:focus,
.wallet-card select:focus,
.wallet-card input:focus {
    border-color: var(--neon-green);
    background: rgba(42, 42, 42, 1);
    box-shadow:
        0 0 0 3px rgba(0, 255, 136, 0.16),
        0 0 24px rgba(0, 255, 136, 0.18);
}

input::placeholder {
    color: #7f8a96;
}

.amount-input {
    position: relative;
}

.amount-input input {
    padding-left: 22px !important;
    padding-right: 58px !important;
}

.amount-input span {
    position: absolute;
    top: 50%;
    right: 20px;
    color: var(--muted);
    font-weight: 950;
    transform: translateY(-50%);
}

.method-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(0, 255, 136, 0.14);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(0, 255, 136, 0.08), rgba(255, 255, 255, 0.035)),
        rgba(10, 10, 10, 0.42);
}

.method-preview-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    color: var(--dark-900);
    background: linear-gradient(135deg, var(--neon-green), var(--neon-dark));
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.2);
}

.method-preview-icon.danger {
    color: var(--text);
    background: linear-gradient(135deg, var(--danger), var(--danger-dark));
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.2);
}

.method-preview strong,
.method-preview span {
    display: block;
}

.method-preview strong {
    font-size: 15px;
    font-weight: 950;
}

.method-preview span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.commission-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(0, 255, 136, 0.16);
    border-radius: 18px;
    background: rgba(0, 255, 136, 0.055);
}

.commission-box strong,
.commission-box span {
    display: block;
}

.commission-box strong {
    font-size: 15px;
    font-weight: 950;
}

.commission-box span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.commission-box b {
    color: var(--neon-green);
    font-size: 24px;
    font-weight: 950;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 16px;
    color: var(--dark-900);
    font-size: 17px;
    font-weight: 950;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-dark));
    box-shadow: var(--shadow-neon);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-neon-lg);
}

.withdraw-button {
    color: var(--text);
    background: linear-gradient(135deg, var(--danger), var(--danger-dark));
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.28);
}

.withdraw-button:hover {
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.4);
}


.wallet-history-card {
    padding: 22px;
    border: 1px solid var(--border-soft);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
        rgba(26, 26, 26, 0.92);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(14px);
    animation: walletFadeUp 0.75s ease-out both;
}

.wallet-history-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.wallet-history-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--neon-green);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wallet-history-head h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.wallet-history-head p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.wallet-history-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: var(--dark-900);
    background: linear-gradient(135deg, var(--neon-green), var(--neon-dark));
    box-shadow: var(--shadow-neon);
}

.wallet-history-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 20px;
    background: rgba(10, 10, 10, 0.36);
}

.wallet-history-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.wallet-history-table th,
.wallet-history-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    white-space: nowrap;
}

.wallet-history-table th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.035);
}

.wallet-history-table td {
    color: var(--muted-strong);
    font-size: 14px;
    font-weight: 800;
}

.wallet-history-table tbody tr:last-child td {
    border-bottom: 0;
}

.wallet-history-table tbody tr {
    transition: background 0.22s ease;
}

.wallet-history-table tbody tr:hover {
    background: rgba(0, 255, 136, 0.045);
}

.history-id,
.history-amount {
    color: var(--text);
    font-weight: 950;
}

.history-date {
    color: var(--muted);
}

.history-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
}

.status-pending {
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.28);
    background: rgba(245, 158, 11, 0.12);
}

.status-success,
.status-completed {
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 136, 0.28);
    background: rgba(0, 255, 136, 0.1);
}

.status-cancelled,
.status-canceled,
.status-failed {
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.12);
}

.wallet-history-empty {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 28px 14px;
    color: var(--muted);
    text-align: center;
}

.wallet-history-empty i {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: var(--dark-900);
    background: linear-gradient(135deg, var(--neon-green), var(--neon-dark));
    box-shadow: var(--shadow-neon);
}

.wallet-history-empty strong {
    color: var(--text);
    font-size: 16px;
    font-weight: 950;
}

.wallet-history-empty span {
    font-size: 14px;
}

.wallet-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 70;
    max-width: min(440px, calc(100vw - 40px));
    padding: 16px 18px;
    border: 1px solid rgba(0, 255, 136, 0.38);
    border-radius: 16px;
    color: var(--text);
    background: rgba(26, 26, 26, 0.96);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.44);
    opacity: 0;
    transform: translateX(16px);
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.wallet-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.hidden {
    display: none !important;
}

@media (max-width: 1024px) {
    .wallet-main {
        padding: 28px 16px 130px;
    }

    .wallet-hero {
        grid-template-columns: 1fr;
    }

    .wallet-balance-card {
        min-height: auto;
        animation: none;
    }

    .wallet-layout {
        grid-template-columns: 1fr;
    }

    .wallet-info-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .wallet-hero {
        padding: 22px;
        border-radius: 26px;
    }

    .wallet-hero h1 {
        font-size: clamp(36px, 13vw, 54px);
    }

    .wallet-hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .hero-action {
        padding: 0 12px;
        font-size: 14px;
    }

    .balance-card-footer {
        grid-template-columns: 1fr;
    }

    .wallet-info-panel {
        grid-template-columns: 1fr;
    }

    .wallet-card {
        padding: 18px;
        border-radius: 24px;
    }

    .wallet-switch {
        gap: 8px;
    }

    .switch-button {
        min-height: 48px;
        font-size: 14px;
    }

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

    
.wallet-history-card {
    padding: 22px;
    border: 1px solid var(--border-soft);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
        rgba(26, 26, 26, 0.92);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(14px);
    animation: walletFadeUp 0.75s ease-out both;
}

.wallet-history-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.wallet-history-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--neon-green);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wallet-history-head h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.wallet-history-head p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.wallet-history-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: var(--dark-900);
    background: linear-gradient(135deg, var(--neon-green), var(--neon-dark));
    box-shadow: var(--shadow-neon);
}

.wallet-history-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 20px;
    background: rgba(10, 10, 10, 0.36);
}

.wallet-history-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.wallet-history-table th,
.wallet-history-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    white-space: nowrap;
}

.wallet-history-table th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.035);
}

.wallet-history-table td {
    color: var(--muted-strong);
    font-size: 14px;
    font-weight: 800;
}

.wallet-history-table tbody tr:last-child td {
    border-bottom: 0;
}

.wallet-history-table tbody tr {
    transition: background 0.22s ease;
}

.wallet-history-table tbody tr:hover {
    background: rgba(0, 255, 136, 0.045);
}

.history-id,
.history-amount {
    color: var(--text);
    font-weight: 950;
}

.history-date {
    color: var(--muted);
}

.history-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
}

.status-pending {
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.28);
    background: rgba(245, 158, 11, 0.12);
}

.status-success,
.status-completed {
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 136, 0.28);
    background: rgba(0, 255, 136, 0.1);
}

.status-cancelled,
.status-canceled,
.status-failed {
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.12);
}

.wallet-history-empty {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 28px 14px;
    color: var(--muted);
    text-align: center;
}

.wallet-history-empty i {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: var(--dark-900);
    background: linear-gradient(135deg, var(--neon-green), var(--neon-dark));
    box-shadow: var(--shadow-neon);
}

.wallet-history-empty strong {
    color: var(--text);
    font-size: 16px;
    font-weight: 950;
}

.wallet-history-empty span {
    font-size: 14px;
}

.wallet-toast {
        right: 12px;
        bottom: 92px;
        max-width: calc(100vw - 24px);
    }
}

@media (max-width: 420px) {
    .wallet-main {
        padding-right: 12px;
        padding-left: 12px;
    }

    .wallet-hero {
        padding: 18px;
        border-radius: 22px;
    }

    .wallet-hero-actions {
        grid-template-columns: 1fr;
    }

    .balance-card-amount {
        font-size: 30px;
    }

    .wallet-coin {
        width: 42px;
        height: 42px;
    }

    .method-preview {
        align-items: flex-start;
    }
}

.wallet-card select,
.wallet-card input {
    width: 100%;
    min-height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 15px;
    color: var(--text);
    background-color: rgba(42, 42, 42, 0.88);
    outline: none;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.wallet-card select {
    padding-left: 22px !important;
    padding-right: 58px !important;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    cursor: pointer;

    background-image:
        linear-gradient(45deg, transparent 50%, #ffffff 50%),
        linear-gradient(135deg, #ffffff 50%, transparent 50%);
    background-position:
        calc(100% - 24px) 50%,
        calc(100% - 18px) 50%;
    background-size:
        6px 6px,
        6px 6px;
    background-repeat: no-repeat;
}

.wallet-card input {
    padding-left: 22px !important;
    padding-right: 22px !important;
}
/* Финальная мобильная адаптация кошелька */
@media (max-width: 900px) {
    .wallet-main {
        padding: 20px 14px 118px;
    }

    .wallet-shell {
        width: 100%;
    }

    .wallet-hero {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
        padding: 20px;
        border-radius: 24px;
    }

    .wallet-hero::before {
        right: -190px;
        bottom: -210px;
        opacity: 0.7;
    }

    .wallet-hero h1 {
        font-size: clamp(38px, 14vw, 58px);
        letter-spacing: -0.05em;
    }

    .wallet-hero p {
        margin-top: 12px;
        font-size: 14px;
        line-height: 1.55;
    }

    .wallet-hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 18px;
    }

    .hero-action {
        min-height: 46px;
        padding: 0 12px;
        font-size: 14px;
        border-radius: 14px;
    }

    .wallet-balance-card {
        min-height: auto;
        padding: 18px;
        border-radius: 22px;
        animation: none;
    }

    .balance-card-amount {
        margin: 20px 0;
        font-size: clamp(28px, 9vw, 38px);
    }

    .balance-card-footer {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .balance-card-footer div {
        padding: 10px 8px;
    }

    .balance-card-footer strong {
        font-size: 14px;
    }

    .balance-card-footer span {
        font-size: 11px;
    }

    .wallet-layout {
        gap: 16px;
    }

    .wallet-card,
    .wallet-history-card {
        padding: 16px;
        border-radius: 22px;
    }

    .wallet-switch {
        gap: 8px;
        margin-bottom: 18px;
        padding: 5px;
        border-radius: 16px;
    }

    .switch-button {
        min-height: 46px;
        gap: 8px;
        border-radius: 13px;
        font-size: 13px;
    }

    .wallet-section-title h2,
    .wallet-history-head h2 {
        font-size: 24px;
    }

    .wallet-section-title p,
    .wallet-history-head p {
        font-size: 13px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .wallet-card select,
    .wallet-card input,
    select,
    input {
        min-height: 52px;
        border-radius: 14px;
        font-size: 16px;
    }

    .method-preview,
    .commission-box {
        padding: 14px;
        border-radius: 16px;
    }

    .primary-button {
        min-height: 54px;
        border-radius: 15px;
        font-size: 15px;
    }

    .wallet-history-head {
        align-items: center;
        gap: 12px;
        margin-bottom: 14px;
    }

    .wallet-history-icon {
        width: 46px;
        height: 46px;
        border-radius: 16px;
    }

    .wallet-history-table-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .wallet-history-table {
        display: block;
        min-width: 0;
        width: 100%;
        border-collapse: separate;
    }

    .wallet-history-table thead {
        display: none;
    }

    .wallet-history-table tbody {
        display: grid;
        gap: 12px;
    }

    .wallet-history-table tr {
        display: grid;
        gap: 10px;
        padding: 14px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
            rgba(10, 10, 10, 0.44);
    }

    .wallet-history-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 0;
        border-bottom: 0;
        white-space: normal;
        text-align: right;
        font-size: 13px;
    }

    .wallet-history-table td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        color: var(--muted);
        font-size: 12px;
        font-weight: 950;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        text-align: left;
    }

    .wallet-history-table td[colspan] {
        display: block;
        text-align: center;
    }

    .wallet-history-table td[colspan]::before {
        display: none;
    }

    .history-status {
        min-height: 28px;
        padding: 0 9px;
        font-size: 11px;
    }

    .wallet-toast {
        right: 12px;
        bottom: 92px;
        max-width: calc(100vw - 24px);
    }
}

@media (max-width: 520px) {
    .wallet-main {
        padding-right: 10px;
        padding-left: 10px;
    }

    .wallet-hero,
    .wallet-card,
    .wallet-history-card {
        border-radius: 20px;
    }

    .wallet-hero {
        padding: 16px;
    }

    .wallet-kicker {
        margin-bottom: 12px;
        padding: 8px 10px;
        font-size: 10px;
        letter-spacing: 0.12em;
    }

    .wallet-hero-actions {
        grid-template-columns: 1fr;
    }

    .balance-card-footer {
        grid-template-columns: 1fr;
    }

    .balance-card-footer div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .wallet-switch {
        grid-template-columns: 1fr;
    }

    .wallet-history-head {
        align-items: flex-start;
    }

    .wallet-history-icon {
        width: 42px;
        height: 42px;
    }

    .wallet-history-table tr {
        padding: 13px;
    }

    .wallet-history-table td {
        align-items: flex-start;
        font-size: 13px;
    }

    .wallet-history-table td::before {
        max-width: 42%;
        line-height: 1.3;
    }
}
