/* Three Lines Studio — Design System */

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

:root {
  /* Surface colors */
  --surface: #131313;
  --surface-dim: #131313;
  --surface-bright: #393939;
  --surface-container-lowest: #0e0e0e;
  --surface-container-low: #1c1b1b;
  --surface-container: #201f1f;
  --surface-container-high: #2a2a2a;
  --surface-container-highest: #353534;
  --on-surface: #e5e2e1;
  --on-surface-variant: #cbc3d7;
  --inverse-surface: #e5e2e1;
  --inverse-on-surface: #313030;
  --outline: #958ea0;
  --outline-variant: #494454;
  --surface-tint: #d0bcff;
  --surface-variant: #353534;

  /* Primary */
  --primary: #d0bcff;
  --on-primary: #3c0091;
  --primary-container: #a078ff;
  --on-primary-container: #340080;
  --inverse-primary: #6d3bd7;
  --primary-brand: #8B5CF6;

  /* Secondary */
  --secondary: #c0c1ff;
  --on-secondary: #1000a9;
  --secondary-container: #3131c0;
  --on-secondary-container: #b0b2ff;

  /* Tertiary */
  --tertiary: #cebdff;
  --on-tertiary: #381385;
  --tertiary-container: #9b7fed;
  --on-tertiary-container: #31057e;

  /* Error */
  --error: #ffb4ab;
  --on-error: #690005;
  --error-container: #93000a;
  --on-error-container: #ffdad6;

  /* Background */
  --background: #0A0A0A;
  --on-background: #e5e2e1;

  /* Status */
  --success: #4ade80;
  --warning: #fbbf24;
  --info: #60a5fa;

  /* Spacing */
  --space-base: 4px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --gutter: 24px;
  --margin: 32px;

  /* Radii */
  --rounded-sm: 0.125rem;
  --rounded: 0.25rem;
  --rounded-md: 0.375rem;
  --rounded-lg: 0.5rem;
  --rounded-xl: 0.75rem;
  --rounded-full: 9999px;

  /* Borders */
  --border-color: #262626;
  --border: 1px solid #262626;

  /* Sidebar */
  --sidebar-width: 260px;
}

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

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--on-surface);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.headline-xl {
  font-family: 'Manrope', sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.headline-lg {
  font-family: 'Manrope', sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.headline-md {
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.body-lg {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.body-md {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.label-md {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.label-sm {
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-container);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 10px 20px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  border-radius: var(--rounded);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-brand);
  color: #fff;
  border-color: var(--primary-brand);
}

.btn-primary:hover {
  background-color: #7c4fe0;
  border-color: #7c4fe0;
  color: #fff;
}

.btn-secondary {
  background-color: transparent;
  color: var(--on-surface);
  border-color: var(--border-color);
}

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

.btn-danger {
  background-color: var(--error-container);
  color: var(--on-error-container);
  border-color: var(--error-container);
}

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

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* Cards */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-lg);
  padding: var(--space-md);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Forms */
.form-group {
  margin-bottom: var(--space-sm);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: var(--on-surface);
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--rounded);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-brand);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-checkbox {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-brand);
}

.form-hint {
  font-size: 13px;
  color: var(--outline);
  margin-top: 4px;
}

.form-error {
  font-size: 13px;
  color: var(--error);
  margin-top: 4px;
}

.field_with_errors input,
.field_with_errors select,
.field_with_errors textarea {
  border-color: var(--error);
}

/* Tables */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-lg);
}

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

thead {
  background-color: var(--surface-container-low);
}

th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  color: var(--outline);
  border-bottom: 1px solid var(--border-color);
}

td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--on-surface);
}

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

tbody tr:hover {
  background-color: var(--surface-container-lowest);
}

/* Badges / Tags */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--rounded);
  text-transform: uppercase;
}

.badge-primary {
  background-color: rgba(139, 92, 246, 0.15);
  color: var(--primary);
}

.badge-success {
  background-color: rgba(74, 222, 128, 0.15);
  color: var(--success);
}

.badge-warning {
  background-color: rgba(251, 191, 36, 0.15);
  color: var(--warning);
}

.badge-error {
  background-color: rgba(255, 180, 171, 0.15);
  color: var(--error);
}

.badge-neutral {
  background-color: var(--surface-container-high);
  color: var(--on-surface-variant);
}

.badge-info {
  background-color: rgba(100, 200, 255, 0.15);
  color: #64c8ff;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--space-md);
}

.tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--outline);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  margin-bottom: -1px;
}

.tab:hover {
  color: var(--on-surface);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary-brand);
}

/* Flash messages */
.flash {
  padding: 12px 16px;
  border-radius: var(--rounded);
  font-size: 14px;
  margin-bottom: var(--space-sm);
}

.flash-notice {
  background-color: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--success);
}

.flash-alert {
  background-color: rgba(255, 180, 171, 0.1);
  border: 1px solid rgba(255, 180, 171, 0.3);
  color: var(--error);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  font-size: 14px;
  border-radius: var(--rounded);
  text-decoration: none;
  color: var(--on-surface-variant);
  border: 1px solid var(--border-color);
}

.pagination a:hover {
  border-color: var(--primary-brand);
  color: var(--primary);
}

.pagination .current {
  background-color: var(--primary-brand);
  border-color: var(--primary-brand);
  color: #fff;
}

/* Stat card */
.stat-card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-lg);
  padding: var(--space-md);
}

.stat-card .stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--outline);
  margin-bottom: var(--space-xs);
}

.stat-card .stat-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--on-surface);
}

.stat-card .stat-change {
  font-size: 13px;
  margin-top: var(--space-xs);
  color: var(--outline);
}

/* Utility classes */
.text-muted { color: var(--outline); }
.text-primary { color: var(--primary); }
.text-error { color: var(--error); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }

/* Marketing "was" price — decorative strikethrough shown next to the real price */
.price-original {
  text-decoration: line-through;
  color: var(--outline);
  font-weight: 500;
  opacity: 0.85;
  margin-right: 6px;
}
.price-original-lg {
  font-size: 20px;
}

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Image thumbnails */
.thumbnail {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--rounded);
  border: 1px solid var(--border-color);
}

.thumbnail-lg {
  width: 80px;
  height: 80px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  color: var(--outline);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: var(--space-sm);
  opacity: 0.5;
}

.empty-state .empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: var(--space-xs);
}

.empty-state .empty-text {
  font-size: 14px;
  margin-bottom: var(--space-md);
}

/* Modal — native <dialog> */
.modal {
  width: min(480px, calc(100vw - var(--space-md) * 2));
  padding: 0;
  color: var(--on-surface);
  background-color: var(--surface-container-low);
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.modal::backdrop {
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-header {
  padding: var(--space-md) var(--space-md) 0;
}

.modal-body {
  padding: var(--space-sm) var(--space-md);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md) var(--space-md);
  border-top: 1px solid var(--border-color);
}

/* A disabled input here is a read-only echo of the recipient, not a broken field */
.modal .form-input:disabled {
  color: var(--on-surface-variant);
  background-color: var(--surface-container);
  cursor: default;
}
/* Public / Customer-Facing Styles */

/* Auth Pages */
.auth-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px - 120px);
  padding: var(--space-xl) var(--margin);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-lg);
  padding: var(--space-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-md);
}

.auth-header .headline-md {
  margin-bottom: var(--space-xs);
}

.auth-actions {
  margin-top: var(--space-md);
}

.auth-links {
  text-align: center;
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-color);
  font-size: 14px;
}

.auth-links a {
  color: var(--on-surface-variant);
}

.auth-links a:hover {
  color: var(--primary);
}

.auth-links-divider {
  color: var(--outline);
  margin: 0 var(--space-xs);
}

/* Container */
.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--margin);
}

/* Navbar */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-link {
  text-decoration: none;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--on-surface);
}

.brand-link:hover .brand-name {
  color: var(--primary);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.navbar-nav .nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-variant);
  text-decoration: none;
  transition: color 0.15s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--on-surface);
}

/* Hero */
.hero {
  position: relative;
  padding: var(--space-xl) 0;
  padding-top: 200px;
  padding-bottom: 200px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/hero.png") center / cover no-repeat;
  opacity: 0.18;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
}

.hero .headline-xl {
  margin-bottom: var(--space-md);
}

.hero .body-lg {
  margin-bottom: var(--space-lg);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

.section-header {
  margin-bottom: var(--space-lg);
}

.section-header .headline-lg {
  margin-bottom: var(--space-xs);
}

.mt-xl {
  margin-top: var(--space-xl);
}

/* Category Filter Bar */
.category-bar {
  position: sticky;
  top: 64px;
  z-index: 90;
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-sm) 0;
}

.category-bar-scroll {
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.category-bar-scroll::-webkit-scrollbar {
  display: none;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--on-surface-variant);
  background-color: var(--surface-container);
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-full);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.category-chip:hover {
  border-color: var(--outline-variant);
  color: var(--on-surface);
}

.category-chip.active {
  background-color: var(--primary-brand);
  border-color: var(--primary-brand);
  color: #fff;
}

/* Catalog Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.catalog-grid-sm {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalog-grid-sm {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .catalog-grid,
  .catalog-grid-sm {
    grid-template-columns: 1fr;
  }
}

/* Catalog Card */
.catalog-card {
  display: block;
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.catalog-card:hover {
  border-color: var(--outline-variant);
  transform: translateY(-2px);
}

.catalog-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.catalog-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-container);
  color: var(--outline);
  font-size: 40px;
  opacity: 0.4;
}

.catalog-card-body {
  padding: var(--space-sm);
}

.catalog-card-meta-top {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.catalog-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.catalog-card-desc {
  font-size: 13px;
  color: var(--outline);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-xs);
}

.catalog-card-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: var(--space-xs);
}

.catalog-card-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.catalog-card-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--outline);
}

.catalog-card-price-alt {
  font-size: 13px;
  color: var(--outline);
}

.catalog-card-meta {
  font-size: 12px;
  color: var(--outline);
}

/* Detail Page */
.detail-page {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-lg);
  align-items: start;
}

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

.detail-main {
  min-width: 0;
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.detail-gallery-image {
  width: 100%;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--border-color);
}

.detail-gallery-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-container);
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-lg);
  font-size: 64px;
  color: var(--outline);
  opacity: 0.3;
  margin-bottom: var(--space-md);
}

/* Pricing block */
.pricing-block {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.pricing-rate {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.pricing-unit {
  font-size: 16px;
  font-weight: 500;
  color: var(--outline);
}

.pricing-note {
  font-size: 13px;
  color: var(--outline);
  padding: 6px 12px;
  background-color: var(--surface-container);
  border-radius: var(--rounded);
}

/* Discount tags */
.discounts-block {
  padding: var(--space-sm);
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-lg);
}

.discount-tags {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.discount-tag {
  padding: 6px 12px;
  font-size: 13px;
  color: var(--on-surface-variant);
  background-color: var(--surface-container);
  border-radius: var(--rounded);
}

.discount-tag strong {
  color: var(--success);
}

/* Included items (package) */
.items-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background-color: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-lg);
  overflow: hidden;
}

.included-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--space-sm);
  background-color: var(--surface);
}

.included-item-info {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.included-item-name {
  font-weight: 500;
  color: var(--on-surface);
}

.included-item-name:hover {
  color: var(--primary);
}

.included-item-qty {
  font-size: 14px;
  font-weight: 600;
  color: var(--outline);
}

/* Booking card (sidebar) */
.detail-sidebar {
  position: sticky;
  top: 88px;
}

.booking-card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-lg);
  padding: var(--space-md);
}

.booking-form .form-actions {
  border-top: none;
  padding-top: var(--space-xs);
  margin-top: var(--space-xs);
}

/* Datetime picker */
.datetime-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs);
}

.datetime-picker input[type="date"],
.datetime-picker input[type="time"] {
  color-scheme: dark;
}

.booking-note {
  font-size: 13px;
  text-align: center;
}

/* Confirmation */
.confirmation-card {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.confirmation-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--rounded-full);
  background-color: rgba(74, 222, 128, 0.15);
  color: var(--success);
  font-size: 28px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.confirmation-card .detail-list {
  text-align: left;
  margin-top: var(--space-md);
}

/* Booking Terms */
.booking-terms {
  margin-top: var(--space-md);
}

.terms-box {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-md);
  padding: var(--space-sm);
  font-size: 12px;
  line-height: 1.5;
  color: var(--on-surface-variant);
  background: var(--surface-container-low);
}

.terms-box p {
  margin-bottom: 0.5em;
}

/* My Bookings */
.bookings-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.my-booking-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-lg);
}

.my-booking-details {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
  font-size: 13px;
}

.my-booking-price .pricing-amount {
  font-size: 22px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: var(--space-lg) 0;
  margin-top: var(--space-xl);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand .brand-name {
  font-size: 16px;
}

.footer-brand p {
  font-size: 13px;
  margin-top: 4px;
}

.footer-copy p {
  font-size: 13px;
}

/* Mobile navbar */
@media (max-width: 768px) {
  .navbar-nav {
    gap: var(--space-sm);
  }

  .hero {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero .headline-xl {
    font-size: 32px;
  }

  .pricing-amount {
    font-size: 22px;
  }

  .my-booking-card {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .my-booking-details {
    flex-direction: column;
    gap: 4px;
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}
/* Admin Layout */

.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: var(--sidebar-width);
  background-color: var(--surface);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-brand {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

.sidebar-brand h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--on-surface);
}

.sidebar-brand span {
  font-size: 12px;
  font-weight: 500;
  color: var(--outline);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-sm) var(--space-xs);
}

.sidebar-nav .nav-section {
  margin-bottom: var(--space-md);
}

.sidebar-nav .nav-section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--outline);
  padding: 0 12px;
  margin-bottom: var(--space-xs);
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-variant);
  text-decoration: none;
  border-radius: var(--rounded);
  transition: all 0.15s ease;
  margin-bottom: 2px;
}

.sidebar-nav .nav-link:hover {
  background-color: var(--surface-container);
  color: var(--on-surface);
}

.sidebar-nav .nav-link.active {
  background-color: rgba(139, 92, 246, 0.12);
  color: var(--primary);
}

.sidebar-nav .nav-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0.7;
}

.sidebar-footer {
  padding: var(--space-sm);
  border-top: 1px solid var(--border-color);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--on-surface-variant);
}

.sidebar-user .user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--rounded-full);
  background-color: var(--primary-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

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

.sidebar-user .user-name {
  font-weight: 600;
  color: var(--on-surface);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user .user-role {
  font-size: 12px;
  color: var(--outline);
}

/* Main content */
.admin-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--margin);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--background);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-header .page-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.admin-header .header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.admin-content {
  padding: var(--space-md) var(--margin);
}

/* Dashboard */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-sm);
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Page header with breadcrumbs */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.page-header .page-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Asset index */
.asset-table .asset-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asset-table .asset-name {
  font-weight: 600;
  color: var(--on-surface);
}

.asset-table .asset-desc {
  font-size: 13px;
  color: var(--outline);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Form layout */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.form-grid .form-group.full-width {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
}

/* Nested form (discounts, package items) */
.nested-fields {
  background-color: var(--surface-container-low);
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-lg);
  padding: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.nested-fields .nested-row {
  display: flex;
  align-items: end;
  gap: var(--space-sm);
}

.nested-fields .nested-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.nested-fields .btn-remove {
  padding: 10px;
  color: var(--error);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--rounded);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.nested-fields .btn-remove:hover {
  background-color: rgba(255, 180, 171, 0.1);
  border-color: rgba(255, 180, 171, 0.3);
}

.btn-remove-attachment {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.btn-remove-attachment:hover {
  background: var(--error);
}

.add-nested {
  margin-top: var(--space-xs);
}

/* Image upload */
.image-upload-area {
  display: block;
  border: 2px dashed var(--border-color);
  border-radius: var(--rounded-lg);
  padding: var(--space-md);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.image-upload-area:hover {
  border-color: var(--primary-brand);
}

.image-upload-area .upload-icon {
  font-size: 32px;
  opacity: 0.5;
  margin-bottom: var(--space-xs);
}

.image-upload-area .upload-text {
  font-size: 14px;
  color: var(--outline);
}

.image-previews {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.image-previews .preview-item {
  position: relative;
  width: 100px;
  height: 100px;
}

.image-previews .preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--rounded);
  border: 1px solid var(--border-color);
}

.image-previews .preview-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: var(--rounded-full);
  background-color: var(--error-container);
  color: var(--on-error-container);
  border: none;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Package card grid */
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

@media (max-width: 1024px) {
  .package-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.package-card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.package-card:hover {
  border-color: var(--outline-variant);
}

.package-card .package-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: var(--surface-container);
}

.package-card .package-body {
  padding: var(--space-sm);
}

.package-card .package-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.package-card .package-desc {
  font-size: 13px;
  color: var(--outline);
  margin-bottom: var(--space-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.package-card .package-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.package-card .package-items-count {
  font-size: 12px;
  color: var(--outline);
}

.package-card .package-actions {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm) var(--space-sm);
}

/* Calendar */
.calendar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.calendar-nav .btn {
  padding: 8px 12px;
}

.calendar-date {
  font-size: 18px;
  font-weight: 600;
  min-width: 200px;
  text-align: center;
}

.calendar-view-toggle {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: var(--rounded);
  overflow: hidden;
}

.calendar-view-toggle .view-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--outline);
  background: none;
  border: none;
  cursor: pointer;
  border-right: 1px solid var(--border-color);
  text-decoration: none;
}

.calendar-view-toggle .view-btn:last-child {
  border-right: none;
}

.calendar-view-toggle .view-btn.active {
  background-color: var(--primary-brand);
  color: #fff;
}

.calendar-grid {
  display: grid;
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-lg);
  overflow: hidden;
}

.calendar-grid.weekly {
  grid-template-columns: 120px repeat(7, 1fr);
}

.calendar-grid.daily {
  grid-template-columns: 120px 1fr;
}

.calendar-header-cell {
  padding: 12px 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  background-color: var(--surface-container-low);
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  color: var(--outline);
}

.calendar-header-cell:last-child {
  border-right: none;
}

.calendar-asset-label {
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 600;
  background-color: var(--surface-container-low);
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  min-height: 60px;
}

.calendar-cell {
  padding: 4px;
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  min-height: 60px;
  position: relative;
}

.calendar-cell:last-child {
  border-right: none;
}

.calendar-booking {
  display: block;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--rounded-sm);
  margin-bottom: 2px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.calendar-booking.status-confirmed {
  background-color: rgba(139, 92, 246, 0.2);
  color: var(--primary);
  border-left: 3px solid var(--primary-brand);
}

.calendar-booking.status-pending {
  background-color: rgba(251, 191, 36, 0.2);
  color: var(--warning);
  border-left: 3px solid var(--warning);
}

.calendar-booking.status-cancelled {
  background-color: rgba(255, 180, 171, 0.1);
  color: var(--outline);
  border-left: 3px solid var(--outline);
  text-decoration: line-through;
}

.calendar-booking.status-completed {
  background-color: rgba(74, 222, 128, 0.15);
  color: var(--success);
  border-left: 3px solid var(--success);
}

/* Booking tooltip */
.booking-tooltip {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 200;
  background-color: var(--surface-container-high);
  border: 1px solid var(--border-color);
  border-radius: var(--rounded);
  padding: 12px;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.calendar-booking:hover .booking-tooltip {
  display: block;
}

.booking-tooltip .tooltip-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.booking-tooltip .tooltip-detail {
  font-size: 12px;
  color: var(--outline);
  margin-bottom: 3px;
}

/* Booking list */
.booking-status-filter {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

/* Show page detail list */
.detail-list {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1px;
  background-color: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-lg);
  overflow: hidden;
}

.detail-list dt {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--outline);
  background-color: var(--surface-container-low);
}

.detail-list dd {
  padding: 12px 16px;
  font-size: 14px;
  background-color: var(--surface);
}

/* Responsive */
@media (max-width: 768px) {
  .admin-sidebar {
    display: none;
  }

  .admin-main {
    margin-left: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .package-grid {
    grid-template-columns: 1fr;
  }
}
