/* =========================================================
   ÇİZGİ ARŞİV — Kullanıcı Sistemi
   Tema değişkenleri (var(--bg), var(--accent) vb.) üstüne inşa edilmiştir.
   ========================================================= */

/* ══════════════════════════════════════════════════════════
   SWEETALERT2 DARK TEMA OVERRIDE
   ══════════════════════════════════════════════════════════ */

/* Ana popup */
.caus-swal-popup.swal2-popup {
    background: #161b22 !important;
    color: #e6edf3 !important;
    border: 1px solid rgba(249,115,22,0.22) !important;
    border-radius: 20px !important;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 24px 64px rgba(0,0,0,0.60) !important;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
}

/* Toast popup */
.swal2-toast {
    background: #1c2128 !important;
    color: #e6edf3 !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.50) !important;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
}
.swal2-toast .swal2-title {
    color: #e6edf3 !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
}

/* Başlık */
.caus-swal-popup .swal2-title {
    color: #e6edf3 !important;
    font-family: "Space Grotesk", sans-serif !important;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
}

/* Alt metin */
.caus-swal-popup .swal2-html-container,
.caus-swal-popup .swal2-content {
    color: #8b949e !important;
    font-size: 0.90rem !important;
}

/* Confirm butonu */
.caus-swal-popup .swal2-confirm,
.swal2-confirm {
    background: linear-gradient(135deg, #f97316, #c2540a) !important;
    border: none !important;
    border-radius: 10px !important;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    padding: 10px 22px !important;
    box-shadow: 0 4px 16px rgba(249,115,22,0.35) !important;
    transition: filter 0.15s ease !important;
}
.caus-swal-popup .swal2-confirm:hover { filter: brightness(1.12) !important; }

/* Cancel butonu */
.caus-swal-popup .swal2-cancel,
.swal2-cancel {
    background: rgba(255,255,255,0.07) !important;
    color: #8b949e !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: 10px !important;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    padding: 10px 22px !important;
}
.caus-swal-popup .swal2-cancel:hover {
    background: rgba(255,255,255,0.10) !important;
    color: #e6edf3 !important;
}

/* Timer progress bar */
.swal2-timer-progress-bar {
    background: #f97316 !important;
}

/* Backdrop */
.swal2-backdrop-show {
    background: rgba(0,0,0,0.65) !important;
    backdrop-filter: blur(4px) !important;
}

/* İkon renkleri */
.swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(74,222,128,0.25) !important; }
.swal2-icon.swal2-error   { border-color: rgba(248,113,113,0.25) !important; }
.swal2-icon.swal2-warning { border-color: rgba(249,115,22,0.25) !important; }

/* ── Paylaşılan Yardımcılar ──────────────────────────────── */
.caus-notice {
    padding: 12px 16px;
    border-radius: var(--r-md);
    font-size: 0.85rem;
    margin-bottom: 16px;
}
.caus-notice-warning {
    background: rgba(249,115,22,0.10);
    border: 1px solid rgba(249,115,22,0.25);
    color: var(--accent);
}

/* ── Alert Kutusu ─────────────────────────────────────────── */
.caus-alert {
    padding: 12px 16px;
    border-radius: var(--r-md);
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}
.caus-alert[hidden] { display: none !important; }
.caus-alert-success {
    background: rgba(34,197,94,0.10);
    border: 1px solid rgba(34,197,94,0.25);
    color: #4ade80;
}
.caus-alert-error {
    background: rgba(239,68,68,0.10);
    border: 1px solid rgba(239,68,68,0.25);
    color: #f87171;
}

/* ── Bildirim Badge (Navbar) ──────────────────────────────── */
.caus-notif-bubble {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    pointer-events: none;
    box-shadow: 0 0 0 2px var(--bg);
    z-index: 5;
}
.ca-profile-pill { position: relative; }

/* ══════════════════════════════════════════════════════════
   AUTH SAYFASI (Giriş & Kayıt) — Premium Redesign
   ══════════════════════════════════════════════════════════ */

@keyframes caus-auth-card-in {
    from { opacity: 0; transform: translateY(28px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
@keyframes caus-auth-orb-pulse {
    0%, 100% { transform: scale(1);    opacity: 0.06; }
    50%       { transform: scale(1.15); opacity: 0.11; }
}
@keyframes caus-auth-icon-pop {
    0%   { transform: scale(0.6) rotate(-12deg); opacity: 0; }
    80%  { transform: scale(1.1) rotate(4deg);   opacity: 1; }
    100% { transform: scale(1)   rotate(0deg);   opacity: 1; }
}

.caus-auth-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
    padding: 40px 16px;
    position: relative;
}

/* Arka plan orb dekorları */
.caus-auth-wrap::before {
    content: '';
    position: fixed;
    top: -15%; left: -10%;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249,115,22,0.10) 0%, transparent 70%);
    animation: caus-auth-orb-pulse 7s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
.caus-auth-wrap::after {
    content: '';
    position: fixed;
    bottom: -10%; right: -5%;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249,115,22,0.07) 0%, transparent 70%);
    animation: caus-auth-orb-pulse 9s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

.caus-auth-card {
    background: rgba(22, 27, 34, 0.88);
    backdrop-filter: blur(36px) saturate(180%);
    -webkit-backdrop-filter: blur(36px) saturate(180%);
    border: 1px solid rgba(249,115,22,0.20);
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    padding: 44px 40px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 24px 64px rgba(0,0,0,0.55),
        0 8px 24px rgba(0,0,0,0.30),
        inset 0 1px 0 rgba(255,255,255,0.06);
    animation: caus-auth-card-in 0.45s cubic-bezier(0.22,1,0.36,1) both;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Kart üst dekor çizgisi */
.caus-auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(249,115,22,0.55) 20%,
        rgba(249,115,22,1.00) 50%,
        rgba(249,115,22,0.55) 80%,
        transparent 100%
    );
}

/* Sağ alt iç parlama */
.caus-auth-card::after {
    content: '';
    position: absolute;
    bottom: -40px; right: -40px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249,115,22,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Başlık */
.caus-auth-header { text-align: center; margin-bottom: 36px; }

.caus-auth-icon {
    width: 72px; height: 72px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(249,115,22,0.18), rgba(249,115,22,0.08));
    border: 1px solid rgba(249,115,22,0.32);
    color: var(--accent);
    font-size: 1.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow:
        0 0 0 6px rgba(249,115,22,0.06),
        0 8px 24px rgba(249,115,22,0.22);
    animation: caus-auth-icon-pop 0.5s cubic-bezier(0.22,1,0.36,1) 0.2s both;
}

.caus-auth-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.70rem;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--text) 55%, rgba(249,115,22,0.85));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.caus-auth-subtitle {
    font-size: 0.87rem;
    color: var(--text-2);
    margin: 0;
    line-height: 1.55;
}

/* Footer metin */
.caus-auth-footer-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-2);
    margin: 24px 0 0;
}
.caus-auth-footer-text .caus-link {
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    padding: 2px 7px;
    border-radius: 6px;
    transition: background 0.15s ease;
}
.caus-auth-footer-text .caus-link:hover {
    background: rgba(249,115,22,0.12);
}

/* ── Form Elemanları ────────────────────────────────────── */
.caus-form { display: flex; flex-direction: column; gap: 18px; }

.caus-form-group { display: flex; flex-direction: column; gap: 6px; }

.caus-form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 6px;
}
.caus-form-label i { opacity: 0.60; font-size: 0.75rem; }

.caus-form-control {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: var(--r-md);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.caus-form-control::placeholder { color: var(--text-3); }
.caus-form-control:focus {
    border-color: rgba(249,115,22,0.55);
    background: var(--surface-3);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.10);
}
.caus-form-control[readonly] {
    opacity: 0.55;
    cursor: not-allowed;
}

.caus-form-hint {
    font-size: 0.75rem;
    color: var(--text-3);
}

.caus-form-group-readonly .caus-form-control { cursor: not-allowed; }

/* Input + toggle buton sarma */
.caus-input-wrap { position: relative; display: flex; align-items: center; }
.caus-input-wrap .caus-form-control { padding-right: 44px; }
.caus-pw-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 0;
    color: var(--text-3);
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    transition: color 0.15s ease;
}
.caus-pw-toggle:hover { color: var(--accent); }

/* Şifre Güç Göstergesi */
.caus-pw-strength { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.caus-pw-strength-bar {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: var(--border-2);
    overflow: hidden;
}
.caus-pw-strength-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--text-3);
    transition: width 0.25s ease, background 0.25s ease;
    width: 0;
}
.caus-pw-strength-fill.s1 { background: #ef4444; }
.caus-pw-strength-fill.s2 { background: #f97316; }
.caus-pw-strength-fill.s3 { background: #eab308; }
.caus-pw-strength-fill.s4 { background: #22c55e; }
.caus-pw-strength-label { font-size: 0.72rem; color: var(--text-2); white-space: nowrap; }

/* Satır: beni hatırla + şifremi unuttum */
.caus-form-row { display: flex; align-items: center; }
.caus-form-row-between { justify-content: space-between; }

/* Checkbox */
.caus-checkbox-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.83rem;
    color: var(--text-2);
    cursor: pointer;
    user-select: none;
}
.caus-checkbox {
    width: 16px; height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Linkler */
.caus-link { color: var(--accent); text-decoration: none; transition: opacity 0.15s; }
.caus-link:hover { opacity: 0.80; text-decoration: underline; }
.caus-link-sm { font-size: 0.82rem; }

/* ── Butonlar ────────────────────────────────────────────── */
.caus-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    height: 42px;
    border-radius: var(--r-md);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease, transform 0.10s ease;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}
.caus-btn:hover { transform: translateY(-1px); }
.caus-btn:active { transform: translateY(0); }
.caus-btn:disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

.caus-btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(249,115,22,0.25);
}
.caus-btn-primary:hover {
    background: var(--accent-light);
    box-shadow: 0 4px 16px rgba(249,115,22,0.35);
}

.caus-btn-outline {
    background: transparent;
    border-color: var(--border-2);
    color: var(--text-2);
}
.caus-btn-outline:hover {
    border-color: rgba(249,115,22,0.35);
    color: var(--accent);
    background: var(--accent-dim);
}

.caus-btn-full { width: 100%; }

.caus-btn-sm {
    height: 34px;
    padding: 0 14px;
    font-size: 0.80rem;
    border-radius: var(--r-sm);
}

/* ══════════════════════════════════════════════════════════
   PROFİL PANELİ — Premium Redesign
   ══════════════════════════════════════════════════════════ */

@keyframes caus-avatar-ring {
    0%   { box-shadow: 0 0 0 0   rgba(249,115,22,0.70), 0 4px 20px rgba(249,115,22,0.30); }
    70%  { box-shadow: 0 0 0 10px rgba(249,115,22,0.00), 0 4px 20px rgba(249,115,22,0.30); }
    100% { box-shadow: 0 0 0 0   rgba(249,115,22,0.00), 0 4px 20px rgba(249,115,22,0.30); }
}
@keyframes caus-hero-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
@keyframes caus-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-4px); }
}
@keyframes caus-empty-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.45; }
    50%       { transform: translateY(-6px); opacity: 0.65; }
}

.caus-profile-wrap {
    padding: 40px 16px 60px;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* ── Hero ─────────────────────────────────────────────────── */
.caus-profile-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px 36px;
    background:
        linear-gradient(135deg,
            rgba(249,115,22,0.08) 0%,
            rgba(249,115,22,0.03) 40%,
            transparent 70%),
        var(--surface);
    border: 1px solid rgba(249,115,22,0.18);
    border-radius: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(0,0,0,0.28),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Üst dekor çizgisi */
.caus-profile-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(249,115,22,0.60) 30%,
        rgba(249,115,22,1.00) 50%,
        rgba(249,115,22,0.60) 70%,
        transparent 100%
    );
}

/* Sağ dekor daire */
.caus-profile-hero::after {
    content: '';
    position: absolute;
    right: -60px; top: -60px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.caus-profile-avatar-wrap {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.caus-profile-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 60%, #fb923c 100%);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Space Grotesk", sans-serif;
    box-shadow:
        0 0 0 3px rgba(249,115,22,0.25),
        0 0 0 6px rgba(249,115,22,0.08),
        0 8px 24px rgba(249,115,22,0.35);
    flex-shrink: 0;
    user-select: none;
    animation: caus-avatar-ring 2.8s ease-out 0.6s;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.caus-profile-avatar:hover {
    transform: scale(1.06);
    box-shadow:
        0 0 0 3px rgba(249,115,22,0.40),
        0 0 0 8px rgba(249,115,22,0.12),
        0 12px 32px rgba(249,115,22,0.45);
}

.caus-profile-avatar-img {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(249,115,22,0.35);
    box-shadow: 0 8px 24px rgba(249,115,22,0.25);
    transition: transform 0.25s ease;
}
.caus-profile-avatar-img:hover { transform: scale(1.05); }

/* Online nokta */
.caus-profile-avatar-wrap::after {
    content: '';
    position: absolute;
    bottom: 3px; right: 3px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid var(--surface);
    box-shadow: 0 0 8px rgba(34,197,94,0.70);
}

.caus-profile-hero-info { position: relative; z-index: 1; }

.caus-profile-hero-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 6px;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text) 60%, rgba(249,115,22,0.80));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.caus-profile-hero-meta {
    font-size: 0.83rem;
    color: var(--text-2);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.caus-profile-hero-meta i {
    opacity: 0.70;
    font-size: 0.76rem;
    color: var(--accent);
}
.caus-hero-sep {
    color: var(--text-3);
    font-size: 0.6rem;
}

.caus-profile-hero-actions {
    position: relative;
    z-index: 1;
}

/* ── Sekmeler ─────────────────────────────────────────────── */
.caus-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0;
    padding: 0 4px;
}
.caus-tabs::-webkit-scrollbar { display: none; }

.caus-tab-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-2);
    border-radius: 10px 10px 0 0;
    text-decoration: none;
    transition: background 0.20s ease, color 0.20s ease, transform 0.15s ease;
    position: relative;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.caus-tab-link:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text);
}
.caus-tab-link i {
    opacity: 0.50;
    font-size: 0.82rem;
    transition: opacity 0.2s, transform 0.2s;
}
.caus-tab-link:hover i { opacity: 0.9; transform: scale(1.10); }

.caus-tab-active {
    color: var(--accent) !important;
    border-bottom-color: var(--accent) !important;
    background: linear-gradient(
        to bottom,
        rgba(249,115,22,0.10),
        rgba(249,115,22,0.04)
    ) !important;
    font-weight: 600 !important;
}
.caus-tab-active::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; right: 50%;
    height: 0;
    background: var(--accent);
    animation: none;
}
.caus-tab-active i { opacity: 1 !important; color: var(--accent); }

/* Badge (sekme içinde) */
.caus-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    font-size: 0.60rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    padding: 0 5px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(249,115,22,0.40);
    animation: caus-float 3s ease-in-out infinite;
}

/* ── Kart ─────────────────────────────────────────────────── */
.caus-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.caus-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(249,115,22,0.45),
        transparent
    );
    opacity: 0;
    transition: opacity 0.25s ease;
}
.caus-card:hover {
    border-color: rgba(249,115,22,0.20);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.28),
        0 0 0 1px rgba(249,115,22,0.08);
}
.caus-card:hover::before { opacity: 1; }

.caus-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 0.90rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.02);
    letter-spacing: -0.01em;
}
.caus-card-header i {
    color: var(--accent);
    font-size: 0.88rem;
    width: 28px; height: 28px;
    background: rgba(249,115,22,0.12);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.caus-card-body { padding: 28px; }

/* ── İki Sütun Grid (Genel Sekmesi) ──────────────────────── */
.caus-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

/* ── Bölüm Başlığı ────────────────────────────────────────── */
.caus-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.caus-section-header-mt { margin-top: 40px; }
.caus-section-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}
.caus-section-title i {
    color: var(--accent);
    font-size: 0.88rem;
    width: 30px; height: 30px;
    background: rgba(249,115,22,0.10);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(249,115,22,0.15);
}

/* ── Boş Durum ────────────────────────────────────────────── */
.caus-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    gap: 16px;
    text-align: center;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.02),
        var(--surface)
    );
    border: 1px dashed rgba(249,115,22,0.20);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}
.caus-empty-state::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(249,115,22,0.04) 0%, transparent 65%);
    pointer-events: none;
}
.caus-empty-state i {
    font-size: 2.8rem;
    color: var(--text-3);
    animation: caus-empty-bounce 3s ease-in-out infinite;
    position: relative;
}
.caus-empty-state p {
    font-size: 0.92rem;
    color: var(--text-2);
    margin: 0;
    position: relative;
}

/* ══════════════════════════════════════════════════════════
   İÇERİK KARTLARI (Devam Et & Favoriler)
   ══════════════════════════════════════════════════════════ */

.caus-item-grid,
.caus-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.caus-content-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}
.caus-content-card:hover {
    border-color: rgba(249,115,22,0.30);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.20);
}

.caus-fav-card .caus-content-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.caus-content-card-thumb {
    position: relative;
    aspect-ratio: 3/4;
    background: var(--surface-2);
    overflow: hidden;
}
.caus-content-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}
.caus-content-card:hover .caus-content-card-thumb img,
.caus-fav-card:hover .caus-content-card-thumb img {
    transform: scale(1.04);
}

.caus-content-card-thumb-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    font-size: 2rem;
}

/* Hover overlay */
.caus-card-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 2; /* Progress bar'ın üstünde kalmasını sağlar, label altında kalabilir */
}
.caus-hover-play-btn {
    background: var(--accent);
    color: #fff;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(12px);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 16px rgba(249,115,22,0.40);
}
.caus-hover-play-btn i { font-size: 0.75rem; }

.caus-content-card:hover .caus-card-hover-overlay {
    opacity: 1;
    visibility: visible;
}
.caus-content-card:hover .caus-hover-play-btn {
    transform: translateY(0);
}

/* İlerleme çubuğu */
.caus-progress-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(0,0,0,0.50);
}
.caus-progress-bar-sm {
    position: static;
    height: 3px;
    border-radius: 999px;
    background: var(--border-2);
    flex: 1;
}
.caus-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 999px 0 0 999px;
    transition: width 0.4s ease;
}
.caus-progress-bar-sm .caus-progress-fill { border-radius: 999px; }
.caus-progress-label {
    position: absolute;
    bottom: 6px; right: 6px;
    font-size: 0.62rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0,0,0,0.60);
    padding: 1px 5px;
    border-radius: var(--r-sm);
    line-height: 1.4;
    backdrop-filter: blur(4px);
}

.caus-content-card-info {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.caus-content-card-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.caus-content-card-meta {
    font-size: 0.70rem;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 4px;
}
.caus-content-card-meta i { font-size: 0.65rem; }

/* Favoriden çıkar butonu */
.caus-fav-remove-btn {
    position: absolute;
    top: 6px; right: 6px;
    background: rgba(0,0,0,0.60);
    border: none;
    border-radius: var(--r-sm);
    color: #fff;
    width: 28px; height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease;
    backdrop-filter: blur(4px);
    z-index: 2;
}
.caus-fav-card:hover .caus-fav-remove-btn { opacity: 1; }
.caus-fav-remove-btn:hover { background: rgba(239,68,68,0.80); }

/* ══════════════════════════════════════════════════════════
   YATAY LİSTE (Tüm Geçmiş)
   ══════════════════════════════════════════════════════════ */

.caus-list { display: flex; flex-direction: column; gap: 1px; }

.caus-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--surface);
    border-radius: var(--r-md);
    transition: background 0.15s ease;
}
.caus-list-item:hover { background: var(--surface-2); }

.caus-list-item-thumb {
    flex-shrink: 0;
    width: 54px;
    text-decoration: none;
    display: block;
    border-radius: var(--r-sm);
    overflow: hidden;
}
.caus-list-item-thumb img {
    width: 54px; height: 72px;
    object-fit: cover;
    border-radius: var(--r-sm);
    display: block;
}
.caus-list-item-thumb-placeholder {
    width: 54px; height: 72px;
    background: var(--surface-2);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
}

.caus-list-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.caus-list-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
}
.caus-list-item-title:hover { color: var(--accent); }

.caus-list-item-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}
.caus-list-item-meta {
    font-size: 0.72rem;
    color: var(--text-3);
    white-space: nowrap;
}

.caus-list-item-del {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-3);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--r-sm);
    opacity: 0;
    transition: opacity 0.15s, color 0.15s, background 0.15s;
    font-size: 0.80rem;
}
.caus-list-item:hover .caus-list-item-del { opacity: 1; }
.caus-list-item-del:hover { color: #f87171; background: rgba(239,68,68,0.12); }

/* ══════════════════════════════════════════════════════════
   BİLDİRİMLER
   ══════════════════════════════════════════════════════════ */

.caus-notif-list { display: flex; flex-direction: column; gap: 2px; }

.caus-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--r-md);
    transition: background 0.15s ease;
    position: relative;
    background: var(--surface);
}
.caus-notif-item:hover { background: var(--surface-2); }

.caus-notif-unread {
    border-left: 3px solid var(--accent);
}
.caus-notif-read {
    border-left: 3px solid transparent;
    opacity: 0.75;
}

.caus-notif-icon {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-top: 2px;
}
.caus-notif-icon--info    { background: rgba(59,130,246,0.12); color: #60a5fa; }
.caus-notif-icon--success { background: rgba(34,197,94,0.12);  color: #4ade80; }
.caus-notif-icon--warning { background: rgba(249,115,22,0.12); color: var(--accent); }
.caus-notif-icon--error   { background: rgba(239,68,68,0.12);  color: #f87171; }

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

.caus-notif-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
}
.caus-notif-title-link {
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s;
}
.caus-notif-title-link:hover { color: var(--accent); }

.caus-notif-message {
    font-size: 0.83rem;
    color: var(--text-2);
    margin: 0 0 4px;
    line-height: 1.5;
}
.caus-notif-date {
    font-size: 0.72rem;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 4px;
}
.caus-notif-date i { font-size: 0.65rem; }

.caus-notif-mark-read {
    flex-shrink: 0;
    background: none;
    border: 1px solid var(--border-2);
    border-radius: var(--r-sm);
    color: var(--text-3);
    cursor: pointer;
    padding: 5px 8px;
    font-size: 0.75rem;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    opacity: 0;
    margin-top: 2px;
}
.caus-notif-item:hover .caus-notif-mark-read { opacity: 1; }
.caus-notif-mark-read:hover {
    color: #4ade80;
    border-color: rgba(34,197,94,0.35);
    background: rgba(34,197,94,0.10);
}

/* ── Daha Fazla Göster ──────────────────────────────────── */
.caus-load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 24px 0 0;
}

/* ══════════════════════════════════════════════════════════
   MOBİL UYUMLULUK
   ══════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    .caus-auth-card {
        padding: 28px 20px;
    }
    .caus-profile-hero {
        padding: 22px 20px;
        gap: 16px;
    }
    .caus-profile-hero-name { font-size: 1.15rem; }
    .caus-profile-avatar { width: 64px; height: 64px; font-size: 1.25rem; }
    .caus-profile-avatar-img { width: 64px; height: 64px; }
    .caus-item-grid,
    .caus-content-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    .caus-section-grid {
        grid-template-columns: 1fr;
    }
    .caus-card-body {
        padding: 18px;
    }
    .caus-tab-link {
        padding: 9px 12px;
        font-size: 0.80rem;
    }
    .caus-tab-link span { display: none; }
    .caus-tab-link i { opacity: 1 !important; font-size: 0.95rem; }
    .caus-tab-active .caus-tab-link i { color: var(--accent); }
}

@media (max-width: 400px) {
    .caus-auth-wrap { padding: 24px 12px; }
    .caus-auth-card { padding: 24px 16px; }
}

/* --- Favori Butonlari --- */
.caus-fav-series-toggle {
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 6px 12px;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    color: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.caus-fav-series-toggle:hover {
    background: rgba(249,115,22,0.10);
    border-color: rgba(249,115,22,0.3);
}
.caus-fav-series-toggle.is-favorite {
    background: rgba(249,115,22,0.15);
    border-color: rgba(249,115,22,0.3);
    color: #f97316;
}
.caus-fav-series-toggle.is-favorite .caus-fav-icon {
    color: #f97316;
}

/* Reader Pill Toggle */
.reader-meta-pill.caus-fav-toggle {
    cursor: pointer;
    border: none;
    background: rgba(255,255,255,0.05);
    transition: background 0.2s ease, color 0.2s ease;
}
.reader-meta-pill.caus-fav-toggle:hover {
    background: rgba(249,115,22,0.15);
}
.reader-meta-pill.caus-fav-toggle.is-favorite {
    background: rgba(249,115,22,0.15);
    color: #f97316;
}
.reader-meta-pill.caus-fav-toggle.is-favorite .caus-fav-icon {
    color: #f97316;
}

/* --- Navbar Notifications --- */
.ca-notif-nav-wrap { position: relative; }
.ca-notif-toggle { position: relative; }

.ca-notif-badge {
    position: absolute; top: -3px; right: -3px;
    background: var(--accent, #f97316); color: #fff;
    font-size: 0.58rem; font-weight: 800;
    min-width: 16px; height: 16px; padding: 0 3px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg, #0d1117);
    line-height: 1;
}

/* Panel */
.ca-notif-dropdown {
    position: fixed;
    top: 0; left: 0; /* JS tarafından güncellenir */
    width: 340px;
    background: var(--surface, rgba(18,22,29,0.98));
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
    padding: 6px;
    z-index: 9999;
    /* kapalı */
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    transform-origin: top right;
}
.ca-notif-dropdown.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Ok işareti */
.ca-notif-dropdown::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 18px;
    width: 10px; height: 10px;
    background: var(--surface, rgba(18,22,29,0.98));
    border-left: 1px solid rgba(255,255,255,0.10);
    border-top: 1px solid rgba(255,255,255,0.10);
    transform: rotate(45deg);
    border-radius: 2px 0 0 0;
}

/* Header */
.ca-notif-dropdown-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 10px 8px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    margin-bottom: 4px;
}
.ca-notif-dropdown-title {
    font-size: 0.82rem; font-weight: 700;
    color: var(--text, #e6edf3);
    display: flex; align-items: center; gap: 7px;
}
.ca-notif-dropdown-title i { color: var(--accent, #f97316); font-size: 0.78rem; }
.ca-notif-dropdown-link {
    font-size: 0.72rem; font-weight: 500;
    color: var(--accent, #f97316); text-decoration: none;
    padding: 3px 8px; border-radius: 6px;
    background: rgba(249,115,22,0.10);
    transition: background 0.15s ease;
}
.ca-notif-dropdown-link:hover { background: rgba(249,115,22,0.20); }

/* Liste alanı */
.ca-notif-dropdown-body {
    max-height: 340px; overflow-y: auto; padding: 2px 0;
}
.ca-notif-dropdown-body::-webkit-scrollbar { width: 4px; }
.ca-notif-dropdown-body::-webkit-scrollbar-track { background: transparent; }
.ca-notif-dropdown-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

/* Bildirim öğesi */
.ca-notif-list-item {
    display: flex; gap: 10px; padding: 9px 10px;
    border-radius: 9px; position: relative;
    text-decoration: none; align-items: flex-start;
    transition: background 0.15s ease;
    cursor: pointer;
}
.ca-notif-list-item:hover { background: rgba(255,255,255,0.06); }
.ca-notif-list-item.unread { background: rgba(249,115,22,0.06); }
.ca-notif-list-item.unread::before {
    content: '';
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 60%; border-radius: 0 2px 2px 0;
    background: var(--accent, #f97316);
}

/* İkon */
.ca-notif-li-icon {
    flex-shrink: 0; width: 34px; height: 34px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.82rem;
    background: rgba(255,255,255,0.08); color: var(--text-3, #8b949e);
}
.ca-notif-li-icon.new_chapter { background: rgba(249,115,22,0.15); color: var(--accent, #f97316); }
.ca-notif-li-icon.system      { background: rgba(96,165,250,0.15); color: #60a5fa; }
.ca-notif-li-icon.promo        { background: rgba(167,139,250,0.15); color: #a78bfa; }

/* İçerik */
.ca-notif-li-body { flex-grow: 1; min-width: 0; padding-right: 20px; }
.ca-notif-li-title {
    font-size: 0.82rem; font-weight: 600;
    color: var(--text, #e6edf3);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 2px;
}
.ca-notif-li-message {
    font-size: 0.76rem; color: var(--text-3, #8b949e);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; line-height: 1.45; margin-bottom: 3px;
}
.ca-notif-li-date {
    font-size: 0.68rem; color: var(--text-4, #6e7681);
    display: flex; align-items: center; gap: 4px;
}
.ca-notif-li-date i { font-size: 0.62rem; }

/* Silme butonu */
.ca-notif-li-delete {
    position: absolute; top: 8px; right: 8px;
    width: 22px; height: 22px; border-radius: 7px;
    background: transparent; border: none;
    color: var(--text-3, #8b949e);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.72rem;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.ca-notif-list-item:hover .ca-notif-li-delete { opacity: 1; }
.ca-notif-li-delete:hover { background: rgba(248,113,113,0.15); color: #f87171; }

/* Boş durum */
.ca-notif-empty {
    padding: 28px 16px; text-align: center;
    color: var(--text-3, #8b949e); font-size: 0.82rem;
}
.ca-notif-empty i {
    font-size: 1.8rem; margin-bottom: 10px;
    display: block; opacity: 0.35;
    color: var(--text-3, #8b949e);
}
