/* SMMSW - Premium White & Blue Light / Dark Theme & Design System with Dynamic Animations */

/* Light Theme (Default: Biało-Niebieski) */
:root, [data-theme="light"] {
  --bg-primary: #f4f7fa;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: #f1f5f9;
  --bg-input: #f8fafc;
  
  --accent-cyan: #0284c7; /* Royal Ocean Blue */
  --accent-cyan-glow: rgba(2, 132, 199, 0.25);
  --accent-purple: #2563eb; /* Deep Electric Blue */
  --accent-purple-glow: rgba(37, 99, 235, 0.25);
  --accent-emerald: #059669; /* Emerald Green */
  --accent-emerald-glow: rgba(5, 150, 105, 0.25);
  --accent-pink: #d946ef;
  
  --text-main: #0f172a; /* Slate 900 */
  --text-muted: #334155; /* Slate 700 */
  --text-dim: #64748b; /* Slate 500 */
  
  --border-color: #e2e8f0;
  --border-glow: rgba(2, 132, 199, 0.35);
  
  --sidebar-bg: rgba(255, 255, 255, 0.92);
  --navbar-bg: rgba(255, 255, 255, 0.94);
  --table-header-bg: #f8fafc;
  --card-shadow: 0 8px 25px rgba(2, 132, 199, 0.08);
  --logo-text-color: #0f172a;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme (Głęboki Czarny z Elektrycznym Niebieskim) */
[data-theme="dark"] {
  --bg-primary: #04060a; /* Głęboka Czerń */
  --bg-secondary: #0b101d;
  --bg-card: rgba(11, 16, 29, 0.82);
  --bg-card-hover: #121829;
  --bg-input: #0f172a;
  
  --accent-cyan: #00a2ff; /* Elektryczny Niebieski */
  --accent-cyan-glow: rgba(0, 162, 255, 0.45);
  --accent-purple: #2563eb; /* Neonowy Niebieski */
  --accent-purple-glow: rgba(37, 99, 235, 0.45);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.35);
  --accent-pink: #ec4899;
  
  --text-main: #ffffff; /* Czysta Biel */
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-color: rgba(0, 162, 255, 0.22); /* Niebieska świecąca ramka */
  --border-glow: rgba(0, 162, 255, 0.6);
  
  --sidebar-bg: rgba(6, 9, 18, 0.92);
  --navbar-bg: rgba(4, 6, 10, 0.95);
  --table-header-bg: #0f172a;
  --card-shadow: 0 10px 30px rgba(0, 162, 255, 0.12);
  --logo-text-color: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  line-height: 1.5;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* =================================================== */
/* 🌟 DYNAMIC ANIMATED BACKGROUND ORBS & GLOW MESHES   */
/* =================================================== */
.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform, opacity;
  animation: floatOrb 20s ease-in-out infinite alternate;
}

.orb-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
  top: -80px;
  left: 5%;
  opacity: 0.38;
  animation-duration: 18s;
}

.orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--accent-purple), transparent 70%);
  bottom: -100px;
  right: 5%;
  opacity: 0.35;
  animation-duration: 24s;
  animation-delay: -6s;
}

.orb-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--accent-pink), transparent 70%);
  top: 35%;
  left: 45%;
  opacity: 0.22;
  animation-duration: 22s;
  animation-delay: -12s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(60px, -40px) scale(1.12);
  }
  66% {
    transform: translate(-50px, 50px) scale(0.92);
  }
  100% {
    transform: translate(30px, -60px) scale(1.06);
  }
}

/* Pulse Glow Animation */
.pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 10px var(--accent-cyan-glow);
  }
  100% {
    box-shadow: 0 0 25px var(--accent-cyan-glow), 0 0 10px var(--accent-purple-glow);
  }
}

/* Glassmorphism Container */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
}

.glass-panel:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 162, 255, 0.16);
}

/* Header & Top Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.9rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--logo-text-color);
  text-decoration: none;
  transition: var(--transition);
}

.brand-logo:hover {
  transform: scale(1.03);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Language Switcher Dropdown */
.lang-switch-container {
  position: relative;
}

.lang-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.lang-toggle-btn:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
  transform: translateY(-1px);
}

.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 165px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
  z-index: 250;
  padding: 0.4rem;
}

.lang-dropdown-menu.open {
  display: block;
  animation: fadeIn 0.15s ease-out;
}

.user-balance-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.4rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.user-balance-card:hover {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 15px var(--accent-emerald-glow);
}

.balance-amount {
  font-weight: 700;
  color: var(--accent-emerald);
  font-size: 1.05rem;
}

.btn-add-funds-sm {
  background: linear-gradient(135deg, var(--accent-emerald), #047857);
  color: #fff;
  border: none;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-add-funds-sm:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 15px var(--accent-emerald-glow);
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.3);
  color: var(--accent-cyan);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: rgba(2, 132, 199, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

/* Layout App Sidebar & Content */
.app-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 70px);
  position: relative;
}

.sidebar {
  background: var(--sidebar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: var(--transition);
}

.sidebar-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  padding: 0.6rem 0.8rem 0.3rem 0.8rem;
  letter-spacing: 1px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.nav-item:hover {
  background: rgba(2, 132, 199, 0.08);
  color: var(--accent-cyan);
  transform: translateX(4px);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.16), rgba(37, 99, 235, 0.08));
  color: var(--accent-cyan);
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.15);
}

.nav-item.admin-nav {
  color: #d946ef;
}

.nav-item.admin-nav.active {
  background: linear-gradient(90deg, rgba(217, 70, 239, 0.16), rgba(37, 99, 235, 0.08));
  border-color: rgba(217, 70, 239, 0.4);
  color: #d946ef;
}

.main-content {
  padding: 2rem;
  max-width: 1350px;
  margin: 0 auto;
  width: 100%;
}

/* Page Header Title */
.page-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.page-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

/* Form Components */
.form-group {
  margin-bottom: 1.3rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 18px var(--accent-cyan-glow);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

/* Buttons with Shimmer Effects */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
  color: #fff;
  border: none;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 15px var(--accent-cyan-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 80%
  );
  transform: translateX(-100%);
  animation: shimmerSweep 4s infinite;
}

@keyframes shimmerSweep {
  0% { transform: translateX(-100%); }
  25% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 25px var(--accent-cyan-glow);
}

.btn-secondary {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}

.btn-danger-sm {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-danger-sm:hover {
  background: #ef4444;
  color: #fff;
}

/* Quick Quantity Badges */
.quick-qty-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.qty-chip {
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  opacity: 0.75;
}

.qty-chip:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.qty-chip.active {
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  font-weight: 800 !important;
  opacity: 1 !important;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.65), 0 2px 8px rgba(0, 0, 0, 0.4) !important;
  transform: scale(1.04);
}

#bundle-reactions-chips .qty-chip.active {
  background: linear-gradient(135deg, #ec4899, #db2777) !important;
  border-color: #f472b6 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  opacity: 1 !important;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.7), 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

#bundle-shares-chips .qty-chip.active {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  border-color: #34d399 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  opacity: 1 !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.7), 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

/* Range Slider Styling */
.range-slider-wrapper {
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
}

.form-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  outline: none;
  transition: var(--transition);
  cursor: pointer;
}

.form-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  cursor: pointer;
  box-shadow: 0 0 14px var(--accent-cyan);
  border: 2px solid #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.form-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  box-shadow: 0 0 20px var(--accent-cyan);
}

.form-range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  cursor: pointer;
  box-shadow: 0 0 14px var(--accent-cyan);
  border: 2px solid #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Stat Cards Grid */
.stat-cards-container {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.stat-card-mini {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.stat-card-mini::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-cyan);
  border-radius: 4px 0 0 4px;
}

.stat-card-mini.purple::before {
  background: var(--accent-purple);
}

.stat-card-mini.emerald::before {
  background: var(--accent-emerald);
}

.stat-card-mini:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--border-glow);
  box-shadow: 0 10px 25px rgba(0, 162, 255, 0.15);
}

.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(2, 132, 199, 0.25);
  flex-shrink: 0;
}

.stat-icon-wrapper.purple {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.25);
}

.stat-icon-wrapper.emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.stat-num {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.2rem;
  font-family: 'Outfit', var(--font-family);
  letter-spacing: -0.02em;
}

/* Info Box / Summary Cards */
.summary-card {
  padding: 1.25rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.summary-row.total {
  border-top: 1px solid var(--border-color);
  margin-top: 0.5rem;
  padding-top: 0.8rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-main);
}

/* Tables */
.data-table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: var(--table-header-bg);
  padding: 0.9rem 1rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
  vertical-align: middle;
  color: var(--text-main);
}

.data-table tbody tr {
  transition: var(--transition);
}

.data-table tbody tr:hover {
  background: var(--bg-card-hover);
  transform: scale(1.002);
}

.orders-desktop-table {
  display: block;
}

.orders-mobile-list {
  display: none;
}

/* Status Badges with Live Pulse Dot */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-pending::before {
  background: #f59e0b;
}

.badge-processing {
  background: rgba(2, 132, 199, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(2, 132, 199, 0.3);
}
.badge-processing::before {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: blinkDot 1.4s infinite alternate;
}

.badge-completed {
  background: rgba(5, 150, 105, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(5, 150, 105, 0.3);
}
.badge-completed::before {
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}

.badge-canceled {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge-canceled::before {
  background: #dc2626;
}

@keyframes blinkDot {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.4rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: var(--text-main);
  font-weight: 600;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-success {
  border-left-color: var(--accent-emerald);
}

.toast-error {
  border-left-color: var(--accent-pink);
}

@keyframes slideIn {
  from {
    transform: translateX(100%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bundle-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.2rem;
  width: 100%;
}

.sidebar-mobile-header {
  display: none;
}

/* Overlay for when menu is open */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
}
.sidebar-overlay.open {
  display: block;
}

/* Mobile Hamburger Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  margin-right: 0.5rem;
}

@media (max-width: 992px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }

  .app-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    z-index: 1001;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.9);
    background: var(--sidebar-bg);
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.2rem 1rem;
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
  }

  .sidebar-close-btn {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
  }

  .sidebar-close-btn:hover {
    color: var(--text-main);
    border-color: var(--accent-cyan);
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .grid-2, .grid-3, .grid-4 {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 1.2rem !important;
  }

  /* Navbar & Top Elements on Mobile */
  .navbar {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.6rem 0.8rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.4rem !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .brand-logo {
    font-size: 1.15rem !important;
    gap: 0.45rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .logo-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.05rem !important;
  }

  .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    flex-shrink: 0 !important;
  }

  /* Theme & Lang Buttons: Clean compact controls on mobile */
  .theme-toggle-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.15rem !important;
    flex-shrink: 0 !important;
  }

  .lang-toggle-btn {
    height: 38px !important;
    padding: 0 0.55rem !important;
    font-size: 0.82rem !important;
    gap: 0.25rem !important;
    border-radius: var(--radius-full) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  #theme-text {
    display: none !important;
  }

  /* User Balance Card: Compact pill that never clips */
  .user-balance-card {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    padding: 0.25rem 0.4rem 0.25rem 0.65rem !important;
    background: var(--bg-input) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-full) !important;
    flex-shrink: 0 !important;
  }

  .balance-label {
    display: none !important;
  }

  .balance-amount {
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    color: var(--accent-emerald) !important;
    white-space: nowrap !important;
  }

  .btn-add-funds-sm {
    padding: 0.28rem 0.65rem !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    border-radius: var(--radius-full) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .main-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1rem 0.8rem 5.5rem 0.8rem !important;
    overflow-x: hidden !important;
  }

  .glass-panel {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.2rem 0.95rem !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-title {
    font-size: 1.35rem !important;
    word-break: break-word;
  }

  .page-subtitle {
    font-size: 0.82rem !important;
    word-break: break-word;
  }

  .stat-cards-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.8rem !important;
  }

  .stat-card-mini {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Native Mobile Bottom Nav Bar */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 60px !important;
    background: var(--navbar-bg) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-top: 1px solid var(--border-color) !important;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.25) !important;
    z-index: 1000 !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    box-sizing: border-box !important;
  }

  .bottom-nav-item {
    background: transparent;
    border: none;
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-dim);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-item .nav-icon {
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .bottom-nav-item .nav-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
  }

  .bottom-nav-item.active {
    color: var(--accent-cyan);
  }

  .bottom-nav-item.active .nav-icon {
    transform: scale(1.15) translateY(-2px);
    filter: drop-shadow(0 0 8px var(--accent-cyan-glow));
  }

  .bottom-nav-item.active .nav-label {
    color: var(--accent-cyan);
    font-weight: 800;
  }

  .bottom-nav-badge {
    position: absolute;
    top: 4px;
    right: 22%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    line-height: 1.1;
  }

  footer {
    padding-bottom: 5.5rem !important;
  }

  /* Touch-optimized quantity chips */
  .quick-qty-group {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .qty-chip {
    flex: 1 1 calc(25% - 0.4rem) !important;
    min-width: 50px !important;
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    padding: 0.4rem 0.2rem !important;
    box-sizing: border-box !important;
  }

  .qty-chip.active {
    font-weight: 800 !important;
    transform: none !important;
  }

  /* Touch-friendly buttons & inputs */
  .btn-primary, .btn-secondary {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
  }

  /* Smooth scroll data tables */
  .data-table-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
  }

  /* Responsive orders view: Table on Desktop, Cards on Mobile */
  .orders-desktop-table {
    display: none !important;
  }
  .orders-mobile-list {
    display: flex !important;
  }

  /* Mobile Toast Positioning above Bottom Nav */
  .toast-container {
    bottom: 4.8rem !important;
    right: 1rem !important;
    left: 1rem !important;
    align-items: center;
  }
  .toast {
    width: 100%;
    max-width: 440px;
    padding: 0.85rem 1.1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  .navbar {
    padding: 0.5rem 0.6rem !important;
    gap: 0.3rem !important;
  }

  .brand-logo {
    font-size: 1.05rem !important;
    gap: 0.35rem !important;
  }

  .logo-icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.95rem !important;
  }

  .mobile-menu-btn {
    font-size: 1.35rem !important;
    margin-right: 0.25rem !important;
  }

  .nav-actions {
    gap: 0.35rem !important;
  }

  .theme-toggle-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    font-size: 1rem !important;
  }

  .user-balance-card {
    padding: 0.2rem 0.35rem 0.2rem 0.55rem !important;
    gap: 0.3rem !important;
  }

  .balance-amount {
    font-size: 0.85rem !important;
  }

  .btn-add-funds-sm {
    padding: 0.22rem 0.5rem !important;
    font-size: 0.72rem !important;
  }

  .glass-panel {
    padding: 1.1rem 0.9rem !important;
    border-radius: var(--radius-sm) !important;
  }

  .page-title {
    font-size: 1.3rem !important;
  }
}

/* =================================================== */
/* 💡 SUGGESTIONS & COMMUNITY VOTING SYSTEM STYLES     */
/* =================================================== */
.suggestions-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.suggestions-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover {
  background: rgba(2, 132, 199, 0.12);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.filter-chip.active {
  background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px var(--accent-cyan-glow);
}

.suggestion-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
}

.suggestion-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 162, 255, 0.12);
}

.vote-btn-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  min-width: 60px;
  flex-shrink: 0;
}

.vote-btn-box:hover {
  border-color: var(--accent-cyan);
  background: rgba(2, 132, 199, 0.1);
  transform: scale(1.05);
}

.vote-btn-box.voted {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25), rgba(37, 99, 235, 0.2));
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.vote-btn-box.voted .vote-count {
  color: var(--accent-cyan);
  font-weight: 800;
}

.vote-icon {
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vote-btn-box:hover .vote-icon {
  transform: translateY(-2px);
}

.vote-count {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
}

.platform-tag {
  font-size: 0.74rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.admin-reply-box {
  margin-top: 0.8rem;
  padding: 0.8rem 1rem;
  background: rgba(37, 99, 235, 0.08);
  border-left: 3px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Custom Visual Platform Dropdown */
.custom-platform-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  min-height: 48px;
}

.custom-platform-trigger:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.custom-platform-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: 320px;
  overflow-y: auto;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  z-index: 50;
  padding: 0.4rem;
}

.custom-platform-menu.open {
  display: block;
  animation: fadeIn 0.15s ease-out;
}

.platform-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
}

.platform-option:hover {
  background: rgba(2, 132, 199, 0.15);
  color: var(--accent-cyan);
  transform: translateX(3px);
}

/* Service Duration Highlight Badge */
.service-duration-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.55rem;
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid rgba(2, 132, 199, 0.5);
  border-radius: var(--radius-full);
  color: #38bdf8;
  font-weight: 800;
  font-size: 0.78rem;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.25);
  letter-spacing: 0.2px;
}

[data-theme="light"] .service-duration-pill {
  background: rgba(2, 132, 199, 0.12);
  border-color: rgba(2, 132, 199, 0.4);
  color: #0284c7;
}

@media (max-width: 768px) {
  .platform-option {
    padding: 0.75rem 0.65rem;
    font-size: 0.88rem;
  }
  
  .service-duration-pill {
    font-size: 0.74rem;
    padding: 0.15rem 0.45rem;
  }
}
