:root {
    --bg-outside: #030305;
    --app-bg: #07070b;
    --panel-bg: #0d0d14;
    --item-bg: #14141d;
    --border-color: rgba(255, 255, 255, 0.05); /* Çok hafif sabit çerçeve */
    --text-main: #ffffff;
    --text-muted: #8b8b9f;
    --blue-glow: #00e5ff;
    --pink-glow: #ff00ff;
    --gradient-blue: linear-gradient(90deg, #007bff, #00e5ff);
    --gradient-pink: linear-gradient(90deg, #ff007f, #ff00ff);
    --gradient-btn: linear-gradient(90deg, #0055ff, #ff00ff);
}

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

body {
    background-color: var(--bg-outside);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

/* ANA UYGULAMA PENCERESİ */
.app-window {
    width: 100%;
    max-width: 1400px;
    background: var(--app-bg);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 
                inset 0 0 100px rgba(255,0,255,0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ------------------------------------------- */
/* STATİK HAFİF GLOW (GÖLGE) SİSTEMİ           */
/* ------------------------------------------- */

.app-header, .stats-bar, .dark-panel {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05); 
    /* Solda çok hafif mavi, sağda çok hafif magenta/mor bir parıltı (gölge) bırakıyoruz */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 
                -10px 10px 20px rgba(0, 102, 255, 0.06), 
                10px -10px 20px rgba(233, 0, 92, 0.06);
    transition: box-shadow 0.3s ease-in-out, border-color 0.3s;
}

/* Üzerine gelindiğinde gölge bir tık belirginleşsin */
.app-header:hover, .stats-bar:hover, .dark-panel:hover {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 
                -12px 12px 25px rgba(0, 102, 255, 0.09), 
                12px -12px 25px rgba(233, 0, 92, 0.09);
}

/* ------------------------------------------- */
/* STANDART TASARIM KODLARI                    */
/* ------------------------------------------- */

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    background: rgba(7, 7, 11, 0.8);
    border-bottom: 1px solid transparent;
}

.logo-area { display: flex; align-items: center; gap: 8px; }
.header-logo { width: 25px; height: 25px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 8px rgba(0, 229, 255, 0.2); }
.brand-name { font-weight: 700; letter-spacing: 1px; font-size: 0.95rem; }
.main-nav { display: flex; gap: 20px; }
.main-nav a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.85rem; transition: 0.3s; position: relative; padding-bottom: 4px; }
.main-nav a:hover, .main-nav a.active { color: var(--text-main); }
.main-nav a.active::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 100%; height: 2px; background: var(--gradient-pink); box-shadow: 0 0 10px var(--pink-glow); }
.user-profile { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.user-info { display: flex; flex-direction: column; }
.username { font-weight: 600; font-size: 0.9rem; }
.greeting { font-size: 0.75rem; color: var(--text-muted); }

/* İÇERİK ALANI */
.app-content {
    padding: 30px 40px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* HERO SECTION */
.hero-section { display: flex; justify-content: space-between; align-items: center; position: relative; min-height: 250px; }
.hero-content { flex: 1; z-index: 2; }
.badge { display: inline-block; padding: 5px 10px; border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; font-size: 0.7rem; letter-spacing: 1px; margin-bottom: 15px; background: rgba(255,255,255,0.03); color: var(--text-muted); }
.hero-title { font-size: 2.2rem; font-weight: 800; line-height: 1.1; margin-bottom: 12px; }
.text-blue { background: var(--gradient-blue); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 20px rgba(0, 229, 255, 0.3); }
.text-pink { background: var(--gradient-pink); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 20px rgba(255, 0, 255, 0.3); }
.hero-desc { color: var(--text-muted); max-width: 450px; margin-bottom: 25px; line-height: 1.5; font-size: 0.9rem; }
.hero-buttons { display: flex; gap: 15px; }
.btn { padding: 10px 22px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 0.85rem; color: var(--text-main); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: 0.3s; border: none; }
.btn-gradient { background: var(--gradient-btn); box-shadow: 0 0 15px rgba(255, 0, 255, 0.3); }
.btn-gradient:hover { box-shadow: 0 0 25px rgba(255, 0, 255, 0.6); }
.btn-outline { background: transparent; border: 1px solid var(--border-color); }
.btn-outline:hover { background: rgba(255,255,255,0.05); }
.hero-image { flex: 1.2; display: flex; justify-content: flex-end; align-items: center; z-index: 1; }
.big-logo { width: 100%; max-width: 350px; object-fit: contain; filter: drop-shadow(0 0 35px rgba(0, 229, 255, 0.15)) drop-shadow(0 0 35px rgba(255, 0, 255, 0.15)); }

/* STATS BAR */
.stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--panel-bg);
    border-radius: 16px;
    padding: 25px 40px;
}
.stat-item { display: flex; align-items: center; gap: 20px; flex: 1; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.1); margin: 0 20px; }
.stat-icon { font-size: 1.8rem; }
.stat-icon.text-blue { color: var(--blue-glow); }
.stat-icon.text-pink { color: var(--pink-glow); }
.stat-info h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.stat-info p { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.text-green { color: #00ff88; }

/* BOTTOM GRID */
.bottom-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 25px;
}

.dark-panel {
    background: var(--panel-bg);
    border-radius: 16px;
    padding: 25px;
}
.panel-title { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 1.5px; margin-bottom: 20px; }

/* TASKS */
.tasks-panel { display: flex; flex-direction: column; gap: 15px; }
.task-item { display: flex; align-items: center; background: var(--item-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 15px 20px; gap: 20px; transition: 0.3s; }
.task-item:hover { border-color: rgba(255,0,255,0.3); background: #181824; }
.task-icon { font-size: 1.4rem; color: var(--blue-glow); }
.task-details { flex: 1; }
.task-details h5 { font-size: 1.05rem; margin-bottom: 4px; }
.task-details p { font-size: 0.85rem; color: var(--text-muted); }
.task-reward { text-align: right; margin-right: 20px; }
.xp { display: block; font-weight: 700; font-size: 1rem; }
.xp-label { font-size: 0.75rem; color: var(--text-muted); }
.btn-gradient-small { background: var(--gradient-btn); padding: 10px 24px; font-size: 0.85rem; border-radius: 8px; color: white; text-decoration: none; font-weight: 600; }

/* STREAK */
.streak-panel { display: flex; flex-direction: column; }
.streak-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.streak-flame { font-size: 2rem; color: var(--pink-glow); filter: drop-shadow(0 0 15px rgba(255,0,255,0.5)); }
.streak-info h2 { font-size: 2.2rem; background: var(--gradient-pink); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 5px; }
.streak-info p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 30px; }
.days-tracker { display: flex; justify-content: space-between; margin-bottom: 35px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.day span { font-size: 0.75rem; color: var(--text-muted); }
.day .circle { width: 28px; height: 28px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 0.7rem; }
.day.completed .circle { background: transparent; border: 1.5px solid var(--blue-glow); color: var(--blue-glow); }
.day.today .circle { background: var(--pink-glow); border: none; color: white; box-shadow: 0 0 15px rgba(255,0,255,0.6); }
.btn-gradient-full { width: 100%; justify-content: center; background: linear-gradient(90deg, #1a0b2e, #4a148c); border: 1px solid rgba(255,0,255,0.3); padding: 16px; border-radius: 10px; font-size: 1rem; }
.btn-gradient-full:hover { background: linear-gradient(90deg, #2a1145, #6a1b9a); }

/* Responsive */
@media (max-width: 1200px) {
    .stats-bar { flex-wrap: wrap; gap: 20px; }
    .stat-divider { display: none; }
    .stat-item { flex: 1 1 40%; }
}
@media (max-width: 992px) {
    .bottom-grid { grid-template-columns: 1fr; }
    .hero-section { flex-direction: column; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-image { margin-top: 40px; }
    .big-logo { max-width: 400px; }
    .app-content { padding: 20px; }
}
@media (max-width: 768px) {
    body { padding: 0; }
    .app-window { border-radius: 0; border: none; min-height: 100vh; }
    .app-header { flex-wrap: wrap; padding: 15px; position: sticky; top: 0; z-index: 1000; background: rgba(7, 7, 11, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.1); }
    .mobile-menu-btn { display: block !important; background: transparent; border: none; color: white; font-size: 1.5rem; cursor: pointer; }
    .header-top-row { display: flex; justify-content: space-between; align-items: center; width: 100%; }
    .main-nav { display: none; flex-direction: column; width: 100%; margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); }
    .main-nav.active { display: flex; }
    .main-nav a { padding: 12px 15px; background: rgba(255,255,255,0.02); border-radius: 8px; font-size: 1rem; }
    .main-nav a.active::after { display: none; }
    .main-nav a.active { background: rgba(255, 0, 255, 0.1); border-left: 3px solid var(--pink-glow); }
    .user-profile { width: 100%; justify-content: space-between; margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); display: none !important; }
    .user-profile.active { display: flex !important; }
    
    .stats-bar { flex-direction: column; align-items: flex-start; padding: 20px; }
    .stat-item { width: 100%; flex: none; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 15px; margin-bottom: 15px; }
    .stat-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
    
    .task-item { flex-direction: column; align-items: flex-start; gap: 15px; padding: 20px; }
    .task-reward { width: 100%; display: flex; justify-content: space-between; align-items: center; text-align: left; margin: 0; margin-top: 10px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px; }
    .task-item .btn-gradient-small { width: 100%; text-align: center; margin-top: 10px; }
    
    .days-tracker { flex-wrap: wrap; gap: 15px; justify-content: center; }
    .hero-title { font-size: 1.8rem; }
}
@media (max-width: 480px) {
    .app-content { padding: 15px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn { justify-content: center; }
    .profile-dropdown { width: 100%; position: static; box-shadow: none; border: none; background: transparent; padding: 0; margin-top: 15px; }
}