:root {
  --bg: #0f1117;
  --surface: #161b24;
  --surface-soft: #1d2430;
  --ink: #edf2ff;
  --muted: #a9b6cc;
  --line: #2a3446;
  --gold: #f2bd74;
  --gold-strong: #e2a351;
  --blue: #2f8dff;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 10%, #1e2431 0%, transparent 35%), radial-gradient(circle at 90% 85%, #171e2b 0%, transparent 30%), var(--bg);
  min-height: 100vh;
}

h1,
h2,
h3,
h4 {
  font-family: "Marcellus", serif;
  letter-spacing: 0.02em;
  margin: 0;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  z-index: -1;
  opacity: 0.55;
}

.bg-shape-a {
  width: 240px;
  height: 240px;
  background: #2f8dff;
  top: -60px;
  right: 18%;
}

.bg-shape-b {
  width: 280px;
  height: 280px;
  background: #f2bd74;
  bottom: -100px;
  left: 8%;
}

.site-shell {
  width: min(1180px, 92vw);
  margin: 1.6rem auto 3rem;
  display: grid;
  gap: 1.25rem;
}

#home,
#builder,
#about,
#reviews,
#contact,
[id^="page-"] {
  scroll-margin-top: 110px;
}

.top-nav {
  position: sticky;
  top: 0.6rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  background: rgba(15, 19, 27, 0.82);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  isolation: isolate;
}

.brand {
  display: block;
  width: min(460px, 34vw);
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: clamp(52px, 6.6vw, 84px);
  object-fit: contain;
  object-position: left center;
  display: block;
  mix-blend-mode: lighten;
  opacity: 1;
  margin-left: -0.35rem;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: #cbd7ed;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
}

.nav-links a:hover {
  background: #ffffff;
  color: #0f172a;
}

.nav-links a.active {
  background: #ffffff;
  color: #0f172a;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #dce7fb;
  border-radius: 2px;
}

.nav-toggle span + span {
  margin-top: 6px;
}

.header-banner {
  padding: 0.35rem;
  overflow: hidden;
}

.header-banner img {
  width: 100%;
  max-height: 180px;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.hero-template {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  background: linear-gradient(140deg, #141924, #111720);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}

.hero-copy {
  padding: 2rem;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow-admin-entry {
  display: inline-block;
  text-decoration: none;
  cursor: default;
}

.eyebrow-admin-entry:hover,
.eyebrow-admin-entry:visited,
.eyebrow-admin-entry:active {
  color: var(--gold);
  text-decoration: none;
}

.eyebrow-admin-entry:focus-visible {
  outline: 2px solid rgba(207, 155, 70, 0.85);
  outline-offset: 4px;
  border-radius: 4px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.subhead {
  margin: 0.85rem 0 0;
  color: var(--muted);
  max-width: 44ch;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.hero-points span {
  border: 1px solid #34415a;
  background: #1c2432;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #c6d5ef;
  padding: 0.4rem 0.7rem;
}

.hero-cta {
  display: inline-block;
  margin-top: 1.15rem;
  background: var(--gold);
  color: #241302;
  text-decoration: none;
  font-weight: 800;
  border-radius: 8px;
  padding: 0.72rem 1rem;
}

.hero-cta:hover {
  background: var(--gold-strong);
}

.hero-cta.is-disabled,
.hero-cta[aria-disabled="true"] {
  opacity: 0.72;
  cursor: not-allowed;
}

.hero-cta.is-disabled:hover,
.hero-cta[aria-disabled="true"]:hover {
  background: var(--gold);
}

.hero-image-wrap {
  min-height: 280px;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 0.95rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(10, 14, 21, 0.52);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.hero-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  padding: 0;
  transition: transform 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.hero-carousel-dot:hover,
.hero-carousel-dot:focus-visible {
  transform: scale(1.18);
  background: rgba(255, 255, 255, 0.72);
  outline: none;
}

.hero-carousel-dot.is-active {
  background: var(--gold);
  box-shadow: 0 0 0 2px rgba(18, 22, 31, 0.45);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.builder-panel {
  padding: 1.1rem;
}

.builder-heading p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.builder-richtext {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.builder-richtext p {
  margin: 0 0 0.5rem;
}

.builder-richtext p:last-child {
  margin-bottom: 0;
}

.controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem;
}

label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #cfdbef;
}

.optional-label {
  font-size: 0.8em;
  font-weight: 400;
}

.toggle-inline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #d7e2f6;
}

.toggle-inline input[type="checkbox"] {
  width: 0.95rem;
  height: 0.95rem;
}

input[type="file"],
select,
input[type="range"] {
  width: 100%;
}

input[type="file"],
select,
button {
  font: inherit;
}

select,
input[type="file"] {
  background: #111827;
  color: #e5efff;
  border: 1px solid #314057;
  border-radius: 8px;
  padding: 0.45rem;
}

#photoInput,
#crystalType {
  font-size: 0.82rem;
}

#photoInput {
  margin-top: 0.9rem;
  min-height: 56px;
  padding: 0.6rem 0.7rem;
}

#photoInput::file-selector-button {
  margin: 0 0.6rem 0 0;
  padding: 0.45rem 0.75rem;
  border: 1px solid #314057;
  border-radius: 8px;
  background: #f8fbff;
  color: #0f172a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

#photoInput::file-selector-button:hover {
  background: #e8f0fb;
}

#crystalType.visually-hidden {
  position: absolute;
}

#baseAddOnSelect {
  font-size: 0.82rem;
}

.crystal-picker {
  position: relative;
}

.crystal-picker-button {
  width: 100%;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  background: #111827;
  border: 1px solid #34415a;
  border-radius: 12px;
  color: #f8fafc;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  text-align: left;
}

.crystal-picker-button:focus-visible,
.crystal-picker-button:hover {
  border-color: #6e86a9;
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.15);
}

.crystal-picker-button-media,
.crystal-picker-preview-media,
.crystal-picker-option-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(18, 27, 42, 0.95), rgba(14, 22, 34, 0.95));
  border: 1px solid rgba(84, 102, 130, 0.8);
  border-radius: 10px;
  overflow: hidden;
}

.crystal-picker-button-media {
  width: 54px;
  height: 54px;
}

.crystal-picker-button-media img,
.crystal-picker-preview-media img,
.crystal-picker-option-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.crystal-picker-button-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.2;
}

.crystal-picker-button-caret {
  color: #c9d7eb;
  font-size: 1rem;
}

.crystal-picker-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 20;
  width: min(492px, calc(100vw - 2rem));
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 0.8rem;
  padding: 0.8rem;
  background: rgba(12, 19, 31, 0.98);
  border: 1px solid #34415a;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.crystal-picker-preview {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.crystal-picker-preview::before {
  content: "☜  ☞";
  order: 10;
  color: #8fa3c0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.05;
  text-align: center;
  animation: crystal-swipe-hint 1.35s ease-in-out infinite;
}

.crystal-picker-preview::after {
  content: "Swipe";
  order: 11;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

@keyframes crystal-swipe-hint {
  0%,
  100% {
    opacity: 0.58;
    transform: translateX(0);
  }

  35% {
    opacity: 1;
    transform: translateX(-5px);
  }

  70% {
    opacity: 1;
    transform: translateX(5px);
  }
}

.crystal-picker-preview-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 120px;
}

.crystal-picker-preview-label {
  color: #dce7fb;
  font-size: 0.8rem;
  line-height: 1.3;
}

.crystal-picker-preview-price {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.crystal-picker-options {
  min-width: 0;
  max-width: 312px;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  gap: 0.75rem;
  padding: 0 0.15rem 0.5rem;
  align-content: start;
  scroll-snap-type: x proximity;
}

.crystal-picker-shape-card {
  flex: 0 0 148px;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  scroll-snap-align: start;
}

.crystal-picker-shape-card.is-selected .crystal-picker-option {
  border-color: #7dd3fc;
  box-shadow: 0 0 0 2px rgba(125, 211, 252, 0.14);
}

.crystal-picker-option {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #111827;
  border: 1px solid #2f3f59;
  border-radius: 12px;
  color: #f8fafc;
  padding: 0.55rem;
  cursor: pointer;
  text-align: center;
}

.crystal-picker-option:hover,
.crystal-picker-option:focus-visible,
.crystal-picker-option.is-selected {
  border-color: #7dd3fc;
  background: linear-gradient(180deg, #162236, #111827);
}

.crystal-picker-option-media {
  width: 100%;
  height: 96px;
}

.crystal-picker-option-fallback {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #dce7fb;
}

.crystal-picker-option-label {
  width: 100%;
  color: #dce7fb;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
}

.crystal-picker-option-price,
.crystal-picker-size-price {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
}

.crystal-picker-size-list {
  display: grid;
  gap: 0.35rem;
}

.crystal-picker-size-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.35rem;
  row-gap: 0.12rem;
  padding: 0.45rem 0.5rem;
  background: rgba(17, 24, 39, 0.82);
  border: 1px solid #2f3f59;
  border-radius: 10px;
  color: #dce7fb;
  cursor: pointer;
}

.crystal-picker-size-option:hover,
.crystal-picker-size-option:focus-within,
.crystal-picker-size-option.is-selected {
  border-color: #7dd3fc;
  background: linear-gradient(180deg, #162236, #111827);
}

.crystal-picker-size-checkbox {
  grid-row: span 2;
  width: 14px;
  height: 14px;
  accent-color: #7dd3fc;
}

.crystal-picker-size-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
}

@media (max-width: 640px) {
  .crystal-picker-panel {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .crystal-picker-preview-media {
    max-width: 140px;
  }

  .crystal-picker-shape-card {
    flex-basis: 136px;
  }
}

#zoomValue,
.muted-text {
  color: #ffffff;
  font-size: 0.82rem;
}

#crystalPrice {
  text-align: center;
}

#crystalSubjects {
  display: block;
  text-align: center;
  margin-top: 0.2rem;
  font-size: 0.95rem;
  font-weight: 400;
}

#crystalStockNotice {
  display: block;
  text-align: center;
  margin-top: 0.1rem;
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 700;
}

.zoom-actions {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
}

.service-fees-list {
  display: grid;
  gap: 0.35rem;
}

.service-base-picker {
  display: grid;
  gap: 0.28rem;
  margin-bottom: 0.4rem;
}

.service-base-picker label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
}

.service-base-picker .optional-label {
  color: #cfdbef;
  font-size: 0.8em;
  font-weight: 400;
}

.service-fee-option {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  background: #111827;
  border: 1px solid #314057;
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
}

.service-fee-option--hint::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0.5rem;
  bottom: calc(100% + 0.35rem);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0);
  transition: none;
  background: rgba(22, 28, 39, 0.96);
  border: 1px solid #4a5d79;
  color: #ff5a5a;
  border-radius: 6px;
  padding: 0.38rem 0.55rem;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.2;
  max-width: min(240px, calc(100% - 1rem));
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.service-fee-option--hint:hover::after,
.service-fee-option--hint:focus-within::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.service-fee-option label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e5efff;
}

.service-fee-option input[type="checkbox"] {
  width: 0.95rem;
  height: 0.95rem;
}

.service-fee-amount {
  min-width: 5.5ch;
  justify-self: end;
  text-align: right;
  white-space: nowrap;
  color: #c6d5ef;
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.service-fees-totals {
  display: grid;
  gap: 0.18rem;
  margin-top: 0.1rem;
}

.service-fee-breakdown {
  display: grid;
  gap: 0.12rem;
  margin-bottom: 0.3rem;
}

.service-fee-breakdown-row span {
  color: #dce6f7;
}

.discount-code-control {
  display: grid;
  gap: 0.35rem;
  margin: 0.35rem 0 0.55rem;
  padding: 0.65rem;
  border: 1px solid rgba(89, 118, 158, 0.45);
  border-radius: 0.75rem;
  background: rgba(8, 16, 31, 0.42);
}

.discount-code-control label {
  color: #e4b35b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.discount-code-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: stretch;
  gap: 0.4rem;
}

.discount-code-actions input {
  box-sizing: border-box;
  height: 2.55rem;
  min-width: 0;
  padding: 0.45rem 0.65rem;
  border: 1px solid #314057;
  border-radius: 8px;
  background: #111827;
  color: #e5efff;
  font: inherit;
  text-transform: uppercase;
}

.discount-code-actions input::placeholder {
  color: #8f9caf;
}

.discount-code-actions button {
  box-sizing: border-box;
  height: 2.55rem;
  min-height: 2.55rem;
  margin-top: 0;
  padding: 0.65rem 1rem;
  line-height: 1;
}

.discount-code-status {
  margin: 0;
  font-size: 0.78rem;
}

.discount-code-status.is-error {
  color: #ff7b7b;
}

.discount-code-status.is-success {
  color: #83d59a;
}

.service-fees-totals span {
  color: #cddbef;
  font-size: 0.78rem;
}

.service-fees-total-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.5rem;
}

.service-fees-total-row span {
  text-align: left;
  min-width: 0;
}

.service-fees-total-row strong {
  min-width: 5.5ch;
  justify-self: end;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.service-fees-total-row.is-secondary strong {
  font-weight: 400;
  font-size: 0.8rem;
}

.service-fees-total-row.is-secondary span {
  font-size: 0.8rem;
}

.service-fees-totals strong {
  color: #ffffff;
}

.service-fees-note {
  display: block;
  margin-top: 0.1rem;
  text-align: center;
  color: #9fb2cc;
  font-size: 0.7rem;
  font-weight: 400;
}

.text-engraving-field {
  margin-top: 0.55rem;
}

.resize-field {
  display: flex;
  flex-direction: column;
}

.builder-step-3 {
  display: flex;
  flex-direction: column;
}

.builder-step-3 .selected-base-slot {
  margin-top: 0.75rem;
}

.builder-step-3:not(.has-text-engraving) .selected-base-slot {
  margin-top: auto;
  padding-bottom: 0.35rem;
}

.builder-step-1 .thumb-grid-single,
.builder-step-2 .thumb-grid-single {
  padding-bottom: 0.7rem;
}

.builder-step-3:not(.has-text-engraving) .resize-bottom-stack {
  margin-top: 0;
}

.builder-step-3.has-text-engraving .selected-base-slot {
  margin-top: 0.75rem;
  padding-bottom: 0;
}

.text-engraving-field label {
  margin-bottom: 0.2rem;
}

.text-engraving-field textarea {
  width: 100%;
  min-height: 86px;
  resize: vertical;
  background: #111827;
  color: #e5efff;
  border: 1px solid #314057;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  font: inherit;
  line-height: 1.3;
}

.text-engraving-note {
  display: block;
  margin-top: 0.25rem;
  text-align: center;
  font-size: 0.7rem;
  color: #9fb2cc;
}

.text-engraving-size-controls {
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.text-engraving-size-btn {
  width: auto;
  min-width: 3rem;
  padding: 0.3rem 0.55rem;
  font-size: 0.76rem;
  line-height: 1.15;
}

.text-engraving-size-value {
  min-width: 3.6rem;
  text-align: center;
  color: #d0ddf0;
  font-size: 0.76rem;
  font-weight: 700;
}

.text-engraving-font-options {
  margin-top: 0.45rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

.text-font-option {
  margin-top: 0;
  width: 100%;
  border: 1px solid #314057;
  border-radius: 10px;
  padding: 0.35rem 0.4rem;
  background: #1f2a3a;
  color: #dbe6f8;
  font-size: 0.86rem;
  line-height: 1.15;
  font-weight: 500;
}

.text-font-option:hover:enabled {
  background: #2a3b55;
}

.text-font-option.is-active {
  background: #f1f4f8;
  color: #101722;
  border-color: #f1f4f8;
}

.resize-controls-bottom {
  margin-top: 0.4rem;
  display: grid;
  gap: 0.45rem;
  justify-items: center;
}

#zoomRange {
  width: min(520px, 82%);
}

.resize-bottom-stack {
  margin-top: 0.35rem;
  display: grid;
  gap: 0.35rem;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.3rem;
}

.thumb-grid-single {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  margin-top: auto;
  padding-top: 0.3rem;
}

.thumb-grid-single .thumb-tile {
  width: 100%;
  max-width: calc(90% - 0.275rem);
}

.thumb-tile {
  --thumb-media-min-height: 122px;
  --thumb-media-max-height: 146px;
  margin-top: 0;
  background: #1c2739;
  border: 1px solid #314057;
  border-radius: 10px;
  padding: 0.55rem;
  min-height: 176px;
  display: grid;
  grid-template-rows: minmax(var(--thumb-media-min-height), var(--thumb-media-max-height)) auto;
  gap: 0.45rem;
}

.thumb-tile.is-empty {
  border-style: dashed;
}

.thumb-tile.is-empty::before {
  content: attr(data-empty-label);
  border: 1px dashed #5a6f8f;
  border-radius: 8px;
  grid-row: 1;
  color: #9fb2cc;
  font-size: 0.78rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.thumb-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  background: #111827;
  grid-row: 1;
}

#selectedBaseThumbImage {
  object-fit: contain;
  padding: 0.45rem;
  background: #142033;
}

#crystalThumbImage {
  object-fit: contain;
  object-position: center;
}

#uploadedThumbImage {
  object-fit: contain;
  object-position: center;
}

.thumb-caption {
  color: #e5efff;
  font-weight: 400;
  font-size: 0.78rem;
  line-height: 1.2;
  text-align: center;
}

.zoom-action-btn {
  margin-top: 0;
  width: min(220px, 42%);
  flex: 0 1 auto;
  border: 1px solid #314057;
  border-radius: 8px;
  background: #111827;
  color: #e5efff;
  font-weight: 700;
  padding: 0.45rem 0.55rem;
}

.zoom-action-btn:hover:enabled {
  background: #1b2738;
}

.zoom-action-btn.is-active {
  background: #2f4a6f;
  border-color: #2f4a6f;
  color: #ffffff;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.editor,
.preview {
  padding: 0.95rem;
}

h3 {
  font-size: 1.18rem;
}

.hint {
  margin: 0.35rem 0 0.65rem;
  color: var(--muted);
  font-size: 0.87rem;
}

.step-helper-btn {
  width: fit-content;
  max-width: 100%;
  margin: 0.8rem auto 0.45rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid #3a4a63;
  border-radius: 10px;
  background: #111827;
  color: #d1ddf2;
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: center;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease, color 140ms ease;
}

.step-helper-btn:hover {
  background: #263246;
  border-color: #53709a;
  color: #edf2ff;
}

.step-helper-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.step-helper-btn:active {
  transform: translateY(1px);
}

.step-helper-btn span {
  display: block;
}

.frame-wrap {
  border: 1px dashed #3f5170;
  border-radius: 12px;
  padding: 0.65rem;
  background: linear-gradient(140deg, #121926, #151f2d);
  display: grid;
  justify-items: center;
}

.editor-controls {
  margin-top: 0.7rem;
}

canvas {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  background: #cad7e6;
}

#editorCanvas {
  touch-action: none;
}

#previewCanvas {
  margin-inline: auto;
}

.approval {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.75rem;
  color: #d7e2f6;
}

.bg-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.25rem;
  margin-bottom: 0.35rem;
}

.bg-tool-btn {
  margin-top: 0;
  padding: 0.58rem 0.75rem;
  font-size: 0.84rem;
  line-height: 1.2;
  border-radius: 8px;
  background: #2f4a6f;
  color: #f3f7ff;
}

.bg-tool-btn:hover:enabled {
  background: #3a5d8e;
}

.bg-tool-btn.bg-tool-btn-secondary {
  background: #1f2b3e;
  border: 1px solid #54657f;
}

.bg-debug-screen {
  margin: 0.35rem 0 0.45rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #314057;
  background: #0f1726;
  color: #cfe1ff;
  font-size: 0.72rem;
  line-height: 1.35;
  white-space: pre-wrap;
  max-height: 160px;
  overflow: auto;
}

button {
  margin-top: 0.75rem;
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: #271303;
  font-weight: 800;
  cursor: pointer;
}

button:hover:enabled {
  background: var(--gold-strong);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.square-link {
  display: block;
  margin-top: 0.65rem;
  text-align: center;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.square-link:hover {
  background: #2079e4;
}

.square-link.is-disabled {
  pointer-events: none;
  opacity: 0.55;
  filter: grayscale(0.2);
}

.payment-card {
  margin-top: 0.75rem;
  padding: 0.9rem;
  border: 1px solid #31405a;
  border-radius: 14px;
  background: #101724;
}

.payment-customer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.payment-customer-grid label {
  display: grid;
  gap: 0.35rem;
  color: #d7e4f9;
  font-size: 0.84rem;
  font-weight: 700;
}

.payment-customer-grid input,
.payment-customer-grid select,
.payment-customer-grid textarea {
  width: 100%;
  padding: 0.72rem 0.78rem;
  border: 1px solid #31405a;
  border-radius: 10px;
  background: #0a1220;
  color: #fff;
  font: inherit;
}

.payment-address-field {
  grid-column: 1 / -1;
}

.checkout-summary-card {
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid #243247;
}

.checkout-summary-card > strong {
  display: block;
  margin-bottom: 0.75rem;
}

.checkout-summary-totals {
  margin-top: 0;
}

@media (max-width: 700px) {
  .payment-customer-grid {
    grid-template-columns: 1fr;
  }
}

.payment-methods-hint {
  margin: 0.55rem 0 0.75rem;
  color: #c6d5ef;
  font-size: 0.82rem;
}

.payment-method-diagnostics {
  margin: -0.25rem 0 0.8rem;
  color: #ffb4b4;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.payment-method-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.payment-method-tab {
  appearance: none;
  border: 1px solid #31405a;
  background: #0a1220;
  color: #d7e4f9;
  border-radius: 999px;
  padding: 0.6rem 0.85rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.payment-method-tab.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.payment-method-panel {
  min-height: 68px;
}

.square-card-container {
  min-height: 92px;
}

.wallet-method-container {
  min-height: 56px;
}

.payment-method-note {
  margin: 0.6rem 0 0;
  color: #c6d5ef;
  font-size: 0.8rem;
  line-height: 1.45;
}

.payment-result {
  margin-top: 0.65rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #31405a;
  border-radius: 10px;
  background: #101724;
}

.payment-result strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #8df7b0;
}

.payment-result-summary {
  margin: 0 0 0.5rem;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 700;
}

.payment-result-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.22rem 0.6rem;
  color: #c6d5ef;
  font-size: 0.82rem;
}

.turnstile-wrap {
  margin-top: 0.55rem;
  display: flex;
  justify-content: center;
}

.turnstile-slot {
  min-height: 65px;
}

@media (max-width: 720px) {
  .payment-method-tabs {
    flex-direction: column;
  }
}

.payload-box {
  min-height: 96px;
  margin-top: 0.75rem;
  border: 1px solid #31405a;
  border-radius: 10px;
  padding: 0.75rem;
  background: #101724;
  color: #c6d5ef;
  font-size: 0.75rem;
  overflow: auto;
  white-space: pre-wrap;
}

.status {
  min-height: 1.3rem;
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.status-warning {
  color: #ff6b6b;
  font-weight: 700;
}

.status-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.status-loading::before {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid rgba(198, 213, 239, 0.32);
  border-top-color: #c6d5ef;
  border-radius: 999px;
  animation: statusSpin 0.75s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .status-loading::before {
    animation: none;
  }
}

@keyframes statusSpin {
  to {
    transform: rotate(360deg);
  }
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.about-section h3 {
  margin: 0 0 0.7rem;
}

.about-intro-card {
  padding: 0.2rem 0 0.9rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.9rem;
}

.about-intro-card h3 {
  margin: 0;
}

.about-intro-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.about-section {
  padding: 1rem;
}

.contact-panel {
  display: grid;
  gap: 0.8rem;
  background: #e9edf3;
  border: 1px solid #cfd7e3;
  border-radius: 14px;
  padding: 1rem;
}

.contact-panel h3 {
  margin: 0;
}

.contact-subhead {
  margin: 0;
  color: #4f627f;
}

.contact-form {
  display: grid;
  gap: 0.65rem;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.contact-form label {
  font-weight: 700;
  color: #243650;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #c1cddd;
  border-radius: 10px;
  background: #ffffff;
  color: #1f2b3d;
  font: inherit;
  padding: 0.7rem 0.8rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-submit {
  width: auto;
  min-width: 200px;
}

.contact-dialog {
  border: none;
  border-radius: 16px;
  width: min(760px, 92vw);
  padding: 0;
  background: #e9edf3;
}

.contact-dialog::backdrop {
  background: rgba(8, 12, 20, 0.6);
}

.contact-dialog-panel {
  margin: 0;
  box-shadow: 0 18px 46px rgba(16, 25, 39, 0.28);
}

.contact-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.contact-dialog-close {
  width: auto;
  min-width: 104px;
  margin-top: 0;
  background: #d9e1ef;
  color: #243650;
  font-weight: 700;
}

.customer-portal-panel {
  display: grid;
  gap: 1.15rem;
  padding-top: 0.8rem;
}

.customer-portal-dialog {
  border: none;
  border-radius: 18px;
  width: min(1120px, 94vw);
  max-width: 1120px;
  padding: 0;
  background: #1c2534;
}

.customer-portal-dialog::backdrop {
  background: rgba(8, 12, 20, 0.7);
}

.customer-portal-dialog-panel {
  margin: 0;
  border: none;
  box-shadow: 0 22px 48px rgba(10, 18, 30, 0.34);
}

.customer-portal-dialog-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.customer-portal-header {
  display: grid;
  gap: 0.6rem;
  padding-bottom: 0.2rem;
  padding-left: 0.95rem;
  padding-right: 0.95rem;
}

.customer-portal-header h3 {
  margin: 0.1rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #eef3ff;
}

.customer-portal-eyebrow {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8f5f25;
}

.customer-portal-subhead,
.customer-portal-meta,
.customer-portal-status {
  margin: 0;
  color: #4f627f;
}

.customer-portal-subhead {
  max-width: 46rem;
  font-size: 1.02rem;
  line-height: 1.45;
  color: #7186a7;
}

.customer-portal-request-form {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  background: #f6f8fb;
  border: 1px solid #d7dfeb;
  border-radius: 14px;
}

.customer-portal-request-form label {
  font-weight: 700;
  color: #243650;
}

.customer-portal-request-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.customer-portal-request-row input {
  border: 1px solid #c1cddd;
  border-radius: 10px;
  background: #ffffff;
  color: #1f2b3d;
  font: inherit;
  padding: 0.8rem 0.9rem;
}

.customer-portal-results {
  display: grid;
  gap: 1rem;
}

.customer-portal-results-header {
  display: grid;
  gap: 0.18rem;
  padding: 0.25rem 0.95rem 0.25rem;
}

.customer-portal-results-header strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #f3f7ff;
}

.customer-portal-orders {
  display: grid;
  gap: 0.9rem;
}

.customer-portal-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  background: #f6f8fb;
  border: 1px solid #d7dfeb;
  border-radius: 14px;
  color: #314865;
}

.customer-portal-card-toggle {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1.25rem;
  width: 100%;
  padding: 1.15rem 1.3rem;
  border: 1px solid #d9e2ee;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%);
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.customer-portal-card-toggle:hover {
  background: linear-gradient(180deg, #fff9ef 0%, #f8edd9 100%);
  border-color: #d8b57a;
  box-shadow: 0 10px 22px rgba(24, 37, 58, 0.07);
}

.customer-portal-card-toggle:focus-visible {
  outline: none;
  border-color: #c6903c;
  box-shadow: 0 0 0 3px rgba(210, 159, 69, 0.22);
}

.customer-portal-card[data-expanded="true"] .customer-portal-card-toggle {
  background: linear-gradient(180deg, #f8e6c4 0%, #f2d39a 100%);
  border-color: #d2aa68;
}

.customer-portal-card-heading {
  min-width: 0;
  display: grid;
  gap: 0.38rem;
  padding-right: 0.85rem;
}

.customer-portal-card-toggle-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 0.2rem;
  flex: 0 0 auto;
}

.customer-portal-card-chevron {
  color: #637896;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.customer-portal-card[data-expanded="true"] .customer-portal-card-chevron {
  transform: rotate(180deg);
}

.customer-portal-card-details {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(180px, 0.9fr) minmax(180px, 0.9fr);
  gap: 0.9rem;
  align-items: start;
}

.customer-portal-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  background: #edf3fa;
  border: 1px solid #d7dfeb;
  grid-column: 1;
  grid-row: 1 / span 2;
}

.customer-portal-timeline-step {
  display: grid;
  grid-template-columns: 0.82rem minmax(140px, auto) minmax(180px, 1fr);
  align-items: center;
  column-gap: 0.75rem;
  opacity: 0.62;
}

.customer-portal-timeline-step.is-complete,
.customer-portal-timeline-step.is-current {
  opacity: 1;
}

.customer-portal-timeline-dot {
  width: 0.82rem;
  height: 0.82rem;
  margin-top: 0.24rem;
  border-radius: 999px;
  flex: 0 0 auto;
  background: #c2cede;
  box-shadow: inset 0 0 0 2px #ffffff;
}

.customer-portal-timeline-step.is-complete .customer-portal-timeline-dot {
  background: #4d78a8;
}

.customer-portal-timeline-step.is-current .customer-portal-timeline-dot {
  background: #d29f45;
}

.customer-portal-timeline-copy strong {
  display: block;
  color: #243650;
}

.customer-portal-timeline-copy span {
  display: block;
  color: #637896;
  font-size: 0.9rem;
}

.customer-portal-timeline-copy {
  display: contents;
}

@media (max-width: 700px) {
  .customer-portal-timeline-step {
    grid-template-columns: 0.82rem 1fr;
    row-gap: 0.08rem;
  }

  .customer-portal-timeline-copy strong,
  .customer-portal-timeline-copy span {
    grid-column: 2;
  }
}

.customer-portal-card-title {
  margin: 0;
  color: #243650;
  line-height: 1.2;
  font-size: 1rem;
}

.customer-portal-card-subtitle {
  margin: 0;
  color: #637896;
  line-height: 1.3;
  font-size: 0.95rem;
}

.customer-portal-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #dce7f5;
  color: #1f466d;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.customer-portal-summary {
  display: contents;
}

.customer-portal-summary-item,
.customer-portal-items {
  padding: 0.95rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.customer-portal-summary-item.is-total {
  grid-column: 2;
  grid-row: 1;
}

.customer-portal-summary-item.is-fulfillment {
  grid-column: 3;
  grid-row: 1;
}

.customer-portal-summary-item.is-tracking {
  grid-column: 3;
  grid-row: 2;
}

.customer-portal-items {
  grid-column: 2;
  grid-row: 2;
}

.customer-portal-summary strong,
.customer-portal-items strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #243650;
}

.customer-portal-summary span {
  display: block;
  color: #314865 !important;
  font-weight: 600;
}

.customer-portal-tracking-link {
  color: #2a5f96;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.customer-portal-tracking-link:hover,
.customer-portal-tracking-link:focus-visible {
  color: #1f466d;
}

.customer-portal-items ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #314865 !important;
}

@media (max-width: 700px) {
  .customer-portal-card-details {
    grid-template-columns: 1fr;
  }

  .customer-portal-dialog {
    width: min(94vw, 94vw);
  }

  .customer-portal-dialog-header {
    flex-direction: column;
  }

  .customer-portal-timeline,
  .customer-portal-summary-item.is-total,
  .customer-portal-summary-item.is-fulfillment,
  .customer-portal-summary-item.is-tracking,
  .customer-portal-items {
    grid-column: auto;
    grid-row: auto;
  }

  .customer-portal-request-row {
    grid-template-columns: 1fr;
  }

  .customer-portal-card-toggle {
    flex-direction: column;
    padding: 1rem 1.05rem;
  }

  .customer-portal-card-toggle-meta {
    width: 100%;
    justify-content: space-between;
    padding-top: 0;
  }
}

.contact-dialog-close:hover:enabled {
  background: #bccbdd;
}

.image-lightbox-dialog {
  border: none;
  padding: 0;
  background: transparent;
  width: min(560px, 72vw);
  max-width: 560px;
}

.image-lightbox-dialog::backdrop {
  background: rgba(4, 8, 14, 0.88);
}

.image-lightbox-panel {
  position: relative;
  margin: 0;
  padding: 2.75rem 1rem 1rem;
}

.image-lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(12, 18, 28, 0.88);
  color: #f8fbff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.image-lightbox-close:hover {
  background: rgba(26, 36, 52, 0.96);
}

.image-lightbox-panel img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: calc(50vh - 2rem);
  object-fit: contain;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
}

#dynamicPagesAfterHome,
#dynamicPagesAfterBuilder,
#dynamicPagesAfterAbout,
#dynamicPagesAfterReviews,
#dynamicPagesBeforeFooter {
  display: grid;
  gap: 1rem;
}

.dynamic-page {
  padding: 1rem;
}

.dynamic-page h3 {
  margin-bottom: 0.65rem;
}

.dynamic-page-grid {
  display: grid;
  gap: 0.85rem;
}

.dynamic-layout-1-over-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dynamic-layout-1-over-2 .dynamic-card:first-child {
  grid-column: span 2;
}

.dynamic-layout-2-over-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dynamic-layout-3-over-2 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dynamic-layout-2-over-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dynamic-layout-3-over-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: initial;
  justify-items: center;
}

.dynamic-layout-4-over-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: initial;
  justify-items: center;
}

.dynamic-page-grid.dynamic-layout-3-over-3,
.dynamic-page-grid.dynamic-layout-4-over-4 {
  overflow: visible;
  align-items: stretch;
}

.dynamic-layout-3-over-3 .dynamic-card,
.dynamic-layout-4-over-4 .dynamic-card {
  width: min(360px, 100%);
  min-width: 0;
  max-width: 360px;
  height: auto;
  display: flex;
  flex-direction: column;
}

.dynamic-layout-3-over-3 .dynamic-card img,
.dynamic-layout-4-over-4 .dynamic-card img {
  height: 269px;
  min-height: 0;
  flex: 0 0 auto;
  object-fit: contain;
  background: #0f1623;
}

.dynamic-layout-3-over-3 .dynamic-card-copy,
.dynamic-layout-4-over-4 .dynamic-card-copy {
  min-height: 52px;
  display: grid;
  place-items: center;
  padding: 0.55rem;
}

.dynamic-layout-3-over-3 .dynamic-card h4,
.dynamic-layout-4-over-4 .dynamic-card h4 {
  margin: 0;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.2;
}

.dynamic-layout-5-over-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  justify-content: initial;
  justify-items: center;
}

.dynamic-page-grid.dynamic-layout-5-over-5 {
  overflow: visible;
  align-items: stretch;
}

.dynamic-layout-5-over-5 .dynamic-card {
  width: min(218px, 100%);
  min-width: 0;
  max-width: 218px;
  height: auto;
  display: flex;
  flex-direction: column;
}

.dynamic-layout-5-over-5 .dynamic-card img {
  height: 280px;
  min-height: 0;
  flex: 0 0 auto;
}

.dynamic-layout-5-over-5 .dynamic-card-copy {
  min-height: 52px;
  display: grid;
  place-items: center;
  padding: 0.55rem;
}

.dynamic-layout-5-over-5 .dynamic-card h4 {
  margin: 0;
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.2;
}

.dynamic-layout-2-over-4 .dynamic-card:nth-child(-n+2) {
  grid-column: span 2;
}

.dynamic-page-accordion {
  display: grid;
  gap: 0.5rem;
}

.dynamic-accordion-item {
  border: 1px solid #d9d2c6;
  border-radius: 10px;
  background: #c8cfdb;
  overflow: hidden;
}

.dynamic-accordion-summary {
  cursor: pointer;
  list-style: none;
  padding: 0.8rem 1rem;
  font-weight: 700;
  background: #c8cfdb;
  color: #1f2b3d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.18s ease;
}

.dynamic-accordion-summary:hover {
  background: #ffffff;
}

.dynamic-accordion-item[open] .dynamic-accordion-summary {
  background: #ffffff;
}

.dynamic-accordion-summary::-webkit-details-marker {
  display: none;
}

.dynamic-accordion-summary::after {
  content: "+";
  color: #4f617b;
  font-size: 1rem;
}

.dynamic-accordion-item[open] .dynamic-accordion-summary::after {
  content: "-";
}

.dynamic-accordion-body {
  border-top: 1px solid #e3e8f0;
  padding: 0.8rem 1rem;
  background: #ffffff;
  color: #111827;
  display: grid;
  gap: 0.6rem;
}

.dynamic-accordion-body .dynamic-card-richtext,
.dynamic-accordion-body .dynamic-card-richtext p,
.dynamic-accordion-body .dynamic-card-richtext li,
.dynamic-accordion-body .dynamic-card-richtext strong,
.dynamic-accordion-body .dynamic-card-richtext b {
  color: #111827;
}

.dynamic-accordion-body .dynamic-card-richtext a {
  color: #1f2b3d;
}

.dynamic-accordion-body img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 8px;
}

.dynamic-card {
  border: 1px solid #30405a;
  border-radius: 12px;
  background: #121a28;
  overflow: hidden;
}

.dynamic-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.dynamic-card-copy {
  padding: 0.8rem;
}

.dynamic-card h4 {
  font-size: 1.06rem;
}

#page-examples .dynamic-card-copy {
  display: none;
}

#page-examples .dynamic-card img {
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  cursor: zoom-in;
}

.dynamic-card p {
  margin: 0.5rem 0 0;
  color: #d2ddf1;
}

.dynamic-card-richtext {
  margin: 0.5rem 0 0;
  color: #d2ddf1;
}

.dynamic-card-richtext p {
  margin: 0 0 0.55rem;
}

.dynamic-card-richtext p:last-child {
  margin-bottom: 0;
}

.dynamic-card-cta {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.dynamic-card-cta:hover {
  color: var(--gold-strong);
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.value-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: #0f1726;
}

.value-card div {
  padding: 0.8rem;
}

.value-card h4 {
  font-size: 1.12rem;
}

.value-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0.3rem 0;
}

.footer-inline-link {
  color: inherit;
  text-underline-offset: 0.16em;
}

.footer-inline-link:hover,
.footer-inline-link:focus-visible {
  color: #ffffff;
}

.footer-social-links {
  margin: 0.95rem 0 0.95rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #2b4b74;
  font-weight: 700;
  font-size: 1.12rem;
  text-decoration: none;
}

.footer-social-icon {
  width: 48px;
  height: 48px;
  display: inline-block;
  object-fit: contain;
}

.footer-social-icon.icon-hover {
  display: none;
}

.footer-social-link:hover .footer-social-icon.icon-default,
.footer-social-link:focus-visible .footer-social-icon.icon-default {
  display: none;
}

.footer-social-link:hover .footer-social-icon.icon-hover,
.footer-social-link:focus-visible .footer-social-icon.icon-hover {
  display: inline-block;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: #ffffff;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  text-decoration: underline;
}

.testimonials {
  padding: 1rem;
}

.testimonials h3 {
  margin-bottom: 0.6rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.testimonial-grid article {
  border: 1px solid #30405a;
  border-radius: 12px;
  background: #121a28;
  padding: 0.8rem;
}

.testimonial-grid p {
  margin: 0;
  color: #d2ddf1;
}

.testimonial-grid span {
  display: block;
  margin-top: 0.55rem;
  color: #95a6c4;
  font-size: 0.82rem;
}

.google-reviews-card {
  margin-top: 1rem;
  border: 1px solid #30405a;
  border-radius: 16px;
  background: linear-gradient(145deg, #121a28, #162132);
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
}

.google-reviews-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.85rem;
}

.google-reviews-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 0.55rem;
}

.google-reviews-eyebrow {
  margin: 0 0 0.2rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.google-reviews-card h4 {
  font-size: 1.05rem;
}

.google-reviews-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 0.95rem;
  border: 1px solid #3d5375;
  border-radius: 999px;
  background: #111827;
  color: #e6eefc;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.google-reviews-cta:hover {
  border-color: #6e86a9;
  background: #172132;
}

.google-reviews-cta.is-secondary {
  background: transparent;
}

.google-reviews-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #2f425f;
  border-radius: 14px;
  background: rgba(24, 35, 52, 0.72);
}

.google-reviews-score-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.google-reviews-score {
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  line-height: 1;
}

.google-reviews-stars {
  color: var(--gold);
  letter-spacing: 0.12em;
  font-size: 0.96rem;
}

.google-reviews-meta {
  margin: 0;
  color: #9eb1cc;
  text-align: right;
}

.google-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.google-review-item {
  border: 1px solid #30405a;
  border-radius: 14px;
  background: #121a28;
  padding: 0.9rem;
  display: grid;
  gap: 0.55rem;
  overflow: hidden;
}

.google-review-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.google-review-author {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.google-review-author-name {
  color: #f0f5ff;
  font-weight: 700;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.google-review-time {
  color: #8fa2bf;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.google-review-rating {
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  flex: 0 0 auto;
  white-space: nowrap;
}

.google-review-text {
  margin: 0;
  color: #d2ddf1;
  line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  word-break: break-word;
}

.google-review-link {
  color: #91a4c0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.google-review-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.google-review-item.is-placeholder {
  border-style: dashed;
}

.google-review-item.is-placeholder .google-review-author-name {
  color: #d9e3f4;
}

.google-review-status {
  margin: 0;
  color: #9eb1cc;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .brand {
    width: min(360px, 52vw);
  }

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

  .hero-image-wrap {
    max-height: 320px;
  }

  .hero-carousel-dots {
    bottom: 0.8rem;
  }

  .controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .dynamic-layout-1-over-2,
  .dynamic-layout-2-over-2,
  .dynamic-layout-3-over-2,
  .dynamic-layout-2-over-4 {
    grid-template-columns: 1fr;
  }

  .dynamic-layout-3-over-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dynamic-layout-4-over-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dynamic-layout-5-over-5 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: initial;
  }

  .dynamic-layout-3-over-3 .dynamic-card,
  .dynamic-layout-4-over-4 .dynamic-card,
  .dynamic-layout-5-over-5 .dynamic-card {
    width: auto;
    min-width: 0;
    max-width: none;
    height: auto;
  }

  .dynamic-layout-3-over-3 .dynamic-card img,
  .dynamic-layout-4-over-4 .dynamic-card img {
    height: 269px;
    object-fit: contain;
  }

  #page-examples .dynamic-layout-3-over-3,
  #page-examples .dynamic-layout-4-over-4,
  #page-examples .dynamic-layout-5-over-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #page-examples .dynamic-layout-3-over-3 .dynamic-card:nth-child(n + 3) {
    display: none;
  }

  #page-examples .dynamic-layout-5-over-5 .dynamic-card:nth-child(n + 5) {
    display: none;
  }
}

@media (max-width: 760px) {
  .dynamic-layout-3-over-3 {
    grid-template-columns: 1fr;
  }

  .dynamic-layout-4-over-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dynamic-layout-5-over-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .dynamic-layout-4-over-4 {
    grid-template-columns: 1fr;
  }

  .dynamic-layout-5-over-5 .dynamic-card {
    height: auto;
  }
}

@media (max-width: 520px) {
  .dynamic-layout-5-over-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .dynamic-layout-5-over-5 {
    grid-template-columns: 1fr;
  }

  .dynamic-layout-1-over-2 .dynamic-card:first-child,
  .dynamic-layout-2-over-4 .dynamic-card:nth-child(-n+2) {
    grid-column: span 1;
  }

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

  .google-reviews-card-header,
  .google-reviews-summary {
    grid-template-columns: 1fr;
    display: grid;
  }

  .google-reviews-actions {
    justify-content: start;
  }

  .google-reviews-meta {
    text-align: left;
  }

  .google-reviews-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand {
    width: 62vw;
  }

  .google-review-item {
    gap: 0.65rem;
  }

  .google-review-head {
    gap: 0.55rem;
  }

  .google-review-author-name {
    font-size: 0.98rem;
  }

  .google-review-text {
    -webkit-line-clamp: 7;
  }

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

  .builder-step-1 {
    order: 1;
  }

  .builder-step-2 {
    order: 2;
  }

  .builder-step-3 {
    order: 3;
  }

  .builder-step-4 {
    order: 4;
  }

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

  .thumb-grid-single .thumb-tile {
    max-width: none;
  }

  .hero-copy {
    padding: 1.35rem;
  }
}

@media (max-width: 700px) {
  .top-nav {
    align-items: center;
    flex-wrap: wrap;
  }

  .brand {
    width: min(300px, 64vw);
  }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--line);
  }

  .top-nav.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.55rem 0.65rem;
  }
}
