/* Modern Glassmorphic Gaming UI Theme for XYGame */

:root {
  --xy-bg-gradient: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
  --xy-glass-bg: rgba(22, 27, 34, 0.75);
  --xy-glass-card: rgba(255, 255, 255, 0.04);
  --xy-glass-card-hover: rgba(255, 255, 255, 0.08);
  --xy-glass-border: rgba(255, 255, 255, 0.12);
  --xy-accent-red: #ff334b;
  --xy-accent-red-glow: 0 8px 24px rgba(255, 51, 75, 0.4);
  --xy-accent-blue: #38bdf8;
  --xy-accent-purple: #a855f7;
  --xy-text-primary: #f8fafc;
  --xy-text-muted: #94a3b8;
  --xy-card-radius: 16px;
  --xy-badge-radius: 8px;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif !important;
  background: var(--xy-bg-gradient) !important;
  background-attachment: fixed !important;
  color: var(--xy-text-primary) !important;
  overflow-x: hidden;
}

/* Header & Megamenu Overrides */
.main-header.sticky {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  z-index: 9999 !important;
}

.main-header .megamenu {
  top: 100% !important;
  transform: none !important;
  background: rgba(22, 27, 34, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--xy-glass-border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5) !important;
}

.search-bar-wrapper {
  display: none !important;
  top: 100% !important;
}

.search-bar-wrapper.open {
  display: block !important;
}



/* Header Action Buttons with Glass Effect */
.btn-login-theme {
  background: linear-gradient(135deg, #ff334b 0%, #e11d48 100%) !important;
  color: #fff !important;
  font-weight: 700;
  border-radius: 24px !important;
  padding: 8px 24px !important;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: var(--xy-accent-red-glow);
  transition: all 0.25s ease !important;
}

.btn-login-theme:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(255, 51, 75, 0.6);
}

/* Hero Section Banners */
.banner-ads-section {
  padding: 20px 0 10px 0;
}

.img-hero-center img {
  border-radius: 20px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--xy-glass-border);
  transition: transform 0.3s ease;
}

/* Glassmorphic Cards Grid */
.product-card-modern {
  background: var(--xy-glass-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--xy-card-radius);
  border: 1px solid var(--xy-glass-border);
  overflow: hidden;
  position: relative;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin-bottom: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
}

.product-card-modern:hover {
  transform: translateY(-8px);
  background: var(--xy-glass-card-hover);
  border-color: rgba(255, 51, 75, 0.5);
  box-shadow: 0 20px 40px rgba(255, 51, 75, 0.2);
}

.product-card-thumb {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Square card thumbnail ratio */
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid var(--xy-glass-border);
}

.product-card-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.4s ease;
}

.product-card-modern:hover .product-card-thumb img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-grow: 1;
  background: rgba(22, 27, 34, 0.95);
}

.product-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.product-card-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--xy-text-muted);
}

.product-card-price .current-price {
  color: var(--xy-accent-red);
  font-size: 15px;
  font-weight: 800;
}

/* Glowing Badges */
.badge-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ff334b 0%, #d97706 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: var(--xy-badge-radius);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(255, 51, 75, 0.4);
  z-index: 2;
}

/* Feature Highlights Grid (Glass Containers) */
.features-section-modern {
  padding: 40px 0;
  background: rgba(13, 17, 23, 0.5);
  border-top: 1px solid var(--xy-glass-border);
  border-bottom: 1px solid var(--xy-glass-border);
  margin-top: 30px;
}

.feature-box-card {
  background: var(--xy-glass-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--xy-glass-border);
  border-radius: var(--xy-card-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.feature-box-card:hover {
  border-color: var(--xy-accent-red);
  background: var(--xy-glass-card-hover);
  transform: translateY(-4px);
}

.feature-box-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 51, 75, 0.15);
  color: var(--xy-accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

/* Testimonial & Trustpilot Glass Cards */
.trustpilot-header-card {
  background: rgba(22, 27, 34, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--xy-glass-border);
  border-radius: var(--xy-card-radius);
  padding: 16px 24px;
}

.trustpilot-badge-stars {
  color: #00b67a;
  font-size: 18px;
}

.review-card-modern {
  background: var(--xy-glass-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--xy-glass-border);
  border-radius: var(--xy-card-radius);
  padding: 22px;
  height: 100%;
  transition: all 0.3s ease;
}

.review-card-modern:hover {
  border-color: rgba(255, 51, 75, 0.4);
  transform: translateY(-4px);
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--xy-accent-red);
}

.review-user-name {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 2px;
}

.review-user-title {
  font-size: 12px;
  color: var(--xy-text-muted);
}

.review-stars {
  color: #ffc107;
  font-size: 13px;
  margin-bottom: 10px;
}

.review-text {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 0;
  font-style: italic;
}


/* Footer Section */
footer {
  background: rgba(9, 13, 22, 0.95) !important;
  border-top: 1px solid var(--xy-glass-border);
  padding: 50px 0 30px 0 !important;
  color: var(--xy-text-muted) !important;
}

footer h4, footer h5 {
  color: #f8fafc !important;
  font-weight: 700;
  margin-bottom: 18px;
}

footer a {
  color: var(--xy-text-muted) !important;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--xy-accent-red) !important;
}

/* 5-Column Grid Layout Utility */
@media (min-width: 992px) {
  .col-lg-2-4 {
    flex: 0 0 20% !important;
    max-width: 20% !important;
  }
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .main-logo img {
    height: 38px !important;
  }
  .product-card-modern {
    margin-bottom: 16px;
  }
  .product-card-thumb {
    padding-top: 100%;
  }
  .product-card-body {
    padding: 10px 8px;
  }
  .product-card-title {
    font-size: 12px;
  }
  .slicknav_menu {
    background: rgba(13, 17, 23, 0.96) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--xy-glass-border);
  }
  .slicknav_nav a {
    color: #f8fafc !important;
    font-weight: 600;
  }
}


