/* ============================================================
   StudySync — Premium Animated CSS (ORİJİNAL KORUMALI)
   ============================================================ */

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

/* ---- CSS Variables (Pink Light - default) ---- */
:root {
    --c1: #ff5fa0;
    --c2: #ff85bc;
    --c3: #ffb3d1;
    --bg: #fff0f5;
    --bg2: #ffe0ed;
    --card: rgba(255, 255, 255, 0.88);
    --sidebar-bg: rgba(255, 240, 248, 0.96);
    --text: #3a1a28;
    --text2: #7a4060;
    --muted: #b07090;
    --border: rgba(255, 95, 160, 0.18);
    --shadow: 0 12px 40px rgba(255, 95, 160, 0.15);
    --glow: rgba(255, 95, 160, 0.3);
    --active-bg: linear-gradient(135deg, rgba(255, 95, 160, 0.15), rgba(255, 133, 188, 0.15));
    --success: #28d99c;
    --danger: #ff4d4d;
    --warning: #ffb347;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --r: 20px;
}

/* Level & Streak UI */
.xp-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--bg2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}

.xp-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--c1), var(--c2));
    border-radius: 10px;
    transition: width 1s ease-in-out;
    box-shadow: 0 0 10px var(--glow);
}

.streak-badge {
    background: linear-gradient(135deg, #ff9a00, #ff4d4d);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 10px rgba(255, 77, 77, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}


html[data-color="pink"][data-theme="dark"] {
    --c1: #ff5fa0;
    --c2: #ff85bc;
    --c3: #6a1535;
    --bg: #120009;
    --bg2: #200014;
    --card: rgba(38, 5, 22, 0.88);
    --sidebar-bg: rgba(20, 2, 14, 0.97);
    --text: #ffe0ec;
    --text2: #ffaacb;
    --muted: #7a4060;
    --border: rgba(255, 95, 160, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glow: rgba(255, 95, 160, 0.25);
    --active-bg: rgba(255, 95, 160, 0.12);
}

html[data-color="purple"][data-theme="light"] {
    --c1: #8b5cf6;
    --c2: #a78bfa;
    --c3: #ddd6fe;
    --bg: #f5f3ff;
    --bg2: #ede9fe;
    --card: rgba(255, 255, 255, 0.82);
    --sidebar-bg: rgba(245, 243, 255, 0.96);
    --text: #2e1060;
    --text2: #5b21b6;
    --muted: #7c6b9d;
    --border: rgba(139, 92, 246, 0.18);
    --shadow: 0 8px 32px rgba(139, 92, 246, 0.18);
    --glow: rgba(139, 92, 246, 0.35);
    --active-bg: rgba(139, 92, 246, 0.12);
}

html[data-color="purple"][data-theme="dark"] {
    --c1: #a78bfa;
    --c2: #c4b5fd;
    --c3: #2e1065;
    --bg: #08031c;
    --bg2: #12063a;
    --card: rgba(18, 6, 55, 0.88);
    --sidebar-bg: rgba(8, 3, 28, 0.97);
    --text: #ede9fe;
    --text2: #c4b5fd;
    --muted: #5b4080;
    --border: rgba(167, 139, 250, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glow: rgba(167, 139, 250, 0.25);
    --active-bg: rgba(167, 139, 250, 0.12);
}

html[data-color="blue"][data-theme="light"] {
    --c1: #3b82f6;
    --c2: #60a5fa;
    --c3: #dbeafe;
    --bg: #eff6ff;
    --bg2: #dbeafe;
    --card: rgba(255, 255, 255, 0.82);
    --sidebar-bg: rgba(239, 246, 255, 0.96);
    --text: #1e3a5f;
    --text2: #1d4ed8;
    --muted: #5a90c0;
    --border: rgba(59, 130, 246, 0.18);
    --shadow: 0 8px 32px rgba(59, 130, 246, 0.18);
    --glow: rgba(59, 130, 246, 0.35);
    --active-bg: rgba(59, 130, 246, 0.12);
}

html[data-color="blue"][data-theme="dark"] {
    --c1: #60a5fa;
    --c2: #93c5fd;
    --c3: #0a1e42;
    --bg: #030a18;
    --bg2: #071228;
    --card: rgba(7, 18, 45, 0.88);
    --sidebar-bg: rgba(3, 10, 24, 0.97);
    --text: #dbeafe;
    --text2: #93c5fd;
    --muted: #3a608a;
    --border: rgba(96, 165, 250, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glow: rgba(96, 165, 250, 0.25);
    --active-bg: rgba(96, 165, 250, 0.12);
}

html[data-color="green"][data-theme="light"] {
    --c1: #10b981;
    --c2: #34d399;
    --c3: #d1fae5;
    --bg: #ecfdf5;
    --bg2: #d1fae5;
    --card: rgba(255, 255, 255, 0.82);
    --sidebar-bg: rgba(236, 253, 245, 0.96);
    --text: #0f3028;
    --text2: #047857;
    --muted: #3a8060;
    --border: rgba(16, 185, 129, 0.18);
    --shadow: 0 8px 32px rgba(16, 185, 129, 0.18);
    --glow: rgba(16, 185, 129, 0.35);
    --active-bg: rgba(16, 185, 129, 0.12);
}

html[data-color="green"][data-theme="dark"] {
    --c1: #34d399;
    --c2: #6ee7b7;
    --c3: #042818;
    --bg: #01100a;
    --bg2: #031a10;
    --card: rgba(3, 20, 12, 0.88);
    --sidebar-bg: rgba(1, 10, 6, 0.97);
    --text: #d1fae5;
    --text2: #6ee7b7;
    --muted: #1a6040;
    --border: rgba(52, 211, 153, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glow: rgba(52, 211, 153, 0.25);
    --active-bg: rgba(52, 211, 153, 0.12);
}

html[data-color="orange"][data-theme="light"] {
    --c1: #f97316;
    --c2: #fb923c;
    --c3: #fed7aa;
    --bg: #fff7ed;
    --bg2: #ffedd5;
    --card: rgba(255, 255, 255, 0.82);
    --sidebar-bg: rgba(255, 247, 237, 0.96);
    --text: #3d1202;
    --text2: #c2410c;
    --muted: #a05030;
    --border: rgba(249, 115, 22, 0.18);
    --shadow: 0 8px 32px rgba(249, 115, 22, 0.18);
    --glow: rgba(249, 115, 22, 0.35);
    --active-bg: rgba(249, 115, 22, 0.12);
}

html[data-color="orange"][data-theme="dark"] {
    --c1: #fb923c;
    --c2: #fdba74;
    --c3: #3d1200;
    --bg: #0f0500;
    --bg2: #1d0a00;
    --card: rgba(30, 8, 0, 0.88);
    --sidebar-bg: rgba(15, 5, 0, 0.97);
    --text: #fed7aa;
    --text2: #fdba74;
    --muted: #7a3010;
    --border: rgba(251, 146, 60, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glow: rgba(251, 146, 60, 0.25);
    --active-bg: rgba(251, 146, 60, 0.12);
}

/* Yellow Theme */
html[data-color="yellow"][data-theme="light"] {
    --c1: #eab308;
    --c2: #facc15;
    --c3: #fef9c3;
    --bg: #fefce8;
    --bg2: #fef9c3;
    --card: rgba(255, 255, 255, 0.82);
    --sidebar-bg: rgba(254, 252, 232, 0.96);
    --text: #422006;
    --text2: #854d0e;
    --muted: #a16207;
    --border: rgba(234, 179, 8, 0.2);
    --shadow: 0 8px 32px rgba(234, 179, 8, 0.15);
    --glow: rgba(234, 179, 8, 0.35);
    --active-bg: rgba(234, 179, 8, 0.12);
}

html[data-color="yellow"][data-theme="dark"] {
    --c1: #facc15;
    --c2: #fef08a;
    --c3: #422006;
    --bg: #100a00;
    --bg2: #1c1400;
    --card: rgba(28, 20, 0, 0.88);
    --sidebar-bg: rgba(16, 10, 0, 0.97);
    --text: #fef9c3;
    --text2: #fef08a;
    --muted: #a16207;
    --border: rgba(250, 204, 21, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glow: rgba(250, 204, 21, 0.25);
    --active-bg: rgba(250, 204, 21, 0.12);
}

/* Red Theme */
html[data-color="red"][data-theme="light"] {
    --c1: #ef4444;
    --c2: #f87171;
    --c3: #fee2e2;
    --bg: #fef2f2;
    --bg2: #fee2e2;
    --card: rgba(255, 255, 255, 0.82);
    --sidebar-bg: rgba(254, 242, 242, 0.96);
    --text: #450a0a;
    --text2: #b91c1c;
    --muted: #991b1b;
    --border: rgba(239, 68, 68, 0.18);
    --shadow: 0 8px 32px rgba(239, 68, 68, 0.15);
    --glow: rgba(239, 68, 68, 0.35);
    --active-bg: rgba(239, 68, 68, 0.12);
}

html[data-color="red"][data-theme="dark"] {
    --c1: #f87171;
    --c2: #fca5a5;
    --c3: #450a0a;
    --bg: #120101;
    --bg2: #1f0101;
    --card: rgba(31, 1, 1, 0.88);
    --sidebar-bg: rgba(18, 1, 1, 0.97);
    --text: #fee2e2;
    --text2: #fca5a5;
    --muted: #b91c1c;
    --border: rgba(248, 113, 113, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glow: rgba(248, 113, 113, 0.25);
    --active-bg: rgba(248, 113, 113, 0.12);
}

/* Teal Theme */
html[data-color="teal"][data-theme="light"] {
    --c1: #0d9488;
    --c2: #2dd4bf;
    --c3: #ccfbf1;
    --bg: #f0fdfa;
    --bg2: #ccfbf1;
    --card: rgba(255, 255, 255, 0.82);
    --sidebar-bg: rgba(240, 253, 250, 0.96);
    --text: #042f2e;
    --text2: #0d9488;
    --muted: #134e4a;
    --border: rgba(13, 148, 136, 0.18);
    --shadow: 0 8px 32px rgba(13, 148, 136, 0.15);
    --glow: rgba(13, 148, 136, 0.35);
    --active-bg: rgba(13, 148, 136, 0.12);
}

html[data-color="teal"][data-theme="dark"] {
    --c1: #2dd4bf;
    --c2: #5eead4;
    --c3: #042f2e;
    --bg: #010a09;
    --bg2: #021a18;
    --card: rgba(2, 26, 24, 0.88);
    --sidebar-bg: rgba(1, 10, 9, 0.97);
    --text: #ccfbf1;
    --text2: #5eead4;
    --muted: #0d9488;
    --border: rgba(45, 212, 191, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glow: rgba(45, 212, 191, 0.25);
    --active-bg: rgba(45, 212, 191, 0.12);
}

/* Indigo Theme */
html[data-color="indigo"][data-theme="light"] {
    --c1: #4f46e5;
    --c2: #818cf8;
    --c3: #e0e7ff;
    --bg: #f5f7ff;
    --bg2: #e0e7ff;
    --card: rgba(255, 255, 255, 0.82);
    --sidebar-bg: rgba(245, 247, 255, 0.96);
    --text: #1e1b4b;
    --text2: #4f46e5;
    --muted: #312e81;
    --border: rgba(79, 70, 229, 0.18);
    --shadow: 0 8px 32px rgba(79, 70, 229, 0.15);
    --glow: rgba(79, 70, 229, 0.35);
    --active-bg: rgba(79, 70, 229, 0.12);
}

html[data-color="indigo"][data-theme="dark"] {
    --c1: #818cf8;
    --c2: #a5b4fc;
    --c3: #1e1b4b;
    --bg: #030412;
    --bg2: #080a24;
    --card: rgba(8, 10, 36, 0.88);
    --sidebar-bg: rgba(3, 4, 18, 0.97);
    --text: #e0e7ff;
    --text2: #a5b4fc;
    --muted: #4f46e5;
    --border: rgba(129, 140, 248, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glow: rgba(129, 140, 248, 0.25);
    --active-bg: rgba(129, 140, 248, 0.12);
}

/* Rose Theme */
html[data-color="rose"][data-theme="light"] {
    --c1: #e11d48;
    --c2: #fb7185;
    --c3: #ffe4e6;
    --bg: #fff1f2;
    --bg2: #ffe4e6;
    --card: rgba(255, 255, 255, 0.82);
    --sidebar-bg: rgba(255, 241, 242, 0.96);
    --text: #4c0519;
    --text2: #e11d48;
    --muted: #881337;
    --border: rgba(225, 29, 72, 0.18);
    --shadow: 0 8px 32px rgba(225, 29, 72, 0.15);
    --glow: rgba(225, 29, 72, 0.35);
    --active-bg: rgba(225, 29, 72, 0.12);
}

html[data-color="rose"][data-theme="dark"] {
    --c1: #fb7185;
    --c2: #fda4af;
    --c3: #4c0519;
    --bg: #0f0205;
    --bg2: #1f040a;
    --card: rgba(31, 4, 10, 0.88);
    --sidebar-bg: rgba(15, 2, 5, 0.97);
    --text: #ffe4e6;
    --text2: #fda4af;
    --muted: #e11d48;
    --border: rgba(251, 113, 133, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glow: rgba(251, 113, 133, 0.25);
    --active-bg: rgba(251, 113, 133, 0.12);
}

/* Coffee Theme */
html[data-color="coffee"][data-theme="light"] {
    --c1: #854d0e;
    --c2: #b45309;
    --c3: #fef3c7;
    --bg: #fffbeb;
    --bg2: #fef3c7;
    --card: rgba(255, 255, 255, 0.82);
    --sidebar-bg: rgba(255, 251, 235, 0.96);
    --text: #451a03;
    --text2: #854d0e;
    --muted: #78350f;
    --border: rgba(133, 77, 14, 0.18);
    --shadow: 0 8px 32px rgba(133, 77, 14, 0.15);
    --glow: rgba(133, 77, 14, 0.35);
    --active-bg: rgba(133, 77, 14, 0.12);
}

html[data-color="coffee"][data-theme="dark"] {
    --c1: #b45309;
    --c2: #d97706;
    --c3: #451a03;
    --bg: #0c0800;
    --bg2: #1a1200;
    --card: rgba(26, 18, 0, 0.88);
    --sidebar-bg: rgba(12, 8, 0, 0.97);
    --text: #fef3c7;
    --text2: #d97706;
    --muted: #854d0e;
    --border: rgba(180, 83, 9, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glow: rgba(180, 83, 9, 0.25);
    --active-bg: rgba(180, 83, 9, 0.12);
}

/* Slate Theme */
html[data-color="slate"][data-theme="light"] {
    --c1: #334155;
    --c2: #475569;
    --c3: #f1f5f9;
    --bg: #f8fafc;
    --bg2: #f1f5f9;
    --card: rgba(255, 255, 255, 0.82);
    --sidebar-bg: rgba(248, 250, 252, 0.96);
    --text: #0f172a;
    --text2: #334155;
    --muted: #1e293b;
    --border: rgba(51, 65, 85, 0.18);
    --shadow: 0 8px 32px rgba(51, 65, 85, 0.15);
    --glow: rgba(51, 65, 85, 0.35);
    --active-bg: rgba(51, 65, 85, 0.12);
}

html[data-color="slate"][data-theme="dark"] {
    --c1: #94a3b8;
    --c2: #cbd5e1;
    --c3: #0f172a;
    --bg: #020617;
    --bg2: #0f172a;
    --card: rgba(15, 23, 42, 0.88);
    --sidebar-bg: rgba(2, 6, 23, 0.97);
    --text: #f1f5f9;
    --text2: #cbd5e1;
    --muted: #64748b;
    --border: rgba(148, 163, 184, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glow: rgba(148, 163, 184, 0.25);
    --active-bg: rgba(148, 163, 184, 0.12);
}

/* Petrol Theme */
html[data-color="petrol"][data-theme="light"] {
    --c1: #0e7490;
    --c2: #0891b2;
    --c3: #cffafe;
    --bg: #ecfeff;
    --bg2: #cffafe;
    --card: rgba(255, 255, 255, 0.82);
    --sidebar-bg: rgba(236, 254, 255, 0.96);
    --text: #164e63;
    --text2: #0891b2;
    --muted: #155e75;
    --border: rgba(14, 116, 144, 0.18);
    --shadow: 0 8px 32px rgba(14, 116, 144, 0.15);
    --glow: rgba(14, 116, 144, 0.35);
    --active-bg: rgba(14, 116, 144, 0.12);
}

html[data-color="petrol"][data-theme="dark"] {
    --c1: #22d3ee;
    --c2: #67e8f9;
    --c3: #083344;
    --bg: #010c10;
    --bg2: #021a1f;
    --card: rgba(2, 26, 31, 0.88);
    --sidebar-bg: rgba(1, 12, 16, 0.97);
    --text: #cffafe;
    --text2: #67e8f9;
    --muted: #0891b2;
    --border: rgba(34, 211, 238, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glow: rgba(34, 211, 238, 0.25);
    --active-bg: rgba(34, 211, 238, 0.12);
}

/* Space Theme */
html[data-color="space"][data-theme="light"] {
    --c1: #7c3aed;
    --c2: #d946ef;
    --c3: #f5f3ff;
    --bg: #fafafa;
    --bg2: #f5f3ff;
    --card: rgba(255, 255, 255, 0.82);
    --sidebar-bg: rgba(250, 250, 250, 0.96);
    --text: #2e1065;
    --text2: #7c3aed;
    --muted: #4c1d95;
    --border: rgba(124, 58, 237, 0.18);
    --shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
    --glow: rgba(124, 58, 237, 0.35);
    --active-bg: rgba(124, 58, 237, 0.12);
}

html[data-color="space"][data-theme="dark"] {
    --c1: #9d50ff;
    --c2: #ff00cc;
    --c3: #1a0033;
    --bg: #020005;
    --bg2: #0a0118;
    --card: rgba(10, 1, 24, 0.92);
    --sidebar-bg: rgba(2, 0, 5, 0.98);
    --text: #f0e6ff;
    --text2: #cc99ff;
    --muted: #6e40aa;
    --border: rgba(157, 80, 255, 0.25);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    --glow: rgba(157, 80, 255, 0.4);
    --active-bg: rgba(157, 80, 255, 0.15);
}

/* Berry Theme */
html[data-color="berry"][data-theme="light"] {
    --c1: #be185d;
    --c2: #db2777;
    --c3: #fce7f3;
    --bg: #fff1f2;
    --bg2: #fce7f3;
    --card: rgba(255, 255, 255, 0.82);
    --sidebar-bg: rgba(255, 241, 242, 0.96);
    --text: #500724;
    --text2: #be185d;
    --muted: #831843;
    --border: rgba(190, 24, 93, 0.18);
    --shadow: 0 8px 32px rgba(190, 24, 93, 0.15);
    --glow: rgba(190, 24, 93, 0.35);
    --active-bg: rgba(190, 24, 93, 0.12);
}

html[data-color="berry"][data-theme="dark"] {
    --c1: #ec4899;
    --c2: #f472b6;
    --c3: #500724;
    --bg: #100008;
    --bg2: #1f0111;
    --card: rgba(31, 1, 17, 0.88);
    --sidebar-bg: rgba(16, 0, 8, 0.97);
    --text: #fce7f3;
    --text2: #f472b6;
    --muted: #be185d;
    --border: rgba(236, 72, 153, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glow: rgba(236, 72, 153, 0.25);
    --active-bg: rgba(236, 72, 153, 0.12);
}

/* ---- Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    transition: background 0.5s, color 0.5s;
}

/* ============================================================
   EKLENEN YENİ: ARKAPLAN BLOB ANİMASYONLARI
   ============================================================ */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: moveBlob 20s infinite alternate;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--c1);
    top: -200px;
    left: -150px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--c2);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--c3);
    top: 40%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes moveBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, 60px) scale(1.1);
    }
}

/* ---- Animated Gradient Background Orbs (Senin Orijinalin) ---- */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    animation: orbFloat 14s ease-in-out infinite alternate;
}

body::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--c1), transparent 70%);
    top: -150px;
    left: -150px;
    opacity: 0.18;
}

body::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--c2), transparent 70%);
    bottom: -100px;
    right: -100px;
    opacity: 0.15;
    animation-delay: -7s;
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(40px, -60px) scale(1.12);
    }

    100% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* ---- Floating Sparkles (auth page) ---- */
/* ============================================================
   GLOBAL REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-item {
    animation: revealUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}


/* ============================================================
   AUTH PAGE
   ============================================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-bg-text {
    position: fixed;
    font-size: 28vw;
    font-weight: 900;
    color: var(--c1);
    opacity: 0.03;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    white-space: nowrap;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: var(--card);
    border-radius: 28px;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow), 0 0 60px var(--glow);
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    animation: popIn 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo .logo-icon {
    font-size: 3rem;
    display: inline-block;
    animation: logoBounce 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 12px var(--glow));
}

@keyframes logoBounce {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

.auth-logo h1 {
    font-size: 2.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.auth-logo p {
    color: var(--muted);
    font-size: 0.92rem;
    margin-top: 0.3rem;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.8rem;
    background: var(--bg2);
    border-radius: 50px;
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--muted);
}

.auth-tab.active {
    background: linear-gradient(135deg, var(--c1), var(--c2));
    color: white;
    box-shadow: 0 4px 15px var(--glow);
}

.input-group {
    margin-bottom: 1.3rem;
}

.input-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text2);
    margin-bottom: 6px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 13px 16px;
    border-radius: 14px;
    border: 2px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--c1);
    box-shadow: 0 0 0 4px var(--glow);
    background: var(--card);
}

.input-group textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: 14px;
    border: 2px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    min-height: 100px;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
}


.error-msg {
    background: rgba(255, 77, 77, 0.1);
    color: var(--danger);
    border-left: 4px solid var(--danger);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    animation: shake 0.4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 14px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--c1), var(--c2));
    color: white;
    box-shadow: 0 4px 18px var(--glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 28px var(--glow);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-ghost {
    background: var(--bg2);
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-ghost:hover {
    background: var(--border);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4d4d, #ff7070);
    color: white;
    box-shadow: 0 4px 14px rgba(255, 77, 77, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.82rem;
    border-radius: 10px;
}

.btn-block {
    width: 100%;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ---- SIDEBAR ---- */
.sidebar {
    width: 270px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--sidebar-bg);
    backdrop-filter: blur(30px);
    border-right: 1.5px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.4rem;
    z-index: 100;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--c3);
    border-radius: 10px;
}


.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2.5rem;
    padding: 0.5rem 0.8rem;
}

.sidebar-logo .logo-emoji {
    font-size: 1.8rem;
    animation: logoBounce 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px var(--glow));
}

.sidebar-logo h2 {
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-section {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted);
    padding: 0 0.8rem;
    margin: 1rem 0 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text2);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s ease;
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
}

.nav-item .nav-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}


.nav-item:hover {
    background: var(--bg2);
    color: var(--c1);
    transform: translateX(4px);
}

.nav-item:hover .nav-icon {
    background: var(--c1);
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

.nav-item.active {
    background: var(--active-bg);
    color: var(--c1);
    border: 1px solid var(--border);
}

.nav-item.active .nav-icon {
    background: linear-gradient(135deg, var(--c1), var(--c2));
    color: white;
    box-shadow: 0 4px 12px var(--glow);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background: linear-gradient(var(--c1), var(--c2));
    border-radius: 0 4px 4px 0;
}

.sidebar-user {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1.5px solid var(--border);
}

.user-avatar-wrap {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    overflow: hidden;
    border: 2.5px solid var(--border);
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.u-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 6px;
    margin-bottom: 8px;
    border-radius: 15px;
    transition: 0.3s;
}

.user-info-row .uname {
    font-weight: 700;
    font-size: 0.9rem;
}

.user-info-row .ustatus {
    font-size: 0.72rem;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 4px;
}

.online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

/* ---- MAIN CONTENT ---- */
.main-content {
    margin-left: 270px;
    flex: 1;
    padding: 2.5rem 3.5rem;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.page-header {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideDown 0.5s ease both;
}



.page-header .btn {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 800;
    flex-shrink: 0;
}

.page-header p {
    color: var(--muted);
    margin-top: 5px;
    animation: slideDown 0.5s 0.1s ease both;
    opacity: 0;
    animation-fill-mode: forwards;
}


@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--card);
    border-radius: 22px;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1.8rem;
    backdrop-filter: blur(16px);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    animation: cardIn 0.6s ease both;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: var(--shadow), 0 0 40px var(--glow);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c1));
    background-size: 200%;
    animation: shimmer 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::after {
    opacity: 1;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title .icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px var(--glow);
}

.stat-card {
    background: linear-gradient(135deg, var(--c1), var(--c2));
    color: white;
    border-radius: 18px;
    padding: 1.4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px var(--glow);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: cardIn 0.6s ease both;
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 14px 36px var(--glow);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.stat-card .stv {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stl {
    font-size: 0.82rem;
    opacity: 0.85;
    font-weight: 600;
}

.stat-card .sti {
    font-size: 1.8rem;
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.grid-7 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
}

.card:nth-child(1) {
    animation-delay: 0s;
}

.card:nth-child(2) {
    animation-delay: 0.1s;
}

.card:nth-child(3) {
    animation-delay: 0.2s;
}

.card:nth-child(4) {
    animation-delay: 0.3s;
}

.card:nth-child(5) {
    animation-delay: 0.4s;
}

/* ============================================================
   TIMER, CHAT, SCHEDULE, MODAL, SETTINGS (SENİN ORİJİNAL KODLARIN)
   ============================================================ */
.timer-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-mode-tabs {
    display: flex;
    gap: 0;
    background: var(--bg2);
    border-radius: 50px;
    padding: 5px;
    margin-bottom: 2rem;
}

.timer-mode-tab {
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--muted);
    border: none;
    background: transparent;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
}

.timer-mode-tab.active {
    background: linear-gradient(135deg, var(--c1), var(--c2));
    color: white;
    box-shadow: 0 4px 15px var(--glow);
    transform: scale(1.05);
}

.timer-ring-wrap {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 1rem auto;
}

.timer-svg {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.timer-ring-bg {
    fill: none;
    stroke: var(--bg2);
    stroke-width: 10;
}

.timer-ring-progress {
    fill: none;
    stroke: url(#timerGrad);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 816;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

/* Toast Notifications */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
    width: calc(100% - 40px);
}

.toast-alert {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.4s ease forwards;
    position: relative;
    pointer-events: auto;
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon.habit {
    background: #e0f2f1;
    color: #2e7d32;
}

.toast-icon.mention {
    background: #fff3e0;
    color: #ef6c00;
}

.toast-icon.system {
    background: #e3f2fd;
    color: #1565c0;
}

.toast-body {
    flex: 1;
    overflow: hidden;
}

.toast-msg {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}

.toast-time {
    font-size: 0.7rem;
    color: var(--muted);
    margin-top: 2px;
}

.toast-close {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 5px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 680px) {
    #notification-container {
        top: auto;
        bottom: 90px;
        right: 20px;
        left: 20px;
        width: auto;
        max-width: none;
    }
}

.timer-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.timer-phase {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--c1);
    margin-bottom: 4px;
}

.timer-display {
    font-size: 3.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    transition: transform 0.3s;
}

.timer-running .timer-display {
    animation: timerPulse 1s ease-in-out infinite;
}

.timer-sub {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 4px;
}

.timer-controls {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.timer-start-btn {
    width: 160px;
    height: 54px;
    font-size: 1rem;
    letter-spacing: 1px;
}

.chat-wrap {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 220px);
    min-height: 450px;
    background: var(--card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
}

.chat-messages::-webkit-scrollbar {
    width: 5px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--c3);
    border-radius: 10px;
}

.msg-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: popIn 0.3s ease both;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.msg-mine {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    color: white;
    border-bottom-right-radius: 4px;
}

.msg-other {
    align-self: flex-start;
    background: var(--bg2);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.msg-username {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--c1);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.msg-poke-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    font-size: 0.85rem;
    transition: 0.2s;
    border-radius: 4px;
}

.msg-poke-btn:hover {
    background: var(--active-bg);
    transform: scale(1.2);
}

.msg-username {
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.msg-time {
    font-size: 0.65rem;
    margin-top: 4px;
    opacity: 0.7;
    text-align: right;
}

.chat-input-row {
    display: flex;
    gap: 10px;
    padding: 1rem 1.5rem;
    background: var(--card);
    border-top: 1.5px solid var(--border);
    backdrop-filter: blur(10px);
}

.chat-input-row input {
    flex: 1;
    background: var(--bg);
    border: 2px solid var(--border);
    padding: 12px 18px;
    border-radius: 14px;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.chat-input-row input:focus {
    border-color: var(--c1);
    box-shadow: 0 0 0 4px var(--glow);
}

/* Animation Utils */
.fade-up {
    animation: revealUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}



/* ============================================================
   ARKAPLAN BLOB ANİMASYONLARI (HER SAYFADA)
   ============================================================ */
/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 28px;
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 480px) {
    .modal-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
}


.modal-overlay.open .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    transition: 0.3s;
}

.modal-close:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}


.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: moveBlob 20s infinite alternate;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--c1);
    top: -200px;
    left: -150px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--c2);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--c3);
    top: 40%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes moveBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, 60px) scale(1.1);
    }
}

/* ============================================================
📱 MOBİL GÖRÜNÜM (ÜST VE ALT BAR İZOLASYONU)
============================================================ */
.m-topbar,
.m-bottom-nav,
.m-menu-overlay,
.m-side-menu {
    display: none;
}

@media (max-width: 960px) {

    /* PC Menüsünü tamamen öldürür! */
    .sidebar {
        display: none !important;
    }

    /* İçeriğin üstten ve alttan nefes almasını sağlar */
    .main-content {
        margin-left: 0 !important;
        padding: 85px 1.2rem 100px 1.2rem !important;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .grid-7 {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Mobil Üst Bar */
    .m-topbar {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: var(--sidebar-bg);
        backdrop-filter: blur(15px);
        z-index: 1100;
        border-bottom: 1.5px solid var(--border);
        align-items: center;
        justify-content: space-between;
        padding: 0 1.5rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }

    .m-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 900;
        color: var(--c1);
        font-size: 1.2rem;
    }

    .m-hamburger {
        font-size: 1.5rem;
        color: var(--text);
        cursor: pointer;
    }

    .m-logout {
        color: var(--danger);
        font-size: 1.3rem;
    }

    /* Mobil Alt Bar */
    .m-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 15px;
        left: 15px;
        right: 15px;
        width: calc(100% - 30px);
        height: 75px;
        background: var(--sidebar-bg);
        backdrop-filter: blur(20px);
        z-index: 1100;
        border: 1.5px solid var(--border);
        border-radius: 24px;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 10px 30px var(--glow);
    }

    .m-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: var(--muted);
        font-size: 0.72rem;
        font-weight: 700;
        transition: var(--transition);
        text-decoration: none;
    }

    .m-nav-item i {
        font-size: 1.5rem;
    }

    .m-nav-item.active {
        color: var(--c1);
        transform: translateY(-5px) scale(1.1);
    }


    /* Hamburger Çekmecesi */
    .m-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 1200;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }

    .m-menu-overlay.open {
        opacity: 1;
        visibility: visible;
    }

    .m-side-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -320px;
        width: 280px;
        height: 100vh;
        background: var(--sidebar-bg);
        z-index: 1300;
        transition: left 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.2);
    }

    .m-side-menu.open {
        left: 0;
    }

    .m-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }

    .m-menu-header h3 {
        color: var(--c1);
        font-weight: 800;
        font-size: 1.3rem;
        margin: 0;
    }

    .close-btn {
        font-size: 1.5rem;
        color: var(--muted);
        cursor: pointer;
        transition: 0.2s;
    }

    .m-menu-scroll {
        padding: 15px;
        overflow-y: auto;
        height: calc(100vh - 70px);
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .m-menu-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        color: var(--text2);
        font-weight: 600;
        font-size: 1.05rem;
        border-radius: 14px;
        text-decoration: none;
        transition: 0.3s;
    }

    .m-menu-item.active {
        background: var(--active-bg);
        color: var(--c1);
    }

    .m-menu-item i {
        width: 24px;
        text-align: center;
        font-size: 1.2rem;
    }
}

@media (max-width: 680px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 85px 1rem 100px 1rem !important;
    }
}

/* Habits 2.0 Styles */
.habit-card {
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.habit-card:hover {
    transform: translateY(-5px);
}

.habit-card.inactive-day {
    opacity: 0.5;
    filter: grayscale(0.5);
    pointer-events: none;
}

.habit-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.habit-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.habit-day-count {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--c1);
    background: var(--active-bg);
    padding: 2px 8px;
    border-radius: 8px;
}

.habit-time {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 600;
}

.habit-week-dots {
    display: flex;
    gap: 4px;
    margin-top: 10px;
}

.week-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bg2);
}

.week-dot.active {
    background: var(--c1);
    box-shadow: 0 0 5px var(--glow);
}

.habit-check-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: 0.3s;
    flex-shrink: 0;
}

.emoji-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.emoji-item input {
    display: none;
}

.emoji-box {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: var(--bg2);
    border-radius: 12px;
    transition: 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

.emoji-item input:checked+.emoji-box {
    border-color: var(--c1);
    background: var(--card);
    transform: scale(1.1);
    box-shadow: 0 4px 12px var(--glow);
}

.weekday-picker {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.day-chip input {
    display: none;
}

.day-chip span {
    padding: 8px 12px;
    background: var(--bg2);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    transition: 0.3s;
    border: 1.5px solid transparent;
}

.day-chip input:checked+span {
    background: var(--c1);
    color: white;
    border-color: var(--c1);
    box-shadow: 0 4px 10px var(--glow);
}

.color-input {
    height: 48px;
    padding: 5px 10px;
    border-radius: 12px;
    border: 2px solid var(--border);
    width: 100%;
    cursor: pointer;
    background: var(--bg);
}

/* Interactive Habit Modal */
.habit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.habit-modal-card {
    background: white;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    border-radius: 32px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 480px) {
    .habit-modal-card {
        padding: 1.5rem;
        border-radius: 24px;
    }
}


.habit-modal-icon {
    width: 100px;
    height: 100px;
    background: var(--active-bg);
    border-radius: 30px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--c1);
    border: 2px solid var(--c1);
    box-shadow: 0 10px 25px var(--glow);
}

.habit-modal-title {
    font-weight: 900;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.habit-modal-text {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.habit-progress-mini {
    height: 12px;
    background: var(--bg2);
    border-radius: 20px;
    margin-bottom: 2.5rem;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.habit-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--c1), var(--c2));
    border-radius: 20px;
    transition: 1.5s ease;
}

.habit-modal-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}