/*
Theme Name: دولار
Theme URI: https://dollar2day.com
Description: قالب ووردبريس احترافي متخصص في عرض أسعار الدولار والعملات الأجنبية
Version: 3.0
Author: Dollar2Day Team
Author URI: https://dollar2day.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dollar2day
Tags: rtl-language-support, custom-colors, custom-menu, featured-images, finance, currency
*/

/* Google Fonts loaded in HTML head for better performance */

:root {
    /* الوضع المظلم - سوداء كربونية ذهبية */
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #E0E0E0;
    --text-secondary: #FFFFFF;
    --accent-primary: #FFD700;
    --accent-secondary: #D4AF37;
    --accent-tertiary: #FFA500;
    --border-primary: rgba(255, 215, 0, 0.4);
    --border-secondary: rgba(255, 215, 0, 0.2);
    --shadow-primary: rgba(0, 0, 0, 0.8);
    --success-color: #00ff88;
    --danger-color: #ff4757;
    --chart-bg: #131722;
    --chart-grid: #1e222d;
}

body.light-theme {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F0F2F5;
    --bg-tertiary: #F0F2F5;
    --text-primary: #002244;
    --text-secondary: #5C6670;
    --accent-primary: #002244;
    --accent-secondary: #1A8CFF;
    --accent-tertiary: #002244;
    --border-primary: #DDE1E6;
    --border-secondary: #DDE1E6;
    --shadow-primary: rgba(0, 34, 68, 0.1);
    --success-color: #28A745;
    --danger-color: #DC3545;
    --chart-bg: #FFFFFF;
    --chart-grid: #DDE1E6;
}

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

html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-size: 18px;
    /* زيادة من 16px إلى 18px */
    direction: rtl;
    text-align: right;
    line-height: 1.7;
    /* زيادة من 1.6 إلى 1.7 */
    color: var(--text-primary) !important;
    background: var(--bg-primary) !important;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

.container {
    max-width: 1400px;
    /* زيادة من 1200px إلى 1400px */
    margin: 0 auto;
    padding: 0 20px;
    /* زيادة من 15px إلى 20px */
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
        width: 100%;
    }
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%) !important;
    box-shadow: 0 2px 10px var(--shadow-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-secondary);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-direction: row;
}

.site-logo img {
    width: 40px;
    height: 40px;
}

.site-logo h1,
.logo-text {
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
    color: var(--accent-primary) !important;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    margin: 0;
    transition: all 0.3s ease;
}

.site-logo h1 a,
.logo-text a {
    text-decoration: none;
    color: inherit;
}

body.light-theme .site-logo h1,
body.light-theme .logo-text {
    text-shadow: none !important;
}

.site-domain {
    font-size: 12px;
    color: var(--accent-secondary);
    font-weight: 400;
    opacity: 0.8;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.main-nav a:hover {
    color: var(--accent-primary) !important;
    background: var(--border-secondary);
    box-shadow: 0 0 15px var(--border-primary);
}

body.light-theme .main-nav a:hover {
    box-shadow: 0 2px 8px var(--shadow-primary);
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 2px solid #D4AF37;
    color: #D4AF37;
    font-size: 20px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0A0A0A 0%, #1a1a1a 50%, #0A0A0A 100%);
    color: #FFFFFF;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    z-index: 1;
}

body.light-theme .hero-section::before {
    background: none !important;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 60px;
    /* زيادة من 52px */
    margin-bottom: 25px;
    font-weight: 700;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    animation: glow 3s ease-in-out infinite;
}

body.light-theme .hero-content h1 {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #FFFFFF !important;
    background-clip: unset !important;
    color: #FFFFFF !important;
    text-shadow: none !important;
    animation: none !important;
}

body.light-theme .hero-section {
    background: linear-gradient(135deg, #002244 0%, #002244 100%) !important;
    color: #FFFFFF !important;
}

.hero-subtitle {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 24px;
    /* زيادة من 20px */
    color: rgba(255, 215, 0, 0.8);
    font-weight: 500;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

body.light-theme .hero-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: none !important;
}

body.light-theme .hero-content p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.hero-content p {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 24px;
    /* زيادة من 22px */
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* Telegram Banner */
.telegram-banner {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 20px 0;
    margin: 20px 0;
    min-height: 80px;
    /* Reserve space to prevent CLS */
}

body.light-theme .telegram-banner {
    background: #002244 !important;
}

body.light-theme .banner-content {
    color: #FFFFFF !important;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #0A0A0A;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
}

.banner-text-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.banner-title {
    font-size: 20px;
    font-weight: 700;
}

.banner-text {
    font-size: 14px;
}

.banner-arrow {
    font-size: 32px;
}

body.light-theme .banner-title,
body.light-theme .banner-text {
    color: #FFFFFF !important;
}

.banner-link {
    text-decoration: none;
}

.banner-icon {
    font-size: 24px;
}

.banner-arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.banner-link:hover .banner-arrow {
    transform: translateX(-5px);
}

/* Home Page UI Restoration */
.price-disclaimer {
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border-primary);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    text-align: center;
    box-shadow: 0 2px 10px var(--shadow-primary);
}

.gap-index-link-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    gap: 15px;
    flex-wrap: wrap;
    border: 1px solid var(--border-secondary);
}

.gap-index-link-banner .banner-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gap-index-link-banner .banner-icon {
    font-size: 1.8rem;
}

.gap-index-link-banner .banner-text-group {
    display: flex;
    flex-direction: column;
}

.gap-index-link-banner .banner-label {
    font-size: 1.1rem;
    color: var(--accent-primary);
    font-weight: 700;
}

.gap-index-link-banner .banner-desc {
    font-size: 0.9rem;
    color: var(--text-primary);
    opacity: 0.8;
}

.gap-index-link-banner .banner-btn {
    background: var(--accent-primary);
    color: var(--bg-primary);
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

body.light-theme .gap-index-link-banner .banner-btn {
    color: #FFFFFF;
}

.gap-index-link-banner .banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--border-primary);
}

@media (max-width: 768px) {
    .gap-index-link-banner {
        flex-direction: column;
        text-align: center;
    }

    .gap-index-link-banner .banner-info {
        flex-direction: column;
    }

    .gap-index-link-banner .banner-btn {
        width: 100%;
    }
}

/* Widgets Grid */
.widgets-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 40px 0;
    width: 100%;
}

.widgets-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-height: 200px;
}

/* Prices Section */
.prices-section {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.prices-section h2 {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    color: #FFD700;
    font-size: 32px;
    /* زيادة من 28px */
    margin-bottom: 20px;
    text-align: center;
}

.last-update {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.verified-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #0A0A0A;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.offline-badge {
    background: linear-gradient(135deg, #FF8C00, #FF6347);
    color: #FFFFFF;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.error-badge {
    background: linear-gradient(135deg, #DC3545, #C82333);
    color: #FFFFFF;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

body.light-theme .offline-badge {
    background: #FF8C00;
    color: #FFFFFF;
}

body.light-theme .error-badge {
    background: #DC3545;
    color: #FFFFFF;
}

/* Price Tabs */
.price-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

.tab-btn {
    padding: 15px 30px;
    border: 2px solid #D4AF37;
    border-radius: 12px;
    background: transparent;
    color: #D4AF37;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.tab-btn.active {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #0A0A0A;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
}

.tab-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

/* Single Table Container */
.single-table-container {
    margin: 30px 0;
}

.table-content {
    display: none;
}

.table-content.active {
    display: block;
}

/* Custom Table Container */
.custom-table-container {
    background: transparent !important;
    padding: 10px;
    border-radius: 12px;
    overflow-x: auto;
}

/* Default Custom Table Styles */
.custom-table-container .currency-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
    background: var(--bg-secondary) !important;
    border: 2px solid var(--accent-primary) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4) !important;
    color: var(--text-primary) !important;
    direction: rtl !important;
    table-layout: fixed !important;
}

.custom-table-container .currency-table th,
.custom-table-container .currency-table td {
    border-bottom: 1px solid #2a2a2a !important;
    padding: 16px 12px !important;
    text-align: center !important;
    vertical-align: middle !important;
    color: #FFFFFF !important;
    font-size: 1em !important;
    height: 55px !important;
}

.custom-table-container .currency-table th {
    background: var(--bg-secondary) !important;
    font-weight: 600 !important;
    font-size: 1.1em !important;
    border-bottom: 2px solid var(--accent-primary) !important;
    text-align: center !important;
    color: #FFFFFF !important;
}

body.light-theme .custom-table-container .currency-table th {
    background: #002244 !important;
    color: #FFFFFF !important;
    border-bottom: 2px solid #002244 !important;
}

body.light-theme .custom-table-container .currency-table td {
    color: #002244 !important;
}

.custom-table-container .currency-table th:first-child,
.custom-table-container .currency-table td:first-child {
    text-align: right !important;
    padding-right: 20px !important;
    font-weight: bold !important;
    width: 35% !important;
}

.custom-table-container .currency-table th:nth-child(2),
.custom-table-container .currency-table td:nth-child(2) {
    width: 25% !important;
}

.custom-table-container .currency-table th:nth-child(3),
.custom-table-container .currency-table td:nth-child(3) {
    width: 20% !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.custom-table-container .currency-table th:nth-child(4),
.custom-table-container .currency-table td:nth-child(4) {
    width: 15% !important;
}

.custom-table-container .currency-table th:not(:first-child),
.custom-table-container .currency-table td:not(:first-child) {
    text-align: center !important;
}

.custom-table-container .currency-table tbody tr:hover {
    background: rgba(50, 50, 50, 0.2) !important;
}

.custom-table-container .currency-table tr:last-child td {
    border-bottom: none !important;
}

.custom-table-container .header-logo {
    height: 30px !important;
    width: 30px !important;
    object-fit: contain !important;
    aspect-ratio: 1 / 1 !important;
    filter: drop-shadow(0 0 8px #D4AF37) !important;
    margin-left: 10px !important;
    vertical-align: middle !important;
}

.custom-table-container .table-header {
    text-align: center !important;
    font-size: 1.2em !important;
    font-weight: 700 !important;
    padding: 20px 12px !important;
}

body.light-theme .custom-table-container .header-logo {
    filter: drop-shadow(0 0 8px #002244) !important;
}

.custom-table-container .change {
    display: inline-block !important;
    text-align: center !important;
    font-weight: bold !important;
    font-size: 0.75em !important;
    width: auto !important;
    white-space: nowrap !important;
    padding: 2px 6px !important;
    border-radius: 8px !important;
    min-width: 50px !important;
    line-height: 1.2 !important;
}

.custom-table-container .change.positive {
    color: #FFFFFF !important;
    background: #4CAF50 !important;
    border: 1px solid #45A049 !important;
}

.custom-table-container .change.negative {
    color: #FFFFFF !important;
    background: #EF5350 !important;
    border: 1px solid #E53935 !important;
}

.custom-table-container .change.neutral {
    color: #FFFFFF !important;
    background: #6C757D !important;
    border: 1px solid #5A6268 !important;
}

.currency-name {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF !important;
}

.currency-box {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-secondary);
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    color: #FFFFFF !important;
}

.currency-box .currency-name {
    color: #FFFFFF !important;
    font-weight: 700 !important;
}

body.light-theme .currency-box .currency-name {
    color: #002244 !important;
}

.btn-perc {
    color: #FFFFFF !important;
    font-weight: 600;
}

.vote-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border-primary);
    color: #FFFFFF !important;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    min-width: 120px;
}

.community-predictions {
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    width: 100%;
    display: block !important;
    visibility: visible !important;
    color: #FFFFFF !important;
}

.content-section {
    margin: 40px 0;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-secondary);
    color: #FFFFFF !important;
}

/* Converter Sidebar */
.converter-sidebar {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 30px;
    border-radius: 16px;
    border: 2px solid var(--border-primary);
    height: fit-content;
    width: 100%;
    box-sizing: border-box;
    display: block !important;
    visibility: visible !important;
    transition: all 0.3s ease;
}

body.light-theme .converter-sidebar {
    background: var(--bg-primary);
    box-shadow: 0 4px 20px var(--shadow-primary);
    border: 1px solid var(--border-secondary);
}

.converter-sidebar h3 {
    color: var(--accent-primary);
    margin-bottom: 25px;
    font-size: 20px;
    text-align: center;
}

.converter-widget {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group,
.select-group,
.result-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label,
.select-group label,
.result-group label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.input-group input,
.select-group select {
    padding: 15px;
    border: 2px solid var(--border-secondary);
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

body.light-theme .input-group input,
body.light-theme .select-group select {
    background: #e5e5e5;
    border-color: #DDE1E6;
    color: #002244;
}

.input-group input:focus,
.select-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--shadow-primary);
}

.swap-icon {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #0A0A0A;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.swap-icon:hover {
    transform: rotate(180deg) scale(1.1);
}

body.light-theme .swap-icon {
    background: #002244;
    color: #ffffff;
}

.result-box {
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    border: 2px solid var(--accent-primary);
    border-radius: 8px;
    color: var(--accent-primary);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.light-theme .result-box {
    background: rgba(0, 34, 68, 0.03);
    border-color: #2264ad;
    color: #2264ad;
}

.converter-details-btn {
    display: block;
    margin-top: 15px;
    padding: 12px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #002244;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    position: relative;
    z-index: 1;
}

.converter-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
    color: #002244;
    filter: brightness(1.1);
}

body.light-theme .converter-details-btn {
    background: linear-gradient(135deg, #002244 0%, #2264ad 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 34, 68, 0.2);
}

body.light-theme .converter-details-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 34, 68, 0.3);
    color: #ffffff;
}

/* Fear Index */
.fear-index {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 30px;
    border-radius: 16px;
    margin: 0;
    border: 2px solid var(--border-primary);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    display: block !important;
    visibility: visible !important;
    transition: all 0.3s ease;
}

body.light-theme .fear-index {
    background: var(--bg-primary);
    box-shadow: 0 4px 20px var(--shadow-primary);
    border: 1px solid var(--border-secondary);
}

.fear-index h3 {
    color: var(--accent-primary);
    margin-bottom: 25px;
    font-size: 20px;
}

.fear-bar {
    background: var(--bg-tertiary);
    height: 20px;
    border-radius: 25px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-secondary);
}

.fear-level {
    height: 100%;
    background: linear-gradient(90deg, #00ff88 0%, #ffaa00 50%, #ff4757 100%);
    width: 0;
    transition: width 3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 25px;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.4);
}

.fear-text {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

/* Chart Section */
.chart-section {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--accent-primary);
    margin: 30px 0;
    text-align: center;
}

.chart-section h3 {
    color: var(--accent-primary);
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 24px;
    margin-bottom: 20px;
}

/* Currency Selector */
.currency-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.currency-box {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-secondary);
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
}

.currency-box:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.currency-box.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #000000 !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.currency-box.active .currency-name {
    color: #000000 !important;
    font-weight: 700 !important;
}

.currency-icon {
    font-size: 24px;
}

.currency-name {
    font-size: 14px;
    font-weight: 600;
}

/* Price Type Selector */
.price-type-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-type-btn {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-secondary);
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.price-type-btn:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 215, 0, 0.1);
}

.price-type-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #000;
}

/* Chart Duration Selector */
.chart-duration-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 10px 0;
}

.duration-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
}

.duration-btn:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 215, 0, 0.1);
}

.duration-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #000;
    font-weight: 600;
}

.chart-container {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-primary);
    margin: 20px 0;
    position: relative;
    height: 400px;
    width: 100%;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.simple-chart {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-secondary);
}

.chart-currency {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-primary);
}

.chart-type {
    font-size: 14px;
    color: var(--text-secondary);
    opacity: 0.8;
}

.chart-bars {
    display: flex;
    align-items: end;
    justify-content: space-between;
    height: 200px;
    gap: 10px;
    padding: 0 10px;
    min-height: 200px;
}

.chart-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.chart-bar:nth-child(1) {
    animation-delay: 0.1s;
}

.chart-bar:nth-child(2) {
    animation-delay: 0.2s;
}

.chart-bar:nth-child(3) {
    animation-delay: 0.3s;
}

.chart-bar:nth-child(4) {
    animation-delay: 0.4s;
}

.chart-bar:nth-child(5) {
    animation-delay: 0.5s;
}

.chart-bar:nth-child(6) {
    animation-delay: 0.6s;
}

.chart-bar:nth-child(7) {
    animation-delay: 0.7s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chart-bar:hover {
    transform: translateY(-2px);
}

.bar-fill {
    width: 100%;
    max-width: 40px;
    background: linear-gradient(to top, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    overflow: hidden;
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.chart-bar.active .bar-fill {
    background: linear-gradient(to top, #00ff88, #00cc6a);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.4);
    transform: scale(1.05);
}

.bar-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 5px 0;
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-primary);
}

.bar-day {
    font-size: 10px;
    color: var(--text-secondary);
    opacity: 0.8;
    text-align: center;
    margin-top: 5px;
}

.chart-bar.active .bar-value {
    background: var(--accent-primary);
    color: #000;
}

body.light-theme .chart-section {
    background: #F8F9FA;
    border-color: #002244;
}

body.light-theme .chart-section h3 {
    color: #002244;
}

body.light-theme .currency-box {
    background: #FFFFFF;
    border-color: #E9ECEF;
}

body.light-theme .currency-box:hover {
    border-color: #002244;
    box-shadow: 0 4px 15px rgba(0, 34, 68, 0.2);
}

body.light-theme .currency-box.active {
    background: #002244;
    border-color: #002244;
    color: #FFFFFF;
}

body.light-theme .price-type-btn {
    background: #FFFFFF;
    border-color: #E9ECEF;
    color: #495057;
}

body.light-theme .price-type-btn:hover {
    border-color: #002244;
    background: rgba(0, 34, 68, 0.1);
}

body.light-theme .price-type-btn.active {
    background: #002244;
    border-color: #002244;
    color: #FFFFFF;
}

body.light-theme .chart-container {
    background: #FFFFFF;
    border-color: #E9ECEF;
}

body.light-theme .duration-btn {
    background: #FFFFFF;
    border-color: #E9ECEF;
    color: #495057;
}

body.light-theme .duration-btn:hover {
    border-color: #002244;
    background: rgba(0, 34, 68, 0.1);
}

body.light-theme .duration-btn.active {
    background: #002244;
    border-color: #002244;
    color: #FFFFFF;
}

/* Central Bank Decisions */
.central-bank-decisions {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-secondary);
    border-bottom: 1px solid var(--border-secondary);
    padding: 40px 0;
    margin: 30px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.central-bank-decisions h3 {
    color: var(--accent-primary);
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-weight: 700;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.faq-section h3 {
    color: var(--accent-primary);
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
}

/* Prices Section */
.prices-section {
    text-align: center;
    margin: 40px 0;
}

.prices-section h2 {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--accent-primary);
}

.last-update {
    margin-bottom: 25px;
    font-size: 0.95rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-primary);
}

.faq-item {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-secondary);
}

.faq-item h4 {
    color: var(--accent-primary);
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 18px;
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--text-primary);
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    line-height: 1.6;
    margin: 0;
}

body.light-theme .central-bank-decisions h3,
body.light-theme .faq-section h3,
body.light-theme .faq-item h4 {
    color: #002244;
}

body.light-theme .faq-item p {
    color: #495057;
}

/* Edit Controls */
.edit-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.editable-section {
    position: relative;
}

.editable-section:hover .edit-controls {
    opacity: 1;
}

.edit-btn {
    background: var(--accent-primary);
    color: #000;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
}

.edit-btn:hover {
    background: var(--accent-secondary);
}

.editable-text {
    position: relative;
}

.editable-text.editing {
    background: rgba(255, 215, 0, 0.1);
    border: 2px dashed var(--accent-primary);
    padding: 5px;
    border-radius: 4px;
}

.editable-content.editing {
    background: rgba(255, 215, 0, 0.05);
    border: 2px dashed var(--accent-primary);
    padding: 10px;
    border-radius: 8px;
}

body.light-theme .edit-btn {
    background: #002244;
    color: #FFFFFF;
}

body.light-theme .edit-btn:hover {
    background: #1e2a5a;
}

body.light-theme .editable-text.editing,
body.light-theme .editable-content.editing {
    background: rgba(40, 54, 124, 0.1);
    border-color: #002244;
}

/* Sources Info */
.sources-info {
    margin: 20px auto;
    padding: 15px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    text-align: center;
    max-width: 600px;
}

.sources-info h4 {
    color: #D4AF37;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.sources-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
}

body.light-theme .sources-info {
    background: rgba(248, 249, 250, 0.8) !important;
    border-color: #E9ECEF !important;
}

body.light-theme .sources-info h4 {
    color: #002244 !important;
}

body.light-theme .sources-info p {
    color: #6C757D !important;
}

body.light-theme .verified-badge {
    background: #002244 !important;
    color: #FFFFFF !important;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #0A0A0A 0%, #1a1a1a 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
}

/* Content Sections */
.content-section {
    margin: 40px 0;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-secondary);
}

.section-title {
    color: var(--accent-primary);
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.educational-content {
    background: var(--bg-tertiary);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-primary);
    margin: 20px 0;
}

.educational-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.internal-link {
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.internal-link:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 30px 0;
}

.news-item {
    background: var(--bg-tertiary);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-secondary);
    transition: all 0.3s ease;
}

.news-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 15px var(--shadow-primary);
}

.news-item h2 {
    color: var(--accent-primary);
    font-size: 22px;
    margin-bottom: 15px;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item p {
    margin-bottom: 15px;
    line-height: 1.7;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.news-date {
    color: var(--text-secondary);
    font-size: 14px;
    opacity: 0.7;
    display: block;
    margin-bottom: 10px;
}

/* Contact Form */
.contact-form {
    background: var(--bg-tertiary);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-secondary);
    margin: 30px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-secondary);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    color: #0A0A0A;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.success-message {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    margin: 20px 0;
    text-align: center;
}

/* Privacy and Disclaimer */
.privacy-section,
.disclaimer {
    background: var(--bg-tertiary);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-secondary);
    margin: 20px 0;
}

.privacy-section h3,
.disclaimer p strong {
    color: var(--accent-primary);
    margin-bottom: 10px;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.team-member {
    background: var(--bg-tertiary);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-secondary);
    text-align: center;
}

.team-member h3 {
    color: var(--accent-primary);
    margin-bottom: 10px;
}

/* Dark Theme Styles */
body.dark-theme {
    background: #121212 !important;
    color: #E0E0E0 !important;
}

body.dark-theme .site-header {
    background: linear-gradient(135deg, #1A1A1A 0%, #242424 100%) !important;
}

body.dark-theme .hero-section {
    background: linear-gradient(135deg, #0A0A0A 0%, #1a1a1a 50%, #0A0A0A 100%) !important;
    color: #FFFFFF !important;
}

body.dark-theme .prices-section,
body.dark-theme .converter-sidebar,
body.dark-theme .fear-index,
body.dark-theme .content-section,
body.dark-theme .news-item,
body.dark-theme .contact-form,
body.dark-theme .privacy-section,
body.dark-theme .disclaimer,
body.dark-theme .team-member,
body.dark-theme .educational-content {
    background: #1A1A1A !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
}

body.dark-theme .currency-table {
    background: #1A1A1A !important;
    color: #E0E0E0 !important;
}

body.dark-theme .currency-table th {
    background: #1A1A1A !important;
    color: #D4AF37 !important;
}

body.dark-theme .currency-table td {
    color: #E0E0E0 !important;
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme p,
body.dark-theme label,
body.dark-theme span {
    color: #E0E0E0 !important;
}

.community-predictions h3 {
    color: var(--accent-primary);
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-weight: 600;
}

body.light-theme .community-predictions h3 {
    color: #002244;
}

body.light-theme .hero-section {
    background: #FFFFFF;
    color: #002244;
}

body.light-theme .hero-content h1,
body.light-theme .hero-subtitle,
body.light-theme .hero-content p {
    color: #002244;
}

body.light-theme .prices-section h2,
body.light-theme .last-update {
    color: #000000;
}

body.light-theme .custom-table-container .currency-table td {
    color: #000000 !important;
}

body.light-theme .fear-index,
body.light-theme .converter-sidebar {
    background: #F8F9FA;
    border: 1px solid #E9ECEF;
}

body.light-theme .converter-sidebar h3,
body.light-theme .converter-sidebar label,
body.light-theme .converter-sidebar input,
body.light-theme .converter-sidebar select {
    color: #002244;
}

body.light-theme .last-update {
    background: rgba(248, 249, 250, 0.8) !important;
    border-color: #E9ECEF !important;
    color: #002244 !important;
}

body.light-theme .offline-badge {
    background: #FF8C00 !important;
    color: #FFFFFF !important;
}

body.light-theme .error-badge {
    background: #DC3545 !important;
    color: #FFFFFF !important;
}

/* Compare Table Specific Styles */
.custom-table-container .compare-table {
    table-layout: fixed !important;
    width: 100% !important;
}

.custom-table-container .compare-table th:first-child,
.custom-table-container .compare-table td:first-child {
    width: 30% !important;
    text-align: right !important;
    padding-right: 20px !important;
    font-weight: bold !important;
}

.custom-table-container .compare-table th:nth-child(2),
.custom-table-container .compare-table td:nth-child(2) {
    width: 25% !important;
    text-align: center !important;
}

.custom-table-container .compare-table th:nth-child(3),
.custom-table-container .compare-table td:nth-child(3) {
    width: 25% !important;
    text-align: center !important;
}

.custom-table-container .compare-table th:nth-child(4),
.custom-table-container .compare-table td:nth-child(4) {
    width: 20% !important;
    text-align: center !important;
}

/* Fix table layout issues */
.custom-table-container .currency-table {
    table-layout: fixed !important;
    width: 100% !important;
}

.custom-table-container .currency-table td {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-wrap: break-word !important;
}

/* Ensure change column doesn't break */
.custom-table-container .currency-table td:nth-child(3) {
    width: 18% !important;
    min-width: 70px !important;
    max-width: 100px !important;
    text-align: center !important;
    vertical-align: middle !important;
    padding: 8px 4px !important;
}

/* Improved Change Indicators */
.custom-table-container .change {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 0.85em !important;
    width: auto !important;
    white-space: nowrap !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    min-width: 60px !important;
    line-height: 1.3 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
}

.custom-table-container .change.positive {
    color: #FFFFFF !important;
    background: linear-gradient(135deg, #4CAF50, #45A049) !important;
    border: 1px solid #45A049 !important;
}

.custom-table-container .change.negative {
    color: #FFFFFF !important;
    background: linear-gradient(135deg, #EF5350, #E53935) !important;
    border: 1px solid #E53935 !important;
}

.custom-table-container .change:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .chart-container {
        height: 250px;
        padding: 15px;
    }

    .chart-section {
        padding: 20px 15px;
    }

    .edit-controls {
        position: static;
        opacity: 1;
        margin-bottom: 10px;
    }

    .editable-section:hover .edit-controls {
        opacity: 1;
    }
}

.custom-table-container .currency-table th:nth-child(3),
.custom-table-container .currency-table td:nth-child(3) {
    width: 25% !important;
    min-width: 70px !important;
}

.custom-table-container .change {
    font-size: 0.75em !important;
    padding: 2px 6px !important;
    min-width: 50px !important;
}

.custom-table-container .compare-table th:first-child,
.custom-table-container .compare-table td:first-child {
    width: 25% !important;
    font-size: 0.9em !important;
}

.custom-table-container .compare-table th:nth-child(2),
.custom-table-container .compare-table td:nth-child(2),
.custom-table-container .compare-table th:nth-child(3),
.custom-table-container .compare-table td:nth-child(3) {
    width: 25% !important;
    font-size: 0.9em !important;
}

.custom-table-container .compare-table th:nth-child(4),
.custom-table-container .compare-table td:nth-child(4) {
    width: 25% !important;
    font-size: 0.9em !important;
}

/* Force widgets visibility */
.widgets-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 30px !important;
    margin: 40px 0 !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.widgets-left {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
    visibility: visible !important;
}

.converter-sidebar,
.fear-index,
.community-predictions {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .widgets-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

.central-bank-decisions .educational-content {
    color: #FFFFFF;
}

.central-bank-decisions .educational-content p {
    color: #FFFFFF;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

.central-bank-decisions .educational-content strong {
    color: var(--accent-primary);
    font-weight: 600;
}

.central-bank-decisions .internal-link {
    color: var(--accent-primary);
    font-weight: 600;
}

body.light-theme .central-bank-decisions .educational-content,
body.light-theme .central-bank-decisions .educational-content p {
    color: #002244 !important;
}

body.light-theme .central-bank-decisions .educational-content strong {
    color: #002244 !important;
}

/* Community Predictions */
.community-predictions {
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    width: 100%;
    display: block !important;
    visibility: visible !important;
}

.community-predictions h2 {
    color: var(--accent-primary);
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.prediction-question {
    text-align: center;
    margin-bottom: 25px;
}

.prediction-question h3 {
    color: var(--text-primary);
    font-size: 20px;
    margin-bottom: 10px;
}

.prediction-question p {
    color: var(--text-secondary);
    opacity: 0.8;
}

.voting-section {
    max-width: 500px;
    margin: 0 auto;
}

.vote-options {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.vote-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border-primary);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    min-width: 120px;
}

.vote-btn:hover {
    background: var(--accent-primary);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.vote-btn:active {
    transform: translateY(0);
}



/* Light Theme Overrides */
body.light-theme .central-bank-decisions,
body.light-theme .community-predictions {
    background: var(--bg-secondary);
    border-color: var(--border-secondary);
}

body.light-theme .vote-btn {
    background: #FFFFFF;
    border-color: #CED4DA;
    color: #495057;
}

body.light-theme .vote-btn:hover {
    background: #002244;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
}



/* Responsive */
@media (max-width: 768px) {
    .widgets-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .community-predictions {
        padding: 20px;
    }

    .vote-options {
        flex-direction: column;
        gap: 10px;
    }

    .vote-btn {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 768px) {
    body {
        width: 100vw;
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 8px;
    }

    .header-content {
        padding: 10px 0;
        flex-wrap: wrap;
        gap: 10px;
    }

    .site-logo h1,
    .logo-text {
        font-size: 18px;
    }

    .main-nav ul {
        gap: 15px;
        flex-wrap: wrap;
    }

    .main-nav a {
        padding: 6px 12px;
        font-size: 14px;
    }

    .hero-section {
        padding: 50px 0;
    }

    .hero-content h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .widgets-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 0;
    }

    .prices-section {
        padding: 20px 15px;
    }

    .converter-sidebar {
        padding: 20px 15px;
    }

    .custom-table-container {
        padding: 5px;
        margin: 0;
        width: 100%;
        overflow-x: auto;
    }

    .custom-table-container .currency-table {
        min-width: 100%;
        width: 100%;
    }

    .custom-table-container .currency-table th,
    .custom-table-container .currency-table td {
        padding: 8px 6px;
        font-size: 12px;
        white-space: nowrap;
    }

    .fear-index {
        padding: 20px 15px;
        margin: 15px 0;
    }

    .telegram-banner {
        padding: 15px 0;
        margin: 15px 0;
    }

    .banner-content {
        font-size: 16px;
        gap: 10px;
        padding: 0 10px;
    }

    .price-tabs {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .tab-btn {
        padding: 12px;
        font-size: 14px;
    }

    .content-section {
        padding: 20px 15px;
        margin: 20px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .news-grid {
        gap: 20px;
    }

    .news-item {
        padding: 20px;
    }

    .contact-form {
        padding: 20px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* PWA Install Banner Animation */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

#pwa-install-trigger:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

/* Currency Links Section */
.currency-links-section {
    background: var(--bg-secondary);
    padding: 40px 0;
    margin: 40px 0;
}

.currency-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.currency-link-card {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-secondary);
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.currency-link-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.currency-link-card .currency-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.currency-link-card h3 {
    color: var(--accent-primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

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

.currency-link-card .current-rate {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    color: var(--accent-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin-top: 10px;
}

.currency-link-card.all-currencies {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    border-color: var(--accent-primary);
}

.currency-link-card.all-currencies h3,
.currency-link-card.all-currencies p,
.currency-link-card.all-currencies .current-rate {
    color: #000;
}

.currency-link-card.all-currencies:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

/* Light Theme */
body.light-theme .currency-link-card {
    background: #FFFFFF;
    border-color: #E9ECEF;
}

body.light-theme .currency-link-card:hover {
    border-color: #002244;
    box-shadow: 0 8px 20px rgba(40, 54, 124, 0.2);
}

body.light-theme .currency-link-card h3 {
    color: #002244;
}

body.light-theme .currency-link-card p {
    color: #6C757D;
}

body.light-theme .currency-link-card .current-rate {
    background: rgba(40, 54, 124, 0.1);
    color: #002244;
}

body.light-theme .currency-link-card.all-currencies {
    background: #002244;
    border-color: #002244;
}

body.light-theme .currency-link-card.all-currencies h3,
body.light-theme .currency-link-card.all-currencies p,
body.light-theme .currency-link-card.all-currencies .current-rate {
    color: #FFFFFF;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .currency-links-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .currency-link-card {
        padding: 20px;
    }
}

/* Quick Links Section */
.quick-links-section {
    background: var(--bg-secondary);
    padding: 20px 0;
    border-top: 1px solid var(--border-secondary);
    border-bottom: 1px solid var(--border-secondary);
}

.quick-link {
    color: var(--accent-primary);
    text-decoration: none;
    padding: 5px 10px;
    transition: all 0.3s;
    font-weight: 500;
}

.quick-link:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

body.light-theme .quick-link {
    color: #002244;
}

body.light-theme .currency-link {
    color: #FFFFFF !important;
}

body.light-theme .other-currencies h3 {
    color: #002244 !important;
}

@media (max-width: 768px) {
    .quick-links-section p {
        font-size: 14px !important;
        line-height: 2;
    }
}

/* Share Modal Styles */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-secondary);
}

.share-options,
.platform-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.share-options button,
.platform-options button {
    padding: 15px;
    border: 2px solid var(--accent-primary);
    background: transparent;
    color: var(--text-primary);
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.share-options button:hover,
.platform-options button:hover {
    background: var(--accent-primary);
    color: #000;
    transform: translateY(-2px);
}

.share-options button.selected {
    background: var(--accent-primary);
    color: #000;
}

.platform-btn.fb {
    border-color: #1877f2;
}

.platform-btn.wa {
    border-color: #25d366;
}

.platform-btn.tw {
    border-color: #1da1f2;
}

.platform-btn.cp {
    border-color: #888;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.share-section {
    margin: 30px 0;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 10px;
    text-align: center;
}

.share-section h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 12px 25px;
    background: var(--accent-primary);
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.share-btn:hover,
.download-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

/* SEO & Accessibility: Emoji Styling in Headings */
.h-emoji {
    display: inline-block;
    vertical-align: middle;
    margin: 0 4px;
}

/* Light Theme Text Fixes for Mobile */
body.light-theme .price-disclaimer {
    color: #002244 !important;
}

body.light-theme .price-disclaimer strong {
    color: #002244 !important;
}

body.light-theme .sources-info h3 {
    color: #002244 !important;
}

body.light-theme .sources-info p {
    color: #002244 !important;
}

body.light-theme .share-section p {
    color: #002244 !important;
}

body.light-theme .share-btn {
    color: #FFFFFF !important;
    background: #002244 !important;
}

body.light-theme .prediction-question h3 {
    color: #002244 !important;
}

body.light-theme .prediction-question p {
    color: #002244 !important;
}

body.light-theme .vote-btn span {
    color: #002244 !important;
}

body.light-theme .poll-label {
    color: #002244 !important;
}