.config-page .config {
  padding-top: 160px;
  padding-bottom: 48px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 36px;
  align-items: start;
}

.workspace.is-hidden,
.is-hidden {
  display: none !important;
}

.package-gate {
  margin-bottom: 40px;
}

.gate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gate-grid .package-card {
  cursor: pointer;
  padding: 22px 24px;
  border-radius: 24px;
  gap: 8px;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gate-grid .package-card h3 {
  font-size: 24px;
}

.gate-grid .package-price {
  font-size: 24px;
  margin: 4px 0 8px;
}

.gate-grid .package-card ul {
  gap: 6px;
  margin-bottom: 12px;
}

.gate-grid .package-card li {
  font-size: 13px;
}

.gate-grid .package-card.featured {
  grid-column: 1 / -1;
  background: #fff;
  box-shadow: 0 18px 40px rgba(12, 12, 12, 0.1);
  border-color: transparent;
}

.gate-grid .package-badge {
  top: 16px;
  right: 16px;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  letter-spacing: 1.1px;
}

.gate-grid .featured-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
  align-items: start;
}

.gate-grid .featured-copy h3,
.gate-grid .featured-copy .package-for,
.gate-grid .featured-copy .package-price {
  grid-column: 1;
}

.gate-grid .featured-copy ul {
  grid-column: 2;
  grid-row: 1 / 4;
  margin: 0;
}

.gate-grid .featured-copy .package-btn {
  grid-column: 1;
  margin-top: 4px;
}

@media (max-width: 700px) {
  .gate-grid {
    grid-template-columns: 1fr;
  }

  .gate-grid .package-card.featured {
    grid-column: auto;
  }

  .gate-grid .featured-copy {
    grid-template-columns: 1fr;
  }

  .gate-grid .featured-copy ul {
    grid-column: auto;
    grid-row: auto;
  }
}

.package-card.is-picked {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue), 0 12px 28px rgba(5, 90, 250, 0.18);
}

.gate-grid .package-card.featured.is-picked {
  box-shadow: 0 0 0 2px var(--blue), 0 18px 40px rgba(5, 90, 250, 0.16);
}

.gate-grid .package-card.is-picked .package-btn {
  background: var(--blue);
  color: #fff;
}

.pack-check {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(5, 90, 250, 0.35);
  opacity: 0;
  transform: scale(0.35);
  pointer-events: none;
  z-index: 3;
}

.pack-check .material-icons {
  font-size: 20px;
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
}

.pack-check.is-pop {
  animation: pack-check-pop 0.5s cubic-bezier(0.2, 1.5, 0.3, 1) forwards;
}

@keyframes pack-check-pop {
  0% {
    opacity: 0;
    transform: scale(0.25) rotate(-25deg);
  }
  58% {
    opacity: 1;
    transform: scale(1.18) rotate(8deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.package-includes {
  margin-top: 32px;
}

.includes-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.includes-sub {
  color: var(--text-soft);
  margin-bottom: 16px;
  font-size: 15px;
}

.includes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.includes-list li {
  padding-left: 22px;
  position: relative;
  font-size: 15px;
  line-height: 1.4;
}

.includes-list.yes li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  position: absolute;
  left: 0;
  top: 7px;
}

.includes-list.no li {
  color: #999;
}

.includes-list.no li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  position: absolute;
  left: 0;
  top: 7px;
}

.includes-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e6e6e6;
}

.package-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  color: #666;
}

.package-chip[hidden] {
  display: none !important;
}

.package-chip strong {
  color: var(--blue);
  font-weight: 700;
}

.package-chip #active-package-price {
  color: #888;
}

.package-chip .text-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

.package-chip .lucide {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.chip.is-locked {
  opacity: 0.38;
  pointer-events: none;
}

@media (max-width: 800px) {
  .includes-split {
    grid-template-columns: 1fr;
  }
}

.iphone-dock {
  position: sticky;
  top: 110px;
}

.dock-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 18px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e11d48;
  box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.55);
  animation: live-pulse 1.6s ease-out infinite;
  flex-shrink: 0;
}

.live-word {
  color: #e11d48;
}

.live-rest {
  color: #666;
  font-weight: 500;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(225, 29, 72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

.stepper {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  cursor: pointer;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  height: 2px;
  background: #d8d8d8;
}

.step.is-done:not(:last-child)::after,
.step.is-active:not(:last-child)::after {
  background: var(--blue);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #d0d0d0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  z-index: 1;
}

.step.is-active .step-num,
.step.is-done .step-num {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.step-label {
  font-size: 13px;
  font-weight: 500;
  color: #888;
  text-align: center;
}

.step.is-active .step-label {
  color: var(--text);
  font-weight: 600;
}

.step-panel {
  display: none;
  flex-direction: column;
  gap: 24px;
}

.step-panel.is-active {
  display: flex;
}

.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #e6e6e6;
}

.step-nav-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-left: auto;
}

.step-nav .save-btn,
.step-nav .save-btn.ghost {
  min-width: 148px;
}

.save-btn[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  .step-label {
    font-size: 11px;
  }

  .step-nav {
    flex-wrap: wrap;
  }

  .step-nav .save-btn,
  .step-nav .save-btn.ghost {
    flex: 1;
    min-width: 0;
  }

  .step-nav-end {
    flex: 1;
    width: 100%;
    margin-left: 0;
  }
}

.config-head {
  max-width: 760px;
  margin-bottom: 40px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.config-head-copy {
  min-width: 0;
}

.pack-next {
  flex: none;
  appearance: none;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 18px 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(5, 90, 250, 0.28);
}

.config-head.has-pack .pack-next {
  display: inline-flex;
}

.pack-next.is-pop {
  animation: pack-next-in 0.45s cubic-bezier(0.2, 1.3, 0.3, 1) both;
}

.pack-next .material-icons {
  font-size: 22px;
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
}

@media (max-width: 700px) {
  .config-head {
    flex-wrap: wrap;
  }

  .pack-next {
    width: 100%;
  }
}

@keyframes pack-next-in {
  from {
    opacity: 0;
    transform: translateX(12px) scale(0.86);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.config-head h1, .config-head h2 {
  font-size: 48px;
  font-weight: 700;
  line-height: 120%;
  margin-bottom: 16px;
}

.config-head.is-wizard {
  margin-bottom: 24px;
}

.config-head.is-wizard h1, .config-head.is-wizard h2 {
  margin-bottom: 8px;
}

.config-head p,
.ai-help {
  font-size: 18px;
  font-weight: 400;
  line-height: 140%;
  color: var(--text-soft);
}

.config-head.tight {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: none;
  margin-bottom: 28px;
}

.config-head.tight h3 {
  font-size: 32px;
  margin-bottom: 10px;
  white-space: nowrap;
}

.config-form,
.items-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.checkout-head {
  margin-bottom: 24px;
}

.checkout-head h3 {
  font-size: 32px;
  margin-bottom: 10px;
}

.checkout-head p,
.checkout-note {
  font-size: 16px;
  line-height: 140%;
  color: var(--text-soft);
}

.checkout-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: stretch;
}

.checkout-summary {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid #ececec;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  min-height: 100%;
}

.checkout-summary > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 13px 16px;
  border-top: 1px solid #f0f0f0;
}

.checkout-summary > div:first-child {
  border-top: 0;
}

.checkout-summary dt {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
}

.checkout-summary dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.checkout-summary__total {
  background: #f6f8ff;
  margin-top: auto;
}

.checkout-summary__total dt {
  font-weight: 650;
  color: var(--text);
}

.checkout-summary__total dd {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue, #055afa);
}

.checkout-buyer {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px 18px 16px;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #fafbff;
}

.checkout-buyer h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 650;
}

.checkout-buyer__hint {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 145%;
  color: var(--text-soft);
}

.checkout-buyer__grid {
  display: grid;
  gap: 14px;
}

.checkout-buyer label.is-req span::after {
  content: " *";
  color: var(--blue, #055afa);
}

.checkout-buyer input:read-only {
  opacity: 0.7;
  cursor: default;
}

.checkout-note {
  margin: 18px 0 0;
}

.checkout-brands {
  margin: 8px 0 0;
  font-size: 13px;
  color: #888;
}

.checkout-pay {
  margin-top: 22px;
  padding: 22px 22px 18px;
  border: 1px solid #e4eaf6;
  border-radius: 20px;
  background: linear-gradient(180deg, #f7f9ff 0%, #fff 56px);
}

.pay-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef1f8;
}

.pay-panel__title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pay-panel__title strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
}

.pay-panel__title > div span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-soft);
}

.pay-lock {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #055afa14;
  color: var(--blue, #055afa);
}

.checkout-pay .pay-marks {
  gap: 10px;
}

.checkout-pay .pay-mark {
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #eceff5;
  border-radius: 12px;
  box-shadow: 0 1px 2px #00000008;
}

.pay-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.pay-trust li {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4a5568;
  background: #eef2fb;
  border-radius: 999px;
  padding: 6px 10px;
}

.checkout-pay .pay-secure {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eef1f8;
}

.config-card label.checkout-terms {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-soft);
  cursor: pointer;
  user-select: none;
}

.checkout-terms input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.checkout-terms::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid #c5cad6;
  background: #fff center / 13px no-repeat;
  box-shadow: inset 0 1px 2px #0000000a;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.checkout-terms:hover::before {
  border-color: var(--blue, #055afa);
}

.checkout-terms:has(input:checked)::before {
  border-color: var(--blue, #055afa);
  background-color: var(--blue, #055afa);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.2 8.3l3.1 3.1 6.5-6.6'/%3E%3C/svg%3E");
  box-shadow: 0 1px 4px #055afa33;
}

.checkout-terms:has(input:focus-visible)::before {
  outline: 2px solid var(--blue, #055afa);
  outline-offset: 2px;
}

.checkout-terms:active::before {
  transform: scale(0.94);
}

.checkout-terms span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.checkout-terms a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkout-done {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f0f7ff;
  border: 1px solid #d6e6ff;
}

.checkout-warn {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff8ee;
  border: 1px solid #f0ddc0;
}

.checkout-done strong,
.checkout-warn strong {
  display: block;
  margin-bottom: 6px;
}

.checkout-done p,
.checkout-warn p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 140%;
}

#retry-provision {
  margin-top: 14px;
}

.checkout-error {
  margin-top: 16px;
  font-size: 14px;
  color: #b42318;
}

.config-card {
  background: var(--white);
  border: 1px solid #00000014;
  border-radius: 28px;
  padding: 32px;
}

.config-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.config-card h3.with-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}

.config-card label,
.item-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.config-card input,
.config-card select,
.item-form input {
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #f7f7f7;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.config-card input:focus,
.config-card select:focus,
.item-form input:focus {
  border-color: var(--blue);
  background: #fff;
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.chip-row {
  display: flex;
  gap: 10px;
}

.chip-row.wrap {
  flex-wrap: wrap;
}

.chip {
  border: 1px solid #d0d0d0;
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.chip.is-active {
  border-color: var(--blue);
  color: var(--blue);
  background: #055afa12;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.media-card input[type="url"] {
  width: 100%;
  margin-bottom: 12px;
}

.file-drop {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px dashed #cfcfcf;
  border-radius: 10px;
  color: #888;
  font-size: 13px;
  cursor: pointer;
}

.media-bar {
  height: 6px;
  background: var(--blue);
  border-radius: 999px;
  margin-top: 18px;
}

.color-grid,
.gradient-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
}

.colors-card {
  padding: 18px 20px 16px;
  overflow: visible;
}

.colors-card h3 {
  margin-bottom: 0;
}

.colors-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.palette-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.palette-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px 0 8px;
  border: 1px solid #e4e4e4;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
}

.palette-btn:hover {
  border-color: #ccc;
}

.palette-btn.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(5, 90, 250, 0.16);
  background: #f4f8ff;
}

.palette-dots {
  display: flex;
  gap: 3px;
}

.palette-dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: block;
}

.palette-name {
  font-size: 12px;
  font-weight: 600;
}

.colors-card .color-field,
.colors-card .gradient-card {
  background: #f7f7f7;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 8px 10px;
  overflow: visible;
}

.color-field-head,
.colors-card .gradient-card strong {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #555;
  white-space: nowrap;
}

.color-tip {
  position: relative;
  display: inline-flex;
  flex: none;
  z-index: 1;
  outline: none;
}

.color-tip:hover,
.color-tip:focus-within,
.color-tip:focus {
  z-index: 8;
}

.color-tip-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #c8c8c8;
  background: #fff;
  color: #666;
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
  text-align: center;
  cursor: help;
}

.color-tip:hover .color-tip-mark,
.color-tip:focus .color-tip-mark {
  border-color: var(--blue);
  color: var(--blue);
}

.color-tip--on-title .color-tip-mark {
  width: 16px;
  height: 16px;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  line-height: 16px;
}

.color-tip--on-title:hover .color-tip-mark,
.color-tip--on-title:focus .color-tip-mark {
  border: 0;
  color: #fff;
  background: #0446c9;
}

.color-tip-pop {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: 210px;
  padding: 8px 10px;
  background: #1c1c1e;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: left;
  white-space: normal;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.color-tip-pop--wide {
  width: 280px;
}

.color-tip-pop::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-bottom-color: #1c1c1e;
  border-top-width: 0;
}

.color-tip:hover .color-tip-pop,
.color-tip:focus .color-tip-pop,
.color-tip:focus-within .color-tip-pop {
  display: block;
}

.color-grid > :nth-child(4n) .color-tip-pop,
.gradient-grid > :nth-child(4n) .color-tip-pop {
  left: auto;
  right: 0;
  transform: none;
}

.color-grid > :nth-child(4n) .color-tip-pop::before,
.gradient-grid > :nth-child(4n) .color-tip-pop::before {
  left: auto;
  right: 4px;
  margin-left: 0;
}

.color-line,
.grad-pair,
.grad-one {
  display: flex;
  align-items: center;
  gap: 6px;
}

.grad-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.grad-one {
  min-width: 0;
}

.grad-one .color-tip:last-child .color-tip-pop {
  left: auto;
  right: 0;
  transform: none;
}

.grad-one .color-tip:last-child .color-tip-pop::before {
  left: auto;
  right: 4px;
  margin-left: 0;
}

.colors-card .color-line input[type="color"],
.colors-card .grad-pair input[type="color"] {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  flex: none;
}

.colors-card .color-line input[type="text"],
.colors-card .grad-pair input[type="text"] {
  flex: 1;
  min-width: 0;
  height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.colors-card .color-field select {
  height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.gradient-grid {
  margin-top: 8px;
}

.swatch-row {
  display: flex;
  gap: 5px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  overflow: hidden;
  max-width: 58%;
}

.swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.save-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s ease;
}

.save-btn:hover {
  background: #0048d6;
}

.save-btn.small {
  height: 48px;
  margin-top: 8px;
}

.save-btn.ghost {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--blue);
}

.save-btn.ghost:hover {
  background: #055afa12;
}

.items-panel {
  position: relative;
  margin-top: 48px;
}

.items-panel.is-locked .items-body {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

.items-lock {
  display: none;
}

.items-panel.is-locked .items-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #f0f0f0cc;
  border-radius: 28px;
  text-align: center;
  padding: 40px;
  font-size: 20px;
  font-weight: 500;
}

.item-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.item-form .save-btn {
  grid-column: 1 / -1;
}

.ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.ai-status {
  margin-top: 16px;
  font-size: 14px;
  color: var(--blue);
}

.ai-progress {
  height: 6px;
  background: #e8e8e8;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 10px;
}

.ai-progress span {
  display: block;
  height: 100%;
  width: 30%;
  background: var(--blue);
  animation: load 1.1s ease infinite;
}

@keyframes load {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.items-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.items-toolbar h3 {
  margin: 0;
}

#item-count {
  color: var(--blue);
  font-weight: 500;
  font-size: 14px;
}

.text-btn {
  border: 0;
  background: none;
  color: #888;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

.items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
}

.item-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: #f7f7f7;
  border-radius: 14px;
}

.item-row strong {
  display: block;
}

.item-row small {
  color: #888;
}

.item-row .price {
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}

.item-row button {
  border: 0;
  background: none;
  color: #999;
  cursor: pointer;
  font-size: 18px;
}

.preview-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.iphone {
  --iphone-w: 332px;
  width: var(--iphone-w);
  margin: 0 auto;
  position: relative;
  filter: drop-shadow(0 28px 50px rgba(12, 12, 12, 0.28));
}

.iphone-btn {
  position: absolute;
  background: linear-gradient(90deg, #2b2b2d, #1a1a1c);
  z-index: 2;
}

.iphone-btn.silent {
  left: -3px;
  top: 118px;
  width: 4px;
  height: 28px;
  border-radius: 2px 0 0 2px;
}

.iphone-btn.vol-up {
  left: -3px;
  top: 168px;
  width: 4px;
  height: 52px;
  border-radius: 2px 0 0 2px;
}

.iphone-btn.vol-down {
  left: -3px;
  top: 230px;
  width: 4px;
  height: 52px;
  border-radius: 2px 0 0 2px;
}

.iphone-btn.power {
  right: -3px;
  top: 190px;
  width: 4px;
  height: 78px;
  border-radius: 0 2px 2px 0;
}

.iphone-frame {
  background:
    linear-gradient(165deg, #4a4a4e 0%, #1c1c1e 22%, #0a0a0b 55%, #2c2c30 100%);
  border-radius: 54px;
  padding: 11px;
  border: 1px solid #5a5a60;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.28),
    inset 0 -1px 2px rgba(0, 0, 0, 0.65);
}

.iphone-glass {
  position: relative;
  border-radius: 44px;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.iphone-screen {
  height: 680px;
  overflow: auto;
  background: #fff;
  scrollbar-width: none;
  position: relative;
  z-index: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.iphone-screen.is-item-open {
  overflow: hidden;
  touch-action: none;
}

.iphone-screen::-webkit-scrollbar {
  display: none;
}

.iphone-chrome {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.dynamic-island {
  width: 108px;
  height: 31px;
  background: #000;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding: 0 11px 0 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.island-lens {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a1a1c;
  box-shadow: inset 0 0 0 1px #111;
}

.island-camera {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #3d6a9a 0 18%, #16324f 28%, #071018 70%);
  box-shadow: inset 0 0 0 1.5px #0b0b0d, 0 0 0 1px #1c1c1e;
}

.iphone-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 22px 11px;
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

.iphone.is-dark .iphone-status {
  color: #f5f5f7;
}

.iphone-time {
  justify-self: start;
  display: flex;
  align-items: center;
  height: 31px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  padding: 1px 0 0 4px;
}

.iphone-stats {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 31px;
  gap: 5px;
  padding-right: 2px;
}

.iphone-stats svg {
  display: block;
  flex-shrink: 0;
}

.stat-signal {
  width: 17px;
  height: 11px;
}

.stat-wifi {
  width: 15px;
  height: 11px;
}

.stat-battery {
  width: 25px;
  height: 12px;
}

.iphone-home {
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  width: 118px;
  height: 5px;
  border-radius: 99px;
  background: #1d1d1f;
  opacity: 0.92;
}

.iphone.is-dark .iphone-home {
  background: #f5f5f7;
}

.guest {
  min-height: 100%;
  font-family: Roboto, Geist, sans-serif;
}

.gm-banner {
  height: 150px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.gm-banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 56px;
  background: linear-gradient(transparent, var(--gm-bg, #fff));
}

.gm-logo-wrap {
  display: flex;
  justify-content: center;
  margin-top: -42px;
  position: relative;
  z-index: 1;
}

.gm-logo,
.gm-logo-fallback {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gm-bg, #fff);
  background: var(--gm-primary, #055afa);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.gm-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 28px;
}

.gm-info {
  text-align: center;
  padding: 10px 16px 6px;
}

.gm-info h1 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.gm-info p {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.75;
  line-height: 1.35;
}

.gm-langs {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.gm-lang {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 99px;
  border: 1px solid currentColor;
  opacity: 0.7;
}

.gm-lang.is-on {
  opacity: 1;
  background: var(--gm-primary);
  color: var(--gm-text-accent, #fff);
  border-color: transparent;
}

.gm-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 14px 6px;
  scrollbar-width: none;
}

.gm-cat {
  flex: none;
  border: 0;
  border-radius: 99px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

.gm-items {
  padding: 6px 14px 16px;
}

.gm-items.is-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 18px;
}

.gm-item {
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.gm-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.gm-item-top span:last-child {
  color: var(--gm-accent);
  white-space: nowrap;
}

.gm-item p {
  font-size: 11px;
  opacity: 0.65;
  margin-top: 3px;
}

.gm-card {
  flex: none;
  width: 160px;
  border-radius: 16px;
  overflow: hidden;
  background: color-mix(in srgb, currentColor 6%, transparent);
}

.gm-card-img {
  height: 90px;
  background-size: cover;
  background-position: center;
}

.gm-card-body {
  padding: 8px 10px 12px;
}

.gm-foot {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 10px 12px 20px;
  font-size: 11px;
  opacity: 0.8;
}

.gm-hint {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  opacity: 0.45;
  padding: 4px 0 8px;
}

.guest.theme-gallery .gm-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
}

.guest.theme-gallery .gm-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}

.guest.theme-text .gm-banner {
  height: 72px;
}

.qr-box {
  display: none;
}

.empty-items {
  color: #999;
  font-size: 14px;
  padding: 20px 0;
}

@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .iphone-dock {
    position: static;
    order: -1;
    margin-bottom: 24px;
  }
}

@media (max-width: 991px) {
  .form-grid,
  .split-2,
  .checkout-split,
  .media-grid,
  .preview-split,
  .item-form {
    grid-template-columns: 1fr;
  }

  .pay-panel__head {
    flex-wrap: wrap;
  }

  .checkout-terms span {
    white-space: normal;
  }

  .color-grid,
  .gradient-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .color-grid > :nth-child(2n) .color-tip-pop,
  .gradient-grid > :nth-child(2n) .color-tip-pop {
    left: auto;
    right: 0;
    transform: none;
  }

  .color-grid > :nth-child(2n) .color-tip-pop::before,
  .gradient-grid > :nth-child(2n) .color-tip-pop::before {
    left: auto;
    right: 4px;
    margin-left: 0;
  }

  .config-head h1, .config-head h2 {
    font-size: 32px;
  }

  .config-page .config {
    padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 28px);
    padding-bottom: 32px;
  }

  .config-card input,
  .config-card select,
  .item-form input {
    font-size: 16px;
  }
}

@media (max-width: 700px) {
  .config-head {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 24px;
  }

  .config-head h1, .config-head h2 {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .config-head p,
  .ai-help {
    font-size: 15px;
  }

  .config-head.tight h3,
  .checkout-head h3 {
    font-size: 24px;
    white-space: normal;
  }

  .pack-next {
    width: 100%;
    height: 48px;
  }

  .package-chip {
    display: flex;
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .gate-grid .package-card {
    padding: 20px;
  }

  .config-card {
    padding: 20px;
    border-radius: 20px;
  }

  .includes-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }

  .includes-actions .save-btn,
  .includes-actions .save-btn.ghost {
    width: 100%;
  }

  .stepper {
    gap: 4px;
    margin-bottom: 16px;
  }

  .step {
    gap: 6px;
    min-width: 0;
  }

  .step-num {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .step:not(:last-child)::after {
    top: 15px;
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
  }

  .step-label {
    font-size: 10px;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .step-nav {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
  }

  .step-nav-end {
    flex-direction: column;
    width: 100%;
    margin-left: 0;
  }

  .step-nav .save-btn,
  .step-nav .save-btn.ghost {
    width: 100%;
    flex: none;
    min-width: 0;
    height: auto;
    min-height: 48px;
    padding: 14px 16px;
    white-space: normal;
  }

  .workspace,
  .workspace-left {
    min-width: 0;
  }

  .chip-row {
    flex-wrap: wrap;
  }

  .chip {
    padding: 10px 14px;
    font-size: 13px;
  }

  .colors-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .swatch-row {
    max-width: 100%;
    justify-content: flex-start;
  }

  .color-tip-pop,
  .color-tip-pop--wide {
    width: min(240px, calc(100vw - 48px));
  }

  .checkout-summary > div {
    grid-template-columns: 96px 1fr;
    padding: 12px 14px;
  }

  .checkout-buyer {
    padding: 16px;
  }

  .checkout-pay {
    padding: 16px;
  }

  .checkout-pay .pay-mark--visa img {
    width: 64px;
    height: 40px;
  }

  .checkout-pay .pay-mark--mastercard img,
  .checkout-pay .pay-mark--maestro img {
    width: 56px;
    height: 36px;
  }

  .iphone-dock {
    order: 1;
    position: static;
    width: 100%;
    margin: 28px 0 0;
    overflow: hidden;
  }

  .iphone-btn {
    display: none;
  }

  .iphone {
    --iphone-w: min(300px, calc(100vw - 40px));
    width: var(--iphone-w);
  }

  .iphone-screen {
    height: min(560px, 72vh);
  }

  .iphone-frame {
    border-radius: 44px;
    padding: 9px;
  }

  .iphone-glass {
    border-radius: 36px;
  }

  .dynamic-island {
    width: 92px;
    height: 28px;
  }

  .iphone-status {
    height: 48px;
    padding: 10px 18px 8px;
  }
}
