/* Мобильная касса — POS & Analytics Styles */

:root {
  --primary: #D97706;
  --primary-dark: #B45309;
  --primary-light: #F59E0B;
  --success: #059669;
  --success-dark: #047857;
  --secondary: #7C3AED;
  --secondary-light: #8B5CF6;
  --warning: #F59E0B;
  --error: #EF4444;

  --bg-dark: #0F172A;
  --bg-card: #1E293B;
  --bg-light: #334155;
  --bg-input: #1a2332;
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --border: #334155;

  --shadow: rgba(0, 0, 0, 0.3);
  --glow: rgba(217, 119, 6, 0.4);
  --glow-success: rgba(5, 150, 105, 0.4);

  --gradient-bg: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  --gradient-btn: linear-gradient(90deg, #D97706, #059669);
  --gradient-accent: linear-gradient(135deg, rgba(217, 119, 6, 0.3), rgba(5, 150, 105, 0.3));
}

[data-theme="light"] {
  --bg-dark: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-light: #E2E8F0;
  --bg-input: #f1f5f9;
  --text: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;

  --shadow: rgba(0, 0, 0, 0.1);
  --glow: rgba(217, 119, 6, 0.2);
  --glow-success: rgba(5, 150, 105, 0.2);

  --gradient-bg: linear-gradient(180deg, #F8FAFC 0%, #E2E8F0 100%);
  --gradient-btn: linear-gradient(90deg, #D97706, #059669);
  --gradient-accent: linear-gradient(135deg, rgba(217, 119, 6, 0.15), rgba(5, 150, 105, 0.15));
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

.icon { width: 24px; height: 24px; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 64px; height: 64px; }
.icon-nav { width: 24px; height: 24px; }
.icon-md { width: 32px; height: 32px; }
.icon-xs { width: 16px; height: 16px; }

.page {
  min-height: 100vh;
  transition: opacity 0.3s ease;
}

.hidden { display: none !important; }

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  color: var(--text);
  transition: background 0.2s, transform 0.2s;
}

.theme-toggle:hover {
  background: var(--bg-light);
  transform: scale(1.1);
}

.theme-toggle-small {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
  text-align: center;
  background: var(--gradient-bg);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: var(--bg-card);
  border-radius: 24px;
  margin-bottom: 16px;
  color: var(--primary);
}

.logo .icon-lg {
  width: 56px;
  height: 56px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(90deg, var(--primary), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.5;
  margin-bottom: 32px;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.feature {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 140px;
  color: var(--text);
  transition: background 0.2s;
}

.feature:hover {
  background: var(--bg-light);
}

.feature .icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.feature span:last-child {
  font-size: 14px;
  font-weight: 500;
}

.btn-primary {
  background: var(--gradient-btn);
  color: white;
  border: none;
  padding: 18px 48px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px var(--glow);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 32px var(--glow);
}

.note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 24px;
}

#app {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: var(--bg-dark);
}

.phone-frame {
  width: 100%;
  max-width: 380px;
  height: 100vh;
  max-height: 800px;
  background: var(--bg-dark);
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  border: 4px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: background 0.3s, border-color 0.3s;
}

[data-theme="light"] .phone-frame {
  border-color: #cbd5e1;
}

.phone-header {
  background: var(--bg-dark);
  padding: 12px 20px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.status-bar {
  font-size: 14px;
  color: var(--text-muted);
}

.app-header {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
  background: var(--bg-dark);
}

.back-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

.back-btn:hover {
  opacity: 0.7;
}

.app-header h2 {
  font-size: 20px;
  font-weight: 600;
}

.header-time {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  transition: background 0.3s;
}

.app-content::-webkit-scrollbar {
  width: 4px;
}

.app-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.bottom-nav {
  display: flex;
  justify-content: space-around;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
  transition: background 0.3s, border-color 0.3s;
}

.nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 12px;
  transition: all 0.2s;
  position: relative;
}

.nav-item svg {
  width: 24px;
  height: 24px;
}

.nav-item.active {
  color: var(--primary);
  background: rgba(217, 119, 6, 0.1);
}

.nav-item:hover {
  background: var(--bg-card);
}

.btn-exit {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-muted);
  padding: 12px 32px;
  border-radius: 50px;
  margin-top: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-exit:hover {
  border-color: var(--text);
  color: var(--text);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dashboard-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  background: var(--bg-light);
}

.dashboard-card .icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
  margin-bottom: 8px;
}

.dashboard-card h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.dashboard-card p {
  font-size: 12px;
  color: var(--text-muted);
}

.dashboard-card.wide {
  grid-column: span 2;
}

.dashboard-card.accent {
  background: var(--gradient-accent);
}

.dashboard-card .stat-value {
  font-size: 24px;
  font-weight: 700;
}

.dashboard-card .stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.stat-box {
  background: var(--bg-card);
  padding: 16px 12px;
  border-radius: 12px;
  text-align: center;
}

.page-content h3 {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.modules-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 0;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}

.modules-scroll::-webkit-scrollbar {
  height: 2px;
}

.module-tile {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: var(--bg-card);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.module-tile:hover {
  background: var(--primary);
  color: white;
}

.module-tile .icon {
  width: 28px;
  height: 28px;
}

.module-tile span {
  font-size: 12px;
  font-weight: 500;
}

.events-feed {
  margin-top: 16px;
}

.events-feed h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 8px;
}

.event-item .event-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.event-info {
  flex: 1;
  min-width: 0;
}

.event-info h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.event-info p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.event-amount {
  font-weight: 700;
  color: var(--success);
  font-size: 14px;
  flex-shrink: 0;
}

.event-method {
  font-size: 10px;
  padding: 2px 8px;
  background: var(--bg-light);
  border-radius: 8px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* POS Styles */
.pos-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pos-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.pos-categories::-webkit-scrollbar {
  height: 2px;
}

.category-btn {
  padding: 8px 20px;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.category-btn.active {
  border-color: var(--primary);
  background: rgba(217, 119, 6, 0.15);
  color: var(--primary);
}

.category-btn:hover {
  border-color: var(--primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.product-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.product-item:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

.product-item .icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
  margin-bottom: 6px;
}

.product-name {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.2;
}

.product-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--success);
}

.pos-cart {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 16px;
}

.pos-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.pos-cart-header h4 {
  font-size: 16px;
  font-weight: 600;
}

.cart-items {
  max-height: 180px;
  overflow-y: auto;
}

.cart-items::-webkit-scrollbar {
  width: 3px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 500;
}

.cart-item-price {
  font-size: 13px;
  color: var(--success);
  font-weight: 600;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.qty-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.qty-btn.remove:hover {
  border-color: var(--error);
  color: var(--error);
}

.cart-item-qty {
  font-size: 14px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.pos-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 2px solid var(--primary);
}

.pos-cart-total span:first-child {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.pos-cart-total span:last-child {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.pos-empty-cart {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
}

.pos-empty-cart .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  opacity: 0.5;
}

.pos-empty-cart p {
  font-size: 14px;
}

.payment-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-btn {
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
}

.payment-btn:hover {
  transform: translateY(-1px);
}

.payment-btn.cash {
  background: linear-gradient(135deg, #D97706, #F59E0B);
  color: white;
}

.payment-btn.card {
  background: linear-gradient(135deg, #059669, #10B981);
  color: white;
}

.payment-btn.wallet {
  background: linear-gradient(135deg, #7C3AED, #8B5CF6);
  color: white;
}

.payment-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Receipt */
.receipt-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}

.receipt-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 24px;
  max-width: 320px;
  width: 100%;
  animation: receiptSlide 0.3s ease;
}

@keyframes receiptSlide {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.receipt-header {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 2px dashed var(--border);
  margin-bottom: 16px;
}

.receipt-header .icon {
  width: 48px;
  height: 48px;
  color: var(--success);
  margin-bottom: 8px;
}

.receipt-header h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 4px;
}

.receipt-header p {
  font-size: 12px;
  color: var(--text-muted);
}

.receipt-items {
  margin-bottom: 16px;
}

.receipt-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.receipt-total {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 2px solid var(--border);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.receipt-method {
  text-align: center;
  margin-top: 12px;
  padding: 8px;
  background: var(--bg-light);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.receipt-close-btn {
  width: 100%;
  padding: 12px;
  margin-top: 16px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.receipt-close-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Analytics */
.analytics-section {
  margin-bottom: 20px;
}

.analytics-section h3 {
  font-size: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.analytics-section h3 .icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.chart-container {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 160px;
  padding-top: 12px;
}

.chart-bar-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  min-height: 4px;
  transition: height 0.6s ease;
  position: relative;
  cursor: pointer;
}

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

.chart-bar-label {
  font-size: 9px;
  color: var(--text-muted);
  white-space: nowrap;
}

.chart-bar-value {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
}

.insight-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 10px;
  border-left: 4px solid var(--primary);
}

.insight-card.success {
  border-left-color: var(--success);
}

.insight-card.purple {
  border-left-color: var(--secondary);
}

.insight-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.insight-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.insight-card .insight-stat {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}

.insight-card.success .insight-stat {
  color: var(--success);
}

.insight-card.purple .insight-stat {
  color: var(--secondary);
}

.bigdata-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bigdata-item {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.bigdata-item:hover {
  border-color: var(--primary);
}

.bigdata-item .icon {
  width: 28px;
  height: 28px;
  color: var(--secondary);
  margin-bottom: 8px;
}

.bigdata-item h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.bigdata-item .bigdata-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.bigdata-item p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.discover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.discover-item {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  border: 1px solid var(--border);
}

.discover-item .icon {
  width: 24px;
  height: 24px;
  color: var(--success);
  margin-bottom: 6px;
}

.discover-item h4 {
  font-size: 12px;
  font-weight: 600;
}

.discover-item p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Profile */
.profile-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-btn);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.profile-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
  color: var(--text);
}

.profile-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.profile-desc {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 240px;
  margin: 0 auto;
}

.profile-info {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-muted);
  font-size: 14px;
}

.info-value {
  font-weight: 500;
  text-align: right;
  max-width: 60%;
  font-size: 14px;
}

.settings-section {
  margin-top: 20px;
}

.settings-section h4 {
  font-size: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-section h4 .icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 8px;
}

.settings-item .toggle-track {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}

.settings-item .toggle-thumb {
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  transition: left 0.3s;
}

.settings-item label {
  font-size: 14px;
  font-weight: 500;
}

.version-info {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── Mode Toggle ─── */
.mode-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.mode-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
}

.mode-label.active {
  color: var(--primary);
  font-weight: 600;
}

.mode-toggle {
  width: 56px;
  height: 28px;
  background: var(--gradient-btn);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  box-shadow: 0 0 12px var(--glow);
}

.mode-toggle-knob {
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.mode-toggle.driver .mode-toggle-knob {
  left: 31px;
}

/* ─── Outlet Cards ─── */
.outlet-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.outlet-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.outlet-icon {
  width: 40px;
  height: 40px;
  background: rgba(217, 119, 6, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.outlet-info { flex: 1; }

.outlet-name {
  font-size: 15px;
  font-weight: 600;
}

.outlet-addr {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.outlet-revenue {
  font-size: 16px;
  font-weight: 700;
  color: var(--success);
}

.outlet-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 0;
  border-top: 1px solid var(--border);
  margin-bottom: 8px;
}

.outlet-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.outlet-cashiers {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.cashier-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.cashier-mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cashier-mini-dot.on { background: var(--success); }
.cashier-mini-dot.off { background: var(--error); }

.cashier-mini span:first-of-type { flex: 1; }
.cashier-mini-rev { color: var(--text-muted); font-size: 12px; }

/* ─── Cashier Cards ─── */
.cashier-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-card);
  border-radius: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.cashier-card.disabled {
  opacity: 0.55;
}

.cashier-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-btn);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.cashier-info { flex: 1; }

.cashier-name {
  font-size: 15px;
  font-weight: 600;
}

.cashier-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cashier-stats {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.cashier-stat {
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
}

.cashier-toggle {
  flex-shrink: 0;
}

/* ─── Toggle track (reusable) ─── */
.toggle-track {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--bg-light);
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-track.on {
  background: var(--success);
}

.toggle-thumb {
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  transition: left 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ─── Admin Menu ─── */
.menu-category-block {
  margin-bottom: 20px;
}

.menu-cat-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.menu-cat-title .icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.menu-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 6px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.menu-item-row.disabled {
  opacity: 0.4;
}

.menu-item-info { flex: 1; }

.menu-item-name {
  font-size: 14px;
  font-weight: 500;
}

.menu-item-price {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── Admin Inputs & Buttons ─── */
.add-cashier-btn {
  width: 100%;
  padding: 14px;
  border: 2px dashed var(--border);
  background: transparent;
  color: var(--primary);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  margin-bottom: 16px;
}

.add-cashier-btn:hover {
  border-color: var(--primary);
  background: rgba(217, 119, 6, 0.05);
}

.add-cashier-form {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--primary);
}

.admin-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 8px;
  outline: none;
  font-family: inherit;
}

.admin-input::placeholder { color: var(--text-muted); }
.admin-input:focus { border-color: var(--primary); }

.add-cashier-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-confirm {
  flex: 1;
  padding: 12px;
  border: none;
  background: var(--gradient-btn);
  color: white;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-confirm:hover { opacity: 0.9; }

.btn-cancel {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* ─── select style ─── */
.admin-input select,
.admin-input option {
  background: var(--bg-dark);
  color: var(--text);
}

.admin-input option {
  padding: 8px;
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
  .feature {
    width: auto;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 36px;
  }
  .phone-frame {
    border-radius: 0;
    border: none;
  }
}
