/* App Shell and Layout Fixes */
.app-layout {
  display: flex;
  width: 100vw;
  height: calc(100vh - 170px) !important;
  overflow: hidden;
  background-color: var(--bg-dark);
}

/* Dedicated Upper Topbar (En Üst Bar) */
.utility-topbar {
  height: 32px;
  background: #090c15;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  z-index: 1001;
  font-family: var(--font-main);
}
.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 */
/* Block-in-Block Sidebar Styling */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-panel);

  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.sidebar-mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.sb-mob-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sb-mob-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.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: 16px; }
.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 8px 12px;
  border-left: 2px solid transparent;
  color: #8F9BB3; font-size: 12px; font-weight: 600; 
  transition: var(--transition-fast);
  white-space: nowrap;
}
.nav-list-slim li a i { font-size: 16px; color: #51627C; transition: var(--transition-fast); flex-shrink: 0; }
.nav-list-slim li a:hover { background: rgba(255,255,255,0.03); color: #fff; border-left-color: rgba(255,255,255,0.2); }
.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;
}

.topbar-logo-wrap {
  display: flex;
  align-items: center;
  padding-right: 24px;
  margin-right: 24px;
  border-right: 2px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}
.topbar-logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
}
.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: 8px;
  background: var(--bg-dark); border: 1px solid var(--border-color);
  padding: 6px 14px; border-radius: 10px;
}
.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; overflow-y: auto; padding: 40px 0;
}
.main-content::-webkit-scrollbar { width: 6px; }
.container {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 0 36px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* 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.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10001;
}
.sidebar-overlay.active {
  display: block;
}

@media (max-width: 1024px) {
  /* 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: 10002 !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;
  }

  .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 {
    padding: 0 16px;
    gap: 24px;
  }
  
  .main-content {
    padding: 24px 0;
  }
}

@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: 62px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  .topbar > div:first-child {
    padding-right: 0 !important;
    margin-right: 0 !important;
    border-right: none !important;
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
  .topbar > div:first-child img {
    height: 44px !important;
  }
  
  .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: 54px !important;
    padding: 0 10px !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;
  }
}
