:root {
  color-scheme: light;
  --ink: #10231b;
  --muted: #58685f;
  --panel: rgba(255, 252, 242, 0.74);
  --panel-strong: rgba(255, 252, 242, 0.9);
  --line: rgba(23, 48, 35, 0.16);
  --accent: #b88a3d;
  --accent-2: #183d2c;
  --button-ink: #fff9ea;
  --shadow: 0 28px 70px rgba(34, 26, 12, 0.28);
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
}

body.site {
  background: #111;
  overflow-x: hidden;
}

body.site::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background: url("/assets/luxedeals-concierge-bg.png") center / cover no-repeat;
  transform: scale(1.02);
}

body.site::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(255, 250, 233, 0.72), rgba(255, 255, 255, 0.1) 42%, rgba(14, 20, 16, 0.14));
  pointer-events: none;
}

a {
  color: inherit;
}

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

.page-shell {
  width: min(1120px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 42px 0 46px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.34));
  color: var(--accent-2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-text strong {
  font-size: 18px;
  line-height: 1;
}

.brand-text span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.top-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  max-width: 100%;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  padding: 0 17px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px);
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.share {
  border-color: color-mix(in srgb, var(--accent) 55%, rgba(255, 255, 255, 0.72));
  background: color-mix(in srgb, var(--accent) 16%, rgba(255, 255, 255, 0.7));
  cursor: pointer;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 322px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.hero-panel,
.status-panel,
.section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  backdrop-filter: blur(24px) saturate(128%);
  box-shadow: var(--shadow);
}

.hero-panel {
  min-height: 286px;
  padding: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 82px);
  line-height: 0.94;
  overflow-wrap: break-word;
}

.subtitle {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.52;
  font-weight: 620;
}

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(620px, 100%);
  margin-top: 26px;
  padding: 10px 10px 10px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 999px;
  background: var(--panel-strong);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
  font-weight: 650;
}

.search button,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  color: var(--button-ink);
  background: var(--accent-2);
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.status-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 286px;
  padding: 24px;
  background: var(--panel-strong);
}

.status-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.02;
}

.status-grid {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.status-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 720;
}

.status-item span:last-child {
  color: var(--accent-2);
}

.sections {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.section {
  overflow: hidden;
  min-height: 322px;
}

.section header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.section h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.link-list {
  display: grid;
  padding: 4px 24px 18px;
}

.item {
  display: grid;
  grid-template-columns: minmax(88px, 0.38fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.item:last-child {
  border-bottom: 0;
}

.item b {
  font-size: 14px;
  line-height: 1.15;
}

.item span {
  min-width: 0;
  overflow: hidden;
  color: color-mix(in srgb, var(--ink) 72%, var(--accent-2));
  font-size: 15px;
  font-weight: 760;
  line-height: 1.24;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--line));
  border-radius: 999px;
  padding: 0 11px;
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-size: 12px;
  font-weight: 820;
}

.empty {
  color: var(--muted);
  font-weight: 650;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  color: color-mix(in srgb, var(--ink) 74%, white);
  font-size: 12px;
  font-weight: 650;
}

body.admin {
  color: #18231f;
  background: #f7f4ec;
}

.admin h1 {
  max-width: none;
  font-family: var(--font-body);
  font-size: 34px;
  line-height: 1.1;
}

.auth-card h1 {
  font-size: 32px;
}

.admin-panel h2 {
  font-size: 22px;
  line-height: 1.2;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-card,
.admin-panel,
.admin-topbar {
  border: 1px solid rgba(31, 44, 38, 0.12);
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: 0 16px 42px rgba(31, 28, 20, 0.08);
}

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

.auth-card h1,
.admin-topbar h1,
.admin-panel h2 {
  margin: 0;
}

.muted,
.admin-panel header p {
  color: #6f766f;
}

.alert,
.notice {
  border: 1px solid rgba(184, 138, 61, 0.26);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(184, 138, 61, 0.1);
  color: #533b12;
  font-weight: 700;
}

.auth-form,
.settings-grid,
.admin-list {
  display: grid;
  gap: 14px;
}

.auth-form label,
.field,
.admin-row label {
  display: grid;
  gap: 7px;
  color: #4e574f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.auth-form input,
.settings-grid input,
.settings-grid textarea,
.admin-row input,
.admin-row select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(31, 44, 38, 0.16);
  border-radius: 8px;
  padding: 9px 10px;
  color: #18231f;
  background: #fff;
}

.auth-form button,
.settings-grid button,
.admin-row button,
.admin-panel.compact button,
.admin-actions button,
.admin-actions a {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  color: #fff9ea;
  background: #183d2c;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.admin-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

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

.admin-kicker {
  margin: 0 0 4px;
  color: #8a6b31;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-actions form {
  margin: 0;
}

.admin-panel {
  margin-top: 18px;
  padding: 22px;
}

.admin-panel header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

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

.field.wide,
.link-row .wide {
  grid-column: 1 / -1;
}

.settings-grid button {
  width: fit-content;
}

.admin-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr 86px 90px auto auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(31, 44, 38, 0.1);
  border-radius: 8px;
  background: #fbfaf5;
}

.row-main {
  display: contents;
}

.link-row {
  grid-template-columns: 140px 1fr 1.2fr 90px 86px 92px auto auto;
}

.delete-form {
  margin: 0;
}

.delete-form .danger {
  color: #fff;
  background: #8a2e2a;
}

code {
  border-radius: 6px;
  padding: 2px 5px;
  background: rgba(24, 61, 44, 0.08);
}

@media (max-width: 980px) {
  .page-shell {
    width: min(calc(100% - 28px), 680px);
    padding-top: 24px;
  }

  .topbar,
  .footer,
  .admin-topbar,
  .admin-panel header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .hero-grid,
  .sections,
  .settings-grid,
  .admin-row,
  .link-row {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .status-panel {
    min-height: auto;
  }

  .hero-panel {
    padding: 26px;
  }

  h1 {
    font-size: 48px;
  }

  .search {
    border-radius: 18px;
  }

  .nav-pill,
  .share {
    padding: 0 14px;
  }
}
