:root {
  --bg: #f7f0e3;
  --surface: rgba(255, 250, 241, 0.76);
  --surface-strong: #fffaf2;
  --surface-deep: #25180f;
  --line: rgba(96, 64, 24, 0.14);
  --text: #21160d;
  --muted: #6e5740;
  --gold: #ab7a22;
  --gold-deep: #7d5513;
  --gold-soft: #ecd7a7;
  --cream: #fff6e6;
  --success: #1e7d4d;
  --danger: #b84230;
  --shadow: 0 24px 60px rgba(101, 72, 36, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(232, 195, 104, 0.28), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(255, 255, 255, 0.8), transparent 24%),
    linear-gradient(135deg, rgba(255, 244, 216, 0.76), rgba(246, 239, 223, 0.92)),
    linear-gradient(180deg, #fffaf1 0%, #f6efdf 48%, #f9f6ef 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

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

button,
input,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

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

.compact-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calculator-frame {
  width: min(1080px, 100%);
  padding: 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  padding-top: 28px;
}

.hero-copy,
.hero-card,
.form-section,
.trust-strip,
.site-footer,
.admin-topbar,
.admin-stats,
.admin-grid,
.admin-login-card {
  animation: rise 0.7s ease-out both;
}

.hero-copy h1,
.section-heading h2,
.admin-login-card h1,
.admin-topbar h1,
.lead-card h2,
.admin-empty h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  max-width: 10ch;
  font-size: clamp(3.4rem, 8vw, 6rem);
  line-height: 0.92;
}

.hero-copy p,
.section-heading p,
.hero-card li,
.trust-item,
.field small,
.estimate-caption,
.panel-note p,
.follow-up-header p,
.site-footer p,
.admin-login-card p,
.lead-head p,
.admin-empty p {
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--gold-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: rgba(125, 85, 19, 0.4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.inline-metric {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
}

.inline-metric span {
  font-size: 0.84rem;
  color: var(--muted);
}

.inline-metric strong {
  font-size: 1rem;
}

.glass-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.compact-card {
  height: 100%;
  padding: 28px;
}

.compact-card ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 14px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.trust-item {
  padding: 18px 22px;
}

.main-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  padding: 24px;
  margin-top: 28px;
}

.compact-main-card {
  margin-top: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.form-column,
.estimate-column {
  min-width: 0;
}

.lead-form {
  display: grid;
  gap: 18px;
}

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

.field > span,
.field-copy span,
.field-header span,
.lead-grid span,
.lead-price span,
.stat-card span {
  font-size: 0.92rem;
  color: var(--muted);
}

.field input {
  width: 100%;
  border: 1px solid rgba(95, 67, 34, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  padding: 15px 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  border-color: rgba(171, 122, 34, 0.55);
  box-shadow: 0 0 0 5px rgba(171, 122, 34, 0.12);
  transform: translateY(-1px);
}

.checkbox-field {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
}

.checkbox-field input {
  width: 24px;
  height: 24px;
  accent-color: var(--gold-deep);
}

.field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-header strong {
  font-size: 1.1rem;
}

.range-input {
  width: 100%;
  accent-color: var(--gold-deep);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.84rem;
}

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

.condition {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px;
  border: 1px solid rgba(95, 67, 34, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.66);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  text-align: left;
}

.condition:hover,
.condition.active {
  transform: translateY(-2px);
  border-color: rgba(171, 122, 34, 0.46);
  background: linear-gradient(180deg, rgba(255, 245, 214, 0.95), rgba(255, 255, 255, 0.9));
}

.condition strong {
  font-size: 1rem;
}

.condition small {
  color: var(--muted);
  line-height: 1.6;
}

.action-row {
  display: grid;
  gap: 12px;
}

.action-row p {
  margin: 0;
  color: var(--muted);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 180px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.primary-button {
  background: linear-gradient(135deg, #b6832a, #8c5d14);
  color: #fffdf7;
  box-shadow: 0 16px 30px rgba(166, 116, 28, 0.28);
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.primary-button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.follow-up-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(171, 122, 34, 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 247, 227, 0.94), rgba(255, 255, 255, 0.8));
}

.follow-up-header span {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.follow-up-header p {
  margin: 0;
}

.submit-button {
  width: 100%;
}

.feedback {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  grid-column: 1 / -1;
}

.feedback.error {
  color: var(--danger);
  background: rgba(184, 66, 48, 0.08);
  border: 1px solid rgba(184, 66, 48, 0.16);
}

.feedback.success {
  color: var(--success);
  background: rgba(30, 125, 77, 0.08);
  border: 1px solid rgba(30, 125, 77, 0.16);
}

.lead-grid div,
.lead-price,
.stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-note {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(95, 67, 34, 0.1);
}

.panel-note strong {
  display: block;
  margin-bottom: 8px;
}

.panel-note p {
  margin: 0;
}

.compact-shell {
  padding-top: 32px;
  padding-bottom: 32px;
}

.calculator-frame {
  position: relative;
  overflow: hidden;
  width: min(1240px, 100%);
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 221, 157, 0.42), transparent 22%),
    linear-gradient(145deg, rgba(255, 252, 245, 0.88), rgba(252, 246, 233, 0.7));
}

.calculator-frame::before,
.calculator-frame::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.calculator-frame::before {
  inset: auto -80px -120px auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(171, 122, 34, 0.14), transparent 70%);
}

.calculator-frame::after {
  inset: -120px auto auto -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 238, 198, 0.82), transparent 68%);
}

.premium-main-card {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.calculator-panel {
  padding: 6px;
}

.brand-banner {
  display: flex;
  align-items: center;
  padding: 6px 6px 10px;
}

.brand-logo {
  display: block;
  width: min(100%, 380px);
  height: auto;
}

.lead-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.control-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(114, 79, 34, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 248, 236, 0.58));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 10px 30px rgba(101, 72, 36, 0.05);
}

.control-head {
  display: flex;
  gap: 14px;
  align-items: start;
}

.control-step {
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, rgba(255, 245, 214, 0.95), rgba(235, 205, 137, 0.7));
  color: var(--gold-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-family: inherit;
}

.admin-trigger {
  cursor: pointer;
}

.control-head strong {
  display: block;
  font-size: 1.05rem;
}

.control-head p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.field {
  gap: 12px;
}

.field input {
  border-radius: 18px;
  border-color: rgba(95, 67, 34, 0.12);
  background: rgba(255, 255, 255, 0.96);
  padding: 16px 18px;
}

.field input::placeholder {
  color: rgba(110, 87, 64, 0.72);
}

.weight-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.weight-input-row input {
  text-align: right;
  font-size: 1.35rem;
  font-weight: 700;
}

.unit-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(95, 67, 34, 0.12);
  background: linear-gradient(180deg, rgba(255, 248, 229, 0.96), rgba(246, 233, 199, 0.86));
  color: var(--gold-deep);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preset-button {
  border: 1px solid rgba(95, 67, 34, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.preset-button:hover {
  transform: translateY(-2px);
  border-color: rgba(171, 122, 34, 0.36);
  background: rgba(255, 248, 228, 0.94);
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.checkbox-field {
  padding: 0;
  border: 0;
  background: transparent;
}

.field-copy {
  display: grid;
  gap: 4px;
}

.checkbox-switch {
  position: relative;
  display: inline-flex;
}

.checkbox-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.switch-track {
  width: 70px;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(240, 225, 193, 0.98), rgba(224, 205, 164, 0.92));
  border: 1px solid rgba(125, 85, 19, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.switch-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fffdf9;
  box-shadow: 0 10px 18px rgba(33, 22, 13, 0.18);
  transition: transform 0.2s ease;
}

.checkbox-switch input:checked + .switch-track {
  background: linear-gradient(135deg, #be8a2f, #8b5c16);
  border-color: rgba(139, 92, 22, 0.5);
}

.checkbox-switch input:checked + .switch-track .switch-thumb {
  transform: translateX(30px);
}

.checkbox-switch input:focus-visible + .switch-track {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 0 0 5px rgba(171, 122, 34, 0.14);
}

.karat-display {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(95, 67, 34, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(252, 240, 212, 0.78));
}

.karat-display span {
  color: var(--muted);
  font-size: 0.88rem;
}

.karat-display strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.range-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8a5c16 0%, #c79742 48%, #efd9ab 100%);
  outline: none;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fffaf2;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.28),
    0 12px 24px rgba(50, 31, 14, 0.22);
  cursor: pointer;
}

.range-input::-moz-range-track {
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #8a5c16 0%, #c79742 48%, #efd9ab 100%);
}

.range-input::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fffaf2;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.28),
    0 12px 24px rgba(50, 31, 14, 0.22);
  cursor: pointer;
}

.range-labels {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.condition-grid {
  gap: 10px;
}

.condition {
  min-height: 134px;
  padding: 18px;
  border-radius: 22px;
  border-color: rgba(95, 67, 34, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(250, 245, 232, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.condition:hover,
.condition.active {
  transform: translateY(-3px);
  border-color: rgba(171, 122, 34, 0.42);
  background:
    radial-gradient(circle at top right, rgba(255, 228, 170, 0.62), transparent 46%),
    linear-gradient(180deg, rgba(255, 248, 228, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow: 0 18px 24px rgba(125, 85, 19, 0.1);
}

.condition strong {
  font-size: 1.04rem;
}

.action-row {
  gap: 10px;
  padding: 2px 6px 0;
  grid-column: 1 / -1;
}

.action-row .primary-button {
  width: 100%;
}

.action-row p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.estimate-inline {
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(114, 79, 34, 0.12);
  background:
    radial-gradient(circle at top right, rgba(255, 226, 164, 0.44), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(252, 243, 223, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 12px 30px rgba(101, 72, 36, 0.06);
}

.estimate-inline-label {
  color: var(--gold-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.estimate-inline h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.estimate-inline-caption {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.estimate-inline-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(95, 67, 34, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.estimate-inline-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.estimate-inline-card strong {
  font-size: 1.18rem;
}

.primary-button {
  min-width: 0;
  padding: 16px 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #c28b2d, #7b4f11);
  box-shadow: 0 18px 32px rgba(154, 105, 26, 0.25);
}

.follow-up-panel {
  gap: 18px;
  grid-column: 1 / -1;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 231, 180, 0.14);
  background:
    radial-gradient(circle at top right, rgba(255, 217, 139, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(34, 22, 12, 0.98), rgba(79, 50, 20, 0.94));
  box-shadow: 0 20px 40px rgba(33, 22, 13, 0.22);
}

.follow-up-header span,
.follow-up-panel .field > span {
  color: var(--cream);
}

.follow-up-header p {
  color: rgba(255, 246, 230, 0.74);
}

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

.follow-up-panel .field input {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.12);
}

.follow-up-panel .field input::placeholder {
  color: rgba(255, 246, 230, 0.48);
}

.follow-up-panel .field input:focus {
  border-color: rgba(255, 214, 132, 0.48);
  box-shadow: 0 0 0 5px rgba(255, 214, 132, 0.1);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 0;
}

.site-footer a {
  color: var(--gold-deep);
  font-weight: 700;
}

.admin-shell {
  padding-top: 42px;
}

.admin-login-card {
  width: min(560px, 100%);
  margin: 8vh auto 0;
  padding: 28px;
}

.admin-login-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.admin-topbar-copy {
  display: grid;
  gap: 10px;
}

.brand-logo-admin {
  width: min(100%, 280px);
}

.admin-topbar h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 0.95;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.stat-card {
  padding: 20px 22px;
}

.stat-card strong {
  font-size: 2rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.admin-empty {
  padding: 28px;
}

.lead-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.admin-lead-card {
  align-content: start;
}

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

.lead-head h2 {
  font-size: 2rem;
}

.lead-head p {
  margin: 8px 0 0;
}

.status-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(171, 122, 34, 0.12);
  color: var(--gold-deep);
  text-transform: capitalize;
  font-size: 0.88rem;
  font-weight: 700;
}

.status-pill-manual {
  background: rgba(30, 125, 77, 0.12);
  color: var(--success);
}

.lead-grid {
  display: grid;
  gap: 12px;
}

.admin-price-stack {
  display: grid;
  gap: 10px;
}

.lead-price {
  padding-top: 16px;
  border-top: 1px solid rgba(95, 67, 34, 0.1);
}

.lead-manual-price {
  color: var(--success);
}

.lead-subprice {
  padding-top: 10px;
  border-top: 0;
  color: var(--muted);
}

.manual-offer-form {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(95, 67, 34, 0.1);
}

.compact-field {
  gap: 8px;
}

.compact-field small {
  line-height: 1.5;
}

.admin-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-inline-button {
  min-width: 0;
  padding: 12px 18px;
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #c85c48, #9f2e1d);
  color: #fff9f5;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 14px 28px rgba(159, 46, 29, 0.22);
}

.danger-button:hover {
  transform: translateY(-2px);
}

.danger-button:disabled,
.admin-inline-button:disabled {
  opacity: 0.7;
  cursor: progress;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .premium-main-card {
    grid-template-columns: 1fr;
  }

  .lead-form,
  .hero,
  .main-card,
  .admin-grid,
  .trust-strip,
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .page-shell,
  .admin-shell {
    width: min(100% - 20px, 1180px);
  }

  .compact-shell {
    display: block;
    min-height: auto;
    padding-top: 20px;
  }

  .calculator-frame {
    padding: 14px;
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  .control-card,
  .estimate-inline,
  .follow-up-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .brand-logo {
    width: min(100%, 320px);
  }

  .karat-display {
    align-items: start;
  }

  .karat-display strong {
    font-size: 2.4rem;
  }

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

  .weight-input-row {
    grid-template-columns: 1fr;
  }

  .unit-pill {
    width: 100%;
  }

  .estimate-inline-meta,
  .follow-up-grid {
    grid-template-columns: 1fr;
  }

  .checkbox-field {
    grid-template-columns: 1fr;
  }

  .admin-topbar,
  .site-footer,
  .lead-head,
  .lead-grid div,
  .lead-price,
  .stat-card,
  .checkbox-field,
  .admin-action-row {
    flex-direction: column;
    align-items: start;
  }

  .main-card,
  .compact-card,
  .admin-login-card,
  .lead-card {
    padding: 18px;
  }
}
