:root {
    --lx-bg: #0B0F14;
    --lx-card: #151B24;
    --lx-card-border: #1E2A3A;
    --lx-blue: #00B4D8;
    --lx-blue-light: #48CAE4;
    --lx-blue-glow: rgba(0, 180, 216, 0.35);
    --lx-green: #06D6A0;
    --lx-text: #F0F4F8;
    --lx-text-muted: #8899AA;
    --lx-danger: #FF6B6B;
    --lx-radius: 8px;
}

body.liectroux-page {
    background: var(--lx-bg);
    color: var(--lx-text);
}

.liectroux-page .hidden {
    display: none !important;
}

.liectroux-page .withdraw-page {
    min-height: 100vh;
    background: var(--lx-bg);
    font-family: 'Space Grotesk', sans-serif;
}

.liectroux-page .wd-canvas {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

@media (min-width: 481px) {
    .liectroux-page .wd-canvas {
        border-left: 1px solid var(--lx-card-border);
        border-right: 1px solid var(--lx-card-border);
        box-shadow: 0 0 48px rgba(0, 0, 0, 0.35);
    }
}

.liectroux-page .wd-hero-shell {
    position: relative;
    min-height: 280px;
    overflow: hidden;
}

.liectroux-page .wd-hero-media {
    position: absolute;
    inset: 0;
}

.liectroux-page .wd-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

.liectroux-page .wd-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(11, 15, 20, 0.55) 45%,
        rgba(11, 15, 20, 0.88) 72%,
        var(--lx-bg) 100%
    );
    pointer-events: none;
}

.liectroux-page .wd-nav {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 12px;
    padding: max(16px, env(safe-area-inset-top)) 16px 16px;
}

.liectroux-page .wd-back,
.liectroux-page .wd-nav-action {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    padding: 0;
    backdrop-filter: blur(8px);
}

.liectroux-page .wd-back:hover,
.liectroux-page .wd-nav-action:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.32);
}

.liectroux-page .wd-back svg,
.liectroux-page .wd-nav-action svg {
    width: 18px;
    height: 18px;
    color: #FFFFFF;
}

.liectroux-page .wd-nav-title {
    font-size: 17px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.liectroux-page .wd-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px 24px 48px;
}

.liectroux-page .wd-hero-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.6px;
    margin-bottom: 12px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.liectroux-page .wd-hero-balance {
    font-family: 'JetBrains Mono', monospace;
    font-size: 42px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 10px;
    line-height: 1;
    letter-spacing: -1px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6), 0 0 32px var(--lx-blue-glow);
}

.liectroux-page .wd-hero-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 auto;
    max-width: 280px;
    line-height: 1.5;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.liectroux-page .wd-sheet {
    position: relative;
    z-index: 4;
    margin-top: -28px;
}

.liectroux-page .wd-sheet-inner {
    background: var(--lx-bg);
    border-radius: 28px 28px 0 0;
    padding: 8px 20px 24px;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}

.liectroux-page .wd-section {
    background: var(--lx-card);
    border: 1px solid var(--lx-card-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 14px;
}

.liectroux-page .wd-section:last-child {
    margin-bottom: 0;
}

.liectroux-page .wd-section-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.liectroux-page .wd-section-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--lx-blue) 0%, var(--lx-blue-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #0B0F14;
    box-shadow: 0 4px 12px var(--lx-blue-glow);
}

.liectroux-page .wd-section-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--lx-text);
    margin: 0 0 4px;
    line-height: 1.3;
}

.liectroux-page .wd-section-sub {
    font-size: 12px;
    color: var(--lx-text-muted);
    margin: 0;
    line-height: 1.5;
}

.liectroux-page .amount-input-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.liectroux-page .amount-input-wrapper {
    background: var(--lx-bg);
    border: 2px solid var(--lx-card-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.liectroux-page .amount-input-wrapper:focus-within {
    border-color: var(--lx-blue);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.12);
}

.liectroux-page .amount-input-wrapper.error {
    border-color: var(--lx-danger);
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

.liectroux-page .currency-symbol {
    padding: 0 16px;
    font-size: 24px;
    font-weight: 700;
    color: var(--lx-blue-light);
    font-family: 'JetBrains Mono', monospace;
}

.liectroux-page .amount-input-field {
    flex: 1;
    height: 58px;
    padding: 0 16px 0 0;
    border: none;
    background: transparent;
    font-size: 24px;
    font-weight: 700;
    color: var(--lx-text);
    font-family: 'JetBrains Mono', monospace;
    outline: none;
}

.liectroux-page .amount-input-field::placeholder {
    color: var(--lx-text-muted);
    font-weight: 400;
    font-size: 14px;
    font-family: 'Space Grotesk', sans-serif;
}

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

.liectroux-page .amount-input-field[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.liectroux-page .error-message {
    font-size: 12px;
    color: var(--lx-danger);
    font-weight: 500;
    padding-left: 4px;
    min-height: 16px;
}

.liectroux-page .wd-rules {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--lx-card-border);
}

.liectroux-page .wd-rule {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    font-size: 13px;
    color: var(--lx-text-muted);
    line-height: 1.5;
    background: var(--lx-bg);
    border-bottom: 1px solid var(--lx-card-border);
}

.liectroux-page .wd-rule:last-child {
    border-bottom: none;
}

.liectroux-page .wd-rule svg {
    width: 15px;
    height: 15px;
    color: var(--lx-green);
    flex-shrink: 0;
    margin-top: 2px;
}

.liectroux-page .submit-button {
    width: 100%;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--lx-blue) 0%, var(--lx-blue-light) 100%);
    border: none;
    border-radius: 14px;
    color: #0B0F14;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 24px var(--lx-blue-glow);
    font-family: 'Space Grotesk', sans-serif;
}

.liectroux-page .submit-button:hover {
    opacity: 0.92;
}

.liectroux-page .submit-button:active {
    transform: scale(0.985);
}

.liectroux-page .wd-btn-label {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.liectroux-page .toast {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    background: var(--lx-card);
    color: var(--lx-text);
    padding: 14px 24px;
    border-radius: var(--lx-radius);
    border: 1px solid var(--lx-card-border);
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.15);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    max-width: 90%;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
}

.liectroux-page .toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.liectroux-page .toast.success {
    border-color: var(--lx-green);
    color: var(--lx-green);
}

.liectroux-page .toast.error {
    border-color: var(--lx-danger);
    color: var(--lx-danger);
}

.liectroux-page .toast.info {
    border-color: var(--lx-blue);
    color: var(--lx-blue-light);
}

.liectroux-page .loading {
    position: fixed;
    inset: 0;
    background: rgba(11, 15, 20, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.liectroux-page .loading.active {
    opacity: 1;
    visibility: visible;
}

.liectroux-page .spinner {
    width: 40px;
    height: 40px;
    border: 2px solid transparent;
    border-top-color: var(--lx-blue);
    border-right-color: var(--lx-blue);
    border-radius: 50%;
    animation: lxSpin 0.75s linear infinite;
}

@keyframes lxSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .liectroux-page .wd-nav {
        padding-left: 14px;
        padding-right: 14px;
    }

    .liectroux-page .wd-hero-content {
        padding: 16px 20px 44px;
    }

    .liectroux-page .wd-hero-balance {
        font-size: 36px;
    }

    .liectroux-page .wd-sheet-inner {
        padding: 6px 16px 20px;
        border-radius: 24px 24px 0 0;
    }

    .liectroux-page .wd-section {
        padding: 16px;
    }
}

@media (max-width: 360px) {
    .liectroux-page .wd-hero-balance {
        font-size: 32px;
    }

    .liectroux-page .amount-input-field {
        height: 52px;
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .liectroux-page *,
    .liectroux-page *::before,
    .liectroux-page *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
