/* ==========================================================================
   Oya Döviz - Modern FinTech Tasarım Sistemi
   Sıfır Bağımlılık, Hafif Vanilla CSS, Koyu/Açık Tema, Ultra Hızlı
   ========================================================================== */

:root {
    /* Logo Uyumlu Canlı Palet (Sarı & Asil İndigo/Lacivert) */
    --brand-yellow: #facc15;
    --brand-yellow-hover: #eab308;
    --brand-yellow-glow: rgba(250, 204, 21, 0.25);
    --brand-blue: #2e2a72;
    --brand-blue-light: #3f3b94;
    
    /* İç karartmayan, canlı ve ferah koyu tema zeminleri */
    --bg-primary: #0d1527;
    --bg-surface: #142038;
    --bg-card: #1c2b4c;
    --bg-hover: #253963;
    --border-color: #283d6a;
    
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #8496b0;
    
    --accent-gold: #facc15;
    --accent-gold-hover: #eab308;
    --accent-gold-light: rgba(250, 204, 21, 0.15);
    
    --color-up: #10b981;
    --color-up-bg: rgba(16, 185, 129, 0.16);
    --color-down: #ef4444;
    --color-down-bg: rgba(239, 68, 68, 0.16);
    
    --color-primary: #3b82f6;
    --color-primary-hover: #2563eb;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 10px -1px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 25px rgba(250, 204, 21, 0.2);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --header-height: 76px;
}

/* Açık (Light) Tema - Ferah ve Kurumsal */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #f1f5f9;
    --bg-hover: #e2e8f0;
    --border-color: #cbd5e1;
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    --accent-gold: #d97706;
    --accent-gold-hover: #b45309;
    --accent-gold-light: rgba(217, 119, 6, 0.12);
    
    --color-up: #059669;
    --color-up-bg: rgba(5, 150, 105, 0.12);
    --color-down: #dc2626;
    --color-down-bg: rgba(220, 38, 38, 0.12);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.08);
}

/* Temel Sıfırlama */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: clamp(14px, 0.85rem + 0.35vw, 16px);
    scroll-behavior: smooth;
}

/* Çözünürlüğe Göre Akışkan Tipografi (Fluid Responsive Typography) */
h1 {
    font-size: clamp(1.4rem, 1.15rem + 1.25vw, 2.25rem);
}
h2 {
    font-size: clamp(1.2rem, 1rem + 0.9vw, 1.65rem);
}
h3 {
    font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
}
.brand-name {
    font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.45rem);
}
.slide-title {
    font-size: clamp(1.25rem, 1rem + 1.1vw, 1.85rem);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.page-content {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}

/* ==========================================================================
   Üst Bilgi Barı (Top Ticker & Header)
   ========================================================================== */

.top-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8125rem;
    padding: 0.45rem 0;
    color: var(--text-secondary);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

[data-theme="light"] .top-bar {
    background: #f1f5f9;
    border-bottom: 1px solid #cbd5e1;
    color: #334155;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.market-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.28rem 0.85rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.market-status-badge.status-open {
    background: var(--color-up-bg);
    color: var(--color-up);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.market-status-badge.status-closed {
    background: var(--color-down-bg);
    color: var(--color-down);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

[data-theme="light"] .market-status-badge.status-open {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

[data-theme="light"] .market-status-badge.status-closed {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Anlık Canlı Duyuru Bandı */
.announcement-bar {
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.announcement-bar.announcement-warning {
    background: linear-gradient(90deg, #991b1b, #dc2626);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.announcement-bar.announcement-info {
    background: linear-gradient(90deg, #1e3a8a, #2563eb);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.announcement-bar.announcement-success {
    background: linear-gradient(90deg, #065f46, #059669);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 currentColor; }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px transparent; }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 transparent; }
}

.top-contacts {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.top-contacts a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.top-contacts a:hover {
    color: var(--accent-gold);
}

/* Ana Başlık (Navbar) */
.site-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    transition: background-color 0.3s, border-color 0.3s;
}

.header-inner {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.site-logo-text {
    display: flex;
    flex-direction: column;
}

.site-logo-text .brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.1;
}

.site-logo-text .brand-sub {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-gold);
    font-weight: 700;
}

/* Gezinme Menüsü */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 0.85rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.btn-theme-toggle:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.menu-toggle-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-primary);
}

/* ==========================================================================
   Hero Bölümü: Sol Slider + Sağ Şube Kur Tablosu
   ========================================================================== */

.hero-section {
    padding: 2rem 0 2.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1.75rem;
    align-items: stretch;
}

/* Sol Taraf: Modern Slider */
.slider-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1;
}

.slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease-in-out, visibility 0.7s ease-in-out;
}

.slide-item.active {
    opacity: 1;
    visibility: visible;
}

.slide-item img,
.slide-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 17, 32, 0.1) 0%, rgba(11, 17, 32, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: #ffffff;
}

.slide-badge {
    align-self: flex-start;
    background: var(--accent-gold);
    color: #000000;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.slide-title {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-desc {
    font-size: 0.9375rem;
    color: #cbd5e1;
    max-width: 480px;
    line-height: 1.4;
}

.slider-dots {
    position: absolute;
    bottom: 1.25rem;
    right: 1.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s;
}

.dot-btn.active {
    background: var(--accent-gold);
    width: 24px;
    border-radius: var(--radius-full);
}

/* Sağ Taraf: Şube Anlık Kurlar Kartı */
.rates-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-header-styled {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header-styled .title-wrap h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header-styled .title-wrap p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-up);
    background: var(--color-up-bg);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
}

/* Kur Tablosu */
.rates-table-wrap {
    flex: 1;
    overflow-x: auto;
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    text-align: left;
}

.rates-table thead th {
    background: var(--bg-card);
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.rates-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s ease;
    cursor: pointer;
}

.rates-table tbody tr:hover {
    background-color: var(--bg-hover);
}

.rates-table td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
}

.curr-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.curr-flag {
    width: 28px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.curr-meta .curr-code {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.curr-meta .curr-name {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.price-cell {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    transition: background-color 0.5s ease;
}

/* Canlı Fiyat Parlama Animasyonu */
.price-cell.flash-up {
    background-color: rgba(16, 185, 129, 0.3) !important;
    color: var(--color-up);
}

.price-cell.flash-down {
    background-color: rgba(239, 68, 68, 0.3) !important;
    color: var(--color-down);
}

.change-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 700;
}

.change-badge.up {
    color: var(--color-up);
    background: var(--color-up-bg);
}

.change-badge.down {
    color: var(--color-down);
    background: var(--color-down-bg);
}

.change-badge.equal {
    color: var(--text-muted);
    background: var(--bg-card);
}

.btn-chart-mini {
    color: var(--accent-gold);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(245, 158, 11, 0.25);
    background: var(--accent-gold-light);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s;
}

.btn-chart-mini:hover {
    background: var(--accent-gold);
    color: #000000;
}

/* Yasal Bilgilendirme Uyarısı (Tabloların Altında - Kırmızının Açık Tonları, Beyaz / Net Yazı) */
.legal-disclaimer-box {
    padding: 0.95rem 1.3rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.16) 0%, rgba(220, 38, 38, 0.09) 100%);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-left: 4px solid #ef4444;
    border-radius: var(--radius-md);
    margin: 1.25rem 1.25rem;
    color: #ffffff !important;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    box-shadow: 0 2px 12px rgba(239, 68, 68, 0.08);
}

.legal-disclaimer-box .disclaimer-icon,
.legal-disclaimer-box i.fa-triangle-exclamation {
    flex-shrink: 0;
    font-size: 1.15rem;
    color: #f87171 !important;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.legal-disclaimer-box strong {
    color: #fca5a5 !important;
    background: rgba(239, 68, 68, 0.22);
    padding: 0.18rem 0.55rem;
    border-radius: 4px;
    font-weight: 800;
    letter-spacing: 0.03em;
    display: inline-block;
    margin-right: 0.35rem;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.legal-disclaimer-box span,
.legal-disclaimer-box div {
    color: #ffffff !important;
}

/* Açık (Light) Tema İçin Açık Kırmızı Uyarı Kutusu */
[data-theme="light"] .legal-disclaimer-box {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fca5a5;
    border-left: 4px solid #ef4444;
    color: #7f1d1d !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.06);
}

[data-theme="light"] .legal-disclaimer-box strong {
    color: #991b1b !important;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
}

[data-theme="light"] .legal-disclaimer-box span,
[data-theme="light"] .legal-disclaimer-box div {
    color: #7f1d1d !important;
}

[data-theme="light"] .legal-disclaimer-box .disclaimer-icon,
[data-theme="light"] .legal-disclaimer-box i.fa-triangle-exclamation {
    color: #dc2626 !important;
}

/* ==========================================================================
   İnteraktif Döviz & Altın Çevirici (Hesap Makinesi)
   ========================================================================== */

.converter-section {
    padding: 1.5rem 0 2.5rem;
}

.converter-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.converter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--color-primary));
}

.converter-header {
    margin-bottom: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.converter-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.converter-header p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.converter-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.25rem;
    align-items: center;
}

.conv-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.conv-box label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.conv-input-row {
    display: flex;
    gap: 0.75rem;
}

.conv-input-row input {
    flex: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 700;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s;
}

.conv-input-row input:focus {
    border-color: var(--accent-gold);
}

.conv-input-row select {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 700;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
}

.conv-switch-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.conv-switch-btn:hover {
    transform: rotate(180deg);
    background: var(--accent-gold);
    color: #000000;
}

.conv-summary {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.conv-rate-highlight {
    font-weight: 800;
    color: var(--accent-gold);
}

/* ==========================================================================
   Serbest Piyasa Altın Fiyatları Tablosu (Bilgilendirme & SEO)
   ========================================================================== */

.gold-section {
    padding: 1.5rem 0 2.5rem;
}

.gold-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.gold-grid-header {
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gold-grid-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* ==========================================================================
   Şube Güven & Kurumsal Bilgi Bölümü
   ========================================================================== */

.branch-section {
    padding: 2.5rem 0 3.5rem;
}

.branch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.branch-info-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.trust-badge-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trust-badge-item svg {
    color: var(--accent-gold);
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.trust-badge-item .meta strong {
    display: block;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.trust-badge-item .meta span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.branch-map-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    min-height: 380px;
}

.branch-map-card iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
}

/* ==========================================================================
   İnteraktif Grafik Modalı (Popup)
   ========================================================================== */

.chart-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chart-modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.chart-modal {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 780px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.chart-modal-backdrop.active .chart-modal {
    transform: translateY(0);
}

.chart-modal-header {
    padding: 1.25rem 1.75rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chart-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chart-title-wrap h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.chart-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-hover);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s;
}

.chart-close-btn:hover {
    color: #ffffff;
    background: var(--color-down);
}

.chart-modal-body {
    padding: 1.75rem;
}

.chart-period-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.period-tab-btn {
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.period-tab-btn.active, .period-tab-btn:hover {
    background: var(--accent-gold);
    color: #000000;
    border-color: var(--accent-gold);
}

.chart-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    background: var(--bg-card);
    padding: 0.85rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.stat-box span {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}

.stat-box strong {
    font-size: 1.1rem;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.canvas-container {
    width: 100%;
    height: 280px;
    position: relative;
}

#chartCanvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    padding: 3.5rem 0 2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

[data-theme="light"] .site-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    color: #475569;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

[data-theme="light"] .footer-col h4 {
    color: #0f172a;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--accent-gold);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.65rem;
}

.footer-col ul li a:hover {
    color: var(--accent-gold);
    padding-left: 4px;
}

.badge-est {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.75rem;
    display: inline-block;
}

[data-theme="light"] .badge-est {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

[data-theme="light"] .footer-bottom {
    border-top: 1px solid #e2e8f0;
    color: #64748b;
}

[data-theme="light"] .footer-bottom strong {
    color: #0f172a;
}

/* Mobilde Sabit Alt Menü (App Bottom Bar) */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff; /* Gece modunda beyaz zemin */
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.22);
    height: 60px;
    z-index: 1000;
    padding: 0 0.5rem;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.mobile-bottom-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.m-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #334155; /* Gece modunda beyaz zemin üzerinde net antrasit */
    transition: color 0.15s ease;
}

.m-nav-item.active {
    color: #d97706; /* Canlı Altın */
}

.m-nav-item svg {
    width: 20px;
    height: 20px;
}

/* Gündüz modunda alt bar lacivert zemin */
[data-theme="light"] .mobile-bottom-bar {
    background: #0b1528 !important; /* Gündüz modunda lacivert zemin */
    border-top: 1px solid #1e293b !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="light"] .mobile-bottom-bar .m-nav-item {
    color: #94a3b8 !important; /* Lacivert üzerinde açık gri */
}

[data-theme="light"] .mobile-bottom-bar .m-nav-item.active {
    color: #fbbf24 !important; /* Parlak altın */
}

/* İletişim Izgarası ve Harita Kartı */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 3rem;
}

.contact-map-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.contact-map-header {
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.conv-unit-badge {
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-weight: 800;
    color: var(--text-primary);
}

/* ==========================================================================
   Responsive Medya Sorguları
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .slider-container {
        min-height: 320px;
    }
    
    .branch-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.85rem;
    }

    .main-nav {
        display: none;
    }
    
    .menu-toggle-btn {
        display: flex;
    }
    
    .mobile-bottom-bar {
        display: block;
        height: calc(60px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }
    
    .top-bar-content {
        justify-content: center;
    }
    
    .top-contacts {
        display: none;
    }
    
    .hero-section {
        padding: 1rem 0 1.5rem;
    }

    .slider-container {
        min-height: 250px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Hesaplayıcı Mobil Taşma Önleme (Calculator Zero-Overflow) */
    .converter-card {
        padding: 1.25rem 0.85rem;
    }
    
    .converter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

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

    .conv-box {
        padding: 1rem 0.75rem;
    }

    .conv-input-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .conv-input-row input {
        width: 100%;
        min-width: 0;
        font-size: 1.25rem;
    }

    .conv-input-row select {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .conv-unit-badge {
        width: 100%;
        justify-content: center;
        height: 42px;
    }

    .conv-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
        text-align: left;
    }
    
    .conv-switch-btn {
        margin: 0 auto;
        transform: rotate(90deg);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-modal {
        max-width: 95vw;
    }

    .chart-modal-body {
        padding: 1.25rem 1rem;
    }

    .page-content {
        padding-top: 1.25rem;
        padding-bottom: 2rem;
    }

    .col-hide-mobile {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .site-header {
        --header-height: 66px;
    }

    .header-inner {
        height: 66px;
    }

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

    .brand-name {
        font-size: 1.15rem;
    }

    .brand-sub {
        font-size: 0.58rem;
    }

    .btn-whatsapp span {
        display: none;
    }

    .btn-whatsapp {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .btn-whatsapp svg {
        margin: 0;
    }

    .slider-container {
        min-height: 210px;
    }

    .slide-overlay {
        padding: 1.25rem 1rem;
    }

    .slide-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
        margin-bottom: 0.4rem;
    }

    .slide-title {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }

    .slide-desc {
        display: none;
    }

    .card-header-styled {
        padding: 1rem 0.85rem;
    }

    .card-header-styled .title-wrap h2 {
        font-size: 1.05rem;
    }

    .rates-table td, 
    .rates-table thead th {
        padding: 0.65rem 0.45rem;
    }

    /* Mobilde 5. Grafik sütununu gizle (Satır tıklanabilirliği zaten aktif) */
    .rates-table th:last-child,
    .rates-table td:last-child {
        display: none;
    }

    /* Mobilde küçük para ismi gizlenip kod öne çıksın */
    .curr-meta .curr-name {
        display: none;
    }

    .curr-meta .curr-code {
        font-size: 0.875rem;
    }

    .price-cell {
        font-size: 0.9375rem;
    }

    .gold-table td, 
    .gold-table thead th {
        padding: 0.65rem 0.5rem;
        font-size: 0.875rem;
    }

    .legal-disclaimer-box {
        margin: 1rem 0;
        padding: 0.85rem 1rem;
        font-size: 0.8125rem;
    }

    .legal-disclaimer-box .disclaimer-icon,
    .legal-disclaimer-box i.fa-triangle-exclamation {
        margin-top: 2px;
    }
}
