/* ============================================================
   YumnAI — Skincare Result Screen CSS
   Matches the Target Visual Reference (media_1789125030911.jpg)
   Editorial Beauty Aesthetic, Warm Porcelain Palette, Premium Typography
   ============================================================ */

/* ── Container & Reset ──────────────────────────────────────── */
.yn-skincare-result {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 calc(96px + env(safe-area-inset-bottom, 0px)) 0;
  background-color: #FAF7F2;
  color: #2C2420;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 769px) {
  .yn-skincare-result {
    max-width: 520px;
    border-radius: 32px;
    margin: 24px auto;
    box-shadow: 0 16px 48px rgba(180, 140, 120, 0.12);
    overflow: hidden;
  }
}

/* ── Header ─────────────────────────────────────────────────── */
.yn-skin-header {
  width: 100%;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box;
}

.yn-skin-back-btn {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--ink, #1A1A1A);
  cursor: pointer;
  transition: transform 0.15s, background-color 0.2s;
  padding: 0;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.yn-skin-back-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.yn-skin-back-btn:active {
  transform: translateY(-50%) scale(0.95);
  background: rgba(0, 0, 0, 0.08);
}

.yn-skin-brand-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  margin: 0;
  margin-right: -0.38em;
  color: var(--ink, #1A1A1A);
  text-align: center;
  user-select: none;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  text-transform: uppercase;
}

.yn-skin-share-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--ink, #1A1A1A);
  cursor: pointer;
  transition: transform 0.15s, background-color 0.2s;
  padding: 0;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.yn-skin-share-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.yn-skin-share-btn:active {
  transform: translateY(-50%) scale(0.95);
  background: rgba(0, 0, 0, 0.08);
}

/* ── Tab Bar Navigation (Removed) ───────────────────────────── */
.yn-skin-tabs-wrap {
  display: none !important;
}

/* ── Content Panes ──────────────────────────────────────────── */
.yn-skin-tab-pane {
  display: none;
  padding: 0 20px calc(24px + env(safe-area-inset-bottom, 0px));
}

.yn-skin-tab-pane.active {
  display: block;
  animation: ynSkinFadeIn 0.3s ease forwards;
}

@keyframes ynSkinFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Hero Card ──────────────────────────────────────────────── */
.yn-skin-hero-card {
  background: #FFFFFF;
  border-radius: 28px;
  padding: 24px 20px 22px;
  box-shadow: 0 8px 30px rgba(160, 120, 100, 0.08);
  border: 1px solid #F0E8DF;
  margin-top: 14px;
  margin-bottom: 20px;
  position: relative;
}

.yn-skin-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 20px;
}

.yn-skin-portrait-wrap {
  width: 170px;
  height: 200px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(140, 78, 67, 0.15);
  border: 3px solid #FFFFFF;
  background-color: #F5EEE6;
  position: relative;
}

.yn-skin-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yn-skin-hero-cursive {
  position: absolute;
  right: 6px;
  top: 30px;
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  color: #B56050;
  text-align: left;
  transform: rotate(4deg);
  pointer-events: none;
}

.yn-skin-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #F8E8E4;
  color: #B25848;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.yn-skin-badge-pill svg {
  color: #B25848;
}

.yn-skin-hero-text {
  text-align: center;
}

/* ── Overall Skin Score Card (Clean Horizontal) ──────────── */
.yn-skin-score-card {
  background: #FCFAF7;
  border: 1px solid #EFE6DC;
  border-radius: 20px;
  padding: 18px 20px 20px;
  margin: 14px auto 18px;
  max-width: 390px;
  box-shadow: 0 4px 18px rgba(160, 115, 95, 0.06);
}

.yn-skin-score-card-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8C7E75;
  margin: 0 0 14px 0;
  text-align: center;
}

.yn-skin-score-card-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.yn-skin-score-gauge-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yn-skin-score-halo {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 218, 120, 0.65) 20%, rgba(246, 218, 120, 0.28) 55%, transparent 74%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.yn-skin-score-svg {
  position: relative;
  width: 88px;
  height: 88px;
  transform: rotate(-90deg);
  z-index: 1;
  filter: drop-shadow(0 0 10px rgba(245, 215, 115, 0.5));
}

.yn-skin-score-track {
  fill: none;
  stroke: #ECDCD6;
  stroke-width: 5.5;
}

.yn-skin-score-fill {
  fill: none;
  stroke: #4D8872;
  stroke-width: 5.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}

.yn-skin-score-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  padding-top: 30px;
}

.yn-skin-score-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: #151312;
  line-height: 1;
}

.yn-skin-score-denom {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: #151312;
  line-height: 1;
  margin-left: 1px;
}

.yn-skin-score-card-attrs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.yn-skin-score-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yn-skin-score-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4D8872;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.yn-skin-score-badge-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #231B17;
  white-space: nowrap;
}

/* ── Beauty Ratio Section ──────────────────────────────────── */
.yn-skin-beauty-ratio-section {
  text-align: center;
  margin-top: 14px;
}

.yn-skin-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: #111111;
  margin: 0 0 6px;
}

.yn-skin-hero-ratio {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  color: #111111;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}

/* ── Golden Ratio Reference ────────────────────────────────── */
.yn-skin-golden-ref-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 4px auto 0;
  max-width: 320px;
}

.yn-skin-golden-ref-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8C7E75;
}

.yn-skin-golden-ref-num-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.yn-skin-golden-ref-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: #5A4E46;
}

.yn-skin-golden-info-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: rgba(192, 107, 92, 0.08);
  color: #B25848;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.yn-skin-golden-info-btn:hover {
  background: rgba(192, 107, 92, 0.16);
}

.yn-skin-golden-info-btn svg {
  color: #B25848;
}

/* ── Golden Info Panel ─────────────────────────────────────── */
.yn-skin-golden-info-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
  opacity: 0;
  width: 100%;
}

.yn-skin-golden-info-panel.open {
  max-height: 220px;
  opacity: 1;
  margin-top: 10px;
}

.yn-skin-golden-info-card {
  background: #FFFFFF;
  border: 1px solid #EFE4DC;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  box-shadow: 0 4px 16px rgba(140, 90, 70, 0.08);
}

.yn-skin-golden-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.yn-skin-golden-info-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #B25848;
  margin: 0;
  text-transform: uppercase;
}

.yn-skin-golden-close-btn {
  border: none;
  background: transparent;
  color: #8C7E75;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.yn-skin-golden-close-btn:hover {
  color: #111111;
}

.yn-skin-golden-info-text {
  font-size: 12px;
  line-height: 1.55;
  color: #554A43;
  margin: 0;
}

@media (max-width: 400px) {
  .yn-skin-score-card-body {
    gap: 14px;
  }
  .yn-skin-score-gauge-wrap {
    width: 76px;
    height: 76px;
  }
  .yn-skin-score-svg {
    width: 76px;
    height: 76px;
  }
  .yn-skin-score-num {
    font-size: 24px;
  }
  .yn-skin-score-denom {
    font-size: 13px;
  }
  .yn-skin-score-center {
    padding-top: 24px;
  }
  .yn-skin-score-badge-text {
    font-size: 11.5px;
  }
  .yn-skin-hero-title {
    font-size: 21px;
  }
  .yn-skin-hero-ratio {
    font-size: 30px;
  }
}

/* ── Section Headers ────────────────────────────────────────── */
.yn-skin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 12px;
}

.yn-skin-section-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #382D27;
  margin: 0;
}

.yn-skin-section-action {
  font-size: 12px;
  font-weight: 600;
  color: #8C4E43;
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.yn-skin-section-sub {
  font-size: 13px;
  color: #756860;
  margin: -6px 0 14px;
}

/* ── Key Skin Insights (Segmented Bars) ───────────────────────── */
.yn-skin-insights-card {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 18px 14px;
  box-shadow: 0 4px 20px rgba(160, 120, 100, 0.06);
  border: 1px solid #F0E8DF;
  margin-bottom: 20px;
}

.yn-skin-insights-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  text-align: center;
}

.yn-skin-insight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.yn-skin-insight-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #FAF5EE;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #382D27;
  border: 1px solid #ECE3D6;
}

.yn-skin-insight-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #2D231E;
  margin: 0;
  white-space: nowrap;
}

.yn-skin-segmented-bar {
  display: flex;
  gap: 2.5px;
  width: 44px;
  height: 6px;
  margin: 2px 0;
}

.yn-skin-segment {
  flex: 1;
  height: 100%;
  background-color: #E6DFD7;
  border-radius: 3px;
}

.yn-skin-segment.active {
  background-color: #4BA27E;
}

.yn-skin-insight-val {
  font-size: 10.5px;
  font-weight: 600;
  color: #6C5E57;
  margin: 0;
  line-height: 1.2;
}

/* ── Overall Skin Condition Card ────────────────────────────── */
.yn-skin-overall-card {
  background: #FDF4EE;
  border-radius: 24px;
  padding: 20px 18px;
  border: 1px solid #F3DDD3;
  margin-bottom: 20px;
}

.yn-skin-overall-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.yn-skin-overall-info {
  flex: 1;
}

.yn-skin-overall-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.yn-skin-sparkle-icon {
  color: #C07062;
  display: flex;
}

.yn-skin-overall-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4A3A34;
  margin: 0;
}

.yn-skin-overall-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: #6E5F57;
  margin: 0;
}

.yn-skin-score-gauge {
  width: 72px;
  height: 72px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.yn-skin-gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.yn-skin-gauge-bg {
  fill: none;
  stroke: #EADBD4;
  stroke-width: 5.5;
}

.yn-skin-gauge-fill {
  fill: none;
  stroke: #4BA27E;
  stroke-width: 5.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.yn-skin-gauge-content {
  position: absolute;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.yn-skin-gauge-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  color: #2D2420;
}

.yn-skin-gauge-denom {
  font-size: 10.5px;
  font-weight: 600;
  color: #7D6F67;
}

.yn-skin-overall-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yn-skin-badge-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #4A3E38;
}

.yn-skin-check-circle {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #4BA27E;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Feature Crops (Visible Concerns — 4 columns) ────────── */
.yn-skin-crops-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

/* ── Face Analysis (2 × 2 Grid) ──────────────────────────── */
.yn-skin-face-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.yn-skin-face-grid .yn-skin-crop-card {
  padding: 12px 12px 14px;
}

.yn-skin-face-grid .yn-skin-crop-title {
  font-size: 12px;
  margin: 0 0 6px;
}

.yn-skin-face-grid .yn-skin-crop-desc {
  font-size: 12px;
  line-height: 1.45;
}

.yn-skin-crop-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 8px 8px 10px;
  box-shadow: 0 4px 16px rgba(160, 120, 100, 0.05);
  border: 1px solid #EFE8DF;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.yn-skin-crop-thumb-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background-color: #F5EFEB;
  margin-bottom: 8px;
  position: relative;
}

.yn-skin-crop-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yn-skin-crop-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #2D231E;
  margin: 0 0 4px;
}

.yn-skin-crop-desc {
  font-size: 10px;
  line-height: 1.35;
  color: #6C5F57;
  margin: 0;
}



/* ── Recommended Routine Cards ───────────────────────────────── */
.yn-skin-routine-section {
  margin-bottom: 24px;
}

.yn-skin-routine-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 440px) {
  .yn-skin-routine-columns {
    grid-template-columns: 1fr;
  }
}

.yn-skin-routine-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 16px 14px;
  border: 1px solid #F0E8DF;
  box-shadow: 0 4px 16px rgba(160, 120, 100, 0.05);
}

.yn-skin-routine-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #382D27;
  margin-bottom: 14px;
}

.yn-skin-routine-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.yn-skin-routine-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.yn-skin-step-icon-wrap {
  width: 38px;
  height: 48px;
  border-radius: 10px;
  background-color: #FBF7F2;
  border: 1px solid #EAE2D8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  color: #8C4E43;
}

.yn-skin-step-name {
  font-size: 11px;
  font-weight: 700;
  color: #2D231E;
  margin: 0;
  line-height: 1.2;
}

.yn-skin-step-type {
  font-size: 9.5px;
  color: #7D6E66;
  margin: 0;
  line-height: 1.2;
}

.yn-skin-step-arrow {
  color: #BDB2AA;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  padding-bottom: 16px;
}

/* ── Key Ingredients & Avoid Lists ───────────────────────────── */
.yn-skin-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.yn-skin-ingr-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
}

.yn-skin-ingr-pill.blue { background-color: #E8F3FC; color: #1D6FB8; border: 1px solid #D5E8FA; }
.yn-skin-ingr-pill.green { background-color: #EDF7EF; color: #2D7D46; border: 1px solid #D8EEDD; }
.yn-skin-ingr-pill.orange { background-color: #FEF6E9; color: #B8731D; border: 1px solid #FBE8CB; }
.yn-skin-ingr-pill.purple { background-color: #F3EEFA; color: #6B3FB8; border: 1px solid #E4D7F5; }
.yn-skin-ingr-pill.mint { background-color: #EAF6F0; color: #277D5A; border: 1px solid #CEECDD; }

.yn-skin-avoid-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  background-color: #FCEEEB;
  color: #B54838;
  border: 1px solid #F7DAD4;
}

/* ── Primary Bottom CTA ──────────────────────────────────────── */
.yn-skin-bottom-action {
  text-align: center;
  padding: 10px 0 20px;
}

.yn-skin-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 380px;
  margin: 0 auto 12px;
  padding: 16px 24px;
  background-color: #1A1412;
  color: #FFFFFF;
  border: none;
  border-radius: 36px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(26, 20, 18, 0.25);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.yn-skin-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(26, 20, 18, 0.32);
}

.yn-skin-cta-btn:active {
  transform: translateY(1px);
}

.yn-skin-bottom-cursive {
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #8C4E43;
  margin: 8px 0 0;
  line-height: 1.2;
}

/* ── Placeholder Tab Styles (Products & Tips) ────────────────── */
.yn-skin-placeholder-card {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 36px 24px;
  text-align: center;
  border: 1px solid #F0E8DF;
  box-shadow: 0 4px 20px rgba(160, 120, 100, 0.06);
  margin: 20px 0;
}

.yn-skin-placeholder-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: #FDF3EE;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #C07062;
}

.yn-skin-placeholder-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #2D2420;
  margin: 0 0 10px;
}

.yn-skin-placeholder-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #6E5F57;
  max-width: 320px;
  margin: 0 auto 20px;
}

.yn-skin-placeholder-badge {
  display: inline-block;
  background-color: #FAF4EC;
  color: #8C4E43;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid #EAE0D4;
}

.yn-skin-tip-item {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid #F0E8DF;
  box-shadow: 0 4px 16px rgba(160, 120, 100, 0.05);
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.yn-skin-tip-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #FDF3EE;
  color: #C07062;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.yn-skin-tip-content h4 {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: #2D2420;
}

.yn-skin-tip-content p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #6C5F57;
}

/* ── Fixed Sticky Bottom CTA Container ──────────────────────── */
.yn-skin-sticky-cta-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(250, 247, 242, 0) 0%, rgba(250, 247, 242, 0.88) 35%, #FAF7F2 100%);
  pointer-events: none;
  box-sizing: border-box;
}

.yn-skin-sticky-btn {
  pointer-events: auto;
  width: 100%;
  max-width: 440px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1A1412;
  color: #FFFFFF;
  border: none;
  border-radius: 9999px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(26, 20, 18, 0.28);
  transition: transform 0.18s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.yn-skin-sticky-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(26, 20, 18, 0.35);
}

.yn-skin-sticky-btn:active {
  transform: scale(0.98);
}

/* ── Products Recommendation Screen ──────────────────────────── */
.yn-skin-products-hero {
  text-align: center;
  padding: 16px 8px 24px;
}

.yn-skin-products-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #C07062;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.yn-skin-products-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 24px;
  font-weight: 700;
  color: #2D2420;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.yn-skin-products-subtitle {
  font-size: 13.5px;
  line-height: 1.5;
  color: #6C5F57;
  max-width: 360px;
  margin: 0 auto;
}

/* Category Sections */
.yn-skin-cat-section {
  margin-bottom: 28px;
}

.yn-skin-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 0 4px;
}

.yn-skin-cat-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background-color: #FDF3EE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(192, 112, 98, 0.08);
}

.yn-skin-cat-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 17px;
  font-weight: 700;
  color: #2D2420;
  margin: 0;
  line-height: 1.25;
}

.yn-skin-cat-desc {
  font-size: 12px;
  color: #8C7D73;
  margin: 2px 0 0;
  line-height: 1.35;
}

.yn-skin-products-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Product Card */
.yn-skin-product-card {
  background: #FFFFFF;
  border-radius: 22px;
  border: 1px solid #F0E8DF;
  box-shadow: 0 4px 18px rgba(160, 120, 100, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.yn-skin-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(160, 120, 100, 0.12);
}

.yn-skin-product-img-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  background: #FAF7F2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #F5EEE6;
}

.yn-skin-product-img-wrap img {
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.05));
}

.yn-skin-product-card:hover .yn-skin-product-img-wrap img {
  transform: scale(1.04);
}

.yn-skin-product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.yn-skin-product-badge.best {
  background: #1A1412;
  color: #FDF8F5;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.yn-skin-product-badge.recommended {
  background: #FDF3EE;
  color: #8C4E43;
  border: 1px solid #EEDCD2;
}

.yn-skin-product-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.yn-skin-product-cat-pill {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A06456;
  margin-bottom: 6px;
}

.yn-skin-product-name {
  font-size: 14px;
  font-weight: 600;
  color: #2D2420;
  line-height: 1.4;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 39px;
}

.yn-skin-product-reason {
  background: #FAF5F0;
  border: 1px solid #EFE4DA;
  border-radius: 12px;
  padding: 9px 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: #5C4E46;
}

.yn-skin-reason-icon {
  color: #C07062;
  flex-shrink: 0;
  margin-top: 2px;
}

.yn-skin-product-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1A1412;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 9999px;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.2s ease, transform 0.15s ease, background 0.2s ease;
  margin-top: auto;
  box-shadow: 0 4px 12px rgba(26, 20, 18, 0.16);
  -webkit-tap-highlight-color: transparent;
}

.yn-skin-product-buy-btn:hover {
  background: #2D221F;
  opacity: 0.94;
  transform: translateY(-1px);
  color: #FFFFFF;
}

.yn-skin-product-buy-btn:active {
  transform: scale(0.98);
}
