/* ═══════════════════════════════════════════
   EF Media & Payouts — V5 Sticky Deck Theme
   ═══════════════════════════════════════════ */

/* ── Hard Reset ── */
.efp-payouts-section, .efp-payouts-section *,
.efp-ticker-section, .efp-ticker-section *,
.efp-media-section, .efp-media-section * {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'DM Sans', 'Poppins', -apple-system, sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    border: none !important;
    outline: none !important;
}

/* ── Force Elementor ancestors to allow sticky ── */
.efp-payouts-section,
.efp-payouts-section .efp-payouts-wrap,
.efp-payouts-section .efp-payouts-right {
    overflow: visible !important;
}
.elementor-widget-html,
.elementor-widget-html .elementor-widget-container,
.elementor-section,
.elementor-container,
.elementor-column,
.elementor-column-wrap,
.elementor-widget-wrap,
.elementor-element {
    overflow: visible !important;
}

/* ═══════════════════════════════
   STICKY DECK — [ef_payouts]
   ═══════════════════════════════ */
.efp-payouts-section {
    position: relative !important;
    background: #05070b !important;
    /* Break out of Elementor container to full viewport width */
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
}

/* Ambient glow */
.efp-payouts-ambient {
    position: absolute !important;
    inset: 0 !important;
    background: radial-gradient(ellipse at 60% 40%, rgba(16,185,129,0.04) 0%, transparent 60%) !important;
    pointer-events: none !important;
}
.efp-payouts-orb {
    position: absolute !important;
    width: 30vw !important;
    height: 50vh !important;
    background: rgba(0,224,204,0.06) !important;
    top: 20% !important;
    right: 0 !important;
    border-radius: 50% !important;
    filter: blur(100px) !important;
    pointer-events: none !important;
    mix-blend-mode: screen !important;
}

.efp-payouts-wrap {
    max-width: 1224px !important;
    margin: 0 auto !important;
    padding: 0 28px !important;
    display: flex !important;
    gap: 48px !important;
}

/* ── Sticky Left Header ── */
.efp-payouts-left {
    position: sticky !important;
    top: 100px !important;
    align-self: flex-start !important;
    flex: 0 0 340px !important;
    padding-top: 100px !important;
    padding-bottom: 140px !important;
}

.efp-payouts-h2 {
    font-size: 50px !important;
    font-weight: 700 !important;
    margin: 0 0 8px !important;
    letter-spacing: -2px !important;
    color: #f1f5f9 !important;
    line-height: 1.1 !important;
    background: none !important;
}

.efp-gt {
    background: linear-gradient(135deg, #9baae0 0%, #50b4f0 40%, #00e0cc 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: inline !important;
}

.efp-payouts-sub {
    color: #8b95a5 !important;
    font-size: 17px !important;
    line-height: 1.65 !important;
    margin: 0 0 20px !important;
}

.efp-payouts-meta {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Verified badge */
.efp-payouts-live {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(80,180,240,0.06) !important;
    border: 1px solid rgba(80,180,240,0.14) !important;
    border-radius: 100px !important;
    padding: 4px 12px 4px 9px !important;
}
.efp-verified-badge {
    flex-shrink: 0 !important;
    display: block !important;
}
.efp-live-text {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #7dd3fc !important;
}
.efp-payouts-count {
    font-size: 14px !important;
    color: rgba(140,150,168,0.55) !important;
}

/* ── Right: Stacking Cards ── */
.efp-payouts-right {
    flex: 1 !important;
    display: block !important;
    padding: 100px 0 140px !important;
    min-width: 0 !important;
}

/* ── Deck Card — Certificate / Diploma Style ── */
.efp-deck-card {
    position: sticky !important;
    margin-bottom: 20px !important;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.04) 0%, transparent 50%),
        linear-gradient(180deg, #0c1118 0%, #080b11 100%) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(212,175,55,0.10) !important;
    border-radius: 6px !important;
    padding: 22px 32px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    transition: border-color 0.3s, box-shadow 0.3s !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        inset 0 0 0 1px rgba(0,0,0,0.2),
        0 6px 20px rgba(0,0,0,0.24) !important;
}
/* Stacking — each card sticks at a lower position with higher z-index */
.efp-deck-card:nth-child(1)  { top: 100px !important; z-index: 1 !important; }
.efp-deck-card:nth-child(2)  { top: 122px !important; z-index: 2 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 0 0 1px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.28) !important; }
.efp-deck-card:nth-child(3)  { top: 144px !important; z-index: 3 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 0 0 1px rgba(0,0,0,0.2), 0 10px 28px rgba(0,0,0,0.32) !important; }
.efp-deck-card:nth-child(4)  { top: 166px !important; z-index: 4 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 0 0 1px rgba(0,0,0,0.2), 0 12px 32px rgba(0,0,0,0.36) !important; }
.efp-deck-card:nth-child(5)  { top: 188px !important; z-index: 5 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 0 0 1px rgba(0,0,0,0.2), 0 14px 36px rgba(0,0,0,0.40) !important; }
.efp-deck-card:nth-child(6)  { top: 210px !important; z-index: 6 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 0 0 1px rgba(0,0,0,0.2), 0 16px 40px rgba(0,0,0,0.44) !important; }
.efp-deck-card:nth-child(7)  { top: 232px !important; z-index: 7 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 0 0 1px rgba(0,0,0,0.2), 0 18px 44px rgba(0,0,0,0.48) !important; }
.efp-deck-card:nth-child(8)  { top: 254px !important; z-index: 8 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 0 0 1px rgba(0,0,0,0.2), 0 20px 48px rgba(0,0,0,0.52) !important; }
.efp-deck-card:nth-child(9)  { top: 276px !important; z-index: 9 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 0 0 1px rgba(0,0,0,0.2), 0 22px 52px rgba(0,0,0,0.56) !important; }
.efp-deck-card:nth-child(10) { top: 298px !important; z-index: 10 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 0 0 1px rgba(0,0,0,0.2), 0 24px 56px rgba(0,0,0,0.60) !important; }
.efp-deck-card:hover {
    border-color: rgba(212,175,55,0.25) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        inset 0 0 0 1px rgba(0,0,0,0.2),
        0 0 28px rgba(212,175,55,0.06),
        0 4px 16px rgba(0,0,0,0.25) !important;
}

/* Inner decorative frame (the "diploma" double-border) */
.efp-card-frame {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    border: 1px solid rgba(212,175,55,0.10) !important;
    border-radius: 3px !important;
    pointer-events: none !important;
    z-index: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Gold logo watermark — top-right of card */
.efp-card-watermark {
    position: absolute !important;
    top: 22px !important;
    right: 22px !important;
    width: 60px !important;
    height: 60px !important;
    background-image: var(--efp-logo) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    opacity: 0.12 !important;
    /* Tint to gold: knock to black, then colorize with sepia/saturate */
    filter: brightness(0) saturate(100%) invert(72%) sepia(35%) saturate(600%) hue-rotate(5deg) brightness(90%) contrast(85%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* All content sits above the frame */
.efp-card-header,
.efp-card-center,
.efp-card-stats,
.efp-card-footer {
    position: relative !important;
    z-index: 1 !important;
}

/* ── Header ── */
.efp-card-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-bottom: 14px !important;
}
.efp-card-eyebrow {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 2.5px !important;
    text-transform: uppercase !important;
    color: #d4af37 !important;
    margin-bottom: 10px !important;
}
.efp-card-eyebrow svg {
    flex-shrink: 0 !important;
}
.efp-card-trader-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}
.efp-card-trader {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.efp-card-flag {
    width: 18px !important;
    height: 14px !important;
    border-radius: 2px !important;
    object-fit: cover !important;
}
.efp-card-name {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #f1f5f9 !important;
    letter-spacing: 0.2px !important;
}
.efp-verified { flex-shrink: 0 !important; }
.efp-card-time-inline {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: rgba(140,150,168,0.55) !important;
    margin-left: 4px !important;
}

/* ── Centerpiece: The Amount ── */
.efp-card-center {
    text-align: center !important;
    padding: 8px 0 10px !important;
}
.efp-card-center .efp-card-label {
    font-size: 10px !important;
    letter-spacing: 2px !important;
    color: rgba(140,150,168,0.65) !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    margin-bottom: 6px !important;
    font-style: italic !important;
}
.efp-card-amount {
    font-family: 'DM Sans', 'Poppins', sans-serif !important;
    font-size: 44px !important;
    font-weight: 700 !important;
    color: #10b981 !important;
    letter-spacing: -1.5px !important;
    line-height: 1 !important;
    text-shadow: 0 0 30px rgba(16,185,129,0.25) !important;
    margin-bottom: 8px !important;
}
.efp-card-flourish {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 4px !important;
}
.efp-flourish-line {
    display: block !important;
    width: 60px !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent 0%, rgba(212,175,55,0.3) 50%, transparent 100%) !important;
}

/* ── Stats Row ── */
.efp-card-stats {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0 !important;
    padding: 12px 0 !important;
    border-top: 1px solid rgba(212,175,55,0.08) !important;
    border-bottom: 1px solid rgba(212,175,55,0.08) !important;
    margin-bottom: 12px !important;
}
.efp-card-stat {
    text-align: center !important;
    position: relative !important;
}
.efp-card-stat:not(:last-child)::after {
    content: '' !important;
    position: absolute !important;
    right: 0 !important;
    top: 20% !important;
    bottom: 20% !important;
    width: 1px !important;
    background: rgba(212,175,55,0.08) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}
.efp-card-stat .efp-card-label {
    font-size: 9px !important;
    color: rgba(140,150,168,0.55) !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
}
.efp-card-stat-val {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #f1f5f9 !important;
    letter-spacing: -0.2px !important;
}
.efp-card-stat-val.efp-green {
    color: #10b981 !important;
}

/* ── Footer: Instruments + Seal ── */
.efp-card-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
.efp-card-instruments {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex-wrap: wrap !important;
}
.efp-card-inst {
    font-size: 10px !important;
    font-weight: 600 !important;
    color: rgba(212,175,55,0.75) !important;
    background: rgba(212,175,55,0.04) !important;
    border: 1px solid rgba(212,175,55,0.15) !important;
    border-radius: 3px !important;
    padding: 3px 8px !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
}
.efp-card-seal {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.8 !important;
}

/* ═══════════════════════════════
   TICKER — [ef_ticker]
   ═══════════════════════════════ */
.efp-ticker-section {
    border-top: 1px solid rgba(255,255,255,0.05) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    background: #05070b !important;
}

.efp-ticker-inner-wrap {
    max-width: 1224px !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    position: relative !important;
}

.efp-ticker-fade-left {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 60px !important;
    background: linear-gradient(90deg, #05070b, transparent) !important;
    z-index: 2 !important;
    pointer-events: none !important;
}
.efp-ticker-fade-right {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 60px !important;
    background: linear-gradient(270deg, #05070b, transparent) !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

.efp-ticker-track {
    display: flex !important;
    width: max-content !important;
    align-items: center !important;
}
.efp-ticker-inner-wrap:hover .efp-ticker-track {
    animation-play-state: paused !important;
}

.efp-ticker-set {
    display: flex !important;
    align-items: center !important;
}

.efp-ticker-payout {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 13px 22px !important;
    white-space: nowrap !important;
}
.efp-ticker-flag {
    width: 18px !important;
    height: 14px !important;
    border-radius: 2px !important;
    object-fit: cover !important;
}
.efp-ticker-amt {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #10b981 !important;
}
.efp-ticker-name {
    font-size: 15px !important;
    color: #a4aebb !important;
    font-weight: 500 !important;
}

.efp-ticker-press {
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    color: rgba(255,255,255,0.18) !important;
    white-space: nowrap !important;
    padding: 13px 22px !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}
a.efp-ticker-press:hover {
    color: rgba(255,255,255,0.45) !important;
}

/* ═══════════════════════════════
   MEDIA PARTNERS — [ef_media_partners]
   ═══════════════════════════════ */
.efp-media-section {
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    padding: 16px 28px !important;
    background: transparent !important;
}

.efp-media-wrap {
    max-width: 1224px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

.efp-media-label {
    font-size: 13px !important;
    color: rgba(140,150,168,0.55) !important;
    font-weight: 500 !important;
    margin-right: 8px !important;
}

.efp-media-name {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    color: rgba(255,255,255,0.18) !important;
    padding: 0 10px !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}
.efp-media-name:hover {
    color: rgba(255,255,255,0.35) !important;
}

.efp-media-logo-link {
    padding: 0 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
}
.efp-media-logo {
    height: 18px !important;
    width: auto !important;
    opacity: 0.25 !important;
    filter: grayscale(100%) brightness(2) !important;
    transition: opacity 0.2s !important;
}
.efp-media-logo:hover {
    opacity: 0.45 !important;
}

/* ═══════════════════════════════
   ANIMATIONS
   ═══════════════════════════════ */
@keyframes efp-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes efp-pulse-dot {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.1); }
}

/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */
@media (max-width: 1024px) {
    .efp-payouts-wrap {
        display: block !important;
        padding: 0 28px !important;
    }
    .efp-payouts-left {
        position: static !important;
        flex: none !important;
        padding: 112px 0 36px !important;
    }
    .efp-payouts-h2 {
        font-size: 42px !important;
    }
    .efp-payouts-right {
        padding: 0 0 112px !important;
    }
    .efp-deck-card {
        margin-bottom: 16px !important;
    }
    .efp-deck-card:nth-child(1)  { top: 60px !important; }
    .efp-deck-card:nth-child(2)  { top: 70px !important; }
    .efp-deck-card:nth-child(3)  { top: 80px !important; }
    .efp-deck-card:nth-child(4)  { top: 90px !important; }
    .efp-deck-card:nth-child(5)  { top: 100px !important; }
    .efp-deck-card:nth-child(6)  { top: 110px !important; }
    .efp-deck-card:nth-child(7)  { top: 120px !important; }
    .efp-deck-card:nth-child(8)  { top: 130px !important; }
    .efp-deck-card:nth-child(9)  { top: 140px !important; }
    .efp-deck-card:nth-child(10) { top: 150px !important; }
}

@media (max-width: 640px) {
    .efp-payouts-wrap {
        padding: 0 16px !important;
    }
    .efp-payouts-left {
        padding: 88px 0 28px !important;
    }
    .efp-payouts-h2 {
        font-size: 34px !important;
    }
    .efp-payouts-sub {
        font-size: 16px !important;
    }
    .efp-payouts-right {
        padding: 0 0 88px !important;
    }
    .efp-deck-card {
        padding: 18px 16px !important;
        margin-bottom: 16px !important;
    }
    .efp-card-row-top {
        margin-bottom: 14px !important;
    }
    /* Center the flag + name + badge + time row on mobile */
    .efp-card-trader-row {
        justify-content: center !important;
    }
    .efp-card-trader {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    .efp-card-row-main {
        margin-bottom: 14px !important;
    }
    .efp-card-amount {
        font-size: 28px !important;
    }
    .efp-card-stats {
        gap: 16px !important;
    }
    .efp-card-stat-val {
        font-size: 16px !important;
    }
    .efp-card-name {
        font-size: 16px !important;
    }
    .efp-card-row-bottom {
        padding-top: 12px !important;
    }

    .efp-ticker-payout {
        padding: 11px 16px !important;
    }
    .efp-ticker-press {
        padding: 11px 16px !important;
    }
    .efp-ticker-flag {
        width: 16px !important;
        height: 12px !important;
    }

    .efp-media-section {
        padding: 14px 16px !important;
    }
    .efp-media-wrap {
        justify-content: center !important;
        gap: 10px !important;
    }
    .efp-media-label {
        margin-right: 0 !important;
    }
    .efp-media-name {
        font-size: 11px !important;
        padding: 0 6px !important;
    }
}
