/* === Genel === */
:root {
    --hatim-primary: #5e3aee;
    --hatim-primary-light: #7a5ff2;
    --hatim-primary-dark: #4824d8;
    --hatim-success: #1ec88a;
    --hatim-success-bg: #e1f5ee;
    --hatim-success-border: #5dcaa5;
    --hatim-heart: #d62828;
}

body {
    background: #fafbfc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.btn-primary {
    background-color: var(--hatim-primary);
    border-color: var(--hatim-primary);
}
.btn-primary:hover {
    background-color: var(--hatim-primary-dark);
    border-color: var(--hatim-primary-dark);
}
.btn-outline-primary {
    color: var(--hatim-primary);
    border-color: var(--hatim-primary);
}
.btn-outline-primary:hover {
    background-color: var(--hatim-primary);
    border-color: var(--hatim-primary);
}
.btn-link {
    text-decoration: none;
}
a {
    color: var(--hatim-primary);
}

/* === Login sayfasi === */
.login-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #e8e4ff 0%, #fafbfc 60%);
}
.login-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--hatim-primary);
    border-radius: 20px;
    color: white;
    font-size: 36px;
    box-shadow: 0 8px 20px rgba(94, 58, 238, 0.25);
}

/* === Hatim kartlari (parca 2'den itibaren) === */
.hatim-kart {
    transition: box-shadow .2s, transform .1s;
}
.hatim-kart:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.hatim-kart.tiklanabilir {
    cursor: pointer;
}
a:has(.hatim-kart.tiklanabilir):hover .hatim-kart {
    box-shadow: 0 4px 12px rgba(94, 58, 238, 0.18);
    transform: translateY(-1px);
}
.hatim-mini-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 99px;
    overflow: hidden;
    margin-top: 4px;
}
.hatim-mini-bar > div {
    height: 100%;
    background: var(--hatim-success);
    transition: width .4s;
}

/* === Ayet kartlari (parca 4) === */
.ayet-kart {
    transition: background-color .25s, border-color .25s;
    cursor: pointer;
    user-select: none;
}
.ayet-kart:hover {
    border-color: var(--hatim-primary) !important;
}
.ayet-kart.okundu {
    background-color: var(--hatim-success-bg);
    border-color: var(--hatim-success-border) !important;
}
.arapca {
    direction: rtl;
    font-family: var(--arapca-font, "Traditional Arabic", "Amiri", "Scheherazade New", serif);
    font-size: var(--arapca-size, 28px);
    line-height: 2.1;
    text-align: right;
}
@media (max-width: 600px) {
    .arapca { font-size: calc(var(--arapca-size, 28px) - 6px); }
}

/* Font tercihleri - JS tarafindan body'ye sinif eklenir */
/* Not: "Scheherazade New" hepsinde fallback olarak en sonda - */
/* Unicode 14.0 yeni kıraat işaretlerini (SAKTA U+10EFD, QASR U+10EFE, MADDA U+10EFF) */
/* Amiri/Noto/diğer fontlar desteklemiyor; Scheherazade New 3.x onları render eder. */
body.arapca-font-sistem { --arapca-font: "Traditional Arabic", "Geeza Pro", "Amiri", "Scheherazade New", serif; }
body.arapca-font-amiri { --arapca-font: "Amiri", "Scheherazade New", serif; }
body.arapca-font-scheherazade { --arapca-font: "Scheherazade New", serif; }
body.arapca-font-noto { --arapca-font: "Noto Naskh Arabic", "Scheherazade New", serif; }
body.arapca-font-lateef { --arapca-font: "Lateef", "Scheherazade New", serif; }
body.arapca-font-reemkufi { --arapca-font: "Reem Kufi", "Scheherazade New", sans-serif; }

/* Boyut tercihleri */
body.arapca-size-kucuk { --arapca-size: 22px; }
body.arapca-size-orta { --arapca-size: 28px; }
body.arapca-size-buyuk { --arapca-size: 36px; }

/* Tercih cubugu (Cuz sayfasi ve Kayitlarim'da) */
.arapca-ayar-cubugu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
}
.arapca-ayar-cubugu select {
    font-size: 13px;
    padding: 4px 8px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
}
.arapca-ayar-cubugu .ayar-boyut-grup {
    display: inline-flex;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    background: white;
}
.arapca-ayar-cubugu .ayar-boyut-grup button {
    border: none;
    background: transparent;
    padding: 4px 10px;
    font-size: 13px;
    cursor: pointer;
}
.arapca-ayar-cubugu .ayar-boyut-grup button.aktif {
    background: var(--hatim-primary);
    color: white;
}

.kalp-aktif {
    color: var(--hatim-heart);
}

/* === Sesli dinleme - calan ayet kart vurgusu === */
.ayet-kart.calan {
    box-shadow: 0 0 0 2px var(--hatim-primary);
    animation: calanPuls 2s ease-in-out infinite;
}
@keyframes calanPuls {
    0%, 100% { box-shadow: 0 0 0 2px var(--hatim-primary); }
    50% { box-shadow: 0 0 0 4px rgba(94, 58, 238, 0.3); }
}

/* === Gunun Ayeti karti === */
.gunun-ayeti-kart {
    background: linear-gradient(135deg, #faf8ff 0%, #fff 100%);
    border: 1px solid rgba(94, 58, 238, 0.15);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}
.gunun-ayeti-kart::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hatim-primary), #8b5cf6);
}
.gunun-ayeti-rozet {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--hatim-primary), #8b5cf6);
    color: white;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}
.gunun-ayeti-arapca {
    font-family: 'Amiri', 'Scheherazade New', serif;
    font-size: 28px;
    line-height: 2;
    direction: rtl;
    color: #1a1a2e;
}
.gunun-ayeti-meal {
    font-style: italic;
    font-size: 15px;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}
@media (max-width: 576px) {
    .gunun-ayeti-arapca { font-size: 22px; line-height: 1.8; }
    .gunun-ayeti-meal { font-size: 14px; }
}

/* === Son okumalar avatar === */
.son-okuma-satir {
    transition: background 0.15s;
}
.son-okuma-satir:hover {
    background: rgba(0, 0, 0, 0.02);
}
.son-okuma-satir:last-child {
    border-bottom: 0 !important;
}
.son-okuma-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* === Tanıtım hero mini özellik chip'leri === */
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: white;
    border: 1px solid rgba(94, 58, 238, 0.18);
    border-radius: 20px;
    font-size: 13px;
    color: var(--hatim-primary);
    font-weight: 500;
}
.hero-chip i {
    font-size: 13px;
}

/* === Tanitim sayfasi === */
.tanitim-hero {
    background: linear-gradient(135deg, #e8e4ff 0%, #fafbfc 70%);
    padding-top: 40px;
}
.tanitim-baslik {
    background: linear-gradient(135deg, #5e3aee, #9d7fee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.tanitim-ozellik {
    background: white;
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    border: 1px solid #eee;
    transition: transform .15s, box-shadow .15s;
}
.tanitim-ozellik:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(94, 58, 238, 0.08);
}
.tanitim-ozellik-ikon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
}
.tanitim-adim {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--hatim-primary);
    color: white;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* === Secde ayetleri === */
/* Kuran'da 14 secde ayeti vardir (Hanefi). Bu ayetler okundugunda/dinlendiginde */
/* tilavet secdesi yapilir. Gorsel olarak ayirt etmek icin hafif altin zemin. */
.ayet-kart.secde-ayet {
    background: linear-gradient(180deg, #fff8e1 0%, #fff 65%);
    border-left: 3px solid #d4a017;
}
.ayet-kart.secde-ayet.okundu {
    background: linear-gradient(180deg, #fff8e1 0%, #e8f5e9 65%);
}
.secde-rozet {
    background: #d4a017;
    color: #fff;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 10px;
    cursor: help;
    letter-spacing: 0.2px;
}

/* === Yer imi (kalici, tek tikla "buraya kadar okudum") === */
/* Sol kenarda mavi cizgi + sag ustte rozet */
.ayet-kart.yer-imi {
    border-left: 3px solid #2196f3;
    background: linear-gradient(180deg, #f0f8ff 0%, #fff 65%);
}
.ayet-kart.yer-imi.okundu {
    background: linear-gradient(180deg, #f0f8ff 0%, #e8f5e9 65%);
}
.ayet-kart.yer-imi.secde-ayet {
    /* Secde + yer imi - cift renk */
    border-left: 3px solid #2196f3;
    background: linear-gradient(180deg, #f0f8ff 0%, #fff8e1 100%);
}
.yerimi-aktif {
    color: #1976d2 !important;
}

/* === Goruldu vurgusu (otomatik, IntersectionObserver) === */
/* Ayet ekrana girdiginde hafif altin ic-glow alir, "gozun gordu" hissi */
.ayet-kart.gorulmus:not(.okundu):not(.calan):not(.secde-ayet):not(.yer-imi) {
    box-shadow: inset 3px 0 0 0 rgba(212, 160, 23, 0.4);
    transition: box-shadow 0.4s ease;
}

/* === Gunluk hedef karti === */
.hedef-kart {
    border: 1px solid #e6dfd1;
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 60%);
}
.streak-rozet {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(255,107,53,0.3);
}

/* === Niyet karti (hatim manevi anlami) === */
.niyet-kart {
    border: 1px solid #e6dfd1;
    background: linear-gradient(135deg, #fffaeb 0%, #ffffff 70%);
    border-left: 4px solid #d4a017;
}

/* ============================================================
   KARANLIK MOD - data-bs-theme="dark" altinda override
   Mevcut CSS dokunulmadan ek katman olarak uygulanir.
   Altin (#d4a017) vurgular her iki temada da AYNI kalir.
   ============================================================ */

[data-bs-theme="dark"] body {
    background: #0f1419;
    color: #e8e6e0;
}

[data-bs-theme="dark"] .navbar {
    background: #1a1f26 !important;
    border-color: #2a3038 !important;
}
[data-bs-theme="dark"] .navbar .text-secondary {
    color: #9aa0a6 !important;
}

[data-bs-theme="dark"] .card {
    background-color: #1a1f26;
    border-color: #2a3038;
    color: #e8e6e0;
}
[data-bs-theme="dark"] .card.bg-light {
    background-color: #161a20 !important;
}

[data-bs-theme="dark"] .text-secondary,
[data-bs-theme="dark"] .text-muted {
    color: #9aa0a6 !important;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #161a20;
    border-color: #2a3038;
    color: #e8e6e0;
}
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #1c2128;
    border-color: #5e3aee;
    color: #e8e6e0;
}
[data-bs-theme="dark"] .form-control::placeholder {
    color: #6c757d;
}

/* Hatim kartlari */
[data-bs-theme="dark"] .hatim-kart { background: #1a1f26; }
[data-bs-theme="dark"] .hatim-mini-bar { background: #2a3038; }

/* Ayet kartlari - okuma sayfasinda */
[data-bs-theme="dark"] .ayet-kart {
    background: #1a1f26 !important;
    border-color: #2a3038 !important;
}
[data-bs-theme="dark"] .ayet-kart:hover {
    background: #1f252e !important;
}
[data-bs-theme="dark"] .ayet-kart.okundu {
    background: linear-gradient(180deg, #1a2620 0%, #1a1f26 60%) !important;
}
[data-bs-theme="dark"] .ayet-kart.secde-ayet {
    background: linear-gradient(180deg, #2d2719 0%, #1a1f26 80%) !important;
}
[data-bs-theme="dark"] .ayet-kart.yer-imi {
    background: linear-gradient(180deg, #1a2230 0%, #1a1f26 65%) !important;
}
[data-bs-theme="dark"] .ayet-kart.yer-imi.okundu {
    background: linear-gradient(180deg, #1a2230 0%, #1a2620 65%) !important;
}
[data-bs-theme="dark"] .ayet-kart.calan {
    background: linear-gradient(180deg, #2a2030 0%, #1a1f26 60%) !important;
}

/* Niyet & Hedef & Gunun Ayeti kartlari */
[data-bs-theme="dark"] .niyet-kart {
    background: linear-gradient(135deg, #2a2519 0%, #1a1f26 70%);
    border-color: #2a3038;
}
[data-bs-theme="dark"] .hedef-kart {
    background: linear-gradient(135deg, #2a2519 0%, #1a1f26 60%);
    border-color: #2a3038;
}
[data-bs-theme="dark"] .gunun-ayeti-kart {
    background: linear-gradient(135deg, #1f1a2e 0%, #1a1f26 100%);
    border-color: #2a3038;
}

/* Arapca ayar cubugu */
[data-bs-theme="dark"] .arapca-ayar-cubugu {
    background: #161a20 !important;
    border-color: #2a3038 !important;
}

/* Toast container alani - bootstrap zaten data-bs-theme ile uyumlu */

/* Tablolarda secde, kalp aktif vs. degismez - altin renk korumali */

/* Sure listesi (Kuran sayfasi) - hatim-kart class'i kullaniyor zaten */

/* Modal arkaplani */
[data-bs-theme="dark"] .modal-content {
    background-color: #1a1f26;
    border-color: #2a3038;
}

/* Dropdown */
[data-bs-theme="dark"] .dropdown-menu {
    background-color: #1a1f26;
    border-color: #2a3038;
}
[data-bs-theme="dark"] .dropdown-item {
    color: #e8e6e0;
}
[data-bs-theme="dark"] .dropdown-item:hover {
    background-color: #2a3038;
    color: #fff;
}

/* Inline kod */
[data-bs-theme="dark"] code {
    background-color: #2a3038;
    color: #f0a020;
}

/* Login arkaplan */
[data-bs-theme="dark"] .login-bg {
    background: linear-gradient(135deg, #1f1a2e 0%, #0f1419 60%);
}

/* Progress bar arkaplan */
[data-bs-theme="dark"] .progress {
    background-color: #2a3038;
}

/* Alert default (info, warning, vs.) Bootstrap kendi koyu modunu uygular */

/* Goruldu vurgusu altin glow - koyu modda biraz daha gorunur */
[data-bs-theme="dark"] .ayet-kart.gorulmus:not(.okundu):not(.calan):not(.secde-ayet):not(.yer-imi) {
    box-shadow: inset 3px 0 0 0 rgba(212, 160, 23, 0.6);
}

/* Cuz kartinda atama olmamis ozel renkler */
[data-bs-theme="dark"] .card.hatim-kart[style*="background:#f8f9fa"],
[data-bs-theme="dark"] .card.hatim-kart[style*="background: #f8f9fa"] {
    background: #1a1f26 !important;
}
[data-bs-theme="dark"] .card.hatim-kart[style*="background:#fff8e1"],
[data-bs-theme="dark"] .card.hatim-kart[style*="background: #fff8e1"] {
    background: #2a2519 !important;
}
[data-bs-theme="dark"] .card.hatim-kart[style*="background:#e1f5ee"],
[data-bs-theme="dark"] .card.hatim-kart[style*="background: #e1f5ee"] {
    background: #1a2620 !important;
}
[data-bs-theme="dark"] .card.hatim-kart[style*="background:#e3f2fd"],
[data-bs-theme="dark"] .card.hatim-kart[style*="background: #e3f2fd"] {
    background: #1a2230 !important;
}

/* Tema toggle butonu - hovera vurgu */
#tema-toggle:hover #tema-ikon {
    color: #d4a017 !important;
}

/* === Bildirim listesi === */
.bildirim-yeni {
    background: linear-gradient(90deg, rgba(94, 58, 238, 0.04), transparent 50%);
    border-left: 3px solid #5e3aee;
}
.bildirim-okundu {
    opacity: 0.75;
}
.bildirim-ikon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(212, 160, 23, 0.15);
    color: #d4a017;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.bildirim-nokta {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #5e3aee;
    margin-top: 6px;
    flex-shrink: 0;
}

[data-bs-theme="dark"] .bildirim-yeni {
    background: linear-gradient(90deg, rgba(94, 58, 238, 0.10), transparent 50%);
}
[data-bs-theme="dark"] .bildirim-ikon {
    background: rgba(212, 160, 23, 0.20);
}

/* === Guncelleme banner (PWA yeni surum hazir) === */
.guncelleme-banner {
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 1080;
    background: linear-gradient(135deg, #5e3aee, #7a5ff2);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(94, 58, 238, 0.4);
    max-width: 500px;
    margin: 0 auto;
    animation: bannerSlideUp 0.3s ease-out;
}
.guncelleme-banner .btn-close-white {
    filter: invert(1) brightness(2);
    opacity: 0.6;
}
.guncelleme-banner .btn-close-white:hover {
    opacity: 1;
}
@keyframes bannerSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* === Sure tekrar karti === */
.sure-tekrar-kart {
    border: 1px solid #e6dfd1;
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 65%);
    border-left: 4px solid #d4a017;
}
[data-bs-theme="dark"] .sure-tekrar-kart {
    background: linear-gradient(135deg, #2a2519 0%, #1a1f26 65%);
    border-color: #2a3038;
    border-left-color: #d4a017;
}

/* === HATIM KART B - altin ikon + buyuk yuzde === */
.hatim-kart {
    background: #fffaf0;
    border: 1px solid #e6d3a0;
    border-radius: 12px;
    transition: 0.2s;
    overflow: hidden;
}
.hatim-kart .card-body {
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
}
.hatim-kart-ikon {
    width: 52px;
    height: 52px;
    background: #d4a017;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}
.hatim-kart-icerik {
    flex: 1;
    min-width: 0; /* text overflow */
}
.hatim-kart-baslik-satir {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 8px;
    margin-bottom: 2px;
}
.hatim-kart-ad {
    font-weight: 600;
    font-size: 0.95rem;
    color: #212529;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hatim-kart-yuzde {
    color: #b8860b;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1;
    flex-shrink: 0;
}
.hatim-kart-meta {
    font-size: 0.72rem;
    color: #8c7e5e;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hatim-kart-meta b { color: #5e3aee; font-weight: 600; }
.hatim-kart .hatim-mini-bar {
    height: 5px;
    background: #f0e4c0;
    border-radius: 3px;
    overflow: hidden;
}
.hatim-kart .hatim-mini-bar > div {
    height: 100%;
    background: linear-gradient(90deg, #d4a017, #e8b923);
    transition: width 0.3s;
}

/* Hover */
.hatim-kart.tiklanabilir { cursor: pointer; }
a:has(.hatim-kart.tiklanabilir):hover .hatim-kart,
.hatim-kart.tiklanabilir:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.18);
    border-color: #d4a017;
}

/* Tamamlanmis hatim - daha sade */
.hatim-kart.tamamlandi { background: #fdf6f9; border-color: #e6c0d4; }
.hatim-kart.tamamlandi .hatim-kart-ikon { background: #c9408a; }
.hatim-kart.tamamlandi .hatim-kart-yuzde { color: #c9408a; }
.hatim-kart.tamamlandi .hatim-mini-bar > div { background: #c9408a; }

/* Bekleyen / talep / acik - eski stiller korunsun */
.hatim-kart[style*="fff8e1"], .hatim-kart[style*="background:#fff8e1"] {
    background: #fff8e1 !important;
    border-color: #e6d3a0;
}

/* Karanlik mod */
[data-bs-theme="dark"] .hatim-kart {
    background: #2a2519;
    border-color: #4a3f1f;
}
[data-bs-theme="dark"] .hatim-kart-ad { color: #e8e6e0; }
[data-bs-theme="dark"] .hatim-kart-meta { color: #b0a080; }
[data-bs-theme="dark"] .hatim-kart .hatim-mini-bar { background: #3a3220; }

/* === Cevrimici kart === */
.cevrimici-kart {
    border: 1px solid #c8e6c9;
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 65%);
    transition: 0.2s;
}
.cevrimici-kart:hover {
    background: linear-gradient(135deg, #d4edd6 0%, #ffffff 65%);
    border-color: #4caf50;
}
.cevrimici-nokta {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #4caf50;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.5);
    animation: cevrimici-nabiz 2s infinite;
    flex-shrink: 0;
}
@keyframes cevrimici-nabiz {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* Karanlik mod */
[data-bs-theme="dark"] .cevrimici-kart {
    background: linear-gradient(135deg, #1a2a1f 0%, #1a1f26 65%);
    border-color: #2d4a2d;
}
[data-bs-theme="dark"] .cevrimici-kart:hover {
    background: linear-gradient(135deg, #1f3326 0%, #1a1f26 65%);
}

/* === Cuz karti (Detay sayfasi 30 cuz grid) === */
/* hatim-kart B stilinin yanyana flex layout'unu KULLANMAZ - dikey blok */
.cuz-kart {
    border: 1px solid #e6dfd1;
    background: white;
    border-radius: 10px;
    transition: 0.2s;
}
.cuz-kart .card-body { padding: 12px; }
.cuz-kart.border-primary { border-color: #5e3aee !important; border-width: 2px; }
a:hover > .cuz-kart, .cuz-kart:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.cuz-kart .hatim-mini-bar { height: 4px; background: #f0e4c0; border-radius: 2px; overflow: hidden; }
.cuz-kart .hatim-mini-bar > div { height: 100%; background: #d4a017; transition: width 0.3s; }

/* Buton metni cok uzunsa simdi alta tasiyalim ve kucult */
.cuz-kart .btn { white-space: normal; line-height: 1.2; }

/* Karanlik mod */
[data-bs-theme="dark"] .cuz-kart { background: #1a1f26; border-color: #2a3038; color: #e8e6e0; }
[data-bs-theme="dark"] .cuz-kart .hatim-mini-bar { background: #2a3038; }

/* === Profil === */
.profil-avatar-buyuk {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5e3aee, #7a5ff2);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(94, 58, 238, 0.3);
}
.profil-ust-kart {
    border: 1px solid #e6dfd1;
    background: linear-gradient(135deg, #f5f1ff 0%, #ffffff 60%);
}
[data-bs-theme="dark"] .profil-ust-kart {
    background: linear-gradient(135deg, #1f1a2e 0%, #1a1f26 60%);
    border-color: #2a3038;
}

.profil-stat-kart {
    border: 1px solid #e6dfd1;
    transition: 0.2s;
}
.profil-stat-kart:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.profil-stat-deger { font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.profil-stat-label { font-size: 0.78rem; color: #6c757d; margin-top: 2px; }
[data-bs-theme="dark"] .profil-stat-kart { background: #1a1f26; border-color: #2a3038; }
[data-bs-theme="dark"] .profil-stat-label { color: #9aa0a6; }

/* === Heatmap === */
.heatmap-grid {
    display: grid;
    grid-template-rows: repeat(7, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 3px;
}
.heatmap-hucre {
    width: 100%;
    aspect-ratio: 1;
    background: transparent;
    border: 1px solid rgba(212, 160, 23, 0.15);
    border-radius: 2px;
    min-width: 8px;
    min-height: 8px;
}
[data-bs-theme="dark"] .heatmap-hucre {
    border-color: rgba(212, 160, 23, 0.25);
}

/* === Aylik takvim gorunumu (profil) === */
.takvim-hafta-basligi {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 4px;
}
.takvim-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.takvim-hucre {
    aspect-ratio: 1;
    border-radius: 6px;
    border: 1px solid rgba(212, 160, 23, 0.15);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 3px 5px;
    min-width: 0;
}
.takvim-hucre.bos {
    border: none;
    background: transparent !important;
}
.takvim-hucre.bugun {
    outline: 2px solid #d4a017;
    outline-offset: -1px;
}
.takvim-gun-no {
    font-size: 0.7rem;
    color: var(--bs-secondary-color);
}
[data-bs-theme="dark"] .takvim-hucre {
    border-color: rgba(212, 160, 23, 0.25);
}

/* === Nav avatar (kucuk) === */
.nav-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5e3aee, #7a5ff2);
    color: white;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.95rem; font-weight: 600;
    text-decoration: none;
    flex-shrink: 0;
    transition: 0.2s;
}
.nav-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(94, 58, 238, 0.4);
    color: white;
}

/* === Cuz Sticky Alt Bar === */
.cuz-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid #e6dfd1;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
    z-index: 90;
    padding: 8px 12px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}
.cuz-sticky-icerik {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cuz-sticky-ikon {
    font-size: 1.4rem;
    flex-shrink: 0;
}
.cuz-sticky-orta { flex: 1; min-width: 0; }
.cuz-sticky-sayi {
    font-size: 0.85rem;
    margin-bottom: 4px;
    line-height: 1;
}
.cuz-sticky-sayi b { color: #5e3aee; font-size: 1rem; }
.cuz-sticky-progress {
    height: 6px;
    background: #f0e4c0;
    border-radius: 3px;
    overflow: hidden;
}
.cuz-sticky-progress > div {
    height: 100%;
    background: linear-gradient(90deg, #d4a017, #e8b923);
    transition: width 0.4s ease-out;
}
.cuz-sticky-yuzde {
    color: #b8860b;
    font-weight: 600;
    font-size: 1.05rem;
    flex-shrink: 0;
    min-width: 48px;
    text-align: right;
}

/* Karanlik mod */
[data-bs-theme="dark"] .cuz-sticky-bar {
    background: rgba(15, 20, 25, 0.96);
    border-top-color: #2a3038;
}
[data-bs-theme="dark"] .cuz-sticky-progress { background: #2a3038; }

/* Sayfanin altinda yer biraksin (sticky bar ile son icerik cakismasin) */
body.cuz-okuma { padding-bottom: 80px; }

/* === Uye listesi avatar === */
.uye-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5e3aee, #7a5ff2);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 600;
    flex-shrink: 0;
}
.uye-nokta {
    position: absolute;
    bottom: -2px; right: -2px;
    width: 12px; height: 12px;
    background: #4caf50;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.5);
    animation: cevrimici-nabiz 2s infinite;
}
[data-bs-theme="dark"] .uye-nokta { border-color: #1a1f26; }

/* === Footer === */
.site-footer {
    padding: 18px 12px 24px;
    margin-top: 24px;
    border-top: 1px solid #e6dfd1;
    background: rgba(255, 250, 235, 0.5);
}
.site-footer a:hover { color: #5e3aee !important; }
[data-bs-theme="dark"] .site-footer {
    background: rgba(15, 20, 25, 0.5);
    border-top-color: #2a3038;
}

/* Cuz okuma sayfasinda footer gizlensin (sticky bar zaten alt) */
body.cuz-okuma .site-footer { display: none; }
