/* ŞÜTK — Uygulama genel stil dosyası */

/* Temel sıfırlama ve global ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Arka plan: renkli animasyonlu gradyan */
body {
    will-change: background-position;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 35%, #fd8451 65%, #4facfe 100%);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    touch-action: pan-y;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── ARKA PLAN YÜKSELİŞ KALPLERİ ─────────────────────── */
.bg-hearts {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-heart {
    position: absolute;
    opacity: 0;
    will-change: transform, opacity;
    animation: floatHeartUp linear infinite;
}

.bg-heart:nth-child(1) { left: 8%;  font-size: 20px; animation-duration: 14s; animation-delay: 0s; }
.bg-heart:nth-child(2) { left: 20%; font-size: 32px; animation-duration: 18s; animation-delay: 2s; }
.bg-heart:nth-child(3) { left: 35%; font-size: 16px; animation-duration: 12s; animation-delay: 5s; }
.bg-heart:nth-child(4) { left: 50%; font-size: 28px; animation-duration: 16s; animation-delay: 1s; }
.bg-heart:nth-child(5) { left: 65%; font-size: 22px; animation-duration: 20s; animation-delay: 3s; }
.bg-heart:nth-child(6) { left: 78%; font-size: 18px; animation-duration: 13s; animation-delay: 7s; }
.bg-heart:nth-child(7) { left: 90%; font-size: 26px; animation-duration: 17s; animation-delay: 4s; }
.bg-heart:nth-child(8) { left: 42%; font-size: 14px; animation-duration: 11s; animation-delay: 9s; }

@keyframes floatHeartUp {
    0%   { transform: translateY(110vh) rotate(0deg) scale(0.8);  opacity: 0; }
    10%  { opacity: 0.18; }
    80%  { opacity: 0.12; }
    100% { transform: translateY(-10vh) rotate(25deg) scale(1.1); opacity: 0; }
}

/* ── YÜKLENİYOR EKRANI ─────────────────────────────────── */
#loadingScreen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 35%, #fd8451 65%, #4facfe 100%);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

#loadingScreen.hide {
    opacity: 0;
    pointer-events: none;
    animation: loadingFadeOut 0.6s ease forwards;
    display: none;
}

@keyframes loadingFadeOut {
    0%   { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.05); }
}

.loading-content { text-align: center; color: white; padding: 20px; }

.loading-heart-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.loading-heart-big {
    font-size: 72px;
    display: block;
    will-change: transform;
    animation: loadHeartPulse 1.2s ease-in-out infinite;
}

.loading-heart-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90px; height: 90px;
    border: 3px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    animation: loadRingPulse 1.2s ease-in-out infinite;
}

@keyframes loadHeartPulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.15); }
}

@keyframes loadRingPulse {
    0%, 100% { transform: translate(-50%,-50%) scale(1);   opacity: 0.5; }
    50%       { transform: translate(-50%,-50%) scale(1.3); opacity: 0; }
}

.loading-title    { font-size: 38px; font-weight: 900; letter-spacing: 3px; margin-bottom: 8px; text-shadow: 0 2px 12px rgba(0,0,0,0.15); }
.loading-subtitle { font-size: 15px; opacity: 0.88; margin-bottom: 32px; font-style: italic; letter-spacing: 0.5px; }

.loading-dots { display: flex; justify-content: center; gap: 8px; }
.loading-dot  { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.8); animation: dotBounce 1.2s ease-in-out infinite; }
.loading-dot:nth-child(1) { animation-delay: 0s; }
.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 100% { transform: translateY(0);    opacity: 0.5; }
    50%       { transform: translateY(-10px); opacity: 1; }
}

/* ── GİRİŞ EKRANI ──────────────────────────────────────── */
#loginScreen { display: none; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; position: relative; z-index: 1; }
#loginScreen.show { display: flex; animation: loginFadeIn 0.7s ease; }

@keyframes loginFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── GİRİŞ KUTUSU — Glassmorphism ─────────────────────── */
.login-box {
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    padding: 44px 36px 36px;
    border-radius: 28px;
    max-width: 400px;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 24px 60px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.4);
    animation: loginBoxIn 0.65s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes loginBoxIn {
    from { transform: translateY(60px) scale(0.92); opacity: 0; }
    to   { transform: translateY(0) scale(1);       opacity: 1; }
}

/* Logo */
.login-logo { text-align: center; margin-bottom: 30px; }
.login-logo-heart { font-size: 54px; display: block; margin-bottom: 10px; animation: logoHeartPulse 2s ease-in-out infinite; }

@keyframes logoHeartPulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.1) rotate(-3deg); }
}

.login-logo h1 {
    color: white;
    font-size: 38px; font-weight: 900; letter-spacing: 3px; line-height: 1; margin-bottom: 6px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.login-logo p { color: rgba(255,255,255,0.82); font-size: 13px; font-style: italic; letter-spacing: 0.5px; }

/* Form alanları */
.login-input-wrap { margin-bottom: 16px; }
.login-input-wrap label { display: block; font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.9px; margin-bottom: 7px; }
.login-input-wrap input {
    width: 100%; padding: 14px 16px;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 14px;
    font-size: 16px; font-family: inherit; transition: all 0.25s; box-sizing: border-box;
    -webkit-appearance: none; appearance: none;
    background: rgba(255,255,255,0.18);
    color: white;
    backdrop-filter: blur(8px);
}
.login-input-wrap input::placeholder { color: rgba(255,255,255,0.5); }
.login-input-wrap input:focus   { outline: none; border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.26); box-shadow: 0 0 0 3px rgba(255,255,255,0.12); }
.login-input-wrap input.input-error { border-color: #ff8fa0; background: rgba(255,95,109,0.2); }
.login-input-wrap input.input-ok    { border-color: #43e97b; background: rgba(67,233,123,0.15); }

/* Alan hata mesajı */
.login-field-err { font-size: 12px; color: #ffb3be; font-weight: 600; margin-top: 5px; display: none; padding-left: 2px; }
.login-field-err.show { display: block; animation: fieldErrIn 0.2s ease; }
@keyframes fieldErrIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }

/* Şifre göster/gizle butonu */
.password-wrapper { position: relative; }
.password-toggle { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 18px; padding: 4px; opacity: 0.55; transition: opacity 0.2s; line-height: 1; }
.password-toggle:hover { opacity: 0.9; }

/* Beni hatırla */
.remember-row  { display: flex; align-items: center; gap: 10px; margin: 18px 0 22px; }
.remember-checkbox { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.45); border-radius: 6px; appearance: none; -webkit-appearance: none; cursor: pointer; position: relative; transition: all 0.2s; flex-shrink: 0; background: rgba(255,255,255,0.15); }
.remember-checkbox:checked { background: linear-gradient(135deg, #f093fb, #f5576c); border-color: transparent; }
.remember-checkbox:checked::after { content: '✓'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-52%); color: white; font-size: 13px; font-weight: 700; }
.remember-label { font-size: 14px; color: rgba(255,255,255,0.82); font-weight: 500; cursor: pointer; user-select: none; }

/* Giriş butonu */
.login-btn {
    width: 100%; padding: 16px;
    background: rgba(255,255,255,0.95);
    color: #f5576c; border: none; border-radius: 14px;
    font-size: 16px; font-weight: 800; cursor: pointer;
    transition: all 0.25s; box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}
.login-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.28); background: white; }
.login-btn:active:not(:disabled) { transform: translateY(0) scale(0.98); }
.login-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.login-btn-inner { display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-spinner { width: 18px; height: 18px; border: 2px solid rgba(245,87,108,0.3); border-top: 2px solid #f5576c; border-radius: 50%; animation: spin 0.75s linear infinite; display: none; }
.login-btn.loading .btn-spinner { display: inline-block; }
.login-btn.loading .btn-txt { opacity: 0.75; }

/* Hata kutusu */
.login-error-box {
    background: rgba(255,80,80,0.2); color: #ffe0e0; padding: 12px 15px; border-radius: 12px;
    margin-bottom: 16px; display: none; border-left: 4px solid rgba(255,120,120,0.6);
    font-weight: 600; font-size: 14px; animation: errorShake 0.45s ease;
    backdrop-filter: blur(4px);
}
.login-error-box.show { display: flex; align-items: center; gap: 8px; }

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    15%, 45%, 75% { transform: translateX(-6px); }
    30%, 60%, 90% { transform: translateX(6px); }
}

/* Başarılı giriş animasyonu */
.login-box.success-exit { animation: successExit 0.5s ease forwards; }
@keyframes successExit {
    0%   { transform: scale(1);              opacity: 1; }
    40%  { transform: scale(1.04); }
    100% { transform: scale(0.88) translateY(24px); opacity: 0; }
}

/* ── UYGULAMA İÇİ FORM ELEMANLARI ─────────────────────── */
.form-group { margin-bottom: 20px; position: relative; }
.form-group label { display: block; margin-bottom: 8px; color: #333; font-weight: 600; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%; padding: 12px; border: 2px solid #ddd; border-radius: 10px;
    font-size: 16px; font-family: inherit; transition: all 0.3s; box-sizing: border-box;
    -webkit-appearance: none; appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: #f093fb; box-shadow: 0 0 0 3px rgba(240,147,251,0.1); }
.form-group textarea { min-height: 100px; resize: vertical; }

/* Evrensel buton stili */
.btn {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white; border: none; border-radius: 10px;
    font-size: 16px; font-weight: 700; cursor: pointer;
    transition: all 0.3s; position: relative; overflow: hidden;
}
.btn::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-radius: 50%; background: rgba(255,255,255,0.3); transform: translate(-50%,-50%); transition: width 0.6s, height 0.6s; }
.btn:hover::before { width: 300px; height: 300px; }
.btn:hover  { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(240,147,251,0.4); }
.btn:active { transform: translateY(0); }
.btn-secondary { background: #6c757d; }

/* ── ANA UYGULAMA EKRANI ───────────────────────────────── */
#appScreen {
    display: none; max-width: 600px; margin: 0 auto;
    background: white; min-height: 100vh;
    position: relative; overflow-x: hidden;
}
#appScreen.active { display: block; }

#appScreen::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(240,147,251,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245,87,108,0.03) 0%, transparent 50%);
    pointer-events: none; z-index: 0;
}

/* ── ÜST BAŞLIK — iOS çentik / Dynamic Island güvenli alan ─
   padding-top: env(safe-area-inset-top) → saat/çentik
   bölgesinin altına içeriği iter, tıklanabilir kılar.    */
.app-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    /* Yatay dolgu + çentik kadar dikey dolgu */
    padding: calc(env(safe-area-inset-top) + 14px) 20px 14px;
    text-align: center;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 4px 16px rgba(240,147,251,0.35);
}
.app-header h1 { font-size: 26px; margin-bottom: 2px; letter-spacing: 1px; }
.app-header p  { font-size: 13px; opacity: 0.9; transition: all 0.5s ease; }

.logout-btn {
    position: absolute;
    top: calc(env(safe-area-inset-top) + 10px);
    right: 10px;
    background: rgba(255,255,255,0.2); color: white;
    border: none; padding: 8px 16px; border-radius: 20px;
    cursor: pointer; font-size: 13px; transition: all 0.3s;
}
.logout-btn:hover { background: rgba(255,255,255,0.3); }

/* ── BİLDİRİM ZİL BUTONU ────────────────────────────────── */
.notif-bell-btn {
    position: absolute;
    top: calc(env(safe-area-inset-top) + 10px);
    left: 10px;
    background: rgba(255,255,255,0.2); color: white;
    border: none; width: 38px; height: 38px; border-radius: 50%;
    cursor: pointer; font-size: 18px; transition: all 0.25s;
    display: flex; align-items: center; justify-content: center;
    position: absolute;
}
.notif-bell-btn:active { transform: scale(0.9); }

/* Okunmamış bildirim sayacı */
.notif-badge {
    position: absolute; top: calc(env(safe-area-inset-top) + 6px); left: 26px;
    background: #ff4757; color: white; font-size: 9px; font-weight: 900;
    min-width: 16px; height: 16px; border-radius: 8px; padding: 0 3px;
    display: none; align-items: center; justify-content: center;
    border: 2px solid white; z-index: 101; pointer-events: none;
}
.notif-badge.show { display: flex; }

/* ── BİLDİRİM PANELİ (DRAWER) ──────────────────────────── */
#notifPanel {
    display: none; position: fixed; inset: 0;
    z-index: 18000;
}
#notifPanel.open { display: block; }

/* Arka plan kararması */
.notif-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Sağdan kayan panel */
.notif-drawer {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: min(360px, 92vw);
    background: #fafafa;
    box-shadow: -8px 0 40px rgba(0,0,0,0.18);
    display: flex; flex-direction: column;
    padding-top: env(safe-area-inset-top);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
}
#notifPanel.open .notif-drawer { transform: translateX(0); }

.notif-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #eee;
    background: white;
}
.notif-drawer-title { font-size: 17px; font-weight: 800; color: #222; }
.notif-clear-btn {
    font-size: 12px; color: #f5576c; font-weight: 700; background: none;
    border: none; cursor: pointer; padding: 4px 8px;
}
.notif-close-btn {
    background: #f0f0f0; border: none; width: 30px; height: 30px;
    border-radius: 50%; font-size: 16px; cursor: pointer; color: #555;
    display: flex; align-items: center; justify-content: center;
}

.notif-list {
    flex: 1; overflow-y: auto; padding: 10px 12px;
    -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}

/* Tek bildirim öğesi */
.notif-item {
    display: flex; gap: 12px; align-items: flex-start;
    background: white; border-radius: 14px; padding: 12px 14px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 3px solid #f093fb;
    animation: slideInRight 0.3s ease;
    /* Tıklanabilir görünüm */
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease,
                opacity 0.2s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
/* Hover — masaüstü */
.notif-item:hover {
    transform: translateX(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.11);
    background: #fefcff;
}
/* Tap/active — mobil */
.notif-item:active {
    transform: scale(0.97);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
/* Tıklama ripple animasyonu */
@keyframes notifRipple {
    0%   { transform: translateX(-3px) scale(1);   box-shadow: 0 4px 16px rgba(102,126,234,0.2); }
    40%  { transform: translateX(-6px) scale(1.01); box-shadow: 0 6px 22px rgba(102,126,234,0.3); }
    100% { transform: translateX(0) scale(1);      box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
}
.notif-item.tapped { animation: notifRipple 0.35s ease forwards; }

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}
.notif-item.unread { background: #fff8ff; border-left-color: #f5576c; }
.notif-item.read   { opacity: 0.65; }

/* Tip bazlı kenarlık renkleri */
.notif-item.type-heart    { border-left-color: #f5576c; }
.notif-item.type-memory   { border-left-color: #43e97b; }
.notif-item.type-todo     { border-left-color: #4facfe; }
.notif-item.type-letter   { border-left-color: #667eea; }
.notif-item.type-activity { border-left-color: #f7971e; }
.notif-item.type-badge    { border-left-color: #ffd700; }
.notif-item.type-quote    { border-left-color: #a855f7; }
.notif-item.type-day      { border-left-color: #ec4899; }
.notif-item.type-schedule { border-left-color: #06b6d4; }

.notif-icon  { font-size: 26px; flex-shrink: 0; margin-top: 1px; }
.notif-body  { flex: 1; min-width: 0; }
.notif-title { font-size: 13px; font-weight: 800; color: #222; margin-bottom: 2px; }
.notif-text  { font-size: 12px; color: #666; line-height: 1.5; }
.notif-time  { font-size: 10px; color: #bbb; margin-top: 4px; font-weight: 600; }

/* Yönlendirme oku — sayfa hedefi varsa göster */
.notif-arrow {
    flex-shrink: 0; align-self: center;
    font-size: 12px; color: #ccc;
    transition: color 0.15s, transform 0.15s;
    margin-left: 2px;
}
.notif-item:hover  .notif-arrow { color: #888; transform: translateX(2px); }
.notif-item:active .notif-arrow { transform: translateX(4px); }
.notif-item.no-page .notif-arrow { display: none; }

/* Okunmamış nokta — başlığın yanında */
.notif-unread-dot {
    display: inline-block; width: 7px; height: 7px;
    background: #f5576c; border-radius: 50%;
    margin-left: 5px; vertical-align: middle;
    flex-shrink: 0;
}
.notif-item.read .notif-unread-dot { display: none; }

.notif-empty {
    text-align: center; padding: 60px 20px; color: #ccc;
}
.notif-empty-icon { font-size: 48px; margin-bottom: 10px; }
.notif-empty-text { font-size: 14px; font-weight: 600; }

/* Sekme navigasyonu */
.nav-tabs {
    display: flex; overflow-x: auto; background: #f8f9fa;
    border-bottom: 2px solid #dee2e6; scrollbar-width: none;
    position: relative; z-index: 10;
}
.nav-tabs::-webkit-scrollbar { display: none; }

.nav-tab {
    padding: 14px 18px; background: none; border: none;
    cursor: pointer; font-size: 13px; font-weight: 600; color: #999;
    white-space: nowrap; transition: all 0.25s;
    border-bottom: 3px solid transparent;
}
.nav-tab.active {
    color: #f093fb; border-bottom: 3px solid #f093fb;
    background: linear-gradient(to bottom, transparent, rgba(240,147,251,0.05));
}
/* :active → mobil UX bloğunda tanımlı (dosya sonu) */

/* Sayfa içerikleri */
/* ── SAYFA İÇERİĞİ — alt home bar için güvenli alan ────────
   padding-bottom: env(safe-area-inset-bottom) → iPhone'un
   alt çubuğunun (home indicator) üzerine içerik taşmaz.  */
.page { display: none; padding: 18px 16px calc(100px + env(safe-area-inset-bottom)); animation: pageSlideIn 0.3s ease; position: relative; z-index: 1; }
.page.active { display: block; }

@keyframes pageSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Bölüm başlığı */
.section-title {
    font-size: 15px; font-weight: 700; color: #555;
    margin-bottom: 14px; padding-bottom: 9px;
    border-bottom: 2px solid #f5f5f5;
    display: flex; align-items: center; gap: 7px; letter-spacing: 0.2px;
}

/* ── ÖZEL GÜNLER ───────────────────────────────────────── */
.special-days-section { margin-bottom: 20px; }

.special-day-card {
    border-radius: 18px; padding: 20px; margin-bottom: 0;
    color: white; position: relative; overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.special-day-card::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 150px; height: 150px; border-radius: 50%;
    background: rgba(255,255,255,0.08); pointer-events: none;
}

/* Kart renk temaları */
.card-pink   { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.card-purple { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.card-blue   { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.card-green  { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.card-orange { background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%); }
.card-red    { background: linear-gradient(135deg, #ff5f6d 0%, #ffc371 100%); }

.card-top     { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; gap: 8px; }
.card-name    { font-size: 18px; font-weight: 700; flex: 1; }
.card-type-badge { background: rgba(255,255,255,0.25); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.card-date    { font-size: 13px; opacity: 0.85; margin-bottom: 12px; }
.card-countdown,
.card-counter { background: rgba(255,255,255,0.2); padding: 10px 15px; border-radius: 12px; font-size: 15px; font-weight: 700; margin-bottom: 12px; border-left: 3px solid rgba(255,255,255,0.4); }
.card-actions { display: flex; gap: 8px; margin-top: 8px; }
.card-btn     { background: rgba(255,255,255,0.25); border: none; color: white; padding: 11px 16px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.3s; }
.card-btn:hover { background: rgba(255,255,255,0.4); }
.card-btn:active { background: rgba(255,255,255,0.5); transform: scale(0.97); }

/* Bugün parlayan kart */
.card-today { animation: todayGlow 2s ease-in-out infinite; }
@keyframes todayGlow {
    0%, 100% { box-shadow: 0 8px 25px rgba(240,147,251,0.4); }
    50%       { box-shadow: 0 8px 40px rgba(240,147,251,0.8); }
}

/* Kart giriş animasyonu */
@keyframes cardSlideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
.card-new { animation: cardSlideIn 0.4s ease; }

/* ── DEEP-LINK HIGHLIGHT ─────────────────────────────────
   Ana sayfa yaklaşan gün → Özel Günler deep-link.
   2 pulse döngüsü, pembe/lila glow, 2.4s toplam süre.   */
@keyframes deepHighlightPulse {
    0%   { transform: scale(1);    box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
    20%  { transform: scale(1.03); box-shadow: 0 0 0 4px rgba(240,147,251,0.8), 0 12px 36px rgba(240,147,251,0.5); }
    40%  { transform: scale(1);    box-shadow: 0 0 0 2px rgba(240,147,251,0.4), 0 8px 24px rgba(240,147,251,0.25); }
    65%  { transform: scale(1.03); box-shadow: 0 0 0 4px rgba(240,147,251,0.8), 0 12px 36px rgba(240,147,251,0.5); }
    85%  { transform: scale(1);    box-shadow: 0 0 0 2px rgba(240,147,251,0.35), 0 8px 20px rgba(240,147,251,0.2); }
    100% { transform: scale(1);    box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
}
.special-day-card.deep-highlight {
    animation: deepHighlightPulse 2.4s ease-in-out forwards;
    position: relative;
    z-index: 2;
}

/* ── ANILAR DEEP-LINK HIGHLIGHT ──────────────────────────
   Zaman Tüneli → Anılar sayfası deep-link.
   outline kullanımı: overflow:hidden olan parent'lardan etkilenmez.
   2 pulse, pembe/lila tema, 2.4s.                          */
@keyframes memoryHighlightPulse {
    0%   { outline: 0px solid rgba(240,147,251,0);   transform: scale(1); }
    20%  { outline: 4px solid rgba(240,147,251,0.85); transform: scale(1.015); }
    40%  { outline: 2px solid rgba(240,147,251,0.4);  transform: scale(1); }
    65%  { outline: 4px solid rgba(240,147,251,0.85); transform: scale(1.015); }
    85%  { outline: 2px solid rgba(240,147,251,0.3);  transform: scale(1); }
    100% { outline: 0px solid rgba(240,147,251,0);   transform: scale(1); }
}
.swipe-container.memory-highlighted {
    animation: memoryHighlightPulse 2.4s ease-in-out forwards;
    position: relative;
    z-index: 2;
}

/* ── KAYDIRMA (SWIPE) AKSIYONLARI ─────────────────────── */
.swipe-container {
    position: relative; overflow: hidden;
    border-radius: 18px; margin-bottom: 15px;
}

.swipe-actions {
    position: absolute; right: 0; top: 0; bottom: 0;
    display: flex; align-items: center; gap: 8px; padding: 0 8px;
    transform: translateX(100%); transition: transform 0.3s ease;
}

.swipe-container.swiped .swipe-actions { transform: translateX(0); }
.swipe-container.swiped .special-day-card,
.swipe-container.swiped .activity-card,
.swipe-container.swiped .custom-quote-item,
.swipe-container.swiped .todo-card,
.swipe-container.swiped .letter-card,
.swipe-container.swiped .quiz-my-question-item { transform: translateX(-120px); }
/* Anılar 3 buton — daha geniş swipe alanı */
.swipe-container.swiped .memory-card { transform: translateX(-170px); }

.swipe-btn { width: 55px; height: 55px; border: none; border-radius: 14px; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.swipe-btn-edit   { background: #6366f1; }
.swipe-btn-delete { background: #ef4444; }

/* ── AY GRUBU BAŞLIĞI ──────────────────────────────────── */
.month-group   { margin-bottom: 20px; }
.month-header  {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white; padding: 14px 18px; border-radius: 14px;
    cursor: pointer; user-select: none;
}
.month-header-left { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.month-badge  { background: rgba(255,255,255,0.28); padding: 2px 10px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.month-arrow  { transition: transform 0.3s ease; }
.month-arrow.open { transform: rotate(180deg); }

.month-content { overflow: hidden; max-height: 0; transition: max-height 0.4s ease; }
.month-content.open { max-height: 9999px; padding-top: 10px; padding-bottom: 10px; }

.month-group .swipe-container { margin-bottom: 12px; }

/* Anılar sayfasına özel ay başlığı — yumuşak lila-pembe gradient */
#page-memories .month-header {
    background: linear-gradient(135deg, #c084fc 0%, #f093fb 100%);
}
#page-memories .month-badge {
    background: rgba(255,255,255,0.30);
    font-weight: 700;
}

/* ── MODAL RENK SEÇİCİ ─────────────────────────────────── */
.color-picker { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.color-dot { width: 35px; height: 35px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; transition: all 0.3s; }
.color-dot.selected { border-color: #333; transform: scale(1.2); }

/* Gün tipi seçici */
.type-selector { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 8px; }
.type-option { padding: 10px; border: 2px solid #ddd; border-radius: 10px; cursor: pointer; text-align: center; font-size: 13px; font-weight: 600; transition: all 0.3s; background: white; }
.type-option.selected { border-color: #f093fb; background: #fef3ff; color: #d946ef; }

/* ── ANA SAYFA — BİRLİKTELİK KARTI ───────────────────── */
.counter-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 45%, #fd8451 100%);
    background-size: 200% 200%;
    animation: counterCardShift 6s ease infinite;
    color: white; padding: 24px 20px 20px; border-radius: 24px;
    text-align: center; margin-bottom: 16px;
    box-shadow: 0 12px 32px rgba(240,147,251,0.4);
    position: relative; overflow: hidden;
}
@keyframes counterCardShift {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}
.counter-card::before { content: ''; position: absolute; top: -60px; right: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,0.07); pointer-events: none; }
.counter-card::after  { content: ''; position: absolute; bottom: -50px; left: -30px;  width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,0.05); pointer-events: none; }

.counter-card-top   { font-size: 13px; font-weight: 600; opacity: 0.85; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; position: relative; z-index: 1; }
.counter-number-wrap { position: relative; z-index: 1; margin: 6px 0 4px; }
.counter-number { font-size: 80px; font-weight: 900; line-height: 1; text-shadow: 0 4px 24px rgba(0,0,0,0.18); letter-spacing: -2px; display: inline-block; will-change: transform; }
.counter-unit   { font-size: 17px; font-weight: 700; opacity: 0.88; margin-top: 2px; }

.counter-date-strip {
    background: rgba(255,255,255,0.15); border-radius: 12px; padding: 9px 16px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 16px; position: relative; z-index: 1; font-size: 13px; font-weight: 600;
}

.live-clock { display: none; }

/* Yıl/Ay/Gün grid */
.time-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    margin-top: 14px;
    margin-bottom: 0;
}

.time-box {
    background: rgba(255,255,255,0.18);
    padding: 14px 8px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.25);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.time-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 14px 14px 0 0; background: rgba(255,255,255,0.35); }
.time-box:hover { transform: translateY(-2px); background: rgba(255,255,255,0.25); }
.time-val { font-size: 32px; font-weight: 900; line-height: 1.1; color: white; text-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.time-lbl { font-size: 12px; color: rgba(255,255,255,0.72); margin-top: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* İstatistik şerit */
.home-stat-item:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }

/* Kalp bölümü — kutu kaldırıldı, kalp doğrudan arka planda */
.heart-section { text-align: center; margin: 4px 0 12px; padding: 18px 20px; background: transparent; position: relative; }
.heart-section::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.06) 60%, transparent 80%); pointer-events: none; }
.heart-emoji { font-size: 100px; cursor: pointer; display: block; animation: heartPulse 1.8s ease-in-out infinite; filter: drop-shadow(0 8px 24px rgba(245,87,108,0.5)); will-change: transform; user-select: none; transition: transform 0.1s; position: relative; z-index: 1; }
.heart-emoji:active { transform: scale(0.85) !important; }

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.12); }
}

.heart-stats-row   { display: flex; gap: 10px; margin-top: 10px; justify-content: center; }
.heart-stat-pill   { background: rgba(255,255,255,0.22); border-radius: 20px; padding: 6px 14px; font-size: 13px; font-weight: 700; color: white; display: flex; align-items: center; gap: 6px; }
.heart-stat-total  { font-size: 15px; font-weight: 900; background: linear-gradient(135deg,#fff,rgba(255,255,255,0.8)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Romantik mesaj kartı */
.romantic-card {
    background: linear-gradient(135deg, #ffeef8 0%, #fff5fb 100%);
    border-radius: 20px; padding: 18px 20px; text-align: center;
    box-shadow: 0 3px 14px rgba(240,147,251,0.15); border: 1.5px solid rgba(240,147,251,0.25);
    cursor: pointer; transition: all 0.25s; position: relative; overflow: hidden; margin-bottom: 16px;
    animation: cardReveal 0.65s cubic-bezier(0.34,1.56,0.64,1) both;
}
.romantic-card::before { content: ''; position: absolute; top: -30px; right: -20px; width: 100px; height: 100px; border-radius: 50%; background: rgba(240,147,251,0.08); pointer-events: none; }
.romantic-card:hover  { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(240,147,251,0.25); }
.romantic-card:active { transform: scale(0.98); }
.romantic-card-hint   { font-size: 12px; color: #e9a8f5; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.romantic-card-text   { font-size: 16px; font-style: italic; color: #c026d3; line-height: 1.65; font-weight: 500; position: relative; z-index: 1; }

/* Yaklaşan özel gün kartı */
.upcoming-day-card {
    border-radius: 18px; padding: 16px 18px; margin-bottom: 16px; color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 16px rgba(102,126,234,0.3);
    display: flex; align-items: center; gap: 14px; cursor: pointer; transition: all 0.25s;
}
.upcoming-day-card:hover  { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(102,126,234,0.4); }
.upcoming-day-card:active { transform: scale(0.98); }
.upcoming-day-icon   { font-size: 32px; flex-shrink: 0; }
.upcoming-day-info   { flex: 1; }
.upcoming-day-name   { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.upcoming-day-sub    { font-size: 12px; opacity: 0.82; }
.upcoming-day-badge  { background: rgba(255,255,255,0.22); border-radius: 20px; padding: 6px 12px; font-size: 13px; font-weight: 700; white-space: nowrap; text-align: center; }

/* Yaklaşan görev kartı (tarihli yapılacaklar) */
.upcoming-todo-card {
    border-radius: 18px; padding: 14px 16px; margin-bottom: 16px; color: #1e293b;
    background: linear-gradient(135deg, #e0fbe2 0%, #bbf7d0 100%);
    box-shadow: 0 4px 14px rgba(34,197,94,0.25);
    display: flex; align-items: center; gap: 12px; cursor: pointer; transition: all 0.2s;
}
.upcoming-todo-card:hover  { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(34,197,94,0.35); }
.upcoming-todo-card:active { transform: scale(0.98); }
.upcoming-todo-icon { font-size: 32px; flex-shrink: 0; }
.upcoming-todo-info { flex: 1; }
.upcoming-todo-title { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.upcoming-todo-date  { font-size: 12px; color: #374151; }

/* ── NE YAPSAK SAYFASI ─────────────────────────────────── */
#page-activities { background: #f5f5f5; min-height: calc(100vh - 180px); }

.activity-random-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px; padding: 30px 25px; margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(102,126,234,0.3); position: relative; overflow: hidden;
}
.activity-random-section::before { content: ''; position: absolute; top: -50%; right: -20%; width: 200px; height: 200px; background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%); border-radius: 50%; animation: floatBubble 6s ease-in-out infinite; }
.activity-random-section::after  { content: ''; position: absolute; bottom: -30%; left: -10%;  width: 150px; height: 150px; background: radial-gradient(circle, rgba(255,255,255,0.1)  0%, transparent 70%); border-radius: 50%; animation: floatBubble 8s ease-in-out infinite reverse; }

@keyframes floatBubble {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%       { transform: translate(20px,20px) scale(1.1); }
}

.activity-slot-machine {
    background: rgba(255,255,255,0.2); backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3); border-radius: 20px;
    padding: 50px 25px; margin-bottom: 20px; position: relative; overflow: hidden;
    min-height: 140px; display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
}

.activity-slot-text { font-size: 24px; font-weight: 700; color: white; text-align: center; line-height: 1.4; position: relative; z-index: 1; text-shadow: 0 3px 15px rgba(0,0,0,0.3); }
.activity-slot-text.spinning { animation: slotSpin 0.1s linear infinite; }

@keyframes slotSpin {
    0%   { transform: translateY(0);    opacity: 1; }
    50%  { transform: translateY(-10px); opacity: 0.5; }
    100% { transform: translateY(10px);  opacity: 1; }
}

.activity-slot-text.result { animation: slotResult 0.6s cubic-bezier(0.68,-0.55,0.265,1.55); }
@keyframes slotResult {
    0%   { transform: scale(0.3) rotate(-5deg); opacity: 0; }
    50%  { transform: scale(1.15) rotate(2deg); }
    100% { transform: scale(1) rotate(0deg);    opacity: 1; }
}

.activity-pick-btn {
    width: 100%; padding: 18px; background: white; color: #667eea; border: none;
    border-radius: 16px; font-size: 17px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.68,-0.55,0.265,1.55); position: relative; z-index: 1;
}
.activity-pick-btn:hover  { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.activity-pick-btn:active { transform: translateY(0) scale(0.98); }

.activity-dice { font-size: 28px; animation: diceRoll 3s ease-in-out infinite; }
@keyframes diceRoll {
    0%, 100% { transform: rotate(0deg) scale(1); }
    20%       { transform: rotate(-20deg) scale(1.1); }
    40%       { transform: rotate(20deg) scale(0.9); }
    60%       { transform: rotate(-15deg) scale(1.05); }
    80%       { transform: rotate(10deg) scale(0.95); }
}

/* Açılır klasör (aktivite listesi) */
.activity-folder { background: #fafafa; border-radius: 18px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.06), 0 6px 20px rgba(0,0,0,0.04); margin-bottom: 20px; border: 1px solid #e8e8e8; }
.activity-folder-header { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; background: linear-gradient(135deg,rgba(102,126,234,0.07),rgba(118,75,162,0.07)); transition: background 0.3s; border-bottom: 1px solid rgba(102,126,234,0.12); }
.activity-folder-header:active { background: linear-gradient(135deg,rgba(102,126,234,0.13),rgba(118,75,162,0.13)); }
.activity-folder-left  { display: flex; align-items: center; gap: 10px; }
.activity-folder-icon  { font-size: 22px; line-height: 1; }
.activity-folder-title { font-size: 16px; font-weight: 700; color: #667eea; }
.activity-count-badge  { background: linear-gradient(135deg,#667eea,#764ba2); color: white; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; min-width: 24px; text-align: center; }
.activity-folder-arrow { font-size: 14px; color: #667eea; transition: transform 0.3s ease; }
.activity-folder-arrow.open { transform: rotate(90deg); }
.activity-folder-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.activity-folder-content.open { max-height: 3000px; overflow-y: auto; padding: 15px; }
.activity-folder-content #activitiesList .swipe-container:last-child { margin-bottom: 0; }

.activity-card { background: white; border-radius: 18px; padding: 24px; box-shadow: 0 2px 10px rgba(0,0,0,0.06), 0 6px 20px rgba(0,0,0,0.04); position: relative; transition: all 0.3s ease; border-left: 4px solid #667eea; }
.activity-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: linear-gradient(180deg,#667eea,#764ba2); border-radius: 16px 0 0 16px; }
.activity-card-text { font-size: 17px; color: #333; font-weight: 500; line-height: 1.6; letter-spacing: 0.3px; }

/* ── YAPILACAKLAR SAYFASI ──────────────────────────────── */
#page-todos { background: #f5f5f5; min-height: calc(100vh - 180px); }

.todo-progress-section { background: #fafafa; border-radius: 18px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.06), 0 6px 20px rgba(0,0,0,0.04); border: 1px solid #e8e8e8; }
.todo-progress-info    { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.todo-progress-label   { font-size: 15px; font-weight: 700; color: #555; }
.todo-progress-count   { font-size: 14px; font-weight: 700; color: #43e97b; }
.todo-progress-bar     { width: 100%; height: 12px; background: #e0e0e0; border-radius: 10px; overflow: hidden; }
.todo-progress-fill    { height: 100%; background: linear-gradient(90deg,#43e97b,#38f9d7); border-radius: 10px; transition: width 0.5s cubic-bezier(0.68,-0.55,0.265,1.55); width: 0%; box-shadow: 0 2px 8px rgba(67,233,123,0.4); }

/* Todo klasörü */
.todo-folder { background: #fafafa; border-radius: 18px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.06), 0 6px 20px rgba(0,0,0,0.04); margin-bottom: 15px; border: 1px solid #e8e8e8; }
.todo-folder-header { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; background: linear-gradient(135deg,rgba(67,233,123,0.07),rgba(56,249,215,0.07)); transition: background 0.3s; border-bottom: 1px solid rgba(67,233,123,0.12); }
.todo-folder-header:active { background: linear-gradient(135deg,rgba(67,233,123,0.13),rgba(56,249,215,0.13)); }
.todo-folder-left  { display: flex; align-items: center; gap: 10px; }
.todo-folder-icon  { font-size: 22px; line-height: 1; }
.todo-folder-title { font-size: 16px; font-weight: 700; color: #43e97b; }
.todo-count-badge  { background: linear-gradient(135deg,#43e97b,#38f9d7); color: white; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; min-width: 24px; text-align: center; }
.todo-count-badge.completed { background: linear-gradient(135deg,#a8a8a8,#d0d0d0); }
.todo-folder-arrow { font-size: 14px; color: #43e97b; transition: transform 0.3s ease; }
.todo-folder-arrow.open { transform: rotate(90deg); }
.todo-folder-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.todo-folder-content.open { max-height: 5000px; padding: 15px; }

/* Todo kartı */
.todo-card { background: white; border-radius: 18px; padding: 18px; box-shadow: 0 2px 10px rgba(0,0,0,0.06), 0 6px 20px rgba(0,0,0,0.04); display: flex; align-items: center; gap: 15px; position: relative; transition: all 0.3s ease; border-left: 4px solid #43e97b; }
.todo-card.completed { border-left-color: #d0d0d0; opacity: 0.7; }

.todo-checkbox { width: 28px; height: 28px; border: 3px solid #43e97b; border-radius: 50%; cursor: pointer; position: relative; flex-shrink: 0; transition: all 0.3s cubic-bezier(0.68,-0.55,0.265,1.55); }
.todo-checkbox.checked { background: linear-gradient(135deg,#43e97b,#38f9d7); border-color: #43e97b; }
.todo-checkbox.checked::after { content: '✓'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(1); color: white; font-size: 16px; font-weight: 700; animation: checkPop 0.4s cubic-bezier(0.68,-0.55,0.265,1.55); }

@keyframes checkPop {
    0%   { transform: translate(-50%,-50%) scale(0) rotate(-45deg); }
    50%  { transform: translate(-50%,-50%) scale(1.2) rotate(10deg); }
    100% { transform: translate(-50%,-50%) scale(1) rotate(0deg); }
}

.todo-text { flex: 1; font-size: 16px; color: #333; font-weight: 500; line-height: 1.5; word-break: break-word; }
.todo-card.completed .todo-text { text-decoration: line-through; color: #999; }

.todo-due {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── ANILAR SAYFASI ────────────────────────────────────── */
#page-memories { background: #f5f5f5; min-height: calc(100vh - 180px); }

.memory-filter { display: flex; gap: 8px; margin-bottom: 15px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.memory-filter::-webkit-scrollbar { display: none; }
#pinnedMemories, #memoriesList { position: relative; }

.mem-filter-btn { padding: 8px 16px; border: 1.5px solid rgba(240,147,251,0.4); background: white; color: #f093fb; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; min-height: 36px; }
.mem-filter-btn.active { background: linear-gradient(135deg,#f093fb,#f5576c); color: white; border-color: transparent; }

/* Anı kartı */
.memory-card {
    background: white; border-radius: 18px; overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
    margin-bottom: 0; position: relative; border: 1px solid #ececec;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.memory-card:active { transform: scale(0.985); box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
/* Yorum alanına tıklanınca kart titremesini engelle */
.memory-comments:active,
.memory-comments *:active { transform: none; box-shadow: none; }

.memory-card-header { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.memory-card-header::after { content: ''; position: absolute; bottom: 0; left: 16px; right: 16px; height: 1px; background: rgba(255,255,255,0.2); }
.memory-card-left  { display: flex; align-items: center; gap: 10px; }
.memory-emoji      { font-size: 28px; line-height: 1; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.15)); }
.memory-title      { font-size: 15px; font-weight: 700; color: white; letter-spacing: 0.1px; text-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.memory-mood-badge { background: rgba(255,255,255,0.22); backdrop-filter: blur(4px); color: white; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; border: 1px solid rgba(255,255,255,0.25); }
.memory-card-body  { padding: 14px 18px 16px; }
.memory-text       { font-size: 14px; color: #2d2d2d; line-height: 1.75; margin-bottom: 13px; word-break: break-word; }

.memory-meta      { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid #efefef; }
.memory-meta-item { font-size: 12px; color: #777; display: flex; align-items: center; gap: 4px; background: #f2f2f2; padding: 4px 10px; border-radius: 20px; }
.memory-author-badge { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; color: white; letter-spacing: 0.3px; }

.author-tekin  { background: linear-gradient(135deg,#4facfe,#00f2fe); }
.author-suheda { background: linear-gradient(135deg,#f093fb,#f5576c); }
.pin-badge     { background: #ffd200; color: #333; padding: 3px 9px; border-radius: 20px; font-size: 10px; font-weight: 700; }

/* Duygu renkleri (kart arka planı) */
.mood-mutlu    { background: linear-gradient(135deg,#f7971e,#ffd200); }
.mood-heyecanlı { background: linear-gradient(135deg,#f093fb,#f5576c); }
.mood-romantik  { background: linear-gradient(135deg,#f5576c,#f093fb); }
.mood-eğlenceli { background: linear-gradient(135deg,#43e97b,#38f9d7); }
.mood-üzgün    { background: linear-gradient(135deg,#a18cd1,#fbc2eb); }
.mood-özel     { background: linear-gradient(135deg,#4facfe,#00f2fe); }

/* Emoji/duygu seçici */
.emoji-opt.selected { border-color: #f093fb; background: #fff0ff; }

.mood-picker { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 8px; }
.mood-opt { padding: 8px; border: 2px solid #ddd; border-radius: 10px; cursor: pointer; text-align: center; font-size: 12px; font-weight: 600; color: #666; transition: all 0.2s; background: white; }
.mood-opt.selected { border-color: #f093fb; background: #fff0ff; color: #d946ef; }

/* Yorum bölümü */
.memory-comments { background: #f8f9fa; border-top: 1px solid #e0e0e0; padding: 12px 16px; margin-top: 10px; }
.comments-header { font-size: 13px; font-weight: 700; color: #666; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }

.comment-item-wrapper { margin-bottom: 10px; }
.comment-item { background: white; padding: 10px 14px; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); border: 1px solid #f5f5f5; position: relative; user-select: none; }
.comment-item:active { background: #f5f5f5; }

.comment-header       { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.comment-header-left  { display: flex; align-items: center; gap: 8px; }
.comment-menu-btn     { background: none; border: none; font-size: 18px; color: #999; cursor: pointer; padding: 2px 6px; line-height: 1; }
.comment-menu-btn:active { color: #f093fb; }

.comment-menu { position: absolute; right: 8px; top: 35px; background: white; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 10; overflow: hidden; display: none; }
.comment-menu.active { display: block; }
.comment-menu-item { padding: 12px 16px; border: none; background: white; width: 100%; text-align: left; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.comment-menu-item:active { background: #f5f5f5; }
.comment-menu-item.edit   { color: #6366f1; }
.comment-menu-item.delete { color: #ef4444; border-top: 1px solid #f0f0f0; }

.comment-author { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 8px; color: white; }
.comment-time   { font-size: 11px; color: #999; }
.comment-text   { font-size: 14px; color: #333; line-height: 1.5; }

.comment-input-row { display: flex; gap: 8px; margin-top: 8px; }
.comment-input     { flex: 1; padding: 8px 12px; border: 1.5px solid #e8e8e8; border-radius: 20px; font-size: 16px; font-family: inherit; background: white; }
.comment-input:focus { outline: none; border-color: #f093fb; }
.comment-send-btn  { background: linear-gradient(135deg,#f093fb,#f5576c); color: white; border: none; border-radius: 20px; padding: 11px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }

/* Sabitlenmiş anı etiketi */
.pinned-label { font-size: 13px; font-weight: 700; color: #f5576c; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; padding-bottom: 10px; border-bottom: 2px solid #f5f5f5; }

/* Anı ay grubu */

/* ── GÜNÜN SÖZÜ SAYFASI ────────────────────────────────── */
.quote-tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.quote-tabs::-webkit-scrollbar { display: none; }
.quote-tab { padding: 10px 14px; border: 1.5px solid rgba(240,147,251,0.45); background: white; color: #f093fb; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all 0.2s; }
.quote-tab.active { background: linear-gradient(135deg,#f093fb,#f5576c); color: white; border-color: transparent; }
.quote-tab-content { display: none; }
.quote-tab-content.active { display: block; }

/* Söz kartı */
.quote-card { border-radius: 20px; padding: 28px 20px; color: white; position: relative; min-height: 280px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,0.15); will-change: opacity; }
.quote-card.anim-out { animation: fadeOut 0.2s ease forwards; }
.quote-card.anim-in  { animation: fadeIn2 0.3s ease forwards; }

@keyframes fadeOut { to { opacity: 0; transform: scale(0.97); } }
@keyframes fadeIn2 { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }

/* Kategori renkleri */
.qc-romantic   { background: linear-gradient(135deg,#f093fb,#f5576c); }
.qc-motivation { background: linear-gradient(135deg,#4facfe,#00f2fe); }
.qc-funny      { background: linear-gradient(135deg,#f7971e,#ffd200); }
.qc-life       { background: linear-gradient(135deg,#059669,#0891b2); }
.qc-custom     { background: linear-gradient(135deg,#a18cd1,#fbc2eb); }

/* Kategori tipografisi */
.qc-romantic   .quote-text { font-family: Georgia, 'Times New Roman', serif; font-size: 18px; line-height: 1.75; font-style: italic; font-weight: normal; letter-spacing: 0; }
.qc-romantic   .quote-author { font-style: normal; opacity: 1; letter-spacing: 0.3px; }
.qc-life       .quote-text { font-family: Georgia, serif; font-style: italic; font-weight: normal; line-height: 1.75; }
.qc-motivation .quote-text { font-family: 'Montserrat', sans-serif; font-weight: 700; }
.qc-funny      .quote-text { font-family: 'Nunito', sans-serif; }

.quote-category { font-size: 12px; font-weight: 700; background: rgba(255,255,255,0.25); padding: 4px 12px; border-radius: 20px; margin-bottom: 10px; }
.quote-icon     { font-size: 32px; margin-bottom: 12px; }
.quote-text     { font-size: 18px; line-height: 1.7; font-style: italic; font-weight: 500; margin-bottom: 12px; }
.quote-author   { font-size: 13px; opacity: 0.85; font-weight: 600; }
.quote-fav-btn  { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.25); border: none; border-radius: 50%; width: 44px; height: 44px; font-size: 18px; cursor: pointer; transition: transform 0.2s; }
.quote-fav-btn:active { transform: scale(1.3); }

/* Kategori filtresi */
.cat-filter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 15px; padding-bottom: 2px; }
.cat-filter::-webkit-scrollbar { display: none; }
.cat-btn { padding: 8px 14px; border: 1.5px solid rgba(0,0,0,0.12); background: white; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; color: #555; transition: all 0.2s; min-height: 36px; }
.cat-btn.active { border-color: #f093fb; color: #f093fb; background: #fce7ff; }

/* Kart güvertesi */
.quote-deck-wrapper { position: relative; }
.quote-deck { position: relative; min-height: 280px; }

/* Navigasyon butonları */
.quote-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 15px; }
.quote-nav-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #f093fb; background: white; color: #f093fb; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.quote-nav-btn:active { background: #f093fb; color: white; }

/* Kişisel söz listesi */
.custom-quote-item { background: white; border: 1px solid #f0f0f0; border-radius: 14px; padding: 16px; display: flex; align-items: flex-start; gap: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.custom-quote-item:active { transform: scale(0.99); }
.custom-quote-cat-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.custom-quote-body { flex: 1; }
.custom-quote-text { font-size: 15px; font-style: italic; color: #333; line-height: 1.6; margin-bottom: 8px; }
.custom-quote-meta { display: flex; align-items: center; gap: 10px; }
.custom-quote-badge { font-size: 11px; padding: 3px 10px; border-radius: 20px; color: white; font-weight: 600; }
.custom-quote-author { font-size: 12px; color: #999; }

#customQuotesList .swipe-container,
#favoritesList .swipe-container { margin-bottom: 10px; }

/* Favori söz kartı */

/* ── İSTATİSTİK SAYFASI ────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 15px; }
.stat-card  { color: white; padding: 16px 12px; border-radius: 18px; text-align: center; box-shadow: 0 3px 12px rgba(0,0,0,0.1); }
.stat-card.stat-card-link { cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.stat-card.stat-card-link:active { transform: scale(0.97); box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.stat-card .number { font-size: 34px; font-weight: 800; margin-bottom: 3px; }
.stat-card .label  { font-size: 13px; opacity: 0.9; font-weight: 600; }

/* Profil kartları */
.profile-stat-card { background: white; border-radius: 20px; padding: 18px 12px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.06), 0 6px 20px rgba(0,0,0,0.04); border: 2px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease, background 0.2s ease; cursor: pointer; }
.profile-stat-card:active { transform: scale(0.97); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.profile-stat-card.active-user { border-color: #f093fb; box-shadow: 0 4px 20px rgba(240,147,251,0.3); background: linear-gradient(135deg,#fef9ff,#fff0fe); }
.profile-avatar  { font-size: 36px; margin-bottom: 6px; }
.profile-name    { font-size: 16px; font-weight: 700; color: #333; margin-bottom: 7px; }
.profile-streak  { font-size: 12px; background: linear-gradient(135deg,#ff9a56,#ff6b35); color: white; padding: 4px 10px; border-radius: 20px; display: inline-block; margin-bottom: 5px; font-weight: 700; }
.profile-points  { font-size: 13px; color: #aaa; font-weight: 600; }

/* ── ROZET SİSTEMİ ─────────────────────────────────────── */
.badge-accordion   { background: white; border-radius: 18px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.06), 0 6px 20px rgba(0,0,0,0.04); overflow: hidden; }
.badge-acc-header  { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; cursor: pointer; user-select: none; background: white; transition: background 0.2s; }
.badge-acc-header:active { background: #fdf2ff; }
.badge-acc-left    { display: flex; align-items: center; gap: 10px; }
.badge-acc-avatar  { font-size: 26px; }
.badge-acc-name    { font-size: 15px; font-weight: 700; color: #333; }
.badge-acc-summary { font-size: 12px; color: #999; margin-top: 2px; }
.badge-acc-earned-count { background: linear-gradient(135deg,#f093fb,#f5576c); color: white; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.badge-acc-arrow   { font-size: 13px; color: #bbb; transition: transform 0.3s ease; margin-left: 8px; }
.badge-acc-arrow.open { transform: rotate(180deg); }
.badge-acc-body    { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.badge-acc-body.open { max-height: 3000px; }
.badge-acc-inner   { padding: 0 14px 16px; }

/* Rozet grid */
.badges-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; padding: 4px 0 8px; }
.badge-item  { display: flex; flex-direction: column; align-items: center; padding: 12px 6px 10px; border-radius: 14px; background: #f8f9fa; border: 2px solid #eee; transition: all 0.25s ease; text-align: center; min-height: 116px; gap: 4px; box-sizing: border-box; cursor: pointer; position: relative; }
.badge-item.earned { background: linear-gradient(135deg,#ffeef8,#fff6fe); border-color: #f093fb; box-shadow: 0 2px 10px rgba(240,147,251,0.2); }
.badge-item.locked { opacity: 0.38; filter: grayscale(0.8); }
.badge-item.earned:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,0.13); }

.badge-icon  { font-size: 24px; line-height: 1; }
.badge-name  { font-size: 11px; font-weight: 700; color: #555; line-height: 1.25; }
.badge-item.earned .badge-name { color: #d946ef; }

.badge-progress-text { font-size: 10px; color: #bbb; font-weight: 600; }
.badge-item.earned .badge-progress-text { color: #f093fb; }

.badge-tier-pill { display: inline-block; font-size: 10px; font-weight: 700; color: white; padding: 2px 8px; border-radius: 14px; margin: 2px 0; letter-spacing: 0.3px; text-transform: uppercase; }

.badge-contrib        { margin-top: 3px; font-size: 10px; line-height: 1.3; }
.badge-contrib.shared { color: #bbb; font-weight: 600; }
.badge-contrib.split  { display: flex; gap: 4px; }
.bc-person            { padding: 1px 5px; border-radius: 6px; font-weight: 700; font-size: 10px; }
.bc-person.tekin      { background: #dbeafe; color: #2563eb; }
.bc-person.suheda     { background: #fce7f3; color: #db2777; }

.badge-mini-bar  { margin-top: 4px; background: #e8e8e8; border-radius: 4px; height: 3px; overflow: hidden; }
.badge-mini-fill { height: 100%; border-radius: 4px; background: linear-gradient(to right,#f093fb,#f5576c); }

/* Rozet tooltip */
.badge-item:hover .badge-tooltip { opacity: 1; }
.badge-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 4px solid transparent; border-top-color: #222; }

/* ── DUYGU GRAFİĞİ ─────────────────────────────────────── */
.mood-chart-card { background: white; border-radius: 16px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.06), 0 6px 20px rgba(0,0,0,0.04); }
.mood-bar-row   { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mood-bar-label { font-size: 13px; width: 90px; flex-shrink: 0; font-weight: 600; color: #555; }
.mood-bar-track { flex: 1; background: #f0f0f0; border-radius: 10px; height: 14px; overflow: hidden; }
.mood-bar-fill  { height: 100%; border-radius: 10px; transition: width 0.8s cubic-bezier(0.4,0,0.2,1); }
.mood-bar-count { font-size: 12px; font-weight: 700; color: #888; width: 28px; text-align: right; flex-shrink: 0; }

/* ── MEKTUP KUTUSU ─────────────────────────────────────── */
#page-letters { background: #f5f5f5; min-height: calc(100vh - 180px); }

.letter-card { background: white; border-radius: 18px; padding: 20px; margin-bottom: 0; box-shadow: 0 2px 10px rgba(0,0,0,0.06), 0 6px 20px rgba(0,0,0,0.04); border-left: 4px solid #667eea; position: relative; transition: transform 0.3s ease; will-change: transform; }
.letter-card.locked { border-left-color: #ccc; background: #fafafa; }

.letter-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.letter-title    { font-size: 16px; font-weight: 700; color: #333; flex: 1; }
.letter-lock-badge { font-size: 22px; flex-shrink: 0; margin-left: 8px; }

.letter-meta { font-size: 12px; color: #aaa; margin-bottom: 8px; display: flex; gap: 12px; flex-wrap: wrap; }
.letter-meta span { display: flex; align-items: center; gap: 4px; }

.letter-unlock-date { display: inline-block; background: linear-gradient(135deg,#667eea,#764ba2); color: white; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 10px; }
.letter-unlock-date.soon  { background: linear-gradient(135deg,#f7971e,#ffd200); color: #5c3a00; }
.letter-unlock-date.today { background: linear-gradient(135deg,#43e97b,#38f9d7); color: #1a5c3a; }

.letter-content-locked { background: linear-gradient(135deg,#f0f0f0,#e8e8e8); border-radius: 12px; padding: 20px; text-align: center; color: #aaa; font-size: 14px; font-style: italic; }
.letter-content-locked .lock-big { font-size: 36px; display: block; margin-bottom: 8px; }

/* Kağıt dokusu — açık mektuplar için */
.letter-content-open {
    background: repeating-linear-gradient(transparent, transparent 27px, rgba(180,180,180,0.18) 28px), linear-gradient(135deg,#fffef8,#fef9f0) !important;
    font-family: 'Georgia', serif !important; font-size: 15px !important;
    color: #2c2c2c !important; line-height: 1.9 !important; padding: 22px 18px !important;
    border-radius: 12px;
}

.letter-author-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; color: white; }
.letter-author-badge.tekin  { background: linear-gradient(135deg,#4facfe,#00f2fe); }
.letter-author-badge.suheda { background: linear-gradient(135deg,#f093fb,#f5576c); }

.letter-filter     { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.letter-filter::-webkit-scrollbar { display: none; }
.letter-filter-btn { padding: 8px 16px; border: 1.5px solid rgba(102,126,234,0.4); background: white; color: #667eea; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; min-height: 36px; }
.letter-filter-btn.active { background: linear-gradient(135deg,#667eea,#764ba2); color: white; border-color: transparent; }

/* Açılan mektup animasyonu */
@keyframes letterUnlock {
    0%   { transform: scale(0.9) rotate(-2deg); opacity: 0; }
    60%  { transform: scale(1.04) rotate(1deg); }
    100% { transform: scale(1) rotate(0deg);   opacity: 1; }
}
.letter-card.just-unlocked { animation: letterUnlock 0.55s cubic-bezier(0.34,1.56,0.64,1); }

/* Canlı geri sayım */
.letter-live-cd { display: flex; gap: 8px; justify-content: center; margin: 10px 0; }
.cd-unit { background: rgba(255,255,255,0.15); border-radius: 10px; padding: 6px 10px; text-align: center; min-width: 48px; }
.cd-val  { font-size: 18px; font-weight: 900; color: white; }
.cd-lbl  { font-size: 11px; opacity: 0.72; color: white; }

/* Mektup yorumları */
.letter-reactions { margin-top: 12px; border-top: 1px solid #f0f0f0; padding-top: 10px; }
.lr-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0 6px;
    border: none;
    background: none;
    font-size: 12px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
}
.lr-arrow {
    font-size: 11px;
    color: #aaa;
    margin-left: 6px;
}
.lr-body {
    margin-top: 4px;
}
.lr-body.collapsed {
    display: none;
}
.letter-reaction-item { background: #f8f8f8; border-radius: 14px; padding: 8px 12px; margin-bottom: 6px; }
.lr-author { font-size: 11px; font-weight: 800; color: #f093fb; margin-bottom: 2px; }
.lr-text   { font-size: 13px; color: #444; }
.lr-input-row { display: flex; gap: 8px; margin-top: 8px; }
.lr-input  { flex: 1; border: 1.5px solid #eee; border-radius: 10px; padding: 8px 12px; font-size: 16px; outline: none; transition: border-color 0.2s; }
.lr-input:focus { border-color: #f093fb; }
.lr-send   { background: linear-gradient(135deg,#f093fb,#f5576c); color: white; border: none; border-radius: 12px; padding: 10px 14px; font-size: 12px; font-weight: 700; cursor: pointer; }

/* Koşullu açılış onay barı */
.letter-approval-bar { background: linear-gradient(135deg,#fff3cd,#ffeaa7); border-radius: 12px; padding: 10px 14px; margin: 8px 0; font-size: 13px; color: #856404; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.approve-btn { background: linear-gradient(135deg,#43e97b,#38f9d7); color: white; border: none; border-radius: 10px; padding: 5px 12px; font-size: 12px; font-weight: 700; cursor: pointer; margin-left: auto; flex-shrink: 0; }

/* ── ERKEN AÇILIŞ İSTEĞİ — Early Unlock ──────────────────
   Kilitli mektup kilit simgesine tıklandığında gönderilir.
   İstek sahibi: pastel mor • Karşı taraf: sıcak pembe     */

/* Kilit simgesi — tıklanabilir olduğunu göster */
.letter-lock-badge.clickable {
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    filter: drop-shadow(0 1px 4px rgba(102,126,234,0.3));
}
.letter-lock-badge.clickable:active { transform: scale(0.85); }

/* İstek sahibinin gördüğü durum — "bekliyorum" */
.early-unlock-pending {
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    border: 1.5px solid rgba(168,85,247,0.3);
    border-radius: 14px; padding: 12px 14px; margin: 8px 0;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.early-unlock-pending .eu-icon { font-size: 22px; flex-shrink: 0; }
.early-unlock-pending .eu-text { font-size: 13px; color: #7c3aed; font-weight: 600; flex: 1; line-height: 1.5; }
.eu-cancel-btn {
    background: rgba(124,58,237,0.12); color: #7c3aed;
    border: 1.5px solid rgba(124,58,237,0.25); border-radius: 10px;
    padding: 5px 12px; font-size: 12px; font-weight: 700;
    cursor: pointer; flex-shrink: 0; transition: all 0.2s;
}
.eu-cancel-btn:active { opacity: 0.7; }

/* Karşı tarafın gördüğü istek kartı — dikkat çekici */
.early-unlock-request {
    background: linear-gradient(135deg, #fff0f6, #fce7f3);
    border: 2px solid rgba(236,72,153,0.35);
    border-radius: 14px; padding: 14px 16px; margin: 8px 0;
    animation: euPulse 2.2s ease-in-out infinite;
}
@keyframes euPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(236,72,153,0); }
    50%      { box-shadow: 0 0 0 6px rgba(236,72,153,0.12); }
}
.eu-req-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.eu-req-icon   { font-size: 24px; }
.eu-req-title  { font-size: 14px; font-weight: 800; color: #be185d; }
.eu-req-desc   { font-size: 13px; color: #9d174d; line-height: 1.55; margin-bottom: 10px; }
.eu-req-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.eu-approve-btn {
    flex: 1; background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white; border: none; border-radius: 12px;
    padding: 10px 16px; font-size: 14px; font-weight: 800;
    cursor: pointer; box-shadow: 0 4px 14px rgba(240,147,251,0.35);
    transition: all 0.2s;
}
.eu-approve-btn:active { transform: scale(0.97); }
.eu-decline-btn {
    background: rgba(0,0,0,0.06); color: #888;
    border: 1.5px solid #e5e5e5; border-radius: 12px;
    padding: 10px 14px; font-size: 13px; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
}
.eu-decline-btn:active { opacity: 0.7; }

/* Mektup mini takvimi */
.letter-cal { background: white; border-radius: 16px; padding: 14px; box-shadow: 0 3px 12px rgba(0,0,0,0.07); margin-bottom: 16px; }
.letter-cal-hdr   { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.letter-cal-title { font-size: 13px; font-weight: 800; color: #333; }
.letter-cal-grid  { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
.cal-hdr  { font-size: 9px; font-weight: 700; color: #bbb; text-align: center; padding: 2px 0; }
.cal-day  { aspect-ratio: 1; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #555; }
.cal-day.has-letter { background: linear-gradient(135deg,#f093fb,#f5576c); color: white; font-weight: 700; cursor: pointer; transition: transform 0.15s; }
.cal-day.has-letter:active { transform: scale(0.9); }
.cal-day.today-mk   { border: 2px solid #f093fb; font-weight: 700; }

/* Mektup yorum düzenle/sil butonları */
.lr-reaction-actions { display: flex; gap: 5px; margin-top: 5px; }
.lr-action-btn { background: none; border: 1px solid #eee; border-radius: 8px; padding: 3px 9px; font-size: 11px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.lr-action-btn.edit   { color: #6366f1; border-color: #c7d2fe; }
.lr-action-btn.edit:active { background: #eef2ff; }
.lr-action-btn.delete { color: #ef4444; border-color: #fecaca; }
.lr-action-btn.delete:active { background: #fef2f2; }

/* Takvim filtre aktif */

/* Hikayemiz bölümü */
.story-card {
    background: linear-gradient(135deg, #fff8f0 0%, #ffeef8 100%);
    border-radius: 20px; padding: 24px; margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06), 0 8px 24px rgba(240,147,251,0.12);
    border: 2px solid rgba(240,147,251,0.2);
}
.story-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.story-icon   { font-size: 32px; }
.story-title-block { flex: 1; }
.story-title  { font-size: 17px; font-weight: 800; color: #c026d3; }
.story-sub    { font-size: 12px; color: #d946ef; opacity: 0.7; margin-top: 2px; }
.story-text   { font-size: 15px; color: #333; line-height: 1.8; font-family: 'Georgia', serif; }
.story-text.empty { color: #bbb; font-style: italic; font-size: 14px; }
.story-actions { display: flex; gap: 8px; margin-top: 14px; }
.story-edit-btn {
    padding: 12px 18px; background: linear-gradient(135deg,#f093fb,#f5576c);
    color: white; border: none; border-radius: 12px; font-size: 13px; font-weight: 700; cursor: pointer;
    transition: all 0.2s;
}
.story-edit-btn:active { transform: scale(0.97); }
.story-save-btn {
    padding: 12px 18px; background: linear-gradient(135deg,#43e97b,#38f9d7);
    color: white; border: none; border-radius: 12px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.story-textarea { width: 100%; min-height: 160px; padding: 14px; border: 2px solid rgba(240,147,251,0.3); border-radius: 14px; font-size: 16px; font-family: 'Georgia', serif; line-height: 1.8; color: #333; background: rgba(255,255,255,0.8); resize: vertical; box-sizing: border-box; outline: none; transition: border-color 0.2s; }
.story-textarea:focus { border-color: #f093fb; }

/* Mum mühürü */
.wax-seal { display: flex; justify-content: center; margin: 10px 0 6px; }
.wax-seal svg { filter: drop-shadow(0 3px 8px rgba(0,0,0,0.25)); }
@keyframes sealWiggle { 0%,100%{transform:rotate(0deg) scale(1);} 25%{transform:rotate(-3deg) scale(1.04);} 75%{transform:rotate(3deg) scale(1.04);} }
@keyframes sealCrack  { 0%{transform:scale(1) rotate(0deg);opacity:1;} 25%{transform:scale(1.1) rotate(-4deg);opacity:1;} 55%{transform:scale(0.9) rotate(8deg);opacity:0.7;} 100%{transform:scale(0) rotate(20deg);opacity:0;} }
.letter-card.locked        .wax-seal svg { animation: sealWiggle 3.2s ease-in-out infinite; }
.letter-card.just-unlocked .wax-seal svg { animation: sealCrack 0.65s ease forwards; }

/* ── BOŞTUR (EMPTY STATE) ───────────────────────────────── */
.empty-state      { text-align: center; padding: 40px 20px; color: #bbb; }
.empty-state-icon { font-size: 48px; margin-bottom: 10px; }
.empty-state-text { font-size: 15px; color: #bbb; font-weight: 500; }

/* ── YÜZEYSEl EKLE BUTONU ──────────────────────────────── */
/* ── YÜZEYSEl EKLE BUTONU — alt güvenli alan ───────────────
   bottom değeri home indicator'ın üzerine çıkacak şekilde
   env(safe-area-inset-bottom) ile hesaplanır.            */
.floating-add {
    position: fixed; bottom: calc(28px + env(safe-area-inset-bottom)); right: 20px;
    width: 56px; height: 56px;
    background: linear-gradient(135deg,#f093fb,#f5576c);
    color: white; border: none; border-radius: 50%; font-size: 28px;
    cursor: pointer; box-shadow: 0 6px 20px rgba(240,147,251,0.5);
    transition: all 0.3s cubic-bezier(0.68,-0.55,0.265,1.55);
    z-index: 99; display: none; align-items: center; justify-content: center;
}
.page.active .floating-add { display: flex; }
.floating-add:active { transform: scale(0.92); }
.floating-add:hover  { transform: scale(1.08); box-shadow: 0 8px 25px rgba(240,147,251,0.6); }

/* ── MODAL KUTUSU ──────────────────────────────────────── */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 1000; overflow-y: auto; }
.modal.active { display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-content { background: white; padding: 28px 24px; border-radius: 20px; max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.modal-header  { font-size: 20px; font-weight: 700; color: #333; margin-bottom: 20px; }
.modal-buttons { display: flex; gap: 10px; margin-top: 20px; }
.modal-buttons .btn { flex: 1; }

/* ── TOAST BİLDİRİM ────────────────────────────────────── */
#toastContainer { position: fixed; bottom: calc(90px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 99999; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: 90%; max-width: 360px; }
.toast { background: rgba(30,30,30,0.92); color: white; padding: 13px 20px; border-radius: 16px; font-size: 14px; font-weight: 600; text-align: center; box-shadow: 0 6px 24px rgba(0,0,0,0.25); backdrop-filter: blur(10px); animation: toastIn 0.3s cubic-bezier(0.68,-0.55,0.265,1.55); pointer-events: all; max-width: 100%; }
.toast.success { background: linear-gradient(135deg,#43e97b,#38f9d7); color: #1a5c3a; }
.toast.error   { background: linear-gradient(135deg,#ff5f6d,#ffc371); color: #7a1a00; }
.toast.info    { background: linear-gradient(135deg,#4facfe,#00f2fe); color: #0a3a5c; }
.toast.warning { background: linear-gradient(135deg,#f7971e,#ffd200); color: #5c3a00; }

@keyframes toastIn  { from { opacity: 0; transform: translateY(20px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0) scale(1); }     to { opacity: 0; transform: translateY(10px) scale(0.9); } }

/* ── ONAY MODALI ───────────────────────────────────────── */
#confirmModal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999999; display: none; align-items: flex-end; justify-content: center; padding: 20px; pointer-events: all; }
#confirmModal.active { display: flex; }

/* ── İZİN TALEP EKRANI — Şık bottom-sheet ───────────────── */
.confirm-box    { background: white; border-radius: 24px 24px 20px 20px; padding: 28px 24px 20px; width: 100%; max-width: 400px; text-align: center; animation: slideUp 0.3s ease; }
.confirm-icon   { font-size: 40px; margin-bottom: 12px; }
.confirm-title  { font-size: 17px; font-weight: 700; color: #222; margin-bottom: 8px; }
.confirm-msg    { font-size: 14px; color: #666; margin-bottom: 24px; line-height: 1.5; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.confirm-btn-cancel { padding: 14px; border: 2px solid #eee; background: #f8f9fa; border-radius: 14px; font-size: 15px; font-weight: 700; color: #666; cursor: pointer; }
.confirm-btn-ok     { padding: 14px; border: none; background: linear-gradient(135deg,#f093fb,#f5576c); border-radius: 14px; font-size: 15px; font-weight: 700; color: white; cursor: pointer; }
.confirm-btn-ok.danger { background: linear-gradient(135deg,#ff5f6d,#e74c3c); }

/* ── SAYAÇ SLOT (YUKARI KAYMA) ANİMASYONU ─────────────── */
@keyframes slotRollUp {
    0%   { transform: translateY(44px) scale(0.9); opacity: 0; }
    55%  { transform: translateY(-6px) scale(1.03); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}
.counter-number.slot-animate { animation: slotRollUp 0.6s cubic-bezier(0.23,1,0.32,1) both; }
.time-grid .counter-number.slot-animate { animation: slotRollUp 0.45s cubic-bezier(0.23,1,0.32,1) both; }

/* ── SAAT BAZLI DİNAMİK ARKA PLAN ─────────────────────── */
.app-bg-morning   { background: linear-gradient(160deg,#fff9e6,#ffebd0) !important; }
.app-bg-afternoon { background: linear-gradient(160deg,#fff0f5,#fce4ec) !important; }
.app-bg-evening   { background: linear-gradient(160deg,#ede7f6,#c5cae9) !important; }
.app-bg-night     { background: linear-gradient(160deg,#1a1a2e,#16213e) !important; }
/* Gece modu: yalnızca renk değişir, safe-area padding korunur */
.app-bg-night .app-header { background: rgba(14,14,32,0.98); }
.app-bg-night .section-title { color: #e0e0e0; }

/* Dinamik arka plan — Anılar, Ne Yapsak, Yapılacaklar, Mektuplar, Hikayemiz */
.app-bg-morning  #page-memories,
.app-bg-morning  #page-activities,
.app-bg-morning  #page-todos,
.app-bg-morning  #page-letters,
.app-bg-morning  #page-story    { background: linear-gradient(160deg,#fff3d0,#ffe5c0) !important; }

.app-bg-afternoon #page-memories,
.app-bg-afternoon #page-activities,
.app-bg-afternoon #page-todos,
.app-bg-afternoon #page-letters,
.app-bg-afternoon #page-story   { background: linear-gradient(160deg,#ffe8f0,#fad4e4) !important; }

.app-bg-evening  #page-memories,
.app-bg-evening  #page-activities,
.app-bg-evening  #page-todos,
.app-bg-evening  #page-letters,
.app-bg-evening  #page-story    { background: linear-gradient(160deg,#e5dff5,#bdc4e2) !important; }

.app-bg-night    #page-memories,
.app-bg-night    #page-activities,
.app-bg-night    #page-todos,
.app-bg-night    #page-letters,
.app-bg-night    #page-story    { background: linear-gradient(160deg,#12122a,#0d1a30) !important; }
.app-bg-night    .memory-card,
.app-bg-night    .activity-card,
.app-bg-night    .todo-card,
.app-bg-night    .letter-card,
.app-bg-night    .todo-progress-section,
.app-bg-night    .todo-folder { background: #1e2040 !important; border-color: #2a2e55 !important; }
.app-bg-night    .activity-folder { background: #1e2040 !important; border-color: #2a2e55 !important; }
.app-bg-night    .activity-folder-title { color: #a5b4fc; }
.app-bg-night    .activity-folder-arrow { color: #a5b4fc; }
.app-bg-night    .activity-pick-btn     { background: rgba(255,255,255,0.15); color: white; }
.app-bg-night    .todo-text  { color: #e0e0e0 !important; }
.app-bg-night    .todo-progress-label  { color: rgba(255,255,255,0.6); }
.app-bg-night    .todo-progress-count  { color: #6ee7a0; }
.app-bg-night    .todo-due             { color: rgba(255,255,255,0.5); }
.app-bg-night    .todo-folder-title    { color: #6ee7a0; }
.app-bg-night    .todo-folder-arrow    { color: #6ee7a0; }
.app-bg-night    .activity-card-text { color: #e0e0e0 !important; }
.app-bg-night    .letter-title { color: #e0e0e0; }
.app-bg-night    .story-card { background: linear-gradient(135deg,#1e1a2e,#2a1a30) !important; }
.app-bg-night    .story-text { color: #e0e0e0; }
.app-bg-night    .story-title { color: #f0c0f8; }
.app-bg-night    .story-sub   { color: rgba(240,147,251,0.7); opacity: 1; }
.app-bg-night    .story-textarea {
    background: rgba(30,26,60,0.9);
    color: #e0d8f0;
    border-color: rgba(240,147,251,0.3);
}

/* ── GECE MODU: MODAL & CONFIRM ─────────────────────────── */
.app-bg-night .modal-content {
    background: #1e2040;
}
.app-bg-night .modal-header {
    color: #e8e0ff;
}
.app-bg-night .form-group label {
    color: rgba(255,255,255,0.75);
}
.app-bg-night .form-group input,
.app-bg-night .form-group textarea,
.app-bg-night .form-group select {
    background: #252545;
    color: #e0e0f8;
    border-color: #2a2e55;
}
.app-bg-night .form-group input::placeholder,
.app-bg-night .form-group textarea::placeholder {
    color: rgba(255,255,255,0.28);
}
.app-bg-night .form-group input:focus,
.app-bg-night .form-group textarea:focus,
.app-bg-night .form-group select:focus {
    border-color: #f093fb;
    box-shadow: 0 0 0 3px rgba(240,147,251,0.15);
}
.app-bg-night .modal-buttons .btn-secondary {
    background: #252545;
    color: #b0b0cc;
    border-color: #2a2e55;
}
/* Confirm dialog */
.app-bg-night .confirm-box {
    background: #1e2040;
}
.app-bg-night .confirm-title {
    color: #e8e0ff;
}
.app-bg-night .confirm-msg {
    color: rgba(255,255,255,0.6);
}
.app-bg-night .confirm-btn-cancel {
    background: #252545;
    color: #b0b0cc;
    border-color: #2a2e55;
}

/* Mektuplar — gece modu */
.app-bg-night    .letter-cal { background: #1e2040 !important; border-color: #2a2e55; }
.app-bg-night    .letter-cal-title { color: #e0e0e0; }
.app-bg-night    .letter-meta { color: rgba(255,255,255,0.5); }
.app-bg-night    .letter-reactions { border-top-color: rgba(255,255,255,0.1); }
.app-bg-night    .letter-reaction-item { background: #252545 !important; color: #d0d0e8; }
.app-bg-night    .lr-text { color: #c8c8e0; }
.app-bg-night    .letter-approval-bar {
    background: linear-gradient(135deg,#2a2040,#322848) !important;
    color: #e0c870;
    border: 1px solid rgba(224,200,112,0.25);
}
.app-bg-night    .letter-content-open {
    background: repeating-linear-gradient(transparent, transparent 27px, rgba(180,180,220,0.12) 28px),
                linear-gradient(135deg,#1e1a30,#1a1628) !important;
    color: #d0cce8 !important;
}

/* ══════════════════════════════════════════════════════════
   TEMA BÜTÜNLÜĞÜ PAKETİ — Gece modu + sabah/öğle/akşam nav
   ══════════════════════════════════════════════════════════ */

/* 1. Gece modu: nav-tabs */
.app-bg-night .nav-tabs {
    background: rgba(14,14,40,0.95);
    border-bottom-color: rgba(255,255,255,0.1);
}
.app-bg-night .nav-tab        { color: rgba(255,255,255,0.45); }
.app-bg-night .nav-tab.active { color: #f093fb; border-bottom-color: #f093fb; }

/* 2. Gece modu: beyaz kartlar */
.app-bg-night .profile-stat-card,
.app-bg-night .badge-accordion,
.app-bg-night .mood-chart-card,
.app-bg-night .quiz-card,
.app-bg-night .quiz-stats-card,
.app-bg-night .mood-widget { background: #1e2040 !important; border-color: #2a2e55; }

/* 3. Gece modu: metin renkleri */
.app-bg-night .profile-name    { color: #e0e0e0; }
.app-bg-night .quiz-card-title { color: rgba(34,197,94,0.8); }
.app-bg-night .quiz-question   { color: #d0d0e8; }
.app-bg-night .quiz-stat-lbl   { color: #8888aa; }
.app-bg-night .mood-widget-title { color: #c084fc; }

/* 4. Gece modu: romantic-card */
.app-bg-night .romantic-card {
    background: linear-gradient(135deg, #2a1a2e, #1e1830) !important;
    border-color: rgba(240,147,251,0.2);
}

/* 5. Sabah / öğle / akşam: nav-tabs hafif tema uyumu */
.app-bg-morning   .nav-tabs { background: rgba(255,249,230,0.95); border-bottom-color: rgba(240,180,80,0.2); }
.app-bg-afternoon .nav-tabs { background: rgba(255,240,245,0.95); border-bottom-color: rgba(240,147,200,0.2); }
.app-bg-evening   .nav-tabs { background: rgba(237,231,246,0.95); border-bottom-color: rgba(180,160,210,0.2); }

/* ── KART FADE-IN GİRİŞ ANİMASYONU ────────────────────── */
@keyframes cardReveal {
    0%   { opacity: 0; transform: translateY(22px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── NOSTALJİ KARTI ────────────────────────────────────── */
.nostalgia-card { background: linear-gradient(135deg,#ffecd2,#fcb69f); border-radius: 18px; padding: 14px 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 14px; box-shadow: 0 4px 16px rgba(252,182,159,0.38); cursor: pointer; transition: transform 0.2s; animation: cardReveal 0.5s cubic-bezier(0.34,1.4,0.64,1) both; }
.nostalgia-card:active { transform: scale(0.97); }
.nostalgia-icon  { font-size: 30px; flex-shrink: 0; }
.nostalgia-body  { flex: 1; }
.nostalgia-lbl   { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: #c0552a; margin-bottom: 3px; }
.nostalgia-title { font-size: 14px; font-weight: 700; color: #7a3020; line-height: 1.3; }
.nostalgia-date  { font-size: 11px; color: #b5613d; margin-top: 2px; }

/* ── AY KUTLAMA BANNERI ────────────────────────────────── */
@keyframes bannerPulse {
    0%,100% { box-shadow: 0 6px 20px rgba(240,147,251,0.45); }
    50%      { box-shadow: 0 10px 32px rgba(240,147,251,0.75); }
}
.month-ann-banner { background: linear-gradient(135deg,#f093fb,#f5576c); border-radius: 18px; padding: 16px 20px; margin-bottom: 16px; text-align: center; color: white; animation: bannerPulse 2s ease-in-out infinite, cardReveal 0.5s ease both; }
.banner-emoji { font-size: 34px; }
.banner-title { font-size: 19px; font-weight: 900; margin: 6px 0 3px; }
.banner-sub   { font-size: 12px; opacity: 0.9; }

/* ── ÖZEL GÜNLER: İLERLEME YÜZÜĞÜ ────────────────────── */

/* ── ÖZEL GÜNLER: YILLIK TEKRAR TOGGLE ────────────────── */
.repeat-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; margin-top: 6px; border-top: 1px solid #f0f0f0; }
.tog-wrap   { width: 48px; height: 26px; background: #ddd; border-radius: 13px; position: relative; cursor: pointer; transition: background 0.3s; flex-shrink: 0; }
.tog-wrap.on { background: linear-gradient(135deg,#f093fb,#f5576c); }
.tog-thumb  { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: white; border-radius: 50%; transition: left 0.3s; box-shadow: 0 1px 5px rgba(0,0,0,0.22); }
.tog-wrap.on .tog-thumb { left: 25px; }

/* ── ÖZEL GÜNLER: TİMELINE MODAL ──────────────────────── */
.timeline-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.52); z-index: 1000; align-items: flex-end; justify-content: center; }
.timeline-overlay.active { display: flex; }
.timeline-sheet { background: white; border-radius: 24px 24px 0 0; width: 100%; max-height: 80vh; overflow-y: auto; padding: 20px 16px 24px; animation: slideUp 0.35s ease; -webkit-overflow-scrolling: touch; }
.tl-item  {
    display: flex; gap: 12px; padding: 10px 12px;
    background: #fafafa; border-radius: 12px; margin-bottom: 8px;
    cursor: pointer; transition: background 0.15s ease, transform 0.1s ease;
    border: 1.5px solid #f0f0f0;
}
.tl-item:last-child { margin-bottom: 0; }
.tl-item:hover  { background: rgba(240,147,251,0.07); border-color: rgba(240,147,251,0.3); }
.tl-item:active { background: rgba(240,147,251,0.14); transform: scale(0.98); border-color: rgba(240,147,251,0.5); }
.tl-dot   {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 4px;
    background: linear-gradient(135deg,#f093fb,#f5576c);
    box-shadow: 0 2px 6px rgba(240,147,251,0.45);
}
.tl-title { font-size: 14px; font-weight: 700; color: #222; line-height: 1.3; }
.tl-date  { font-size: 11px; color: #bbb; margin-top: 3px; font-weight: 500; }
.tl-hint  { font-size: 10px; color: rgba(240,147,251,0.8); font-weight: 600; margin-top: 3px; letter-spacing: 0.3px; }

/* ── AKTİVİTE: KATEGORİ ETİKETLERİ ───────────────────── */

/* ── AKTİVİTE: GRID/LİSTE GÖRÜNÜM TOGGLE ─────────────── */
.view-btns { display: flex; gap: 6px; margin-bottom: 10px; justify-content: flex-end; }
.view-btn  { width: 34px; height: 34px; border-radius: 12px; border: 1.5px solid rgba(0,0,0,0.12); background: white; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.view-btn.active { border-color: #f093fb; background: linear-gradient(135deg,rgba(240,147,251,0.12),rgba(245,87,108,0.07)); }

#activitiesList.grid-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#activitiesList.grid-mode .swipe-container { margin-bottom: 0; }
#activitiesList.grid-mode .activity-card  { padding: 14px 12px; min-height: 80px; display: flex; flex-direction: column; justify-content: space-between; }
#activitiesList.grid-mode .activity-card-text { font-size: 12px; }

/* ── GÖREV: TAMAMLANMA ANİMASYONLARI ──────────────────── */
@keyframes todoWave  { 0%{transform:scale(1);} 35%{transform:scale(1.06);} 65%{transform:scale(0.97);} 100%{transform:scale(1);} }
.todo-card.wave-anim { animation: todoWave 0.42s ease; }

@keyframes rippleGreen { 0%{box-shadow:0 0 0 0 rgba(67,233,123,0.65);} 100%{box-shadow:0 0 0 22px rgba(67,233,123,0);} }
.todo-checkbox.ripple { animation: rippleGreen 0.42s ease; }

/* ── GÖREV: ÖNCELİK SİSTEMİ ───────────────────────────── */
.priority-row { display: flex; gap: 6px; margin: 8px 0 0; }
.pri-opt { flex: 1; padding: 7px 4px; border-radius: 12px; border: 1.5px solid rgba(0,0,0,0.12); text-align: center; font-size: 11px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.pri-opt.sel-high   { border-color: #ef4444; background: #fef2f2; color: #ef4444; }
.pri-opt.sel-medium { border-color: #f59e0b; background: #fffbeb; color: #f59e0b; }
.pri-opt.sel-low    { border-color: #22c55e; background: #f0fdf4; color: #22c55e; }
.pri-opt.sel-both   { border-color: #f093fb; background: #fce7ff; color: #c026d3; }
.pri-opt.sel-tekin  { border-color: #667eea; background: #eef2ff; color: #4f46e5; }
.pri-opt.sel-suheda { border-color: #f093fb; background: #fce7ff; color: #c026d3; }

/* Görev atama badge */
.todo-assign-badge {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 11px; font-weight: 700;
    padding: 2px 8px; border-radius: 20px;
    margin-top: 4px;
}
.todo-assign-badge.asn-tekin  { background: #eef2ff; color: #4f46e5; }
.todo-assign-badge.asn-suheda { background: #fce7ff; color: #c026d3; }
.todo-assign-badge.asn-both   { background: #f3f4f6; color: #6b7280; }
.todo-card.priority-high   { border-left-color: #ef4444 !important; }
.todo-card.priority-medium { border-left-color: #f59e0b !important; }
.todo-card.priority-low    { border-left-color: #22c55e !important; }
.todo-pri-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-high   { background: #ef4444; }
.dot-medium { background: #f59e0b; }
.dot-low    { background: #22c55e; }

/* ── ZAMANLI MESAJ POPUP ───────────────────────────────── */
.timed-popup { position: fixed; top: -140px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg,#667eea,#764ba2); color: white; border-radius: 20px; padding: 16px 24px; max-width: 320px; width: calc(100% - 40px); box-shadow: 0 12px 32px rgba(0,0,0,0.28); z-index: 9000; text-align: center; transition: top 0.48s cubic-bezier(0.34,1.56,0.64,1); }
.timed-popup.show { top: 20px; }
.tp-icon  { font-size: 30px; margin-bottom: 5px; }
.tp-text  { font-size: 14px; line-height: 1.55; font-weight: 600; }
.tp-quote { font-size: 12px; opacity: 0.82; font-style: italic; margin-top: 6px; }
.tp-close { position: absolute; top: 10px; right: 14px; background: none; border: none; color: white; font-size: 18px; cursor: pointer; opacity: 0.7; line-height: 1; }

/* ── YARDIMCI ANİMASYONLAR ─────────────────────────────── */
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ── RESPONSIVE DÜZENLEMELER ───────────────────────────── */
@media (max-width: 600px) {
    .time-grid { grid-template-columns: repeat(3,1fr); gap: 8px; }
    .time-box  { padding: 12px 6px; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   SERİNİ KURTAR — Ceza Görevi Overlay CSS
   Kullanıcı 24-72 saat arası girmemişse bu panel çıkar.
   72+ saat: seri sıfırlanır, panel gerekmez.
   ══════════════════════════════════════════════════════════ */

/* Tam ekran karanlık overlay — içerik kilitlendiğinde */
#streakRescueOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 19000;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
}
#streakRescueOverlay.show { display: flex; }

/* Bottom sheet — ceza görevi kartı */
.rescue-sheet {
    background: white;
    border-radius: 28px 28px 20px 20px;
    padding: 28px 22px 30px;
    width: 100%;
    max-width: 440px;
    animation: slideUp 0.45s cubic-bezier(0.34,1.4,0.64,1);
    max-height: 92vh;
    overflow-y: auto;
}

/* Başlık alanı */
.rescue-header { text-align: center; margin-bottom: 20px; }
.rescue-fire   { font-size: 52px; display: block; margin-bottom: 8px;
                 animation: firePulse 1.4s ease-in-out infinite; }
@keyframes firePulse {
    0%,100% { transform: scale(1) rotate(-3deg); }
    50%      { transform: scale(1.12) rotate(3deg); }
}
.rescue-title { font-size: 21px; font-weight: 900; color: #222; margin-bottom: 5px; }
.rescue-sub   { font-size: 14px; color: #888; line-height: 1.55; }

/* Seri sayacı — şu anki değeri gösterir */
.rescue-streak-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg,#ff9a56,#ff6b35);
    color: white; padding: 8px 20px; border-radius: 20px;
    font-size: 15px; font-weight: 800; margin: 12px auto 18px;
}

/* Görev kartı */
.rescue-task-card {
    background: linear-gradient(135deg,#fff7f0,#fff0f5);
    border: 2px solid rgba(240,147,251,0.3);
    border-radius: 20px; padding: 20px 18px; margin-bottom: 18px;
}
.rescue-task-icon { font-size: 38px; display: block; margin-bottom: 10px; text-align: center; }
.rescue-task-name { font-size: 17px; font-weight: 800; color: #c026d3; text-align: center; margin-bottom: 6px; }
.rescue-task-desc { font-size: 13px; color: #666; text-align: center; line-height: 1.6; }

/* İlerleme çubuğu — kalp tıklama görevi için */
.rescue-progress-wrap { margin: 14px 0 4px; }
.rescue-progress-label { display: flex; justify-content: space-between;
                          font-size: 12px; font-weight: 700; color: #aaa; margin-bottom: 6px; }
.rescue-progress-bar  { height: 12px; background: #eee; border-radius: 10px; overflow: hidden; }
.rescue-progress-fill { height: 100%;
                         background: linear-gradient(90deg,#f093fb,#f5576c);
                         border-radius: 10px; transition: width 0.3s ease;
                         width: 0%; }

/* Aksiyon butonu */
.rescue-action-btn {
    width: 100%; padding: 16px; border: none; border-radius: 16px;
    background: linear-gradient(135deg,#f093fb,#f5576c);
    color: white; font-size: 16px; font-weight: 800; cursor: pointer;
    box-shadow: 0 8px 24px rgba(245,87,108,0.35);
    transition: all 0.25s;
}
.rescue-action-btn:active { transform: scale(0.98); }
.rescue-action-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Seri sıfırlandı mesajı — 72+ saat */
#streakResetBanner {
    display: none; position: fixed; top: 0; left: 0; right: 0;
    background: linear-gradient(135deg,#667eea,#764ba2);
    color: white; padding: 14px 20px; text-align: center;
    font-size: 14px; font-weight: 700; z-index: 200;
    animation: slideDown 0.4s ease;
}
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
#streakResetBanner.show { display: block; }

/* Navigasyon kilidi — görev tamamlanmadan sekme değiştirilemesin */
.nav-locked { pointer-events: none; opacity: 0.45 !important; }


/* ══════════════════════════════════════════════════════════
   MOBİL UX İYİLEŞTİRMELERİ — stable-refactor-v1.2
   ══════════════════════════════════════════════════════════ */

/* ── 1. iOS Safari Input Zoom Fix ──────────────────────────
   iOS Safari, font-size < 16px olan input/textarea'ya focus
   gelince sayfayı zoom yapıyor. Sadece mobil breakpoint'te
   override — masaüstü görünümü değişmez.
   ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .comment-input  { font-size: 16px; }
    .lr-input       { font-size: 16px; }
    .story-textarea { font-size: 16px; }
}


/* ── 2. Touch Feedback — Active State ──────────────────────
   Mobilde tıklama anında görsel tepki. Mevcut :active state
   olmayan tıklanabilir elementlere minimal scale eklendi.
   floating-add zaten scale(0.92) içerdiğinden dokunulmadı.
   ────────────────────────────────────────────────────────── */

/* Swipe aksiyonu butonları (düzenle / sil) */
.swipe-btn:active {
    transform: scale(0.88);
    opacity: 0.85;
}

/* Nav tab: mevcut opacity:0.7 korunur, scale eklendi */
.nav-tab:active {
    opacity: 0.7;
    transform: scale(0.95);
}

/* Anı duygu filtresi */
.mem-filter-btn:active {
    transform: scale(0.94);
}

/* Alıntı sekme butonları */
.quote-tab:active {
    transform: scale(0.94);
}


/* ── 3. Modal Açıkken Arka Plan Scroll Kilidi ───────────────
   iOS Safari'de modal arkasındaki sayfa scroll edilebiliyordu.
   CSS :has() ile herhangi bir overlay aktifken body scroll'u
   kilitleniyor. Safari 15.4+, Chrome 105+, Firefox 121+.
   Daha eski tarayıcılarda sessizce degrade olur — hiçbir şey
   kırılmaz, sadece scroll kilidi çalışmaz.
   ────────────────────────────────────────────────────────── */
body:has(.modal.active),
body:has(#notifPanel.open),
body:has(#timelineOverlay.active),
body:has(#streakRescueOverlay.show) {
    overflow: hidden;
    /* iOS Safari overscroll zıplamasını da engelle */
    overscroll-behavior: none;
}


/* ══════════════════════════════════════════════════════════
   MODUMUZ WİDGET — mood.js
   Ana sayfada romantik mesaj kartının altında minimal kart.
   ══════════════════════════════════════════════════════════ */

.mood-widget {
    background: white;
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(240,147,251,0.12);
    border: 1.5px solid rgba(240,147,251,0.18);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Biri highlight moddaysa (kırgın, barışmak, sarılma) hafif öne çık */
.mood-widget--highlighted {
    border-color: rgba(240,147,251,0.45);
    box-shadow: 0 6px 22px rgba(240,147,251,0.22);
}

.mood-widget-header {
    margin-bottom: 10px;
}

.mood-widget-title {
    font-size: 13px;
    font-weight: 700;
    color: #c084fc;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Diğer kişinin modu satırı */
.mood-other-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: rgba(240,147,251,0.07);
    border-radius: 10px;
    min-height: 40px;
}

.mood-other-name {
    font-size: 12px;
    font-weight: 700;
    color: #999;
    flex-shrink: 0;
    min-width: 36px;
}

.mood-other-status {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.mood-other-emoji  { font-size: 17px; line-height: 1; }
.mood-other-label  { font-size: 13px; font-weight: 600; color: #c026d3; }
.mood-other-unknown { font-size: 12px; color: #bbb; font-style: italic; }

/* Kendi seçim satırı */
.mood-my-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mood-my-name {
    font-size: 12px;
    font-weight: 700;
    color: #999;
    flex-shrink: 0;
    min-width: 36px;
}

/* iOS zoom önleme: font-size 16px */
.mood-select {
    flex: 1;
    font-size: 16px;
    font-family: inherit;
    border: 1.5px solid rgba(240,147,251,0.35);
    border-radius: 10px;
    padding: 7px 10px;
    background: white;
    color: #333;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c084fc' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    transition: border-color 0.2s;
}

.mood-select:focus {
    border-color: #c084fc;
}

.mood-send-btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
}

.mood-send-btn:active {
    opacity: 0.85;
    transform: scale(0.95);
}


/* ══════════════════════════════════════════════════════════
   QUIZ KARTI & MODAL — v0.3 "Beni Ne Kadar Tanıyorsun?"
   ══════════════════════════════════════════════════════════ */

.quiz-card {
    background: white;
    border-radius: 18px;
    padding: 14px 16px;
    margin-top: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(67,233,123,0.12);
    border: 1.5px solid rgba(67,233,123,0.2);
}

.quiz-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.quiz-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.quiz-counter {
    font-size: 13px;
    color: #999;
    font-weight: 600;
}

.quiz-question {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.55;
    margin-bottom: 12px;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.quiz-option {
    background: #fafafa;
    border: 1.5px solid rgba(34,197,94,0.2);
    border-radius: 12px;
    padding: 12px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    text-align: center;
    word-break: break-word;
}

.quiz-option:active  { transform: scale(0.96); }
.quiz-option:disabled { cursor: default; }

.quiz-opt-correct {
    background: #dcfce7;
    border-color: #22c55e;
    color: #15803d;
    box-shadow: 0 0 0 2px #22c55e;
}

.quiz-opt-wrong {
    background: #fee2e2;
    border-color: #ef4444;
    color: #b91c1c;
    box-shadow: 0 0 0 2px #ef4444;
}

.quiz-empty {
    font-size: 13px;
    color: #aaa;
    text-align: center;
    padding: 10px 0 6px;
    line-height: 1.5;
}

.quiz-empty-sub {
    display: block;
    font-size: 11px;
    color: #ccc;
    margin-top: 4px;
}

.quiz-add-btn {
    flex: 1;
    background: none;
    border: 1.5px dashed rgba(67,233,123,0.4);
    border-radius: 10px;
    padding: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #22c55e;
    cursor: pointer;
    transition: background 0.15s;
    text-align: center;
}

.quiz-add-btn:active { background: rgba(67,233,123,0.06); }

.quiz-card-footer {
    display: flex;
    gap: 8px;
}

.quiz-hist-btn {
    flex: 1;
    background: none;
    border: 1.5px dashed rgba(240,147,251,0.4);
    border-radius: 10px;
    padding: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #c084fc;
    cursor: pointer;
    transition: background 0.15s;
    text-align: center;
}

.quiz-hist-btn:active { background: rgba(240,147,251,0.06); }

/* Sorularım butonu — turuncu-altın tint */
.quiz-my-btn {
    flex: 1;
    background: none;
    border: 1.5px dashed rgba(251,146,60,0.4);
    border-radius: 10px;
    padding: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #f97316;
    cursor: pointer;
    transition: background 0.15s;
    text-align: center;
}
.quiz-my-btn:active { background: rgba(251,146,60,0.06); }

/* Sorularım liste öğesi */
.quiz-my-question-item {
    padding: 12px 14px;
    background: #fafafa;
    border-radius: 12px;
    transition: transform 0.3s ease;
}
.quiz-my-q-text {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.45;
    margin-bottom: 6px;
}
.quiz-my-q-correct {
    font-size: 12px;
    color: #15803d;
    font-weight: 600;
    margin-bottom: 3px;
}
.quiz-my-q-wrongs {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}
.quiz-my-q-date {
    font-size: 11px;
    color: #bbb;
    font-weight: 500;
}

/* Geçmiş listesi */
.quiz-history-empty {
    text-align: center;
    color: #bbb;
    font-size: 13px;
    padding: 20px 0;
}

.quiz-history-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    margin-bottom: 8px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.quiz-history-item:last-child { border-bottom: 1px solid #f0f0f0; margin-bottom: 0; }

.hist-status { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

.hist-body   { flex: 1; min-width: 0; }

.hist-question {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.35;
}

.hist-answers {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 3px;
}

.hist-mine {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.mine-ok  { background: #dcfce7; color: #15803d; }
.mine-bad { background: #fee2e2; color: #b91c1c; }

.hist-real {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    background: #dcfce7;
    color: #15803d;
}

.quiz-history-item.hist-correct { border-left: 3px solid #22c55e; }
.quiz-history-item.hist-wrong   { border-left: 3px solid #ef4444; }

.hist-date { font-size: 11px; color: #bbb; margin-top: 3px; }

/* Quiz istatistik özet kartı (stats sayfası) */
.quiz-stats-card {
    background: white;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(67,233,123,0.12);
    border: 1.5px solid rgba(67,233,123,0.2);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.quiz-stats-card:active { transform: scale(0.97); box-shadow: 0 2px 8px rgba(67,233,123,0.08); }

.quiz-stats-title {
    font-size: 13px;
    font-weight: 700;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.quiz-stats-person-label {
    font-size: 13px;
    font-weight: 700;
    color: #22c55e;
    margin: 8px 0 6px;
}

.quiz-stats-other-label {
    color: #a78bfa;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.quiz-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    text-align: center;
}

.quiz-stat-item {
    background: rgba(34,197,94,0.05);
    border-radius: 8px;
    padding: 6px 2px;
}

.quiz-stat-num {
    font-size: 18px;
    font-weight: 800;
    color: #22c55e;
    line-height: 1.1;
}

.quiz-stat-lbl {
    font-size: 11px;
    color: #999;
    font-weight: 600;
    margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════
   MOBİL UX — Grup A İyileştirmeleri (v24 patch)
   Eksik :active geri bildirimler — dokunmatik tutarlılık
   ══════════════════════════════════════════════════════════ */

/* Mektuplar filtresi */
.letter-filter-btn:active { transform: scale(0.96); opacity: 0.85; }

/* Söz kategorisi filtresi */
.cat-btn:active { transform: scale(0.96); opacity: 0.85; }

/* Yorum gönder */
.comment-send-btn:active { transform: scale(0.96); opacity: 0.85; }

/* Mektup tepki gönder */
.lr-send:active { transform: scale(0.96); opacity: 0.85; }

/* Hikaye kaydet */
.story-save-btn:active { transform: scale(0.97); opacity: 0.88; }

/* Görünüm değiştirme butonları (aktiviteler) */
.view-btn:active { transform: scale(0.94); opacity: 0.8; }

/* Modal kapat / ikincil buton */
.btn-secondary:active { transform: scale(0.97); opacity: 0.85; }

/* ══════════════════════════════════════════════════════════
   QUIZ MODAL — Eksik CSS tanımları (v43 patch)
   btn-primary, modal-footer, form-label, form-input, modal-body
   ══════════════════════════════════════════════════════════ */

/* 1-A: Kaydet / Kapat butonu — .btn ile aynı görünüm */
.btn-primary {
    flex: 1;
    padding: 14px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
}
.btn-primary:active { transform: scale(0.98); opacity: 0.9; }

/* 1-B: Modal footer — butonları yan yana flex ile */
.modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.modal-footer .btn-primary,
.modal-footer .btn-secondary { flex: 1; }

.modal-footer .btn-secondary {
    padding: 14px;
    background: white;
    color: #f093fb;
    border: 1.5px solid rgba(240,147,251,0.5);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.modal-footer .btn-secondary:active {
    background: rgba(240,147,251,0.08);
    transform: scale(0.98);
    opacity: 1;
}

/* 1-D: Quiz form alanları için label ve input class tanımları */
.form-label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 13px;
}
.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    color: #333;
    background: #fafafa;
}
.form-input:focus {
    outline: none;
    border-color: #f093fb;
    background: white;
    box-shadow: 0 0 0 3px rgba(240,147,251,0.1);
}

/* 1-F: Modal body minimal spacing */
.modal-body { margin-bottom: 4px; }


