:root {
  --black: #07080b;
  --dark: #0f1218;
  --dark-2: #151923;
  --grey: #2a2f3a;
  --grey-light: #4a505c;
  --ice: #eef2f6;
  --ice-dim: #a7b0bd;
  --blue-dark: #0c1c33;
  --blue: #1e4a86;
  --blue-accent: #eef2f6;
  --accent-soft: rgba(238,242,246,0.14);
  --accent-border: rgba(238,242,246,0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--ice);
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.6;
  padding-top: 96px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* TOP STATUS BAR */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 34px;
  background: rgba(7,8,11,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar-inner { display: flex; gap: 28px; font-size: 0.78rem; color: var(--ice-dim); }
.status-pill { display: flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; box-shadow: 0 0 8px currentColor; }
.dot.green { background: #35d07f; color: #35d07f; }
.dot.blurple { background: #5865F2; color: #5865F2; }
.dot.red { background: #e5484d; color: #e5484d; }

/* NAVBAR */
.navbar {
  position: fixed;
  top: 34px; left: 0; right: 0;
  height: 62px;
  background: rgba(15,18,24,0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  z-index: 1000;
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}
.logo { display: flex; align-items: center; font-size: 1.4rem; font-weight: 800; letter-spacing: 0.4px; }
.logo span { color: var(--blue-accent); }
.logo-img { height: 40px; width: auto; display: block; }

.nav-links { display: flex; gap: 4px; }
.nav-links > li > a {
  position: relative;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--ice-dim);
  transition: 0.2s;
}
.nav-links > li > a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 2px;
  background: var(--blue-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.25s;
}
.nav-links > li > a:hover { color: var(--ice); }
.nav-links > li > a:hover::after,
.nav-links > li > a.active::after { transform: scaleX(1); }
.nav-links > li > a.active { color: var(--ice); }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%; left: 0;
  min-width: 190px;
  background: rgba(15,18,24,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 6px;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 0.87rem; color: var(--ice-dim); }
.dropdown-menu li a:hover { background: var(--accent-soft); color: var(--ice); }

.burger { display: none; background: none; border: none; color: var(--ice); font-size: 1.6rem; cursor: pointer; }

/* HERO */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
  background: var(--black);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,8,11,0.25), rgba(7,8,11,0.7) 85%),
    radial-gradient(ellipse at 30% 15%, rgba(30,74,134,0.3), transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(59,130,246,0.12), transparent 55%);
  z-index: -1;
}
.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--ice);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-content { max-width: 740px; }
.hero h1 { font-size: 3.2rem; font-weight: 800; margin-bottom: 18px; letter-spacing: -0.5px; }
.hero h1 span { color: var(--blue-accent); }
.hero p { color: var(--ice-dim); font-size: 1.1rem; margin-bottom: 34px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary { background: var(--blue-accent); color: var(--black); box-shadow: 0 0 24px rgba(238,242,246,0.25); }
.btn-primary:hover { background: #ffffff; transform: translateY(-2px); }
.btn-outline { background: rgba(255,255,255,0.05); color: var(--ice); border: 1px solid rgba(255,255,255,0.16); }
.btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* MODAL */
.modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal.open { display: flex; }
.modal-content {
  width: min(90vw, 900px);
  background: var(--dark-2);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.08);
}
.video-wrapper { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; }
.modal-close {
  position: absolute; top: -14px; right: -14px;
  width: 32px; height: 32px;
  background: var(--blue-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.2rem;
}

/* TEASER CARDS (home) */
.teasers {
  max-width: 1240px;
  margin: 0 auto;
  padding: 90px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.teaser-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: 0.25s;
  position: relative;
  overflow: hidden;
}
.teaser-card::before {
  content: "";
  position: absolute; top: -40%; right: -40%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(238,242,246,0.18), transparent 70%);
  transition: 0.3s;
}
.teaser-card:hover { transform: translateY(-6px); border-color: var(--accent-border); box-shadow: var(--shadow); }
.teaser-icon { font-size: 1.8rem; margin-bottom: 16px; }
.teaser-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.teaser-card p { color: var(--ice-dim); font-size: 0.92rem; margin-bottom: 22px; min-height: 44px; }

/* SECTIONS (inner pages) */
.page-hero {
  padding: 70px 24px 40px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(59,130,246,0.15), transparent 60%);
}
.page-hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: var(--ice-dim); max-width: 600px; margin: 0 auto; }

.section { max-width: 1240px; margin: 0 auto; padding: 50px 24px 100px; }
.section-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
.section-subtitle { color: var(--ice-dim); margin-bottom: 36px; max-width: 700px; }

/* SHOP CATEGORIES */
.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--ice);
  font-size: 0.88rem;
  font-weight: 600;
  transition: 0.2s;
}
.back-link:hover { transform: translateX(-3px); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.category-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.25s;
  display: block;
}
.category-card:hover { transform: translateY(-6px); border-color: var(--accent-border); box-shadow: var(--shadow); }
.category-card-img {
  width: 100%; aspect-ratio: 16/10;
  background: var(--grey) center/cover no-repeat;
  position: relative;
}
.category-card-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(7,8,11,0.75));
}
.category-card-body { padding: 18px 20px; position: relative; }
.category-icon { font-size: 1.5rem; display: block; margin-bottom: 8px; }
.category-card-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.category-count { font-size: 0.82rem; color: var(--ice-dim); }

/* PRODUCT DETAILS MODAL */
.product-modal-content { width: min(94vw, 1020px); padding: 24px; }
.product-modal-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.product-modal-img {
  width: 100%; min-height: 380px; border-radius: var(--radius-sm);
  background: var(--grey) center/cover no-repeat;
  cursor: zoom-in;
}
.product-modal-info h3 { font-size: 1.6rem; margin-bottom: 12px; }
.product-modal-info p { color: var(--ice-dim); font-size: 0.95rem; margin-bottom: 18px; }
.product-modal-info ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.product-modal-info li {
  font-size: 0.9rem; color: var(--ice-dim);
  padding-left: 20px; position: relative;
}
.product-modal-info li::before {
  content: "✓"; position: absolute; left: 0; color: var(--ice); font-weight: 700;
}

/* DISPONIBILITA' */
.availability {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 700; font-size: 0.9rem;
}
.availability-dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block;
  animation: blink-dot 1.4s ease-in-out infinite;
}
.availability-dot.available { background: #35d07f; box-shadow: 0 0 8px #35d07f; }
.availability-dot.unavailable { background: #e5484d; box-shadow: 0 0 8px #e5484d; }

@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@media (max-width: 700px) {
  .product-modal-body { grid-template-columns: 1fr; }
  .product-modal-img { min-height: 220px; }
}

/* SHOP */
.shop-category { margin-bottom: 52px; }
.shop-category-title {
  font-size: 1.3rem; font-weight: 700; margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--ice);
  display: flex; align-items: center; gap: 10px;
}
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.shop-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.shop-card:hover { transform: translateY(-5px); border-color: var(--accent-border); box-shadow: var(--shadow); }
.shop-card-img {
  width: 100%; aspect-ratio: 16/10;
  background: var(--grey) center/cover no-repeat;
  position: relative;
}
.shop-card-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.5));
}
.shop-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.shop-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.shop-card p { color: var(--ice-dim); font-size: 0.87rem; margin-bottom: 16px; }
.shop-card .availability { margin-top: auto; align-self: flex-start; }

/* REGOLAMENTO */
.rules-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
.rules-sidebar { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 120px; align-self: start; }
.rules-sidebar button {
  text-align: left; background: transparent; border: 1px solid transparent;
  color: var(--ice-dim); padding: 12px 16px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 0.92rem; transition: 0.2s;
}
.rules-sidebar button:hover { background: rgba(255,255,255,0.05); color: var(--ice); }
.rules-sidebar button.active { background: var(--accent-soft); border-color: var(--accent-border); color: var(--ice); }
.rules-content h3 { font-size: 1.4rem; margin-bottom: 18px; color: var(--ice); }
.rules-content ol { list-style: decimal; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; }
.rules-content li { color: var(--ice-dim); padding-left: 6px; }
.rules-content li::marker { color: var(--blue-accent); font-weight: 700; }

/* STREAMER */
.streamer-subtitle {
  font-size: 1.15rem; margin: 30px 0 16px; color: var(--ice-dim);
  border-left: 3px solid var(--blue-accent); padding-left: 12px;
}
.streamers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 20px; }
.streamer-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: 0.25s; display: block;
}
.streamer-card:hover { transform: translateY(-5px); border-color: var(--accent-border); box-shadow: var(--shadow); }
.streamer-preview { width: 100%; aspect-ratio: 16/9; background: var(--grey) center/cover no-repeat; position: relative; }
.streamer-preview .live-badge {
  position: absolute; top: 10px; left: 10px; background: #e5484d; color: white;
  font-size: 0.7rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; letter-spacing: 0.5px;
}
.streamer-info { padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.streamer-info img { width: 36px; height: 36px; border-radius: 50%; background: var(--grey); object-fit: cover; }
.streamer-name { font-weight: 700; font-size: 0.95rem; }
.streamer-card.offline .streamer-preview { opacity: 0.4; }
.empty-msg { color: var(--ice-dim); font-size: 0.9rem; font-style: italic; }

/* END BAR */
.endbar {
  margin-top: 20px;
  background: rgba(7,8,11,0.95);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 32px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.endbar-logo { height: 44px; }
.endbar-center { display: flex; gap: 12px; flex-wrap: wrap; }
.social-btn {
  padding: 10px 20px; border-radius: 999px; font-size: 0.88rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); transition: 0.2s;
}
.social-btn:hover { transform: translateY(-2px); }
.social-btn.discord:hover { background: rgba(88,101,242,0.2); border-color: #5865F2; }
.social-btn.tiktok:hover { background: rgba(255,255,255,0.15); }
.social-btn.youtube:hover { background: rgba(229,72,77,0.2); border-color: #e5484d; }

.server-status {
  display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: rgba(53,208,127,0.1); border: 1px solid rgba(53,208,127,0.3);
  font-size: 0.88rem; font-weight: 600;
}

.copyright { text-align: center; padding: 16px; font-size: 0.78rem; color: var(--ice-dim); background: rgba(7,8,11,1); }

@media (max-width: 900px) {
  .rules-layout { grid-template-columns: 1fr; }
  .rules-sidebar { position: static; flex-direction: row; overflow-x: auto; white-space: nowrap; }
  .teasers { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 96px; right: 0; flex-direction: column;
    background: rgba(15,18,24,0.98); width: 240px; padding: 12px;
    border-radius: 0 0 0 var(--radius); transform: translateX(100%); transition: 0.25s;
  }
  .nav-links.open { transform: translateX(0); }
  .burger { display: block; }
  .hero h1 { font-size: 2.1rem; }
  .endbar { justify-content: center; text-align: center; }
}
