/* =========================================================
   777CITY - SINGLE FILE MODULAR CSS (CLEAN + COMPLETE)
   Theme: GOLD (Yellow) x CYAN (Blue) • Pixel/Casino UI
   ========================================================= */

/* =========================================================
   00) THEME TOKENS
   ========================================================= */
:root {
  /* Main theme */
  --main-purple: #ffd100;       /* back-compat: eski mor -> GOLD */
  --main-blue: #00e6ff;         /* neon cyan */
  --main-yellow: #ffe86a;

  --casino-gold: #ffd100;
  --casino-gold-2: #ffb700;
  --casino-cyan: #00e6ff;
  --casino-cyan-2: #0077ff;

  --bg-dark: #05060a;
  --bg-dark-2: #060a14;
  --bg-dark-trans: rgba(6, 10, 18, 0.78);

  --border-color: #ffd100;
  --border-glow: rgba(255, 209, 0, 0.35);

  --text-light: rgba(255, 255, 255, 0.78);
  --text-white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.62);

  --panel-bg: rgba(10, 14, 26, 0.62);
  --panel-border: rgba(255, 209, 0, 0.45);
  --shadow-neon: 0 0 18px rgba(0,230,255,0.18), 0 0 22px rgba(255,209,0,0.16);
  --shadow-deep: 0 14px 40px rgba(0,0,0,0.45);

  --radius-1: 14px;
  --radius-2: 18px;
  --radius-3: 22px;
}

/* =========================================================
   01) BASE / RESET
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(0,230,255,0.12), transparent 60%),
    radial-gradient(1000px 700px at 80% 30%, rgba(255,209,0,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 60%, var(--bg-dark) 100%);
  color: var(--text-white);
  font-family: 'VT323', monospace;
  font-size: 22px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Neon grid + scanlines (animated) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0,230,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,209,0,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.9;
  animation: gridDrift 16s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.035) 0px,
      rgba(255,255,255,0.035) 1px,
      transparent 3px,
      transparent 7px
    );
  opacity: 0.18;
  mix-blend-mode: overlay;
  animation: scanline 7.5s linear infinite;
}

@keyframes gridDrift {
  0% { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-42px, -42px, 0); }
}
@keyframes scanline {
  0% { transform: translate3d(0,-8px,0); }
  100% { transform: translate3d(0,8px,0); }
}

/* Ensure content is above background effects */
main, header, footer, #navbar, section, .container,
.wallet-overlay, .modal-overlay, .mobile-menu-overlay,
.license-modal-overlay, #buy-modal, div.swal2-container {
  position: relative;
  z-index: 1;
}

img { image-rendering: pixelated; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* =========================================================
   02) LAYOUT
   ========================================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

section {
  padding: 80px 0;
  border-bottom: 2px solid rgba(255, 209, 0, 0.16); /* mor yerine gold */
}

section.section-alt { background-color: rgba(10, 14, 26, 0.45); }

.pixel-box {
  background: var(--bg-dark-trans);
  border: 2px solid var(--border-color);
  padding: 20px;
  box-shadow: 0 0 15px var(--border-glow);
}

/* Global panel/card look */
.section, .carousel-container, .tokenomics-box, .community-box,
.drilling-stats, .drilling-game, .dashboard-card, .market-panel, .ref-panel,
.social-bounty-box, .phase-progress-container, .locked-container {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-neon);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-2);
}

/* Headings glow */
h1, h2, h3, .nav-logo, .section-title {
  text-shadow: 0 0 12px rgba(0,230,255,0.20), 0 0 14px rgba(255,209,0,0.18);
}

p { color: var(--text-light); }

/* =========================================================
   03) NAVBAR (SINGLE SOURCE: #navbar)
   ========================================================= */
#navbar {
  background: rgba(6, 10, 18, 0.68);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 209, 0, 0.22);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  padding: 0;
  position: fixed;
top: 0;
left: 0;
right: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  display: flex;
  align-items: center;
}
#navbar::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(255,209,0,0.0),
    rgba(255,209,0,0.9),
    rgba(0,230,255,0.9),
    rgba(255,209,0,0.0)
  );
}

#navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 20;
  flex-shrink: 0;
}
.navbar-logo { width: 45px; height: 45px; margin-right: 15px; }
.navbar-title { font-size: 32px; color: #fff; font-weight: bold; letter-spacing: 1px; }
.navbar-title span { color: var(--casino-gold); }

/* Desktop menu center */
.nav-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  z-index: 10;
}
.nav-menu a {
  color: rgba(255,255,255,0.82);
  font-size: 24px;
  transition: 0.3s;
  text-transform: uppercase;
  position: relative;
  padding: 10px 10px;
}
.nav-menu a::after{
  content:"";
  position:absolute;
  left:10px; right:10px; bottom:6px;
  height:2px;
  background: linear-gradient(90deg, rgba(255,209,0,0.85), rgba(0,230,255,0.85));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0,230,255,0.20);
}
.nav-menu a:hover, .nav-menu a.active {
  color: #fff;
  text-shadow: 0 0 10px rgba(255,209,0,0.25);
  transform: translateY(-1px);
}
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }

/* Wallet (right) */
.nav-wallet {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 20;
  flex-shrink: 0;
}
.btn-wallet {
  background: transparent;
  border: 2px solid var(--casino-gold);
  color: var(--casino-gold);
  width: 300px;
  padding: 10px 0;
  font-size: 16px;
  font-family: 'VT323', monospace;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 14px;
}
.btn-wallet:hover {
  background: linear-gradient(90deg, var(--casino-gold) 0%, var(--casino-cyan) 100%);
  color: #061018;
  box-shadow: var(--shadow-neon);
}

/* Mobile menu icon */
.mobile-menu-icon { display: none; cursor: pointer; z-index: 1051; }
.mobile-menu-icon span {
  display: block;
  width: 35px;
  height: 4px;
  background-color: #ffffff;
  margin: 6px 0;
  transition: 0.4s;
  box-shadow: 0 0 6px rgba(0,230,255,0.25), 0 0 8px rgba(255,209,0,0.18);
}

/* Dropdown */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--bg-dark);
  border: 2px solid var(--border-color);
  min-width: 160px;
  box-shadow: 0 0 15px var(--border-glow);
  z-index: 1;
  top: 100%;
  text-align: left;
}
.dropdown-content a { color: var(--text-white); padding: 12px 16px; display: block; font-size: 20px; }
.dropdown:hover .dropdown-content { display: block; }
.dropdown:hover .dropbtn { color: var(--casino-gold); }

/* =========================================================
   04) BUTTONS (GLOBAL)
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: 'VT323', monospace;
  font-size: 24px;
  border: 2px solid transparent;
  cursor: pointer;
  margin: 6px;
  border-radius: 14px;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  user-select: none;
  position: relative;
  will-change: transform;
}

.btn-primary {
  color: #061018;
  background: linear-gradient(90deg, var(--casino-gold) 0%, var(--casino-cyan) 100%);
  border-color: rgba(255,209,0,0.65);
  box-shadow: var(--shadow-neon);
}
.btn-primary::after {
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(255,209,0,0.55), rgba(0,230,255,0.45));
  filter: blur(12px);
  opacity: .28;
  z-index: -1;
  transition: opacity .15s ease;
}

.btn-secondary {
  color: rgba(255,255,255,0.9);
  background: linear-gradient(180deg, rgba(14,18,34,0.9) 0%, rgba(9,12,22,0.9) 100%);
  border-color: rgba(0,230,255,0.35);
  box-shadow: 0 0 14px rgba(0,230,255,0.12);
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:hover::after { opacity: .45; }
.btn:active { transform: translateY(0px) scale(0.99); }

.btn:disabled {
  background: rgba(20,20,20,0.6);
  color: rgba(255,255,255,0.35);
  border-color: rgba(255,255,255,0.15);
  cursor: not-allowed;
  box-shadow: none;
}

/* Partners button */
.btn-partners {
  background: linear-gradient(90deg, var(--casino-cyan) 0%, var(--casino-cyan-2) 100%);
  color: #061018;
  border: 2px solid rgba(0,230,255,0.55);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 15px 30px;
  font-size: 24px;
  cursor: pointer;
  margin: 5px;
  transition: 0.3s;
  box-shadow: 0 0 12px rgba(0,230,255,0.18);
  border-radius: 14px;
}
.btn-partners:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(0,230,255,0.28);
}

/* =========================================================
   05) INPUTS (GLOBAL)
   ========================================================= */
.pixel-input {
  width: 100%;
  padding: 15px 15px 15px 25px;
  background: rgba(0,0,0,0.7);
  border: 2px solid #555;
  color: #fff;
  font-family: 'VT323', monospace;
  font-size: 20px;
  outline: none;
  transition: 0.3s;
  box-sizing: border-box;
}
.pixel-input:focus {
  border-color: var(--casino-cyan);
  box-shadow: 0 0 12px rgba(0,230,255,0.35);
}
.pixel-input::placeholder { color: #888; }

/* =========================================================
   06) HERO / DASHBOARD / CAROUSEL (LANDING)
   ========================================================= */
#hero { background: transparent; padding-top: 140px; padding-bottom: 80px; border-bottom: none; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.5fr; align-items: center; gap: 50px; }
.hero-image { width: 400px; max-width: 100%; border: 2px solid var(--border-color); box-shadow: 0 0 20px var(--border-glow); border-radius: 18px; }
.hero-content h1 { font-size: 64px; color: #fff; margin-bottom: 10px; line-height: 1.2; text-shadow: 0 0 15px rgba(255,209,0,0.22); }
.hero-content p { font-size: 28px; color: #aaa; margin-bottom: 30px; }
.hero-buttons { display: flex; flex-wrap: wrap; }

#dashboard { padding-top: 40px; padding-bottom: 80px; scroll-margin-top: 120px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.stat-box { text-align: center; }
.stat-box h4 { font-size: 24px; color: var(--casino-gold); margin-bottom: 10px; }
.stat-box p { font-size: 36px; color: #fff; }

/* section title */
.section-title {
  text-align: center;
  font-size: 48px;
  margin-bottom: 50px;
  color: #fff;
  text-transform: uppercase;
}

.carousel-container { 
    position: relative; 
    width: 103%; 
    max-width: 1660px;          /* 3 kart rahat sığsın */
    margin: 0 auto; 
    padding: 0 75px;            /* oklar için yeterli ama fazla değil */
    box-sizing: border-box; 
}
.carousel-viewport { width: 100%; overflow: hidden; padding: 20px 0; }
.carousel-slider { display: flex; transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); align-items: stretch; }
.carousel-item {
  flex: 0 0 320px;
  max-width: 320px;
  margin-right: 40px;
  display: flex;
  flex-direction: column;
  height: auto;
  background: rgba(10, 14, 26, 0.80);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  border: 2px solid rgba(255,209,0,0.38);
  border-radius: 18px;
  overflow: hidden;
}
.carousel-image-container {
  width: 100%;
  height: 280px;
  background-color: #050505;
  border-bottom: 2px solid rgba(255,209,0,0.35);
  margin-bottom: 15px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0,230,255,0.18));
  transform: scale(1.);
  transition: transform 0.3s ease;
}
.carousel-item:hover .carousel-image-container img { transform: scale(1.4); }

.carousel-item p {
  font-size: 20px;
  color: #aaa;
  text-align: center;
  margin-bottom: 15px;
  flex-grow: 1;
}
.asset-perk, .asset-cost {
  font-size: 22px;
  padding: 8px 10px;
  text-align: center;
  display: block;
  margin-top: auto;
}
.asset-perk { color: var(--casino-cyan); background: rgba(0, 230, 255, 0.10); }
.asset-cost { color: var(--casino-gold-2); background: rgba(255, 209, 0, 0.10); border-top: 1px solid #333; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.85);
  border: 2px solid var(--casino-gold);
  color: var(--casino-gold);
  font-size: 32px;
  cursor: pointer;
  z-index: 20;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.8);
}
.carousel-arrow:hover {
  background: linear-gradient(90deg, var(--casino-gold) 0%, var(--casino-cyan) 100%);
  color: #061018;
  box-shadow: var(--shadow-neon);
  transform: translateY(-50%) scale(1.1);
}
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }
.carousel-arrow:disabled { opacity: 0; pointer-events: none; }

/* =========================================================
   07) PAGE: MYCASINO (UNIFIED FULLSCREEN & HUD SYSTEM)
   ========================================================= */

/* --- 1. TAM EKRAN (FULLSCREEN) YAPI --- */
body.page-casino { 
  overflow: hidden !important; 
  margin: 0; 
  padding: 0;
  height: 100vh; 
  width: 100vw;
}

/* Navbar'ı oyun ekranının üzerinde hafif saydam yap */
body.page-casino #navbar {
  background: rgba(6, 10, 18, 0.4); 
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 209, 0, 0.1);
}

body.page-casino main.casino-screen {
  position: absolute; 
  top: 0; left: 0; 
  width: 100vw; 
  height: 100vh; 
  margin: 0; padding: 0;
  z-index: 0; 
  background: var(--bg-dark);
}

body.page-casino .casino-stage {
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important; /* pixel-box'ın gölgesini ezer */
  margin-top: 80px; /* Navbar'ın altına hizalar */
  height: calc(100vh - 80px);
  width: 100vw;
  max-width: none;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

body.page-casino .casino-gamepanel {
  position: relative; 
  width: 100%; 
  height: 100%; 
  overflow: hidden;
}

/* --- 2. FIELD & 2.5D GRID SİSTEMİ --- */
body.page-casino .casino-field {
  position: absolute; inset: 0; 
  width: 100%; height: 100%; z-index: 5;
}

body.page-casino #field-image {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1); /* EKLENEN SATIR: Görseli %15 uzaklaştırır */
}

body.page-casino #grid-overlay {
  position: absolute; inset: 0; 
  width: 100%; height: 100%; z-index: 10;
  display: grid; place-content: center;
  transform: rotateX(60deg) rotateZ(-45deg); 
  transform-style: preserve-3d;
}

body.page-casino .grid-hidden .grid-cell { 
  border: none !important; background-color: transparent !important; 
}

body.page-casino .grid-cell {
  position: relative; aspect-ratio: 1 / 1;
  border: 1px dashed rgba(0, 230, 255, 0.30);
  background-color: rgba(255, 209, 0, 0.08);
  cursor: pointer; transition: background-color 0.2s;
  transform-style: preserve-3d;
}

body.page-casino .grid-cell:hover { background-color: rgba(0, 230, 255, 0.28); }

body.page-casino .grid-cell:has(img)::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 60%; height: 60%;
  transform: translate(-80%, -80%);
  background: radial-gradient(circle, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 70%);
  z-index: 15; pointer-events: none;
}

body.page-casino .grid-cell img {
  position: absolute; max-width: none !important; width: 220% !important; height: auto !important;
  left: 40%; top: 125%; transform-origin: bottom center;
  transform: translate(-88%, -92%) rotateZ(45deg) rotateX(-60deg);
  pointer-events: none; z-index: 20; filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.5));
}

body.page-casino .grid-cell.selected {
  background-color: rgba(255, 209, 0, 0.22) !important;
  box-shadow: 0 0 15px rgba(255, 209, 0, 0.55), inset 0 0 10px rgba(0,230,255,0.20);
  border: 2px solid rgba(255, 209, 0, 0.85) !important; z-index: 50;
}

/* --- 3. HUD (PANELLER) --- */
body.page-casino .hud { 
  position: absolute; z-index: 30; pointer-events: none; 
}
body.page-casino .hud-top-left { top: 14px; left: 14px; }
body.page-casino .hud-top-right { top: 14px; right: 14px; }
body.page-casino .hud-bottom-left { bottom: 14px; left: 14px; }
body.page-casino .hud-bottom-right { bottom: 14px; right: 14px; }

body.page-casino .hud-box {
  width: 320px; max-width: 42vw; 
  background: rgba(10, 14, 26, 0.85);
  border: 2px solid rgba(255,209,0,0.40);
  box-shadow: 0 0 18px rgba(0,230,255,0.12), inset 0 0 15px rgba(255,209,0,0.1);
  border-radius: 16px; padding: 14px;
  backdrop-filter: blur(12px); pointer-events: auto;
  transition: all 0.3s ease;
}

body.page-casino .hud-title {
  font-size: 22px; color: var(--casino-gold); margin-bottom: 8px;
  text-transform: uppercase; border-bottom: 1px dashed rgba(255,255,255,0.2); padding-bottom: 6px;
  letter-spacing: 1px;
}

/* Panel içindeki yazıları hizalama */
body.page-casino .hud-row, 
body.page-casino .hud-line {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 18px; color: rgba(255,255,255,0.9); margin: 6px 0;
}

body.page-casino .hud-green { color: #00ff88; }
body.page-casino .hud-cyan { color: var(--casino-cyan); }
body.page-casino .hud-gold { color: var(--casino-gold); }

body.page-casino .hud-btn {
  width: 100%; margin: 8px 0 0; padding: 10px 12px; font-size: 20px; 
  display: flex; justify-content: center; align-items: center; gap: 8px;
}

body.page-casino .hud-cellinfo {
  font-size: 18px; margin-bottom: 10px; color: rgba(255,255,255,0.8);
}

body.page-casino .hud-actions { 
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; 
}

/* --- 4. KİLİT EKRANI (NO FIELD) --- */
body.page-casino .casino-center-lock {
  position: absolute; inset: 0; z-index: 999; 
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; background: rgba(0, 0, 0, 0.85); 
  backdrop-filter: blur(10px);
}
body.page-casino .lock-icon { font-size: 64px; margin-bottom: 20px; animation: floatIcon 3s ease-in-out infinite; }
@keyframes floatIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
body.page-casino #no-lounge-title { font-size: 32px; color: #fff; margin-bottom: 10px; text-shadow: 0 0 10px rgba(0,230,255,0.18); }
body.page-casino #no-lounge-desc { font-size: 20px; color: #aaa; margin-bottom: 30px; }

/* --- 5. DEV PANEL --- */
body.page-casino .dev-panel {
  position: fixed; left: 12px; top: 92px; z-index: 99999; width: 360px;
  background: rgba(0,0,0,0.78); border: 1px solid rgba(0,230,255,0.35);
  box-shadow: 0 0 18px rgba(0,230,255,0.18); border-radius: 14px; padding: 10px;
  backdrop-filter: blur(8px);
}
body.page-casino .dev-title { color:#fff; font-size: 20px; margin-bottom: 8px; }
body.page-casino .dev-row { display:flex; gap:8px; margin-bottom: 8px; }
body.page-casino .dev-btn { padding: 8px 10px; font-size: 18px; margin: 0; }
body.page-casino .dev-select { padding: 10px; font-size: 18px; }
body.page-casino .dev-hint { color: rgba(255,255,255,0.65); font-size: 16px; text-align: center; margin-top: 10px; }

/* --- 6. MOBİL UYUM (Responsive) --- */
@media (max-width: 768px) {
  body.page-casino .hud-box {
    width: auto; min-width: 160px; /* Mobilde yazılar sığsın diye genişlik eklendi */
    padding: 10px;
  }
  body.page-casino .hud-title { font-size: 18px; margin-bottom: 4px; padding-bottom: 4px; }
  body.page-casino .hud-row, body.page-casino .hud-line { font-size: 16px; flex-direction: column; align-items: flex-start; }
  body.page-casino .hud-btn { font-size: 18px; padding: 8px; }
  body.page-casino .hud-actions { grid-template-columns: 1fr; }
  body.page-casino .dev-panel { display: none !important; }
}
/* =========================================================
   08) MODALS (WALLET / PARTNERS / BUY MODAL)
   ========================================================= */
/* Buy modal */
#buy-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center; align-items: center;
  z-index: 3000;
}
#buy-modal .modal-content { width: 90%; max-width: 900px; max-height: 90%; overflow-y: auto; }
#buy-modal h3 { font-size: 32px; color: var(--casino-gold); margin-bottom: 15px; }
#rig-list {
  display: flex; flex-direction: column;
  max-height: 400px; overflow-y: auto;
  border-right: 2px solid rgba(255,209,0,0.35); padding-right: 10px;
}
.rig-item {
  display: flex; align-items: center; padding: 5px; cursor: pointer;
  font-size: 20px; color: var(--text-light);
}
.rig-item:hover { background-color: rgba(255, 209, 0, 0.12); }
.rig-item.active { background-color: rgba(0, 230, 255, 0.10); border: 2px solid rgba(0,230,255,0.35); color: #fff; }
.rig-item img { width: 60px; height: 60px; margin-right: 10px; }
#rig-details { font-size: 20px; color: var(--text-light); }
.modal-actions { display: flex; justify-content: flex-end; margin-top: 20px; gap: 10px; }

/* Wallet modal */
.wallet-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.wallet-overlay.active { display: flex; opacity: 1; }

.wallet-box {
  width: 420px;
  max-width: 90%;
  background: #050505;
  border: 2px solid rgba(255,209,0,0.55);
  box-shadow: var(--shadow-neon);
  padding: 25px;
  position: relative;
  border-radius: 18px;
}
.wallet-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  padding-bottom: 15px;
  position: relative;
}
.wallet-header h3 {
  color: #fff;
  font-size: 32px;
  margin: 0;
  text-align: center;
  width: 100%;
}
.wallet-close {
  font-size: 32px;
  color: #666;
  cursor: pointer;
  transition: 0.3s;
  position: absolute;
  right: 0;
  top: 0;
}
.wallet-close:hover { color: #fff; transform: scale(1.1); }

.wallet-subtitle {
  color: #aaa;
  font-size: 20px;
  margin-bottom: 20px;
  text-align: center;
}
.wallet-list { display: flex; flex-direction: column; gap: 12px; }

.wallet-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: #fff;
  text-align: left;
  border-radius: 14px;
}
.wallet-option:hover {
  background: rgba(255,209,0,0.10);
  border-color: rgba(0,230,255,0.25);
  transform: translateX(5px);
}
.wallet-option.recommended { border-color: rgba(0,230,255,0.30); }

.wallet-info { display: flex; align-items: center; gap: 15px; }
.wallet-info img { width: 32px; height: 32px; }
.wallet-badge {
  font-size: 14px;
  background: linear-gradient(90deg, var(--casino-gold) 0%, var(--casino-cyan) 100%);
  color: #061018;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 1px;
}
.wallet-footer { margin-top: 25px; text-align: center; font-size: 16px; color: #555; }
.wallet-footer a { color: var(--casino-cyan); text-decoration: none; }

/* Partners modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
}
.partners-modal-content {
  background: rgba(10,14,26,0.90);
  border: 2px solid rgba(0,230,255,0.45);
  box-shadow: 0 0 30px rgba(0, 230, 255, 0.25);
  width: 90%;
  max-width: 700px;
  padding: 40px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 18px;
}
.partners-grid-modal { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.partner-card-modal {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 15px;
  transition: 0.3s;
  border-radius: 14px;
}
.partner-card-modal:hover {
  border-color: rgba(0,230,255,0.35);
  background: rgba(0, 230, 255, 0.08);
  transform: translateX(5px);
}
.p-logo {
  width: 50px; height: 50px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.12);
  background: #000;
  flex-shrink: 0;
}
.p-logo img { width: 100%; height: 100%; object-fit: cover; }
.p-info h4 { color: #fff; font-size: 20px; margin: 0; line-height: 1; }
.p-info span { color: #888; font-size: 16px; }
.partner-card-modal.coming-soon { opacity: 0.5; cursor: default; border-style: dashed; }
.close-modal { position: absolute; top: 15px; right: 25px; font-size: 40px; color: #666; cursor: pointer; line-height: 0.8; }
.close-modal:hover { color: #fff; }

/* =========================================================
   09) SWEETALERT2 (GOLD/CYAN PIXEL THEME)
   ========================================================= */
div.swal2-container { z-index: 99999 !important; }

div:where(.swal2-container) div:where(.swal2-popup) {
  background-color: rgba(10,14,26,0.92) !important;
  background-image:
    linear-gradient(rgba(0,230,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,209,0,0.05) 1px, transparent 1px) !important;
  background-size: 20px 20px !important;

  border: 4px solid rgba(255,209,0,0.85) !important;
  border-radius: 0 !important;
  box-shadow:
    0 0 0 4px #000,
    0 0 20px rgba(0,230,255,0.22),
    inset 0 0 20px rgba(255,209,0,0.10) !important;

  font-family: 'VT323', monospace !important;
}

div:where(.swal2-container) h2:where(.swal2-title) {
  color: var(--casino-gold) !important;
  font-size: 36px !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 0px #000, 0 0 10px rgba(255,209,0,0.35) !important;
}

div:where(.swal2-container) div:where(.swal2-html-container) {
  color: rgba(255,255,255,0.82) !important;
  font-size: 22px !important;
}

div:where(.swal2-container) .swal2-icon {
  border-color: rgba(0,230,255,0.65) !important;
  color: rgba(0,230,255,0.85) !important;
  box-shadow: 0 0 10px rgba(0,230,255,0.25) !important;
}

div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm {
  background: linear-gradient(90deg, var(--casino-gold) 0%, var(--casino-cyan) 100%) !important;
  color: #061018 !important;
  border: 2px solid rgba(255,255,255,0.65) !important;
  border-radius: 0 !important;
  font-size: 24px !important;
  font-family: 'VT323', monospace !important;
  box-shadow: var(--shadow-neon) !important;
  transition: 0.2s !important;
}
div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}

div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel {
  background-color: #333 !important;
  color: #ddd !important;
  border: 2px solid #666 !important;
  border-radius: 0 !important;
  font-size: 24px !important;
  font-family: 'VT323', monospace !important;
}
div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel:hover {
  background-color: #444 !important;
  color: #fff !important;
}

/* =========================================================
   10) TOKENOMICS
   ========================================================= */
.tokenomics-box {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 40px;
}
.token-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}
.token-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  flex: 1 0 220px;
  max-width: 300px;
  border-radius: 14px;
}
.token-item:hover {
  border-color: rgba(0,230,255,0.35);
  box-shadow: 0 0 18px rgba(0,230,255,0.18);
  transform: translateY(-5px);
}
.token-label {
  font-size: 16px;
  color: #aaa;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.val-purple, .val-green, .val-yellow, .val-blue {
  font-size: 36px;
  font-weight: bold;
  color: #FFFFFF;
  text-shadow:
    0 0 10px rgba(255,209,0,0.35),
    0 0 18px rgba(0,230,255,0.18);
}
.token-desc p { font-size: 24px; color: #ccc; margin-bottom: 10px; line-height: 1.5; }
.token-desc .highlight { color: #fff; border-bottom: 2px dashed rgba(0,230,255,0.35); text-shadow: 0 0 5px rgba(0,230,255,0.25); }
.token-desc .sub-desc { font-size: 18px; color: #666; margin-bottom: 35px; }
.token-desc strong { color: var(--casino-gold-2); }

.btn-glow {
  font-size: 24px;
  padding: 15px 50px;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--casino-gold) 0%, var(--casino-cyan) 100%);
  border: 2px solid rgba(255,209,0,0.55);
  color: #061018;
  animation: btnPulse 2s infinite alternate;
  transition: 0.3s;
  border-radius: 14px;
}
.btn-glow:hover {
  background-color: transparent;
  color: var(--casino-gold);
  box-shadow: 0 0 30px rgba(255,209,0,0.35);
}
@keyframes btnPulse {
  from { box-shadow: 0 0 10px rgba(255,209,0,0.25); }
  to { box-shadow: 0 0 25px rgba(0,230,255,0.25), 0 0 5px #fff; }
}

/* =========================================================
   11) REFERRAL BANNER
   ========================================================= */
.referral-banner-container {
  width: 100%;
  height: 464px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  border: 4px solid rgba(255,209,0,0.65);
  box-shadow: var(--shadow-neon), inset 0 0 50px #000;
  background-color: #000;
  overflow: hidden;
  border-radius: 18px;
}
.referral-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
}
.referral-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, transparent 50%, rgba(10, 14, 26, 0.9) 100%);
  pointer-events: none;
}

/* =========================================================
   12) COMMUNITY + FOOTER
   ========================================================= */
#community {
  text-align: center;
  border-bottom: none;
  padding: 80px 20px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,230,255, 0.06));
}
#community h2 {
  font-size: 56px;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 2px;
}
#community p {
  font-size: 24px;
  color: #aaa;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
#community .btn-primary {
  font-size: 28px;
  padding: 18px 50px;
  border-radius: 14px;
}
#community .btn-primary:hover { transform: scale(1.05); }

footer {
  background-color: #050505;
  text-align: center;
  padding: 40px 0;
  border-top: 2px solid rgba(255,209,0,0.35);
  margin-top: 0;
  position: relative;
}
footer p {
  font-size: 18px;
  color: #666;
  letter-spacing: 1px;
  text-transform: uppercase;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: rgba(255,209,0,0.65);
  box-shadow: 0 0 30px 5px rgba(0,230,255,0.18);
  opacity: 0.5;
}

/* =========================================================
   13) FLOATING SOCIALS + MUSIC
   ========================================================= */
.floating-socials {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  z-index: 9999;
}
.float-icon {
  width: 40px;
  height: 40px;
  background-color: #000;
  border: 2px solid rgba(255,209,0,0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  box-shadow: 0 0 10px rgba(0,230,255,0.12);
  transition: all 0.3s ease;
  image-rendering: pixelated;
  border-radius: 8px;
}
.float-icon:hover {
  background: linear-gradient(90deg, var(--casino-gold) 0%, var(--casino-cyan) 100%);
  color: #061018;
  transform: translateY(-5px);
  box-shadow: var(--shadow-neon);
}
.float-icon.x-icon { font-family: sans-serif; font-weight: 900; font-size: 20px; }
.float-icon.gitbook { font-size: 22px; }
.float-icon.telegram { display: flex; align-items: center; justify-content: center; padding: 0; }
.float-icon.telegram img { width: 22px; height: 22px; transition: transform 0.3s ease; }
.float-icon.telegram:hover img { transform: scale(1.2); }

/* music bottom-left */
.music-floating-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.music-toggle, .uniswap-toggle {
  cursor: pointer;
  background-color: #000;
  border: 2px solid rgba(255,209,0,0.65);
  color: #fff;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: all 0.3s ease;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.music-toggle:hover, .uniswap-toggle:hover {
  background: rgba(255,209,0,0.10);
  box-shadow: 0 0 15px rgba(255,209,0,0.25);
  transform: translateY(-5px);
}
.uniswap-toggle img { width: 28px; height: 28px; transition: transform 0.3s ease; }
.uniswap-toggle:hover {
  border-color: #ff007a !important;
  background-color: rgba(255, 0, 122, 0.16) !important;
  box-shadow: 0 0 20px #ff007a !important;
}
.uniswap-toggle:hover img { transform: scale(1.2); }

.music-active {
  border-color: #00ff00 !important;
  color: #00ff00 !important;
  box-shadow: 0 0 15px #00ff00 !important;
  animation: musicPulse 1.5s infinite;
}
@keyframes musicPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* =========================================================
   14) MOBILE MENU (Unified)
   ========================================================= */
.mobile-menu-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
  z-index: 2000 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.mobile-menu-overlay.visible { opacity: 1; visibility: visible; }
.mobile-menu-close { position: absolute; top: 20px; right: 35px; color: #fff; font-size: 60px; text-decoration: none; }
.mobile-menu-content { display: flex; flex-direction: column; }
.mobile-menu-link { padding: 15px; font-size: 32px; color: #ccc; display: block; transition: 0.3s; }
.mobile-menu-link:hover { color: var(--casino-gold); }
.mobile-menu-content .btn-wallet { font-size: 24px; margin-top: 30px; padding: 15px 30px; width: 320px; max-width: 90vw; }

/* =========================================================
   15) EFFECTS / UTILITIES
   ========================================================= */
.casino-shimmer { position: relative; overflow: hidden; }
.casino-shimmer::before {
  content:"";
  position:absolute;
  top:-20%;
  left:-60%;
  width: 40%;
  height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  transform: skewX(-18deg);
  animation: shimmer 4.8s ease-in-out infinite;
  pointer-events:none;
}
@keyframes shimmer {
  0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  30% { opacity: .25; }
  100% { transform: translateX(120%) skewX(-18deg); opacity: 0; }
}

/* =========================================================
   16) RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
  .nav-menu { display: none !important; }
  .nav-wallet { display: none !important; }
  .mobile-menu-icon { display: block !important; margin-left: auto; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image-container { order: 1; }
  .hero-content { order: 2; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-content h1 { font-size: 48px; }

  .carousel-container { padding: 0; }
  .carousel-arrow { top: auto; bottom: -60px; transform: translateY(0); }
  .carousel-arrow.prev { left: 20px; }
  .carousel-arrow.next { right: 20px; }

  #field-collection, #rig-collection { padding-bottom: 140px; }
  .carousel-item { flex: 0 0 300px; max-width: 300px; }
  .carousel-image-container { height: 300px; }

  .drilling-container { grid-template-columns: 1fr; }
  .drilling-action-area { min-height: 400px; padding: 20px; }
  .action-content h2 { font-size: 32px; }
}

@media (max-width: 600px) {
  .user-profile-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 15px;
    padding: 20px !important;
  }
  .profile-left { width: 100%; margin-bottom: 5px; }
  .btn-logout {
    width: 100% !important;
    text-align: center;
    display: block;
    margin-top: 10px;
    padding: 12px 0;
  }
}

/* Safety z-index: wallet always above mobile */
.wallet-overlay { z-index: 9999 !important; }


/* DEV PANEL */
.dev-panel{
  position: fixed;
  left: 12px;
  top: 92px; /* navbar altı */
  z-index: 99999;
  width: 360px;
  background: rgba(0,0,0,0.78);
  border: 1px solid rgba(0,230,255,0.35);
  box-shadow: 0 0 18px rgba(0,230,255,0.18);
  border-radius: 14px;
  padding: 10px;
  backdrop-filter: blur(8px);
}

.dev-title{ color:#fff; font-size: 20px; margin-bottom: 8px; }
.dev-row{ display:flex; gap:8px; margin-bottom: 8px; }
.dev-btn{ padding: 8px 10px; font-size: 18px; margin: 0; }
.dev-select{ padding: 10px; font-size: 18px; }
.dev-hint{ color: rgba(255,255,255,0.65); font-size: 16px; }
