/* ==========================================================================
   components.css — Lumina Studio
   Buttons · Cards · Tables · Forms · Modals · POS · Projects · Alerts
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--r-md);
  font-size: .845rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn-primary {
  background: var(--clr-primary);
  color: #1A0F0A;
  box-shadow: 0 2px 10px hsla(var(--accent-h),52%,56%,.28);
}
.btn-primary:hover { background: var(--clr-primary-lt); box-shadow: 0 4px 18px hsla(var(--accent-h),52%,56%,.40); transform: translateY(-1px); }

.btn-secondary {
  background: var(--bg-2);
  color: var(--txt-1);
  border-color: var(--bdr-md);
}
.btn-secondary:hover { background: var(--bg-4); border-color: var(--bdr-hi); }

.btn-danger {
  background: rgba(224,90,74,.12);
  color: var(--err);
  border-color: rgba(224,90,74,.20);
}
.btn-danger:hover { background: rgba(224,90,74,.22); }

.btn-ghost { color: var(--txt-2); }
.btn-ghost:hover { background: var(--bg-4); color: var(--txt-1); }

.btn-success {
  background: rgba(93,191,138,.12);
  color: var(--ok);
  border-color: rgba(93,191,138,.20);
}
.btn-success:hover { background: rgba(93,191,138,.22); }

.btn-sm   { padding: 6px 13px; font-size: .78rem; }
.btn-lg   { padding: 11px 24px; font-size: .93rem; }
.btn-icon { padding: 7px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-3);
  border: 1px solid var(--bdr-lo);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--bdr-lo);
}
.card-header h3 { font-size: .95rem; font-weight: 700; }
.card-header p  { font-size: .75rem; color: var(--txt-2); margin-top: 2px; }
.card-body   { padding: 20px; }
.card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--bdr-lo);
}

/* --------------------------------------------------------------------------
   Stat card
   -------------------------------------------------------------------------- */
.stat-card {
  background: var(--bg-3);
  border: 1px solid var(--bdr-lo);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.55); }

.stat-card-glow {
  position: absolute;
  top: -20px; right: -20px;
  width: 90px; height: 90px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: .15;
}
.stat-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }

.stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
}
.stat-icon svg { width: 21px; height: 21px; }

.stat-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--r-pill);
  font-size: .72rem;
  font-weight: 600;
}
.trend-up   { background: rgba( 93,191,138,.12); color: var(--ok);  }
.trend-down { background: rgba(224, 90, 74,.12); color: var(--err); }
.trend-up svg, .trend-down svg { width: 12px; height: 12px; }

.stat-value { font-size: clamp(1.1rem, 2.2vw, 1.65rem); font-weight: 700; font-family: var(--f-num); letter-spacing: -.02em; line-height: 1.1; margin-bottom: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-label { font-size: .78rem; color: var(--txt-2); font-weight: 500; }
.stat-sub   { font-size: .72rem; color: var(--txt-3); margin-top: 10px; }

.stat-gold   .stat-icon   { background: hsla(var(--accent-h),52%,56%,.15); color: var(--clr-primary); }
.stat-gold   .stat-card-glow { background: var(--clr-primary); }
.stat-teal   .stat-icon   { background: rgba(123,191,176,.15); color: var(--clr-teal);    }
.stat-teal   .stat-card-glow { background: var(--clr-teal); }
.stat-rose   .stat-icon   { background: rgba(192, 97, 78,.15); color: var(--clr-danger);  }
.stat-rose   .stat-card-glow { background: var(--clr-danger); }
.stat-violet .stat-icon   { background: rgba(155,142,196,.15); color: var(--clr-violet);  }
.stat-violet .stat-card-glow { background: var(--clr-violet); }

/* --------------------------------------------------------------------------
   Progress bar
   -------------------------------------------------------------------------- */
.progress-bar  { background: var(--bg-4); border-radius: var(--r-pill); height: 6px; overflow: hidden; }
.progress-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-primary-lt));
  transition: width .6s cubic-bezier(.16,1,.3,1);
}
.progress-fill.teal   { background: var(--clr-teal);   }
.progress-fill.rose   { background: var(--clr-danger); }
.progress-fill.violet { background: var(--clr-violet); }
.progress-fill.success{ background: var(--ok);         }

/* --------------------------------------------------------------------------
   Data table
   -------------------------------------------------------------------------- */
.table-container {
  background: var(--bg-3);
  border: 1px solid var(--bdr-lo);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.table-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--bdr-lo);
  flex-wrap: wrap;
}
.table-toolbar-title h3 { font-size: .93rem; font-weight: 700; }
.table-toolbar-title p  { font-size: .73rem; color: var(--txt-3); }
.table-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.table-search {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-5);
  border: 1px solid var(--bdr-lo);
  border-radius: var(--r-md);
  padding: 7px 12px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.table-search:focus-within { border-color: var(--clr-primary); box-shadow: 0 0 0 3px hsla(var(--accent-h),52%,56%,.10); }
.table-search svg   { width: 14px; height: 14px; color: var(--txt-3); }
.table-search input { font-size: .82rem; width: 180px; }

.data-table { width: 100%; border-collapse: collapse; }

.data-table thead th {
  padding: 10px 16px;
  text-align: left;
  font-size: .70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--txt-3);
  background: var(--bg-1);
  border-bottom: 1px solid var(--bdr-lo);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color var(--ease);
}
.data-table thead th:hover { color: var(--txt-1); }
.data-table thead th.sorted { color: var(--clr-primary); }

.data-table tbody tr {
  border-bottom: 1px solid var(--bdr-lo);
  transition: background var(--ease);
}
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(255,255,255,.025); }
.data-table tbody td { padding: 13px 16px; font-size: .845rem; vertical-align: middle; }

.cell-name { display: flex; align-items: center; gap: 10px; }
.cell-name .name { font-weight: 600; }
.cell-name .sub  { font-size: .72rem; color: var(--txt-3); }

.row-actions { display: flex; gap: 4px; opacity: 0; transition: opacity var(--ease); }
.data-table tbody tr:hover .row-actions { opacity: 1; }

/* Pagination */
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--bdr-lo);
  flex-wrap: wrap;
  gap: 10px;
}
.pagination-info     { font-size: .78rem; color: var(--txt-2); }
.pagination-controls { display: flex; gap: 4px; }

.page-btn {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .80rem; font-weight: 500;
  background: var(--bg-2);
  border: 1px solid var(--bdr-lo);
  color: var(--txt-2);
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.page-btn:hover  { border-color: var(--clr-primary); color: var(--clr-primary); }
.page-btn.active { background: var(--clr-primary); color: #1A0F0A; border-color: var(--clr-primary); font-weight: 700; }

/* --------------------------------------------------------------------------
   Form elements
   -------------------------------------------------------------------------- */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: .80rem;
  font-weight: 600;
  color: var(--txt-2);
  margin-bottom: 7px;
}
.form-label .required { color: var(--clr-danger); margin-left: 3px; }

.form-control {
  width: 100%;
  background: var(--bg-5);
  border: 1px solid var(--bdr-md);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: .86rem;
  color: var(--txt-1);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-control::placeholder { color: var(--txt-3); }
.form-control:focus { border-color: var(--clr-primary); box-shadow: 0 0 0 3px hsla(var(--accent-h),52%,56%,.12); }
.form-control.error   { border-color: var(--err); }
.form-control:disabled{ opacity: .5; cursor: not-allowed; }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B4E38' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
textarea.form-control { resize: vertical; min-height: 90px; }

.form-hint  { font-size: .73rem; color: var(--txt-3); margin-top: 5px; }
.form-error { font-size: .73rem; color: var(--err);   margin-top: 5px; display: none; }
.form-group.has-error .form-error   { display: block; }
.form-group.has-error .form-control { border-color: var(--err); }

.form-row   { display: grid; grid-template-columns: 1fr 1fr;         gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr);  gap: 16px; }

/* Input with icon */
.input-group                  { position: relative; }
.input-group .form-control    { padding-left: 38px; }
.input-group .input-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: var(--txt-3);
  pointer-events: none;
}

/* Toggle switch */
.toggle-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle-switch input { display: none; }
.toggle-track {
  width: 42px; height: 22px;
  border-radius: var(--r-pill);
  background: var(--bg-4);
  border: 1px solid var(--bdr-md);
  position: relative;
  transition: background var(--ease), border-color var(--ease);
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--txt-3);
  transition: transform var(--ease), background var(--ease);
}
.toggle-switch input:checked + .toggle-track { background: hsla(var(--accent-h),52%,56%,.2); border-color: var(--clr-primary); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(20px); background: var(--clr-primary); }
.toggle-label { font-size: .84rem; font-weight: 500; }

/* File upload */
.file-upload {
  border: 2px dashed var(--bdr-md);
  border-radius: var(--r-lg);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  background: var(--bg-5);
  transition: border-color var(--ease), background var(--ease);
}
.file-upload:hover, .file-upload.drag-over { border-color: var(--clr-primary); background: hsla(var(--accent-h),52%,56%,.04); }
.file-upload input         { display: none; }
.file-upload-text          { font-size: .85rem; color: var(--txt-2); }
.file-upload-text strong   { color: var(--clr-primary); }
.file-upload-hint          { font-size: .73rem; color: var(--txt-3); margin-top: 4px; }

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease both;
}
.modal {
  background: var(--bg-2);
  border: 1px solid var(--bdr-md);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: fadeInUp .3s cubic-bezier(.16,1,.3,1) both;
}
.modal.modal-lg { max-width: 720px; }
.modal.modal-xl { max-width: 900px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--bdr-lo);
}
.modal-header h3 { font-size: 1.05rem; }

.modal-close {
  width: 30px; height: 30px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--txt-3);
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.modal-close:hover { background: var(--bg-4); color: var(--txt-1); }
.modal-close svg   { width: 16px; height: 16px; }

.modal-body   { padding: 22px 24px; overflow-y: auto; flex: 1; }
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--bdr-lo);
}

/* --------------------------------------------------------------------------
   Tabs
   -------------------------------------------------------------------------- */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-2);
  border: 1px solid var(--bdr-lo);
  border-radius: var(--r-lg);
  padding: 4px;
}
.tab-btn {
  padding: 7px 16px;
  border-radius: var(--r-md);
  font-size: .82rem;
  font-weight: 600;
  color: var(--txt-2);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease), box-shadow var(--ease);
}
.tab-btn.active { background: var(--bg-3); color: var(--txt-1); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.tab-btn:hover:not(.active) { color: var(--txt-1); }

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */
.timeline { display: flex; flex-direction: column; }
.timeline-item { display: flex; gap: 14px; padding-bottom: 18px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot-col { display: flex; flex-direction: column; align-items: center; }
.timeline-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--clr-primary);
  flex-shrink: 0;
  margin-top: 4px;
  box-shadow: 0 0 0 3px hsla(var(--accent-h),52%,56%,.2);
}
.timeline-dot.teal   { background: var(--clr-teal);   box-shadow: 0 0 0 3px rgba(123,191,176,.2); }
.timeline-dot.rose   { background: var(--clr-danger);  box-shadow: 0 0 0 3px rgba(192, 97, 78,.2); }
.timeline-dot.violet { background: var(--clr-violet);  box-shadow: 0 0 0 3px rgba(155,142,196,.2); }
.timeline-line { width: 1px; flex: 1; background: var(--bdr-lo); margin-top: 4px; }
.timeline-item:last-child .timeline-line { display: none; }
.timeline-content        { flex: 1; min-width: 0; }
.timeline-content .title { font-size: .84rem; font-weight: 600; }
.timeline-content .meta  { font-size: .73rem; color: var(--txt-3); margin-top: 2px; }

/* --------------------------------------------------------------------------
   Alert
   -------------------------------------------------------------------------- */
.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
}
.alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-content h5 { font-size: .84rem; font-weight: 600; }
.alert-content p  { font-size: .78rem; margin-top: 2px; }
.alert-success { background: rgba( 93,191,138,.08); border-color: rgba( 93,191,138,.20); color: var(--ok);   }
.alert-warning { background: rgba(232,160, 48,.08); border-color: rgba(232,160, 48,.20); color: var(--warn); }
.alert-danger  { background: rgba(224, 90, 74,.08); border-color: rgba(224, 90, 74,.20); color: var(--err);  }
.alert-info    { background: rgba(123,191,176,.08); border-color: rgba(123,191,176,.20); color: var(--info); }

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px; max-width: 360px;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--bdr-md);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-modal);
  animation: slideDown .25s ease both;
}
.toast-icon { width: 28px; height: 28px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toast-icon svg { width: 14px; height: 14px; }
.toast-text  { flex: 1; }
.toast-title { font-size: .84rem; font-weight: 600; }
.toast-msg   { font-size: .76rem; color: var(--txt-2); }
.toast-close { color: var(--txt-3); cursor: pointer; transition: color var(--ease); }
.toast-close:hover { color: var(--txt-1); }
.toast.success .toast-icon { background: rgba( 93,191,138,.15); color: var(--ok);           }
.toast.warning .toast-icon { background: rgba(232,160, 48,.15); color: var(--warn);         }
.toast.error   .toast-icon { background: rgba(224, 90, 74,.15); color: var(--err);          }
.toast.info    .toast-icon { background: rgba(123,191,176,.15); color: var(--info);         }

/* --------------------------------------------------------------------------
   Filter bar
   -------------------------------------------------------------------------- */
.filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.filter-select {
  background: var(--bg-3);
  border: 1px solid var(--bdr-lo);
  border-radius: var(--r-md);
  padding: 7px 30px 7px 12px;
  font-size: .82rem;
  color: var(--txt-1);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236B4E38' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  transition: border-color var(--ease);
}
.filter-select:focus { border-color: var(--clr-primary); outline: none; }

/* --------------------------------------------------------------------------
   Mini bar chart (CSS only)
   -------------------------------------------------------------------------- */
.mini-chart { display: flex; align-items: flex-end; gap: 5px; height: 50px; }
.mini-bar   {
  flex: 1;
  min-width: 6px;
  background: var(--clr-primary);
  opacity: .4;
  border-radius: 3px 3px 0 0;
  transition: opacity var(--ease), height .5s cubic-bezier(.16,1,.3,1);
}
.mini-bar.active, .mini-bar:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   POS layout
   -------------------------------------------------------------------------- */
.pos-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 14px;
  height: calc(100vh - 20px);
  min-height: 0;
}

.pos-products {
  background: var(--bg-3);
  border: 1px solid var(--bdr-lo);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.pos-search     { padding: 16px; border-bottom: 1px solid var(--bdr-lo); }
.pos-categories {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bdr-lo);
  overflow-x: auto;
}
.pos-cat-btn {
  padding: 5px 14px;
  border-radius: var(--r-pill);
  font-size: .78rem;
  font-weight: 600;
  background: var(--bg-2);
  border: 1px solid var(--bdr-lo);
  color: var(--txt-2);
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.pos-cat-btn.active { background: hsla(var(--accent-h),52%,56%,.15); border-color: var(--clr-primary); color: var(--clr-primary); }

.pos-grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, 140px);
  grid-auto-rows: 150px;
  align-content: start;
  gap: 12px;
  padding: 14px;
  justify-content: start;
}
.pos-item {
  background: var(--bg-2);
  border: 1px solid var(--bdr-lo);
  border-radius: var(--r-lg);
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
  width: 140px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pos-item:hover { border-color: var(--clr-primary); background: hsla(var(--accent-h),52%,56%,.06); transform: translateY(-2px); }
.pos-item-icon  { width: 44px; height: 44px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 1.3rem; flex-shrink: 0; }
.pos-item-name  { font-size: .8rem; font-weight: 600; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pos-item-price { font-size: .88rem; font-weight: 700; color: var(--clr-primary); }

/* Image-background card for non-service items */
.pos-item-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  width: 140px;
  height: 150px;
  padding: 0;
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
}
.pos-item-img .pos-item-img-overlay {
  width: 100%;
  padding: 24px 10px 10px;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.4) 55%, transparent 100%);
  text-align: left;
}
.pos-item-img .pos-item-name  { color: #fff; font-size: .78rem; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.5); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-item-img .pos-item-price { color: var(--clr-primary-lt); font-size: .85rem; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.5); }

.pos-cart {
  background: var(--bg-3);
  border: 1px solid var(--bdr-lo);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  height: 100%;
}
.pos-cart-top     { flex-shrink: 0; }
.pos-cart-header  { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--bdr-lo); }
.pos-cart-items   {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  border: 1px solid var(--bdr-lo);
  transition: border-color var(--ease);
  flex-shrink: 0;
}
.cart-item:hover     { border-color: var(--bdr-md); }
.cart-item-name      { font-size: .75rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-sub       { font-size: .63rem; color: var(--txt-3); margin-top: 1px; }
.cart-item-price     { font-weight: 700; font-size: .78rem; color: var(--clr-primary); white-space: nowrap; flex-shrink: 0; }
.cart-remove         { color: var(--txt-3); cursor: pointer; padding: 2px; border-radius: 3px; transition: color var(--ease), background var(--ease); flex-shrink: 0; line-height: 0; }
.cart-remove:hover   { color: var(--err); background: rgba(224,90,74,.10); }

.qty-control { display: flex; align-items: center; gap: 2px; background: var(--bg-4); border-radius: var(--r-sm); padding: 1px 2px; flex-shrink: 0; }
.qty-btn     { width: 18px; height: 18px; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; color: var(--txt-2); cursor: pointer; transition: background var(--ease), color var(--ease); user-select: none; }
.qty-btn:hover  { background: var(--clr-primary); color: #fff; }
.qty-value      { font-size: .73rem; font-weight: 700; min-width: 14px; text-align: center; }

.pos-summary  { padding: 10px 12px; border-top: 1px solid var(--bdr-lo); background: var(--bg-1); flex-shrink: 0; }
.summary-row  { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: .78rem; }
.summary-row.total { font-weight: 700; font-size: .9rem; border-top: 1px solid var(--bdr-md); padding-top: 6px; margin-top: 2px; }
.summary-row .label    { color: var(--txt-2); }
.summary-row.total .value { color: var(--clr-primary); }

.pos-payment-methods { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.pay-method {
  padding: 6px 4px;
  border-radius: var(--r-md);
  border: 1px solid var(--bdr-lo);
  font-size: .7rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  background: var(--bg-2);
  color: var(--txt-2);
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}
.pay-method.active { border-color: var(--clr-primary); color: var(--clr-primary); background: hsla(var(--accent-h),52%,56%,.10); }

/* --------------------------------------------------------------------------
   Photography project cards
   -------------------------------------------------------------------------- */
.project-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; }

.project-card {
  background: var(--bg-3);
  border: 1px solid var(--bdr-lo);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.project-card:hover { border-color: var(--bdr-md); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.55); }
.project-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.project-thumb    { width: 52px; height: 52px; border-radius: var(--r-md); background: var(--bg-2); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.project-client   { font-size: 1rem; font-weight: 700; font-family: var(--f-display); margin-bottom: 2px; }
.project-type     { font-size: .75rem; color: var(--txt-2); }
.project-meta     { display: flex; flex-direction: column; gap: 7px; margin: 14px 0; }
.project-meta-row { display: flex; align-items: center; gap: 8px; font-size: .80rem; color: var(--txt-2); }
.project-meta-row svg { width: 13px; height: 13px; color: var(--txt-3); flex-shrink: 0; }
.project-footer   { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--bdr-lo); }
.project-progress-label { font-size: .73rem; color: var(--txt-3); margin-bottom: 5px; }

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state svg { width: 48px; height: 48px; color: var(--txt-3); margin: 0 auto 16px; opacity: .5; }
.empty-state h4  { font-size: 1rem; margin-bottom: 6px; }
.empty-state p   { font-size: .82rem; color: var(--txt-2); }
