:root {
  --bg-glass: rgba(13, 27, 42, 0.78);
  --bg-glass-light: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.16);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-turquoise: #06b6d4;
  --accent-aqua: #22d3ee;
  --accent-gold: #f59e0b;
  --accent-sand: #fde68a;
  --accent-coral: #f43f5e;
  --accent-emerald: #10b981;
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.45);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #063445;
  color: var(--text-primary);
}

#canvas-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

#beachCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#beachCanvas:active {
  cursor: grabbing;
}

.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
}

/* Top Bar */
.top-bar {
  position: fixed;
  top: 14px;
  left: 16px;
  right: 16px;
  z-index: 20;
  border-radius: var(--radius-lg);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

.brand h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #fff;
  line-height: 1.1;
}

.subtitle {
  font-size: 0.73rem;
  color: var(--text-secondary);
}

/* Date Controls */
.date-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 5px 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.date-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.date-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent-sand);
  font-weight: 700;
}

#bookingDateInput {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color-scheme: dark;
}

.formatted-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Stats Pills */
.stats-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-zone {
  background: var(--accent-aqua);
  box-shadow: 0 0 8px var(--accent-aqua);
}

.dot-free {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.dot-booked {
  background: var(--accent-coral);
  box-shadow: 0 0 8px var(--accent-coral);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.mode-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mode-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.mode-btn.active {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  color: #fff;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Edit Toolbar */
.edit-toolbar {
  position: fixed;
  top: 84px;
  left: 16px;
  z-index: 19;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(20, 30, 48, 0.88);
  max-width: calc(100vw - 410px);
  flex-wrap: wrap;
}

.edit-toolbar-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-edit {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.edit-toolbar-header p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.edit-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.secondary-accent-btn {
  background: rgba(6, 182, 212, 0.22);
  border: 1px solid rgba(34, 211, 238, 0.55);
  color: #cffafe;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.secondary-accent-btn:hover {
  background: rgba(6, 182, 212, 0.38);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(6, 182, 212, 0.3);
}

.primary-btn {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border: none;
  color: #fff;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.danger-outline-btn {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fda4af;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.danger-outline-btn:hover {
  background: rgba(244, 63, 94, 0.25);
}

/* Bottom Left HUD */
.bottom-left-hud {
  position: fixed;
  bottom: 18px;
  left: 16px;
  z-index: 18;
}

.legend-card {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
}

.swatch-free {
  background: #f8f5e6;
  border: 2px solid #8c6239;
}

.swatch-selected {
  background: #38bdf8;
  border: 2px solid #fff;
  box-shadow: 0 0 8px #38bdf8;
}

.swatch-booked {
  background: #e11d48;
  border: 2px solid #fda4af;
}

.legend-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.16);
}

.camera-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hud-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.hud-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Right Side Panel */
.side-panel {
  position: fixed;
  top: 84px;
  right: 16px;
  bottom: 18px;
  width: 370px;
  z-index: 20;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}

.side-panel.collapsed {
  transform: translateX(420px);
  opacity: 0;
  pointer-events: none;
}

.panel-header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.tier-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--accent-aqua);
  margin-bottom: 3px;
}

.panel-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

.close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.panel-empty {
  padding: 28px 20px;
  text-align: center;
  overflow-y: auto;
}

.empty-illustration {
  font-size: 3rem;
  margin-bottom: 12px;
}

.panel-empty h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.panel-empty p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.quick-tips {
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.8rem;
}

.tip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.panel-content {
  padding: 14px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.section-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.section-header-row h4 {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
}

.capacity-pill {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent-aqua);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.helper-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.zone-expand-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  padding: 7px 6px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.chip-btn:hover, .chip-btn.active {
  background: rgba(6, 182, 212, 0.28);
  border-color: var(--accent-aqua);
  color: #fff;
}

.zone-stepper-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stepper-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.stepper-btn.accent {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

.stepper-btn:hover {
  filter: brightness(1.18);
}

.zone-delete-row {
  margin-top: 8px;
  text-align: right;
}

.text-danger-btn {
  background: none;
  border: none;
  color: #fda4af;
  font-size: 0.74rem;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

/* Zone Sunbeds Grid */
.link-btn {
  background: none;
  border: none;
  color: var(--accent-aqua);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.zone-beds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.bed-card {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.bed-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.bed-card.selected {
  background: rgba(6, 182, 212, 0.22);
  border-color: var(--accent-aqua);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
}

.bed-card.booked {
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.45);
}

.bed-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.bed-status-tag {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.tag-free {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.tag-selected {
  background: rgba(56, 189, 248, 0.25);
  color: #bae6fd;
}

.tag-booked {
  background: rgba(244, 63, 94, 0.25);
  color: #fecdd3;
}

.bed-card-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cancel-mini-btn {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fda4af;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.66rem;
  cursor: pointer;
}

/* Booking Form */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.selected-badge {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-sand);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.selected-summary {
  font-size: 0.76rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 10px;
  border-radius: 8px;
  line-height: 1.4;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  width: 100%;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.form-group label {
  font-size: 0.73rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.form-group input,
.form-group select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-family: inherit;
  user-select: text;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-aqua);
}

.price-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.price-value {
  font-size: 1.1rem;
  color: var(--accent-sand);
}

.book-submit-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.book-submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.book-submit-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* Tooltip */
.beach-tooltip {
  position: fixed;
  pointer-events: none;
  z-index: 30;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.76rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -115%);
  white-space: nowrap;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-card-wide {
  max-width: 920px;
}

.modal-card-lg {
  max-width: 1020px;
}

.modal-card-sm {
  max-width: 540px;
}

.modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 18px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Report Toolbar & Scope Tabs */
.report-toolbar {
  padding: 12px 22px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.scope-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.scope-tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.scope-tab.active {
  background: var(--accent-turquoise);
  color: #fff;
}

.export-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.export-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s ease;
  color: #fff;
}

.excel-btn {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.5);
  color: #a7f3d0;
}

.excel-btn:hover {
  background: rgba(16, 185, 129, 0.38);
}

.pdf-btn {
  background: rgba(244, 63, 94, 0.22);
  border-color: rgba(244, 63, 94, 0.5);
  color: #fecdd3;
}

.pdf-btn:hover {
  background: rgba(244, 63, 94, 0.38);
}

/* KPI Row */
.report-kpi-row {
  padding: 12px 22px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.kpi-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
}

.kpi-box span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.kpi-box strong {
  font-size: 1.05rem;
  color: #fff;
}

.reservations-list {
  padding: 14px 22px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-section-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent-aqua);
  margin-top: 8px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reservation-row {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.reservation-row.cancelled-row {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.32);
}

.res-info h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.res-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.cancel-reason-badge {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(244, 63, 94, 0.22);
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #fecdd3;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Pricing Modal */
.past-lock-banner {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fde68a;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.45;
}

.pricing-rows-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-row-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.pricing-row-label strong {
  display: block;
  font-size: 0.86rem;
  color: #fff;
}

.pricing-row-label span {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.pricing-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-input-wrap input {
  width: 105px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--accent-sand);
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
  font-family: inherit;
}

.pricing-input-wrap input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pricing-actions-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

/* Cancel Reason Modal */
.cancel-target-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.reason-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.reason-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  cursor: pointer;
  font-family: inherit;
}

.reason-chip:hover {
  background: rgba(6, 182, 212, 0.25);
  color: #fff;
  border-color: var(--accent-aqua);
}

.modal-footer-right {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.danger-solid-btn {
  background: linear-gradient(135deg, #e11d48, #be123c);
  border: none;
  color: #fff;
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  animation: fadeUp 0.25s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Inventory Modal */
.inventory-modal-body {
  gap: 16px;
}

.inv-season-bar {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.inv-season-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.inv-season-left label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e0f2fe;
}

.inv-date-input {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  color-scheme: dark;
}

.inv-season-hint {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.inv-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
}

.inv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.inv-table th {
  background: rgba(15, 23, 42, 0.85);
  color: #94a3b8;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.inv-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
}

.inv-table tr:last-child td {
  border-bottom: none;
}

.inv-stock-input {
  width: 92px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #fde68a;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: right;
  font-family: inherit;
}

.inv-stock-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.inv-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.inv-badge-repair {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.inv-badge-scrap {
  background: rgba(244, 63, 94, 0.2);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.inv-badge-func {
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
}

.inv-badge-used {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.inv-badge-free {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.inv-badge-deficit {
  background: rgba(244, 63, 94, 0.28);
  color: #fecdd3;
  border: 1px solid rgba(244, 63, 94, 0.6);
}

.inv-maint-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inv-maint-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.inv-maint-header h4 {
  font-size: 0.86rem;
  color: #fff;
}

.inv-maint-header span {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.inv-maint-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.35fr 0.7fr 1.8fr auto;
  gap: 10px;
  align-items: end;
}

@media (max-width: 900px) {
  .inv-maint-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.inv-maint-btn-wrap {
  display: flex;
  align-items: flex-end;
}

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

.inv-maint-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.inv-maint-row {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.inv-maint-row.scrap-row {
  border-color: rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.07);
}

.inv-maint-row.repair-row {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.07);
}

.inv-maint-row.returned-row {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.05);
  opacity: 0.85;
}

/* Luxury Login Screen & User Management */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: radial-gradient(
    circle at 50% 38%,
    rgba(12, 42, 66, 0.58) 0%,
    rgba(5, 16, 28, 0.84) 75%,
    rgba(3, 10, 18, 0.92) 100%
  );
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.login-ambient-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.42;
}

.login-ambient-orb.orb-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.36), transparent 70%);
  top: 14%;
  left: calc(50% - 260px);
  animation: floatOrb 9s ease-in-out infinite alternate;
}

.login-ambient-orb.orb-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.34), transparent 70%);
  bottom: 12%;
  right: calc(50% - 270px);
  animation: floatOrb 11s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(18px, -16px) scale(1.07);
  }
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 468px;
  border-radius: 28px;
  padding: 38px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  background: linear-gradient(
    165deg,
    rgba(15, 29, 47, 0.88) 0%,
    rgba(9, 19, 33, 0.94) 100%
  );
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(253, 230, 138, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.login-card-shimmer {
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(253, 230, 138, 0.85),
    rgba(56, 189, 248, 0.75),
    transparent
  );
  border-radius: 999px;
}

.login-brand {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.login-crest-ring {
  padding: 5px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(253, 230, 138, 0.35),
    rgba(6, 182, 212, 0.15)
  );
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.25);
  margin-bottom: 6px;
}

.login-brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 1.65rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 55%, #b45309 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.login-eyebrow {
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #fde68a;
  line-height: 1.3;
  white-space: nowrap;
  text-shadow: 0 2px 14px rgba(245, 158, 11, 0.28);
}

.login-brand h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: linear-gradient(180deg, #ffffff 0%, #fef3c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}

.login-tagline {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.login-gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 72%;
  margin-top: 6px;
}

.login-gold-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(253, 230, 138, 0.35), transparent);
}

.login-gold-divider i {
  font-style: normal;
  font-size: 0.55rem;
  color: #fbbf24;
  opacity: 0.8;
}

.login-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.login-field-group {
  gap: 8px;
}

.login-center-label {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: #cbd5e1;
}

.login-input-shell {
  position: relative;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.05)
  );
  transition: all 0.22s ease;
}

.login-input-shell:focus-within {
  background: linear-gradient(
    135deg,
    rgba(253, 230, 138, 0.65),
    rgba(56, 189, 248, 0.65)
  );
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.22);
}

.login-username-field {
  text-align: center;
  font-size: 0.98rem !important;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 13px 16px !important;
  border-radius: 13px !important;
  border: none !important;
  background: rgba(8, 17, 30, 0.92) !important;
  color: #f8fafc !important;
  transition: all 0.2s ease;
}

.login-username-field::placeholder {
  color: rgba(148, 163, 184, 0.55);
  font-weight: 400;
}

.pin-input-wrapper {
  position: relative;
  width: 100%;
  cursor: text;
}

.pin-hidden-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.pin-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.pin-box {
  position: relative;
  height: 62px;
  border-radius: 15px;
  background: rgba(8, 17, 30, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fde68a;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.pin-box.active-box {
  border-color: rgba(253, 230, 138, 0.75);
  background: rgba(15, 28, 46, 0.95);
  box-shadow:
    0 0 18px rgba(245, 158, 11, 0.22),
    inset 0 1px 4px rgba(253, 230, 138, 0.15);
  transform: translateY(-1px);
}

.pin-box.active-box::after {
  content: '';
  position: absolute;
  bottom: 12px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: rgba(253, 230, 138, 0.75);
  animation: pulseCursor 1.2s ease-in-out infinite;
}

@keyframes pulseCursor {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

.pin-box.filled-box {
  border-color: rgba(16, 185, 129, 0.65);
  background: linear-gradient(
    180deg,
    rgba(16, 185, 129, 0.16) 0%,
    rgba(8, 17, 30, 0.92) 100%
  );
  text-shadow: 0 0 12px rgba(253, 230, 138, 0.6);
}

.login-error {
  background: rgba(244, 63, 94, 0.16);
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #fecdd3;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  margin-top: 6px;
}

.login-footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: #94a3b8;
}

.login-dot-sep {
  color: #475569;
}

@keyframes shakeCard {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.shake-anim {
  animation: shakeCard 0.35s ease;
}

.user-session-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 5px 10px;
  border-radius: 10px;
}

.user-badge-text {
  font-size: 0.76rem;
  font-weight: 700;
  color: #bae6fd;
  white-space: nowrap;
}

.logout-mini-btn {
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #fecdd3;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.16s ease;
}

.logout-mini-btn:hover {
  background: rgba(244, 63, 94, 0.38);
}

.users-form-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.8fr auto;
  gap: 10px;
  align-items: end;
}

@media (max-width: 780px) {
  .users-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hidden {
  display: none !important;
}
