@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #0f172a;
    --surface: #1e293b;
    --surface-hover: #334155;
    --primary: #10b981;
    --primary-hover: #059669;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --accent: #8b5cf6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
}

.view { display: none; width: 100%; }
.view.active { display: block; }

/* ----------- LANDING PAGE ----------- */
#auth-view { background: var(--bg-dark); }

/* NAVBAR */
.landing-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(15,23,42,0.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.landing-nav-inner {
    max-width: 1100px; margin: 0 auto;
    padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.landing-logo { font-size: 1.4rem; font-weight: 800; color: white; letter-spacing: -0.5px; }
.landing-logo span { color: var(--primary); }
.landing-nav-actions { display: flex; gap: 10px; }
.landing-login-btn {
    background: transparent; border: 1px solid var(--border);
    color: var(--text-muted); padding: 9px 18px; border-radius: 8px;
    cursor: pointer; font-size: 0.9rem; font-weight: 600; transition: 0.2s;
}
.landing-login-btn:hover { color: white; border-color: white; }
.landing-cta-btn {
    background: var(--primary); border: none; color: white;
    padding: 9px 18px; border-radius: 8px; cursor: pointer;
    font-size: 0.9rem; font-weight: 700; transition: 0.2s;
    white-space: nowrap;
}
.landing-cta-btn:hover { background: var(--primary-hover); }

/* HERO */
.landing-hero {
    max-width: 1100px; margin: 0 auto;
    padding: 80px 40px 56px;
}
.hero-inner {
    display: flex; align-items: center; gap: 60px;
}
.hero-text {
    flex: 1; min-width: 0; text-align: left;
}
.hero-mockup {
    flex-shrink: 0; display: flex; justify-content: center; align-items: center;
}
.hero-badge {
    display: inline-block; background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.3); color: var(--primary);
    padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600;
    margin-bottom: 28px;
}
.hero-title {
    font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 800;
    line-height: 1.15; margin-bottom: 20px; letter-spacing: -1px;
}
.hero-gradient {
    background: linear-gradient(135deg, #6366f1, #10b981);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
    font-size: 1.05rem; color: var(--text-muted); line-height: 1.7;
    margin-bottom: 36px; max-width: 540px;
}
.hero-btns { display: flex; gap: 12px; justify-content: flex-start; flex-wrap: wrap; margin-bottom: 40px; }
.hero-main-btn {
    background: linear-gradient(135deg, #6366f1, #10b981); border: none; color: white;
    padding: 16px 32px; border-radius: 12px; cursor: pointer;
    font-size: 1rem; font-weight: 700; transition: 0.2s; letter-spacing: 0.3px;
    box-shadow: 0 4px 24px rgba(99,102,241,0.35);
}
.hero-main-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(99,102,241,0.5); }
.hero-main-btn.large { padding: 18px 40px; font-size: 1.1rem; }
.hero-secondary-btn {
    display: inline-flex; align-items: center;
    background: transparent; border: 1px solid var(--border);
    color: var(--text-muted); padding: 16px 28px; border-radius: 12px;
    cursor: pointer; font-size: 1rem; font-weight: 600; text-decoration: none; transition: 0.2s;
}
.hero-secondary-btn:hover { color: white; border-color: white; }
.hero-stats {
    display: flex; gap: 20px; justify-content: flex-start; flex-wrap: wrap;
}
.hero-stat {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.85rem; color: var(--text-muted); font-weight: 500;
}
.hero-platform-row {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin: 10px 0 16px; font-size: 0.82rem;
}
.hero-platform-item { color: var(--text-muted); font-weight: 500; }
.hero-platform-sep { color: var(--border); }
.hero-platform-free {
    color: #34d399; font-weight: 700;
    background: rgba(16,185,129,0.1);
    border-radius: 10px; padding: 1px 8px;
}

/* APP MOCKUP */
.mockup-phone {
    width: 260px; background: #1e293b;
    border-radius: 32px; padding: 20px;
    border: 6px solid #334155;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}
.mockup-screen { display: flex; flex-direction: column; gap: 10px; }
.mock-header { display: flex; align-items: center; justify-content: space-between; }
.mock-logo { font-size: 0.8rem; font-weight: 800; color: var(--primary); }
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.4} }
.mock-timer {
    text-align: center; font-size: 2.8rem; font-weight: 800;
    color: white; padding: 16px 0; letter-spacing: -2px;
    border: 3px solid var(--primary); border-radius: 50%;
    width: 110px; height: 110px; display: flex; align-items: center;
    justify-content: center; margin: 8px auto;
    box-shadow: 0 0 20px rgba(16,185,129,0.3);
}
.mock-label { text-align: center; font-size: 0.75rem; color: var(--primary); font-weight: 600; }
.mock-users { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.mock-user {
    background: #0f172a; border-radius: 8px; padding: 7px 10px;
    font-size: 0.72rem; color: var(--text-muted); border: 1px solid var(--border);
}

/* FEATURES */
.landing-features {
    max-width: 1100px; margin: 0 auto;
    padding: 60px 24px;
}
.landing-section-label {
    text-align: center; font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.15em; color: var(--primary); margin-bottom: 12px;
}
.landing-section-title {
    text-align: center; font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800; margin-bottom: 48px; letter-spacing: -0.5px;
}
.landing-section-sub {
    text-align: center; color: var(--text-muted);
    font-size: 1rem; margin-bottom: 40px; max-width: 560px;
    margin-left: auto; margin-right: auto;
}
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
}
.feature-card {
    background: #1e293b; border: 1px solid var(--border);
    border-radius: 16px; padding: 28px 24px; transition: 0.2s;
}
.feature-card:hover { border-color: #6366f1; transform: translateY(-3px); box-shadow: 0 8px 30px rgba(99,102,241,0.15); }
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* HOW IT WORKS */
.landing-how {
    max-width: 900px; margin: 0 auto; padding: 60px 24px;
}
.steps-row {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; flex-wrap: wrap;
}
.step-card {
    flex: 1; min-width: 200px; max-width: 260px;
    background: #1e293b; border: 1px solid var(--border);
    border-radius: 16px; padding: 28px 20px; text-align: center;
}
.step-num {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #10b981);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 800; margin: 0 auto 16px;
}
.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.step-arrow { font-size: 1.8rem; color: var(--border); flex-shrink: 0; }

/* FREE FOREVER */
.landing-free {
    padding: 60px 24px; display: flex; justify-content: center;
}
.free-card {
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(16,185,129,0.08));
    border: 1px solid rgba(99,102,241,0.3); border-radius: 24px;
    padding: 56px 48px; max-width: 640px; width: 100%; text-align: center;
}
.free-badge {
    display: inline-block; background: rgba(16,185,129,0.15);
    border: 1px solid rgba(16,185,129,0.3); color: var(--primary);
    padding: 6px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 700;
    margin-bottom: 24px; letter-spacing: 0.05em;
}
.free-card h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; line-height: 1.2; }
.free-card > p { color: var(--text-muted); margin-bottom: 28px; }
.free-list {
    list-style: none; text-align: left; display: inline-block;
    margin-bottom: 32px;
}
.free-list li { padding: 7px 0; font-size: 0.95rem; color: #cbd5e1; }

/* MOBİL KURULUM */
.landing-mobile {
    max-width: 900px; margin: 0 auto; padding: 60px 24px;
    text-align: center;
}

/* Platform rozetleri */
.platform-badges {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; flex-wrap: wrap; margin: 24px 0 16px;
}
.platform-badge {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 20px; padding: 6px 14px;
    font-size: 0.88rem; font-weight: 600; color: var(--text-main);
}
.platform-badge span { font-size: 1rem; }

/* PWA Avantajları */
.pwa-perks {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; flex-wrap: wrap; margin-bottom: 32px;
}
.pwa-perk {
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.2);
    color: #34d399; border-radius: 20px;
    padding: 4px 12px; font-size: 0.8rem; font-weight: 600;
}

/* Kurulum kartları */
.install-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; }
.install-card {
    background: #1e293b; border: 1px solid var(--border);
    border-radius: 16px; padding: 24px;
    transition: border-color 0.2s;
}
.install-card:hover { border-color: var(--accent); }
.install-card-header {
    display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.install-icon { font-size: 2.2rem; flex-shrink: 0; }
.install-card-header h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; }
.install-browser-tag {
    font-size: 0.72rem; font-weight: 600;
    background: rgba(139,92,246,0.15); color: var(--accent);
    border-radius: 10px; padding: 2px 8px;
}
.install-steps { padding-left: 18px; margin-bottom: 14px; }
.install-steps li { font-size: 0.86rem; color: var(--text-muted); padding: 5px 0; line-height: 1.5; }
.install-steps li strong { color: var(--text-main); }
.install-steps li em { color: #f87171; font-style: normal; font-size: 0.8rem; }
.install-note {
    font-size: 0.78rem; color: var(--text-muted);
    background: rgba(255,255,255,0.03);
    border-radius: 8px; padding: 8px 12px;
    border-left: 3px solid var(--accent);
}

/* SON CTA */
.landing-final-cta {
    padding: 80px 24px; text-align: center;
    background: linear-gradient(180deg, transparent, rgba(99,102,241,0.06));
}
.landing-final-cta h2 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; margin-bottom: 14px; line-height: 1.2; }
.landing-final-cta p { color: var(--text-muted); font-size: 1rem; margin-bottom: 36px; }

/* FOOTER */
.landing-footer {
    padding: 24px; text-align: center;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; gap: 24px;
    color: var(--text-muted); font-size: 0.85rem; flex-wrap: wrap;
}
.footer-built {
    background: linear-gradient(90deg, #6366f1, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}
.footer-built strong { font-weight: 800; }
.footer-links { display: flex; align-items: center; gap: 16px; }
.footer-policy-link {
    color: var(--text-muted); font-size: 0.82rem;
    text-decoration: none; transition: color 0.15s;
}
.footer-policy-link:hover { color: var(--accent); }

/* TikTok sosyal link */
.footer-social { display: flex; justify-content: center; margin: 4px 0; }
.footer-social-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text-muted); font-size: 0.85rem; font-weight: 500;
    text-decoration: none; padding: 5px 12px;
    border: 1px solid var(--border); border-radius: 20px;
    transition: all 0.2s;
}
.footer-social-link:hover {
    color: #fff; border-color: #fff;
    background: rgba(255,255,255,0.07);
}

/* KVKK checkbox (kayıt formu) */
.kvkk-check-label {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.82rem; color: var(--text-muted);
    cursor: pointer; margin-bottom: 12px; line-height: 1.5;
}
.kvkk-check-label input[type="checkbox"] {
    width: 16px; height: 16px; flex-shrink: 0;
    margin-top: 2px; accent-color: var(--accent);
    cursor: pointer;
}
.kvkk-link { color: var(--accent); text-decoration: underline; }
.kvkk-link:hover { color: var(--primary); }
.app-footer {
    text-align: center;
    padding: 12px;
    color: var(--text-muted);
    font-size: 0.75rem;
    opacity: 0.4;
    letter-spacing: 0.02em;
}
.app-footer-brand {
    background: linear-gradient(90deg, #6366f1, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}
.app-footer-okan {
    background: linear-gradient(90deg, #6366f1, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}
.admin-footer-link {
    color: var(--text-muted); font-size: 0.75rem;
    text-decoration: none; opacity: 0.4;
    transition: opacity 0.2s;
}
.admin-footer-link:hover { opacity: 1; color: var(--primary); }

/* AUTH MODAL */
.auth-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,0.85); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; padding: 20px;
}
.auth-modal-overlay.hidden { display: none; }
.auth-card {
    background-color: var(--surface); position: relative;
    padding: 40px; border-radius: var(--radius);
    width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    text-align: center;
}
.auth-modal-close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none; color: var(--text-muted);
    font-size: 1.2rem; cursor: pointer; transition: 0.2s;
}
.auth-modal-close:hover { color: white; }
.logo { font-weight: 700; font-size: 2rem; margin-bottom: 8px; }
.logo span { color: var(--primary); }
.subtitle { color: var(--text-muted); margin-bottom: 32px; }

/* PWA POPUP */
.pwa-popup {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: #1e293b; border: 1px solid var(--border); border-radius: 16px;
    padding: 16px 20px; max-width: 360px; width: calc(100% - 32px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4); z-index: 999;
    display: flex; flex-direction: column; gap: 12px;
}
.pwa-popup.hidden { display: none; }
.pwa-content { display: flex; align-items: center; gap: 12px; }
.pwa-content span { font-size: 2rem; flex-shrink: 0; }
.pwa-content strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.pwa-content p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.pwa-install-btn {
    background: var(--primary); border: none; color: white;
    border-radius: 10px; padding: 10px; font-weight: 700;
    cursor: pointer; font-size: 0.9rem; transition: 0.2s;
}
.pwa-install-btn:hover { background: var(--primary-hover); }
.pwa-close {
    position: absolute; top: 10px; right: 12px;
    background: none; border: none; color: var(--text-muted);
    font-size: 1rem; cursor: pointer;
}

/* ----------- AUTH ----------- */

.input-group { text-align: left; margin-bottom: 16px; }
.input-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-muted); }

input[type="text"], input[type="password"], input[type="email"], input[type="number"], select {
    width: 100%; padding: 12px;
    background-color: #0f172a; border: 1px solid var(--border);
    border-radius: 8px; color: white; font-size: 1rem;
    outline: none; transition: 0.3s;
}
input:focus, select:focus { border-color: var(--primary); }

.btn {
    width: 100%; padding: 12px; border: none;
    border-radius: 8px; font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: 0.3s; color: white;
}
.btn.small-btn { padding: 8px 12px; font-size: 0.85rem; }
.btn.large-btn { padding: 11px; font-size: 0.95rem; }

.primary-btn { background-color: var(--primary); }
.primary-btn:hover { background-color: var(--primary-hover); }
.danger-btn { background-color: var(--danger); }
.danger-btn:hover { background-color: var(--danger-hover); }
.success-btn { background-color: var(--primary); box-shadow: 0 0 15px rgba(16,185,129,0.5); }
.outline-btn { background-color: transparent; border: 1px solid var(--border); }
.outline-btn:hover { background-color: var(--surface-hover); }

.error-msg { color: var(--danger); margin-top: 16px; font-size: 0.9rem; min-height: 20px; }
.success-msg { color: var(--primary); margin-top: 16px; font-size: 0.9rem; min-height: 20px; }

.auth-toggle { display: flex; gap: 10px; margin-bottom: 24px; }
.toggle-btn {
    flex: 1; padding: 10px;
    background: transparent; color: var(--text-muted);
    border: 1px solid var(--border); border-radius: 8px;
    cursor: pointer; transition: 0.3s; font-weight: 600;
}
.toggle-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ----------- APP LAYOUT ----------- */
#app-view { display: none; align-items: stretch; }
#app-view.active {
    display: grid;
    grid-template-columns: 300px 1fr 340px;
}

.panel {
    background-color: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* ----------- SOL SIDEBAR ----------- */
.profile-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.avatar {
    width: 56px; height: 56px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-size: 1.4rem; font-weight: bold;
}
.badge {
    background-color: rgba(139,92,246,0.2); color: var(--accent);
    padding: 3px 8px; border-radius: 4px; font-size: 0.72rem; font-weight: 600;
    margin-top: 4px; display: inline-block;
}

.streak-bar {
    display: flex; align-items: center;
    background-color: #0f172a; border-radius: 10px;
    padding: 14px 16px; margin-bottom: 20px; gap: 12px;
}
.streak-item { display: flex; align-items: center; gap: 10px; flex: 1; }
.streak-icon { font-size: 1.5rem; line-height: 1; }
.streak-num { font-size: 1.5rem; font-weight: 700; color: var(--text-main); line-height: 1; }
.streak-lbl { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.streak-divider { width: 1px; height: 36px; background-color: var(--border); flex-shrink: 0; }

h2, h3 { color: var(--text-main); margin-bottom: 12px; }
h3 { font-size: 1rem; color: var(--text-muted); margin-bottom: 8px; }

.status-section, .goal-section, .total-stats {
    background-color: #0f172a; padding: 16px; border-radius: 8px; margin-bottom: 16px;
}
.status-section input { margin-bottom: 12px; }
.goal-input-row { display: flex; gap: 8px; margin-bottom: 12px; }
.progress-bar-container {
    width: 100%; height: 8px; background-color: var(--surface);
    border-radius: 4px; overflow: hidden; margin-bottom: 8px;
}
.progress-bar { height: 100%; background-color: var(--primary); width: 0%; transition: width 0.5s ease; }

/* ----------- DERS HEDEFLERİ ----------- */
.subject-goals-section {
    background-color: #0f172a; padding: 16px; border-radius: 8px; margin-bottom: 16px;
}
.subject-goals-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.subject-goals-header h3 { margin-bottom: 0; }
.icon-btn {
    background: none; border: none; cursor: pointer;
    font-size: 1rem; padding: 4px; border-radius: 6px;
    transition: background 0.2s;
}
.icon-btn:hover { background: var(--surface-hover); }

.subject-goal-item { margin-bottom: 10px; }
.subject-goal-row {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 4px;
}
.subject-goal-name { font-size: 0.8rem; font-weight: 500; }
.subject-goal-val { font-size: 0.75rem; color: var(--text-muted); }
.subject-goal-bar {
    height: 5px; background-color: var(--surface);
    border-radius: 3px; overflow: hidden;
}
.subject-goal-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; }

/* Goals modal inputs */
.goal-modal-item {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; gap: 12px;
}
.goal-modal-item label { font-size: 0.9rem; flex: 1; }
.goal-modal-item input {
    width: 70px; padding: 8px; text-align: center;
    font-size: 0.9rem;
}

/* ----------- TIMER ----------- */
.main-content {
    align-items: center; text-align: center;
    display: flex; flex-direction: column;
    justify-content: flex-start; overflow-y: auto; gap: 0;
}
.main-header {
    width: 100%; text-align: left; margin-bottom: 10px;
    display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 8px;
}
.header-actions {
    display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.mini-stats-row { margin-bottom: 10px; width: 100%; }
.mini-stat-card { padding: 12px 8px; }
.mini-stat-icon { font-size: 1.2rem; margin-bottom: 4px; }
.mini-stat-value { font-size: 1.15rem; }
.quote-box { margin-bottom: 10px; padding: 10px 16px; min-height: 44px; width: 100%; box-sizing: border-box; }
.timer-container {
    display: flex; flex-direction: column; align-items: center; gap: 70px; width: 100%;
    position: relative;
}
.timer-container::before {
    content: '';
    position: absolute;
    top: -40px; left: 50%; transform: translateX(-50%);
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, rgba(52,211,153,0.04) 40%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
    z-index: 0;
}
.timer-circle { z-index: 1; }

.timer-circle {
    position: relative; width: 290px; height: 290px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #1e293b 60%, #0f172a 100%);
    box-shadow: 0 0 0 1px rgba(99,102,241,0.1),
                0 8px 40px rgba(0,0,0,0.5),
                inset 0 1px 0 rgba(255,255,255,0.05);
}
.progress-ring { transform: rotate(-90deg); display: block; }
.progress-ring__circle {
    stroke: url(#ringGradient);
    stroke-dasharray: 848; stroke-dashoffset: 0;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear, stroke 0.3s;
}
.time-display {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.8rem; font-weight: 800; letter-spacing: -3px;
    background: linear-gradient(135deg, #f1f5f9 30%, #34d399 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(52,211,153,0.3));
}
.timer-label {
    position: absolute; bottom: -52px; left: 0; right: 0;
    color: var(--text-muted); font-weight: 500; font-size: 0.9rem;
}
.session-counter-badge {
    position: absolute; bottom: -28px; left: 0; right: 0;
    display: flex; justify-content: center;
    align-items: center;
    gap: 7px;
}
.session-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.session-dot.done {
    background: #6366f1;
    box-shadow: 0 0 6px rgba(99,102,241,0.6);
}
.session-dot.active {
    background: #34d399;
    box-shadow: 0 0 10px rgba(52,211,153,0.8);
    animation: pulse-dot 1.2s ease-in-out infinite;
}
.session-dot.pending {
    background: transparent;
    border: 1.5px solid rgba(148,163,184,0.35);
}
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(52,211,153,0.7); }
    50% { transform: scale(1.3); box-shadow: 0 0 16px rgba(52,211,153,0.9); }
}
.timer-controls { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 12px; }
.subject-select { font-size: 1rem; text-align: center; }

/* ----------- MÜZİK OYNATICI ----------- */
.music-widget { position: relative; }
.music-toggle-btn {
    background: var(--surface-hover); border: 1px solid var(--border);
    border-radius: 10px; padding: 8px 12px; cursor: pointer;
    font-size: 1.1rem; transition: 0.2s; color: white;
}
.music-toggle-btn:hover { background: var(--accent); border-color: var(--accent); }
.music-toggle-btn.playing { background: var(--accent); border-color: var(--accent); animation: pulse-music 2s infinite; }
@keyframes pulse-music {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139,92,246,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(139,92,246,0); }
}

.music-panel {
    position: absolute; top: calc(100% + 10px); right: 0;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px; width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4); z-index: 100;
}
.music-panel-title { font-weight: 600; margin-bottom: 12px; font-size: 0.9rem; }
.music-tracks { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.track-btn {
    background: #0f172a; border: 1px solid var(--border);
    border-radius: 8px; padding: 8px 12px; cursor: pointer;
    color: var(--text-muted); font-size: 0.85rem; text-align: left;
    transition: 0.2s; width: 100%;
}
.track-btn:hover { border-color: var(--accent); color: var(--text-main); }
.track-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(139,92,246,0.1); }
.music-controls { display: flex; flex-direction: column; gap: 10px; }
.volume-row { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.volume-row input { flex: 1; accent-color: var(--accent); }

/* ----------- SAĞ SIDEBAR ----------- */
.right-sidebar { padding: 0; overflow: hidden; }
.tabs { display: flex; border-bottom: 1px solid var(--border); }
.tab {
    flex: 1; padding: 12px 4px; text-align: center;
    cursor: pointer; font-weight: 500; color: var(--text-muted);
    transition: 0.2s; font-size: 0.82rem;
}
.tab.active { color: var(--primary); border-bottom: 2px solid var(--primary); }
.live-dot {
    display: inline-block; width: 7px; height: 7px;
    background-color: var(--danger); border-radius: 50%; margin-left: 4px;
    box-shadow: 0 0 8px var(--danger); animation: blink 2s infinite;
}
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }

.tab-content { display: none; padding: 16px; flex: 1; overflow-y: auto; }
.tab-content.active { display: block; }

.feed-item, .lb-item {
    background-color: rgba(15,23,42,0.6);
    padding: 12px; border-radius: 8px; margin-bottom: 10px;
    display: flex; gap: 12px; align-items: center;
    cursor: pointer;
    transition: background-color 0.15s;
}
.feed-item:hover, .lb-item:hover {
    background-color: rgba(30,41,59,0.9);
}
.feed-item .feed-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background-color: var(--surface-hover);
    display: flex; justify-content: center; align-items: center;
    font-weight: bold; flex-shrink: 0;
}
.feed-info h4 { font-size: 0.9rem; margin-bottom: 3px; }
.feed-info p { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 2px; }
.feed-info .subject-tag { color: var(--accent); font-weight: 600; }

.lb-item { justify-content: space-between; }
.lb-rank { font-size: 1.1rem; font-weight: bold; color: var(--primary); width: 28px; flex-shrink: 0; }
.lb-refresh-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px; padding: 4px 2px;
}
#lb-last-updated { font-size: 0.72rem; color: var(--text-muted); }
#lb-refresh-btn {
    background: none; border: 1px solid var(--border);
    color: var(--text-muted); border-radius: 6px;
    padding: 2px 8px; cursor: pointer; font-size: 0.85rem;
    transition: 0.15s;
}
#lb-refresh-btn:hover { color: var(--accent); border-color: var(--accent); }
.empty-state { text-align: center; color: var(--text-muted); margin-top: 24px; font-size: 0.9rem; }

/* ----------- ARKADAŞ SEKMESİ ----------- */
.friends-section-title {
    font-size: 0.78rem; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.user-card {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(15,23,42,0.6); padding: 10px 12px;
    border-radius: 8px; margin-bottom: 8px; gap: 10px;
}
.user-card-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.user-card-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: bold; flex-shrink: 0;
}
.user-card-name { font-size: 0.85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card-hours { font-size: 0.72rem; color: var(--text-muted); }
.follow-btn {
    padding: 5px 10px; border-radius: 6px; border: none;
    font-size: 0.75rem; font-weight: 600; cursor: pointer;
    transition: 0.2s; flex-shrink: 0;
}
.follow-btn.follow { background: var(--primary); color: white; }
.follow-btn.follow:hover { background: var(--primary-hover); }
.follow-btn.unfollow { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.follow-btn.unfollow:hover { border-color: var(--danger); color: var(--danger); }

/* ----------- GEÇMİŞ ----------- */
.history-item {
    background-color: rgba(15,23,42,0.6);
    padding: 12px; border-radius: 8px; margin-bottom: 10px;
    display: flex; align-items: center; gap: 12px;
}
.history-subject-icon { font-size: 1.6rem; width: 36px; text-align: center; flex-shrink: 0; }
.history-info { flex: 1; }
.history-subject { font-weight: 600; font-size: 0.9rem; margin-bottom: 3px; }
.history-meta { font-size: 0.75rem; color: var(--text-muted); }
.history-duration {
    font-size: 0.85rem; font-weight: 700; color: var(--primary);
    background: rgba(16,185,129,0.1); padding: 4px 8px; border-radius: 6px; flex-shrink: 0;
}

/* ----------- MODALLER ----------- */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,23,42,0.92); backdrop-filter: blur(6px);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; padding: 16px;
}
.modal-overlay.hidden { display: none; }
.modal {
    background-color: var(--surface); padding: 40px; border-radius: var(--radius);
    text-align: center; width: 100%; max-width: 440px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5); border: 1px solid var(--border);
    max-height: 90vh; overflow-y: auto;
}
.modal h2 { font-size: 1.8rem; margin-bottom: 14px; }
.modal p { font-size: 1rem; color: var(--text-muted); margin-bottom: 28px; line-height: 1.6; }
.modal .time-display { position: relative; font-size: 2.8rem; margin-bottom: 20px; transform: none; left: auto; top: auto; }
.neon-text { color: var(--primary); text-shadow: 0 0 10px rgba(16,185,129,0.4); }
.warning-text { color: #f59e0b; text-shadow: 0 0 10px rgba(245,158,11,0.4); }
.hidden { display: none !important; }
.mt-4 { margin-top: 16px; }

/* ----------- TOAST ----------- */
.toast-container {
    position: fixed; bottom: 80px; right: 20px;
    display: flex; flex-direction: column; gap: 10px;
    z-index: 2000; pointer-events: none;
}
.toast {
    padding: 12px 18px; border-radius: 10px;
    font-size: 0.9rem; font-weight: 500; color: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    animation: toast-in 0.3s ease; max-width: 300px;
}
.toast-success { background-color: var(--primary); }
.toast-info { background-color: var(--accent); }
.toast-warning { background-color: #f59e0b; }
.toast-fade-out { animation: toast-out 0.4s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(16px); } }

/* ----------- MOBİL ALT NAV ----------- */
.mobile-bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    height: 64px; background-color: var(--surface);
    border-top: 1px solid var(--border);
    justify-content: space-around; align-items: center; z-index: 500;
}
.mob-nav-btn {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    background: none; border: none; color: var(--text-muted);
    cursor: pointer; padding: 8px 20px; border-radius: 8px;
    transition: 0.2s; font-size: 0.72rem; font-weight: 600;
}
.mob-nav-btn.active { color: var(--primary); }
.mob-nav-icon { font-size: 1.3rem; }

/* ----------- MİNİ İSTATİSTİKLER ----------- */
.mini-stats-row {
    display: flex; gap: 10px; padding: 0 2px; margin-bottom: 16px;
}
.mini-stat-card {
    flex: 1; border-radius: 16px;
    padding: 14px 8px 12px; text-align: center;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative; overflow: hidden;
}
.mini-stat-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%);
    pointer-events: none;
}
.mini-stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

/* Bugün — mavi */
.mini-stat-card:nth-child(1) {
    background: linear-gradient(145deg, #0f1f3d 0%, #0f172a 100%);
    border-color: rgba(99,102,241,0.2);
    box-shadow: 0 4px 16px rgba(99,102,241,0.08);
}
.mini-stat-card:nth-child(1) .mini-stat-value { color: #818cf8; }

/* Günlük Seri — turuncu */
.mini-stat-card:nth-child(2) {
    background: linear-gradient(145deg, #1f1200 0%, #0f172a 100%);
    border-color: rgba(251,146,60,0.2);
    box-shadow: 0 4px 16px rgba(251,146,60,0.08);
}
.mini-stat-card:nth-child(2) .mini-stat-value { color: #fb923c; }

/* Bu Hafta — yeşil */
.mini-stat-card:nth-child(3) {
    background: linear-gradient(145deg, #001a10 0%, #0f172a 100%);
    border-color: rgba(52,211,153,0.2);
    box-shadow: 0 4px 16px rgba(52,211,153,0.08);
}
.mini-stat-card:nth-child(3) .mini-stat-value { color: #34d399; }

.mini-stat-icon { font-size: 1.4rem; margin-bottom: 6px; display: block; }
.mini-stat-value {
    font-size: 1.3rem; font-weight: 800;
    line-height: 1; margin-bottom: 5px;
}
.mini-stat-label { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.3px; }

/* ----------- MOTİVASYON SÖZÜ ----------- */
/* ----------- QUOTE BOX ----------- */
.quote-box {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(52,211,153,0.08) 100%);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 16px; padding: 14px 20px 14px 48px;
    margin-bottom: 20px; text-align: left;
    min-height: 52px; display: flex; align-items: center;
    box-shadow: 0 4px 20px rgba(99,102,241,0.08), inset 0 1px 0 rgba(255,255,255,0.05);
}
.quote-box::before {
    content: '"'; position: absolute; left: 12px; top: 4px;
    font-size: 2.8rem; font-family: Georgia, serif;
    color: rgba(99,102,241,0.35); line-height: 1; font-style: normal;
}
.quote-text {
    font-size: 0.86rem; color: #cbd5e1;
    font-style: italic; line-height: 1.5;
    transition: opacity 0.5s;
}

/* ----------- BİLDİRİM BUTONU ----------- */
.notif-btn {
    position: relative; background: transparent; border: none;
    font-size: 1.1rem; cursor: pointer; padding: 6px 8px;
    border-radius: 8px; transition: background 0.2s;
}
.notif-btn:hover { background: rgba(255,255,255,0.07); }
.notif-badge {
    position: absolute; top: 2px; right: 2px;
    background: #ef4444; color: #fff;
    font-size: 0.6rem; font-weight: 700;
    min-width: 16px; height: 16px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 3px;
}
.notif-panel {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: #1e293b; border: 1px solid var(--border);
    border-radius: 0 0 20px 20px;
    border-top: none;
    margin-bottom: 0;
    max-height: 70vh;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.notif-list { max-height: calc(70vh - 52px); overflow-y: auto; }
.notif-panel-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    font-size: 0.85rem; font-weight: 600; color: var(--text);
}
.notif-clear-btn {
    background: none; border: none; color: #6366f1;
    font-size: 0.75rem; cursor: pointer; font-weight: 500;
}
.notif-clear-btn:hover { text-decoration: underline; }
.notif-list { max-height: 280px; overflow-y: auto; }
.notif-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.2s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: rgba(99,102,241,0.07); }
.notif-item:hover { background: rgba(255,255,255,0.04); }
.notif-icon { font-size: 1.1rem; margin-top: 1px; flex-shrink: 0; }
.notif-content { flex: 1; min-width: 0; }
.notif-content-text { font-size: 0.82rem; color: var(--text); line-height: 1.4; }
.notif-time { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.notif-empty { padding: 24px; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* ----------- GÖREV LİSTESİ ----------- */
.task-section {
    background-color: #0f172a; padding: 16px; border-radius: 8px; margin-bottom: 16px;
    width: 100%; max-width: 480px; box-sizing: border-box;
}
.task-section-header {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; margin-bottom: 12px;
}
.task-section-header h3 { margin-bottom: 0; flex: 1; }
.task-toggle-icon { color: var(--text-muted); font-size: 0.75rem; transition: 0.2s; }
.task-toggle-icon.closed { transform: rotate(-90deg); }
.task-badge {
    background: var(--primary); color: white; border-radius: 10px;
    padding: 1px 7px; font-size: 0.7rem; font-weight: 700;
}
.task-input-row { margin-bottom: 10px; display: flex; gap: 8px; width: 100%; box-sizing: border-box; overflow: hidden; }
.task-input-row input { padding: 9px 12px; font-size: 0.85rem; flex: 1; min-width: 0; width: 0; }
.task-input-row button { flex-shrink: 0; width: 42px; padding: 0; }
.task-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; border-bottom: 1px solid var(--border);
}
.task-item:last-child { border-bottom: none; }
.task-checkbox {
    width: 18px; height: 18px; accent-color: var(--primary);
    cursor: pointer; flex-shrink: 0;
}
.task-text {
    flex: 1; font-size: 0.85rem; cursor: pointer; word-break: break-word;
    transition: 0.2s;
}
.task-text.done { text-decoration: line-through; color: var(--text-muted); }
.task-delete-btn {
    background: none; border: none; color: var(--text-muted);
    cursor: pointer; font-size: 1rem; padding: 2px 4px;
    border-radius: 4px; flex-shrink: 0; transition: 0.2s;
    opacity: 0;
}
.task-item:hover .task-delete-btn { opacity: 1; }
.task-delete-btn:hover { color: var(--danger); background: rgba(239,68,68,0.1); }

/* ----------- POMODORO AYARLARI ----------- */
.start-row { display: flex; gap: 10px; align-items: stretch; justify-content: center; }
.start-row #start-btn {
    flex: 1; padding: 14px 20px; font-size: 1rem;
    white-space: nowrap; line-height: 1.2;
}
.start-row #pomodoro-settings-btn {
    width: 48px; flex-shrink: 0; padding: 0;
    font-size: 1.1rem; border-radius: 8px;
}
.pomodoro-settings-panel {
    background: #0f172a; border: 1px solid var(--border);
    border-radius: 14px; padding: 16px; margin-top: 12px;
    text-align: left; width: 100%;
}
.pomo-setting-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px solid var(--border);
}
.pomo-setting-row:last-of-type { border-bottom: none; }
.pomo-setting-row label { font-size: 0.85rem; color: var(--text-muted); }
.pomo-input-group {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.95rem; font-weight: 700; color: white;
}
.pomo-step-btn {
    width: 28px; height: 28px; border-radius: 8px;
    background: var(--surface-hover); border: 1px solid var(--border);
    color: white; cursor: pointer; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    transition: 0.15s;
}
.pomo-step-btn:hover { background: var(--primary); border-color: var(--primary); }

/* Görev listesi ana alanda */
.task-section-main {
    width: 100%; max-width: 480px;
    margin-top: 20px; text-align: left;
}
.task-section-main .task-section-header h3 { font-size: 1rem; }

/* ----------- ODA BUTONU ----------- */
.lang-toggle-btn {
    background: var(--surface-hover); border: 1px solid var(--border);
    border-radius: 8px; padding: 6px 10px; cursor: pointer;
    font-size: 0.85rem; font-weight: 600; color: var(--text-main);
    transition: 0.2s; display: inline-flex; align-items: center; gap: 4px;
}
.lang-toggle-btn:hover { background: var(--primary); border-color: var(--primary); }
.lang-flag {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 20px; border-radius: 4px;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.5px; color: #fff;
}
.lang-flag-tr { background: #e30a17; }
.lang-flag-en { background: #012169; }

.room-header-btn {
    background: var(--surface-hover); border: 1px solid var(--border);
    border-radius: 10px; padding: 8px 12px; cursor: pointer;
    font-size: 0.85rem; font-weight: 600; color: var(--text-main);
    transition: 0.2s; white-space: nowrap;
}
.room-header-btn:hover { background: #3b82f6; border-color: #3b82f6; }
.room-header-btn.in-room { background: #3b82f6; border-color: #3b82f6; animation: pulse-room 2s infinite; }
@keyframes pulse-room {
    0%,100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(59,130,246,0); }
}

/* ----------- GRUP ODALARI OVERLAY ----------- */
.room-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,0.85); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 900; padding: 20px;
}
.room-panel {
    background: var(--surface); border-radius: var(--radius);
    width: 100%; max-width: 560px; max-height: 90vh;
    overflow-y: auto; border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.room-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid var(--border);
    position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.room-panel-header h2 { margin: 0; font-size: 1.3rem; }

/* Oda içerik alanı */
.room-body { padding: 20px 24px; }
.room-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.room-tab {
    flex: 1; padding: 10px; border-radius: 8px; border: 1px solid var(--border);
    background: transparent; color: var(--text-muted); cursor: pointer;
    font-size: 0.85rem; font-weight: 600; transition: 0.2s;
}
.room-tab.active { background: #3b82f6; border-color: #3b82f6; color: white; }
.room-form-group { margin-bottom: 14px; }
.room-form-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.room-form-group input, .room-form-group select {
    padding: 10px 12px; font-size: 0.9rem;
}
.room-code-display {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    background: #0f172a; border-radius: 10px; padding: 16px;
    margin: 16px 0;
}
.room-code {
    font-size: 2rem; font-weight: 800; letter-spacing: 6px;
    color: #3b82f6; font-family: monospace;
}
.copy-btn {
    background: var(--surface-hover); border: 1px solid var(--border);
    border-radius: 8px; padding: 8px 12px; cursor: pointer;
    font-size: 0.8rem; color: var(--text-main); transition: 0.2s;
}
.copy-btn:hover { background: var(--primary); border-color: var(--primary); }
.room-info-card {
    background: #0f172a; border-radius: 10px; padding: 16px; margin-bottom: 16px;
}
.room-info-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.room-info-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.room-members-title {
    font-size: 0.75rem; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px;
}
.room-member-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; border-bottom: 1px solid var(--border);
}
.room-member-item:last-child { border-bottom: none; }
.room-member-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #3b82f6);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: bold; flex-shrink: 0;
}
.room-member-name { flex: 1; font-size: 0.85rem; }
.room-member-status { font-size: 0.75rem; }
.room-member-status.studying { color: var(--primary); }
.room-member-status.idle { color: var(--text-muted); }
.room-danger-btn {
    background: transparent; border: 1px solid var(--danger);
    color: var(--danger); border-radius: 8px; padding: 10px 16px;
    cursor: pointer; font-size: 0.85rem; font-weight: 600;
    transition: 0.2s; width: 100%; margin-top: 12px;
}
.room-danger-btn:hover { background: var(--danger); color: white; }
.room-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 0.9rem; }

/* ----------- TABLET ----------- */
@media (max-width: 1080px) {
    #app-view.active { grid-template-columns: 260px 1fr 300px; gap: 16px; }
}
@media (max-width: 900px) {
    #app-view.active { grid-template-columns: 240px 1fr; grid-template-rows: 1fr auto; }
    .right-sidebar { grid-column: 1 / -1; flex-direction: column; max-height: 380px; }
}

/* ----------- MOBİL ----------- */
@media (max-width: 768px) {
    body { padding: 0; align-items: flex-start; min-height: 100dvh; }

    #auth-view { padding: 16px; align-items: flex-start; padding-top: 40px; }
    .auth-card { width: 100%; max-width: 100%; padding: 28px 20px; border-radius: var(--radius); box-shadow: none; }

    #app-view.active { display: block; padding-bottom: 68px; min-height: 100dvh; max-width: 100%; gap: 0; }

    .panel { border-radius: 0; min-height: calc(100dvh - 68px); width: 100%; }

    .sidebar { display: none; }
    .sidebar.mob-active { display: flex !important; }
    .right-sidebar { display: none; max-height: unset; }
    .right-sidebar.mob-active { display: flex !important; flex-direction: column; }
    .main-content.mob-hidden { display: none !important; }

    .timer-circle { width: 240px; height: 240px; }
    .progress-ring { width: 240px !important; height: 240px !important; }
    .time-display { font-size: 2.8rem; }
    .timer-controls { width: 100%; max-width: 480px; }
    .task-section { width: 100%; max-width: 480px; }
    .timer-label { font-size: 0.78rem; bottom: -70px; line-height: 1.3; }
    .session-counter-badge { bottom: -26px; }
    .timer-container { gap: 100px; }
    .main-content { padding: 12px 14px; }
    .main-header { margin-bottom: 8px; gap: 6px; }
    .main-header h2 { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
    .room-header-btn .room-btn-text { display: none; }
    .room-header-btn { padding: 8px 10px; }
    .task-section-main { max-width: 100%; }
    .mini-stat-card { padding: 10px 6px; }
    .mini-stat-value { font-size: 1rem; }
    .mini-stat-label { font-size: 0.65rem; }
    .quote-box { padding: 8px 12px; }
    .quote-text { font-size: 0.8rem; }
    .start-row #start-btn { padding: 10px 14px; font-size: 0.9rem; }
    .btn.large-btn { padding: 10px; font-size: 0.9rem; }
    .subject-select { font-size: 0.88rem; padding: 8px 10px; }
    .timer-controls { gap: 8px; }
    .sidebar { padding: 20px 16px; }
    .tab-content { padding: 12px; }
    .tab { font-size: 0.72rem; padding: 10px 2px; }
    .modal { padding: 28px 20px; }
    .modal h2 { font-size: 1.5rem; }
    .toast-container { bottom: 76px; right: 12px; left: 12px; }
    .toast { max-width: 100%; }
    .mobile-bottom-nav { display: flex; }
    .streak-num { font-size: 1.3rem; }

    .music-panel { right: 0; left: auto; width: 220px; }
    .music-toggle-btn { padding: 6px 10px; font-size: 1rem; }
}

@media (max-width: 380px) {
    .time-display { font-size: 2.6rem; }
    .timer-circle { width: 210px; height: 210px; }
    .timer-container { gap: 110px; }
    .progress-ring { width: 210px !important; height: 210px !important; }
    .btn.large-btn { padding: 9px; font-size: 0.85rem; }
    .logo { font-size: 1.7rem; }
}

/* ----------- LANDING TABLET ----------- */
@media (max-width: 900px) {
    .hero-inner { gap: 36px; }
    .mockup-phone { width: 220px; }
    .mock-timer { width: 90px; height: 90px; font-size: 2.2rem; }
}

/* ----------- LANDING MOBİL ----------- */
@media (max-width: 640px) {
    /* Navbar */
    .landing-nav-inner { padding: 10px 16px; }
    .landing-logo { font-size: 1.15rem; }
    .landing-nav-actions { gap: 8px; }
    .landing-nav-actions .landing-login-btn { display: none; }
    .landing-cta-btn { padding: 8px 14px; font-size: 0.82rem; }
    .lang-toggle-btn { padding: 6px 10px; font-size: 0.78rem; }

    /* Hero */
    .landing-hero { padding: 48px 20px 36px; }
    .hero-inner { flex-direction: column; gap: 36px; }
    .hero-text { text-align: center; }
    .hero-mockup { width: 100%; }
    .hero-badge { font-size: 0.8rem; padding: 5px 14px; margin-bottom: 20px; }
    .hero-title { font-size: clamp(1.8rem, 8vw, 2.6rem); letter-spacing: -0.5px; }
    .hero-sub { font-size: 0.92rem; line-height: 1.6; margin-left: auto; margin-right: auto; }
    .hero-btns { flex-direction: column; align-items: center; gap: 12px; justify-content: center; }
    .hero-main-btn { width: 100%; max-width: 320px; }
    .hero-secondary-btn { justify-content: center; }
    .hero-stats { gap: 10px; flex-wrap: wrap; justify-content: center; }
    .hero-stat { font-size: 0.8rem; }

    /* Sections */
    .steps-row { flex-direction: column; align-items: center; }
    .step-arrow { transform: rotate(90deg); }
    .install-cards { grid-template-columns: 1fr; }
    .platform-badges { gap: 8px; }
    .pwa-perks { gap: 6px; }
    .free-card { padding: 32px 20px; }
    .free-card h2 { font-size: 1.5rem; }
    .features-grid { grid-template-columns: 1fr; }
    .landing-section-title { font-size: 1.6rem; }

    /* Mockup */
    .mockup-phone { width: 200px; }
    .mock-timer { width: 90px; height: 90px; font-size: 2.2rem; }
}


/* ==========================================
   WEEKLY CHART
   ========================================== */
.weekly-chart-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 16px 12px;
    margin-bottom: 16px;
}
.weekly-chart-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* ==========================================
   CHAT
   ========================================== */
.live-section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin: 16px 0 8px;
    font-size: 0.8rem; font-weight: 700;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
}
.chat-box {
    margin-top: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.chat-header {
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.chat-messages {
    height: 220px;
    overflow-y: auto;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scroll-behavior: smooth;
}
.chat-msg {
    font-size: 0.85rem;
    line-height: 1.4;
    word-break: break-word;
}
.chat-msg-name {
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    margin-right: 6px;
}
.chat-msg-name:hover { text-decoration: underline; }
.chat-msg-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: 6px;
}
.chat-msg-text { color: var(--text-main); }
.chat-msg.system-msg .chat-msg-text { color: var(--text-muted); font-style: italic; }

/* Süperadmin / Kurucu mesajı */
.chat-msg.chat-msg-owner {
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
    border-left: 3px solid #6366f1;
    border-radius: 0 8px 8px 0;
    padding: 4px 8px;
    margin: 2px 0;
}
.chat-msg.chat-msg-owner .chat-msg-name {
    background: linear-gradient(90deg, #a78bfa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.chat-owner-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 1px 7px;
    border-radius: 20px;
    margin-right: 5px;
    vertical-align: middle;
    position: relative;
    top: -1px;
    box-shadow: 0 0 8px rgba(99,102,241,0.5);
}

/* Mod mesajı */
.chat-msg.chat-msg-mod {
    background: linear-gradient(135deg, rgba(16,185,129,0.10), rgba(52,211,153,0.06));
    border-left: 3px solid #10b981;
    border-radius: 0 8px 8px 0;
    padding: 4px 8px;
    margin: 2px 0;
}
.chat-msg.chat-msg-mod .chat-msg-name {
    background: linear-gradient(90deg, #34d399, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.chat-mod-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, #059669, #10b981);
    color: #fff;
    padding: 1px 7px;
    border-radius: 20px;
    margin-right: 5px;
    vertical-align: middle;
    position: relative;
    top: -1px;
    box-shadow: 0 0 8px rgba(16,185,129,0.45);
}

/* Onaylı kullanıcı rozeti */
.chat-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 0.7rem;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #fff;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
    position: relative;
    top: -1px;
    box-shadow: 0 0 6px rgba(245,158,11,0.5);
    cursor: default;
    title: "Onaylı Kullanıcı";
}
.chat-input-row {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--border);
}
.chat-input-row input {
    flex: 1;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-main);
    font-size: 0.88rem;
    outline: none;
}
.chat-input-row input:focus { border-color: var(--primary); }
.chat-send-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.15s;
    flex-shrink: 0;
}
.chat-send-btn:hover { background: #4f46e5; }
.muted-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(239,68,68,0.15);
    color: #f87171;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 4px;
}
.chat-header { display: flex; align-items: center; justify-content: space-between; }
.chat-toggle-btn {
    font-size: 0.72rem; font-weight: 700; border: none; border-radius: 6px;
    padding: 3px 10px; cursor: pointer; transition: 0.15s;
}
.chat-toggle-btn.mute  { background: rgba(239,68,68,0.15); color: #ef4444; }
.chat-toggle-btn.unmute { background: rgba(52,211,153,0.15); color: #34d399; }
.chat-muted-bar {
    text-align: center; padding: 8px; font-size: 0.82rem;
    color: #f87171; background: rgba(239,68,68,0.08);
    border-top: 1px solid var(--border);
}

.auth-divider {
    display: flex; align-items: center; gap: 10px;
    margin: 14px 0; color: var(--text-muted); font-size: 0.82rem;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}
.google-btn {
    width: 100%; display: flex; align-items: center; justify-content: center;
    background: var(--surface-hover); border: 1px solid var(--border);
    border-radius: 10px; padding: 10px 16px; cursor: pointer;
    font-size: 0.92rem; font-weight: 600; color: var(--text-main);
    transition: 0.2s; margin-bottom: 4px;
}

/* ==========================================
   SINAV SAYACI — LANDING
   ========================================== */
.landing-countdown {
    max-width: 780px; margin: -8px auto 48px; padding: 0 20px;
}
.countdown-unified {
    display: flex; align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}
.countdown-unified::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 49%, #6366f1 51%, #8b5cf6 100%);
    z-index: 1;
}
.countdown-half {
    flex: 1; padding: 20px 16px 16px;
    text-align: center; display: flex; flex-direction: column;
    align-items: center; gap: 4px;
}
.lgs-half { background: radial-gradient(ellipse at 50% -20%, rgba(245,158,11,0.05) 0%, transparent 60%); }
.yks-half { background: radial-gradient(ellipse at 50% -20%, rgba(99,102,241,0.05) 0%, transparent 60%); }
.countdown-divider-vert {
    width: 1px; background: var(--border); flex-shrink: 0; margin: 12px 0;
}

.exam-badge {
    display: inline-block;
    font-size: 0.67rem; font-weight: 800; letter-spacing: 0.8px;
    text-transform: uppercase;
    background: rgba(245,158,11,0.1); color: #fbbf24;
    border: 1px solid rgba(245,158,11,0.22);
    border-radius: 20px; padding: 2px 8px;
}
.yks-badge {
    background: rgba(99,102,241,0.1); color: #a5b4fc;
    border-color: rgba(99,102,241,0.22);
}
.exam-date {
    font-size: 0.7rem; color: var(--text-muted);
}
.countdown-nums {
    display: flex; align-items: flex-start; justify-content: center; gap: 3px;
    margin: 4px 0;
}
.cnum-block {
    display: flex; flex-direction: column; align-items: center;
    width: 52px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 9px; padding: 7px 4px 5px;
}
.lgs-half .cnum-block span { color: #fde68a; }
.yks-half .cnum-block span { color: #c4b5fd; }
.cnum-block span {
    font-size: 1.55rem; font-weight: 800; line-height: 1;
    font-variant-numeric: tabular-nums; letter-spacing: -1px;
}
.cnum-block small {
    font-size: 0.55rem; color: var(--text-muted); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px; margin-top: 3px;
}
.cnum-sep {
    font-size: 1.2rem; font-weight: 700; color: rgba(148,163,184,0.3);
    padding-top: 7px; line-height: 1; flex-shrink: 0;
}
.exam-sub {
    font-size: 0.7rem; color: var(--text-muted);
}

/* ==========================================
   SINAV SAYACI — APP (kompakt bant)
   ========================================== */
.app-countdown-bar {
    display: flex; align-items: center; justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 12px;
    width: 100%; max-width: 480px;
}
.app-cdown-item {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 0;
}
.app-cdown-label {
    font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1px; color: var(--text-muted);
}
.app-cdown-nums {
    display: flex; gap: 2px; align-items: center;
}
.app-cnum {
    display: flex; flex-direction: column; align-items: center;
    min-width: 32px;
}
.app-cnum span {
    font-size: 1.1rem; font-weight: 800; line-height: 1;
    font-variant-numeric: tabular-nums;
}
.app-cnum small {
    font-size: 0.56rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
}
.app-cnum-sep { font-size: 0.9rem; color: var(--text-muted); padding-bottom: 8px; font-weight: 700; }
.app-cdown-divider {
    width: 1px; height: 32px; background: var(--border); margin: 0 12px; flex-shrink: 0;
}
.lgs-nums span { color: #fbbf24; }
.yks-nums span { color: #818cf8; }

@media (max-width: 600px) {
    .landing-countdown { margin-top: 0; margin-bottom: 28px; padding: 0 16px; }
    .countdown-half { padding: 12px 10px 10px; gap: 3px; }
    .cnum-block { width: 42px; padding: 5px 3px 4px; border-radius: 7px; }
    .cnum-block span { font-size: 1.15rem; letter-spacing: -0.5px; }
    .cnum-block small { font-size: 0.5rem; margin-top: 2px; }
    .cnum-sep { font-size: 0.9rem; padding-top: 5px; }
    .exam-badge { font-size: 0.62rem; padding: 2px 7px; }
    .exam-date { font-size: 0.64rem; }
    .exam-sub { font-size: 0.64rem; }
    .countdown-nums { gap: 2px; }
    /* Saniyeyi mobilde gizle — son blok + son ayraç */
    .countdown-nums > div:last-child,
    .countdown-nums > div:nth-last-child(2) { display: none; }
}
@media (max-width: 380px) {
    .cnum-block { width: 38px; }
    .cnum-block span { font-size: 1.05rem; }
}
.google-btn:hover { background: var(--surface); border-color: #4285F4; }

/* ==========================================
   PROFİL MODALİ
   ========================================== */
.profile-modal-overlay {
    position: fixed; inset: 0; z-index: 1100;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: fadeIn 0.15s ease;
}
.profile-modal-overlay.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.profile-modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 24px 24px;
    width: 100%; max-width: 400px;
    position: relative;
    animation: slideUp 0.2s ease;
    max-height: 90vh; overflow-y: auto;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }

.profile-modal-close {
    position: absolute; top: 16px; right: 16px;
    background: var(--surface-hover); border: none; color: var(--text-muted);
    width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
    font-size: 0.85rem; display: flex; align-items: center; justify-content: center;
    transition: 0.15s;
}
.profile-modal-close:hover { color: white; background: var(--danger); }

/* Header */
.pm-header {
    display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
}
.pm-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--accent); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; font-weight: 800; flex-shrink: 0;
}
.pm-header-info { min-width: 0; }
.pm-username {
    font-size: 1.2rem; font-weight: 700; color: var(--text-main);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pm-badge-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.pm-badge {
    font-size: 0.72rem; font-weight: 700; color: var(--accent);
    background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.2);
    border-radius: 20px; padding: 2px 8px;
}
.pm-online {
    font-size: 0.7rem; color: #22c55e; font-weight: 600;
}

/* Status */
.pm-status {
    font-size: 0.85rem; color: var(--text-muted); font-style: italic;
    background: rgba(255,255,255,0.03); border-left: 2px solid var(--accent);
    padding: 8px 12px; border-radius: 0 8px 8px 0;
    margin-bottom: 16px;
}

/* Stats */
.pm-stats-row {
    display: flex; align-items: center; justify-content: space-around;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px; padding: 14px 8px;
    margin-bottom: 16px;
}
.pm-stat { text-align: center; flex: 1; }
.pm-stat-val {
    font-size: 1.3rem; font-weight: 800; color: var(--text-main);
    font-variant-numeric: tabular-nums;
}
.pm-stat-lbl { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 3px; }
.pm-stat-divider { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }

/* Social row */
.pm-social-row {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin-bottom: 12px;
    border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.pm-social-btn {
    flex: 1; background: none; border: none; cursor: pointer;
    padding: 10px 8px; display: flex; flex-direction: column;
    align-items: center; gap: 2px;
    transition: background 0.15s;
}
.pm-social-btn:hover { background: rgba(255,255,255,0.05); }
.pm-social-btn.active { background: rgba(139,92,246,0.1); }
.pm-social-count { font-size: 1.1rem; font-weight: 800; color: var(--text-main); }
.pm-social-lbl { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.pm-social-divider { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }

/* Follow list */
.pm-follow-list {
    display: none; flex-direction: column; gap: 6px;
    max-height: 180px; overflow-y: auto;
    margin-bottom: 12px; padding: 4px 0;
}
.pm-follow-list.open { display: flex; }
.pm-follow-user {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 8px;
    cursor: pointer; transition: background 0.15s;
}
.pm-follow-user:hover { background: rgba(255,255,255,0.05); }
.pm-follow-user-av {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700; color: white; flex-shrink: 0;
}
.pm-follow-user-name { font-size: 0.88rem; font-weight: 500; color: var(--text-main); flex: 1; }
.pm-follow-empty { font-size: 0.8rem; color: var(--text-muted); text-align: center; padding: 12px 0; }
.pm-unfollow-btn {
    background: none; border: 1px solid var(--border); color: var(--text-muted);
    border-radius: 6px; padding: 2px 7px; font-size: 0.7rem; cursor: pointer;
    transition: 0.15s; flex-shrink: 0; margin-left: auto;
}
.pm-unfollow-btn:hover { border-color: var(--danger); color: var(--danger); background: rgba(239,68,68,0.08); }


/* Ders Dağılımı */
.pm-subjects { margin-bottom: 16px; }
.pm-subjects-title {
    font-size: 0.72rem; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px;
}
.pm-subject-row {
    display: flex; align-items: center; gap: 8px; margin-bottom: 7px;
}
.pm-subject-name {
    font-size: 0.78rem; color: var(--text-main); min-width: 100px; font-weight: 500;
}
.pm-subject-bar-wrap {
    flex: 1; height: 6px; background: rgba(255,255,255,0.06);
    border-radius: 3px; overflow: hidden;
}
.pm-subject-bar {
    height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, #6366f1, #10b981);
    transition: width 0.4s ease;
}
.pm-subject-hours {
    font-size: 0.72rem; color: var(--text-muted); min-width: 32px; text-align: right;
}

/* Actions */
.pm-actions { display: flex; gap: 8px; justify-content: center; }

/* Leaderboard avatar */
.lb-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--accent); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 700; flex-shrink: 0;
}

/* Feed/Leaderboard tıklanabilir hale gelince */
.feed-item { cursor: pointer; transition: background 0.15s; }
.feed-item:hover { background: rgba(255,255,255,0.04); border-radius: 10px; }
.lb-item { cursor: pointer; transition: background 0.15s; }
.lb-item:hover { background: rgba(255,255,255,0.04); border-radius: 8px; }
.user-card { cursor: pointer; }

/* Profil header hover */
#own-profile-header { transition: opacity 0.15s; }
#own-profile-header:hover { opacity: 0.85; }

@media (max-width: 480px) {
    .profile-modal { padding: 24px 16px 20px; border-radius: 16px; }
    .pm-avatar { width: 52px; height: 52px; font-size: 1.3rem; }
    .pm-username { font-size: 1.05rem; }
}
