/**
 * Trust2 — Investment Plans section (futuristic)
 * Scoped: body.frontend-futuristic .fe-plans-section
 */

/* —— Section shell —— */
body.frontend-futuristic .fe-plans-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--fe-bg) 0%, var(--fe-bg-alt) 50%, var(--fe-bg) 100%);
}

body.frontend-futuristic .fe-plans-section__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    color: rgba(255, 255, 255, 0.06);
}

body.frontend-futuristic .fe-plans-bg__grid {
    width: 100%;
    height: 100%;
    opacity: 0.85;
    animation: fePlansGridDrift 40s linear infinite;
}

body.frontend-futuristic .fe-plans-bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
}

body.frontend-futuristic .fe-plans-bg__orb--1 {
    width: 420px;
    height: 420px;
    top: 10%;
    left: -8%;
    background: color-mix(in srgb, var(--color-primary) 35%, transparent);
    animation: fePlansOrbFloat 14s ease-in-out infinite;
}

body.frontend-futuristic .fe-plans-bg__orb--2 {
    width: 360px;
    height: 360px;
    bottom: 5%;
    right: -6%;
    background: rgba(99, 102, 241, 0.22);
    animation: fePlansOrbFloat 18s ease-in-out infinite reverse;
}

body.frontend-futuristic .fe-plans-section .container {
    z-index: 1;
}

body.frontend-futuristic .fe-plans-section__head {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
}

body.frontend-futuristic .fe-plans-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-plans-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-plans-section__head {
        max-width: 42rem;
        margin-bottom: 3rem;
    }

    body.frontend-futuristic .fe-plans-section__head p {
        max-width: 36rem;
        font-size: 1.05rem;
    }

    body.frontend-futuristic .fe-plan-card__inner {
        padding: 1.75rem 1.4rem 1.45rem;
    }

    body.frontend-futuristic .fe-plan-card__name {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    body.frontend-futuristic .fe-plan-card__profit-value {
        font-size: 2.35rem;
    }

    body.frontend-futuristic .fe-plan-card__features li {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    body.frontend-futuristic .fe-plan-card__limit strong {
        font-size: 0.9rem;
        word-break: break-word;
    }

    body.frontend-futuristic .fe-plan-card__limit small {
        font-size: 0.62rem;
    }
}

/* —— Card grid —— */
body.frontend-futuristic .fe-plan-row {
    perspective: 1200px;
    overflow: visible;
}

body.frontend-futuristic .fe-plan-row > [class*="col"] {
    overflow: visible;
    padding-top: 18px;
}

body.frontend-futuristic .fe-plan-card {
    --fe-plan-border: rgba(255, 255, 255, 0.09);
    position: relative;
    overflow: visible;
    height: 100%;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--color-primary) 45%, transparent),
        rgba(255, 255, 255, 0.06) 40%,
        color-mix(in srgb, #6366f1 30%, transparent)
    );
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

body.frontend-futuristic .fe-plan-card__inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.85rem 1.6rem 1.5rem;
    border-radius: 21px;
    background: linear-gradient(165deg, rgba(17, 24, 39, 0.96) 0%, rgba(10, 14, 23, 0.98) 100%);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

body.frontend-futuristic .fe-plan-card__glow {
    position: absolute;
    inset: -40%;
    z-index: 0;
    background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--color-primary) 22%, transparent), transparent 55%);
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

body.frontend-futuristic .fe-plan-card__scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 3;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0;
    top: 0;
    pointer-events: none;
}

body.frontend-futuristic .fe-plan-card__hex {
    position: absolute;
    top: 50%;
    right: -20px;
    width: 140px;
    height: 140px;
    transform: translateY(-50%);
    color: var(--color-primary);
    opacity: 0.35;
    animation: fePlansHexSpin 24s linear infinite;
    pointer-events: none;
}

body.frontend-futuristic .fe-plan-card__bracket {
    position: absolute;
    width: 22px;
    height: 22px;
    color: color-mix(in srgb, var(--color-primary) 70%, #fff);
    opacity: 0.55;
    z-index: 4;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

body.frontend-futuristic .fe-plan-card__bracket--tl { top: 14px; left: 14px; }
body.frontend-futuristic .fe-plan-card__bracket--br { bottom: 14px; right: 14px; }

body.frontend-futuristic .fe-plan-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.45),
        0 0 60px color-mix(in srgb, var(--color-primary) 12%, transparent);
}

body.frontend-futuristic .fe-plan-card:hover .fe-plan-card__glow {
    opacity: 1;
}

body.frontend-futuristic .fe-plan-card:hover .fe-plan-card__bracket {
    opacity: 1;
}

body.frontend-futuristic .fe-plan-card:hover .fe-plan-card__scan {
    animation: fePlansScan 2.8s ease-in-out infinite;
    opacity: 0.85;
}

/* Featured card */
body.frontend-futuristic .fe-plan-card--featured {
    background: linear-gradient(
        145deg,
        var(--color-primary),
        color-mix(in srgb, var(--color-primary) 60%, #6366f1),
        var(--color-primary)
    );
    transform: scale(1.04);
    z-index: 2;
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--color-primary) 40%, transparent),
        0 28px 56px rgba(0, 0, 0, 0.5),
        0 0 80px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

body.frontend-futuristic .fe-plan-card--featured .fe-plan-card__inner {
    background: linear-gradient(165deg, rgba(22, 28, 45, 0.98) 0%, rgba(12, 16, 28, 0.99) 100%);
    padding-top: 2.1rem;
}

body.frontend-futuristic .fe-plan-card--featured .fe-plan-card__scan {
    opacity: 0.9;
    animation: fePlansScan 2.2s ease-in-out infinite;
}

/* Ribbon — card के बाहर, inner के overflow से clip न हो */
body.frontend-futuristic .fe-plan-card__ribbon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 80%, #fff));
    color: #0a0f18;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 20px color-mix(in srgb, var(--color-primary) 45%, transparent);
    z-index: 10;
    pointer-events: none;
}

body.frontend-futuristic .fe-plan-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
}

body.frontend-futuristic .fe-plan-card__terms {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

body.frontend-futuristic .fe-plan-card__terms:hover {
    color: color-mix(in srgb, var(--color-primary) 75%, #fff);
    opacity: 0.9;
}

body.frontend-futuristic .fe-plan-card__terms i {
    font-size: 0.95rem;
}

body.frontend-futuristic .fe-plan-card__return {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--fe-border);
}

body.frontend-futuristic .fe-plan-card__return-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--fe-muted);
}

body.frontend-futuristic .fe-plan-card__return-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fe-text);
    text-align: right;
}

body.frontend-futuristic .fe-plan-card__duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 10%, rgba(0, 0, 0, 0.35));
    border: 1px solid color-mix(in srgb, var(--color-primary) 35%, transparent);
    padding: 5px 12px;
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.frontend-futuristic .fe-plan-card__name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--fe-text);
    margin: 0 0 0.65rem;
    letter-spacing: -0.02em;
}

/* Profit */
body.frontend-futuristic .fe-plan-card__profit {
    margin-bottom: 1.15rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid var(--fe-border);
}

body.frontend-futuristic .fe-plan-card__profit-value {
    display: block;
    font-size: clamp(2.25rem, 4vw, 2.85rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--color-primary) 0%, #fff 55%, var(--color-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fePlansProfitShine 5s linear infinite;
    filter: drop-shadow(0 0 24px color-mix(in srgb, var(--color-primary) 35%, transparent));
}

body.frontend-futuristic .fe-plan-card__profit-label {
    display: block;
    margin-top: 4px;
    font-size: 0.9rem;
    color: var(--fe-muted);
    text-transform: lowercase;
}

/* Limits bar */
body.frontend-futuristic .fe-plan-card__limits {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin-bottom: 1.35rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--fe-border);
    border-radius: 12px;
    overflow: hidden;
}

body.frontend-futuristic .fe-plan-card__limit {
    flex: 1;
    padding: 0.85rem 1rem;
    text-align: center;
}

body.frontend-futuristic .fe-plan-card__limit-divider {
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--fe-border-strong), transparent);
    flex-shrink: 0;
}

body.frontend-futuristic .fe-plan-card__limit small {
    display: block;
    font-size: 0.65rem;
    color: var(--fe-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

body.frontend-futuristic .fe-plan-card__limit strong {
    color: var(--fe-text);
    font-size: 1rem;
    font-weight: 600;
}

/* Features */
body.frontend-futuristic .fe-plan-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}

body.frontend-futuristic .fe-plan-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0.4rem 0;
    color: var(--fe-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

body.frontend-futuristic .fe-plan-card__features li span {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

body.frontend-futuristic .fe-plan-card__check {
    flex-shrink: 0;
    color: #2ebd85;
    margin-top: 1px;
}

/* Buttons */
body.frontend-futuristic .fe-plan-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background 0.25s ease;
}

body.frontend-futuristic .fe-plan-card__btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

body.frontend-futuristic .fe-plan-card__btn:hover::before {
    transform: translateX(120%);
}

body.frontend-futuristic .fe-plan-card__btn:hover {
    transform: translateY(-2px);
}

body.frontend-futuristic .fe-plan-card__btn--outline {
    background: transparent !important;
    border: 1.5px solid var(--color-primary) !important;
    color: var(--color-primary) !important;
    box-shadow: inset 0 0 20px color-mix(in srgb, var(--color-primary) 8%, transparent);
}

body.frontend-futuristic .fe-plan-card__btn--outline:hover {
    background: color-mix(in srgb, var(--color-primary) 12%, transparent) !important;
    box-shadow: 0 0 28px color-mix(in srgb, var(--color-primary) 25%, transparent);
}

body.frontend-futuristic .fe-plan-card__btn--solid {
    background: linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 75%, #fff)) !important;
    color: #0a0f18 !important;
    box-shadow: 0 8px 28px color-mix(in srgb, var(--color-primary) 40%, transparent);
}

body.frontend-futuristic .fe-plan-card__btn-arrow {
    transition: transform 0.25s ease;
}

body.frontend-futuristic .fe-plan-card__btn:hover .fe-plan-card__btn-arrow {
    transform: translateX(4px);
}

/* Risk note */
body.frontend-futuristic .fe-plans-section .fe-risk-note {
    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-plans-section .fe-risk-note svg {
    flex-shrink: 0;
    color: var(--color-primary);
    margin-top: 2px;
}

body.frontend-futuristic .fe-plans-section .fe-risk-note p {
    margin: 0;
}

body.frontend-futuristic .fe-plans-section .fe-risk-note strong {
    color: var(--fe-text);
}

/* Animations */
@keyframes fePlansGridDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(48px, 48px); }
}

@keyframes fePlansOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(24px, -18px) scale(1.06); }
}

@keyframes fePlansHexSpin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

@keyframes fePlansScan {
    0% { top: 0; opacity: 0; }
    15% { opacity: 0.9; }
    85% { opacity: 0.9; }
    100% { top: 100%; opacity: 0; }
}

@keyframes fePlansProfitShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes fePlansPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

@media (max-width: 991px) {
    body.frontend-futuristic .fe-plan-card--featured {
        transform: none;
    }

    body.frontend-futuristic .fe-plan-card:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 767px) {
    body.frontend-futuristic .fe-plans-section {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }

    body.frontend-futuristic .fe-plans-section__head {
        margin-bottom: 1.75rem;
    }

    body.frontend-futuristic .fe-plan-row > [class*="col"] {
        padding-top: 14px;
    }

    body.frontend-futuristic .fe-plan-card__inner {
        padding: 1.35rem 1.15rem 1.15rem;
    }

    body.frontend-futuristic .fe-plan-card__profit-value {
        font-size: 2rem;
    }

    body.frontend-futuristic .fe-plan-card__limits {
        flex-direction: column;
        gap: 0;
    }

    body.frontend-futuristic .fe-plan-card__limit-divider {
        width: 100%;
        height: 1px;
        margin: 0;
    }

    body.frontend-futuristic .fe-plan-card__limit {
        padding: 0.65rem 0.85rem;
    }
}

/* —— Terms & invest modals (homepage + guest) —— */
body.frontend-futuristic .inv-fx-modal .modal-dialog {
    max-width: 520px;
}

body.frontend-futuristic .inv-fx-modal.inv-fx-modal--terms .modal-dialog {
    max-width: min(640px, calc(100vw - 2rem));
}

body.frontend-futuristic .inv-fx-modal .modal-content {
    background: linear-gradient(165deg, rgba(11, 18, 32, 0.98), rgba(5, 10, 20, 0.99)) !important;
    border: 1px solid color-mix(in srgb, var(--color-primary) 35%, transparent) !important;
    border-radius: 18px !important;
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 0 48px color-mix(in srgb, var(--color-primary) 12%, transparent);
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body.frontend-futuristic .inv-fx-modal .modal-header {
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--color-primary) 14%, transparent),
        color-mix(in srgb, var(--color-primary) 5%, transparent)
    ) !important;
    border-bottom: 1px solid var(--fe-border) !important;
    padding: 1rem 1.25rem;
}

body.frontend-futuristic .inv-fx-modal .modal-title {
    color: var(--fe-text) !important;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

body.frontend-futuristic .inv-fx-modal .btn-close {
    filter: invert(1) grayscale(1) brightness(1.2);
    opacity: 0.75;
}

body.frontend-futuristic .inv-fx-modal .modal-body {
    background: transparent !important;
    color: var(--fe-text) !important;
    padding: 1.15rem 1.25rem;
}

body.frontend-futuristic .inv-fx-modal .fe-inv-terms,
body.frontend-futuristic .inv-fx-modal #invest_terms {
    max-height: min(52vh, 420px);
    overflow-y: auto;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--fe-border);
    background: rgba(15, 23, 42, 0.55);
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--fe-muted) !important;
    word-break: break-word;
}

body.frontend-futuristic .inv-fx-modal .fe-inv-terms__content p,
body.frontend-futuristic .inv-fx-modal #invest_terms p {
    margin: 0 0 0.75rem;
    color: var(--fe-muted) !important;
}

body.frontend-futuristic .inv-fx-modal .fe-inv-terms__content p:last-child,
body.frontend-futuristic .inv-fx-modal #invest_terms p:last-child {
    margin-bottom: 0;
}

body.frontend-futuristic .inv-fx-modal .fe-inv-terms::-webkit-scrollbar,
body.frontend-futuristic .inv-fx-modal #invest_terms::-webkit-scrollbar {
    width: 8px;
}

body.frontend-futuristic .inv-fx-modal .fe-inv-terms::-webkit-scrollbar-thumb,
body.frontend-futuristic .inv-fx-modal #invest_terms::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--color-primary) 28%, transparent);
    border-radius: 999px;
}

body.frontend-futuristic .inv-fx-modal .modal-footer {
    border-top: 1px solid var(--fe-border) !important;
    background: rgba(8, 14, 24, 0.5) !important;
    padding: 0.85rem 1.25rem;
}

body.frontend-futuristic .inv-fx-modal .inv-fx-btn-close {
    border: 1px solid color-mix(in srgb, var(--color-primary) 45%, transparent) !important;
    color: color-mix(in srgb, var(--color-primary) 75%, #fff) !important;
    background: transparent !important;
    font-weight: 600;
    border-radius: 10px !important;
}

body.frontend-futuristic .inv-fx-modal .inv-fx-btn-close:hover {
    background: color-mix(in srgb, var(--color-primary) 12%, transparent) !important;
    color: var(--fe-text) !important;
}

body.frontend-futuristic .inv-fx-modal .inv-fx-risk {
    background: rgba(251, 191, 36, 0.08) !important;
    border: 1px solid rgba(251, 191, 36, 0.25) !important;
    color: #fde68a !important;
    border-radius: 12px !important;
}

body.frontend-futuristic .inv-fx-modal .form-control,
body.frontend-futuristic .inv-fx-modal .input-group-text {
    background: rgba(15, 23, 42, 0.85) !important;
    border-color: var(--fe-border) !important;
    color: var(--fe-text) !important;
}

body.frontend-futuristic .inv-fx-modal .form-control:focus {
    border-color: color-mix(in srgb, var(--color-primary) 50%, transparent) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 16%, transparent);
}

body.frontend-futuristic .inv-fx-modal .inv-fx-submit {
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--color-primary) 95%, transparent),
        color-mix(in srgb, var(--color-primary) 75%, #0ea5e9)
    ) !important;
    border: 1px solid color-mix(in srgb, var(--color-primary) 50%, transparent) !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 10px !important;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--color-primary) 28%, transparent);
}

body.frontend-futuristic .inv-fx-modal .inv-fx-submit:hover {
    filter: brightness(1.06);
}

body.frontend-futuristic .modal-backdrop.show {
    opacity: 0.72;
    backdrop-filter: blur(4px);
}

@media (prefers-reduced-motion: reduce) {
    body.frontend-futuristic .fe-plans-bg__grid,
    body.frontend-futuristic .fe-plans-bg__orb,
    body.frontend-futuristic .fe-plan-card__hex,
    body.frontend-futuristic .fe-plan-card__profit-value,
    body.frontend-futuristic .fe-plan-card__scan {
        animation: none !important;
    }
}
