@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Rajdhani:wght@500;600;700;800&display=swap');

/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
  --bg-primary: #080914;
  --bg-secondary: #0d0f22;
  --bg-card: rgba(20, 22, 48, 0.6);
  --bg-card-hover: rgba(26, 29, 64, 0.8);
  --border-color: rgba(255, 255, 255, 0.05);
  
  /* Brand Colors */
  --accent-gold: #ffb703;
  --accent-gold-glow: rgba(255, 183, 3, 0.35);
  --accent-cyan: #02efc5;
  --accent-cyan-glow: rgba(2, 239, 197, 0.35);
  --accent-green: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.35);
  --accent-pink: #d946ef;
  --accent-pink-glow: rgba(217, 70, 239, 0.35);
  --accent-orange: #f97316;
  --accent-orange-glow: rgba(249, 115, 22, 0.35);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --sidebar-width: 250px;
  
  --font-title: 'Rajdhani', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

/* --- BASE STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-body);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) var(--bg-primary);
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
}

/* Custom Scrollbar for Chrome/Safari/Edge */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- LAYOUT STRUCTURE --- */
.container {
  display: flex;
  width: 100%;
}

/* --- SIDEBAR --- */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding: 0 8px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-cyan), #1e40af);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: #000;
  box-shadow: 0 0 15px rgba(2, 239, 197, 0.35);
}

.logo-text {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(2, 239, 197, 0.2);
}

.logo-text span {
  color: #fff;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin: 16px 8px 8px 8px;
}

.menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  color: var(--text-muted);
}

.menu-item a:hover, 
.menu-item.active a {
  background-color: rgba(255, 255, 255, 0.03);
  color: #fff;
  border-left: 3px solid var(--accent-gold);
}

.menu-item a i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.telegram-widget {
  margin-top: auto;
  background: linear-gradient(135deg, rgba(34, 158, 217, 0.15) 0%, rgba(34, 158, 217, 0.02) 100%);
  border: 1px solid rgba(34, 158, 217, 0.3);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.telegram-widget h4 {
  font-size: 14px;
  font-weight: 700;
  color: #229ed9;
  margin-bottom: 6px;
}

.telegram-widget p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.telegram-btn {
  display: inline-block;
  background: #229ed9;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 6px;
  width: 100%;
  transition: all 0.2s;
}

.telegram-btn:hover {
  background: #1d82b3;
  box-shadow: 0 0 15px rgba(34, 158, 217, 0.4);
  transform: translateY(-2px);
}

/* --- MAIN CONTENT AREA --- */
.main-layout {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 40px;
}

/* --- TOP HEADER --- */
.top-header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.header-stats {
  display: flex;
  gap: 24px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.stat-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse 2s infinite;
}

.stat-label {
  color: var(--text-muted);
}

.stat-value {
  font-weight: 700;
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  transition: all 0.2s;
}

.social-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.social-btn.tg:hover { background-color: #229ed9; border-color: #229ed9; }
.social-btn.tw:hover { background-color: #1da1f2; border-color: #1da1f2; }
.social-btn.yt:hover { background-color: #ff0000; border-color: #ff0000; }

.search-box {
  position: relative;
  width: 260px;
}

.search-input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 16px 8px 36px;
  color: #fff;
  font-size: 14px;
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 10px rgba(255, 183, 3, 0.1);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

/* --- HERO SECTION --- */
.hero-section {
  padding: 40px 40px 20px 40px;
  background: radial-gradient(circle at 80% 20%, rgba(255, 183, 3, 0.04) 0%, rgba(0, 0, 0, 0) 60%);
}

.hero-banner {
  background: linear-gradient(135deg, rgba(20, 22, 48, 0.9) 0%, rgba(10, 11, 25, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 183, 3, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-text h1 {
  font-family: var(--font-title);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero-text h1 span {
  background: linear-gradient(to right, var(--accent-gold), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 600px;
}

.hero-stats-panel {
  display: flex;
  gap: 20px;
}

.hero-stat {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 24px;
  text-align: center;
}

.hero-stat .val {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-gold);
}

.hero-stat .lbl {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- FILTER BAR --- */
.filter-bar {
  padding: 0 40px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.filter-btn.active {
  background-color: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(255, 183, 3, 0.3);
}

/* --- SECTION STRUCTURES --- */
.section-wrapper {
  padding: 0 40px;
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 10px;
}

.section-icon {
  font-size: 18px;
}

.section-header h2 {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.exclusive-header { color: var(--accent-gold); }
.global-header { color: var(--accent-cyan); }
.choice-header { color: var(--accent-orange); }

/* --- SPONSORS GRID SYSTEM --- */
.sponsors-grid {
  display: grid;
  gap: 20px;
}

/* Specific grids sizes based on page category */
.grid-exclusive {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.grid-global {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.grid-choice {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* --- CARD DESIGN --- */
.sponsor-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Popular / Featured Glow Effect */
.sponsor-card.popular {
  border-color: rgba(255, 183, 3, 0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.sponsor-card.popular::before {
  content: 'POPÜLER';
  position: absolute;
  top: 15px;
  right: -30px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 30px;
  transform: rotate(45deg);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 10;
  letter-spacing: 0.5px;
}

.sponsor-card:hover {
  transform: translateY(-5px);
  background-color: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Site Logo Container inside Card */
.card-logo-container {
  height: 90px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.logo-reflection {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 50%);
  pointer-events: none;
}

.card-logo-text {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Brand styling colors inside Logo text */
.card-logo-text span.gold { color: var(--accent-gold); }
.card-logo-text span.white { color: #fff; }
.card-logo-text span.yellow { color: #facc15; }
.card-logo-text span.green { color: #10b981; }
.card-logo-text span.blue { color: #3b82f6; }
.card-logo-text span.orange { color: #f97316; }
.card-logo-text span.pink { color: #ec4899; }
.card-logo-text span.red { color: #ef4444; }

/* Sponsor Info & Details */
.card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-name {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.card-bonus-desc {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 12px;
  min-height: 42px; /* aligns text elements on the same row */
}

/* Rating stars */
.card-rating {
  display: flex;
  gap: 4px;
  color: var(--accent-gold);
  font-size: 12px;
  margin-bottom: 12px;
}

/* Badges / Tags */
.card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.badge {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Call to Action Button */
.cta-button {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-orange) 100%);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(255, 183, 3, 0.15);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-gold-glow);
  filter: brightness(1.1);
}

.cta-button i {
  transition: transform 0.2s;
}

.cta-button:hover i {
  transform: translateX(3px);
}

/* Adjustments for global and choice buttons to have distinct colors optionally */
.sponsor-card.global-card .cta-button {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #3b82f6 100%);
  box-shadow: 0 4px 12px rgba(2, 239, 197, 0.15);
}
.sponsor-card.global-card .cta-button:hover {
  box-shadow: 0 6px 20px var(--accent-cyan-glow);
}

.sponsor-card.choice-card .cta-button {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #fff;
  border: 1px solid var(--border-color);
  box-shadow: none;
}
.sponsor-card.choice-card .cta-button:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 6px 20px rgba(255,255,255,0.1);
}

/* --- ADVERTISING BANNER ROW (IF APPLICABLE) --- */
.ads-layout {
  display: flex;
  gap: 24px;
  padding: 0 40px;
  margin-bottom: 40px;
}

.main-column {
  flex: 1;
}

.banner-column {
  width: 250px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ad-banner {
  background: linear-gradient(135deg, #13152a 0%, #0e1022 100%);
  border: 1px solid rgba(255, 183, 3, 0.2);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.ad-banner-glow {
  position: absolute;
  top: -50px;
  left: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 183, 3, 0.1) 0%, transparent 70%);
  filter: blur(20px);
}

.ad-badge {
  background-color: var(--accent-gold);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.ad-banner h3 {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}

.ad-banner p.prize {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(255,183,3,0.3);
}

.ad-banner p.desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.4;
}

.ad-btn {
  display: block;
  background: linear-gradient(to right, var(--accent-gold), var(--accent-orange));
  color: #000;
  font-weight: 700;
  font-size: 13px;
  padding: 10px;
  border-radius: 6px;
  transition: all 0.2s;
}

.ad-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px rgba(255,183,3,0.3);
  transform: translateY(-2px);
}

/* --- FOOTER --- */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  padding: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-cyan);
}

.footer-logo span {
  color: #fff;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-middle {
  border-top: 1px solid rgba(255,255,255,0.03);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-disclaimer {
  max-width: 60%;
}

.footer-disclaimer p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 16px;
}

.eighteen-plus {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #ef4444;
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

.footer-copyright {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  margin-top: 32px;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(13, 15, 34, 0.95);
  border: 1px solid var(--border-color);
  padding: 16px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
}

.cookie-text {
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
}

.cookie-text a {
  color: var(--accent-gold);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
}

.cookie-settings {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.cookie-settings:hover {
  background: rgba(255,255,255,0.05);
}

.cookie-accept {
  background: var(--accent-orange);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.cookie-accept:hover {
  background: #ea580c;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
}

/* --- ANIMATIONS --- */
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* --- HAMBURGER MENU & OVERLAY BASE --- */
.menu-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
  align-items: center;
  justify-content: center;
}

.menu-toggle-btn:hover {
  color: var(--accent-cyan);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 998;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
  .sidebar {
    width: 80px;
    padding: 24px 8px;
  }
  
  .logo-text, .menu-title, .telegram-widget, .menu-item span {
    display: none;
  }
  
  .logo-container {
    justify-content: center;
    margin-bottom: 24px;
  }
  
  .main-layout {
    margin-left: 80px;
  }
  
  .top-header {
    padding: 0 20px;
  }
  
  .hero-section {
    padding: 20px 20px 10px 20px;
  }
  
  .filter-bar, .section-wrapper, .ads-layout, footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .ads-layout {
    flex-direction: column;
  }
  
  .banner-column {
    width: 100%;
    flex-direction: row;
  }
  
  .ad-banner {
    flex: 1;
  }
}

@media (max-width: 768px) {
  /* Show menu toggle on mobile */
  .menu-toggle-btn {
    display: flex;
  }

  /* Transform Sidebar to a sliding drawer */
  .sidebar {
    position: fixed !important;
    top: 0;
    left: -260px; /* Hide off screen */
    width: 260px;
    height: 100vh;
    background-color: var(--bg-secondary);
    z-index: 999;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 25px rgba(0,0,0,0.5);
    display: flex !important;
  }

  .sidebar.active {
    left: 0; /* Slide in */
  }

  .logo-text, .menu-title, .telegram-widget, .menu-item span {
    display: block !important;
  }

  .logo-container {
    display: flex !important;
    justify-content: flex-start !important;
    margin-bottom: 32px;
  }

  .main-layout {
    margin-left: 0 !important; /* Take full width */
  }
  
  /* Mobile Header */
  .top-header {
    flex-direction: row !important;
    height: 60px;
    padding: 0 12px;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  
  .header-stats {
    display: none !important; /* Hide bulky stats on mobile for space */
  }
  
  .header-actions {
    flex: 1;
    justify-content: flex-end;
    gap: 8px;
    width: auto;
  }
  
  .top-header .social-links {
    display: none !important; /* Mobil üst kısımda sosyal medya butonlarını gizle (menüde var) */
  }
  
  .search-box {
    width: 140px;
    transition: width 0.3s ease;
  }

  .search-box:focus-within {
    width: 180px;
  }

  .search-input {
    padding: 6px 10px 6px 26px;
    font-size: 12px;
  }

  .search-icon {
    left: 8px;
    font-size: 12px;
  }
  
  /* Hero Banner scaling */
  .hero-section {
    padding: 16px 16px 8px 16px;
  }

  .hero-banner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
  }
  
  .hero-text h1 {
    font-size: 26px;
  }

  .hero-text p {
    font-size: 13px;
  }

  .hero-stats-panel {
    width: 100%;
    gap: 10px;
  }

  .hero-stat {
    flex: 1;
    padding: 10px;
  }

  .hero-stat .val {
    font-size: 18px;
  }
  
  /* Horizontal pill scrollable filters */
  .filter-bar {
    padding: 0 16px;
    margin-bottom: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    padding: 6px 16px;
    font-size: 12px;
    flex-shrink: 0;
  }

  /* Main Grids and Cards */
  .ads-layout {
    padding: 0 16px;
    gap: 16px;
  }

  .section-wrapper {
    padding: 0;
    margin-bottom: 24px;
  }

  .section-header h2 {
    font-size: 18px;
  }

  .sponsors-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .sponsor-card {
    padding: 8px !important;
  }

  .sponsor-card.popular::before {
    font-size: 7px !important;
    padding: 2px 14px !important;
    top: 6px !important;
    right: -18px !important;
  }

  .card-logo-container {
    height: 55px !important;
    margin-bottom: 8px !important;
  }

  .card-logo-text {
    font-size: 15px !important;
  }

  .card-name {
    font-size: 10px !important;
    margin-bottom: 4px !important;
  }

  .card-bonus-desc {
    font-size: 11px !important;
    min-height: 38px !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
  }

  .card-rating {
    font-size: 9px !important;
    gap: 2px !important;
    margin-bottom: 8px !important;
  }

  .card-badges {
    display: none !important; /* Mobil görünümde kartların sade kalması için etiketleri gizle */
  }

  .cta-button {
    padding: 8px !important;
    font-size: 11px !important;
    gap: 4px !important;
  }

  .cta-button i {
    font-size: 10px !important;
  }
  
  /* Sidebar Ad Column on mobile */
  .banner-column {
    flex-direction: column !important;
    gap: 16px;
  }

  .ad-banner {
    padding: 20px 16px;
  }

  .ad-banner p.prize {
    font-size: 24px;
  }

  /* Footer mobile styling */
  footer {
    padding: 30px 16px;
  }

  .footer-top {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .footer-middle {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-disclaimer {
    max-width: 100%;
    text-align: center;
  }
  
  .footer-badges {
    justify-content: center;
  }
  
  /* Cookie banner mobile adjustments */
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 12px 16px;
    width: 95%;
  }
  
  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
}



/* --- RIGHT SIDEBAR AD BANNER CUSTOM IMAGES --- */
.ad-image-container {
  width: 100%;
  height: 130px;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.ad-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ad-banner:hover .ad-image-container img {
  transform: scale(1.05);
}
