:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-soft: #0f0f0f;
  --panel: rgba(24, 24, 24, 0.86);
  --panel-strong: #191817;
  --line: rgba(255, 255, 255, 0.11);
  --text: #f5f0e8;
  --muted: #aaa39a;
  --soft: #d8d0c5;
  --gold: #d6b46d;
  --gold-dark: #6f5425;
  --red: #7c2c2e;
  --green: #8ea96e;
  --star: #ffae35;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(120deg, rgba(124, 44, 46, 0.1), transparent 32%),
    radial-gradient(circle at top right, rgba(214, 180, 109, 0.1), transparent 34%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: 100vh;
}

.app-shell[hidden] {
  display: none !important;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  border-right: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.78);
  backdrop-filter: blur(22px);
  z-index: 5;
}

.brand-mark {
  width: 54px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rail-btn {
  width: 46px;
  height: 46px;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  display: grid;
  place-items: center;
  transition: 180ms ease;
}

.rail-btn:hover,
.rail-btn.active {
  color: var(--text);
  border-color: rgba(200, 169, 106, 0.38);
  background: rgba(255, 255, 255, 0.06);
}

.mode-toggle {
  margin-top: auto;
}

.icon {
  line-height: 1;
  font-size: 20px;
}

.main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 28px clamp(18px, 3vw, 46px) 44px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}

.eyebrow,
.small-label {
  margin: 0 0 8px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 54px);
}

h2 {
  font-size: clamp(30px, 5vw, 66px);
  line-height: 0.98;
  margin-bottom: 18px;
}

h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.top-actions,
.row-actions,
.segmented {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.member-chip {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(214, 180, 109, 0.34);
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.primary-btn,
.ghost-btn,
.text-btn,
.row-actions button,
.segmented button {
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 0 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.primary-btn {
  border-color: rgba(200, 169, 106, 0.6);
  background: linear-gradient(135deg, #c8a96a, #765d2c);
  color: #16120a;
  font-weight: 800;
}

.ghost-btn {
  color: var(--soft);
}

.compact {
  min-height: 36px;
}

.text-btn {
  padding-inline: 0;
  border: 0;
  color: var(--gold);
  background: transparent;
}

.full {
  width: 100%;
}

.section {
  display: none;
  animation: rise 240ms ease both;
}

.section.active {
  display: block;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.vip-hero {
  min-height: 520px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #14110f;
  box-shadow: var(--shadow);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.16) 100%),
    url("https://levistattoo.com/wp-content/uploads/2023/12/Levis-tattoo-farg-9-819x1024.webp");
  background-size: cover;
  background-position: center 35%;
  filter: saturate(0.72) contrast(1.08);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 720px;
  padding: clamp(24px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-content h2 {
  max-width: 620px;
}

.stars {
  color: var(--star);
  font-size: 20px;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}

.hero-checks {
  display: grid;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  color: var(--text);
}

.hero-checks li {
  position: relative;
  padding-left: 30px;
  line-height: 1.45;
}

.hero-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 2px solid var(--text);
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
}

.hero-metrics div,
.status-panel,
.info-card,
.level-board,
.reward-card,
.guide-panel,
.booking-form,
.calendar-panel,
.table-panel,
.admin-side,
.admin-summary article {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
}

.hero-metrics div {
  padding: 16px;
}

.hero-metrics strong {
  display: block;
  font-size: clamp(21px, 3vw, 32px);
}

.hero-metrics span,
.admin-summary span,
.request-row span,
.reward-cost {
  color: var(--muted);
  font-size: 13px;
}

.status-panel,
.calendar-panel,
.admin-side {
  padding: 22px;
}

.panel-head,
.card-top,
.gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  color: var(--soft);
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.status-pill.gold {
  color: #16120a;
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 800;
}

.status-pill.confirmed {
  color: #101509;
  background: var(--green);
  border-color: var(--green);
  font-weight: 800;
}

.large-date {
  color: var(--text);
  font-family: Georgia, serif;
  font-size: 56px;
  line-height: 1;
  margin: 34px 0 8px;
}

.rule {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}

.content-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.content-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.content-grid.rewards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.reward-card,
.guide-panel {
  padding: 22px;
}

.card-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200, 169, 106, 0.3);
  color: var(--gold);
}

.split-layout,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.booking-form {
  padding: clamp(22px, 4vw, 44px);
}

.form-head {
  max-width: 680px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--soft);
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 46px;
  padding: 12px 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: 0;
}

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

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.upload-box {
  min-height: 130px;
  place-items: center;
  border: 1px dashed rgba(200, 169, 106, 0.42);
  background: rgba(200, 169, 106, 0.06);
  text-align: center;
}

.upload-box input {
  display: none;
}

.slot-list {
  display: grid;
  gap: 10px;
}

.slot {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.slot.selected,
.slot:hover {
  border-color: var(--gold);
}

.slot.vip-only {
  background: rgba(200, 169, 106, 0.12);
}

.level-board {
  padding: clamp(24px, 4vw, 42px);
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.progress-track {
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.level-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.reward-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.reward-card.featured {
  border-color: rgba(200, 169, 106, 0.58);
  background: linear-gradient(150deg, rgba(200, 169, 106, 0.18), rgba(24, 24, 24, 0.9));
}

.reward-card.locked {
  opacity: 0.62;
}

.gallery-head {
  margin-bottom: 18px;
}

.segmented {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
}

.segmented button {
  min-height: 34px;
  border: 0;
}

.segmented button.active {
  background: var(--gold);
  color: #151009;
  font-weight: 800;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  min-height: 470px;
  position: relative;
  overflow: hidden;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.78));
}

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

.gallery-card h3 {
  font-family: Georgia, serif;
  font-size: 26px;
}

.image-one {
  background-image: url("https://images.unsplash.com/photo-1611501275019-9b5cda994e8d?auto=format&fit=crop&w=700&q=85");
}

.image-two {
  background-image: url("https://images.unsplash.com/photo-1542727365-19732a80dcfd?auto=format&fit=crop&w=700&q=85");
}

.image-three {
  background-image: url("https://images.unsplash.com/photo-1562962230-16e4623d36e6?auto=format&fit=crop&w=700&q=85");
}

.image-four {
  background-image: url("https://images.unsplash.com/photo-1597852074816-d933c7d2b988?auto=format&fit=crop&w=700&q=85");
}

.clean-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.admin-main {
  display: grid;
  gap: 18px;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.admin-summary article {
  padding: 20px;
}

.admin-summary strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 44px;
  font-weight: 500;
}

.table-panel {
  padding: 22px;
}

.request-row {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.request-row:first-of-type {
  margin-top: 12px;
}

.request-row strong,
.request-row span {
  display: block;
}

.request-row small {
  display: block;
  max-width: 720px;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.row-actions button {
  min-height: 34px;
  padding-inline: 10px;
}

.row-actions .accept {
  border-color: var(--green);
  color: #101509;
  background: var(--green);
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  min-width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid rgba(200, 169, 106, 0.42);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(16, 16, 16, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
  z-index: 20;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  z-index: 30;
}

.auth-modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid rgba(214, 180, 109, 0.35);
  border-radius: var(--radius);
  background: #10100f;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 34px);
}

.auth-modal h2 {
  font-size: clamp(30px, 5vw, 46px);
  margin-bottom: 0;
}

.auth-form {
  margin-top: 20px;
}

.auth-divider {
  position: relative;
  display: grid;
  place-items: center;
  margin: 22px 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.auth-divider span {
  position: relative;
  padding: 0 12px;
  background: #10100f;
}

.auth-socials {
  display: grid;
  gap: 10px;
}

.auth-note {
  margin: 18px 0 0;
  font-size: 13px;
}

.login-mode {
  min-height: 100vh;
  background: #050505;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, 0.75fr);
}

.login-visual {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 5vw, 64px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.35)),
    url("https://levistattoo.com/wp-content/uploads/2023/12/Levis-tattoo-farg-9-819x1024.webp");
  background-size: cover;
  background-position: center;
}

.login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.74));
}

.login-logo,
.login-copy {
  position: relative;
  z-index: 1;
}

.login-logo {
  width: 118px;
  height: 128px;
  object-fit: contain;
}

.login-copy {
  max-width: 760px;
}

.login-copy h1 {
  max-width: 720px;
  margin-bottom: 18px;
}

.login-copy p {
  max-width: 560px;
  color: var(--text);
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 5vw, 54px);
  border-left: 1px solid var(--line);
  background: #0d0d0d;
}

.panel-logo {
  width: 92px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 24px;
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 130px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.ledger {
  margin-top: 18px;
}

.transaction-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.transaction-list li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 110px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.transaction-list strong {
  color: var(--gold);
}

.transaction-list span,
.transaction-list small {
  color: var(--muted);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

@media (max-width: 1040px) {
  .hero-grid,
  .split-layout,
  .admin-layout,
  .level-board,
  .admin-form-row,
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 62vh;
  }

  .login-panel {
    min-height: 38vh;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .content-grid.three,
  .content-grid.rewards,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding-bottom: 76px;
  }

  .rail {
    position: fixed;
    top: auto;
    bottom: 0;
    width: 100%;
    height: 76px;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 12px;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .brand-mark {
    display: none;
  }

  .rail-nav {
    flex: 1;
    flex-direction: row;
    justify-content: space-around;
    gap: 4px;
  }

  .mode-toggle {
    margin-top: 0;
  }

  .main {
    padding: 20px 14px 28px;
  }

  .topbar,
  .gallery-head,
  .request-row {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions,
  .row-actions {
    width: 100%;
  }

  .top-actions > *,
  .row-actions > * {
    flex: 1;
  }

  .vip-hero {
    min-height: 560px;
  }

  .hero-content {
    padding: 24px;
  }

  .hero-metrics,
  .content-grid.three,
  .content-grid.two,
  .content-grid.rewards,
  .gallery-grid,
  .field-row,
  .admin-summary,
  .transaction-list li {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    min-height: 390px;
  }

  .level-labels {
    gap: 8px;
    flex-wrap: wrap;
  }
}
