body {
  margin: 0;
  font-family: Arial;
  color: white;
  overflow-x: hidden;
}

/* YOUTUBE BG */
.yt-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.yt-bg iframe {
  width: 100%;
  height: 100%;
  transform: scale(1.3);
  pointer-events: none;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: -1;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(0,0,0,0.6);
}

.logo {
  color: #a855f7;
  font-weight: bold;
}

/* HERO */
.hero {
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.glow {
  font-size: 70px;
  color: #a855f7;
  text-shadow: 0 0 25px #a855f7;
}

/* BUTTONS */
.btn {
  padding: 12px 22px;
  background: #a855f7;
  color: white;
  border-radius: 10px;
  text-decoration: none;
  margin: 5px;
}

.btn.discord {
  background: #5865F2;
}

/* PAGE */
.page {
  padding: 80px 20px;
  text-align: center;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.card {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 12px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px #a855f7;
}

/* STAFF COLORS */
.owner {
  border: 2px solid gold;
  box-shadow: 0 0 20px gold;
}

.coowner {
  border: 2px solid #a855f7;
  box-shadow: 0 0 20px #a855f7;
}

.admin {
  border: 2px solid #00d4ff;
  box-shadow: 0 0 20px #00d4ff;
}

/* RULES */
.rules-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.rule {
  background: rgba(255,255,255,0.05);
  padding: 15px;
  border-left: 3px solid #a855f7;
  border-radius: 10px;
}
body {
  margin: 0;
  font-family: Arial;
  background: #000;   /* IMPORTANT FIX */
  color: white;
}

/* FORCE PAGE SHOW */
.page-body {
  min-height: 100vh;
  background: radial-gradient(circle, #1a1a1a, #000);
}

/* PAGE */
.page {
  padding: 100px 20px;
  text-align: center;
}

/* RULES BOX FIX */
.rules-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.rule {
  background: rgba(255,255,255,0.06);
  padding: 18px;
  border-left: 3px solid #a855f7;
  border-radius: 10px;
}

/* GLITCH PREVENT FIX */
h1, p {
  color: white;
}
.car-info p {
  margin: 0;
  color: #a855f7;
  font-weight: 500;
  font-size: 12px;   /* 👈 صغيرة */
  opacity: 0.85;     /* 👈 خفيفة */
}

/* optional: price badge style */
.car-info p::before {
  content: "💰 ";
}
.car-info p {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 8px;
  font-size: 11px;
  color: #a855f7;
  margin-top: 5px;
}
.car-card img {
  width: 100%;
  height: 200px;        /* 👈 أكبر شوي */
  object-fit: contain;
  background: radial-gradient(circle, rgba(168,85,247,0.08), transparent);
  padding: 12px;
  transition: 0.3s;
}

.car-card:hover img {
  transform: scale(1.08);
}
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
  padding: 0 20px;
}

.car-card {
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  transition: 0.3s;
}

.car-card img {
  width: 100%;
  height: 190px;
  object-fit: contain;   /* 👈 كامل + صغير */
  background: rgba(0,0,0,0.25);
  padding: 10px;
}

.car-info {
  padding: 10px;
}

.car-info h3 {
  margin: 5px 0;
  color: white;
}

.car-info p {
  margin: 0;
  color: #a855f7;
  font-size: 12px;
}

/* HOVER */
.car-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 1px #a855f7;
}

/* RARITY SYSTEM */
.legendary {
  border: 2px solid rgb(0, 0, 0);
  box-shadow: 0 0 1px rgb(0, 0, 0);
}

.epic {
  border: 2px solid #000000;
  box-shadow: 0 0 15px #000000;
}

.rare {
  border: 2px solid #000000;
  box-shadow: 0 0 1px #000000;
}
.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-box {
  background: #111;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  border: 2px solid #000000;
  box-shadow: 0 0 1px #000000;
  width: 300px;
}

.popup-box h2 {
  color: white;
}

.popup-box p {
  color: #000000;
}

.popup-box button {
  margin: 8px;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: #000000;
  color: white;
  transition: 0.3s;
}

.popup-box button:hover {
  background: gold;
  color: black;
}
.rules-page {
  padding: 60px 20px;
  color: white;
  text-align: center;
}

.rules-title {
  font-size: 22px;
  color: #a855f7;
  text-shadow: 0 0 15px #a855f7;
  margin-bottom: 10px;
}

.rules-sub {
  opacity: 0.7;
  margin-bottom: 30px;
}

.rules-box {
  max-width: 900px;
  margin: auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: 15px;
  padding: 25px;
  backdrop-filter: blur(10px);
  text-align: left;
}

.rules-box h2 {
  color: #a855f7;
  margin-top: 20px;
  font-size: 18px;
}

.rules-box p {
  font-size: 13px;
  opacity: 0.9;
  margin: 5px 0;
}

/* hover glow */
.rules-box:hover {
  box-shadow: 0 0 25px #a855f7;
}
body {
  margin: 0;
  font-family: Arial;
  background: radial-gradient(circle at top, #1a1a2e, #000);
  color: white;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(168,85,247,0.3);
}

header .logo {
  color: #a855f7;
  font-weight: bold;
}

/* NAV */
nav a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
  transition: 0.3s;
}

nav a:hover {
  color: #a855f7;
  text-shadow: 0 0 10px #a855f7;
}

/* PAGE TITLE */
.glow {
  text-align: center;
  font-size: 28px;
  margin-top: 30px;
  color: #a855f7;
  text-shadow: 0 0 20px #a855f7;
}

/* GRID */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  padding: 20px;
}

/* CARDS */
.mini-car {
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  transition: 0.3s;
  border: 1px solid rgba(255,255,255,0.1);
}

.mini-car:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px #a855f7;
}

.mini-img {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(168,85,247,0.1);
}

.mini-img img {
  width: 90%;
  max-height: 110px;
  object-fit: contain;
}

.mini-info {
  padding: 10px;
}

.mini-info h3 {
  font-size: 13px;
}

.price {
  font-size: 11px;
  color: #a855f7;
}

button {
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  background: #a855f7;
  color: white;
  cursor: pointer;
  font-size: 11px;
}

button:hover {
  background: gold;
  color: black;
}
