/* DrMate Beauty PRO (bt100) — Youth & Beauty */
.bt-page { display: flex; flex-direction: column; gap: 12px; }
.bt-hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: 20px 16px 16px; color: #fff;
  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 45%, #8b5cf6 100%);
  box-shadow: 0 18px 40px -18px rgba(236, 72, 153, 0.65); isolation: isolate;
}
.bt-hero::before, .bt-hero::after {
  content: ""; position: absolute; border-radius: 50%; opacity: 0.3; z-index: 0; pointer-events: none;
  background: rgba(255,255,255,0.35);
}
.bt-hero::before { width: 170px; height: 170px; top: -60px; left: -40px; animation: bt-float 7s ease-in-out infinite; }
.bt-hero::after { width: 110px; height: 110px; bottom: -45px; right: 10%; animation: bt-float 9s ease-in-out infinite reverse; }
@keyframes bt-float { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(10px) scale(1.05); } }
.bt-hero-in { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.bt-hero-ic {
  width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; flex: 0 0 auto;
  background: rgba(255,255,255,0.22); border: 1px solid rgba(255,255,255,0.4); backdrop-filter: blur(6px);
}
.bt-hero-txt b { display: block; font-size: 19px; font-weight: 900; }
.bt-hero-txt small { display: block; font-size: 12px; opacity: 0.92; margin-top: 2px; }
.bt-chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bt-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.bt-hero-act { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.bt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 14px; padding: 11px 8px; font-size: 13px; font-weight: 800; border: none; cursor: pointer;
}
.bt-btn:active { transform: scale(0.97); }
.bt-btn.solid { background: #fff; color: #db2777; box-shadow: 0 8px 20px -8px rgba(0,0,0,0.4); }
.bt-btn.ghost { background: rgba(255,255,255,0.16); color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.bt-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 6px;
  background: var(--card, rgba(128,128,128,0.12)); border: 1px solid var(--border, rgba(128,128,128,0.2));
  border-radius: 18px; scrollbar-width: none;
}
.bt-tabs::-webkit-scrollbar { display: none; }
.bt-tab {
  display: flex; align-items: center; gap: 6px; border: none; background: transparent; border-radius: 13px;
  padding: 9px 10px; font-size: 12px; font-weight: 800; color: var(--text-secondary, inherit);
  cursor: pointer; white-space: nowrap; transition: all 0.2s ease;
}
.bt-tab-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.bt-tab.on { background: linear-gradient(135deg, #ec4899, #8b5cf6); color: #fff; box-shadow: 0 8px 18px -8px rgba(236,72,153,0.7); }
.bt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bt-grid.sm { grid-template-columns: 1fr 1fr 1fr; }
.bt-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  border-radius: 20px; padding: 14px 12px; text-align: start; cursor: pointer;
  background: var(--card, #fff); border: 1px solid var(--border, rgba(128,128,128,0.2));
  box-shadow: 0 6px 18px -10px rgba(0,0,0,0.25); transition: transform 0.15s ease; color: inherit;
}
.bt-card:active { transform: scale(0.97); }
.bt-card.sm { align-items: center; text-align: center; padding: 12px 6px; }
.bt-card-ic { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; color: #fff; }
.bt-card b { font-size: 13px; font-weight: 900; }
.bt-card small { font-size: 10.5px; opacity: 0.75; line-height: 1.6; }
.bt-card .bt-go { position: absolute; top: 12px; inset-inline-end: 10px; opacity: 0.5; }
.bt-sec { display: flex; align-items: center; gap: 8px; margin: 4px 0 2px; }
.bt-sec h2 { font-size: 15px; font-weight: 900; margin: 0; }
.bt-h3 { font-size: 13.5px; font-weight: 900; margin: 14px 0 6px; }
.bt-prog { height: 8px; border-radius: 99px; background: rgba(128,128,128,0.2); overflow: hidden; margin: 8px 0 4px; }
.bt-prog-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ec4899, #8b5cf6); transition: width 0.3s ease; }
.bt-opt {
  display: flex; flex-direction: column; gap: 2px; text-align: start; width: 100%;
  border-radius: 14px; padding: 12px; font-size: 13px; font-weight: 700; cursor: pointer;
  background: var(--bg-soft, rgba(128,128,128,0.08)); border: 1.5px solid var(--border, rgba(128,128,128,0.25)); color: inherit;
}
.bt-opt small { font-size: 11px; font-weight: 400; opacity: 0.75; }
.bt-opt.sel { border-color: #ec4899; background: rgba(236,72,153,0.1); }
.bt-res {
  display: flex; gap: 12px; align-items: center; border-radius: 20px; padding: 14px;
  background: linear-gradient(135deg, rgba(236,72,153,0.12), rgba(139,92,246,0.12));
  border: 1px solid rgba(236,72,153,0.3);
}
.bt-res-ic {
  width: 56px; height: 56px; border-radius: 19px; display: grid; place-items: center; color: #fff; flex: 0 0 auto;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}
.bt-res b { font-size: 15px; font-weight: 900; }
.bt-res p { font-size: 12px; opacity: 0.8; margin-top: 3px; line-height: 1.7; }
.bt-tag { display: inline-block; font-size: 10.5px; font-weight: 800; background: rgba(139,92,246,0.15); color: #8b5cf6; padding: 3px 10px; border-radius: 999px; margin-top: 6px; }
.bt-step { display: flex; gap: 10px; align-items: flex-start; border-radius: 14px; padding: 10px 12px; background: var(--card, #fff); border: 1px solid var(--border, rgba(128,128,128,0.2)); }
.bt-step-n {
  min-width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center;
  font-size: 12px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #ec4899, #8b5cf6); flex: 0 0 auto;
}
.bt-step b { font-size: 12.5px; font-weight: 700; line-height: 1.8; }
.bt-avoid { display: flex; gap: 8px; align-items: center; border-radius: 12px; padding: 9px 12px; font-size: 12px; font-weight: 700; background: rgba(244,63,94,0.08); border: 1px solid rgba(244,63,94,0.25); color: #f43f5e; }
.bt-check {
  display: flex; gap: 10px; align-items: center; width: 100%; text-align: start;
  border-radius: 14px; padding: 11px 12px; font-size: 13px; font-weight: 700; cursor: pointer;
  background: var(--card, #fff); border: 1.5px solid var(--border, rgba(128,128,128,0.25)); color: inherit;
}
.bt-check .bt-box {
  width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 auto;
  border: 2px solid rgba(128,128,128,0.4); font-size: 14px; font-weight: 900; color: #fff;
}
.bt-check.on { border-color: #10b981; background: rgba(16,185,129,0.08); }
.bt-check.on .bt-box { background: #10b981; border-color: #10b981; }
.bt-note {
  display: flex; gap: 8px; align-items: flex-start; border-radius: 14px; padding: 10px 12px;
  font-size: 11px; line-height: 1.8; background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.3); color: inherit;
}
.bt-cvwrap { border-radius: 20px; overflow: hidden; border: 1px solid var(--border, rgba(128,128,128,0.25)); background: #111; display: grid; place-items: center; margin-top: 8px; }
.bt-cvwrap canvas { max-width: 100%; touch-action: manipulation; cursor: crosshair; }
.bt-dots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bt-dot {
  min-width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  font-size: 11px; font-weight: 900; cursor: pointer;
  background: rgba(128,128,128,0.15); border: 1.5px solid transparent;
}
.bt-dot.done { background: rgba(16,185,129,0.15); border-color: #10b981; }
.bt-dot.cur { background: rgba(236,72,153,0.2); border-color: #ec4899; }
.bt-score { display: flex; gap: 14px; align-items: center; border-radius: 22px; padding: 16px; color: #fff; background: linear-gradient(135deg, #8b5cf6, #ec4899); box-shadow: 0 14px 30px -14px rgba(139,92,246,0.7); }
.bt-score-n { font-size: 44px; font-weight: 900; line-height: 1; min-width: 80px; text-align: center; background: rgba(255,255,255,0.2); border-radius: 18px; padding: 8px; }
.bt-score b { font-size: 16px; }
.bt-meter { height: 9px; border-radius: 99px; background: rgba(128,128,128,0.2); overflow: hidden; margin-top: 8px; }
.bt-meter-fill { height: 100%; border-radius: 99px; transition: width 0.5s ease; }
.bt-big { font-size: 52px; }
@media (prefers-reduced-motion: reduce) {
  .bt-hero::before, .bt-hero::after, .bt-prog-fill, .bt-meter-fill, .bt-tab, .bt-card { animation: none; transition: none; }
}

/* ===== back-on-hero (like other pages) + theme harmony ===== */
.screen:has(> .page-back-row + .beautypro-page) > .page-back-row { display: none; }
.screen:has(> .page-back-row + .beautypro-page).has-back > .page-back-row + * { padding-inline-start: 0; }
.bt-hero .bt-back {
  position: absolute; top: 14px; inset-inline-start: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: #fff; border: none; color: #14181f; cursor: pointer; padding: 0;
  box-shadow: 0 6px 16px rgba(0,0,0,0.28);
}
.bt-hero .bt-back:active { transform: scale(0.94); }
.bt-hero .bt-hero-top { padding-inline-start: 46px; }
.bt-sec h2, .bt-h3 { color: var(--text-primary); }
.bt-card, .bt-opt, .bt-step, .bt-check {
  background: var(--bg-card, #fff); color: var(--text-primary);
  border-color: var(--border, rgba(128,128,128,0.25));
}
.bt-card small { color: var(--text-secondary); }
.bt-tabs { background: var(--bg-card, rgba(128,128,128,0.12)); }
.bt-dot { color: var(--text-primary); }
html[data-theme='dark'] .bt-avoid { background: rgba(244,63,94,0.16); }
html[data-theme='dark'] .bt-note { background: rgba(245,158,11,0.14); }
html[data-theme='dark'] .bt-tag { background: rgba(139,92,246,0.28); color: #c4b5fd; }

/* ===== beauty atlas ===== */
.bt-rchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.bt-rchip {
  border-radius: 999px; padding: 9px 16px; font-size: 12.5px; font-weight: 800; cursor: pointer;
  background: var(--bg-card, #fff); color: var(--text-primary);
  border: 1.5px solid var(--border, rgba(128,128,128,0.25));
}
.bt-rchip.sm { padding: 7px 12px; font-size: 11.5px; }
.bt-rchip.on { background: linear-gradient(135deg, #d946ef, #8b5cf6); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -8px rgba(217,70,239,0.7); }
.bt-figwrap {
  border-radius: 22px; padding: 12px; background: var(--bg-card, #fff);
  border: 1px solid var(--border, rgba(128,128,128,0.2));
}
.bt-figcap { text-align: center; font-size: 12px; font-weight: 900; color: var(--text-secondary); margin-bottom: 6px; }
.bt-fig { width: 100%; max-width: 340px; display: block; margin: 0 auto; height: auto; touch-action: manipulation; }
