:root {
  --bg: #050507;
  --bg-soft: #090a0e;
  --surface: #0b0c10;
  --surface-2: #101116;
  --surface-3: #14151b;
  --text: #eee8df;
  --muted: #979089;
  --muted-2: #6f6b67;
  --gold: #c99749;
  --gold-bright: #efc471;
  --gold-deep: #8f642b;
  --line: #24252b;
  --line-strong: #35363d;
  --danger: #b84a54;
  --ok: #59b45d;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { background: #000; color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 88%, rgba(67, 9, 36, .15), transparent 30%),
    radial-gradient(circle at 52% -10%, rgba(104, 76, 28, .09), transparent 27%),
    linear-gradient(180deg, #050507 0%, #07080b 56%, #050507 100%);
}

button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 1px solid var(--gold-bright);
  outline-offset: 2px;
}
[hidden] { display: none !important; }

.site-header {
  height: 78px;
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  align-items: center;
  padding: max(env(safe-area-inset-top), 0px) 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.035);
  background: rgba(5, 5, 7, .93);
  backdrop-filter: blur(18px);
}

.header-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: #c9a264;
}
.header-icon svg { width: 19px; height: 19px; stroke: currentColor; }
.header-spacer { width: 36px; height: 36px; }

.brand {
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  color: #e5bd74;
  line-height: 1;
  letter-spacing: .055em;
  user-select: none;
}
.brand-crown {
  display: block;
  font-family: Georgia, serif;
  font-size: 19px;
  line-height: .95;
  margin-bottom: 2px;
  color: #d6a85f;
}
.brand-main {
  display: block;
  font-size: 15px;
  font-variant: small-caps;
  text-transform: uppercase;
}
.brand-sub {
  display: block;
  margin-top: 5px;
  font: 600 6px/1 Inter, "Segoe UI", sans-serif;
  letter-spacing: .36em;
  color: #b28a4d;
}

.app {
  width: min(100%, 470px);
  margin: 0 auto;
  padding: 20px 18px calc(36px + env(safe-area-inset-bottom));
}

.screen-heading { margin: 0 0 20px; }
.screen-heading h1,
.screen-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .035em;
  color: #f1eadf;
}
.screen-heading p {
  margin: 7px 0 0;
  max-width: 310px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}
.eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.status {
  min-height: 0;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
}
.status:empty { display: none; }
.status[data-tone="error"] { color: #e37b84; }

button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: linear-gradient(180deg, #111218, #0b0c10);
  color: var(--text);
  padding: .8rem .95rem;
  cursor: pointer;
}
button:disabled { opacity: .38; cursor: not-allowed; }
button:active { transform: translateY(1px); }

.gold-button,
.primary-action,
.add-window-btn,
.form-actions .primary,
.app section[data-step] > button:last-child:not(.back-button) {
  width: 100%;
  min-height: 46px;
  border: 1px solid #c58e3c;
  background: linear-gradient(180deg, #e7b75f 0%, #c78f3e 51%, #a86f29 100%);
  color: #171009;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .055em;
  font-size: 10px;
  font-weight: 700;
  box-shadow: inset 0 1px rgba(255,255,255,.26), 0 10px 22px rgba(0,0,0,.22);
}

.back-button,
.app section[data-step] > button[id$="-back"] {
  border: 0;
  background: transparent;
  color: #b89460;
  padding: 0;
  min-height: 34px;
  margin: 0 0 14px;
}

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0b0c10;
  color: #f3eee6;
  padding: 12px 13px;
  outline: 0;
}
input:focus, textarea:focus { border-color: #795b31; }
textarea { resize: vertical; }

.lux-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(16,17,22,.98), rgba(9,10,13,.98));
  box-shadow: var(--shadow);
}

.price-breakdown {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0b0c10;
}
.price-breakdown dt { color: var(--muted); font-size: 11px; }
.price-breakdown dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.price-breakdown dd:last-child { color: var(--gold-bright); }

@media (max-width: 380px) {
  .app { padding-left: 13px; padding-right: 13px; }
  .site-header { padding-left: 11px; padding-right: 11px; }
}
