
/* === GLOBAL === */
*{margin:0;padding:0;box-sizing:border-box;font-family:'Poppins',sans-serif}
body{background:#0c0e12;color:#fff;overflow-x:hidden}
.layout{display:flex;min-height:0vh;width:100%}
.main-wrapper{flex:1;display:flex;flex-direction:column}
a{text-decoration:none;color:inherit}

/* === HEADER === */
.topbar{height:70px;background:linear-gradient(90deg,#15181d,#1a1e25);display:flex;justify-content:space-between;align-items:center;padding:0 25px;border-bottom:1px solid rgba(255,255,255,0.05);z-index:100}
.left{display:flex;align-items:center;gap:10px}
.right{display:flex;align-items:center;gap:15px}
.menu-toggle{display:none;color:#6fd2ff;font-size:1.3rem;background:none;border:none;cursor:pointer}

/* === HEADER BUTTONS === */
.header-btn{display:flex;align-items:center;gap:10px;height:38px;padding:0 18px;border-radius:10px;font-weight:500;font-size:.9rem;position:relative;overflow:visible;transition:all .3s ease}
.header-btn.glow{background:linear-gradient(90deg,#ff3b3b,#d51919);color:#fff;box-shadow:0 0 10px rgba(255,60,60,.4)}
.header-btn:hover{transform:translateY(-2px);filter:brightness(1.1)}
.has-floating-icon{position:relative;overflow:visible;padding-left:60px}
.floating-icon.correct-rise{position:absolute;left:10px;bottom:0;width:50px;height:50px;display:flex;align-items:center;justify-content:center;transform:translateY(15%);transition:all .3s ease;z-index:3}
.floating-icon.correct-rise img{width:50px;height:50px;object-fit:contain;transition:transform .3s}
.has-floating-icon:hover .floating-icon.correct-rise img{transform:scale(1.15)}

/* === C-PARA === */
.cpara-box{display:flex;align-items:center;gap:8px;background:#16191f;padding:6px 10px;border-radius:8px;border:1px solid #2a2f36}
.cpara-box img{width:20px;height:20px}
.cpara-box span{font-size:.9rem;color:#fff}

/* === PROFILE DROPDOWN === */
.profile-dropdown{position:relative}
.profile-toggle{display:flex;align-items:center;gap:8px;background:#16191f;padding:6px 12px;border-radius:8px;border:1px solid #2a2f36;cursor:pointer;transition:.3s}
.profile-toggle:hover{background:#1d2027}
.profile-toggle img.avatar{width:34px;height:34px;border-radius:50%;object-fit:cover}
.user-texts .username{font-weight:500;font-size:.9rem;display:block}
.user-texts .level{font-size:.75rem;color:#aaa}
.profile-toggle i{font-size:.8rem;color:#999}
.profile-menu{display:none;position:absolute;top:110%;right:0;width:230px;background:#171a21;border:1px solid #2a2f36;border-radius:12px;padding:10px;box-shadow:0 5px 15px rgba(0,0,0,.4);z-index:999}
.profile-dropdown.active .profile-menu{display:block;animation:fadeIn .2s ease}
@keyframes fadeIn{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
.progress-section{margin-bottom:10px}
.level-info{display:flex;justify-content:space-between;font-size:.8rem;color:#bbb;margin-bottom:4px}
.progress-bar{height:6px;background:#2a2f36;border-radius:6px;overflow:hidden;margin-bottom:6px}
.progress-bar div{height:100%;background:linear-gradient(90deg,#ff4040,#c51919)}
.balance-info{font-size:.8rem;color:#fff}
.profile-menu hr{border:none;border-top:1px solid #2a2f36;margin:8px 0}
.profile-menu ul{list-style:none}
.profile-menu ul li{padding:6px 0;font-size:.9rem;color:#ccc;cursor:pointer;transition:.2s}
.profile-menu ul li i{margin-right:6px;color:#ff5050}
.profile-menu ul li:hover{color:#fff}
.logout{color:#ff4040;font-weight:600;text-align:center;cursor:pointer;padding:6px 0}
.logout i{margin-right:6px}

/* === PROFİL DROPDOWN GELİŞMİŞ === */
.profile-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 4px 10px;
}

.avatar-big {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #2a2f36;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-meta .username {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.user-level {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #ffb84d;
  font-size: 0.85rem;
  font-weight: 500;
}

.user-level i {
  color: #ffcc66;
}

/* İlerleme alanı */
.progress-section {
  margin-bottom: 10px;
}

.progress-bar {
  height: 6px;
  background: #2a2f36;
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar div {
  height: 100%;
  background: linear-gradient(90deg, #ff4040, #c51919);
}

/* === C-PARA ve XP kutuları === */
.profile-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}

.cpara-mini-btn,
.xp-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.cpara-mini-btn {
  background: linear-gradient(90deg, #0e2218 0%, #1e7447 100%);
  color: #e9fff2;
  box-shadow: 0 0 6px rgba(80,255,160,0.2);
}

.cpara-mini-btn img {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 3px rgba(120,255,180,0.4));
}

.xp-box {
  background: linear-gradient(90deg, #14273b 0%, #234d77 100%);
  color: #bde3ff;
  box-shadow: 0 0 6px rgba(111,210,255,0.2);
}

.xp-box i {
  color: #9be2ff;
  font-size: 0.9rem;
}


/* === NOTIFICATIONS === */
.notif-icons i{color:#6fd2ff;font-size:1.2rem;cursor:pointer;transition:.3s}
.notif-icons i:hover{color:#9be2ff;transform:scale(1.15)}

/* === SIDEBAR === */
.sidebar{width:270px;background:#11141a;display:flex;flex-direction:column;border-right:1px solid rgba(255,255,255,.05);transition:width .3s ease;z-index:1001;height:100vh;overflow:hidden}
.sidebar.collapsed{width:90px}
.sidebar-logo{display:flex;align-items:center;justify-content:space-between;padding:10px 18px;height:70px;border-bottom:1px solid rgba(255,255,255,.05)}
.sidebar-logo img{max-height:45px;width:auto}
.logo-mini{display:none}
.sidebar.collapsed .logo-full{display:none}
.sidebar.collapsed .logo-mini{display:block;margin:auto}
.collapse-btn{background:none;border:none;color:#6fd2ff;cursor:pointer;font-size:1rem;transition:transform .3s}
.sidebar.collapsed .collapse-btn i{transform:rotate(180deg)}
.sidebar-scroll{flex:1;overflow-y:auto}


/* === RED MENU === */
.red-menu li{margin:4px 10px}
.red-menu li a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;font-size:.9rem;color:#fff;background:linear-gradient(90deg,#ff3b3b,#d51919);transition:all .2s ease}
.red-menu li.active a,.red-menu li a:hover{background:linear-gradient(90deg,#ff3b3b,#d51919);box-shadow:0 0 10px rgba(255,50,50,.3)}
/* === RED MENU ALTINDAKİ BOŞLUK DÜZELTME === */
.divider,
.menu-category {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.red-menu + .divider {
  margin-top: -4px;  /* küçük negatif değerle hizalar */
}

/* === ACCORDION === */
.accordion{margin-top:8px}
.accordion-header{display:flex;justify-content:space-between;align-items:center;padding:8px 15px;cursor:pointer;user-select:none}
.accordion-title{font-size:.8rem;font-weight:700;color:#fff}
.accordion-header i{font-size:.8rem;color:#aaa;transition:.3s}
.accordion-item.active .accordion-header i{transform:rotate(180deg)}
.accordion-content{list-style:none;overflow:hidden;transition:all .3s ease;max-height:0;opacity:0;visibility:hidden}
.accordion-item.active .accordion-content{max-height:600px;opacity:1;visibility:visible}
.accordion-content li{margin:4px 10px}
.accordion-content li a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;font-size:.9rem;color:#cfd3d9;background:#16191f;transition:.2s}
.accordion-content li a:hover{background:#1d2128;color:#fff}

/* === SIDEBAR COLLAPSED === */
.sidebar.collapsed .menu li a span,
.sidebar.collapsed .accordion-title,
.sidebar.collapsed .accordion-header i,
.sidebar.collapsed .telegram-texts,
.sidebar.collapsed .telegram-title,
.sidebar.collapsed .sidebar-version{display:none!important;opacity:0;width:0;overflow:hidden}
.sidebar.collapsed .menu li a{justify-content:center;padding:12px 0}
.sidebar.collapsed .accordion-header{justify-content:center}

/* --- Kırmızı menü: daraltıldığında sadece ikon kalsın --- */
.sidebar.collapsed .red-menu li a {
  justify-content: center;
  padding: 12px 0;
  gap: 0;
  font-size: 0 !important;      /* metni görünmez yap */
  text-indent: 0;               /* olası itmeleri sıfırla */
  overflow: hidden;
  white-space: nowrap;
}
.sidebar.collapsed .red-menu li a i {
  font-size: 1.2rem !important; /* ikon boyutunu geri ver */
  margin: 0;
}

/* Daraltıldığında üst parlama ve sağ üst dalga dekoru görünmesin */
.sidebar.collapsed .red-menu li a::before,
.sidebar.collapsed .red-menu li a::after {
  display: none !important;
}


/* === TELEGRAM BOX (daha küçük ve ortalanmış) === */
.sidebar-footer {
  background: linear-gradient(180deg, #0f1218 0%, #0a0c10 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 18px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.telegram-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 85%;                     /* kutu %15 küçültüldü */
  background: linear-gradient(90deg, #142536, #1b3145);
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 191, 255, 0.2);
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.15);
  margin: 0 auto;
}

.telegram-join {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.telegram-logo {
  width: 28px;                    /* küçültüldü */
  height: 28px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(0,191,255,0.3));
}

.telegram-texts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}

.telegram-title {
  color: #00bfff;
  font-weight: 600;
  font-size: 0.88rem;
}

.telegram-texts small {
  font-size: 0.73rem;
  color: #b7dfff;
  opacity: 0.9;
}

/* === VERSION NUMARASI === */
.sidebar-version {
  text-align: center;
  margin-top: 10px;
  font-size: 0.7rem;               /* daha ufak yazı */
  color: #6f8a9c;                  /* daha soft renk */
  letter-spacing: 0.5px;
}


/* === FOOTER === */
.footer{text-align:center;padding:15px;background:#0a0c10;color:#888;font-size:.9rem;border-top:1px solid rgba(255,255,255,.05)}

/* === RESPONSIVE === */
/* === RESPONSIVE (MOBİL) === */
@media(max-width:992px){

  /* === HEADER === */
  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(90deg, #15181d, #1a1e25);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 2000;
  }

  .left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
  }

  .right {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* === Masaüstü butonlarını gizle === */
  .left .header-btn {display: none;}
  .divider {display: none;}
  .cpara-box {display: none;}

  /* === Menü ikonu === */
  .menu-toggle {
    display: block;
    font-size: 1.4rem;
    color: #6fd2ff;
    background: none;
    border: none;
    cursor: pointer;
  }

  /* === Logo === */
  .mobile-logo {
    display: block;
    height: 40px;
    object-fit: contain;
  }

  /* === Profil ve Bildirim butonları === */
  .profile-dropdown {
    position: relative;
  }

  .profile-toggle {
    background: none;
    border: none;
    padding: 0;
  }

  .profile-toggle img.avatar {
    width: 36px;
    height: 36px;
  }

  .notif-btn {
    width: 38px;
    height: 38px;
  }

  /* === Sidebar === */
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    transition: left 0.3s ease;
    z-index: 2500;
  }

  .sidebar.active {
    left: 0;
  }

  /* === Overlay === */
  #overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2400;
    display: none;
  }

  #overlay.active {
    display: block;
  }

  /* === İçerik === */
  .main-wrapper {
    /* margin-top: 60px; */ /* header sabit olduğu için içerik aşağı insin */
  }

  /* Bildirim popup mobilde daha geniş */
  .notif-popup {
    right: 10px;
    width: calc(100% - 20px);
    max-height: 70vh;
  }
}

@media(max-width:992px){

  /* === C-PARA MOBİLDE GÖZÜKMESİN === */
  .cpara-box {
    display: none !important;
  }

  /* === SIDEBAR MOBİLDE TAM KAPANIR === */
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 270px;
    height: 100vh;
    background: #11141a;
    transition: left 0.3s ease;
    z-index: 1001;
  }

  .sidebar.active {
    left: 0; /* Açıldığında görünür */
  }

  /* Overlay (arka plan karartma) */
  #overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    z-index: 1000;
  }
  #overlay.active {
    display: block;
  }
}

/* === MOBİL LOGO === */
.mobile-logo {
  display: none;
  align-items: center;
  justify-content: center;
  height: 50px;
  margin-left: 10px;
}

.mobile-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.3));
}

/* sadece mobilde görünür */
@media(max-width:992px){
  .mobile-logo {
    display: flex;
  }
}



/* === C-PARA ALANI (yeşil degrade + tıklanabilir, hover yok) === */
.cpara-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  border-radius: 40px;
  background: linear-gradient(90deg, #1e7447 0%, #18af5f 50%, #1e7447 100%);
  border: 1px solid rgba(100, 255, 180, 0.4);
  box-shadow: 0 0 8px rgba(80, 255, 160, 0.15);
  text-decoration: none;
  transition: none;            /* geçiş animasyonlarını kapat */
  cursor: pointer;
}

.cpara-box img {
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(120, 255, 180, 0.3));
}

.cpara-box span {
  font-weight: 800;
  font-size: 0.95rem;
  color: #e9fff2;
  letter-spacing: 0.4px;
  text-shadow: 0 0 6px rgba(120, 255, 180, 0.3);
}

/* Hover tamamen pasif */
.cpara-box:hover {
  background: linear-gradient(90deg, #1e7447 0%, #1e7447 50%, #18af5f 100%);
  box-shadow: 0 0 8px rgba(80, 255, 160, 0.15);
  transform: none;
}


/* === BİLDİRİM BUTONU === */
.notif-icons {
  display: flex;
  align-items: center;
}
.notif-btn {
  background: #1c2027;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s ease;
}
.notif-btn i {
  color: #6fd2ff;
  font-size: 1.1rem;
  transition: 0.3s ease;
}
.notif-btn:hover {
  background: #28303b;
  border-color: rgba(111, 210, 255, 0.3);
  box-shadow: 0 0 10px rgba(111, 210, 255, 0.3);
}
.notif-btn:hover i {
  transform: scale(1.15);
  color: #9be2ff;
}

/* === HEADER DIVIDERS (daha belirgin çizgi) === */
.right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.45); /* %45 opak beyaz çizgi */
  border-radius: 2px;
  opacity: 30%;
}

/* === INDEX (İÇERİK) ARKA PLAN === */
.content {
  background: linear-gradient(180deg, #0f1216, #21272f);
  flex: 1;
  padding: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* === KIRMIZI MENÜ - 3D GÖRÜNÜM + DALGALI DEKOR === */
.red-menu li a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #fff;
  font-weight: 500;
  font-size: 0.8rem;
  background: linear-gradient(90deg,#ff3b3b,#d51919)
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    0 3px 5px rgba(0, 0, 0, 0.4),
    0 8px 16px rgba(150, 0, 20, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.red-menu li a:hover {
  background: linear-gradient(180deg, #2567e7, #25e7db);
  transform: translateY(-1px);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.25),
    0 5px 10px rgba(0, 0, 0, 0.45),
    0 10px 20px rgba(150, 0, 20, 0.4);
}

/* Dalgalı sabit dekor */
.red-menu li a::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 35%;
  height: 100%;
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.6) 0px,
    rgba(255, 255, 255, 0.6) 2px,
    rgba(255, 255, 255, 0) 4px,
    rgba(255, 255, 255, 0) 8px
  );
  opacity: 0.3;
  pointer-events: none;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1), transparent);
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* 3D buton iç parlaması */
.red-menu li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 45%;
  background: linear-gradient(
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0)
  );
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  pointer-events: none;
}

/* İkon */
.red-menu li a i {
  font-size: 1rem;
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

/* Buton araları */
.red-menu li {
  margin-bottom: 6px;
}

/* === BİLDİRİM POPUP === */
.notif-popup {
  position: absolute;
  top: 80px;
  right: 25px;
  width: 340px;
  background: #15181d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  z-index: 9999;
  animation: fadeNotif 0.2s ease;
  max-height: 420px;
  overflow: hidden;
}

@keyframes fadeNotif {
  from {opacity: 0; transform: translateY(-8px);}
  to {opacity: 1; transform: translateY(0);}
}

.notif-popup.active {
  display: flex;
}

/* Üst başlık */
.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.notif-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
}

.notif-title i {
  color: #6fd2ff;
  font-size: 1rem;
}

.mark-all {
  background: none;
  border: none;
  color: #6fd2ff;
  font-size: 0.75rem;
  cursor: pointer;
  transition: 0.3s;
}
.mark-all:hover {
  color: #9be2ff;
}

/* Bildirim listesi */
.notif-list {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 330px;
  overflow-y: auto;
}

/* scrollbar gizle */
.notif-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Bildirim item */
.notif-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1a1e25;
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: 0.3s ease;
}
.notif-item:hover {
  background: #20242d;
  border-color: rgba(111,210,255,0.1);
}

.notif-item img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

.notif-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.notif-info strong {
  font-size: 0.88rem;
  color: #fff;
}

.notif-info small {
  font-size: 0.73rem;
  color: #aaa;
}

.notif-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
}

.notif-status.unread {
  background: linear-gradient(90deg, #10bd8f80, #71202d00);
  color: #fff;
  border: 1px solid rgba(16,189,143,0.4);
}

.notif-status.read {
  background: #2a2f36;
  color: #bbb;
  border: 1px solid rgba(255,255,255,0.05);
}

/* === PROFİL MENÜ C-PARA BUTONU & XP === */
.profile-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.cpara-mini-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 30px;
  background: linear-gradient(90deg, #0e2218 0%, #1e7447 100%);
  border: 1px solid rgba(100,255,180,0.4);
  box-shadow: 0 0 6px rgba(80,255,160,0.2);
  color: #e9fff2;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: default;
  transition: 0.3s;
}

.cpara-mini-btn img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 3px rgba(120,255,180,0.4));
}

.xp-info {
  color: #9be2ff;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
}


/* === SABİT SIDEBAR === */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: rgba(16,24,42,0.96);
  backdrop-filter: blur(8px);
  box-shadow: 3px 0 10px rgba(0,0,0,0.4);
  overflow-y: auto;
  z-index: 10000;
  transition: width 0.3s ease;
}

/* === DARALMIŞ (KAPALI) HAL === */
.sidebar.collapsed {
  width: 80px;
}

.sidebar.collapsed .red-menu span,
.sidebar.collapsed .accordion-title,
.sidebar.collapsed .accordion-content span,
.sidebar.collapsed .telegram-texts,
.sidebar.collapsed .sidebar-version {
  display: none;
}

.sidebar.collapsed .logo-full {
  display: none;
}

.sidebar.collapsed .logo-mini {
  display: block !important;
}

/* === HEADER === */
.topbar {
  position: fixed;
  top: 0;
  left: 240px;
  right: 0;
  height: 70px;
  background: rgba(16,24,42,0.95);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: left 0.3s ease;
}

/* Sidebar daralınca header sola yaklaşır */
.sidebar.collapsed ~ .topbar {
  left: 80px;
}

/* === MAIN ALANI === */
.main-wrapper {
  /* margin-left: 240px; */
  padding-top: 70px;
  transition: margin-left 0.3s ease;
}

.sidebar.collapsed ~ .main-wrapper {
  margin-left: 80px;
}

/* === MASAÜSTÜ DARALMA === */
body.sidebar-collapsed .sidebar {
  width: 80px !important;
}
body.sidebar-collapsed .topbar {
  left: 80px !important;
  width: calc(100% - 80px);
}
body.sidebar-collapsed .main-wrapper {
  margin-left: 80px !important;
}

/* === MOBİL TAM EKRAN AÇILMA === */
@media(max-width:992px){
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    transition: left 0.3s ease;
    z-index: 2500;
  }
  .sidebar.active {
    left: 0;
  }
  #overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    z-index: 2400;
  }
  #overlay.active {
    display: block;
  }
}

/* === GENEL === */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  background: #0e0e12;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* === SIDEBAR === */
.sidebar {
  width: 240px;
  background: rgba(16, 24, 42, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 3px 0 15px rgba(0, 0, 0, 0.4);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 1000;
  transition: width 0.3s ease;
}
.sidebar.collapsed { width: 80px; }

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}
.sidebar-logo img.logo-mini { width: 40px; display: none; }
.sidebar.collapsed .logo-full { display: none; }
.sidebar.collapsed .logo-mini { display: block; }
.collapse-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

/* === MAIN CONTENT === */
.main-content {
  margin-left: 240px;
  flex: 1;
  padding: 40px;
  max-width: calc(100% - 240px);
  box-sizing: border-box;
  overflow: hidden;
  transition: margin-left 0.3s ease, max-width 0.3s ease;
  background-color: #0e1422;
}
.sidebar.collapsed ~ .main-content {
  margin-left: 80px;
  max-width: calc(100% - 80px);
}

/* === HEADER === */
.topbar {
  background: rgba(22, 26, 40, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 240px;
  height: 70px;
  width: calc(100% - 240px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  z-index: 999;
  transition: left 0.3s ease, width 0.3s ease;
}
.sidebar.collapsed + .topbar {
  left: 80px;
  width: calc(100% - 80px);
}
.topbar .left, .topbar .right {
  display: flex;
  align-items: center;
  gap: 15px;
}
.menu-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* === SOSYAL MEDYA KUTULARI === */
.social-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1800px;
  margin: 20px auto 60px;
}
.social-box {
  display: flex;
  align-items: center;
  background: #1a1a22;
  border-radius: 14px;
  padding: 15px 20px;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  overflow: hidden;
}
.social-box:hover {
  background: #23232d;
  box-shadow: 0 0 5px rgba(255,215,0,0.35), 0 0 20px rgba(255,200,0,0.15);
  transform: translateY(-3px);
}
.social-left img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0.95);
  margin-right: 15px;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.social-box:hover .social-left img { transform: scale(1.1); filter: brightness(1.2); }
.social-right h3 { font-size: 15px; margin: 0; font-weight: 600; color: #ff9b00; }
.social-right p { font-size: 13px; color: #aaa; margin: 4px 0 0; }

/* === BÖLÜM BAŞLIKLARI === */
.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.section-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
}
.section-icon i { color: #ccc; font-size: 16px; }
.section-text h2 { font-size: 16px; font-weight: 700; margin: 0; }
.section-text p { font-size: 13px; color: #aaa; margin-top: 4px; }

/* === FOOTER === */
.cyborg-footer {
  background: linear-gradient(180deg, #0d0f17 0%, #0b0c12 100%);
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  color: #ccc;
  padding: 50px 20px 20px;
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
}
.cyborg-footer::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 204, 0, 0.07), transparent 60%);
  animation: footerGlow 8s infinite linear;
}
@keyframes footerGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 30px;
  z-index: 2;
  position: relative;
}
.footer-section { flex: 1 1 28px; margin: 15px; }
.footer-logo { width: 140px; margin-bottom: 15px; }
.footer-section.about p { font-size: 14px; color: #aaa; line-height: 1.6; }
.footer-section.links h4,
.footer-section.social h4 {
  color: #FFD700;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 16px;
}
.footer-section.links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-section.links ul li { margin: 6px 0; }
.footer-section.links ul li a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-section.links ul li a:hover { color: #FFD700; }
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 5px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1a1a23, #101014);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
  color: #FFD700;
  font-size: 18px;
  transition: all 0.3s ease;
}
.social-icons a:hover {
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  color: #fff;
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  padding-top: 15px;
  font-size: 13px;
  color: #888;
  z-index: 2;
  position: relative;
}
.footer-bottom .tagline {
  display: block;
  color: #FFD700;
  margin-top: 5px;
  font-weight: 500;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
  .social-boxes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
  .sidebar { position: fixed; left: -100%; width: 240px; }
  .sidebar.active { left: 0; }
  .main-content { margin-left: 0; padding: 20px; max-width: 100%; }
  .topbar { left: 0; width: 100%; }
}
@media (max-width: 700px) {
  .social-boxes { grid-template-columns: repeat(2, 1fr); }
  .social-box { flex-direction: column; align-items: center; text-align: center; }
  .social-left img { margin-right: 0; margin-bottom: 8px; }
  .social-right h3 { font-size: 14px; }
  .social-right p { font-size: 12px; }
}
@media (max-width: 768px) {
  .footer-top { flex-direction: column; text-align: center; }
  .footer-section.links { display: none !important; }
}


/* === SIDEBAR === */
.sidebar {
  width: 240px;
  background: rgba(16, 24, 42, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 3px 0 15px rgba(0, 0, 0, 0.4);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  transition: width 0.3s ease;
  z-index: 1000;
}

.sidebar.collapsed {
  width: 80px;
}

.sidebar.active {
  left: 0;
}

@media (max-width: 992px) {
  .sidebar {
    left: -240px;
    transition: left 0.3s ease;
    width: 240px;
  }
  .sidebar.active {
    left: 0;
  }
}

/* === OVERLAY (Mobilde sidebar açıldığında karartma) === */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}
#overlay.active {
  opacity: 1;
  visibility: visible;
}

/* === HEADER === */
.topbar {
  position: fixed;
  top: 0;
  left: 240px;
  width: calc(100% - 240px);
  height: 60px;
  background: rgba(20, 25, 35, 0.9);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  transition: all 0.3s ease;
  z-index: 1001;
}

