/**
 * Trust2 — Staking Investment section (futuristic)
 */

body.frontend-futuristic .fe-staking-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--fe-bg-alt) 0%, var(--fe-bg) 100%) !important;
}

body.frontend-futuristic .fe-staking-section.investment-section {
    color: inherit;
    padding-top: 110px;
    padding-bottom: 110px;
}

body.frontend-futuristic .fe-staking-section__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    color: rgba(255, 255, 255, 0.05);
}

body.frontend-futuristic .fe-staking-bg__grid {
    width: 100%;
    height: 100%;
    animation: feStakingGridDrift 45s linear infinite;
}

body.frontend-futuristic .fe-staking-bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(85px);
    opacity: 0.45;
}

body.frontend-futuristic .fe-staking-bg__orb--1 {
    width: 400px;
    height: 400px;
    top: 0;
    left: -6%;
    background: color-mix(in srgb, var(--color-primary) 28%, transparent);
    animation: feStakingOrb 18s ease-in-out infinite;
}

body.frontend-futuristic .fe-staking-bg__orb--2 {
    width: 340px;
    height: 340px;
    bottom: -5%;
    right: -4%;
    background: rgba(46, 189, 133, 0.12);
    animation: feStakingOrb 22s ease-in-out infinite reverse;
}

body.frontend-futuristic .fe-staking-section .container {
    z-index: 1;
}

body.frontend-futuristic .fe-staking-section__head {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    text-align: center;
}

body.frontend-futuristic .fe-staking-section__head h2 {
    font-size: clamp(1.65rem, 2.5vw, 2.15rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

body.frontend-futuristic .fe-staking-section__head p {
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--fe-muted);
}

@media (min-width: 992px) {
    body.frontend-futuristic .fe-staking-section__head {
        max-width: 42rem;
        margin-bottom: 3rem;
    }

    body.frontend-futuristic .fe-staking-section__head p {
        max-width: 36rem;
        font-size: 1.05rem;
    }
}

/* —— Staking card (wide horizontal) —— */
body.frontend-futuristic .fe-staking-card {
    position: relative;
    height: 100%;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(
        120deg,
        color-mix(in srgb, var(--color-primary) 40%, transparent),
        rgba(255, 255, 255, 0.06) 50%,
        color-mix(in srgb, #2ebd85 25%, transparent)
    );
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.frontend-futuristic .fe-staking-card__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 1.5rem;
    padding: 1.5rem 1.75rem;
    border-radius: 19px;
    background: linear-gradient(155deg, rgba(17, 24, 39, 0.97) 0%, rgba(8, 14, 24, 0.99) 100%);
    backdrop-filter: blur(14px);
    overflow: hidden;
    min-height: 120px;
}

body.frontend-futuristic .fe-staking-card__glow {
    position: absolute;
    inset: -25%;
    background: radial-gradient(circle at 0% 50%, color-mix(in srgb, var(--color-primary) 20%, transparent), transparent 55%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
    transition: opacity 0.3s ease;
}

body.frontend-futuristic .fe-staking-card__ring {
    position: absolute;
    right: -30px;
    top: 50%;
    width: 120px;
    height: 120px;
    transform: translateY(-50%);
    color: var(--color-primary);
    opacity: 0.35;
    pointer-events: none;
    animation: feStakingRingSpin 30s linear infinite;
}

body.frontend-futuristic .fe-staking-card__corner {
    position: absolute;
    width: 18px;
    height: 18px;
    color: color-mix(in srgb, var(--color-primary) 70%, #fff);
    opacity: 0.45;
    z-index: 3;
    pointer-events: none;
}

body.frontend-futuristic .fe-staking-card__corner--tl {
    top: 12px;
    left: 12px;
}

body.frontend-futuristic .fe-staking-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.4),
        0 0 48px color-mix(in srgb, var(--color-primary) 12%, transparent);
}

body.frontend-futuristic .fe-staking-card:hover .fe-staking-card__glow {
    opacity: 1;
}

/* Profit rate — left */
body.frontend-futuristic .fe-staking-card__rate {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 1.5rem;
    margin-right: 0.5rem;
    border-right: 1px solid var(--fe-border);
    min-width: 110px;
}

body.frontend-futuristic .fe-staking-card__rate-value {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--color-primary), #fff 60%, var(--color-primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: feStakingRateShine 5s linear infinite;
}

body.frontend-futuristic .fe-staking-card__rate-label {
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--fe-muted);
}

/* Meta — center */
body.frontend-futuristic .fe-staking-card__meta {
    flex: 1 1 200px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    min-width: 0;
}

body.frontend-futuristic .fe-staking-card__info {
    flex: 1 1 140px;
    min-width: 0;
}

body.frontend-futuristic .fe-staking-card__info-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fe-muted);
    margin-bottom: 4px;
}

body.frontend-futuristic .fe-staking-card__info-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fe-text);
    line-height: 1.4;
    word-break: break-word;
}

/* Action — right */
body.frontend-futuristic .fe-staking-card__action {
    flex: 0 0 auto;
    margin-left: auto;
}

body.frontend-futuristic .fe-staking-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 75%, #fff)) !important;
    color: #0a0f18 !important;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--color-primary) 35%, transparent);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

body.frontend-futuristic .fe-staking-card__btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
}

body.frontend-futuristic .fe-staking-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--color-primary) 45%, transparent);
}

body.frontend-futuristic .fe-staking-card__btn:hover::before {
    transform: translateX(120%);
}

body.frontend-futuristic .fe-staking-card__btn svg {
    transition: transform 0.25s ease;
}

body.frontend-futuristic .fe-staking-card__btn:hover svg {
    transform: translateX(3px);
}

/* Risk note */
body.frontend-futuristic .fe-staking-risk {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 8%, #0f172a), rgba(15, 23, 42, 0.9));
    border: 1px solid color-mix(in srgb, var(--color-primary) 22%, transparent);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    color: var(--fe-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

body.frontend-futuristic .fe-staking-risk svg {
    flex-shrink: 0;
    color: var(--color-primary);
    margin-top: 2px;
}

body.frontend-futuristic .fe-staking-risk p {
    margin: 0;
}

body.frontend-futuristic .fe-staking-risk strong {
    color: var(--fe-text);
}

/* Hide legacy invest-card if any */
body.frontend-futuristic .fe-staking-section .invest-card {
    display: none;
}

/* Mobile — compact card (original जैसी height, कम stack) */
@media (max-width: 991px) {
    body.frontend-futuristic .fe-staking-section.investment-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    body.frontend-futuristic .fe-staking-section__head {
        margin-bottom: 1.75rem;
    }

    body.frontend-futuristic .fe-staking-row {
        --bs-gutter-y: 0.75rem;
    }
}

@media (max-width: 767px) {
    body.frontend-futuristic .fe-staking-card {
        border-radius: 16px;
    }

    body.frontend-futuristic .fe-staking-card__inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        padding: 1rem 1rem 0.9rem;
        min-height: 0;
        gap: 0.65rem 0.85rem;
    }

    body.frontend-futuristic .fe-staking-card__ring {
        width: 72px;
        height: 72px;
        right: -18px;
        opacity: 0.2;
    }

    body.frontend-futuristic .fe-staking-card__rate {
        flex: 0 0 auto;
        align-items: flex-start;
        min-width: 0;
        width: auto;
        padding: 0 0.75rem 0 0;
        margin: 0;
        border-right: 1px solid var(--fe-border);
        border-bottom: none;
    }

    body.frontend-futuristic .fe-staking-card__rate-value {
        font-size: 1.6rem;
    }

    body.frontend-futuristic .fe-staking-card__rate-label {
        font-size: 0.72rem;
        margin-top: 2px;
    }

    body.frontend-futuristic .fe-staking-card__meta {
        flex: 1 1 calc(100% - 88px);
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem 0.65rem;
        text-align: left;
        justify-content: stretch;
        min-width: 0;
    }

    body.frontend-futuristic .fe-staking-card__info {
        flex: none;
        min-width: 0;
    }

    body.frontend-futuristic .fe-staking-card__info-label {
        font-size: 0.62rem;
        margin-bottom: 2px;
    }

    body.frontend-futuristic .fe-staking-card__info-value {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    body.frontend-futuristic .fe-staking-card__action {
        flex: 1 1 100%;
        width: 100%;
        margin-left: 0;
        margin-top: 0.15rem;
        padding-top: 0.65rem;
        border-top: 1px solid var(--fe-border);
    }

    body.frontend-futuristic .fe-staking-card__btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.88rem;
    }

    body.frontend-futuristic .fe-staking-risk {
        font-size: 0.82rem;
        padding: 0.85rem 1rem;
    }
}

@media (max-width: 380px) {
    body.frontend-futuristic .fe-staking-card__inner {
        padding: 0.9rem 0.85rem 0.85rem;
    }

    body.frontend-futuristic .fe-staking-card__meta {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    body.frontend-futuristic .fe-staking-card__rate {
        flex: 1 1 100%;
        border-right: none;
        padding: 0 0 0.5rem;
        border-bottom: 1px solid var(--fe-border);
        flex-direction: row;
        align-items: baseline;
        gap: 0.5rem;
    }

    body.frontend-futuristic .fe-staking-card__rate-value {
        font-size: 1.45rem;
    }

    body.frontend-futuristic .fe-staking-card__rate-label {
        margin-top: 0;
    }
}

@media (min-width: 992px) {
    body.frontend-futuristic .fe-staking-card__inner {
        padding: 1.65rem 2rem;
        gap: 1.5rem 2rem;
    }

    body.frontend-futuristic .fe-staking-card__rate {
        min-width: 130px;
        padding-right: 2rem;
    }
}

@keyframes feStakingGridDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(44px, 44px); }
}

@keyframes feStakingOrb {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(18px, -14px); }
}

@keyframes feStakingRingSpin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

@keyframes feStakingRateShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@media (prefers-reduced-motion: reduce) {
    body.frontend-futuristic .fe-staking-bg__grid,
    body.frontend-futuristic .fe-staking-bg__orb,
    body.frontend-futuristic .fe-staking-card__ring,
    body.frontend-futuristic .fe-staking-card__rate-value {
        animation: none !important;
    }

    body.frontend-futuristic .fe-staking-card:hover {
        transform: none;
    }
}
