/* ═══ Munchie Cookies Admin — Design System ═══ */
:root {
  --brand-50:#EBF5FF; --brand-100:#D6EBFF; --brand-200:#A8D4FF; --brand-300:#70B8FF;
  --brand-400:#3A9BFF; --brand-500:#2E86DE; --brand-600:#1A6CC4; --brand-700:#1555A0;
  --cream-50:#FFFDF5; --cream-100:#FFF8E7; --cream-200:#FFF3D6;
  --coral-400:#FF6B6B; --coral-500:#EE5A5A;
  --mint-400:#51CF66; --mint-500:#40C057;
  --gold-400:#FFD43B; --gold-500:#FCC419;
  --bg-primary:#0F172A; --bg-card:rgba(30,41,59,0.85); --bg-card-light:rgba(255,255,255,0.07);
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Inter',system-ui,sans-serif; background:var(--bg-primary); color:#fff; min-height:100vh; overflow:hidden; position:relative; }
body::before { content:''; position:fixed; inset:0; background:url('hand_tapestry_tile.svg') repeat; background-size:300px; opacity:0.35; pointer-events:none; z-index:0; }
body > * { position:relative; z-index:1; }

/* Scrollbar */
::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.12); border-radius:3px; }

/* Glass */
.glass { background:var(--bg-card); backdrop-filter:blur(20px); border:1px solid rgba(255,255,255,0.1); }
.glass-light { background:var(--bg-card-light); backdrop-filter:blur(12px); border:1px solid rgba(255,255,255,0.08); }

/* Animations */
@keyframes slideUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.4} }
.anim-slide { animation:slideUp .35s ease-out forwards; }
.anim-fade { animation:fadeIn .25s ease-out; }
.btn-press:active { transform:scale(0.96); }

/* Layout */
#app { display:flex; flex-direction:column; height:100vh; }
.top-bar { display:flex; align-items:center; justify-content:space-between; padding:10px 20px; border-bottom:1px solid rgba(255,255,255,0.06); z-index:50; flex-shrink:0; }
.top-bar .logo-area { display:flex; align-items:center; gap:10px; }
.top-bar .logo-area img { height:36px; width:auto; filter:brightness(1.1); }
.top-bar .logo-area .label { font-size:10px; color:rgba(255,255,255,0.35); letter-spacing:2px; text-transform:uppercase; font-weight:600; }
.back-to-site {
  display:flex; align-items:center; justify-content:center;
  width:32px; height:32px; border-radius:8px;
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.08);
  color:rgba(255,255,255,0.5); font-size:16px; text-decoration:none;
  transition:all 0.2s ease; flex-shrink:0;
}
.back-to-site:hover { background:rgba(46,134,222,0.15); color:var(--brand-400); border-color:rgba(46,134,222,0.3); }
.top-bar .right { display:flex; align-items:center; gap:16px; }
.top-bar .clock { text-align:right; font-size:12px; color:rgba(255,255,255,0.5); }
.top-bar .clock .time { font-size:14px; font-weight:700; color:rgba(255,255,255,0.8); font-variant-numeric:tabular-nums; }
.status-badge { display:flex; align-items:center; gap:6px; padding:4px 12px; border-radius:20px; font-size:11px; font-weight:600; }
.status-badge.online { background:rgba(64,192,87,0.12); color:var(--mint-400); }
.status-badge.offline { background:rgba(238,90,90,0.12); color:var(--coral-400); }
.status-badge .dot { width:7px; height:7px; border-radius:50%; animation:pulse-dot 2s infinite; }
.status-badge.online .dot { background:var(--mint-400); }
.status-badge.offline .dot { background:var(--coral-400); }

/* Navigation tabs */
.nav-tabs { display:flex; gap:2px; padding:0 20px; border-bottom:1px solid rgba(255,255,255,0.06); flex-shrink:0; background:rgba(15,23,42,0.6); overflow-x:auto; -webkit-overflow-scrolling:touch; }
.nav-tab { padding:10px 18px; font-size:12px; font-weight:600; color:rgba(255,255,255,0.4); cursor:pointer; border:none; background:none; border-bottom:2px solid transparent; transition:all .2s; display:flex; align-items:center; gap:6px; letter-spacing:0.5px; white-space:nowrap; flex-shrink:0; }
.nav-tab:hover { color:rgba(255,255,255,0.7); background:rgba(255,255,255,0.03); }
.nav-tab.active { color:var(--brand-400); border-bottom-color:var(--brand-400); }
.nav-tab .badge { font-size:10px; background:var(--coral-500); color:#fff; padding:1px 6px; border-radius:10px; font-weight:700; }

/* Main content area */
.main-area { flex:1; overflow:hidden; display:flex; }

/* ═══ POS View ═══ */
.pos-left { flex:1; display:flex; flex-direction:column; overflow:hidden; }
.pos-right { width:380px; display:flex; flex-direction:column; flex-shrink:0; border-left:1px solid rgba(255,255,255,0.06); position:relative; overflow:hidden; }

/* Cart background image */
.cart-bg-image {
  position:absolute; inset:0; z-index:0;
  background:url('brand_cookies.webp') center center/cover no-repeat;
  opacity:0.15;
  pointer-events:none;
}

/* Tapestry BG for cart */
.cart-tapestry { position:absolute; inset:0; background:url('hand_tapestry_tile.svg') repeat; background-size:200px; opacity:0.04; pointer-events:none; z-index:0; }
.pos-right > *:not(.cart-bg-image):not(.cart-tapestry) { position:relative; z-index:1; }

/* Stats row */
.stats-row { display:flex; gap:10px; padding:14px 20px; border-bottom:1px solid rgba(255,255,255,0.05); flex-wrap:wrap; }
.stat-card { display:flex; align-items:center; gap:8px; padding:8px 14px; border-radius:12px; }
.stat-card .icon { font-size:18px; }
.stat-card .meta { font-size:10px; color:rgba(255,255,255,0.35); text-transform:uppercase; letter-spacing:1px; font-weight:600; }
.stat-card .val { font-size:13px; font-weight:700; color:rgba(255,255,255,0.9); }
.stat-card .val.green { color:var(--mint-400); }

/* Search */
.search-wrap { padding:12px 20px 6px; }
.search-wrap input { width:100%; padding:9px 14px 9px 36px; border-radius:12px; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.07); color:#fff; font-size:13px; outline:none; transition:border-color .2s; }
.search-wrap input:focus { border-color:rgba(46,134,222,0.4); }
.search-wrap input::placeholder { color:rgba(255,255,255,0.25); }
.search-wrap .icon { position:absolute; left:32px; top:50%; transform:translateY(-50%); color:rgba(255,255,255,0.25); pointer-events:none; }

/* ═══ Product grid — HIGH CONTRAST ═══ */
.product-grid { flex:1; overflow-y:auto; padding:8px 20px 20px; display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:10px; align-content:start; }
.product-card {
  padding:16px; border-radius:14px; cursor:pointer; transition:all .2s; text-align:left;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(30,41,59,0.75);
  box-shadow:0 2px 8px rgba(0,0,0,0.2);
}
.product-card:hover:not(.disabled) {
  background:rgba(30,41,59,0.92);
  border-color:rgba(46,134,222,0.4);
  box-shadow:0 4px 24px rgba(46,134,222,0.12);
  transform:translateY(-1px);
}
.product-card.disabled { opacity:0.35; cursor:not-allowed; }
.product-card .top { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.product-card .name { font-size:14px; font-weight:800; color:rgba(255,255,255,0.95); }
.product-card .price { font-size:18px; font-weight:900; color:var(--brand-400); margin-top:6px; }
.stock-tag { font-size:9px; font-weight:700; padding:2px 8px; border-radius:10px; text-transform:uppercase; letter-spacing:0.5px; }
.stock-tag.green { background:rgba(64,192,87,0.18); color:var(--mint-400); }
.stock-tag.yellow { background:rgba(252,196,25,0.18); color:var(--gold-500); }
.stock-tag.red { background:rgba(238,90,90,0.18); color:var(--coral-400); }

/* Cart */
.cart-header { padding:14px 18px; border-bottom:1px solid rgba(255,255,255,0.06); display:flex; justify-content:space-between; align-items:center; }
.cart-header h2 { font-size:14px; font-weight:700; display:flex; align-items:center; gap:8px; }
.cart-header .count { font-size:10px; background:var(--brand-500); color:#fff; width:20px; height:20px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:800; }
.cart-header .clear-btn { font-size:11px; color:var(--coral-400); cursor:pointer; background:none; border:none; font-weight:600; }
.cart-items { flex:1; overflow-y:auto; padding:10px 18px; }
.cart-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; height:100%; text-align:center; }
.cart-empty .big { font-size:40px; opacity:0.15; margin-bottom:8px; }
.cart-empty p { font-size:12px; color:rgba(255,255,255,0.2); }
.cart-item { display:flex; align-items:center; gap:10px; padding:10px; border-radius:12px; margin-bottom:6px; background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.05); }
.cart-item .info { flex:1; min-width:0; }
.cart-item .info .n { font-size:12px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cart-item .info .sub { font-size:10px; color:rgba(255,255,255,0.35); }
.cart-item .qty-ctrl { display:flex; align-items:center; gap:4px; }
.cart-item .qty-ctrl button { width:26px; height:26px; border-radius:8px; background:rgba(255,255,255,0.05); border:none; color:rgba(255,255,255,0.5); cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:14px; }
.cart-item .qty-ctrl button:hover { background:rgba(255,255,255,0.1); }
.cart-item .qty-ctrl span { width:28px; text-align:center; font-size:13px; font-weight:700; font-variant-numeric:tabular-nums; }
.cart-item .item-total { font-size:13px; font-weight:700; color:var(--brand-400); width:60px; text-align:right; font-variant-numeric:tabular-nums; }
.cart-footer { border-top:1px solid rgba(255,255,255,0.06); padding:16px 18px; }
.cart-footer .row { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.cart-footer .row.total .label { font-size:16px; font-weight:800; }
.cart-footer .row.total .val { font-size:22px; font-weight:900; color:var(--brand-400); font-variant-numeric:tabular-nums; }
.cart-footer .row .label { font-size:12px; color:rgba(255,255,255,0.45); }
.cart-footer .row .val { font-size:13px; font-weight:600; font-variant-numeric:tabular-nums; }
.checkout-btn { width:100%; padding:14px; border-radius:12px; border:none; font-size:13px; font-weight:700; cursor:pointer; transition:all .2s; letter-spacing:0.5px; display:flex; align-items:center; justify-content:center; gap:8px; margin-top:10px; }
.checkout-btn.active { background:linear-gradient(135deg,var(--brand-500),var(--brand-600)); color:#fff; box-shadow:0 4px 16px rgba(46,134,222,0.3); }
.checkout-btn.active:hover { background:linear-gradient(135deg,var(--brand-400),var(--brand-500)); }
.checkout-btn.inactive { background:rgba(255,255,255,0.06); color:rgba(255,255,255,0.3); cursor:not-allowed; }
.checkout-btn .spinner { width:16px; height:16px; border:2px solid rgba(255,255,255,0.3); border-top-color:#fff; border-radius:50%; animation:spin .6s linear infinite; }
@keyframes spin { to{transform:rotate(360deg)} }

/* ═══ Full-Page Views (Inventory, History, Reports, Products) ═══ */
.page-view { flex:1; overflow-y:auto; padding:24px; position:relative; }
.page-view .tapestry-bg { position:fixed; inset:0; background:url('hand_tapestry_tile.svg') repeat; background-size:250px; opacity:0.025; pointer-events:none; }
.page-view > *:not(.tapestry-bg) { position:relative; z-index:1; }
.page-title { font-size:20px; font-weight:800; margin-bottom:4px; }
.page-subtitle { font-size:12px; color:rgba(255,255,255,0.4); margin-bottom:20px; }

/* Data table */
.data-table { width:100%; border-collapse:collapse; }
.data-table th { font-size:10px; text-transform:uppercase; letter-spacing:1px; color:rgba(255,255,255,0.35); font-weight:600; padding:10px 14px; text-align:left; border-bottom:1px solid rgba(255,255,255,0.06); }
.data-table td { font-size:13px; padding:12px 14px; border-bottom:1px solid rgba(255,255,255,0.04); color:rgba(255,255,255,0.8); }
.data-table tr:hover td { background:rgba(255,255,255,0.02); }
.data-table .mono { font-variant-numeric:tabular-nums; }

/* Cards grid for reports */
.report-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:14px; margin-bottom:24px; }
.report-card { padding:18px; border-radius:14px; }
.report-card .rc-label { font-size:10px; text-transform:uppercase; letter-spacing:1px; color:rgba(255,255,255,0.35); font-weight:600; margin-bottom:6px; }
.report-card .rc-val { font-size:26px; font-weight:900; font-variant-numeric:tabular-nums; }
.report-card .rc-sub { font-size:11px; color:rgba(255,255,255,0.4); margin-top:4px; }

/* Bar chart */
.bar-chart { display:flex; align-items:flex-end; gap:8px; height:160px; padding:16px 0; }
.bar-col { flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; }
.bar-col .bar { width:100%; border-radius:6px 6px 0 0; background:linear-gradient(to top,var(--brand-600),var(--brand-400)); min-height:4px; transition:height .5s ease; }
.bar-col .bar-label { font-size:9px; color:rgba(255,255,255,0.3); font-weight:600; }
.bar-col .bar-val { font-size:10px; color:rgba(255,255,255,0.6); font-weight:700; font-variant-numeric:tabular-nums; }

/* Product form modal */
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.6); backdrop-filter:blur(4px); z-index:100; display:flex; align-items:center; justify-content:center; }
.modal-box { width:420px; max-width:90vw; border-radius:16px; padding:24px; }
.modal-box h3 { font-size:16px; font-weight:800; margin-bottom:16px; }
.modal-box label { display:block; font-size:11px; font-weight:600; color:rgba(255,255,255,0.4); text-transform:uppercase; letter-spacing:0.5px; margin-bottom:4px; margin-top:12px; }
.modal-box input { width:100%; padding:10px 12px; border-radius:10px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.08); color:#fff; font-size:13px; outline:none; }
.modal-box input:focus { border-color:rgba(46,134,222,0.4); }
.modal-box .actions { display:flex; gap:8px; margin-top:20px; }
.modal-box .actions button { flex:1; padding:10px; border-radius:10px; border:none; font-size:12px; font-weight:700; cursor:pointer; }
.modal-box .btn-primary { background:var(--brand-500); color:#fff; }
.modal-box .btn-secondary { background:rgba(255,255,255,0.06); color:rgba(255,255,255,0.6); }
.modal-box .btn-danger { background:rgba(238,90,90,0.15); color:var(--coral-400); }

/* Toast */
.toast { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); z-index:200; animation:slideUp .3s ease-out; }
.toast-inner { display:flex; align-items:center; gap:10px; padding:12px 20px; border-radius:14px; font-size:13px; font-weight:600; box-shadow:0 8px 32px rgba(0,0,0,0.4); }
.toast-inner.success { background:var(--mint-500); color:#fff; }
.toast-inner.error { background:var(--coral-500); color:#fff; }
.toast-inner.info { background:var(--brand-500); color:#fff; }

/* Low stock alert row */
.low-stock-row td { background:rgba(252,196,25,0.04) !important; }
.out-stock-row td { background:rgba(238,90,90,0.04) !important; }

/* Empty state */
.empty-state { text-align:center; padding:60px 20px; }
.empty-state .icon { font-size:48px; opacity:0.15; margin-bottom:12px; }
.empty-state .msg { font-size:13px; color:rgba(255,255,255,0.25); }

/* Mobile cart toggle button (visible only on mobile) */
.mobile-cart-toggle {
  display:none;
  position:fixed; bottom:20px; right:20px; z-index:90;
  width:56px; height:56px; border-radius:50%;
  background:linear-gradient(135deg,var(--brand-500),var(--brand-600));
  color:#fff; border:none; font-size:22px; cursor:pointer;
  box-shadow:0 4px 20px rgba(46,134,222,0.4);
  align-items:center; justify-content:center;
  transition:transform 0.2s;
}
.mobile-cart-toggle:active { transform:scale(0.9); }
.mobile-cart-toggle .cart-count-badge {
  position:absolute; top:-2px; right:-2px;
  background:var(--coral-500); color:#fff;
  width:20px; height:20px; border-radius:50%;
  font-size:10px; font-weight:800;
  display:flex; align-items:center; justify-content:center;
}

/* ═══ RESPONSIVE: MOBILE FIRST ═══ */

/* Tablets & small screens */
@media (max-width: 900px) {
  body { overflow:auto !important; }
  #app { height:auto !important; min-height:100vh; overflow:visible !important; }

  .top-bar { padding:8px 14px; }
  .top-bar .logo-area img { height:28px; }
  .top-bar .logo-area .label { font-size:8px; }

  .nav-tabs { padding:0 10px; gap:0; }
  .nav-tab { padding:8px 12px; font-size:11px; gap:4px; }

  /* POS: stack vertically — FORCE */
  .main-area { flex-direction:column !important; overflow:visible !important; }
  .pos-left { overflow:visible !important; flex:none !important; }
  .product-grid { overflow:visible !important; max-height:none !important; }
  .pos-right {
    width:100% !important; border-left:none !important;
    border-top:2px solid rgba(46,134,222,0.2);
    flex:none !important;
    min-height:320px;
  }

  /* Stats row horizontal scroll */
  .stats-row { padding:10px 14px; gap:8px; flex-wrap:nowrap; overflow-x:auto; }
  .stat-card { flex-shrink:0; }

  /* Product grid: 2 columns on tablet */
  .product-grid { padding:8px 14px 14px; grid-template-columns:repeat(2,1fr) !important; gap:8px; }

  /* Search */
  .search-wrap { padding:8px 14px 4px; }

  /* Page views */
  .page-view { padding:16px; overflow:visible !important; }
  .report-cards { grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:10px; }

  /* Tables: horizontal scroll wrapper */
  .data-table { min-width:500px; }
  .glass-light { overflow-x:auto; }
}

/* Small phones */
@media (max-width: 600px) {
  .top-bar .logo-area .label { display:none; }
  .top-bar .clock { font-size:10px; }
  .top-bar .clock .time { font-size:12px; }

  .nav-tab { padding:8px 10px; font-size:10px; letter-spacing:0; }

  /* Product grid: 2 columns */
  .product-grid { grid-template-columns:repeat(2,1fr); gap:8px; padding:8px 10px 14px; }
  .product-card { padding:12px; }
  .product-card .name { font-size:12px; }
  .product-card .price { font-size:16px; }

  /* Stats */
  .stats-row { padding:8px 10px; }
  .stat-card { padding:6px 10px; }
  .stat-card .meta { font-size:8px; }
  .stat-card .val { font-size:12px; }

  /* Cart items */
  .cart-header { padding:12px 14px; }
  .cart-items { padding:8px 14px; }
  .cart-item .qty-ctrl button { width:30px; height:30px; font-size:16px; }
  .cart-footer { padding:12px 14px; }
  .checkout-btn { padding:16px; font-size:14px; border-radius:14px; }

  /* Pages */
  .page-view { padding:12px; }
  .page-title { font-size:16px; }
  .page-subtitle { font-size:11px; margin-bottom:14px; }
  .report-cards { grid-template-columns:1fr 1fr; gap:8px; }
  .report-card { padding:14px; }
  .report-card .rc-val { font-size:20px; }
  .bar-chart { height:120px; }

  /* Modal full-width */
  .modal-box { width:95vw; max-width:95vw; padding:20px; }
}

/* Extra small phones */
@media (max-width: 380px) {
  .product-grid { grid-template-columns:repeat(2,1fr); gap:6px; }
  .product-card { padding:10px; }
  .product-card .name { font-size:11px; }
  .product-card .price { font-size:14px; }
  .report-cards { grid-template-columns:1fr; }
}

/* ═══ LOGIN SCREEN ═══ */
.login-overlay {
  position:fixed; inset:0; z-index:999;
  display:flex; align-items:center; justify-content:center;
  background:var(--bg-primary);
  overflow:hidden;
}
.login-bg-pattern {
  position:absolute; inset:0;
  background:url('hand_tapestry_tile.svg') repeat;
  background-size:250px;
  opacity:0.25;
  pointer-events:none;
  animation:loginDrift 30s linear infinite;
}
@keyframes loginDrift {
  from { background-position:0 0; }
  to { background-position:250px 250px; }
}
.login-card {
  width:380px; max-width:90vw;
  padding:40px 36px;
  border-radius:24px;
  text-align:center;
  position:relative; z-index:1;
  animation:slideUp 0.5s ease-out;
}
.login-logo {
  width:100px; height:auto;
  margin-bottom:20px;
  filter:brightness(1.1);
  animation:fadeIn 0.6s ease-out;
}
.login-title {
  font-size:20px; font-weight:800;
  color:rgba(255,255,255,0.9);
  margin-bottom:4px;
}
.login-sub {
  font-size:12px;
  color:rgba(255,255,255,0.35);
  margin-bottom:24px;
}
.login-form { display:flex; flex-direction:column; gap:12px; }
.pin-input-wrap { position:relative; }
.pin-input {
  width:100%; padding:14px 18px;
  border-radius:14px;
  background:rgba(255,255,255,0.06);
  border:2px solid rgba(255,255,255,0.1);
  color:#fff; font-size:24px; font-weight:700;
  text-align:center; letter-spacing:12px;
  outline:none;
  transition:border-color 0.2s, box-shadow 0.2s;
}
.pin-input:focus {
  border-color:rgba(46,134,222,0.5);
  box-shadow:0 0 20px rgba(46,134,222,0.15);
}
.pin-input::placeholder {
  color:rgba(255,255,255,0.15);
  font-size:18px; letter-spacing:8px;
}
.login-error {
  color:var(--coral-400);
  font-size:12px; font-weight:600;
  animation:slideUp 0.3s ease-out;
}
.login-btn {
  width:100%; padding:14px;
  border-radius:14px; border:none;
  background:linear-gradient(135deg,var(--brand-500),var(--brand-600));
  color:#fff; font-size:14px; font-weight:700;
  cursor:pointer;
  transition:all 0.2s;
  box-shadow:0 4px 16px rgba(46,134,222,0.3);
}
.login-btn:hover {
  background:linear-gradient(135deg,var(--brand-400),var(--brand-500));
  box-shadow:0 6px 24px rgba(46,134,222,0.4);
  transform:translateY(-1px);
}
.login-btn:active { transform:translateY(0) scale(0.98); }
.login-footer {
  margin-top:24px;
  font-size:11px; font-weight:700;
  color:rgba(255,255,255,0.15);
  letter-spacing:1px;
}
.login-back-link {
  display:inline-flex; align-items:center; gap:5px;
  margin-top:16px;
  font-size:12px; font-weight:600;
  color:rgba(255,255,255,0.3);
  text-decoration:none;
  transition:color 0.2s;
}
.login-back-link:hover { color:var(--brand-400); }

/* ═══ LOGOUT BUTTON ═══ */
.logout-btn {
  display:flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:8px;
  background:rgba(238,90,90,0.08);
  border:1px solid rgba(238,90,90,0.15);
  color:rgba(255,255,255,0.45);
  font-size:16px; cursor:pointer;
  transition:all 0.2s ease;
}
.logout-btn:hover {
  background:rgba(238,90,90,0.18);
  color:var(--coral-400);
  border-color:rgba(238,90,90,0.35);
}

/* ═══ CUSTOMER CHECKOUT MODAL ═══ */
.customer-modal {
  position:fixed; inset:0; background:rgba(0,0,0,0.65); backdrop-filter:blur(6px);
  z-index:100; display:flex; align-items:center; justify-content:center;
  animation:fadeIn 0.2s ease-out;
}
.customer-modal-box {
  width:440px; max-width:92vw; border-radius:20px; padding:28px;
  background:rgba(30,41,59,0.92); backdrop-filter:blur(24px);
  border:1px solid rgba(255,255,255,0.1);
  box-shadow:0 20px 60px rgba(0,0,0,0.5);
  animation:slideUp 0.35s ease-out;
}
.customer-modal-box .modal-header {
  display:flex; align-items:center; gap:12px; margin-bottom:20px;
}
.customer-modal-box .modal-header .modal-icon {
  width:44px; height:44px; border-radius:12px;
  background:linear-gradient(135deg, var(--brand-500), var(--brand-600));
  display:flex; align-items:center; justify-content:center;
  font-size:20px; flex-shrink:0;
}
.customer-modal-box .modal-header h3 {
  font-size:16px; font-weight:800; color:rgba(255,255,255,0.95);
}
.customer-modal-box .modal-header p {
  font-size:11px; color:rgba(255,255,255,0.35); margin-top:2px;
}

/* Customer form fields */
.customer-field { margin-bottom:14px; }
.customer-field label {
  display:flex; align-items:center; gap:6px;
  font-size:11px; font-weight:600; color:rgba(255,255,255,0.45);
  text-transform:uppercase; letter-spacing:0.5px; margin-bottom:6px;
}
.customer-field label .field-icon { font-size:14px; }
.customer-field input {
  width:100%; padding:12px 14px; border-radius:12px;
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1);
  color:#fff; font-size:14px; font-weight:500; outline:none;
  transition:border-color 0.2s, box-shadow 0.2s;
}
.customer-field input:focus {
  border-color:rgba(46,134,222,0.5);
  box-shadow:0 0 16px rgba(46,134,222,0.1);
}
.customer-field input::placeholder { color:rgba(255,255,255,0.2); }
.customer-field .field-hint {
  font-size:10px; color:rgba(255,255,255,0.25); margin-top:4px; padding-left:2px;
}

/* Recurring customer badge */
.recurring-badge {
  display:flex; align-items:center; gap:8px;
  padding:10px 14px; border-radius:12px; margin-bottom:14px;
  background:rgba(64,192,87,0.08); border:1px solid rgba(64,192,87,0.2);
  animation:slideUp 0.3s ease-out;
}
.recurring-badge .badge-icon {
  font-size:18px; animation:pulse-dot 2s infinite;
}
.recurring-badge .badge-text {
  font-size:12px; font-weight:600; color:var(--mint-400);
}
.recurring-badge .badge-sub {
  font-size:10px; color:rgba(255,255,255,0.35); margin-top:1px;
}

/* New customer indicator */
.new-customer-badge {
  display:flex; align-items:center; gap:8px;
  padding:10px 14px; border-radius:12px; margin-bottom:14px;
  background:rgba(46,134,222,0.08); border:1px solid rgba(46,134,222,0.2);
  animation:slideUp 0.3s ease-out;
}
.new-customer-badge .badge-icon { font-size:18px; }
.new-customer-badge .badge-text {
  font-size:12px; font-weight:600; color:var(--brand-400);
}

/* Order summary in modal */
.order-summary {
  background:rgba(255,255,255,0.03); border-radius:12px;
  border:1px solid rgba(255,255,255,0.06);
  padding:12px; margin-bottom:16px;
}
.order-summary .summary-title {
  font-size:10px; font-weight:700; color:rgba(255,255,255,0.35);
  text-transform:uppercase; letter-spacing:1px; margin-bottom:8px;
}
.order-summary .summary-item {
  display:flex; justify-content:space-between; align-items:center;
  padding:4px 0; font-size:12px; color:rgba(255,255,255,0.6);
}
.order-summary .summary-item .item-name { font-weight:500; }
.order-summary .summary-item .item-subtotal { font-weight:600; font-variant-numeric:tabular-nums; }
.order-summary .summary-total {
  display:flex; justify-content:space-between; align-items:center;
  padding-top:8px; margin-top:8px;
  border-top:1px solid rgba(255,255,255,0.08);
  font-size:14px; font-weight:800; color:var(--brand-400);
}

/* Modal action buttons */
.customer-modal-actions {
  display:flex; gap:8px; margin-top:20px;
}
.customer-modal-actions button {
  flex:1; padding:12px; border-radius:12px; border:none;
  font-size:13px; font-weight:700; cursor:pointer; transition:all 0.2s;
  display:flex; align-items:center; justify-content:center; gap:6px;
}
.btn-skip {
  background:rgba(255,255,255,0.06); color:rgba(255,255,255,0.45);
}
.btn-skip:hover { background:rgba(255,255,255,0.1); color:rgba(255,255,255,0.65); }
.btn-confirm-sale {
  background:linear-gradient(135deg,var(--brand-500),var(--brand-600));
  color:#fff; box-shadow:0 4px 16px rgba(46,134,222,0.3);
}
.btn-confirm-sale:hover {
  background:linear-gradient(135deg,var(--brand-400),var(--brand-500));
  box-shadow:0 6px 20px rgba(46,134,222,0.4);
}
.btn-confirm-sale:disabled {
  opacity:0.5; cursor:not-allowed;
  box-shadow:none;
}

/* WhatsApp button */
.btn-whatsapp {
  background:linear-gradient(135deg, #25D366, #128C7E) !important;
  color:#fff !important;
  box-shadow:0 4px 16px rgba(37,211,102,0.25);
}
.btn-whatsapp:hover {
  background:linear-gradient(135deg, #2BE874, #25D366) !important;
  box-shadow:0 6px 20px rgba(37,211,102,0.35);
}

/* ═══ CLIENTS TAB ═══ */
.clients-search-wrap {
  display:flex; gap:10px; margin-bottom:20px; align-items:center;
}
.clients-search-wrap input {
  flex:1; padding:10px 16px; border-radius:12px;
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.08);
  color:#fff; font-size:13px; outline:none;
  transition:border-color 0.2s;
}
.clients-search-wrap input:focus { border-color:rgba(46,134,222,0.4); }
.clients-search-wrap input::placeholder { color:rgba(255,255,255,0.25); }

.client-whatsapp-btn {
  display:inline-flex; align-items:center; justify-content:center;
  gap:4px; padding:5px 12px; border-radius:8px; border:none;
  background:rgba(37,211,102,0.12); color:#25D366;
  font-size:11px; font-weight:700; cursor:pointer;
  transition:all 0.2s;
}
.client-whatsapp-btn:hover {
  background:rgba(37,211,102,0.25); transform:scale(1.05);
}

/* Client purchase count badge */
.purchase-badge {
  display:inline-flex; align-items:center; gap:4px;
  padding:3px 10px; border-radius:10px;
  font-size:10px; font-weight:700;
}
.purchase-badge.high {
  background:rgba(64,192,87,0.15); color:var(--mint-400);
}
.purchase-badge.medium {
  background:rgba(46,134,222,0.15); color:var(--brand-400);
}
.purchase-badge.low {
  background:rgba(255,255,255,0.06); color:rgba(255,255,255,0.4);
}

/* WhatsApp success overlay */
.whatsapp-success {
  position:fixed; inset:0; z-index:150;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,0.5); backdrop-filter:blur(4px);
  animation:fadeIn 0.2s ease-out;
}
.whatsapp-success-card {
  text-align:center; padding:32px 40px;
  background:rgba(30,41,59,0.92); backdrop-filter:blur(24px);
  border:1px solid rgba(37,211,102,0.2);
  border-radius:20px; animation:slideUp 0.35s ease-out;
  box-shadow:0 20px 60px rgba(0,0,0,0.4);
}
.whatsapp-success-card .success-icon {
  font-size:48px; margin-bottom:12px;
}
.whatsapp-success-card h3 {
  font-size:16px; font-weight:800; color:rgba(255,255,255,0.9);
  margin-bottom:4px;
}
.whatsapp-success-card p {
  font-size:12px; color:rgba(255,255,255,0.4);
  margin-bottom:16px;
}
.whatsapp-success-card .btn-close-success {
  padding:10px 24px; border-radius:12px; border:none;
  background:rgba(255,255,255,0.08); color:rgba(255,255,255,0.6);
  font-size:12px; font-weight:700; cursor:pointer;
  transition:all 0.2s;
}
.whatsapp-success-card .btn-close-success:hover {
  background:rgba(255,255,255,0.14); color:rgba(255,255,255,0.8);
}

/* ═══ RESPONSIVE ADDITIONS ═══ */
@media (max-width: 600px) {
  .customer-modal-box { width:95vw; padding:20px; }
  .customer-modal-actions { flex-direction:column; }
  .customer-modal-actions button { padding:14px; }
  .clients-search-wrap { flex-direction:column; }
}

