/* =========================================================
   HEROWAR SMP — MODERN RED / BLACK / GOLD THEME
   ========================================================= */

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

/* ========== THEME VARIABLES ========== */
:root {
  --bg-dark: #0a0a0c;
  --bg-deep: #07070a;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a26;

  --red: #e63946;
  --red-dark: #b91c1c;
  --red-glow: rgba(230, 57, 70, 0.45);

  --gold: #f4c430;
  --gold-light: #ffe566;
  --gold-dark: #c9a227;
  --gold-glow: rgba(244, 196, 48, 0.4);

  --text: #f0f0f5;
  --text-muted: #a0a0b0;

  --border: rgba(244, 196, 48, 0.25);
  --border-soft: rgba(255, 255, 255, 0.08);

  --success: #22c55e;
  --vip: #90ee90;
  --elite: #00ffff;
  --titan: #ff8c00;
  --wizard: #32cd32;
  --heart: #ff69b4;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 18px 45px rgba(0, 0, 0, 0.55);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 15% -10%, rgba(230, 57, 70, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 110%, rgba(244, 196, 48, 0.10) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0c 0%, #0d0d12 55%, #0a0a0c 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

::selection {
  background: var(--red);
  color: #fff;
}

::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--red), var(--gold));
  border-radius: 999px;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  padding: 0.85rem 0;
}

.navbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), var(--gold), transparent);
  opacity: 0.55;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo — no box, border, shadow or background */
.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-area img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  transition: transform 0.35s var(--ease);
}

.logo-area:hover img {
  transform: scale(1.06);
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.4px;
  transition: all 0.3s var(--ease);
  overflow: hidden;
}

.nav-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(230, 57, 70, 0.16), rgba(244, 196, 48, 0.16));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  transform: translateY(-2px);
}

.nav-links a:hover::before,
.nav-links a.active::before {
  opacity: 1;
}

.nav-links a.giveaway-highlight {
  color: var(--red);
  border: 1px solid rgba(230, 57, 70, 0.4);
  animation: pulse-glow 1.8s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 var(--red-glow);
  }

  50% {
    box-shadow: 0 0 18px 5px var(--red-glow);
  }
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.35rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: all 0.3s var(--ease);
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s var(--ease);
  z-index: -1;
}

.btn:hover::after {
  left: 130%;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  box-shadow:
    0 5px 18px var(--red-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 10px 28px var(--red-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-dark) 100%);
  color: #171717;
  box-shadow:
    0 5px 18px var(--gold-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow:
    0 10px 28px var(--gold-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-outline {
  background: rgba(244, 196, 48, 0.05);
  border: 2px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: rgba(244, 196, 48, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px var(--gold-glow);
}

.btn-discord {
  background: #5865F2;
  color: #fff;
  box-shadow: 0 5px 18px rgba(88, 101, 242, 0.35);
}

.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(88, 101, 242, 0.45);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(18, 18, 26, 0.75);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
}

.user-badge span {
  color: var(--gold);
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(230, 57, 70, 0.18) 0%, transparent 48%),
    radial-gradient(circle at 72% 72%, rgba(244, 196, 48, 0.12) 0%, transparent 42%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 75%);
  pointer-events: none;
}

.hero-content {
  max-width: 940px;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Hero logo — clean, no frame/box */
.hero-logo {
  width: 145px;
  height: 145px;
  object-fit: contain;
  margin: 0 auto 1.75rem;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  animation: float 4.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 0.6rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--gold) 42%, var(--red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hero-glow 3.5s ease-in-out infinite;
}

@keyframes hero-glow {
  0%, 100% {
    filter: drop-shadow(0 0 18px rgba(244, 196, 48, 0.22));
  }

  50% {
    filter: drop-shadow(0 0 30px rgba(230, 57, 70, 0.35));
  }
}

.hero .tagline {
  font-size: 1.35rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  font-weight: 600;
}

/* ========== HOME CARDS ========== */
.ip-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.ip-card {
  background: linear-gradient(145deg, rgba(18, 18, 26, 0.92), rgba(10, 10, 12, 0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.6rem;
  min-width: 230px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.35s var(--ease);
}

.ip-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.ip-card:hover::before {
  transform: scaleX(1);
}

.ip-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.5),
    0 0 24px var(--gold-glow);
}

.ip-card .label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-bottom: 0.4rem;
}

.ip-card .value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold);
  word-break: break-all;
}

.ip-card .copy-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  opacity: 0.75;
}

.players-monitor {
  background: linear-gradient(145deg, rgba(18, 18, 26, 0.92), rgba(10, 10, 12, 0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.players-monitor::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(244, 196, 48, 0.08), transparent);
  animation: shimmer 3.2s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.players-icon {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--red), var(--gold));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 0 22px var(--gold-glow);
  animation: pulse-scale 2.2s ease-in-out infinite;
}

@keyframes pulse-scale {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.09);
  }
}

.players-info .count {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--gold);
}

.players-info .label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.online-dot {
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 12px var(--success);
  animation: blink 1.3s infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(0.85);
  }
}

/* ========== SECTIONS ========== */
.section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section + .section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 0.55rem;
  background: linear-gradient(90deg, var(--gold), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.75rem;
  font-size: 1.1rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: linear-gradient(145deg, rgba(18, 18, 26, 0.95), rgba(10, 10, 12, 0.95));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.35s var(--ease);
}

.info-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(230, 57, 70, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.info-card:hover::before {
  opacity: 1;
}

.info-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.5),
    0 0 22px var(--gold-glow);
}

.info-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card ul {
  list-style: none;
}

.info-card li {
  padding: 0.5rem 0 0.5rem 1.45rem;
  position: relative;
  color: var(--text-muted);
  font-size: 1.05rem;
  transition: color 0.25s ease;
}

.info-card li:hover {
  color: var(--text);
}

.info-card li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: bold;
}

/* ========== STORE ========== */
.store-header {
  text-align: center;
  padding: 8rem 1.5rem 2rem;
}

.ranks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.rank-card {
  background: linear-gradient(160deg, rgba(18, 18, 26, 0.96), rgba(10, 10, 12, 0.96));
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s var(--ease);
}

.rank-card:hover {
  transform: translateY(-9px) scale(1.02);
  box-shadow: var(--shadow-strong);
}

.rank-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.07) 50%, transparent 80%);
  transform: translateX(-100%);
  transition: transform 0.75s var(--ease);
  pointer-events: none;
}

.rank-card:hover::after {
  transform: translateX(100%);
}

.rank-card.vip {
  border-color: var(--vip);
}

.rank-card.elite {
  border-color: var(--elite);
}

.rank-card.titan {
  border-color: var(--titan);
}

.rank-card.wizard {
  border-color: var(--wizard);
}

.rank-card.heart {
  border-color: var(--heart);
}

.rank-header {
  padding: 1.6rem;
  text-align: center;
}

.rank-card.vip .rank-header {
  background: linear-gradient(180deg, rgba(144, 238, 144, 0.18), transparent);
}

.rank-card.elite .rank-header {
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.18), transparent);
}

.rank-card.titan .rank-header {
  background: linear-gradient(180deg, rgba(255, 140, 0, 0.18), transparent);
}

.rank-card.wizard .rank-header {
  background: linear-gradient(180deg, rgba(50, 205, 50, 0.18), transparent);
}

.rank-card.heart .rank-header {
  background: linear-gradient(180deg, rgba(255, 105, 180, 0.22), transparent);
}

.rank-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 0.4rem;
  letter-spacing: 1px;
}

.rank-card.vip .rank-name {
  color: var(--vip);
}

.rank-card.elite .rank-name {
  color: var(--elite);
}

.rank-card.titan .rank-name {
  color: var(--titan);
}

.rank-card.wizard .rank-name {
  color: var(--wizard);
}

.rank-card.heart .rank-name {
  color: var(--heart);
}

.rank-price {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--gold);
}

.rank-price span {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

.rank-body {
  padding: 0 1.5rem 1.6rem;
}

.rank-perks {
  list-style: none;
  margin-bottom: 1.3rem;
}

.rank-perks li {
  padding: 0.4rem 0;
  font-size: 0.98rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rank-perks li::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.78rem;
}

.rank-card .btn {
  width: 100%;
}

.crates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.crate-card {
  background: linear-gradient(145deg, rgba(18, 18, 26, 0.95), rgba(10, 10, 12, 0.95));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.35s var(--ease);
}

.crate-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center top, rgba(230, 57, 70, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.crate-card:hover::before {
  opacity: 1;
}

.crate-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.5),
    0 0 25px var(--gold-glow);
}

.crate-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.crate-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.crate-price {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 1rem;
}

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: linear-gradient(160deg, rgba(18, 18, 26, 0.98), rgba(10, 10, 12, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow:
    var(--shadow-strong),
    0 0 35px rgba(244, 196, 48, 0.12);
  animation: modalIn 0.35s var(--ease);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(24px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  color: var(--gold);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: all 0.25s var(--ease);
}

.modal-close:hover {
  color: var(--red);
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.5rem;
}

.modal-screenshot {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  margin-bottom: 1.25rem;
  background: var(--bg-card-hover);
  min-height: 180px;
  object-fit: cover;
}

.modal-perks {
  list-style: none;
  margin-bottom: 1.5rem;
}

.modal-perks li {
  padding: 0.45rem 0;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
}

.modal-perks li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
}

/* ========== GIVEAWAY ========== */
.giveaway-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 7.5rem 1rem 4rem;
}

.giveaway-hero {
  position: relative;
  text-align: center;
  margin-bottom: 2rem;
  padding: 2.5rem 1rem;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(230, 57, 70, 0.22), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(244, 196, 48, 0.18), transparent 55%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(14px);
}

.hero-glow {
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(244, 196, 48, 0.16) 20%,
    transparent 40%,
    rgba(230, 57, 70, 0.16) 65%,
    transparent 90%
  );
  animation: heroSpin 14s linear infinite;
  pointer-events: none;
}

@keyframes heroSpin {
  to {
    transform: rotate(360deg);
  }
}

.giveaway-hero .section-title,
.giveaway-hero .section-subtitle {
  position: relative;
  z-index: 1;
}

.giveaway-card {
  background: linear-gradient(160deg, rgba(18, 18, 26, 0.96), rgba(10, 10, 12, 0.96));
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  animation: cardIn 0.45s var(--ease) both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.giveaway-card.active-border {
  border-color: rgba(244, 196, 48, 0.55);
  box-shadow:
    0 0 0 1px rgba(244, 196, 48, 0.16),
    0 22px 60px rgba(244, 196, 48, 0.12);
}

.giveaway-card.winner-card {
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.18),
    0 22px 60px rgba(34, 197, 94, 0.14);
}

.giveaway-card-header {
  text-align: center;
}

.giveaway-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0d0d0d;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  margin-bottom: 1rem;
}

.giveaway-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.45rem, 4vw, 2.1rem);
  margin-bottom: 0.55rem;
  color: #fff;
}

.giveaway-description {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

.giveaway-timer-wrap {
  margin: 1.8rem 0 1.2rem;
  text-align: center;
}

.giveaway-timer {
  display: inline-block;
  min-width: 290px;
  padding: 0.9rem 1.25rem;
  border-radius: 18px;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.7rem, 6vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.22), rgba(244, 196, 48, 0.16));
  border: 1px solid rgba(244, 196, 48, 0.28);
  text-shadow: 0 0 22px rgba(244, 196, 48, 0.35);
  animation: timerPulse 2.4s ease-in-out infinite;
}

@keyframes timerPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(244, 196, 48, 0);
  }

  50% {
    box-shadow: 0 0 28px rgba(244, 196, 48, 0.16);
  }
}

.timer-label {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.giveaway-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.stat-box {
  padding: 1rem;
  border-radius: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
}

.stat-value {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gold);
}

.stat-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.giveaway-action {
  width: 100%;
  font-weight: 700;
}

.entered-btn {
  cursor: not-allowed;
  opacity: 0.75;
}

.btn-loading {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 0.45rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -2px;
  animation: spin 0.7s linear infinite;
}

.winners-box {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 18px;
  text-align: center;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.winners-box h3 {
  margin-bottom: 0.8rem;
  color: #7ee787;
  font-family: 'Orbitron', sans-serif;
}

.winner-name {
  padding: 0.55rem 0.8rem;
  margin-bottom: 0.45rem;
  border-radius: 12px;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.18);
}

.claimed-message {
  margin-top: 1rem;
  text-align: center;
  color: var(--success);
}

.entrants-title {
  margin-top: 1.7rem;
  margin-bottom: 0.8rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  color: var(--gold);
}

.entrants-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.55rem;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.entrant-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  border-radius: 13px;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border-soft);
  transition: all 0.2s ease;
}

.entrant-item:hover {
  border-color: rgba(244, 196, 48, 0.35);
  transform: translateY(-1px);
}

.entrant-item .num {
  min-width: 34px;
  padding: 0.18rem 0.35rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0d0d0d;
  background: var(--gold);
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  background: linear-gradient(160deg, rgba(18, 18, 26, 0.96), rgba(10, 10, 12, 0.96));
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.empty-state .icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

/* ========== AUTH ========== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 3rem;
}

.auth-card {
  background: linear-gradient(160deg, rgba(18, 18, 26, 0.96), rgba(10, 10, 12, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 430px;
  box-shadow:
    var(--shadow-strong),
    0 0 30px rgba(244, 196, 48, 0.10);
}

.auth-card h1 {
  font-family: 'Orbitron', sans-serif;
  text-align: center;
  margin-bottom: 0.4rem;
  background: linear-gradient(90deg, var(--gold), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 0.35rem;
}

.auth-tab {
  flex: 1;
  padding: 0.7rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 0 18px var(--red-glow);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  outline: none;
  transition: all 0.25s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow:
    0 0 0 3px rgba(244, 196, 48, 0.10),
    0 0 18px rgba(244, 196, 48, 0.18);
}

.form-error {
  color: var(--red);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: none;
}

.form-error.show {
  display: block;
  animation: shake 0.35s ease;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

.form-success {
  color: var(--success);
  font-size: 0.95rem;
  margin-top: 0.5rem;
  display: none;
}

.form-success.show {
  display: block;
  animation: fade-up 0.35s var(--ease);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.confirm-box {
  background: rgba(230, 57, 70, 0.10);
  border: 1px solid var(--red);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* ========== ADMIN ========== */
.admin-page {
  padding: 7rem 1.5rem 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.admin-grid {
  display: grid;
  gap: 1.5rem;
}

.admin-card {
  background: linear-gradient(160deg, rgba(18, 18, 26, 0.96), rgba(10, 10, 12, 0.96));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.35s var(--ease);
}

.admin-card:hover {
  border-color: var(--gold);
  box-shadow:
    var(--shadow-soft),
    0 0 20px var(--gold-glow);
}

.admin-card h2 {
  font-family: 'Orbitron', sans-serif;
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
}

.status-badge {
  display: inline-block;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
}

.status-badge.active {
  background: rgba(34, 197, 94, 0.18);
  color: var(--success);
}

.status-badge.ended {
  background: rgba(244, 196, 48, 0.18);
  color: var(--gold);
}

.status-badge.off {
  background: rgba(160, 160, 176, 0.18);
  color: var(--text-muted);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.ticket-item {
  background: rgba(0, 0, 0, 0.28);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--gold);
  transition: all 0.3s var(--ease);
}

.ticket-item:hover {
  transform: translateX(4px);
  box-shadow: 0 0 18px rgba(244, 196, 48, 0.14);
}

.ticket-item.resolved {
  border-left-color: var(--success);
  opacity: 0.72;
}

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 2.25rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  margin-top: 3rem;
  background: linear-gradient(180deg, transparent, rgba(230, 57, 70, 0.05));
}

.footer a {
  color: var(--gold);
  text-decoration: none;
  transition: all 0.25s var(--ease);
}

.footer a:hover {
  color: var(--gold-light);
}

/* ========== TOASTS ========== */
.toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: linear-gradient(145deg, rgba(18, 18, 26, 0.97), rgba(10, 10, 12, 0.97));
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  min-width: 290px;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.55),
    0 0 20px rgba(244, 196, 48, 0.18);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: toastIn 0.4s var(--ease);
}

.toast.giveaway {
  border-color: var(--red);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.55),
    0 0 25px var(--red-glow);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(45px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========== MOBILE ========== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.6rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease);
}

.menu-toggle:hover {
  transform: scale(1.12);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 12, 0.98);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border-soft);
    display: none;
    box-shadow: var(--shadow-strong);
  }

  .nav-links.open {
    display: flex;
    animation: fade-up 0.3s var(--ease);
  }

  .nav-auth {
    display: none;
  }

  .nav-links.open + .nav-auth,
  .nav-links.open ~ .nav-auth {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 1rem 1rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .ip-cards {
    flex-direction: column;
    align-items: center;
  }

  .players-monitor {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: 3.5rem 1rem;
  }

  .giveaway-page {
    padding: 6.5rem 0.8rem 3rem;
  }

  .giveaway-card,
  .auth-card,
  .modal {
    padding: 1.5rem;
  }

  .giveaway-timer {
    min-width: 100%;
  }

  .giveaway-stats {
    grid-template-columns: 1fr;
  }
}

/* ========== LOADING ========== */
.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(244, 196, 48, 0.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* =========================================================
   MONETAG ADS — NATIVE BANNER + SOCIAL BAR
   HEROWAR SMP THEME
   ========================================================= */

/* ---------- Native Banner Wrapper ---------- */
.ad-native-wrapper {
  max-width: 100%;
  margin: 2.5rem auto;
  padding: 1rem;
  background: linear-gradient(
    145deg,
    rgba(18, 18, 26, 0.96),
    rgba(10, 10, 12, 0.96)
  );
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
}

.ad-native-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  opacity: 0.85;
}

.ad-native-wrapper:hover {
  border-color: var(--border);
  box-shadow:
    var(--shadow-soft),
    0 0 22px rgba(244, 196, 48, 0.12);
}

/* Ad label */
.ad-native-wrapper::after {
  content: 'Advertisement';
  position: absolute;
  top: 0.55rem;
  right: 0.85rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.65;
  pointer-events: none;
}

/* Monetag ad container */
.ad-native-wrapper iframe,
.ad-native-wrapper ins,
.ad-native-wrapper > div {
  max-width: 100% !important;
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
}

/* Home page ke liye compact banner */
.ad-native-home {
  max-width: 940px;
  margin: 2rem auto 3rem;
}

/* Store / section ke beech wide banner */
.ad-native-wide {
  max-width: 1200px;
  margin: 3rem auto;
}

/* Sidebar / narrow placement */
.ad-native-side {
  max-width: 340px;
  margin: 0 auto 2rem;
}

/* ---------- Social Bar Safe Area ---------- */

/* Social Bar bottom overlay ke liye page spacing */
body.has-social-bar {
  padding-bottom: 74px;
}

@media (max-width: 768px) {
  body.has-social-bar {
    padding-bottom: 88px;
  }
}

/* Footer ko Social Bar se overlap hone se bachao */
body.has-social-bar .footer {
  margin-bottom: 0;
  padding-bottom: 2.75rem;
}

/* Mobile navbar ke saath conflict avoid karo */
@media (max-width: 768px) {
  body.has-social-bar .navbar {
    z-index: 1000;
  }
}

/* Social Bar ke upar content visible rahe */
.modal-overlay {
  z-index: 4000;
}

.toast-container {
  z-index: 5000;
}

/* ---------- Mobile tuning ---------- */
@media (max-width: 768px) {
  .ad-native-wrapper {
    margin: 1.75rem auto;
    padding: 0.75rem;
    border-radius: var(--radius-md);
  }

  .ad-native-wrapper::after {
    font-size: 0.6rem;
    right: 0.65rem;
  }

  .ad-native-wide,
  .ad-native-home,
  .ad-native-side {
    margin: 1.75rem auto;
  }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  .ad-native-wrapper,
  .ad-native-wrapper::before {
    transition: none !important;
  }
}
