:root {
    --news-gold: #e7bd39;
    --news-gold-soft: #f7da76;
    --news-red: #ef4444;
    --news-green: #18c58f;
    --news-panel: #101115;
    --news-panel-strong: #15161b;
    --news-border: rgba(231, 189, 57, 0.22);
    --news-muted: #a7a7b1;
}

body {
    background:
        radial-gradient(
            circle at 50% 12%,
            rgba(231, 189, 57, 0.075),
            transparent 30rem
        ),
        #08090b;
}

.news-page {
    width: min(100%, 1400px);
    margin-inline: auto;
    padding: clamp(22px, 3vw, 38px) clamp(12px, 2.5vw, 28px) 52px;
    color: #fff;
    font-family: "Cairo", sans-serif;
}

.news-hero {
    position: relative;
    isolation: isolate;
    padding: clamp(25px, 3.5vw, 38px);
    text-align: center;
    overflow: hidden;
    background:
        linear-gradient(
            120deg,
            rgba(231, 189, 57, 0.08),
            transparent 44%
        ),
        radial-gradient(
            circle at 85% 5%,
            rgba(231, 189, 57, 0.13),
            transparent 27%
        ),
        #0d0d11;
    border: 1px solid rgba(231, 189, 57, 0.24);
    border-radius: 23px;
    box-shadow:
        0 20px 58px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.news-hero-glow {
    position: absolute;
    z-index: -1;
    top: -170px;
    left: -140px;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: rgba(231, 189, 57, 0.1);
    filter: blur(90px);
    pointer-events: none;
}

.news-impact-badge,
.news-section-kicker,
.next-event-kicker {
    color: var(--news-red);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.2px;
}

.news-impact-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 31px;
    padding: 0 11px;
    font-size: 9px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 999px;
}

.news-impact-badge span {
    width: 6px;
    height: 6px;
    background: var(--news-red);
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.85);
}

.news-hero h1 {
    margin: 9px 0 7px;
    color: #fff;
    font-size: clamp(29px, 4vw, 44px);
    font-weight: 900;
    line-height: 1.2;
}

.news-hero h1 em {
    color: var(--news-gold);
    font-style: normal;
    text-shadow: 0 0 32px rgba(231, 189, 57, 0.25);
}

.news-hero > p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--news-muted);
    font-size: clamp(11px, 1.35vw, 14px);
    line-height: 1.7;
}

.news-timezone-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: fit-content;
    max-width: 100%;
    min-height: 31px;
    margin: 14px auto 0;
    padding: 0 11px;
    color: #d7d7dc;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 999px;
    font-size: 9px;
    backdrop-filter: blur(14px);
}

.news-timezone-bar strong {
    color: var(--news-gold-soft);
}

.news-timezone-icon {
    margin-left: 5px;
    color: var(--news-gold);
    font-size: 13px;
}

.news-live-clock {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff;
}

.news-live-dot {
    width: 7px;
    height: 7px;
    background: var(--news-green);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(24, 197, 143, 0.8);
    animation: news-pulse 1.4s ease-in-out infinite;
}

.next-event-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 0.9fr 1fr;
    align-items: center;
    gap: 16px;
    margin: 18px 0;
    padding: 18px 21px;
    background:
        linear-gradient(
            115deg,
            rgba(239, 68, 68, 0.095),
            rgba(231, 189, 57, 0.055) 48%,
            rgba(255, 255, 255, 0.025)
        ),
        var(--news-panel);
    border: 1px solid var(--news-border);
    border-radius: 21px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.next-event-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(
        to bottom,
        var(--news-red),
        var(--news-gold)
    );
}

.next-event-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.next-event-flag {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    font-size: 26px;
}

.next-event-flag img {
    display: block;
    width: 36px;
    height: 27px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28);
}

.next-event-currency {
    color: var(--news-gold);
    font-size: 10px;
    font-weight: 900;
}

.next-event-card h2 {
    margin: 3px 0 0;
    color: #fff;
    font-size: 17px;
    line-height: 1.5;
}

.next-event-time,
.next-event-countdown {
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.075);
}

.next-event-time span,
.next-event-countdown span {
    display: block;
    margin-bottom: 5px;
    color: var(--news-muted);
    font-size: 10px;
}

.next-event-time strong,
.next-event-countdown strong {
    display: block;
    color: #fff;
    font-size: 17px;
}

.next-event-time small {
    display: block;
    margin-top: 4px;
    color: var(--news-gold);
}

.next-event-countdown strong {
    color: var(--news-gold-soft);
    direction: rtl;
    text-align: right;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
}

.next-event-card.is-live {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 36px rgba(239, 68, 68, 0.12);
}

.next-event-card.is-live .next-event-kicker,
.next-event-card.is-live .next-event-countdown strong {
    color: #ff6d6d;
}

.news-calendar {
    background: rgba(14, 15, 19, 0.88);
    border: 1px solid var(--news-border);
    border-radius: 21px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.news-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: clamp(16px, 2.5vw, 21px);
    border-bottom: 1px solid var(--news-border);
}

.news-section-kicker {
    color: var(--news-gold);
}

.news-calendar-header h2 {
    margin: 3px 0 0;
    color: #fff;
    font-size: clamp(20px, 2.8vw, 27px);
}

.news-range-tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    background: #090a0d;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
}

.news-range-button {
    min-width: 60px;
    padding: 7px 10px;
    color: var(--news-muted);
    background: transparent;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.22s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.news-range-button:hover {
    color: #fff;
}

.news-range-button.is-active {
    color: #09090b;
    background: linear-gradient(
        135deg,
        var(--news-gold-soft),
        var(--news-gold)
    );
    box-shadow: 0 0 20px rgba(231, 189, 57, 0.18);
}

.news-table-heading,
.news-event-card {
    display: grid;
    grid-template-columns:
        115px
        minmax(250px, 1fr)
        165px
        180px;
    align-items: center;
    gap: 12px;
}

.news-table-heading {
    padding: 11px 18px;
    color: #74747f;
    background: rgba(255, 255, 255, 0.018);
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    font-size: 10px;
    font-weight: 900;
}

.news-event-list {
    padding: 8px;
}

.news-event-card {
    position: relative;
    min-height: 88px;
    margin-bottom: 6px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 15px;
    transition:
        border-color 0.22s ease,
        background-color 0.22s ease,
        transform 0.22s ease;
}

.news-event-card:last-child {
    margin-bottom: 0;
}

.news-event-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(231, 189, 57, 0.3);
    transform: translateY(-1px);
}

.news-event-card:not(.is-past):not(.is-live) {
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.022),
            rgba(231, 189, 57, 0.045)
        );
    border-color: rgba(231, 189, 57, 0.14);
    box-shadow: inset -2px 0 0 rgba(231, 189, 57, 0.38);
}

.news-event-card:not(.is-past):not(.is-live):hover {
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035),
            rgba(231, 189, 57, 0.065)
        );
    border-color: rgba(231, 189, 57, 0.28);
}

.news-event-card[hidden] {
    display: none;
}

.news-event-card.is-live {
    background: rgba(239, 68, 68, 0.07);
    border-color: rgba(239, 68, 68, 0.48);
    box-shadow: inset -3px 0 0 var(--news-red);
}

.news-event-card.is-past {
    opacity: 0.58;
}

.news-event-currency {
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: center;
    gap: 2px 9px;
}

.news-event-flag {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 32px;
    height: 24px;
    font-size: 28px;
}

.news-event-flag img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.24);
}

.news-event-currency strong {
    color: #fff;
    font-size: 13px;
}

.news-event-currency small {
    color: var(--news-red);
    font-size: 9px;
    font-weight: 900;
}

.news-event-copy h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
}

.news-event-copy p {
    margin: 0;
}

.news-event-local-date {
    color: var(--news-muted);
    font-size: 10px;
}

.news-event-note {
    margin-top: 4px !important;
    color: #d4d4da;
    font-size: 9px;
    line-height: 1.5;
}

.news-event-time span {
    display: block;
    color: #777781;
    font-size: 9px;
}

.news-event-time strong {
    display: block;
    margin: 3px 0;
    color: var(--news-gold-soft);
    font-size: 15px;
}

.news-event-time small {
    color: #898993;
    font-size: 9px;
}

.news-event-status-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 9px;
    color: var(--news-gold-soft);
    background: rgba(231, 189, 57, 0.085);
    border: 1px solid rgba(231, 189, 57, 0.18);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
}

.news-event-status-label::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-left: 6px;
    background: currentColor;
    border-radius: 50%;
}

.news-event-card.is-live .news-event-status-label {
    color: #ff7070;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.28);
}

.news-event-card.is-past .news-event-status-label {
    color: #92929a;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.news-event-countdown {
    display: block;
    margin-top: 4px;
    color: #c8c8ce;
    direction: rtl;
    font-size: 9px;
    text-align: right;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
}

.news-empty-state {
    margin: 8px;
    padding: 32px 18px;
    text-align: center;
    background: rgba(24, 197, 143, 0.035);
    border: 1px dashed rgba(24, 197, 143, 0.22);
    border-radius: 18px;
}

.news-empty-state > span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 12px;
    color: var(--news-green);
    background: rgba(24, 197, 143, 0.1);
    border-radius: 50%;
    font-size: 22px;
}

.news-empty-state h3 {
    margin: 0 0 6px;
    color: #fff;
}

.news-empty-state p {
    margin: 0;
    color: var(--news-muted);
    font-size: 13px;
}

.news-warning-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    padding: 14px 16px;
    color: #d2d2d8;
    background: rgba(231, 189, 57, 0.045);
    border: 1px solid rgba(231, 189, 57, 0.14);
    border-radius: 17px;
}

.news-warning-icon {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    color: #09090b;
    background: var(--news-gold);
    border-radius: 50%;
    font-weight: 900;
}

.news-warning-note strong {
    color: var(--news-gold-soft);
}

.news-warning-note p {
    margin: 4px 0 0;
    color: var(--news-muted);
    font-size: 10px;
    line-height: 1.65;
}

@keyframes news-pulse {
    50% {
        opacity: 0.4;
        transform: scale(0.82);
    }
}

@media (max-width: 1050px) {
    .news-table-heading {
        display: none;
    }

    .news-event-card {
        grid-template-columns:
            105px
            minmax(230px, 1fr)
            145px
            170px;
    }

    .news-event-countdown {
        margin: 0;
    }
}

@media (max-width: 780px) {
    .news-page {
        width: min(100%, 1400px);
        padding: 14px 7px 40px;
    }

    .news-hero {
        padding: 20px 12px 13px;
        border-radius: 17px;
    }

    .news-hero h1 {
        margin: 7px auto 5px;
        font-size: clamp(25px, 7.2vw, 30px);
        line-height: 1.25;
    }

    .news-hero > p {
        max-width: 96%;
        font-size: 10px;
        line-height: 1.65;
    }

    .news-impact-badge {
        min-height: 28px;
        padding-inline: 10px;
        font-size: 8px;
    }

    .news-timezone-bar {
        flex-flow: row wrap;
        gap: 5px 10px;
        width: fit-content;
        min-height: 32px;
        margin-top: 10px;
        padding: 5px 10px;
        border-radius: 999px;
        font-size: 8px;
    }

    .next-event-card {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin: 10px 0;
        padding: 14px;
        border-radius: 17px;
    }

    .next-event-lead {
        grid-column: 1 / -1;
    }

    .next-event-time,
    .next-event-countdown {
        padding: 9px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.075);
        border-right: 0;
    }

    .next-event-time strong,
    .next-event-countdown strong {
        font-size: 14px;
    }

    .news-calendar-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 14px;
    }

    .news-range-tabs {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
        border-radius: 12px;
    }

    .news-range-button {
        min-width: 0;
        padding: 7px 5px;
        font-size: 10px;
    }

    .news-event-list {
        padding: 5px;
    }

.news-event-card {
        grid-template-columns: 82px minmax(0, 1fr) 100px;
        min-height: 0;
        padding: 10px 8px;
    }

    .news-event-currency {
        grid-template-columns: 30px 1fr;
    }

    .news-event-flag {
        width: 28px;
        height: 21px;
        font-size: 23px;
    }

    .news-event-copy h3 {
        font-size: 12px;
    }

    .news-event-status {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: 8px;
        padding-top: 6px;
        border-top: 1px solid rgba(255, 255, 255, 0.055);
    }
}

@media (max-width: 520px) {
    .news-hero h1 {
        font-size: 25px;
    }

    .news-impact-badge {
        font-size: 8px;
    }

    .next-event-card {
        grid-template-columns: 1fr;
    }

    .next-event-time,
    .next-event-countdown {
        grid-column: 1;
    }

    .news-calendar {
        border-radius: 17px;
    }

    .news-calendar-header h2 {
        font-size: 18px;
    }

    .news-range-button {
        font-size: 10px;
    }

    .news-event-card {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 8px;
    }

    .news-event-time {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        padding-top: 6px;
        border-top: 1px solid rgba(255, 255, 255, 0.055);
    }

    .news-event-time span {
        grid-row: span 2;
    }

    .news-event-time strong {
        margin: 0;
    }

    .news-event-time small {
        text-align: left;
    }
}
