/**
 * Farid Game Landing - Call of Duty MW4 Launch Edition
 * High-Impact Single-View Experience (No Bloat, Big Visuals, Instant Buy)
 */

:root {
  --fgl-bg-deep: #070A10;
  --fgl-bg-surface: #0C121D;
  --fgl-bg-card: rgba(14, 21, 35, 0.92);
  --fgl-border-subtle: rgba(255, 255, 255, 0.08);
  
  --fgl-green: #22C55E;
  --fgl-green-glow: rgba(34, 197, 94, 0.4);
  --fgl-green-subtle: rgba(34, 197, 94, 0.12);
  
  --fgl-blue: #0EA5E9;
  --fgl-blue-glow: rgba(14, 165, 233, 0.4);
  --fgl-blue-subtle: rgba(14, 165, 233, 0.12);
  
  --fgl-amber: #F59E0B;
  --fgl-amber-glow: rgba(245, 158, 11, 0.3);
  
  --fgl-text-white: #FFFFFF;
  --fgl-text-lead: #F1F5F9;
  --fgl-text-muted: #94A3B8;
  --fgl-text-dark: #64748B;
  
  --fgl-font-mono: 'Consolas', 'Courier New', monospace;
  --fgl-radius-sm: 8px;
  --fgl-radius-md: 14px;
  --fgl-radius-lg: 18px;
}

/* ========================================================
   GLOBAL CONTAINER & BASE
   ======================================================== */
.fgl-single-view-hub {
  position: relative;
  background: transparent !important;
  background-image: none !important;
  padding: 0 !important;
  margin: 0 !important;
  direction: rtl;
  box-sizing: border-box;
  width: 100% !important;
}

.fgl-container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Currency Fix: Guarantees "تومان" on the LEFT with proper gap */
.fgl-single-view-hub .woocommerce-Price-amount,
.fgl-single-view-hub bdi {
  display: inline-flex !important;
  direction: ltr !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

.fgl-single-view-hub .woocommerce-Price-currencySymbol-c,
.fgl-single-view-hub .woocommerce-Price-currencySymbol {
  order: -1 !important;
  font-size: 0.72em !important;
  font-weight: 700 !important;
  margin: 0 !important;
  transform: none !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

.fgl-single-view-hub .woocommerce-Price-currencySymbol svg {
  width: 15px !important;
  height: 15px !important;
  fill: currentColor !important;
}

/* ========================================================
   1. COMPACT HUD HEADER & COUNTDOWN STRIP
   ======================================================== */
.fgl-hud-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 21, 35, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--fgl-radius-md);
  padding: 16px 26px;
  margin-bottom: 25px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.fgl-hud-branding {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fgl-hud-tag {
  font-family: var(--fgl-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--fgl-green);
}

.fgl-hud-title {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: 1px;
  line-height: 1.2;
}

.fgl-hud-sub {
  font-size: 13px;
  font-weight: 700;
  color: var(--fgl-text-muted);
}

/* Mini Countdown (Strictly LTR: Days - Hours - Mins - Secs) */
.fgl-hud-timer-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fgl-hud-timer-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--fgl-amber);
  white-space: nowrap;
}

.fgl-mini-timer {
  display: flex !important;
  align-items: center;
  gap: 6px;
  direction: ltr !important;
}

.fgl-mini-timer .fgl-cd-block {
  background: rgba(7, 10, 16, 0.9);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 6px;
  padding: 6px 10px;
  min-width: 44px;
  text-align: center;
}

.fgl-mini-timer .fgl-cd-digit {
  font-family: var(--fgl-font-mono);
  font-size: 16px;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1;
  display: block;
}

.fgl-mini-timer .fgl-cd-unit {
  font-size: 9px;
  font-weight: 700;
  color: var(--fgl-text-dark);
  margin-top: 2px;
  display: block;
}

.fgl-mini-timer .fgl-cd-sep {
  font-size: 16px;
  font-weight: 900;
  color: var(--fgl-green);
}

/* ========================================================
   2. THE BATTLE STAGE (DUAL PRODUCT CARDS)
   ======================================================== */
.fgl-battle-stage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
  align-items: stretch;
}

.fgl-stage-card {
  background: var(--fgl-bg-card);
  border: 1.5px solid var(--fgl-border-subtle);
  border-radius: var(--fgl-radius-lg);
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.fgl-card-disc {
  border-color: rgba(14, 165, 233, 0.35);
}
.fgl-card-disc:hover {
  border-color: var(--fgl-blue);
  box-shadow: 0 20px 50px rgba(14, 165, 233, 0.25);
}

.fgl-card-account {
  border-color: rgba(34, 197, 94, 0.35);
}
.fgl-card-account:hover {
  border-color: var(--fgl-green);
  box-shadow: 0 20px 50px rgba(34, 197, 94, 0.25);
}

.fgl-card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.fgl-edition-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
}

.fgl-badge-blue {
  background: var(--fgl-blue);
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

.fgl-badge-green {
  background: var(--fgl-green);
  color: #070A10;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.fgl-platform-tag {
  font-family: var(--fgl-font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(14, 165, 233, 0.4);
  color: var(--fgl-blue);
  background: rgba(14, 165, 233, 0.08);
}

.fgl-tag-green {
  border-color: rgba(34, 197, 94, 0.4);
  color: var(--fgl-green);
  background: rgba(34, 197, 94, 0.08);
}

/* ========================================================
   LARGE, BOLD 3D PRODUCT VISUALS
   ======================================================== */
.fgl-stage-visual-wrap {
  min-height: 330px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  perspective: 1200px;
}

/* Physical PS5 3D Case Frame */
.fgl-3d-ps5-case {
  position: relative;
  width: 235px;
  height: 330px;
  border-radius: 12px;
  overflow: hidden;
  background: #000000;
  border: 2px solid rgba(14, 165, 233, 0.55);
  box-shadow: 
    0 22px 50px rgba(0, 0, 0, 0.85),
    0 0 45px rgba(14, 165, 233, 0.28);
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.fgl-stage-card:hover .fgl-3d-ps5-case {
  transform: translateY(-8px) rotateY(0deg) rotateX(0deg) scale(1.03);
  box-shadow: 
    0 28px 60px rgba(0, 0, 0, 0.9),
    0 0 60px rgba(14, 165, 233, 0.45);
}

.fgl-ps5-case-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: #FFFFFF;
  color: #003791;
  font-family: Arial, sans-serif;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

/* Digital Vault 3D Hologram Frame */
.fgl-3d-digital-case {
  position: relative;
  width: 235px;
  height: 330px;
  border-radius: 12px;
  overflow: hidden;
  background: #000000;
  border: 2px solid rgba(34, 197, 94, 0.55);
  box-shadow: 
    0 22px 50px rgba(0, 0, 0, 0.85),
    0 0 45px rgba(34, 197, 94, 0.32);
  transform: rotateY(4deg) rotateX(2deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.fgl-stage-card:hover .fgl-3d-digital-case {
  transform: translateY(-8px) rotateY(0deg) rotateX(0deg) scale(1.03);
  box-shadow: 
    0 28px 60px rgba(0, 0, 0, 0.9),
    0 0 60px rgba(34, 197, 94, 0.5);
}

.fgl-digital-case-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(90deg, #16A34A 0%, #22C55E 100%);
  color: #070A10;
  font-family: var(--fgl-font-mono);
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

/* Cover Image Inside Frame */
.fgl-case-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding-top: 28px; /* space under white header */
  display: block;
}

.fgl-case-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, transparent 40%, transparent 100%);
  pointer-events: none;
  z-index: 4;
}

.fgl-case-placeholder {
  width: 100%;
  height: 100%;
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--fgl-text-muted);
  gap: 8px;
}
.fgl-case-placeholder span { font-size: 38px; }

/* Titles */
.fgl-stage-card-title {
  font-size: 19px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 12px;
  text-align: center;
}

/* Capacity Switcher Buttons */
.fgl-compact-cap-toggle {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.fgl-cap-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--fgl-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.fgl-cap-tab .fgl-tab-radio {
  font-size: 8px;
  opacity: 0.5;
}

.fgl-cap-tab:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

.fgl-cap-tab.active {
  background: var(--fgl-green-subtle);
  border-color: var(--fgl-green);
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
}

.fgl-cap-tab.active .fgl-tab-radio {
  color: var(--fgl-green);
  opacity: 1;
}

/* Price Row */
.fgl-stage-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 10, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.fgl-price-tag-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--fgl-text-dark);
}

.fgl-price-amount-wrap {
  font-size: 20px;
  font-weight: 900;
  color: #FFFFFF;
}

.fgl-price-disc-color {
  color: #38BDF8;
}

.fgl-price-account-color {
  color: #4ADE80;
}

.fgl-empty-price {
  font-size: 14px;
  color: var(--fgl-amber);
}

/* Bullets */
.fgl-stage-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.fgl-stage-bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fgl-text-lead);
  line-height: 1.5;
}

.fgl-stage-bullets li svg {
  flex-shrink: 0;
}

/* Buy Buttons */
.fgl-stage-action {
  margin-top: auto;
}

.fgl-stage-buy-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.fgl-btn-disc-buy {
  background: linear-gradient(135deg, #0284C7 0%, #0EA5E9 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
}
.fgl-btn-disc-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.65);
}

.fgl-btn-account-buy {
  background: linear-gradient(135deg, #16A34A 0%, #22C55E 100%);
  color: #070A10;
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}
.fgl-btn-account-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.65);
}

/* Button Loading Spinner */
.fgl-stage-buy-btn.loading {
  pointer-events: none;
  cursor: wait;
}

.fgl-stage-buy-btn.loading > span,
.fgl-stage-buy-btn.loading > svg {
  opacity: 0;
  visibility: hidden;
}

.fgl-stage-buy-btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: fgl-spin 0.65s linear infinite;
}

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

.fgl-stage-buy-btn.added {
  background: #05C46B !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 25px rgba(5, 196, 107, 0.6) !important;
}

/* ========================================================
   3. COMPACT TECHNICAL INTEL STRIP (BOTTOM OF SCREEN)
   ======================================================== */
.fgl-compact-intel-strip {
  background: rgba(14, 21, 35, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--fgl-radius-md);
  padding: 16px 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.fgl-intel-alert-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.fgl-alert-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.fgl-alert-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--fgl-text-lead);
}

.fgl-alert-text strong {
  color: var(--fgl-amber);
  margin-left: 6px;
}

.fgl-intel-chips-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.fgl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--fgl-text-muted);
}

.fgl-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fgl-green);
  box-shadow: 0 0 6px var(--fgl-green);
}

/* Toast Notifications */
.fgl-toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.fgl-custom-toast {
  pointer-events: auto;
  background: #0E1524;
  color: #FFFFFF;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.25s ease;
  direction: rtl;
}

.fgl-custom-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.fgl-toast-success {
  border-right: 4px solid var(--fgl-green);
}

.fgl-toast-error {
  border-right: 4px solid #EF4444;
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 900px) {
  .fgl-hud-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .fgl-battle-stage {
    grid-template-columns: 1fr;
  }
  .fgl-intel-chips-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
