/* Modern Dark Gaming Theme for Bootstrap 5 */
:root {
  --bg-dark: #090c15;
  --bg-card: #121826;
  --bg-card-hover: #192236;
  --border-color: rgba(255, 255, 255, 0.08);
  --accent-cyan: #00f2fe;
  --accent-purple: #9d4edd;
  --accent-pink: #ff007f;
  --accent-green: #00e676;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Navbar */
.navbar-gaming {
  background: rgba(18, 24, 38, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1rem;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Announcements Banner */
.top-announcement {
  background: linear-gradient(90deg, #7928ca, #ff0080);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  text-align: center;
}

/* Cards & Glassmorphism */
.card-gaming {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.card-gaming:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.15);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #0b0f19;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-gaming:hover .product-img-wrapper img {
  transform: scale(1.08);
}

/* Rarity Badges */
.rarity-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.rarity-legendary {
  background: linear-gradient(135deg, #ff8c00, #ff0055);
  color: #fff;
}

.rarity-epic {
  background: linear-gradient(135deg, #a100ff, #7100e2);
  color: #fff;
}

.rarity-rare {
  background: linear-gradient(135deg, #0072ff, #00c6ff);
  color: #fff;
}

.rarity-common {
  background: linear-gradient(135deg, #4b6cb7, #182848);
  color: #e2e8f0;
}

/* Buttons */
.btn-gaming {
  background: linear-gradient(135deg, var(--accent-cyan), #00a8ff);
  color: #090c15;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.4rem;
  transition: all 0.25s ease;
}

.btn-gaming:hover {
  background: linear-gradient(135deg, #33f5fe, #33b8ff);
  color: #090c15;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
}

.btn-neon-purple {
  background: linear-gradient(135deg, #7928ca, #ff0080);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.4rem;
  transition: all 0.25s ease;
}

.btn-neon-purple:hover {
  opacity: 0.95;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 0, 128, 0.4);
}

.btn-outline-gaming {
  border: 1px solid var(--border-color);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-outline-gaming:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.05);
}

/* Hero Section */
.hero-banner {
  background: radial-gradient(circle at 50% 30%, rgba(121, 40, 202, 0.25) 0%, rgba(9, 12, 21, 1) 70%);
  padding: 4rem 1rem 3.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
}

.gradient-text {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #00f5a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Digital Key Box */
.key-box {
  background-color: #0b0f19;
  border: 1px dashed var(--accent-cyan);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--accent-cyan);
  letter-spacing: 1px;
}

/* Form Controls in Dark Mode */
.form-control-dark, .form-select-dark {
  background-color: #0b0f19;
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
}

.form-control-dark:focus, .form-select-dark:focus {
  background-color: #0d1322;
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 0 0.25rem rgba(0, 242, 254, 0.15);
}

/* Admin Table */
.table-dark-custom {
  --bs-table-bg: var(--bg-card);
  --bs-table-border-color: var(--border-color);
  color: var(--text-main);
  border-radius: 12px;
  overflow: hidden;
}

/* Stats Widget */
.stat-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.5rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
