/* ============================================================
   Zmienne
   ============================================================ */
:root {
  /* ===== Język wizualny „Atelier" — paleta ===== */
  --ink:            #0A0A0A;   /* aksamitna czerń — typografia, elementy ciemne */
  --paper:          #FAF9F6;   /* alabaster — domyślna kanwa */
  --champagne:      #C1A68D;   /* matowe złoto — sygnatura AI (Złota Nić) */
  --champagne-deep: #A8896B;
  --champagne-soft: #ECE3D7;
  --champagne-glow: rgba(193,166,141,.40);

  /* Ciepłe neutralne (zamiast zimnych szarości) */
  --smoke:  #8C8479;  /* ciepły szary — tekst drugorzędny */
  --mist:   #E7E1D8;  /* ciepła włoskowata krawędź */
  --cloud:  #F1EDE6;  /* ciepłe wypełnienie */
  --pearl:  #FFFFFF;  /* czysta biel karty */

  /* Semantyka — wyrafinowana, nie neonowa */
  --love:    #2F7A55;  /* głęboka szałwiowa zieleń */
  --love-bg: #E9F2EC;
  --nope:    #C0473F;  /* przygaszona karmazynowa czerwień */
  --nope-bg: #F7ECEA;
  --gold-stock: #C99A4E;

  /* Typografia */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-ui:      'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Cienie — głębokie, miękkie, warstwowe */
  --shadow-card:    0 2px 8px rgba(10,10,10,.04), 0 8px 24px rgba(10,10,10,.06);
  --shadow-premium: 0 12px 28px -8px rgba(10,10,10,.16), 0 28px 60px -22px rgba(10,10,10,.22);
  --shadow-float:   0 8px 24px -6px rgba(10,10,10,.20);
  --glass-edge:     inset 0 1px 0 rgba(255,255,255,.65);

  /* Glassmorphism */
  --glass-bg:     rgba(250,249,246,.72);
  --glass-border: rgba(255,255,255,.55);

  /* Ruch */
  --ease-lux:    cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);

  --radius-bubble: 18px;
  --radius-input:  26px;
  --max-width:     680px;

  /* Wysokości pasków (fixed) — dla scroll-under glass */
  --h-header: 68px;
  --h-picker: 44px;
  --h-input:  78px;
  --h-nav:    66px;

  /* ===== Aliasy wsteczne (stare nazwy → nowe tokeny) ===== */
  --font:                 var(--font-ui);
  --color-bg:             var(--paper);
  --color-bg-light:       var(--cloud);
  --color-surface:        var(--pearl);
  --color-header-bg:      var(--ink);
  --color-header-text:    #ffffff;
  --color-assistant-bg:   var(--pearl);
  --color-assistant-text: var(--ink);
  --color-user-bg:        var(--ink);
  --color-user-text:      #ffffff;
  --color-accent:         var(--ink);
  --color-primary:        var(--ink);
  --color-text:           var(--ink);
  --color-text-muted:     var(--smoke);
  --color-border:         var(--mist);
  --color-placeholder:    var(--smoke);
  --color-send-hover:     var(--ink);
  --color-typing:         var(--champagne-deep);
}

/* ============================================================
   Reset i base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--font-ui);
  background: var(--color-bg);
  color: var(--color-assistant-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ============================================================
   Layout
   ============================================================ */
.app {
  position: relative;          /* kontekst pozycjonowania dla paneli (absolute) */
  height: 100dvh;
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 60px rgba(10,10,10,.10);
  overflow: hidden;            /* panele scrollują wewnętrznie; paski fixed są nad nimi */
}

/* Wspólne wyśrodkowanie pasków fixed do kolumny aplikacji */
.header,
.bottom-nav,
.store-picker-wrap,
.input-area {
  position: fixed;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: var(--max-width);
}

/* ============================================================
   Header
   ============================================================ */
.header {
  top: 0;
  z-index: 60;
  height: var(--h-header);
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 20px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow: var(--glass-edge), 0 1px 0 var(--mist), 0 8px 24px -18px rgba(10,10,10,.5);
  color: var(--ink);
  flex-shrink: 0;
}

/* „AI Presence" — żywy avatar z oddychającą aurą (Złota Nić) */
.header__avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.header__avatar::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--champagne-glow) 0%, transparent 68%);
  animation: aura-breathe 4.5s var(--ease-lux) infinite;
  z-index: -1;
}

.header__avatar--thinking::before {
  animation-duration: 1.6s;
  background: radial-gradient(circle, rgba(193,166,141,.65) 0%, transparent 70%);
}

.header__avatar svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

@keyframes aura-breathe {
  0%, 100% { transform: scale(.9);  opacity: .45; }
  50%      { transform: scale(1.18); opacity: .9; }
}

.header__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.05;
}

.header__location {
  font-size: 11px;
  color: var(--smoke);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ============================================================
   Czat
   ============================================================ */
.chat {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  /* treść przewija się POD szklanym headerem/pickerem i inputem/navem */
  padding: calc(var(--h-header) + var(--h-picker) + 12px) 16px
           calc(var(--h-input) + var(--h-nav) + 12px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

/* ============================================================
   Wiadomości
   ============================================================ */
.message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  gap: 4px;
  min-width: 0; /* Kluczowe dla karuzeli */
}

.message--assistant {
  align-self: flex-start;
  flex-direction: row;
  align-items: flex-start; /* avatar przy górze prozy (editorial) */
  gap: 10px;
  max-width: 92%;
  min-width: 0;
}

.message-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  max-width: calc(100% - 38px);
  flex: 1; /* Pozwala na kurczenie się */
}

.message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.message-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

.message--user {
  align-self: flex-end;
}

.message p,
.message-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-bubble);
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-wrap;
  max-width: 100%; /* Zapobiega wychodzeniu tekstu */
  min-width: 0;
}

/* Wiadomości asystenta — głos editorialowy (proza na alabastrze, bez dymka) */
.message--assistant p {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.62;
}

/* Pierwszy akapit = lead w Playfair */
.message--assistant .message-content > p:first-of-type {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.42;
  letter-spacing: -.01em;
  color: var(--ink);
}

.message--assistant p + p { margin-top: 8px; }

/* Eyebrow „Stylistka" + złota nić nad prozą */
.stylist-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--champagne-deep);
  margin-bottom: 7px;
}
.stylist-tag::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--champagne-soft), transparent);
}

/* Wiadomości użytkownika */
.message--user .message-bubble {
  background: var(--color-user-bg);
  color: var(--color-user-text);
  border-bottom-right-radius: 4px;
  box-shadow: var(--shadow-card);
}

/* ============================================================
   Wskaźnik ładowania (typing dots)
   ============================================================ */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 16px;
  background: var(--color-assistant-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-bubble);
  border-bottom-left-radius: 4px;
  width: fit-content;
}

.typing-indicator span {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--color-typing);
  border-radius: 50%;
  animation: typing-bounce 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: .2s; }
.typing-indicator span:nth-child(3) { animation-delay: .4s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30%            { transform: translateY(-6px); opacity: 1; }
}

/* Stan „komponowania" — branded (shimmer zamiast 3 kropek) */
.composing {
  padding: 2px 0;
}
.composing__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  background: linear-gradient(100deg, var(--smoke) 30%, var(--champagne) 50%, var(--smoke) 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 2.2s linear infinite;
}

/* Aura na avatarze wiadomości podczas komponowania */
.message-avatar--thinking {
  position: relative;
  overflow: visible;
}
.message-avatar--thinking::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193,166,141,.6) 0%, transparent 70%);
  animation: aura-breathe 1.6s var(--ease-lux) infinite;
  z-index: -1;
}

/* Choreografia wejścia wiadomości — jednorazowo (klasa czyszczona przez animationend,
   żeby przejścia zakładek nie re-animowały całej rozmowy) */
.message--enter {
  animation: msg-rise .45s var(--ease-lux) both;
}
@keyframes msg-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* Lekkie przejście między zakładkami — fade aktywnego panelu (1 warstwa GPU) */
.chat,
.quiz-panel,
.clone-panel,
.wishlist-panel,
.dna-panel,
.tab-panel {
  animation: tab-fade .26s var(--ease-lux) both;
}
@keyframes tab-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   Okazja — Welcome hero („Konsultacja")
   ============================================================ */
.chat-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  margin: auto 0;            /* centrowanie w pionie w obszarze czatu */
  padding: 12px 8px;
  animation: msg-rise .5s var(--ease-lux) both;
}
.chat-hero__mark {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--champagne-deep);
  margin-bottom: 10px;
}
.chat-hero__mark::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--champagne-glow) 0%, transparent 68%);
  animation: aura-breathe 4.5s var(--ease-lux) infinite;
  z-index: -1;
}
.chat-hero__greeting {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
}
.chat-hero__sub {
  font-size: 14px;
  line-height: 1.5;
  color: var(--smoke);
  max-width: 300px;
  margin: 4px 0 20px;
}
.occasion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  max-width: 360px;
}
.occasion-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--mist);
  background: var(--pearl);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease-lux), border-color .2s;
  text-align: left;
}
.occasion-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-premium);
  border-color: var(--champagne-soft);
}
.occasion-card__icon { color: var(--champagne-deep); }
.occasion-card__label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.chat-hero__hint {
  font-size: 12px;
  font-style: italic;
  color: var(--smoke);
  margin-top: 18px;
}

/* Nagłówek selekcji nad karuzelą (framing) */
.chat-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 2px 2px;
}
.chat-section-head__label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--champagne-deep);
  white-space: nowrap;
}
.chat-section-head__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--champagne-soft), var(--mist));
}
.chat-section-head__count {
  font-size: 11px;
  color: var(--smoke);
  white-space: nowrap;
}

/* ============================================================
   Pole wejściowe
   ============================================================ */
.input-area {
  bottom: var(--h-nav);
  z-index: 55;
  padding: 12px 16px 14px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 -1px 0 var(--mist);
  flex-shrink: 0;
}

.input-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--pearl);
  border: 1px solid var(--mist);
  border-radius: var(--radius-input);
  padding: 8px;
  box-shadow: var(--shadow-card);
  transition: border-color .2s, box-shadow .2s;
}

/* Leading „+" — most do Klonuj Styl */
.input-attach {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--smoke);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color .2s, background .2s, transform .2s var(--ease-spring);
}
.input-attach:hover {
  color: var(--champagne-deep);
  background: var(--champagne-soft);
  transform: scale(1.06);
}

.input-form:focus-within {
  border-color: var(--champagne);
  box-shadow: 0 0 0 3px var(--champagne-glow);
}

.input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-assistant-text);
  max-height: 120px;
  overflow-y: auto;
}

.input-field::placeholder {
  color: var(--color-placeholder);
}

.send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--color-accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, opacity .15s, transform .2s var(--ease-spring);
}

.send-btn:hover:not(:disabled) {
  background: var(--champagne-deep);
  transform: scale(1.06);
}

.send-btn:disabled {
  opacity: .4;
  cursor: default;
}

.send-btn svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   Przyciski sugestii
   ============================================================ */
.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.suggestion-btn {
  padding: 6px 14px;
  border: 1.5px solid var(--color-accent);
  border-radius: 20px;
  background: transparent;
  color: var(--color-accent);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.suggestion-btn:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ============================================================
   Karta produktu
   ============================================================ */
.carousel-wrap {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden; /* Kluczowe dla przycisku w prawo */
}

/* Gradient "mgła" — fade na prawej krawędzi */
.carousel-track {
  position: relative;
}

.carousel-track::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48px;
  background: linear-gradient(to right, transparent, var(--paper));
  pointer-events: none;
  z-index: 1;
}

.carousel-track--end::after {
  display: none;
}

.product-cards {
  display: flex;
  flex-direction: row;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
  max-width: 100%;
}

.product-cards::-webkit-scrollbar {
  display: none;
}

/* Strzałki nawigacji */
.carousel-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.carousel-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}

.carousel-btn:hover:not(:disabled) {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.carousel-btn:disabled {
  opacity: .3;
  cursor: default;
}

.carousel-btn svg {
  width: 14px;
  height: 14px;
}

.carousel-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex: 1;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}

.carousel-dot--active {
  background: var(--champagne-deep);
  transform: scale(1.4);
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--mist);
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  /* 300px kontenera × 65% = 187px → 1 pełna + ~55% kolejnej widoczne */
  width: 187px;
  scroll-snap-align: start;
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease-lux), box-shadow .4s var(--ease-lux);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-premium);
}

.product-card__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: var(--color-bg);
  transition: transform .65s var(--ease-lux);
}

.product-card:hover .product-card__image {
  transform: scale(1.05);
}

.product-card__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-card__brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.product-card__category {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: capitalize;
  color: #7a6a58;
  background: #f0ede8;
  border-radius: 4px;
  padding: 2px 7px;
  align-self: flex-start;
}

.product-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-assistant-text);
  line-height: 1.3;
}

.product-card__price {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}


/* Rozmiary */
.product-card__sizes-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--color-placeholder);
  margin-bottom: 4px;
}

.product-card__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.size-tile {
  position: relative;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-assistant-text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s, color .15s;
  user-select: none;
}

.size-tile:hover:not(.size-tile--oos):not(.size-tile--selected) {
  border-color: var(--color-accent);
}

.size-tile--selected {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  border-width: 2px;
}

.size-tile--oos {
  opacity: .4;
  cursor: pointer;
  overflow: hidden;
}

.size-tile--oos::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    transparent calc(50% - 0.5px),
    rgba(0,0,0,.35) calc(50% - 0.5px),
    rgba(0,0,0,.35) calc(50% + 0.5px),
    transparent calc(50% + 0.5px)
  );
}

.size-tile--low-stock::before {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f59e0b;
}

.size-tile--unverified {
  border-style: dashed;
  opacity: .8;
}

.size-tile--unverified::before {
  content: '?';
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 9px;
  line-height: 1;
  color: var(--color-placeholder);
}

/* CTA */
.product-card__cta {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  background: var(--color-border);
  color: var(--color-placeholder);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: default;
  transition: background .2s, color .2s;
  text-align: center;
}

.product-card__cta--active {
  background: var(--color-accent);
  color: #fff;
  cursor: pointer;
}

.product-card__cta--active:hover {
  background: var(--color-send-hover);
}

.product-card__cta--wishlisted {
  background: #f0fdf4;
  color: #16a34a;
  border: 1.5px solid #86efac;
  cursor: pointer;
}

/* ============================================================
   Komunikat błędu
   ============================================================ */
.error-toast {
  align-self: center;
  background: #fff0f0;
  border: 1px solid #ffcccc;
  color: #c0392b;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  max-width: 90%;
  text-align: center;
}

/* ============================================================
   Klonuj Styl - Preview
   ============================================================ */
.clone-preview {
  margin: 16px auto;
  display: flex;
  justify-content: center;
  width: 100%;
}

.clone-preview__container {
  position: relative;
  width: 140px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  border: 2px solid #fff;
}

.clone-preview__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clone-preview__clear {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}

.clone-preview__clear:hover {
  background: rgba(220, 38, 38, 0.9);
}

.clone-error {
  margin-top: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  text-align: center;
}

.clone-query-dna {
  margin-top: 16px;
  padding: 0 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-assistant-text);
  text-align: center;
  font-style: italic;
  opacity: 0.9;
}

[x-cloak] { display: none !important; }

/* ============================================================
   Bottom Navigation
   ============================================================ */
.bottom-nav {
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: var(--h-nav);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow: var(--glass-edge), 0 -1px 0 var(--mist), 0 -10px 30px -20px rgba(10,10,10,.45);
  flex-shrink: 0;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--smoke);
  font-family: var(--font-ui);
  padding: 9px 0 7px;
  transition: color .2s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

/* Otoczka ikony — nośnik „fill"/uniesienia i badge */
.nav-item__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 30px;
  border-radius: 15px;
  transition: transform .4s var(--ease-spring), background .25s var(--ease-lux);
}

/* Aktywna ikona: unosi się + „fill" (złoty chip) */
.nav-item--active { color: var(--champagne-deep); }

.nav-item--active .nav-item__icon {
  transform: translateY(-4px);
  background: var(--champagne-soft);
}

.nav-item--active svg { stroke-width: 2.2; }

/* Minimalistyczny wskaźnik kropkowy na dole */
.nav-item::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--champagne-deep);
  transform: translateX(-50%) scale(0);
  transition: transform .35s var(--ease-spring);
}

.nav-item--active::after { transform: translateX(-50%) scale(1); }

.nav-item__label {
  font-size: clamp(8px, 2.5vw, 10px);
  letter-spacing: .03em;
  font-weight: 500;
  white-space: nowrap;
  transition: font-weight .2s;
}

.nav-item--active .nav-item__label {
  font-weight: 700;
}

/* Badge powiadomień nad ikoną listy życzeń */
.nav-badge {
  position: absolute;
  top: -5px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--champagne-deep);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 2px 8px var(--champagne-glow);
  animation: badge-pop .4s var(--ease-spring);
}

@keyframes badge-pop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* Panele placeholder */
.tab-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: var(--h-header) 24px var(--h-nav);
  color: var(--color-placeholder);
  font-size: 15px;
}

/* ── Lista życzeń ── */
.wishlist-panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding-top: var(--h-header);
  padding-bottom: var(--h-nav);
}

/* Filtr galerii w liście życzeń */
.wishlist-store-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.wishlist-store-label {
  font-size: 11px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.wishlist-store-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.wishlist-avail-hint {
  font-size: 12px;
  color: #bbb;
  margin: 0;
}

/* Toast: cofnij usunięcie */
.wishlist-toast {
  position: sticky;
  top: var(--h-header);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #1a1a1a;
  color: #fff;
  padding: 11px 16px;
  font-size: 13px;
}
.wishlist-toast__msg {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wishlist-toast__undo {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  text-decoration: underline;
}

/* Stan pusty */
.wishlist-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--color-placeholder);
  font-size: 15px;
  padding: 40px 24px;
  text-align: center;
}
.wishlist-empty__hint {
  font-size: 13px;
  color: #bbb;
  max-width: 240px;
}
.wishlist-empty__cta {
  margin-top: 8px;
  padding: 10px 24px;
  border-radius: 24px;
  border: 1.5px solid #1a1a1a;
  background: white;
  font-size: 0.9rem;
  cursor: pointer;
  color: #1a1a1a;
}
.wishlist-empty__cta:hover { background: #f5f0eb; }

/* Nagłówek z liczbą + sumą */
.wishlist-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 16px 6px;
  border-bottom: 1px solid var(--color-border);
}
.wishlist-count {
  font-size: 12px;
  color: #aaa;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.wishlist-budget {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}

/* Lista produktów */
.wishlist-list {
  display: flex;
  flex-direction: column;
  padding: 4px 16px 24px;
}
.wishlist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.wishlist-item:last-child { border-bottom: none; }

/* Miniatura + kropka */
.wishlist-item__thumb-wrap {
  position: relative;
  flex-shrink: 0;
}
.wishlist-item__img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  background: #f4f4f4;
}
.avail-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid #fff;
}
.dot--ok     { background: #27ae60; }
.dot--low    { background: #e67e22; }
.dot--none   { background: #bbb; }
.dot--unknown { background: transparent; }

/* Info */
.wishlist-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.wishlist-item__brand {
  font-size: 10px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.wishlist-item__name {
  font-size: 13px;
  color: #1a1a1a;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wishlist-item__price {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 2px;
}

/* Rozmiary (reuse product-card__sizes) */
.wishlist-item__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

/* Usuń */
.wishlist-item__remove {
  flex-shrink: 0;
  align-self: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-accent);
  padding: 6px;
  line-height: 0;
  opacity: .55;
  transition: opacity .15s;
}
.wishlist-item__remove:hover { opacity: 1; }

/* ============================================================
   Store picker
   ============================================================ */
.store-picker-wrap {
  top: var(--h-header);
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  height: var(--h-picker);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 1px 0 var(--mist);
  flex-shrink: 0;
}

.store-picker {
  flex: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}

.store-picker::-webkit-scrollbar { display: none; }

.store-arrow {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-placeholder);
  transition: color .15s, border-color .15s;
}

.store-arrow:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.store-pill {
  flex-shrink: 0;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-placeholder);
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}

.store-pill:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.store-pill--active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* ============================================================
   Responsywność
   ============================================================ */
@media (max-width: 480px) {
  .message {
    max-width: 90%;
  }

  .header {
    padding: 12px 16px;
  }
}

/* ============================================================
   Karta inspiracji (tryb inspiration mode)
   ============================================================ */
.inspiration-card {
  flex-shrink: 0;
  width: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.inspiration-card__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.inspiration-card__brand {
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #555;
}

.inspiration-card__name {
  padding: 2px 12px 6px;
  font-size: 12px;
  color: var(--color-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inspiration-card__actions {
  display: flex;
  gap: 8px;
  padding: 8px 12px 12px;
}

.inspiration-btn {
  flex: 1;
  padding: 10px 4px;
  border-radius: 10px;
  border: 1.5px solid var(--color-border);
  white-space: nowrap;
  background: var(--color-surface);
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  transition: background .15s, transform .1s;
}

.inspiration-btn:active {
  transform: scale(.95);
}

.inspiration-btn--yes {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* ===== Steal Their Look — Clone Panel ===== */

.clone-panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: calc(var(--h-header) + var(--h-picker) + 16px) 16px calc(var(--h-nav) + 20px);
}

.clone-dropzone {
  border: 2px dashed var(--color-border, #e0e0e0);
  border-radius: 16px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  padding: 32px 16px;
  text-align: center;
}

.clone-dropzone:hover {
  border-color: var(--color-accent, #b8860b);
  background: #fafafa;
}

.clone-dropzone--dragover {
  border-color: var(--color-accent, #b8860b);
  background: #fafafa;
  border-style: solid;
}

.clone-dropzone--loading {
  cursor: default;
  opacity: 0.8;
}

.clone-dropzone__prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #888;
}

.clone-dropzone__prompt p {
  font-size: 1rem;
  font-weight: 500;
  color: #222;
  margin: 0;
}

.clone-dropzone__hint {
  font-size: 0.75rem;
  color: #888;
}

.clone-dropzone__store-hint {
  font-size: 0.75rem;
  color: var(--color-accent);
  margin-top: 4px;
}

.clone-dropzone__spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #888;
  font-size: 0.9rem;
}

.clone-dropzone__spinner .spinner-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================================
   Klonuj Styl - UI 2.1 (Grid Layout - Side-by-Side)
   ============================================================ */

.clone-grid {
  display: grid;
  grid-template-columns: 187px 1fr;
  gap: 20px;
  align-items: start;
  padding: 0 20px;
  margin-top: 16px;
  margin-bottom: 24px;
}

@media (max-width: 480px) {
  .clone-grid {
    grid-template-columns: 140px 1fr;
    gap: 16px;
    padding: 0 16px;
  }
}

.clone-preview {
  margin: 0 !important;
}

.clone-preview__container {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  border: 1px solid var(--color-border);
  background: #fff;
}

.clone-preview__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.clone-preview__clear {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: transform .2s, background .2s;
}

.clone-preview__clear:hover {
  background: rgba(220, 38, 38, 0.8);
  transform: scale(1.1);
}

.clone-preview__zoom-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  color: #1a1a1a;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform .2s, background .2s;
}

.clone-preview__zoom-btn:hover {
  background: #fff;
  transform: scale(1.1);
}

/* Modal Powiększenia */
.zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
}

.zoom-content {
  position: relative;
  max-width: var(--max-width);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-img {
  max-width: 95%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  background: #fff;
}

.zoom-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}

.zoom-close:hover {
  background: rgba(255,255,255,0.4);
}

.clone-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-reply {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-assistant-text);
  margin: 0;
}

.clone-category-bullets {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-header-divider {
  margin-top: 32px;
}

.clone-empty {
  color: var(--color-placeholder);
  font-size: 14px;
  text-align: center;
  padding: 40px 20px;
}

[x-cloak] { display: none !important; }

/* --- AI SCANNING EXPERIENCE --- */
.scanning-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #000;
}

.scanning-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}

.scanning-beam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, transparent, #8ab4f8, #4285f4, #8ab4f8, transparent);
    box-shadow: 0 0 20px #4285f4, 0 0 40px #8ab4f8;
    animation: scan-vertical 3s infinite ease-in-out;
    z-index: 11;
}

.loading-status-text {
    margin-top: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.6);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    animation: pulse-text 1.5s infinite ease-in-out;
    text-align: center;
    max-width: 85%;
    letter-spacing: 0.5px;
}

@keyframes scan-vertical {
    0% { top: 0%; opacity: 0.8; }
    50% { top: 100%; opacity: 1; }
    100% { top: 0%; opacity: 0.8; }
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.8; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.02); }
}

/* Skeleton Loading Pulse */
.skeleton-pulse {
    background: linear-gradient(90deg, var(--color-bg-light) 25%, var(--color-border) 50%, var(--color-bg-light) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 15px;
    min-height: 400px;
    border: 1px solid var(--color-border);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════
   QUIZ MODOWY
   ═══════════════════════════════════════════════════════ */

.quiz-panel {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: calc(var(--h-header) + 16px) 16px calc(var(--h-nav) + 28px);
}

/* Pasek postępu */
.quiz-progress-bar {
    width: 100%;
    max-width: 420px;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    margin-bottom: 28px;
    overflow: hidden;
}
.quiz-progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--champagne), var(--champagne-deep));
    border-radius: 2px;
    transition: width 0.35s var(--ease-lux);
}

/* Pytania tekstowe */
.quiz-questions {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.quiz-question-block {
    width: 100%;
}
.quiz-question__label {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -.01em;
    text-align: center;
    margin-bottom: 22px;
    color: var(--ink);
}
.quiz-question__options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.quiz-option-btn {
    padding: 14px 10px;
    border: 2px solid var(--color-border, #e5e5e5);
    border-radius: 12px;
    background: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    font-weight: 500;
}
.quiz-option-btn:hover {
    border-color: #1a1a1a;
    background: #f5f0eb;
}
.quiz-option-btn--selected {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: white;
}
.quiz-option-btn:active {
    transform: scale(0.97);
}

/* Loading spinner */
.quiz-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    font-size: 0.9rem;
    color: #666;
}
.quiz-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e5e5e5;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.quiz-error {
    color: #e53e3e;
    font-size: 0.85rem;
    text-align: center;
    padding: 8px 12px;
    background: #fff5f5;
    border-radius: 8px;
    border: 1px solid #feb2b2;
}

.quiz-skip-btn {
    margin-top: 16px;
    background: none;
    border: none;
    color: #999;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
}
.quiz-skip-btn:hover { color: #555; }

/* ═══ Tinder Mode — fizyczny stos kart ═══ */
.quiz-swiping {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.quiz-swipe-counter {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--smoke);
    text-align: center;
}

.swipe-stack {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4.2;
    margin-top: 6px;
}

.swipe-card {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    overflow: hidden;
    background: var(--pearl);
    box-shadow: var(--shadow-premium);
    will-change: transform;
}
.swipe-card--top { cursor: grab; touch-action: none; }
.swipe-card--dragging { cursor: grabbing; transition: none !important; }
/* snap-back / wjazd kolejnej karty — sprężysty powrót do środka */
.swipe-card--top:not(.swipe-card--dragging) {
    transition: transform .45s var(--ease-spring);
}
.swipe-card:not(.swipe-card--top) {
    transition: transform .45s var(--ease-lux), opacity .45s var(--ease-lux);
}

.swipe-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* Złota Nić — krawędź światła + winieta pod podpis */
.swipe-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.22),
                inset 0 -140px 90px -70px rgba(10,10,10,.62);
    pointer-events: none;
}

.swipe-card__caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    padding: 30px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #fff;
    pointer-events: none;
}
.swipe-card__brand {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 15px;
    opacity: .92;
}
.swipe-card__name {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    text-shadow: 0 1px 12px rgba(0,0,0,.4);
}

/* Stemple LOVE / NOPE */
.swipe-stamp {
    position: absolute;
    top: 26px;
    z-index: 3;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 5px 16px;
    border: 3px solid currentColor;
    border-radius: 10px;
    opacity: 0;
    pointer-events: none;
}
.swipe-stamp--love {
    left: 22px;
    color: var(--love);
    transform: rotate(-15deg);
}
.swipe-stamp--nope {
    right: 22px;
    color: var(--nope);
    transform: rotate(15deg);
}

/* Pływające przyciski akcji */
.swipe-fabs {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 24px;
}
.swipe-fab {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: none;
    background: var(--pearl);
    box-shadow: var(--shadow-float);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s var(--ease-spring), background .2s, box-shadow .2s;
}
.swipe-fab:hover:not(:disabled) { transform: translateY(-3px) scale(1.06); }
.swipe-fab:active:not(:disabled) { transform: scale(.9); }
.swipe-fab:disabled { opacity: .5; cursor: default; }
.swipe-fab--no  { color: var(--nope); }
.swipe-fab--no:hover:not(:disabled)  { background: var(--nope-bg); }
.swipe-fab--yes { color: var(--love); }
.swipe-fab--yes:hover:not(:disabled) { background: var(--love-bg); }

/* Zakończony quiz */
.quiz-completed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 16px 32px;
    text-align: center;
    width: 100%;
}
.quiz-completed__msg {
    font-size: 1rem;
    color: #555;
}
.quiz-completed__error {
    font-size: 0.9rem;
    color: #c0392b;
    padding: 12px 0;
}
.quiz-result {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.quiz-result__para {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #1a1a1a;
    text-align: left;
    padding: 0 4px;
}
.quiz-restart-btn {
    padding: 10px 24px;
    border-radius: 24px;
    border: 1.5px solid #1a1a1a;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    flex-shrink: 0;
}
.quiz-restart-btn:hover { background: #f5f0eb; }

/* ── Widok 0: Wybór galerii ── */
.quiz-gallery-select {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 420px;
    gap: 0;
    padding-top: 12px;
}

.quiz-sofa-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 18px 20px;
    border-radius: 16px;
    border: 2px solid #1a1a1a;
    background: #1a1a1a;
    color: white;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.15s, transform 0.1s;
}
.quiz-sofa-btn:hover { background: #333; transform: translateY(-1px); }
.quiz-sofa-btn:active { transform: scale(0.98); }
.quiz-sofa-btn__icon { font-size: 1.6rem; line-height: 1; }
.quiz-sofa-btn__label { font-size: 1rem; font-weight: 600; }
.quiz-sofa-btn__sub { font-size: 0.78rem; opacity: 0.7; }

.quiz-gallery-divider {
    width: 100%;
    text-align: center;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
    position: relative;
}
.quiz-gallery-divider::before,
.quiz-gallery-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: var(--color-border);
}
.quiz-gallery-divider::before { left: 0; }
.quiz-gallery-divider::after  { right: 0; }

.quiz-gallery-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

.quiz-gallery-btn {
    padding: 9px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--color-border);
    background: white;
    font-size: 0.88rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.quiz-gallery-btn:hover { border-color: #999; }
.quiz-gallery-btn--selected {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: white;
}

.quiz-confirm-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: #e0e0e0;
    color: #888;
    font-size: 1rem;
    font-weight: 600;
    cursor: not-allowed;
    margin-bottom: 12px;
    transition: background 0.15s, color 0.15s, transform 0.1s;
}
.quiz-confirm-btn--active {
    background: #1a1a1a;
    color: white;
    cursor: pointer;
}
.quiz-confirm-btn--active:hover { background: #333; transform: translateY(-1px); }
.quiz-confirm-btn--active:active { transform: scale(0.98); }

/* ═══════════════════════════════════════════════════════
   LOOKBOOK REVEAL (Faza 3)
   ═══════════════════════════════════════════════════════ */

/* — Ekran skanowania stylu — */
.quiz-completed__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 56px 0;
}

.style-scan {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.style-scan__radar,
.style-scan__radar::before,
.style-scan__radar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid var(--champagne);
    animation: radar-pulse 2.4s var(--ease-lux) infinite;
}
.style-scan__radar::before { animation-delay: .8s; }
.style-scan__radar::after  { animation-delay: 1.6s; }

@keyframes radar-pulse {
    0%   { transform: scale(.28); opacity: .85; }
    100% { transform: scale(1);   opacity: 0; }
}

.style-scan__core {
    color: var(--champagne-deep);
    animation: core-breathe 1.6s var(--ease-lux) infinite;
    filter: drop-shadow(0 2px 10px var(--champagne-glow));
}
@keyframes core-breathe {
    0%, 100% { transform: scale(.82); opacity: .7; }
    50%      { transform: scale(1.12); opacity: 1; }
}

.shimmer-text {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-style: italic;
    background: linear-gradient(100deg, var(--smoke) 32%, var(--champagne) 50%, var(--smoke) 68%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: shimmer 2.4s linear infinite;
    text-align: center;
    max-width: 280px;
}
@keyframes shimmer {
    to { background-position: -200% center; }
}

/* — Editorial Lookbook — */
.lookbook-reveal { align-items: stretch; }

.lookbook__eyebrow {
    font-family: var(--font-ui);
    font-size: .7rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--champagne-deep);
    text-align: left;
    padding: 0 4px;
}
.lookbook-reveal .quiz-result__para:first-of-type {
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1.4;
    color: var(--ink);
}

.lookbook {
    width: 100%;
    margin-top: 6px;
}

.lookbook__tile {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--cloud);
    box-shadow: var(--shadow-card);
    opacity: 0;
    transform: translateY(16px);
    animation: tile-reveal .6s var(--ease-lux) forwards;
}
@keyframes tile-reveal {
    to { opacity: 1; transform: translateY(0); }
}

.lookbook__media {
    overflow: hidden;
    aspect-ratio: 3 / 4;
}
.lookbook__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .7s var(--ease-lux);
}
.lookbook__tile:hover .lookbook__media img { transform: scale(1.06); }

/* Hero — pełna szerokość, panoramiczny kadr */
.lookbook__tile--hero {
    margin-bottom: 12px;
}
.lookbook__tile--hero .lookbook__media { aspect-ratio: 4 / 3.4; }

/* Komplementy — kolumnowa masonry → asymetria */
.lookbook__rest {
    column-count: 2;
    column-gap: 12px;
}
.lookbook__rest .lookbook__tile {
    width: 100%;
    margin-bottom: 12px;
    break-inside: avoid;
}
.lookbook__rest .lookbook__tile:nth-child(3n+1) .lookbook__media { aspect-ratio: 3 / 4; }
.lookbook__rest .lookbook__tile:nth-child(3n+2) .lookbook__media { aspect-ratio: 3 / 3.4; }
.lookbook__rest .lookbook__tile:nth-child(3n)   .lookbook__media { aspect-ratio: 3 / 4.5; }

/* Podpis + winieta */
.lookbook__info {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 26px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    color: #fff;
    background: linear-gradient(to top, rgba(10,10,10,.72), transparent);
    pointer-events: none;
}
.lookbook__brand {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 13px;
    opacity: .92;
}
.lookbook__name {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lookbook__price {
    font-size: 13px;
    font-weight: 700;
    margin-top: 2px;
}
.lookbook__tile--hero .lookbook__brand { font-size: 16px; }
.lookbook__tile--hero .lookbook__name  { font-size: 14px; white-space: normal; }
.lookbook__tile--hero .lookbook__price { font-size: 15px; }

.lookbook__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--champagne-soft);
    border: 1px solid rgba(255,255,255,.4);
    padding: 5px 10px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

/* Przycisk dodania do listy życzeń */
.lookbook__add {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--smoke);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: transform .2s var(--ease-spring), color .2s, background .2s;
}
.lookbook__add svg { fill: transparent; }
.lookbook__add:hover { transform: scale(1.1); color: var(--nope); }
.lookbook__add--on { color: var(--nope); background: #fff; }
.lookbook__add--on svg { fill: currentColor; }

/* Kafelek klikalny → bottom-sheet z rozmiarami */
.lookbook__tile { cursor: pointer; }
.lookbook__tap-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #fff;
    opacity: .85;
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

/* — Bottom-sheet (detal produktu z Lookbooka) — */
.sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(10,10,10,0);
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease-lux), background .25s var(--ease-lux),
                backdrop-filter .25s var(--ease-lux);
}
.sheet-overlay--open {
    opacity: 1;
    pointer-events: auto;
    background: rgba(10,10,10,.45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.sheet {
    width: 100%;
    max-width: var(--max-width);
    background: var(--paper);
    border-radius: 26px 26px 0 0;
    box-shadow: var(--shadow-premium);
    transform: translateY(102%);
    transition: transform .4s var(--ease-spring);
    max-height: 88dvh;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom);
}
.sheet-overlay--open .sheet { transform: translateY(0); }

.sheet__inner { padding: 10px 20px 24px; }
.sheet__handle {
    width: 44px;
    height: 5px;
    border-radius: 3px;
    background: var(--mist);
    margin: 0 auto 18px;
    cursor: pointer;
}
.sheet__body {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.sheet__img {
    width: 120px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    flex-shrink: 0;
    box-shadow: var(--shadow-card);
}
.sheet__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
    min-width: 0;
}
.sheet__brand {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 17px;
    color: var(--ink);
}
.sheet__name {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.35;
}
.sheet__price {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin-top: 2px;
}
.sheet__sizes-wrap { margin-top: 22px; }
.sheet__no-sizes {
    margin-top: 22px;
    font-size: 13px;
    color: var(--smoke);
}
.sheet .product-card__cta { margin-top: 20px; }

/* ═══════════════════════════════════════════════════════
   DOSTĘPNOŚĆ — reduced motion + focus
   ═══════════════════════════════════════════════════════ */
:focus-visible {
    outline: 2px solid var(--champagne-deep);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ════════════════════════════════════════════════════════
   SALONY → „Twoje Modowe DNA"
   ════════════════════════════════════════════════════════ */
.dna-panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--h-header) + 16px) 16px calc(var(--h-nav) + 24px);
}
.dna-intro,
.dna-quiz,
.dna-loading,
.dna-result {
  width: 100%;
  max-width: 420px;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.dna-loading { gap: 22px; }

/* — Intro — */
.dna-intro__mark {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--champagne-deep);
  margin-bottom: 10px;
}
.dna-intro__mark::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--champagne-glow) 0%, transparent 68%);
  animation: aura-breathe 4.5s var(--ease-lux) infinite;
  z-index: -1;
}
.dna-intro__title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
}
.dna-intro__sub {
  font-size: 14px;
  line-height: 1.55;
  color: var(--smoke);
  max-width: 300px;
  margin: 8px 0 22px;
}
.dna-cta {
  padding: 15px 30px;
  border: none;
  border-radius: 26px;
  cursor: pointer;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-float);
  transition: background .2s, transform .2s var(--ease-spring);
}
.dna-cta:hover { background: var(--champagne-deep); transform: translateY(-2px); }
.dna-cta:active { transform: scale(.97); }
.dna-error {
  margin-top: 18px;
  max-width: 320px;
  font-size: 13px;
  line-height: 1.45;
  color: #b23b34;
  background: #faece9;
  border: 1px solid #eecbc6;
  border-radius: 12px;
  padding: 10px 14px;
}

/* — Mini-quiz — */
.dna-quiz__lead {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  margin: 10px 0 18px;
}

/* — Karta DNA (share-safe: solidne tła, brak glassu) — */
.dna-result { gap: 0; }
.dna-card {
  width: 100%;
  max-width: 340px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--champagne-soft);
  box-shadow: var(--shadow-premium);
}
.dna-card__head {
  position: relative;
  /* gradient html2canvas-safe: kierunek słowny + 2 stopy hex (bez deg/transparent) */
  background: linear-gradient(to bottom, #16120d, #0A0A0A);
  color: #fff;
  padding: 30px 24px 26px;
  text-align: center;
}
.dna-card__head::after {
  content: '';
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 0;
  height: 1px;
  background: var(--champagne);   /* solid — gradient z transparent łamie html2canvas */
  opacity: .55;
}
.dna-card__eyebrow {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--champagne);
}
.dna-card__archetype {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.08;
  margin: 10px 0 6px;
  color: #fff;
}
.dna-card__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--champagne-soft);
}
.dna-card__body { padding: 22px 24px 4px; }
.dna-card__palette {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}
.dna-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(10,10,10,.10);
}
.dna-card__desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  text-align: center;
}
.dna-card__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 16px;
}
.dna-keyword {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--smoke);
  border: 1px solid var(--mist);
  border-radius: 20px;
  padding: 4px 10px;
}
.dna-card__facts {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.dna-fact {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  background: var(--cloud);
  border-radius: 12px;
}
.dna-fact__label {
  display: block;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 4px;
}
.dna-fact__value {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink);
}
.dna-card__foot {
  padding: 16px 24px 20px;
  text-align: center;
}
.dna-card__mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--champagne-deep);
}

/* — Akcje (poza zrzutem html2canvas) — */
.dna-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  width: 100%;
  max-width: 340px;
}
.dna-share {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  transition: background .2s, transform .2s var(--ease-spring);
}
.dna-share:hover:not(:disabled) { background: var(--champagne-deep); transform: translateY(-2px); }
.dna-share:active:not(:disabled) { transform: scale(.97); }
.dna-share:disabled { opacity: .6; cursor: default; }
.dna-restart {
  padding: 14px 18px;
  border: 1.5px solid var(--mist);
  border-radius: 14px;
  background: var(--pearl);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .2s;
}
.dna-restart:hover { border-color: var(--champagne); }

/* ============================================================
   Quiz Inspiracja — Swipe Delight Optimizations
   ============================================================ */

/* Taste Strip */
.taste-strip { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 16px; min-height: 44px; }
.taste-tag { background: var(--champagne); color: var(--ink); font-size: 12px; padding: 4px 10px; border-radius: 20px; animation: tag-pop 0.25s var(--ease-spring); }
@keyframes tag-pop { from { opacity: 0; transform: translateY(6px) scale(0.9); } to { opacity: 1; transform: none; } }
.taste-strip__placeholder { color: var(--ink); opacity: 0.35; font-size: 12px; align-self: center; }

/* Gotowe FAB */
.fab--done { background: var(--champagne); color: var(--ink); font-weight: 600; padding: 10px 20px; border-radius: 24px; opacity: 0.35; pointer-events: none; transition: opacity 0.3s; border: none; cursor: pointer; font-family: var(--font-ui); }
.fab--done.fab--active { opacity: 1; pointer-events: auto; }

/* Hold-to-Reveal overlay */
.swipe-reveal { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 14px; background: rgba(10, 10, 10, 0.72); backdrop-filter: blur(8px); border-radius: 0 0 16px 16px; color: #fff; font-size: 13px; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.swipe-reveal.visible { opacity: 1; }

/* Staggered lookbook reveal */
.lookbook__tile, .lookbook__tile--hero { opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease-out, transform 0.4s ease-out; }
.lookbook__tile.revealed, .lookbook__tile--hero.revealed { opacity: 1; transform: none; }

/* Share button */
.lookbook-share { display: flex; align-items: center; gap: 8px; margin-top: 24px; justify-content: center; font-size: 14px; color: var(--champagne); cursor: pointer; }
.lookbook-share:hover { color: var(--champagne-deep); }
.lookbook-share svg { width: 18px; height: 18px; }

/* Zero-likes dialog */
.zero-likes-dialog { text-align: center; padding: 32px 16px; }
.zero-likes-dialog__chips { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }

/* Celebracja transition */
@keyframes stack-exit { to { transform: scale(0.9); opacity: 0; } }
.swipe-stack--exiting { animation: stack-exit 0.4s ease-in forwards; }

/* ─────────────────────────────────────────────────────────────────────────
   Signature Look + DNA (finał Inspiracji)
   ───────────────────────────────────────────────────────────────────────── */

.dna-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
  margin-bottom: 2rem;
  background: rgba(193, 166, 141, 0.08);
  border-radius: 0.5rem;
  border-left: 3px solid var(--champagne);
}

.dna-strip__content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dna-strip__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--champagne);
}

.dna-strip__values {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--ink);
  font-family: var(--font-serif);
}

.dna-strip__link {
  background: none;
  border: none;
  color: var(--champagne);
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-size: 0.9rem;
}

.dna-strip__link:hover {
  text-decoration: underline;
}

.signature-look {
  margin-bottom: 2rem;
}

.signature-look__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--champagne);
  margin-bottom: 1rem;
}

.signature-look__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.sig-item {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  animation: tile-reveal 0.4s var(--ease-lux) forwards;
}

.sig-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.sig-item--liked {
  border: 2px solid var(--champagne);
}

.sig-item__media {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.sig-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sig-item__slot {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  color: var(--paper);
  font-size: 0.7rem;
  padding: 0.3rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
}

.sig-item__like {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1rem;
}

.sig-item__wishlist {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--paper);
  transition: background 0.3s ease;
}

.sig-item__wishlist:hover {
  background: rgba(0, 0, 0, 0.8);
}

.sig-item__wishlist--on {
  color: var(--champagne);
}

.sig-rationale {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 1rem;
  font-style: italic;
}

.sig-add-all {
  width: 100%;
  padding: 1rem;
  background: var(--champagne);
  color: var(--ink);
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: opacity 0.3s ease;
}

.sig-add-all:hover {
  opacity: 0.8;
}

.shelf {
  margin-bottom: 2rem;
}

.shelf__cat {
  margin-bottom: 1.5rem;
}

.shelf__head {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--champagne);
  margin-bottom: 1rem;
}

.shelf__scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
}

.shelf__scroll::-webkit-scrollbar {
  height: 4px;
}

.shelf__scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 2px;
}

.shelf__scroll::-webkit-scrollbar-thumb {
  background: var(--champagne);
  border-radius: 2px;
}

.shelf__tile {
  position: relative;
  flex: 0 0 110px;
  aspect-ratio: 3/4;
  border-radius: 0.4rem;
  overflow: hidden;
  cursor: pointer;
}

.shelf__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.shelf__tile:hover img {
  transform: scale(1.05);
}

.shelf__add {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--paper);
  transition: background 0.3s ease;
}

.shelf__add:hover {
  background: rgba(0, 0, 0, 0.8);
}

.shelf__add--on {
  color: var(--champagne);
}

/* ── Mini-karta DNA (Inspiracja Results) ── */
.quiz-intro {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 1.5rem 0;
  color: var(--ink);
}

.dna-card-mini {
  background: rgba(193, 166, 141, 0.08);
  border: 1px solid rgba(193, 166, 141, 0.15);
  border-radius: 0.8rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.dna-card-mini__header {
  margin-bottom: 1rem;
}

.dna-card-mini__archetype {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0 0 0.3rem;
  color: var(--ink);
}

.dna-card-mini__tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--champagne);
  margin: 0;
}

.dna-card-mini__description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 1rem 0;
}

.dna-card-mini__palette {
  display: flex;
  gap: 0.6rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.dna-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.dna-card-mini__keywords {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.dna-chip {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: rgba(193, 166, 141, 0.15);
  border-radius: 1rem;
  font-size: 0.85rem;
  color: var(--ink);
}

.dna-card-mini__link {
  display: block;
  margin-top: 1rem;
  padding: 0.5rem 0;
  background: none;
  border: none;
  color: var(--champagne);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}

.dna-card-mini__link:hover {
  text-decoration: underline;
}

/* ── Stos looków ── */
.looks-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 1.5rem 0;
}

.look-block {
  opacity: 0;
  transform: translateY(1rem);
  animation: reveal-look 0.5s ease-out forwards;
}

.look-block.revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes reveal-look {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.look-block__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.8rem;
}

.look-block__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

.look-block__occasion {
  font-size: 0.85rem;
  color: var(--champagne);
  font-weight: 500;
}

.look-block__rationale {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0.8rem 0 1.2rem;
}

.look-block__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.sig-add-all {
  padding: 0.6rem 1rem;
  background: none;
  border: 1px solid var(--champagne);
  border-radius: 0.4rem;
  color: var(--champagne);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
}

.sig-add-all:hover {
  background: rgba(193, 166, 141, 0.1);
}

.sig-item__brand {
  position: absolute;
  bottom: 0.4rem;
  left: 0.4rem;
  background: rgba(0, 0, 0, 0.6);
  color: var(--paper);
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
  border-radius: 0.2rem;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Quiz toast notification ── */
.quiz-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.8rem 1.5rem;
  border-radius: 0.4rem;
  font-size: 0.95rem;
  cursor: pointer;
  z-index: 50;
  animation: toast-pop 0.3s ease;
}

@keyframes toast-pop {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sig-item,
  .sig-item.revealed {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ============ Consent + Profile Sync + Toast ============ */

.consent-bar {
  position: fixed;
  bottom: 60px;
  left: 0;
  right: 0;
  backdrop-filter: blur(10px) saturate(120%);
  background: rgba(250, 249, 246, 0.9);
  border-top: 1px solid rgba(193, 166, 141, 0.2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  z-index: 1000;
  animation: consent-slide-up 300ms ease-out;
}

@keyframes consent-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.consent-bar__content {
  flex: 1;
}

.consent-bar__text {
  margin: 0;
  color: var(--ink);
  line-height: 1.4;
}

.consent-bar__details-btn {
  background: none;
  border: none;
  color: var(--champagne);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font: inherit;
}

.consent-bar__details-btn:hover {
  opacity: 0.8;
}

.consent-bar__details {
  display: none;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(193, 166, 141, 0.2);
  color: #666;
}

.consent-bar__details.open {
  display: block;
}

.consent-bar__ok {
  background: var(--champagne);
  color: var(--paper);
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  margin-left: 12px;
  transition: opacity 200ms;
}

.consent-bar__ok:hover {
  opacity: 0.9;
}

.profile-sync {
  border-top: 1px solid rgba(193, 166, 141, 0.2);
  padding-top: 16px;
  margin-top: 16px;
}

.profile-sync__header {
  margin-bottom: 12px;
}

.profile-sync__header h3 {
  margin: 0 0 4px;
  font-family: Playfair Display, serif;
  font-size: 16px;
  color: var(--ink);
}

.profile-sync__desc {
  margin: 0;
  font-size: 12px;
  color: #999;
}

.profile-sync__form {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.profile-sync__input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid rgba(193, 166, 141, 0.3);
  border-radius: 4px;
  font-size: 13px;
  font-family: Inter, sans-serif;
}

.profile-sync__input:focus {
  outline: none;
  border-color: var(--champagne);
  box-shadow: 0 0 0 2px rgba(193, 166, 141, 0.1);
}

.profile-sync__btn {
  background: var(--champagne);
  color: var(--paper);
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: opacity 200ms;
}

.profile-sync__btn:hover:not(:disabled) {
  opacity: 0.9;
}

.profile-sync__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.profile-sync__msg {
  font-size: 12px;
  color: var(--champagne);
  margin: 8px 0;
}

.profile-sync__email {
  font-size: 12px;
  color: #999;
  margin: 8px 0;
}

.profile-sync__danger {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  text-decoration: underline;
  transition: color 200ms;
}

.profile-sync__danger:hover {
  color: #666;
}

.profile-toast {
  position: fixed;
  bottom: 12px;
  left: 16px;
  right: 16px;
  background: rgba(10, 10, 10, 0.9);
  color: var(--paper);
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13px;
  z-index: 999;
  animation: toast-pop 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes toast-pop {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent-bar,
  .profile-toast {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ── Drift Nudge (Faza 2) ──────────────────────────────────────────── */
.drift-nudge {
  border-left: 3px solid var(--champagne);
  padding: 12px 16px;
  margin: 16px 0;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink);
  opacity: 0.85;
}

.drift-nudge__text {
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.drift-nudge__btn {
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--champagne);
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
  padding: 0;
  font-weight: 600;
}

/* ── Surprise FAB & Overlay (Serendipity - Faza 3) ──────────────── */
.fab--surprise {
  background: linear-gradient(135deg, var(--champagne), #a07850);
  color: white;
  font-size: 1.2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-float);
  transition: transform 0.2s var(--ease-spring);
}

.fab--surprise:hover {
  transform: scale(1.08);
}

.fab--surprise.fab--loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ── Surprise Overlay ──────────────────────────────────────── */
.surprise-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom);
}

.surprise-panel {
  background: var(--paper);
  border-radius: 24px 24px 0 0;
  padding: 24px 16px 32px;
  width: 100%;
  max-width: var(--max-width);
  max-height: 85vh;
  overflow-y: auto;
}

.surprise-intro {
  font-style: italic;
  color: var(--champagne);
  margin-bottom: 16px;
  font-size: 0.95rem;
  text-align: center;
}

.surprise-cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.surprise-card-item {
  flex: 0 0 160px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg, #f5f3f0);
}

.surprise-card-item img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.surprise-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--champagne);
  color: white;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

.surprise-card-name {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 8px 2px;
}

.surprise-card-reason {
  font-size: 0.7rem;
  color: var(--muted, #888);
  padding: 0 8px 8px;
  font-style: italic;
  line-height: 1.3;
}

.surprise-add-btn {
  width: 100%;
  background: none;
  border-top: 1px solid var(--border, #eee);
  padding: 8px;
  font-size: 0.8rem;
  color: var(--champagne);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.surprise-add-btn:hover {
  background: var(--paper, #fafaf8);
}

.surprise-close {
  display: block;
  margin: 16px auto 0;
  background: none;
  border: none;
  color: var(--muted, #888);
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  padding: 0;
  transition: color 0.15s;
}

.surprise-close:hover {
  color: var(--ink);
}

/* ── Profile Mini-Card (Szafa tab, Faza 4) ─────────────── */
.profile-mini-card {
  margin: 12px 16px 4px;
  padding: 14px 16px;
  background: var(--glass-bg);
  border: 1px solid rgba(193,166,141,0.25);
  border-radius: 16px;
}

.profile-mini-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.profile-mini-card__archetype {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.profile-mini-card__pick-btn {
  background: none;
  border: none;
  color: var(--champagne);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px 0;
  transition: opacity 0.15s;
}

.profile-mini-card__pick-btn:hover {
  opacity: 0.7;
}

.completeness-bar {
  height: 4px;
  background: rgba(193,166,141,0.2);
  border-radius: 2px;
  margin-bottom: 12px;
  overflow: hidden;
}

.completeness-bar__fill {
  height: 100%;
  background: var(--champagne);
  border-radius: 2px;
  transition: width 0.6s var(--ease-lux);
}

.profile-mini-colors {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.color-tone-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
}

.color-tone-label {
  width: 68px;
  color: var(--muted, #888);
  text-transform: capitalize;
}

.color-tone-track {
  flex: 1;
  height: 6px;
  background: rgba(0,0,0,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.color-tone-bar {
  height: 100%;
  background: var(--champagne);
  border-radius: 3px;
  transition: width 0.5s;
}

.color-tone-count {
  width: 16px;
  text-align: right;
  color: var(--muted, #888);
}

/* ── Archetype Picker Overlay ───────────────────── */
.archetype-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.65);
  backdrop-filter: blur(4px);
  z-index: 210;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.archetype-panel {
  background: var(--paper);
  border-radius: 24px 24px 0 0;
  padding: 24px 16px 40px;
  width: 100%;
  max-width: var(--max-width);
  max-height: 90vh;
  overflow-y: auto;
}

.archetype-panel__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 4px;
  color: var(--ink);
}

.archetype-panel__sub {
  text-align: center;
  color: var(--muted, #888);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.archetype-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.archetype-tile {
  border: 1.5px solid rgba(193,166,141,0.3);
  border-radius: 12px;
  padding: 12px 8px;
  background: none;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
  font-size: inherit;
}

.archetype-tile:hover {
  border-color: var(--champagne);
  background: rgba(193,166,141,0.06);
}

.archetype-tile--active {
  border-color: var(--champagne);
  background: rgba(193,166,141,0.12);
}

.archetype-tile__name {
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.2;
}

.archetype-tile__hint {
  font-size: 0.65rem;
  color: var(--muted, #888);
  line-height: 1.3;
}

.archetype-close {
  display: block;
  margin: 0 auto;
  background: none;
  border: none;
  color: var(--muted, #888);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  font-family: inherit;
  transition: color 0.15s;
}

.archetype-close:hover {
  color: var(--ink);
}

/* ── Drift Nudge dismiss button ─────────────────── */
.drift-nudge__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.drift-nudge__dismiss {
  background: none;
  border: none;
  color: var(--muted, #888);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
  transition: color 0.15s;
}

.drift-nudge__dismiss:hover {
  color: var(--ink);
}

/* ============================================================
   Mój Styl Tab Consolidation Styles
   ============================================================ */

/* --- Styl w liczbach --- */
.style-stats {
  margin-top: 30px;
  width: 100%;
  max-width: 360px;
  background: var(--pearl);
  border: 1px solid var(--mist);
  border-radius: 20px;
  padding: 20px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.style-stats__title,
.style-journey__title,
.style-surprise__title,
.style-gallery-cta__title,
.style-settings__title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 16px;
  font-weight: normal;
}
.style-stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.style-stat {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid var(--cloud);
  display: flex;
  flex-direction: column;
}
.style-stat__value {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--champagne-deep);
  margin-bottom: 4px;
}
.style-stat__label {
  font-size: 11px;
  color: var(--smoke);
  line-height: 1.3;
}
.style-stats--locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
}
.style-stats__teaser {
  font-size: 13px;
  color: var(--smoke);
  margin-bottom: 12px;
}
.style-stats__cta {
  background: none;
  border: 1px solid var(--champagne);
  color: var(--champagne-deep);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.style-stats__cta:hover {
  background: var(--champagne);
  color: #fff;
}

/* --- Twoja Podróż --- */
.style-journey {
  margin-top: 20px;
  width: 100%;
  max-width: 360px;
  background: var(--pearl);
  border: 1px solid var(--mist);
  border-radius: 20px;
  padding: 20px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.style-journey__insight {
  background: #fff;
  border: 1px solid var(--cloud);
  border-radius: 14px;
  padding: 14px;
}
.style-journey__text {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.4;
  margin: 0 0 12px 0;
}
.style-journey__actions {
  display: flex;
  gap: 8px;
}
.style-journey__accept {
  flex: 1;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.style-journey__dismiss {
  background: none;
  border: 1px solid var(--mist);
  color: var(--smoke);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
}
.style-journey__stable,
.style-journey__empty {
  font-size: 13px;
  color: var(--smoke);
  line-height: 1.4;
  margin: 0;
}

/* --- Zaskocz mnie --- */
.style-surprise {
  margin-top: 20px;
  width: 100%;
  max-width: 360px;
  background: var(--pearl);
  border: 1px solid var(--mist);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
  flex-shrink: 0;
}
.style-surprise::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top right, rgba(193, 166, 141, 0.18) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 0 20px 0 0;
  z-index: 0;
}
.style-surprise .style-scan {
  margin: 12px auto;
  position: relative;
  z-index: 1;
}
.style-surprise__locked {
  font-size: 13px;
  color: var(--smoke);
  line-height: 1.4;
  position: relative;
  z-index: 1;
}
.style-surprise__cta {
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
  position: relative;
  z-index: 1;
}
.style-surprise__cta:disabled {
  opacity: 0.6;
}
.style-surprise__result {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.style-surprise__reason {
  font-size: 13px;
  color: var(--smoke);
  line-height: 1.4;
  margin: 0;
}
.style-surprise__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@keyframes surprise-reveal {
  0% {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
.style-surprise__card {
  background: #fff;
  border: 1px solid var(--cloud);
  border-radius: 14px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  animation: surprise-reveal 0.5s var(--ease-lux) forwards;
  opacity: 0;
}
.style-surprise__card:nth-child(1) {
  animation-delay: 0.08s;
}
.style-surprise__card:nth-child(2) {
  animation-delay: 0.18s;
}
.style-surprise__card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 6px;
}
.style-surprise__card-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.style-surprise__card-reason {
  font-size: 10px;
  color: var(--smoke);
  margin-bottom: 8px;
  line-height: 1.2;
}
.style-surprise__add {
  background: var(--cloud);
  color: var(--ink);
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all .2s;
}
.style-surprise__add:hover {
  background: var(--champagne);
  color: #fff;
}
.style-surprise__retry {
  background: none;
  border: 1px solid var(--mist);
  color: var(--ink);
  padding: 8px;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
  align-self: center;
  margin-top: 4px;
}
.style-surprise__empty {
  font-size: 13px;
  color: var(--smoke);
  margin: 0;
}

/* --- Twoja galeria czeka --- */
.style-gallery-cta {
  margin-top: 20px;
  width: 100%;
  max-width: 360px;
  background: var(--pearl);
  border: 1px solid var(--mist);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  flex-shrink: 0;
}
.style-gallery-cta__copy {
  font-size: 13px;
  color: var(--ink);
  margin: 0 0 4px 0;
}
.style-gallery-cta__stock {
  font-size: 12px;
  color: #d93838;
  font-weight: 600;
  margin: 0 0 12px 0;
}
.style-gallery-cta__btn {
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
}

/* --- Reward Tile --- */
.reward-tile {
  background: #fff;
  border: 1px dashed var(--mist);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.reward-tile--unlocked {
  border: 1px solid var(--champagne);
  background: #fffdf9;
}
.reward-tile__locked {
  font-size: 11px;
  color: var(--smoke);
  margin: 0;
}
.reward-tile__unlocked {
  font-size: 12px;
  color: var(--ink);
  margin: 0;
  line-height: 1.4;
}
.reward-tile__unlocked strong {
  display: block;
  font-size: 18px;
  color: var(--champagne-deep);
  letter-spacing: 1px;
  margin-top: 4px;
  font-family: var(--font-display);
}

/* --- Profil i ustawienia --- */
.style-settings {
  margin-top: 20px;
  width: 100%;
  max-width: 360px;
  background: var(--pearl);
  border: 1px solid var(--mist);
  border-radius: 20px;
  padding: 20px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.style-settings .profile-mini-card {
  margin-bottom: 20px;
}

/* --- Modal podglądu produktu Zaskocz mnie (Faza H) --- */
.surprise-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(8px);
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.surprise-modal {
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  position: relative;
  overflow-y: auto;
  box-shadow: var(--shadow-premium);
  animation: modal-appear 0.35s var(--ease-lux) forwards;
  display: flex;
  flex-direction: column;
}

@keyframes modal-appear {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.surprise-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--mist);
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}
.surprise-modal__close:hover {
  background: #fff;
  border-color: var(--smoke);
}

.surprise-modal__content {
  display: flex;
  flex-direction: column;
}

.surprise-modal__image-wrapper {
  width: 100%;
  height: 320px;
  background: var(--cloud);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.surprise-modal__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.surprise-modal__details {
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.surprise-modal__brand {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--smoke);
  margin-bottom: 6px;
}

.surprise-modal__name {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.surprise-modal__price-color {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 18px;
}
.surprise-modal__price {
  font-weight: 600;
  color: var(--ink);
}
.surprise-modal__bullet {
  color: var(--mist);
}
.surprise-modal__color {
  color: var(--smoke);
}

.surprise-modal__reason-box {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.surprise-modal__reason-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--champagne);
}
.surprise-modal__reason-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--champagne-deep);
  font-weight: 600;
  margin-bottom: 4px;
}
.surprise-modal__reason {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.45;
  margin: 0;
}

.surprise-modal__actions {
  display: flex;
  gap: 12px;
}

.surprise-modal__add {
  flex: 1;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  text-align: center;
}
.surprise-modal__add:hover {
  opacity: 0.9;
}

.surprise-modal__buy {
  flex: 1;
  background: none;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, color 0.2s;
  box-sizing: border-box;
  display: inline-block;
}
.surprise-modal__buy:hover {
  background: var(--ink);
  color: #fff;
}

/* Responsywność dla szerszych ekranów — podział na dwie kolumny */
@media (min-width: 576px) {
  .surprise-modal {
    max-width: 720px;
  }
  .surprise-modal__content {
    flex-direction: row;
    height: 420px;
  }
  .surprise-modal__image-wrapper {
    width: 320px;
    height: 100%;
    flex-shrink: 0;
  }
  .surprise-modal__details {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
  }
}
