/* ==========================================================================
   BosAds / Premium Ads - Luxury Red-Orange & Dark Glassmorphism Design System
   Theme: Vibrant Sunset Orange (#F95721) + Crimson Red (#EA2E0C)
          + Amber Fire (#FB923C) + Deep Obsidian Black (#0B0809)
          + Translucent Dark Glass (#160F12 / rgba(22, 15, 18, 0.85))
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Core Brand Red-Orange Color Tokens */
  --brand-orange: #F95721;
  --brand-orange-hover: #FF6B2B;
  --brand-orange-light: rgba(249, 87, 33, 0.14);

  --brand-red: #EA2E0C;
  --brand-red-dark: #991B1B;
  --brand-red-light: rgba(234, 46, 12, 0.12);

  --accent-amber: #FB923C;
  --accent-gold: #F59E0B;
  --accent-amber-light: rgba(251, 146, 60, 0.15);

  /* Deep Luxury Dark Surfaces */
  --bg-page: #0B0809;
  --bg-surface: #120B0E;
  --bg-card: rgba(22, 15, 18, 0.82);
  --bg-card-solid: #160F12;
  --bg-card-subtle: rgba(30, 20, 24, 0.65);
  --bg-input: #150E12;

  /* Typography Colors */
  --text-main: #FFFFFF;
  --text-body: #E5E7EB;
  --text-muted: #9CA3AF;
  --text-light: #6B7280;
  --text-orange: #FB923C;
  --text-white: #FFFFFF;

  /* Borders & Glowing Outlines */
  --border-subtle: rgba(249, 87, 33, 0.20);
  --border-card: rgba(249, 87, 33, 0.38);
  --border-card-glow: rgba(249, 87, 33, 0.65);
  --border-focus: #F95721;

  /* Elevation Shadows & Neon Glows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 16px 36px -6px rgba(0, 0, 0, 0.85);
  --shadow-button: 0 4px 18px rgba(234, 46, 12, 0.45);
  --shadow-card-glow: 0 0 20px -2px rgba(249, 87, 33, 0.20), inset 0 1px 0 rgba(255, 120, 70, 0.20);
  --shadow-accent: 0 4px 16px rgba(249, 87, 33, 0.35);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #FF5722 0%, #EA2E0C 100%);
  --gradient-brand-hover: linear-gradient(135deg, #FF6B2B 0%, #C22206 100%);
  --gradient-accent: linear-gradient(135deg, #F95721 0%, #DC2626 100%);
  --gradient-header-bar: linear-gradient(135deg, #2A1215 0%, #160B0E 100%);
  --gradient-card-subtle: linear-gradient(180deg, rgba(26, 17, 21, 0.85) 0%, rgba(18, 12, 15, 0.85) 100%);
  --gradient-fire-glow: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(234, 88, 12, 0.38), rgba(185, 28, 28, 0.2), transparent 70%);

  /* Remapped Legacy tokens for total backward compatibility */
  --brand-violet: #F95721;
  --brand-violet-hover: #FF6B2B;
  --brand-violet-light: rgba(249, 87, 33, 0.14);
  --deep-violet: #FFFFFF;
  --deep-violet-dark: #EA2E0C;
  --deep-violet-light: rgba(234, 46, 12, 0.15);
  --accent-magenta: #F95721;
  --accent-magenta-hover: #EA2E0C;
  --accent-magenta-light: rgba(249, 87, 33, 0.18);
  --soft-lilac: rgba(249, 87, 33, 0.15);
  --soft-lilac-border: rgba(249, 87, 33, 0.35);
  --mist: #1A1216;
  --mist-border: rgba(249, 87, 33, 0.25);
}

/* ==========================================================================
   Base Styles & Resets
   ========================================================================== */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-body);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

/* Ambient Radial Mesh at page top */
.ambient-header-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 380px;
  background: var(--gradient-fire-glow);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   SaaS Card Components (Dark Glassmorphic with Red-Orange Glowing Borders)
   ========================================================================== */
.saas-card,
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--border-card);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-card-glow);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.saas-card:hover,
.glass-card:hover {
  border-color: var(--border-card-glow);
  box-shadow: 0 0 25px -2px rgba(249, 87, 33, 0.32), inset 0 1px 0 rgba(255, 120, 70, 0.3);
}

.saas-card-subtle {
  background: var(--bg-card-subtle);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
}

/* Stat Card Hero Highlight */
.glow-card-hero {
  background: rgba(22, 15, 18, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(249, 87, 33, 0.55);
  border-radius: 1.25rem;
  box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.7), 0 0 22px -2px rgba(249, 87, 33, 0.22), inset 0 1px 0 rgba(255, 120, 70, 0.25);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.glow-card-hero:hover {
  border-color: rgba(249, 87, 33, 0.8);
  box-shadow: 0 10px 36px -4px rgba(0, 0, 0, 0.8), 0 0 28px -2px rgba(249, 87, 33, 0.35), inset 0 1px 0 rgba(255, 140, 90, 0.35);
  transform: translateY(-2px);
}

/* ==========================================================================
   Buttons (Centralized Red-Orange Glowing & Glass Pill Buttons)
   ========================================================================== */
.btn-primary,
.btn-royal,
.btn-fiery {
  background: var(--gradient-brand);
  color: #FFFFFF !important;
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  box-shadow: var(--shadow-button);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover,
.btn-royal:hover,
.btn-fiery:hover {
  background: var(--gradient-brand-hover);
  box-shadow: 0 6px 22px rgba(234, 46, 12, 0.60);
  transform: translateY(-1px);
}

.btn-primary:active,
.btn-royal:active,
.btn-fiery:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(30, 20, 24, 0.65);
  color: #FFFFFF !important;
  border: 1px solid rgba(249, 115, 22, 0.45);
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(249, 87, 33, 0.18);
  border-color: rgba(249, 115, 22, 0.8);
  color: #FFFFFF !important;
  box-shadow: 0 0 15px rgba(249, 87, 33, 0.25);
}

.btn-accent,
.btn-cyan {
  background: var(--gradient-accent);
  color: #FFFFFF !important;
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  box-shadow: var(--shadow-accent);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-accent:hover,
.btn-cyan:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(249, 87, 33, 0.55);
}

.btn-outline-royal {
  background: transparent;
  color: #FB923C !important;
  border: 1.5px solid rgba(249, 87, 33, 0.5);
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.btn-outline-royal:hover {
  background: rgba(249, 87, 33, 0.15);
  border-color: #F95721;
}

/* Legacy button fallbacks gracefully remapped */
.btn-silver, .btn-lime {
  background: var(--gradient-brand);
  color: #FFFFFF !important;
  font-weight: 700;
  border-radius: 9999px;
  box-shadow: var(--shadow-button);
  transition: all 0.2s ease;
}
.btn-silver:hover, .btn-lime:hover {
  background: var(--gradient-brand-hover);
  box-shadow: 0 6px 20px rgba(234, 46, 12, 0.55);
  transform: translateY(-1px);
}

/* ==========================================================================
   Top Wide Horizontal Summary Bar (Deposit / Withdraw / Dashboard)
   ========================================================================== */
.summary-horizontal-bar {
  background: var(--gradient-header-bar);
  color: #FFFFFF;
  border: 1.5px solid var(--border-card);
  border-radius: 1.25rem;
  padding: 1.15rem 1.75rem;
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.summary-horizontal-bar::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(234, 46, 12, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.summary-inline-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  position: relative;
  z-index: 1;
  width: 100%;
}

.summary-compact-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.summary-compact-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-card-glow);
}

/* ==========================================================================
   Badges & Pills
   ========================================================================== */
.badge-lavender,
.badge-royal {
  background: rgba(249, 87, 33, 0.15);
  color: #FB923C;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  border: 1px solid rgba(249, 87, 33, 0.35);
}

.badge-accent,
.badge-cyan {
  background: rgba(234, 46, 12, 0.18);
  color: #FF7844;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  border: 1px solid rgba(234, 46, 12, 0.4);
}

.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ADE80;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

/* Dark glass pill like in screenshot */
.pill-dark-orange {
  background: rgba(30, 20, 22, 0.7);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #FB923C;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
}

/* ==========================================================================
   Form Inputs & Selects
   ========================================================================== */
.saas-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
select,
textarea {
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  color: #FFFFFF;
  border-radius: 0.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

/* Ensure inputs with left icons/currency badges have ample left padding */
input[class*="pl-10"], select[class*="pl-10"] { padding-left: 2.75rem !important; }
input[class*="pl-11"], select[class*="pl-11"] { padding-left: 3.0rem !important; }
input[class*="pl-12"], select[class*="pl-12"] { padding-left: 3.5rem !important; }
input[class*="pl-14"], select[class*="pl-14"] { padding-left: 4.25rem !important; }
input[class*="pl-16"], select[class*="pl-16"] { padding-left: 4.75rem !important; }

.saas-input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(249, 87, 33, 0.25);
  background-color: #1A1115;
  color: #FFFFFF;
}

/* ==========================================================================
   Table Component
   ========================================================================== */
.saas-table-container {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1.5px solid var(--border-card);
  background: var(--bg-card);
  backdrop-filter: blur(14px);
}

.saas-table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
  font-size: 0.8125rem;
  min-width: 560px;
}

.saas-table th {
  background-color: rgba(35, 22, 27, 0.9);
  color: #FB923C;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-card);
}

.saas-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(249, 87, 33, 0.15);
  color: #E5E7EB;
}

.saas-table tr:last-child td {
  border-bottom: none;
}

.saas-table tr:hover td {
  background-color: rgba(249, 87, 33, 0.06);
}

/* ==========================================================================
   Interactive Modals & Backdrops
   ========================================================================== */
.modal-backdrop {
  background: rgba(11, 8, 9, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Ad player modal display rules */
#adPlayerModal {
  display: none;
}
#adPlayerModal.is-open {
  display: flex !important;
}

/* ==========================================================================
   Live Ticker (Navbar payout strip)
   ========================================================================== */
.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.ticker-content {
  display: inline-flex;
  padding-left: 100%;
  animation: ticker-slide 26s linear infinite;
}

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

/* ==========================================================================
   Ad Player Progress
   ========================================================================== */
.ad-timer-progress {
  background-image: linear-gradient(135deg, #FF5722 0%, #EA2E0C 100%);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
  background: rgba(249, 87, 33, 0.35);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-orange);
}

/* ==========================================================================
   Bottom Mobile Docked Navigation Bar
   ========================================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(18, 11, 14, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(249, 87, 33, 0.28);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
  padding: 0.5rem 1.25rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #9CA3AF;
  transition: all 0.2s ease;
  text-decoration: none;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: #F95721;
}

.mobile-nav-item.active .nav-icon-box {
  background: rgba(249, 87, 33, 0.2);
  color: #F95721;
  box-shadow: 0 0 12px rgba(249, 87, 33, 0.4);
}

.nav-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s ease;
}

/* ==========================================================================
   Mobile Safety (Full Responsiveness Guards)
   ========================================================================== */
@media (max-width: 640px) {
  .summary-horizontal-bar {
    padding: 1rem 1.15rem;
    border-radius: 1rem;
  }
  .summary-compact-card {
    padding: 0.9rem 1rem;
  }
}

img, video, iframe, canvas {
  max-width: 100%;
}
