/* ==========================================================================
   xblur - Ultra Premium Glassmorphism Design System & Theme Engine
   Version: 1.0.0
   Author: FollowKini Dev Team
   ========================================================================== */

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

/* --- 1. DESIGN TOKENS & DYNAMIC THEME SYSTEM --- */
:root {
  /* Default Primary: Electric Indigo / Cyan Hybrid */
  --xb-primary: #0ea5e9;
  --xb-primary-rgb: 14, 165, 233;
  --xb-primary-hover: #0284c7;
  --xb-primary-glow: rgba(14, 165, 233, 0.35);
  --xb-secondary: #8b5cf6;
  --xb-secondary-rgb: 139, 92, 246;
  --xb-gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
  --xb-gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);

  /* Dark Ambient Palette */
  --xb-bg-main: #090d16;
  --xb-bg-surface: #0e1424;
  --xb-bg-glass: rgba(15, 23, 42, 0.72);
  --xb-bg-glass-elevated: rgba(30, 41, 59, 0.75);
  --xb-bg-glass-card: rgba(18, 26, 45, 0.65);
  --xb-bg-input: rgba(15, 23, 42, 0.6);

  /* Glass Borders */
  --xb-border-subtle: rgba(255, 255, 255, 0.08);
  --xb-border-glass: rgba(255, 255, 255, 0.12);
  --xb-border-glow: rgba(14, 165, 233, 0.3);

  /* Typography Colors */
  --xb-text-primary: #f8fafc;
  --xb-text-secondary: #cbd5e1;
  --xb-text-muted: #94a3b8;
  --xb-text-dark: #0f172a;

  /* Status Colors */
  --xb-success: #10b981;
  --xb-success-glow: rgba(16, 185, 129, 0.25);
  --xb-warning: #f59e0b;
  --xb-warning-glow: rgba(245, 158, 11, 0.25);
  --xb-danger: #ef4444;
  --xb-danger-glow: rgba(239, 68, 68, 0.25);
  --xb-info: #06b6d4;

  /* Shadows & Blur */
  --xb-blur: 18px;
  --xb-shadow-glass: 0 10px 35px -5px rgba(0, 0, 0, 0.4), 0 0 1px 1px rgba(255, 255, 255, 0.06);
  --xb-shadow-glow: 0 0 30px -5px var(--xb-primary-glow);
  --xb-shadow-card: 0 12px 40px -10px rgba(0, 0, 0, 0.5);

  /* Border Radii */
  --xb-radius-sm: 8px;
  --xb-radius-md: 14px;
  --xb-radius-lg: 20px;
  --xb-radius-xl: 28px;
  --xb-radius-full: 9999px;

  /* Typography */
  --xb-font-main: 'Plus Jakarta Sans', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --xb-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* --- 2. GLOBAL RESET & BASE STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body.xb-body {
  font-family: var(--xb-font-main);
  background-color: var(--xb-bg-main);
  color: var(--xb-text-secondary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--xb-primary);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--xb-text-primary);
}

/* --- 3. AMBIENT GLOW BACKGROUNDS --- */
.xb-ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.xb-glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  will-change: transform;
  animation: xbFloat 18s ease-in-out infinite alternate;
}

.xb-glow-blob-1 {
  top: -10%;
  left: 15%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--xb-primary) 0%, transparent 70%);
}

.xb-glow-blob-2 {
  top: 40%;
  right: -5%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--xb-secondary) 0%, transparent 70%);
  animation-duration: 22s;
  animation-delay: -5s;
}

.xb-glow-blob-3 {
  bottom: -15%;
  left: 30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  animation-duration: 25s;
  animation-delay: -10s;
}

@keyframes xbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, -20px) scale(0.95); }
}

/* Grid Overlay Texture */
.xb-grid-texture {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* --- 4. LAYOUT CONTAINERS --- */
.xb-layout-root {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.xb-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.xb-container-fluid {
  width: 100%;
  padding: 0 1.5rem;
}

.xb-main-content {
  flex: 1;
  padding-top: 6.75rem;
  padding-bottom: 4rem;
}

/* --- 5. GLASSMORPHISM CORE CLASSES --- */
.xb-glass {
  background: var(--xb-bg-glass);
  backdrop-filter: blur(var(--xb-blur));
  -webkit-backdrop-filter: blur(var(--xb-blur));
  border: 1px solid var(--xb-border-glass);
  box-shadow: var(--xb-shadow-glass);
}

.xb-glass-card {
  background: var(--xb-bg-glass-card);
  backdrop-filter: blur(var(--xb-blur));
  -webkit-backdrop-filter: blur(var(--xb-blur));
  border: 1px solid var(--xb-border-glass);
  border-radius: var(--xb-radius-lg);
  box-shadow: var(--xb-shadow-card);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.xb-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
}

.xb-glass-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
  box-shadow: var(--xb-shadow-card), 0 0 25px -8px var(--xb-primary-glow);
}

.xb-glass-card-static:hover {
  transform: none;
  box-shadow: var(--xb-shadow-card);
}

/* --- 6. FLOATING GLASS NAVBAR --- */
.xb-navbar {
  position: fixed;
  top: 0.85rem;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.35s ease;
}

.xb-navbar-inner {
  max-width: 1400px;
  width: calc(100% - 2.5rem);
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  min-height: 62px;
  background: rgba(11, 17, 33, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--xb-radius-xl);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.xb-navbar.is-scrolled .xb-navbar-inner {
  background: rgba(9, 13, 22, 0.94);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.6);
}

/* Brand */
.xb-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--xb-text-primary);
  letter-spacing: -0.02em;
}

.xb-brand img {
  max-height: 38px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Theme Toggle Button (Light/Dark Mode) */
.xb-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--xb-radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--xb-border-subtle);
  color: #fbbf24;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  flex-shrink: 0;
}

.xb-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--xb-border-glass);
  transform: rotate(18deg) scale(1.05);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.xb-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: var(--xb-radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--xb-primary);
  text-transform: uppercase;
}

/* Nav Menu */
.xb-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.xb-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--xb-radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--xb-text-secondary);
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
}

.xb-nav-link i {
  font-size: 0.95rem;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.xb-nav-link:hover {
  color: var(--xb-text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.xb-nav-link:hover i {
  transform: translateY(-1px);
  opacity: 1;
  color: var(--xb-primary);
}

.xb-nav-link.is-active {
  color: var(--xb-text-primary);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.25);
  font-weight: 600;
}

.xb-nav-link.is-active i {
  color: var(--xb-primary);
  opacity: 1;
}

/* Nav Actions (Right Side) */
.xb-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* User Balance Pill */
.xb-balance-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.85rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--xb-radius-full);
  color: #34d399;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.xb-balance-chip:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
  transform: translateY(-1px);
}

.xb-balance-chip-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* Language & Currency Pill */
.xb-select-pill {
  position: relative;
}

.xb-currency-dropdown-wrap {
  position: relative;
}

.xb-currency-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--xb-border-subtle);
  border-radius: var(--xb-radius-md);
  color: var(--xb-text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.xb-currency-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--xb-border-glass);
}

.xb-currency-symbol {
  color: var(--xb-primary);
  font-weight: 800;
}

.xb-currency-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 170px;
  background: rgba(13, 20, 36, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--xb-border-glass);
  border-radius: var(--xb-radius-md);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  padding: 0.35rem;
  z-index: 1005;
  display: none;
}

.xb-currency-menu.is-open {
  display: block;
  animation: xbSlideDown 0.2s ease;
}

.xb-currency-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-radius: var(--xb-radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--xb-text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.xb-currency-item:hover,
.xb-currency-item.is-active {
  background: rgba(14, 165, 233, 0.15);
  color: #ffffff;
}

.xb-currency-item.is-active {
  color: var(--xb-primary);
}

.xb-currency-name {
  font-size: 0.7rem;
  color: var(--xb-text-muted);
}

/* Mobile Toggle Hamburger */
.xb-mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--xb-border-subtle);
  color: var(--xb-text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--xb-radius-md);
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.xb-mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Mobile Drawer */
.xb-mobile-drawer {
  display: none;
  position: fixed;
  top: 5rem;
  left: 1rem;
  right: 1rem;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--xb-border-glass);
  border-radius: var(--xb-radius-xl);
  padding: 1.5rem;
  z-index: 999;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  animation: xbSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.xb-mobile-drawer.is-open {
  display: block;
}

.xb-mobile-drawer .xb-nav-menu {
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}

.xb-mobile-drawer .xb-nav-link {
  padding: 0.85rem 1rem;
  font-size: 1rem;
}

@keyframes xbSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- 7. BUTTONS & INTERACTIVE ELEMENTS --- */
.xb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  font-family: var(--xb-font-main);
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--xb-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.xb-btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.825rem;
  border-radius: var(--xb-radius-sm);
}

.xb-btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
  border-radius: var(--xb-radius-lg);
}

.xb-btn-primary {
  background: var(--xb-gradient-primary);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 18px -2px var(--xb-primary-glow);
}

.xb-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 var(--xb-primary-glow);
  color: #ffffff;
}

.xb-btn-glass {
  background: rgba(255, 255, 255, 0.08);
  color: var(--xb-text-primary);
  border: 1px solid var(--xb-border-glass);
  backdrop-filter: blur(10px);
}

.xb-btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-2px);
}

.xb-btn-outline {
  background: transparent;
  color: var(--xb-primary);
  border: 1px solid rgba(14, 165, 233, 0.4);
}

.xb-btn-outline:hover {
  background: rgba(14, 165, 233, 0.12);
  border-color: var(--xb-primary);
  color: #ffffff;
}

.xb-btn-block {
  width: 100%;
}

/* Button Shimmer Effect */
.xb-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.xb-btn:hover::after {
  opacity: 1;
  animation: xbShimmer 1.2s ease-in-out infinite;
}

@keyframes xbShimmer {
  0% { left: -60%; }
  100% { left: 140%; }
}

/* --- 8. FORM CONTROLS & INPUTS --- */
.xb-form-group {
  margin-bottom: 1.25rem;
  position: relative;
}

.xb-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--xb-text-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.xb-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.xb-input-icon {
  position: absolute;
  left: 1rem;
  color: var(--xb-text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 5;
}

.xb-input,
.xb-select,
.xb-textarea {
  width: 100%;
  padding: 0.8rem 1.1rem;
  font-family: var(--xb-font-main);
  font-size: 0.925rem;
  color: var(--xb-text-primary);
  background: var(--xb-bg-input);
  border: 1px solid var(--xb-border-glass);
  border-radius: var(--xb-radius-md);
  outline: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.xb-input-with-icon {
  padding-left: 2.85rem;
}

.xb-input:focus,
.xb-select:focus,
.xb-textarea:focus {
  border-color: var(--xb-primary);
  background: rgba(20, 30, 52, 0.85);
  box-shadow: 0 0 0 3px var(--xb-primary-glow), 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.xb-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.75rem;
  cursor: pointer;
}

.xb-select option {
  background-color: var(--xb-bg-surface);
  color: var(--xb-text-primary);
  padding: 0.5rem;
}

/* Checkbox */
.xb-checkbox-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.875rem;
  color: var(--xb-text-secondary);
}

.xb-checkbox-wrap input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--xb-border-glass);
  background: var(--xb-bg-input);
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.xb-checkbox-wrap input[type="checkbox"]:checked {
  background: var(--xb-primary);
  border-color: var(--xb-primary);
}

.xb-checkbox-wrap input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

/* --- 9. ALERTS & NOTIFICATIONS --- */
.xb-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-radius: var(--xb-radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  backdrop-filter: blur(12px);
  border: 1px solid;
  position: relative;
}

.xb-alert-danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.xb-alert-success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.xb-alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}

.xb-alert-info {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.35);
  color: #7dd3fc;
}

.xb-alert-icon {
  font-size: 1.2rem;
  margin-top: 0.1rem;
}

/* --- 10. BADGES & CHIPS --- */
.xb-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--xb-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}

.xb-badge-primary {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border-color: rgba(14, 165, 233, 0.3);
}

.xb-badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.xb-badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.xb-badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

/* --- 11. STATS & COUNTER CARDS --- */
.xb-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.xb-stat-card {
  padding: 1.5rem;
  background: var(--xb-bg-glass-card);
  backdrop-filter: blur(var(--xb-blur));
  -webkit-backdrop-filter: blur(var(--xb-blur));
  border: 1px solid var(--xb-border-glass);
  border-radius: var(--xb-radius-lg);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all 0.3s ease;
}

.xb-stat-card:hover {
  border-color: var(--xb-border-glow);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4), 0 0 20px -5px var(--xb-primary-glow);
}

.xb-stat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--xb-radius-md);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.25);
  color: var(--xb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.xb-stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--xb-text-primary);
  line-height: 1.2;
}

.xb-stat-label {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--xb-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

/* --- 12. GLASS TABLES --- */
.xb-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--xb-radius-lg);
  background: var(--xb-bg-glass-card);
  backdrop-filter: blur(var(--xb-blur));
  -webkit-backdrop-filter: blur(var(--xb-blur));
  border: 1px solid var(--xb-border-glass);
}

.xb-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.xb-table th {
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.8);
  color: var(--xb-text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--xb-border-subtle);
}

.xb-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--xb-text-secondary);
  vertical-align: middle;
}

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

.xb-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
  color: var(--xb-text-primary);
}

/* --- 13. TABS COMPONENT --- */
.xb-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--xb-border-subtle);
  border-radius: var(--xb-radius-lg);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.xb-tab-item {
  padding: 0.6rem 1.25rem;
  border-radius: var(--xb-radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--xb-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  background: transparent;
}

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

.xb-tab-item.is-active {
  background: var(--xb-gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px -2px var(--xb-primary-glow);
}

/* --- 14. FOOTER --- */
.xb-footer {
  position: relative;
  z-index: 10;
  background: rgba(10, 14, 25, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--xb-border-glass);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.xb-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.xb-footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--xb-text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.xb-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.xb-footer-links a {
  color: var(--xb-text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.xb-footer-links a:hover {
  color: var(--xb-primary);
  padding-left: 4px;
}

.xb-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--xb-border-subtle);
  font-size: 0.85rem;
  color: var(--xb-text-muted);
}

/* Floating WhatsApp / Telegram Button */
.xb-floating-chat {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.xb-float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.xb-float-btn-wa {
  background: #25d366;
}

.xb-float-btn-tg {
  background: #0088cc;
}

.xb-float-btn:hover {
  transform: scale(1.1) translateY(-3px);
  color: #fff;
}

/* --- 14. SOCIAL PLATFORM FILTER BAR --- */
.xb-platform-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.xb-platform-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--xb-radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--xb-border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--xb-text-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.xb-platform-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--xb-border-glass);
  transform: translateY(-2px);
}

.xb-platform-icon-btn.is-active {
  background: var(--xb-gradient-primary);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 18px -2px var(--xb-primary-glow);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.xb-platform-icon-btn.is-active i {
  color: #ffffff !important;
}

.xb-platform-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 0.75rem 0.25rem;
  margin-bottom: 1.25rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.xb-platform-filter::-webkit-scrollbar {
  display: none;
}

.xb-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--xb-border-subtle);
  border-radius: var(--xb-radius-full);
  color: var(--xb-text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.xb-platform-pill i {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.xb-platform-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--xb-text-primary);
  border-color: var(--xb-border-glass);
  transform: translateY(-1px);
}

.xb-platform-pill.is-active {
  background: var(--xb-gradient-primary);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: 0 4px 18px -2px var(--xb-primary-glow);
  transform: translateY(-1px);
}

.xb-platform-pill.is-active i {
  transform: scale(1.1);
}

/* Specific Platform Accents on Hover */
.xb-platform-pill[data-platform="facebook"]:hover { border-color: rgba(24, 119, 242, 0.6); color: #1877f2; }
.xb-platform-pill[data-platform="instagram"]:hover { border-color: rgba(225, 48, 108, 0.6); color: #e1306c; }
.xb-platform-pill[data-platform="youtube"]:hover { border-color: rgba(255, 0, 0, 0.6); color: #ff0000; }
.xb-platform-pill[data-platform="tiktok"]:hover { border-color: rgba(37, 244, 238, 0.6); color: #25f4ee; }
.xb-platform-pill[data-platform="telegram"]:hover { border-color: rgba(0, 136, 204, 0.6); color: #0088cc; }
.xb-platform-pill[data-platform="twitter"]:hover { border-color: rgba(255, 255, 255, 0.6); color: #ffffff; }

/* --- 15. LIVE SERVICE SEARCH BOX --- */
.xb-service-search-wrap {
  position: relative;
  margin-bottom: 1.25rem;
}

.xb-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(13, 20, 36, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--xb-border-glass);
  border-radius: var(--xb-radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  max-height: 320px;
  overflow-y: auto;
  z-index: 999;
  display: none;
}

.xb-search-results.is-open {
  display: block;
  animation: xbSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.xb-search-item {
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--xb-border-subtle);
  cursor: pointer;
  transition: all 0.15s ease;
}

.xb-search-item:last-child {
  border-bottom: none;
}

.xb-search-item:hover,
.xb-search-item.is-selected {
  background: rgba(14, 165, 233, 0.15);
}

.xb-search-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--xb-text-primary);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.xb-search-item-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: var(--xb-radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--xb-text-muted);
  font-size: 0.75rem;
  font-family: var(--xb-font-mono);
  font-weight: 700;
}

.xb-search-item-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: #34d399;
  white-space: nowrap;
}

.xb-search-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--xb-text-muted);
  font-size: 0.875rem;
}

/* --- 16. MOBILE GLASS BOTTOM NAVBAR --- */
.xb-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.4rem 0.75rem calc(0.4rem + env(safe-area-inset-bottom));
  z-index: 1001;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  justify-content: space-around;
  align-items: center;
}

.xb-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  text-decoration: none;
  color: var(--xb-text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: var(--xb-radius-md);
  transition: all 0.2s ease;
  min-width: 58px;
}

.xb-bottom-nav-item i {
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.xb-bottom-nav-item:hover,
.xb-bottom-nav-item.is-active {
  color: var(--xb-primary);
}

.xb-bottom-nav-item.is-active i {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px var(--xb-primary-glow));
}

/* Drawer Backdrop */
.xb-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.xb-drawer-backdrop.is-open {
  display: block;
  opacity: 1;
}

/* User Drawer Header */
.xb-drawer-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--xb-border-subtle);
  border-radius: var(--xb-radius-lg);
  margin-bottom: 1rem;
}

.xb-drawer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--xb-gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

/* --- 17. RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
  header.xb-navbar .xb-nav-menu {
    display: none !important;
  }
  .xb-mobile-toggle {
    display: flex !important;
  }
  .xb-mobile-drawer .xb-nav-menu {
    display: flex !important;
  }
  .xb-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  /* Navbar Compactness */
  .xb-navbar {
    top: 0.35rem;
  }
  .xb-navbar-inner {
    padding: 0.5rem 0.85rem;
    border-radius: var(--xb-radius-lg);
    gap: 0.5rem;
  }
  .xb-brand {
    font-size: 1.1rem;
    gap: 0.5rem;
  }
  .xb-brand img {
    max-height: 28px;
  }
  .xb-brand-badge {
    display: none;
  }
  .xb-nav-desktop-only {
    display: none !important;
  }
  .xb-balance-chip {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    gap: 0.4rem;
  }
  .xb-balance-chip-icon {
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
  }
  .xb-mobile-toggle {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  /* Main Content Spacing for Bottom Nav */
  .xb-main-content {
    padding-top: 4.25rem;
    padding-bottom: 6rem;
  }

  /* Compact Cards on Mobile */
  .xb-container {
    padding: 0 0.85rem;
  }
  .xb-glass-card,
  .xb-form-card,
  .xb-desc-card {
    padding: 1.15rem 1rem !important;
    border-radius: 14px !important;
  }
  .xb-order-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Headings & Typography */
  h1 {
    font-size: 1.4rem !important;
  }
  h2 {
    font-size: 1.2rem !important;
  }
  h3 {
    font-size: 1.1rem !important;
  }

  /* Bottom Nav Display */
  .xb-bottom-nav {
    display: flex;
  }

  /* Floating Support Buttons Above Bottom Nav */
  .xb-floating-chat {
    bottom: 5rem;
    right: 1rem;
  }
  .xb-float-btn {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
  }

  /* Mobile Drawer Positioning */
  .xb-mobile-drawer {
    top: 4.25rem;
    left: 0.75rem;
    right: 0.75rem;
    padding: 1.15rem;
    border-radius: var(--xb-radius-lg);
    max-height: calc(100vh - 5.5rem);
    overflow-y: auto;
  }

  /* Footer */
  .xb-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .xb-footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding-bottom: 2rem;
  }
}

/* --- PAGE TAB NAVIGATION (My Orders, Refills, Subscriptions) --- */
.xb-page-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.35rem;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--xb-border-subtle);
  border-radius: var(--xb-radius-lg);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.xb-page-nav::-webkit-scrollbar {
  display: none;
}
.xb-page-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--xb-radius-md);
  color: var(--xb-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--xb-transition-fast);
}
.xb-page-nav-link i {
  font-size: 0.95rem;
}
.xb-page-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
.xb-page-nav-link.is-active {
  color: #ffffff;
  background: var(--xb-gradient-primary);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

/* --- TABS & PILLS (Orders Status, etc.) --- */
.xb-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  padding: 0.35rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--xb-border-subtle);
  border-radius: var(--xb-radius-lg);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}
.xb-tabs::-webkit-scrollbar {
  display: none;
}
.xb-tab-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: var(--xb-radius-md);
  color: var(--xb-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--xb-transition-fast);
  border: 1px solid transparent;
  flex-shrink: 0;
}
.xb-tab-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
.xb-tab-item.is-active {
  color: #ffffff;
  background: var(--xb-gradient-primary);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px -2px var(--xb-primary-glow);
}

/* --- QUICK COPY BUTTON --- */
.xb-copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--xb-border-subtle);
  border-radius: 6px;
  color: var(--xb-text-muted);
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.725rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 0;
  flex-shrink: 0;
}
.xb-copy-btn:hover {
  background: var(--xb-primary);
  border-color: var(--xb-primary);
  color: #ffffff;
  transform: scale(1.08);
}
.xb-copy-btn.copied {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
}

/* --- TICKETS RESPONSIVE LAYOUT --- */

.xb-tickets-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 991px) {
  .xb-tickets-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .xb-tickets-layout .xb-glass-card {
    padding: 1.35rem !important;
  }
}

@media (max-width: 640px) {
  .xb-page-nav {
    width: 100%;
    justify-content: flex-start;
  }
  .xb-page-nav-link {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
  }
}

/* --- BACKEND DYNAMIC FORM COMPATIBILITY (AddFunds / Gateways) --- */
.form-group {
  margin-bottom: 1.25rem;
}
.control-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--xb-text-primary);
  margin-bottom: 0.45rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--xb-border-subtle);
  border-radius: var(--xb-radius-md);
  color: #ffffff;
  font-family: var(--xb-font-main);
  font-size: 0.925rem;
  transition: all var(--xb-transition-fast);
  outline: none;
  box-sizing: border-box;
}
.form-control:focus {
  border-color: var(--xb-primary);
  box-shadow: 0 0 0 3px rgba(var(--xb-primary-rgb), 0.15);
  background: rgba(15, 23, 42, 0.85);
}
.form-control::placeholder {
  color: var(--xb-text-muted);
}
.help-block {
  font-size: 0.8rem;
  color: var(--xb-text-muted);
  margin-top: 0.35rem;
  display: block;
}

/* Compact Currency Select Buttons in Account */
.xb-currency-select-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--xb-radius-md);
  border: 1px solid var(--xb-border-subtle);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  width: 100%;
}
.xb-currency-select-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--xb-border-glass);
  transform: translateY(-1px);
}
.xb-currency-select-btn.is-active {
  border-color: var(--xb-primary);
  background: rgba(14, 165, 233, 0.12);
  box-shadow: 0 4px 15px -2px var(--xb-primary-glow);
}

/* Custom Select Dropdown with Icons (New Order Categories) */
.xb-custom-select-wrap {
  position: relative;
  width: 100%;
}
.xb-custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--xb-border-subtle);
  border-radius: var(--xb-radius-md);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 0.925rem;
  text-align: left;
}
.xb-custom-select-trigger:hover,
.xb-custom-select-trigger.is-active {
  border-color: var(--xb-primary);
  box-shadow: 0 0 0 3px rgba(var(--xb-primary-rgb), 0.15);
  background: rgba(15, 23, 42, 0.9);
}
.xb-custom-select-trigger-content {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.xb-custom-select-trigger-content i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.xb-custom-select-chevron {
  font-size: 0.8rem;
  color: var(--xb-text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}
.xb-custom-select-trigger.is-active .xb-custom-select-chevron {
  transform: rotate(180deg);
}
.xb-custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(13, 20, 36, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--xb-border-glass);
  border-radius: var(--xb-radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  z-index: 1050;
  display: none;
  overflow: hidden;
  animation: xbSlideDown 0.2s ease;
}
.xb-custom-select-menu.is-open {
  display: block;
}
.xb-custom-select-search-wrap {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--xb-border-subtle);
  position: relative;
  display: flex;
  align-items: center;
}
.xb-custom-select-search-wrap i {
  position: absolute;
  left: 1.25rem;
  color: var(--xb-text-muted);
  font-size: 0.85rem;
}
.xb-custom-select-search-wrap input {
  width: 100%;
  padding: 0.45rem 0.65rem 0.45rem 2.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--xb-border-subtle);
  border-radius: var(--xb-radius-sm);
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}
.xb-custom-select-search-wrap input:focus {
  border-color: var(--xb-primary);
}
.xb-custom-select-options {
  max-height: 280px;
  overflow-y: auto;
  padding: 0.35rem;
}
.xb-custom-select-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--xb-radius-sm);
  color: var(--xb-text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.xb-custom-select-option i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.xb-custom-select-option:hover,
.xb-custom-select-option.is-selected {
  background: rgba(14, 165, 233, 0.15);
  color: #ffffff;
}
.xb-custom-select-option.is-selected {
  color: var(--xb-primary);
  font-weight: 600;
}

/* ==========================================================================
   WHITE / LIGHT MODE SYSTEM
   Triggered via [data-theme="light"] or body.xb-light-mode
   ========================================================================== */

[data-theme="light"],
body.xb-light-mode {
  /* Surface & Base */
  --xb-bg-main: #f8fafc;
  --xb-bg-surface: #ffffff;
  --xb-bg-glass: rgba(255, 255, 255, 0.96);
  --xb-bg-glass-elevated: #ffffff;
  --xb-bg-glass-card: #ffffff;
  --xb-bg-input: #ffffff;

  /* Clean High-Contrast Typography */
  --xb-text-primary: #0f172a;
  --xb-text-secondary: #334155;
  --xb-text-muted: #64748b;
  --xb-text-dark: #0f172a;

  /* Crisp Borders */
  --xb-border-subtle: rgba(226, 232, 240, 0.95);
  --xb-border-glass: rgba(203, 213, 225, 0.9);
  --xb-border-glow: rgba(14, 165, 233, 0.4);

  /* Shadows */
  --xb-shadow-glass: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
  --xb-shadow-glow: 0 0 25px -5px var(--xb-primary-glow);
  --xb-shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
}

/* Base Body in Light Mode */
[data-theme="light"] body.xb-body,
body.xb-light-mode {
  background-color: #f8fafc;
  color: #334155;
}

/* Ambient Canvas & Blobs in Light Mode */
[data-theme="light"] .xb-ambient-canvas .xb-glow-blob,
body.xb-light-mode .xb-ambient-canvas .xb-glow-blob {
  opacity: 0.12;
  filter: blur(140px);
}

[data-theme="light"] .xb-grid-texture,
body.xb-light-mode .xb-grid-texture {
  opacity: 0.25;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

/* Floating Glass Navbar in Light Mode */
[data-theme="light"] .xb-navbar-inner,
body.xb-light-mode .xb-navbar-inner {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .xb-navbar.is-scrolled .xb-navbar-inner,
body.xb-light-mode .xb-navbar.is-scrolled .xb-navbar-inner {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(203, 213, 225, 0.95);
  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .xb-brand,
body.xb-light-mode .xb-brand {
  color: #0f172a;
}

[data-theme="light"] .xb-nav-link,
body.xb-light-mode .xb-nav-link {
  color: #475569;
}

[data-theme="light"] .xb-nav-link:hover,
body.xb-light-mode .xb-nav-link:hover {
  color: var(--xb-primary);
  background: rgba(14, 165, 233, 0.08);
}

[data-theme="light"] .xb-nav-link.is-active,
body.xb-light-mode .xb-nav-link.is-active {
  color: var(--xb-primary);
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.3);
}

/* Theme Toggle Button in Light Mode */
[data-theme="light"] .xb-theme-toggle,
body.xb-light-mode .xb-theme-toggle {
  background: #f1f5f9;
  border-color: rgba(203, 213, 225, 0.9);
  color: #6366f1;
}

[data-theme="light"] .xb-theme-toggle:hover,
body.xb-light-mode .xb-theme-toggle:hover {
  background: #e2e8f0;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
}

/* Balance Chip & Buttons in Light Mode */
[data-theme="light"] .xb-balance-chip,
body.xb-light-mode .xb-balance-chip {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.9);
  color: #059669;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .xb-balance-chip:hover,
body.xb-light-mode .xb-balance-chip:hover {
  background: #f8fafc;
  border-color: #059669;
}

[data-theme="light"] .xb-btn-glass,
body.xb-light-mode .xb-btn-glass {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.9);
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .xb-btn-glass:hover,
body.xb-light-mode .xb-btn-glass:hover {
  background: #f1f5f9;
  color: var(--xb-primary);
}

[data-theme="light"] .xb-btn-outline,
body.xb-light-mode .xb-btn-outline {
  border: 1px solid rgba(203, 213, 225, 0.9);
  color: #475569;
}

[data-theme="light"] .xb-btn-outline:hover,
body.xb-light-mode .xb-btn-outline:hover {
  background: #f8fafc;
  color: #0f172a;
}

/* Glass Cards & Containers in Light Mode */
[data-theme="light"] .xb-glass-card,
body.xb-light-mode .xb-glass-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .xb-glass-card::before,
body.xb-light-mode .xb-glass-card::before {
  display: none;
}

[data-theme="light"] .xb-glass-card:hover,
body.xb-light-mode .xb-glass-card:hover {
  border-color: rgba(203, 213, 225, 1);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .xb-glass-card-static:hover,
body.xb-light-mode .xb-glass-card-static:hover {
  border-color: rgba(226, 232, 240, 0.95);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

/* Force dark typography on headings across light mode */
[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3,
[data-theme="light"] h4, [data-theme="light"] h5, [data-theme="light"] h6,
body.xb-light-mode h1, body.xb-light-mode h2, body.xb-light-mode h3,
body.xb-light-mode h4, body.xb-light-mode h5, body.xb-light-mode h6 {
  color: #0f172a !important;
}

/* Convert hardcoded #ffffff inline text styles to dark text in light mode */
[data-theme="light"] [style*="color: #ffffff"]:not(.xb-btn-primary):not(.xb-tab-item.is-active):not(.xb-page-nav-link.is-active):not(.xb-badge-primary):not(.xb-badge-success):not(.xb-badge-danger):not(.xb-badge-warning),
[data-theme="light"] [style*="color: #fff"]:not(.xb-btn-primary):not(.xb-tab-item.is-active):not(.xb-page-nav-link.is-active):not(.xb-badge-primary):not(.xb-badge-success):not(.xb-badge-danger):not(.xb-badge-warning),
[data-theme="light"] [style*="color:#ffffff"]:not(.xb-btn-primary):not(.xb-tab-item.is-active):not(.xb-page-nav-link.is-active):not(.xb-badge-primary):not(.xb-badge-success):not(.xb-badge-danger):not(.xb-badge-warning),
[data-theme="light"] [style*="color:#fff"]:not(.xb-btn-primary):not(.xb-tab-item.is-active):not(.xb-page-nav-link.is-active):not(.xb-badge-primary):not(.xb-badge-success):not(.xb-badge-danger):not(.xb-badge-warning),
body.xb-light-mode [style*="color: #ffffff"]:not(.xb-btn-primary):not(.xb-tab-item.is-active):not(.xb-page-nav-link.is-active):not(.xb-badge-primary):not(.xb-badge-success):not(.xb-badge-danger):not(.xb-badge-warning),
body.xb-light-mode [style*="color: #fff"]:not(.xb-btn-primary):not(.xb-tab-item.is-active):not(.xb-page-nav-link.is-active):not(.xb-badge-primary):not(.xb-badge-success):not(.xb-badge-danger):not(.xb-badge-warning),
body.xb-light-mode [style*="color:#ffffff"]:not(.xb-btn-primary):not(.xb-tab-item.is-active):not(.xb-page-nav-link.is-active):not(.xb-badge-primary):not(.xb-badge-success):not(.xb-badge-danger):not(.xb-badge-warning),
body.xb-light-mode [style*="color:#fff"]:not(.xb-btn-primary):not(.xb-tab-item.is-active):not(.xb-page-nav-link.is-active):not(.xb-badge-primary):not(.xb-badge-success):not(.xb-badge-danger):not(.xb-badge-warning) {
  color: #0f172a !important;
}

/* Ensure active buttons keep crisp white text */
[data-theme="light"] .xb-btn-primary,
[data-theme="light"] .xb-tab-item.is-active,
[data-theme="light"] .xb-page-nav-link.is-active,
body.xb-light-mode .xb-btn-primary,
body.xb-light-mode .xb-tab-item.is-active,
body.xb-light-mode .xb-page-nav-link.is-active {
  color: #ffffff !important;
}

/* Tabs & Page Switcher Navigation in Light Mode */
[data-theme="light"] .xb-tabs,
body.xb-light-mode .xb-tabs,
[data-theme="light"] .xb-page-nav,
body.xb-light-mode .xb-page-nav {
  background: #f1f5f9;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .xb-tab-item,
body.xb-light-mode .xb-tab-item,
[data-theme="light"] .xb-page-nav-link,
body.xb-light-mode .xb-page-nav-link {
  color: #64748b;
}

[data-theme="light"] .xb-tab-item:hover,
body.xb-light-mode .xb-tab-item:hover,
[data-theme="light"] .xb-page-nav-link:hover,
body.xb-light-mode .xb-page-nav-link:hover {
  color: #0f172a;
  background: #e2e8f0;
}

[data-theme="light"] .xb-tab-item.is-active,
body.xb-light-mode .xb-tab-item.is-active,
[data-theme="light"] .xb-page-nav-link.is-active,
body.xb-light-mode .xb-page-nav-link.is-active {
  color: #ffffff !important;
  background: var(--xb-gradient-primary);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

/* Form Controls in Light Mode */
[data-theme="light"] .xb-input,
[data-theme="light"] .xb-textarea,
body.xb-light-mode .xb-input,
body.xb-light-mode .xb-textarea {
  background-color: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.9);
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .xb-select,
body.xb-light-mode .xb-select {
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 1rem !important;
  padding-right: 2.75rem !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .xb-select option,
body.xb-light-mode .xb-select option {
  background-color: #ffffff;
  color: #0f172a;
}

[data-theme="light"] .xb-select:focus,
body.xb-light-mode .xb-select:focus {
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230284c7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  border-color: var(--xb-primary) !important;
  box-shadow: 0 0 0 3px var(--xb-primary-glow) !important;
}

[data-theme="light"] .xb-input:focus,
[data-theme="light"] .xb-textarea:focus,
body.xb-light-mode .xb-input:focus,
body.xb-light-mode .xb-textarea:focus {
  background-color: #ffffff;
  border-color: var(--xb-primary);
  box-shadow: 0 0 0 3px var(--xb-primary-glow);
}

[data-theme="light"] .xb-input-icon,
body.xb-light-mode .xb-input-icon {
  color: #64748b !important;
  z-index: 5;
}

.xb-input-wrap:focus-within .xb-input-icon,
[data-theme="light"] .xb-input-wrap:focus-within .xb-input-icon,
body.xb-light-mode .xb-input-wrap:focus-within .xb-input-icon {
  color: var(--xb-primary) !important;
}

[data-theme="light"] .xb-label,
body.xb-light-mode .xb-label {
  color: #1e293b;
}

/* Tables in Light Mode */
[data-theme="light"] .xb-table-wrap,
body.xb-light-mode .xb-table-wrap {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .xb-table thead th,
body.xb-light-mode .xb-table thead th {
  background: #f8fafc;
  color: #475569;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

[data-theme="light"] .xb-table tbody tr,
body.xb-light-mode .xb-table tbody tr {
  border-bottom: 1px solid rgba(241, 245, 249, 1);
  color: #334155;
}

[data-theme="light"] .xb-table tbody tr:hover,
body.xb-light-mode .xb-table tbody tr:hover {
  background: #f8fafc;
}

/* Mobile Drawer in Light Mode */
[data-theme="light"] .xb-mobile-drawer,
body.xb-light-mode .xb-mobile-drawer {
  background: #ffffff;
  border-left: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .xb-drawer-user,
body.xb-light-mode .xb-drawer-user {
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.95);
}

/* Notice Collapsible & Description in Light Mode */
[data-theme="light"] #orderNoticeHeader,
body.xb-light-mode #orderNoticeHeader {
  color: #0f172a !important;
}

[data-theme="light"] #orderNoticeHeader span,
body.xb-light-mode #orderNoticeHeader span {
  color: #0f172a;
}

[data-theme="light"] #service_description_box,
body.xb-light-mode #service_description_box {
  background: #f8fafc !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  color: #334155 !important;
}

[data-theme="light"] .xb-charge-preview,
body.xb-light-mode .xb-charge-preview {
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.95);
}

[data-theme="light"] .xb-platform-icon-btn,
body.xb-light-mode .xb-platform-icon-btn {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  color: var(--xb-primary) !important;
}

[data-theme="light"] .xb-platform-icon-btn[data-platform="all"] i,
body.xb-light-mode .xb-platform-icon-btn[data-platform="all"] i {
  color: var(--xb-primary);
}

[data-theme="light"] .xb-platform-icon-btn:hover,
body.xb-light-mode .xb-platform-icon-btn:hover {
  background: #f1f5f9 !important;
  border-color: rgba(203, 213, 225, 1) !important;
  transform: translateY(-2px);
}

[data-theme="light"] .xb-platform-icon-btn.is-active,
body.xb-light-mode .xb-platform-icon-btn.is-active {
  background: var(--xb-gradient-primary) !important;
  border-color: var(--xb-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35) !important;
  transform: translateY(-2px);
}

[data-theme="light"] .xb-platform-icon-btn.is-active i,
body.xb-light-mode .xb-platform-icon-btn.is-active i,
[data-theme="light"] .xb-platform-icon-btn.is-active[data-platform="all"] i,
body.xb-light-mode .xb-platform-icon-btn.is-active[data-platform="all"] i {
  color: #ffffff !important;
}

[data-theme="light"] .xb-custom-select-trigger,
body.xb-light-mode .xb-custom-select-trigger {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.9);
  color: #0f172a;
}

[data-theme="light"] .xb-custom-select-menu,
body.xb-light-mode .xb-custom-select-menu {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .xb-custom-select-search-wrap,
body.xb-light-mode .xb-custom-select-search-wrap {
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

[data-theme="light"] .xb-custom-select-search-wrap input,
body.xb-light-mode .xb-custom-select-search-wrap input {
  background: #f8fafc;
  border-color: rgba(226, 232, 240, 0.95);
  color: #0f172a;
}

[data-theme="light"] .xb-custom-select-option,
body.xb-light-mode .xb-custom-select-option {
  color: #334155;
}

[data-theme="light"] .xb-custom-select-option:hover,
[data-theme="light"] .xb-custom-select-option.is-selected,
body.xb-light-mode .xb-custom-select-option:hover,
body.xb-light-mode .xb-custom-select-option.is-selected {
  background: #f1f5f9;
  color: var(--xb-primary);
}

/* Payment Method & Add Funds Light Mode */
[data-theme="light"] .xb-method-card,
body.xb-light-mode .xb-method-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .xb-method-card:hover,
body.xb-light-mode .xb-method-card:hover {
  background: #f8fafc;
  border-color: rgba(203, 213, 225, 1);
}

[data-theme="light"] .xb-method-card.is-active,
body.xb-light-mode .xb-method-card.is-active {
  background: rgba(14, 165, 233, 0.08);
  border-color: var(--xb-primary);
  box-shadow: 0 4px 15px -2px var(--xb-primary-glow);
}

[data-theme="light"] .xb-method-name,
body.xb-light-mode .xb-method-name {
  color: #0f172a;
}

[data-theme="light"] .xb-instruction-card,
body.xb-light-mode .xb-instruction-card {
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.95);
  color: #334155;
}

[data-theme="light"] .xb-instruction-card strong,
body.xb-light-mode .xb-instruction-card strong {
  color: #0f172a;
}

[data-theme="light"] .xb-deposit-tile,
body.xb-light-mode .xb-deposit-tile {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .xb-deposit-tile:hover,
body.xb-light-mode .xb-deposit-tile:hover {
  background: #f8fafc;
  border-color: rgba(203, 213, 225, 0.95);
}

[data-theme="light"] .xb-deposit-title,
body.xb-light-mode .xb-deposit-title {
  color: #0f172a;
}

[data-theme="light"] .xb-deposit-bottom,
body.xb-light-mode .xb-deposit-bottom {
  border-top-color: rgba(241, 245, 249, 1);
}

[data-theme="light"] .xb-modal-dialog,
body.xb-light-mode .xb-modal-dialog {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.9);
  color: #0f172a;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .xb-detail-val,
body.xb-light-mode .xb-detail-val {
  color: #0f172a;
}

[data-theme="light"] .xb-detail-label,
body.xb-light-mode .xb-detail-label {
  color: #64748b;
}

/* Tickets Layout in Light Mode */
[data-theme="light"] .xb-ticket-tile,
body.xb-light-mode .xb-ticket-tile {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .xb-ticket-tile:hover,
body.xb-light-mode .xb-ticket-tile:hover {
  background: #f8fafc;
  border-color: rgba(203, 213, 225, 0.95);
}

[data-theme="light"] .xb-ticket-tile-header,
body.xb-light-mode .xb-ticket-tile-header {
  border-bottom-color: rgba(241, 245, 249, 1);
}

[data-theme="light"] .xb-ticket-subject a,
body.xb-light-mode .xb-ticket-subject a {
  color: #0f172a;
}

[data-theme="light"] .xb-ticket-subject a:hover,
body.xb-light-mode .xb-ticket-subject a:hover {
  color: var(--xb-primary);
}

[data-theme="light"] .xb-ticket-search-input,
body.xb-light-mode .xb-ticket-search-input {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.9);
  color: #0f172a;
}

/* Account Hub in Light Mode */
[data-theme="light"] .xb-account-card strong,
body.xb-light-mode .xb-account-card strong {
  color: #0f172a;
}

[data-theme="light"] .xb-currency-select-btn,
body.xb-light-mode .xb-currency-select-btn {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
}

[data-theme="light"] .xb-currency-select-btn strong,
body.xb-light-mode .xb-currency-select-btn strong {
  color: #0f172a;
}

[data-theme="light"] .xb-currency-select-btn:hover,
body.xb-light-mode .xb-currency-select-btn:hover {
  background: #f8fafc;
  border-color: rgba(203, 213, 225, 1);
}

/* Services Catalog & Pills in Light Mode */
[data-theme="light"] .xb-category-block .xb-glass-card,
body.xb-light-mode .xb-category-block .xb-glass-card {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-left: 4px solid var(--xb-primary) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .xb-platform-pill,
body.xb-light-mode .xb-platform-pill {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  color: #475569;
}

[data-theme="light"] .xb-platform-pill:hover,
body.xb-light-mode .xb-platform-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
}

[data-theme="light"] .xb-platform-pill.is-active,
body.xb-light-mode .xb-platform-pill.is-active {
  background: var(--xb-gradient-primary);
  color: #ffffff;
  border-color: transparent;
}

/* Search Dropdown & Copy Buttons in Light Mode */
[data-theme="light"] .xb-search-results,
body.xb-light-mode .xb-search-results {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .xb-search-item,
body.xb-light-mode .xb-search-item {
  color: #0f172a;
  border-bottom: 1px solid rgba(241, 245, 249, 1);
}

[data-theme="light"] .xb-search-item:hover,
body.xb-light-mode .xb-search-item:hover {
  background: #f8fafc;
}

[data-theme="light"] .xb-search-item-title span:last-child,
body.xb-light-mode .xb-search-item-title span:last-child {
  color: #0f172a;
}

[data-theme="light"] .xb-copy-btn,
body.xb-light-mode .xb-copy-btn {
  background: #f1f5f9;
  border: 1px solid rgba(226, 232, 240, 0.95);
  color: #64748b;
}

[data-theme="light"] .xb-copy-btn:hover,
body.xb-light-mode .xb-copy-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Code & Pre Blocks in Light Mode */
[data-theme="light"] code,
body.xb-light-mode code {
  background: #f1f5f9;
  color: #0ea5e9;
  border: 1px solid rgba(226, 232, 240, 0.95);
}

[data-theme="light"] pre,
body.xb-light-mode pre {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
}

/* Overriding Dark Backgrounds on Cards & Boxes */
[data-theme="light"] [style*="background: rgba(15, 23, 42"],
[data-theme="light"] [style*="background:rgba(15, 23, 42"],
[data-theme="light"] [style*="background: rgba(20, 29, 48"],
[data-theme="light"] [style*="background:rgba(20, 29, 48"],
[data-theme="light"] [style*="background: rgba(10, 14, 25"],
[data-theme="light"] [style*="background:rgba(10, 14, 25"],
body.xb-light-mode [style*="background: rgba(15, 23, 42"],
body.xb-light-mode [style*="background:rgba(15, 23, 42"],
body.xb-light-mode [style*="background: rgba(20, 29, 48"],
body.xb-light-mode [style*="background:rgba(20, 29, 48"],
body.xb-light-mode [style*="background: rgba(10, 14, 25"],
body.xb-light-mode [style*="background:rgba(10, 14, 25"] {
  background: #ffffff !important;
  border-color: rgba(226, 232, 240, 0.95) !important;
}

/* WhatsApp Contact Button in Light Mode */
[data-theme="light"] .xb-whatsapp-help-btn,
body.xb-light-mode .xb-whatsapp-help-btn {
  background: rgba(37, 211, 102, 0.1) !important;
  border-color: rgba(37, 211, 102, 0.3) !important;
}

[data-theme="light"] .xb-whatsapp-help-btn span:first-child,
body.xb-light-mode .xb-whatsapp-help-btn span:first-child {
  color: #475569 !important;
}

/* Footer in Light Mode */
[data-theme="light"] .xb-footer,
body.xb-light-mode .xb-footer {
  background: #ffffff;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

/* ==========================================================================
   TICKETS WARNING CARD & UPLOAD SHORTCUT (Dark & Light Theme)
   ========================================================================== */
.xb-ticket-warning-card {
  margin-bottom: 1.5rem;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-radius: var(--xb-radius-lg);
  padding: 1.25rem 1.5rem;
}

.xb-ticket-warning-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.xb-ticket-warning-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.xb-ticket-warning-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fbbf24;
  margin: 0;
  line-height: 1.4;
}

.xb-ticket-warning-sub {
  font-size: 0.78rem;
  font-weight: 500;
  color: #cbd5e1;
  opacity: 0.85;
}

.xb-ticket-warning-chevron {
  color: #fbbf24;
  font-size: 0.9rem;
  padding-left: 0.5rem;
}

.xb-ticket-warning-chevron i {
  transition: transform 0.3s ease;
  transform: rotate(-90deg);
}

.xb-ticket-warning-body {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(245, 158, 11, 0.2);
}

.xb-ticket-warning-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--xb-text-secondary);
  line-height: 1.6;
}

.xb-ticket-warning-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.xb-ticket-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  font-weight: 800;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.xb-ticket-num-badge.xb-num-danger {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.xb-ticket-sla-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(245, 158, 11, 0.25);
}

.xb-ticket-sla-pill {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.xb-ticket-sla-pill.xb-sla-reply {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.xb-ticket-sla-pill.xb-sla-resolve {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.25);
  color: #38bdf8;
}

/* Upload Screenshot Shortcut Button */
.xb-upload-shortcut-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--xb-text-secondary);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--xb-radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.xb-upload-shortcut-btn:hover {
  background: rgba(14, 165, 233, 0.12);
  border-color: var(--xb-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.xb-ticket-tips-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--xb-border-subtle);
  border-radius: var(--xb-radius-md);
  padding: 1rem;
  text-align: left;
  font-size: 0.8rem;
  line-height: 1.6;
}

/* ==========================================================================
   LIGHT MODE OVERRIDES FOR TICKETS, BUTTONS, NAVBAR & HOVER SAFETY
   ========================================================================== */
[data-theme="light"] .xb-ticket-warning-card,
body.xb-light-mode .xb-ticket-warning-card {
  background: linear-gradient(135deg, #fffdf5 0%, #fef9c3 100%) !important;
  border: 1px solid #fde047 !important;
  box-shadow: 0 4px 18px rgba(234, 179, 8, 0.1) !important;
}

[data-theme="light"] .xb-ticket-warning-header,
body.xb-light-mode .xb-ticket-warning-header {
  color: #854d0e !important;
}

[data-theme="light"] .xb-ticket-warning-icon,
body.xb-light-mode .xb-ticket-warning-icon {
  background: rgba(234, 179, 8, 0.22) !important;
  color: #ca8a04 !important;
}

[data-theme="light"] .xb-ticket-warning-title,
body.xb-light-mode .xb-ticket-warning-title {
  color: #854d0e !important;
}

[data-theme="light"] .xb-ticket-warning-sub,
body.xb-light-mode .xb-ticket-warning-sub {
  color: #a16207 !important;
  opacity: 0.95 !important;
}

[data-theme="light"] .xb-ticket-warning-chevron,
body.xb-light-mode .xb-ticket-warning-chevron {
  color: #a16207 !important;
}

[data-theme="light"] .xb-ticket-warning-body,
body.xb-light-mode .xb-ticket-warning-body {
  border-top-color: #fde047 !important;
  color: #334155 !important;
}

[data-theme="light"] .xb-ticket-warning-item,
body.xb-light-mode .xb-ticket-warning-item {
  color: #334155 !important;
}

[data-theme="light"] .xb-ticket-warning-item strong,
body.xb-light-mode .xb-ticket-warning-item strong {
  color: #0f172a !important;
}

[data-theme="light"] .xb-ticket-num-badge,
body.xb-light-mode .xb-ticket-num-badge {
  background: #fef08a !important;
  color: #854d0e !important;
}

[data-theme="light"] .xb-ticket-num-badge.xb-num-danger,
body.xb-light-mode .xb-ticket-num-badge.xb-num-danger {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}

[data-theme="light"] .xb-ticket-sla-row,
body.xb-light-mode .xb-ticket-sla-row {
  border-top-color: #fde047 !important;
}

[data-theme="light"] .xb-ticket-sla-pill.xb-sla-reply,
body.xb-light-mode .xb-ticket-sla-pill.xb-sla-reply {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #065f46 !important;
}

[data-theme="light"] .xb-ticket-sla-pill.xb-sla-resolve,
body.xb-light-mode .xb-ticket-sla-pill.xb-sla-resolve {
  background: #f0f9ff !important;
  border-color: #bae6fd !important;
  color: #0369a1 !important;
}

[data-theme="light"] .xb-upload-shortcut-btn,
body.xb-light-mode .xb-upload-shortcut-btn {
  background: #f8fafc !important;
  color: #334155 !important;
  border: 1px dashed #cbd5e1 !important;
}

[data-theme="light"] .xb-upload-shortcut-btn:hover,
body.xb-light-mode .xb-upload-shortcut-btn:hover {
  background: rgba(14, 165, 233, 0.08) !important;
  border-color: var(--xb-primary) !important;
  color: var(--xb-primary) !important;
}

[data-theme="light"] .xb-ticket-tips-box,
body.xb-light-mode .xb-ticket-tips-box {
  background: #f8fafc !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
}

/* Light Mode Mobile Bottom Navbar */
[data-theme="light"] .xb-bottom-nav,
body.xb-light-mode .xb-bottom-nav {
  background: rgba(255, 255, 255, 0.96) !important;
  border-top: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .xb-bottom-nav-item,
body.xb-light-mode .xb-bottom-nav-item {
  color: #64748b !important;
}

[data-theme="light"] .xb-bottom-nav-item:hover,
[data-theme="light"] .xb-bottom-nav-item.is-active,
body.xb-light-mode .xb-bottom-nav-item:hover,
body.xb-light-mode .xb-bottom-nav-item.is-active {
  color: var(--xb-primary) !important;
}

[data-theme="light"] .xb-bottom-nav-item.is-active i,
body.xb-light-mode .xb-bottom-nav-item.is-active i {
  filter: drop-shadow(0 2px 8px var(--xb-primary-glow)) !important;
}

/* Light Mode Mobile Hamburger Toggle & Drawer */
[data-theme="light"] .xb-mobile-toggle,
body.xb-light-mode .xb-mobile-toggle {
  background: #f1f5f9 !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  color: #0f172a !important;
}

[data-theme="light"] .xb-mobile-toggle:hover,
body.xb-light-mode .xb-mobile-toggle:hover {
  background: #e2e8f0 !important;
}

[data-theme="light"] .xb-mobile-drawer,
body.xb-light-mode .xb-mobile-drawer {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
}

/* Light Mode Badges Contrast */
[data-theme="light"] .xb-badge-primary,
body.xb-light-mode .xb-badge-primary {
  background: #e0f2fe !important;
  color: #0284c7 !important;
  border-color: #bae6fd !important;
}

[data-theme="light"] .xb-badge-success,
body.xb-light-mode .xb-badge-success {
  background: #dcfce7 !important;
  color: #059669 !important;
  border-color: #bbf7d0 !important;
}

[data-theme="light"] .xb-badge-warning,
body.xb-light-mode .xb-badge-warning {
  background: #fef3c7 !important;
  color: #d97706 !important;
  border-color: #fde68a !important;
}

[data-theme="light"] .xb-badge-danger,
body.xb-light-mode .xb-badge-danger {
  background: #fee2e2 !important;
  color: #dc2626 !important;
  border-color: #fecaca !important;
}

[data-theme="light"] .xb-badge-glass,
body.xb-light-mode .xb-badge-glass {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border-color: #cbd5e1 !important;
}

/* Universal Light Mode Hover & Contrast Safety */
[data-theme="light"] a:hover:not(.xb-btn-primary):not(.xb-tab-item.is-active):not(.xb-page-nav-link.is-active):not(.xb-platform-icon-btn.is-active),
body.xb-light-mode a:hover:not(.xb-btn-primary):not(.xb-tab-item.is-active):not(.xb-page-nav-link.is-active):not(.xb-platform-icon-btn.is-active) {
  color: var(--xb-primary);
}

[data-theme="light"] .xb-tab-item:not(.is-active):hover,
[data-theme="light"] .xb-page-nav-link:not(.is-active):hover,
body.xb-light-mode .xb-tab-item:not(.is-active):hover,
body.xb-light-mode .xb-page-nav-link:not(.is-active):hover {
  color: var(--xb-primary) !important;
  background: #e2e8f0 !important;
}

[data-theme="light"] .xb-tab-item.is-active:hover,
[data-theme="light"] .xb-page-nav-link.is-active:hover,
body.xb-light-mode .xb-tab-item.is-active:hover,
body.xb-light-mode .xb-page-nav-link.is-active:hover {
  color: #ffffff !important;
  background: var(--xb-gradient-primary) !important;
}

[data-theme="light"] .xb-platform-pill:not(.is-active):hover,
body.xb-light-mode .xb-platform-pill:not(.is-active):hover {
  background: #f1f5f9 !important;
  border-color: rgba(203, 213, 225, 1) !important;
  color: var(--xb-primary) !important;
}

[data-theme="light"] .xb-platform-pill.is-active,
body.xb-light-mode .xb-platform-pill.is-active {
  background: var(--xb-gradient-primary) !important;
  color: #ffffff !important;
}

[data-theme="light"] .xb-platform-pill.is-active i,
body.xb-light-mode .xb-platform-pill.is-active i {
  color: #ffffff !important;
}

