:root {
  --primary: #22C55E;
  /* Vibrant Green */
  --primary-dark: #16A34A;
  --bg-dark: #0a0a0a;
  /* Deepest Black */
  --text-white: #F8F9FA;
  --text-muted: #94a3b8;
  --brand-purple: #9333EA;

  --radius-standard: 0.75rem;
  /* 12px */
  --radius-container: 32px;
  /* 2xl */
  --h-button: 3.5rem;
  /* h-14 */

  /* Maintain compatibility */
  --orange: var(--primary);
  --orange-dark: var(--primary-dark);
  --black: var(--bg-dark);
  --white: var(--text-white);
  --gray-100: #262626;
  --gray-200: #333333;
  --gray-400: var(--text-muted);
  --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-tactile: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

.font-outfit {
  font-family: 'Outfit', sans-serif;
}

h1,
h2,
h3,
.brand-title {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--primary);
  font-weight: 800;
}

/* Design Standard Extras */
.btn-tactile {
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.btn-tactile:active {
  transform: scale(0.96);
  opacity: 0.9;
}

button {
  touch-action: manipulation;
}

.rounded-2xl {
  border-radius: 1.25rem;
}

.rounded-xl {
  border-radius: var(--radius-standard);
}

.h-14 {
  height: var(--h-button);
}

.tracking-widest {
  letter-spacing: 0.15em;
}

.uppercase {
  text-transform: uppercase;
}

.text-green {
  color: var(--primary);
}

.text-orange {
  color: #ff7a18 !important;
}

.text-yellow {
  color: #ffc107 !important;
}

.text-right {
  text-align: right;
}

.logo-serif {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.app-shell {
  display: flex;
  width: 100%;
  min-height: 100vh;
  background: var(--bg-dark);
}

.sidebar {
  width: 280px;
  background: #0d0d0d;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  /* Prevent sidebar itself from scrolling */
}

.sidebar.collapsed {
  width: 88px;
  padding: 2rem 0.75rem;
}

.sidebar.collapsed .brand-title,
.sidebar.collapsed #currentUserDisplay,
.sidebar.collapsed .nav-item p {
  display: none;
}

.sidebar.collapsed .brand {
  justify-content: center;
  gap: 0;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 0.85rem 0;
}

.sidebar-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--white);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 0.5rem;
}

.brand-mark {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: #121212;
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.2);
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 0;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  /* Take up remaining space */
  overflow-y: auto;
  /* Enable vertical scrolling */
  padding-right: 4px;
  /* Space for scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Custom Scrollbar for Navigation */
.nav::-webkit-scrollbar {
  width: 4px;
}

.nav::-webkit-scrollbar-track {
  background: transparent;
}

.nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.nav-item {
  background: transparent;
  border: none;
  color: var(--gray-400);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.nav-item i {
  width: 20px;
  height: 20px;
  stroke-width: 1.5px;
  transition: transform 0.2s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-white);
}

.nav-item:active {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0.98);
}

.nav-item:hover i {
  transform: scale(1.1);
  color: var(--primary);
}

.nav-item.active {
  background: rgba(197, 160, 89, 0.08);
  color: var(--primary);
  font-weight: 600;
}

.nav-item.active i {
  color: var(--primary);
}

.dashboard {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2rem;
  gap: 1.5rem;
  background: transparent;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.search-wrapper {
  flex: 1;
  position: relative;
}

.search-wrapper input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-size: 1rem;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.session-pill {
  background: rgba(255, 122, 24, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 24, 0.3);
  font-size: 0.95rem;
}

.content {
  display: grid;
  grid-template-columns: var(--menu-width, minmax(0, 1fr)) auto minmax(300px, 1fr);
  gap: 0;
  height: calc(100vh - 140px);
  position: relative;
}

/* Resizable Divider */
.resize-divider {
  width: 8px;
  background: transparent;
  cursor: col-resize;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  user-select: none;
}

.resize-divider:hover {
  background: rgba(255, 122, 24, 0.1);
}

.resize-divider:hover .resize-handle {
  opacity: 1;
  background: var(--orange);
}

.resize-divider.dragging {
  background: rgba(255, 122, 24, 0.2);
}

.resize-divider.dragging .resize-handle {
  opacity: 1;
  background: var(--orange);
}

.resize-handle {
  width: 4px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  opacity: 0.3;
  transition: opacity 0.2s, background 0.2s;
  pointer-events: none;
}

.menu-zone,
.bill-zone {
  background: rgba(18, 18, 18, 0.85);
  border-radius: 24px;
  padding: 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.menu-zone {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.menu-zone h2,
.bill-zone h2 {
  margin: 0 0 1rem;
}

/* Category Filter Strip */
.category-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 1rem;
  margin-bottom: 0.5rem;
  scrollbar-width: none;
  /* Firefox */
}

.category-strip::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.category-chip {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  color: var(--gray-400);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.category-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.category-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #121212;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.25rem;
}

.menu-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border 0.2s, transform 0.2s;
  position: relative;
  min-height: 200px;
}

.menu-card>div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.menu-card h4 {
  margin: 0;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-card p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-card:hover {
  border-color: rgba(255, 122, 24, 0.5);
  transform: translateY(-2px);
}

.menu-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

.price-tag {
  font-weight: 600;
  color: var(--orange);
  margin-top: auto;
}

.special-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--orange);
  border: none;
  color: var(--black);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.special-btn:hover {
  background: var(--orange-dark);
}

.special-btn.active {
  background: #4caf50;
  color: var(--white);
}

.bill-zone {
  position: sticky;
  top: 1.5rem;
  height: calc(100vh - 200px);
}

.bill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bill-items {
  flex: 1;
  overflow-y: auto;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overscroll-behavior: contain;
}

.bill-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.bill-item.special {
  border-left: 3px solid var(--orange);
  padding-left: 0.5rem;
}

.bill-item h4 {
  margin: 0 0 0.25rem;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.qty-controls .special-btn {
  position: relative;
  top: 0;
  right: 0;
  font-size: 0.7rem;
  padding: 0.3rem 0.5rem;
}

.qty-controls button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
}

.ghost-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
}

.primary-btn {
  background: var(--orange);
  border: none;
  color: var(--black);
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.primary-btn:disabled,
.ghost-btn:disabled,
.qty-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bill-summary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
}

.customer-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

@media (max-width: 480px) {
  .customer-info {
    grid-template-columns: 1fr;
  }
}

.customer-info label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.customer-info input {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  font-size: 1rem;
}

.live-billing-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-bar-container {
  position: relative;
}

.search-bar-container .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(255, 255, 255, 0.5);
}

.live-billing-search {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 3rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-size: 1rem;
}

.live-bills-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.live-bill-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.live-bill-card.status-bill-requested {
  background: rgba(255, 243, 205, 0.1) !important;
  /* Soft Yellow */
  border: 2px solid #ffc107 !important;
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.2);
}

.live-bill-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.live-bill-header h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.live-bill-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.live-bill-amount {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--orange);
}

.live-bill-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}

.live-bill-details p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.live-bill-details span {
  font-weight: 600;
  color: var(--white);
  margin-right: 0.5rem;
}

.live-bill-actions {
  display: flex;
  gap: 0.75rem;
}

.menu-items-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.menu-item-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.2s ease;
}

.menu-item-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(34, 197, 94, 0.3);
}

.menu-item-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
}

.menu-item-info {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.menu-item-info h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 100px;
}

.menu-item-info p.category {
  margin: 0;
  color: var(--gray-400);
  font-size: 0.9rem;
  min-width: 80px;
}

.menu-item-info p.price {
  margin: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.menu-item-card .menu-item-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
  justify-content: center;
}

.bill-summary label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.bill-summary input {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
}

.totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bill-actions {
  display: flex;
  gap: 0.75rem;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #111;
  padding: 2rem;
  border-radius: 24px;
  width: min(400px, calc(100% - 2rem));
  text-align: center;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.upi-string {
  font-size: 0.85rem;
  word-break: break-all;
  color: var(--gray-400);
  margin: 1rem 0;
}

.qr-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.content-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.content-section.hidden {
  display: none;
}

.section-content {
  background: transparent;
  padding: 1.5rem 0;
  flex: 1;
}

.section-content h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: var(--text-white);
  padding: 0 1rem;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  grid-auto-rows: 155px;
  gap: 1.25rem;
  margin-top: 1rem;
  padding: 0 1rem;
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 1.25rem;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.dashboard-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(197, 160, 89, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.dashboard-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at top right, rgba(197, 160, 89, 0.05), transparent 70%);
  pointer-events: none;
}

.dashboard-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.card-icon.billing-icon {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.25), rgba(147, 51, 234, 0.15));
}

.card-icon.orders-icon {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.25), rgba(251, 146, 60, 0.15));
}

.card-icon.menu-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.15));
}

.card-icon.reports-icon {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.15));
}

.card-icon.settings-icon {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(168, 85, 247, 0.15));
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(197, 160, 89, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.dashboard-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary);
  color: #121212;
}

.card-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

.card-notification {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-card:hover .card-notification {
  border-color: rgba(197, 160, 89, 0.3);
  color: var(--primary);
}

.bell-icon {
  position: relative;
  font-size: 1.2rem;
}

.bell-icon::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid var(--white);
}

.reports-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.report-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.report-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.report-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.settings-container {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.setting-group label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.setting-group input {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  font-size: 1rem;
}

.setting-description {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.menu-management {
  margin-top: 2rem;
}

.menu-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 1rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.tab-btn.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.menu-list-header,
.stock-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.menu-list-header h3,
.stock-list-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.menu-items-list,
.stock-items-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.menu-item-card,
.stock-item-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-item-info,
.stock-item-info {
  flex: 1;
}

.menu-item-info h4,
.stock-item-info h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.menu-item-info p,
.stock-item-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.stock-item-actions {
  display: flex;
  gap: 0.5rem;
}

.modal-large {
  width: min(500px, calc(100% - 2rem));
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--white);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  font-size: 1rem;
}

.form-group select option {
  background-color: #121212 !important;
  color: white !important;
}

/* Also style the select element when open */
select {
  background-color: rgba(255, 255, 255, 0.03) !important;
  color: var(--white) !important;
}

select option {
  background-color: #121212 !important;
  color: white !important;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
}

@media (max-width: 1024px) {
  .content {
    grid-template-columns: 1fr;
    height: auto;
  }

  .bill-zone {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 85%;
    max-width: 400px;
    margin: 0;
    z-index: 3000;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    border-radius: 0 24px 24px 0;
  }

  .bill-zone.drawer-open {
    transform: translateX(0);
  }

  .close-drawer-btn {
    display: block;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    margin-right: 0.5rem;
    padding: 0 0.5rem;
    transition: transform 0.2s;
  }

  .close-drawer-btn:active {
    transform: scale(0.9);
  }

  .bill-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2999;
    transition: opacity 0.3s ease;
  }

  .bill-drawer-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    display: block !important;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1200;
  }

  .dashboard {
    margin-left: 260px;
  }

  .sidebar.collapsed+.dashboard {
    margin-left: 88px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    transform: translateX(-100%);
    transition: transform 0.3s;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .dashboard,
  .sidebar.collapsed+.dashboard {
    margin-left: 0;
    padding: 1rem;
  }

  .top-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .bill-actions {
    flex-direction: column;
  }
}


/* Menu List Item Styles */
.menu-list-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s;
}

.menu-list-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.item-thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
}

.item-details {
  flex: 1;
}

.item-details h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.close-drawer-btn {
  display: none;
}

.item-details p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.item-price {
  font-weight: 600;
  color: var(--orange);
  font-size: 1.1rem;
  margin-right: 1rem;
}

.item-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 0.5rem;
}

.ghost-btn.small {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.text-danger {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}


.text-danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Sidebar Collapsed State Fixes */
.sidebar.collapsed .nav-item p {
  display: none;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 0.75rem;
}

.sidebar.collapsed .brand-title,
.sidebar.collapsed .brand small {
  display: none;
}

.sidebar.collapsed .brand {
  justify-content: center;
}

/* Brand Title Styles */
.brand-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Dashboard Card Centering */
.card-icon.center-content {
  margin: 0 auto 1.5rem;
}

.dashboard-card:has(.center-content) {
  align-items: center;
  text-align: center;
}

.dashboard-card:has(.center-content) .card-label {
  align-self: center;
}

/* Image Preview Styles */
.image-preview-container {
  margin-top: 1rem;
  position: relative;
  width: 100%;
  max-width: 200px;
}

.image-preview-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-preview-container.hidden {
  display: none;
}

.image-preview-container .remove-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid #121212;
}

/* Login Screen Styles */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--black);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1rem;
}

.login-overlay.hidden {
  display: none;
}

.login-card {
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.brand-mark.large {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
}

.login-subtitle {
  color: var(--gray-400);
  margin-bottom: 2rem;
}

.login-form .form-group {
  text-align: left;
  margin-bottom: 1.5rem;
}

.login-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gray-400);
  font-size: 0.9rem;
}

.w-100 {
  width: 100%;
}

/* User Management Styles */
.user-management-container {
  margin-top: 2rem;
}

.user-management-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.users-table-container {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.02);
}

.users-table thead {
  background: rgba(255, 255, 255, 0.05);
}

.users-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--gray-400);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.users-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.users-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Customer table specific column widths */
#customers-section .users-table th:nth-child(1),
#customers-section .users-table td:nth-child(1) {
  width: 20%;
  /* Name */
}

#customers-section .users-table th:nth-child(2),
#customers-section .users-table td:nth-child(2) {
  width: 18%;
  /* Phone */
}

#customers-section .users-table th:nth-child(3),
#customers-section .users-table td:nth-child(3) {
  width: 8%;
  /* Visits */
  text-align: center;
}

#customers-section .users-table th:nth-child(4),
#customers-section .users-table td:nth-child(4) {
  width: 15%;
  /* Loyalty Points */
  text-align: center;
}

#customers-section .users-table th:nth-child(5),
#customers-section .users-table td:nth-child(5) {
  width: 15%;
  /* Total Spent */
  text-align: right;
}

#customers-section .users-table th:nth-child(6),
#customers-section .users-table td:nth-child(6) {
  width: 14%;
  /* Last Visit */
}

#customers-section .users-table th:nth-child(7),
#customers-section .users-table td:nth-child(7) {
  width: 10%;
  /* Actions */
  text-align: center;
}


.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-active {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.status-warning {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.status-expired {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.user-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-small {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-small:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.btn-extend {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.btn-extend:hover {
  background: rgba(34, 197, 94, 0.2);
}

.text-danger {
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

.text-danger:hover {
  background: rgba(239, 68, 68, 0.1) !important;
}

/* Glassmorphism Login Section */
.login-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('restaurant-bg.png') no-repeat center center/cover;
  z-index: 2000;
}

.login-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, rgba(18, 18, 18, 0.95) 100%);
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  text-align: center;
  animation: modalSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-header {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.brand-badge-green {
  background: rgba(34, 197, 94, 0.1);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.login-subtitle {
  color: var(--gray-400);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-400);
  margin-bottom: 0.6rem;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: var(--text-white);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

/* Premium Gold Button */
.btn-primary.w-100 {
  width: 100%;
  padding: 1.1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #121212;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
  margin-top: 1rem;
}

.btn-primary.w-100:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(197, 160, 89, 0.3);
  filter: brightness(1.1);
}

.btn-primary.w-100:active {
  transform: translateY(-1px);
}

.login-actions {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.login-actions p {
  color: var(--gray-400);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.ghost-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.setting-group input {
  width: 100%;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--white);
  font-size: 1rem;
  margin-top: 0.5rem;
}

.setting-group input:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.08);
}

/* Professional Table & Section Styling */
.user-management-container,
.customer-management-container {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem;
  margin-top: 1rem;
}

.users-table-container {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.users-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.users-table th {
  background: rgba(251, 251, 251, 0.03);
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--gray-400);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.users-table td {
  padding: 1.25rem 1.5rem;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-white);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.users-table tr:hover td {
  background: rgba(197, 160, 89, 0.03);
  color: var(--primary);
}

.users-table tr:last-child td {
  border-bottom: none;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
}

.status-active::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
}

.status-inactive::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
}

/* Modal Improvements */
#customerModal .modal-content,
#menuItemModal .modal-content,
#stockItemModal .modal-content {
  width: 100%;
  max-width: 450px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  padding: 2.5rem;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

/* Ensure form actions are always visible at the bottom or reachable */
#customerModal .form-actions,
#menuItemModal .form-actions,
#stockItemModal .form-actions {
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
}

#customerModal .form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

#customerModal label {
  color: var(--gray-400);
  margin-bottom: 0.5rem;
  display: block;
}

#customerModal input {
  width: 100%;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  transition: all 0.2s;
  font-size: 1rem;
}

#customerModal input:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.08);
}

#customerModal .form-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--white);
}

/* High-Fidelity Landing Styles */
.landing-section {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 2000;
  overflow-y: auto;
}

.sticky-nav {
  position: sticky;
  top: 1rem;
  z-index: 100;
  padding: 0 2rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-standard);
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-btns {
  display: flex;
  gap: 1rem;
}

.mobile-nav-toggle {
  display: none;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--primary);
  font-size: 1.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-nav-toggle:active {
  transform: scale(0.9);
}

.nav-active .nav-menu {
  display: flex;
}

.split-hero {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-left h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--white);
}

.hero-left p {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 480px;
}

.cta-group {
  display: flex;
  gap: 1.5rem;
}

.primary-btn-green {
  background: var(--primary);
  color: #121212;
  border: none;
  font-weight: 700;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hero-right .pos-preview-wrapper {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-container);
  padding: 1rem;
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.hero-right .pos-preview-wrapper:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.pos-image {
  width: 100%;
  border-radius: 20px;
  display: block;
}

.glass-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
  pointer-events: none;
  border-radius: var(--radius-container);
}

/* Login Modal */
.login-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2500;
}

.glass-morphic {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-container);
}

/* SuperAdmin Section Styles */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-standard);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s;
}

.metric-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
}

.metric-trend {
  font-size: 0.85rem;
  font-weight: 600;
}

.shop-management-container {
  padding: 0 1rem;
}

.shop-management-container h3 {
  margin-bottom: 1.5rem;
}

.table-wrapper {
  background: rgba(255, 255, 255, 0.01);
  border-radius: var(--radius-standard);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.data-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.badge-pro {
  background: rgba(147, 51, 234, 0.15);
  color: #9333EA;
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 900;
}

.btn-primary-green {
  background: var(--primary);
  color: #121212;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary-green:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

/* CRITICAL FIX: Make sure the checkbox in User Modal is visible */
/* This overrides the generic input styles that hide it */
#userModal .form-group input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  display: inline-block !important;
  margin-right: 10px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  appearance: auto !important;
  /* Force browser default checkbox */
  -webkit-appearance: auto !important;
  cursor: pointer;
  position: static !important;
  opacity: 1 !important;
}

#userModal .form-group label {
  display: flex !important;
  align-items: center;
  flex-direction: row !important;
  gap: 10px;
}

/* Bistro 360 Landing Enhancements */
.badge-mini {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: rgba(34, 197, 94, 0.1);
  color: var(--primary);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--white);
}

.hero-checklist {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
}

.hero-checklist span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-400);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-checklist i {
  color: var(--primary);
  width: 18px;
  height: 18px;
}

.ghost-btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.ghost-btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.floating-badge.sales {
  top: 10%;
  right: -5%;
  animation: float 4s ease-in-out infinite;
}

.floating-badge.stock {
  bottom: 10%;
  left: -5%;
  animation: float 5s ease-in-out infinite alternate;
}

@keyframes float {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-15px);
  }
}

.icon-bg {
  width: 32px;
  height: 32px;
  background: rgba(34, 197, 94, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.icon-bg.warning {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.badge-content small {
  display: block;
  font-size: 0.65rem;
  color: var(--gray-400);
  text-transform: uppercase;
}

.badge-content strong {
  display: block;
  font-size: 1rem;
  color: var(--white);
}

/* Sections Common */
.container-center {
  max-width: 1200px;
  margin: 8rem auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-400);
}

.divider {
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 1.5rem auto 0;
  border-radius: 2px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  padding: 2.5rem;
  border-radius: var(--radius-standard);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(34, 197, 94, 0.2);
  transform: translateY(-5px);
}

.icon-box {
  width: 48px;
  height: 48px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--gray-400);
  line-height: 1.6;
}

/* Pricing Grid */
.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: flex-start;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.02);
  width: 100%;
  max-width: 400px;
  padding: 3rem;
  border-radius: var(--radius-standard);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.pricing-card.featured {
  background: rgba(34, 197, 94, 0.02);
  border: 2px solid var(--primary);
}

.popular-badge {
  position: absolute;
  top: 0;
  right: 2rem;
  background: var(--primary);
  color: #000;
  padding: 0.4rem 1rem;
  border-radius: 0 0 10px 10px;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.price-header {
  margin-bottom: 2.5rem;
}

.price-header small {
  display: block;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
}

.price span {
  font-size: 1.25rem;
  color: var(--gray-400);
  font-weight: 500;
}

.price-selector {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.plan-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  outline: none;
  font-weight: 600;
  cursor: pointer;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--gray-400);
}

.price-features li i {
  color: var(--primary);
  width: 18px;
}

/* Landing Footer */
.landing-footer {
  background: #0a0f1d;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--gray-400);
  margin-top: 1rem;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 2rem;
}

.footer-social a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--gray-400);
  font-size: 0.85rem;
}

@media (max-width: 968px) {
  .split-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-left h1 {
    font-size: 3rem;
  }

  .hero-left p {
    margin: 0 auto 2rem;
  }

  .cta-group {
    justify-content: center;
  }

  .hero-checklist {
    justify-content: center;
    flex-wrap: wrap;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    flex-direction: column;
    align-items: center;
  }

  .pricing-card {
    max-width: 100%;
  }

  /* Added Header Mobile Fix */
  .mobile-nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0d0d0d;
    padding: 2.5rem;
    flex-direction: column;
    gap: 2rem;
    border-radius: 0 0 24px 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    z-index: 1000;
    text-align: left;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(10px);
  }

  .nav-active .nav-menu {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 1.2rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links a:hover {
    color: var(--primary);
  }

  .nav-btns {
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-btns button {
    width: 100%;
    height: 3.5rem;
  }

  .logo img {
    height: 45px !important;
  }
}

/* Registration & Video Modals */
#registration-modal form {
  display: grid;
  gap: 1rem;
}

#registration-modal .form-group {
  text-align: left;
}

.video-container {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

.open-reg-modal {
  cursor: pointer;
}

/* Footer Styles */
.landing-footer {
  background-color: var(--bg-dark) !important;
  /* Revert to theme dark */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #888;
  width: 100%;
}

.footer-bottom {
  background-color: transparent !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
}

.container-center {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* --- Toggle Switch Styles --- */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #333;
  transition: .4s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

input:checked+.slider {
  background-color: var(--primary) !important;
}

input:focus+.slider {
  box-shadow: 0 0 1px var(--primary);
}

input:checked+.slider:before {
  transform: translateX(24px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* --- Universal Print System Styles --- */
@media print {

  /* 1. Hide EVERYTHING except the templates */
  body>*:not(#receipt-template):not(#kot-template) {
    display: none !important;
  }

  /* 2. Page Setup */
  @page {
    size: auto;
    margin: 0mm;
  }

  body {
    background: white !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }

  /* 3. Common Template Styles */
  #receipt-template,
  #kot-template {
    display: none;
    /* Hidden by default, JS will show the specifically needed one */
    position: static !important;
    width: 72mm !important;
    margin: 0 !important;
    padding: 2mm !important;
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    font-family: 'Courier New', Courier, monospace !important;
  }

  #receipt-template *,
  #kot-template * {
    color: black !important;
    background: transparent !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Center specifically for large paper previews like A3/A4 */
  @media (min-width: 100mm) {
    body {
      justify-content: center !important;
    }
  }

  /* Prevent breaking inside symbols/tables */
  table,
  tr,
  td,
  img,
  canvas {
    page-break-inside: avoid !important;
  }
}

/* --- Billing Quick Ball (Mobile Only) --- */
.quick-bill-ball {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 65px;
  height: 65px;
  background: var(--primary);
  color: #121212;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(34, 197, 94, 0.4);
  cursor: pointer;
  z-index: 2000;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: ball-pulse 2s infinite;
  display: none;
  /* Hidden by default */
}

@keyframes ball-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.quick-bill-ball:active {
  transform: scale(0.9);
}

.ball-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  min-width: 24px;
  height: 24px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #121212;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1024px) {
  .quick-bill-ball.visible {
    display: flex;
  }
}