/* =============================================
   TWELVERPOS — MAIN STYLESHEET
   Colorful & Bold Design System
   ============================================= */

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

/* ---- ROOT VARIABLES ---- */
:root {
  --teal:    #00d4aa;
  --teal-d:  #00a884;
  --orange:  #ff6b35;
  --pink:    #ff4d8b;
  --purple:  #a855f7;
  --yellow:  #fbbf24;
  --blue:    #3b82f6;

  --bg:      #0d0f14;
  --bg2:     #111520;
  --card:    #161b24;
  --card2:   #1e2535;
  --border:  #2a2f3d;
  --border2: #353c50;

  --text:       #f0f2f7;
  --text-muted: #6b7280;
  --text-soft:  #9ca3af;

  --sidebar-w: 260px;
  --topbar-h:  64px;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.3s ease;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.sidebar-brand {
  padding: 24px 20px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.brand-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--teal), var(--orange));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
  flex-shrink: 0;
}
.brand-name { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; line-height: 1; }
.brand-sub { font-size: 11px; color: var(--text-muted); }

.business-badge-wrap {
  margin: 12px 16px 0;
}
.business-badge {
  padding: 10px 14px;
  background: rgba(0,212,170,0.08);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--teal);
  transition: background 0.2s;
}
.business-badge:hover { background: rgba(0,212,170,0.14); }

.sidebar-nav { flex: 1; padding: 8px 12px 16px; }

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding: 16px 8px 6px;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.18s;
  margin-bottom: 2px;
  position: relative;
}
.nav-item i { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }
.nav-item:hover { background: var(--card2); color: var(--text); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(0,212,170,0.18), rgba(0,212,170,0.05));
  color: var(--teal);
  border-left: 3px solid var(--teal);
}
.module-tag {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 2px 7px;
  border-radius: 50px;
  background: rgba(168,85,247,0.15);
  color: var(--purple);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.user-name { font-size: 13px; font-weight: 600; line-height: 1; display: block; }
.user-role { font-size: 11px; color: var(--text-muted); display: block; }

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: margin-left 0.3s;
}

/* =============================================
   TOP BAR
   ============================================= */
.topbar {
  height: var(--topbar-h);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.page-title { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; }
.sidebar-toggle {
  background: none; border: none;
  color: var(--text-soft); font-size: 18px;
  cursor: pointer; padding: 6px; border-radius: 8px;
  transition: background 0.2s;
  display: none;
}
.sidebar-toggle:hover { background: var(--card2); }

.topbar-right { display: flex; align-items: center; gap: 12px; }
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 14px; width: 260px;
}
.search-bar i { color: var(--text-muted); font-size: 14px; }
.search-bar input { background: none; border: none; outline: none; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 13px; width: 100%; }
.search-bar input::placeholder { color: var(--text-muted); }

.icon-btn {
  width: 38px; height: 38px;
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text-soft);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 15px; position: relative; transition: all 0.2s;
}
.icon-btn:hover { background: var(--border); color: var(--text); }
.badge {
  position: absolute; top: -4px; right: -4px;
  width: 16px; height: 16px;
  background: var(--pink); border-radius: 50%;
  font-size: 9px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
}

.topbar-date { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

/* =============================================
   PAGE SYSTEM
   ============================================= */
.page-container { padding: 28px; flex: 1; }
.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-d));
  color: #fff;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,212,170,0.3); }
.btn-outline {
  background: transparent;
  color: var(--text-soft);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-danger { background: var(--pink); color: #fff; }

/* =============================================
   CARDS
   ============================================= */
.dash-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dash-card-header h3 { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; }
.view-all { font-size: 12px; color: var(--teal); text-decoration: none; }
.view-all:hover { text-decoration: underline; }

/* =============================================
   STATS CARDS
   ============================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  opacity: 0.08;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-teal   { background: linear-gradient(135deg, rgba(0,212,170,0.15), rgba(0,212,170,0.03)); border-color: rgba(0,212,170,0.3); }
.stat-orange { background: linear-gradient(135deg, rgba(255,107,53,0.15), rgba(255,107,53,0.03)); border-color: rgba(255,107,53,0.3); }
.stat-pink   { background: linear-gradient(135deg, rgba(255,77,139,0.15), rgba(255,77,139,0.03)); border-color: rgba(255,77,139,0.3); }
.stat-purple { background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(168,85,247,0.03)); border-color: rgba(168,85,247,0.3); }

.stat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat-teal   .stat-icon { background: rgba(0,212,170,0.15); color: var(--teal); }
.stat-orange .stat-icon { background: rgba(255,107,53,0.15); color: var(--orange); }
.stat-pink   .stat-icon { background: rgba(255,77,139,0.15); color: var(--pink); }
.stat-purple .stat-icon { background: rgba(168,85,247,0.15); color: var(--purple); }

.stat-label { font-size: 12px; color: var(--text-muted); display: block; margin-bottom: 4px; }
.stat-value { font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 700; display: block; margin-bottom: 4px; }
.stat-change { font-size: 12px; display: flex; align-items: center; gap: 4px; }
.stat-change.up { color: var(--teal); }
.stat-change.down { color: var(--pink); }

/* =============================================
   DASHBOARD LAYOUT
   ============================================= */
.welcome-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.welcome-title { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800; }
.welcome-sub { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

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

.period-tabs { display: flex; gap: 4px; }
.period-tab {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s;
}
.period-tab.active, .period-tab:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

/* =============================================
   TOP PRODUCTS & TRANSACTIONS
   ============================================= */
.top-product-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.top-product-item:last-child { border-bottom: none; }
.top-product-rank { width: 24px; height: 24px; border-radius: 6px; background: var(--card2); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.top-product-name { flex: 1; font-size: 13.5px; font-weight: 500; }
.top-product-bar-wrap { width: 80px; height: 6px; background: var(--border); border-radius: 3px; }
.top-product-bar { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--orange)); }
.top-product-sales { font-size: 12px; color: var(--text-muted); width: 60px; text-align: right; }

.recent-tx-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.recent-tx-item:last-child { border-bottom: none; }
.tx-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.tx-icon.cash { background: rgba(0,212,170,0.1); color: var(--teal); }
.tx-icon.card { background: rgba(59,130,246,0.1); color: var(--blue); }
.tx-name { font-size: 13px; font-weight: 500; }
.tx-time { font-size: 11px; color: var(--text-muted); }
.tx-amount { font-size: 14px; font-weight: 600; margin-left: auto; color: var(--teal); }

/* =============================================
   POS LAYOUT
   ============================================= */
.pos-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  height: calc(100vh - var(--topbar-h) - 56px);
}
.pos-products-panel {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pos-search-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.pos-search-bar i { color: var(--text-muted); }
.pos-search-bar input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 14px; }
.scan-btn {
  background: var(--card2); border: 1px solid var(--border);
  color: var(--text-muted); padding: 7px 12px;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all 0.2s;
}
.scan-btn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

.pos-categories {
  display: flex; gap: 8px; flex-wrap: nowrap;
  overflow-x: auto; padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.pos-categories::-webkit-scrollbar { height: 3px; }
.pos-categories::-webkit-scrollbar-thumb { background: var(--border); }
.cat-btn {
  padding: 7px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: none; color: var(--text-soft);
  font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: all 0.18s;
}
.cat-btn.active, .cat-btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

.pos-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}
.pos-products-grid::-webkit-scrollbar { width: 5px; }
.pos-products-grid::-webkit-scrollbar-thumb { background: var(--border); }

.pos-product-card {
  background: var(--card2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
}
.pos-product-card:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,212,170,0.15); }
.pos-product-card:active { transform: scale(0.96); }
.pos-product-emoji { font-size: 32px; margin-bottom: 8px; line-height: 1; }
.pos-product-name { font-size: 12.5px; font-weight: 500; line-height: 1.3; margin-bottom: 6px; color: var(--text); }
.pos-product-price { font-size: 14px; font-weight: 700; color: var(--teal); font-family: 'Syne', sans-serif; }
.pos-product-stock { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* =============================================
   CART
   ============================================= */
.pos-cart-panel {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.cart-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.cart-customer { flex: 1; display: flex; align-items: center; gap: 8px; }
.cart-customer i { color: var(--teal); font-size: 18px; }
.cart-customer-select {
  background: none; border: none; outline: none;
  color: var(--text); font-size: 13px; flex: 1; cursor: pointer;
}
.cart-customer-select option { background: var(--card); }
.btn-clear-cart { background: rgba(255,77,139,0.1); border: 1px solid rgba(255,77,139,0.2); color: var(--pink); width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 13px; transition: all 0.2s; }
.btn-clear-cart:hover { background: var(--pink); color: #fff; }

.cart-items { flex: 1; overflow-y: auto; padding: 12px; }
.cart-items::-webkit-scrollbar { width: 4px; }
.cart-items::-webkit-scrollbar-thumb { background: var(--border); }

.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 8px; color: var(--text-muted); }
.cart-empty i { font-size: 42px; opacity: 0.3; }
.cart-empty p { font-size: 14px; font-weight: 500; }
.cart-empty span { font-size: 12px; }

.cart-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--card2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px;
  margin-bottom: 8px; animation: slideIn 0.2s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.cart-item-name { flex: 1; font-size: 13px; font-weight: 500; }
.cart-item-price { font-size: 12px; color: var(--text-muted); }
.qty-ctrl { display: flex; align-items: center; gap: 6px; }
.qty-btn { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.qty-btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.qty-num { font-size: 13px; font-weight: 600; min-width: 22px; text-align: center; }
.cart-item-total { font-weight: 700; font-size: 13.5px; color: var(--teal); min-width: 70px; text-align: right; }
.cart-item-del { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 13px; padding: 4px; border-radius: 5px; transition: all 0.15s; }
.cart-item-del:hover { background: rgba(255,77,139,0.15); color: var(--pink); }

.cart-totals { padding: 12px 16px; border-top: 1px solid var(--border); }
.total-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 13px; color: var(--text-soft); }
.discount-row { gap: 8px; }
.discount-input-wrap { display: flex; gap: 4px; margin-left: auto; }
.discount-input-wrap input { width: 58px; padding: 4px 8px; background: var(--card2); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 12px; text-align: center; outline: none; }
.discount-input-wrap select { background: var(--card2); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 12px; padding: 4px 6px; outline: none; cursor: pointer; }
.grand-total { font-size: 18px; font-weight: 700; color: var(--text); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }

.payment-methods { display: flex; gap: 8px; padding: 12px 16px 0; }
.pay-btn {
  flex: 1; padding: 10px;
  border-radius: 10px; border: 2px solid var(--border);
  background: var(--card2); color: var(--text-soft);
  font-size: 12px; font-weight: 500; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: all 0.18s;
}
.pay-btn i { font-size: 18px; }
.pay-btn.active { border-color: var(--teal); color: var(--teal); background: rgba(0,212,170,0.08); }
.pay-btn:hover { border-color: var(--teal); }

.btn-checkout {
  margin: 12px 16px 16px;
  padding: 16px;
  background: linear-gradient(135deg, var(--teal), var(--teal-d));
  border: none; border-radius: 12px;
  font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700;
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(0,212,170,0.25);
}
.btn-checkout:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,212,170,0.4); }

/* =============================================
   PAGE ACTIONS BAR
   ============================================= */
.page-actions {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.page-filter-bar { display: flex; gap: 10px; flex: 1; flex-wrap: wrap; }
.filter-input {
  padding: 10px 14px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 13px; outline: none; min-width: 180px;
  transition: border 0.2s;
}
.filter-input:focus { border-color: var(--teal); }
.filter-select {
  padding: 10px 14px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 13px; outline: none; cursor: pointer;
}
.filter-select option { background: var(--card); }

/* =============================================
   DATA TABLE
   ============================================= */
.data-table-wrap {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead tr {
  background: var(--card2);
  border-bottom: 1px solid var(--border);
}
.data-table th {
  padding: 13px 16px; text-align: left;
  font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-muted); white-space: nowrap;
}
.data-table td {
  padding: 13px 16px; font-size: 13.5px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

.status-badge {
  padding: 4px 10px; border-radius: 50px;
  font-size: 11.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
}
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-green { background: rgba(0,212,170,0.12); color: var(--teal); }
.badge-orange { background: rgba(255,107,53,0.12); color: var(--orange); }
.badge-red { background: rgba(255,77,139,0.12); color: var(--pink); }
.badge-blue { background: rgba(59,130,246,0.12); color: var(--blue); }
.badge-purple { background: rgba(168,85,247,0.12); color: var(--purple); }

.action-btns { display: flex; gap: 6px; }
.action-btn {
  width: 30px; height: 30px;
  border-radius: 7px; border: 1px solid var(--border);
  background: var(--card2); color: var(--text-muted);
  cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center;
  transition: all 0.18s;
}
.action-btn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.action-btn.danger:hover { background: var(--pink); border-color: var(--pink); }

/* =============================================
   CUSTOMER CARDS
   ============================================= */
.customers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.customer-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: all 0.2s; cursor: pointer;
}
.customer-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.cust-avatar {
  width: 48px; height: 48px;
  border-radius: 14px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff;
}
.cust-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.cust-phone { font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; }
.cust-stats { display: flex; gap: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.cust-stat { text-align: center; }
.cust-stat-val { font-size: 15px; font-weight: 700; color: var(--teal); display: block; }
.cust-stat-lbl { font-size: 10px; color: var(--text-muted); }
.cust-type-badge { float: right; }

/* =============================================
   STAFF CARDS
   ============================================= */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.staff-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  text-align: center; transition: all 0.2s;
}
.staff-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.staff-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #fff;
}
.staff-name { font-weight: 600; font-size: 15px; }
.staff-role { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.staff-meta { display: flex; justify-content: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.staff-meta-item { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }

/* =============================================
   KITCHEN DISPLAY
   ============================================= */
.kitchen-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.kitchen-header h2 { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; }
.kitchen-timer { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800; color: var(--teal); }
.kitchen-stats span { background: rgba(255,107,53,0.15); color: var(--orange); padding: 6px 16px; border-radius: 50px; font-weight: 600; font-size: 13px; }

.kitchen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.kitchen-order {
  background: var(--card); border: 2px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all 0.2s;
}
.kitchen-order.urgent { border-color: var(--pink); }
.kitchen-order.ready { border-color: var(--teal); }
.kitchen-order-header {
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.kitchen-order.urgent .kitchen-order-header { background: rgba(255,77,139,0.1); }
.kitchen-order.ready .kitchen-order-header { background: rgba(0,212,170,0.1); }
.kitchen-order-num { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 18px; }
.kitchen-order-time { font-size: 12px; color: var(--text-muted); }
.kitchen-order-items { padding: 12px 16px; }
.kitchen-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.kitchen-item:last-child { border-bottom: none; }
.kitchen-item-qty { background: var(--card2); color: var(--text-muted); width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.kitchen-order-footer { padding: 10px 16px; display: flex; gap: 8px; border-top: 1px solid var(--border); }
.kitchen-btn { flex: 1; padding: 8px; border-radius: 8px; border: none; cursor: pointer; font-size: 12px; font-weight: 600; transition: all 0.18s; }
.kitchen-btn-ready { background: var(--teal); color: #fff; }
.kitchen-btn-cancel { background: rgba(255,77,139,0.1); color: var(--pink); }

/* =============================================
   APPOINTMENTS
   ============================================= */
.appointments-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }
.apt-calendar { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.apt-list { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.apt-list-title { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.apt-item {
  border-left: 3px solid var(--teal);
  background: var(--card2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px; margin-bottom: 10px;
}
.apt-item.pending { border-color: var(--orange); }
.apt-item.done { border-color: var(--text-muted); }
.apt-time { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.apt-client { font-size: 14px; font-weight: 600; }
.apt-service { font-size: 12px; color: var(--text-muted); }
.apt-staff-tag { font-size: 11px; color: var(--purple); margin-top: 4px; }

/* =============================================
   TABLES
   ============================================= */
.tables-legend { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text-muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.dot.free { background: var(--teal); }
.dot.occ { background: var(--orange); }
.dot.res { background: var(--blue); }

.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.table-card {
  background: var(--card); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  text-align: center; cursor: pointer; transition: all 0.2s;
}
.table-card:hover { transform: scale(1.04); }
.table-card.free { border-color: rgba(0,212,170,0.3); }
.table-card.occupied { border-color: rgba(255,107,53,0.4); background: rgba(255,107,53,0.05); }
.table-card.reserved { border-color: rgba(59,130,246,0.4); background: rgba(59,130,246,0.05); }
.table-icon { font-size: 32px; margin-bottom: 8px; }
.table-num { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.table-cap { font-size: 11px; color: var(--text-muted); }
.table-status { font-size: 11px; font-weight: 600; margin-top: 6px; }
.table-card.free .table-status { color: var(--teal); }
.table-card.occupied .table-status { color: var(--orange); }
.table-card.reserved .table-status { color: var(--blue); }

/* =============================================
   BRANCHES
   ============================================= */
.branches-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.branch-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  transition: all 0.2s;
}
.branch-card:hover { border-color: var(--purple); transform: translateY(-2px); }
.branch-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.branch-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(168,85,247,0.1); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--purple); }
.branch-name { font-weight: 700; font-size: 16px; }
.branch-loc { font-size: 12px; color: var(--text-muted); }
.branch-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.branch-stat { background: var(--card2); border-radius: 8px; padding: 10px; text-align: center; }
.branch-stat-val { font-size: 18px; font-weight: 700; font-family: 'Syne', sans-serif; color: var(--teal); }
.branch-stat-lbl { font-size: 11px; color: var(--text-muted); }

/* =============================================
   SETTINGS
   ============================================= */
.settings-layout { display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.settings-nav { display: flex; flex-direction: column; gap: 4px; }
.settings-tab {
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: none; border: none;
  text-align: left; color: var(--text-soft);
  font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: all 0.18s;
}
.settings-tab:hover { background: var(--card2); }
.settings-tab.active { background: rgba(0,212,170,0.1); color: var(--teal); }
.settings-content { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.settings-section-title { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

.module-toggle-list { display: flex; flex-direction: column; gap: 14px; }
.module-toggle-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; background: var(--card2); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.module-toggle-info { display: flex; align-items: center; gap: 14px; }
.module-toggle-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.module-toggle-name { font-weight: 600; font-size: 14px; }
.module-toggle-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.toggle-switch { position: relative; width: 46px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--border); border-radius: 50px;
  transition: 0.3s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; left: 3px; bottom: 3px;
  transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--teal); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* =============================================
   REPORTS
   ============================================= */
.reports-filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.reports-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* =============================================
   RECEIPT
   ============================================= */
.receipt-preview {
  background: #fff; color: #333;
  padding: 24px; border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 13px; max-height: 400px; overflow-y: auto;
}

/* =============================================
   MODALS
   ============================================= */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); width: 600px; max-width: 95vw;
  max-height: 90vh; overflow-y: auto;
  animation: modalIn 0.25s ease;
}
.modal-sm { width: 400px; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.93) translateY(-20px); } to { opacity: 1; transform: none; } }
.modal-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; }
.modal-close {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 18px; padding: 4px;
  border-radius: 6px; transition: all 0.15s;
}
.modal-close:hover { background: rgba(255,77,139,0.1); color: var(--pink); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text-soft); }
.form-group input, .form-group select, .form-group textarea {
  padding: 11px 14px;
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 13.5px;
  outline: none; transition: border 0.2s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--teal); }
.form-group select option { background: var(--card); }

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  padding: 14px 18px;
  border-radius: 12px; border-left: 4px solid;
  background: var(--card); color: var(--text);
  font-size: 13.5px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  min-width: 280px;
  pointer-events: all;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.toast-success { border-color: var(--teal); }
.toast-success i { color: var(--teal); }
.toast-error { border-color: var(--pink); }
.toast-error i { color: var(--pink); }
.toast-info { border-color: var(--blue); }
.toast-info i { color: var(--blue); }

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .pos-layout { grid-template-columns: 1fr 360px; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .sidebar-toggle { display: flex; }
  .search-bar { display: none; }
  .pos-layout { grid-template-columns: 1fr; height: auto; }
  .pos-cart-panel { order: -1; max-height: 45vh; overflow-y: auto; }
  .pos-products-panel { min-height: 50vh; }
  .pos-products-grid { grid-template-columns: repeat(3, 1fr); }
  .appointments-layout { grid-template-columns: 1fr; }
  .payment-methods { flex-wrap: wrap; }
  .pay-btn { flex: 1 1 calc(33% - 6px); min-width: 80px; font-size: 12px; padding: 10px 8px; }
  .modal { max-height: 90vh; overflow-y: auto; width: 95vw !important; max-width: 95vw !important; }
  .topbar-right .topbar-date { display: none; }
}
@media (max-width: 600px) {
  .page-container { padding: 12px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .customers-grid, .staff-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .pos-products-grid { grid-template-columns: repeat(2, 1fr); }
  .pos-product-card { padding: 10px 8px; }
  .pos-product-emoji { font-size: 24px; }
  .cart-totals { padding: 10px 12px; }
  .pay-btn { padding: 8px 6px; font-size: 11px; }
  .btn-checkout { font-size: 14px; padding: 14px; }
  .welcome-bar { flex-direction: column; gap: 12px; align-items: flex-start; }
  .welcome-title { font-size: 20px; }
  .stat-card { padding: 16px; }
  .online-opt-btn { font-size: 11px; padding: 5px 8px; }
}

/* Online Payment Sub-options */
.online-opt-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--card2);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.online-opt-btn:hover { border-color: var(--teal); }
.online-opt-btn.active { border-color: var(--teal); background: rgba(0,212,170,0.12); color: var(--teal); font-weight: 600; }

/* =============================================
   THERMAL PRINT STYLES (@media print)
   ============================================= */
@media print {
  /* Hide everything except receipt */
  body > *:not(#printFrame) { display: none !important; }
  
  .modal-overlay, .sidebar, .topbar, .toast-container { display: none !important; }
  
  /* Thermal receipt styles */
  .thermal-receipt {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    width: 80mm;
    max-width: 80mm;
    margin: 0 auto;
    color: #000;
    background: #fff;
    padding: 4mm;
  }
  .thermal-receipt .receipt-header { text-align: center; margin-bottom: 8px; }
  .thermal-receipt .receipt-biz-name { font-size: 16px; font-weight: bold; }
  .thermal-receipt .receipt-divider { border-top: 1px dashed #000; margin: 6px 0; }
  .thermal-receipt .receipt-divider-solid { border-top: 1px solid #000; margin: 6px 0; }
  .thermal-receipt table { width: 100%; border-collapse: collapse; font-size: 11px; }
  .thermal-receipt td { padding: 2px 0; vertical-align: top; }
  .thermal-receipt .receipt-total-row { font-weight: bold; font-size: 13px; }
  .thermal-receipt .receipt-footer { text-align: center; margin-top: 8px; font-size: 10px; }
}

/* Business Type Dropdown — Accordion style (opens inline inside sidebar) */
.biz-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease;
  opacity: 0;
  margin: 0 12px;
  background: var(--bg2);
  border-radius: 0 0 10px 10px;
  border: 1px solid var(--border);
  border-top: none;
}
.biz-dropdown.open {
  max-height: 100%;
  opacity: 1;
  margin-bottom: 6px;
}
.biz-dropdown-header {
  padding: 8px 14px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.biz-opt {
  padding: 9px 14px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
}
.biz-opt:last-child { border-bottom: none; }
.biz-opt:hover { background: rgba(0,212,170,0.08); color: var(--teal); }
.biz-opt.active {
  background: rgba(0,212,170,0.12);
  color: var(--teal);
  font-weight: 600;
}
.biz-opt span { font-size: 15px; flex-shrink: 0; }

/* Badge top border-radius flattens when open */
.business-badge-wrap.is-open .business-badge {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-bottom-color: transparent;
  background: rgba(0,212,170,0.12);
}

/* Business badge wrapper needs relative positioning */


/* ===== ADDED v2 — cross-portal fixes ===== */
.kitchen-card { background: var(--card); border: 2px solid var(--border); border-radius: 16px; padding: 18px; }
.kitchen-card-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.kitchen-order-id { font-family:'Syne',sans-serif; font-weight:800; font-size:18px; }
.kitchen-table { font-size:12px; color:var(--text-muted); }
.kitchen-items { display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
.kitchen-item { display:flex; align-items:center; gap:10px; padding:7px 10px; background:var(--card2); border-radius:8px; }
.kitchen-item-qty { font-family:'Syne',sans-serif; font-weight:700; color:var(--orange); min-width:28px; }
.kitchen-card-footer { display:flex; align-items:center; justify-content:space-between; }
.tables-legend { display:flex; align-items:center; gap:14px; font-size:12px; color:var(--text-muted); }
.tables-legend .dot { width:10px; height:10px; border-radius:50%; display:inline-block; margin-right:4px; }
.tables-legend .dot.free { background:var(--teal); }
.tables-legend .dot.occ { background:var(--orange); }
.tables-legend .dot.res { background:var(--purple); }
.table-status-dot { width:10px; height:10px; border-radius:50%; margin:8px auto 4px; }
.apt-list { display:flex; flex-direction:column; gap:0; }
.badge-red { background:rgba(255,77,139,0.1); color:var(--pink); border:1px solid rgba(255,77,139,0.2); }
.customers-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px; }
.staff-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; }
.cust-badge { margin:6px 0; }
.pos-search-bar { display:flex; align-items:center; gap:10px; background:var(--card2); border:1.5px solid var(--border); border-radius:12px; padding:10px 16px; margin-bottom:14px; }
.pos-search-bar input { flex:1; background:none; border:none; outline:none; color:var(--text); font-size:14px; }
.scan-btn { background:rgba(0,212,170,0.1); border:1px solid rgba(0,212,170,0.3); color:var(--teal); padding:6px 12px; border-radius:8px; cursor:pointer; font-size:13px; }
.pos-categories { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.cat-btn { background:var(--card2); border:1.5px solid var(--border); color:var(--text-muted); padding:6px 14px; border-radius:20px; cursor:pointer; font-size:12.5px; font-weight:500; transition:all 0.2s; }
.cat-btn.active { border-color:var(--teal); color:var(--teal); background:rgba(0,212,170,0.08); }
.business-badge-wrap { position:relative; padding:0 12px; margin-bottom:8px; }

/* ===== v3 additions ===== */
.badge-red { background:rgba(255,77,139,0.1); color:var(--pink); border:1px solid rgba(255,77,139,0.2); }
.action-btn.danger { color:var(--pink); }
.action-btn.danger:hover { background:rgba(255,77,139,0.15); border-color:rgba(255,77,139,0.3); }
.modal-sm { max-width:480px; }
.kitchen-order.urgent { border-color:rgba(255,77,139,0.4); }
.kitchen-order.ready { border-color:rgba(0,212,170,0.4); }
.kitchen-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px; }
.kitchen-order { background:var(--card); border:2px solid var(--border); border-radius:16px; padding:18px; transition:border-color 0.3s; }
.kitchen-order-header { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:14px; }
.kitchen-order-num { font-family:'Syne',sans-serif; font-weight:800; font-size:18px; color:var(--text); }
.kitchen-order-time { font-size:12px; color:var(--text-muted); margin-top:2px; }
.kitchen-order-items { display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
.kitchen-item { display:flex; align-items:center; gap:10px; padding:7px 10px; background:var(--card2); border-radius:8px; font-size:13px; }
.kitchen-item-qty { font-family:'Syne',sans-serif; font-weight:700; color:var(--orange); min-width:28px; }
.kitchen-order-footer { display:flex; gap:8px; }
.kitchen-btn { flex:1; padding:9px; border-radius:9px; border:1px solid var(--border); background:var(--card2); color:var(--text); font-size:12px; font-weight:600; cursor:pointer; transition:all 0.2s; }
.kitchen-btn:hover { transform:translateY(-1px); }
.kitchen-btn-ready { background:rgba(0,212,170,0.1); color:var(--teal); border-color:rgba(0,212,170,0.3); }
.kitchen-btn-cancel { background:rgba(255,77,139,0.08); color:var(--pink); border-color:rgba(255,77,139,0.2); }
.apt-list-title { font-family:'Syne',sans-serif; font-weight:700; font-size:15px; margin-bottom:12px; padding-bottom:10px; border-bottom:1px solid var(--border); }
.apt-item { background:var(--card2); border-radius:12px; padding:14px 16px; margin-bottom:10px; border-left:3px solid var(--border); transition:all 0.2s; }
.apt-item.confirmed { border-left-color:var(--teal); }
.apt-item.pending { border-left-color:var(--orange); }
.apt-item:hover { transform:translateX(3px); }
.apt-time { font-size:12px; color:var(--text-muted); margin-bottom:4px; }
.apt-client { font-weight:700; font-size:14px; }
.apt-service { font-size:12px; color:var(--purple); margin-top:2px; }
.apt-staff-tag { font-size:12px; color:var(--text-muted); }
.table-card { background:var(--card); border:2px solid var(--border); border-radius:14px; padding:16px; text-align:center; transition:all 0.2s; }
.table-card.free { border-color:rgba(0,212,170,0.3); }
.table-card.occupied { border-color:rgba(255,107,53,0.3); }
.table-card.reserved { border-color:rgba(168,85,247,0.3); }
.table-num { font-family:'Syne',sans-serif; font-weight:800; font-size:18px; margin:6px 0; }
.table-cap { font-size:12px; color:var(--text-muted); }
.table-status { font-size:12px; font-weight:600; margin-top:6px; }
.table-icon { font-size:24px; }
.appointments-layout { display:grid; grid-template-columns:300px 1fr; gap:20px; }
@media(max-width:700px){ .appointments-layout { grid-template-columns:1fr; } }
