@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap");

:root {
  --ink: #0f1e3f;
  --ink-2: #213a56;
  --gold: #cdaa80;
  --gold-2: #997953;
  --sand: #f5f2eb;
  --paper: #ffffff;
  --muted: #5a6675;
  --line: rgba(15, 30, 63, 0.12);
  --shadow-sm: 0 12px 28px rgba(15, 30, 63, 0.12);
  --shadow-md: 0 26px 52px rgba(15, 30, 63, 0.16);
  --shadow-lg: 0 40px 100px rgba(15, 30, 63, 0.24);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 6%, rgba(205, 170, 128, 0.25), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(33, 58, 86, 0.16), transparent 36%),
    linear-gradient(180deg, #f7f4ed 0%, #f2eee7 48%, #ebe6de 100%);
  min-height: 100vh;
  line-height: 1.55;
}

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

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

.home-body {
  background:
    radial-gradient(circle at 14% 10%, rgba(205, 170, 128, 0.24), transparent 35%),
    radial-gradient(circle at 84% 16%, rgba(15, 30, 63, 0.2), transparent 34%),
    linear-gradient(180deg, #d4caa6 0%, #ccc19a 100%);
}

.bg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(205, 170, 128, 0.2), transparent 40%),
    radial-gradient(circle at 82% 12%, rgba(33, 58, 86, 0.16), transparent 35%);
  z-index: 0;
}

.bg-orb {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.26;
  z-index: 0;
}

.orb-one {
  right: -180px;
  top: -170px;
  background: radial-gradient(circle, rgba(33, 58, 86, 0.35), transparent 68%);
}

.orb-two {
  left: -170px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(205, 170, 128, 0.34), transparent 72%);
}

.container {
  width: min(var(--max), 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.main-content {
  padding: 20px 0 44px;
}

.home-main {
  width: 100%;
  padding: 0;
}

.site-header {
  padding-top: 24px;
}

.site-header .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 22px;
  border: 1px solid rgba(15, 30, 63, 0.08);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: linear-gradient(140deg, var(--ink), var(--ink-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.brand-title {
  font-size: 14px;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--muted);
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.site-nav a {
  font-size: 12px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: rgba(15, 30, 63, 0.78);
}

.site-nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-pill {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid rgba(15, 30, 63, 0.12);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.8);
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  color: #1a1a1a;
  background: linear-gradient(140deg, #dfc89b, #b59264);
  box-shadow: 0 14px 28px rgba(153, 121, 83, 0.28);
}

.btn.ghost {
  color: var(--ink);
  border: 1px solid rgba(15, 30, 63, 0.14);
  background: rgba(255, 255, 255, 0.8);
}

.btn.disabled {
  pointer-events: none;
  color: rgba(15, 30, 63, 0.4);
  background: rgba(15, 30, 63, 0.08);
  border: 1px solid rgba(15, 30, 63, 0.08);
}

.inline-form {
  display: inline;
}

.site-footer {
  padding: 36px 0 18px;
}

.footer-grid {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.footer-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.footer-text {
  font-size: 13px;
  color: var(--muted);
}

.intake-page {
  width: min(var(--max), calc(100vw - 48px));
  margin: 26px auto 40px;
  border-radius: 24px;
  background: rgba(252, 250, 245, 0.95);
  border: 1px solid rgba(15, 30, 63, 0.09);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.home-intake-page {
  margin-top: 22px;
}

.intake-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
  gap: 24px;
  padding: 34px;
  color: #f5efe2;
  background:
    linear-gradient(108deg, rgba(10, 14, 22, 0.9) 0%, rgba(15, 30, 63, 0.82) 48%, rgba(33, 58, 86, 0.64) 100%),
    url("https://images.pexels.com/photos/5668789/pexels-photo-5668789.jpeg?auto=compress&cs=tinysrgb&w=1600");
  background-size: cover;
  background-position: center;
  border-bottom-left-radius: 88px;
}

.home-intake-hero {
  min-height: 590px;
  align-items: end;
}

.home-intake-nav {
  position: absolute;
  left: 34px;
  right: 34px;
  top: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.home-intake-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-intake-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.home-intake-brand-copy strong {
  display: block;
  font-size: 14px;
  color: #fff;
}

.home-intake-brand-copy span {
  display: block;
  font-size: 11px;
  color: rgba(245, 239, 226, 0.8);
}

.home-intake-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.home-intake-links a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: rgba(247, 241, 230, 0.88);
}

.home-intake-tools {
  justify-self: end;
}

.home-intake-tools .btn.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.09);
}

.intake-hero-copy {
  max-width: 670px;
  padding-top: 106px;
}

.section-kicker {
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(223, 200, 155, 0.95);
}

.intake-hero h1 {
  margin: 12px 0 16px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.94;
  letter-spacing: -0.5px;
  color: #fff;
}

.intake-hero p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(246, 239, 227, 0.84);
}

.intake-hero-tags {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.intake-hero-tags span {
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.08);
}

.home-intake-actions {
  margin-top: 24px;
}

.intake-hero-panel {
  align-self: end;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(7, 12, 22, 0.4);
  backdrop-filter: blur(8px);
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.intake-panel-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.55px;
  color: rgba(223, 200, 155, 0.98);
}

.intake-steps {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  font-size: 13px;
  color: rgba(246, 239, 227, 0.92);
}

.intake-panel-price {
  margin-top: 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: 38px;
  color: #fff;
}

.dashboard-stats {
  padding: 26px 34px 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-stat {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.dashboard-stat span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: var(--muted);
}

.dashboard-stat strong {
  display: block;
  margin-top: 7px;
  font-family: "Cormorant Garamond", serif;
  font-size: 39px;
  line-height: 1;
  color: var(--ink);
}

.dashboard-stat p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.dashboard-layout {
  padding: 14px 34px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: 20px;
  align-items: start;
}

.dashboard-main,
.dashboard-side {
  min-width: 0;
}

.home-dashboard-layout {
  align-items: start;
}

.dashboard-panel {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.dashboard-panel + .dashboard-panel {
  margin-top: 16px;
}

.dashboard-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold-2);
}

.dashboard-panel-head h2 {
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 0.98;
}

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

.card {
  border-radius: 16px;
  border: 1px solid rgba(15, 30, 63, 0.12);
  background: linear-gradient(180deg, #fff 0%, #fcf9f4 100%);
  padding: 16px;
  display: grid;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 30, 63, 0.14);
}

.price-chip {
  justify-self: start;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  border-radius: 999px;
  border: 1px solid rgba(15, 30, 63, 0.14);
  background: rgba(205, 170, 128, 0.25);
  padding: 5px 10px;
}

.card-title {
  font-weight: 700;
  color: var(--ink);
}

.card-text {
  font-size: 13px;
  color: var(--muted);
}

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

.steps .step-grid {
  margin-top: 2px;
}

.step {
  border-radius: 14px;
  border: 1px solid rgba(15, 30, 63, 0.12);
  background: #fdfaf5;
  padding: 14px;
}

.step-number {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--gold-2);
}

.step-title {
  margin-top: 6px;
  font-weight: 700;
}

.step-text {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.summary-card {
  border-radius: 18px;
  border: 1px solid rgba(15, 30, 63, 0.11);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

.summary-card + .summary-card {
  margin-top: 14px;
}

.summary-card.subtle {
  background: linear-gradient(180deg, #f7f2e8 0%, #fdfbf7 100%);
}

.summary-card-top {
  display: grid;
  gap: 8px;
}

.summary-card-top strong {
  font-weight: 700;
}

.summary-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  color: var(--gold-2);
}

.summary-price {
  margin-top: 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 36px;
  line-height: 1;
  color: var(--ink);
}

.summary-progress {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 30, 63, 0.1);
  background: rgba(15, 30, 63, 0.03);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.summary-progress span {
  font-size: 12px;
  color: var(--muted);
}

.summary-progress strong {
  font-size: 16px;
}

.summary-list {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.summary-list.compact {
  color: rgba(15, 30, 63, 0.82);
}

.sticky {
  position: static;
}

.quick-actions {
  display: grid;
  gap: 10px;
}

.quick-action-card {
  border-radius: 14px;
  border: 1px solid rgba(15, 30, 63, 0.12);
  background: linear-gradient(180deg, #fff, #faf7f1);
  padding: 12px;
  display: grid;
  gap: 5px;
}

.quick-action-card strong {
  font-size: 14px;
}

.quick-action-card span {
  font-size: 12px;
  color: var(--muted);
}

.home-cta-panel {
  margin: 0 34px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background:
    linear-gradient(120deg, rgba(15, 30, 63, 0.94), rgba(33, 58, 86, 0.9)),
    url("https://images.pexels.com/photos/5668805/pexels-photo-5668805.jpeg?auto=compress&cs=tinysrgb&w=1400");
  background-size: cover;
  background-position: center;
  color: #f7f1e4;
}

.home-cta-panel h2 {
  margin: 8px 0 6px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 0.98;
}

.home-cta-panel p {
  margin: 0;
  max-width: 720px;
  color: rgba(247, 241, 228, 0.86);
}

.home-cta-panel .btn.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

.intake-layout {
  padding: 26px 34px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(295px, 1fr);
  gap: 20px;
  align-items: start;
}

.intake-sidebar {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.form-card {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.intake-form-shell {
  display: grid;
  gap: 16px;
}

.form-shell-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.form-shell-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  color: var(--gold-2);
}

.form-shell-head h2 {
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 0.98;
}

.form-shell-progress {
  min-width: 110px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 30, 63, 0.03);
  padding: 10px;
  text-align: right;
}

.form-shell-progress span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--muted);
}

.form-shell-progress strong {
  display: block;
  font-size: 20px;
  margin-top: 2px;
}

.form-section {
  border: 1px solid rgba(15, 30, 63, 0.1);
  border-radius: 14px;
  background: #fdfbf7;
  padding: 14px;
}

.form-section-highlight {
  background: linear-gradient(180deg, #f7f1e7 0%, #fbf8f3 100%);
}

.form-section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.form-section-step {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--ink);
  border: 1px solid rgba(153, 121, 83, 0.35);
  background: rgba(205, 170, 128, 0.3);
  font-family: "JetBrains Mono", monospace;
}

.form-title {
  font-weight: 700;
}

.form-section p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

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

.field {
  display: grid;
  gap: 7px;
}

.field span {
  font-size: 12px;
  color: var(--ink-2);
}

input,
select,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(15, 30, 63, 0.16);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 11px 12px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(153, 121, 83, 0.72);
  box-shadow: 0 0 0 3px rgba(205, 170, 128, 0.26);
}

textarea {
  resize: vertical;
}

.field.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 30, 63, 0.1);
  background: rgba(15, 30, 63, 0.03);
  padding: 12px;
}

.field.checkbox input {
  width: auto;
  margin-top: 2px;
}

.price-summary {
  border: 1px solid rgba(15, 30, 63, 0.12);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.price-summary.premium {
  border-color: rgba(153, 121, 83, 0.28);
  background: linear-gradient(180deg, #fffefc 0%, #f8f2e8 100%);
}

.price-summary > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.price-summary span {
  font-size: 12px;
  color: var(--muted);
}

.price-summary strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  line-height: 1;
}

.card-note {
  font-size: 12px;
  color: var(--muted);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-error {
  margin-top: 2px;
  color: #b91c1c;
  font-size: 13px;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: 20px;
}

.hidden {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 18, 0.62);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(960px, 96vw);
  max-height: calc(100vh - 42px);
  overflow: auto;
  border-radius: 26px;
  border: 1px solid rgba(15, 30, 63, 0.1);
  background: #fff;
  box-shadow: var(--shadow-lg);
  padding: 22px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold-2);
}

.modal-header h3 {
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 0.97;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(15, 30, 63, 0.14);
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.modal-body {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.modal-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.preview-paper {
  border-radius: 12px;
  border: 1px solid rgba(15, 30, 63, 0.14);
  background: #fff;
  overflow: hidden;
}

.preview-paper-header {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 30, 63, 0.1);
  background: linear-gradient(180deg, #f7f1e7, #fbf8f2);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
}

.preview-paper-body {
  padding: 18px;
  max-height: 54vh;
  overflow: auto;
  background:
    linear-gradient(transparent 23px, rgba(15, 30, 63, 0.05) 24px),
    linear-gradient(90deg, rgba(15, 30, 63, 0.04) 0, rgba(15, 30, 63, 0.04) 1px, transparent 1px);
  background-size: 100% 24px, 24px 100%;
  font-family: "Cormorant Garamond", serif;
  font-size: 19px;
  line-height: 1.55;
  color: #1a2230;
}

.preview-paragraph {
  margin: 0 0 10px;
  text-indent: 2.2em;
}

.preview-paragraph.no-indent {
  text-indent: 0;
}

.preview-paragraph.align-center {
  text-align: center;
  text-indent: 0;
}

.preview-paragraph.preview-heading {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.preview-spacer {
  height: 12px;
}

.modal-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 20px;
}

.auth-panel {
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.auth-panel-brand {
  color: #f8f1e4;
  background:
    linear-gradient(120deg, rgba(10, 12, 19, 0.9), rgba(15, 30, 63, 0.88), rgba(33, 58, 86, 0.72)),
    url("https://images.pexels.com/photos/5668805/pexels-photo-5668805.jpeg?auto=compress&cs=tinysrgb&w=1400");
  background-size: cover;
  background-position: center;
}

.auth-panel-brand h1 {
  margin: 12px 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.95;
}

.auth-panel-brand p {
  margin: 0;
  color: rgba(248, 241, 228, 0.84);
}

.auth-points {
  margin: 14px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.auth-form {
  background: #fff;
}

.form-shell-head.compact h2 {
  font-size: clamp(28px, 3vw, 36px);
}

.dashboard-page {
  display: grid;
  gap: 16px;
}

.dashboard-hero {
  border-radius: 20px;
  border: 1px solid rgba(15, 30, 63, 0.1);
  background:
    linear-gradient(120deg, rgba(15, 30, 63, 0.93), rgba(33, 58, 86, 0.88)),
    url("https://images.pexels.com/photos/4427556/pexels-photo-4427556.jpeg?auto=compress&cs=tinysrgb&w=1600");
  background-size: cover;
  background-position: center;
  color: #f7f1e4;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 16px;
}

.dashboard-hero-copy {
  min-width: 0;
}

.admin-dashboard .dashboard-layout {
  align-items: start;
}

.dashboard-hero h1 {
  margin: 10px 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.94;
}

.dashboard-hero p {
  margin: 0;
  color: rgba(247, 241, 228, 0.84);
}

.dashboard-hero-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 14, 22, 0.36);
  padding: 14px;
}

.filter-shell,
.price-form {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.field-search {
  grid-column: span 2;
}

.table-wrap.modern {
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(15, 30, 63, 0.12);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
  background: #fff;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 30, 63, 0.08);
  vertical-align: top;
  text-align: left;
  font-size: 13px;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.32px;
  font-size: 11px;
  color: var(--ink-2);
  background: #f5efe3;
}

.admin-table tbody tr:hover {
  background: rgba(205, 170, 128, 0.14);
}

.badge {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25px;
  display: inline-flex;
}

.badge.soft {
  color: var(--ink-2);
  background: rgba(33, 58, 86, 0.12);
}

.badge.success {
  color: #0f5132;
  background: #d1f2df;
}

.badge.warning {
  color: #7a4e00;
  background: #ffe6bf;
}

.badge.danger {
  color: #842029;
  background: #f8d7da;
}

.table-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink-2);
  word-break: break-all;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-link {
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 700;
}

.button-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.dashboard-secondary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.section {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.section-header h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 40px;
  line-height: 1;
}

.section-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.success-card {
  margin-top: 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 30, 63, 0.12);
  background: #fcfaf6;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.success-title {
  font-weight: 700;
  font-size: 17px;
}

.success-text {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1200px) {
  .site-header .container {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .header-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 1080px) {
  .intake-page {
    width: min(var(--max), calc(100vw - 30px));
    margin-top: 18px;
  }

  .intake-hero {
    grid-template-columns: 1fr;
    border-bottom-left-radius: 46px;
  }

  .home-intake-nav {
    position: static;
    margin-bottom: 8px;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .home-intake-links {
    justify-content: flex-start;
  }

  .intake-hero-copy {
    padding-top: 0;
  }

  .dashboard-stats,
  .dashboard-layout,
  .intake-layout {
    grid-template-columns: 1fr;
  }

  .home-cta-panel {
    margin: 0 20px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-shell,
  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .field-search {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .main-content {
    padding-top: 10px;
  }

  .contact-pill {
    display: none;
  }

  .intake-hero,
  .dashboard-stats,
  .dashboard-layout,
  .intake-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .dashboard-stats {
    padding-top: 16px;
  }

  .dashboard-panel {
    padding: 14px;
  }

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

  .intake-hero h1,
  .dashboard-hero h1,
  .form-shell-head h2,
  .home-cta-panel h2 {
    line-height: 1.02;
  }

  .section-header h2 {
    font-size: 33px;
  }

  .modal {
    padding: 10px;
  }

  .modal-card {
    width: 100%;
    padding: 14px;
    border-radius: 18px;
  }

  .preview-paper-body {
    font-size: 17px;
    padding: 12px;
  }

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