/* ============================================
   LOOKSCHRANK v2 — APP CSS
   Matches mockup exactly: warm cream/beige,
   clean cards, flatlay outfit display
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box; margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg:        #F5F2EE;
  --bg-card:   #FFFFFF;
  --bg-warm:   #EDE8E1;
  --bg-cream:  #E8DED2;
  --border:    #E2DDD7;
  --border-mid:#CEC8C0;
  --text:      #1C1917;
  --text-mid:  #6B6460;
  --text-soft: #A09890;
  --accent:    #1C1917;
  --warm:      #8B7355;
  --warm-lt:   #C4A882;
  --danger:    #B03020;
  --unworn:    #C4956A;
  --green:     #2D6A2D;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-full: 100px;

  --nav: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

html {
  height: 100%;
  overflow: hidden;
  /* Prevent text size adjustment on orientation change */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  /* Use dvh (dynamic viewport height) — hides browser chrome on scroll */
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  line-height: 1.5;
  /* Prevent pull-to-refresh on Android Chrome */
  touch-action: pan-x pan-y;
  /* Max width centered — looks native on tablet/desktop too */
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }

/* ══════════════════ SPLASH ══════════════════ */
.splash {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 900;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.splash.out { opacity: 0; transform: scale(0.96); pointer-events: none; }

.splash-inner {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 300; letter-spacing: 0.06em;
  color: var(--text);
  font-family: 'Palatino Linotype', Georgia, serif;
  animation: splashPop 0.5s cubic-bezier(0.34,1.6,0.64,1) both;
}
@keyframes splashPop {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* ══════════════════ APP SHELL ══════════════════ */
.app {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 100vh;
  height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg);
  box-shadow: 0 0 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06);
}

.screens { flex: 1; position: relative; overflow: hidden; }

.screen {
  position: absolute; inset: 0;
  bottom: var(--nav);
  overflow-y: hidden; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  opacity: 0; pointer-events: none;
  transform: translateX(20px);
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease);
  padding-top: var(--safe-t);
}
.screen::-webkit-scrollbar { display: none; }
.screen.active { opacity: 1; pointer-events: all; transform: none; }

/* ══════════════════ TOPBAR ══════════════════ */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  height: 52px; padding: 0 16px;
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  transition: background 0.2s, box-shadow 0.2s;
}
.topbar.scrolled { box-shadow: 0 1px 0 var(--border); }

.topbar-title {
  font-size: 16px; font-weight: 500; letter-spacing: 0.01em;
}

.icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.15s;
}
.icon-btn:active { background: var(--bg-warm); }

/* ══════════════════ HOME ══════════════════ */
.home-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-t) + 16px) 18px 10px;
}

.logo-mark {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Palatino Linotype', Georgia, serif;
  font-size: 17px; font-weight: 400; letter-spacing: 0.05em;
}

.guest-badge { display: none; }

.home-hero-text {
  padding: 4px 18px 20px;
}
.home-hero-text h1 {
  font-family: 'Palatino Linotype', Georgia, serif;
  font-size: 34px; font-weight: 300;
  line-height: 1.15; letter-spacing: -0.01em;
  color: var(--text); margin-bottom: 8px;
}
.home-hero-text p {
  font-size: 13px; color: var(--text-mid);
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* Hero preview */
.home-hero-preview {
  margin: 0 18px 20px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 2px 12px rgba(28,25,23,0.07);
}
.hero-empty-state {
  display: flex; align-items: center; justify-content: center;
  min-height: 180px; padding: 20px;
}
.hero-clothing-mock {
  display: flex; gap: 10px; align-items: flex-end;
}
.mock-item {
  border-radius: var(--r-sm);
  background: var(--bg-warm);
}
.mock-item.top    { width: 56px; height: 56px; }
.mock-item.bottom { width: 44px; height: 70px; }
.mock-item.shoe   { width: 36px; height: 36px; border-radius: 50%; }
.mock-item.bag    { width: 44px; height: 48px; }

/* Feature list */
.feature-list {
  margin: 0 18px 20px;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(28,25,23,0.05);
}
.feature-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row:active { background: var(--bg-warm); }
.feature-icon {
  width: 38px; height: 38px;
  background: var(--bg-warm); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-text { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.feature-title { font-size: 14px; font-weight: 500; }
.feature-sub   { font-size: 12px; color: var(--text-soft); }

/* CTA Buttons */
.home-ctas {
  padding: 0 18px 22px;
  display: flex; flex-direction: column; gap: 10px;
}

/* Sections */
.home-section { padding: 0 18px 22px; }
.section-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.section-label {
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
}
.section-link {
  font-size: 13px; color: var(--warm);
  font-weight: 500;
}

/* Horizontal scroll suggestions */
.hscroll {
  display: flex; gap: 12px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  margin: 0 -18px; padding-left: 18px; padding-right: 18px;
  scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll-empty { color: var(--text-soft); font-size: 13px; padding: 10px 0; }

.suggestion-card {
  flex: 0 0 140px; scroll-snap-align: start;
  background: var(--bg-card);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(28,25,23,0.07);
  transition: transform 0.15s;
}
.suggestion-card:active { transform: scale(0.97); }
.suggestion-card-img {
  width: 100%; aspect-ratio: 3/4;
  background: var(--bg-warm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  position: relative;
  overflow: hidden;
}
.suggestion-card-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.suggestion-card-img .cell {
  background: var(--bg-warm);
  overflow: hidden;
}
.sug-heart {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  transition: transform 0.2s var(--spring);
}
.sug-heart:active { transform: scale(0.85); }
.sug-heart.active svg { fill: #C0392B; stroke: #C0392B; }

.suggestion-card-info {
  padding: 8px 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.sug-score { font-size: 12px; font-weight: 600; color: var(--text); }
.sug-bar {
  height: 3px; width: 50px;
  background: var(--border); border-radius: 2px; overflow: hidden;
}
.sug-bar-fill { height: 100%; background: var(--warm); border-radius: 2px; }

/* Stats grid */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; padding: 0 18px 22px;
}
.stat-card {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 14px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  box-shadow: 0 1px 6px rgba(28,25,23,0.05);
  cursor: pointer;
}
.stat-icon {
  width: 36px; height: 36px;
  background: var(--bg-warm); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
}
.stat-num {
  font-size: 22px; font-weight: 600; line-height: 1;
  font-family: 'Palatino Linotype', Georgia, serif;
}
.stat-lbl {
  font-size: 10px; color: var(--text-soft);
  text-align: center; line-height: 1.3;
  letter-spacing: 0.02em;
}

/* Fave colors */
.color-chips {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.color-chip {
  width: 32px; height: 32px; border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  border: 2px solid rgba(255,255,255,0.6);
}

/* Home badges */
.home-badges {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; padding: 0 18px 32px;
}
.badge-item {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 14px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  text-align: center;
  box-shadow: 0 1px 6px rgba(28,25,23,0.05);
}
.badge-item span { font-size: 12px; font-weight: 600; }
.badge-item small { font-size: 10px; color: var(--text-soft); line-height: 1.3; }

/* ══════════════════ BUTTONS ══════════════════ */
.btn-black {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 52px;
  background: var(--text); color: #F5F2EE;
  border-radius: var(--r-full);
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  transition: opacity 0.15s, transform 0.15s;
}
.btn-black:active { opacity: 0.88; transform: scale(0.99); }
.btn-black.sm { width: auto; height: 44px; padding: 0 24px; }

.btn-cream {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 52px;
  background: var(--bg-cream); color: var(--text);
  border-radius: var(--r-full);
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  transition: background 0.15s, transform 0.15s;
}
.btn-cream:active { background: #DDD3C4; transform: scale(0.99); }

.btn-ghost {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 48px;
  background: transparent; color: var(--text-mid);
  font-size: 15px; letter-spacing: 0.01em;
  transition: color 0.15s;
}
.btn-ghost:active { color: var(--text); }

/* ══════════════════ UPLOAD ══════════════════ */
.upload-source-row {
  display: flex; gap: 10px;
  padding: 10px 18px 14px;
}
.source-btn {
  flex: 1; height: 44px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border-mid);
  font-size: 14px; font-weight: 500; color: var(--text-mid);
  background: transparent;
  transition: all 0.15s;
}
.source-btn.active {
  background: var(--text); color: #F5F2EE;
  border-color: var(--text);
}
.source-btn:not(.active):active { background: var(--bg-warm); }

/* Upload zone */
.upload-zone {
  margin: 0 18px 16px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #2A2520;
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
}

.upload-empty {
  width: 100%; height: 100%;
  min-height: 280px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 24px;
}

.camera-shutter {
  position: relative;
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
}
.shutter-ring {
  position: absolute; inset: 0;
  border: 2.5px solid rgba(255,255,255,0.5);
  border-radius: 50%;
}
.shutter-btn {
  width: 54px; height: 54px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  transition: transform 0.15s var(--spring);
}
.upload-zone:active .shutter-btn { transform: scale(0.9); }

.upload-actions-row {
  display: flex; gap: 32px;
}
.upload-action-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50%;
}

/* Preview */
.upload-preview-wrap {
  width: 100%; min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.upload-preview-wrap img {
  width: 100%; max-height: 380px;
  object-fit: contain;
}
.preview-badge {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(28,25,23,0.82);
  color: #fff;
  padding: 5px 12px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 500;
  display: flex; align-items: center; gap: 5px;
  backdrop-filter: blur(6px);
  letter-spacing: 0.02em;
}

/* Preview thumb row */
.preview-thumb-row {
  display: flex; align-items: center; gap: 12px;
  margin: 0 18px 14px;
  padding: 12px 14px;
  background: var(--bg-card);
  border-radius: var(--r-md);
  box-shadow: 0 1px 6px rgba(28,25,23,0.06);
}
.preview-thumb {
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  overflow: hidden; background: var(--bg-warm); flex-shrink: 0;
}
.preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.preview-thumb-info { display: flex; flex-direction: column; gap: 2px; }
.preview-thumb-info span { font-size: 14px; font-weight: 500; }
.preview-thumb-info small { font-size: 12px; color: var(--green); }

/* Upload form */
.upload-form { padding: 0 18px calc(24px + var(--nav)); }

.form-group { margin-bottom: 24px; }
.form-lbl {
  display: block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-mid); margin-bottom: 12px;
}

.cat-list {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.cat-pill {
  display: flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 14px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-full);
  font-size: 13px; font-weight: 500;
  color: var(--text-mid); background: transparent;
  transition: all 0.15s;
}
.cat-pill.sel {
  background: var(--text); color: #F5F2EE;
  border-color: var(--text);
}
.cat-pill:not(.sel):active { background: var(--bg-warm); }

/* Grouped categories - horizontal label like reference */
.cat-group { margin-bottom: 10px; }
.cat-group-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-soft);
  margin-bottom: 6px;
}
.cat-group-label svg { opacity: 0.65; flex-shrink: 0; }
.cat-group-pills { display: flex; gap: 7px; flex-wrap: wrap; }

.color-pick-row {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.cpick {
  width: 36px; height: 36px; border-radius: 50%;
  transition: transform 0.2s var(--spring), box-shadow 0.15s;
  position: relative; flex-shrink: 0;
}
.cpick.active::after {
  content: '';
  position: absolute; inset: -3px;
  border: 2px solid var(--text);
  border-radius: 50%;
}
.cpick:active { transform: scale(0.88); }

.upload-btns {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 8px;
}

/* ══════════════════ FILTERS ══════════════════ */
.filter-scroll {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 18px 12px; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  position: sticky; top: 52px; z-index: 5;
  background: var(--bg);
}
.filter-scroll::-webkit-scrollbar { display: none; }

.fpill {
  flex: 0 0 auto; height: 34px; padding: 0 16px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border-mid);
  font-size: 13px; font-weight: 500;
  color: var(--text-mid); background: transparent;
  white-space: nowrap;
  transition: all 0.15s;
  display: flex; align-items: center; gap: 6px;
}
.fpill.active {
  background: var(--text); color: #F5F2EE;
  border-color: var(--text);
}
.fpill:not(.active):active { background: var(--bg-warm); }

.unworn-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--unworn); flex-shrink: 0;
}

/* ══════════════════ WARDROBE GRID ══════════════════ */
.ward-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px; padding: 12px 14px;
  padding-bottom: calc(120px + var(--nav, 60px));
}
@media (min-width: 380px) {
  .ward-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 12px; padding-bottom: calc(120px + var(--nav, 60px)); }
}

.ward-item {
  aspect-ratio: 3/4;
  background: #F0EDE8;
  overflow: hidden; cursor: pointer;
  position: relative;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(28,25,23,0.08);
  transition: transform 0.18s, box-shadow 0.18s;
}
.ward-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.2s var(--ease);
}
.ward-item:active { transform: scale(0.97); box-shadow: 0 1px 4px rgba(28,25,23,0.10); }
.ward-item:active img { transform: scale(1); }

.ward-item-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 10px 8px;
  background: linear-gradient(transparent, rgba(28,25,23,0.55));
  border-radius: 0 0 16px 16px;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.ward-cat-lbl {
  font-size: 9px; color: rgba(245,242,238,0.95);
  letter-spacing: 0.07em; text-transform: uppercase;
  font-weight: 600;
}
.ward-color-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.6);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.ward-unworn-dot {
  position: absolute; top: 8px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--unworn);
  border: 1.5px solid #fff;
}

.ward-empty {
  grid-column: 1/-1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  padding: 60px 32px;
  text-align: center;
}
.ward-empty p {
  font-family: 'Palatino Linotype', Georgia, serif;
  font-size: 16px; line-height: 1.6;
  color: var(--text-soft);
}

/* ══════════════════ OUTFIT FEED ══════════════════ */
.outfit-feed {
  padding: 8px 18px calc(28px + var(--nav));
  display: flex; flex-direction: column; gap: 16px;
}

.ocard {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(28,25,23,0.07);
  animation: cardUp 0.28s var(--ease) both;
  cursor: pointer;
}
@keyframes cardUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Outfit visual — flatlay like mockup reference */
.ocard-visual {
  width: 100%;
  background: #F7F4EF;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 22px 16px 16px;
  min-height: 220px;
  gap: 8px;
  overflow: hidden;
}

/* Subtle warm tint stripe at top */
.ocard-visual::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  background: linear-gradient(180deg, #EDE8DF 0%, #F7F4EF 60%);
  pointer-events: none;
}

.ocard-item {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  flex-shrink: 0;
  display: flex; align-items: flex-end; justify-content: center;
  position: relative;
  z-index: 1;
}
.ocard-item img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(28,25,23,0.12));
}

/* Layout variants — matching mockup proportions */
/* l2: jacket + jeans side by side, large */
.ocard-visual.l2 .ocard-item:nth-child(1) { width: 145px; height: 175px; }
.ocard-visual.l2 .ocard-item:nth-child(2) { width: 130px; height: 195px; }

/* l3: top + bottom + shoes or bag */
.ocard-visual.l3 .ocard-item:nth-child(1) { width: 130px; height: 165px; }
.ocard-visual.l3 .ocard-item:nth-child(2) { width: 115px; height: 185px; }
.ocard-visual.l3 .ocard-item:nth-child(3) { width: 95px;  height: 115px; align-self: center; }

/* l4: full outfit */
.ocard-visual.l4 { padding: 18px 12px 14px; gap: 6px; }
.ocard-visual.l4 .ocard-item:nth-child(1) { width: 110px; height: 145px; }
.ocard-visual.l4 .ocard-item:nth-child(2) { width: 100px; height: 165px; }
.ocard-visual.l4 .ocard-item:nth-child(3) { width: 82px;  height: 100px; align-self: center; }
.ocard-visual.l4 .ocard-item:nth-child(4) { width: 78px;  height: 92px;  align-self: center; }

/* l5: full outfit with accessories */
.ocard-visual.l5 { padding: 16px 10px 12px; gap: 5px; }
.ocard-visual.l5 .ocard-item:nth-child(1) { width: 96px;  height: 128px; }
.ocard-visual.l5 .ocard-item:nth-child(2) { width: 88px;  height: 148px; }
.ocard-visual.l5 .ocard-item:nth-child(3) { width: 74px;  height: 92px;  align-self: center; }
.ocard-visual.l5 .ocard-item:nth-child(4) { width: 70px;  height: 86px;  align-self: center; }
.ocard-visual.l5 .ocard-item:nth-child(5) { width: 62px;  height: 76px;  align-self: center; }

/* l1 single item */
.ocard-visual.l1 .ocard-item { width: 160px; height: 205px; }


/* Score strip */
.ocard-score-strip {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px; background: var(--border);
}
.ocard-score-fill {
  height: 100%; background: var(--warm); border-radius: 0 2px 2px 0;
  transition: width 0.6s cubic-bezier(0,0,0.2,1);
}

/* Card info row — matches mockup */
.ocard-info {
  padding: 12px 16px 6px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
}
.ocard-score-group { display: flex; flex-direction: column; gap: 5px; }
.ocard-score-num {
  font-family: 'Palatino Linotype', Georgia, serif;
  font-size: 20px; font-weight: 400; line-height: 1;
  color: var(--text);
}
.ocard-score-num small { font-size: 12px; opacity: 0.5; }
.ocard-score-lbl {
  font-size: 11px; color: var(--text-soft);
  letter-spacing: 0.03em;
}
/* Green progress bar like mockup */
.ocard-score-bar {
  height: 5px; width: 120px;
  background: var(--border); border-radius: 3px; overflow: hidden;
}
.ocard-score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF7A, #2D8A52);
  border-radius: 3px;
  transition: width 0.7s cubic-bezier(0,0,0.2,1);
}

.ocard-btns { display: flex; gap: 8px; }
.ocard-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg-warm);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, transform 0.2s var(--spring);
  color: var(--text-mid);
}
.ocard-btn:active { transform: scale(0.88); }
.ocard-btn.fav-active { background: #FDECEA; color: #C0392B; }
.ocard-btn.fav-active svg { fill: currentColor; }

/* Chips */
.ocard-chips {
  display: flex; gap: 6px; padding: 0 16px 14px;
  overflow-x: auto; scrollbar-width: none;
}
.ocard-chips::-webkit-scrollbar { display: none; }
.ochip {
  flex: 0 0 auto; height: 26px; padding: 0 12px;
  border-radius: var(--r-full);
  background: var(--bg-warm);
  font-size: 11px; color: var(--text-mid); font-weight: 500;
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap; letter-spacing: 0.03em;
  text-transform: capitalize;
}
.ochip-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}

.feed-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  padding: 60px 32px; text-align: center; min-height: 50vh;
}
.feed-empty p {
  font-family: 'Palatino Linotype', Georgia, serif;
  font-size: 16px; line-height: 1.6; color: var(--text-soft);
}

/* ══════════════════ BOTTOM NAV ══════════════════ */
.bnav {
  height: calc(var(--nav) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(245,242,238,0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  display: flex; align-items: flex-start;
  padding-top: 6px; z-index: 100; flex-shrink: 0;
}
.bnav-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  color: #8A7E74;
  padding-top: 2px;
  transition: color 0.15s;
  min-height: 48px;
}
.bnav-btn.active { color: var(--text); }
.bnav-btn span { font-size: 10px; font-weight: 600; letter-spacing: 0.03em; }
.bnav-center { position: relative; }
.bnav-plus {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--text); color: #F5F2EE;
  display: flex; align-items: center; justify-content: center;
  margin-top: -18px;
  box-shadow: 0 4px 16px rgba(28,25,23,0.28);
  transition: transform 0.2s var(--spring), box-shadow 0.15s;
}
.bnav-center:active .bnav-plus {
  transform: scale(0.92);
  box-shadow: 0 2px 8px rgba(28,25,23,0.2);
}

/* ══════════════════ TOAST ══════════════════ */
.toast {
  position: fixed;
  bottom: calc(var(--nav) + var(--safe-b) + 12px);
  left: 50%; transform: translateX(-50%) translateY(12px);
  background: var(--text); color: #F5F2EE;
  padding: 11px 22px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  white-space: nowrap; z-index: 500;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s, transform 0.22s var(--spring);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════════ MODAL ══════════════════ */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: flex-end;
}
.modal::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(28,25,23,0.38);
  animation: fadein 0.24s both;
}
@keyframes fadein { from { opacity: 0; } }

.modal-sheet {
  position: relative; width: 100%;
  max-height: 88vh;
  background: var(--bg-card);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  overflow: hidden; display: flex; flex-direction: column;
  animation: sheetup 0.28s var(--spring) both;
  padding-bottom: calc(16px + var(--safe-b));
}
@keyframes sheetup { from { transform: translateY(100%); } }

.modal-pull {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--border-mid); margin: 12px auto 0;
  flex-shrink: 0;
}
.modal-body {
  overflow-y: auto; padding: 16px 18px 8px; flex: 1;
  scrollbar-width: none;
}
.modal-body::-webkit-scrollbar { display: none; }

.modal-title {
  font-family: 'Palatino Linotype', Georgia, serif;
  font-size: 20px; font-weight: 300;
  margin-bottom: 18px; letter-spacing: 0.01em;
}

/* Item detail modal */
.item-visual {
  width: 100%; aspect-ratio: 2/3; max-height: 260px;
  border-radius: var(--r-md); overflow: hidden;
  background: var(--bg-warm); margin-bottom: 14px;
}
.item-visual img { width: 100%; height: 100%; object-fit: contain; }

.item-meta-row {
  display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap;
}
.item-chip {
  height: 30px; padding: 0 14px;
  border-radius: var(--r-full);
  background: var(--bg-warm);
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 7px;
  text-transform: capitalize; color: var(--text-mid);
}

.modal-actions { display: flex; flex-direction: column; gap: 8px; }

.btn-danger {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 48px;
  border: 1.5px solid #FFDDD5;
  border-radius: var(--r-full);
  color: var(--danger); font-size: 14px;
  background: #FFF7F5;
  transition: background 0.15s;
}
.btn-danger:active { background: #FFE8E2; }

/* Outfit detail modal */
.modal-items-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 8px; margin-bottom: 18px;
}
.modal-item {
  aspect-ratio: 2/3; border-radius: var(--r-md);
  overflow: hidden; background: var(--bg-warm); position: relative;
}
.modal-item img { width: 100%; height: 100%; object-fit: contain; }
.modal-item-lbl {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 6px 8px;
  background: linear-gradient(transparent, rgba(28,25,23,0.5));
  font-size: 10px; color: rgba(245,242,238,0.9);
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* ══════════════════ SETTINGS ══════════════════ */
.settings-body { padding: 8px 18px calc(28px + var(--nav)); }
.settings-section { margin-bottom: 28px; }
.settings-section-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-soft); display: block; margin-bottom: 10px;
}
.settings-hint { font-size: 13px; color: var(--text-soft); margin-bottom: 4px; }
.settings-row {
  display: flex; align-items: center; gap: 10px;
  width: 100%; height: 50px; padding: 0 16px;
  background: var(--bg-card); border-radius: var(--r-md);
  font-size: 14px; font-weight: 500;
  box-shadow: 0 1px 4px rgba(28,25,23,0.05);
}
.settings-row.danger { color: var(--danger); }
.settings-info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.settings-info-row:last-child { border-bottom: none; }
.settings-info-row span:last-child { color: var(--text-soft); }

/* ══════════════════ DEMO BANNER ══════════════════ */
.demo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 18px 14px;
  padding: 10px 14px;
  background: #FFF8EE;
  border: 1px solid #F0DFC0;
  border-radius: var(--r-md);
  gap: 10px;
}
.demo-banner-text {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--warm);
}
.demo-banner-btn {
  flex-shrink: 0;
  height: 30px; padding: 0 14px;
  background: var(--text); color: #F5F2EE;
  border-radius: var(--r-full);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
}
.demo-banner-btn:active { opacity: 0.85; }

/* ══════════════════ HERO FLATLAY ══════════════════ */
.hero-flatlay {
  width: 100%;
  min-height: 210px;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #EDE5D8 0%, #E0D5C4 50%, #D8CCBA 100%);
  position: relative;
}

.hero-flatlay-item {
  border-radius: var(--r-md);
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(28,25,23,0.14), 0 1px 4px rgba(28,25,23,0.08);
  flex-shrink: 0;
}

.hero-flatlay-item img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}

/* Size variants per position */
.hero-item-1 { width: 100px; height: 134px; transform: rotate(-4deg); }
.hero-item-2 { width: 86px;  height: 116px; transform: rotate(2.5deg) translateY(-8px); }
.hero-item-3 { width: 72px;  height: 88px;  transform: rotate(-2deg) translateY(6px); }
.hero-item-4 { width: 76px;  height: 92px;  transform: rotate(4deg) translateY(-4px); }


/* ══════════════════ OUTFIT CARD BUTTONS (Mockup style) ══════════════════ */
.ocard-fav-pill, .ocard-detail-pill {
  display: flex; align-items: center; gap: 5px;
  height: 36px; padding: 0 14px;
  border-radius: var(--r-full);
  font-size: 13px; font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
}
.ocard-fav-pill {
  background: var(--text); color: #F5F2EE;
  border: none;
}
.ocard-fav-pill.active {
  background: #FDECEA; color: #C0392B; border: 1px solid #F5C6C0;
}
.ocard-fav-pill:active { opacity: 0.88; transform: scale(0.97); }

.ocard-detail-pill {
  background: var(--bg-warm); color: var(--text-mid);
  border: 1px solid var(--border);
}
.ocard-detail-pill:active { background: var(--border); }

/* Remove old ocard-btn if still used elsewhere */
.ocard-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg-warm);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, transform 0.2s var(--spring);
  color: var(--text-mid);
}

/* ══════════════════ AI STATUS ══════════════════ */
.ai-status {
  margin: 0 18px 14px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(28,25,23,0.05);
}
.ai-status-inner {
  display: flex; align-items: center; gap: 10px;
}
.ai-spinner svg { flex-shrink: 0; }
#aiStatusText {
  font-size: 13px; font-weight: 500; color: var(--text-mid);
}

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

/* ══════════════════ HERO REAL PHOTO ══════════════════ */
.hero-real-photo {
  width: 100%; position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.hero-real-photo img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-photo-badge {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(245,242,238,0.92);
  backdrop-filter: blur(8px);
  padding: 5px 14px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
}

/* Ward item - ensure real photos show with contain */
.ward-item img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 6px;
  background: #fff;
}

/* ══════════════════ LOGO AS BUTTON ══════════════════ */
.logo-mark {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Palatino Linotype', Georgia, serif;
  font-size: 17px; font-weight: 400; letter-spacing: 0.05em;
  background: none; border: none; cursor: pointer;
  color: var(--text); padding: 0;
  transition: opacity 0.15s;
}
.logo-mark:active { opacity: 0.7; }

/* ══════════════════ WEATHER BAR ══════════════════ */
.weather-bar {
  margin: 0 18px 10px;
  padding: 7px 12px;
  background: var(--bg-card);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}
.weather-inner {
  display: flex; align-items: center; gap: 8px;
}
.weather-icon { font-size: 16px; flex-shrink: 0; line-height: 1; }
.weather-info {
  display: flex; align-items: center; gap: 6px; flex: 1;
}
.weather-temp {
  font-size: 13px; font-weight: 600; color: var(--text);
}
.weather-desc { display: none; }
.weather-tip {
  font-size: 11px; color: var(--warm);
  font-weight: 500; margin-left: auto;
}


/* GEN-Z HOME OVERRIDES */
.home-hero-text { padding: 8px 18px 14px; }
.home-hero-text h1 { font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif; font-size: clamp(34px, 9vw, 46px); font-weight: 800; line-height: .98; letter-spacing: -.055em; max-width: 340px; }
.home-hero-text p { font-size: 14px; font-weight: 650; text-transform: none; letter-spacing: -.01em; color: var(--text-mid); }
.home-hero-preview { margin: 0 14px 16px; border-radius: 30px; box-shadow: 0 16px 42px rgba(28,25,23,.14); }
.hero-real-photo { min-height: min(70vh, 560px); background: #ddd; }
.hero-real-photo img { max-height: none; height: min(70vh, 560px); min-height: 420px; object-fit: cover; object-position: center; }
.hero-slider { position: relative; }
.hero-slider .hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; animation: heroFade 9s infinite; }
.hero-slider .hero-slide-1 { animation-delay: 0s; }
.hero-slider .hero-slide-2 { animation-delay: 3s; }
.hero-slider .hero-slide-3 { animation-delay: 6s; }
@keyframes heroFade { 0%{opacity:0;transform:scale(1.02)} 6%{opacity:1;transform:scale(1)} 30%{opacity:1;transform:scale(1)} 36%{opacity:0;transform:scale(1.015)} 100%{opacity:0;transform:scale(1.02)} }
.hero-gradient { position: absolute; inset: auto 0 0 0; height: 42%; background: linear-gradient(to top, rgba(0,0,0,.44), rgba(0,0,0,0)); pointer-events: none; }
.hero-photo-badge { bottom: 16px; right: 16px; background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 13px; font-weight: 800; letter-spacing: -.01em; text-transform: none; padding: 8px 14px; }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 14px 16px; background: transparent; box-shadow: none; overflow: visible; }
.feature-row { min-height: 108px; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 12px; border: 0; border-radius: 22px; background: var(--bg-card); box-shadow: 0 8px 22px rgba(28,25,23,.07); }
.feature-row > svg { display: none; }
.feature-icon { width: 34px; height: 34px; }
.feature-title { font-size: 13px; font-weight: 800; letter-spacing: -.02em; }
.feature-sub { font-size: 11px; font-weight: 650; }
.home-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px 22px; }
.home-ctas .btn-black, .home-ctas .btn-cream { height: 54px; font-weight: 800; font-size: 15px; }
.stats-grid { padding-left: 14px; padding-right: 14px; }
.stat-lbl { font-size: 11px; font-weight: 700; color: var(--text-mid); }
.home-badges { padding-left: 14px; padding-right: 14px; }
.badge-item small { display: none; }
@media (max-width: 380px) { .feature-list { grid-template-columns: 1fr; } .feature-row { min-height: 74px; flex-direction: row; align-items: center; } }

/* FULL UI FINAL FIX 2026-04-23 */
:root{--hero-h:clamp(330px,46vh,430px);}
.home-topbar{padding-bottom:8px;}
.weather-bar{display:block !important;margin:0 18px 12px;padding:8px 12px;border-radius:18px;background:rgba(255,255,255,.78);}
.home-hero-text{padding:4px 18px 12px!important;}
.home-hero-text h1{font-size:clamp(30px,7.8vw,40px)!important;line-height:.96!important;max-width:330px;margin-bottom:8px;}
.home-hero-text p{font-size:13px!important;font-weight:750!important;opacity:.72;}
.home-hero-preview{margin:0 18px 14px!important;border-radius:28px!important;box-shadow:0 12px 30px rgba(28,25,23,.10)!important;}
.hero-real-photo{height:var(--hero-h)!important;min-height:0!important;border-radius:28px!important;}
.hero-real-photo img,.hero-slider .hero-slide{height:var(--hero-h)!important;min-height:0!important;max-height:none!important;object-fit:cover!important;object-position:center top!important;}
.hero-slider{height:var(--hero-h)!important;position:relative;overflow:hidden;}
.hero-slider .hero-slide{position:absolute!important;inset:0!important;width:100%!important;opacity:0;animation:heroFadeSoft 15s infinite ease-in-out!important;will-change:opacity,transform;}
.hero-slider .hero-slide-1{animation-delay:0s!important;}
.hero-slider .hero-slide-2{animation-delay:5s!important;}
.hero-slider .hero-slide-3{animation-delay:10s!important;}
@keyframes heroFadeSoft{0%{opacity:0;transform:scale(1.015)}10%{opacity:1;transform:scale(1)}34%{opacity:1;transform:scale(1)}44%{opacity:0;transform:scale(1.01)}100%{opacity:0;transform:scale(1.015)}}
.hero-gradient{height:34%!important;background:linear-gradient(to top,rgba(0,0,0,.25),rgba(0,0,0,0))!important;}
.hero-photo-badge{bottom:14px!important;right:14px!important;background:rgba(28,25,23,.52)!important;color:#fff!important;border:1px solid rgba(255,255,255,.28)!important;padding:8px 14px!important;}
.feature-list{margin:0 18px 16px!important;gap:10px!important;}
.feature-row{min-height:96px!important;border-radius:22px!important;padding:12px!important;}
.home-ctas{padding:0 18px 20px!important;gap:10px!important;}
.home-ctas .btn-black,.home-ctas .btn-cream{height:52px!important;border-radius:22px!important;font-size:14px!important;}
.section-label{font-weight:850;letter-spacing:-.02em;}
.hscroll-empty p{font-size:13px;color:var(--text-mid);}
.home-badges{display:grid!important;grid-template-columns:repeat(3,1fr);gap:10px!important;}
.badge-item{min-height:78px!important;border-radius:18px!important;padding:12px 8px!important;}
.badge-item span{font-size:12px!important;line-height:1.15!important;font-weight:850!important;}
.upload-hook{margin:-4px 18px 14px;color:var(--text-mid);font-size:15px;font-weight:750;letter-spacing:-.01em;}
.feed-empty p{font-size:20px!important;line-height:1.35!important;font-weight:650!important;color:var(--text-mid)!important;}
.feed-empty .btn-black{margin-top:18px;}
@media (max-width:380px){:root{--hero-h:clamp(300px,42vh,390px);}.home-hero-text h1{font-size:30px!important;}.feature-title{font-size:12px!important;}.feature-sub{font-size:10px!important;}.home-ctas{grid-template-columns:1fr!important;}}

/* ============================================
   NEXT LEVEL UI POLISH — smooth, Gen-Z, premium
   ============================================ */
:root{--hero-h:clamp(300px,42vh,390px)!important;}

.weather-bar{
  box-shadow:0 8px 22px rgba(28,25,23,.06)!important;
  border:1px solid rgba(28,25,23,.08)!important;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.home-hero-text h1{
  font-size:clamp(32px,8.2vw,42px)!important;
  line-height:.94!important;
  letter-spacing:-.065em!important;
}
.home-hero-text p{font-size:13px!important;opacity:.62!important;}

.home-hero-preview{
  margin:0 18px 12px!important;
  border-radius:30px!important;
  transform:translateZ(0);
}
.hero-real-photo,.hero-slider{
  height:var(--hero-h)!important;
  border-radius:30px!important;
  overflow:hidden!important;
}
.hero-slider .hero-slide{
  object-position:center 16%!important;
  opacity:0;
  animation:heroFadeNext 18s infinite ease-in-out!important;
  filter:saturate(1.03) contrast(1.02)!important;
  will-change:opacity,transform;
}
.hero-slider .hero-slide-1{animation-delay:0s!important;}
.hero-slider .hero-slide-2{animation-delay:6s!important;}
.hero-slider .hero-slide-3{animation-delay:12s!important;}
@keyframes heroFadeNext{
  0%{opacity:0;transform:scale(1.035)}
  8%{opacity:1;transform:scale(1.018)}
  36%{opacity:1;transform:scale(1.000)}
  46%{opacity:0;transform:scale(1.015)}
  100%{opacity:0;transform:scale(1.035)}
}
.hero-gradient{height:28%!important;background:linear-gradient(to top,rgba(0,0,0,.14),rgba(0,0,0,0))!important;}
.hero-photo-badge{
  right:14px!important;bottom:14px!important;
  background:rgba(28,25,23,.50)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.30)!important;
  box-shadow:0 8px 22px rgba(0,0,0,.12)!important;
}

.feature-list{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:10px!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;margin:0 18px 16px!important;}
.feature-row{display:block!important;border:0!important;background:#fff!important;border-radius:22px!important;padding:13px 12px 14px!important;box-shadow:0 10px 26px rgba(28,25,23,.07)!important;min-height:112px!important;}
.feature-row>svg{display:none!important;}
.feature-icon{width:34px!important;height:34px!important;border-radius:12px!important;margin-bottom:12px!important;}
.feature-title{font-size:13px!important;font-weight:850!important;line-height:1.1!important;display:block;}
.feature-sub{font-size:11px!important;font-weight:650!important;display:block;margin-top:5px;}

.home-ctas{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;padding:0 18px 20px!important;}
.home-ctas .btn-black,.home-ctas .btn-cream{
  height:50px!important;border-radius:24px!important;font-size:14px!important;
  box-shadow:0 14px 28px rgba(28,25,23,.11)!important;
}
.home-ctas .btn-black{background:#15120f!important;}
.home-ctas .btn-cream{background:#E9DED0!important;}

.stat-card,.badge-item,.suggestion-card,.item-card,.outfit-card,.feature-row,.btn-black,.btn-cream,.source-btn,.cat-chip,.color-dot,.bnav-btn,.bnav-plus{
  transition:transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease, opacity .18s ease!important;
}
.stat-card:active,.badge-item:active,.suggestion-card:active,.item-card:active,.outfit-card:active,.feature-row:active,.btn-black:active,.btn-cream:active,.source-btn:active,.cat-chip:active,.color-dot:active,.bnav-btn:active{
  transform:scale(.965)!important;
}
.bnav-plus:active{transform:translateY(-2px) scale(.94)!important;}

.bnav{
  background:rgba(245,242,238,.82)!important;
  backdrop-filter:blur(22px)!important;
  -webkit-backdrop-filter:blur(22px)!important;
  box-shadow:0 -1px 0 rgba(28,25,23,.08)!important;
}
.bnav-btn.active svg{stroke-width:2.2!important;}
.bnav-btn.active span{font-weight:800!important;}
.bnav-plus{box-shadow:0 18px 35px rgba(28,25,23,.22)!important;}

.screen.active .home-topbar,
.screen.active .weather-bar,
.screen.active .home-hero-text,
.screen.active .home-hero-preview,
.screen.active .feature-list,
.screen.active .home-ctas,
.screen.active .home-section,
.screen.active .stats-grid,
.screen.active .home-badges{
  animation:softUp .55s cubic-bezier(.2,.85,.2,1) both;
}
.screen.active .weather-bar{animation-delay:.03s;}
.screen.active .home-hero-text{animation-delay:.06s;}
.screen.active .home-hero-preview{animation-delay:.09s;}
.screen.active .feature-list{animation-delay:.12s;}
.screen.active .home-ctas{animation-delay:.15s;}
@keyframes softUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

.reveal-next{opacity:0;transform:translateY(14px);transition:opacity .5s ease,transform .5s cubic-bezier(.2,.85,.2,1);}
.reveal-next.in{opacity:1;transform:none;}

.upload-zone{box-shadow:inset 0 0 0 1px rgba(255,255,255,.05),0 16px 36px rgba(28,25,23,.10)!important;}
.camera-shutter{animation:pulseCam 2.2s ease-in-out infinite;}
@keyframes pulseCam{0%,100%{transform:scale(1)}50%{transform:scale(1.035)}}

.feed-empty h2,.empty-title{font-size:24px!important;letter-spacing:-.04em!important;}
.feed-empty p,.empty-sub{font-size:14px!important;}

@media (max-width:380px){
  :root{--hero-h:clamp(280px,40vh,360px)!important;}
  .feature-list{gap:8px!important;margin-left:14px!important;margin-right:14px!important;}
  .feature-row{padding:11px 10px!important;min-height:104px!important;}
  .home-ctas{grid-template-columns:1fr!important;}
}

@media (prefers-reduced-motion: reduce){
  *{animation:none!important;transition:none!important;}
}
.tap-pop{animation:tapPop .22s cubic-bezier(.2,.85,.2,1)!important;}
@keyframes tapPop{0%{transform:scale(.97)}100%{transform:none}}

/* ══════════════════ MULTI UPLOAD BUTTON ══════════════════ */
.btn-multi {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; height: 44px;
  background: transparent;
  border: 1.5px dashed var(--border-mid);
  border-radius: var(--r-full);
  font-size: 13px; color: var(--text-mid);
  transition: background 0.15s;
}
.btn-multi:active { background: var(--bg-warm); }

/* ══════════════════ FULL SCREEN APP FIX ══════════════════ */
/* When running as installed PWA, extend into safe areas */
@media (display-mode: standalone) {
  body, .app {
    /* Already handled by safe-area CSS vars */
  }
  .home-topbar {
    padding-top: calc(var(--safe-t) + 16px);
  }
}

/* Desktop / tablet — center the app */
@media (min-width: 431px) {
  body {
    background: #E8E4DE;
  }
  .app {
    left: 50%;
    transform: translateX(-50%);
    width: 430px;
    border-radius: 40px;
    overflow: hidden;
    top: 20px;
    bottom: 20px;
    height: calc(100dvh - 40px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  }
}


/* HOME SCREEN — show outfit hero + suggestions, hide unused elements */
#demoBanner,
#heroPreview,
.home-hero-preview { display: none !important; }

#screen-home .home-ctas,
#screen-home .stats-grid,
#screen-home .home-badges,
#screen-home #colorSection {
  display: none !important;
}

/* Show suggestion section */
#screen-home .home-section {
  display: block !important;
}

#screen-home .home-hero-text {
  padding-bottom: 10px !important;
}

#screen-home .feature-list {
  margin-bottom: 14px !important;
}

/* COMPACT TEST VERSION — 10 Teile schnell hochladen */
#screen-home {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  padding-bottom: calc(80px + var(--nav, 60px)) !important;
}

#screen-home .home-photo-card {
  display: block !important;
  margin: 0 18px 14px !important;
  height: clamp(150px, 28vh, 230px) !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  background: #EDE8E1 !important;
  box-shadow: 0 12px 30px rgba(28,25,23,.10) !important;
}
#screen-home .home-photo-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}
#screen-home .feature-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
  margin: 0 18px 0 !important;
}
#screen-home .feature-row {
  min-height: 112px !important;
  padding: 14px 10px !important;
  border-radius: 22px !important;
}
@media (max-height: 760px) {
  #screen-home .home-photo-card { height: 135px !important; }
  #screen-home .home-hero-text h1 { font-size: 32px !important; }
  #screen-home .feature-row { min-height: 96px !important; }
}

#screen-upload .topbar { height: 48px !important; }
#screen-upload .upload-hook { margin: 0 18px 8px !important; font-size: 16px !important; }
#screen-upload .upload-source-row { margin: 0 18px 10px !important; gap: 8px !important; }
#screen-upload .source-btn { height: 46px !important; border-radius: 22px !important; font-size: 15px !important; }
#screen-upload .upload-zone {
  min-height: 150px !important;
  height: clamp(145px, 25vh, 190px) !important;
  margin: 0 18px 10px !important;
  border-radius: 24px !important;
}
#screen-upload .upload-empty,
#screen-upload .upload-preview-wrap { min-height: 0 !important; }
#screen-upload .upload-preview-wrap img { height: 100% !important; max-height: none !important; object-fit: contain !important; }
#screen-upload .preview-badge { display: none !important; }
#screen-upload .preview-thumb-row,
#screen-upload #aiStatus { display: none !important; }
#screen-upload .upload-form { padding: 0 18px calc(12px + var(--nav)) !important; }
#screen-upload .form-group { margin-bottom: 14px !important; }
#screen-upload .form-lbl { margin-bottom: 8px !important; font-size: 10px !important; }
#screen-upload .cat-list-compact { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 8px !important; }
#screen-upload .cat-pill {
  height: 38px !important;
  padding: 0 8px !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}
#screen-upload .cat-pill svg { display: none !important; }
#screen-upload .color-pick-row { gap: 9px !important; }
#screen-upload .cpick { width: 32px !important; height: 32px !important; }
#screen-upload .upload-btns { gap: 8px !important; margin-top: 6px !important; }
#screen-upload .upload-btns .btn-black { height: 48px !important; border-radius: 24px !important; }
#screen-upload .btn-ghost { height: 38px !important; }
#screen-upload .btn-multi { display: none !important; }
@media (max-width: 380px), (max-height: 760px) {
  #screen-upload .cat-list-compact { grid-template-columns: repeat(3, 1fr) !important; }
  #screen-upload .upload-zone { height: 130px !important; min-height: 130px !important; }
  #screen-upload .source-btn { height: 42px !important; font-size: 14px !important; }
  #screen-upload .cat-pill { height: 34px !important; font-size: 12px !important; }
  #screen-upload .cpick { width: 28px !important; height: 28px !important; }
}

/* v8 edit panel */
.edit-panel{margin:14px 0;padding:14px;border:1px solid var(--line);border-radius:22px;background:rgba(245,242,238,.7)}
.edit-panel .cat-list{margin:8px 0}
.edit-panel .cat-pill{font-size:13px;padding:9px 13px}
.edit-panel .color-pick-row{margin:10px 0 14px}


/* UPLOAD NO SCROLL — SINGLE COLUMN LAYOUT like reference */
#screen-upload {
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100dvh !important;
  height: 100vh !important;
}

#screen-upload .topbar { flex-shrink: 0 !important; height: 46px !important; }

#screen-upload .upload-source-row {
  flex-shrink: 0 !important;
  padding: 0 16px 6px !important;
  margin: 0 !important;
  gap: 8px !important;
}

#screen-upload .source-btn {
  height: 42px !important;
  border-radius: 21px !important;
  font-size: 14px !important;
}

#screen-upload .upload-zone {
  flex-shrink: 0 !important;
  width: calc(100% - 32px) !important;
  height: clamp(180px, 28vh, 230px) !important;
  min-height: 180px !important;
  margin: 0 16px 8px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  position: relative !important;
}

#screen-upload .upload-empty {
  min-height: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

#screen-upload .upload-preview-wrap {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

#screen-upload .upload-preview-wrap img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #F0EDE8 !important;
}
#screen-upload .preview-badge { display: none !important; }
#screen-upload .preview-thumb-row,
#screen-upload #aiStatus { display: none !important; }

#screen-upload .upload-form {
  flex: 1 !important;
  overflow: hidden !important;
  padding: 0 16px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

#screen-upload .form-group { margin-bottom: 5px !important; flex-shrink: 0 !important; }
#screen-upload .form-lbl {
  margin-bottom: 5px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--text, #1C1917) !important;
  letter-spacing: 0.03em !important;
}

/* Single column category groups */
#screen-upload #catList {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin-bottom: 0 !important;
  flex: 1 !important;
  justify-content: space-evenly !important;
}

#screen-upload .cat-group {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 5px 0 !important;
  border-bottom: 1px solid var(--line, #E8E3DC) !important;
  margin-bottom: 0 !important;
}

#screen-upload .cat-group:last-child {
  border-bottom: none !important;
}

/* Icon-only labels in upload screen to save space */
#screen-upload .cat-group-label {
  flex-direction: row !important;
  width: 32px !important;
  min-width: 32px !important;
  font-size: 0 !important;
  gap: 0 !important;
  justify-content: center !important;
}

#screen-upload .cat-group-label svg {
  width: 18px !important;
  height: 18px !important;
  opacity: 0.75 !important;
  flex-shrink: 0 !important;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: var(--text, #1C1917) !important;
}

#screen-upload .cat-group-pills {
  display: flex !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  flex: 1 !important;
}

#screen-upload .cat-pill {
  height: 33px !important;
  padding: 0 13px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  justify-content: center !important;
  border-color: #D4C9BC !important;
  color: #2C2420 !important;
}

#screen-upload .cat-pill.sel {
  background: #1C1917 !important;
  color: #F5F0EA !important;
  border-color: #1C1917 !important;
  font-weight: 650 !important;
}

/* Style pills in a single row */
#screen-upload #stylePickRow {
  display: flex !important;
  gap: 5px !important;
  flex-wrap: nowrap !important;
}
#screen-upload .style-pill {
  flex: 1 !important;
  white-space: nowrap !important;
  padding: 0 4px !important;
  font-size: 12px !important;
}

/* Color row */
#screen-upload .color-pick-row {
  gap: 7px !important;
  flex-wrap: wrap !important;
  margin-top: 0 !important;
}
#screen-upload .cpick { width: 28px !important; height: 28px !important; }

/* Save button */
#screen-upload .upload-btns {
  flex-shrink: 0 !important;
  gap: 6px !important;
  margin-top: 6px !important;
  padding-bottom: calc(8px + var(--nav, 60px)) !important;
}
#screen-upload .upload-btns .btn-black { height: 46px !important; border-radius: 23px !important; font-size: 15px !important; }
#screen-upload .btn-ghost { height: 32px !important; font-size: 14px !important; }
#screen-upload .btn-multi { display: none !important; }

@media (max-height: 750px) {
  #screen-upload .upload-zone { height: clamp(100px, 16vh, 130px) !important; min-height: 100px !important; }
  #screen-upload .upload-empty, #screen-upload .upload-preview-wrap { min-height: 100px !important; }
  #screen-upload .cat-pill { height: 29px !important; font-size: 12px !important; }
  #screen-upload .cat-group { padding: 2px 0 !important; }
  #screen-upload .cat-group-label svg { width: 22px !important; height: 22px !important; padding: 3px !important; }
  #screen-upload .cat-group-label { font-size: 8px !important; min-width: 46px !important; }
  #screen-upload .cpick { width: 24px !important; height: 24px !important; }
  #screen-upload .form-lbl { margin-bottom: 3px !important; }
  #screen-upload .upload-btns .btn-black { height: 40px !important; }
  #screen-upload .btn-ghost { height: 26px !important; font-size: 12px !important; }
  #screen-upload .upload-btns { margin-top: 4px !important; }
}

@media (max-height: 680px) {
  #screen-upload .upload-zone { height: 90px !important; min-height: 90px !important; }
  #screen-upload .upload-empty, #screen-upload .upload-preview-wrap { min-height: 90px !important; }
  #screen-upload .cat-pill { height: 26px !important; font-size: 11px !important; padding: 0 8px !important; }
  #screen-upload .style-pill { font-size: 10px !important; }
  #screen-upload .cpick { width: 22px !important; height: 22px !important; }
  #screen-upload .color-pick-row { gap: 5px !important; }
}

/* ITEM MODAL COMPACT FINAL */
.modal-sheet {
  max-height: 96dvh !important;
  height: 96dvh !important;
}

.modal-body {
  overflow: hidden !important;
  padding: 6px 12px 4px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  min-height: 0 !important;
}

.item-visual {
  flex-shrink: 0 !important;
  width: 100% !important;
  aspect-ratio: unset !important;
  height: clamp(70px, 11vh, 95px) !important;
  max-height: 95px !important;
  margin-bottom: 4px !important;
  border-radius: 12px !important;
}

.item-meta-row {
  flex-shrink: 0 !important;
  margin-bottom: 4px !important;
  gap: 5px !important;
}

.item-chip {
  height: 22px !important;
  padding: 0 8px !important;
  font-size: 11px !important;
}

/* Edit panel — no-scroll flex layout */
.edit-panel {
  flex: 1 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 0 4px !important;
  padding: 7px 10px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: #F7F4EF !important;
}

.edit-panel .form-lbl {
  flex-shrink: 0 !important;
  margin-bottom: 4px !important;
  font-size: 10px !important;
}

.edit-cat-grouped {
  flex: 1 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  margin-bottom: 4px !important;
}

.edit-cat-group {
  padding: 2px 0 !important;
  border-bottom: 1px solid #E2DDD6 !important;
}
.edit-cat-group:last-child { border-bottom: none !important; }

.edit-cat-group-label {
  font-size: 7.5px !important;
  margin-bottom: 2px !important;
  gap: 3px !important;
  border: none !important; background: none !important;
  padding: 0 !important; border-radius: 0 !important; height: auto !important;
  color: #5a5148 !important;
  font-weight: 800 !important;
}
.edit-cat-group-label svg { width: 10px !important; height: 10px !important; }

.edit-cat-group-pills { gap: 3px !important; }

.edit-style-row {
  flex-shrink: 0 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 3px !important;
  margin-bottom: 4px !important;
}

.edit-panel .cat-pill {
  height: 22px !important;
  padding: 0 7px !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  color: #2C2420 !important;
  border-color: #C8C0B8 !important;
}

.edit-style-row .cat-pill {
  flex: 1 !important;
  font-size: 10px !important;
  padding: 0 2px !important;
  font-weight: 600 !important;
  color: #2C2420 !important;
}

.edit-panel .color-pick-row {
  flex-shrink: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  margin: 0 0 4px !important;
}

.edit-panel .cpick {
  width: 22px !important;
  height: 22px !important;
}

.modal-actions {
  flex-shrink: 0 !important;
  gap: 4px !important;
}

.modal-actions .btn-black {
  height: 36px !important;
  font-size: 13px !important;
}

.modal-actions .btn-danger,
.modal-actions .btn-ghost {
  height: 28px !important;
  font-size: 12px !important;
}


/* EDIT PANEL GROUPED CLEAN */
.edit-panel {
  padding: 16px 14px !important;
  border: 0 !important;
  border-radius: 24px !important;
  background: #F7F4EF !important;
}

.edit-panel .form-lbl {
  margin-bottom: 12px !important;
}

/* Grouped category layout in edit panel */
.edit-cat-grouped {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 14px;
}

.edit-cat-group {
  padding: 10px 0;
  border-bottom: 1px solid #E2DDD6;
}
.edit-cat-group:last-child { border-bottom: none; }

.edit-cat-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1C1917;
  margin-bottom: 8px;
  border: none !important;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  height: auto !important;
}
.edit-cat-group-label svg { opacity: 0.8; flex-shrink: 0; }

.edit-cat-group-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.edit-style-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  margin-bottom: 14px !important;
}

.edit-panel .cat-pill {
  height: 36px !important;
  padding: 0 14px !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

.edit-panel .color-pick-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 0 16px !important;
}

.edit-panel .cpick {
  width: 34px !important;
  height: 34px !important;
}





/* Outfits + Favoriten screens — allow vertical scrolling */
#screen-outfits,
#screen-faves {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Outfit card — missing pieces tips */
.ocard-tips {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  padding: 8px 14px 12px;
  border-top: 1px solid #F0EBE4;
}

.ocard-tips-lbl {
  font-size: 10px;
  font-weight: 600;
  color: #B8956A;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ocard-tip-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  border: 1.5px dashed #C8B89A;
  background: #FBF8F4;
  font-size: 11px;
  font-weight: 500;
  color: #8B7355;
  cursor: pointer;
  transition: all 0.15s;
}

.ocard-tip-btn:active {
  background: #F0E8DC;
  border-color: #8B7355;
  transform: scale(0.97);
}

/* Gender selector in settings */
.gender-btn.sel {
  background: #1C1917 !important;
  color: #F5F2EE !important;
  border-color: #1C1917 !important;
}

/* Wardrobe scroll container — proper inner scroll */
#screen-wardrobe {
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
}

.ward-scroll-body {
  flex: 1 !important;
  min-height: 0 !important;
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: contain !important;
  scrollbar-width: none !important;
}
.ward-scroll-body::-webkit-scrollbar { display: none; }

#screen-wardrobe .ward-grid {
  padding-bottom: 40px !important;
}

/* Multi-select hint for category pills */
#screen-upload .cat-pill.sel {
  background: #1C1917 !important;
  color: #F5F0EA !important;
  border-color: #1C1917 !important;
}

#screen-upload .cat-group-pills .cat-pill:not(.sel):hover {
  border-color: #8B7355 !important;
  background: #F5F0EA !important;
}

/* Multi-select hint label */
#catList::before {
  content: 'Mehrere wählbar';
  display: block;
  grid-column: 1 / -1;
  font-size: 9px;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
  opacity: 0.7;
}

/* Home screen — prominent outfit hero */
.home-outfit-hero {
  margin: 0 16px 14px;
  background: var(--bg-card, #fff);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(28,25,23,0.09);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.home-outfit-hero:active { transform: scale(0.98); box-shadow: 0 1px 6px rgba(28,25,23,0.07); }

.home-outfit-hero-photos {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 190px;
  gap: 2px;
  background: #E8E3DC;
}

.home-outfit-hero-cell {
  background: #F5F2EE;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-outfit-hero-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.home-outfit-hero-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-top: 1px solid #F0EAE2;
}

.home-outfit-hero-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.home-outfit-hero-score {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 1px;
}

.home-outfit-hero-btn {
  font-size: 12px;
  font-weight: 600;
  color: #8B7355;
  padding: 6px 12px;
  border-radius: 14px;
  background: #F5EDE0;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

/* OutfitJetzt final fixes */
#screen-upload,
#screen-outfits,
#screen-wardrobe,
#screen-settings,
#screen-favorites {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}
#outfitFilters.filter-scroll { overflow-x: auto !important; white-space: nowrap !important; }
.reload-outfits-wrap .btn-black { width: 100%; max-width: 260px; }
.logo-mark span,.splash-name { letter-spacing: .02em; }


/* OUTFITJETZT UI FIX 20260506 — Startseite klarer: Kleiderschrank -> Outfit */
.home-concept-hero{
  margin:0 18px 14px!important;
  padding:14px!important;
  border-radius:30px!important;
  background:linear-gradient(135deg,#fff 0%,#F2ECE4 100%)!important;
  box-shadow:0 16px 36px rgba(28,25,23,.10)!important;
  display:grid!important;
  grid-template-columns:1fr 34px 1fr!important;
  gap:8px!important;
  align-items:stretch!important;
  min-height:188px!important;
  overflow:hidden!important;
}
.concept-side{position:relative;border-radius:24px;background:rgba(255,255,255,.74);border:1px solid rgba(28,25,23,.06);padding:10px 10px 12px;display:flex;flex-direction:column;justify-content:space-between;min-width:0;}
.concept-label{font-size:11px;font-weight:850;letter-spacing:-.02em;color:#1C1917;margin-bottom:8px;white-space:nowrap;}
.concept-arrow{align-self:center;justify-self:center;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#1C1917;color:#fff;font-weight:900;box-shadow:0 10px 22px rgba(28,25,23,.18);}
.closet-box{position:relative;flex:1;border-radius:18px;background:#EFE7DE;box-shadow:inset 0 0 0 1px rgba(28,25,23,.06);overflow:hidden;min-height:132px;}
.closet-rail{position:absolute;left:14px;right:14px;top:22px;height:3px;border-radius:3px;background:#8B7355;opacity:.55;}
.hanger{position:absolute;top:27px;width:31%;height:74px;border-radius:15px 15px 7px 7px;box-shadow:0 8px 14px rgba(28,25,23,.08);}
.hanger:before{content:"";position:absolute;left:50%;top:-13px;width:14px;height:14px;border:2px solid #6b625a;border-bottom:0;border-radius:12px 12px 0 0;transform:translateX(-50%);}
.hanger span{position:absolute;left:50%;top:8px;transform:translateX(-50%);width:46%;height:3px;border-radius:3px;background:rgba(255,255,255,.55);}
.h1{left:10%;background:#10263f}.h2{left:35%;background:#E8D5B7}.h3{right:10%;background:#1C1917}
.closet-bottom{position:absolute;left:14px;right:14px;bottom:13px;display:flex;gap:8px;}
.closet-bottom b{height:25px;flex:1;border-radius:8px;background:#fff;box-shadow:0 5px 12px rgba(28,25,23,.07);}
.outfit-mock{position:relative;flex:1;min-height:132px;border-radius:18px;background:#F6F2ED;box-shadow:inset 0 0 0 1px rgba(28,25,23,.06);overflow:hidden;}
.fit-top{position:absolute;left:50%;top:9px;transform:translateX(-50%);width:60px;height:58px;border-radius:18px 18px 8px 8px;background:#10263f;box-shadow:0 8px 16px rgba(28,25,23,.10);}
.fit-top:before,.fit-top:after{content:"";position:absolute;top:12px;width:24px;height:42px;background:#10263f;border-radius:14px;}
.fit-top:before{left:-16px;transform:rotate(14deg)}.fit-top:after{right:-16px;transform:rotate(-14deg)}
.fit-top:after{box-shadow:inset 2px 0 rgba(255,255,255,.08)}
.fit-bottom{position:absolute;left:50%;top:74px;transform:translateX(-50%);width:50px;height:66px;background:#1C1917;border-radius:8px 8px 13px 13px;box-shadow:0 8px 16px rgba(28,25,23,.10);}
.fit-bottom:before{content:"";position:absolute;left:23px;top:8px;width:4px;height:58px;background:#F6F2ED;border-radius:4px;opacity:.8;}
.fit-shoe{position:absolute;bottom:7px;width:36px;height:13px;border-radius:18px 18px 8px 8px;background:#3A2A23;box-shadow:0 5px 12px rgba(28,25,23,.12);}
.fit-shoe.left{left:23px}.fit-shoe.right{right:23px}
#screen-home .home-hero-text{padding-bottom:12px!important;}
#screen-home .home-hero-text h1{font-size:clamp(31px,8vw,41px)!important;}
#screen-home .home-hero-text p{max-width:360px!important;line-height:1.35!important;opacity:.70!important;}
#screen-home .home-outfit-hero{margin-top:0!important;}
#screen-home .feature-row{min-height:104px!important;}
@media(max-width:380px){.home-concept-hero{grid-template-columns:1fr!important;min-height:auto!important}.concept-arrow{transform:rotate(90deg)}.concept-side{min-height:154px}}

/* Account/Admin polish 20260506 */
.account-page,.admin{background:radial-gradient(circle at 20% 0%,#fff 0%,#F5F2EE 42%,#ECE5DC 100%)!important;}
.account-page .card,.admin .card{box-shadow:0 18px 42px rgba(28,25,23,.08)!important;border-color:rgba(28,25,23,.08)!important;}
.account-page .brand strong,.admin h1{letter-spacing:-.05em!important;}
.admin .grid .card{background:linear-gradient(135deg,#fff,#F7F2EC)!important;}
.admin .num{font-weight:900!important;letter-spacing:-.05em!important;}

/* HERO UPDATE 20260506-2 — Fashion statt Clipart */
#screen-home .home-concept-hero{
  margin: 0 18px 14px !important;
  padding: 12px !important;
  min-height: 210px !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 34px minmax(0,1fr) !important;
  gap: 8px !important;
  align-items: stretch !important;
  border-radius: 32px !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.96), rgba(255,255,255,0) 32%),
    linear-gradient(135deg, #F8F3EC 0%, #ECE4DA 100%) !important;
  border: 1px solid rgba(28,25,23,.07) !important;
  box-shadow: 0 18px 46px rgba(28,25,23,.11) !important;
  overflow: hidden !important;
}
#screen-home .concept-card{
  min-width: 0 !important;
  border-radius: 25px !important;
  background: rgba(255,255,255,.78) !important;
  border: 1px solid rgba(28,25,23,.065) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72) !important;
  padding: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
#screen-home .concept-card-head{
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  margin-bottom: 8px !important;
}
#screen-home .concept-card-head span{
  font-size: 11px !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  letter-spacing: -.035em !important;
  color: #1C1917 !important;
  white-space: nowrap !important;
}
#screen-home .concept-card-head small{
  font-size: 9.5px !important;
  font-weight: 750 !important;
  letter-spacing: -.02em !important;
  color: rgba(28,25,23,.48) !important;
  white-space: nowrap !important;
}
#screen-home .concept-flow{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#screen-home .concept-flow span{
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  background: #1C1917 !important;
  font-size: 17px !important;
  font-weight: 950 !important;
  box-shadow: 0 10px 22px rgba(28,25,23,.20) !important;
}
#screen-home .closet-scene,
#screen-home .fit-scene{
  position: relative !important;
  flex: 1 !important;
  min-height: 148px !important;
  border-radius: 21px !important;
  overflow: hidden !important;
}
#screen-home .closet-scene{
  background:
    linear-gradient(90deg, rgba(255,255,255,.50), rgba(255,255,255,0) 38%),
    linear-gradient(145deg, #E8DCCF, #F4EEE8) !important;
}
#screen-home .closet-frame{
  position: absolute !important;
  inset: 10px 8px 8px !important;
  border-radius: 17px !important;
  background: linear-gradient(180deg, #FDF9F4, #E9DED2) !important;
  box-shadow: inset 0 0 0 1px rgba(28,25,23,.07), 0 12px 22px rgba(28,25,23,.08) !important;
  overflow: hidden !important;
}
#screen-home .closet-light{
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  top: 0 !important;
  height: 38px !important;
  background: radial-gradient(ellipse at center top, rgba(255,255,255,.92), rgba(255,255,255,0) 70%) !important;
}
#screen-home .closet-rod{
  position: absolute !important;
  left: 13px !important;
  right: 13px !important;
  top: 28px !important;
  height: 3px !important;
  border-radius: 4px !important;
  background: rgba(63,50,39,.46) !important;
}
#screen-home .garment{
  position: absolute !important;
  top: 32px !important;
  display: block !important;
  border-radius: 16px 16px 9px 9px !important;
  box-shadow: 0 10px 18px rgba(28,25,23,.13) !important;
}
#screen-home .garment:before{
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: -13px !important;
  width: 13px !important;
  height: 13px !important;
  border: 2px solid rgba(28,25,23,.45) !important;
  border-bottom: 0 !important;
  border-radius: 13px 13px 0 0 !important;
  transform: translateX(-50%) !important;
}
#screen-home .g-a{left: 12%; width: 29%; height: 82px; background: linear-gradient(180deg,#10263F,#071422) !important;}
#screen-home .g-b{left: 36%; width: 28%; height: 92px; background: linear-gradient(180deg,#EEE2D0,#D7BFA2) !important;}
#screen-home .g-c{right: 11%; width: 29%; height: 76px; background: linear-gradient(180deg,#6E7F63,#384431) !important;}
#screen-home .closet-shelf{
  position: absolute !important;
  left: 13px !important;
  right: 13px !important;
  bottom: 12px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}
#screen-home .closet-shelf b{
  height: 25px !important;
  border-radius: 9px !important;
  background: linear-gradient(180deg,#fff,#EEE7DF) !important;
  box-shadow: 0 7px 15px rgba(28,25,23,.08) !important;
}
#screen-home .fit-scene{
  background:
    radial-gradient(circle at 50% 14%, rgba(255,255,255,.95), rgba(255,255,255,0) 34%),
    linear-gradient(145deg,#F8F4EF,#E9DED4) !important;
}
#screen-home .fit-piece{position:absolute!important;display:block!important;filter:drop-shadow(0 10px 14px rgba(28,25,23,.14));}
#screen-home .fit-top{
  left: 50% !important;
  top: 9px !important;
  width: 58px !important;
  height: 61px !important;
  transform: translateX(-50%) !important;
  border-radius: 18px 18px 10px 10px !important;
  background: linear-gradient(180deg,#10263F,#081827) !important;
}
#screen-home .fit-top:before,
#screen-home .fit-top:after{
  content:""!important;
  position:absolute!important;
  top:13px!important;
  width:23px!important;
  height:43px!important;
  border-radius:13px!important;
  background:inherit!important;
}
#screen-home .fit-top:before{left:-15px!important;transform:rotate(13deg)!important;}
#screen-home .fit-top:after{right:-15px!important;transform:rotate(-13deg)!important;}
#screen-home .fit-bottom{
  left: 50% !important;
  top: 75px !important;
  width: 50px !important;
  height: 65px !important;
  transform: translateX(-50%) !important;
  border-radius: 9px 9px 14px 14px !important;
  background: linear-gradient(180deg,#1C1917,#0B0A09) !important;
}
#screen-home .fit-bottom:before{
  content:""!important;
  position:absolute!important;
  left:23px!important;
  top:7px!important;
  width:4px!important;
  height:57px!important;
  border-radius:5px!important;
  background:rgba(248,244,239,.92)!important;
}
#screen-home .fit-shoe{
  bottom: 7px !important;
  width: 37px !important;
  height: 13px !important;
  border-radius: 18px 18px 7px 7px !important;
  background: linear-gradient(180deg,#6B5544,#2C211A) !important;
}
#screen-home .fit-left{left:22px!important;}
#screen-home .fit-right{right:22px!important;}

/* Gender abhängig aus Einstellungen */
#screen-home .home-concept-hero.gender-female .g-a{background:linear-gradient(180deg,#7B2741,#3D1423)!important;height:88px!important;}
#screen-home .home-concept-hero.gender-female .g-b{background:linear-gradient(180deg,#F1D7C8,#D39E91)!important;height:98px!important;border-radius:18px 18px 28px 28px!important;}
#screen-home .home-concept-hero.gender-female .fit-top{background:linear-gradient(180deg,#7B2741,#3D1423)!important;}
#screen-home .home-concept-hero.gender-female .fit-bottom{background:linear-gradient(180deg,#EFE1D2,#C7AA8D)!important;border-radius:12px 12px 30px 30px!important;}
#screen-home .home-concept-hero.gender-male .g-a{background:linear-gradient(180deg,#10263F,#071422)!important;}
#screen-home .home-concept-hero.gender-male .g-b{background:linear-gradient(180deg,#C8B79E,#8B7355)!important;}
#screen-home .home-concept-hero.gender-male .fit-top{background:linear-gradient(180deg,#10263F,#081827)!important;}
#screen-home .home-concept-hero.gender-male .fit-bottom{background:linear-gradient(180deg,#0F172A,#05070D)!important;}

@media(max-width:380px){
  #screen-home .home-concept-hero{grid-template-columns:1fr!important;min-height:auto!important;}
  #screen-home .concept-flow span{transform:rotate(90deg)!important;}
  #screen-home .closet-scene,#screen-home .fit-scene{min-height:132px!important;}
}



/* ============================================================
   OutfitJetzt – app.css PATCH v3
   Concept Hero: Echte Fotos statt CSS-Clipart
   Datum: 2026-05
   
   ANWENDUNG: Diesen Block ans ENDE von css/app.css anhängen.
   ============================================================ */

/* ── Concept Hero komplett neu mit echten Fotos ─────────────── */

#conceptHero {
  margin: 0 16px 14px !important;
  padding: 0 !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background: #1C1917 !important;
  box-shadow: 0 12px 32px rgba(28,25,23,0.14) !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  min-height: 200px !important;
  position: relative !important;
}

/* Linke Seite: Kleiderschrank-Foto */
#conceptHero .concept-closet-card {
  flex: 1 !important;
  position: relative !important;
  overflow: hidden !important;
  min-width: 0 !important;
  background: #1C1917 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

#conceptHero .concept-closet-card::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background-image: url('/assets/hero/slide_1.webp') !important;
  background-size: cover !important;
  background-position: center top !important;
  z-index: 0 !important;
}

#conceptHero .concept-closet-card::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(
    to bottom,
    rgba(28,25,23,0.10) 0%,
    rgba(28,25,23,0.55) 100%
  ) !important;
  z-index: 1 !important;
}

/* Label über dem Bild */
#conceptHero .concept-card-head {
  position: absolute !important;
  bottom: 12px !important;
  left: 12px !important;
  right: 4px !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  margin: 0 !important;
}

#conceptHero .concept-closet-card .concept-card-head span {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  color: #F5F2EE !important;
  white-space: nowrap !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4) !important;
}

#conceptHero .concept-closet-card .concept-card-head small {
  font-size: 9px !important;
  font-weight: 500 !important;
  color: rgba(245,242,238,0.7) !important;
  white-space: nowrap !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4) !important;
}

/* CSS-Clipart verstecken */
#conceptHero .closet-scene,
#conceptHero .closet-frame,
#conceptHero .closet-light,
#conceptHero .closet-rod,
#conceptHero .garment,
#conceptHero .closet-shelf {
  display: none !important;
}

/* Pfeil-Divider */
#conceptHero .concept-flow {
  width: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  background: #1C1917 !important;
  position: relative !important;
  z-index: 3 !important;
}

#conceptHero .concept-flow span {
  font-size: 16px !important;
  color: rgba(245,242,238,0.6) !important;
  font-weight: 300 !important;
}

/* Rechte Seite: Outfit-Foto */
#conceptHero .concept-outfit-card {
  flex: 1 !important;
  position: relative !important;
  overflow: hidden !important;
  min-width: 0 !important;
  background: #1C1917 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

#conceptHero .concept-outfit-card::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background-image: url('/assets/hero/slide_2.webp') !important;
  background-size: cover !important;
  background-position: center top !important;
  z-index: 0 !important;
}

#conceptHero .concept-outfit-card::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(
    to bottom,
    rgba(28,25,23,0.05) 0%,
    rgba(28,25,23,0.52) 100%
  ) !important;
  z-index: 1 !important;
}

#conceptHero .concept-outfit-card .concept-card-head {
  position: absolute !important;
  bottom: 12px !important;
  left: 12px !important;
  right: 4px !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  margin: 0 !important;
}

#conceptHero .concept-outfit-card .concept-card-head span {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  color: #F5F2EE !important;
  white-space: nowrap !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4) !important;
}

#conceptHero .concept-outfit-card .concept-card-head small {
  font-size: 9px !important;
  font-weight: 500 !important;
  color: rgba(245,242,238,0.7) !important;
  white-space: nowrap !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4) !important;
}

/* CSS-Clipart Outfit verstecken */
#conceptHero .fit-scene,
#conceptHero .fit-piece {
  display: none !important;
}

/* Mobile: übereinander */
@media (max-width: 380px) {
  #conceptHero {
    flex-direction: column !important;
    min-height: 280px !important;
  }
  #conceptHero .concept-flow {
    width: auto !important;
    height: 24px !important;
    transform: rotate(90deg) !important;
  }
  #conceptHero .concept-closet-card,
  #conceptHero .concept-outfit-card {
    min-height: 120px !important;
  }
}
