/* ====================================================
   FarmBrawl — Retiros USDC (premium dark finance UI)
   v2 · GPU-friendly animations · glassmorphism depth
   ==================================================== */

/* ─── Hub ─── */
.withdraw-hub {
    position: relative;
    padding-bottom: 2rem;
}

.withdraw-hub::before {
    content: '';
    position: absolute;
    inset: -1rem -0.5rem 55%;
    background:
        radial-gradient(ellipse 75% 50% at 10% 0%, rgba(16, 185, 129, 0.08), transparent 55%),
        radial-gradient(ellipse 55% 45% at 95% 8%, rgba(52, 211, 153, 0.06), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.withdraw-hub > * {
    position: relative;
    z-index: 1;
}

.withdraw-shell {
    max-width: min(1100px, 100%);
    margin: 0 auto;
}

/* ─── Hero Cinematic ─── */
.withdraw-hero-cinematic {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    margin-bottom: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, #0c192e 0%, #0a1528 60%, #0f172a 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 20px 50px -14px rgba(0, 0, 0, 0.45);
    animation: withdrawHeroIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes withdrawHeroIn {
    from { opacity: 0; transform: translateY(12px) scale(0.99); }
    to { opacity: 1; transform: none; }
}

.withdraw-hero-bg {
    position: absolute;
    inset: 0;
    background: url("../assets/withdraw-hero-bg.png") center 40% / cover no-repeat;
    opacity: 0.18;
    transform: scale(1.02);
    z-index: 0;
    animation: withdrawBgPan 20s ease-in-out infinite alternate;
}

@keyframes withdrawBgPan {
    0% { transform: scale(1.02) translate(0, 0); }
    100% { transform: scale(1.04) translate(-8px, 4px); }
}

.withdraw-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(105deg, rgba(6, 35, 25, 0.85) 0%, rgba(20, 50, 35, 0.55) 42%, rgba(25, 20, 45, 0.35) 72%, rgba(8, 28, 20, 0.55) 100%),
        linear-gradient(180deg, transparent 50%, rgba(4, 25, 18, 0.65) 100%);
    pointer-events: none;
}

.withdraw-hero-glow {
    position: absolute;
    top: -30%;
    right: -6%;
    width: 48%;
    height: 120%;
    z-index: 2;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.14) 0%, transparent 62%);
    pointer-events: none;
    animation: withdrawGlowDrift 8s ease-in-out infinite;
    will-change: transform, opacity;
}

.withdraw-hero-glow--2 {
    top: auto;
    bottom: -40%;
    left: -4%;
    right: auto;
    width: 40%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 60%);
    animation-delay: 3.5s;
}

@keyframes withdrawGlowDrift {
    0%, 100% { opacity: 0.5; transform: translate(0, 0); }
    50% { opacity: 0.9; transform: translate(-8px, 6px); }
}

.withdraw-hero-inner {
    position: relative;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.65rem 1.75rem 1.3rem;
}

.withdraw-hero-text {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 540px;
}

.withdraw-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #d1fae5;
    background: rgba(6, 78, 59, 0.5);
    border: 1px solid rgba(110, 231, 183, 0.32);
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.55rem;
    backdrop-filter: blur(8px);
    animation: withdrawPillFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
}

@keyframes withdrawPillFade {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: none; }
}

.withdraw-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #10b981, 0 0 16px rgba(16, 185, 129, 0.3);
    animation: withdrawLivePulse 2.2s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes withdrawLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.75); }
}

.withdraw-hero-kicker {
    font-size: 0.68rem;
    font-weight: 800;
    color: #6ee7b7;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.3rem;
}

.withdraw-hero-title {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.45rem;
    line-height: 1.05;
    letter-spacing: -0.02em;
    animation: withdrawTitleIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s backwards;
}

@keyframes withdrawTitleIn {
    from { opacity: 0; transform: translateY(8px); filter: blur(4px); }
    to { opacity: 1; transform: none; filter: none; }
}

.withdraw-hero-title-accent {
    color: #6ee7b7;
    text-shadow: 0 0 20px rgba(110, 231, 183, 0.3);
}

.withdraw-hero-desc {
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd5e1;
    margin: 0 0 0.75rem;
    line-height: 1.5;
    animation: withdrawDescIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

@keyframes withdrawDescIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.withdraw-hero-desc strong {
    color: #fde68a;
    font-weight: 800;
}

.withdraw-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.withdraw-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.65rem;
    border-radius: 0.65rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, background 0.2s, box-shadow 0.2s;
    animation: withdrawChipIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.withdraw-hero-chip:nth-child(1) { animation-delay: 0.25s; }
.withdraw-hero-chip:nth-child(2) { animation-delay: 0.32s; }
.withdraw-hero-chip:nth-child(3) { animation-delay: 0.39s; }
.withdraw-hero-chip:nth-child(4) { animation-delay: 0.46s; }

@keyframes withdrawChipIn {
    from { opacity: 0; transform: translateY(6px) scale(0.95); }
    to { opacity: 1; transform: none; }
}

.withdraw-hero-chip:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.2);
}

.withdraw-hero-chip strong { color: #fde68a; font-weight: 800; }
.withdraw-hero-chip--ready strong { color: #6ee7b7; }
.withdraw-hero-chip--fee strong { color: #fca5a5; }

.withdraw-hero-visual {
    position: relative;
    flex-shrink: 0;
    width: 148px;
    height: 148px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 20px 50px -18px rgba(0, 0, 0, 0.35),
        0 0 40px -12px rgba(52, 211, 153, 0.1);
    animation: withdrawVisualIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
}

@keyframes withdrawVisualIn {
    from { opacity: 0; transform: scale(0.85) rotate(-8deg); }
    to { opacity: 1; transform: none; }
}

.withdraw-hero-vault-icon {
    font-size: 3.5rem;
    animation: withdrawVaultFloat 5s ease-in-out infinite;
    filter: drop-shadow(0 6px 14px rgba(52, 211, 153, 0.18));
    will-change: transform;
}

@keyframes withdrawVaultFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.withdraw-hero-strip {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0.65rem 1.25rem;
    background: rgba(255, 255, 255, 0.025);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.74rem;
    font-weight: 700;
    color: #94a3b8;
    backdrop-filter: blur(10px);
}

.withdraw-hero-strip strong { color: #e2e8f0; }

.withdraw-hero-strip-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.1);
}

/* ─── Info Banners ─── */
.withdraw-info-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.15rem;
}

.withdraw-fee-desc {
    font-size: 0.88rem;
    font-weight: 700;
    color: #064e3b;
    margin: 0;
    line-height: 1.5;
    background: rgba(209, 250, 229, 0.95);
    border: 1.5px solid rgba(16, 185, 129, 0.5);
    border-left: 4px solid #10b981;
    border-radius: 0.85rem;
    padding: 0.85rem 1.1rem;
    transition: background 0.25s, border-color 0.25s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
    animation: withdrawBannerIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s backwards;
    box-shadow: 0 4px 16px -4px rgba(16, 185, 129, 0.25);
}

@keyframes withdrawBannerIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: none; }
}

.withdraw-fee-desc:hover {
    background: rgba(209, 250, 229, 1);
    border-color: rgba(16, 185, 129, 0.7);
    transform: translateX(2px);
    box-shadow: 0 6px 20px -4px rgba(16, 185, 129, 0.3);
}

.withdraw-fee-desc strong { color: #047857; }

.withdraw-economy-note {
    font-size: 0.85rem;
    font-weight: 700;
    color: #4c1d95;
    background: rgba(237, 233, 254, 0.95);
    border: 1.5px solid rgba(139, 92, 246, 0.45);
    border-left: 4px solid #8b5cf6;
    border-radius: 0.85rem;
    padding: 0.85rem 1.1rem;
    margin: 0;
    line-height: 1.5;
    transition: background 0.25s, border-color 0.25s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
    animation: withdrawBannerIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.22s backwards;
    box-shadow: 0 4px 16px -4px rgba(139, 92, 246, 0.2);
}

.withdraw-economy-note:hover {
    background: rgba(237, 233, 254, 1);
    border-color: rgba(139, 92, 246, 0.65);
    transform: translateX(2px);
    box-shadow: 0 6px 20px -4px rgba(139, 92, 246, 0.25);
}

.withdraw-f2p-notice {
    font-size: 0.85rem;
    font-weight: 700;
    color: #78350f;
    background: rgba(254, 243, 199, 0.95);
    border: 1.5px solid rgba(245, 158, 11, 0.5);
    border-left: 4px solid #f59e0b;
    border-radius: 0.85rem;
    padding: 0.85rem 1.1rem;
    margin: 0;
    line-height: 1.5;
    transition: background 0.25s, border-color 0.25s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
    animation: withdrawBannerIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.18s backwards;
    box-shadow: 0 4px 16px -4px rgba(245, 158, 11, 0.25);
}

.withdraw-f2p-notice:hover {
    background: rgba(254, 243, 199, 1);
    border-color: rgba(245, 158, 11, 0.7);
    transform: translateX(2px);
    box-shadow: 0 6px 20px -4px rgba(245, 158, 11, 0.3);
}

.withdraw-cap-hint,
.withdraw-treasury-hint {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--farm-text-secondary, #94a3b8);
    margin: 0;
    padding: 0.7rem 1rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 4px solid var(--farm-text-muted, #64748b);
    border-radius: 0.85rem;
    line-height: 1.5;
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.15);
}

.withdraw-treasury-hint {
    color: #5b21b6;
    background: rgba(237, 233, 254, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-left: 4px solid #8b5cf6;
    box-shadow: 0 4px 16px -4px rgba(139, 92, 246, 0.15);
}

/* ─── Stats Row — Premium Glass Cards ─── */
.withdraw-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.35rem;
}

@media (min-width: 768px) {
    .withdraw-stats-row { grid-template-columns: repeat(4, 1fr); }
}

.withdraw-stat-card {
    position: relative;
    text-align: center;
    padding: 1.2rem 0.7rem 1rem;
    border-radius: 1.2rem;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition:
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.3s;
    animation: withdrawStatIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    will-change: transform;
}

.withdraw-stat-card:nth-child(1) { animation-delay: 0.1s; }
.withdraw-stat-card:nth-child(2) { animation-delay: 0.17s; }
.withdraw-stat-card:nth-child(3) { animation-delay: 0.24s; }
.withdraw-stat-card:nth-child(4) { animation-delay: 0.31s; }

@keyframes withdrawStatIn {
    from { opacity: 0; transform: translateY(18px) scale(0.94); }
    to { opacity: 1; transform: none; }
}

/* Colored top accent bar — thicker, glowing */
.withdraw-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 1.2rem 1.2rem 0 0;
    transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.withdraw-stat-card:hover::before {
    height: 4px;
}

/* Inner glass highlight */
.withdraw-stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
    pointer-events: none;
    border-radius: 1.2rem 1.2rem 0 0;
}

/* Variant accent bars + glow */
.withdraw-stat-card--dep::before {
    background: linear-gradient(90deg, #7c3aed, #a78bfa, #7c3aed);
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}
.withdraw-stat-card--out::before {
    background: linear-gradient(90deg, #059669, #34d399, #059669);
    box-shadow: 0 0 12px rgba(5, 150, 105, 0.4);
}
.withdraw-stat-card--fee::before {
    background: linear-gradient(90deg, #e11d48, #fb7185, #e11d48);
    box-shadow: 0 0 12px rgba(225, 29, 72, 0.4);
}
.withdraw-stat-card--spent::before {
    background: linear-gradient(90deg, #0284c7, #38bdf8, #0284c7);
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.4);
}

/* Variant borders on hover */
.withdraw-stat-card--dep:hover { border-color: rgba(124, 58, 237, 0.25); }
.withdraw-stat-card--out:hover { border-color: rgba(5, 150, 105, 0.25); }
.withdraw-stat-card--fee:hover { border-color: rgba(225, 29, 72, 0.25); }
.withdraw-stat-card--spent:hover { border-color: rgba(2, 132, 199, 0.25); }

/* Colored soft shadows on hover */
.withdraw-stat-card--dep:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px -12px rgba(124, 58, 237, 0.2),
        0 0 0 1px rgba(124, 58, 237, 0.08);
}
.withdraw-stat-card--out:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px -12px rgba(5, 150, 105, 0.2),
        0 0 0 1px rgba(5, 150, 105, 0.08);
}
.withdraw-stat-card--fee:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px -12px rgba(225, 29, 72, 0.2),
        0 0 0 1px rgba(225, 29, 72, 0.08);
}
.withdraw-stat-card--spent:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px -12px rgba(2, 132, 199, 0.2),
        0 0 0 1px rgba(2, 132, 199, 0.08);
}

/* Icon badge — circular gradient background */
.withdraw-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.withdraw-stat-card--dep .withdraw-stat-icon {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(167, 139, 250, 0.12));
    box-shadow: 0 4px 12px -4px rgba(124, 58, 237, 0.25);
}
.withdraw-stat-card--out .withdraw-stat-icon {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.2), rgba(52, 211, 153, 0.12));
    box-shadow: 0 4px 12px -4px rgba(5, 150, 105, 0.25);
}
.withdraw-stat-card--fee .withdraw-stat-icon {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.2), rgba(251, 113, 133, 0.12));
    box-shadow: 0 4px 12px -4px rgba(225, 29, 72, 0.25);
}
.withdraw-stat-card--spent .withdraw-stat-icon {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(56, 189, 248, 0.12));
    box-shadow: 0 4px 12px -4px rgba(2, 132, 199, 0.25);
}

.withdraw-stat-card:hover .withdraw-stat-icon {
    transform: scale(1.12);
}

.withdraw-stat-card--dep:hover .withdraw-stat-icon { box-shadow: 0 6px 20px -4px rgba(124, 58, 237, 0.4); }
.withdraw-stat-card--out:hover .withdraw-stat-icon { box-shadow: 0 6px 20px -4px rgba(5, 150, 105, 0.4); }
.withdraw-stat-card--fee:hover .withdraw-stat-icon { box-shadow: 0 6px 20px -4px rgba(225, 29, 72, 0.4); }
.withdraw-stat-card--spent:hover .withdraw-stat-icon { box-shadow: 0 6px 20px -4px rgba(2, 132, 199, 0.4); }

/* Label — refined uppercase */
.withdraw-stat-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

/* Value — bold, large, luminous */
.withdraw-stat-value {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0.2rem 0 0.15rem;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.25s;
    position: relative;
    z-index: 1;
}

.withdraw-stat-card--dep .withdraw-stat-value { color: #c4b5fd; text-shadow: 0 0 20px rgba(124, 58, 237, 0.3); }
.withdraw-stat-card--out .withdraw-stat-value { color: #6ee7b7; text-shadow: 0 0 20px rgba(5, 150, 105, 0.3); }
.withdraw-stat-card--fee .withdraw-stat-value { color: #fda4af; text-shadow: 0 0 20px rgba(225, 29, 72, 0.3); }
.withdraw-stat-card--spent .withdraw-stat-value { color: #7dd3fc; text-shadow: 0 0 20px rgba(2, 132, 199, 0.3); }

.withdraw-stat-card:hover .withdraw-stat-value {
    transform: scale(1.06);
}

/* Meta — subtle, glassy */
.withdraw-stat-meta {
    font-size: 0.62rem;
    font-weight: 600;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

/* ─── Main Grid — Centered Action Stage ─── */
.withdraw-main-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 1.35rem;
    margin-bottom: 1.5rem;
}

.withdraw-action-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1.25rem 0.75rem;
}

/* ─── Action Panel — Premium Dark Balance Card ─── */
.withdraw-action-panel {
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, #0c192e 0%, #0a1528 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 24px 60px -16px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(16, 185, 129, 0.08);
    overflow: hidden;
    width: min(540px, 100%);
    max-width: 540px;
    animation: withdrawPanelIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.4s, border-color 0.4s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.withdraw-action-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.04) 0%, transparent 40%, rgba(139, 92, 246, 0.03) 100%);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.35s;
    opacity: 0;
}

.withdraw-action-panel:hover::before {
    opacity: 1;
}

.withdraw-action-panel:hover {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 32px 80px -16px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(16, 185, 129, 0.14),
        0 0 60px -20px rgba(52, 211, 153, 0.08);
    transform: translateY(-2px);
}

@keyframes withdrawPanelIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

.withdraw-action-head {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 2rem 2.25rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.01) 52%, rgba(255, 255, 255, 0.025) 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.withdraw-balance-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.withdraw-balance-label {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
}

.withdraw-balance-value {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(2.8rem, 6.5vw, 4.2rem);
    font-weight: 700;
    line-height: 1;
    margin: 0.35rem 0 0.2rem;
    color: #ffffff;
    letter-spacing: -0.02em;
    animation: withdrawBalanceReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #34d399 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: withdrawBalanceReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards,
               withdrawBalanceShimmer 4s ease-in-out infinite 1.5s;
}

@keyframes withdrawBalanceReveal {
    from { opacity: 0; transform: translateY(8px); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: none; }
}

@keyframes withdrawBalanceShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.withdraw-balance-unit {
    font-size: 1rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.04em;
}

.withdraw-next-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    background: rgba(255, 255, 255, 0.035);
    padding: 0.9rem 1.15rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.25s, border-color 0.25s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
}

.withdraw-next-block:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.15);
}

.withdraw-next-block:has(.withdraw-next-value--ready) {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.4);
    box-shadow: 0 0 32px -8px rgba(16, 185, 129, 0.15);
    animation: withdrawReadyPulse 3s ease-in-out infinite;
}

@keyframes withdrawReadyPulse {
    0%, 100% { box-shadow: 0 0 32px -8px rgba(16, 185, 129, 0.15); }
    50% { box-shadow: 0 0 40px -6px rgba(16, 185, 129, 0.22); }
}

.withdraw-next-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(226, 232, 240, 0.75);
}

.withdraw-next-block:has(.withdraw-next-value--ready) .withdraw-next-label {
    color: #a7f3d0;
}

.withdraw-next-value {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.2rem;
    line-height: 1.2;
    transition: color 0.25s;
}

.withdraw-next-value--ready {
    color: #6ee7b7;
}

.withdraw-next-value--wait {
    color: #fde68a;
}

/* ─── Action Body (buttons) ─── */
.withdraw-action-body {
    position: relative;
    z-index: 1;
    padding: 1.75rem 2.25rem 2rem;
    background: linear-gradient(180deg, #0a1528 0%, #081220 100%);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ─── Primary Button ─── */
.withdraw-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 1.1rem 1.5rem;
    border: none;
    border-radius: 1rem;
    font-weight: 800;
    font-size: 1.05rem;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(180deg, #34d399 0%, #10b981 50%, #059669 100%);
    box-shadow:
        0 4px 0 #047857,
        0 10px 22px rgba(5, 150, 105, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
    overflow: hidden;
}

.withdraw-btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(25deg);
    transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.withdraw-btn-primary:hover::before {
    left: 120%;
}

.withdraw-btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0.18) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}

.withdraw-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 7px 0 #047857,
        0 18px 36px rgba(5, 150, 105, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 0 30px -6px rgba(52, 211, 153, 0.2);
}

.withdraw-btn-primary:hover::after {
    opacity: 1;
}

.withdraw-btn-primary:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #047857,
        0 4px 10px rgba(5, 150, 105, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

/* ─── Secondary Button ─── */
.withdraw-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    margin-top: 0;
    padding: 1.1rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.035);
    color: #a7f3d0 !important;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Nunito', sans-serif;
    box-shadow: 0 3px 0 rgba(15, 118, 110, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
    overflow: hidden;
}

.withdraw-btn-secondary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(52, 211, 153, 0.14) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}

.withdraw-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #d1fae5 !important;
    transform: translateY(-3px);
    box-shadow:
        0 6px 0 rgba(15, 118, 110, 0.3),
        0 14px 28px rgba(5, 150, 105, 0.1),
        0 0 20px -6px rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.4);
}

.withdraw-btn-secondary:hover::after {
    opacity: 1;
}

.withdraw-btn-secondary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(15, 118, 110, 0.25);
}

/* ─── History Panel ─── */
.withdraw-history-panel {
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(15, 25, 20, 0.75);
    backdrop-filter: blur(12px);
    padding: 1.15rem 1.2rem 1.2rem;
    box-shadow: 0 8px 28px -12px rgba(0, 0, 0, 0.25);
    animation: withdrawPanelIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards;
}

.withdraw-history-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    color: var(--farm-green-400, #4ade80);
}

.withdraw-history-head i {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.withdraw-history-panel:hover .withdraw-history-head i {
    transform: rotate(-12deg);
}

.withdraw-history-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.withdraw-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.withdraw-history-empty {
    text-align: center;
    padding: 1.5rem 1rem;
    color: #64748b;
    font-size: 0.82rem;
    font-style: italic;
}

.withdraw-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.95rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.25s;
    animation: withdrawHistoryIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.withdraw-history-item:nth-child(1) { animation-delay: 0.3s; }
.withdraw-history-item:nth-child(2) { animation-delay: 0.36s; }
.withdraw-history-item:nth-child(3) { animation-delay: 0.42s; }

@keyframes withdrawHistoryIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.withdraw-history-item:hover {
    transform: translateX(6px);
    box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.08);
}

.withdraw-history-amount {
    font-weight: 900;
    font-size: 0.95rem;
    color: #064e3b;
}

.withdraw-history-amount span {
    font-size: 0.62rem;
    color: #10b981;
    font-weight: 800;
    margin-left: 0.25rem;
}

.withdraw-history-fee {
    font-size: 0.68rem;
    color: #f43f5e;
    font-weight: 600;
    margin-top: 0.1rem;
}

.withdraw-history-date {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 0.15rem;
}

.withdraw-history-status {
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.withdraw-history-item:hover .withdraw-history-status {
    transform: scale(1.06);
}

.withdraw-history-status--done {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #047857;
    border: 1px solid #6ee7b7;
    box-shadow: 0 2px 8px -2px rgba(16, 185, 129, 0.15);
}

.withdraw-history-status--pending {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
    border: 1px solid #fcd34d;
    box-shadow: 0 2px 8px -2px rgba(245, 158, 11, 0.15);
}

.withdraw-history-status--rejected {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    color: #b91c1c;
    border: 1px solid #fca5a5;
    box-shadow: 0 2px 8px -2px rgba(239, 68, 68, 0.15);
}

/* ─── Responsive — Mobile ─── */
@media (max-width: 640px) {
    .withdraw-hero-visual { display: none; }
    .withdraw-main-grid { min-height: auto; }
    .withdraw-action-stage { padding: 0.75rem 0.25rem; }
    .withdraw-action-head,
    .withdraw-action-body {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .withdraw-hero-inner { padding: 1.25rem 1.15rem 1rem; }
    .withdraw-action-head { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
    .withdraw-next-block { text-align: left; width: 100%; }
    .withdraw-btn-primary,
    .withdraw-btn-secondary {
        padding: 0.95rem 1.1rem;
        font-size: 0.95rem;
    }
    .withdraw-history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .withdraw-history-status {
        align-self: flex-end;
    }

    /* Simplify shadows on mobile for performance */
    .withdraw-action-panel {
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.04) inset,
            0 12px 30px -12px rgba(0, 0, 0, 0.35);
    }

    .withdraw-action-panel:hover {
        transform: none;
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.04) inset,
            0 12px 30px -12px rgba(0, 0, 0, 0.35);
    }

    .withdraw-stat-card:hover {
        transform: translateY(-3px);
    }

    .withdraw-stat-card--dep:hover { box-shadow: 0 12px 28px -10px rgba(124, 58, 237, 0.18); }
    .withdraw-stat-card--out:hover { box-shadow: 0 12px 28px -10px rgba(5, 150, 105, 0.18); }
    .withdraw-stat-card--fee:hover { box-shadow: 0 12px 28px -10px rgba(225, 29, 72, 0.18); }
    .withdraw-stat-card--spent:hover { box-shadow: 0 12px 28px -10px rgba(2, 132, 199, 0.18); }

    .withdraw-btn-primary:hover {
        transform: translateY(-1px);
    }

    .withdraw-btn-secondary:hover {
        transform: translateY(-1px);
    }

    /* Disable shimmer animation on mobile */
    .withdraw-balance-value {
        background: none;
        -webkit-background-clip: unset;
        background-clip: unset;
        -webkit-text-fill-color: #ffffff;
        animation: withdrawBalanceReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards;
    }

    /* Reduce glow drift on mobile */
    .withdraw-hero-glow {
        animation-duration: 12s;
    }

    .withdraw-hero-bg {
        animation: none;
    }
}

@media (max-width: 380px) {
    .withdraw-stat-card { padding: 0.85rem 0.5rem; }
    .withdraw-stat-value { font-size: 1.2rem; }
    .withdraw-balance-value { font-size: 2.2rem; }
    .withdraw-hero-chips { gap: 0.3rem; }
    .withdraw-hero-chip { font-size: 0.62rem; padding: 0.28rem 0.5rem; }
}

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