/* ============== HERO ============== */
.ec-hero {
    position: relative;
    padding: 60px 0 50px;
    background: linear-gradient(135deg, #030641 0%, #0e3789 60%, #2950bd 100%);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.ec-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(720px 460px at 85% 20%, rgba(74, 144, 255, .22), transparent 60%),
    radial-gradient(620px 420px at 10% 90%, rgba(26, 188, 136, .18), transparent 60%);
    z-index: -1;
}

.ec-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    z-index: -1;
}

.ec-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 980px) {
    .ec-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
}

.ec-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #cfe1ff;
    margin-bottom: 16px;
}

.ec-eyebrow .live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4760;
    box-shadow: 0 0 0 0 rgba(239, 71, 96, .6);
    animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 71, 96, .6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 71, 96, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 71, 96, 0);
    }
}

.ec-title {
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0 0 16px;
}

.ec-title .grad {
    background: linear-gradient(90deg, #7ec0ff, #1abc88, #7ec0ff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shineText 4s linear infinite;
}

@keyframes shineText {
    to {
        background-position: 200% 0;
    }
}

.ec-sub {
    font-size: 16px;
    color: rgba(255, 255, 255, .78);
    line-height: 1.6;
    max-width: 540px;
    margin: 0 0 20px;
}

@media (max-width: 980px) {
    .ec-sub {
        margin-left: auto;
        margin-right: auto;
    }
}

.ec-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 980px) {
    .ec-trust {
        justify-content: center;
    }
}

.ec-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .88);
    backdrop-filter: blur(8px);
}

.ec-trust i {
    color: #1abc88;
}

/* ===== Next Event countdown card ===== */
.next-event {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 22px;
    padding: 26px 24px;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.next-event::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ef4760, #f5b73c, #1abc88);
}

.ne-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    color: rgba(255, 255, 255, .6);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.ne-label .pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4760;
    animation: pulseDot 1.6s infinite;
}

.ne-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.ne-ccy {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand-3), #4f8cff);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    border: 2px solid rgba(255, 255, 255, .18);
    flex-shrink: 0;
}

.ne-meta {
    flex: 1;
    min-width: 0;
}

.ne-event {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ne-time {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .65);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ne-impact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 800;
    background: rgba(239, 71, 96, .18);
    color: #ff9faf;
    letter-spacing: .5px;
    text-transform: uppercase;
    border: 1px solid rgba(239, 71, 96, .25);
    flex-shrink: 0;
    align-self: flex-start;
}

.ne-countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.ne-unit {
    text-align: center;
    padding: 12px 6px;
    background: rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
}

.ne-unit .v {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ne-unit .l {
    font-size: 9.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, .55);
    letter-spacing: .6px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ============== FILTER BAR ============== */
.filter-bar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 4px 14px rgba(10, 20, 40, .04);
}

.fb-grid {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.fb-tabs {
    display: flex;
    background: var(--bg-soft);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--line);
    gap: 2px;
    flex-shrink: 0;
}

.fb-tab {
    padding: 8px 14px;
    background: transparent;
    border: 0;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-mute);
    cursor: pointer;
    transition: all .25s var(--ease);
    font-family: inherit;
}

.fb-tab:hover {
    color: var(--brand-2);
}

.fb-tab.active {
    background: #fff;
    color: var(--brand-2);
    box-shadow: 0 2px 8px rgba(14, 55, 137, .10);
}

.fb-search {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.fb-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-soft);
    font-size: 13px;
    pointer-events: none;
}

.fb-search input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    font: inherit;
    font-size: 14px;
    background: var(--bg-soft);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    outline: 0;
    color: var(--text);
    transition: border-color .2s var(--ease), background .2s var(--ease);
}

.fb-search input:focus {
    border-color: var(--brand-2);
    background: #fff;
}

.fb-search input::placeholder {
    color: var(--text-soft);
}

.fb-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.fb-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: var(--bg-soft);
    border: 1.5px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-2);
    cursor: pointer;
    transition: all .2s var(--ease);
}

.fb-chip:hover {
    border-color: var(--brand-2);
    color: var(--brand-2);
}

.fb-chip.active {
    background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(14, 55, 137, .20);
}

.fb-chip.imp-h.active {
    background: linear-gradient(135deg, #ef4760, #c2185b);
    box-shadow: 0 4px 10px rgba(239, 71, 96, .25);
}

.fb-chip.imp-m.active {
    background: linear-gradient(135deg, #f5b73c, #d4901c);
    box-shadow: 0 4px 10px rgba(245, 183, 60, .25);
}

.fb-chip.imp-l.active {
    background: linear-gradient(135deg, #1abc88, #0d8a5f);
    box-shadow: 0 4px 10px rgba(26, 188, 136, .25);
}

.fb-chip .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .7;
}

.fb-chip.imp-h .dot {
    background: #ef4760;
}

.fb-chip.imp-m .dot {
    background: #f5b73c;
}

.fb-chip.imp-l .dot {
    background: #1abc88;
}

.fb-chip.imp-h.active .dot,
.fb-chip.imp-m.active .dot,
.fb-chip.imp-l.active .dot {
    background: rgba(255, 255, 255, .95);
}

.fb-divider {
    width: 1px;
    height: 28px;
    background: var(--line);
}

@media (max-width: 820px) {
    .filter-bar {
        position: static;
    }

    .fb-search {
        order: 5;
        width: 100%;
        flex: 1 1 100%;
    }

    .fb-divider {
        display: none;
    }
}

/* ============== CALENDAR ============== */
.cal-section {
    background: var(--bg);
    padding: 30px 0 60px;
    position: relative;
}

.cal-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: flex-start;
}

@media (max-width: 1100px) {
    .cal-grid {
        grid-template-columns: 1fr;
    }
}

/* Day group */
.day-group {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(10, 20, 40, .04);
}

.day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    background: linear-gradient(90deg, rgba(14, 55, 137, .04), rgba(41, 80, 189, .02));
    border-bottom: 1px solid var(--line);
}

.day-head .left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.day-head .day-num {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
    color: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(14, 55, 137, .20);
}

.day-head .day-num .d {
    font-size: 16px;
    line-height: 1;
}

.day-head .day-num .m {
    font-size: 9px;
    line-height: 1;
    opacity: .85;
    letter-spacing: .5px;
    margin-top: 1px;
    text-transform: uppercase;
}

.day-head .day-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.day-head .day-sub {
    font-size: 12px;
    color: var(--text-mute);
    margin-top: 2px;
}

.day-head .right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.day-head .day-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-mute);
    padding: 5px 10px;
    background: var(--bg-soft);
    border-radius: 999px;
    border: 1px solid var(--line);
    letter-spacing: .3px;
}

/* Event row */
.events {
    display: flex;
    flex-direction: column;
}

.event-row {
    display: grid;
    grid-template-columns: 78px 50px 1fr 90px repeat(3, 80px);
    gap: 12px;
    align-items: center;
    padding: 14px 22px;
    border-bottom: 1px solid var(--line);
    transition: background .2s var(--ease);
}

.event-row:last-child {
    border-bottom: 0;
}

.event-row:hover {
    background: rgba(14, 55, 137, .025);
}

.event-row.upcoming {
    background: linear-gradient(90deg, rgba(245, 183, 60, .04), transparent);
}

.event-row.live {
    background: linear-gradient(90deg, rgba(239, 71, 96, .08), transparent);
    border-left: 3px solid #ef4760;
    padding-left: 19px;
}

.ev-time {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.ev-time small {
    font-size: 10.5px;
    color: var(--text-soft);
    font-weight: 600;
    margin-left: 2px;
}

.ev-ccy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 28px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .3px;
}

.ev-ccy.USD {
    background: linear-gradient(135deg, #3e7e3e, #2d5e2d);
}

.ev-ccy.EUR {
    background: linear-gradient(135deg, #3b6cd9, #2950bd);
}

.ev-ccy.GBP {
    background: linear-gradient(135deg, #7e3e87, #5d2a64);
}

.ev-ccy.JPY {
    background: linear-gradient(135deg, #d63b3b, #a82828);
}

.ev-ccy.AUD {
    background: linear-gradient(135deg, #0e3789, #030641);
}

.ev-ccy.CAD {
    background: linear-gradient(135deg, #d63b3b, #a82828);
}

.ev-ccy.CHF {
    background: linear-gradient(135deg, #c2185b, #8c1146);
}

.ev-ccy.NZD {
    background: linear-gradient(135deg, #1d3066, #0e1e44);
}

.ev-ccy.CNY {
    background: linear-gradient(135deg, #d63b3b, #a82828);
}

.ev-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.ev-name .cat {
    font-size: 11px;
    color: var(--text-soft);
    font-weight: 500;
}

.ev-impact {
    display: flex;
    align-items: center;
    gap: 8px;
}

.imp-bars {
    display: inline-flex;
    gap: 2px;
    align-items: flex-end;
}

.imp-bars .b {
    width: 4px;
    border-radius: 2px;
    background: var(--line-2);
}

.imp-bars .b.l1 {
    height: 7px;
}

.imp-bars .b.l2 {
    height: 11px;
}

.imp-bars .b.l3 {
    height: 15px;
}

.imp-bars.h .b {
    background: #ef4760;
}

.imp-bars.m .b.l1, .imp-bars.m .b.l2 {
    background: #f5b73c;
}

.imp-bars.l .b.l1 {
    background: #1abc88;
}

.imp-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.imp-badge.h {
    background: rgba(239, 71, 96, .12);
    color: #c2185b;
}

.imp-badge.m {
    background: rgba(245, 183, 60, .14);
    color: #a07c1c;
}

.imp-badge.l {
    background: rgba(26, 188, 136, .12);
    color: #0f7a55;
}

.ev-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ev-val .lbl {
    display: none;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 2px;
}

.ev-val .v {
    display: block;
}

.ev-val.actual .v {
    color: var(--brand-2);
}

.ev-val.actual.better {
    color: #0f7a55;
}

.ev-val.actual.worse {
    color: #c2185b;
}

.ev-val .pend {
    color: var(--text-soft);
    font-weight: 500;
    font-size: 12px;
    font-style: italic;
}

.ev-header {
    display: grid;
    grid-template-columns: 78px 50px 1fr 90px repeat(3, 80px);
    gap: 12px;
    padding: 10px 22px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    font-size: 10px;
    font-weight: 800;
    color: var(--text-soft);
    letter-spacing: .7px;
    text-transform: uppercase;
}

.ev-header .col {
    text-align: right;
}

.ev-header .col:first-child,
.ev-header .col:nth-child(2),
.ev-header .col:nth-child(3),
.ev-header .col:nth-child(4) {
    text-align: left;
}

/* Mobile event card layout */
@media (max-width: 880px) {
    .ev-header {
        display: none;
    }

    .event-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px 18px;
    }

    .event-row.live {
        padding-left: 15px;
    }

    .ev-row-head {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .ev-time {
        font-size: 14px;
    }

    .ev-name {
        margin-top: 6px;
    }

    .ev-impact {
        margin-top: 4px;
    }

    .ev-vals {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px dashed var(--line);
    }

    .ev-val {
        text-align: left;
        background: var(--bg-soft);
        padding: 8px 10px;
        border-radius: 8px;
    }

    .ev-val .lbl {
        display: block;
    }
}

.no-results {
    text-align: center;
    padding: 60px 22px;
    color: var(--text-mute);
}

.no-results i {
    font-size: 36px;
    color: var(--text-soft);
    margin-bottom: 10px;
    display: block;
}

.no-results h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 4px;
}

/* ============== SIDEBAR ============== */
.cal-side {
    position: sticky;
    top: 100px;
}

@media (max-width: 1100px) {
    .cal-side {
        position: static;
    }
}

.side-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(10, 20, 40, .04);
}

.side-card.dark {
    background: linear-gradient(135deg, #030641 0%, #0e3789 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 0;
}

.side-card.dark::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 188, 136, .30), transparent 70%);
    z-index: -1;
}

.side-card h4 {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.side-card.dark h4 {
    color: #fff;
}

.side-card h4 i {
    color: var(--brand-2);
    font-size: 14px;
}

.side-card.dark h4 i {
    color: #6cf2bf;
}

.key-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.key-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    background: var(--bg-soft);
    transition: background .2s var(--ease), transform .2s var(--ease);
    cursor: pointer;
}

.key-item:hover {
    background: #fff;
    transform: translateX(2px);
    box-shadow: var(--shadow-sm);
}

.key-item .ki-day {
    width: 36px;
    text-align: center;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    padding: 4px 0;
    border: 1px solid var(--line);
}

.key-item .ki-day .d {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--brand-2);
    line-height: 1;
}

.key-item .ki-day .m {
    display: block;
    font-size: 8.5px;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 2px;
}

.key-item .ki-meta {
    flex: 1;
    min-width: 0;
}

.key-item .ki-meta .name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 4px;
}

.key-item .ki-meta .sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-soft);
}

.key-item .ki-meta .sub .ccy-mini {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 9.5px;
    font-weight: 800;
    background: var(--brand-2);
    color: #fff;
}

.side-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.side-stat:last-child {
    border-bottom: 0;
}

.side-stat .lbl {
    font-size: 12px;
    color: rgba(255, 255, 255, .7);
}

.side-stat .val {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

.side-stat .val.green {
    color: #6cf2bf;
}

.side-stat .val.red {
    color: #ff9faf;
}

.side-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .10);
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    transition: background .2s var(--ease);
}

.side-cta:hover {
    background: rgba(255, 255, 255, .16);
}

.side-cta i {
    font-size: 11px;
}

/* Legend card */
.legend-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 12.5px;
    color: var(--text-2);
}

.legend-row:not(:last-child) {
    border-bottom: 1px dashed var(--line);
}

.legend-row .desc {
    flex: 1;
    color: var(--text-mute);
    font-size: 11.5px;
}

/* ============== INFO SECTIONS ============== */
.info-section {
    padding: 60px 0;
    background: linear-gradient(180deg, #f6f7fb 0%, #eef1f8 100%);
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(14, 55, 137, .08);
    color: var(--brand-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(26px, 3.6vw, 34px);
    font-weight: 800;
    letter-spacing: -.5px;
    margin: 0 0 10px;
    color: var(--text);
}

.section-sub {
    font-size: 15px;
    color: var(--text-mute);
    margin: 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

@media (max-width: 880px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

.why-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.why-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
    color: #fff;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 20px;
    box-shadow: 0 8px 18px rgba(14, 55, 137, .20);
}

.why-card.red .why-icon {
    background: linear-gradient(135deg, #ef4760, #c2185b);
    box-shadow: 0 8px 18px rgba(239, 71, 96, .30);
}

.why-card.green .why-icon {
    background: linear-gradient(135deg, #1abc88, #0d8a5f);
    box-shadow: 0 8px 18px rgba(26, 188, 136, .30);
}

.why-card h4 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
}

.why-card p {
    margin: 0;
    font-size: 14px;
    color: var(--text-mute);
    line-height: 1.6;
}

/* FAQ */
.faq-section {
    padding: 70px 0;
    background: var(--bg);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.faq-item.open {
    border-color: var(--brand-2);
    box-shadow: 0 8px 24px rgba(14, 55, 137, .08);
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    border: 0;
    font-family: inherit;
}

.faq-q .q-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: rgba(14, 55, 137, .08);
    color: var(--brand-2);
    border-radius: 10px;
    font-size: 13px;
    transition: all .3s var(--ease);
}

.faq-item.open .q-icon {
    background: var(--brand-2);
    color: #fff;
}

.faq-q .q-text {
    flex: 1;
}

.faq-q .q-chev {
    font-size: 12px;
    color: var(--text-mute);
    transition: transform .3s var(--ease);
}

.faq-item.open .q-chev {
    transform: rotate(180deg);
    color: var(--brand-2);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
}

.faq-a-inner {
    padding: 0 22px 20px 70px;
    color: var(--text-mute);
    font-size: 14px;
    line-height: 1.65;
}

html[dir="rtl"] .faq-q {
    text-align: right;
}

html[dir="rtl"] .faq-a-inner {
    padding: 0 70px 20px 22px;
}

@media (max-width: 720px) {
    .ec-hero {
        padding: 44px 0 36px;
    }

    .filter-bar {
        padding: 14px 0;
    }

    .fb-grid {
        gap: 10px;
    }

    .info-section, .faq-section {
        padding: 50px 0;
    }

    .cal-section {
        padding: 24px 0 14px;
    }

    .fmh-section {
        padding: 6px 0 40px;
    }

    .ne-event {
        font-size: 15px;
    }

    .ne-unit .v {
        font-size: 20px;
    }
}

/* ============================================================
   MODERNIZED CALENDAR  ·  dark glass + accent gradients
   ============================================================ */
.ec-hero-grid--solo {
    grid-template-columns: 1fr;
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.ec-hero-grid--solo .ec-trust {
    justify-content: center;
}

/* Light, dense, investing.com-style table */
.cal-section {
    background: #f6f7fb;
    padding: 40px 0 24px;
}

/* Filter bar — clean light */
.filter-bar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}

.filter-bar .fb-grid {
    gap: 14px;
}

.day-group {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(14, 55, 137, .08);
}

/* Date banner row, spans all columns like investing.com */
.day-banner {
    background: linear-gradient(90deg, var(--brand-1) 0%, var(--brand-2) 55%, var(--brand-3) 100%);
    color: #fff;
    font-weight: 800;
    font-size: 13.5px;
    letter-spacing: .4px;
    padding: 11px 14px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}

/* Table */
.ec-table {
    display: grid;
    grid-template-columns: 78px 70px 110px 1fr 90px 90px 110px;
    width: 100%;
}

.ec-thead {
    display: contents;
}

.ec-thead > div {
    background: #fafbfd;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--text-soft);
    letter-spacing: .6px;
    text-transform: uppercase;
}

.ec-thead > div.num {
    text-align: end;
}

.ec-row {
    display: contents;
}

.ec-row > div {
    background: #fff;
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 13.5px;
    color: var(--text);
    display: flex;
    align-items: center;
    min-height: 44px;
}

.ec-row:hover > div {
    background: #f8fafd;
}

.ec-row.live > div {
    background: rgba(239, 71, 96, .06);
}

.ec-row.upcoming > div {
    background: rgba(245, 183, 60, .06);
}

.ec-row.holiday > div {
    background: #fff7e0;
    color: #6b5210;
    font-weight: 600;
}

.ec-c-time {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text-2);
}

.ec-c-cur {
    gap: 6px;
    font-weight: 700;
}

.ec-c-cur img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .07);
    flex-shrink: 0;
}

.ec-c-imp {
    gap: 3px;
}

.ec-c-imp .sk {
    font-size: 12px;
    color: #cdd2dc;
    line-height: 1;
}

.ec-c-imp.h .sk {
    color: #ef4760;
}

.ec-c-imp.m .sk {
    color: #f5b73c;
}

.ec-c-imp.l .sk {
    color: #9aa3b3;
}

.ec-c-imp .sk-dim {
    color: #e2e5ec !important;
}

.ec-c-event {
    gap: 8px;
    line-height: 1.35;
    font-weight: 600;
    flex-wrap: wrap;
}

.ec-c-event .cat {
    display: none;
}

.ec-c-event .ev-icon {
    color: var(--text-soft);
    font-size: 12px;
}

.ec-c-event .holiday-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(212, 144, 28, .14);
    color: #8a5a0e;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.ec-c-num {
    justify-content: flex-end;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: end;
}

.ec-c-num.actual.better {
    color: #0d8a5f;
}

.ec-c-num.actual.worse {
    color: #c2185b;
}

.ec-c-num .dot-rev {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f5b73c;
    margin-left: 6px;
}

.ec-c-num.pending {
    color: var(--text-soft);
    font-weight: 500;
    font-style: italic;
}

@media (max-width: 880px) {
    .ec-table {
        grid-template-columns: 1fr;
    }

    .ec-thead {
        display: none;
    }

    .ec-row {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0;
        border-bottom: 1px solid var(--line);
        padding: 10px 12px;
    }

    .ec-row > div {
        padding: 4px 0;
        border: 0;
        min-height: 0;
        font-size: 13px;
        background: transparent;
        align-items: flex-start;
    }

    .ec-row > .ec-c-event {
        grid-column: span 3;
        font-size: 14px;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .ec-row > .ec-c-num {
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
    }

    .ec-row > .ec-c-num::before {
        content: attr(data-lbl);
        font-size: 9.5px;
        font-weight: 800;
        color: var(--text-soft);
        text-transform: uppercase;
        letter-spacing: .5px;
        margin-bottom: 2px;
    }
}

/* Sidebar — keep light */
.side-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(10, 20, 40, .05);
}

/* ============================================================
   FOREX MARKET HOURS (FMH)
   ============================================================ */
.fmh-section {
    background: #f6f7fb;
    padding: 12px 0 60px;
}

.fmh-section .section-head {
    margin-bottom: 22px;
}

.fmh-card {
    position: relative;
    background: #fff;
    border-radius: 22px;
    border: 1px solid var(--line);
    box-shadow: 0 16px 50px rgba(10, 20, 40, .07);
    overflow: hidden;
    margin-top: 20px;
}

.fmh-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f5b73c 0%, #060a23 22%, transparent 22%, transparent 100%);
}

.fmh-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 26px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
    flex-wrap: wrap;
}

.fmh-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(26, 188, 136, .30);
    background: rgba(26, 188, 136, .08);
    color: #0d8a5f;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.fmh-live .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1abc88;
    box-shadow: 0 0 0 0 rgba(26, 188, 136, .60);
    animation: fmhPulse 1.8s ease-out infinite;
}

@keyframes fmhPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 188, 136, .55);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(26, 188, 136, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(26, 188, 136, 0);
    }
}

.fmh-clocks {
    display: flex;
    gap: 10px;
}

.fmh-clock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-mute);
    letter-spacing: .5px;
    text-transform: uppercase;
}

.fmh-clock .t {
    color: var(--text);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

/* Timeline strip — 4 stacked lanes so overlaps are visible */
.fmh-bar-wrap {
    position: relative;
    padding: 56px 26px 14px; /* extra top room for the Now dot + label */
    background: #f4f5f9; /* fallback gray */
    isolation: isolate;
}

.fmh-bar-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("images/world-map.JPG") center / cover no-repeat;
    filter: grayscale(1) brightness(1.05); /* hard-grayscale + slight lift */
    opacity: .85;
    z-index: -1;
    pointer-events: none;
}

.fmh-bar {
    position: relative;
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 0;
    border-radius: 14px;
    border: 1px solid var(--line);
    overflow: visible; /* let the Now dot pop above the bar */
    background: url("images/world-map.JPG") center / cover no-repeat;
    background-color: #fff;
}

.fmh-lanes {
    position: relative;
    background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px calc(100% / 24));
    border-left: 1px solid var(--line);
}

.fmh-lane-labels {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
}

.fmh-lane-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--text-2);
    letter-spacing: .3px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
}

.fmh-lane-label:last-child {
    border-bottom: 0;
}

.fmh-lane-label .swatch {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.fmh-lane-label .swatch.sydney {
    background: #3b6cd9;
}

.fmh-lane-label .swatch.tokyo {
    background: #ef4760;
}

.fmh-lane-label .swatch.london {
    background: #f5b73c;
}

.fmh-lane-label .swatch.nyc {
    background: #1abc88;
}

.fmh-lane {
    position: relative;
    height: 56px;
    border-bottom: 1px solid var(--line);
}

.fmh-lane:last-child {
    border-bottom: 0;
}

.fmh-band {
    position: absolute;
    top: 8px;
    bottom: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .30);
    overflow: hidden;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .20), 0 2px 8px rgba(0, 0, 0, .10);
}

.fmh-band.sydney {
    background: linear-gradient(180deg, #5683e3, #2950bd);
}

.fmh-band.tokyo {
    background: linear-gradient(180deg, #f06378, #c2185b);
}

.fmh-band.london {
    background: linear-gradient(180deg, #f9c660, #d4901c);
}

.fmh-band.nyc {
    background: linear-gradient(180deg, #2dc99a, #0d8a5f);
}

.fmh-now {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #ef4760 0%, #c2185b 100%);
    box-shadow: 0 0 0 3px rgba(239, 71, 96, .10);
    z-index: 6;
    pointer-events: none;
}

.fmh-now::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -10px;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff6477, #c2185b 70%);
    box-shadow: 0 0 0 3px #fff,
    0 0 0 6px rgba(239, 71, 96, .30),
    0 4px 10px rgba(239, 71, 96, .40);
    /* Pulsing glow ring — same pattern as the WhatsApp float button */
    animation: fmhNowPulse 1.8s ease-out infinite;
}

@keyframes fmhNowPulse {
    0% {
        box-shadow: 0 0 0 3px #fff,
        0 0 0 6px rgba(239, 71, 96, .45),
        0 0 0 6px rgba(239, 71, 96, .55),
        0 4px 10px rgba(239, 71, 96, .40);
    }
    70% {
        box-shadow: 0 0 0 3px #fff,
        0 0 0 6px rgba(239, 71, 96, .20),
        0 0 0 18px rgba(239, 71, 96, 0),
        0 4px 10px rgba(239, 71, 96, .40);
    }
    100% {
        box-shadow: 0 0 0 3px #fff,
        0 0 0 6px rgba(239, 71, 96, .20),
        0 0 0 18px rgba(239, 71, 96, 0),
        0 4px 10px rgba(239, 71, 96, .40);
    }
}

.fmh-now::after {
    content: attr(data-now);
    position: absolute;
    left: 50%;
    top: -36px;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ef4760, #c2185b);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 8px;
    letter-spacing: .4px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 6px 14px rgba(239, 71, 96, .35);
}

@media (prefers-reduced-motion: reduce) {
    .fmh-now::before {
        animation: none;
    }
}

.fmh-scale {
    display: grid;
    grid-template-columns: 84px 1fr;
    margin-top: 8px;
}

.fmh-scale .ticks {
    display: flex;
    justify-content: space-between;
    padding: 0 2px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-soft);
    letter-spacing: .5px;
    font-variant-numeric: tabular-nums;
}

.fmh-legend {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 6px 26px 22px;
    flex-wrap: wrap;
}

.fmh-legend .li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-mute);
    font-weight: 600;
}

.fmh-legend .sw {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.fmh-legend .sw.sydney {
    background: #3b6cd9;
}

.fmh-legend .sw.tokyo {
    background: #ef4760;
}

.fmh-legend .sw.london {
    background: #f5b73c;
}

.fmh-legend .sw.nyc {
    background: #1abc88;
}

.fmh-legend .sw.now {
    background: #060a23;
}

/* Session cards */
.fmh-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 8px 26px 24px;
}

@media (max-width: 980px) {
    .fmh-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .fmh-cards {
        grid-template-columns: 1fr;
    }
}

.fmh-sess {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
    position: relative;
    overflow: hidden;
}

.fmh-sess::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 12px;
    height: 3px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .06);
    overflow: hidden;
}

.fmh-sess .progress {
    position: absolute;
    left: 16px;
    bottom: 12px;
    height: 3px;
    border-radius: 999px;
    width: 0%;
    background: linear-gradient(90deg, #6cf2bf, #1abc88);
    transition: width .6s var(--ease);
    z-index: 1;
}

.fmh-sess:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(10, 20, 40, .08);
    border-color: rgba(14, 55, 137, .25);
}

.fmh-sess.open {
    border-color: rgba(26, 188, 136, .45);
    box-shadow: 0 14px 34px rgba(26, 188, 136, .15);
    background: linear-gradient(180deg, rgba(26, 188, 136, .06), #fff 60%);
}

.fmh-sess.open .progress {
    background: linear-gradient(90deg, #1abc88, #0d8a5f);
}

.fmh-sess.tokyo .progress {
    background: linear-gradient(90deg, #ef4760, #c2185b);
}

.fmh-sess.london .progress {
    background: linear-gradient(90deg, #f5b73c, #d4901c);
}

.fmh-sess.nyc .progress {
    background: linear-gradient(90deg, #1abc88, #0d8a5f);
}

.fmh-sess.sydney .progress {
    background: linear-gradient(90deg, #3b6cd9, #2950bd);
}

.fmh-shead {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.fmh-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .5px;
    flex-shrink: 0;
}

.fmh-badge.sydney {
    background: linear-gradient(135deg, #3b6cd9, #2950bd);
}

.fmh-badge.tokyo {
    background: linear-gradient(135deg, #ef4760, #c2185b);
}

.fmh-badge.london {
    background: linear-gradient(135deg, #f5b73c, #d4901c);
}

.fmh-badge.nyc {
    background: linear-gradient(135deg, #1abc88, #0d8a5f);
}

.fmh-sname {
    flex: 1;
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.fmh-sname small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-soft);
    margin-top: 2px;
}

.fmh-status {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-soft);
}

.fmh-sess.open .fmh-status {
    color: #0d8a5f;
}

.fmh-srows {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.fmh-srow {
    background: var(--bg-soft);
    border-radius: 10px;
    padding: 10px 12px;
}

.fmh-srow .lbl {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-soft);
    letter-spacing: .5px;
    text-transform: uppercase;
}

.fmh-srow .val {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}

.fmh-srow .val.green {
    color: #0d8a5f;
}

.fmh-sess.open .fmh-srow.opens .lbl {
    content: "CLOSES IN";
}

.fmh-shours {
    position: relative;
    font-size: 12px;
    color: var(--text-mute);
    padding-top: 10px;
    padding-bottom: 4px;
}

/* Footer of FMH card */
.fmh-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 26px 22px;
    border-top: 1px solid var(--line);
    gap: 14px;
    flex-wrap: wrap;
}

.fmh-note {
    font-size: 13px;
    color: var(--text-mute);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 240px;
}

.fmh-note i {
    color: var(--brand-2);
}

.fmh-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #030641 0%, #0e3789 100%);
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
    box-shadow: 0 10px 22px rgba(14, 55, 137, .25);
}

.fmh-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(14, 55, 137, .32);
}
