/* =====================================================
   app.css - Telefona özgü düzen (style.css'ten SONRA yüklenir)
   Capacitor 8 uygulamayı ekranın tamamına çizer (edge-to-edge). Durum çubuğu ve
   alt gezinme çubuğunun yüksekliğini --safe-area-inset-* değişkenleriyle verir;
   tarayıcıda bu değişkenler yoktur ve env(...) / 0 kullanılır.
   ===================================================== */
:root {
    --sat: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
    --sab: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
    --sal: var(--safe-area-inset-left, env(safe-area-inset-left, 0px));
    --sar: var(--safe-area-inset-right, env(safe-area-inset-right, 0px));
}

/* Uygulama hissi: dokunma vurgusu, metin seçimi ve sayfanın lastik gibi esnemesi kapalı */
html { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
button, .mob-nav-item, .cat-circle, .ad-card, .store-card, .nav-btn, .account-menu-item, .menu-nav-item {
    -webkit-user-select: none; user-select: none;
}
input, textarea, select { font-size: 16px; } /* 16px altı odaklanınca ekranı büyütür */

/* ---------- Ana sayfa: durum çubuğu boşluğu ---------- */
body.main-app { padding-top: var(--sat); padding-left: var(--sal); padding-right: var(--sar); }
/* Durum çubuğunun arkasını sayfa rengiyle doldur (içerik altından kaymasın) */
body.main-app::before, body.admin-page::before {
    content: ''; position: fixed; top: 0; left: 0; right: 0; height: var(--sat);
    background: var(--white); z-index: 950; pointer-events: none;
}
header { top: var(--sat); }

/* ---------- Alt menü: gezinme çubuğu boşluğu ---------- */
.mobile-bottom-nav { padding-bottom: calc(8px + var(--sab)); }
body.main-app { padding-bottom: calc(90px + var(--sab)) !important; }
body.keyboard-open .mobile-bottom-nav { display: none; }

/* ---------- Tam ekran pencereler ---------- */
.fullscreen-full-modal,
.fullscreen-detail-modal,
.side-drawer {
    padding-top: var(--sat);
    padding-bottom: var(--sab);
    height: 100% !important;
}
/* Üstteki beyaz/gri şerit olmasın: durum çubuğu payı pencereye değil BAŞLIĞA verilir.
   Böylece başlığın zemini durum çubuğunun arkasına uzanır (renk farkı/boşluk kalmaz),
   kaydırılan içerik de başlığın altında kalır. */
.fullscreen-full-modal, .side-drawer { padding-top: 0 !important; }
.fullscreen-full-modal > .fullscreen-detail-header,
.side-drawer > .drawer-header {
    padding-top: calc(10px + var(--sat)) !important;
    min-height: calc(60px + var(--sat));
}
/* İlan detayı: fotoğraf galerisi ekranın en üstünden başlar; üst düğmeler ve fotoğraf
   zaten --sat kadar aşağıdan başlıyor (listing-detail.css) → pencereye ikinci kez pay verilmez. */
.fullscreen-detail-modal.ld { padding-top: 0 !important; }
.modal-overlay, .drawer-overlay, #editAdModal, #imageLightboxModal { height: 100% !important; }
.modal-overlay, #editAdModal { padding-top: calc(15px + var(--sat)); padding-bottom: calc(15px + var(--sab)); }
#liveNotificationToast.show { top: calc(25px + var(--sat)); }

/* ---------- İnternet yok şeridi ---------- */
.offline-banner {
    position: fixed; left: 0; right: 0; top: var(--sat); z-index: 100000;
    background: #B91C1C; color: #fff; font-size: 12px; font-weight: 700; text-align: center;
    padding: 6px 10px; pointer-events: none;
    /* Gizliyken durum çubuğunun da üstüne, tamamen ekran dışına çıkar */
    transform: translateY(calc(-100% - var(--sat) - 4px)); visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
}
.offline-banner.show { transform: translateY(0); visibility: visible; transition: transform 0.25s ease; }

/* ---------- Kısa bilgi balonu ("Çıkmak için tekrar basın") ---------- */
.app-toast {
    position: fixed; left: 50%; bottom: calc(100px + var(--sab)); transform: translate(-50%, 20px);
    background: rgba(15, 23, 42, 0.92); color: #fff; font-size: 13px; font-weight: 600;
    padding: 10px 18px; border-radius: 22px; z-index: 100001; opacity: 0; pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    width: max-content; max-width: calc(100vw - 40px); text-align: center; /* çevrilmiş uzun metinler taşmasın */
}
.app-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Dil seçici (kayıt formu + Ayarlar) ---------- */
.lang-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.lang-option {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 54px; padding: 8px 6px; border-radius: 12px; cursor: pointer;
    border: 1.5px solid var(--border, #E5E7EB); background: var(--white, #fff); color: var(--text-main, #0F172A);
    font-family: inherit; transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.lang-option:active { transform: scale(0.97); }
.lang-option .lang-code { font-size: 15px; font-weight: 800; letter-spacing: 0.5px; }
.lang-option .lang-name { font-size: 12px; font-weight: 600; opacity: 0.75; }
.lang-option.active {
    border-color: var(--primary, #F97316); background: rgba(249, 115, 22, 0.08); color: var(--primary, #F97316);
}
.lang-option.active .lang-name { opacity: 1; }
.account-menu-item.lang-setting-row { flex-direction: column; align-items: stretch; gap: 12px; cursor: default; }

/* ---------- Sohbet çevirisi (chat-translate.js) ---------- */
/* Karşı tarafın mesajı + yanındaki 🌐 düğmesi */
.chat-msg-row { display: flex; align-items: center; gap: 6px; align-self: flex-start; max-width: 88%; }
.chat-msg-row.grouped { margin-bottom: -3px; }
.chat-msg-row > .chat-bubble-modern { max-width: none; min-width: 0; align-self: auto; margin-bottom: 0 !important; }
.chat-tr-side {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%; cursor: pointer; padding: 0;
    border: 1.5px solid rgba(37, 99, 235, 0.35); background: var(--white, #fff); color: #2563EB; font-size: 15px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); transition: background 0.15s, color 0.15s, transform 0.1s;
}
.chat-tr-side:active { transform: scale(0.92); }
.chat-tr-side.is-on { background: #2563EB; border-color: #2563EB; color: #fff; }
.chat-tr-note {
    display: inline-flex; align-items: center; gap: 5px; margin-top: 2px;
    font-size: 11px; font-weight: 700; color: #2563EB;
}
.chat-tr-note.is-muted { color: var(--text-muted, #8A93A3); font-weight: 600; }
.chat-tr-note.is-error { color: #DC2626; font-weight: 600; }

/* ---------- Ekspertiz araba şeması (car-diagram.js) ---------- */
.car-diagram-frame {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: var(--white, #fff); border: 1px solid var(--border, #E2E8F0); border-radius: 22px;
    padding: 10px 14px; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.car-diagram-frame.is-report { width: 220px; max-width: 100%; flex-shrink: 0; padding: 8px 10px; margin: 0 auto; }
.car-dir { font-size: 10px; font-weight: 800; letter-spacing: .04em; color: var(--text-muted, #8A93A3); }
.car-diagram { display: block; width: 100%; max-width: 230px; height: auto; overflow: visible; font-family: inherit; }
.car-diagram-frame:not(.is-report) { width: 100%; max-width: 270px; }
.car-diagram .car-part path { stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; transition: fill 0.15s; }
.car-diagram .car-part text { font-weight: 700; pointer-events: none; fill: #334155; }
.car-diagram--form .car-part path { fill: #E9EEF4; }
.car-diagram--report .car-part path { fill: #D1FAE5; }
.car-diagram--report .car-part text { fill: #065F46; }
.car-diagram .car-part.is-marked path { fill: #EF4444; }
.car-diagram .car-part.is-marked text { fill: #fff; }
.car-diagram.is-interactive .car-part { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.car-diagram.is-interactive .car-part:not(.is-marked):hover path,
.car-diagram.is-interactive .car-part:focus-visible path { fill: #FDE2E2; }
.car-diagram .car-glass { fill: #BFDBFE; stroke: #fff; stroke-width: 1.5; }
.car-diagram .car-wheel { fill: #334155; }
.car-diagram .car-mirror { fill: #94A3B8; }
.car-legend { display: flex; gap: 14px; font-size: 11px; font-weight: 700; color: var(--text-muted, #64748B); }
.car-legend span { display: inline-flex; align-items: center; gap: 5px; }
.car-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.car-legend i.is-original { background: #E9EEF4; border: 1px solid #CBD5E1; }
.car-legend i.is-marked { background: #EF4444; }
body.dark-mode .car-diagram-frame { background: var(--white); }
body.dark-mode .car-diagram--form .car-part path { fill: #334155; stroke: #1E293B; }
body.dark-mode .car-diagram--form .car-part text { fill: #E2E8F0; }
body.dark-mode .car-diagram--report .car-part path { stroke: #1E293B; }
body.dark-mode .car-diagram .car-glass { fill: #1E3A5F; stroke: #1E293B; }
body.dark-mode .car-diagram .car-wheel { fill: #64748B; }

/* ---------- Shopier ödeme ekranı (checkout.js) ---------- */
.checkout-body { background: var(--bg-light); align-items: center; padding-top: 24px; }
.checkout-card {
    width: 100%; max-width: 450px; background: var(--white); border-radius: var(--radius-lg, 18px);
    border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(0,0,0,0.1); padding: 22px;
    display: flex; flex-direction: column; gap: 18px; box-sizing: border-box;
}
.checkout-summary {
    background: var(--bg-light, #F8FAFC); border: 1px solid var(--border, #E2E8F0); padding: 16px; border-radius: 12px;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.checkout-label { font-size: 12px; color: var(--text-muted); font-weight: 700; margin-bottom: 4px; }
.checkout-product { font-size: 15px; font-weight: 800; color: var(--secondary); }
.checkout-ref { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
.checkout-ref strong { color: var(--text-main); letter-spacing: .04em; }
.checkout-price { font-size: 22px; font-weight: 800; color: var(--primary); white-space: nowrap; }
.checkout-step { display: flex; flex-direction: column; gap: 14px; }
.checkout-vat { font-size: 11px; color: var(--text-muted); font-weight: 600; margin-top: 2px; }
.checkout-section-title { font-size: 13px; font-weight: 800; color: var(--secondary); display: flex; align-items: center; gap: 7px; }
.checkout-step .form-group { margin-bottom: 0; }
.checkout-step .form-row-2 { gap: 10px; }
.checkout-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--text-main); cursor: pointer; }
.checkout-agree input { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: #7C3AED; }
.checkout-agree a { color: #6D28D9; font-weight: 700; text-decoration: underline; }
.checkout-terms-note { font-size: 12px; line-height: 1.45; color: var(--text-muted); text-align: center; }
.checkout-terms-note a { color: #6D28D9; font-weight: 700; text-decoration: underline; }
.checkout-error { background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.checkout-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checkout-trust li { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.checkout-trust i { color: #10B981; width: 16px; margin-top: 2px; text-align: center; }
.checkout-cards { display: flex; justify-content: center; align-items: center; gap: 12px; font-size: 26px; color: #94A3B8; }
.checkout-cards span { font-size: 12px; font-weight: 900; letter-spacing: .06em; border: 1.5px solid #CBD5E1; border-radius: 5px; padding: 2px 6px; }
.btn-shopier {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    background: linear-gradient(135deg, #6D28D9, #8B5CF6); color: #fff; border: none; border-radius: 12px;
    font-family: inherit; font-size: 16px; font-weight: 800; padding: 15px; cursor: pointer;
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.28); transition: transform .1s, opacity .15s;
}
.btn-shopier:active { transform: scale(0.98); }
.btn-shopier:disabled { opacity: .7; }
.btn-shopier.btn-sm { font-size: 13px; padding: 10px 14px; margin-top: 4px; box-shadow: none; }
.btn-shopier.btn-outline { background: transparent; color: #6D28D9; border: 1.5px solid #C4B5FD; box-shadow: none; font-size: 14px; padding: 12px; }
.btn-checkout-link { background: none; border: none; color: var(--text-muted); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 6px; }
.checkout-wait { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 10px 0 4px; }
.checkout-spinner { width: 46px; height: 46px; border: 4px solid #EDE9FE; border-top-color: #7C3AED; border-radius: 50%; animation: checkoutSpin 1s linear infinite; }
@keyframes checkoutSpin { to { transform: rotate(360deg); } }
.checkout-wait-title { font-size: 17px; font-weight: 800; color: var(--secondary); text-align: center; }
.checkout-wait-text { font-size: 13px; line-height: 1.55; color: var(--text-muted); max-width: 320px; }
.checkout-done-icon { text-align: center; font-size: 52px; color: #10B981; }
.checkout-done-icon.is-fail { color: #DC2626; }
.checkout-done-text { text-align: center; font-size: 14px; line-height: 1.55; color: var(--text-main); }
.sales-terms { font-size: 13px; line-height: 1.6; color: var(--text-main); gap: 6px; }
.sales-terms h4 { font-size: 14px; font-weight: 800; color: var(--secondary); margin: 10px 0 2px; }
.sales-terms p { margin: 0; }
.upgrade-diff-box { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; background: #F5F3FF; border: 1px solid #DDD6FE; color: #4C1D95; font-size: 12.5px; }
.upgrade-diff-amount { display: flex; justify-content: space-between; font-size: 14px; }
body.dark-mode .checkout-error { background: #3B0D0D; border-color: #7F1D1D; color: #FCA5A5; }
body.dark-mode .upgrade-diff-box { background: #1E1B2E; border-color: #4C1D95; color: #DDD6FE; }
/* ---------- Mağaza paket kartı / istatistikler (stores.js) ---------- */
#storeStatsContent .stat-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
#storeStatsContent .stat-row > span:last-child { font-weight: 700; color: var(--text-main); text-align: right; }
.stat-locked { margin-top: 4px; padding: 8px 10px; border-radius: 10px; background: var(--bg-light, #F1F5F9); font-weight: 600; }
.stat-top-title { margin-top: 8px; font-weight: 800; color: var(--secondary); }
.stat-top-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 8px; border-radius: 8px; background: var(--bg-light, #F8FAFC); cursor: pointer; }
.stat-top-row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.store-pay-box { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; background: #F5F3FF; border: 1px solid #DDD6FE; color: #4C1D95; margin-bottom: 6px; }
.store-pay-box.is-wait { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.store-pay-title { font-weight: 800; font-size: 13px; }
.store-pay-meta { font-size: 11.5px; font-weight: 700; opacity: .85; }
body.dark-mode .store-pay-box { background: #1E1B2E; border-color: #4C1D95; color: #DDD6FE; }
body.dark-mode .store-pay-box.is-wait { background: #3A2E0B; border-color: #78560C; color: #FDE68A; }
.payments-soon { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-weight: 700; font-size: 12.5px; }
.payments-soon-banner {
    display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
    background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; font-size: 12.5px; line-height: 1.5;
}
.payments-soon-banner i { margin-top: 3px; }
body.dark-mode .payments-soon-banner { background: #3A2E0B; border-color: #78560C; color: #FDE68A; }
.btn-upgrade-pkg {
    margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 1.5px solid var(--primary, #F97316); color: var(--primary, #F97316); background: transparent;
    border-radius: 10px; padding: 9px 12px; font-family: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
}
.vip-free { font-size: 13px; font-weight: 800; color: #047857; background: #D1FAE5; padding: 3px 8px; border-radius: 8px; }
.vip-quota-note { position: relative; margin-top: 8px; font-size: 12px; font-weight: 700; color: #047857; }

/* ---------- Döviz çevirici (ui.js) ---------- */
.fx-converter {
    background: var(--white); border: 1px solid var(--border); border-radius: 18px; padding: 16px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05); display: flex; flex-direction: column; gap: 12px;
}
.fx-title { font-size: 14px; font-weight: 800; color: var(--secondary); display: flex; align-items: center; gap: 8px; }
.fx-title i { color: #059669; }
.fx-input-wrap { position: relative; }
.fx-amount {
    width: 100%; box-sizing: border-box; font-family: inherit; font-size: 26px !important; font-weight: 800;
    padding: 12px 52px 12px 16px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--bg-light, #F8FAFC);
    color: var(--text-main); outline: none;
}
.fx-amount:focus { border-color: #059669; background: var(--white); }
.fx-amount-sym { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 800; color: #059669; pointer-events: none; }
.fx-cur-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fx-cur-tab {
    font-family: inherit; font-size: 13px; font-weight: 800; padding: 10px 4px; border-radius: 10px; cursor: pointer;
    border: 1.5px solid var(--border); background: var(--white); color: var(--text-main); white-space: nowrap;
}
.fx-cur-tab.active { border-color: #059669; background: rgba(5, 150, 105, 0.1); color: #047857; }
.fx-results { display: flex; flex-direction: column; gap: 8px; }
.fx-result {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; font-family: inherit;
    padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-light, #F8FAFC); color: var(--text-main);
}
.fx-result:active { transform: scale(0.99); }
.fx-result-sym {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    background: #D1FAE5; color: #047857; font-weight: 800; font-size: 16px;
}
.fx-result-name { flex: 1; font-size: 13px; font-weight: 700; color: var(--text-muted); }
.fx-result-val { font-size: 18px; font-weight: 800; white-space: nowrap; }
.fx-empty { font-size: 13px; color: var(--text-muted); text-align: center; padding: 10px; }
.fx-hint { font-size: 11px; color: var(--text-muted); text-align: center; }
.fx-table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fx-cross-table th, .fx-cross-table td { padding: 10px 8px; font-size: 12px; white-space: nowrap; }
.fx-cross-table td:first-child { white-space: normal; }
.fx-cross-table .fx-sym { color: var(--text-muted); font-weight: 600; }
.fx-cross-table .fx-diag { color: var(--text-muted); text-align: center; }
body.dark-mode .fx-result-sym { background: #064E3B; color: #6EE7B7; }

/* Güncel kur kartları */
.fx-section-head { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.fx-section-title { font-size: 14px; font-weight: 800; color: var(--secondary); display: flex; align-items: center; gap: 8px; }
.fx-section-title i { color: #FF7A1A; }
.fx-refresh {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--white);
    color: var(--text-main); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.fx-refresh.is-spinning i { animation: fxSpin .8s linear infinite; }
@keyframes fxSpin { to { transform: rotate(360deg); } }
.fx-live-row { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text-muted); margin: -4px 0 2px; }
.fx-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #12A866; box-shadow: 0 0 0 3px rgba(18, 168, 102, 0.18); }
/* Sade kur listesi: simge · ad · TL değeri */
.fx-rate-cards { display: flex; flex-direction: column; flex-shrink: 0; background: var(--white); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
#marketRatesModal .fullscreen-full-body > * { flex-shrink: 0; }
.fx-rate-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.fx-rate-row + .fx-rate-row { border-top: 1px solid var(--border); }
.fx-rate-value { font-size: 20px; font-weight: 800; color: var(--text-main); white-space: nowrap; }
.fx-rate-card {
    background: var(--white); border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px;
    display: flex; flex-direction: column; gap: 8px;
}
.fx-rate-head { display: flex; align-items: center; gap: 10px; }
.fx-rate-sym {
    width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: 800; flex-shrink: 0; background: #FFEADB; color: #E05A00;
}
.fx-eur .fx-rate-sym { background: #FFF1D2; color: #B7791F; }
.fx-usd .fx-rate-sym { background: #DDF5E8; color: #12A866; }
.fx-try .fx-rate-sym { background: #FFE5E7; color: #E0414E; }
.fx-rate-name { flex: 1; font-size: 14px; font-weight: 700; color: var(--text-main); }
.fx-rate-code { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--text-muted); background: var(--bg-light); padding: 3px 8px; border-radius: 999px; }
.fx-rate-main { font-size: 26px; font-weight: 800; color: var(--text-main); letter-spacing: -0.02em; display: flex; align-items: center; gap: 6px; }
.fx-trend { font-size: 16px; }
.fx-trend.up { color: #12A866; }
.fx-trend.down { color: #E0414E; }
.fx-rate-crosses { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-cross { font-size: 12px; font-weight: 700; color: var(--text-main); background: var(--bg-light); border: 1px solid var(--border); padding: 5px 9px; border-radius: 10px; }
body.dark-mode .fx-rate-sym { background: rgba(255, 122, 26, 0.16); color: #FFB27A !important; }
body.dark-mode .fx-eur .fx-rate-sym { background: rgba(227, 154, 8, 0.16); color: #FFC54D !important; }
body.dark-mode .fx-usd .fx-rate-sym { background: rgba(18, 168, 102, 0.16); color: #4ADE9C !important; }
body.dark-mode .fx-try .fx-rate-sym { background: rgba(240, 82, 94, 0.16); color: #FF8A93 !important; }
body.dark-mode .fx-rate-code { color: var(--muted) !important; }
body.dark-mode .fx-cur-tab.active { color: #6EE7B7; }

/* ---------- Giriş sayfası ---------- */
body.login-page { padding-top: var(--sat); padding-bottom: var(--sab); box-sizing: border-box; }
body.admin-page { padding-top: var(--sat); padding-bottom: var(--sab); }

/* Canlı kurlar: değer + günlük değişim (▲ yeşil / ▼ kırmızı); değer değişince satır kısa süre parlar */
.fx-rate-right { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.fx-rate-chg { font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.fx-rate-chg.is-up { color: #0F9F5B; }
.fx-rate-chg.is-down { color: #E5484D; }
.fx-rate-chg.is-flat { color: var(--text-muted); }
@keyframes fx-flash-up { from { background: rgba(18, 168, 102, .16); } to { background: transparent; } }
@keyframes fx-flash-down { from { background: rgba(229, 72, 77, .14); } to { background: transparent; } }
.fx-rate-row.flash-up { animation: fx-flash-up 1.4s ease-out; }
.fx-rate-row.flash-down { animation: fx-flash-down 1.4s ease-out; }
.fx-live-dot { animation: fx-pulse 1.6s ease-in-out infinite; }
@keyframes fx-pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(18, 168, 102, .18); } 50% { box-shadow: 0 0 0 6px rgba(18, 168, 102, .06); } }
