body.cp-shell {
    padding-bottom: 0;
}

.wdr-app.platform-wrapper.withdraw-records-app {
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: 0;
    font-family: var(--font-family);
    color: var(--quest-text);
    background: var(--quest-bg);
}

.wdr-wrap {
    max-width: 480px;
    min-height: 100dvh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: max(8px, env(safe-area-inset-top)) 16px calc(108px + env(safe-area-inset-bottom));
}

.wdr-head {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    padding: 6px 0 20px;
}

.wdr-head__back {
    width: 44px;
    height: 44px;
    border: 1px solid var(--quest-border);
    border-radius: var(--radius-md);
    background: var(--quest-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.wdr-head__back:hover {
    border-color: var(--quest-primary-border);
    background: var(--quest-primary-soft);
}

.wdr-head__back svg {
    width: 20px;
    height: 20px;
    color: var(--quest-text);
}

.wdr-head__title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    color: var(--quest-text);
}

.wdr-head__slot {
    width: 44px;
}

.wdr-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wdr-stream {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profit-card {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.profit-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.wdr-card {
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    background: var(--quest-bg);
    border: 1px solid var(--quest-border);
    box-shadow: var(--hz-shadow-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.profit-card:hover .wdr-card {
    border-color: var(--quest-primary-border);
    box-shadow: var(--hz-shadow-md);
}

.wdr-card__main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.wdr-card__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.wdr-card__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--quest-text-muted);
}

.wdr-card__amt {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--quest-text);
    font-variant-numeric: tabular-nums;
}

.wdr-card__status {
    flex-shrink: 0;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.wdr-card__status.st-complete {
    color: #15803D;
    background: rgba(34, 197, 94, 0.1);
}

.wdr-card__status.st-processing {
    color: #B45309;
    background: rgba(245, 158, 11, 0.1);
}

.wdr-card__status.st-rejected {
    color: #DC2626;
    background: rgba(239, 68, 68, 0.1);
}

.wdr-card__time {
    display: block;
    padding-top: 10px;
    border-top: 1px solid var(--quest-border);
    font-size: 12px;
    font-weight: 500;
    color: var(--quest-text-muted);
    font-variant-numeric: tabular-nums;
}

.wdr-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 56px 24px;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--quest-border);
    background: var(--quest-surface);
}

.wdr-empty.hidden {
    display: none;
}

.wdr-empty__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--quest-bg);
    border: 1px solid var(--quest-border);
}

.wdr-empty__icon svg {
    width: 26px;
    height: 26px;
    color: var(--quest-text-muted);
}

.wdr-empty__text {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--quest-text-muted);
}

.wdr-page {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 4px;
}

.wdr-page.hidden {
    display: none;
}

.wdr-page__btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--quest-border);
    border-radius: var(--radius-md);
    background: var(--quest-bg);
    color: var(--quest-text);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.wdr-page__btn:hover:not(:disabled) {
    border-color: var(--quest-primary-border);
    background: var(--quest-primary-soft);
}

.wdr-page__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.wdr-page__btn svg {
    width: 18px;
    height: 18px;
}

.wdr-page__nums {
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--quest-text);
}

.wdr-page__sep {
    margin: 0 2px;
    color: var(--quest-text-muted);
}

.loading {
    position: fixed;
    inset: 0;
    background: var(--quest-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--quest-border);
    border-top-color: var(--quest-cyan);
    border-radius: 50%;
    animation: wdr-spin 0.7s linear infinite;
}

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

@media (max-width: 640px) {
    .wdr-wrap {
        padding-left: 14px;
        padding-right: 14px;
    }

    .wdr-card {
        padding: 12px 14px;
    }

    .wdr-card__amt {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profit-card,
    .wdr-head__back,
    .wdr-page__btn,
    .wdr-card,
    .spinner {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
