/* =========================
   BASE
========================= */

body
{
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
    background: #ffffff;
    color: #000000;
}

a
{
    text-decoration: none;
    color: inherit;
}


.table .fx-up
{
    color: #0a7a2f !important;
    font-weight: 600;
}

.table .fx-down
{
    color: #c1121f !important;
    font-weight: 600;
}

.table .fx-flat
{
    color: #666666;
}



/* =========================
   TELEGRAM LINK
========================= */

.tg-link
{
    margin-left: 24px;
    display: flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.tg-link:hover
{
    opacity: 1;
}

.tg-icon
{
    width: 20px;
    height: 20px;
    fill: currentColor;
}


/* =========================
   TEXT BLOCKS
========================= */

.calc-description
{
    max-width: 640px;
    margin: 0 auto 30px;
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
}


/* =========================
   HEADER
========================= */

.site-header
{
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-link
{
    display: flex;
    flex-direction: column;
}

.logo-name
{
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #000000;
}

.logo-sub
{
    font-size: 12px;
    color: #666666;
}

.main-nav
{
    display: flex;
    gap: 24px;
}

.main-nav a
{
    font-size: 14px;
    color: #000000;
    opacity: 0.7;
}

.main-nav a:hover
{
    opacity: 1;
}


/* =========================
   MAIN
========================= */

.site-main
{
    min-height: calc(100vh - 140px);
}

.hero
{
    padding: 80px 0 100px;
}

.hero-title
{
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #000000;
}

.hero-subtitle
{
    margin-top: 12px;
    font-size: 18px;
    color: #666666;
}

.hero-box
{
    margin: 50px auto 0;
    max-width: 520px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 28px;
}

.compare-box
{
    max-width: 620px;
}

.calc-mode-switch
{
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.calc-mode-link
{
    padding: 10px 18px;
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    font-size: 14px;
    color: #444444;
    background: #ffffff;
    transition: all 0.2s ease;
}

.calc-mode-link:hover
{
    border-color: #999999;
    color: #000000;
}

.calc-mode-link.is-active
{
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}

.dev-label
{
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000000;
}

.dev-text
{
    font-size: 14px;
    color: #555555;
}


/* =========================
   RESULTS / BOXES
========================= */

.result-box
{
    font-size: 18px;
    font-weight: 500;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    color: #000000;
}


/* =========================
   TABLES
========================= */

.table
{
    font-size: 13px;
    color: #000000;
}

.table thead th
{
    background: #f3f3f3;
    font-weight: 600;
    white-space: nowrap;
}

.table td,
.table th
{
    vertical-align: middle;
}

.currency-box
{
    max-width: 900px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e7edf3;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.currency-table-head
{
    margin-bottom: 18px;
}

.currency-table-title
{
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.currency-table-caption
{
    margin-top: 6px;
    font-size: 13px;
    color: #667085;
}

.currency-detail-box
{
    max-width: 900px;
}

.currency-detail-head
{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.currency-back-link
{
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid #d8dee6;
    border-radius: 999px;
    background: #ffffff;
    font-size: 13px;
    color: #344054;
    white-space: nowrap;
}

.currency-back-link:hover
{
    border-color: #98a2b3;
    color: #101828;
}

.currency-chart
{
    height: 320px;
    margin-top: 18px;
}

.currency-table
{
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.currency-table thead th
{
    background: #f8fafc;
    color: #475467;
    border-bottom: 1px solid #e7edf3;
    border-top: 0;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.currency-sort
{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
}

.currency-sort:hover
{
    color: #101828;
}

.currency-sort.is-active
{
    color: #101828;
}

.currency-sort-arrow
{
    font-size: 11px;
    color: #98a2b3;
}

.currency-table tbody td
{
    background: rgba(255, 255, 255, 0.86);
    border-color: #eef2f6;
    padding: 14px 12px;
}

.currency-table tbody tr:hover td
{
    background: #ffffff;
}

.currency-code
{
    width: 92px;
    white-space: nowrap;
}

.currency-chip
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.currency-chip:hover
{
    background: #1f2937;
    color: #ffffff;
}

.currency-current
{
    width: 170px;
    white-space: nowrap;
}

.currency-rate
{
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #101828;
}

.currency-date
{
    margin-top: 4px;
    font-size: 11px;
    color: #98a2b3;
}

.currency-month-cell
{
    font-weight: 600;
    color: #344054;
    background: #f8fafc !important;
    font-size: 11px;
    vertical-align: top !important;
}

.currency-detail-table tbody td
{
    padding: 6px 10px;
    font-size: 11px;
    line-height: 1.2;
}

.currency-detail-day
{
    width: 44px;
    color: #667085;
}

.currency-detail-rate-cell
{
    white-space: nowrap;
}

.currency-detail-rate
{
    font-size: 12px;
    font-weight: 600;
    color: #101828;
}

.currency-detail-date
{
    margin-left: 8px;
    font-size: 10px;
    color: #98a2b3;
}

@media (max-width: 768px)
{
    .currency-box
    {
        max-width: 100%;
        padding: 18px;
    }

    .currency-table tbody td
    {
        padding: 12px 10px;
    }

    .currency-rate
    {
        font-size: 20px;
    }

    .currency-detail-head
    {
        flex-direction: column;
        align-items: stretch;
    }

    .currency-chart
    {
        height: 260px;
    }
}

.year-divider td,
.year-divider th
{
    background: #fff6db;
}

.compare-accent
{
    background: #eef7ee;
    font-weight: 700;
}

.compare-accent-head
{
    background: #dfeee0 !important;
}


/* =========================
   FOOTER
========================= */

.site-footer
{
    padding: 32px 0;
    border-top: 1px solid #e5e5e5;
    background: #ffffff;
}

.footer-title
{
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.footer-sub
{
    font-size: 12px;
    color: #666666;
    margin-top: 4px;
}

.footer-copy
{
    font-size: 11px;
    color: #999999;
    margin-top: 8px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px)
{
    .hero-title
    {
        font-size: 34px;
    }

    .hero
    {
        padding: 60px 0 80px;
    }

    .calc-mode-switch
    {
        margin-top: 20px;
    }
}
