@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    background: #f7f5f0;
    color: #1a1a1a;
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.nav-toggle {
    display: none;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e8e2d8;
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: #b8860b;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 4px;
}

.nav-burger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: 0.2s;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.site-nav a {
    color: #444;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: #b8860b;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-toggle {
    background: #f0ebe2;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.lang-toggle:hover {
    background: #e5ddd2;
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background: #fff;
    border: 1px solid #e8e2d8;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 140px;
    z-index: 101;
    padding: 0.3rem 0;
}

.lang-dropdown-content a {
    display: block;
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: #333;
    text-decoration: none;
}

.lang-dropdown-content a:hover {
    background: #f7f5f0;
    color: #b8860b;
}

.lang-dropdown-content a.active {
    background: #b8860b;
    color: #fff;
}

.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.8rem 1.2rem 2.5rem;
    min-height: 55vh;
}

.site-footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 2rem 0 0;
    margin-top: 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-col h3, .footer-col h4 {
    color: #f0ebe2;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.footer-col p {
    font-size: 0.85rem;
    color: #888;
}

.footer-col a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.2rem 0;
    display: inline-block;
    margin-right: 1.2rem;
}

.footer-col a:hover {
    color: #b8860b;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.2rem;
    border-top: 1px solid #333;
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: #666;
}

h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 2rem 0 1rem;
}

h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 1.2rem 0 0.5rem;
}

p {
    margin-bottom: 0.8rem;
    font-weight: 400;
}

.notice {
    background: #fffbeb;
    border: 1px solid #f0d080;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    color: #8a6d0b;
    font-size: 0.9rem;
    margin: 0.8rem 0;
}

.updated-banner {
    background: #f0ebe2;
    border-radius: 6px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero-section {
    background: linear-gradient(135deg, #f7f5f0 0%, #ede8df 100%);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e8e2d8;
}

.hero-section h1 {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.hero-section p {
    font-size: 1.05rem;
    color: #555;
    max-width: 600px;
}

.country-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.country-selector-card {
    background: #fff;
    border-radius: 6px;
    padding: 0.4rem 0.2rem;
    text-align: center;
    text-decoration: none;
    color: #1a1a1a;
    border: 1px solid #ece8e2;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    font-weight: 600;
    font-size: 0.7rem;
}

.country-selector-card:hover {
    border-color: #b8860b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184,134,11,0.1);
}

.country-selector-card .flag-icon {
    font-size: 1rem;
    display: block;
    margin-bottom: 0.05rem;
}

.country-selector-card .price-indicator {
    font-size: 0.6rem;
    color: #b8860b;
    font-weight: 700;
    margin-top: 0.05rem;
}

.price-summary-wrapper {
    overflow-x: auto;
    margin: 1.2rem 0;
    -webkit-overflow-scrolling: touch;
}

.price-summary-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.price-summary-table th {
    background: #f0ebe2;
    padding: 0.6rem 0.6rem;
    text-align: center;
    font-weight: 700;
    white-space: nowrap;
    font-size: 0.8rem;
}

.price-summary-table td {
    padding: 0.4rem 0.6rem;
    text-align: center;
    border-bottom: 1px solid #f0ebe2;
    font-size: 0.8rem;
}

.price-summary-table tr:last-child td {
    border-bottom: none;
}

.price-summary-table tr:hover td {
    background: #faf8f5;
}

.price-summary-table .positive {
    color: #2e7d32;
}

.price-summary-table .negative {
    color: #c62828;
}

@media (max-width: 700px) {
    .price-summary-table {
        font-size: 0.7rem;
        min-width: 450px;
    }

    .price-summary-table th, .price-summary-table td {
        padding: 0.3rem 0.3rem;
    }
}

.price-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.price-detail-table th {
    background: #f0ebe2;
    padding: 0.7rem 0.8rem;
    text-align: center;
    font-weight: 700;
}

.price-detail-table td {
    padding: 0.6rem 0.8rem;
    text-align: center;
    border-bottom: 1px solid #f0ebe2;
}

.price-detail-table tr:last-child td {
    border-bottom: none;
}

.price-detail-table .positive {
    color: #2e7d32;
}

.price-detail-table .negative {
    color: #c62828;
}

@media (max-width: 700px) {
    .price-detail-table {
        font-size: 0.75rem;
    }

    .price-detail-table th, .price-detail-table td {
        padding: 0.4rem 0.3rem;
    }
}

.historical-chart {
    background: #ffffff;
    padding: 0.5rem;
    border-radius: 10px;
    border: 1px solid #ece8e2;
    margin: 1.2rem auto;
    box-shadow: 0 1px 6px rgba(0,0,0,0.03);
    max-width: 100%;
    height: 320px;
    position: relative;
}

.historical-chart canvas {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 600px) {
    .historical-chart {
        height: 240px;
        padding: 0.3rem;
    }
}

.content-block {
    background: #fff;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    border: 1px solid #ece8e2;
    margin: 1.2rem 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

.content-section {
    margin: 0.8rem 0;
}

.content-paragraph {
    margin: 0.6rem 0;
    line-height: 1.8;
}

.faq details {
    background: #fff;
    border: 1px solid #ece8e2;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.faq summary {
    font-weight: 700;
    cursor: pointer;
    color: #2c2c2c;
}

.faq p {
    padding-top: 0.4rem;
    color: #444;
    font-size: 0.9rem;
}

.converter-box {
    background: #fff;
    padding: 1.8rem;
    border-radius: 12px;
    border: 1px solid #ece8e2;
    max-width: 520px;
    margin: 0 auto;
}

.converter-row {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.converter-row input {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
}

.converter-row select {
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #fcfcfc;
    min-width: 100px;
    font-family: 'Cairo', sans-serif;
}

#conv-value-usd {
    text-align: center;
    font-weight: 700;
    color: #b8860b;
    margin-top: 0.4rem;
    font-size: 1rem;
}

.converter-steps {
    background: #faf8f5;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin: 1.2rem auto;
    border: 1px solid #ece8e2;
    max-width: 600px;
}

.converter-steps ol {
    padding-right: 1.5rem;
    margin: 0;
}

.converter-steps li {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .converter-row {
        flex-wrap: wrap;
    }

    .converter-row input {
        min-width: 100%;
    }

    .converter-row select {
        min-width: 100%;
    }
}

@media (max-width: 700px) {
    .nav-burger {
        display: flex;
    }

    .site-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 0.8rem 0;
        border-top: 1px solid #eee;
        margin-top: 0.5rem;
        align-items: flex-start;
    }

    .nav-toggle:checked ~ .site-header .site-nav {
        display: flex;
    }

    .lang-dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0;
        margin-top: 0.3rem;
    }

    .lang-dropdown:hover .lang-dropdown-content {
        display: block;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-col a {
        display: inline-block;
        margin-right: 0.8rem;
        margin-bottom: 0.3rem;
    }

    .hero-section {
        padding: 1.5rem 1rem;
    }

    .hero-section h1 {
        font-size: 1.4rem;
    }

    .country-selector-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.4rem;
    }

    .country-selector-card {
        padding: 0.4rem 0.2rem;
        font-size: 0.7rem;
    }

    .country-selector-card .flag-icon {
        font-size: 1rem;
    }
}

.timeframe-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.8rem;
    justify-content: center;
}

.timeframe-btn {
    background: #f0ebe2;
    border: 1px solid #e0dcd6;
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.timeframe-btn:hover {
    background: #e5ddd2;
    border-color: #b8860b;
}

.timeframe-btn.active {
    background: #b8860b;
    border-color: #b8860b;
    color: #fff;
}

.timeframe-btn.active:hover {
    background: #a07509;
}

.zoom-reset-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #b8860b;
    color: #fff;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-family: 'Cairo', sans-serif;
    z-index: 10;
}

.zoom-reset-btn:hover {
    background: #a07509;
}

.karat-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
    justify-content: center;
}

.karat-btn {
    background: #f0ebe2;
    border: 1px solid #e0dcd6;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.karat-btn:hover {
    background: #e5ddd2;
    border-color: #b8860b;
}

.karat-btn.active {
    background: #b8860b;
    border-color: #b8860b;
    color: #fff;
}

.karat-btn.active:hover {
    background: #a07509;
}

.chart-wrapper {
    margin-bottom: 2rem;
}

.performance-table-wrapper {
    overflow-x: auto;
    margin: 1.2rem 0;
    -webkit-overflow-scrolling: touch;
}

.performance-table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    font-size: 0.8rem;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.performance-table th {
    background: #f0ebe2;
    padding: 0.5rem 0.4rem;
    text-align: center;
    font-weight: 700;
    white-space: nowrap;
    font-size: 0.7rem;
}

.performance-table td {
    padding: 0.4rem 0.3rem;
    text-align: center;
    border-bottom: 1px solid #f0ebe2;
    font-size: 0.75rem;
}

.performance-table tr:last-child td {
    border-bottom: none;
}

.performance-table tr:hover td {
    background: #faf8f5;
}

.performance-table .average-row {
    background: #f7f5f0;
    font-weight: 600;
}

.performance-table .average-row td {
    border-top: 2px solid #d4af37;
}

.performance-table .positive {
    color: #2e7d32;
}

.performance-table .negative {
    color: #c62828;
}

@media (max-width: 700px) {
    .performance-table {
        font-size: 0.65rem;
        min-width: 350px;
    }

    .performance-table th, .performance-table td {
        padding: 0.25rem 0.2rem;
    }
}

.news-ticker {
    background: #1a1a1a;
    color: #f0ebe2;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    height: 2.4rem;
}

.news-ticker .label {
    font-weight: 700;
    color: #b8860b;
    white-space: nowrap;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.news-ticker .ticker-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.news-ticker .ticker-track {
    display: inline-block;
    white-space: nowrap;
    position: absolute;
    will-change: transform;
    font-size: 0.85rem;
    animation: ticker-scroll-ltr 35s linear infinite;
}

.news-ticker[dir="rtl"] .ticker-track {
    animation-name: ticker-scroll-rtl;
}

@keyframes ticker-scroll-ltr {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes ticker-scroll-rtl {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.news-ticker .date {
    font-size: 0.7rem;
    color: #888;
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bullion-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    margin: 1rem 0;
}

.bullion-table th {
    background: #f0ebe2;
    padding: 0.6rem 0.8rem;
    text-align: center;
    font-weight: 700;
}

.bullion-table td {
    padding: 0.5rem 0.8rem;
    text-align: center;
    border-bottom: 1px solid #f0ebe2;
}

.bullion-table tr:last-child td {
    border-bottom: none;
}

.bullion-table .price {
    font-weight: 700;
    color: #b8860b;
}

.markup-note {
    font-size: 0.75rem;
    color: #888;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.currency-converter {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #ece8e2;
    margin: 1.2rem 0;
    max-width: 400px;
}

.currency-converter .row {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    align-items: center;
}

.currency-converter input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Cairo', sans-serif;
}

.currency-converter select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #fcfcfc;
    font-family: 'Cairo', sans-serif;
}

.currency-converter .result {
    text-align: center;
    font-weight: 700;
    color: #b8860b;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

@media (max-width: 600px) {
    .news-ticker {
        gap: 0.5rem;
        padding: 0.4rem 0.7rem;
    }

    .news-ticker .label {
        font-size: 0.75rem;
    }

    .news-ticker .ticker-track {
        font-size: 0.75rem;
    }

    .currency-converter .row {
        flex-wrap: wrap;
    }

    .currency-converter input {
        min-width: 100%;
    }

    .currency-converter select {
        min-width: 100%;
    }
}

.live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #4caf50;
    border-radius: 50%;
    animation: live-pulse 1.5s infinite;
}

@keyframes live-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 1.2rem 0 1rem;
}

.calc-tab-btn {
    background: #f0ebe2;
    border: 1px solid #e0dcd6;
    padding: 0.5rem 1.1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calc-tab-btn:hover {
    background: #e5ddd2;
}

.calc-tab-btn.active {
    background: #b8860b;
    border-color: #b8860b;
    color: #fff;
}

.calc-app {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ece8e2;
    padding: 1.5rem;
    max-width: 560px;
    margin: 0 auto 1.5rem;
}

.calc-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.calc-row label {
    flex: 0 0 100%;
    font-size: 0.85rem;
    font-weight: 700;
    color: #555;
}

.calc-row input, .calc-row select {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    min-width: 120px;
}

.calc-result {
    margin-top: 1rem;
    border-top: 1px solid #ece8e2;
    padding-top: 1rem;
}

.calc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    margin-bottom: 0.4rem;
    background: #faf8f5;
    font-size: 0.9rem;
}

.calc-result-row span {
    color: #666;
}

.calc-result-row strong {
    color: #1a1a1a;
}

.calc-result-row.highlight {
    background: #fdf6e3;
    border: 1px solid #eaddb8;
}

.calc-result-row.highlight strong {
    color: #b8860b;
    font-size: 1.05rem;
}

.calc-result-row.positive strong {
    color: #2e7d32;
}

.calc-result-row.negative strong {
    color: #c62828;
}

@media (max-width: 600px) {
    .calc-app {
        padding: 1.1rem;
    }
    .calc-row input, .calc-row select {
        min-width: 100%;
    }
}

h2 {
    font-size: 1.15rem;
}

@media (max-width: 600px) {
    h2 {
        font-size: 1rem;
    }
}

.hero-stats {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.hero-stats .positive strong { color: #2e7d32; }
.hero-stats .negative strong { color: #c62828; }
.hero-stats .hero-updated { font-size: 0.75rem; color: #999; }

.calc-cta {
    background: #fffbf2;
    border-color: #eaddb8;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.calc-cta h3, .calc-cta-inline h3 {
    margin-top: 0;
    color: #b8860b;
}

.calc-cta-inline {
    background: #fffbf2;
    border-color: #eaddb8;
}

.cta-button {
    flex-shrink: 0;
    background: #b8860b;
    color: #fff;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    display: inline-block;
}

.unit-price-box {
    background: #fff;
    border: 1px solid #ece8e2;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.unit-price-label {
    font-weight: 700;
    color: #666;
    font-size: 0.85rem;
}

.unit-price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #b8860b;
    direction: ltr;
}

.unit-price-box select {
    margin-right: auto;
    margin-left: 0;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-family: 'Cairo', sans-serif;
    font-size: 0.85rem;
    background: #faf8f5;
}

[dir="rtl"] .unit-price-box select {
    margin-left: auto;
    margin-right: 0;
}

.last-updated-line {
    font-size: 0.8rem;
    color: #888;
    margin: 0.5rem 0 1.5rem;
}

.converter-cross-link {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.6rem;
    text-align: center;
}

.converter-cross-link a {
    color: #b8860b;
    font-weight: 700;
    text-decoration: none;
}

.country-list-grid {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.6rem;
}

.country-list-grid li {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ece8e2;
    transition: 0.2s;
}

.country-list-grid a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
}

.country-list-grid .flag {
    font-size: 1.4rem;
}

.country-list-grid .list-price {
    margin-left: auto;
    font-size: 0.8rem;
    color: #b8860b;
    font-weight: 700;
}

[dir="rtl"] .country-list-grid .list-price {
    margin-left: 0;
    margin-right: auto;
}

.news-ticker {
    height: 2.2rem;
}

.news-ticker .ticker-viewport {
    position: relative;
    overflow: hidden;
}

.news-ticker .ticker-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    left: 100%;
    animation: ticker-scroll-ltr 24s linear infinite;
}

.news-ticker[dir="rtl"] .ticker-track {
    left: auto;
    right: 100%;
    animation-name: ticker-scroll-rtl;
}

.news-ticker .ticker-track .num {
    font-weight: 700;
    color: #f0ebe2;
    padding: 0 2px;
}

@keyframes ticker-scroll-ltr {
    from { left: 100%; }
    to { left: -100%; }
}

@keyframes ticker-scroll-rtl {
    from { right: 100%; }
    to { right: -100%; }
}

.historical-chart canvas {
    height: calc(100% - 34px) !important;
}

.zoom-reset-btn {
    top: auto;
    bottom: 2px;
    right: 50%;
    transform: translateX(50%);
}

@media (max-width: 600px) {
    .currency-converter .row {
        flex-wrap: nowrap;
    }
    .currency-converter input {
        min-width: 0;
        flex: 1 1 55%;
    }
    .currency-converter select {
        min-width: 0;
        flex: 0 1 40%;
    }
}

.unit-price-box {
    background: #fff;
    border: 1px solid #ece8e2;
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.unit-price-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #b8860b;
    direction: ltr;
    margin-left: auto;
}

[dir="rtl"] .unit-price-value {
    margin-left: 0;
    margin-right: auto;
}

.unit-price-box select {
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-family: 'Cairo', sans-serif;
    font-size: 0.85rem;
    background: #faf8f5;
}

.currency-converter {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #ece8e2;
    margin: 1.2rem auto;
    max-width: 640px;
    width: 100%;
}

.currency-converter .row {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    align-items: center;
}

.currency-converter input {
    flex: 1;
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
}

.currency-converter select {
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fcfcfc;
    font-family: 'Cairo', sans-serif;
    min-width: 110px;
}

.currency-converter .result {
    text-align: center;
    font-weight: 700;
    color: #b8860b;
    font-size: 1.15rem;
    margin-top: 0.5rem;
}

@media (max-width: 600px) {
    .currency-converter .row {
        flex-wrap: nowrap;
    }
    .currency-converter input {
        min-width: 0;
        flex: 1 1 55%;
    }
    .currency-converter select {
        min-width: 0;
        flex: 0 1 40%;
    }
}