/* ═══════════════════════════════════════════════
   ElitesFunding Campaign — Live Bundles Section
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300..700&display=swap');

.efc-section {
    position: relative;
    padding: 100px 28px;
    background: #05070b;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
    color: #f1f5f9;
}
@media (max-width: 640px) {
    .efc-section { padding: 64px 16px; }
}

/* ── Ambient backdrop layers ── */
.efc-fog-top {
    position: absolute; top: 0; left: 0; right: 0; height: 120px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
    pointer-events: none; z-index: 1;
}
.efc-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
    pointer-events: none; z-index: 0;
}
.efc-nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
    animation: efc-nebula-pulse 14s ease-in-out infinite;
}
@keyframes efc-nebula-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.08); }
}

.efc-wrap {
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ── Header ── */
.efc-header {
    text-align: center;
    margin-bottom: 56px;
}
@media (max-width: 640px) { .efc-header { margin-bottom: 36px; } }
.efc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}
.efc-pulse-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16,185,129,0.5);
    animation: efc-pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes efc-pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
    50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}
.efc-h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 44px;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -2px;
    color: #f1f5f9;
    line-height: 1.1;
}
@media (max-width: 640px) { .efc-h2 { font-size: 30px; } }
.efc-h2 .gt {
    background: linear-gradient(135deg, #9baae0 0%, #50b4f0 40%, #00e0cc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.efc-sub {
    color: #a4aebb;
    font-size: 17px;
    max-width: 540px;
    margin: 0 auto;
}
@media (max-width: 640px) { .efc-sub { font-size: 15px; } }

/* ── Card ── */
.efc-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 28px 26px;
    position: relative;
    overflow: hidden;
}
@media (max-width: 640px) { .efc-card { padding: 24px 20px; } }

/* ── 2-col layout: live card + competitor card ── */
.efc-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}
.efc-grid-2 > .efc-card,
.efc-grid-2 > .efc-compcard { height: 100%; }
@media (max-width: 900px) {
    .efc-grid-2 { grid-template-columns: 1fr; gap: 16px; }
}

/* ── Competitor card ── */
.efc-compcard {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}
@media (max-width: 640px) { .efc-compcard { padding: 26px 22px; } }
.efc-compcard-eyebrow {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
}
.efc-compcard-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.efc-comp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
}
.efc-comp-row.is-highlight {
    background: rgba(16,185,129,0.08);
    border-color: rgba(16,185,129,0.35);
}
.efc-comp-name {
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
}
.efc-comp-row.is-highlight .efc-comp-name {
    font-weight: 800;
    color: #10b981;
    letter-spacing: 0.2px;
}
.efc-comp-note {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 1px;
}
.efc-comp-price {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
}
.efc-comp-row.is-highlight .efc-comp-price {
    font-size: 24px;
    color: #10b981;
}
.efc-compcard-foot {
    margin-top: 14px;
    font-size: 11px;
    color: #94a3b8;
    text-align: right;
    font-style: italic;
}

/* ── Math row CTA ── */
.efc-mathrow {
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 28px;
    background: linear-gradient(90deg, rgba(16,185,129,0.05) 0%, rgba(16,185,129,0.02) 100%);
    border: 1px solid rgba(16,185,129,0.35);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(16,185,129,0.08);
}
@media (max-width: 640px) {
    .efc-mathrow {
        margin-top: 24px;
        flex-direction: column;
        text-align: center;
        gap: 14px;
        padding: 20px 22px;
    }
}
.efc-mathrow-eyebrow {
    font-size: 11px;
    font-weight: 800;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 4px;
}
.efc-mathrow-headline {
    font-family: 'DM Sans', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
    line-height: 1.3;
}
@media (max-width: 640px) { .efc-mathrow-headline { font-size: 17px; } }
.efc-mathrow-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 32px;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #10b981 0%, #0fb99e 100%);
    box-shadow: 0 8px 24px rgba(16,185,129,0.3);
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.efc-mathrow-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(16,185,129,0.4);
}
@media (max-width: 640px) {
    .efc-mathrow-cta { padding: 14px 28px; font-size: 15px; }
}

.efc-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.efc-card-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.efc-card-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
}

/* ── Big number ── */
.efc-bignum {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}
.efc-bignum-val {
    font-family: 'DM Sans', sans-serif;
    font-size: 56px;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: -2px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) { .efc-bignum-val { font-size: 44px; } }
.efc-bignum-of {
    font-size: 18px;
    font-weight: 600;
    color: #a4aebb;
}
@media (max-width: 640px) { .efc-bignum-of { font-size: 16px; } }

/* ── Chart ── */
.efc-chart {
    position: relative;
    margin-bottom: 16px;
}
.efc-chart-axisY {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: rgba(140,150,168,0.55);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.efc-chart-goal {
    color: #10b981;
}
.efc-chart-stage {
    position: relative;
    height: 80px;
}
.efc-chart-svg {
    width: 100%;
    height: 100%;
    display: block;
}
.efc-chart-pulse {
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16,185,129,0.18), 0 0 16px rgba(16,185,129,0.7);
    animation: efc-pulse-dot 2s ease-in-out infinite;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: left 0.6s ease, top 0.6s ease;
    left: 0; top: 0;
}
.efc-chart-axisX {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: rgba(140,150,168,0.55);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 6px;
}
.efc-chart-axisX .now {
    color: #10b981;
}

/* ── Ticker ── */
.efc-ticker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    height: 30px;
    overflow: hidden;
    position: relative;
}
.efc-ticker-stage {
    position: relative;
    flex: 1;
    height: 100%;
}
.efc-ticker-line {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    white-space: nowrap;
}
.efc-ticker-flag {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1.5px solid #0a0e14;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
    background: #0a0e14;
}
.efc-ticker-flag img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.efc-ticker-text {
    font-size: 12px;
    color: #a4aebb;
    line-height: 1.3;
}
.efc-ticker-text strong { color: #f1f5f9; font-weight: 700; }
.efc-ticker-text .ef-deal { color: #10b981; font-weight: 700; }

@keyframes efc-ticker-out {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-100%); opacity: 0; }
}
@keyframes efc-ticker-in {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.efc-ticker-out { animation: efc-ticker-out 0.45s cubic-bezier(.4,.14,.3,1) both; }
.efc-ticker-in { animation: efc-ticker-in 0.45s cubic-bezier(.4,.14,.3,1) both; }

/* ── Progress bar ── */
.efc-progress {
    margin-top: auto;
}
.efc-progress-label {
    font-size: 11px;
    color: #a4aebb;
    margin-bottom: 8px;
}
.efc-progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.04);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}
.efc-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #0fb99e 0%, #10b981 50%, #059669 100%);
    border-radius: 100px;
    position: relative;
    box-shadow: 0 0 20px rgba(16,185,129,0.4);
    transition: width 0.6s cubic-bezier(.4,.14,.3,1);
}
.efc-progress-shimmer {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 30px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
    animation: efc-shimmer 2.5s linear infinite;
}
@keyframes efc-shimmer {
    0% { transform: translateX(-40px); }
    100% { transform: translateX(180px); }
}
.efc-progress-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: rgba(140,150,168,0.55);
    font-weight: 600;
}

/* ── Type breakdown ── */
.efc-types {
    display: flex;
    gap: 6px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.efc-type-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
}
.efc-type-chip-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
}
.efc-type-chip-label { color: #a4aebb; }
.efc-type-chip-count { color: #f1f5f9; font-variant-numeric: tabular-nums; }

/* ── Sold out state ── */
.efc-soldout {
    text-align: center;
    padding: 56px 32px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    max-width: 520px;
    margin: 0 auto;
}
.efc-soldout-eyebrow {
    font-size: 11px;
    font-weight: 800;
    color: rgba(140,150,168,0.55);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}
.efc-soldout h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 12px;
    letter-spacing: -1.5px;
}
.efc-soldout p {
    font-size: 15px;
    color: #a4aebb;
    margin: 0;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   Campaign Promo Bar — [ef_campaign_bar]
   ═══════════════════════════════════════════════ */
.efc-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 101;
    background: linear-gradient(90deg, #0fb99e 0%, #10b981 50%, #0fb99e 100%);
    color: #fff;
    padding: 10px 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    gap: 18px; flex-wrap: wrap;
    box-shadow: 0 2px 20px rgba(16,185,129,0.3);
}
.efc-bar[data-efc-bar-hidden="1"] { display: none; }
.efc-bar-icon {
    display: inline-flex; align-items: center; gap: 6px;
}
.efc-bar-icon strong { font-weight: 800; letter-spacing: 0.5px; }
.efc-bar-text { opacity: 0.92; }
.efc-bar-cd, .efc-bar-slots {
    display: inline-flex; align-items: center; gap: 5px;
    font-variant-numeric: tabular-nums;
}
.efc-bar-cd svg { opacity: 0.85; }
.efc-bar-slots strong { font-weight: 800; }
.efc-bar-cta {
    margin-left: 4px; color: #fff;
    background: rgba(255,255,255,0.18);
    padding: 4px 12px; border-radius: 6px;
    text-decoration: none; font-weight: 700; font-size: 12px;
    display: inline-flex; align-items: center; gap: 4px;
    border: 1px solid rgba(255,255,255,0.25);
    transition: background 0.2s;
}
.efc-bar-cta:hover { background: rgba(255,255,255,0.28); color: #fff; }
.efc-bar-close {
    background: transparent; border: none; color: rgba(255,255,255,0.85);
    cursor: pointer; padding: 4px; margin-left: 2px;
    display: inline-flex; align-items: center; line-height: 0;
    border-radius: 4px; transition: background 0.15s;
}
.efc-bar-close:hover { background: rgba(255,255,255,0.15); }
@media (max-width: 640px) {
    .efc-bar { font-size: 11px; padding: 7px 12px; gap: 8px; }
    .efc-bar-text { display: none; } /* too cramped on phones */
    .efc-bar-cta { font-size: 11px; padding: 3px 9px; }
}

/* ═══════════════════════════════════════════════
   Live Activity Toast — [ef_campaign_toast]
   ═══════════════════════════════════════════════ */
.efc-toast {
    position: fixed; z-index: 99;
    background: rgba(10,14,20,0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 20px rgba(16,185,129,0.1);
    min-width: 300px; max-width: 360px;
    font-family: 'DM Sans', sans-serif;
    color: #f1f5f9;
    opacity: 0;
    transition: opacity 0.4s, transform 0.4s cubic-bezier(.16,1,.3,1);
}
.efc-toast:not([hidden]) { opacity: 1; }
.efc-toast-bottom-left { bottom: 20px; left: 20px; }
.efc-toast-bottom-right { bottom: 20px; right: 20px; }
.efc-toast-top-left { top: 20px; left: 20px; }
.efc-toast-top-right { top: 20px; right: 20px; }
.efc-toast[data-enter="1"].efc-toast-bottom-left,
.efc-toast[data-enter="1"].efc-toast-bottom-right { transform: translateY(10px); }
.efc-toast[data-enter="1"].efc-toast-top-left,
.efc-toast[data-enter="1"].efc-toast-top-right { transform: translateY(-10px); }
.efc-toast-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.2);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.efc-toast-body { flex: 1; min-width: 0; }
.efc-toast-title {
    font-size: 13px; font-weight: 700; color: #fff;
    display: flex; align-items: center; gap: 5px;
}
.efc-toast-sub {
    font-size: 12px; color: #a4aebb; margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.efc-toast-sub strong { color: #10b981; font-weight: 700; }
.efc-toast-time {
    font-size: 10px; color: rgba(140,150,168,0.55);
    font-weight: 600; white-space: nowrap;
}
@media (max-width: 640px) {
    .efc-toast-no-mobile { display: none !important; }
    .efc-toast { left: 12px !important; right: 12px !important; min-width: 0; max-width: 100%; bottom: 12px !important; padding: 9px 12px; border-radius: 12px; }
    .efc-toast-icon { width: 30px; height: 30px; border-radius: 8px; }
    .efc-toast-title { font-size: 12px; }
    .efc-toast-sub { font-size: 11px; }
}

/* ═══════════════════════════════════════════════
   Countdown — [ef_campaign_countdown]
   ═══════════════════════════════════════════════ */
.efc-cd {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'DM Sans', sans-serif;
    font-variant-numeric: tabular-nums;
    color: #f1f5f9;
}
.efc-cd-prefix {
    color: #a4aebb;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
}
/* Compact + simple formats just render one span */
.efc-cd-compact, .efc-cd-simple { font-weight: 700; }
.efc-cd-size-sm { font-size: 12px; }
.efc-cd-size-md { font-size: 14px; }
.efc-cd-size-lg { font-size: 18px; }

/* Full format: 4 unit boxes */
.efc-cd-full .efc-cd-units {
    display: inline-flex; align-items: flex-start; gap: 8px;
}
.efc-cd-full .efc-cd-unit {
    display: inline-flex; flex-direction: column; align-items: center;
}
.efc-cd-full .efc-cd-num {
    font-weight: 700; color: #f1f5f9;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 8px 12px;
    min-width: 54px;
    text-align: center;
    letter-spacing: -1px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.efc-cd-full.efc-cd-size-lg .efc-cd-num {
    font-size: 36px; padding: 12px 16px; min-width: 72px;
}
.efc-cd-full.efc-cd-size-md .efc-cd-num {
    font-size: 26px; padding: 8px 12px; min-width: 54px;
}
.efc-cd-full.efc-cd-size-sm .efc-cd-num {
    font-size: 18px; padding: 6px 10px; min-width: 42px;
}
.efc-cd-full .efc-cd-lbl {
    font-size: 9px; color: rgba(140,150,168,0.55);
    font-weight: 700; margin-top: 5px;
    text-transform: uppercase; letter-spacing: 1.2px;
}
.efc-cd-full .efc-cd-sep {
    color: rgba(140,150,168,0.55);
    font-size: 20px; font-weight: 700;
    align-self: flex-start;
    margin-top: 6px;
}

/* Coupon badge — used by [ef_campaign_coupon] */
.efc-coupon-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 12px;
    color: #10b981;
    font-weight: 800;
    letter-spacing: 0.6px;
    font-family: 'DM Sans', sans-serif;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
