/*
 * Mega Rewards World - Styling System
 * Cyberpunk Dark Gold & Neon Green Premium Theme
 */

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

/* Language specific font override to guarantee Bengali characters never cut off or overlap */
html[lang="bn"], html[lang="bn"] * {
  font-family: 'Hind Siliguri', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: normal !important; /* Prevents letter-spacing from breaking connected Bengali text */
}

:root {
  /* Color Palette */
  --bg-primary: #0a0c10;
  --bg-secondary: #121620;
  --bg-tertiary: #191f2e;
  --bg-glow: rgba(0, 230, 118, 0.03);
  
  --accent-neon-green: #00e676;
  --accent-neon-green-glow: rgba(0, 230, 118, 0.4);
  --accent-gold: #ffc107;
  --accent-gold-glow: rgba(255, 193, 7, 0.4);
  --accent-red: #ff3d00;
  
  --text-white: #ffffff;
  --text-gray: #94a3b8;
  --text-dark: #0f172a;
  
  --card-border: rgba(255, 255, 255, 0.05);
  --card-border-hover: rgba(0, 230, 118, 0.3);
  
  /* Font Families */
  --font-display: 'Rajdhani', 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --border-radius: 12px;
}

/* Global Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-white);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #152232 0%, var(--bg-primary) 70%);
}

/* Typography Customizations */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-neon-green);
}

/* Base Layout Wrapper */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100%; /* Fully fluid full width! */
  margin: 0 auto;
  background-color: var(--bg-primary);
  position: relative;
}

/* Header Styling */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: rgba(10, 12, 16, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-neon-green), #00b0ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--text-dark);
  box-shadow: 0 0 10px var(--accent-neon-green-glow);
  font-size: 1.1rem;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, var(--text-gray));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-display);
  padding: 2px 6px;
  display: inline-block;
}

.logo-text span {
  color: var(--accent-neon-green);
  -webkit-text-fill-color: var(--accent-neon-green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Toggle Switch */
.lang-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  gap: 4px;
  transition: var(--transition-fast);
}

.lang-toggle-btn:hover {
  border-color: var(--accent-neon-green);
  color: var(--accent-neon-green);
  box-shadow: 0 0 5px rgba(0, 230, 118, 0.2);
}

/* Header Signup and Login Buttons */
.header-btn {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 800;
  transition: var(--transition-fast);
  text-transform: uppercase;
}

.btn-login {
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-login:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text-white);
}

.btn-signup {
  background: linear-gradient(135deg, var(--accent-neon-green), #00c853);
  color: var(--text-dark);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-signup::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.5s;
}

.btn-signup:hover::before {
  left: 100%;
}

.btn-signup:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.5);
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  min-height: clamp(320px, 48vw, 560px); /* Taller fluid height for premium mobile/desktop display */
  background-size: cover;
  background-position: center top; /* Align to the top so the model's head is NEVER cut off! */
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-bottom: 3px solid var(--accent-neon-green); /* Thicker premium accent border */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 12, 16, 0.95) 20%, rgba(10, 12, 16, 0.3) 65%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 24px;
  z-index: 2;
}

.hero-content {
  text-align: left;
  max-width: 90%;
  margin-bottom: 10px;
}

.hero-tag {
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  font-weight: 800;
  color: var(--accent-neon-green);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.1em;
}

.hero-title {
  font-size: clamp(1.45rem, 4.5vw, 2.5rem); /* Responsive typography */
  line-height: 1.35; /* Extra breathing room for Bengali vowel marks */
  margin-bottom: 8px;
  background: linear-gradient(to right, #ffffff, var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  padding: 4px 8px; /* Prevents edge-clipping on linear-gradient WebKit background-clip */
  display: inline-block;
  margin-left: -8px; /* Offset the padding to keep left alignment perfect */
}

.hero-subtitle {
  font-size: clamp(0.8rem, 2vw, 1.05rem); /* Safe scaling */
  color: var(--text-gray);
  margin-bottom: 16px;
  font-weight: 500;
  line-height: 1.45;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-gold), #ffab00);
  color: var(--text-dark);
  padding: 12px 30px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
  transition: var(--transition-fast);
}

.hero-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.6);
}

/* Announcement Marquee */
.announcement-container {
  display: flex;
  align-items: center;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  height: 44px; /* Increased height to give Bengali conjuncts and vowels ample breathing room */
  overflow: hidden;
  gap: 12px;
}

.announcement-icon {
  color: var(--accent-neon-green);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  animation: pulse 1.5s infinite;
  z-index: 10;
  background-color: var(--bg-secondary);
  padding-right: 8px;
}

.marquee-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.marquee-text {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 25s linear infinite;
  color: var(--accent-gold);
  font-size: 0.9rem;
  font-weight: 600;
}

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

/* Category Navigation Bar */
.category-nav {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  background-color: var(--bg-secondary);
  border-bottom: 2px solid rgba(255, 255, 255, 0.03);
  padding: 6px 4px;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 8px 4px;
  gap: 4px;
  color: var(--text-gray);
  transition: var(--transition-fast);
  cursor: pointer;
  border-radius: 8px;
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  transition: transform var(--transition-fast), stroke var(--transition-fast), filter var(--transition-fast);
}

.category-item.active .category-icon svg,
.category-item:hover .category-icon svg {
  stroke: var(--accent-neon-green);
  filter: drop-shadow(0 0 5px var(--accent-neon-green-glow));
}

.category-label {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.category-item.active, .category-item:hover {
  color: var(--accent-neon-green);
  background-color: rgba(0, 230, 118, 0.06);
}

.category-item.active .category-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 5px rgba(0, 230, 118, 0.5));
}

/* Main Content Area */
.main-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1280px; /* Centered content column on desktop */
  width: 100%;
  margin: 0 auto;
}

/* Games Grid Section */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 3px solid var(--accent-neon-green);
  padding-left: 8px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.25rem;
  color: var(--text-white);
}

.section-title span {
  color: var(--accent-neon-green);
}

.grid-3x4 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* Responsive grid layouts */
@media (min-width: 600px) {
  .grid-3x4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .grid-3x4 {
    grid-template-columns: repeat(6, 1fr); /* 6 game cards per row on large desktop views */
    gap: 20px;
  }
}

/* Game Card Designs */
.game-card {
  position: relative;
  aspect-ratio: 1 / 1; /* Perfectly square cards! Solves square image cropping and matches Baji luxury identity */
  border-radius: 16px; /* Smoother modern iOS-like rounded corners */
  overflow: hidden;
  background-color: var(--bg-secondary);
  border: 1px solid var(--card-border);
  transition: var(--transition-normal);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.game-card::before {
  content: 'bj';
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, var(--accent-gold), #ffab00);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 10;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-img-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.game-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

/* Placeholder gradients in case image is missing */
.game-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-1 { background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d); }
.placeholder-2 { background: linear-gradient(135deg, #3a1c71, #d76d77, #ffaf7b); }
.placeholder-3 { background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); }
.placeholder-4 { background: linear-gradient(135deg, #130cb7, #52e5e7); }
.placeholder-5 { background: linear-gradient(135deg, #f857a6, #ff5858); }
.placeholder-6 { background: linear-gradient(135deg, #11998e, #38ef7d); }
.placeholder-7 { background: linear-gradient(135deg, #fc4a1a, #f7b733); }
.placeholder-8 { background: linear-gradient(135deg, #74ebd5, #9face6); }

.card-overlay {
  position: absolute;
  inset: 0;
  /* Smoother, richer dark gradient overlay at the bottom only */
  background: linear-gradient(to top, rgba(10, 12, 16, 0.98) 0%, rgba(10, 12, 16, 0.75) 30%, rgba(10, 12, 16, 0.15) 75%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 10px 10px 10px; /* Ample breathing padding */
  z-index: 5;
  /* REMOVED backdrop-filter blur! This guarantees all 12 game cover poster arts are razor-sharp, crisp, and high-res! */
}

.game-title {
  font-size: clamp(0.85rem, 2.5vw, 0.95rem); /* Increased slightly for excellent readability */
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.25;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.95);
  white-space: nowrap; /* Prevent ugly line wrapping inside grid cells */
  overflow: hidden;
  text-overflow: ellipsis; /* Smooth text truncation */
  padding-left: 2px; /* Prevent Webkit clipping */
}

.game-provider {
  font-size: clamp(0.6rem, 2vw, 0.7rem);
  color: var(--accent-gold); /* Upgraded to luxury gold to contrast and pop against the dark background! */
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 4px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 2px; /* Prevent Webkit clipping */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Card Hover states matching premium casino styles */
.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--accent-neon-green);
  box-shadow: 0 8px 25px rgba(0, 230, 118, 0.35), 0 0 10px rgba(255, 193, 7, 0.15);
}

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

.game-card:hover::after {
  content: 'PLAY NOW';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-neon-green);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  z-index: 8;
  animation: fadeIn 0.2s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Ticker Section - Leaderboard */
.leaderboard-ticker {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.ticker-title {
  font-size: 0.9rem;
  color: var(--accent-neon-green);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
}

.ticker-container {
  height: 80px;
  overflow: hidden;
  position: relative;
}

.ticker-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: slideList 12s linear infinite;
}

.ticker-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  padding: 4px 6px;
  background-color: var(--bg-tertiary);
  border-radius: 4px;
}

.ticker-user {
  font-weight: 600;
  color: #e2e8f0;
}

.ticker-game {
  color: var(--text-gray);
}

.ticker-amount {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent-gold);
}

@keyframes slideList {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* Sponsor slider */
.sponsor-slider {
  background-color: var(--bg-secondary);
  padding: 12px;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.sponsor-title {
  font-size: 0.85rem;
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 10px;
}

.sponsor-marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.sponsor-track {
  display: inline-flex;
  gap: 24px;
  animation: sponsorScroll 15s linear infinite;
  align-items: center;
}

.sponsor-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--text-gray);
  background-color: var(--bg-tertiary);
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.sponsor-logo:hover {
  opacity: 1;
  color: var(--accent-neon-green);
}

@keyframes sponsorScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Footer Section */
.main-footer {
  background-color: #050608;
  padding: 24px 16px 60px 16px; /* Space at bottom for floating buttons */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-column h4 {
  font-size: 0.9rem;
  color: var(--accent-neon-green);
  margin-bottom: 8px;
  border-left: 2px solid var(--accent-neon-green);
  padding-left: 6px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--text-gray);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-neon-green);
  padding-left: 4px;
}

.footer-about {
  font-size: 0.75rem;
  color: var(--text-gray);
  line-height: 1.5;
  text-align: center;
  margin-bottom: 16px;
  background-color: var(--bg-secondary);
  padding: 12px;
  border-radius: var(--border-radius);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  transition: var(--transition-fast);
}

.social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--accent-neon-green);
  color: var(--text-dark);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

.footer-disclaimer {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1.4;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
}

/* Floating Bottom Navigation Bar (Super Premium Mobile App Look) */
.floating-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 640px;
  background-color: rgba(10, 12, 16, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 0;
  z-index: 90;
  backdrop-filter: blur(10px);
}

.float-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-gray);
  font-size: 0.72rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  gap: 2px;
  cursor: pointer;
}

.float-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.float-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  transition: transform var(--transition-fast), stroke var(--transition-fast);
}

.float-item.active .float-icon svg,
.float-item:hover .float-icon svg {
  stroke: var(--accent-neon-green);
}

.float-signup .float-icon svg {
  stroke: var(--accent-gold);
  fill: none;
}

.float-item:hover, .float-item.active {
  color: var(--accent-neon-green);
}

/* Highlight Signup button in floating menu */
.float-signup {
  color: var(--accent-gold);
  transform: scale(1.1);
  transform-origin: bottom center;
}

.float-signup .float-icon {
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.6)); }
}

/* Gateway Loading Redirect Overlay */
.gateway-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 12, 16, 0.98);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gateway-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 230, 118, 0.1);
  border-radius: 50%;
  border-top-color: var(--accent-neon-green);
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.2);
}

.gateway-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-white);
  margin-bottom: 8px;
}

.gateway-subtitle {
  font-size: 0.85rem;
  color: var(--accent-neon-green);
}

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



/* Logo Brand Styling */
.logo-img {
  height: 36px;
  max-height: 36px;
  object-fit: contain;
  display: block;
}

.footer-logo-img {
  height: 48px;
  max-height: 48px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* Responsive Desktop & Widescreen Adaptations */
@media (min-width: 769px) {
  /* Hide Mobile Floating Menu Bar on Desktop */
  .floating-bar {
    display: none;
  }
  
  /* Retain spacing at the bottom of the page now that the floating bar is hidden */
  .main-footer {
    padding: 32px 24px;
  }
  
  /* Hero Carousel widescreen mode */
  .hero-section {
    aspect-ratio: 21/9;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.15rem;
    max-width: 60%;
  }

  /* Expand footer navigation columns on desktop */
  .footer-nav {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

/* Hero compliance disclosure bar */
.hero-compliance-tag {
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 1.8vw, 0.85rem);
  font-weight: 700;
  color: var(--accent-neon-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  background-color: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  backdrop-filter: blur(5px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Footer Legal links and disclaimers */
.footer-legal-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: var(--text-gray);
}

.legal-link {
  transition: var(--transition-fast);
}

.legal-link:hover {
  color: var(--accent-neon-green);
}

.legal-separator {
  opacity: 0.3;
}

.age-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-red);
  border: 1px solid rgba(255, 61, 0, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

html[lang="bn"] .age-badge {
  font-family: 'Hind Siliguri', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important; /* Increased font-size so Bengali numerals are highly readable and clear */
}

/* Header Bangladesh Flag Badge */
.header-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px; /* Breathing space from signup button */
}

.flag-img {
  width: 28px;
  height: auto;
  aspect-ratio: 5 / 3;
  border-radius: 4px; /* Premium soft rounded edges */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
}

.disclaimer-text {
  font-size: 0.72rem;
  color: var(--text-gray);
  line-height: 1.6;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 16px auto;
  opacity: 0.7;
}
