:root {
  --bg: #000000;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.14);
  --text: #f4dc8d;
  --muted: rgba(244, 220, 141, 0.8);
  --soft: rgba(212, 169, 74, 0.62);
  --gold: #d4a94a;
  --gold-soft: #f4dc8d;
  --gold-deep: #9d6f18;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  --glow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 24px 80px rgba(255, 255, 255, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #000000;
  color: var(--text);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background: none;
}

body::after {
  background: none;
}

img {
  display: block;
  width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.2;
  z-index: 0;
}

.ambient-one {
  top: 10rem;
  left: -7rem;
  background: transparent;
}

.ambient-two {
  right: -8rem;
  top: 32rem;
  background: transparent;
}

.water-wave {
  position: fixed;
  left: -10%;
  width: 120%;
  height: 280px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  filter: blur(10px);
}

.water-wave::before,
.water-wave::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.water-wave::after {
  inset: 24px 6% auto;
  height: 70%;
  opacity: 0.45;
}

.water-wave-one {
  top: 11%;
  background: transparent;
  transform: rotate(-3deg);
}

.water-wave-two {
  top: 58%;
  background: transparent;
  transform: rotate(2deg);
}

.shell {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.glass-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 18px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.brand h1,
.hero h2,
.section-head h2,
.modal-head h2,
.hero-spotlight h3 {
  font-family: "Playfair Display", serif;
  letter-spacing: -0.03em;
}

.brand h1 {
  margin: 0;
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold), #f8e7a6, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 18px rgba(212, 169, 74, 0.14));
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(212, 169, 74, 0.62);
}

.header-actions,
.hero-actions,
.hero-metrics,
.filters,
.calendar-grid,
.quote-line,
.drawer-head,
.drawer-foot,
.total-line,
.auth-tabs,
.section-head,
.stats-grid {
  display: flex;
}

.header-actions {
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn,
.tab-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.tab-btn {
  min-height: 48px;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
}

.primary-btn {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold), #e8c25c);
  color: #000;
  border-color: transparent;
  box-shadow: 0 14px 38px rgba(212, 169, 74, 0.24);
}

.secondary-btn:hover,
.ghost-btn:hover,
.icon-btn:hover,
.tab-btn:hover,
.primary-btn:hover {
  transform: translateY(-2px);
}

.ghost-btn:hover,
.secondary-btn:hover,
.icon-btn:hover,
.tab-btn.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.4rem;
}

.pill-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 0.4rem;
  margin-left: 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--gold-soft);
  font-size: 0.8rem;
}

.hero,
.dashboards {
  display: grid;
  gap: 1.5rem;
}

.hero {
  grid-template-columns: 1fr;
  align-items: stretch;
  padding-top: 0.75rem;
}

.hero-copy,
.hero-spotlight,
.dashboard-card,
.filters,
.empty-state,
.modal-card,
.drawer,
.product-card {
  border-radius: var(--radius-xl);
}

.hero-copy,
.dashboard-card {
  padding: 2rem;
}

.hero-copy {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h2 {
  margin: 0;
  max-width: none;
  font-size: clamp(3rem, 5.2vw, 5.6rem);
  line-height: 0.98;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold), #ffe89a, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 26px rgba(212, 169, 74, 0.08);
}

.hero-tagline {
  margin: 0.85rem 0 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.35rem, 2.1vw, 2.2rem);
  line-height: 1.08;
  color: var(--gold-soft);
}

.hero-text,
.muted,
.spotlight-copy p,
.product-copy p,
.availability-panel,
td,
th {
  color: var(--muted);
}

.hero-text {
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.65;
  margin: 1.15rem 0 0;
}

.hero-actions {
  gap: 0.85rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.hero-metrics {
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-metrics div {
  min-width: 126px;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-metrics strong,
.stats-card strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.product-image img,
.rental-preview img {
  height: 100%;
  object-fit: cover;
}

.spotlight-copy {
  padding-top: 1.2rem;
}

.spotlight-copy h3 {
  margin: 0;
  font-size: 1.8rem;
}

.section {
  padding: 2rem 0 0;
}

.section-head {
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-head.compact {
  align-items: center;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.filters {
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1 1 180px;
}

.field span {
  color: var(--soft);
  font-size: 0.88rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: rgba(0, 0, 0, 0.48);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.field textarea {
  resize: vertical;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.35rem;
}

.product-card {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.5);
}

.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.82;
}

.product-image img {
  transition: transform 280ms ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.card-chip-row,
.product-actions,
.product-meta,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.card-chip-row,
.badge-row {
  position: absolute;
  inset: 1rem auto auto 1rem;
  z-index: 1;
}

.badge {
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  font-size: 0.74rem;
  background: rgba(0, 0, 0, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.product-copy {
  padding: 1.15rem;
}

.product-copy h3,
.empty-state h3,
.admin-panel h3 {
  margin: 0 0 0.45rem;
}

.price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.price {
  font-size: 1.35rem;
  font-weight: 700;
}

.product-actions {
  margin-top: 1rem;
}

.stats-grid,
.admin-layout {
  gap: 1rem;
}

.stats-grid {
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.stats-card {
  flex: 1 1 180px;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.admin-panel {
  min-width: 0;
}

.table-wrap {
  overflow: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

th,
td {
  text-align: left;
  padding: 0.9rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(212, 169, 74, 0.72);
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mini-btn {
  min-height: 36px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.drawer {
  position: fixed;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: min(430px, calc(100vw - 18px));
  padding: 1.2rem;
  background: rgba(8, 8, 8, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 100px rgba(0, 0, 0, 0.52);
  z-index: 30;
  display: flex;
  flex-direction: column;
}

.drawer-head,
.drawer-foot,
.quote-line,
.total-line {
  align-items: center;
  justify-content: space-between;
}

.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 1rem 0;
}

.cart-item {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item + .cart-item {
  margin-top: 0.9rem;
}

.cart-item h3,
.cart-item p {
  margin: 0;
}

.full-width {
  width: 100%;
}

.modal {
  position: fixed;
  inset: 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  z-index: 40;
}

.modal-card {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.6rem;
}

.auth-card {
  width: min(540px, 100%);
}

.upload-card,
.rental-card {
  width: min(900px, 100%);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.modal-head {
  margin-bottom: 1.2rem;
}

.auth-note {
  margin-top: 0.75rem;
  max-width: 34rem;
}

.modal-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.auth-tabs {
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wide {
  grid-column: 1 / -1;
}

.rental-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
}

.rental-preview {
  display: grid;
  gap: 1rem;
}

.rental-preview img {
  border-radius: var(--radius-lg);
  aspect-ratio: 0.85;
  object-fit: cover;
}

.availability-panel,
.quote-panel,
.empty-state {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-panel {
  display: grid;
  gap: 0.75rem;
}

.quote-line.total {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status.pending,
.status.locked {
  background: rgba(255, 205, 117, 0.12);
}

.status.active,
.status.approved,
.status.paid,
.status.completed {
  background: rgba(127, 255, 181, 0.12);
}

.status.rejected,
.status.damaged,
.status.cancelled,
.status.disabled {
  background: rgba(255, 120, 120, 0.12);
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 0.7rem;
  z-index: 60;
}

.toast {
  min-width: 260px;
  max-width: 360px;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .hero,
  .dashboards,
  .admin-layout,
  .rental-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header,
  .section-head,
  .header-actions {
    align-items: flex-start;
  }

  .site-header,
  .section-head {
    flex-direction: column;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .drawer {
    top: auto;
    left: 12px;
    right: 12px;
    width: auto;
    bottom: 12px;
  }
}
