/* ============================================
   STYLE.CSS v5.1 - AniTrack - Tamamen düzeltildi
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #0b0f1a;
    --bg-secondary: #141824;
    --bg-card: #1a1f2e;
    --bg-hover: #1f2537;
    --accent-primary: #ff3366;
    --accent-secondary: #00d4ff;
    --accent-tertiary: #7c3aed;
    --accent-gold: #fbbf24;
    --text-primary: #e8eaf2;
    --text-secondary: #8892a4;
    --text-muted: #4b5563;
    --border: rgba(255,255,255,0.07);
    --border-hover: rgba(255,255,255,0.14);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-card: 0 4px 16px rgba(0,0,0,0.3);
    --radius: 12px;
}

[data-theme="light"] {
    --bg-primary: #f0f2f8;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f5f7ff;
    --text-primary: #1a1f2e;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: rgba(0,0,0,0.08);
    --border-hover: rgba(0,0,0,0.15);
    --shadow: 0 8px 32px rgba(0,0,0,0.1);
    --shadow-card: 0 4px 16px rgba(0,0,0,0.08);
}

[data-theme="neon"] {
    --bg-primary: #020204;
    --bg-secondary: #080b12;
    --bg-card: #0d1119;
    --accent-primary: #ff006e;
    --accent-secondary: #00fff9;
    --accent-tertiary: #b700ff;
    --border: rgba(0,255,249,0.08);
    --border-hover: rgba(0,255,249,0.2);
}

[data-theme="pastel"] {
    --bg-primary: #f0f4ff;
    --bg-secondary: #fafbff;
    --bg-card: #ffffff;
    --accent-primary: #e879a0;
    --accent-secondary: #60a5fa;
    --accent-tertiary: #a78bfa;
    --text-primary: #1e1b4b;
    --text-secondary: #4c1d95;
    --border: rgba(139,92,246,0.1);
    --bg-hover: #f0eeff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ====== HEADER ====== */
header {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: visible;
    background: var(--header-bg, rgba(11,15,26,0.97));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

[data-theme="light"] header { background: rgba(240,242,248,0.97); }
[data-theme="neon"] header { background: rgba(2,2,4,0.97); }
[data-theme="pastel"] header { background: rgba(240,244,255,0.97); }

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo-section { display: flex; align-items: center; gap: 1.2rem; }

.logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    text-transform: uppercase;
    user-select: none;
}

.level-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(251,191,36,0.12), rgba(245,158,11,0.08));
    border: 1px solid rgba(251,191,36,0.2);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.78rem;
}

.level-number { color: var(--accent-gold); font-weight: 700; font-size: 0.82rem; }
.xp-container { display: flex; flex-direction: column; gap: 2px; }
.xp-bar { width: 90px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; }
.xp-fill { height: 100%; background: linear-gradient(90deg, var(--accent-gold), #f59e0b); transition: width 0.5s ease; }
.xp-text { font-size: 0.68rem; color: var(--text-muted); }

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

.stats-badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.icon-btn {
    width: 36px; height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.icon-btn:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-1px);
}

.language-selector {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.35rem 0.7rem;
    border-radius: 9px;
    font-size: 0.82rem;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    outline: none;
}

/* User Menu */
.user-menu-wrapper { position: relative; }

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.35rem 0.9rem 0.35rem 0.55rem;
    cursor: pointer;
    transition: all 0.25s;
    font-size: 0.88rem;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
}

.user-avatar-btn:hover { border-color: var(--accent-primary); }

.header-avatar-el {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    line-height: 1;
}
.dropdown-arrow { font-size: 0.65rem; color: var(--text-muted); }

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 230px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 9999;
    overflow: hidden;
    animation: dropdownIn 0.2s ease;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-dropdown.show { display: block; }

.dropdown-profile {
    padding: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--bg-card);
}

.dropdown-avatar {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.dropdown-name { font-weight: 700; font-size: 0.88rem; }
.dropdown-email { font-size: 0.72rem; color: var(--text-muted); }

.dropdown-divider { height: 1px; background: var(--border); }

.dropdown-item {
    padding: 0.75rem 1.1rem;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: rgba(239,68,68,0.08); }

/* ====== NAV TABS ====== */
.nav-tabs {
    display: flex;
    gap: 0;
    margin: 1rem 0 0;
    overflow-x: auto;
    padding-bottom: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.3rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar { display: none; }

.nav-tab {
    padding: 0.5rem 0.95rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.84rem;
    cursor: pointer;
    transition: color 0.18s, border-color 0.18s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'DM Sans', sans-serif;
}

.nav-tab:hover { color: var(--text-primary); }

.nav-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-primary);
    font-weight: 600;
}

.locked-tab { opacity: 0.65; }
.locked-tab:hover { opacity: 0.85; }

/* ====== SECTIONS ====== */
.section { display: none; animation: sectionIn 0.3s ease; }
.section.active { display: block; }

@keyframes sectionIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ====== BANNER ====== */
.anilist-banner {
    background: linear-gradient(135deg, rgba(255,51,102,0.08), rgba(124,58,237,0.1), rgba(0,212,255,0.05));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    margin-bottom: 2.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.banner-bg-anim { position: absolute; inset: 0; pointer-events: none; }

.banner-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    filter: blur(40px);
    animation: particleFloat 6s ease-in-out infinite;
}

.p1 { width: 250px; height: 250px; background: var(--accent-primary); top: -80px; right: 12%; }
.p2 { width: 180px; height: 180px; background: var(--accent-tertiary); bottom: -60px; right: 32%; animation-delay: -2s; }
.p3 { width: 140px; height: 140px; background: var(--accent-secondary); top: 10%; right: 5%; animation-delay: -4s; }

@keyframes particleFloat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12) translateY(-8px); }
}

.banner-left { position: relative; z-index: 1; }
.banner-greeting { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 0.4rem; }

.banner-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-sub { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.3rem; }
.banner-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.banner-right { position: relative; z-index: 1; }

.banner-stat-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.bsc {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.bsc:hover { transform: translateY(-3px); border-color: var(--border-hover); }
.bsc-icon { font-size: 1.4rem; margin-bottom: 0.3rem; }

.bsc-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.bsc-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ====== HOME SECTIONS ====== */
.home-section-block { margin-bottom: 2.5rem; }

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.sh-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.sh-more {
    background: none;
    border: none;
    color: var(--accent-secondary);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.88rem;
    transition: opacity 0.2s;
    font-family: 'DM Sans', sans-serif;
}

.sh-more:hover { opacity: 0.7; }

/* Media Row */
.media-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 1rem;
}

.media-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.media-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.media-poster {
    width: 100%;
    aspect-ratio: 2/3;
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
}

.media-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
    display: block;
}

.media-card:hover .media-poster img { transform: scale(1.05); }

.media-poster-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, rgba(255,51,102,0.08), rgba(0,212,255,0.06));
}

.media-score-badge {
    position: absolute;
    bottom: 0.4rem;
    left: 0.4rem;
    background: rgba(0,0,0,0.82);
    color: var(--accent-gold);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.18rem 0.45rem;
    border-radius: 5px;
    backdrop-filter: blur(4px);
}

.media-type-badge {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    padding: 0.18rem 0.45rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.media-type-badge.anime { background: var(--accent-primary); color: white; }
.media-type-badge.manga { background: var(--accent-secondary); color: #000; }
.media-type-badge.webtoon { background: var(--accent-tertiary); color: white; }

.media-info { padding: 0.65rem; display: flex; flex-direction: column; flex: 1; }

.media-title {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.15rem;
    min-height: 2.08rem;
}

.media-meta { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 0.3rem; }

.add-to-list-btn {
    width: 100%;
    padding: 0.38rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.73rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
    margin-top: auto;
    font-weight: 500;
}

.add-to-list-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* Quick Stats Row */
.quick-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.qs-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.3rem 0.8rem;
    text-align: center;
    transition: all 0.3s;
}

.qs-card:hover { transform: translateY(-3px); border-color: var(--border-hover); }
.qs-icon { font-size: 1.6rem; margin-bottom: 0.4rem; }

.qs-val {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qs-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.15rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* ====== DISCOVER ====== */
.discover-tabs { display: flex; gap: 0.7rem; margin-bottom: 1.3rem; flex-wrap: wrap; }

.discover-tab {
    padding: 0.55rem 1.3rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
}

.discover-tab.active, .discover-tab:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.genre-filters { display: flex; gap: 0.5rem; margin-bottom: 1.3rem; flex-wrap: wrap; }

.genre-tag {
    padding: 0.35rem 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
}

.genre-tag.active { background: var(--accent-tertiary); border-color: var(--accent-tertiary); color: white; }
.genre-tag:hover { border-color: var(--border-hover); color: var(--text-primary); }

.discover-search-bar { display: flex; gap: 0.8rem; margin-bottom: 1.5rem; align-items: center; }

.discover-search-box { flex: 1; position: relative; }

.dsb-icon { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); font-size: 0.95rem; }

.discover-search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.22s;
    outline: none;
}

.discover-search-box input:focus { border-color: var(--accent-primary); }

.discover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 1rem;
}


/* ====== DISCOVER HERO ====== */
.discover-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #0d1117 0%, #1a1f2e 50%, #0d1117 100%);
    border: 1px solid rgba(255,255,255,0.07);
}
.discover-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,51,102,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(0,212,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}
.discover-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    flex-wrap: wrap;
}
.discover-hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,51,102,0.15);
    border: 1px solid rgba(255,51,102,0.3);
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ff3366;
    margin-bottom: 0.7rem;
}
.discover-hero-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 3.5rem;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #fff 40%, #ff3366);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.discover-hero-sub {
    color: #8892a4;
    font-size: 0.88rem;
    max-width: 260px;
    line-height: 1.5;
}
.discover-hero-search { flex: 1; min-width: 260px; }
.discover-search-box-new { position: relative; margin-bottom: 0.7rem; }
.dsn-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0.6;
    pointer-events: none;
}
.discover-search-box-new input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: all 0.25s;
    box-sizing: border-box;
}
.discover-search-box-new input:focus {
    border-color: #ff3366;
    background: rgba(255,51,102,0.06);
    box-shadow: 0 0 0 3px rgba(255,51,102,0.1);
}
.discover-search-box-new input::placeholder { color: #4b5563; }
.discover-stat-text { color: #6b7280; font-size: 0.8rem; }
.discover-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}
.discover-type-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.discover-sort-wrap select {
    padding: 0.55rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}
.discover-sort-wrap select:hover { border-color: var(--accent-primary); }

/* ====== PAGE HEADERS ====== */
.page-header { margin-bottom: 1.8rem; }
.page-title { font-family: 'Poppins', sans-serif; font-size: 1.9rem; font-weight: 700; margin-bottom: 0.25rem; }
.page-sub { color: var(--text-secondary); }

/* ====== PROFILE ====== */
/* ===== PROFİL ===== */
.profile-header-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1.4rem;
}

.profile-cover {
    height: 150px;
    background: var(--bg-secondary, #141824);
    transition: background 0.4s;
}

.profile-main {
    padding: 0 1.6rem 1.5rem;
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
    margin-top: -52px;
    position: relative;
}

/* Avatar wrap — fotoğraf yükleme butonu */
.profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar-large {
    width: 104px; height: 104px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 4px solid var(--bg-card);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.6rem;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.45);
    overflow: hidden;
}

.profile-avatar-large.has-photo { font-size: 0; }
.profile-avatar-large:hover { border-color: var(--accent-primary); }

/* Küçük + butonu */
.avatar-cam-btn {
    position: absolute;
    bottom: 2px; right: 2px;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-hover);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    line-height: 1;
    font-family: sans-serif;
}
.avatar-cam-btn:hover { background: var(--accent-primary); border-color: var(--accent-primary); color: white; }

.profile-info { flex: 1; padding-top: 0.9rem; min-width: 0; }
.profile-username { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.3px; line-height: 1.2; margin-bottom: 0.15rem; }
.profile-email-display { font-size: 0.77rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.profile-bio-text { color: var(--text-secondary); margin: 0.25rem 0 0.5rem; font-size: 0.88rem; line-height: 1.5; }
.profile-badges { display: flex; gap: 0.35rem; flex-wrap: wrap; }

.profile-badge {
    padding: 0.16rem 0.55rem;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1px;
}

.level-badge-sm {
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.2);
    color: var(--accent-gold);
}

.streak-badge {
    background: rgba(239,68,68,0.07);
    border: 1px solid rgba(239,68,68,0.18);
    color: #f87171;
}

/* STAT GRID — sayaçlar */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

@media (max-width:900px) { .profile-stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width:520px) { .profile-stats-grid { grid-template-columns: repeat(2, 1fr); } }

.profile-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem 0.6rem;
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
    gap: 0.2rem;
    transition: border-color 0.2s, transform 0.2s;
}

.profile-stat-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.psc-icon { display: none; } /* artık göstermiyoruz */

.psc-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1;
}

.psc-label {
    font-size: 0.66rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* DURUM ÇUBUKLARI */
.status-bar-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.5rem;
}
.status-bar-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    width: 80px;
    flex-shrink: 0;
}
.status-bar-track {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.status-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.7s cubic-bezier(0.4,0,0.2,1);
}
.status-bar-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    width: 24px;
    text-align: right;
}

/* 2 KOLON */
.profile-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.profile-section-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    margin-bottom: 1rem;
}

.psb-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

/* AKTİVİTE */
.activity-list { display: flex; flex-direction: column; gap: 0.4rem; }

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 0.83rem;
    transition: background 0.15s;
}
.activity-item:hover { background: var(--bg-hover); }

.activity-icon {
    width: 28px; height: 28px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* BAŞARIMLAR */
.recent-achievements { display: flex; flex-direction: column; gap: 0.4rem; }

.ach-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 0.78rem;
    transition: background 0.15s;
}
.ach-mini:hover { background: var(--bg-hover); }
.ach-mini-icon { font-size: 1.1rem; }
.ach-mini-name { font-weight: 600; flex: 1; font-size: 0.81rem; }
.ach-mini-xp { color: var(--accent-gold); font-size: 0.7rem; font-weight: 700; }

/* PAYLAŞ */
.share-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.share-btn {
    padding: 0.48rem 0.95rem;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 7px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
    font-family: 'DM Sans', sans-serif;
}
.share-btn:hover { border-color: var(--border-hover); color: var(--text-primary); transform: translateY(-1px); }

/* FOTOĞRAF YÜKLEME MODALI */
.avatar-upload-zone {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 1.2rem;
}

.avatar-preview-wrap {
    flex-shrink: 0;
}

.avatar-preview-el {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: var(--bg-hover);
    border: 2px solid var(--border-hover);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem;
    overflow: hidden;
    transition: all 0.3s;
}
.avatar-preview-el.has-photo { font-size: 0; }

.avatar-upload-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.btn-upload-photo {
    padding: 0.52rem 1rem;
    background: var(--accent-primary);
    border: none;
    border-radius: 7px;
    color: white;
    font-size: 0.84rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-upload-photo:hover { background: #e02656; }

.btn-remove-photo {
    padding: 0.38rem 0.8rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-remove-photo:hover { border-color: var(--danger); color: var(--danger); }

/* ====== LIBRARY ====== */
.filter-bar { display: flex; gap: 0.7rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.search-box { flex: 1; min-width: 180px; }

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus { border-color: var(--accent-primary); }

select {
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    outline: none;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.3rem;
}

.item-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.item-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow);
}

.item-poster {
    width: 100%; height: 200px;
    position: relative; overflow: hidden;
    background: var(--bg-secondary);
}

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

.item-header {
    padding: 1rem 1rem 0.5rem;
    background: linear-gradient(135deg, rgba(255,51,102,0.06), rgba(0,212,255,0.03));
}

.item-type-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.item-type-badge.anime { background: var(--accent-primary); color: white; }
.item-type-badge.manga { background: var(--accent-secondary); color: #000; }
.item-type-badge.webtoon { background: var(--accent-tertiary); color: white; }

.item-title { font-size: 1rem; font-weight: 700; line-height: 1.3; }

.item-body { padding: 1rem; }

.item-body label {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.28rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.6rem;
}

.item-body label:first-child { margin-top: 0; }

.item-body select,
.item-body input[type="number"] {
    width: 100%;
    margin-bottom: 0;
    padding: 0.48rem 0.75rem;
    font-size: 0.86rem;
    background: var(--bg-secondary);
    border-color: var(--border);
    color: var(--text-primary);
}

.progress-bar {
    background: var(--bg-secondary);
    height: 5px;
    border-radius: 10px;
    overflow: hidden;
    margin: 0.5rem 0 0.6rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.4s ease;
}

.star-rating { display: flex; justify-content: center; gap: 0.2rem; margin: 0.3rem 0 0.6rem; }

.star-btn {
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.15s;
    background: none;
    border: none;
    padding: 0.1rem;
    line-height: 1;
}

.star-btn:hover { transform: scale(1.25); }

.ep-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0; }

.delete-btn {
    width: 100%;
    padding: 0.55rem;
    background: rgba(239,68,68,0.07);
    color: var(--danger);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.83rem;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
    margin-top: 0.5rem;
}

.delete-btn:hover { background: rgba(239,68,68,0.14); border-color: var(--danger); }

/* ====== EMPTY STATE ====== */
.empty-state {
    text-align: center;
    padding: 3.5rem 2rem;
    color: var(--text-muted);
    grid-column: 1/-1;
}

.empty-icon { font-size: 3.5rem; margin-bottom: 0.8rem; opacity: 0.28; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 0.4rem; color: var(--text-secondary); }

/* ====== CALENDAR ====== */
.calendar-container {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.calendar-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.3rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.5rem;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.7rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.weekday {
    background: var(--bg-card);
    padding: 0.9rem 0.65rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    min-height: 80px;
    min-width: 0;
    overflow: hidden;
}

.weekday-name {
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* ====== ANALYTICS ====== */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.3rem;
}

.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.8rem;
}

.chart-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 1.3rem; }

.bar-row { margin-bottom: 0.9rem; }

.bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
}

.bar-track {
    background: var(--bg-secondary);
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill { height: 100%; border-radius: 10px; transition: width 0.5s ease; }

/* ====== AI SECTION ====== */
.ai-header-card {
    background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(255,51,102,0.05));
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: 20px;
    padding: 2.2rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.ai-header-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(124,58,237,0.12), transparent 60%);
    pointer-events: none;
}

.ai-header-content {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    margin-bottom: 1.8rem;
    position: relative;
    z-index: 1;
}

.ai-robot-icon {
    width: 65px; height: 65px;
    background: linear-gradient(135deg, var(--accent-tertiary), var(--accent-primary));
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.3rem;
    flex-shrink: 0;
}

.ai-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-tertiary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-sub { color: var(--text-secondary); }

.ai-analysis-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.aac {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.1rem;
    text-align: center;
}

.aac-icon { font-size: 1.8rem; margin-bottom: 0.35rem; }
.aac-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.aac-val { font-size: 1.1rem; font-weight: 700; color: var(--accent-primary); }

.ai-btn-row { display: flex; gap: 0.8rem; position: relative; z-index: 1; flex-wrap: wrap; }
.ai-recs-section { margin-bottom: 2.5rem; }

/* ====== ACHIEVEMENTS ====== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.85rem;
    align-items: stretch;
}

.ach-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.1rem 1.15rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    transition: all 0.25s;
    height: 100%;
    box-sizing: border-box;
}

.ach-card.unlocked {
    border-color: rgba(251,191,36,0.3);
    background: linear-gradient(135deg, rgba(251,191,36,0.06), var(--bg-card));
    box-shadow: 0 2px 12px rgba(251,191,36,0.08);
}

.ach-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

.ach-icon {
    width: 48px; height: 48px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.ach-icon.unlocked-icon {
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    box-shadow: 0 4px 12px rgba(251,191,36,0.28);
}

.ach-info { flex: 1; min-width: 0; }
.ach-title { font-weight: 700; margin-bottom: 0.2rem; font-size: 0.88rem; line-height: 1.3; }
.ach-desc { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.4; }
.ach-xp { color: var(--accent-gold); font-weight: 700; font-size: 0.78rem; margin-top: 0.3rem; display: inline-block; background: rgba(251,191,36,0.1); padding: 1px 7px; border-radius: 20px; }

.ach-status {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ach-status.locked { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.ach-status.done { background: rgba(16,185,129,0.12); color: var(--success); font-weight: 600; }

/* ====== SETTINGS ====== */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.3rem; }

.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.8rem; }

.theme-option {
    aspect-ratio: 16/10;
    border-radius: 12px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.theme-option.active { border-color: var(--accent-primary); transform: scale(1.03); }
.theme-option:hover { transform: scale(1.02); }

.theme-dark { background: linear-gradient(135deg, #0b0f1a, #1a1f2e); }
.theme-light { background: linear-gradient(135deg, #f0f2f8, #ffffff); }
.theme-neon { background: linear-gradient(135deg, #000, #0d1119); }
.theme-pastel { background: linear-gradient(135deg, #f0f4ff, #fafbff); }

.theme-name {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 0.5rem;
    background: rgba(0,0,0,0.65);
    color: white;
    text-align: center;
    font-weight: 600;
    font-size: 0.82rem;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    font-size: 0.92rem;
}

.danger-zone { border-color: rgba(239,68,68,0.18) !important; }

.btn-danger {
    background: rgba(239,68,68,0.08);
    color: var(--danger);
    border: 1px solid rgba(239,68,68,0.25);
    padding: 0.65rem 1.3rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
    margin-right: 0.6rem;
    font-size: 0.88rem;
}

.btn-danger:hover { background: rgba(239,68,68,0.15); }

.btn-danger-outline {
    background: transparent;
    color: var(--danger);
    border: 1px solid rgba(239,68,68,0.25);
    padding: 0.65rem 1.3rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
}

.btn-danger-outline:hover { background: rgba(239,68,68,0.08); }

/* ====== BUTTONS ====== */
.btn {
    padding: 0.65rem 1.4rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s;
    font-size: 0.88rem;
    font-family: 'DM Sans', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.btn-large { padding: 0.85rem 1.8rem; font-size: 0.95rem; }

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover { background: #e02656; transform: translateY(-1px); }

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: var(--border-hover); background: var(--bg-hover); }

.btn-ghost {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* ====== MODALS ====== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    backdrop-filter: blur(4px);
}

.modal[style*="flex"] { display: flex !important; animation: modalIn 0.2s ease; }

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

.modal-content {
    background: var(--bg-secondary);
    padding: 1.8rem;
    border-radius: 20px;
    max-width: 620px;
    width: 100%;
    border: 1px solid var(--border);
    max-height: 90vh;
    overflow-y: auto;
    animation: modalContentIn 0.25s ease;
}

@keyframes modalContentIn {
    from { transform: scale(0.96) translateY(6px); }
    to { transform: scale(1) translateY(0); }
}

.modal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.3rem;
}

.modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    width: 34px; height: 34px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.modal-close:hover { background: rgba(239,68,68,0.1); color: var(--danger); }

.form-group { margin-bottom: 1.1rem; }

.form-group label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.38rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.95rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent-primary); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

.modal-actions { display: flex; gap: 0.8rem; margin-top: 1.3rem; }
.modal-actions .btn { flex: 1; justify-content: center; }

#apiResults {
    margin-top: 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 230px;
    overflow-y: auto;
}

.api-result-item {
    display: flex;
    gap: 0.7rem;
    padding: 0.65rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    align-items: center;
}

.api-result-item:hover { border-color: var(--accent-primary); background: var(--bg-hover); }
.api-result-item img { width: 40px; height: 55px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.api-result-title { font-weight: 600; font-size: 0.88rem; margin-bottom: 0.15rem; }
.api-result-meta { font-size: 0.75rem; color: var(--text-secondary); }

/* Avatar selector */
.avatar-selector {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.avatar-option {
    aspect-ratio: 1;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1.7rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}

.avatar-option:hover, .avatar-option.selected {
    border-color: var(--accent-primary);
    transform: scale(1.08);
}

.cover-colors { display: flex; gap: 0.5rem; margin-top: 0.4rem; flex-wrap: wrap; }

.cc-opt {
    width: 46px; height: 32px;
    border-radius: 7px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
}

.cc-opt.selected, .cc-opt:hover { border-color: white; transform: scale(1.08); }

/* ====== NOTIFICATION ====== */
.notification {
    position: fixed;
    bottom: 1.8rem;
    right: 1.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 1.3rem;
    transform: translateX(420px);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3000;
    max-width: 310px;
    box-shadow: var(--shadow);
    font-size: 0.9rem;
    word-break: break-word;
}

.notification.show { transform: translateX(0); }
.notification.success { border-left: 3px solid var(--success); }
.notification.error { border-left: 3px solid var(--danger); }
.notification.info { border-left: 3px solid var(--accent-secondary); }

/* ====== LOADING ====== */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

.loading-screen.hidden { opacity: 0; pointer-events: none; }

.loading-logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.3rem;
    letter-spacing: 4px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.8rem;
}

.loader {
    width: 46px; height: 46px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.loading-text { color: var(--text-muted); font-size: 0.88rem; margin-top: 1rem; }

/* ====== MISC ====== */
.offline-banner {
    background: var(--warning);
    color: white;
    padding: 0.7rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.88rem;
    display: none;
}

.offline-banner.show { display: block; }

.install-banner {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 1.1rem 1.8rem;
    border-radius: 12px;
    margin-bottom: 1.3rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.install-banner.show { display: flex; }
.install-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.15rem; }
.install-actions { display: flex; gap: 0.5rem; }

.btn-install {
    background: white;
    color: var(--accent-primary);
    padding: 0.55rem 1.1rem;
    border: none;
    border-radius: 7px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: 'DM Sans', sans-serif;
}

.btn-dismiss {
    background: rgba(255,255,255,0.18);
    color: white;
    padding: 0.55rem 1.1rem;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 7px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: 'DM Sans', sans-serif;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Skeleton */
.skeleton-card .skeleton-poster {
    width: 100%; aspect-ratio: 2/3;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-hover) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.skeleton-line {
    border-radius: 4px;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-hover) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    display: block;
}

@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.discover-loading {
    grid-column: 1/-1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.discover-loading .loader { margin: 0 auto; }

/* ====== RESPONSIVE ====== */
@media (max-width: 1200px) {
    .anilist-banner { grid-template-columns: 1fr; }
    .banner-right { display: none; }
    .profile-two-col { grid-template-columns: 1fr; }
    .profile-stats-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 1100px) {
    .weekdays { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .weekdays { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .media-row { grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); }
    .discover-grid { grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); }
    .analytics-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .items-grid { grid-template-columns: 1fr; }
    .profile-main { flex-direction: column; text-align: center; }
    .profile-avatar-wrap { margin: -52px auto 0; }
    .profile-avatar-large { margin: 0 auto; }
    .profile-info { text-align: left; padding-top: 0.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .settings-grid { grid-template-columns: 1fr; }
    .banner-title { font-size: 1.8rem; }
    .modal-content { padding: 1.4rem; }
}

@media (max-width: 480px) {
    .media-row { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); }
    .discover-grid { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); }
    .quick-stats-row { grid-template-columns: repeat(2, 1fr); }
    .weekdays { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .header-actions { gap: 0.35rem; }
    .nav-tab { padding: 0.45rem 0.8rem; font-size: 0.78rem; }
    .container { padding: 0 1rem; }
    .modal-content { padding: 1.2rem 1rem; border-radius: 16px; }
    .notification { right: 1rem; bottom: 1rem; max-width: calc(100vw - 2rem); }
}

/* =====================================================
   DETAY SAYFASI CSS
   ===================================================== */

/* Breadcrumb */
.dp-breadcrumb {
    padding: 1rem 0 0.5rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Banner */
.dp-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 280px;
    background: linear-gradient(135deg, #1a1f2e, #111318);
    margin-bottom: 2rem;
}
.dp-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(7,9,15,0.97) 40%, rgba(7,9,15,0.6) 100%);
}
.dp-banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 2rem;
    padding: 2rem;
    align-items: flex-start;
}
.dp-poster {
    width: 160px;
    min-width: 160px;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.dp-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.dp-type-badge {
    display: inline-block;
    padding: 0.22rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    width: fit-content;
}
.dp-type-badge.anime  { background: rgba(0,212,255,0.15); color: #00d4ff; border: 1px solid rgba(0,212,255,0.3); }
.dp-type-badge.manga  { background: rgba(124,58,237,0.15); color: #a78bfa; border: 1px solid rgba(124,58,237,0.3); }
.dp-type-badge.webtoon{ background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }

.dp-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin: 0;
}
.dp-stats-row {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.dp-stat {
    font-size: 0.88rem;
    color: #a0a8b9;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.dp-genres-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.dp-genre-tag {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 0.22rem 0.65rem;
    font-size: 0.75rem;
    color: #a0a8b9;
}
.dp-action-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}
.dp-add-btn {
    padding: 0.6rem 1.4rem;
    background: linear-gradient(135deg, #ff3366, #ff5580);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
}
.dp-add-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,51,102,0.4); }
.dp-add-btn.in-library { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.4); color: #10b981; }
.dp-back-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: #a0a8b9;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
}
.dp-back-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* Body layout */
.dp-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 768px) {
    .dp-body { grid-template-columns: 1fr; }
    .dp-banner-content { flex-direction: column; }
    .dp-poster { width: 120px; }
}

/* Cards */
.dp-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 1.4rem;
    margin-bottom: 1.2rem;
}
.dp-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem 0;
}
.dp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.dp-synopsis {
    font-size: 0.88rem;
    line-height: 1.75;
    color: #8892a4;
    margin: 0;
}

/* Info list */
.dp-info-list { display: flex; flex-direction: column; gap: 0.7rem; }
.dp-info-row { display: flex; justify-content: space-between; font-size: 0.85rem; }
.dp-info-label { color: #6b7280; }

/* ===== REVIEW FORM ===== */
.review-form { display: flex; flex-direction: column; gap: 0.8rem; }
.star-row { display: flex; align-items: center; gap: 1rem; }
.stars-container { display: flex; gap: 0.15rem; }
.star-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #374151;
    cursor: pointer;
    transition: color 0.15s, transform 0.1s;
    padding: 0;
    line-height: 1;
}
.star-btn:hover, .star-btn.active { color: #f59e0b; transform: scale(1.15); }
.rating-text { font-size: 0.88rem; color: #a0a8b9; font-weight: 600; min-width: 60px; }
.review-textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.review-textarea:focus { outline: none; border-color: rgba(255,51,102,0.5); }
.review-submit-btn {
    padding: 0.75rem;
    background: linear-gradient(135deg, #ff3366, #ff5580);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
    align-self: flex-start;
    padding: 0.65rem 1.5rem;
}
.review-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,51,102,0.4); }

/* ===== REVIEW CARDS ===== */
.review-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    transition: border-color 0.2s;
}
.review-card:hover { border-color: rgba(255,255,255,0.12); }
.review-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}
.review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff3366, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}
.review-meta { flex: 1; }
.review-username { font-weight: 700; font-size: 0.88rem; color: #fff; }
.review-date { font-size: 0.75rem; color: #6b7280; margin-top: 0.1rem; }
.review-score-badge {
    background: rgba(245,158,11,0.15);
    border: 1px solid rgba(245,158,11,0.3);
    color: #f59e0b;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
}
.review-score-badge span { font-size: 0.7rem; opacity: 0.7; }
.review-comment { font-size: 0.85rem; color: #8892a4; line-height: 1.6; margin: 0; }
.review-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 0.2rem;
}
.review-delete-btn:hover { opacity: 1; }

.review-avg {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f59e0b;
}
.review-summary { display: flex; flex-direction: column; align-items: flex-end; }
.no-reviews { text-align: center; padding: 2rem; color: #6b7280; display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
.reviews-loading { text-align: center; color: #6b7280; padding: 1.5rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.mini-spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: #ff3366;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}
/* =====================================================
   MOBILE IMPROVEMENTS v5.2 — ADDITIVE ONLY
   ===================================================== */

/* Header: streak/total badge'leri küçük ekranda gizle */
@media (max-width: 480px) {
    #streakBadge,
    #totalBadge {
        display: none !important;
    }

    /* Level badge: XP bar'ı gizle, sadece level numarası kalsın */
    .xp-container .xp-bar,
    .xp-container .xp-text {
        display: none;
    }
    .level-badge {
        padding: 0.3rem 0.6rem;
        gap: 0.3rem;
    }

    /* Language selector küçülsün */
    .language-selector {
        font-size: 0.75rem;
        padding: 0.28rem 0.4rem;
    }

    /* Admin butonu küçülsün */
    #adminShortcutBtn {
        font-size: 0.72rem !important;
        padding: .28rem .5rem !important;
    }

    /* Header actions wrap yerine scroll */
    .header-actions {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        -ms-overflow-style: none;
        scrollbar-width: none;
        max-width: calc(100vw - 140px);
    }
    .header-actions::-webkit-scrollbar { display: none; }

    /* Banner başlık font küçük ekranda oku */
    .banner-title { font-size: 1.5rem !important; }
    .banner-sub { font-size: 0.82rem; }

    /* Detail page poster küçülsün */
    .dp-poster {
        width: 90px !important;
        min-width: 90px !important;
    }

    /* Chat section tam genişlik */
    .inline-chat-box {
        border-radius: 12px;
    }

    /* Modal padding azalt */
    .modal-content {
        padding: 1rem 0.85rem !important;
        margin: 0.5rem;
        max-height: 92vh;
        overflow-y: auto;
    }

    /* Nav tab text küçük ekranda daha küçük */
    .nav-tab {
        font-size: 0.72rem !important;
        padding: 0.4rem 0.6rem !important;
    }

    /* Quick stats 2 kolon */
    .quick-stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Orta ekran (tablet) iyileştirmeleri */
@media (max-width: 768px) {
    /* Detail page banner dikey hizala */
    .dp-banner-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    /* Detail page iki kolon layout tek kolona */
    .dp-layout {
        flex-direction: column;
    }

    .dp-right-col {
        width: 100% !important;
        min-width: unset !important;
    }
}