/* Base Global Resets */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   DESKTOP APP SHELL & MULTI-COLUMN LAYOUT (Screen > 1024px Only)
   ========================================================================== */
@media (min-width: 1025px) {
  /* App Shell and Multi-Column Layout */
  .app-layout {
    display: flex;
    margin-left: var(--sidebar-width, 290px) !important;
    margin-right: 320px !important;
    width: calc(100% - var(--sidebar-width, 290px) - 320px) !important;
    min-height: calc(100vh - 62px);
    background-color: var(--bg-dark);
    position: relative;
    box-sizing: border-box;
    transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1), margin-right 0.28s cubic-bezier(0.4, 0, 0.2, 1), width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Chat Drawer Open State (Default) */
  html.chat-drawer-open .topbar,
  body.chat-drawer-open .topbar {
    margin-left: var(--sidebar-width, 290px) !important;
    margin-right: 320px !important;
    width: calc(100% - var(--sidebar-width, 290px) - 320px) !important;
  }
  html.chat-drawer-open .app-layout,
  body.chat-drawer-open .app-layout {
    margin-left: var(--sidebar-width, 290px) !important;
    margin-right: 320px !important;
    width: calc(100% - var(--sidebar-width, 290px) - 320px) !important;
  }

  html.sidebar-collapsed.chat-drawer-open .topbar,
  html.sidebar-collapsed.chat-drawer-open .app-layout,
  body.sidebar-collapsed.chat-drawer-open .topbar,
  body.sidebar-collapsed.chat-drawer-open .app-layout {
    margin-left: 64px !important;
    margin-right: 320px !important;
    width: calc(100% - 64px - 320px) !important;
  }

  /* Chat Drawer Closed State */
  html:not(.chat-drawer-open) body:not(.chat-drawer-open) .topbar,
  body:not(.chat-drawer-open) .topbar {
    margin-left: var(--sidebar-width, 290px) !important;
    margin-right: 0 !important;
    width: calc(100% - var(--sidebar-width, 290px)) !important;
  }
  html:not(.chat-drawer-open) body:not(.chat-drawer-open) .app-layout,
  body:not(.chat-drawer-open) .app-layout {
    margin-left: var(--sidebar-width, 290px) !important;
    margin-right: 0 !important;
    width: calc(100% - var(--sidebar-width, 290px)) !important;
  }

  body.sidebar-collapsed:not(.chat-drawer-open) .topbar,
  body.sidebar-collapsed:not(.chat-drawer-open) .app-layout {
    margin-left: 64px !important;
    margin-right: 0 !important;
    width: calc(100% - 64px) !important;
  }

  @media (max-width: 1200px) {
    body.chat-drawer-open .topbar,
    body:not(.chat-drawer-open) .topbar {
      margin-right: 0 !important;
      width: calc(100% - var(--sidebar-width, 290px)) !important;
    }
    body.chat-drawer-open .app-layout,
    body:not(.chat-drawer-open) .app-layout {
      margin-right: 0 !important;
      width: calc(100% - var(--sidebar-width, 290px)) !important;
    }
    body.sidebar-collapsed .topbar,
    body.sidebar-collapsed .app-layout {
      margin-left: 64px !important;
      margin-right: 0 !important;
      width: calc(100% - 64px) !important;
    }
  }
}

/* ==========================================================================
   MOBILE & TABLET APP SHELL (Screen <= 1024px) - GUARANTEED ZERO MARGIN DISPLACEMENT
   ========================================================================== */
@media (max-width: 1024px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .topbar,
  .app-layout,
  .main-wrapper,
  .main-content,
  .container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
}
.utility-topbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1600px;
  padding: 0 36px;
}
.utility-left, .utility-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.utility-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0 16px;
}
.util-domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 183, 3, 0.05);
  border: 1px solid rgba(255, 183, 3, 0.2);
  padding: 3px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.2px;
  user-select: none;
}
.util-domain-badge i {
  font-size: 13px;
  color: #FFB703;
}
.util-domain-badge .domain-curr {
  color: #FFFFFF;
  font-weight: 800;
}
.util-domain-badge .domain-next {
  color: #FFB703;
  font-weight: 800;
}
.util-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  user-select: none;
}
.util-link i {
  font-size: 13px;
  transition: transform 0.2s ease;
}
.util-link:hover {
  color: #FFFFFF;
}
.util-link:hover i {
  transform: translateY(-1px);
}
.util-divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
}
.util-ratv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 183, 3, 0.08);
  border: 1px solid rgba(255, 183, 3, 0.22);
  padding: 2px 8px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  transition: all 0.2s ease;
}
.util-ratv:hover {
  background: rgba(255, 183, 3, 0.16);
  border-color: #FFB703;
  transform: translateY(-1px);
}
.util-ratv i {
  font-size: 13px;
  color: #FFB703;
}
.ratv-title {
  color: #FFFFFF;
  font-weight: 900;
  letter-spacing: 0.5px;
}
.ratv-title span {
  color: #FFB703;
}
.ratv-badge {
  font-size: 8.5px;
  font-weight: 800;
  background: #ef4444;
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}
.ratv-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 5px #ef4444;
  animation: liveDotPulse 1.2s infinite ease-in-out;
}
.util-clock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #94A3B8;
  font-variant-numeric: tabular-nums;
}
.util-clock i {
  font-size: 12px;
  color: #64748b;
}
.util-tz {
  font-size: 9.5px;
  color: #64748b;
  font-weight: 700;
}

/* Sidebar - Full Height from Top:0 Over Header on Left */
.sidebar {
  width: var(--sidebar-width, 290px);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  height: 100vh;
  height: 100dvh;
  background: #080b11;
  border-right: none !important;
  box-shadow: 15px 0 40px rgba(0, 0, 0, 0.9), 4px 0 12px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  z-index: 1005;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-top-header {
  height: 62px;
  min-height: 62px;
  display: flex;
  align-items: center;
  padding: 0 14px 0 16px;
  gap: 14px;
  border-bottom: none !important;
  background: #090c13;
  flex-shrink: 0;
}

.sidebar-hamburger-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.sidebar-hamburger-btn:hover {
  opacity: 0.8;
}
.sidebar-hamburger-btn svg path {
  transition: stroke 0.2s ease;
}
.sidebar-hamburger-btn:hover svg path {
  stroke: #ffffff;
}

.sidebar-section-pill {
  display: inline-flex;
  align-items: center;
  background: #141926;
  border: none;
  border-radius: 12px;
  padding: 7px 14px;
  gap: 14px;
  flex: 1;
  justify-content: space-between;
}
.sb-sec-tab {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.01em;
}
.sb-sec-tab.active {
  color: #5c86bf;
  font-weight: 800;
}
.sb-sec-tab[href*="casino"].active {
  background: #3e265b !important;
  color: #d8b4fe !important;
}
.sb-sec-tab[href*="bets"].active {
  background: #1e3a5f !important;
  color: #60a5fa !important;
}
.sb-sec-tab[href*="tahmin"].active {
  background: rgba(0, 229, 255, 0.22) !important;
  color: #00e5ff !important;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.3) !important;
}
.sb-sec-tab:hover:not(.active) {
  color: #ffffff;
}

.sidebar-search-row {
  padding: 10px 12px 6px;
}
.sidebar-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #131722;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  padding: 7px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sidebar-search-field:hover {
  border-color: rgba(0, 229, 255, 0.3);
  background: #181e2b;
}
.sidebar-search-field input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
}
.sidebar-search-field input::placeholder {
  color: #64748b;
  font-weight: 600;
}

.sidebar-top-header .btn-close-sidebar-mobile {
  display: none;
}

/* Collapsed Mini-Sidebar (Icon-Only Rail View & Smooth Transition) */
body.sidebar-collapsed .sidebar {
  width: 64px !important;
  transform: none !important;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden !important;
}

body.sidebar-collapsed .topbar,
body.sidebar-collapsed .app-layout,
body.sidebar-collapsed .utility-topbar {
  margin-left: 64px !important;
  width: calc(100% - 64px) !important;
  transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1), width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sidebar-collapsed .sidebar-top-header {
  height: 62px !important;
  min-height: 62px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  width: 64px !important;
  min-width: 64px !important;
  flex-shrink: 0 !important;
}

body.sidebar-collapsed .sidebar-hamburger-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  margin: 0 auto !important;
}

body.sidebar-collapsed .sidebar-hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

body.sidebar-collapsed .sidebar-hamburger-btn svg path {
  stroke: #00e5ff !important;
}

body.sidebar-collapsed .sidebar-section-pill {
  display: none !important;
  width: 0 !important;
  max-width: 0 !important;
  flex: none !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.sidebar-collapsed .sidebar-search-row {
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease, padding 0.28s ease !important;
}

body.sidebar-collapsed .sidebar-promo-cards {
  max-height: 0 !important;
  margin-bottom: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease, margin 0.28s ease !important;
}

body.sidebar-collapsed .sidebar-nav-container {
  padding: 8px 10px 20px 10px !important;
  width: 64px !important;
  min-width: 64px !important;
}

body.sidebar-collapsed .sidebar-main-nav,
body.sidebar-collapsed .sidebar-bottom-nav {
  width: 100% !important;
  align-items: center !important;
  gap: 6px !important;
}

body.sidebar-collapsed .nav-item {
  justify-content: center !important;
  padding: 10px 0 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 0 !important;
  margin: 0 auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.sidebar-collapsed .nav-item:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

body.sidebar-collapsed .nav-item i {
  font-size: 20px !important;
  margin: 0 !important;
  color: #7e8b9f !important;
  transition: color 0.3s ease !important;
}

body.sidebar-collapsed .nav-item:hover i {
  color: #ffffff !important;
}

body.sidebar-collapsed .nav-label {
  opacity: 0 !important;
  width: 0 !important;
  display: none !important;
}

body.sidebar-collapsed .sidebar-divider {
  width: 28px !important;
  margin: 12px auto !important;
}

.btn-close-sidebar-mobile {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-sidebar-mobile:hover,
.btn-close-sidebar-mobile:active {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.sidebar-user-slim {
  padding: 20px 16px 12px; display: flex; flex-direction: column; gap: 12px;
  background: rgba(0,0,0,0.2); border-bottom: 1px solid rgba(255,255,255,0.03);
}
.user-row-slim { display: flex; align-items: center; gap: 10px; }

/* Avatar with Level Badge Overlay */
.avatar-level-wrap { position: relative; flex-shrink: 0; }
.avatar-slim { width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); }
.level-badge-mini {
  position: absolute; bottom: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  font-size: 9px; font-weight: 900; color: #fff;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px; border: 2px solid var(--bg-panel);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  line-height: 1;
}

.user-info-slim { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.username-slim { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Rank Name Row */
.level-rank-row { display: flex; align-items: center; gap: 4px; }
.rank-name-slim { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }

/* XP Bar */
.xp-bar-slim { height: 3px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.xp-fill-slim { height: 100%; border-radius: 3px; transition: width 0.5s ease, background 0.3s ease; }
.btn-icon-slim { 
  width: 24px; height: 24px; border-radius: 6px; background: rgba(255,255,255,0.05); 
  color: #8F9BB3; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; transition: var(--transition-fast);
}
.btn-icon-slim:hover { background: rgba(255,255,255,0.1); color: #fff; }

.action-row-slim { display: flex; gap: 6px; }
.btn-action-slim { 
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 0; border-radius: 8px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
  font-size: 11px; font-weight: 700; color: #8F9BB3; cursor: pointer; transition: var(--transition-fast);
}
.btn-action-slim i { font-size: 14px; color: #51627C; transition: var(--transition-fast); }
.btn-action-slim:hover { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.1); }
.btn-action-slim:hover i { color: #fff; }

.sidebar-scroll { flex: 1; overflow-y: auto; padding: 12px 12px; }
.sidebar-scroll::-webkit-scrollbar { width: 4px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.nav-menu-slim { display: flex; flex-direction: column; gap: 12px; }

.nav-block-slim {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
}
.nav-block-slim:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.block-header-slim {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px 6px 14px;
  font-size: 10.5px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}
.block-header-slim:hover {
  color: #FFB703;
}
.block-header-slim:hover i {
  color: #FFB703;
}
.block-header-slim i {
  font-size: 11px;
  color: #64748b;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

/* Collapsed State - Clean Pill Card */
.nav-block-slim.collapsed {
  background: rgba(255, 255, 255, 0.015);
  border-color: rgba(255, 255, 255, 0.04);
}
.nav-block-slim.collapsed:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 183, 3, 0.25);
}
.nav-block-slim.collapsed .block-header-slim {
  padding: 11px 14px;
  margin-bottom: 0;
}
.nav-block-slim.collapsed .block-header-slim i {
  transform: rotate(180deg);
  color: #64748b;
}

.nav-block-slim .nav-list-slim {
  display: flex;
  flex-direction: column;
  padding-bottom: 6px;
  max-height: 800px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.25s ease;
}
.nav-block-slim.collapsed .nav-list-slim {
  max-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
}
.nav-list-slim li a {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  color: #8F9BB3; font-size: 12px; font-weight: 600; 
  transition: var(--transition-fast);
}
.nav-list-slim li a i { font-size: 16px; color: #51627C; transition: var(--transition-fast); }
.nav-list-slim li a:hover { background: rgba(255,255,255,0.03); color: #fff; border-left: 2px solid rgba(255,255,255,0.2); padding-left: 12px;}
.nav-list-slim li a:hover i { color: #fff; }
.sidebar-count-badge {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  background: rgba(255, 255, 255, 0.04);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: auto;
}
.sidebar-live-tag {
  font-size: 9px;
  font-weight: 900;
  color: #fff;
  background: #ef4444;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: auto;
  letter-spacing: 0.5px;
  animation: liveDotPulse 1.5s infinite ease-in-out;
}
.sidebar-hot-badge {
  font-size: 9px;
  font-weight: 800;
  color: #FFB703;
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.25);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: auto;
  letter-spacing: 0.5px;
}

.race-ticket-slim {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: var(--transition-fast);
}
.race-ticket-slim:hover { transform: translateX(2px); border-color: rgba(255,255,255,0.15); }
.weekly-slim { background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(16, 185, 129, 0.1)); border-left: 2px solid #10b981; }
.daily-slim { background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255, 183, 3, 0.1)); border-left: 2px solid #ffb703; }
.race-icon-slim { font-size: 16px; }
.weekly-slim .race-icon-slim { color: #10b981; }
.daily-slim .race-icon-slim { color: #ffb703; }
.race-details-slim { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.r-title-slim { font-size: 11px; font-weight: 800; color: #fff; }
.r-time-slim { font-size: 10px; color: #8F9BB3; }
.arrow-slim { font-size: 12px; color: #51627C; }

/* Main Content */
.main-wrapper { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  height: var(--topbar-height);
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 1000;
  position: relative;
}

.brand-logo-724 {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  font-family: Inter, sans-serif;
  letter-spacing: -0.03em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
}

@media (min-width: 768px) {
  .md\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  margin-right: 12px;
}

/* Quick Tools in Topbar */
.topbar-quick-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-topbar-ratv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 183, 3, 0.08);
  border: 1px solid rgba(255, 183, 3, 0.25);
  color: #FFB703;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  font-family: var(--font-main);
  transition: all 0.2s ease;
}
.btn-topbar-ratv:hover {
  background: rgba(255, 183, 3, 0.18);
  border-color: #FFB703;
  color: #fff;
  transform: translateY(-1px);
}
.btn-topbar-ratv i {
  font-size: 14px;
}
.ratv-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
  animation: liveDotPulse 1.2s infinite ease-in-out;
}
.topbar-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.topbar-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}
.topbar-v-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.08);
}

/* Category Sub-Header Navigation Bar */
.category-header-nav {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  position: relative;
  z-index: 990;
}
.category-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1600px;
  height: 100%;
  padding: 0 36px;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-nav-container::-webkit-scrollbar {
  display: none;
}
.cat-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  height: 100%;
  text-decoration: none;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
  transition: all 0.2s ease;
}
.cat-nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: #FFB703;
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transform: scaleX(0);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease;
}
.cat-nav-item:hover::after,
.cat-nav-item.active::after {
  opacity: 1;
  transform: scaleX(1);
}
.cat-nav-icon {
  font-size: 16px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
}
.cat-nav-item:hover .cat-nav-icon {
  color: #FFB703;
  transform: translateY(-1px);
}
.cat-nav-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-family: var(--font-main);
  transition: color 0.2s ease;
}
.cat-nav-item:hover .cat-nav-label {
  color: #FFFFFF;
}
.promo-link {
  color: #FFB703 !important;
  font-weight: 800 !important;
}
.cat-nav-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  margin-right: -4px;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
  animation: liveDotPulse 1.2s infinite ease-in-out;
}

@media (max-width: 1024px) {
  .category-nav-container {
    justify-content: flex-start;
    padding: 0 16px;
  }
}

.last-drops-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 14px;
  border-radius: 8px;
  margin-right: 14px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.last-drops-tag .tag-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  white-space: nowrap;
}
.last-drops-tag .live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: liveDotPulse 1.8s infinite ease-in-out;
}

@keyframes liveDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.85); }
}

.live-drops-container {
  flex: 1; overflow: hidden; margin-right: 24px; position: relative;
}
.topbar-actions {
  display: flex; align-items: center; gap: 10px;
}

/* Fortune Wheel (Çark) Button */
.topbar-wheel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-shrink: 0;
  padding: 0;
}
.topbar-wheel-wrap:hover {
  transform: scale(1.1) rotate(10deg);
  filter: drop-shadow(0 0 14px rgba(255, 183, 3, 0.8));
}
.topbar-wheel-wrap:active {
  transform: scale(0.94);
}
.topbar-wheel-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
  animation: wheelSpinPulse 6s ease-in-out infinite;
}
@keyframes wheelSpinPulse {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.05); }
}
.wallet-pill {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-dark); border: 1px solid var(--border-color);
  padding: 6px 6px 6px 16px; border-radius: 12px;
  padding: 6px 6px 6px 16px; border-radius: 8px;
}
.wallet-balance, .wallet-balance span {
  display: flex; align-items: center; gap: 8px; font-family: var(--font-main) !important; font-weight: 700 !important; font-size: 14px; letter-spacing: 0.3px;
}
.btn-deposit-sm {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  box-shadow: none !important;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.btn-deposit-sm:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #000;
  box-shadow: none !important;
}

.topbar-icons .icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-dark); border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 20px; transition: var(--transition-fast); position: relative;
}
.topbar-icons .icon-btn:hover { color: #fff; border-color: var(--border-light); }

.user-profile {
  position: relative;
}
.user-profile .avatar {
  width: 44px; height: 44px; position: relative; cursor: pointer;
}
.user-profile .avatar img {
  width: 100%; height: 100%; border-radius: 12px; object-fit: cover;
}
.level-badge {
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  background: var(--accent-purple); color: #fff; font-size: 10px; font-weight: 800;
  padding: 2px 6px; border-radius: 6px; border: 2px solid var(--bg-panel); z-index: 2;
}

.main-content {
  flex: 1;
  padding: 24px 0;
  min-width: 0;
}
.container {
  max-width: 1140px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 12px !important;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-sizing: border-box;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Chat Sidebar Removed */
.chat-sidebar {
  display: none !important;
}

/* Level-Up Side Notification */
.level-up-notif {
  position: fixed; bottom: 24px; right: 24px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  z-index: 10000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transform: translateX(120%);
  animation: notifSlideIn 0.35s ease forwards, notifSlideOut 0.35s ease forwards 3.5s;
  max-width: 280px;
}
.level-up-notif .notif-stripe {
  width: 3px; height: 36px; border-radius: 3px; flex-shrink: 0;
}
.level-up-notif .notif-body { display: flex; flex-direction: column; gap: 1px; }
.level-up-notif .notif-title {
  font-size: 11px; font-weight: 800; color: #fff;
}
.level-up-notif .notif-sub {
  font-size: 10px; font-weight: 600; color: #64748b;
}

@keyframes notifSlideIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes notifSlideOut {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(120%); opacity: 0; }
}

/* ==========================================================================
   MOBILE RESPONSIVENESS - LAYOUT
   ========================================================================== */

/* Sidebar overlay backdrop */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
}
.sidebar-overlay.active {
  display: block;
}

.btn-close-sidebar-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}
.btn-close-sidebar-mobile:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

@media (max-width: 1024px) {
  /* Complete layout resets for mobile: NEVER shift page with sidebar or chat margins */
  html .topbar,
  body .topbar,
  html.chat-drawer-open .topbar,
  body.chat-drawer-open .topbar,
  html:not(.chat-drawer-open) body:not(.chat-drawer-open) .topbar,
  body:not(.chat-drawer-open) .topbar,
  body.sidebar-collapsed .topbar,
  body.sidebar-collapsed.chat-drawer-open .topbar {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  html .app-layout,
  body .app-layout,
  html.chat-drawer-open .app-layout,
  body.chat-drawer-open .app-layout,
  html:not(.chat-drawer-open) body:not(.chat-drawer-open) .app-layout,
  body:not(.chat-drawer-open) .app-layout,
  body.sidebar-collapsed .app-layout,
  body.sidebar-collapsed.chat-drawer-open .app-layout {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .main-wrapper {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Sidebar: Modern Mobile Drawer with dedicated smooth scrolling */
  .sidebar {
    position: fixed !important;
    left: -320px !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    width: 290px !important;
    max-width: 86vw !important;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 100002 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background: #0d111c !important;
    border-right: 1px solid rgba(255, 183, 3, 0.25) !important;
    box-shadow: none !important;
  }
  
  .sidebar.mobile-open {
    left: 0 !important;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.85) !important;
  }

  .btn-close-sidebar-mobile {
    display: flex !important;
  }
  .sidebar-hamburger-btn {
    display: none !important;
  }

  .sidebar-mobile-header {
    display: flex !important;
  }

  .sidebar-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    padding: 14px 14px 140px !important; /* Generous bottom padding to ensure every single bottom link is accessible */
  }

  /* Show hamburger */
  .mobile-menu-btn {
    display: flex !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px !important;
    gap: 24px;
    box-sizing: border-box !important;
  }
  
  .main-content {
    padding: 24px 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 768px) {
  /* Utility topbar (En üst bar) */
  .utility-topbar {
    height: 30px;
    padding: 0;
  }
  .utility-topbar-container {
    padding: 0 12px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .utility-left {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .utility-left .util-divider {
    display: none;
  }
  .utility-center {
    display: none;
  }
  .utility-right {
    display: none;
  }
  .util-ratv .ratv-badge {
    display: inline-block;
  }
  
  /* Main topbar */
  .topbar {
    height: 60px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
  }
  
  .topbar-live-drops-desktop {
    display: none !important;
  }
  
  /* Dedicated Mobile Live Drops Bar (Alt Ticker Barı) */
  .mobile-live-drops-bar {
    display: flex !important;
    align-items: center;
    height: 44px;
    background: #090c15;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0 10px;
    width: 100%;
    position: relative;
    z-index: 4;
    overflow: hidden;
  }
  .mobile-live-drops-bar .last-drops-tag {
    display: flex !important;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0 10px;
    border-radius: 8px;
    margin-right: 8px;
    flex-shrink: 0;
    height: 30px;
  }
  .mobile-live-drops-bar .last-drops-tag .tag-title {
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px !important;
    color: #fff;
    white-space: nowrap;
  }
  .mobile-live-drops-bar .last-drops-tag .live-pulse-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
  }
  
  .mobile-live-drops-bar .live-drops-container {
    display: flex !important;
    flex: 1;
    height: 34px;
    overflow: hidden;
    position: relative;
    margin-right: 0;
  }
  .mobile-live-drops-bar .live-drops-container::before,
  .mobile-live-drops-bar .live-drops-container::after {
    width: 20px !important;
  }
  .mobile-live-drops-bar .drops-group {
    gap: 8px !important;
    padding-right: 8px !important;
  }
  .mobile-live-drops-bar .drop-item {
    padding: 3px 10px 3px 4px !important;
    gap: 8px !important;
    border-radius: 8px !important;
    height: 32px !important;
    min-width: max-content;
    display: flex !important;
    align-items: center !important;
  }
  .mobile-live-drops-bar .drop-img {
    width: 24px !important;
    height: 24px !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
  }
  .mobile-live-drops-bar .drop-info {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 1px !important;
  }
  .mobile-live-drops-bar .drop-name {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    color: #e2e8f0 !important;
    line-height: 1.1 !important;
    max-width: 65px !important;
  }
  .mobile-live-drops-bar .drop-price {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #4ade80 !important;
    line-height: 1.1 !important;
    margin-top: 0 !important;
  }
  .mobile-live-drops-bar .drop-time {
    display: none !important;
  }
  .mobile-live-drops-bar .replay-overlay-hover {
    flex-direction: row !important;
    gap: 4px !important;
    padding: 0 4px !important;
  }
  .mobile-live-drops-bar .replay-overlay-hover i {
    font-size: 13px !important;
  }
  .mobile-live-drops-bar .replay-overlay-hover span {
    font-size: 8.5px !important;
    letter-spacing: 0.3px !important;
  }
  
  /* Topbar actions (wallet, profile, auth) */
  .topbar-actions {
    gap: 8px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
  }
  .topbar-actions .user-profile {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .topbar-wheel-wrap {
    padding: 0 !important;
    margin: 0 !important;
  }
  .topbar-wheel-img {
    width: 32px !important;
    height: 32px !important;
  }
  #btn-login-header {
    height: 34px !important;
    padding: 0 11px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
  }
  #btn-register-header {
    height: 34px !important;
    padding: 0 13px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
  }
  .wallet-pill {
    padding: 5px 10px !important;
    border-radius: 10px !important;
    gap: 6px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 183, 3, 0.35) !important;
    cursor: pointer !important;
  }
  .wallet-balance,
  .wallet-balance span {
    font-size: 12.5px !important;
    font-weight: 800 !important;
    color: #fff !important;
  }
  .btn-deposit-sm,
  .desktop-only-btn,
  #btn-topbar-deposit,
  #btn-topbar-withdraw,
  .topbar-actions #btn-topbar-withdraw {
    display: none !important;
  }
  .try-circle-badge {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    font-size: 11px !important;
    margin-right: 2px !important;
  }
  
  /* User profile area on mobile */
  .user-profile-dropdown .user-profile-info,
  .user-profile-dropdown .user-profile > div:first-child,
  .user-profile-dropdown .user-profile i.ph-caret-down {
    display: none !important;
  }
  .user-profile {
    gap: 0 !important;
    padding: 0 !important;
  }
  .user-avatar-wrap img,
  .user-profile img,
  .user-profile a img {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    border: 2px solid rgba(255, 183, 3, 0.45) !important;
    object-fit: cover !important;
  }
  
  /* Login/register buttons */
  .user-profile .btn {
    padding: 6px 12px !important;
    font-size: 11px !important;
  }
  .user-profile .btn i {
    margin-right: 3px !important;
    font-size: 14px !important;
  }
  
  /* Category sub-header nav */
  .category-header-nav {
    height: 40px;
  }
  .category-nav-container {
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 12px;
    justify-content: flex-start;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .category-nav-container::-webkit-scrollbar {
    display: none;
  }
  .cat-nav-item {
    padding: 0 8px;
    gap: 5px;
  }
  .cat-nav-label {
    font-size: 10px;
    letter-spacing: 0.2px;
  }
  .cat-nav-icon {
    font-size: 14px;
  }
  
  /* App layout height */
  .app-layout {
    height: auto !important;
    min-height: calc(100vh - 130px);
    overflow: visible !important;
    flex-direction: column;
  }
  .main-wrapper {
    overflow: visible !important;
  }
  .main-content {
    overflow: visible !important;
  }
}

@media (max-width: 480px) {
  .topbar {
    height: 56px !important;
    padding: 0 !important;
  }
  .topbar-logo-wrap,
  .topbar > div:first-child {
    padding-right: 0 !important;
    margin-right: 4px !important;
    border-right: none !important;
  }
  .topbar-logo-img,
  .topbar > div:first-child img {
    height: 36px !important;
    max-width: 120px !important;
  }
  .mobile-menu-btn {
    margin-right: 6px !important;
    font-size: 20px !important;
  }
  .topbar-actions {
    gap: 6px !important;
  }
  .wallet-pill {
    padding: 4px 8px !important;
    gap: 4px !important;
  }
  .wallet-balance,
  .wallet-balance span {
    font-size: 11.5px !important;
  }
  .try-circle-badge {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    font-size: 10px !important;
  }
  .container {
    padding: 0 10px;
    gap: 20px;
  }
}

/* === NEW SIDEBAR STYLES (MATCHING SCREENSHOT) === */

/* Top Navigation Nav Container */
.sidebar-nav-container {
    padding: 0 16px 20px 16px;
    display: flex;
    flex-direction: column;
}

/* Promotional Cards */
/* ==========================================================================
   EXACT 724BETS SIDEBAR SYSTEM (Pixel-Perfect with Target Screenshot)
   ========================================================================== */

/* Top Header */
.sidebar-top-header {
    height: 62px !important;
    min-height: 62px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 16px 0 14px !important;
    gap: 12px !important;
    border-bottom: none !important;
    border: none !important;
    background: #080b11 !important;
    flex-shrink: 0 !important;
}

.sidebar-hamburger-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    margin: 0;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.sidebar-hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-section-pill {
    display: flex !important;
    align-items: center !important;
    background: #141824 !important;
    border: none !important;
    border-radius: 9px !important;
    padding: 5px 2px !important;
    gap: 2px !important;
    max-width: 195px !important;
    margin-right: 4px !important;
    flex: 1 !important;
}

.sb-sec-tab {
    flex: 1 !important;
    text-align: center !important;
    padding: 7px 4px !important;
    border-radius: 7px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #7e8b9f !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
    font-family: inherit !important;
}

.sb-sec-tab.active {
    background: #3e265b !important;
    color: #d8b4fe !important;
    font-weight: 800 !important;
}

.sb-sec-tab[href*="casino"].active {
    background: #3e265b !important;
    color: #d8b4fe !important;
}

.sb-sec-tab[href*="bets"].active {
    background: #1e3a5f !important;
    color: #60a5fa !important;
}

.sb-sec-tab[href*="tahmin"].active {
    background: rgba(0, 229, 255, 0.22) !important;
    color: #00e5ff !important;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.3) !important;
}

.sb-sec-tab:hover:not(.active) {
    color: #ffffff !important;
}

/* Search Box */
.sidebar-search-row {
    padding: 12px 14px 8px !important;
}
.sidebar-search-field {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #141824 !important;
    border: none !important;
    border-radius: 9px !important;
    padding: 8px 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}
.sidebar-search-field:hover {
    background: #191f2e !important;
}
.sidebar-search-field svg {
    color: #7e8b9f !important;
    flex-shrink: 0 !important;
}
.sidebar-search-field input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    width: 100% !important;
    cursor: pointer !important;
}
.sidebar-search-field input::placeholder {
    color: #64748b !important;
    font-weight: 600 !important;
}

/* Nav Container */
.sidebar-nav-container {
    padding: 4px 14px 20px 14px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Promotional Cards */
/* Promotional Cards (724bets 1:1 Screenshot Match) */
.sidebar-promo-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 18px !important;
    width: 100% !important;
}

.promo-card {
    border-radius: 12px !important;
    padding: 12px 16px !important;
    min-height: 56px !important;
    text-decoration: none !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    transition: transform 0.2s ease, filter 0.2s ease !important;
    box-sizing: border-box !important;
    width: 100% !important;
}
.promo-card:hover {
    transform: translateY(-2px) !important;
    filter: brightness(1.12) !important;
}

.promo-card-purple {
    background: linear-gradient(90deg, #4d1c7c 0%, #300f50 100%) !important;
    box-shadow: 0 4px 16px rgba(77, 28, 124, 0.35) !important;
    border: 1px solid rgba(168, 85, 247, 0.2) !important;
}
.promo-card-green {
    background: linear-gradient(90deg, #0e5a32 0%, #083c20 100%) !important;
    box-shadow: 0 4px 16px rgba(14, 90, 50, 0.35) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}
.promo-card-blue {
    background: linear-gradient(90deg, #134e84 0%, #0b3257 100%) !important;
    box-shadow: 0 4px 16px rgba(19, 78, 132, 0.35) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
}

.promo-content {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    z-index: 2 !important;
}

.promo-card i:not(.promo-bg-icon) {
    font-size: 20px !important;
    color: #ffffff !important;
}

.promo-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.promo-title {
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
}

.promo-sub {
    color: #00e676 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.6px !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
}

.promo-box-img {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 46px !important;
    height: 46px !important;
    object-fit: contain !important;
    pointer-events: none !important;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)) !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    z-index: 1 !important;
}
.promo-card:hover .promo-box-img {
    transform: translateY(-50%) scale(1.1) rotate(3deg) !important;
}

/* Collapsed Mini-Sidebar Rail View for Promo Cards */
body.sidebar-collapsed .sidebar-promo-cards {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
    width: 100% !important;
    padding: 0 !important;
}
body.sidebar-collapsed .promo-card {
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 auto !important;
}
body.sidebar-collapsed .promo-content {
    display: none !important;
}
body.sidebar-collapsed .promo-box-img {
    position: static !important;
    transform: none !important;
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    object-fit: contain !important;
    display: block !important;
    margin: auto !important;
}
body.sidebar-collapsed .promo-card:hover .promo-box-img {
    transform: scale(1.15) !important;
}

/* Main & Bottom Nav Items (724bets 1:1 Screenshot Match) */
.sidebar-main-nav, .sidebar-bottom-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.nav-item {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 12px 18px !important;
    min-height: 48px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    color: #7e8b9f !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    position: relative !important;
    transition: background-color 0.18s ease, color 0.18s ease !important;
    user-select: none !important;
}

.nav-item i {
    font-size: 21px !important;
    color: #7e8b9f !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.18s ease !important;
    flex-shrink: 0 !important;
    width: 24px !important;
}

.nav-label {
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: inherit !important;
    letter-spacing: -0.01em !important;
    transition: color 0.18s ease !important;
    white-space: nowrap !important;
}

/* Hover State (1:1 with Screenshot "Canlı Casino" hover) */
.nav-item:hover:not(.active) {
    background: #181f2c !important;
    color: #ffffff !important;
    transform: none !important;
}

.nav-item:hover:not(.active) i {
    color: #ffffff !important;
}

.nav-item:hover:not(.active) .nav-label {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.nav-item:hover:not(.active)::before {
    content: '' !important;
    position: absolute !important;
    left: 6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 3.5px !important;
    height: 18px !important;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, 0.4) !important;
}

/* Active State (1:1 with Screenshot "Anasayfa" active) */
.nav-item.active {
    background: transparent !important;
    color: #00e5ff !important;
}

.nav-item.active i {
    color: #00e5ff !important;
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.4)) !important;
}

.nav-item.active .nav-label {
    color: #00e5ff !important;
    font-weight: 700 !important;
}

.nav-item.active::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 4px !important;
    height: 24px !important;
    border-radius: 3px !important;
    background: #00e5ff !important;
    box-shadow: 0 0 10px #00e5ff, 0 0 16px rgba(0, 229, 255, 0.6) !important;
}

/* Sidebar Divider (1:1 Screenshot Match) */
.sidebar-divider {
    display: block !important;
    height: 1px !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    margin: 14px 0 10px 0 !important;
}

