/**
 * EAFCSHOP Site-Specific Styles
 * Styles unique to eafcshop.com
 */

/* Currency Dropdown Styles */
.currency-dropdown {
  position: relative;
  display: inline-block;
  z-index: 100005;
}

#currency-toggle {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.currency-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 180px;
  z-index: 100007 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.currency-menu.active {
  display: block;
}

.currency-option {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.95rem;
}

.currency-option:hover {
  background: var(--bg-secondary);
}

/* Mobile: Currency dropdown should break out of header */
@media (max-width: 768px) {
  .currency-dropdown {
    position: static;
  }

  .currency-menu {
    position: fixed !important;
    top: 60px !important;
    right: 16px !important;
    left: auto !important;
    bottom: auto !important;
    margin-top: 0 !important;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: auto;
    min-width: 200px;
    max-width: calc(100vw - 32px);
    z-index: 10000 !important;
  }

  /* Prevent body scroll when dropdown is open */
  body.currency-menu-open {
    overflow: hidden;
  }
}

/* Language Dropdown Styles */
.lang-dropdown {
  position: relative;
  display: inline-block;
  z-index: 100005;
}

#lang-toggle {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 180px;
  z-index: 100007 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lang-menu.active {
  display: block;
}

.lang-option {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.95rem;
}

.lang-option:hover {
  background: var(--bg-secondary);
}

/* Mobile: Language dropdown should break out of header */
@media (max-width: 768px) {
  .lang-dropdown {
    position: static;
  }

  .lang-menu {
    position: fixed !important;
    top: 60px !important;
    right: 16px !important;
    left: auto !important;
    bottom: auto !important;
    margin-top: 0 !important;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: auto;
    min-width: 200px;
    max-width: calc(100vw - 32px);
    z-index: 10000 !important;
  }

  /* Prevent body scroll when dropdown is open */
  body.lang-menu-open {
    overflow: hidden;
  }
}

/* Mobile Currency Dropdown */
.currency-dropdown-mobile {
  width: 100%;
}

.currency-menu-mobile {
  display: none;
  width: 100%;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  margin-top: 8px;
  overflow: hidden;
}

.currency-menu-mobile.active {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.currency-option-mobile {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  font-weight: 500;
}

.currency-option-mobile:hover,
.currency-option-mobile.active {
  background: rgba(0, 200, 83, 0.2);
  border-color: #00c853;
}

/* Mobile Language Dropdown */
.lang-dropdown-mobile {
  width: 100%;
}

.lang-menu-mobile {
  display: none;
  width: 100%;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  margin-top: 8px;
  overflow: hidden;
}

.lang-menu-mobile.active {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.lang-option-mobile {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  font-weight: 500;
}

.lang-option-mobile:hover,
.lang-option-mobile.active {
  background: rgba(0, 200, 83, 0.2);
  border-color: #00c853;
}

/* Platform Section - Reduced spacing for EAFCSHOP */
#platform-section {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Platform Grid - 2 columns for EAFCSHOP */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

@media (max-width: 768px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }

  /* Hide footer partner links on mobile */
  .partner-column,
  .partner-link {
    display: none !important;
  }

  /* Centered mobile header with visible tabs */
  .site-header {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 60px !important;
    height: 60px !important;
    padding: 10px 12px !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
  }

  .site-header .header-left {
    position: static !important;
    display: flex !important;
    visibility: visible !important;
    width: auto !important;
    flex: 0 1 auto !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
    white-space: nowrap !important;
    padding-right: 0 !important;
    max-width: none !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .site-header .header-left::-webkit-scrollbar {
    display: none !important;
  }

  .site-header .header-actions {
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .site-header .header-actions::-webkit-scrollbar {
    display: none !important;
  }

  /* Ensure mobile nav overlay stays hidden unless opened */
  .mobile-nav-overlay {
    display: none !important;
    opacity: 0 !important;
  }

  .mobile-nav-overlay.is-open {
    display: flex !important;
    opacity: 1 !important;
  }

  /* Compact tab sizing */
  .site-header .header-left .link-btn,
  .site-header .header-left .live-prices-indicator,
  .site-header .mobile-menu-btn {
    height: 28px !important;
    width: 28px !important;
    padding: 0 !important;
    font-size: 12px !important;
    border-radius: 8px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Ensure header buttons stay visible on mobile */
  .site-header .header-actions button,
  .site-header .header-actions .lang-switch {
    display: flex !important;
    visibility: visible !important;
  }

  /* Keep modals below the header on mobile */
  .modal {
    align-items: flex-start !important;
    padding-top: 72px !important;
  }

  .modal .modal-content {
    margin: 0 auto 16px !important;
    max-height: calc(100vh - 88px) !important;
    min-height: auto !important;
  }

  /* Compact tab sizing to match other sites */
  .site-header .header-actions button,
  .site-header .header-left .link-btn,
  .site-header .header-left .live-prices-indicator {
    height: 28px !important;
    width: 28px !important;
    padding: 0 !important;
    font-size: 12px !important;
    border-radius: 8px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Square icon buttons stay square */
  .site-header .header-left .link-btn,
  .site-header .header-left .live-prices-indicator {
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
  }

  /* Larger touch targets for buttons */
  .platform-card .btn,
  .quantity-btn,
  .buy-btn {
    min-height: 48px;
    font-size: 1rem;
  }

  /* Better quantity selector on mobile */
  .quantity-selector {
    gap: 8px;
  }

  .quantity-btn {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  /* Compact platform cards */
  .platform-card {
    padding: 16px;
  }

  .platform-card .price {
    font-size: 1.5rem;
  }

  /* Full-width checkout on mobile */
  .checkout-section,
  .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    min-height: 100vh;
  }

  /* Sticky bottom CTA area */
  .checkout-actions {
    position: sticky;
    bottom: 0;
    background: var(--card);
    padding: 16px;
    border-top: 1px solid var(--border);
    margin: 0 -16px -16px;
    z-index: 100;
  }

  /* Compact hero section */
  .hero {
    padding: 20px 16px;
  }

  .hero .title {
    font-size: 1.5rem;
  }

}

/* EAFCSHOP Brand Colors - EA FC 26 Inspired */
:root {
  --eafcshop-black: #000000;
  --eafcshop-near-black: #0a0a0a;
  --eafcshop-dark-grey: #1a1a1a;
  --eafcshop-mid-grey: #2a2a2a;
  --eafcshop-light-grey: #3a3a3a;
  --eafcshop-border-grey: #2d2d2d;
  --eafcshop-text-white: #ffffff;
  --eafcshop-text-grey: #cccccc;
  --eafcshop-text-muted: #999999;
  --eafcshop-accent: #f0f0f0;
  --eafcshop-success: #00ff88;
  --eafcshop-error: #ff4444;
}

/* EAFCSHOP Theme Override */
body {
  --bg: var(--eafcshop-near-black);
  --card: var(--eafcshop-dark-grey);
  --card-bg: var(--eafcshop-dark-grey);
  --text-primary: var(--eafcshop-text-white);
  --text-secondary: var(--eafcshop-text-grey);
  --border-color: var(--eafcshop-border-grey);
  --primary: var(--eafcshop-text-white);
  --primary-600: var(--eafcshop-light-grey);
  --primary-color: #3b82f6; /* Use blue for chat messages, not white */
  --success-color: var(--eafcshop-success);
  --error-color: var(--eafcshop-error);
  --text: var(--eafcshop-text-white);
  --muted: var(--eafcshop-text-muted);
  --border: var(--eafcshop-border-grey);
  --accent: var(--eafcshop-accent);
}

/* EAFCSHOP Header */
.site-header {
  background: var(--eafcshop-dark-grey) !important;
}

/* EAFCSHOP Footer */
.site-footer {
  background: var(--eafcshop-black) !important;
  border-top: 1px solid var(--eafcshop-border-grey);
  color: var(--eafcshop-text-grey);
}

/* Delivery Badge on Platform Cards */
.delivery-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--eafcshop-success);
  color: var(--eafcshop-black);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 255, 136, 0.4);
}

/* EAFCSHOP Platform Cards */
.platform-card {
  background: transparent !important;
  border: none !important;
  /* Ensure card doesn't constrain image height */
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.platform-card:hover {
  border: none !important;
  background: transparent !important;
}

/* Featured item (platform) visual refresh for EAFCSHOP */
.platform-image {
  position: relative;
  /* Equal padding on all sides around the game case */
  padding: 8px;
  /* Add bottom padding to create space for price overlay */
  padding-bottom: 70px;
  border-radius: 16px;
  /* Dual-layer background to create a gradient border */
  background:
    linear-gradient(#2a2a2a, #2a2a2a) padding-box,
    linear-gradient(135deg, #22c55e, #06b6d4) border-box;
  border: 2px solid transparent;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  /* Ensure full image is visible without cutting off */
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  /* Allow container to grow to fit image content */
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
  width: 100% !important;
}

.platform-image img {
  border-radius: 10px;
  display: block;
  width: 100% !important;
  height: auto !important;
  /* Remove excessive bottom margin - image should display fully */
  margin-bottom: 0 !important;
  /* Ensure image fits properly without being cut off */
  object-fit: contain !important;
  object-position: center top !important;
  /* Prevent image from being clipped */
  max-height: none !important;
}

/* Price overlay - hidden by default, show on hover */
.price-overlay {
  position: absolute;
  inset: 8px !important;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 6px 10px;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  gap: 4px;
  /* Ensure overlay doesn't interfere with image display */
  z-index: 1;
}

.platform-image:hover .price-overlay {
  opacity: 1 !important;
  border-color: rgba(255,255,255,0.2);
}

.platform-image:hover img {
  filter: brightness(0.7) !important;
  transition: filter 0.3s ease;
}

.platform-heading {
  color: #FEDD00; /* Brazil yellow for platform name */
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 14px;
}

.price-label {
  color: rgba(255,255,255,0.65) !important;
}

.price-value {
  background: linear-gradient(135deg, #009739, #FEDD00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(254, 221, 0, 0.3);
  font-size: 36px;
  font-weight: 800;
}

@media (max-width: 768px) {
  .platform-image {
    padding: 8px;
    padding-bottom: 65px;
  }
  .platform-image img {
    margin-bottom: 0;
  }
}

/* Delivery badge: pill with darker contrast */
/* Hide delivery badge on EAFCSHOP */
.delivery-badge { display: none !important; }

/* EAFCSHOP Buttons */
.btn-primary {
  background: var(--eafcshop-text-white);
  color: var(--eafcshop-black);
  border: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--eafcshop-text-grey);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* EAFCSHOP Form Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea,
select {
  background: var(--eafcshop-mid-grey) !important;
  border: 1px solid var(--eafcshop-border-grey) !important;
  color: var(--eafcshop-text-white) !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: var(--eafcshop-light-grey) !important;
  background: var(--eafcshop-light-grey) !important;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--eafcshop-text-muted) !important;
}

/* EAFCSHOP Quantity Preset Buttons */
.quantity-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.preset-btn {
  background: rgba(0, 255, 136, 0.05);
  color: var(--eafcshop-text-white);
  border: 2px solid rgba(0, 255, 136, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 90px;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.05);
  position: relative;
}

.preset-btn:hover {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.2),
              0 0 25px rgba(0, 255, 136, 0.15);
  color: #00ff88;
}

.preset-btn.active {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 255, 136, 0.1));
  color: #00ff88;
  border-color: #00ff88;
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.3),
              inset 0 0 20px rgba(0, 255, 136, 0.1);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

@media (max-width: 768px) {
  .quantity-presets {
    gap: 0.5rem;
  }

  .preset-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    min-width: 75px;
  }
}

/* Green Neon Slider Effects for EAFCSHOP */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 5px;
  outline: none;
  transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 0;
  opacity: 0;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 0;
  height: 0;
  opacity: 0;
  cursor: pointer;
  border: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(to right,
    #00ff88 0%,
    #00ff88 var(--range-progress, 50%),
    rgba(0, 255, 136, 0.1) var(--range-progress, 50%),
    rgba(0, 255, 136, 0.1) 100%) !important;
  border-radius: 5px;
  height: 8px;
  border: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: inset 0 0 10px rgba(0, 255, 136, 0.1),
              0 0 15px rgba(0, 255, 136, 0.05);
}

input[type="range"]::-moz-range-track {
  background: rgba(0, 255, 136, 0.1);
  border-radius: 5px;
  height: 8px;
  border: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: inset 0 0 10px rgba(0, 255, 136, 0.1),
              0 0 15px rgba(0, 255, 136, 0.05);
}

input[type="range"]::-moz-range-progress {
  background: #00ff88;
  height: 8px;
  border-radius: 5px 0 0 5px;
}

/* Footer Branding Row */
.footer-branding-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin: 2rem auto 1.5rem;
  max-width: 1200px;
  padding: 0 1rem;
  flex-wrap: wrap;
}

.footer-logo-text {
  flex-shrink: 0;
}

.footer-brand-name {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

[data-theme="light"] .footer-brand-name {
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.partner-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 180px;
}
.partner-column-left {
  align-items: flex-end;
  text-align: right;
}
.partner-column-right {
  align-items: flex-start;
  text-align: left;
}

.partner-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 160px;
}

[data-theme="light"] .partner-link {
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.partner-column-left .partner-link {
  align-items: flex-end;
  text-align: right;
}
.partner-column-right .partner-link {
  align-items: flex-start;
  text-align: left;
}

.partner-link:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .partner-link:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.4);
}

.partner-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #3b82f6;
  margin-bottom: 0.25rem;
}

[data-theme="light"] .partner-name {
  color: #2563eb;
}

.partner-desc {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.2;
}

[data-theme="light"] .partner-desc {
  color: rgba(0, 0, 0, 0.6);
}

@media (max-width: 968px) {
  .footer-branding-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .partner-column,
  .partner-column-left,
  .partner-column-right {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .footer-brand-name {
    font-size: 1.5rem;
  }

  .partner-link {
    width: 100%;
    max-width: 300px;
  }
}

/* Price Comparison Styles */
.price-comparison-box {
  background: rgba(245, 245, 245, 0.5);
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

[data-theme="light"] .price-comparison-box {
  background: rgba(0, 0, 0, 0.03);
}

.price-comparison-title {
  margin: 0 0 6px 0;
  font-size: 13px;
  text-align: center;
  color: #fff;
}

[data-theme="light"] .price-comparison-title {
  color: #333;
}

.price-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
}

.price-comparison-our-price {
  background: #4CAF50;
  color: white;
  padding: 6px;
  border-radius: 4px;
  text-align: center;
}

.price-comparison-competitor {
  background: rgba(255, 255, 255, 0.9);
  padding: 6px;
  border-radius: 4px;
  text-align: center;
}

[data-theme="light"] .price-comparison-competitor {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.price-comparison-label {
  font-size: 9px;
  margin-bottom: 2px;
  opacity: 0.9;
  color: inherit;
}

.price-comparison-competitor .price-comparison-label {
  color: #666;
}

.price-comparison-value {
  font-size: 16px;
  font-weight: bold;
  color: inherit;
}

.price-comparison-competitor .price-comparison-value {
  font-size: 15px;
  color: #333;
}

.price-comparison-badge {
  font-size: 8px;
  margin-top: 2px;
  opacity: 0.9;
}

.price-comparison-savings {
  font-size: 8px;
  margin-top: 2px;
  color: #4CAF50;
}

.price-comparison-summary {
  margin-top: 4px;
  text-align: center;
  font-size: 11px;
  color: #4CAF50;
  font-weight: 600;
}

/* ========================================
   CHRISTMAS SALE STYLES - REMOVED
   ======================================== */

/* Mobile Header Cleanup */
@media (max-width: 768px) {
  /* Hide rotating text animation on mobile */
  .rotating-text {
    display: none !important;
  }

  /* Hide brand icons on mobile */
  .brand-icon {
    display: none !important;
  }

  /* Show static store name on mobile */
  .brand-text::after {
    content: 'FC COINS BRZ';
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
  }

  /* Reduce size of currency and language toggles on mobile */
  body #currency-toggle,
  body #lang-toggle {
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    font-size: 11px !important;
    flex-shrink: 0 !important;
  }

  body #current-lang-flag,
  body #current-currency-symbol {
    font-size: 11px !important;
  }

  /* Override base styles.css to show ALL tabs on mobile - single row layout */
  body .site-header {
    flex-wrap: nowrap !important;
    padding: 6px 4px !important;
    gap: 2px !important;
    min-height: 56px !important;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    justify-content: flex-start !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  body .header-left,
  body .header-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 2px !important;
    visibility: visible !important;
    position: static !important;
    width: auto !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }

  body .header-left {
    flex: 0 0 auto !important;
  }

  body .header-actions {
    flex: 0 0 auto !important;
  }

  /* Override base styles.css - show ALL header-actions buttons with higher specificity */
  body .header-actions button:not(.mobile-menu-btn),
  body .header-actions .link-btn,
  body .header-actions #rewards-btn,
  body .header-actions #faq-btn,
  body .header-actions #contact-btn,
  body .header-actions #account-btn {
    display: flex !important;
    visibility: visible !important;
    padding: 0 !important;
    width: 28px !important;
    height: 28px !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  /* Make all header-left buttons same size - including WhatsApp, Instagram, and live pricing */
  body .header-left .link-btn,
  body .header-left a.link-btn,
  body .header-left .whatsapp-btn,
  body .header-left .instagram-btn,
  body .header-left .live-prices-indicator {
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    font-size: 12px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Ensure SVG icons inside these buttons are sized correctly */
  body .header-left .link-btn svg,
  body .header-left a.link-btn svg,
  body .header-left .whatsapp-btn svg,
  body .header-left .instagram-btn svg {
    width: 14px !important;
    height: 14px !important;
  }

  /* Force show each button individually with body selector */
  body #rewards-btn,
  body #faq-btn,
  body #contact-btn,
  body #account-btn {
    display: flex !important;
    visibility: visible !important;
  }

  /* Hide mobile menu button - we don't use it */
  body .mobile-menu-btn {
    display: none !important;
  }

  /* Hide theme toggle and sell coins on mobile only */
  body .theme-toggle-icons,
  body #sell-coins-btn {
    display: none !important;
  }
}


/* Footer Network Logos */
.footer-network-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  padding: 20px 10px 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.network-logo-link {
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.9;
}

.network-logo-link:hover {
  transform: translateY(-5px);
  opacity: 1;
}

.network-logo {
  height: 150px;
  width: auto;
  max-width: 540px;
  object-fit: contain;
  display: block;
}

/* Center FCCOINSBRZ logo in footer - make it visually prominent */
.fccoinsbrz-logo {
  position: relative;
  z-index: 1;
}

.fccoinsbrz-logo .network-logo {
  filter: drop-shadow(0 4px 8px rgba(0, 151, 57, 0.3));
}

.footer-network-tagline {
  text-align: center;
  padding: 10px 20px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  opacity: 0.9;
  margin: 0 auto;
  max-width: 100%;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .footer-network-logos {
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px 10px 10px;
    justify-content: center;
  }

  .network-logo {
    height: 60px;
    max-width: 150px;
  }

  .footer-network-tagline {
    font-size: 13px;
  }
}

/* Mobile menu button removed - we don't use it (controlled by styles.css mobile media query) */

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Keep currency and language visible in header */
.lang-dropdown,
.currency-dropdown {
  display: flex !important;
}

/* Hero call-to-action - Brazil themed (Green/Yellow) */
.platform-callout {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 40px;
  margin: 24px auto 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #009739, #00C853);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid #FEDD00;
  box-shadow: 
    0 0 20px rgba(0, 151, 57, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 0 20px rgba(254, 221, 0, 0.2);
  transition: all 0.3s ease;
  overflow: hidden;
  min-height: 60px;
  min-width: 400px;
}

/* Rotating instructions */
#instructions-rotator {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  min-width: 500px;
}

.instruction-item {
  position: absolute;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.instruction-item.active {
  opacity: 1;
  position: absolute;
}

.instruction-item::before {
  content: attr(data-icon);
  font-size: 1.3rem;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
  margin-right: 4px;
}

.platform-callout::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(254, 221, 0, 0.2), transparent);
  animation: shimmer 3s infinite;
}

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

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

.platform-callout:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #00C853, #009739);
  box-shadow: 
    0 0 30px rgba(0, 151, 57, 0.6),
    0 6px 16px rgba(0, 0, 0, 0.4),
    inset 0 0 30px rgba(254, 221, 0, 0.25);
  border-color: #FEDD00;
  color: #ffffff;
}

/* Mobile styles for rotating instructions */
@media (max-width: 768px) {
  .platform-callout {
    padding: 12px 16px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    min-width: auto;
    max-width: 100%;
    width: calc(100% - 32px);
    margin: 16px auto 0;
    min-height: 50px;
  }

  #instructions-rotator {
    min-width: auto;
    max-width: 100%;
    width: 100%;
    min-height: 50px;
  }

  .instruction-item {
    font-size: 0.75rem;
    gap: 6px;
    padding: 0 8px;
  }

  .instruction-item::before {
    font-size: 1rem;
    margin-right: 3px;
  }
}

@media (max-width: 480px) {
  .platform-callout {
    padding: 10px 12px;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    min-height: 45px;
    margin: 12px auto 0;
  }

  #instructions-rotator {
    min-height: 45px;
  }

  .instruction-item {
    font-size: 0.7rem;
    gap: 4px;
    padding: 0 6px;
  }

  .instruction-item::before {
    font-size: 0.9rem;
    margin-right: 2px;
  }
}

/* Hero container for product images (FCCOINSBRZ - Brazil themed) */
.platform-image {
  position: relative !important;
  /* Equal padding on all sides around the game case */
  padding: 8px !important;
  border-radius: 16px !important;
  /* Dual-layer background to create a gradient border with Brazil colors */
  background-color: transparent !important;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(135deg, #009739, #FEDD00) border-box !important;
  border: 2px solid transparent !important;
  box-shadow: 0 10px 24px rgba(0, 151, 57, 0.35) !important;
  /* Clip content to rounded corners for hover effects */
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  /* Allow container to grow to fit image content */
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
  width: 100% !important;
  max-width: 270px !important;
  margin: 0 auto !important;
}

.platform-image img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  display: block !important;
}

.platform-card:hover .platform-image {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 151, 57, 0.45) !important;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(135deg, #FEDD00, #009739) border-box !important;
}

/* Hide delivery badge above hero containers (like EAFCC) */
.delivery-badge {
  display: none !important;
}

/* Footer Trust Signals - Brazil Theme */
.footer-trust-signals.enhanced {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 30px 20px;
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-trust-signals.enhanced .trust-card {
  background: linear-gradient(135deg, rgba(0, 151, 57, 0.1), rgba(254, 221, 0, 0.05));
  border: 2px solid rgba(0, 151, 57, 0.3);
  border-radius: 10px;
  padding: 16px 20px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 150px;
  height: 120px;
  flex-shrink: 0;
}

.footer-trust-signals.enhanced .trust-card:hover {
  transform: translateY(-3px);
  border-color: var(--brazil-yellow);
  box-shadow: 0 6px 20px rgba(0, 151, 57, 0.3);
  background: linear-gradient(135deg, rgba(0, 151, 57, 0.15), rgba(254, 221, 0, 0.1));
}

.footer-trust-signals.enhanced .trust-card.featured {
  background: linear-gradient(135deg, rgba(0, 151, 57, 0.1), rgba(254, 221, 0, 0.05));
  border-color: rgba(0, 151, 57, 0.3);
  border-width: 2px;
  width: 150px;
  height: 120px;
}

.footer-trust-signals.enhanced .trust-card.featured:hover {
  transform: translateY(-3px);
  border-color: var(--brazil-yellow);
  box-shadow: 0 6px 20px rgba(0, 151, 57, 0.3);
  background: linear-gradient(135deg, rgba(0, 151, 57, 0.15), rgba(254, 221, 0, 0.1));
}

.footer-trust-signals.enhanced .trust-card .trust-stars {
  color: #FEDD00;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 1.5px;
  margin-bottom: 2px;
}

.footer-trust-signals.enhanced .trust-card .trust-rating {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 2px;
}

.footer-trust-signals.enhanced .trust-card .trust-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 4px rgba(0, 151, 57, 0.3));
}

.footer-trust-signals.enhanced .trust-card .trust-number {
  font-size: 20px;
  font-weight: 800;
  color: var(--brazil-yellow);
  line-height: 1.2;
  margin-bottom: 2px;
}

.footer-trust-signals.enhanced .trust-card .trust-label {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

@media screen and (max-width: 768px) {
  .footer-trust-signals.enhanced {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 20px 10px;
    max-width: 100%;
  }

  .footer-trust-signals.enhanced .trust-card {
    padding: 10px 6px;
    gap: 4px;
    width: auto;
    height: auto;
    min-height: 85px;
  }

  .footer-trust-signals.enhanced .trust-card .trust-stars {
    font-size: 12px;
    letter-spacing: 0;
  }

  .footer-trust-signals.enhanced .trust-card .trust-rating {
    font-size: 14px;
  }

  .footer-trust-signals.enhanced .trust-card .trust-icon {
    font-size: 20px;
  }

  .footer-trust-signals.enhanced .trust-card .trust-number {
    font-size: 14px;
  }

  .footer-trust-signals.enhanced .trust-card .trust-label {
    font-size: 10px;
  }
}

@media screen and (max-width: 380px) {
  .footer-trust-signals.enhanced {
    gap: 6px;
    padding: 15px 8px;
  }

  .footer-trust-signals.enhanced .trust-card {
    padding: 8px 4px;
    min-height: 75px;
  }

  .footer-trust-signals.enhanced .trust-card .trust-stars {
    font-size: 10px;
  }

  .footer-trust-signals.enhanced .trust-card .trust-rating {
    font-size: 12px;
  }

  .footer-trust-signals.enhanced .trust-card .trust-icon {
    font-size: 18px;
  }

  .footer-trust-signals.enhanced .trust-card .trust-number {
    font-size: 12px;
  }

  .footer-trust-signals.enhanced .trust-card .trust-label {
    font-size: 9px;
  }
}

/* ===========================
   Live Pricing Modal (BRZ)
   Reduce size + remove scrollbar
   =========================== */
#live-pricing-modal .modal-content {
  /* smaller card */
  max-width: 420px !important;
  padding: 12px !important;
  border-radius: 14px !important;

  /* remove internal scroll */
  max-height: none !important;
  overflow: visible !important;

  /* slightly tighter positioning */
  margin: 72px auto 12px !important;
}

#live-pricing-modal .modal-body {
  padding: 6px 10px !important;
}

@media (max-width: 768px) {
  #live-pricing-modal .modal-content {
    width: calc(100vw - 24px) !important;
    max-width: 360px !important;
    margin: 68px auto 10px !important;
    padding: 10px !important;
  }

  #live-pricing-modal .modal-title {
    font-size: 16px !important;
  }
}

@media (max-width: 380px) {
  #live-pricing-modal .modal-content {
    max-width: 340px !important;
    padding: 9px !important;
  }
}

/* =====================================================
   Welcome coupon popup (FCCOINSBRZ)
===================================================== */
#welcome-coupon-modal .modal-content.welcome-coupon-modal {
  max-width: 520px;
  padding: 18px 18px 16px;
  background: linear-gradient(135deg, rgba(0, 151, 57, 0.92), rgba(0, 200, 83, 0.92));
  border: 2px solid var(--brazil-yellow);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  color: #fff;
  position: relative;
}

#welcome-coupon-modal .modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

#welcome-coupon-modal .welcome-coupon-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: rgba(254, 221, 0, 0.18);
  border: 1px solid rgba(254, 221, 0, 0.35);
  margin-bottom: 10px;
}

#welcome-coupon-modal .modal-title {
  color: #fff;
  margin: 0 0 6px;
}

#welcome-coupon-modal .modal-subtitle {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.92);
}

#welcome-coupon-modal .welcome-coupon-code-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin: 10px 0 12px;
}

#welcome-coupon-modal .welcome-coupon-code {
  flex: 1;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
}

#welcome-coupon-modal .welcome-coupon-code-label {
  display: block;
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

#welcome-coupon-modal code#welcome-coupon-code {
  display: inline-block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--brazil-yellow);
}

#welcome-coupon-modal #welcome-coupon-copy.btn,
#welcome-coupon-modal #welcome-coupon-apply.btn {
  border-radius: 12px;
}

#welcome-coupon-modal .welcome-coupon-footnote {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.9;
}

#welcome-coupon-modal .welcome-coupon-features {
  margin: 10px 0 12px;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.95);
}

#welcome-coupon-modal .welcome-coupon-features li {
  margin: 6px 0;
}

@media (max-width: 480px) {
  #welcome-coupon-modal .modal-content.welcome-coupon-modal {
    max-width: calc(100vw - 28px);
    padding: 14px 14px 12px;
  }
  #welcome-coupon-modal code#welcome-coupon-code {
    font-size: 18px;
  }
  #welcome-coupon-modal .welcome-coupon-code-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* =====================================================
   New Year effect (subtle confetti) - FCCOINSBRZ
===================================================== */
#newyear-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998; /* under modals, above page */
  overflow: hidden;
}

#newyear-confetti .confetti-piece {
  position: absolute;
  top: -16px;
  width: 10px;
  height: 16px;
  border-radius: 3px;
  opacity: 0.95;
  transform: translate3d(0, -20px, 0) rotate(0deg);
  animation: newyear-fall var(--dur, 4.8s) linear forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes newyear-fall {
  0% {
    transform: translate3d(0, -30px, 0) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 0.95; }
  100% {
    transform: translate3d(var(--drift, 60px), 110vh, 0) rotate(720deg);
    opacity: 0;
  }
}

/* Temporarily hide Sell Coins (feature not ready yet) */
body #sell-coins-btn,
body #sell-coins-btn-mobile {
  display: none !important;
}
/* === UNIFIED MOBILE HEADER (single menu system) === */
@media (max-width: 768px) {
  body .site-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 12px !important;
    min-height: 60px !important;
    height: auto !important;
  }

  body .header-actions,
  body .header-actions * {
    display: none !important;
    visibility: hidden !important;
  }

  body .header-actions {
    display: flex !important;
    visibility: visible !important;
    align-items: center !important;
    gap: 6px !important;
    width: auto !important;
  }

  body .header-actions > :not(#account-btn) {
    display: none !important;
    visibility: hidden !important;
  }

  body #account-btn {
    display: flex !important;
    visibility: visible !important;
    align-items: center !important;
    justify-content: center !important;
    height: 34px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    max-width: 140px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body .header-left {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: auto !important;
  }

  body .mobile-menu-btn {
    display: flex !important;
    visibility: visible !important;
    width: 34px !important;
    height: 34px !important;
  }

  body .header-left > :not(.mobile-menu-btn):not(.whatsapp-btn):not(.lang-dropdown):not(.currency-dropdown) {
    display: none !important;
    visibility: hidden !important;
  }

  body .brand-text {
    display: flex !important;
    justify-content: center !important;
    font-size: 14px !important;
    flex: 1 !important;
  }

  body .brand-text { order: 2 !important; }
  body .header-left { order: 1 !important; }
  body .header-actions { order: 3 !important; }

  body .lang-dropdown,
  body .currency-dropdown {
    position: relative !important;
  }

  body .lang-menu,
  body .currency-menu {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    min-width: 200px !important;
  }

  body .mobile-nav-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(8px) !important;
    z-index: 100020 !important;
  }

  body .mobile-nav-content {
    width: 100% !important;
    height: 100% !important;
    padding: 20px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  body .mobile-nav-header {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 6px 0 12px !important;
  }

  body .mobile-nav-logo {
    height: 96px !important;
    width: auto !important;
    max-width: 240px !important;
    object-fit: contain !important;
  }

  body .mobile-nav-header .mobile-nav-logo {
    grid-column: 2;
    justify-self: center;
  }

  body .mobile-nav-header .mobile-menu-close {
    grid-column: 3;
    justify-self: end;
  }
}
