/* Animated Casino Particles & Neon Shimmer */
@keyframes neonPulse {
  0% { box-shadow: 0 0 15px rgba(250, 93, 0, 0.4), inset 0 0 15px rgba(250, 93, 0, 0.2); }
  50% { box-shadow: 0 0 30px rgba(255, 168, 0, 0.7), inset 0 0 25px rgba(255, 168, 0, 0.4); }
  100% { box-shadow: 0 0 15px rgba(250, 93, 0, 0.4), inset 0 0 15px rgba(250, 93, 0, 0.2); }
}

@keyframes goldShine {
  0% { transform: translateX(-150%) rotate(45deg); }
  100% { transform: translateX(250%) rotate(45deg); }
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Flashy Casino Hero Background with Sparkling Strobe Overlay */
.hero-casino-container {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: 4.5rem 0;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border-glow);
  overflow: hidden;
}

.hero-casino-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(250, 93, 0, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

/* Flashy Container Patterns */
.bg-flashy-casino {
  position: relative;
  background: linear-gradient(180deg, #100B1D 0%, #170F2B 50%, #0B0813 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.bg-flashy-casino::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #ffa800, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 40px 70px, #ffdf00, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 90px 40px, #00e5ff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 160px 120px, #fa5d00, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.25;
  pointer-events: none;
}

/* Interactive Navigation Dropdowns (Max 6 Tabs) */
.nav-item-dropdown {
  position: relative;
  display: inline-block;
}

.nav-link-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #E2DCF0;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  cursor: pointer;
}

.nav-link-dropdown-toggle:hover, .nav-item-dropdown:hover .nav-link-dropdown-toggle {
  color: #FFFFFF;
  background: rgba(250, 93, 0, 0.2);
  border: 1px solid rgba(250, 93, 0, 0.4);
}

.nav-link-dropdown-toggle::after {
  content: '▼';
  font-size: 0.65rem;
  color: var(--brand-gold);
  transition: transform 0.2s ease;
}

.nav-item-dropdown:hover .nav-link-dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: rgba(18, 12, 32, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 0.6rem 0;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 15px rgba(250, 93, 0, 0.2);
  z-index: 1050;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.65rem 1.25rem;
  color: #CFC7E2;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dropdown-link:hover {
  color: #FFFFFF;
  background: linear-gradient(90deg, rgba(250, 93, 0, 0.25) 0%, transparent 100%);
  padding-left: 1.5rem;
  border-left: 3px solid var(--brand-orange);
}

/* Functional Page Specialized Layouts (Login, Register, Deposit, Withdraw, App, Promo) */
.functional-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  margin: 3rem 0;
}

.functional-card-highlight {
  background: linear-gradient(135deg, rgba(30, 21, 51, 0.9) 0%, rgba(15, 10, 26, 0.98) 100%);
  border: 1px solid var(--brand-gold);
  box-shadow: 0 10px 30px rgba(250, 93, 0, 0.25);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.functional-badge-hot {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--gradient-btn);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

/* Placecard Grid Enhancements */
.card-game {
  position: relative;
  overflow: hidden;
}

.card-game::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: all 0.75s ease;
  pointer-events: none;
  opacity: 0;
}

.card-game:hover::before {
  opacity: 1;
  animation: goldShine 1s ease-in-out;
}

/* ==========================================================================
   Postcard Placecard Styling for Featured Topic Guides
   ========================================================================== */
.postcard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 3rem 0;
}

.postcard-card {
  background: linear-gradient(145deg, rgba(28, 19, 48, 0.95) 0%, rgba(15, 10, 27, 0.98) 100%);
  border: 1px solid rgba(255, 168, 0, 0.18);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 10px rgba(250, 93, 0, 0.08);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.postcard-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--brand-gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 168, 0, 0.4);
}

.postcard-card .card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #140d24;
}

.postcard-card .card-media .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.postcard-card:hover .card-media .card-img {
  transform: scale(1.1);
}

.postcard-card .card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(11, 8, 19, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--brand-gold);
  color: var(--brand-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.postcard-card .card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.postcard-card .card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 0;
  margin-bottom: 0.6rem;
  line-height: 1.35;
  transition: color 0.25s ease;
}

.postcard-card:hover .card-title {
  color: var(--brand-gold);
}

.postcard-card .card-desc {
  font-size: 0.88rem;
  color: #CFC7E2;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.postcard-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 600;
}

.postcard-card .card-tag {
  color: var(--brand-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.postcard-card .card-btn-link {
  color: var(--brand-gold);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.postcard-card:hover .card-btn-link {
  color: #FFFFFF;
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .postcard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .postcard-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

