:root {
  --bg: #0c0f1a;
  --card: rgba(20, 23, 33, 0.76);
  --card-border: rgba(255, 255, 255, 0.08);
  --accent: #ff7a3c;
  --accent-2: #66ffe4;
  --text: #e7ecf7;
  --muted: #9aa4b5;
  --surface: rgba(255, 255, 255, 0.04);
  --glass: rgba(255, 255, 255, 0.06);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 10% 18%, rgba(255, 122, 60, 0.14), transparent 26%),
              radial-gradient(circle at 88% 18%, rgba(102, 255, 228, 0.14), transparent 24%),
              var(--bg);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.app-shell {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 18px calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 1;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  padding: 4px;
}

.brand-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  opacity: 0.9;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #1d2233, #0c0f1a);
  border: 1px solid var(--card-border);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.brand-name {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
  text-transform: uppercase;
}

.brand-sub {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--card-border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero {
  padding: 12px 0 4px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.lede {
  margin: 0 0 14px;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.5;
}

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

.progress-track {
  position: relative;
  width: 100%;
  height: 8px;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #ffc062);
  border-radius: 999px;
  transition: width 220ms ease;
}

.progress-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--card-border);
  transition: transform 180ms ease, background 180ms ease, border 180ms ease;
}

.dot.active {
  background: var(--accent);
  border-color: transparent;
  transform: scale(1.05);
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.swipe-deck {
  position: relative;
  height: 420px;
  margin-bottom: 12px;
}

.swipe-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.swipe-progress-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
}

.swipe-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ffc062);
  transition: width 200ms ease;
}

.swipe-progress-text {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  min-width: 46px;
  text-align: right;
}

.card.is-swipe .step-head {
  display: none;
}

.card.is-swipe {
  padding-top: 14px;
}

.swipe-card {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #10131f;
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transition: transform 220ms ease, opacity 220ms ease;
  display: grid;
  grid-template-rows: 1fr;
  touch-action: none;
  user-select: none;
  cursor: grab;
}

.swipe-card.is-dragging {
  transition: none;
  cursor: grabbing;
}

.swipe-card.is-gone {
  opacity: 0;
}

.swipe-image {
  position: relative;
  padding: 14px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}

.swipe-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.75));
}

.swipe-title {
  position: relative;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  z-index: 1;
}

.swipe-body {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.swipe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.swipe-tag {
  padding: 1px 6px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  font-size: 10px;
  line-height: 1;
  color: var(--muted);
}

.swipe-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 3px solid transparent;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 120ms ease;
  z-index: 2;
  background: rgba(12, 15, 26, 0.55);
  backdrop-filter: blur(6px);
  transform: rotate(-18deg);
}

.swipe-badge.like {
  border-color: #66ffe4;
  color: #66ffe4;
}

.swipe-badge.nope {
  border-color: #ff7a3c;
  color: #ff7a3c;
  left: auto;
  right: 18px;
  transform: rotate(18deg);
}

.swipe-card.show-like .swipe-badge.like {
  opacity: 1;
}

.swipe-card.show-nope .swipe-badge.nope {
  opacity: 1;
}

.swipe-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 4px;
}

.swipe-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--surface);
  color: var(--text);
  font-size: 22px;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.swipe-btn.like {
  background: rgba(102, 255, 228, 0.12);
  color: #66ffe4;
  border-color: rgba(102, 255, 228, 0.4);
}

.swipe-btn.dislike {
  background: rgba(255, 122, 60, 0.12);
  color: #ff7a3c;
  border-color: rgba(255, 122, 60, 0.4);
}

.swipe-empty {
  display: grid;
  gap: 12px;
  padding: 24px 10px;
  text-align: center;
}

.builder-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  width: 100%;
  justify-items: stretch;
}

.builder-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.builder-tab {
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-size: 13px;
}

.builder-tab.active {
  background: rgba(255, 122, 60, 0.16);
  border-color: rgba(255, 122, 60, 0.5);
  color: #ffd7c2;
}

.builder-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

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

.slot-card {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--surface);
  display: grid;
  gap: 10px;
}

.slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.slot-label {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
}

.slot-controls {
  display: flex;
  gap: 6px;
}

.slot-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 18px;
  display: grid;
  place-items: center;
}

.slot-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
}

.slot-thumb {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--card-border);
}

.slot-info {
  display: grid;
  gap: 4px;
}

.slot-title {
  margin: 0;
  font-weight: 600;
}

.slot-price {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.slot-actions {
  display: flex;
}

.slot-buy {
  text-decoration: none;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.builder-footer {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.step-head {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.step-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.step-title {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
}

.step-meta {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
}

.card-footer.no-back {
  margin-top: 6px;
  padding-top: 8px;
}

.card-footer .ghost-btn,
.card-footer .primary-btn {
  min-width: 140px;
}

.landing-main {
  display: grid;
  gap: 18px;
}

.landing-hero {
  padding-bottom: 4px;
}

.landing-cta {
  display: flex;
  margin-top: 10px;
}

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

.feature-card {
  display: grid;
  gap: 8px;
}

.feature-title {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
}

.landing-steps {
  display: grid;
  gap: 12px;
}

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

.step-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-index {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255, 122, 60, 0.16);
  border: 1px solid rgba(255, 122, 60, 0.5);
  color: #ffd7c2;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.landing-step-title {
  margin: 0 0 4px;
  font-weight: 600;
}

@media (min-width: 720px) {
  .landing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .landing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.foot-right {
  display: flex;
  gap: 10px;
}

button {
  font: inherit;
}

.ghost-btn,
.primary-btn,
.chip {
  border: none;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.ghost-btn {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--card-border);
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
}

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

.primary-btn {
  background: linear-gradient(135deg, #ff8a4c, #ffc062);
  color: #0c0f1a;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(255, 138, 76, 0.35);
  text-decoration: none;
}

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

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.summary {
  position: sticky;
  top: 20px;
  align-self: start;
}

.summary-title {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 700;
}

.summary-body {
  display: grid;
  gap: 12px;
  margin: 12px 0;
}

.summary-item {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.summary-label {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.summary-value {
  margin: 0;
  font-weight: 600;
}

.microcopy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 6px;
}

.chips.compact .chip {
  width: auto;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: center;
}

.chip {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-weight: 500;
  text-align: left;
}

.chip.active {
  background: rgba(255, 122, 60, 0.12);
  border-color: rgba(255, 122, 60, 0.55);
  color: #ffd7c2;
  box-shadow: 0 8px 20px rgba(255, 122, 60, 0.25);
}

.chip:active {
  transform: translateY(1px);
}

.chip-title {
  display: block;
  font-weight: 700;
}

.chip .tagline {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.field label {
  font-weight: 600;
}

.muted {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 6px;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--surface);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ff8a4c;
  border: 2px solid #1a1f2e;
  box-shadow: 0 6px 18px rgba(255, 138, 76, 0.4);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ff8a4c;
  border: 2px solid #1a1f2e;
  box-shadow: 0 6px 18px rgba(255, 138, 76, 0.4);
  cursor: pointer;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(102, 255, 228, 0.12);
  border: 1px solid rgba(102, 255, 228, 0.4);
  color: #c2fff5;
  font-size: 13px;
}

.color-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.swatch {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.swatch.active {
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.38), 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.swatch-label {
  display: none;
}

.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.toggle label {
  font-weight: 600;
}

.switch {
  position: relative;
  width: 46px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--glass);
  border-radius: 12px;
  transition: background 160ms ease;
  border: 1px solid var(--card-border);
}

.slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 9px;
  transition: transform 160ms ease;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.35);
}

.switch input:checked + .slider {
  background: linear-gradient(135deg, #66ffe4, #8cf0ff);
  border-color: transparent;
}

.switch input:checked + .slider::before {
  transform: translateX(18px);
}

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

.row.two {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tagline {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 120px;
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.stat-value {
  margin: 6px 0 0;
  font-weight: 700;
  font-size: 18px;
}

@media (min-width: 960px) {
  .layout {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 18px;
    align-items: start;
  }

  .hero {
    grid-column: span 2;
    padding: 22px 0 8px;
  }
}

@keyframes float {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(16px, -10px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .summary {
    position: relative;
    top: 0;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 10px 14px 48px;
  }

  .top-bar {
    margin-bottom: 8px;
  }

  .hero {
    padding: 8px 0 4px;
  }

  h1 {
    font-size: 24px;
    line-height: 1.12;
  }

  .card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 4px;
  }

  .foot-right {
    width: 100%;
    flex-direction: column;
  }

  .ghost-btn,
  .primary-btn {
    width: 100%;
    text-align: center;
    padding: 14px 16px;
    font-size: 15px;
  }

  .card {
    padding: 16px;
    border-radius: 16px;
  }

  .swipe-deck {
    height: 380px;
  }

  .swipe-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
  }

  .chips {
    gap: 8px;
  }

  .chip {
    width: 100%;
  }

  .chips.compact .chip {
    width: auto;
  }

  .progress {
    gap: 10px;
  }

  .progress-track {
    height: 10px;
  }

  .summary-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary {
    padding: 16px;
  }
}
