/* Barre de navigation mobile client */
.client-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(10, 10, 30, 0.95);
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  padding: 0.5rem 0.25rem;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  height: auto;
}

.client-bottom-nav .nav-btn {
  background: none;
  border: none;
  color: var(--text-secondary, #9CA3AF);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0.4rem 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.client-bottom-nav .nav-btn:active {
  transform: scale(0.92);
  opacity: 0.8;
}

.client-bottom-nav .nav-btn.active,
.client-bottom-nav .nav-btn:focus {
  color: var(--primary, #8B5CF6);
}

.client-bottom-nav .nav-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.client-bottom-nav .nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (max-width: 480px) {
  .client-bottom-nav .nav-icon {
    font-size: 1.2rem;
  }

  .client-bottom-nav .nav-label {
    font-size: 0.65rem;
  }

  .client-bottom-nav {
    padding: 0.4rem 0;
  }
}

/* Neon card for bar/nightlife style */
.neon-card {
  border-radius: var(--radius-md, 12px);
  background: var(--bg-800, #181828);
  box-shadow: 0 0 8px var(--neon-pink, #ff2fd6);
  border: 2px solid var(--neon-pink, #ff2fd6);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.neon-card.status-ready {
  border-color: var(--neon-green, #39ff14);
  box-shadow: 0 0 12px var(--neon-green, #39ff14);
}

.neon-card.status-preparing {
  border-color: var(--neon-blue, #00eaff);
  box-shadow: 0 0 12px var(--neon-blue, #00eaff);
}

.neon-card.status-pending {
  border-color: var(--neon-amber, #ffc300);
  box-shadow: 0 0 12px var(--neon-amber, #ffc300);
}

.neon-card.status-done {
  border-color: var(--neon-purple, #a259ff);
  box-shadow: 0 0 12px var(--neon-purple, #a259ff);
}

/* ====================================================
   Vulpov — L'instinct du bar
   Nightlife Dark Theme: Noir / Violet / Néon
   ==================================================== */

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

/* ─── CSS Variables ─────────────────────────────────── */
:root {
  --primary: #8B5CF6;
  --primary-dark: #6D28D9;
  --primary-light: #A78BFA;
  --accent: #EC4899;
  --accent-glow: rgba(236, 72, 153, 0.4);
  --neon-green: #10B981;
  --neon-cyan: #06B6D4;
  --neon-amber: #F59E0B;
  --bg-900: #050510;
  --bg-800: #0a0a1a;
  --bg-700: #0f0f25;
  --bg-600: #1a1a35;
  --bg-card: rgba(15, 15, 37, 0.8);
  --bg-card-hover: rgba(22, 22, 50, 0.95);
  --border: rgba(139, 92, 246, 0.15);
  --border-hover: rgba(139, 92, 246, 0.4);
  --text-primary: #F0EAFF;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.2);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ───────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-900);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-800);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* ─── Typography ─────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ─── Animations ─────────────────────────────────────── */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes neon-pulse {

  0%,
  100% {
    text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
  }

  50% {
    text-shadow: 0 0 20px var(--primary-light), 0 0 40px var(--primary-light), 0 0 60px var(--primary);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* ─── Background ─────────────────────────────────────── */
.bg-animated {
  background: radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(6, 182, 212, 0.04) 0%, transparent 70%),
    var(--bg-900);
  background-attachment: fixed;
}

/* ─── Auth Pages ─────────────────────────────────────── */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 440px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  animation: fadeIn 0.5s ease;
}

.logo-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
  gap: 0.5rem;
}

.logo-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  animation: float 4s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.logo-mark h1 {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: neon-pulse 3s ease-in-out infinite;
}

.logo-mark .tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── Forms ──────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.08);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

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

select option {
  background: var(--bg-700);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.96);
  filter: brightness(1.1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  background: rgba(16, 185, 129, 0.25);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-xs {
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  min-height: 32px;
}

@media (max-width: 600px) {
  .btn-xs {
    min-height: 40px;
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }

  .btn-sm {
    min-height: 44px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.text-accent {
  color: var(--accent);
}

.text-cyan {
  color: var(--neon-cyan, #06B6D4);
}

.text-red {
  color: #ef4444;
}

.text-green {
  color: #10b981;
}

.text-xs {
  font-size: 0.75rem;
}

.text-2xs {
  font-size: 0.6rem;
}

.font-mono {
  font-family: 'Space Grotesk', monospace;
}

.font-bold {
  font-weight: 700;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wide {
  letter-spacing: 0.05em;
}

.tracking-wider {
  letter-spacing: 0.1em;
}

/* ─── Layout ─────────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ─── Sidebar ────────────────────────────────────────── */
.sidebar {
  width: 260px;
  height: 100vh;
  background: var(--bg-800);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: transform var(--transition);
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-logo .logo-icon-sm {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  flex-shrink: 0;
}

.sidebar-logo .brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-bar-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  position: relative;
}

.nav-item:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary-light);
}

.nav-item.active {
  background: rgba(139, 92, 246, 0.15);
  color: var(--primary-light);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
}

.nav-item .nav-icon {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
}

.nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: 20px;
  font-weight: 700;
}

.sidebar-footer {
  padding: 1rem 0.75rem;
  border-top: 1px solid var(--border);
}

/* ─── Main Content ───────────────────────────────────── */
.main-content {
  margin-left: 260px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: calc(100vw - 260px);
}

@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
    max-width: 100vw;
  }
}

.top-bar {
  background: rgba(10, 10, 26, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-content {
  padding: 2rem;
  flex: 1;
}

/* ─── Cards ──────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

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

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ─── Stats Grid ─────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

/* ─── Tables ─────────────────────────────────────────── */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead tr {
  border-bottom: 1px solid var(--border);
}

th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(139, 92, 246, 0.07);
  vertical-align: middle;
}

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

tr:hover td {
  background: rgba(139, 92, 246, 0.05);
}

/* ─── Badges / Status ────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--neon-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-preparing {
  background: rgba(6, 182, 212, 0.15);
  color: var(--neon-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-ready {
  background: rgba(16, 185, 129, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-done {
  background: rgba(107, 114, 128, 0.15);
  color: var(--text-muted);
  border: 1px solid rgba(107, 114, 128, 0.2);
}

.badge-paid {
  background: rgba(16, 185, 129, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-unpaid {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-pink {
  background: rgba(236, 72, 153, 0.15);
  color: var(--accent);
  border: 1px solid rgba(236, 72, 153, 0.3);
}

/* ─── Modal ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 16, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  animation: fadeIn 0.25s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.close-btn {
  background: rgba(255, 255, 255, 0.07);
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

/* ─── Toast / Alerts ─────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.2rem;
  font-size: 0.9rem;
  min-width: 280px;
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.toast-success {
  border-left: 3px solid var(--neon-green);
}

.toast-error {
  border-left: 3px solid #F87171;
}

.toast-info {
  border-left: 3px solid var(--primary);
}

/* ─── Grid helper ────────────────────────────────────── */
.grid {
  display: grid;
  gap: 1.25rem;
}

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

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

/* Suggestions */
.suggestion-card {
  background: var(--bg-600);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-primary);
  text-align: center;
  min-height: 64px;
}

.suggestion-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.suggestion-card span {
  pointer-events: none;
}

.text-2xs {
  font-size: 0.65rem;
}

.sugerence-grid {
  max-height: 200px;
  overflow-y: auto;
  padding: 2px;
}

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

.gap-1 {
  gap: 0.25rem !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

/* ─── Section header ─────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
}

/* ─── Order Card ─────────────────────────────────────── */
.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: var(--transition);
  cursor: pointer;
  animation: fadeIn 0.3s ease;
}

.order-card:hover {
  border-color: var(--border-hover);
}

.order-card.status-pending {
  border-left: 3px solid var(--neon-amber);
}

.order-card.status-preparing {
  border-left: 3px solid var(--neon-cyan);
}

.order-card.status-ready {
  border-left: 3px solid var(--neon-green);
}

.order-card.status-done {
  border-left: 3px solid var(--text-muted);
}

/* ─── Cocktail card ──────────────────────────────────── */
.cocktail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.cocktail-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.cocktail-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.cocktail-card-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.cocktail-card-body {
  padding: 1.25rem;
}

.cocktail-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--neon-green);
  font-family: 'Space Grotesk', sans-serif;
}

/* ─── Toggle Switch ──────────────────────────────────── */
.toggle-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.toggle-group:last-child {
  border-bottom: none;
}

.toggle {
  position: relative;
  width: 44px;
  height: 24px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
}

.toggle input:checked+.toggle-slider {
  background: var(--primary);
}

.toggle input:checked+.toggle-slider::before {
  transform: translateX(20px);
}

/* ─── Progress bar ───────────────────────────────────── */
.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* ─── Chart placeholder ──────────────────────────────── */
.chart-container {
  position: relative;
  height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 0 4px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--primary), var(--accent));
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.5s ease;
  position: relative;
  opacity: 0.8;
}

.chart-bar:hover {
  opacity: 1;
}

/* ─── QR Code display ────────────────────────────────── */
.qr-display {
  background: white;
  border-radius: var(--radius);
  padding: 1rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.qr-display img {
  width: 200px;
  height: 200px;
  display: block;
}

/* ─── Music queue ────────────────────────────────────── */
.music-track {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  animation: fadeIn 0.3s ease;
}

.music-track:hover {
  border-color: var(--border-hover);
}

.track-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ─── Step wizard ────────────────────────────────────── */
.wizard-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2.5rem;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  position: relative;
}

.wizard-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.wizard-step.completed:not(:last-child)::after {
  background: var(--primary);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.1);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 1;
  position: relative;
  transition: var(--transition);
}

.wizard-step.active .step-number {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.wizard-step.completed .step-number {
  background: var(--neon-green);
  border-color: var(--neon-green);
}

.step-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

.wizard-step.active .step-label {
  color: var(--primary-light);
}

.wizard-step.completed .step-label {
  color: var(--neon-green);
}

/* ─── Color Picker ───────────────────────────────────── */
.color-picker-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.color-picker-group input[type="color"] {
  width: 44px;
  height: 36px;
  padding: 2px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ─── Utility ────────────────────────────────────────── */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.gap-3 {
  gap: 1.5rem;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.text-sm {
  font-size: 0.85rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-muted {
  color: var(--text-muted);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-primary-color {
  color: var(--primary-light);
}

.text-green {
  color: var(--neon-green);
}

.text-amber {
  color: var(--neon-amber);
}

.text-cyan {
  color: var(--neon-cyan);
}

.text-pink {
  color: var(--accent);
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.font-bold {
  font-weight: 700;
}

.font-mono {
  font-family: 'Monaco', 'Courier New', monospace;
}

.hidden {
  display: none !important;
}

.w-full {
  width: 100%;
}

.rounded {
  border-radius: var(--radius-sm);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.empty-state p {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* ─── Spinner ─────────────────────────────────────────── */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(139, 92, 246, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* ─── Info box ───────────────────────────────────────── */
.info-box {
  background: rgba(139, 92, 246, 0.07);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.info-box ol,
.info-box ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.info-box li {
  margin-bottom: 0.35rem;
}

.info-box a {
  color: var(--primary-light);
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

.guide-step-num {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── Client menu ────────────────────────────────────── */
.client-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(5, 5, 16, 0.92);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#lang-picker {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  padding: 0.3rem 0.5rem !important;
  padding-right: 1.2rem !important;
  font-size: 0.8rem !important;
  font-weight: 700;
  border-radius: 8px;
  min-height: 36px;
  min-width: 65px;
  flex-shrink: 0;
  cursor: pointer;
  appearance: auto;
}

@media (max-width: 480px) {
  .client-header #bar-name {
    font-size: 1rem !important;
    font-weight: 900 !important;
  }

  .client-header #table-display {
    display: none;
  }

  .client-header .btn-sm {
    padding: 0.4rem 0.6rem !important;
    min-width: auto !important;
    height: 38px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px !important;
    font-size: 0.75rem !important;
    gap: 4px;
    flex-shrink: 0;
  }

  .client-header {
    padding: 0.5rem 0.5rem;
    gap: 4px;
  }
}

#cartBtn {
  position: fixed;
  bottom: 85px;
  right: 20px;
  z-index: 99;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:active,
.btn.active {
  transform: scale(0.96);
  opacity: 0.9;
}

.btn-lg {
  min-height: 52px;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
}

body.modal-open #cartBtn {
  opacity: 0;
  pointer-events: none;
}

.client-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.cart-fab {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 500;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  animation: pulse-glow 2s ease-in-out infinite;
}

.cart-fab:hover {
  transform: scale(1.1);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Subscription plans ─────────────────────────────── */
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.plan-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
}

.plan-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 0.2rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  margin: 1rem 0;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plan-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ─── Responsive ─────────────────────────────────────── */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
    z-index: 200;
    width: 280px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .page-content {
    padding: 1rem;
  }

  .top-bar {
    padding: 0.75rem 1rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .client-menu-grid {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 2rem 1.5rem;
  }

  .modal {
    padding: 1.5rem;
  }
}

/* ─── Skeleton Loading ───────────────────────────────── */
.skeleton-pulse {
  animation: skelPulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  background: var(--bg-800);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

@keyframes skelPulse {

  0%,
  100% {
    opacity: 1;
    border-color: rgba(139, 92, 246, 0.1);
  }

  50% {
    opacity: .5;
    border-color: rgba(139, 92, 246, 0.3);
  }
}

.skeleton-pulse .skel-img {
  width: 100%;
  height: 180px;
  background: rgba(255, 255, 255, 0.05);
}

.skeleton-pulse .skel-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skeleton-pulse .skel-line {
  height: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.skeleton-pulse .skel-line.short {
  width: 60%;
}

.skeleton-pulse .skel-line.price {
  width: 30%;
  align-self: flex-end;
  margin-top: -24px;
}

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

/* Address Autocomplete */
.modal-content {
  position: relative;
  width: 95%;
  max-width: 500px;
  max-height: 85vh;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  padding-bottom: 3.5rem;
  /* Large safety area for mobile action button */
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-height: 700px) {
  .modal-content {
    max-height: 85vh;
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
  }
}

.modal-footer-sticky {
  position: sticky;
  bottom: -1.5rem;
  left: -1.5rem;
  right: -1.5rem;
  background: var(--bg-card);
  padding: 1.25rem;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  z-index: 10;
  margin-top: 1.5rem;
}

.suggestions-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-top: 0.25rem;
}

.suggestion-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  transition: background 0.2s;
}

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

.suggestion-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
}

.hidden {
  display: none;
}