:root {
    --bg-outside: #050505;
    --app-bg: #050505;
    --panel-bg: #080808;
    --item-bg: #111111;
    --border-color: rgba(255, 255, 255, 0.05); /* Çok hafif sabit çerçeve */
    --text-main: #ffffff;
    --text-muted: #8b8b9f;
    --blue-glow: #800000;
    --pink-glow: #ff0000;
    --gradient-blue: linear-gradient(90deg, #500000, #800000);
    --gradient-pink: linear-gradient(90deg, #cc0000, #ff0000);
    --gradient-btn: linear-gradient(90deg, #800000, #ff0000);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

/* Siber Scrollbar (Kaydırma Çubuğu) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-left: 1px solid rgba(255, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 0, 0, 0.5);
}
::-webkit-scrollbar-thumb:hover {
    background: #ff0000;
}

body {
    background-color: var(--bg-outside);
    background-image: url('/images/sharp-geometric.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    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: 1px solid rgba(255, 0, 0, 0.4);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), inset 0 0 50px rgba(255,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Sharp geometric cut at the corners */
    clip-path: polygon(0 20px, 20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

/* ------------------------------------------- */
/* 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(128, 0, 0, 0.06), 
                10px -10px 20px rgba(255, 0, 0, 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(128, 0, 0, 0.09), 
                12px -12px 25px rgba(255, 0, 0, 0.09);
}

/* ------------------------------------------- */
/* STANDART TASARIM KODLARI                    */
/* ------------------------------------------- */

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    background: rgba(5, 5, 5, 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(128, 0, 0, 0.2); }
.brand-name { font-weight: 700; letter-spacing: 1px; font-size: 0.95rem; white-space: nowrap; }
.main-nav { display: flex; gap: 18px; justify-content: center; align-items: center; flex: 1; margin: 0 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; white-space: nowrap; }
.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; white-space: nowrap; flex-shrink: 0; }
.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; white-space: nowrap; }
.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;
}

/* RADICAL HUD HERO (Siber-Hedef Ekranı) */
.hud-hero {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: rgba(5, 5, 5, 0.8);
    border: 1px solid rgba(255, 0, 0, 0.4);
    box-shadow: inset 0 0 50px rgba(255, 0, 0, 0.1), 0 20px 50px rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 40px;
    clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
}

/* Devasa Şeffaf Arkaplan Yazısı */
.hud-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 0, 0, 0.05);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

/* Radar Izgarası (Kaldırıldı) */
.hud-radar-grid {
    display: none;
}

.hud-content-wrapper {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* Merkez Çekirdek (Logo) */
.hud-core {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 300px;
}

.hud-core-rings {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    pointer-events: none;
}

.hud-core-rings .ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px dashed rgba(255, 0, 0, 0.5);
    animation: rotateRings 20s linear infinite;
}

.hud-core-rings .ring-1 { width: 120%; height: 120%; border-width: 2px; border-style: dotted; animation-duration: 30s; animation-direction: reverse; }
.hud-core-rings .ring-2 { width: 150%; height: 150%; border-color: rgba(255, 255, 255, 0.1); }

@keyframes rotateRings {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.hud-core-logo {
    width: 220px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(255, 0, 0, 0.8));
    animation: corePulse 3s ease-in-out infinite;
}

@keyframes corePulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 30px rgba(255, 0, 0, 0.8)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 50px rgba(255, 0, 0, 1)); }
}

/* Eğimli Kenar Panelleri */
.hud-side-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.left-panel { align-items: flex-end; }
.right-panel { align-items: flex-start; }

/* Eğimli Stat Kutuları */
.hud-stat-box {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 0, 0, 0.3);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    min-width: 280px;
}

/* Sağ ve Sol Eğilimler */
.skew-right { transform: skewX(-15deg); border-right: 4px solid #ff0000; box-shadow: -10px 10px 20px rgba(0,0,0,0.8); }
.skew-left { transform: skewX(15deg); border-left: 4px solid #ff0000; box-shadow: 10px 10px 20px rgba(0,0,0,0.8); }

.hud-stat-box:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

/* İçeriği düzeltme (Eğimi geri alma) */
.hud-stat-content.unskew {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.skew-right .unskew { transform: skewX(15deg); }
.skew-left .unskew { transform: skewX(-15deg); }

.hud-icon {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.1);
}
.skew-right .hud-icon { transform: skewX(15deg); }
.skew-left .hud-icon { transform: skewX(-15deg); }

.hud-stat-box:hover .hud-icon {
    color: #ff0000;
    filter: drop-shadow(0 0 10px rgba(255,0,0,0.8));
}

.hud-label {
    font-size: 0.7rem;
    color: #8b8e98;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 2px;
}

.hud-value {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0;
    color: white;
}

.hud-currency {
    font-size: 0.8rem;
    color: #ff3333;
}


/* BOTTOM GRID */
.bottom-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 25px;
}

/* YENİ KOKPİT PANELLERİ (Hologram Veri Merkezi) */
.cockpit-panel {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 0, 0, 0.2);
    padding: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8), 0 10px 30px rgba(0,0,0,0.9);
    transition: 0.3s;
    /* Sharp top-left and bottom-right cuts */
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.cockpit-panel:hover {
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: inset 0 0 30px rgba(255, 0, 0, 0.1), 0 15px 35px rgba(0,0,0,0.9);
}

.panel-title { font-size: 0.8rem; color: #a0a0a0; letter-spacing: 1.5px; margin-bottom: 20px; text-transform: uppercase; font-weight: 800; display: flex; align-items: center; gap: 8px; }

/* DATA PODS (Hologram Özet Kartları) */
.data-pods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.data-pod {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 0, 0, 0.15);
    padding: 20px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.data-pod::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.8), transparent);
    opacity: 0.3; transition: 0.3s;
}

.data-pod:hover {
    transform: translateY(-3px);
    background: rgba(255, 0, 0, 0.05);
    border-color: rgba(255, 0, 0, 0.2);
}
.data-pod:hover::before { opacity: 1; }

.data-pod-label { font-size: 0.7rem; color: #8b8e98; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.data-pod-value { font-size: 1.4rem; color: #fff; font-weight: 900; }
.data-pod.battle-red .data-pod-value { color: #ff0000; text-shadow: 0 0 20px rgba(255, 0, 0, 0.8); }
.data-pod.battle-silver .data-pod-value { color: #ffffff; text-shadow: 0 0 20px rgba(255, 255, 255, 0.6); }
.data-pod.battle-dark .data-pod-value { color: #a0a0a0; text-shadow: 0 0 15px rgba(160, 160, 160, 0.4); }

/* CHART CONTAINER */
.chart-container {
    height: 280px; margin-bottom: 30px; background: rgba(0,0,0,0.8); padding: 20px;
    border: 1px solid rgba(255,0,0,0.2);
    box-shadow: inset 0 0 30px rgba(0,0,0,0.9);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

/* TECH TABLE */
.stats-table-container { overflow-x: auto; max-height: 400px; }
.tech-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.tech-table th { padding: 15px 12px; color: #8b8e98; font-size: 0.75rem; font-weight: 800; letter-spacing: 1px; text-align: left; position: sticky; top: 0; background: rgba(10,10,10,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,0,0,0.2); z-index: 10; }
.tech-table td { padding: 16px 12px; color: #fff; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.03); transition: 0.3s; background: rgba(0,0,0,0.2); }
.tech-table tr:hover td { background: rgba(255,0,0,0.05); border-bottom-color: rgba(255,0,0,0.2); }

/* DUYURU ITEMS */
.announcement-item {
    background: rgba(0,0,0,0.6); border: 1px solid rgba(255,0,0,0.1); padding: 18px; transition: 0.3s; cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}
.announcement-item:hover {
    background: rgba(255,0,0,0.05); border-color: rgba(255,0,0,0.3); transform: translateX(5px);
}
.announcement-item h5 { color: #fff; font-size: 0.95rem; margin-bottom: 8px; font-weight: 800; }
.announcement-item p { color: #8b8e98; font-size: 0.8rem; line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.announcement-date { font-size: 0.7rem; color: #475569; display: flex; align-items: center; gap: 5px; }
.announcement-read { margin-left: auto; color: #ff3333; font-weight: 700; font-size: 0.75rem; }

/* STREAK NODES */
.streak-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.streak-flame { font-size: 2.2rem; color: #ff0000; filter: drop-shadow(0 0 20px rgba(255,0,0,0.6)); }
.streak-info { text-align: center; }
.streak-info h2 { font-size: 2.5rem; background: linear-gradient(90deg, #ff3333, #ff8080); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 5px; font-weight: 900; filter: drop-shadow(0 0 10px rgba(255,0,0,0.3)); }
.streak-info p { font-size: 0.9rem; color: #8b8e98; margin-bottom: 30px; }
.days-tracker { display: flex; justify-content: space-between; margin-bottom: 35px; position: relative; }
.days-tracker::before { content: ''; position: absolute; top: 18px; left: 20px; right: 20px; height: 1px; background: rgba(255,0,0,0.3); z-index: 0; box-shadow: 0 0 5px rgba(255,0,0,0.5); }
.day { display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 1; }
.day span { font-size: 0.75rem; color: #8b8e98; font-weight: 700; }
.day .circle { width: 36px; height: 36px; background: #0a0a0a; border: 1px solid rgba(255,0,0,0.3); display: flex; justify-content: center; align-items: center; font-size: 0.8rem; font-weight: 800; color: #8b8e98; transition: 0.3s; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); transform: rotate(0deg); }
.day.completed .circle { background: rgba(255,0,0,0.1); border-color: #ff0000; color: #ff0000; box-shadow: 0 0 15px rgba(255,0,0,0.4); }
.day.today .circle { background: #ff0000; border-color: #ff0000; color: #fff; box-shadow: 0 0 25px rgba(255,0,0,0.8); transform: scale(1.2); }
.btn-gradient-full { width: 100%; justify-content: center; background: linear-gradient(90deg, #800000, #ff0000); padding: 16px; font-size: 0.95rem; font-weight: 800; letter-spacing: 1px; color: white; border: none; cursor: pointer; transition: 0.3s; box-shadow: 0 0 20px rgba(255,0,0,0.3); clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.btn-gradient-full:hover:not([disabled]) { box-shadow: 0 0 30px rgba(255,0,0,0.6); transform: translateY(-2px); }
.btn-gradient-full[disabled] { background: rgba(255,255,255,0.05); color: #8b8e98; box-shadow: none; cursor: not-allowed; }
/* CYBER DROPDOWN (Özel Select Menüsü) */
.cyber-dropdown {
    position: relative;
    width: 140px;
    user-select: none;
}
.cyber-dropdown-selected {
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 0, 0, 0.4);
    color: #fff;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
    transition: 0.3s;
}
.cyber-dropdown-selected:hover {
    background: rgba(255, 0, 0, 0.1);
    box-shadow: inset 0 0 10px rgba(255,0,0,0.2);
}
.cyber-dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.95);
    border: 1px solid rgba(255, 0, 0, 0.4);
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
}
.cyber-dropdown.open .cyber-dropdown-options {
    display: flex;
}
.cyber-option {
    padding: 10px 12px;
    color: #a0a0a0;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cyber-option:hover, .cyber-option.active {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
    padding-left: 18px;
    border-left: 2px solid #ff0000;
}

/* REVIEW PANEL */
.review-panel { text-align: center; }
.star-rating { display: flex; flex-direction: row-reverse; justify-content: center; gap: 8px; margin-bottom: 20px; }
.star-item { font-size: 1.8rem; color: rgba(255,255,255,0.1); cursor: pointer; transition: 0.3s; }
.star-rating input:checked ~ label, .star-rating label:hover, .star-rating label:hover ~ label { color: #ff0000; filter: drop-shadow(0 0 15px rgba(255,0,0,0.8)); transform: scale(1.1); }

/* Responsive */
@media (max-width: 1200px) {
    .hud-bg-text { font-size: 10rem; }
    .hud-content-wrapper { flex-direction: column; gap: 30px; }
    .left-panel, .right-panel { align-items: center; width: 100%; flex-direction: row; justify-content: center; flex-wrap: wrap; }
    .hud-stat-box { min-width: 240px; }
}
@media (max-width: 992px) {
    .bottom-grid { grid-template-columns: 1fr; }
    .hud-bg-text { font-size: 6rem; }
    .hud-core-logo { width: 150px; }
    .hud-core { width: 200px; height: 200px; }
}
@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(5, 5, 5, 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, 0, 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; }
}
