/* ====================================================
   FarmBrawl — Intercambio (BC → USDC + cosechas)
   ==================================================== */

.exchange-hub {
    position: relative;
    padding-bottom: 2rem;
}

.exchange-hub::before {
    content: '';
    position: absolute;
    inset: -1rem -0.5rem 50%;
    background:
        radial-gradient(ellipse 80% 50% at 15% 0%, rgba(16, 185, 129, 0.1), transparent 55%),
        radial-gradient(ellipse 60% 45% at 90% 5%, rgba(244, 63, 94, 0.08), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.exchange-hub > * {
    position: relative;
    z-index: 1;
}

/* ─── Hero ─── */
.exchange-hero-cinematic {
    position: relative;
    border-radius: 1.75rem;
    overflow: hidden;
    margin-bottom: 1.35rem;
    border: 3px solid #059669;
    box-shadow: 0 6px 0 #047857, 0 22px 48px -14px rgba(5, 150, 105, 0.4);
}

.exchange-hero-bg {
    position: absolute;
    inset: 0;
    background: url("../assets/exchange-hero-bg.png") center 38% / cover no-repeat;
    transform: scale(1.02);
    z-index: 0;
}

.exchange-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(105deg, rgba(6, 40, 28, 0.88) 0%, rgba(20, 60, 40, 0.55) 40%, rgba(30, 25, 15, 0.35) 70%, rgba(10, 30, 22, 0.5) 100%),
        linear-gradient(180deg, transparent 52%, rgba(4, 30, 20, 0.65) 100%);
    pointer-events: none;
}

.exchange-hero-glow {
    position: absolute;
    top: -30%;
    right: -5%;
    width: 50%;
    height: 130%;
    z-index: 2;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 62%);
    pointer-events: none;
    animation: exchangeGlowPulse 5s ease-in-out infinite;
}

.exchange-hero-glow--2 {
    top: auto;
    bottom: -40%;
    left: -5%;
    right: auto;
    width: 40%;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.15) 0%, transparent 60%);
    animation-delay: 2s;
}

@keyframes exchangeGlowPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.exchange-hero-sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fde68a;
    box-shadow: 0 0 12px #fbbf24;
    z-index: 3;
    pointer-events: none;
    animation: exchangeSparkle 2.5s ease-in-out infinite;
}

.exchange-hero-sparkle.s1 { top: 22%; left: 58%; }
.exchange-hero-sparkle.s2 { top: 48%; left: 72%; animation-delay: 0.8s; }
.exchange-hero-sparkle.s3 { top: 35%; left: 82%; animation-delay: 1.6s; width: 4px; height: 4px; }

@keyframes exchangeSparkle {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.exchange-hero-inner {
    position: relative;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.55rem 1.75rem 1.25rem;
}

.exchange-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #d1fae5;
    background: rgba(6, 78, 59, 0.55);
    border: 1px solid rgba(110, 231, 183, 0.4);
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.55rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.exchange-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #10b981;
    animation: exchangeLivePulse 1.8s ease-in-out infinite;
}

@keyframes exchangeLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.exchange-hero-text {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 520px;
}

.exchange-hero-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: min(520px, 100%);
    height: 100%;
    background: linear-gradient(100deg, rgba(4, 30, 20, 0.5) 0%, transparent 85%);
    border-radius: 1rem;
    z-index: -1;
    pointer-events: none;
}

.exchange-hero-kicker {
    font-size: 0.68rem;
    font-weight: 800;
    color: #fde68a;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.exchange-hero-title {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: clamp(1.7rem, 3.5vw, 2.35rem);
    font-weight: 700;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    margin: 0 0 0.4rem;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-shadow:
        0 2px 0 #047857,
        0 4px 0 rgba(0, 0, 0, 0.35),
        0 8px 24px rgba(0, 0, 0, 0.55);
}

.exchange-hero-title-accent {
    color: #6ee7b7;
    -webkit-text-fill-color: #6ee7b7;
}

.exchange-hero-desc {
    font-size: 0.88rem;
    font-weight: 600;
    color: #ecfdf5;
    margin: 0 0 0.75rem;
    line-height: 1.55;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.exchange-hero-desc strong {
    color: #fde68a;
    font-weight: 800;
}

.exchange-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.exchange-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 0.75rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: #f3e8ff;
    background: rgba(8, 4, 22, 0.75);
    border: 1px solid rgba(167, 139, 250, 0.25);
    backdrop-filter: blur(8px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.exchange-hero-chip strong {
    color: #fde68a;
}

.exchange-hero-chip--gold strong { color: #fcd34d; }
.exchange-hero-chip--sky strong { color: #7dd3fc; }

.exchange-hero-visual {
    position: relative;
    flex-shrink: 0;
}

.exchange-hero-orbit {
    position: relative;
    width: 150px;
    height: 150px;
}

.exchange-hero-orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px dashed rgba(253, 230, 138, 0.25);
    animation: exchangeOrbitSpin 16s linear infinite;
}

.exchange-hero-orbit-ring--2 {
    inset: 14px;
    border-style: solid;
    border-color: rgba(52, 211, 153, 0.3);
    animation-direction: reverse;
    animation-duration: 11s;
}

@keyframes exchangeOrbitSpin {
    to { transform: rotate(360deg); }
}

.exchange-hero-swap {
    position: absolute;
    inset: 24px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.2), rgba(16, 185, 129, 0.15) 50%, rgba(4, 30, 20, 0.45) 100%);
    border: 2px solid rgba(253, 230, 138, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.45);
    animation: exchangeSwapFloat 4s ease-in-out infinite;
}

@keyframes exchangeSwapFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.exchange-hero-coin {
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.exchange-hero-swap-arrow {
    color: #fde68a;
    font-size: 1rem;
    animation: exchangeArrowPulse 1.5s ease-in-out infinite;
}

@keyframes exchangeArrowPulse {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(4px); opacity: 1; }
}

.exchange-hero-strip {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0.6rem 1.25rem;
    background: rgba(4, 30, 20, 0.85);
    border-top: 1px solid rgba(253, 230, 138, 0.2);
    font-size: 0.74rem;
    font-weight: 800;
    color: #fde68a;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.exchange-hero-strip strong { color: #fff; }

.exchange-hero-strip-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

/* ─── Hub grid ─── */
.exchange-hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
    margin-bottom: 1.35rem;
}

@media (min-width: 900px) {
    .exchange-hub-grid {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: start;
    }
}

/* ─── Converter panel ─── */
.exchange-converter {
    max-width: 580px;
    margin: 0 auto;
    border-radius: 1.5rem;
    border: 1px solid rgba(123, 192, 67, 0.2);
    background: rgba(15, 25, 20, 0.80);
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 0 #047857, 0 18px 40px -12px rgba(5, 150, 105, 0.3);
    overflow: hidden;
    animation: exchangePanelIn 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) backwards;
}

@keyframes exchangePanelIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

.exchange-converter-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    background: linear-gradient(135deg, #047857, #059669 45%, #10b981);
    color: #fff;
}

.exchange-converter-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.exchange-converter-title {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
}

.exchange-converter-sub {
    font-size: 0.72rem;
    opacity: 0.92;
    margin-top: 0.1rem;
}

.exchange-converter-badge {
    margin-left: auto;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    background: rgba(253, 230, 138, 0.25);
    border: 1px solid rgba(253, 230, 138, 0.45);
    color: #fef3c7;
}

.exchange-converter-body {
    padding: 1.15rem;
}

.exchange-converter-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--farm-green-400, #4ade80);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.exchange-converter-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(15, 23, 42, 0.5);
    box-shadow: 0 4px 14px -6px rgba(16, 185, 129, 0.2);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.exchange-converter-input-wrap:focus-within {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.exchange-converter-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.35rem;
    font-weight: 900;
    color: #e2e8f0;
    background: transparent;
    min-width: 0;
    font-family: 'Nunito', sans-serif;
}

.exchange-converter-input-icon {
    font-size: 1.35rem;
}

.exchange-converter-input-suffix {
    font-size: 0.78rem;
    font-weight: 800;
    color: #059669;
}

.exchange-converter-quick {
    display: flex;
    gap: 0.4rem;
    margin: 0.75rem 0;
}

.exchange-converter-quick-btn {
    flex: 1;
    padding: 0.45rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(30, 41, 59, 0.5);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--farm-text-primary, #e2e8f0);
    cursor: pointer;
    transition: background 0.15s, transform 0.12s;
}

.exchange-converter-quick-btn:hover {
    background: rgba(30, 41, 59, 0.7);
    transform: translateY(-1px);
}

.exchange-converter-quick-btn--max {
    background: rgba(123, 192, 67, 0.2);
    color: var(--farm-text-primary, #e2e8f0);
    border-color: rgba(123, 192, 67, 0.3);
    box-shadow: none;
}

.exchange-converter-preview {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
    align-items: center;
    padding: 0.85rem;
    margin-bottom: 0.55rem;
    border-radius: 1rem;
    background: rgba(123, 192, 67, 0.06);
    border: 1px solid rgba(123, 192, 67, 0.15);
}

.exchange-converter-preview-label {
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--farm-text-secondary, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.exchange-converter-preview-bc {
    display: block;
    font-size: 1.05rem;
    font-weight: 900;
    color: #be123c;
    margin-top: 0.15rem;
}

.exchange-converter-preview-usdc {
    display: block;
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--farm-green-400, #4ade80);
    margin-top: 0.15rem;
}

.exchange-converter-preview-arrow {
    color: #10b981;
    font-size: 1.1rem;
    animation: exchangeArrowPulse 1.5s ease-in-out infinite;
}

.exchange-converter-hint {
    font-size: 0.7rem;
    color: var(--farm-text-secondary, #94a3b8);
    margin: 0.35rem 0 0.7rem;
    text-align: center;
    font-weight: 600;
}

.exchange-converter-cap {
    margin: 0.65rem 0 0;
    padding: 0.45rem 0.65rem;
    border-radius: 0.65rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--farm-green-400, #4ade80);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    text-align: center;
}

.exchange-converter-cap--warn {
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
}

.exchange-converter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 1rem;
    font-weight: 900;
    font-size: 0.92rem;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(180deg, #34d399, #059669, #047857);
    box-shadow: 0 5px 0 #065f46, 0 10px 24px rgba(5, 150, 105, 0.35);
    transition: transform 0.12s, filter 0.15s;
    font-family: 'Nunito', sans-serif;
}

.exchange-converter-btn:hover:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-2px);
}

.exchange-converter-btn:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #065f46;
}

.exchange-converter-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--farm-bg-card-hover, #1a1a1a);
    color: var(--farm-text-muted, #94a3b8);
    box-shadow: none;
    border-color: var(--farm-divider, rgba(255,255,255,0.1));
}

.exchange-converter-btn--busy {
    opacity: 0.75;
    pointer-events: none;
}

/* ─── Rates panel ─── */
.exchange-rates-panel {
    border-radius: 1.35rem;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(15, 25, 20, 0.75);
    padding: 1rem;
    box-shadow: 0 8px 28px -10px rgba(15, 23, 42, 0.1);
    animation: exchangePanelIn 0.5s ease 0.08s backwards;
}

.exchange-rates-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.55rem;
    margin-bottom: 0.75rem;
    color: var(--farm-green-400, #4ade80);
}

.exchange-rates-head i {
    font-size: 1rem;
}

.exchange-rates-title {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
}

.exchange-rates-sub {
    font-size: 0.65rem;
    color: #94a3b8;
    width: 100%;
    font-weight: 600;
}

.exchange-rate-grid {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.exchange-rate-grid::-webkit-scrollbar { width: 4px; }
.exchange-rate-grid::-webkit-scrollbar-thumb { background: rgba(123, 192, 67, 0.3); border-radius: 999px; }

.exchange-rate-chip {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.6rem;
    border-radius: 0.85rem;
    border: 1.5px solid transparent;
    transition: transform 0.15s, box-shadow 0.15s;
}

.exchange-rate-chip:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.15);
}

.exchange-rate-have {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35) inset;
    animation: exchangeRateGlow 2s ease-in-out infinite;
}

@keyframes exchangeRateGlow {
    0%, 100% { box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25) inset; }
    50% { box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.5) inset; }
}

.exchange-rate-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exchange-rate-icon svg,
.exchange-rate-icon .crop-art-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.exchange-rate-info {
    flex: 1;
    min-width: 0;
    line-height: 1.2;
}

.exchange-rate-name {
    font-weight: 800;
    font-size: 0.76rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exchange-rate-price {
    font-weight: 900;
    font-size: 0.8rem;
}

.exchange-rate-meta {
    font-size: 0.58rem;
    opacity: 0.85;
    font-weight: 600;
}

.exchange-rate-cur {
    font-weight: 700;
    font-size: 0.55rem;
    opacity: 0.7;
}

.exchange-rate-stock {
    flex-shrink: 0;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 900;
    background: rgba(15, 23, 42, 0.5);
    color: var(--farm-text-primary, #e2e8f0);
}

/* ─── Sell all button ─── */
.exchange-sell-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    font-weight: 900;
    font-size: 0.85rem;
    color: #fff;
    background: linear-gradient(180deg, #fb7185, #e11d48, #be123c);
    box-shadow: 0 5px 0 #9f1239, 0 10px 24px rgba(225, 29, 72, 0.3);
    border: none;
    cursor: pointer;
    transition: transform 0.12s, filter 0.15s;
    margin-top: 0.75rem;
}

.exchange-sell-all-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
}

/* ─── Stats row ─── */
.exchange-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.35rem;
}

@media (min-width: 768px) {
    .exchange-stats-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

.exchange-stat-card {
    position: relative;
    text-align: center;
    padding: 1rem 0.75rem;
    border-radius: 1.25rem;
    background: rgba(15, 25, 20, 0.75);
    backdrop-filter: blur(12px);
    border: 2px solid transparent;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: exchangeStatIn 0.45s ease backwards;
}

.exchange-stat-card:nth-child(1) { animation-delay: 0ms; border-color: rgba(244, 63, 94, 0.3); }
.exchange-stat-card:nth-child(2) { animation-delay: 60ms; border-color: rgba(123, 192, 67, 0.3); }
.exchange-stat-card:nth-child(3) { animation-delay: 120ms; border-color: rgba(251, 191, 36, 0.3); }
.exchange-stat-card:nth-child(4) { animation-delay: 180ms; border-color: rgba(56, 189, 248, 0.3); }

@keyframes exchangeStatIn {
    from { opacity: 0; transform: translateY(10px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

.exchange-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.12);
}

.exchange-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 1.25rem 1.25rem 0 0;
}

.exchange-stat-card--inv::before { background: linear-gradient(90deg, #fb7185, #e11d48); }
.exchange-stat-card--value::before { background: linear-gradient(90deg, #34d399, #059669); }
.exchange-stat-card--sold::before { background: linear-gradient(90deg, #fbbf24, #d97706); }
.exchange-stat-card--bonus::before { background: linear-gradient(90deg, #38bdf8, #0284c7); }

.exchange-stat-icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.exchange-stat-label {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.exchange-stat-value {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0.15rem 0;
}

.exchange-stat-card--inv .exchange-stat-value { color: #fb7185; }
.exchange-stat-card--value .exchange-stat-value { color: #34d399; }
.exchange-stat-card--sold .exchange-stat-value { color: #fbbf24; }
.exchange-stat-card--bonus .exchange-stat-value { color: #38bdf8; }

.exchange-stat-meta {
    font-size: 0.68rem;
    font-weight: 600;
    color: #94a3b8;
}

/* ─── Harvest cards ─── */
.exchange-harvest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.15rem;
}

.exchange-harvest-card {
    position: relative;
    background: rgba(15, 25, 20, 0.80);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1.35rem;
    padding: 1.15rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.22s;
    animation: exchangeHarvestIn 0.5s cubic-bezier(0.34, 1.15, 0.64, 1) backwards;
}

@keyframes exchangeHarvestIn {
    from { opacity: 0; transform: translateY(16px) scale(0.95); }
    to { opacity: 1; transform: none; }
}

.exchange-harvest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.15);
}

.exchange-harvest-glow {
    position: absolute;
    top: -40%;
    right: -20%;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    opacity: 0.35;
    pointer-events: none;
    filter: blur(24px);
}

.exchange-harvest-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    position: relative;
    z-index: 1;
}

.exchange-harvest-icon {
    font-size: 3rem;
    line-height: 1;
}

.exchange-harvest-icon svg,
.exchange-harvest-icon .crop-art-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.exchange-harvest-tier {
    flex-shrink: 0;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 900;
    color: var(--farm-text-secondary, #94a3b8);
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255,255,255,0.08);
}

/* ─── Empty state ─── */
.exchange-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    border-radius: 1.5rem;
    border: 2px dashed rgba(16, 185, 129, 0.3);
    background: rgba(15, 25, 20, 0.5);
}

.exchange-empty-art {
    position: relative;
    width: 9rem;
    height: 5rem;
    margin: 0 auto 1.25rem;
}

.exchange-empty-basket {
    font-size: 3.5rem;
    display: block;
    animation: exchangeBasketBounce 2.5s ease-in-out infinite;
}

@keyframes exchangeBasketBounce {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

.exchange-empty-orb {
    position: absolute;
    font-size: 1.5rem;
    animation: exchangeOrbFloat 3s ease-in-out infinite;
}

.exchange-empty-orb.o1 { top: 0; left: 0; }
.exchange-empty-orb.o2 { top: 0.5rem; right: 0; animation-delay: 0.6s; }

@keyframes exchangeOrbFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.exchange-empty-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--farm-text-primary, #e2e8f0);
    margin-bottom: 0.5rem;
}

.exchange-empty-desc {
    font-size: 0.88rem;
    color: #ffffff;
    margin-bottom: 1.25rem;
    max-width: 24rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.exchange-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 1.25rem;
    font-weight: 900;
    font-size: 0.9rem;
    color: #fff;
    background: linear-gradient(180deg, #34d399, #059669);
    box-shadow: 0 4px 0 #047857;
    border: none;
    cursor: pointer;
    transition: transform 0.12s;
}

.exchange-empty-btn:hover {
    transform: translateY(-2px);
}

/* Locked banner */
.exchange-locked-banner {
    border-radius: 1.25rem;
    border: 1px solid rgba(252, 211, 77, 0.2);
    background: rgba(242, 169, 0, 0.08);
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 6px 20px -8px rgba(217, 119, 6, 0.25);
    color: var(--farm-gold-400, #F2A900);
}

/* Intro animation */
.exchange-harvest-intro .exchange-harvest-card {
    animation: exchangeHarvestIn 0.55s cubic-bezier(0.34, 1.15, 0.64, 1) backwards;
}
