:root {
    --bg: #030308;
    --card: rgba(10, 10, 18, 0.8);
    --accent: #9333ea;
    --secondary: #ec4899;
    --text: #ffffff;
    --border: rgba(255, 255, 255, 0.08);
}

body.light-mode {
    --bg: #f4f4f9;
    --card: rgba(255, 255, 255, 0.9);
    --text: #1a1a1a;
    --border: rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-family: 'Inter', sans-serif; }
body { background: var(--bg); color: var(--text); overflow-x: hidden; transition: background 0.5s, color 0.5s; }

/* MODERN SCROLLBAR EKLEMESİ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }

#bg-canvas { position: fixed; top: 0; left: 0; z-index: -1; }

/* TEMA BUTONU - SAĞ ÜST KÖŞE */
.theme-toggle {
    position: fixed; 
    top: 25px; 
    right: 25px; 
    width: 50px; height: 50px;
    background: var(--card); border: 1px solid var(--accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10001; backdrop-filter: blur(10px);
    transition: 0.3s; color: var(--accent); font-size: 1.2rem;
}
.theme-toggle:hover { transform: rotate(15deg) scale(1.1); }

/* SEPET BUTONU - TEMA BUTONUNUN ALTINA SABİTLENDİ */
.cart-trigger-wrapper {
    position: fixed;
    top: 85px; 
    right: 25px;
    z-index: 10001;
}

/* YAN NAVİGASYON */
.side-nav {
    position: fixed; right: 25px; top: 55%; transform: translateY(-50%);
    background: rgba(10, 10, 20, 0.7); padding: 20px 12px; border-radius: 40px;
    display: flex; flex-direction: column; gap: 25px; border: 1px solid rgba(147, 51, 234, 0.3);
    z-index: 9999; backdrop-filter: blur(15px);
}
.side-nav a { color: var(--text); opacity: 0.4; transition: 0.4s; font-size: 22px; text-decoration: none; }
.side-nav a:hover { opacity: 1; color: var(--secondary); transform: scale(1.1); }

/* BÖLÜM TASARIMLARI */
section { 
    padding: 120px 10%; 
    text-align: center; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

h1 { font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 900; letter-spacing: -3px; }
.gradient-text { background: linear-gradient(90deg, #fff, var(--accent), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.sec-title { font-size: 3.5rem; margin-bottom: 40px; }

/* BUTONLAR */
.btn-primary { background: linear-gradient(90deg, var(--accent), var(--secondary)); color: white; padding: 16px 40px; border-radius: 12px; text-decoration: none; font-weight: 700; display: inline-block; transition: 0.3s; border:none; cursor:pointer;}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(147, 51, 234, 0.4); filter: brightness(1.1); }

.btn-secondary { background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text); padding: 16px 40px; border-radius: 12px; text-decoration: none; font-weight: 700; display: inline-block; margin-left: 15px; cursor:pointer; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--accent); }

/* İSTATİSTİKLER */
.stats-wrapper { display: flex; justify-content: center; gap: 30px; margin-top: 50px; flex-wrap: wrap; }
.stat-box { background: var(--card); padding: 25px; border-radius: 20px; border: 1px solid var(--border); min-width: 160px; transition: 0.3s; }
.stat-box:hover { border-color: var(--accent); transform: translateY(-5px); }

/* PAKET KARTLARI */
.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 25px; }
.package-card { background: var(--card); border: 1px solid var(--border); border-radius: 25px; padding: 40px 25px; transition: 0.4s; position: relative; display: flex; flex-direction: column; z-index: 1; }
.package-card:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.package-card.featured { border: 2px solid var(--accent); transform: scale(1.05); z-index: 2; }
.package-card.featured:hover { transform: scale(1.07) translateY(-10px); }

.duration-select { margin: 15px 0; }
.duration-select select {
    width: 100%; padding: 12px; 
    background: rgba(0, 0, 0, 0.4); 
    border: 1px solid var(--accent); 
    color: white; border-radius: 10px; 
    outline: none; cursor: pointer;
    font-family: inherit;
}

.price-box { margin: 25px 0; }
.old-price { text-decoration: line-through; opacity: 0.4; margin-right: 10px; font-size: 1.2rem; }
.new-price { font-size: 3rem; font-weight: 800; color: var(--text); }

.package-card ul { list-style: none; text-align: left; margin-bottom: 30px; flex-grow: 1; }
.package-card ul li { margin-bottom: 12px; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.package-card ul li i { color: var(--accent); }

.btn-card { 
    background: linear-gradient(90deg, var(--accent), var(--secondary)); 
    color: white; 
    text-decoration: none; 
    padding: 15px; 
    border-radius: 12px; 
    font-weight: 700; 
    border: none; 
    cursor: pointer;
    font-family: inherit;
    transition: 0.3s;
}
.btn-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(147, 51, 234, 0.3); }

/* SSS - FAQ */
.faq-container { max-width: 800px; margin: 0 auto; text-align: left; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 15px; margin-bottom: 15px; overflow: hidden; transition: 0.3s; }
.faq-item:hover { border-color: var(--accent); }
.faq-question { padding: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--accent); }
.faq-answer { padding: 0 20px; max-height: 0; opacity: 0; overflow: hidden; transition: 0.4s ease; color: var(--text); }
.faq-item.active .faq-answer { padding-bottom: 20px; max-height: 200px; opacity: 0.7; }

/* SAHİP KARTI */
.owner-card { 
    position: relative; 
    background: var(--card); 
    border: 2px solid var(--accent); 
    padding: 50px 40px 40px; 
    border-radius: 30px; 
    width: 280px; 
    margin: 40px auto; 
    transition: 0.3s; 
}
.owner-card:hover { transform: scale(1.03); box-shadow: 0 0 30px rgba(147, 51, 234, 0.2); }
.owner-img-wrapper { width: 130px; height: 130px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden; border: 3px solid var(--accent); }
.owner-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.owner-name-neon { font-size: 1.8rem; color: #fff; text-shadow: 0 0 10px var(--accent); margin-bottom: 10px; }
.owner-badge-modern { 
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #fff; padding: 6px 25px; 
    border-radius: 50px; font-weight: 800; font-size: 0.8rem; 
    box-shadow: 0 0 20px var(--accent); z-index: 10;
}

/* BİLDİRİMLER VE MODALLAR */
.sale-notification { 
    position: fixed; 
    bottom: -100px; 
    left: 30px; 
    background: rgba(15,15,25,0.95); 
    border: 1px solid var(--accent); 
    padding: 15px 25px; 
    border-radius: 20px; 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    transition: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    z-index: 99999; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.sale-notification.active { bottom: 30px; }

.custom-modal { 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.9); 
    backdrop-filter: blur(10px); 
    display: none; 
    align-items: center; 
    justify-content: center; 
    z-index: 1000000 !important;
}
.custom-modal.active { display: flex !important; }

.modal-content { 
    background: #0a0a14; 
    border: 1px solid var(--accent); 
    padding: 40px; 
    border-radius: 30px; 
    text-align: center; 
    width: 90%;
    max-width: 450px; 
    box-shadow: 0 0 40px rgba(147, 51, 234, 0.2);
    position: relative;
    z-index: 1000001;
}

body.modal-open { overflow: hidden; }

/* SEPET ROZETİ VE DÜZENİ */
.cart-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* --- EKLEMELER VE DÜZENLEMELER --- */

/* Onay Kutusu (Checkbox) Tasarımı */
.agreement-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 12px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.agreement-container input[type="checkbox"] {
    min-width: 18px;
    min-height: 18px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--accent);
}

.agreement-container label {
    font-size: 0.8rem;
    line-height: 1.4;
    cursor: pointer;
    opacity: 0.8;
}

.agreement-container a {
    color: var(--accent);
    text-decoration: underline;
}

/* Ödeme Bilgileri Inputları */
.modal-input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: white;
    margin-bottom: 10px;
    outline: none;
    transition: 0.3s;
}

.modal-input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

/* --- YENİ EKLENEN DISCORD KULLANICI PANELİ VE YORUM STİLLERİ --- */

.nav-user-panel {
    display: flex;
    align-items: center;
    background: var(--card);
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid var(--border);
    gap: 12px;
    transition: 0.3s;
}
.nav-user-panel:hover { border-color: var(--accent); }

#user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--accent);
}

#user-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.add-review-container {
    max-width: 800px;
    margin: 50px auto;
    background: var(--card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--accent);
    display: none; /* JS ile yetkiye göre açılır */
}

.review-textarea {
    width: 100%;
    height: 120px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: 15px;
    color: white;
    padding: 15px;
    font-family: inherit;
    resize: none;
    margin-bottom: 15px;
    transition: 0.3s;
}

.review-textarea:focus {
    border-color: var(--accent);
    outline: none;
    background: rgba(0,0,0,0.5);
}

/* MOBIL UYUMLULUK EKLEMESİ */
@media (max-width: 768px) {
    .side-nav {
        top: auto;
        bottom: 20px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        flex-direction: row;
        padding: 10px 25px;
    }
    .theme-toggle, .cart-trigger-wrapper { right: 15px; }
    .theme-toggle { top: 15px; }
    .cart-trigger-wrapper { top: 75px; }
    section { padding: 80px 5%; }
    .sec-title { font-size: 2.5rem; }
}

/* LIGHT MODE EKSTRA DÜZELTMELER */
body.light-mode .modal-content { background: #fff; color: #1a1a1a; }
body.light-mode .modal-input { color: #1a1a1a; background: #eee; }
body.light-mode .review-textarea { color: #1a1a1a; background: #eee; }
body.light-mode .owner-name-neon { color: #1a1a1a; text-shadow: none; }