:root {
  --swap-ink: #07152d;
  --swap-muted: #64718a;
  --swap-line: #dbe4f2;
  --swap-blue: #1769e0;
  --swap-sky: #16b8ee;
  --swap-orange: #ff8a22;
  --swap-green: #16845b;
  --swap-surface: #ffffff;
  --swap-soft: #eef5ff;
  --swap-warm: #fff6eb;
}

body.swap-page {
  margin: 0;
  color: var(--swap-ink);
  background:
    linear-gradient(90deg, rgba(23, 105, 224, .045) 1px, transparent 1px),
    linear-gradient(rgba(23, 105, 224, .045) 1px, transparent 1px),
    #f6f9fe;
  background-size: 42px 42px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.swap-page *,
.swap-page *::before,
.swap-page *::after {
  box-sizing: border-box;
}

.swap-page .app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 64px;
}

.swap-page .site-header {
  position: sticky;
  z-index: 50;
  top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 8px;
  background: rgba(8, 24, 50, .94);
  box-shadow: 0 18px 42px rgba(9, 28, 58, .18);
  backdrop-filter: blur(18px);
}

.swap-page .brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.swap-page .brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  overflow: hidden;
  place-items: center;
  border-radius: 8px;
  background: #fff;
}

.swap-page .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.swap-page .brand-copy {
  display: grid;
  gap: 2px;
}

.swap-page .brand-copy strong {
  font-size: 16px;
}

.swap-page .brand-copy small {
  max-width: 230px;
  overflow: hidden;
  color: #b8c6dd;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swap-page .header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.swap-page .cart-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--swap-sky), var(--swap-blue));
  font-weight: 800;
  text-decoration: none;
}

.swap-page .cart-pill strong {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}

.swap-page .menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background: transparent;
}

.swap-page .menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.swap-page .mobile-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.swap-page .mobile-nav a {
  color: #dce7f7;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.swap-page .mobile-nav a[aria-current="page"] {
  color: #5ad6ff;
}

.swap-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  min-height: 320px;
  margin-top: 30px;
  overflow: hidden;
  border-radius: 8px;
  background: #07162e;
  box-shadow: 0 24px 60px rgba(9, 29, 62, .15);
}

.swap-hero-copy {
  align-self: center;
  padding: clamp(32px, 6vw, 72px);
}

.swap-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #57d7ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.swap-kicker::before {
  width: 24px;
  height: 3px;
  content: "";
  border-radius: 2px;
  background: var(--swap-orange);
}

.swap-hero h1 {
  max-width: 680px;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: 0;
}

.swap-hero p {
  max-width: 620px;
  margin: 18px 0 0;
  color: #c4d1e4;
  font-size: 16px;
  line-height: 1.7;
}

.swap-hero-media {
  position: relative;
  min-height: 320px;
  background: #e7eef8 url("media/photos/iQlubP1.jpg") center/cover no-repeat;
}

.swap-hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #07162e 0, rgba(7, 22, 46, .08) 45%, rgba(255, 138, 34, .16));
}

.swap-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 820px;
  margin: 28px auto 0;
  padding: 0;
  list-style: none;
}

.swap-progress li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 9px;
  color: #7e8aa0;
  font-size: 12px;
  font-weight: 800;
}

.swap-progress li::before {
  position: absolute;
  z-index: 0;
  top: 15px;
  right: 50%;
  left: -50%;
  height: 2px;
  content: "";
  background: #d7e1ef;
}

.swap-progress li:first-child::before {
  display: none;
}

.swap-step-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 2px solid #cfdaea;
  border-radius: 50%;
  background: #f6f9fe;
}

.swap-progress .is-active,
.swap-progress .is-done {
  color: var(--swap-blue);
}

.swap-progress .is-active .swap-step-dot,
.swap-progress .is-done .swap-step-dot {
  border-color: var(--swap-blue);
  color: #fff;
  background: var(--swap-blue);
  box-shadow: 0 0 0 6px rgba(23, 105, 224, .1);
}

.swap-progress .is-done::before,
.swap-progress .is-active::before {
  background: var(--swap-blue);
}

.swap-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
  max-width: 980px;
  margin: 32px auto 0;
}

.swap-panel,
.swap-aside {
  border: 1px solid var(--swap-line);
  border-radius: 8px;
  background: var(--swap-surface);
  box-shadow: 0 18px 44px rgba(14, 40, 78, .08);
}

.swap-panel {
  padding: clamp(22px, 4vw, 42px);
}

.swap-aside {
  position: sticky;
  top: 112px;
  padding: 24px;
}

.swap-panel-head {
  margin-bottom: 28px;
}

.swap-panel-head h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.swap-panel-head p,
.swap-aside p {
  margin: 0;
  color: var(--swap-muted);
  line-height: 1.65;
}

.swap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.swap-field {
  display: grid;
  gap: 8px;
}

.swap-field.is-wide {
  grid-column: 1 / -1;
}

.swap-field > span,
.swap-field legend {
  color: #283852;
  font-size: 13px;
  font-weight: 800;
}

.swap-control {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #cbd8e8;
  border-radius: 6px;
  outline: none;
  color: var(--swap-ink);
  background: #fbfdff;
  font: inherit;
}

textarea.swap-control {
  min-height: 108px;
  padding-top: 13px;
  resize: vertical;
}

.swap-control:focus {
  border-color: var(--swap-blue);
  box-shadow: 0 0 0 4px rgba(23, 105, 224, .12);
}

.swap-control::placeholder {
  color: #9aa6ba;
}

.swap-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.swap-choice label {
  position: relative;
}

.swap-choice input {
  position: absolute;
  opacity: 0;
}

.swap-choice span {
  display: grid;
  min-height: 50px;
  place-items: center;
  border: 1px solid #cbd8e8;
  border-radius: 6px;
  color: #42516a;
  background: #fbfdff;
  font-weight: 800;
  cursor: pointer;
}

.swap-choice input:checked + span {
  border-color: var(--swap-blue);
  color: var(--swap-blue);
  background: var(--swap-soft);
  box-shadow: inset 0 0 0 1px var(--swap-blue);
}

.swap-choice-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.swap-choice-three span {
  min-height: 92px;
  padding: 12px;
  align-content: center;
  text-align: center;
}

.swap-choice-three strong,
.swap-choice-three small {
  display: block;
}

.swap-choice-three small {
  margin-top: 5px;
  color: #718099;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
}

.swap-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--swap-line);
}

.swap-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.swap-button-primary {
  color: #fff;
  background: linear-gradient(135deg, #2785ff, #1558c8);
  box-shadow: 0 12px 24px rgba(23, 105, 224, .2);
}

.swap-button-secondary {
  border: 1px solid #cbd8e8;
  color: #31415b;
  background: #fff;
}

.swap-button:disabled {
  opacity: .55;
  cursor: wait;
}

.swap-note {
  padding: 16px;
  border-left: 4px solid var(--swap-orange);
  border-radius: 6px;
  color: #6a451b;
  background: var(--swap-warm);
  font-size: 13px;
  line-height: 1.6;
}

.swap-aside h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.swap-aside-list {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
}

.swap-aside-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
  color: #4c5b72;
  font-size: 13px;
  line-height: 1.5;
}

.swap-aside-item strong {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--swap-blue);
}

.swap-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.swap-upload {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px dashed #9fb5d3;
  border-radius: 8px;
  background: #f8fbff;
}

.swap-upload.is-ready {
  border-style: solid;
  border-color: var(--swap-green);
}

.swap-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.swap-upload label {
  display: grid;
  min-height: 220px;
  padding: 20px;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
}

.swap-upload-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: var(--swap-blue);
  background: var(--swap-soft);
  font-size: 24px;
  font-weight: 500;
}

.swap-upload label strong {
  font-size: 15px;
}

.swap-upload label small {
  max-width: 190px;
  color: var(--swap-muted);
  line-height: 1.45;
}

.swap-upload-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swap-upload-state {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  color: #fff;
  background: rgba(6, 20, 42, .84);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.swap-review-sections {
  display: grid;
  gap: 22px;
}

.swap-review-section {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--swap-line);
}

.swap-review-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.swap-review-section h3 {
  margin: 0 0 14px;
  font-size: 17px;
}

.swap-summary-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin: 0;
}

.swap-summary-list div {
  padding: 13px 14px;
  border-radius: 6px;
  background: #f4f8fe;
}

.swap-summary-list dt {
  margin-bottom: 4px;
  color: var(--swap-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.swap-summary-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 800;
}

.swap-review-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.swap-review-photos figure {
  margin: 0;
}

.swap-review-photos img,
.swap-review-photos video {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.swap-review-photos video {
  background: #0c1830;
}

.swap-review-photos figcaption {
  margin-top: 5px;
  color: var(--swap-muted);
  font-size: 11px;
  text-transform: capitalize;
}

.swap-error {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 6px;
  color: #9b1c1c;
  background: #fff0f0;
  font-size: 13px;
  font-weight: 700;
}

.swap-success {
  max-width: 760px;
  margin: 32px auto 0;
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid var(--swap-line);
  border-top: 6px solid var(--swap-green);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 52px rgba(14, 40, 78, .1);
  text-align: center;
}

.swap-success-mark {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--swap-green);
  font-size: 34px;
}

.swap-success h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: 0;
}

.swap-success > p {
  max-width: 600px;
  margin: 14px auto 0;
  color: var(--swap-muted);
  line-height: 1.7;
}

.swap-ref {
  display: inline-grid;
  gap: 4px;
  min-width: 220px;
  margin: 24px auto;
  padding: 14px 20px;
  border-radius: 6px;
  color: #fff;
  background: var(--swap-ink);
}

.swap-ref span {
  color: #9fb2cf;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.swap-ref strong {
  font-size: 22px;
}

.swap-next {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 8px 0 26px;
  text-align: left;
}

.swap-next div {
  padding: 16px;
  border-radius: 6px;
  background: #f3f7fd;
}

.swap-next strong {
  display: block;
  margin-bottom: 6px;
}

.swap-next span {
  color: var(--swap-muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .swap-page .mobile-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    padding: 12px;
    border-radius: 8px;
    background: #081832;
    box-shadow: 0 18px 30px rgba(4, 16, 34, .25);
  }

  .swap-page .mobile-nav.is-open {
    display: grid;
    gap: 0;
  }

  .swap-page .mobile-nav a {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .swap-page .menu-toggle {
    display: block;
  }

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

  .swap-hero-media {
    min-height: 210px;
  }

  .swap-hero-media::after {
    background: linear-gradient(180deg, #07162e 0, transparent 45%);
  }

  .swap-layout {
    grid-template-columns: 1fr;
  }

  .swap-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .swap-choice-three {
    grid-template-columns: 1fr;
  }

  .swap-page .app-shell {
    width: min(100% - 20px, 1180px);
  }

  .swap-page .site-header {
    min-height: 66px;
    padding: 9px;
  }

  .swap-page .brand-mark {
    width: 44px;
    height: 44px;
  }

  .swap-page .brand-copy small,
  .swap-page .cart-pill span {
    display: none;
  }

  .swap-page .cart-pill {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .swap-hero {
    margin-top: 20px;
  }

  .swap-hero-copy {
    padding: 34px 24px;
  }

  .swap-hero h1 {
    font-size: 38px;
  }

  .swap-progress li {
    font-size: 10px;
  }

  .swap-grid,
  .swap-upload-grid,
  .swap-summary-list {
    grid-template-columns: 1fr;
  }

  .swap-upload {
    min-height: 190px;
  }

  .swap-upload label {
    min-height: 190px;
  }

  .swap-review-photos {
    grid-template-columns: 1fr 1fr;
  }

  .swap-actions {
    flex-direction: column-reverse;
  }

  .swap-actions .swap-button {
    width: 100%;
  }

  .swap-next {
    grid-template-columns: 1fr;
  }

  .woot-widget-holder {
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 85% !important;
    border-radius: 16px 16px 0 0 !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .swap-panel,
  .swap-aside,
  .swap-success {
    animation: swap-rise .55s ease both;
  }

  .swap-aside {
    animation-delay: .08s;
  }

  @keyframes swap-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
