:root {
  --blue-950: #10255f;
  --blue-900: #173a9a;
  --blue-800: #2048b4;
  --blue-700: #2b63e6;
  --blue-100: #eaf0ff;
  --orange-600: #f56519;
  --orange-100: #fff0e7;
  --green-700: #087d52;
  --green-100: #e6f7f0;
  --ink: #13213a;
  --muted: #667085;
  --line: #e3e7ef;
  --surface: #ffffff;
  --canvas: #f6f8fc;
  --danger: #b42318;
  --shadow-sm: 0 1px 2px rgb(16 37 95 / 6%), 0 4px 14px rgb(16 37 95 / 4%);
  --shadow-md: 0 14px 35px rgb(16 37 95 / 12%);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 3%, rgb(43 99 230 / 7%), transparent 28rem),
    var(--canvas);
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: var(--blue-700); }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: #fff;
  padding: .75rem 1rem;
  border-radius: .5rem;
}
.skip-link:focus { top: 1rem; }

.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;
}

[hidden] { display: none !important; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  color: #fff;
  background: linear-gradient(105deg, var(--blue-950), var(--blue-800));
  box-shadow: 0 4px 20px rgb(16 37 95 / 14%);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  justify-self: start;
  text-align: left;
}

.sublima-logo {
  width: 116px;
  height: auto;
  display: block;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 32px;
  background: rgb(255 255 255 / 24%);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff 0 48%, var(--orange-600) 49% 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 25%);
  transform: rotate(-5deg);
}

.brand-mark > span {
  color: var(--blue-900);
  font-weight: 950;
  font-size: 1.25rem;
  transform: rotate(5deg);
  text-shadow: 0 1px 0 #fff;
}

.brand-mark.mini { margin-inline: auto; width: 48px; height: 48px; }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: 1rem; }
.brand-copy small { color: rgb(255 255 255 / 70%); margin-top: 4px; }

.desktop-nav { display: flex; gap: 4px; }
.nav-button {
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgb(255 255 255 / 72%);
  padding: 10px 15px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 700;
}
.nav-button:hover { color: #fff; background: rgb(255 255 255 / 8%); }
.nav-button.is-active { color: #fff; background: rgb(255 255 255 / 14%); }

.account-area { position: relative; justify-self: end; }
.profile-button {
  border: 0;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-weight: 700;
}
.profile-button > span:first-child {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue-950);
  background: linear-gradient(145deg, #fff, #ffd4bb);
}
.profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 240px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}
.profile-menu p { margin: 0 0 8px; padding: 8px; color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.profile-menu button { width: 100%; border: 0; border-radius: 8px; padding: 10px; text-align: left; cursor: pointer; background: #f7f8fa; }

.campaign-banner {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  min-height: 118px;
  margin: 22px auto 0;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 18px;
  padding: 20px 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgb(255 255 255 / 16%), transparent 13rem),
    linear-gradient(110deg, #e84f0a, var(--orange-600) 46%, #ff934d);
  box-shadow: 0 12px 34px rgb(164 57 4 / 16%);
}
.campaign-banner::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: 12%;
  bottom: -148px;
  border: 30px solid rgb(255 255 255 / 8%);
  border-radius: 50%;
  pointer-events: none;
}
.campaign-symbol {
  width: 66px;
  height: 66px;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgb(255 255 255 / 14%);
  box-shadow: inset 0 0 24px rgb(255 255 255 / 8%);
  transform: rotate(-5deg);
}
.campaign-symbol span { font-size: 2rem; font-weight: 950; transform: rotate(5deg); }
.campaign-content { min-width: 0; display: grid; gap: 8px; }
.campaign-label { width: fit-content; border: 1px solid rgb(255 255 255 / 40%); padding: 4px 8px; border-radius: 999px; font-size: .66rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.campaign-text { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; }
.campaign-text strong { font-size: 1.08rem; }
.campaign-text > span { color: rgb(255 255 255 / 84%); font-size: .87rem; line-height: 1.45; }
.campaign-button { position: relative; z-index: 1; min-height: 44px; padding-inline: 18px; white-space: nowrap; box-shadow: 0 8px 20px rgb(107 34 0 / 16%); }

.main-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 52px 0 64px; }
.app-view { animation: fade-in .24s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } }

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 28px;
}
.page-heading h1 { margin: 6px 0 8px; max-width: 750px; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.08; letter-spacing: -.035em; }
.page-heading p { margin: 0; max-width: 690px; color: var(--muted); line-height: 1.55; }
.compact-heading { align-items: center; }
.eyebrow { color: var(--blue-700); font-size: .74rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.free-badge { color: var(--green-700); background: var(--green-100); border-radius: 999px; padding: 8px 12px; font-weight: 750; font-size: .82rem; }

.calculator-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, .92fr); gap: 24px; align-items: start; }
.calculator-workspace { display: grid; gap: 16px; }
.results-column { position: sticky; top: 96px; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.step-card { padding: 23px; }
.step-heading { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 20px; }
.step-number { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--blue-700); border-radius: 9px; font-size: .82rem; font-weight: 850; }
.step-heading h2, .form-heading h2, .list-heading h2 { margin: 1px 0 3px; font-size: 1rem; }
.step-heading p, .form-heading p, .list-heading p { margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.4; }

.field { display: grid; gap: 7px; color: #344054; font-size: .82rem; font-weight: 700; }
.field small { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea, .search-field input {
  width: 100%;
  border: 1px solid #d8dde7;
  border-radius: var(--radius-sm);
  outline: 0;
  color: var(--ink);
  background: #fff;
  padding: 12px 13px;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder, .search-field input::placeholder { color: #a2aabc; }
.field input:focus, .field select:focus, .field textarea:focus, .search-field input:focus { border-color: var(--blue-700); box-shadow: 0 0 0 3px rgb(43 99 230 / 12%); }
.field textarea { resize: vertical; line-height: 1.5; }
.grow { flex: 1; }
.picker-row { display: flex; gap: 10px; }

.button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 800;
  font-size: .88rem;
  text-decoration: none;
  transition: transform .12s, background .15s, border-color .15s, box-shadow .15s;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--blue-700), var(--blue-800)); box-shadow: 0 7px 16px rgb(43 99 230 / 18%); }
.button-primary:hover { background: linear-gradient(135deg, #3771ef, var(--blue-700)); box-shadow: 0 9px 20px rgb(43 99 230 / 24%); }
.button-secondary { color: var(--blue-800); background: #fff; border-color: #cbd7f5; }
.button-secondary:hover { background: var(--blue-100); border-color: #afc1ef; }
.button-ghost { background: transparent; border-color: var(--line); }
.button-ghost:hover { background: #fff; }
.button-light { background: #fff; color: #a13c09; }
.button-whatsapp { color: #fff; background: #128c5e; }
.button-small { padding: 8px 13px; font-size: .82rem; }
.button-large { min-height: 48px; }
.calculate-button { width: 100%; font-size: .96rem; }
.text-button { appearance: none; border: 0; padding: 0; color: var(--blue-700); background: transparent; cursor: pointer; font-weight: 800; }

.empty-inline { margin-top: 5px; padding: 18px; border: 1px dashed #cad3e3; border-radius: 12px; background: #fafbfe; display: flex; align-items: center; gap: 12px; }
.empty-inline strong { font-size: .9rem; }
.empty-inline p { margin: 3px 0 0; color: var(--muted); font-size: .8rem; }
.empty-inline .text-button { margin-left: auto; white-space: nowrap; }
.empty-icon { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; border-radius: 10px; color: var(--blue-700); background: var(--blue-100); font-size: 1.35rem; }
.empty-icon.large { width: 52px; height: 52px; border-radius: 16px; font-size: 1.75rem; }

.components-list { display: grid; gap: 9px; margin-top: 14px; }
.component-row { padding: 12px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; gap: 12px; }
.component-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; color: var(--blue-700); background: var(--blue-100); font-weight: 900; }
.component-info { flex: 1; min-width: 0; }
.component-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.component-info small { display: block; margin-top: 3px; color: var(--muted); }
.quantity-control { display: flex; align-items: center; gap: 4px; }
.quantity-control button, .icon-button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 9px; display: grid; place-items: center; cursor: pointer; background: #fff; }
.quantity-control button:hover, .icon-button:hover { color: var(--blue-700); border-color: #b9c9ef; background: var(--blue-100); }
.quantity-control input { width: 58px; border: 0; outline: 0; text-align: center; font-weight: 800; }
.remove-component { color: var(--muted); }

.result-placeholder { min-height: 355px; padding: 46px 35px; display: grid; place-items: center; align-content: center; text-align: center; }
.result-placeholder h2 { margin: 20px 0 7px; font-size: 1.08rem; }
.result-placeholder p { max-width: 320px; margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.result-illustration { width: 92px; height: 92px; border-radius: 28px; display: grid; place-items: center; color: var(--blue-700); background: linear-gradient(145deg, #f8faff, var(--blue-100)); border: 1px solid #dce5fb; box-shadow: inset 0 0 0 8px #fff; font-size: 1.6rem; font-weight: 950; transform: rotate(-4deg); }
.result-illustration.small { width: 72px; height: 72px; border-radius: 22px; font-size: 1.25rem; }
.cost-summary { padding: 22px; text-align: center; }
.cost-summary > span { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cost-summary > strong { display: block; margin: 7px 0; color: var(--blue-950); font-size: clamp(2rem, 5vw, 2.5rem); letter-spacing: -.04em; }
.cost-summary p { margin: 0; color: var(--muted); font-size: .77rem; }
.info-link { margin-top: 11px; padding: 0; border: 0; color: var(--blue-700); background: transparent; cursor: pointer; font-size: .76rem; font-weight: 750; }
.suggestions-heading { margin: 22px 2px 11px; display: flex; justify-content: space-between; align-items: end; }
.suggestions-heading h2 { margin: 3px 0 0; font-size: 1rem; }
.swipe-hint { color: var(--muted); font-size: .72rem; }
.suggestion-cards { display: grid; gap: 10px; }
.price-card { width: 100%; min-height: 92px; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; cursor: pointer; background: #fff; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s, box-shadow .15s; }
.price-card:hover { transform: translateY(-1px); border-color: #becbeb; box-shadow: 0 8px 24px rgb(16 37 95 / 9%); }
.price-card.is-selected { border: 2px solid var(--blue-700); padding: 15px 17px; box-shadow: 0 7px 20px rgb(43 99 230 / 13%); }
.price-card-copy { display: grid; gap: 6px; }
.price-card-copy > span { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.price-card-copy > strong, .price-card-copy span > strong { font-size: .9rem; }
.price-card-copy small { color: var(--muted); font-size: .73rem; }
.price-card-copy em { padding: 3px 6px; color: #fff; background: var(--orange-600); border-radius: 999px; font-size: .62rem; font-style: normal; font-weight: 850; }
.price-card-values { display: grid; justify-items: end; white-space: nowrap; }
.price-card-values > strong { font-size: 1.35rem; letter-spacing: -.025em; }
.price-card-values small { margin-top: 4px; color: var(--green-700); font-size: .72rem; font-weight: 700; }
.result-actions { margin-top: 13px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 10px; }

.management-layout { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr); gap: 20px; align-items: start; }
.management-form { position: sticky; top: 96px; padding: 23px; }
.form-heading { display: flex; gap: 11px; margin-bottom: 22px; }
.form-icon { width: 39px; height: 39px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; color: var(--blue-700); background: var(--blue-100); font-size: 1.35rem; }
.form-icon.orange { color: var(--orange-600); background: var(--orange-100); }
.management-form > .field + .field, .management-form > .field + .form-grid-two { margin-top: 15px; }
.form-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input-prefix { display: flex; align-items: center; border: 1px solid #d8dde7; border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.input-prefix:focus-within { border-color: var(--blue-700); box-shadow: 0 0 0 3px rgb(43 99 230 / 12%); }
.input-prefix span { padding-left: 13px; color: var(--muted); }
.input-prefix input { border: 0; box-shadow: none !important; padding-left: 7px; }
.form-actions { margin-top: 20px; display: flex; justify-content: end; gap: 8px; }
.list-panel { padding: 21px; min-height: 430px; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.search-field { min-width: 190px; display: flex; align-items: center; gap: 4px; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; padding-left: 10px; }
.search-field input { border: 0; box-shadow: none !important; padding: 9px 10px 9px 4px; }
.empty-state { padding: 50px 24px; display: grid; justify-items: center; align-content: center; text-align: center; }
.empty-state h3, .empty-state h2 { margin: 16px 0 6px; }
.empty-state p { max-width: 430px; margin: 0; color: var(--muted); line-height: 1.5; font-size: .88rem; }
.management-list { display: grid; gap: 8px; }
.management-item { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; display: flex; align-items: center; gap: 12px; }
.management-item-main { min-width: 0; flex: 1; }
.management-item-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.management-item-main small { display: block; margin-top: 4px; color: var(--muted); }
.management-item-price { color: var(--ink); font-weight: 850; font-size: .88rem; white-space: nowrap; }
.management-item-actions { display: flex; gap: 5px; }
.danger-button:hover { color: var(--danger); border-color: #f4b8b3; background: #fff0ef; }

.products-empty { min-height: 390px; }
.products-empty .button { margin-top: 20px; }
.products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-card { padding: 20px; display: grid; gap: 18px; }
.product-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.product-card h2 { margin: 0; font-size: 1rem; }
.product-card p { margin: 5px 0 0; color: var(--muted); font-size: .78rem; }
.product-standard-price { padding: 13px; border-radius: 11px; background: var(--blue-100); }
.product-standard-price span { display: block; color: var(--blue-800); font-size: .67rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.product-standard-price strong { display: block; margin-top: 4px; color: var(--blue-950); font-size: 1.32rem; }
.product-card-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

.discovery-section {
  margin-top: 72px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}
.discovery-heading {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  align-items: end;
  gap: 32px;
}
.discovery-heading h2 { margin: 7px 0 0; max-width: 650px; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -.025em; }
.discovery-heading p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.discovery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.discovery-card {
  position: relative;
  min-height: 265px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.discovery-card::after { content: ""; position: absolute; width: 145px; height: 145px; right: -85px; top: -80px; border: 24px solid currentColor; border-radius: 50%; opacity: .045; }
.discovery-card:hover { transform: translateY(-3px); border-color: #c4cfeb; box-shadow: 0 16px 34px rgb(16 37 95 / 11%); }
.discovery-icon { width: 42px; height: 42px; margin-bottom: 28px; border-radius: 12px; display: grid; place-items: center; font-size: 1rem; font-weight: 900; }
.discovery-kicker { margin-bottom: 6px; font-size: .68rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.discovery-card > strong { font-size: 1.06rem; line-height: 1.3; }
.discovery-card p { margin: 8px 0 20px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.discovery-action { margin-top: auto; font-size: .8rem; font-weight: 850; }
.discovery-card-orange .discovery-icon { color: var(--orange-600); background: var(--orange-100); }
.discovery-card-orange .discovery-kicker, .discovery-card-orange .discovery-action { color: #c84608; }
.discovery-card-blue .discovery-icon { color: var(--blue-700); background: var(--blue-100); }
.discovery-card-blue .discovery-kicker, .discovery-card-blue .discovery-action { color: var(--blue-700); }
.discovery-card-dark { color: #fff; border-color: var(--blue-950); background: linear-gradient(145deg, var(--blue-950), var(--blue-800)); box-shadow: 0 12px 30px rgb(16 37 95 / 17%); }
.discovery-card-dark:hover { border-color: var(--blue-700); box-shadow: 0 18px 38px rgb(16 37 95 / 23%); }
.discovery-card-dark p { color: rgb(255 255 255 / 72%); }
.discovery-card-dark .discovery-kicker { color: #ffb98e; }
.discovery-card-dark .discovery-action { color: #fff; }
.discovery-logo { width: 122px; height: auto; margin: 2px 0 26px; display: block; object-fit: contain; }

.mobile-nav { display: none; }
.app-footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 22px 0 35px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; }
.app-footer p { margin: 0; }
.app-footer a { color: var(--muted); }

.modal {
  width: min(570px, calc(100% - 30px));
  max-height: calc(100dvh - 30px);
  overflow: auto;
  border: 0;
  border-radius: var(--radius-lg);
  padding: 30px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 30px 90px rgb(12 30 78 / 30%);
}
.modal::backdrop { background: rgb(11 27 67 / 64%); backdrop-filter: blur(4px); }
.modal-close { position: absolute; right: 17px; top: 15px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--muted); background: #f2f4f8; cursor: pointer; font-size: 1.4rem; line-height: 1; }
.modal h2 { margin: 6px 0 7px; font-size: 1.45rem; letter-spacing: -.02em; }
.modal p { color: var(--muted); line-height: 1.48; }
.auth-modal { width: min(470px, calc(100% - 30px)); }
.modal-brand { display: grid; margin-bottom: 18px; }
.modal-brand-lockup { width: fit-content; margin-inline: auto; padding: 9px 16px; border-radius: 12px; display: grid; background: linear-gradient(120deg, var(--blue-950), var(--blue-800)); }
.modal-brand-lockup img { width: 112px; height: auto; }
.auth-context { margin-bottom: 14px; padding: 10px 12px; border-radius: 10px; color: var(--blue-800); background: var(--blue-100); font-size: .8rem; font-weight: 700; text-align: center; }
.auth-tabs { padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 11px; background: #f0f2f6; }
.auth-tabs button { border: 0; border-radius: 8px; padding: 9px; color: var(--muted); background: transparent; cursor: pointer; font-size: .8rem; font-weight: 800; }
.auth-tabs button.is-active { color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); }
.auth-form { margin-top: 23px; }
.auth-form > p:first-of-type { margin: 0 0 20px; }
.auth-form .field + .field { margin-top: 13px; }
.auth-form > .button { width: 100%; margin-top: 18px; }
.checkbox-field { margin-top: 13px; display: flex; align-items: flex-start; gap: 9px; color: #475467; font-size: .77rem; line-height: 1.4; cursor: pointer; }
.checkbox-field input { margin-top: 2px; accent-color: var(--blue-700); }
.legal-copy { margin: 14px 0 0; font-size: .7rem; }
.form-error { margin: 12px 0 0 !important; padding: 10px; border-radius: 8px; color: var(--danger) !important; background: #fff0ef; font-size: .78rem; font-weight: 700; }

.quote-modal { width: min(680px, calc(100% - 30px)); }
.quote-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.quote-heading h2 { margin: 3px 0 0; }
.tier-options { border: 0; padding: 0; margin: 0 0 18px; }
.tier-options legend { margin-bottom: 9px; color: #344054; font-size: .82rem; font-weight: 800; }
.tier-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tier-options legend { grid-column: 1 / -1; }
.tier-options label { cursor: pointer; }
.tier-options input { position: absolute; opacity: 0; pointer-events: none; }
.tier-options span { height: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px; display: grid; color: var(--muted); font-size: .74rem; font-weight: 750; }
.tier-options strong { margin-top: 3px; color: var(--ink); font-size: .86rem; }
.tier-options input:checked + span { border-color: var(--blue-700); color: var(--blue-700); background: var(--blue-100); box-shadow: 0 0 0 1px var(--blue-700); }
.quote-form .form-grid-two { margin-bottom: 12px; }
.quote-preview-field { margin-top: 15px; }
.quote-preview-field textarea { background: #f8f9fc; }
.quote-actions { margin-top: 14px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 9px; }
.privacy-note { margin: 11px 0 0; font-size: .7rem; text-align: center; }
.calculation-steps { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.calculation-steps li { display: flex; gap: 12px; }
.calculation-steps li > span { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: var(--blue-700); border-radius: 9px; font-size: .75rem; font-weight: 850; }
.calculation-steps strong { font-size: .86rem; }
.calculation-steps p { margin: 3px 0 0; font-size: .78rem; }
.info-disclaimer { padding: 11px; border-radius: 9px; background: #f6f7fa; font-size: .72rem; }
.info-modal > .button { width: 100%; }

.toast-region { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 8px; pointer-events: none; }
.toast { max-width: 360px; padding: 12px 15px; border-radius: 11px; color: #fff; background: var(--blue-950); box-shadow: var(--shadow-md); font-size: .82rem; font-weight: 700; animation: toast-in .2s ease; }
.toast.is-error { background: #912018; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 920px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .calculator-layout, .management-layout { grid-template-columns: 1fr; }
  .results-column, .management-form { position: static; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discovery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discovery-card-dark { grid-column: 1 / -1; min-height: 230px; }
  .mobile-nav {
    position: fixed;
    z-index: 29;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: min(420px, calc(100% - 24px));
    padding: 5px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 15px;
    background: rgb(16 37 95 / 95%);
    box-shadow: 0 12px 38px rgb(16 37 95 / 26%);
    backdrop-filter: blur(12px);
  }
  .mobile-nav button { border: 0; border-radius: 10px; padding: 8px 5px; display: grid; justify-items: center; gap: 3px; color: rgb(255 255 255 / 70%); background: transparent; font-size: .65rem; font-weight: 750; }
  .mobile-nav button span { font-size: 1rem; }
  .mobile-nav button.is-active { color: #fff; background: rgb(255 255 255 / 14%); }
  .app-footer { padding-bottom: 100px; }
}

@media (max-width: 640px) {
  .header-inner, .main-shell, .campaign-banner, .app-footer { width: min(100% - 24px, 1180px); }
  .header-inner { height: 64px; }
  .sublima-logo { width: 92px; }
  .brand-divider { height: 27px; }
  .brand-copy strong { font-size: .72rem; }
  .brand-copy small { display: none; }
  #profile-name { display: none; }
  .main-shell { padding-top: 32px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 21px; }
  .page-heading h1 { font-size: 1.82rem; }
  .page-heading .button, .free-badge { align-self: stretch; }
  .free-badge { text-align: center; }
  .campaign-banner { min-height: 0; padding: 18px; grid-template-columns: auto 1fr; gap: 14px; }
  .campaign-symbol { width: 50px; height: 50px; border-radius: 15px; }
  .campaign-symbol span { font-size: 1.55rem; }
  .campaign-text { display: grid; gap: 5px; }
  .campaign-text strong { font-size: .98rem; }
  .campaign-button { grid-column: 1 / -1; width: 100%; }
  .step-card, .management-form, .list-panel { padding: 18px; }
  .picker-row { align-items: stretch; flex-direction: column; }
  .component-row { align-items: flex-start; flex-wrap: wrap; }
  .component-info { width: calc(100% - 50px); }
  .quantity-control { margin-left: 48px; }
  .remove-component { margin-left: auto; }
  .result-placeholder { min-height: 300px; }
  .suggestion-cards { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; }
  .price-card { min-width: 82%; flex-direction: column; align-items: stretch; scroll-snap-align: center; }
  .price-card-values { justify-items: start; }
  .result-actions { grid-template-columns: 1fr; }
  .form-grid-two { grid-template-columns: 1fr; }
  .list-heading { align-items: stretch; flex-direction: column; }
  .search-field { width: 100%; }
  .management-item { flex-wrap: wrap; }
  .management-item-main { width: calc(100% - 50px); }
  .management-item-actions { margin-left: auto; }
  .products-grid { grid-template-columns: 1fr; }
  .discovery-section { margin-top: 50px; padding-top: 32px; }
  .discovery-heading { grid-template-columns: 1fr; gap: 10px; }
  .discovery-grid { grid-template-columns: 1fr; }
  .discovery-card, .discovery-card-dark { min-height: 235px; grid-column: auto; }
  .modal { padding: 25px 19px; }
  .tier-options { grid-template-columns: 1fr; }
  .tier-options legend { grid-column: auto; }
  .tier-options span { grid-template-columns: 1fr auto; align-items: center; }
  .tier-options strong { margin: 0; }
  .quote-actions { grid-template-columns: 1fr; }
  .app-footer { align-items: center; flex-direction: column; gap: 8px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.legal-page { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0 80px; }
.legal-page > a { display: inline-block; margin-bottom: 35px; text-decoration: none; font-weight: 750; }
.legal-page h1 { margin: 7px 0 8px; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.04em; }
.legal-page > p:first-of-type { color: var(--muted); }
.legal-page h2 { margin: 32px 0 8px; font-size: 1.08rem; }
.legal-page p { color: #475467; line-height: 1.7; }
.legal-warning { margin-top: 38px; padding: 18px; border: 1px solid #fed7aa; border-radius: 12px; background: #fff7ed; }
.legal-warning strong { color: #9a3412; }
.legal-warning p { margin: 6px 0 0; color: #7c2d12; font-size: .85rem; }
