/* ==========================================================================
   THE MEWA - REFER & EARN PAGE STYLES
   Combined CSS for: Hero Section & Referral Dashboard
   ========================================================================== */

/* =========================================
   1. VARIABLES & RESET (From Hero)
   ========================================= */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-tertiary: #1a1a24;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    --border-color: rgba(255, 255, 255, 0.08);

    /* Brand Gradients */
    --gradient-1: #f59e0b;
    --gradient-2: #ec4899;
    --gradient-3: #8b5cf6;
    --gradient-4: #3b82f6;

    /* Accent Colors */
    --accent-buy: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* =========================================
   2. REFERRAL HERO SECTION
   ========================================= */
.referral-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 20px 30px;
    background: var(--bg-secondary);
}

.referral-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    width: 100%;
}

/* Hero Typography & Badges */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    border: 2px solid transparent;
    background:
        linear-gradient(#1a1a1a, #1a1a1a) padding-box,
        linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3)) border-box;
    color: white;
    backdrop-filter: blur(10px);
}

.badge-icon {
    font-size: 18px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(100deg, var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-4));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 5s ease infinite;
}

/* Green Gradient for the Passive Income Total */
.total-value.gradient-green {
    background: linear-gradient(135deg, #10b981, #34d399, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.3)); /* Adds a soft green glow */
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 1rem;
}

/* Hero Stats Cards */
.hero-stats {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 25px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 140px;
}

.hero-stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

/* =========================================
   3. REFERRAL DASHBOARD SECTION
   ========================================= */
.referral-section {
    padding: 100px 0;
    background: #f3f3f5;
    position: relative;
    overflow: hidden;
}

.referral-section .section-title {
    color: #28282b;
}

.referral-section .section-subtitle {
    color: var(--text-muted);
}

/* Engine Cards (Step Process) */
.engine-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.engine-card {
    padding: 2.5rem 2rem;
    height: 100%;
    position: relative;
    border-right: 1px solid var(--border-color);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02), transparent);
    transition: background 0.3s;
}

.engine-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.engine-card.end {
    border-right: none;
}

/* Highlight for the "Money" step */
.engine-card.highlight {
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.05), transparent);
}

.engine-icon {
    font-size: 2rem;
    color: var(--gradient-1);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.engine-card.highlight .engine-icon {
    color: var(--accent-buy);
}

.step-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.engine-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.engine-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.engine-arrow {
    position: absolute;
    top: 50%;
    right: -12px;
    transform: translateY(-50%);
    z-index: 10;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Model Cards (Data Tables) */
.model-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 0;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.model-card.glow-border {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.05);
}

.model-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.icon-box {
    width: 45px;
    height: 45px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.icon-box.gradient {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    color: white;
}

.model-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.badge-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Info List Rows */
.info-list {
    padding: 0 1rem;
}

.info-row {
    display: flex;
    align-items: center;
    padding: 1.25rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row.header {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    padding-bottom: 0.5rem;
    padding-top: 1.5rem;
    border-bottom: none;
}

/* Data Tags & Typography */
.time-tag,
.count-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-buy);
    background: rgba(16, 185, 129, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 4px;
}

.time-tag.purple,
.count-tag.purple {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.small-plan {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.val-highlight {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
}

.val-highlight.green {
    color: var(--accent-buy);
}

.val-highlight.purple {
    color: #8b5cf6;
}

.val-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.math-micro {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

.remark-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
}

.model-footer {
    background: rgba(139, 92, 246, 0.05);
    padding: 0.75rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

/* Why Refer (Value Props) */
.why-refer-wrapper {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-card));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

.border-end-glass {
    border-right: 1px solid var(--border-color);
}

.value-prop {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1rem;
}

.vp-icon {
    font-size: 1.75rem;
    color: var(--text-primary);
    opacity: 0.8;
}

.value-prop h5 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.value-prop p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.text-center h4 {
    color: #28282b;
    font-weight: 500 !important;
    font-size: 1.5rem;
}

/* =========================================
   4. ANIMATIONS
   ========================================= */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

@keyframes gradientMove {

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

    50% {
        background-position: 100% 50%;
    }
}

/* =========================================
   5. RESPONSIVE DESIGN (Consolidated)
   ========================================= */

/* --- Tablet / Small Laptop (max-width: 991px) --- */
@media (max-width: 991px) {
    .referral-section {
        padding: 60px 0;
    }

    /* Stack Engine Cards & Center Content */
    .engine-card {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 2rem;
        margin-bottom: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .engine-card.end {
        border-bottom: none;
    }

    /* Hide horizontal arrows */
    .engine-arrow {
        display: none !important;
    }

    .model-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Stack Why Refer Cards */
    .border-end-glass {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .value-prop {
        padding: 0;
    }
}

/* --- Mobile Landscape / Large Phone (max-width: 768px) --- */
@media (max-width: 768px) {

    /* Hero Adjustments */
    .referral-hero {
        padding: 120px 20px 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Hero Stats: Stack Vertically & Center */
    .hero-stats {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        padding-top: 1.5rem;
    }

    .hero-stat-card {
        width: 100%;
        max-width: 200px;
        /* Limits width so they don't stretch */
        padding: 20px;
        min-width: 0;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    /* Dashboard: Add spacing between stacked cards */
    .engine-card {
        margin-bottom: 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }

    .engine-card.end {
        margin-bottom: 0;
        border-bottom: none;
    }
}

/* --- Small Mobile (max-width: 576px) --- */
@media (max-width: 576px) {

    /* Stack Info Table Rows */
    .info-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .info-row>div {
        width: 100%;
        text-align: left !important;
    }

    /* Hide Table Header */
    .info-row.header {
        display: none;
    }
}


/* =========================================
   9. FINAL POLISHED NEON LAYOUT
   ========================================= */

/* --- Headings --- */
.aesthetic-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: #28282b;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-left: 15px;
}

.aesthetic-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, var(--gradient-1), var(--gradient-2));
    border-radius: 2px;
}

/* --- Base Neon Card --- */
.neon-card {
    background: #16161f;
    /* Dark Base */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Gradient Border on Hover */
.neon-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.neon-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-color: transparent;
}

.neon-card:hover::after {
    opacity: 1;
}

/* --- 1. Step Boxes (With Corner Badge) --- */
.step-box {
    padding: 2.5rem 2rem 2rem;
    /* Top padding increased for badge */
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

/* The Cool "Step 01" Badge */
.step-corner-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    z-index: 2;
}

/* Animation Container */
.visual-area-large {
    height: 100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Glow behind animation */
.visual-area-large::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.step-text h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.step-text p {
    font-size: 1rem;
    color: #a0a0b0;
    margin: 0;
}

/* --- 2. Commission Boxes --- */
.comm-box {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}

/* Spotlight for Options */
.comm-top {
    margin-bottom: 1.5rem;
    text-align: left;
}

.plan-tag {
    display: inline-block;
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.plan-tag.green {
    color: var(--accent-buy);
}

.plan-tag.purple {
    color: #a78bfa;
}

.plan-tag.orange {
    color: #fbbf24;
}

.plan-tag.blue {
    color: #60a5fa;
}

.plan-cost {
    display: block;
    font-size: 1.3rem;
    color: #f3f3f5;
    font-family: monospace;
}

.comm-bottom {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: right;
}

.earn-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #f3f3f5;
    margin-bottom: 2px;
}

.earn-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    letter-spacing: 1px;
    margin: 0.4rem 0;
}

.earn-value.green {
    color: var(--accent-buy);
}

.earn-value.purple {
    color: #a78bfa;
}

.earn-value.orange {
    color: #fbbf24;
}

.earn-value.blue {
    color: #60a5fa;
}

.earn-freq {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* --- 3. Scenario Widget --- */
.scenario-box {
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 1.3rem;
}

.sc-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.sc-icon-lg {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.3);
}

.sc-info h5 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.sc-info p {
    font-size: 1rem;
    color: #a0a0b0;
    margin: 0;
}

.sc-divider-vertical {
    width: 1px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
}

.sc-right {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex: 1.5;
    justify-content: space-around;
}

.sc-stat span {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.sc-stat h4 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
}

.sc-plus {
    font-size: 2rem;
    color: var(--text-secondary);
}

/* Custom Scenario Card Styles */
.scenario-label {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-weight: 600;
}

.scenario-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0;
}

.calculation-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 1rem;
}

.calc-box {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 5px;
}

.result-box {
    text-align: center;
}

.you-earn-text {
    display: block;
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 2px;
}

.calculation-footer .total-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gradient-2); /* Pinkish color from your image */
    margin: 0;
    line-height: 1;
}

/* Responsive adjustment for small screens */
@media (max-width: 576px) {
    .calculation-footer {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        text-align: center;
    }
}

/* --- 4. Why Refer --- */
.why-refer-wrapper .value-prop h5 {
    color: #fff;
    margin-bottom: 5px;
}

.why-refer-wrapper .value-prop p {
    color: #a0a0b0;
    margin: 0;
}

.why-refer-wrapper .vp-icon {
    color: #fff;
    opacity: 0.8;
}

.border-end-glass {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Animations (Explicitly Added) --- */
.globe-visual-custom {
    position: relative;
    width: 85px;
    height: 85px;
}

.globe-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gradient-4);
    font-size: 1.7rem;
    z-index: 2;
}

.globe-ring {
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: spin 10s linear infinite;
}

.globe-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--gradient-4);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gradient-4);
}

.dot-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: dotPulse 2s infinite;
}

.dot-2 {
    bottom: 10%;
    left: 10%;
    animation: dotPulse 2s 0.6s infinite;
}

.dot-3 {
    bottom: 10%;
    right: 10%;
    animation: dotPulse 2s 1.2s infinite;
}

.analytics-rings-custom {
    position: relative;
    width: 100px;
    height: 100px;
}

.ring-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gradient-2);
    font-size: 1.5rem;
    z-index: 2;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ring-outer {
    inset: 0;
    border-color: rgba(236, 72, 153, 0.2);
    border-top-color: var(--gradient-2);
    animation: spin 3s linear infinite;
}

.ring-middle {
    inset: 10px;
    border-color: rgba(236, 72, 153, 0.15);
    border-right-color: var(--gradient-2);
    animation: spin 2s linear infinite reverse;
}

.ring-inner {
    inset: 20px;
    border-color: rgba(236, 72, 153, 0.1);
    border-bottom-color: var(--gradient-2);
    animation: spin 1.5s linear infinite;
}

.chart-bars-custom {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
    width: 100px;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 1));
    border-radius: 4px 4px 0 0;
    animation: barPulse 2s ease-in-out infinite;
}

.bar-1 {
    height: 40%;
    animation-delay: 0s;
}

.bar-2 {
    height: 70%;
    animation-delay: 0.2s;
}

.bar-3 {
    height: 50%;
    animation-delay: 0.4s;
}

.bar-4 {
    height: 90%;
    animation-delay: 0.6s;
}

.bar-5 {
    height: 60%;
    animation-delay: 0.8s;
}

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

@keyframes dotPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

@keyframes barPulse {

    0%,
    100% {
        opacity: 0.7;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(1.1);
    }
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .scenario-box {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .sc-left {
        flex-direction: column;
    }

    .sc-divider-vertical {
        width: 100%;
        height: 1px;
    }

    .sc-right {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .border-end-glass {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .why-refer-wrapper .value-prop {
        padding: 0;
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
}

/* =========================================
   VISUAL TWEAKS FOR STEP ARROWS
   ========================================= */

@media (min-width: 992px) {
    /* Adds space on left/right of the boxes so they don't touch the arrows.
       1.5rem (approx 24px) creates enough gap for the 50px arrow to sit freely.
    */
    .step-box {
        margin-left: 1.8rem;
        margin-right: 1.8rem;
    }
}


/* =========================================
   10. UPDATES: GLOWING ORB ARROWS & TEXT
   ========================================= */

/* --- Step Arrows (Glowing Orb Style) --- */
.step-arrow {
    position: absolute;
    top: 50%;
    right: -25px; /* Perfectly centered in the gap */
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #16161f; /* Matches card bg */
    border: 1px solid rgba(139, 92, 246, 0.5); /* Purple border */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); /* Purple Glow */
    color: #fff;
    font-size: 1.4rem;
}

/* Outer Ring Animation */
.step-arrow::before {
    content: '';
    position: absolute;
    inset: -6px; /* Ring distance */
    border-radius: 50%;
    border: 1px dashed rgba(139, 92, 246, 0.3);
    animation: spin 10s linear infinite;
}

/* Arrow Slide Animation */
.step-arrow i {
    animation: arrowFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

@keyframes arrowFloat {
    0%, 100% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
}

/* --- Referral Structure Description (Refined) --- */
.comm-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.earn-val {
    margin-bottom: 4px;
    display: block;
    line-height: 1;
}

.earn-desc {
    display: block;
    font-size: 0.9rem;
    color: #ffffff;
    line-height: 1.4;
    letter-spacing: 0.5px;
}


/* =========================================
   NEW SPLIT SCENARIO CARDS
   ========================================= */

.scenario-card-split {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #16161f; /* Matches dark theme */
}

/* Header Section */
.card-icon-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.icon-box-lg {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    flex-shrink: 0;
}

.icon-box-lg.purple {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.2);
}

.icon-box-lg.green {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.2);
}

.header-text h5 {
    margin: 0 0 4px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.header-text span {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Body Section (Calculations) */
.math-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.math-val {
    color: #fff;
    font-weight: 600;
    font-size: 1.4rem;
}

.divider-dashed {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.total-row {
    text-align: right;
}

.total-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.total-value {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
}

/* =========================================
   RIGHT BOX SPECIFIC (TRADE FOR FREE)
   ========================================= */

.goal-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
}

.free-logic-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.logic-step {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-circle {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}

.step-circle.check {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.step-text strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.2;
}

.step-text small {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.logic-arrow {
    color: var(--text-primary);
    font-size: 2rem;
}

/* Progress Bar */
.progress-bar-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 12px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.custom-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 4px;
}

/* Mobile Tweak */
@media (max-width: 576px) {
    .free-logic-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .logic-arrow {
        transform: rotate(90deg); /* Point down on mobile */
        align-self: center;
    }
}


/* =========================================
   NEW DASHBOARD STRIP LAYOUT
   ========================================= */

.referral-dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Header Row --- */
.dashboard-header {
    display: flex;
    padding: 0 2rem;
    margin-bottom: -10px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b6b7b;
    font-weight: 600;
}

.dashboard-header .col-product { width: 30%; }
.dashboard-header .col-tier { width: 23.33%; text-align: center; }

/* --- The Strip Card --- */
.dashboard-strip {
    background: #16161f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.dashboard-strip:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.15);
    background: #1a1a24;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Strip Product Info (Left) */
.strip-product {
    width: 30%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-box-sm {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.icon-box-sm.green { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.icon-box-sm.purple { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.icon-box-sm.orange { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.icon-box-sm.blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }

.strip-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.strip-info span {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Strip Tiers (Right - The Data) */
.strip-tiers {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tier-item {
    width: 33%;
    text-align: center;
    display: flex;
    flex-direction: column;
    padding: 0 10px;
    position: relative;
}

/* Vertical Dividers between tiers */
.tier-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(255,255,255,0.05);
}

.tier-earn {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 2px;
}

/* Color classes for earnings */
.tier-earn.green { color: #10b981; }
.tier-earn.purple { color: #8b5cf6; }
.tier-earn.orange { color: #f59e0b; }
.tier-earn.blue { color: #3b82f6; }

.tier-cost {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-family: monospace;
}

/* Highlight Effect for Yearly Tier */
.dashboard-strip:hover .highlight-tier .tier-earn {
    text-shadow: 0 0 15px currentColor; /* Glowing text effect */
    transform: scale(1.1);
    transition: transform 0.3s;
}

/* --- Responsive Layout (Stacking on Mobile) --- */
@media (max-width: 991px) {
    .dashboard-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .strip-product {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 1rem;
    }

    .strip-tiers {
        width: 100%;
        gap: 10px;
    }

    .tier-item::after { display: none; } /* Remove vertical dividers */
}

@media (max-width: 576px) {
    .strip-tiers {
        flex-direction: column;
        gap: 1.2rem;
    }
    
    .tier-item {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px dashed rgba(255,255,255,0.08);
        padding-bottom: 0.8rem;
    }
    
    .tier-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .tier-label {
        font-size: 0.9rem;
        color: #a0a0b0;
        font-weight: 600;
    }

    .tier-earn {
        font-size: 1.2rem;
    }
}