:root {
    --primary: #ffaa00;
    --text-main: #ffffff;
    --text-muted: #d0d0d0;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { 
    background-color: #0c0e12; color: var(--text-main); 
    overflow-x: hidden; overflow-y: auto; min-height: 100vh; 
    display: flex; flex-direction: column; align-items: center; 
}

@keyframes backgroundMotion { 0% { transform: scale(1.0); } 100% { transform: scale(1.05); } }

/* --- Kar Efekti --- */
.snow-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.snow { position: absolute; background-color: #fff; border-radius: 50%; box-shadow: 0 0 8px rgba(255,255,255,0.8); animation: fall linear infinite; }
@keyframes fall { 0% { transform: translateY(-10vh) translateX(0px); opacity: 1; } 100% { transform: translateY(110vh) translateX(20px); opacity: 0; } }

/* --- SAĞ ÜST PROFİL --- */
.top-profile-container { position: absolute; top: 30px; right: 40px; z-index: 100; }
.profile-trigger { 
    display: flex; align-items: center; gap: 15px; background: rgba(0,0,0,0.4); 
    padding: 8px 15px; border-radius: 50px; border: 1px solid rgba(255,170,0,0.2); 
    cursor: pointer; backdrop-filter: blur(10px); transition: all 0.3s;
}
.profile-trigger:hover { background: rgba(255,170,0,0.1); border-color: var(--primary); }
.profile-texts { display: flex; flex-direction: column; text-align: right; }
.p-name { font-weight: 800; font-size: 1rem; color: #fff; }
.p-role { font-size: 0.75rem; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }
.mc-skin { width: 40px; height: 40px; border-radius: 8px; box-shadow: 0 0 10px rgba(0,0,0,0.5); }

.profile-dropdown {
    position: absolute; top: 70px; right: 0; background: rgba(15, 17, 21, 0.95);
    border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; width: 220px;
    padding: 10px 0; box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s; backdrop-filter: blur(15px);
}
.profile-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }
.profile-dropdown a {
    display: flex; align-items: center; gap: 12px; padding: 12px 20px;
    color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: all 0.2s;
}
.profile-dropdown a:hover { color: #fff; background: rgba(255,255,255,0.05); padding-left: 25px; }
.profile-dropdown a i { width: 15px; text-align: center; color: var(--primary); }
.dropdown-divider { height: 1px; background: rgba(255,255,255,0.05); margin: 5px 0; }
.logout-link:hover { background: rgba(255,71,87,0.1) !important; color: #ff4757 !important; }
.logout-link i { color: #ff4757 !important; }

/* --- MERKEZİ DÜZEN VE LOGO STİLLERİ --- */
.portal-wrapper { 
    display: flex; flex-direction: column; align-items: center; gap: 50px; 
    z-index: 1; width: 100%; max-width: 1200px; margin: auto; padding: 80px 20px 40px 20px;
}
.brand-container { text-align: center; animation: floatLogo 4s ease-in-out infinite; display: flex; flex-direction: column; align-items: center; gap: 10px; }
@keyframes floatLogo { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

/* YENİ KÜÇÜLTÜLMÜŞ LOGO STİLLERİ */
.server-logo {
    max-width: 200px; /* BOYUT 320'DEN 200'E DÜŞÜRÜLDÜ */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.8));
    transition: filter 0.3s;
}
.brand-container:hover .server-logo {
    filter: drop-shadow(0 0 30px rgba(255,170,0,0.5));
}

.subtle-ip-area {
    font-size: 1.1rem; color: #aaa; cursor: pointer;
    background: rgba(0,0,0,0.3); padding: 12px 25px; border-radius: 50px;
    display: inline-block; border: 1px solid transparent; transition: all 0.3s; margin-top: 10px;
}
.subtle-ip-area:hover { background: rgba(0,0,0,0.6); border-color: rgba(255,170,0,0.3); color: #fff; transform: scale(1.05); }

.portal-menu { display: flex; gap: 60px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.portal-item { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 15px; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.portal-item:hover { transform: translateY(-15px) scale(1.05); }
.portal-icon { font-size: 75px; color: #fff; filter: drop-shadow(0 15px 15px rgba(0,0,0,0.6)); transition: filter 0.3s; }
.portal-item:hover .portal-icon { filter: drop-shadow(0 15px 25px var(--primary)); }
.portal-text { text-align: center; text-shadow: 0 5px 10px rgba(0,0,0,0.9); }
.portal-text .sub { display: block; font-size: 1.1rem; color: #e0e0e0; font-weight: 500; text-transform: lowercase; }
.portal-text .main { display: block; font-size: 1.8rem; color: #fff; font-weight: 800; letter-spacing: 1px; margin-top: 5px; }

/* --- YENİ BÜYÜK DUYURULAR (ALT KISIM) --- */
.bottom-announcements {
    width: 100%; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.05);
    border-top: 4px solid var(--primary); border-radius: 16px; backdrop-filter: blur(10px); 
    padding: 40px; box-shadow: 0 20px 40px rgba(0,0,0,0.6); margin-top: 20px;
}
.panel-header { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 30px; display: flex; align-items: center; gap: 12px; }
.panel-header i { color: var(--primary); font-size: 1.8rem; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.news-item { background: rgba(255,255,255,0.03); padding: 25px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.02); transition: all 0.3s; }
.news-item:hover { background: rgba(255,255,255,0.06); transform: translateY(-5px); border-color: rgba(255,170,0,0.2); }
.news-item .date { display: inline-block; background: rgba(255,170,0,0.15); color: var(--primary); padding: 5px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: 800; margin-bottom: 12px; }
.news-item h3 { color: #fff; margin-bottom: 10px; font-size: 1.2rem; }
.news-item p { font-size: 0.95rem; color: #bbb; line-height: 1.6; }

/* =========================================
   MARKET SAYFASI ÖZEL STİLLERİ
   ========================================= */

.back-home-btn {
    position: absolute; top: 35px; left: 40px; z-index: 100;
    color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 1.1rem;
    display: flex; align-items: center; gap: 10px; transition: all 0.3s;
    background: rgba(0,0,0,0.4); padding: 10px 20px; border-radius: 50px; backdrop-filter: blur(10px);
}
.back-home-btn:hover { color: #fff; background: rgba(255,170,0,0.2); transform: translateX(-5px); }

.market-wrapper {
    width: 100%; max-width: 1100px; margin: auto; padding: 120px 20px 50px 20px;
    display: flex; flex-direction: column; align-items: center; z-index: 1;
}
.market-header { text-align: center; margin-bottom: 40px; }
.market-header h2 { font-size: 3rem; font-weight: 900; color: #fff; letter-spacing: 2px; }
.market-header h2 span { color: var(--primary); }
.market-header p { color: var(--text-muted); font-size: 1.1rem; margin-top: 10px; }

.market-categories { display: flex; gap: 15px; margin-bottom: 50px; flex-wrap: wrap; justify-content: center; }
.cat-btn {
    background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 25px; border-radius: 50px; font-size: 1rem; font-weight: 600; cursor: pointer;
    transition: all 0.3s; backdrop-filter: blur(5px);
}
.cat-btn:hover { background: rgba(255,255,255,0.1); }
.cat-btn.active { background: var(--primary); color: #000; border-color: var(--primary); box-shadow: 0 5px 15px rgba(255,170,0,0.4); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; width: 100%; }
.product-card {
    background: rgba(15, 17, 21, 0.8); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px; padding: 40px 30px; text-align: center; position: relative;
    backdrop-filter: blur(15px); transition: all 0.3s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-10px); border-color: rgba(255,170,0,0.3); box-shadow: 0 15px 35px rgba(0,0,0,0.6); }

/* Ortadaki karta özel parlama efekti */
.product-card.featured { border-color: var(--primary); box-shadow: 0 0 20px rgba(255,170,0,0.2); transform: scale(1.05); z-index: 2; }
.product-card.featured:hover { transform: scale(1.05) translateY(-10px); box-shadow: 0 15px 40px rgba(255,170,0,0.4); }
.best-seller {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #000; font-size: 0.8rem; font-weight: 800;
    padding: 5px 15px; border-radius: 20px; text-transform: uppercase; letter-spacing: 1px;
}

.p-icon { font-size: 60px; margin-bottom: 20px; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5)); }
.product-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 10px; }
.p-price { font-size: 2rem; font-weight: 900; color: var(--primary); margin-bottom: 25px; }
.p-price .duration { font-size: 1rem; color: var(--text-muted); font-weight: 500; }

.p-features { list-style: none; margin-bottom: 30px; text-align: left; flex-grow: 1; }
.p-features li { color: #bbb; margin-bottom: 12px; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.p-features li i { color: #00ff88; font-size: 0.9rem; }

.buy-btn {
    width: 100%; background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.1);
    padding: 15px; border-radius: 12px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: all 0.3s;
}
.buy-btn:hover { background: rgba(255,255,255,0.1); }
.buy-btn.featured-btn { background: linear-gradient(135deg, #ffaa00, #ff3300); border: none; color: #fff; box-shadow: 0 5px 15px rgba(255,85,0,0.4); }
.buy-btn.featured-btn:hover { background: linear-gradient(135deg, #ffcc00, #ff5500); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(255,85,0,0.6); }
/* 1. GÖRÜNMEZ KALKANI KIRAR (Kar efekti tıklamaları engellemesin) */
#snowContainer, .snow-container, body::before {
    pointer-events: none !important;
}

/* 2. BUTONU EN ÖNE ALIR VE KESİN TIKLANABİLİR YAPAR */
.top-profile-container, .profile-trigger {
    pointer-events: auto !important;
    z-index: 9999999 !important;
}

/* 3. !IMPORTANT BASKISINI EZER (Eğer menü zorla gizlenmişse serbest bırakır) */
#profileDropdown[style*="display: block"] {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}