.withdraw-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #E0F2FE 0%, #F0F9FF 100%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
}

.withdraw-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 102, 204, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(0, 102, 204, 0.3);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-back {
    width: 40px;
    height: 40px;
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.header-back:hover {
    background: #F5F7FA;
    border-color: #0066CC;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
    transform: scale(1.05);
}

.header-back svg {
    width: 20px;
    height: 20px;
    color: #0066CC;
}

.header-center {
    flex: 1;
    text-align: center;
}

.header-title {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: 0.5px;
}


.withdraw-main {
    flex: 1;
    overflow-y: auto;
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
    padding: 0 0 32px;
}

.balance-hero {
    padding: 24px 20px;
}

.balance-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.balance-hero::after {
    display: none;
}

.balance-content {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border-radius: 24px;
    padding: 32px 24px 24px;
    box-shadow: 0 8px 32px rgba(0, 102, 204, 0.12);
    border: 2px solid rgba(0, 102, 204, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.balance-text {
    flex: 1;
}

.balance-title {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--hz-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 42px;
    font-weight: 700;
    color: var(--hz-text-primary);
    margin: 0;
    letter-spacing: -1px;
}

.balance-visual {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0066CC 0%, #003D7A 100%);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.balance-visual svg {
    width: 30px;
    height: 30px;
    color: #FFFFFF;
}

.balance-history-link {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 102, 204, 0.12);
    border: 2px solid rgba(0, 102, 204, 0.1);
    padding: 16px 24px;
    margin-top: 12px;
}

.balance-history-link .history-link {
    width: 100%;
    background: transparent;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    color: var(--hz-text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.balance-history-link .history-link::after {
    content: '→';
    margin-left: 8px;
}

.balance-history-link .history-link:hover {
    background: #F8FAFC;
    border-color: #0066CC;
    color: #0066CC;
}

.amount-input-section {
    padding: 32px 20px;
}

.input-section-title {
    margin-bottom: 24px;
}

.input-section-title h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--hz-text-primary);
    margin: 0 0 8px 0;
    letter-spacing: 0.3px;
}

.title-line {
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, #0066CC, #00C853);
    border-radius: 2px;
}

.input-wrapper {
    position: relative;
    margin-top: 20px;
}

.amount-input {
    width: 100%;
    padding: 20px 20px 20px 48px;
    font-size: 24px;
    font-weight: 700;
    color: var(--hz-text-primary);
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.amount-input:focus {
    border-color: #0066CC;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.amount-input.error {
    border-color: #D32F2F;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}

.currency-prefix {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 700;
    color: var(--hz-text-secondary);
    pointer-events: none;
}

.error-message {
    margin-top: 8px;
    font-size: 13px;
    color: #D32F2F;
    font-weight: 500;
    min-height: 20px;
}

.submit-button {
    width: 100%;
    margin-top: 24px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #0066CC 0%, #003D7A 100%);
    border: none;
    border-radius: 16px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
    letter-spacing: 0.5px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.withdraw-info {
    padding: 0 20px 32px;
}

.info-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--hz-text-primary);
    margin: 0 0 16px 0;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-title::before {
    content: '';
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%230066CC' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E") no-repeat center;
}

.info-list {
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    padding: 24px;
}

.info-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #0066CC;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

.info-icon {
    display: none;
}

.info-content {
    flex: 1;
}

.info-content strong {
    color: var(--hz-text-primary);
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
}

.info-content span {
    font-size: 13px;
    line-height: 1.6;
    color: var(--hz-text-secondary);
    display: block;
}

.toast {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    background: rgba(26, 26, 26, 0.95);
    color: #FFFFFF;
    padding: 16px 28px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 90%;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    backdrop-filter: blur(20px);
}

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

.toast.success {
    background: rgba(0, 200, 83, 0.95);
    border-color: rgba(0, 200, 83, 0.3);
    color: #FFFFFF;
}

.toast.error {
    background: rgba(211, 47, 47, 0.95);
    border-color: rgba(239, 83, 80, 0.3);
    color: #FFFFFF;
}

.toast.warning {
    background: rgba(255, 152, 0, 0.95);
    border-color: rgba(255, 193, 7, 0.3);
    color: #FFFFFF;
}

.toast.info {
    background: rgba(0, 102, 204, 0.95);
    border-color: rgba(0, 102, 204, 0.3);
    color: #FFFFFF;
}

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

.loading.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 56px;
    height: 56px;
    border: 4px solid #E2E8F0;
    border-top-color: #0066CC;
    border-right-color: #00C853;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .withdraw-header {
        padding: 14px 16px;
    }

    .header-back {
        width: 38px;
        height: 38px;
    }

    .header-title {
        font-size: 17px;
    }

    .balance-hero {
        padding: 20px 16px;
    }

    .balance-content {
        padding: 28px 20px 20px;
    }

    .balance-amount {
        font-size: 38px;
    }

    .balance-visual {
        width: 56px;
        height: 56px;
    }

    .balance-visual svg {
        width: 28px;
        height: 28px;
    }

    .balance-history-link {
        padding: 14px 20px;
    }

    .balance-history-link .history-link {
        padding: 10px 16px;
    }

    .amount-input-section {
        padding: 28px 16px;
    }

    .input-section-title h3 {
        font-size: 18px;
    }

    .amount-input {
        padding: 18px 18px 18px 44px;
        font-size: 22px;
    }

    .currency-prefix {
        left: 18px;
        font-size: 22px;
    }

    .withdraw-info {
        padding: 0 16px 28px;
    }

    .info-title {
        font-size: 17px;
    }

    .info-list {
        padding: 20px;
    }

    .info-item {
        margin-bottom: 14px;
    }

    .info-content strong {
        font-size: 13px;
    }

    .info-content span {
        font-size: 12px;
    }

    .submit-button {
        padding: 14px 24px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .balance-hero {
        padding: 16px 12px;
    }

    .balance-content {
        padding: 24px 16px 16px;
    }

    .balance-amount {
        font-size: 34px;
    }

    .balance-visual {
        width: 52px;
        height: 52px;
    }

    .balance-visual svg {
        width: 26px;
        height: 26px;
    }

    .balance-history-link {
        padding: 12px 16px;
    }

    .balance-history-link .history-link {
        padding: 10px 14px;
        font-size: 13px;
    }

    .amount-input-section {
        padding: 24px 12px;
    }

    .input-section-title h3 {
        font-size: 17px;
    }

    .amount-input {
        padding: 16px 16px 16px 40px;
        font-size: 20px;
    }

    .currency-prefix {
        left: 16px;
        font-size: 20px;
    }

    .withdraw-info {
        padding: 0 12px 24px;
    }

    .info-title {
        font-size: 16px;
    }

    .info-list {
        padding: 16px;
    }

    .info-item {
        margin-bottom: 12px;
    }

    .info-content strong {
        font-size: 12px;
    }

    .info-content span {
        font-size: 11px;
    }

    .submit-button {
        padding: 12px 20px;
        font-size: 14px;
    }
}

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