@charset "utf-8";

/* ============================================================
   TRUST EXCHANGE HORIZONTAL DISPLAY - UNIFIED OUTFIT TYPOGRAPHY
   Reference-Matched Centered Bottom Banner & Light Luxury Palette
============================================================ */

/* Base Reset & Unified Typography */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, input, textarea, select,
legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    outline: 0;
    box-sizing: border-box;
}

:root {
    --brand-plum: #630F45;
    --brand-plum-dark: #460630;
    --brand-plum-light: #7b1d5a;
    --brand-gold: #c49c5e;
    --brand-gold-dark: #9e7532;
    --bg-warm: #f4eee9;
    --card-white: #ffffff;
    --card-border: #e2d5cb;
    --table-divider: #e4d5cc;
    --row-alt-1: #f4e1ec;
    --row-alt-2: #f4e5d7;
    --text-dark: #0f172a;
    --text-muted: #64748b;
}

body.modern-body {
    background-color: var(--bg-warm);
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(99, 15, 69, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(196, 156, 94, 0.04) 0%, transparent 40%),
        linear-gradient(180deg, #f8f3ee 0%, #efe7e0 100%);
    color: var(--text-dark);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.tv-screen-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    justify-content: space-between;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   1. TOP INDICATOR MARQUEE STRIP
============================================================ */
.top-notice-strip {
    background: linear-gradient(90deg, #500936 0%, #630F45 50%, #460630 100%);
    color: #ffffff;
    height: 28px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    flex-shrink: 0;
    overflow: hidden;
    border-bottom: 1.5px solid var(--brand-gold);
}

.top-notice-strip .marquee {
    line-height: 28px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

/* ============================================================
   2. TOP HEADER FLOATING CARD
============================================================ */
.header-card-wrap {
    padding: 6px 24px 4px 24px;
    flex-shrink: 0;
}

.header-card {
    background: var(--card-white);
    border: 1.5px solid var(--card-border);
    border-radius: 12px;
    padding: 6px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 3px 12px rgba(99, 15, 69, 0.04);
    position: relative;
    overflow: hidden;
}

.header-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-plum) 0%, var(--brand-gold) 50%, var(--brand-plum) 100%);
}

.header-brand-box {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.header-meta-box {
    text-align: right;
    line-height: 1.25;
}

.meta-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.meta-time {
    font-size: 25px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    margin: 1px 0;
    font-variant-numeric: tabular-nums;
}

.meta-branch {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.meta-branch strong {
    color: var(--brand-plum);
    font-weight: 800;
}

/* ============================================================
   3. TITLE ROW ABOVE TABLE
============================================================ */
.board-title-strip {
    padding: 2px 26px 4px 26px;
    flex-shrink: 0;
}

.board-title-text {
    font-size: 18.5px;
    font-weight: 800;
    color: var(--brand-plum);
    letter-spacing: -0.2px;
}

.board-title-ar {
    font-family: 'El Messiri', 'Outfit', sans-serif !important;
    font-size: 18.5px;
    font-weight: 700;
    color: var(--brand-plum);
    margin-left: 6px;
}

/* ============================================================
   4. RATES BOARD TABLE SECTION
============================================================ */
.rates-board-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 24px;
    overflow: hidden;
}

/* Table Header */
.rates-header-row {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #630F45 0%, #4c0733 100%);
    border-radius: 6px 6px 0 0;
    color: #ffffff;
    height: 48px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(99, 15, 69, 0.15);
}

/* Column Width Ratios */
.col-th-country { width: 34%; }
.col-th-code    { width: 12%; }
.col-th-buy     { width: 18%; }
.col-th-sell    { width: 18%; }
.col-th-transfer{ width: 18%; }

.col-th-cell {
    text-align: center;
    position: relative;
    padding: 2px 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.col-th-cell:last-child {
    border-right: none;
}

.th-title-en {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    line-height: 1.15;
}

.th-title-ar {
    font-family: 'El Messiri', 'Outfit', sans-serif !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.15;
    color: #fcebf4;
}

/* Table Body Viewport */
.rates-viewport {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 100%;
    border-left: 1.5px solid var(--card-border);
    border-right: 1.5px solid var(--card-border);
    border-bottom: 1.5px solid var(--card-border);
    border-radius: 0 0 10px 10px;
    background: #ffffff;
}

.scroll_rates {
    position: relative;
    top: 0;
    width: 100%;
}

/* Table Body Row */
.rates-data-row {
    display: flex;
    align-items: center;
    height: 56px;
    border-bottom: 1px solid var(--table-divider);
    transition: background 0.2s ease;
}

.rates-data-row:nth-child(even) {
    background: var(--row-alt-1); /* #f4e1ec */
}

.rates-data-row:nth-child(odd) {
    background: var(--row-alt-2); /* #f4e5d7 */
}

.col-td-cell {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--table-divider);
}

.col-td-cell:last-child {
    border-right: none;
}

/* Col 1: Country Flag + English (Left) + Arabic (Right) */
.col-td-country {
    justify-content: space-between;
    padding: 0 16px;
}

.flag-name-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flag-box {
    background: #ffffff;
    padding: 1.5px;
    border-radius: 4px;
    border: 1px solid rgba(99, 15, 69, 0.15);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.country-flag {
    width: 36px;
    height: 24px;
    border-radius: 3px;
    object-fit: cover;
    display: block;
}

.name-en {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.name-ar {
    font-family: 'El Messiri', 'Outfit', sans-serif !important;
    font-size: 16.5px;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
}

/* Col 2: Currency Code */
.code-text {
    font-size: 17px;
    font-weight: 900;
    color: var(--brand-plum);
    letter-spacing: 0.5px;
}

/* Col 3, 4, 5: Rates with Perfect Tabular Alignment */
.rate-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   5. CENTERED PROMO BANNER WITH LOGO ON LEFT OF TEXT
============================================================ */
.bottom-banner-wrap {
    padding: 6px 24px 8px 24px;
    flex-shrink: 0;
}

.bottom-promo-card {
    background: var(--card-white);
    border: 1.5px solid var(--card-border);
    border-radius: 12px;
    padding: 6px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 3px 12px rgba(99, 15, 69, 0.04);
    position: relative;
    overflow: hidden;
}

.bottom-promo-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-plum) 0%, var(--brand-gold) 50%, var(--brand-plum) 100%);
}

.promo-unified-center {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.footer-trust-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.promo-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    line-height: 1.2;
}

.promo-main-heading {
    font-size: 17px;
    font-weight: 900;
    color: var(--brand-plum);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.promo-sub-features {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 3px;
}

.promo-sub-features span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.feature-bullet {
    color: var(--brand-plum);
    font-size: 10px;
}

/* ============================================================
   TV & LARGE SCREENS RESPONSIVE SCALING
============================================================ */

@media (min-width: 1440px) {
    .top-notice-strip {
        height: 32px;
        font-size: 15px;
        padding: 0 28px;
    }

    .top-notice-strip .marquee {
        font-size: 15px;
        line-height: 32px;
    }

    .header-card-wrap {
        padding: 8px 28px 6px 28px;
    }

    .header-card {
        padding: 8px 24px;
        border-radius: 12px;
    }

    .brand-logo {
        height: 56px;
    }

    .meta-date {
        font-size: 16px;
    }

    .meta-time {
        font-size: 28px;
    }

    .meta-branch {
        font-size: 16px;
    }

    .board-title-strip {
        padding: 4px 30px 6px 30px;
    }

    .board-title-text {
        font-size: 22px;
    }

    .board-title-ar {
        font-size: 22px;
    }

    .rates-board-section {
        padding: 0 28px;
    }

    .rates-header-row {
        height: 54px;
    }

    .th-title-en {
        font-size: 16px;
    }

    .th-title-ar {
        font-size: 16px;
    }

    .rates-data-row {
        height: 66px;
    }

    .country-flag {
        width: 44px;
        height: 30px;
    }

    .name-en {
        font-size: 19px;
    }

    .name-ar {
        font-size: 19px;
    }

    .code-text {
        font-size: 20px;
    }

    .rate-val {
        font-size: 21px;
    }

    .bottom-banner-wrap {
        padding: 8px 28px 10px 28px;
    }

    .bottom-promo-card {
        padding: 8px 24px;
        border-radius: 12px;
    }

    .footer-trust-logo {
        height: 56px;
    }

    .promo-main-heading {
        font-size: 19px;
    }

    .promo-sub-features {
        font-size: 15px;
        gap: 22px;
    }
}

@media (min-width: 1680px) {
    .top-notice-strip {
        height: 38px;
        font-size: 17px;
        padding: 0 34px;
    }

    .top-notice-strip .marquee {
        font-size: 17px;
        line-height: 38px;
    }

    .header-card-wrap {
        padding: 10px 34px 8px 34px;
    }

    .header-card {
        padding: 10px 30px;
        border-radius: 14px;
    }

    .brand-logo {
        height: 68px;
    }

    .meta-date {
        font-size: 19px;
    }

    .meta-time {
        font-size: 34px;
    }

    .meta-branch {
        font-size: 20px;
    }

    .board-title-strip {
        padding: 6px 36px 8px 36px;
    }

    .board-title-text {
        font-size: 26px;
    }

    .board-title-ar {
        font-size: 26px;
    }

    .rates-board-section {
        padding: 0 34px;
    }

    .rates-header-row {
        height: 62px;
    }

    .th-title-en {
        font-size: 18.5px;
    }

    .th-title-ar {
        font-size: 19px;
    }

    .rates-data-row {
        height: 76px;
    }

    .flag-name-left {
        gap: 16px;
    }

    .country-flag {
        width: 52px;
        height: 35px;
        border-radius: 4px;
    }

    .name-en {
        font-size: 23px;
    }

    .name-ar {
        font-size: 23px;
    }

    .code-text {
        font-size: 24px;
    }

    .rate-val {
        font-size: 26px;
    }

    .bottom-banner-wrap {
        padding: 10px 34px 12px 34px;
    }

    .bottom-promo-card {
        padding: 10px 30px;
        border-radius: 14px;
    }

    .footer-trust-logo {
        height: 66px;
    }

    .promo-main-heading {
        font-size: 23px;
    }

    .promo-sub-features {
        font-size: 17px;
        gap: 28px;
    }
}

@media (min-width: 2200px) {
    .top-notice-strip {
        height: 48px;
        font-size: 22px;
        padding: 0 44px;
    }

    .top-notice-strip .marquee {
        font-size: 22px;
        line-height: 48px;
    }

    .header-card-wrap {
        padding: 14px 44px 10px 44px;
    }

    .header-card {
        padding: 14px 40px;
        border-radius: 18px;
    }

    .brand-logo {
        height: 88px;
    }

    .meta-date {
        font-size: 24px;
    }

    .meta-time {
        font-size: 44px;
    }

    .meta-branch {
        font-size: 26px;
    }

    .board-title-strip {
        padding: 8px 46px 10px 46px;
    }

    .board-title-text {
        font-size: 34px;
    }

    .board-title-ar {
        font-size: 34px;
    }

    .rates-board-section {
        padding: 0 44px;
    }

    .rates-header-row {
        height: 80px;
        border-radius: 10px 10px 0 0;
    }

    .th-title-en {
        font-size: 25px;
    }

    .th-title-ar {
        font-size: 26px;
    }

    .rates-data-row {
        height: 98px;
    }

    .flag-name-left {
        gap: 20px;
    }

    .country-flag {
        width: 68px;
        height: 46px;
        border-radius: 6px;
    }

    .name-en {
        font-size: 30px;
    }

    .name-ar {
        font-size: 30px;
    }

    .code-text {
        font-size: 32px;
    }

    .rate-val {
        font-size: 35px;
    }

    .bottom-banner-wrap {
        padding: 14px 44px 18px 44px;
    }

    .bottom-promo-card {
        padding: 14px 40px;
        border-radius: 18px;
    }

    .footer-trust-logo {
        height: 84px;
    }

    .promo-main-heading {
        font-size: 29px;
    }

    .promo-sub-features {
        font-size: 22px;
        gap: 36px;
    }
}