:root {
  --cyb-bg: #0b0f17;
  --cyb-border: rgba(255,255,255,.085);
  --cyb-text: #fff;
  --cyb-muted: #9aa6b8;
  --cyb-blue: #6fd2ff;
  --cyb-purple: #8a2be2;
  --cyb-green: #4ade80;
  --cyb-shadow: 0 18px 42px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--cyb-text);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 2%, rgba(111,210,255,.13), transparent 30%),
    radial-gradient(circle at 8% 24%, rgba(138,43,226,.13), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(255,155,0,.07), transparent 34%),
    var(--cyb-bg);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at top, black, transparent 76%);
}

#sidebar { z-index: 2500; }
#sidebar.collapsed { width: 80px !important; }
#sidebar.collapsed .menu-text { display: none !important; }
#sidebar.collapsed ~ .main-content,
body.sidebar-collapsed .main-content { margin-left: 80px !important; max-width: calc(100% - 80px) !important; }
#sidebar.collapsed ~ .topbar,
body.sidebar-collapsed .topbar { left: 80px !important; width: calc(100% - 80px) !important; }

@media (min-width: 993px) {
  .main-content { margin-left: 240px; max-width: calc(100% - 240px); }
}

@media (max-width: 992px) {
  #sidebar {
    left: -100% !important;
    width: 270px;
    max-width: 86vw;
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 2500;
    transition: left .3s ease;
  }
  #sidebar.active,
  body.sidebar-open #sidebar { left: 0 !important; }
  .main-content,
  body.sidebar-collapsed .main-content,
  #sidebar.collapsed ~ .main-content { margin-left: 0 !important; max-width: 100% !important; }
  .topbar,
  body.sidebar-collapsed .topbar,
  #sidebar.collapsed ~ .topbar { left: 0 !important; width: 100% !important; }
}

#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.68);
  visibility: hidden;
  opacity: 0;
  z-index: 2400;
  transition: opacity .25s ease, visibility .25s ease;
}
#overlay.active,
body.sidebar-open #overlay { visibility: visible; opacity: 1; }

.main-content {
  position: relative;
  min-height: 100vh;
  padding: 105px 32px 45px;
  background: transparent;
  transition: margin-left .3s ease, max-width .3s ease;
}
.index-page { width: 100%; max-width: 1660px; margin: 0 auto; }

/* === ÜST VİTRİN === */
.home-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
  gap: 24px;
  margin-bottom: 26px;
}
.hero-slider-card,
.active-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(111,210,255,.18);
  box-shadow: 0 18px 42px rgba(0,0,0,.34), 0 0 0 1px rgba(255,255,255,.04) inset;
  background:
    radial-gradient(circle at top left, rgba(138,43,226,.18), transparent 42%),
    linear-gradient(180deg, rgba(20,25,38,.96), rgba(9,12,19,.98));
}
.hero-slider-card { min-height: 330px; padding: 8px; }
.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 330px;
  overflow: hidden;
  border-radius: 23px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .65s ease;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide a,
.hero-slide img { display: block; width: 100%; height: 100%; }
.hero-slide img { min-height: 330px; object-fit: cover; filter: brightness(.98) saturate(1.05); }
.slider-empty {
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyb-muted);
  text-align: center;
  padding: 24px;
}
.slider-empty i { display: block; margin-bottom: 10px; color: var(--cyb-blue); font-size: 2rem; }
.slider-dots {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}
.slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: .25s ease;
}
.slider-dot.active {
  width: 23px;
  background: var(--cyb-blue);
  box-shadow: 0 0 14px rgba(111,210,255,.75);
}
.active-panel {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 330px;
}
.active-block { flex: 1; min-height: 0; }
.active-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.active-head h3 { margin: 0; color: #fff; font-size: .98rem; font-weight: 1000; letter-spacing: -.02em; }
.active-head a { color: var(--cyb-blue); font-size: .76rem; font-weight: 900; text-decoration: none; white-space: nowrap; }
.active-list { display: grid; gap: 10px; }
.active-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 11px;
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,.052);
  border: 1px solid rgba(255,255,255,.075);
  transition: .25s ease;
}
.active-item:hover { transform: translateX(4px); background: rgba(255,255,255,.075); border-color: rgba(111,210,255,.24); }
.active-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
}
.active-icon img { width: 100%; height: 100%; object-fit: contain; padding: 6px; filter: brightness(1.08); }
.active-icon i { color: var(--cyb-blue); }
.active-info { min-width: 0; flex: 1; }
.active-info strong {
  display: block;
  color: #fff;
  font-size: .84rem;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.active-info span { display: block; margin-top: 3px; color: var(--cyb-muted); font-size: .72rem; font-weight: 750; }
.active-empty {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border-radius: 16px;
  color: var(--cyb-muted);
  background: rgba(255,255,255,.04);
  border: 1px dashed rgba(255,255,255,.10);
}
.active-empty i { color: var(--cyb-blue); }

/* === SECTION HEADER === */
.cyb-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0 18px;
}
.cyb-section-left { display: flex; align-items: center; min-width: 0; }
.cyb-section-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(111,210,255,.15), rgba(111,210,255,.04));
  border: 1px solid rgba(111,210,255,.16);
  box-shadow: 0 0 18px rgba(111,210,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 13px;
}
.cyb-section-icon i { color: var(--cyb-blue); font-size: 18px; }
.cyb-section-text h2 { margin: 0; font-size: 1.2rem; font-weight: 1000; letter-spacing: -.025em; }
.cyb-section-text p { margin: 4px 0 0; color: var(--cyb-muted); font-size: .86rem; }
.section-action {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  font-weight: 900;
  transition: .25s ease;
  white-space: nowrap;
}
.section-action:hover { transform: translateY(-2px); background: linear-gradient(135deg, var(--cyb-purple), #3b82f6); }

/* === KAYAN LOGOLAR === */
.logo-marquee-wrap {
  position: relative;
  overflow: hidden;
  margin: 0 0 28px;
  padding: 18px 0;
  border-radius: 24px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.logo-marquee-wrap::before,
.logo-marquee-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.logo-marquee-wrap::before { left: 0; background: linear-gradient(to right, rgba(11,15,23,1), transparent); }
.logo-marquee-wrap::after { right: 0; background: linear-gradient(to left, rgba(11,15,23,1), transparent); }
.cyb-logo-track { display: inline-flex; align-items: center; gap: 52px; min-width: max-content; animation: cybScroll 72s linear infinite; }
.logo-marquee-wrap:hover .cyb-logo-track { animation-play-state: paused; }
.cyb-logo-item {
  width: 170px;
  height: 68px;
  padding: 12px 18px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.06);
  transition: .25s ease;
}
.cyb-logo-item:hover { transform: translateY(-3px) scale(1.03); border-color: rgba(111,210,255,.22); }
.cyb-logo-item img { max-width: 100%; max-height: 100%; object-fit: contain; filter: brightness(.9); transition: .25s ease; }
.cyb-logo-item:hover img { filter: brightness(1.15); }
@keyframes cybScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* === PREMIUM SPONSOR KARTLARI === */
.cyb-cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; margin-bottom: 30px; }
.cyb-card-wrap { display: flex; flex-direction: column; min-width: 0; }
.cyb-card {
  position: relative;
  width: 100%;
  height: 345px;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .32s ease, border-color .32s ease, box-shadow .32s ease;
  background: #141923;
  border: 1px solid rgba(255,255,255,.085);
  box-shadow: 0 18px 42px rgba(0,0,0,.28);
  isolation: isolate;
}
.cyb-card:hover { transform: translateY(-8px); border-color: rgba(111,210,255,.28); box-shadow: 0 24px 54px rgba(0,0,0,.42), 0 0 28px rgba(111,210,255,.10); }
.cyb-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: filter .5s ease, transform .5s ease;
  opacity: .86;
  z-index: -2;
}
.cyb-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(5,8,13,.08), rgba(5,8,13,.68)), radial-gradient(circle at center, transparent 20%, rgba(0,0,0,.25));
}
.cyb-cards .cyb-card-wrap:nth-child(1) .cyb-card::before { background-image: url("https://cyborgtv1.com/images/live-site1.png"); }
.cyb-cards .cyb-card-wrap:nth-child(2) .cyb-card::before { background-image: url("https://cyborgtv1.com/images/live-site2.png"); }
.cyb-cards .cyb-card-wrap:nth-child(3) .cyb-card::before { background-image: url("https://cyborgtv1.com/images/live-site3.png"); }
.cyb-cards .cyb-card-wrap:nth-child(4) .cyb-card::before { background-image: url("https://cyborgtv1.com/images/live-site4.png"); }
.cyb-card img {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  width: min(70%, 245px);
  max-height: 118px;
  object-fit: contain;
  transition: all .5s ease;
  z-index: 2;
  filter: brightness(.92) drop-shadow(0 12px 24px rgba(0,0,0,.38));
}
.cyb-card:hover::before { filter: blur(18px) brightness(1.22); transform: scale(1.08); }
.cyb-card:hover img { top: 50%; transform: translate(-50%,-50%) scale(1.15); filter: brightness(1.18) drop-shadow(0 16px 30px rgba(0,0,0,.44)); }
.card-glass-label {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  min-height: 54px;
  border-radius: 16px;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  background: rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
}
.card-glass-label strong { font-size: .92rem; font-weight: 950; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-glass-label span { color: var(--cyb-green); font-size: .72rem; font-weight: 900; white-space: nowrap; }
.cyb-card-label { display: none; }

/* === REPLAY === */
.index-replay-section { margin: 34px 0 34px; }
.index-replay-shell {
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.085);
  background: radial-gradient(circle at top right, rgba(138,43,226,.13), transparent 36%), rgba(255,255,255,.035);
  box-shadow: 0 16px 38px rgba(0,0,0,.24);
  padding: 18px;
  overflow: hidden;
}
.index-replay-box { border-radius: 22px; overflow: hidden; }
.index-replay-item { border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 12px 28px rgba(0,0,0,.22); }

/* === SEARCH + GRID === */
.cyb-search-wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin: 34px 0 20px; }
.cyb-search { position: relative; flex: 1; max-width: 520px; min-width: 250px; }
.cyb-search input {
  width: 100%;
  height: 50px;
  padding: 0 52px 0 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  color: #fff;
  font-size: .95rem;
  outline: none;
  transition: .25s ease;
}
.cyb-search input:focus { border-color: rgba(111,210,255,.35); box-shadow: 0 0 0 4px rgba(111,210,255,.08); }
.cyb-search i { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--cyb-blue); font-size: 18px; }
.cyb-bottom { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 18px; margin: 0 0 42px; }
.cyb-bottom a {
  position: relative;
  min-height: 112px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(111,210,255,.08), transparent 38%), rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.075);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.cyb-bottom a:hover { transform: translateY(-4px); border-color: rgba(111,210,255,.25); background: rgba(255,255,255,.065); box-shadow: 0 18px 38px rgba(0,0,0,.28), 0 0 18px rgba(111,210,255,.08); }
.cyb-bottom img { width: 76%; max-height: 82px; object-fit: contain; filter: brightness(.9) drop-shadow(0 10px 18px rgba(0,0,0,.18)); transition: transform .3s ease, filter .3s ease; }
.cyb-bottom a:hover img { transform: scale(1.12); filter: brightness(1.12) drop-shadow(0 14px 22px rgba(0,0,0,.25)); }
.empty-filter { display: none; padding: 22px; margin: -14px 0 34px; color: var(--cyb-muted); text-align: center; border-radius: 20px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); }
.empty-filter i { color: var(--cyb-blue); margin-right: 8px; }

/* === SOCIAL === */
.social-section { margin: 40px 0 60px; }
.cyb-social { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.cyb-social a {
  display: flex;
  align-items: center;
  min-height: 86px;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.075);
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,.045);
  box-shadow: 0 12px 30px rgba(0,0,0,.20);
  transition: .25s ease;
}
.cyb-social a:hover { background: rgba(255,255,255,.07); transform: translateY(-4px); border-color: rgba(111,210,255,.18); }
.cyb-social .left { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); }
.cyb-social .left img { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; }
.cyb-social .right { margin-left: 13px; text-align: left; min-width: 0; }
.cyb-social .right h3 { margin: 0 0 3px; font-size: .95rem; color: #fff; font-weight: 950; }
.cyb-social .right p { margin: 0; color: #9aa6b8; font-size: .8rem; line-height: 1.35; }

@media (max-width: 1380px) { .cyb-bottom { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 1250px) {
  .home-showcase { grid-template-columns: 1fr; }
  .active-panel { min-height: auto; }
  .cyb-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cyb-social { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 992px) {
  body { padding-bottom: 100px !important; }
  .main-content { width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 76px 14px 20px !important; transform: none !important; overflow: visible !important; }
  .index-page { max-width: 100%; }
  .hero-slider-card, .active-panel, .logo-marquee-wrap { border-radius: 22px; }
  .hero-slider-card, .hero-slider, .hero-slide img, .slider-empty { min-height: 255px; }
  .cyb-bottom { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .cyb-card { height: 300px; }
}
@media (max-width: 700px) {
  .main-content { padding-left: 12px !important; padding-right: 12px !important; }
  .home-showcase { gap: 16px; }
  .hero-slider-card, .hero-slider, .hero-slide img, .slider-empty { min-height: 210px; }
  .active-panel { padding: 14px; gap: 18px; }
  .active-item { min-height: 58px; }
  .active-info strong { font-size: .8rem; }
  .cyb-section-header, .cyb-search-wrap { align-items: flex-start; flex-direction: column; }
  .section-action, .cyb-search { width: 100%; max-width: 100%; }
  .cyb-cards { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .cyb-card { height: 245px; border-radius: 18px; }
  .cyb-card img { width: 82%; top: 12px; }
  .card-glass-label { left: 9px; right: 9px; bottom: 9px; min-height: 48px; padding: 10px; border-radius: 14px; }
  .card-glass-label strong { font-size: .78rem; }
  .card-glass-label span { display: none; }
  .cyb-bottom { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .cyb-bottom a { min-height: 92px; border-radius: 16px; }
  .cyb-social { grid-template-columns: 1fr; gap: 12px; }
  .cyb-social a { min-height: 76px; }
  .logo-marquee-wrap::before, .logo-marquee-wrap::after { width: 55px; }
  .cyb-logo-track { gap: 24px; animation-duration: 55s; }
  .cyb-logo-item { width: 135px; height: 58px; padding: 10px 14px; }
}
@media (max-width: 430px) {
  .hero-slider-card, .hero-slider, .hero-slide img, .slider-empty { min-height: 190px; }
  .cyb-card { height: 210px; }
}
