/* AFTER/SCHOOL — Clean, Calm, Single-Purpose 4-Tab Interface
   Strictly zero monospace/terminal fonts anywhere. Plus Jakarta Sans & Inter only. */

:root {
  --bg-canvas: #F6F5F2;
  --surface: #FFFFFF;
  --ink: #0B0D11;
  --muted: #57534E;
  --muted-light: #78716C;
  --hairline: #E4E2DC;
  --header-border: #E6E4DD;
  --cobalt: #1D4ED8;
  --cobalt-hover: #1E40AF;
  --cobalt-bright: #3B82F6;
  --cobalt-tint: #EFF6FF;
  --emerald: #047857;
  --emerald-dot: #34D399;
  --emerald-tint: #ECFDF5;
  --font-brand: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg-canvas);
  color: var(--ink);
  font-family: var(--font-brand);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}

button, input, select, textarea {
  font-family: var(--font-brand);
}

/* =====================================================================
   LOCKED LAUNCH SPLASH SCREEN — EXACT SPLASH S2 (JET BLACK LUXURY)
   ===================================================================== */
.as-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0B0D11;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 36px 24px 32px;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  cursor: pointer;
}
.as-splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.as-splash-top {
  width: 100%;
  display: flex;
  justify-content: center;
}
.as-splash-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.as-splash-wm {
  font-size: clamp(36px, 8vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  line-height: 1;
}
.as-splash-wm .slash {
  color: #3B82F6;
  margin: 0 2px;
}
.as-splash-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 7px 16px;
  border-radius: 999px;
}
.as-splash-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  flex-shrink: 0;
}
.as-splash-tagline {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #E2E8F0;
  text-transform: uppercase;
}
.as-splash-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.as-splash-est {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #64748B;
  text-transform: uppercase;
}

/* =====================================================================
   CLEAN TOP HEADER BAR (AFTER/SCHOOL Left + Subtle Pill Right)
   ===================================================================== */
.as-topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 54px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-border);
  padding: 0 16px;
  display: flex;
  align-items: center;
}
.as-topbar-inner {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.as-brand-link {
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
}
.as-brand-link .slash {
  color: var(--cobalt);
  margin: 0 1.5px;
}
.as-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.as-right-pill {
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--hairline);
  background: #F6F5F2;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}
.as-right-pill.shop-mode {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #FFFFFF;
}
.as-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-dot);
  flex-shrink: 0;
}

/* =====================================================================
   MAIN WORKSPACE CONTAINER & SINGLE-TAB VISIBILITY
   ===================================================================== */
.as-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 14px 14px 96px;
}
.as-main-tab {
  display: none;
}
.as-main-tab.active {
  display: block;
}

/* =====================================================================
   CARDS & TYPOGRAPHY
   ===================================================================== */
.as-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 4px 18px rgba(11, 13, 17, 0.04);
}
.as-scout-hero-card {
  border: 1.5px solid #0B0D11;
}
.as-hero-title {
  font-size: clamp(20px, 4.5vw, 25px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}
.as-hero-sub {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 5px;
  font-weight: 500;
}
.as-section-h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.as-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--cobalt-tint);
  color: var(--cobalt);
  margin-bottom: 6px;
}
.as-kicker.emerald {
  background: var(--emerald-tint);
  color: var(--emerald);
}
.as-kicker.dark {
  background: #F1F5F9;
  color: #475569;
}

/* =====================================================================
   TWO BIG OBVIOUS PRIMARY PHOTO BUTTONS + CLEAN SEARCH BAR
   ===================================================================== */
.as-capture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.as-btn-capture {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 54px;
  padding: 0 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
  text-align: center;
}
.as-btn-capture:active {
  transform: scale(0.98);
}
.as-btn-capture.take-photo {
  background: #0B0D11;
  color: #FFFFFF;
  border: 1.5px solid #0B0D11;
  box-shadow: 0 6px 16px rgba(11, 13, 17, 0.16);
}
.as-btn-capture.upload-photo {
  background: var(--cobalt);
  color: #FFFFFF;
  border: 1.5px solid var(--cobalt);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.2);
}
.as-btn-icon {
  font-size: 18px;
  line-height: 1;
}
.as-btn-main-text {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Search Bar */
.as-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}
.as-input {
  height: 44px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1.5px solid var(--hairline);
  background: #FAF9F6;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  width: 100%;
  min-width: 0;
}
.as-input:focus {
  border-color: var(--cobalt);
  background: #FFFFFF;
}
.as-input-sm {
  height: 38px;
  font-size: 13px;
  padding: 0 10px;
  margin-top: 3px;
}
.as-btn-solid {
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: none;
  background: #0B0D11;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
}
.as-btn-solid.cobalt {
  background: var(--cobalt);
}
.as-btn-solid.emerald {
  background: var(--emerald);
}
.as-btn-outline {
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid var(--hairline);
  background: #FFFFFF;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

/* Progress Box */
.as-progress-box {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--cobalt-tint);
  border: 1px solid #BFDBFE;
}
.as-progress-box.active {
  display: block;
}
.as-progress-step {
  font-size: 12px;
  font-weight: 800;
  color: var(--cobalt);
  margin-bottom: 6px;
}
.as-progress-bar {
  width: 100%;
  height: 5px;
  background: #DBEAFE;
  border-radius: 999px;
  overflow: hidden;
}
.as-progress-fill {
  width: 35%;
  height: 100%;
  background: var(--cobalt);
  border-radius: 999px;
  transition: width 0.2s ease;
}

/* Quick examples chips */
.as-quick-examples-row {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.as-quick-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}
.as-quick-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.as-quick-chip {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: #F6F5F2;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}
.as-quick-chip.active {
  background: #0B0D11;
  border-color: #0B0D11;
  color: #FFFFFF;
}

/* =====================================================================
   ONE CLEAN RESULT CARD (TAB 1)
   ===================================================================== */
.as-result-card {
  margin-top: 14px;
  background: #FFFFFF;
  border: 1.5px solid #0B0D11;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(11, 13, 17, 0.06);
}
.as-result-photo-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  background: #F3F2EE;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.as-result-photo-wrap img.main-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.as-result-badge-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.as-identified-pill {
  background: rgba(11, 13, 17, 0.88);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.as-identified-pill .check {
  color: #34D399;
  font-weight: 900;
}
.as-ny-tax-pill {
  background: #ECFDF5;
  border: 1px solid #047857;
  color: #047857;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.as-result-body {
  padding: 16px 18px 18px;
}
.as-item-brand-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.as-item-brand-tag {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cobalt);
}
.as-item-msrp-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.as-item-model-h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-top: 3px;
  line-height: 1.2;
}
.as-item-colorway-sub {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 3px;
}

/* 3 Clean Price Comparison Rows */
.as-price-rows {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 14px;
}
.as-price-row-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--hairline);
  background: #FAF9F6;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.14s ease, transform 0.12s ease;
}
.as-price-row-card:hover {
  border-color: var(--ink);
}
.as-price-row-card.new-best {
  background: #F0FDF4;
  border-color: #047857;
}
.as-price-row-card.preowned-best {
  background: #EFF6FF;
  border-color: #1D4ED8;
}
.as-price-row-left {
  min-width: 0;
  flex: 1;
}
.as-price-row-kicker {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.as-price-row-card.new-best .as-price-row-kicker {
  color: #047857;
}
.as-price-row-card.preowned-best .as-price-row-kicker {
  color: #1D4ED8;
}
.as-price-row-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 2px;
}
.as-price-row-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}
.as-price-row-right {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.as-price-big {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.as-price-row-card.new-best .as-price-big {
  color: #047857;
}
.as-price-row-card.preowned-best .as-price-big {
  color: #1D4ED8;
}
.as-price-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #0B0D11;
  color: #FFFFFF;
}
.as-price-row-card.new-best .as-price-cta-pill {
  background: #047857;
}
.as-price-row-card.preowned-best .as-price-cta-pill {
  background: #1D4ED8;
}

/* Marketplace Direct Links Bar */
.as-market-links-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.as-market-link-chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: #F6F5F2;
  border: 1px solid var(--hairline);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.as-market-link-chip:hover {
  border-color: var(--ink);
}

/* 1-Tap Save to My Closet Button */
.as-save-closet-btn {
  width: 100%;
  height: 46px;
  margin-top: 12px;
  border-radius: 12px;
  border: 1.5px solid #0B0D11;
  background: #0B0D11;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease;
}
.as-save-closet-btn.saved {
  background: #047857;
  border-color: #047857;
}

/* Similar Alternatives (3 compact cards) */
.as-alts-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}
.as-alts-heading {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 10px;
}
.as-alt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (max-width: 560px) {
  .as-alt-grid {
    grid-template-columns: 1fr;
  }
}
.as-alt-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: #FAF9F6;
  text-decoration: none;
  color: var(--ink);
}
.as-alt-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.as-alt-card img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--hairline);
  flex-shrink: 0;
}
.as-alt-brand {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--cobalt);
}
.as-alt-name {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}
.as-alt-price {
  font-size: 12.5px;
  font-weight: 800;
  color: #047857;
  white-space: nowrap;
}

/* =====================================================================
   TAB 2: CELEB STYLE & TAB 3: MY CLOSET
   ===================================================================== */
.as-tab-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.as-summary-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--emerald-tint);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 800;
}
.as-cat-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.as-cat-pill {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: #F6F5F2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.as-cat-pill.active {
  background: #0B0D11;
  border-color: #0B0D11;
  color: #FFFFFF;
}

.as-celeb-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.as-celeb-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1.5px solid var(--hairline);
  background: #FFFFFF;
  cursor: pointer;
  flex-shrink: 0;
}
.as-celeb-pill.active {
  border-color: #0B0D11;
  background: #0B0D11;
  color: #FFFFFF;
}
.as-celeb-pill img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}
.as-celeb-pill-name {
  font-size: 12.5px;
  font-weight: 800;
}
.as-celeb-pill-sub {
  font-size: 10.5px;
  opacity: 0.78;
  font-weight: 600;
}

.as-celeb-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
}
.as-celeb-item-card {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 14px;
  background: #FAF9F6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.as-peer-box {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid var(--hairline);
}
.as-peer-label {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.as-peer-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.as-peer-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 3px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: #F6F5F2;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.as-peer-chip img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

/* =====================================================================
   TAB 4: SHOP MODE (CLEAN 3 SUB-TABS)
   ===================================================================== */
.as-shop-header-card {
  margin-bottom: 14px;
  padding: 14px 16px;
}
.as-shop-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.as-shop-store-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}
.as-store-selector-pills {
  display: inline-flex;
  background: #F6F5F2;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
}
.as-store-pill {
  padding: 5px 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
}
.as-store-pill.active {
  background: #0B0D11;
  color: #FFFFFF;
}
.as-shop-subtabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}
.as-shop-subtab {
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: #F6F5F2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.as-shop-subtab.active {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #FFFFFF;
}
.as-shop-panel {
  display: none;
}
.as-shop-panel.active {
  display: block;
}

.as-draft-builder {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #FAF9F6;
  border: 1px solid var(--hairline);
}
.as-draft-preview-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.as-draft-thumb {
  width: 78px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--hairline);
  flex-shrink: 0;
}
.as-field-label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
}

.as-inv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: #FAF9F6;
  margin-bottom: 8px;
}
.as-inv-row.sold {
  opacity: 0.72;
}
.as-inv-left {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.as-inv-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--hairline);
  flex-shrink: 0;
}

.as-order-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: #FAF9F6;
}
.as-offer-store {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.as-offer-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.as-toast-banner {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--emerald-tint);
  border: 1.5px solid var(--emerald);
  color: var(--emerald);
  font-size: 12.5px;
  font-weight: 800;
}

/* =====================================================================
   4-TAB BOTTOM NAVIGATION BAR (FIXED, ZERO CLUTTER)
   ===================================================================== */
.as-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--header-border);
  padding: 6px 12px calc(env(safe-area-inset-bottom, 6px) + 6px);
}
.as-bottom-nav-inner {
  max-width: 540px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
}
.as-bottom-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.as-bottom-tab.active {
  color: var(--cobalt);
  background: var(--cobalt-tint);
}
.as-tab-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.as-nav-badge {
  position: absolute;
  top: -5px;
  right: -11px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--cobalt);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =====================================================================
   MODAL BACKDROP
   ===================================================================== */
.as-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(11, 13, 17, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.as-modal-backdrop.active {
  display: flex;
}
.as-modal {
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border-radius: 18px;
  padding: 18px;
  border: 1.5px solid #0B0D11;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}


/* ==========================================================================
   c106 UPGRADES:
   1. Non-Sticky Top Tab Strip (.as-top-tabs / .as-top-nav-strip) + Crisp Kerning
   2. 5-Tab Navigation (Scout | Celeb Style | My Closet | My Space | Shop Mode)
   3. Location & Radius Selector Bar + Self-Learning Store Discovery UI
   ========================================================================== */

html, body {
  overflow-x: clip;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
}

button, input, select, textarea,
.as-top-tab, .as-bottom-tab, .as-bnav-btn,
.as-right-pill, .as-quick-chip, .as-cat-pill,
.as-radius-pill, .as-store-pill, .as-price-cta-pill,
.as-market-link-chip, .as-save-closet-btn {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
  letter-spacing: -0.015em;
}

.as-topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 50px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #E4E2DC;
  display: flex;
  align-items: center;
}

.as-topbar-inner {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* NON-STICKY top tabs so they NEVER float over or slice cards on scroll */
.as-top-nav-strip,
.as-top-tabs {
  position: relative !important;
  top: auto !important;
  z-index: 1 !important;
  width: 100%;
  border-bottom: 1px solid #E4E2DC;
  background: #F6F5F2;
  padding: 7px 8px;
}

.as-top-nav-inner {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.as-top-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
  padding: 6px 3px;
  border-radius: 8px;
  border: 1px solid #D6D3CD;
  background: #FFFFFF;
  color: #44403C;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  font-kerning: normal;
  cursor: pointer;
  transition: all 0.14s ease;
  white-space: nowrap;
  min-width: 0;
}

.as-top-tab svg {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.as-top-tab.active {
  background: #0B0D11;
  border-color: #0B0D11;
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 5px rgba(15, 23, 42, 0.12);
}

.as-top-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  height: 14px;
  padding: 0 3.5px;
  border-radius: 999px;
  background: #1D4ED8;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
}

.as-top-tab.active .as-top-tab-badge {
  background: #38BDF8;
  color: #0F172A;
}

.as-bottom-tab {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  font-kerning: normal;
  padding: 5px 2px;
}

/* ==========================================================================
   LOCATION & RADIUS BAR IN SCOUT HERO CARD
   ========================================================================== */
.as-location-bar {
  margin-top: 12px;
  padding: 10px 11px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.as-loc-top-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.as-loc-input-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 0 9px;
  height: 34px;
  color: #1D4ED8;
}

.as-loc-input-wrap svg {
  flex-shrink: 0;
}

.as-loc-input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 12.5px;
  font-weight: 700;
  color: #0B0D11;
  letter-spacing: -0.015em;
}

.as-loc-gps-btn {
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #1D4ED8;
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.as-loc-gps-btn:hover,
.as-loc-gps-btn:active {
  background: #1D4ED8;
  color: #FFFFFF;
}

.as-loc-radius-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.as-loc-radius-label {
  font-size: 11px;
  font-weight: 700;
  color: #57534E;
}

.as-loc-radius-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.as-radius-pill {
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s ease;
}

.as-radius-pill.active {
  background: #1D4ED8;
  border-color: #1D4ED8;
  color: #FFFFFF;
}

.as-loc-db-pill {
  font-size: 10px;
  font-weight: 700;
  color: #047857;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ==========================================================================
   LOCAL & REGIONAL STORE DISCOVERY CARD (SELF-LEARNING DATABASE)
   ========================================================================== */
.as-store-finder-box {
  margin-top: 14px;
  padding: 13px;
  border-radius: 14px;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
}

.as-sf-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.as-sf-title {
  font-size: 13px;
  font-weight: 800;
  color: #0B0D11;
  display: flex;
  align-items: center;
  gap: 6px;
}

.as-sf-counter-badge {
  font-size: 10px;
  font-weight: 800;
  color: #1D4ED8;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 2px 7px;
  border-radius: 999px;
}

.as-sf-radius-alert {
  padding: 10px 11px;
  border-radius: 10px;
  background: #FFFBEB;
  border: 1px solid #F59E0B;
  margin-bottom: 10px;
}

.as-sf-alert-headline {
  font-size: 12px;
  font-weight: 800;
  color: #92400E;
  line-height: 1.35;
}

.as-sf-alert-sub {
  font-size: 11.5px;
  font-weight: 700;
  color: #B45309;
  margin-top: 3px;
}

.as-sf-expand-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.as-sf-expand-btn {
  height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #D97706;
  background: #FFFFFF;
  color: #92400E;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.as-sf-expand-btn.primary {
  background: #D97706;
  border-color: #D97706;
  color: #FFFFFF;
}

.as-sf-store-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.as-sf-store-card {
  padding: 10px 11px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.as-sf-store-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.as-sf-store-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #0B0D11;
  line-height: 1.3;
}

.as-sf-dist-pill {
  font-size: 10.5px;
  font-weight: 800;
  color: #1D4ED8;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.as-sf-store-meta {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  line-height: 1.35;
}

.as-sf-store-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.as-sf-score-tag {
  font-size: 10px;
  font-weight: 800;
  color: #047857;
  background: #ECFDF5;
  padding: 2px 6px;
  border-radius: 6px;
}

.as-sf-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.as-sf-link-btn {
  font-size: 10.5px;
  font-weight: 700;
  color: #0F172A;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 3px 8px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
}

.as-sf-link-btn:hover {
  border-color: #1D4ED8;
  color: #1D4ED8;
}

.as-sf-learn-bar {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

/* Miniature 24x24 product photos inside Quick Example chips & Category pills */
.as-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #0B0D11;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.as-chip-mini-img,
.as-cat-mini-img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #F5F2EB;
  flex-shrink: 0;
}

.as-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 6px;
}

/* Upgraded Editorial Buttons */
.as-btn-capture.take-photo {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 3px 10px rgba(29, 78, 216, 0.22);
}

.as-btn-capture.upload-photo {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 6px rgba(15, 23, 42, 0.06);
}

.as-btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: -0.015em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 8px rgba(15, 23, 42, 0.10);
}

.as-price-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20), 0 2px 6px rgba(15, 23, 42, 0.12);
}

.as-market-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #0F172A;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.14s ease;
}

.as-market-link-chip:hover,
.as-market-link-chip:active {
  border-color: #1D4ED8;
  color: #1D4ED8;
  background: #EFF6FF;
}

/* Explicit Opt-In Closet / Space Button */
.as-save-closet-btn {
  margin-top: 12px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid #0F172A;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: all 0.15s ease;
}

.as-save-closet-btn:hover {
  background: #F8FAFC;
  border-color: #1D4ED8;
  color: #1D4ED8;
}

.as-save-closet-btn.saved {
  background: #047857;
  border-color: #047857;
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20), 0 2px 8px rgba(4, 120, 87, 0.22);
}

.as-identified-pill .check {
  display: inline-flex;
  align-items: center;
  color: #34D399;
}


/* === C109 MOBILE NAV, CLEAN SLATE, PULL-TO-REFRESH & NON-COLLIDING CARDS === */
html, body {
  overscroll-behavior-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

#asPtrPill {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: 50%;
  transform: translate(-50%, -90px);
  opacity: 0;
  z-index: 9999;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
#asPtrPill.visible {
  opacity: 1;
}
#asPtrPill.ready {
  background: #047857;
}
#asPtrPill.refreshing {
  transform: translate(-50%, 6px) !important;
  opacity: 1 !important;
  background: #1D4ED8;
}

.as-topbar {
  padding: 10px 12px !important;
  gap: 8px !important;
  max-width: 100vw;
  box-sizing: border-box;
}
.as-brand-title {
  font-size: 17px !important;
  letter-spacing: -0.03em !important;
}
.as-topbar-actions {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}
.as-vault-pill, .as-install-top-btn {
  padding: 6px 10px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}

.as-top-nav-strip.as-top-tabs {
  width: 100% !important;
  overflow: hidden !important;
}
.as-top-nav-inner {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 4px !important;
  padding: 6px 10px !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}
.as-top-tab {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  min-width: 0 !important;
  width: 100% !important;
  padding: 7px 2px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  text-align: center !important;
  box-sizing: border-box !important;
}
.as-top-tab svg {
  display: none !important;
}
.as-top-tab-badge {
  position: static !important;
  display: inline-block;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 1px 4px !important;
  border-radius: 999px !important;
  margin-left: 2px !important;
  line-height: 1 !important;
}

@media (max-width: 560px) {
  .as-search-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .as-search-row .as-search-input {
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
  }
  .as-search-row .as-search-submit {
    width: 100% !important;
    justify-content: center !important;
    height: 44px !important;
  }
}

.as-store-connect-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
}
.as-store-connect-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.as-store-connect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}
.as-store-connect-actions button {
  flex: 1 1 auto;
  justify-content: center;
  min-height: 38px;
}


/* === C109 APPLE HIG & 320PX–1440PX MULTI-VIEWPORT HARDENING === */
.as-topbar {
  padding-top: max(10px, calc(env(safe-area-inset-top, 0px) + 8px)) !important;
}

@media (max-width: 768px) {
  input.as-input,
  input.as-input-sm,
  input.as-loc-input,
  select.as-input,
  select.as-input-sm,
  textarea.as-input {
    font-size: 16px !important;
  }
}

@media (max-width: 560px) {
  .as-search-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .as-search-row > input,
  .as-search-row > .as-input {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
  }
  .as-search-row > button,
  .as-search-row > .as-btn-solid {
    width: 100% !important;
    justify-content: center !important;
    height: 44px !important;
    box-sizing: border-box !important;
  }
  .as-draft-preview-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .as-inv-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .as-inv-actions-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    width: 100% !important;
    margin-top: 8px !important;
  }
  .as-inv-actions-row > button,
  .as-inv-actions-row > a {
    flex: 1 1 auto !important;
    justify-content: center !important;
    min-height: 36px !important;
  }
  .as-shop-header-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  .as-store-selector-pills {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }
  .as-shop-subtabs {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
}

@media (max-width: 420px) {
  .as-topbar-inner {
    padding: 0 2px !important;
    gap: 4px !important;
  }
  .as-brand-link {
    font-size: 16px !important;
  }
  #as-header-vault-pill,
  #as-header-app-pill {
    padding: 0 8px !important;
    font-size: 10.5px !important;
    height: 30px !important;
  }
  .as-capture-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .as-loc-top-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
  }
  .as-loc-gps-btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .as-form-grid-3,
  .as-form-grid-2 {
    grid-template-columns: 1fr !important;
  }
  .as-bottom-nav {
    padding: 6px 4px calc(env(safe-area-inset-bottom, 6px) + 6px) !important;
  }
  .as-bottom-tab {
    font-size: 10px !important;
    padding: 4px 1px !important;
    min-width: 0 !important;
  }
}
