:root {
  --bg: #120A0F;
  --bg-elevated: #1C1018;
  --bg-soft: rgba(28, 16, 24, 0.82);
  --text: #F6E7EA;
  --text-soft: #BFAFB5;
  --accent: #E7C6C2;
  --accent-bright: #F8E7E1;
  --accent-dim: #D89AA6;
  --smoke: #8C5666;
  --line: rgba(231, 198, 194, 0.16);
  --line-strong: rgba(248, 231, 225, 0.24);
  --glow: rgba(231, 198, 194, 0.22);
  --glow-soft: rgba(216, 154, 166, 0.14);
  --danger: #f0a8af;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(140, 86, 102, 0.16), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(231, 198, 194, 0.08), transparent 20%),
    linear-gradient(180deg, #160c12 0%, #120A0F 48%, #0f080d 100%);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent-bright); text-decoration: none; }
a:hover { color: var(--accent); }

.page-glow {
  position: fixed;
  inset: auto;
  width: 38rem;
  height: 38rem;
  border-radius: 999px;
  filter: blur(48px);
  pointer-events: none;
  opacity: .45;
  z-index: 0;
}
.page-glow-a { top: -8rem; left: -10rem; background: radial-gradient(circle, rgba(216, 154, 166, 0.22) 0%, transparent 60%); }
.page-glow-b { right: -8rem; top: 20rem; background: radial-gradient(circle, rgba(231, 198, 194, 0.18) 0%, transparent 60%); }

.container {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.narrow { max-width: 760px; }
.portal-shell { display: grid; gap: 24px; }
.portal-shell-public { padding-top: 56px; }
.admin-page { max-width: 1320px; }
.grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.card {
  background: linear-gradient(180deg, rgba(34, 19, 28, 0.88) 0%, rgba(26, 15, 23, 0.86) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.cinematic-panel {
  position: relative;
  overflow: hidden;
}
.cinematic-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(248, 231, 225, 0.05), transparent 28%, transparent 72%, rgba(216, 154, 166, 0.05));
  pointer-events: none;
}
.compact-card { padding: 24px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.display-title,
h1, h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Baskerville, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.02em;
}
.display-title { font-size: clamp(3.2rem, 8vw, 5.4rem); line-height: .95; margin-top: 12px; }
.display-title-admin { font-size: clamp(2.8rem, 5vw, 4.4rem); }
.display-title-auth { font-size: clamp(2.6rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.02; margin-top: 10px; }
.lead {
  margin: 16px 0 0;
  font-size: 1.08rem;
  color: var(--text-soft);
  max-width: 64ch;
}
.lead strong { color: var(--accent-bright); font-weight: 600; }
.lead-wide { max-width: 60ch; }
.lead-admin { max-width: 52ch; }
.lead-note { margin-top: 8px; }
.muted { color: var(--text-soft); }
.error, .error-banner { color: var(--danger); }
.error-soft { margin-top: 14px; }
.error-banner { background: rgba(109, 36, 47, 0.22); border-color: rgba(240, 168, 175, 0.22); }

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 24px;
  min-height: 420px;
  align-items: center;
}
.hero-copy { position: relative; z-index: 1; }
.hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.meta-tile {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(248, 231, 225, 0.04);
  border: 1px solid rgba(231, 198, 194, 0.12);
}
.meta-tile strong { display: block; margin: 6px 0 4px; font-size: 1.05rem; color: var(--accent-bright); }
.meta-tile p { margin: 0; color: var(--text-soft); font-size: .92rem; }
.meta-kicker { color: var(--accent-dim); font-size: 11px; text-transform: uppercase; letter-spacing: .16em; }

.hero-ornament {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.halo-ring {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(248, 231, 225, 0.22);
  box-shadow: 0 0 40px rgba(231, 198, 194, 0.08), inset 0 0 28px rgba(231, 198, 194, 0.05);
}
.halo-ring-lg { width: 320px; height: 320px; }
.halo-ring-sm { width: 210px; height: 210px; }
.ornament-core {
  width: 132px;
  height: 132px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--accent-bright), var(--accent) 36%, rgba(140, 86, 102, 0.44) 72%, transparent 76%);
  box-shadow: 0 0 52px rgba(231, 198, 194, 0.22);
}
.ornament-axis {
  position: absolute;
  width: 1px;
  height: 82%;
  background: linear-gradient(180deg, transparent, rgba(231, 198, 194, 0.36), transparent);
}

.section-head { position: relative; z-index: 1; margin-bottom: 18px; }
.inline-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.info-strip { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.info-strip p { max-width: 56ch; margin: 0; color: var(--text-soft); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid.single-col { grid-template-columns: 1fr; }
.form-grid .wide { grid-column: 1 / -1; }
.luxe-form { position: relative; z-index: 1; }
label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.field-label { color: var(--accent); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
input, select, textarea, button {
  font: inherit;
  border-radius: 16px;
}
input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  color: var(--text);
  background: rgba(248, 231, 225, 0.03);
  border: 1px solid rgba(231, 198, 194, 0.14);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input::placeholder, textarea::placeholder { color: rgba(191, 175, 181, 0.7); }
input:focus, select:focus, textarea:focus {
  border-color: rgba(248, 231, 225, 0.42);
  box-shadow: 0 0 0 4px rgba(231, 198, 194, 0.08), 0 16px 32px rgba(231, 198, 194, 0.08);
  background: rgba(248, 231, 225, 0.06);
}
button {
  border: 0;
  cursor: pointer;
  padding: 14px 20px;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
button:hover { transform: translateY(-1px); }
.button-primary {
  color: #25161d;
  background: linear-gradient(135deg, #F8E7E1 0%, #E7C6C2 42%, #D89AA6 100%);
  box-shadow: 0 10px 28px rgba(231, 198, 194, 0.22);
}
.button-primary:hover { box-shadow: 0 16px 32px rgba(231, 198, 194, 0.32); }
.button-danger {
  color: #fff4f5;
  background: linear-gradient(135deg, #8f3347 0%, #b44e62 100%);
  box-shadow: 0 10px 28px rgba(180, 78, 98, 0.18);
}
.button-danger:hover { box-shadow: 0 16px 32px rgba(180, 78, 98, 0.26); }
.button-luxe { min-height: 52px; }
.button-wide { min-width: 188px; }
.ghost {
  color: var(--accent-bright);
  background: rgba(248, 231, 225, 0.04);
  border: 1px solid rgba(231, 198, 194, 0.18);
}
.ghost:hover { box-shadow: 0 12px 28px rgba(231, 198, 194, 0.12); }
.ghost-luxe { padding-inline: 20px; }
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  color: #25161d;
  background: linear-gradient(135deg, #F8E7E1 0%, #E7C6C2 42%, #D89AA6 100%);
}

.mode-picker {
  margin: 0;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(248, 231, 225, 0.03), rgba(248, 231, 225, 0.015));
}
.mode-picker legend {
  padding: 0 8px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.mode-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(231, 198, 194, 0.1);
  background: rgba(248, 231, 225, 0.04);
}
.mode-option + .mode-option { margin-top: 12px; }
.mode-option strong { display: block; font-size: 1rem; color: var(--accent-bright); }
.mode-option small { display: block; margin-top: 4px; color: var(--text-soft); line-height: 1.6; }
.mode-option input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: #D89AA6;
}
.mode-option-internal { box-shadow: inset 0 0 0 1px rgba(191, 175, 181, 0.02); }
.mode-option-external { box-shadow: inset 0 0 0 1px rgba(216, 154, 166, 0.04); }

.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.submit-row-links { justify-content: flex-start; }
.hint { margin: 0; color: var(--text-soft); }
.notice-list { margin-top: 18px; display: grid; gap: 12px; }
.notice-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(248, 231, 225, 0.035);
  border: 1px solid rgba(231, 198, 194, 0.12);
  color: var(--text-soft);
}

.topbar { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.topbar-rich { position: relative; z-index: 1; }
.admin-shell { display: grid; gap: 24px; }
.admin-hero { padding-bottom: 24px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stats-grid-luxe { margin-top: 28px; }
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-luxe {
  padding: 22px;
  background: linear-gradient(180deg, rgba(248, 231, 225, 0.05), rgba(248, 231, 225, 0.02));
  border-radius: 22px;
}
.stat span { color: var(--accent); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.stat strong { font-size: 2.4rem; font-family: "Cormorant Garamond", serif; font-weight: 600; }
.stat p { margin: 0; color: var(--text-soft); font-size: .92rem; }

.table-shell {
  overflow: auto;
  border: 1px solid rgba(231, 198, 194, 0.1);
  border-radius: 20px;
  background: rgba(9, 6, 8, 0.18);
}
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(231, 198, 194, 0.08);
  vertical-align: top;
  font-size: .94rem;
}
th {
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  background: rgba(248, 231, 225, 0.02);
}
tr:hover td { background: rgba(248, 231, 225, 0.02); }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(231, 198, 194, 0.12);
  color: var(--accent-bright);
  font-size: 12px;
  border: 1px solid rgba(231, 198, 194, 0.14);
}
.badge-slate { background: rgba(191, 175, 181, 0.12); color: var(--text); }
.badge-purple { background: rgba(216, 154, 166, 0.14); color: var(--accent-bright); }

.action-cell { min-width: 360px; }
.action-stack { display: grid; gap: 12px; }
.review-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 0;
}
.review-form-luxe input { min-height: 50px; }
.review-note { background: rgba(248, 231, 225, 0.035); }
.action-result {
  min-height: 72px;
  display: flex;
  align-items: center;
}
.action-result-luxe {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(248, 231, 225, 0.03);
  border: 1px solid rgba(231, 198, 194, 0.08);
}
.status-note { font-weight: 600; margin-bottom: 4px; color: var(--accent-bright); }

.auth-shell { display: flex; align-items: center; min-height: 100vh; padding-top: 32px; padding-bottom: 32px; }
.auth-panel { width: 100%; max-width: 640px; margin: 0 auto; text-align: left; }
.auth-form { margin-top: 22px; }
.thanks-panel .notice-list { margin-top: 24px; }

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

@media (max-width: 1100px) {
  .hero-panel,
  .grid-two,
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-panel { grid-template-columns: 1fr; }
  .hero-ornament { min-height: 280px; }
  .hero-meta-grid { grid-template-columns: 1fr; }
  .inline-head,
  .info-strip { align-items: start; flex-direction: column; }
}

@media (max-width: 720px) {
  .container { padding: 24px 16px 48px; }
  .grid-two,
  .stats-grid { grid-template-columns: 1fr; }
  .card { padding: 20px; border-radius: 22px; }
  .topbar { flex-direction: column; }
  .review-form { grid-template-columns: 1fr; }
  .submit-row { align-items: stretch; }
  .button-wide { width: 100%; }
  table { min-width: 720px; }
}
