html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: url('mouse.png'), auto;
}

:root {
  --bg-primary: transparent;
  --bg-secondary: rgba(255, 255, 255, 0.03);
  --bg-card: rgba(255, 255, 255, 0.05);
  --accent-purple: #a855f7;
  --accent-blue: #3b82f6;
  --accent-orange: #f59e0b;
  --accent-pink: #ec4899;
  --accent-green: #10b981;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-bg: transparent;
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.2);
}

/* ===== RUNNING TEXT (MARQUEE) ===== */
.marquee-container {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 12px 0;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  margin-top: 70px;
  z-index: 99;
  letter-spacing: 0.5px;
}

.marquee-text {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  padding-left: 100%;
}

@keyframes marquee {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(-100%, 0);
  }
}

.marquee-text span {
  margin-right: 60px;
  color: #ffb800;
  /* Vibrant Gold/Orange */
  text-shadow: 0 0 10px rgba(255, 184, 0, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

body {
  font-family: 'Outfit', 'Inter', sans-serif;
  background: transparent;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== VIDEO BACKGROUND ===== */
.video-background {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -2;
  object-fit: cover;
  filter: blur(5px);
  transform: scale(1.02);
}

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: -1;
  pointer-events: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--accent-purple);
  border-radius: 3px;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.logo img {
  height: 45px;
  width: auto;
  border-radius: 8px;
  transition: transform 0.3s;
}

.logo span {
  color: var(--accent-orange);
}

.logo:hover img {
  transform: scale(1.05);
}

nav {
  flex: 2;
  display: flex;
  justify-content: center;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #ffffff;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: all 0.3s;
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

nav a:hover,
nav a.active {
  color: var(--text-primary);
  background: var(--glass-bg);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
  border-radius: 1px;
  animation: navGlow 2s ease-in-out infinite;
}

@keyframes navGlow {

  0%,
  100% {
    box-shadow: 0 0 4px rgba(139, 92, 246, 0.5);
    width: 20px;
  }

  50% {
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.8);
    width: 30px;
  }
}

.header-actions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.btn-discord {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: #5865F2;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.btn-back {
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
}

.btn-back:hover {
  background: rgba(0, 0, 0, 0.6) !important;
  transform: translateX(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== HERO OVERHAUL ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 2rem;
  position: relative;
  perspective: 1500px;
  overflow: hidden;
}

.hero-content {
  max-width: 850px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  animation: heroAppear 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes heroAppear {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.4rem;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #e9d5ff;
  margin-bottom: 2.5rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

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

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 950;
  line-height: 1.2;
  margin-bottom: 2rem;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -1px;
}

.hero h1 .gradient-text {
  display: inline-block;
  background: linear-gradient(135deg, #a855f7, #3b82f6, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #a855f7;
  /* Fallback for browsers that don't support clipping */
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  display: block;
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  color: #fff;
  font-weight: 800;
  margin-top: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.3;
  opacity: 0.9;
}

.hero p {
  font-size: 1.2rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 2rem auto;
  line-height: 1.7;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary {
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, #ff4d4d, #c0392b);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: none;
}

.btn-primary:hover::before {
  animation: shimmer 0.8s ease;
}

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

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

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  background: linear-gradient(135deg, #ff5e5e, #d35400);
  box-shadow: 0 10px 30px rgba(255, 77, 77, 0.5);
}

.btn-secondary {
  padding: 0.8rem 2rem;
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Stats Bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: #f59e0b;
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes statGlow {

  0%,
  100% {
    background-position: 0% 50%;
    filter: brightness(1);
  }

  50% {
    background-position: 100% 50%;
    filter: brightness(1.2);
  }
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 0.2rem;
}

.stat-item {
  text-align: center;
  transition: transform 0.3s;
}

.stat-item:hover {
  transform: scale(1.1);
}

/* Advanced Snow & Particles */
.particles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: white;
  font-size: 1.5rem;
  pointer-events: none;
  opacity: 0.8;
  animation: fall linear infinite;
  user-select: none;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  100% {
    transform: translateY(100vh) translateX(40px) rotate(360deg);
  }
}

/* Mouse Snowflake Effect */
.mouse-snowflake {
  position: fixed;
  color: white;
  font-size: 1.2rem;
  pointer-events: none;
  z-index: 9999;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  animation: fallAndFade 1.2s ease-out forwards;
  user-select: none;
}

@keyframes fallAndFade {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(100px) rotate(360deg);
    opacity: 0;
  }
}

/* ===== SECTION COMMON ===== */
/* Realistic Click Ripple (Multi-layer) */
.click-ripple {
  position: fixed;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%) scale(0);
  animation: realisticRipple 1.2s cubic-bezier(0, 0.5, 0.5, 1) forwards;
}

@keyframes realisticRipple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.8;
    border-width: 3px;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    border-width: 0.5px;
    width: 300px;
    height: 300px;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

#contact,
#features {
  margin-top: 30rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10rem;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
  border-radius: 2px;
  margin: 1rem auto 1.5rem;
  animation: expandLine 1s ease-out;
}

@keyframes expandLine {
  from {
    width: 0;
    opacity: 0;
  }

  to {
    width: 60px;
    opacity: 1;
  }
}

.section-header p {
  color: white;
  font-size: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  line-height: 2.1;
  margin-top: 1rem;
}

/* ===== FILTERS ===== */
.filters {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

/* ===== CATEGORY GRID ===== */
.services-section {
  scroll-margin-top: 80px;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
}

.category-card {
  width: 100%;
  max-width: 240px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s;
  text-align: center;
  position: relative;
}

.category-card:hover {
  transform: translateY(-10px);
  background: rgba(0, 0, 0, 0.4);
}

.category-card::after,
.product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transition: none;
  pointer-events: none;
}

.category-card:hover::after,
.product-card:hover::after {
  animation: shimmer 0.8s ease;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.cat-banner {
  height: 120px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}

.cat-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-info {
  padding: 1.2rem;
}

.cat-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.8rem;
  line-height: 1.4;
  color: var(--text-primary);
}

.cat-count {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.cat-price-from {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--accent-orange);
  font-weight: 700;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.product-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  background: rgba(0, 0, 0, 0.4);
}

.card-banner {
  height: 140px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
  transform: translateX(-100%);
}

.product-card:hover .card-banner::after {
  animation: cardShimmer 1s ease;
}

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

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



.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-hot {
  background: rgba(239, 68, 68, 0.9);
  color: white;
}

.badge-vip {
  background: rgba(245, 158, 11, 0.9);
  color: #1a1a1a;
}

.badge-new {
  background: rgba(16, 185, 129, 0.9);
  color: white;
}

.card-body {
  padding: 1.2rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-id {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.card-stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0.4rem 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.card-stat .icon {
  font-size: 0.9rem;
}

.card-stat .value {
  color: var(--text-primary);
  font-weight: 600;
}

.card-fruits {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.fruit-tag {
  padding: 0.2rem 0.5rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--accent-purple);
  font-weight: 600;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

.card-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-orange);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.card-price small {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.btn-buy {
  padding: 0.5rem 1.2rem;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-buy.disabled {
  background: #64748b !important;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-buy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
  transform: translateX(-100%);
}

.btn-buy:hover::before {
  animation: shimmer 0.6s ease;
}

.btn-buy:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

/* ===== FEATURES ===== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0 2rem;
}

.feature-card {
  flex: 1 1 calc(50% - 3rem);
  min-width: 320px;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.feature-card:last-child {
  flex: 0 1 calc(50% - 2rem);
}

.feature-card:hover {
  transform: translateY(-10px);
  background: rgba(0, 0, 0, 0.4);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  background: rgba(59, 130, 246, 0.1);
  transition: all 0.4s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(-5deg);
  background: rgba(59, 130, 246, 0.2);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.feature-card:hover h3 {
  color: var(--accent-purple);
}

.feature-card p {
  font-size: 0.85rem;
  color: white;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  opacity: 0.85;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.8) translateY(40px);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

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

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.modal-body {
  padding: 1.5rem;
}

.modal-detail {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.modal-detail .label {
  color: var(--text-secondary);
}

.modal-detail .value {
  font-weight: 600;
}

.modal-fruits-list {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.modal-price {
  text-align: center;
  padding: 1.5rem;
  margin-top: 1rem;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 12px;
}

.modal-price .price-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-orange);
}

.modal-price .price-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  gap: 0.75rem;
}

.modal-footer .btn-primary {
  flex: 1;
  justify-content: center;
}

.modal-footer .btn-secondary {
  flex: 0.6;
  justify-content: center;
}

/* ===== FOOTER ===== */
footer {
  background: transparent;
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  margin-top: 4rem;
  text-align: center;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-brand .logo {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  justify-content: center;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
}

.footer-links-group h4 {
  display: none;
  /* Hide header for centered footer */
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-links-group a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.footer-links-group a:hover {
  color: var(--accent-purple);
  transform: translateY(-2px);
}

.footer-contact {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-contact h4 {
  display: none;
}

.footer-contact p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-links-group ul {
    gap: 1.5rem;
  }

  .footer-contact {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

@keyframes floatSnow {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(5px) rotate(5deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== AUTH BUTTON ===== */
.btn-auth {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}

.btn-auth:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.auth-icon {
  font-size: 1rem;
}

/* ===== USER PROFILE DROPDOWN ===== */
.user-profile {
  position: relative;
}

.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}

.user-avatar-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-purple);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
}

.user-avatar.large {
  width: 42px;
  height: 42px;
  font-size: 1rem;
  border-radius: 10px;
}

.user-name {
  font-weight: 600;
  font-size: 0.85rem;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-arrow {
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: transform 0.3s;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  z-index: 1001;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
}

.dropdown-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.dropdown-email {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.dropdown-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 0.3rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background: var(--glass-bg);
  color: var(--text-primary);
}

.dropdown-item.logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* ===== AUTH MODAL ===== */
.auth-modal {
  max-width: 440px;
}

.auth-tabs {
  display: flex;
  padding: 0 1.5rem;
  gap: 0;
  border-bottom: 1px solid var(--glass-border);
}

.auth-tab {
  flex: 1;
  padding: 0.8rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}

.auth-tab:hover {
  color: var(--text-primary);
}

.auth-tab.active {
  color: var(--accent-purple);
  border-bottom-color: var(--accent-purple);
}

.auth-form {
  animation: fadeInUp 0.3s ease;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
select,
textarea {
  width: 100%;
  padding: 0.8rem 1.2rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-size: 0.95rem;
  transition: all 0.3s;
  outline: none;
}

textarea {
  resize: none;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.form-group input::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 3rem;
}

.toggle-password {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.3rem;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.toggle-password:hover {
  opacity: 1;
}

.password-strength {
  margin-top: 0.4rem;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.3s;
}

.password-strength::after {
  content: '';
  display: block;
  height: 100%;
  border-radius: 2px;
  transition: all 0.3s;
}

.password-strength.weak::after {
  width: 33%;
  background: #ef4444;
}

.password-strength.medium::after {
  width: 66%;
  background: var(--accent-orange);
}

.password-strength.strong::after {
  width: 100%;
  background: var(--accent-green);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.remember-me input[type="checkbox"] {
  accent-color: var(--accent-purple);
  width: 14px;
  height: 14px;
}

.forgot-password {
  color: var(--accent-purple);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.forgot-password:hover {
  color: var(--accent-pink);
}

.terms-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  cursor: pointer;
}

.terms-check input {
  accent-color: var(--accent-purple);
  width: 14px;
  height: 14px;
}

.terms-check a {
  color: var(--accent-purple);
  text-decoration: none;
}

.terms-check a:hover {
  text-decoration: underline;
}

.form-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  min-height: 0;
  transition: all 0.3s;
}

.form-error:not(:empty) {
  padding: 0.5rem 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-auth-submit {
  width: 100%;
  justify-content: center;
  padding: 0.85rem;
  font-size: 1rem;
}

/* Success toast */
.toast {
  position: fixed;
  top: 90px;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-left: 3px solid var(--accent-green);
}

.toast.error {
  border-left: 3px solid #ef4444;
}

/* Member Info Styles */
.member-info-card {
  text-align: center;
  padding: 1rem 0;
}

.member-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.member-rank {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 1.5rem;
}

.member-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.member-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.member-stat-card .stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.member-stat-card .stat-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-purple);
}

.member-stat-card .stat-lbl {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

/* ===== DROPDOWN BALANCE ===== */
.dropdown-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  margin: 0.3rem 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 10px;
}

.balance-info {
  display: flex;
  flex-direction: column;
}

.balance-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.balance-amount {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-orange);
}

.btn-topup-small {
  padding: 0.3rem 0.7rem;
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}

.btn-topup-small:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

/* ===== TOPUP MODAL ===== */
.topup-modal {
  max-width: 520px;
}

.topup-balance-display {
  text-align: center;
  padding: 1.2rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 14px;
  margin-bottom: 1.5rem;
}

.topup-balance-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.topup-balance-value {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.topup-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.topup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.topup-amount-btn {
  padding: 0.7rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  font-family: 'Inter', sans-serif;
}

.topup-amount-btn:hover {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.1);
}

.topup-amount-btn.selected {
  border-color: var(--accent-green);
  background: rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.topup-amount-btn.popular {
  position: relative;
}

.popular-tag {
  position: absolute;
  top: -6px;
  right: -6px;
  padding: 0.1rem 0.4rem;
  background: var(--accent-orange);
  color: #1a1a1a;
  font-size: 0.6rem;
  font-weight: 800;
  border-radius: 4px;
}

.topup-custom {
  margin-bottom: 1rem;
}

.topup-custom label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.topup-custom-input {
  position: relative;
}

.topup-custom-input input {
  width: 100%;
  padding: 0.7rem 4rem 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.3s;
}

.topup-custom-input input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.currency-suffix {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
}

.topup-selected {
  margin-bottom: 1rem;
}

.topup-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  font-weight: 600;
}

.topup-summary-amount {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-green);
}


/* Payment - ZaloPay */
.topup-methods {
  margin-bottom: 1rem;
}

/* ZaloPay Badge */
.zalopay-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.zalopay-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, #0068FF, #00A3FF);
  color: white;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(0, 104, 255, 0.3);
}

/* QR Code Section */
.topup-qr-section {
  margin-bottom: 1.5rem;
}

.qr-code-wrapper {
  text-align: center;
}

.qr-code-box {
  display: inline-flex;
  padding: 1rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.75rem;
}

.qr-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Bank Details */
.topup-bank-info {
  margin-bottom: 1.5rem;
}

.bank-details {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.bank-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.05);
  font-size: 0.85rem;
}

.bank-detail-row:last-child {
  border-bottom: none;
}

.bank-label {
  color: var(--text-secondary);
}

.bank-value {
  font-weight: 700;
  color: var(--text-primary);
}

.bank-value.copyable {
  cursor: pointer;
  color: var(--accent-purple);
  transition: all 0.2s;
}

.bank-value.copyable:hover {
  color: var(--accent-pink);
}

.bank-value.copied {
  color: var(--accent-green) !important;
}

.topup-note {
  padding: 0.75rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.topup-note strong {
  color: var(--accent-orange);
}

/* Transaction History */
.transaction-list {
  margin-top: 1rem;
}

.transaction-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  transition: all 0.3s;
}

.transaction-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

.transaction-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.transaction-icon.topup {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.transaction-icon.purchase {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.transaction-info {
  flex: 1;
}

.transaction-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.transaction-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.transaction-amount {
  font-weight: 800;
  font-size: 1.1rem;
  white-space: nowrap;
}

.transaction-amount.positive {
  color: var(--accent-green);
}

.transaction-amount.negative {
  color: #ef4444;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  header {
    padding: 0 1rem;
  }

  nav {
    position: static;
    transform: none;
    display: none;
    /* Default mobile behavior */
  }

  nav.open {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  nav a {
    display: block;
    padding: 0.75rem 1rem;
  }

  .stats-bar {
    gap: 1.5rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== BDT ANNOUNCEMENT STYLE ===== */
.announcement-modal.bdt-style {
  max-width: 500px !important;
  border: 2px solid #e74c3c !important;
  border-radius: 12px;
  overflow: hidden;
}

.bdt-promo-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.promo-box {
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  border: 2px solid;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
}

.promo-box.gold {
  border-color: #f1c40f;
}

.promo-box.green {
  border-color: #2ecc71;
}

.promo-box.red {
  border-color: #e74c3c;
}

.promo-box.dark-green {
  border-color: #27ae60;
}

.promo-box h4,
.promo-box h5 {
  margin-bottom: 5px;
  font-weight: 800;
}

.promo-box.gold h4 {
  color: #f1c40f;
}

.promo-box.green h5 {
  color: #2ecc71;
}

.promo-box.red h5 {
  color: #e74c3c;
}

.promo-box.dark-green h5 {
  color: #27ae60;
}

.promo-box ul {
  list-style: none;
  font-size: 0.8rem;
  color: #fff;
}

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

.highlight {
  background: #f1c40f;
  color: #000;
  padding: 2px 5px;
  border-radius: 4px;
}

.btn-bdt-close-1h,
.btn-bdt-close {
  padding: 6px 15px;
  border: none;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
}

.btn-bdt-close-1h {
  background: #e74c3c;
}

.btn-bdt-close {
  background: #555;
}

.btn-bdt-close-1h:hover {
  background: #c0392b;
}

.btn-bdt-close:hover {
  background: #444;
}

/* Existing footer override */
.bdt-style .modal-footer {
  border-top: none;
}

/* Fix SweetAlert z-index to be above member modal */
.swal2-container {
  z-index: 9999 !important;
}

/* ===== FOOTER STYLES ===== */
footer {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 1rem 1rem;
  margin-top: 12rem;
  position: relative;
  overflow: hidden;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-links-group h4,
.footer-contact h4 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  position: relative;
  display: inline-block;
}

.footer-links-group h4::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-purple);
}

.footer-links-group ul {
  list-style: none;
}

.footer-links-group li {
  margin-bottom: 0.75rem;
}

.footer-links-group a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.footer-links-group a:hover {
  color: var(--accent-purple);
  padding-left: 5px;
}

.footer-contact p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

#services {
  margin-bottom: 4rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ===== CÀY THUÊ SECTION ===== */
.cay-thue-section {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  animation: fadeIn 0.5s ease;
}

.cay-thue-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  margin-top: 2rem;
}

.cay-thue-form {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2.5rem;
}

.cay-thue-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 1.5rem;
}

.info-card h3 {
  color: var(--accent-purple);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.info-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: bold;
}

.warning-text {
  color: #ef4444;
  font-weight: bold;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.service-selection-wrapper label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.service-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.cat-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.cat-btn.active {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: white;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.service-packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  max-height: 350px;
  overflow-y: auto;
  padding-right: 8px;
  margin-bottom: 1.5rem;
}

/* Custom Scrollbar for Package Grid */
.service-packages-grid::-webkit-scrollbar {
  width: 6px;
}

.service-packages-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.service-packages-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.pkg-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: white;
  padding: 1rem;
  border-radius: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pkg-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.pkg-btn.active {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--accent-purple);
  box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.1);
}

.pkg-name {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.pkg-price {
  font-size: 0.85rem;
  color: var(--accent-orange);
  font-weight: 700;
}

.service-details-box {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 20px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.selected-package-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#selectedPackageName {
  font-weight: 700;
  color: white;
  font-size: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.acc-info-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.btn-full {
  width: 100%;
}

.note-box {
  background: rgba(245, 158, 11, 0.1);
  border-left: 4px solid var(--accent-orange);
  padding: 1.2rem;
  border-radius: 12px;
  margin: 0.5rem 0;
}

.note-box p {
  color: var(--accent-orange);
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 992px) {
  .cay-thue-container {
    grid-template-columns: 1fr;
  }
}

/* ===== HISTORY UI UPGRADE ===== */
.history-container {
  padding: 0.5rem;
}

.history-header {
  text-align: center;
  margin-bottom: 2rem;
}

.history-icon-box {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.4));
}

.history-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
  color: white;
}

.history-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.history-summary strong {
  color: var(--accent-orange);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.history-item-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.history-item-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.history-item-icon.topup {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.history-item-icon.buy {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
}

.history-item-icon.boost {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
}

.history-item-icon.acc {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-orange);
}

.history-item-title {
  font-weight: 700;
  color: white;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.history-item-date {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.history-item-reason {
  font-size: 0.75rem;
  color: var(--accent-pink);
  margin-top: 5px;
  font-style: italic;
}

.history-item-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.history-item-amount {
  font-weight: 800;
  font-size: 1.1rem;
}

.history-item-amount.positive {
  color: var(--accent-green);
}

.history-item-amount.negative {
  color: #ef4444;
}

.history-item-status {
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-done {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.status-wait {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-orange);
}

.status-pending {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
}

.status-fail {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.btn-history-view {
  background: var(--accent-purple);
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-history-view:hover {
  background: var(--accent-pink);
  transform: scale(1.05);
}

.empty-history {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
  font-style: italic;
}


/* ===== TABBED HISTORY GUI ===== */
.modal-lg .modal {
  max-width: 900px;
  width: 95%;
}

.history-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
  flex: 1;
  padding: 0.8rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.tab-btn.active {
  background: var(--accent-purple);
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.history-content-area {
  min-height: 400px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}


@media (max-width: 1200px) {
  .history-split-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .history-split-grid {
    grid-template-columns: 1fr;
  }
}