:root {
  --bg: #fcf7f5;
  --panel: #ffffff;
  --panel-soft: #fff3f1;
  --stroke: #ecdedd;
  --text: #312828;
  --muted: #76696b;
  --primary: #e58c98;
  --primary-strong: #d86b7d;
  --rose: #efb3ba;
  --champagne: #dcb98d;
  --olive: #a5a684;
  --blue: #6eb6dd;
  --green: #89b69f;
  --yellow: #d8b35f;
  --shadow: 0 20px 45px rgba(134, 89, 94, 0.09);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 227, 232, 0.6),
      transparent 35%
    ),
    linear-gradient(180deg, #fffefe 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Inter", sans-serif;
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
}

main {
  display: block;
}

.page-shell {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 24px 56px;
  box-sizing: border-box;
  overflow-x: clip;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(236, 222, 221, 0.8);
  border-radius: 999px;
  position: sticky;
  top: 14px;
  z-index: 20;
  backdrop-filter: blur(12px);
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  transition: transform 0.22s ease;
}

.brand-mark-accent {
  color: var(--primary-strong);
  transform: translateX(24px);
  font-size: 1.1rem;
  transition: transform 0.22s ease;
}

.topnav,
.topbar-actions,
.hero-points,
.hero-actions,
.wizard-steps,
.wizard-actions,
.gallery-thumbs,
.tag-list {
  display: flex;
}

.topnav,
.topbar-actions {
  align-items: center;
  gap: 14px;
}

.user-chip,
.flash-banner {
  border: 1px solid var(--stroke);
  background: #fff;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.user-chip.compact {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flash-banner {
  margin-bottom: 14px;
  padding: 14px 18px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.flash-success {
  background: #f2fbf5;
  border-color: #cbe7d1;
  color: #336245;
}

.flash-error {
  background: #fff4f4;
  border-color: #efcbcb;
  color: #8a4343;
}

.topnav a {
  font-size: 0.95rem;
  color: var(--muted);
  position: relative;
  padding-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s ease;
}

.topnav a i {
  font-size: 0.88rem;
  color: var(--primary);
  transition: transform 0.2s ease, color 0.2s ease;
}

.topnav a:hover i,
.topnav a.active i {
  color: var(--primary-strong);
  transform: scale(1.12);
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-strong));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.primary-button,
.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  position: relative;
  z-index: 10;
  pointer-events: auto !important;
  cursor: pointer !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(216, 107, 125, 0.2);
  user-select: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.primary-button,
.ghost-button {
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
}

.primary-button {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 16px 30px rgba(216, 107, 125, 0.24);
}

.primary-button.large {
  padding: 14px 22px;
}

.ghost-button {
  background: #fff;
  border-color: var(--stroke);
  color: var(--primary-strong);
}

.ghost-button.small {
  padding: 8px 14px;
  font-size: 0.86rem;
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  box-shadow: 0 18px 34px rgba(216, 107, 125, 0.3);
}

.ghost-button:hover {
  border-color: rgba(216, 107, 125, 0.28);
  background: #fff6f7;
}

.topbar:hover {
  box-shadow: 0 18px 38px rgba(134, 89, 94, 0.11);
}

.brand:hover {
  transform: translateY(-1px) scale(1.01);
}

.brand:hover .brand-mark-accent {
  transform: translateX(28px);
}

.topnav a:hover {
  color: var(--primary-strong);
}

.topnav a:hover::after {
  transform: scaleX(1);
}

.topnav-dropdown {
  position: relative;
}

.topnav-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.topnav-dropdown summary::-webkit-details-marker {
  display: none;
}

.topnav-dropdown summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.topnav-dropdown[open] summary,
.topnav-dropdown:hover summary,
.topnav-dropdown.is-admin-page summary {
  color: var(--primary-strong);
}

.topnav-dropdown.is-admin-page summary {
  padding: 8px 14px;
  border: 1px solid rgba(236, 209, 214, 0.9);
  border-radius: 999px;
  background: #fff5f6;
  font-weight: 600;
}

.topnav-dropdown[open] summary::after {
  transform: rotate(-135deg) translateY(-1px);
}

.topnav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  min-width: 200px;
  padding: 10px;
  border: 1px solid rgba(236, 222, 221, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 34px rgba(134, 89, 94, 0.12);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
  z-index: 30;
}

.topnav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
}

.topnav-dropdown-menu a::after {
  display: none;
}

.topnav-dropdown-menu a:hover,
.topnav-dropdown-menu a.active {
  color: var(--primary-strong);
  background: #fff2f4;
}

.topnav-dropdown-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #fff7f8;
  color: #c76879;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.topnav-dropdown-icon i,
.topnav-dropdown-icon svg {
  font-size: 0.9rem;
  color: currentColor;
}

.user-chip:hover {
  color: var(--primary-strong);
  border-color: rgba(216, 107, 125, 0.28);
  box-shadow: 0 12px 24px rgba(216, 107, 125, 0.12);
  transform: translateY(-1px);
}

.text-link {
  color: var(--primary-strong);
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f6ebe8;
  color: #9b7a75;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero,
.finder-layout,
.results-grid,
.product-detail-card {
  display: grid;
  gap: 24px;
}

.hero {
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  min-height: 540px;
  padding: 44px 48px;
  background: linear-gradient(135deg, #ffffff 0%, #fffcfc 100%);
  border: 1px solid rgba(236, 222, 221, 0.85);
  border-radius: 36px;
  box-shadow: 0 24px 50px rgba(134, 89, 94, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

.hero h1 {
  margin: 16px 0 18px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--primary-strong);
  background: linear-gradient(135deg, var(--primary-strong), #b85062);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p,
.brand-card p,
.how-card p,
.question-head small,
.completion-card p,
.info-block p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 32px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 243, 245, 0.85);
  border: 1px solid rgba(239, 179, 186, 0.45);
  color: var(--primary-strong);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(216, 107, 125, 0.06);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero-pill:hover {
  transform: translateY(-2px);
  background: #ffeef1;
  border-color: rgba(216, 107, 125, 0.7);
}

.hero-actions .primary-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 0.98rem;
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(216, 107, 125, 0.32);
}

.hero-visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-ambient-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 179, 186, 0.4) 0%, rgba(220, 185, 141, 0.15) 60%, transparent 80%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.hero-image-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(236, 222, 221, 0.9);
  box-shadow: 0 24px 50px rgba(134, 89, 94, 0.12), 0 8px 16px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(134, 89, 94, 0.16);
}

.hero-slides-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.04);
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.hero-slide.active:hover .hero-image {
  transform: scale(1.03);
}

.hero-floating-chip {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  z-index: 2;
  transition: transform 0.2s ease;
}

.hero-slider-nav {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

.slider-btn {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.slider-btn:hover {
  background: #fff0f3;
  color: var(--primary-strong);
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(118, 105, 107, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.slider-dot.active {
  width: 20px;
  background: var(--primary-strong);
}

.chip-sparkle {
  font-size: 1.2rem;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff0f3, #ffe3e7);
  flex-shrink: 0;
}

.chip-info strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
}

.chip-info small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.tag-list {
  flex-wrap: wrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 22px 0 24px;
}

.stat-card,
.brand-card,
.how-card,
.progress-panel,
.question-shell,
.results-main-card,
.recommendation-card,
.recommendation-item,
.product-detail-card,
.help-card,
.question-card,
.chart-card,
.evidence-card,
.profile-box,
.completion-card,
.product-detail-copy,
.product-gallery,
.why-card,
.info-block {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.stat-card,
.brand-card,
.how-card,
.question-card,
.chart-card,
.evidence-card,
.profile-box,
.completion-card,
.why-card,
.info-block {
  padding: 22px;
}

.stat-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 14px;
  gap: 3px;
}

.stat-card .stat-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-strong);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
}

.stat-card strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  display: block;
  margin: 2px 0;
}

.stat-card .stat-card-desc,
.stat-card span {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.25;
  display: block;
}

/* Rich Dashboard Stat Cards */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 18px 0 28px;
}

.dashboard-stat-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  text-align: left !important;
  gap: 18px !important;
  padding: 22px 24px !important;
  background: var(--panel) !important;
  border: 1px solid var(--stroke) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
  box-sizing: border-box !important;
  position: relative !important;
  overflow: hidden !important;
}

.dashboard-stat-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(216, 107, 125, 0.35) !important;
  box-shadow: 0 16px 32px rgba(134, 89, 94, 0.1) !important;
}

.stat-card-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff0f3 0%, #ffe3e8 100%);
  color: var(--primary-strong);
  font-size: 1.45rem;
  border: 1px solid rgba(239, 179, 186, 0.45);
  box-shadow: 0 4px 14px rgba(216, 107, 125, 0.12);
  flex-shrink: 0;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.dashboard-stat-card:hover .stat-card-icon-box {
  transform: scale(1.08);
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #ffffff;
}

.stat-card-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.stat-card-main .stat-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-strong);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.stat-card-main strong {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin: 1px 0;
  word-break: break-word;
}

.stat-card-main .stat-card-desc {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.25;
}

.stat-card-rich {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 236, 239, 0.9),
      transparent 34%
    ),
    linear-gradient(180deg, #fffefe, #fff8f9);
}

.stat-card-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary-strong);
  box-shadow: 0 12px 24px rgba(216, 107, 125, 0.12);
  z-index: 1;
}

.stat-card-icon svg,
.brand-card-icon svg,
.how-card-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.stat-card-rich::after {
  content: "";
  position: absolute;
  inset: auto -26px -28px auto;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
}

.stat-card-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: calc(100% - 56px);
  box-sizing: border-box;
}

.stat-card strong {
  display: block;
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.stat-card-rich strong {
  position: relative;
  z-index: 1;
  font-size: clamp(1.55rem, 2vw, 2rem);
}

.stat-card-rich p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 30ch;
  color: var(--muted);
  line-height: 1.65;
}

.stat-card-rich.accent-rose {
  border-color: rgba(229, 140, 152, 0.24);
}

.stat-card-rich.accent-champagne {
  border-color: rgba(216, 179, 95, 0.28);
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 244, 222, 0.9),
      transparent 34%
    ),
    linear-gradient(180deg, #fffefd, #fff8ef);
}

.stat-card-rich.accent-olive {
  border-color: rgba(150, 174, 118, 0.28);
  background:
    radial-gradient(
      circle at top right,
      rgba(239, 246, 226, 0.9),
      transparent 34%
    ),
    linear-gradient(180deg, #fffefd, #f8fbf4);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 40px 0 18px;
}

.section-heading.compact {
  margin-bottom: 16px;
}

.profile-header {
  align-items: center;
  margin-top: 20px;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-avatar-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  padding: 4px;
  border-radius: 28px;
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.92),
      transparent 36%
    ),
    linear-gradient(135deg, #f6ccd3, #efb3ba 52%, #dcb98d);
  box-shadow: 0 18px 34px rgba(216, 107, 125, 0.16);
}

.profile-avatar-image,
.profile-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 24px;
}

.profile-avatar-image {
  display: block;
  object-fit: cover;
  background: #fff8f8;
}

.profile-avatar-fallback {
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.88),
      transparent 35%
    ),
    linear-gradient(135deg, #fff8f9, #ffeef2);
  color: var(--primary-strong);
  font-size: 2rem;
  font-weight: 800;
}

.profile-header-copy {
  max-width: 620px;
}

.profile-header-copy p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section-heading h2,
.recommendation-card h2,
.product-detail-copy h1,
.question-shell h2,
.results-main-card h1 {
  margin: 10px 0 0;
  font-size: clamp(1.7rem, 2vw, 2.5rem);
}

.brand-grid,
.how-grid {
  gap: 18px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.brand-card,
.how-card {
  width: 100%;
}

.brand-card-rich,
.how-card-rich {
  position: relative;
  overflow: hidden;
}

.brand-card-rich {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.brand-card-rich .shade-thumb {
  position: relative;
  min-height: 350px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 24px;
}

.shade-thumb-image {
  display: block;
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  transition: transform 0.35s ease;
}

.brand-card-rich:hover .shade-thumb-image {
  transform: scale(1.05);
}

.brand-card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #6f5960;
  font-size: 0.76rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.brand-card-copy {
  display: grid;
  gap: 6px;
  padding: 0 14px 14px;
}

.brand-card-copy h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-card-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff6f7, #fff1f3);
  color: var(--primary-strong);
  border: 1px solid rgba(229, 140, 152, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.brand-card-copy h3 {
  margin: 0;
}

.brand-card-copy p {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.brand-card-copy small {
  color: var(--muted);
  line-height: 1.65;
}

.how-card-rich {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 240, 243, 0.84),
      transparent 32%
    ),
    linear-gradient(180deg, #fffefe, #fff8f9);
}

.how-card-side {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.how-card-step {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(216, 107, 125, 0.18);
}

.how-card-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--primary-strong);
  border: 1px solid rgba(229, 140, 152, 0.18);
  box-shadow: 0 10px 22px rgba(216, 107, 125, 0.1);
}

.how-card-copy h3 {
  margin: 2px 0 8px;
}

.how-card-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.stat-card:hover,
.brand-card:hover,
.how-card:hover,
.recommendation-item:hover,
.question-card:hover,
.chart-card:hover,
.evidence-card:hover,
.profile-box:hover,
.completion-card:hover,
.why-card:hover,
.info-block:hover,
.admin-form-card:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 107, 125, 0.22);
  box-shadow: 0 24px 44px rgba(134, 89, 94, 0.13);
}

.shade-thumb,
.mini-thumb,
.product-hero-thumb {
  border-radius: 24px;
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.78),
      transparent 30%
    ),
    linear-gradient(135deg, #f3d7d0, #e3c4b8 48%, #d7aa8c);
}

.mini-image-thumb,
.product-hero-image,
.admin-table-thumb,
.admin-image-card img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.shade-thumb {
  width: 100%;
  height: 160px;
  margin-bottom: 16px;
}

.mini-thumb {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.mini-image-thumb,
.admin-table-thumb {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.product-hero-thumb {
  width: 100%;
  min-height: 260px;
}

.product-hero-image {
  width: 100%;
  min-height: 260px;
  max-height: 420px;
  border-radius: 24px;
}

.product-hero-thumb.large {
  min-height: 440px;
}

.product-hero-image.large {
  min-height: 440px;
  max-height: 440px;
}

.rose {
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.85),
      transparent 30%
    ),
    linear-gradient(135deg, #f6d0d3, #edb8bc 48%, #d89aa4);
}

.champagne {
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.85),
      transparent 30%
    ),
    linear-gradient(135deg, #f3e0ca, #d9c39f 52%, #c7aa7d);
}

.olive {
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.85),
      transparent 30%
    ),
    linear-gradient(135deg, #d9dcc6, #b7bc97 52%, #8f9971);
}

.finder-layout {
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
}

.auth-layout {
  display: grid;
  place-items: center;
  min-height: 72vh;
  position: relative;
  isolation: isolate;
}

.auth-card {
  width: min(100%, 560px);
  padding: 34px;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 226, 232, 0.78),
      transparent 28%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(255, 241, 227, 0.72),
      transparent 32%
    ),
    var(--panel);
  border: 1px solid rgba(236, 222, 221, 0.92);
  border-radius: 30px;
  box-shadow:
    0 24px 50px rgba(134, 89, 94, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  position: relative;
  overflow: hidden;
}

.auth-card.wide {
  width: min(100%, 760px);
}

.auth-card::before,
.auth-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

.auth-card::before {
  top: -38px;
  right: 36px;
  width: 120px;
  height: 120px;
  background: radial-gradient(
    circle,
    rgba(239, 179, 186, 0.34),
    transparent 70%
  );
}

.auth-card::after {
  bottom: 18px;
  left: -24px;
  width: 90px;
  height: 90px;
  background: radial-gradient(
    circle,
    rgba(220, 185, 141, 0.26),
    transparent 70%
  );
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

.auth-card h1 {
  margin: 14px 0 12px;
  font-size: 2rem;
}

.auth-card p {
  max-width: 58ch;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.auth-form.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.auth-form label,
.auth-action-full {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.auth-action-full {
  grid-column: 1 / -1;
  justify-items: start;
}

.auth-form .field-label,
.admin-form-grid .field-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.auth-form input:hover,
.auth-form input:focus,
.admin-form-grid input:hover,
.admin-form-grid input:focus {
  border-color: rgba(216, 107, 125, 0.3);
  box-shadow: 0 0 0 4px rgba(229, 140, 152, 0.1);
  outline: none;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 56px;
}

.password-field .password-toggle {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 50%;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 244, 246, 0.96);
  color: #b45e71;
  cursor: pointer;
  margin: 0;
  line-height: 1;
  transform: translateY(-50%);
  z-index: 2;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.password-field .password-toggle::before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  background-color: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5C7 5 2.73 8.11 1 12c1.73 3.89 6 7 11 7s9.27-3.11 11-7c-1.73-3.89-6-7-11-7Zm0 11.5A4.5 4.5 0 1 1 12 7a4.5 4.5 0 0 1 0 9.5Zm0-7.2A2.7 2.7 0 1 0 12 15a2.7 2.7 0 0 0 0-5.4Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5C7 5 2.73 8.11 1 12c1.73 3.89 6 7 11 7s9.27-3.11 11-7c-1.73-3.89-6-7-11-7Zm0 11.5A4.5 4.5 0 1 1 12 7a4.5 4.5 0 0 1 0 9.5Zm0-7.2A2.7 2.7 0 1 0 12 15a2.7 2.7 0 0 0 0-5.4Z'/%3E%3C/svg%3E");
}

.password-field .password-toggle.is-visible::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m2.1 3.51 1.39-1.39 18 18-1.39 1.39-3.05-3.05A11.8 11.8 0 0 1 12 19c-5 0-9.27-3.11-11-7a12.7 12.7 0 0 1 4.18-4.9Zm5.31 5.31A4.47 4.47 0 0 0 7.5 12 4.5 4.5 0 0 0 12 16.5c1.15 0 2.19-.43 2.98-1.14ZM12 5c5 0 9.27 3.11 11 7a12.5 12.5 0 0 1-3.66 4.45l-2.84-2.84c0-.2 0-.4 0-.61A4.5 4.5 0 0 0 10 6.66L8.17 4.83C9.38 4.3 10.66 5 12 5Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m2.1 3.51 1.39-1.39 18 18-1.39 1.39-3.05-3.05A11.8 11.8 0 0 1 12 19c-5 0-9.27-3.11-11-7a12.7 12.7 0 0 1 4.18-4.9Zm5.31 5.31A4.47 4.47 0 0 0 7.5 12 4.5 4.5 0 0 0 12 16.5c1.15 0 2.19-.43 2.98-1.14ZM12 5c5 0 9.27 3.11 11 7a12.5 12.5 0 0 1-3.66 4.45l-2.84-2.84c0-.2 0-.4 0-.61A4.5 4.5 0 0 0 10 6.66L8.17 4.83C9.38 4.3 10.66 5 12 5Z'/%3E%3C/svg%3E");
}

.password-field .password-toggle:hover {
  background: #ffeef2;
  color: var(--primary-strong);
  transform: translateY(calc(-50% - 1px));
  box-shadow: 0 10px 18px rgba(216, 107, 125, 0.14);
}

.password-field .password-toggle:focus-visible {
  outline: 2px solid rgba(216, 107, 125, 0.35);
  outline-offset: 2px;
}

.auth-form input.is-valid,
.admin-form-grid input.is-valid {
  border-color: rgba(92, 171, 121, 0.55);
  background: #f4fbf6;
  box-shadow: 0 0 0 4px rgba(92, 171, 121, 0.08);
}

.auth-form input.is-invalid,
.admin-form-grid input.is-invalid {
  border-color: rgba(212, 98, 98, 0.5);
  background: #fff7f7;
  box-shadow: 0 0 0 4px rgba(212, 98, 98, 0.08);
}

.auth-form input.is-checking,
.admin-form-grid input.is-checking {
  border-color: rgba(216, 107, 125, 0.36);
  background: #fff9fa;
  box-shadow: 0 0 0 4px rgba(216, 107, 125, 0.08);
}

.auth-field-feedback {
  min-height: 0;
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(234, 212, 216, 0.9);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdfd, #fff6f8);
  color: #7f6268;
  font-size: 0.85rem;
  line-height: 1.5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.auth-field-feedback.hidden {
  display: none;
}

.auth-field-feedback:empty {
  display: none;
}

.auth-field-feedback::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: currentColor;
  vertical-align: middle;
}

.auth-field-feedback[data-state="available"] {
  color: #2f7b4f;
  border-color: rgba(139, 188, 157, 0.75);
  background: linear-gradient(180deg, #fbfffc, #f1fbf5);
}

.auth-field-feedback[data-state="taken"],
.auth-field-feedback[data-state="invalid"] {
  color: #a74856;
  border-color: rgba(232, 181, 189, 0.86);
  background: linear-gradient(180deg, #fffafc, #fff0f3);
}

.auth-field-feedback[data-state="checking"] {
  color: #9a6772;
  border-color: rgba(239, 204, 211, 0.82);
  background: linear-gradient(180deg, #fffdfd, #fff4f6);
}

.auth-suggestion-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
  padding: 16px;
  border: 1px solid rgba(239, 179, 186, 0.55);
  border-radius: 22px;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 229, 235, 0.96),
      transparent 42%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(255, 243, 230, 0.72),
      transparent 38%
    ),
    linear-gradient(180deg, #fffcfc, #fff4f6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 26px rgba(216, 107, 125, 0.08);
}

.auth-suggestion-list::before {
  content: "Saran username yang tersedia";
  grid-column: 1 / -1;
  color: #9b6671;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

button.auth-suggestion-chip,
.auth-suggestion-chip {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  padding: 10px 12px !important;
  border: 1px solid rgba(239, 179, 186, 0.72) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #ffffff, #fff3f6) !important;
  color: #b95f72 !important;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  box-shadow:
    0 8px 18px rgba(216, 107, 125, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.auth-suggestion-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f7d7dd, #efb3ba);
  color: #8f4354;
  font-weight: 800;
  box-shadow: 0 6px 12px rgba(216, 107, 125, 0.16);
}

.auth-suggestion-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button.auth-suggestion-chip:hover,
.auth-suggestion-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(216, 107, 125, 0.45) !important;
  background: linear-gradient(180deg, #fff7f9, #ffecef) !important;
  color: #a94e62 !important;
  box-shadow:
    0 14px 24px rgba(216, 107, 125, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.94) !important;
}

.auth-suggestion-chip:focus-visible {
  outline: 2px solid rgba(216, 107, 125, 0.28);
  outline-offset: 2px;
}

.auth-form .primary-button {
  min-width: 180px;
}

.auth-meta {
  margin-top: 18px;
  color: var(--muted);
}

.auth-meta a {
  color: var(--primary-strong);
  font-weight: 600;
}

.demo-box {
  margin-top: 20px;
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 234, 238, 0.85),
      transparent 36%
    ),
    linear-gradient(180deg, #fff9f8, #fff2f3);
  border: 1px solid #f2d8dc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.demo-box p {
  margin: 8px 0 0;
  color: var(--muted);
}

.dashboard-layout {
  display: grid;
  gap: 24px;
}

.admin-subnav {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.admin-subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  background: #fffaf9;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.admin-subnav-link:hover {
  color: var(--primary-strong);
  border-color: rgba(216, 107, 125, 0.2);
  background: #fff3f5;
  transform: translateY(-1px);
}

.admin-subnav-link.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 12px 22px rgba(216, 107, 125, 0.2);
}

.admin-table-card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 24px;
  border-bottom: 1px solid #f1e4e3;
}

.admin-table-head span,
.admin-inline-meta.muted {
  color: var(--muted);
}

.admin-table-summary strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.admin-search-form {
  display: grid;
  align-items: center;
  gap: 10px;
  grid-template-columns: minmax(280px, 1fr) minmax(170px, 190px) auto auto;
  margin-left: auto;
  width: min(100%, 760px);
}

.admin-search-form input[type="search"] {
  min-width: 0;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ead8d8;
  border-radius: 16px;
  background: #fff;
  color: #5e4f51;
}

.admin-search-form select {
  min-width: 0;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ead8d8;
  border-radius: 16px;
  background: #fff;
  color: #5e4f51;
}

.admin-search-form input[type="search"]:focus {
  outline: none;
  border-color: rgba(216, 107, 125, 0.4);
  box-shadow: 0 0 0 4px rgba(216, 107, 125, 0.1);
}

.admin-search-form select:focus {
  outline: none;
  border-color: rgba(216, 107, 125, 0.4);
  box-shadow: 0 0 0 4px rgba(216, 107, 125, 0.1);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f4eaea;
  text-align: left;
  vertical-align: middle;
  font-size: 0.95rem;
}

.admin-table th {
  color: #735f61;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #fff9f9;
}

.admin-table td {
  line-height: 1.45;
}

.admin-sort-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.admin-sort-link span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff1f3;
  color: var(--primary-strong);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.admin-sort-link:hover,
.admin-sort-link.is-active {
  color: var(--primary-strong);
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff0f2;
  color: var(--primary-strong);
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-action-group.compact {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.admin-action-group.compact .ghost-button.small {
  min-width: 90px;
  padding: 8px 14px;
}

.admin-actions-cell {
  white-space: nowrap;
}

.ghost-button.danger {
  color: #a74856;
  border-color: #efcfd6;
  background: #fff7f8;
}

.admin-inline-meta {
  display: block;
  margin-top: 12px;
  font-size: 0.92rem;
}

.admin-empty-state {
  padding: 28px 24px 32px;
  color: var(--muted);
}

.admin-empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: #544446;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px 24px;
  border-top: 1px solid #f4eaea;
}

.admin-pagination-pages {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.admin-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ead8d8;
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.admin-page-link:hover,
.admin-page-link.active {
  color: var(--primary-strong);
  border-color: rgba(216, 107, 125, 0.3);
  background: #fff3f5;
  transform: translateY(-1px);
}

.ghost-button.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.admin-search-form .ghost-button.small {
  min-height: 46px;
}

.admin-form-card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-form-grid label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-form-grid label span {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.admin-form-grid textarea {
  resize: vertical;
}

.admin-form-grid .full-width,
.admin-form-actions {
  grid-column: 1 / -1;
}

.checkbox-field {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding-top: 32px;
}

.checkbox-field input {
  width: auto;
}

.admin-helper-text,
.admin-input-title {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.admin-image-card {
  display: grid !important;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: #fffafb;
}

.admin-image-card img {
  height: 140px;
  border-radius: 16px;
}

.admin-image-card span {
  font-weight: 600;
  word-break: break-word;
}

.admin-image-card small {
  color: var(--muted);
}

.admin-image-remove {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-image-remove input {
  width: auto;
}

.admin-table-thumb.placeholder {
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.78),
      transparent 30%
    ),
    linear-gradient(135deg, #f3d7d0, #e3c4b8 48%, #d7aa8c);
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.admin-detail-grid-wide {
  grid-template-columns: 1fr;
}

.calc-section {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.calc-step-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.calc-step-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid #f0e1e2;
  border-radius: 22px;
  background: linear-gradient(180deg, #fffefe, #fff7f8);
}

.calc-step-card strong {
  font-size: 1rem;
}

.calc-step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.calc-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.calc-block {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #f1e1e1;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdfd, #fff7f8);
}

.calc-block h3,
.calc-formula-box h3,
.calc-reason-box h3 {
  margin: 0;
  font-size: 1rem;
}

.calc-note {
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff5f6;
  border: 1px solid #f1dfe3;
  color: var(--muted);
  line-height: 1.65;
}

.calc-note-academic strong {
  display: block;
  margin-bottom: 6px;
  color: #5d4a4d;
}

.calc-note-academic em {
  font-style: italic;
  color: #6d4d53;
}

.calc-metric-row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.calc-metric-row span:first-child {
  color: #5d5052;
  font-weight: 600;
}

.calc-meter {
  height: 12px;
  border-radius: 999px;
  background: #f4e7e8;
  overflow: hidden;
}

.calc-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #efb3ba, #d86b7d);
}

.calc-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 24px;
}

.calc-chip-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid #f1e2e3;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffefe, #fff6f7);
}

.calc-chip-card p,
.calc-chip-card span,
.calc-formula-box p,
.calc-card summary span,
.calc-reason-box {
  color: var(--muted);
}

.calc-chip-card p,
.calc-formula-box p {
  margin: 0;
  line-height: 1.65;
}

.calc-detail-list {
  display: grid;
  gap: 16px;
  padding: 0 24px 24px;
}

.calc-answer-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #f0e1e2;
  border-radius: 20px;
  background: #fff;
}

.calc-answer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.calc-answer-head strong {
  display: block;
  margin-bottom: 6px;
}

.calc-answer-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.calc-answer-meta {
  display: grid;
  gap: 8px;
  min-width: 220px;
}

.calc-answer-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff3f5;
  color: #7a5b60;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.calc-step-table td,
.calc-step-table th {
  white-space: nowrap;
}

.calc-card {
  border: 1px solid #f0dddd;
  border-radius: 22px;
  background: #fffafa;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.calc-card:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 107, 125, 0.22);
  box-shadow: 0 18px 30px rgba(134, 89, 94, 0.08);
}

.calc-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  background: linear-gradient(180deg, #fffefe, #fff7f8);
}

.calc-card summary::-webkit-details-marker {
  display: none;
}

.calc-card summary strong {
  display: block;
  margin-bottom: 4px;
}

.calc-card-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff0f2;
  color: var(--primary-strong) !important;
  font-weight: 700;
}

.calc-card-body {
  display: grid;
  gap: 18px;
  padding: 0 22px 22px;
}

.calc-formula-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.calc-formula-box {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid #f0e1e2;
  border-radius: 20px;
  background: #fff;
}

.calc-formula-box strong {
  font-size: 1.1rem;
  color: #4d3f41;
}

.calc-nested-grid {
  gap: 16px;
}

.calc-reason-box {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid #f0e1e1;
  background: linear-gradient(180deg, #fffdfa, #fff6f2);
}

.admin-table-compact th,
.admin-table-compact td {
  padding: 12px 14px;
  font-size: 0.9rem;
}

.subtle {
  background: #fffdfd;
  box-shadow: none;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.84fr);
  align-items: start;
  gap: 24px;
}

.profile-dashboard {
  gap: 24px;
}

.profile-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 228, 234, 0.86),
      transparent 32%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(255, 243, 230, 0.76),
      transparent 34%
    ),
    linear-gradient(180deg, #fffefe, #fff8f9);
}

.profile-hero-main {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.profile-avatar-card-xl {
  width: 112px;
  height: 112px;
  border-radius: 34px;
}

.profile-avatar-card-lg {
  width: 128px;
  height: 128px;
  border-radius: 36px;
  flex-shrink: 0;
}

.profile-hero-actions {
  justify-content: flex-end;
}

.profile-help-text {
  margin: 0 0 20px;
  color: var(--muted);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.profile-stats .stat-card {
  min-width: 0;
}

.profile-stats .stat-card strong {
  font-size: 1.15rem;
  line-height: 1.35;
  word-break: break-word;
}

.profile-main-card {
  padding: 28px;
}

.profile-form-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(239, 179, 186, 0.35);
  border-radius: 22px;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 236, 240, 0.92),
      transparent 42%
    ),
    linear-gradient(180deg, #fffdfd, #fff5f7);
}

.profile-form-banner strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.profile-form-banner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.profile-banner-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.profile-editor-grid {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.profile-avatar-editor,
.profile-side-card {
  display: grid;
  gap: 16px;
}

.profile-avatar-editor {
  padding: 20px;
  border: 1px solid rgba(236, 222, 221, 0.9);
  border-radius: 24px;
  background: linear-gradient(180deg, #fffefe, #fff8f9);
}

.profile-avatar-preview {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.profile-avatar-copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.profile-avatar-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.profile-upload-field {
  display: grid;
  gap: 10px;
}

.profile-upload-field input[type="file"] {
  width: 100%;
  padding: 14px;
  border: 1px dashed rgba(216, 107, 125, 0.34);
  border-radius: 18px;
  background: #fff7f8;
  color: var(--muted);
}

.profile-upload-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.profile-account-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-content: start;
}

.profile-account-fields label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.profile-account-fields .auth-suggestion-list {
  margin-top: 2px;
}

.profile-form-actions {
  padding-top: 4px;
}

.profile-side-stack {
  display: grid;
  gap: 24px;
  align-content: start;
}

.profile-side-card {
  padding: 24px;
}

.profile-side-list {
  display: grid;
  gap: 14px;
}

.profile-side-list div {
  padding: 16px;
  border: 1px solid #f2e0e2;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffefe, #fff7f8);
}

.profile-side-list span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-side-list strong {
  display: block;
  color: #4f4043;
  line-height: 1.45;
  word-break: break-word;
}

.danger-zone {
  align-self: start;
  position: sticky;
  top: 108px;
}

.danger-zone .ghost-button {
  justify-content: center;
}

.full-width-button {
  width: 100%;
}

.progress-panel,
.question-shell,
.results-main-card,
.recommendation-card,
.product-detail-card {
  padding: 24px;
}

.progress-panel {
  position: sticky;
  top: 108px;
}

.back-link {
  display: inline-flex;
  color: var(--muted);
  margin-bottom: 18px;
}

.step-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--stroke);
  background: #fff;
  border-radius: 18px;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.step-item span,
.wizard-step span,
.rank-pill {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #f6e8e5;
  color: #8f6661;
  font-weight: 700;
}

.step-item.active,
.wizard-step.active span,
.rank-pill {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
}

.step-item:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 107, 125, 0.24);
  box-shadow: 0 14px 28px rgba(216, 107, 125, 0.12);
  background: #fff8f8;
}

.help-card {
  margin-top: 22px;
  padding: 18px;
  background: linear-gradient(180deg, #fff9f9, #fff2f0);
}

.wizard-topbar {
  margin-bottom: 24px;
}

.wizard-steps {
  align-items: center;
  gap: 18px;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.wizard-step label {
  font-size: 0.92rem;
  font-weight: 600;
}

.question-step {
  display: none;
}

.question-step.active {
  display: block;
}

.question-subtitle {
  color: var(--muted);
  margin-top: -4px;
  margin-bottom: 24px;
}

.step-header-banner {
  margin-bottom: 24px;
}

.step-header-banner h2 {
  font-size: 1.6rem;
  color: #2b181c;
  margin: 4px 0 6px;
}

.question-card {
  margin-bottom: 22px;
  padding: 24px 26px;
  background: #ffffff;
  border-radius: 24px;
  border: 1.5px solid #f5d8de;
  box-shadow: 0 10px 30px rgba(220, 110, 130, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.question-card:hover {
  border-color: #f0b5c1;
  box-shadow: 0 14px 38px rgba(220, 110, 130, 0.12);
}

.question-head .head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.question-num-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #fce8eb 0%, #f7d0d8 100%);
  color: #b84457;
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.question-id-tag {
  color: #d87b8b;
  font-weight: 700;
  font-size: 0.82rem;
  background: #fff0f3;
  padding: 4px 10px;
  border-radius: 10px;
  border: 1px dashed #f2b8c3;
}

.question-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #2d1a1e;
  margin: 8px 0 10px;
  line-height: 1.4;
}

.question-helper {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  background: #fdf5f6;
  border-left: 3.5px solid #e07587;
  padding: 8px 14px;
  border-radius: 0 12px 12px 0;
  color: #7a4651;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.question-helper .helper-icon {
  font-size: 0.95rem;
  line-height: 1.2;
}

.question-code {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--primary-strong);
  font-weight: 700;
  font-size: 0.9rem;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 18px;
  align-items: stretch;
}

.option-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.option-grid.cols-3,
.option-grid.compact {
  grid-template-columns: repeat(3, 1fr);
}

.option-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.option-grid.cols-5 {
  grid-template-columns: repeat(5, 1fr);
}

.option-grid.cols-6 {
  grid-template-columns: repeat(3, 1fr);
}

.question-guide-image {
  margin-top: 16px;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid #f2cbd2;
  background: linear-gradient(180deg, #fff7f8 0%, #ffffff 100%);
  box-shadow: 0 6px 22px rgba(216, 107, 125, 0.08);
}

.question-guide-image .guide-header {
  padding: 10px 18px;
  background: linear-gradient(90deg, #fde8eb 0%, #fff0f3 100%);
  border-bottom: 1px solid #f7d4db;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.question-guide-image .guide-badge {
  font-weight: 700;
  font-size: 0.85rem;
  color: #b84457;
}

.question-guide-image .guide-header small {
  color: #8c5863;
  font-size: 0.8rem;
}

.question-guide-image .guide-img-box {
  padding: 12px;
  text-align: center;
}

.question-guide-image img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 14px;
}

.option-card {
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  height: 100%;
}

.option-card input {
  position: absolute;
  opacity: 0;
  inset: 0;
  z-index: 10;
  cursor: pointer;
}

.option-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  min-height: 60px;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 44px 14px 16px;
  border: 1.5px solid #eab0ba;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fff4f6 100%);
  color: #3b2529;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(216, 107, 125, 0.08);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.option-card.has-image .option-card-content,
.option-card.has-placeholder .option-card-content {
  padding: 12px 12px 14px 12px;
  min-height: 148px;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.option-card-thumb {
  width: 100%;
  height: 105px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  flex-shrink: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #f7d2d8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.option-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.option-card-thumb.placeholder-thumb {
  background: linear-gradient(135deg, #fff8f9 0%, #ffebef 50%, #fff0f3 100%);
  border: 1.5px solid rgba(239, 179, 186, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.option-card-thumb.placeholder-thumb::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 220, 228, 0.25) 70%, transparent 100%);
  pointer-events: none;
}

.option-card-thumb.placeholder-thumb .placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary-strong);
  font-size: 1.45rem;
  box-shadow: 0 6px 16px rgba(216, 107, 125, 0.16);
  border: 1.5px solid rgba(242, 184, 195, 0.5);
  position: relative;
  z-index: 1;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.option-card:hover .option-card-thumb.placeholder-thumb .placeholder-icon {
  transform: scale(1.12);
  background: linear-gradient(135deg, #fff0f3, #ffe3e8);
  color: var(--primary-strong);
  box-shadow: 0 8px 20px rgba(216, 107, 125, 0.25);
}

.option-card-text {
  display: block;
  width: 100%;
  font-size: 0.92rem;
  line-height: 1.3;
}

.option-card-content::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #d87b8b;
  background: #ffffff;
  transition: all 0.22s ease;
  z-index: 5;
}

.option-card.has-image .option-card-content::after,
.option-card.has-placeholder .option-card-content::after {
  top: 10px;
  right: 10px;
  transform: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.option-card:hover {
  transform: translateY(-3px);
}

.option-card:hover .option-card-content {
  border-color: #e07587;
  box-shadow: 0 10px 24px rgba(224, 117, 135, 0.22);
  background: linear-gradient(180deg, #ffeef1 0%, #ffdbe2 100%);
  color: #a43e50;
  font-weight: 700;
}

.option-card:hover .option-card-thumb img {
  transform: scale(1.08);
}

.option-card:hover .option-card-content::after {
  border-color: var(--primary-strong);
}

.option-card input:checked + .option-card-content {
  border: 2px solid #d85c70;
  background: linear-gradient(135deg, #e47587 0%, #d85c70 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(216, 92, 112, 0.38);
  transform: translateY(-3px);
}

.option-card input:checked + .option-card-content .option-card-thumb {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.option-card input:checked + .option-card-content::after {
  border-color: #ffffff;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d85c70' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 13px;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  transform: scale(1.1);
}

.confidence-field {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1.5px dashed #f5d4da;
  display: flex;
  align-items: center;
}

.confidence-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 14px;
}

.confidence-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #6b3e47;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  padding: 8px 36px 8px 14px;
  border-radius: 12px;
  border: 1.5px solid #eab0ba;
  background: #fff8f9;
  font-weight: 600;
  font-size: 0.88rem;
  color: #4a282e;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b84457' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 14px;
  background-position: right 12px center;
  background-repeat: no-repeat;
}

.select-wrapper select:focus {
  border-color: #d85c70;
  box-shadow: 0 0 0 3px rgba(216, 92, 112, 0.15);
  outline: none;
}

.confidence-field {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  color: #4a3437;
  font-size: 0.92rem;
  font-weight: 600;
}

.confidence-field select {
  width: 100%;
  padding: 13px 42px 13px 16px;
  border: 1.5px solid #e59aa6;
  border-radius: 16px;
  background-color: #fff2f4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d86b7d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  color: #3b2529;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: 0 4px 14px rgba(216, 107, 125, 0.12);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.confidence-field select:hover {
  border-color: var(--primary-strong);
  background-color: #ffe0e6;
  box-shadow: 0 6px 18px rgba(216, 107, 125, 0.2);
}

.confidence-field select:focus {
  border-color: var(--primary-strong);
  box-shadow: 0 0 0 4px rgba(216, 107, 125, 0.25);
  outline: none;
  background-color: #ffffff;
}

.confidence-field select option {
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #3b2529;
  background-color: #fff8f9;
}

.confidence-field select option:checked {
  background-color: #ffe0e6;
  color: #a43e50;
  font-weight: 700;
}

.wizard-actions {
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
}

.hidden {
  display: none;
}

.results-grid {
  grid-template-columns: 1.35fr 0.75fr;
  align-items: start;
}

.profile-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.analysis-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.detail-spec-grid,
.tag-list {
  gap: 16px;
}

.profile-box {
  width: 100%;
}

.profile-box span,
.detail-spec-grid span,
.recommendation-score span,
.score-badge span,
.product-subtitle {
  color: var(--muted);
}

.profile-box strong,
.detail-spec-grid strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 1.2rem;
}

.accent-cool {
  border-color: rgba(110, 182, 221, 0.28);
}

.accent-skin {
  border-color: rgba(137, 182, 159, 0.3);
}

.accent-depth {
  border-color: rgba(216, 179, 95, 0.32);
}

.accent-finish {
  border-color: rgba(229, 140, 152, 0.26);
}

.chart-card,
.evidence-card {
  flex: 1 1 320px;
}

.chart-group {
  margin-top: 22px;
}

.chart-label-row,
.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bar-item {
  display: grid;
  grid-template-columns: 110px 1fr 54px;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.94rem;
}

.bar-track {
  height: 10px;
  background: #f5ecea;
  border-radius: 999px;
  overflow: hidden;
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #efb3ba, #d86b7d);
}

.evidence-list,
.reason-list {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.evidence-list li,
.reason-list li {
  margin-bottom: 12px;
  color: var(--muted);
}

.evidence-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.completion-card {
  margin-top: 18px;
  background: linear-gradient(180deg, #fffaf7, #fff1ed);
}

.recommendation-card {
  position: sticky;
  top: 108px;
}

.score-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 126px;
  height: 126px;
  margin: 22px 0;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #ffeef1 58%, #f8d8de 100%);
  border: 1px solid rgba(216, 107, 125, 0.24);
}

.score-badge strong {
  font-size: 1.8rem;
}

.score-badge.inline {
  width: 150px;
  height: 150px;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}

.match-grid div,
.detail-spec-grid div {
  padding: 16px;
  background: #fff7f7;
  border: 1px solid #f0dfdf;
  border-radius: 18px;
}

.recommendation-list-section {
  margin-top: 28px;
}

/* ==========================================================================
   Recommendation Items (Card-Based 3-Tier Layout for Mobile & Desktop)
   ========================================================================== */
.recommendation-list {
  display: grid;
  gap: 16px;
}

.recommendation-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
}

.recommendation-item:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 107, 125, 0.35);
  box-shadow: 0 16px 36px rgba(134, 89, 94, 0.12);
}

/* Tier 1: Header (Rank Pill + Image + Title Block + Favorite Button) */
.recommendation-item-header {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.recommendation-item-header .rank-pill {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #fce8eb 0%, #f7d0d8 100%);
  color: var(--primary-strong);
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid rgba(216, 107, 125, 0.3);
  box-shadow: 0 4px 10px rgba(216, 107, 125, 0.1);
}

.recommendation-item-header .mini-image-thumb,
.recommendation-item-header .mini-thumb {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(236, 222, 221, 0.9);
}

.recommendation-title-block {
  flex: 1;
  min-width: 0;
}

.recommendation-title-block h3 {
  margin: 0 0 3px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  word-break: break-word;
}

.recommendation-title-block .recommendation-variant {
  margin: 0;
  color: var(--primary-strong);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.3;
  word-break: break-word;
}

.header-fav-action {
  margin-left: auto;
  flex-shrink: 0;
}

/* Tier 2: Skin Specs Chips / Badges */
.recommendation-specs-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fdf5f6;
  border: 1px solid rgba(239, 179, 186, 0.5);
  color: #7a4651;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Tier 3: Score & Coverage / Date */
.recommendation-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding-top: 12px;
  border-top: 1px dashed rgba(236, 222, 221, 0.95);
}

.score-pill-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.score-pill-box strong {
  font-size: 1.08rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff0f3, #ffe3e8);
  color: var(--primary-strong);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(216, 107, 125, 0.28);
  box-shadow: 0 2px 6px rgba(216, 107, 125, 0.08);
}

.score-pill-box .score-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.recommendation-date,
.recommendation-coverage {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

/* Dedicated Action Bar */
.recommendation-action-bar {
  width: 100%;
  padding-top: 4px;
}

.recommendation-action-bar .full-btn {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 18px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  border-radius: 14px !important;
  text-align: center !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.recommendation-item:hover .mini-image-thumb,
.recommendation-item:hover .mini-thumb,
.recommendation-item:hover .admin-table-thumb {
  transform: scale(1.04);
}

.mini-image-thumb,
.mini-thumb,
.admin-table-thumb,
.product-hero-image,
.product-hero-thumb {
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    filter 0.24s ease;
}

.product-gallery:hover .product-hero-image,
.product-gallery:hover .product-hero-thumb {
  transform: scale(1.01);
  filter: saturate(1.04);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.product-detail-card {
  grid-template-columns: 1fr 1.1fr;
}

.product-gallery,
.product-detail-copy {
  padding: 24px;
}

.gallery-thumbs {
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.gallery-thumb-button {
  padding: 0;
  border: 1px solid transparent;
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.gallery-thumb-button:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 107, 125, 0.28);
  box-shadow: 0 14px 22px rgba(146, 99, 105, 0.14);
}

.gallery-thumb-button.is-active {
  border-color: rgba(216, 107, 125, 0.55);
  box-shadow: 0 16px 26px rgba(146, 99, 105, 0.18);
}

.gallery-thumb-button:focus-visible {
  outline: 2px solid rgba(216, 107, 125, 0.4);
  outline-offset: 3px;
}

.gallery-thumb-button .mini-image-thumb,
.gallery-thumb-button .mini-thumb {
  pointer-events: none;
}

.detail-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0;
}

.tag-chip {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff2ef;
  color: #8f6661;
  font-size: 0.9rem;
  font-weight: 600;
}

.tag-chip.soft {
  background: #f5f0ef;
  color: #6d5d5f;
}

.info-block {
  margin-top: 18px;
}

/* Touch & Scroll Table Containers */
.table-scroll-wrap,
.admin-table-wrap,
.calc-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
  max-width: 100%;
}

.table-scroll-wrap table,
.admin-table-wrap table {
  min-width: 600px;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 42px;
  height: 42px;
  padding: 11px 9px;
  border: 1px solid rgba(236, 222, 221, 0.9);
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
  z-index: 25;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: #fff7f8;
  border-color: rgba(216, 107, 125, 0.3);
  transform: translateY(-1px);
}

.mobile-menu-toggle .hamburger-bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--text);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.mobile-menu-toggle.is-active {
  border-color: rgba(216, 107, 125, 0.45);
  background: #fff0f2;
}

.mobile-menu-toggle.is-active .hamburger-bar {
  background-color: var(--primary-strong);
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@keyframes fadeInDownNav {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Admin Sidebar Layout */
.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-sidebar {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 24px 18px;
  position: sticky;
  top: 108px;
  display: grid;
  gap: 20px;
}

.admin-sidebar-header h2 {
  margin: 6px 0 0;
  font-size: 1.25rem;
}

.admin-sidebar-nav {
  display: grid;
  gap: 8px;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.admin-sidebar-link:hover {
  color: var(--primary-strong);
  background: #fff3f5;
  transform: translateX(3px);
}

.admin-sidebar-link.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 12px 22px rgba(216, 107, 125, 0.22);
}

.admin-sidebar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.admin-sidebar-icon svg {
  width: 20px;
  height: 20px;
}

.admin-sidebar-link.active .admin-sidebar-icon svg {
  stroke: #fff;
}

.admin-main-content {
  display: grid;
  gap: 24px;
  min-width: 0;
}

@media (max-width: 992px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    display: none !important;
  }
}

.admin-profile-hero {
  border-color: rgba(229, 140, 152, 0.45);
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 218, 226, 0.95),
      transparent 38%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(255, 238, 220, 0.8),
      transparent 40%
    ),
    linear-gradient(180deg, #fffefe, #fff4f6);
}

.admin-profile-banner {
  border-color: rgba(216, 107, 125, 0.45);
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 225, 232, 0.9),
      transparent 45%
    ),
    linear-gradient(180deg, #fffdfd, #ffeef2);
}

/* User Dropdown & Favorite Styling */
.product-title-header,
.recommendation-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.recommendation-actions-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.favorite-form-inline {
  display: inline-flex;
  margin: 0;
}

.favorite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.favorite-button svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}

.favorite-button.small {
  width: 36px;
  height: 36px;
}

.favorite-button.small svg {
  width: 18px;
  height: 18px;
}

.favorite-button:hover {
  transform: scale(1.08);
  border-color: rgba(216, 107, 125, 0.4);
  color: #e25b74;
  box-shadow: 0 8px 18px rgba(226, 91, 116, 0.15);
}

.favorite-button.is-favorite {
  border-color: rgba(216, 107, 125, 0.45);
  background: #fff0f2;
  color: #e25b74;
  box-shadow: 0 8px 18px rgba(226, 91, 116, 0.2);
}

.favorite-button.is-favorite svg {
  transform: scale(1.06);
}

.favorite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.favorite-product-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--stroke);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.favorite-product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 107, 125, 0.3);
  box-shadow: 0 16px 30px rgba(134, 89, 94, 0.12);
}

.favorite-card-media {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(236, 222, 221, 0.8);
}

.favorite-card-media img,
.favorite-card-media .mini-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.favorite-card-body {
  flex: 1;
  min-width: 0;
}

.favorite-card-body h3 {
  margin: 2px 0 3px;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
}

.favorite-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3;
  word-break: break-word;
}

.favorite-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.favorite-card-actions .ghost-button {
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 12px;
  white-space: nowrap;
}

.eyebrow.compact {
  padding: 4px 8px;
  font-size: 0.7rem;
}

/* User Profile Layout Refinements */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 992px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

.profile-main-card {
  padding: 28px;
}

.profile-form-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(216, 107, 125, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffafb, #fff3f5);
  margin-bottom: 8px;
}

.profile-form-banner strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 2px;
}

.profile-form-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.profile-banner-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(216, 107, 125, 0.3);
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.profile-side-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-field input {
  width: 100%;
  padding-right: 48px;
}

.admin-form-actions.profile-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

/* About System Section Styling */
.about-system-card {
  margin-top: 24px;
  padding: 28px 32px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(216, 107, 125, 0.2);
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 235, 238, 0.9),
      transparent 40%
    ),
    linear-gradient(180deg, #ffffff, #fff7f8);
  box-shadow: var(--shadow);
}

.about-system-copy h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  color: var(--text);
}

.about-system-copy p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.about-system-copy p:last-child {
  margin-bottom: 0;
}

.about-system-features {
  display: grid;
  gap: 12px;
}

.about-feature-box {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(236, 212, 216, 0.9);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(134, 89, 94, 0.05);
}

.about-feature-box strong {
  display: block;
  color: var(--primary-strong);
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.about-feature-box span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* ==========================================
   Custom Themed Modal Dialog System
   ========================================== */
.custom-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(49, 40, 40, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

.custom-modal-overlay.is-active {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto !important;
}

.custom-modal-card {
  background: #ffffff;
  border: 1.5px solid rgba(236, 222, 221, 0.95);
  border-radius: 28px;
  padding: 32px 28px 28px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(134, 89, 94, 0.22);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-modal-overlay.is-active .custom-modal-card {
  transform: scale(1) translateY(0);
}

.custom-modal-icon {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  margin: 0 auto 18px;
}

.custom-modal-icon.warning {
  background: linear-gradient(135deg, #fff0f3 0%, #ffe3e8 100%);
  color: var(--primary-strong);
  border: 1.5px solid rgba(216, 107, 125, 0.35);
  box-shadow: 0 8px 20px rgba(216, 107, 125, 0.14);
}

.custom-modal-icon svg {
  width: 28px;
  height: 28px;
}

.custom-modal-title {
  margin: 0 0 10px;
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  color: var(--text);
}

.custom-modal-message {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.custom-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.custom-modal-actions .primary-button {
  padding: 13px 24px;
  font-size: 0.95rem;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(216, 107, 125, 0.28);
}

/* Shake / Highlight Unanswered Question Card */
@keyframes shakeCard {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.question-card.highlight-error {
  border-color: #e05d73 !important;
  box-shadow: 0 0 0 3px rgba(224, 93, 115, 0.25), 0 14px 38px rgba(220, 110, 130, 0.18) !important;
  animation: shakeCard 0.45s ease-in-out;
}

/* ==========================================================================
   Comprehensive Consolidated Responsive Breakpoints (Mobile First & Cascading)
   ========================================================================== */

/* Utility Classes for Header Actions */
.desktop-only-btn {
  display: inline-flex !important;
}

.mobile-only-link {
  display: none !important;
}

/* Prevent input zoom on iOS & ensure smooth form inputs */
input, select, textarea {
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   1. LAPTOPS & TABLETS LANDSCAPE (max-width: 1080px)
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero,
  .finder-layout,
  .results-grid,
  .product-detail-card {
    grid-template-columns: 1fr;
  }

  .progress-panel,
  .recommendation-card {
    position: static;
  }

  .topbar {
    border-radius: 28px;
  }

  .topnav-dropdown-menu {
    left: 0;
    transform: none;
  }

  .calc-step-overview,
  .calc-formula-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   2. TABLETS MEDIUM (max-width: 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .admin-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .admin-sidebar {
    display: none !important;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .how-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .profile-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analysis-columns {
    grid-template-columns: 1fr;
  }

  .option-grid.cols-4,
  .option-grid.cols-5,
  .option-grid.cols-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   3. TABLETS PORTRAIT & MOBILE LARGE (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .desktop-only-btn {
    display: none !important;
  }

  .mobile-only-link {
    display: flex !important;
  }

  .topbar {
    position: sticky;
    top: 10px;
    padding: 10px 16px;
    margin-bottom: 20px;
    border-radius: 999px;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
  }

  .brand {
    font-size: 1.22rem;
  }

  .brand-mark-accent {
    font-size: 0.92rem;
    transform: translateX(18px);
  }

  .topbar-actions {
    margin-left: auto;
    gap: 6px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .topnav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    width: 100%;
    padding: 14px 12px !important;
    margin-top: 0;
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(236, 222, 221, 0.95) !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 40px rgba(134, 89, 94, 0.18) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    display: none;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    z-index: 100 !important;
    box-sizing: border-box !important;
  }

  .topnav.mobile-open {
    display: flex !important;
    animation: menuFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes menuFadeIn {
    from {
      opacity: 0;
      transform: translateY(-8px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .topnav a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    background: #fff8f9 !important;
    border: 1px solid rgba(236, 222, 221, 0.45) !important;
    color: var(--text) !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    text-align: left !important;
    transition: all 0.2s ease !important;
  }

  .topnav a::after {
    display: none !important;
  }

  .topnav a i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #fff0f3, #ffe3e7) !important;
    color: var(--primary-strong) !important;
    font-size: 0.92rem !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease !important;
  }

  .topnav a span {
    flex: 1 !important;
    text-align: left !important;
  }

  .topnav a:hover,
  .topnav a.active {
    background: linear-gradient(135deg, #fff0f3, #ffe3e8) !important;
    color: var(--primary-strong) !important;
    border-color: rgba(216, 107, 125, 0.4) !important;
    transform: translateX(4px) !important;
  }

  .topnav a:hover i,
  .topnav a.active i {
    background: var(--primary-strong) !important;
    color: #fff !important;
    transform: scale(1.06) !important;
  }

  .topnav a.nav-logout i {
    background: #fff0f0 !important;
    color: #c94a4a !important;
  }

  .topnav a.nav-logout:hover i {
    background: #c94a4a !important;
    color: #fff !important;
  }

  .nav-divider {
    height: 1px;
    background: rgba(236, 222, 221, 0.85);
    margin: 4px 6px;
  }

  .page-shell {
    padding: 16px 12px 40px;
  }

  .hero {
    display: flex !important;
    flex-direction: column !important;
    padding: 28px 20px !important;
    min-height: unset !important;
    border-radius: 28px !important;
    gap: 14px !important;
    text-align: left !important;
  }

  .hero-copy {
    display: contents !important;
  }

  .hero .eyebrow {
    order: 1 !important;
    align-self: flex-start !important;
  }

  .hero h1 {
    order: 2 !important;
    font-size: clamp(2rem, 6vw, 3.2rem) !important;
    margin: 4px 0 6px !important;
  }

  .hero-visual {
    order: 3 !important;
    min-height: unset !important;
    border-radius: 24px !important;
    width: 100% !important;
    margin: 4px 0 8px !important;
  }

  .hero-image-card {
    max-width: 100% !important;
    border-radius: 24px !important;
    margin: 0 auto !important;
  }

  .hero p {
    order: 4 !important;
    margin: 0 !important;
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
  }

  .hero-pills {
    order: 5 !important;
    margin: 8px 0 16px !important;
    gap: 8px !important;
  }

  .hero-pill {
    padding: 7px 14px !important;
    font-size: 0.82rem !important;
  }

  .hero-actions {
    order: 6 !important;
    width: 100% !important;
  }

  .hero-actions .primary-button {
    width: 100% !important;
  }

  /* Progress Panel on Mobile */
  .progress-panel {
    padding: 18px 20px;
    border-radius: 22px;
    margin-bottom: 12px;
  }

  .progress-panel .step-list,
  .progress-panel .help-card {
    display: none;
  }

  .progress-panel h1 {
    font-size: 1.4rem;
    margin: 6px 0 4px;
  }

  .progress-panel p {
    font-size: 0.88rem;
    margin: 0;
  }

  .wizard-steps {
    flex-wrap: wrap;
    gap: 10px;
  }

  .wizard-topbar {
    margin-bottom: 16px;
  }

  /* Form & Grid Reflow */
  .auth-form.grid,
  .admin-form-grid,
  .admin-detail-grid,
  .profile-grid,
  .profile-editor-grid,
  .profile-account-fields {
    grid-template-columns: 1fr;
  }

  .profile-hero-card,
  .profile-hero-main,
  .profile-form-banner {
    display: grid;
  }

  .auth-suggestion-list {
    grid-template-columns: 1fr;
  }

  .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .detail-spec-grid div {
    padding: 12px 14px;
  }

  .detail-spec-grid strong {
    font-size: 1rem;
  }

  .admin-table-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 18px;
  }

  .admin-search-form {
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
  }

  .admin-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .bar-item {
    grid-template-columns: 100px 1fr 48px;
    gap: 10px;
  }

  .calc-section,
  .calc-chip-grid,
  .calc-detail-list {
    padding-left: 14px;
    padding-right: 14px;
  }

  .calc-card summary,
  .calc-card-body {
    padding-left: 14px;
    padding-right: 14px;
  }

  .calc-card summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .calc-metric-row,
  .calc-step-overview,
  .calc-formula-grid {
    grid-template-columns: 1fr;
  }

  .calc-answer-meta {
    min-width: 0;
    width: 100%;
  }

  .product-detail-card {
    border-radius: 24px;
  }

  .product-gallery,
  .product-detail-copy {
    padding: 18px 14px;
  }

  .product-hero-image.large {
    min-height: 240px;
    max-height: 340px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .score-badge.inline {
    width: 120px;
    height: 120px;
  }

  .score-badge.inline strong {
    font-size: 1.5rem;
  }

  .auth-card {
    padding: 24px 18px;
    border-radius: 24px;
  }
}

/* --------------------------------------------------------------------------
   4. MOBILE STANDARD (max-width: 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .page-shell {
    padding: 12px 10px 36px !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: clip !important;
    box-sizing: border-box !important;
  }

  .topbar {
    padding: 10px 14px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Home Stats Grid - Full Width Stack on Mobile for Clean Balance */
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-bottom: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .stat-card-rich {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .stat-card-rich .stat-card-kicker {
    margin-bottom: 12px;
    font-size: 0.74rem;
    padding: 5px 10px;
    max-width: calc(100% - 52px);
  }

  .stat-card-rich strong {
    font-size: 1.45rem;
    margin-bottom: 4px;
  }

  .stat-card-rich p {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .stat-card-icon {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .stat-card-icon svg {
    width: 18px;
    height: 18px;
  }

  /* Dashboard Stats Grid - Vertically Stacked (1 Column) on Mobile for Maximum Clarity */
  .dashboard-layout .dashboard-stats-grid,
  .dashboard-layout .stats-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 14px 0 22px !important;
  }

  .dashboard-layout .dashboard-stat-card,
  .dashboard-layout .stat-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 14px !important;
    padding: 16px 18px !important;
    border-radius: 18px !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .dashboard-layout .stat-card-icon-box {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    font-size: 1.2rem !important;
    flex-shrink: 0 !important;
  }

  .dashboard-layout .stat-card-main {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    min-width: 0 !important;
    flex: 1 !important;
  }

  .dashboard-layout .stat-card-main .stat-card-title {
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    color: var(--primary-strong) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
  }

  .dashboard-layout .stat-card-main strong {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: var(--text) !important;
    line-height: 1.1 !important;
    margin: 1px 0 !important;
    word-break: break-word !important;
  }

  .dashboard-layout .stat-card-main .stat-card-desc {
    font-size: 0.76rem !important;
    color: var(--muted) !important;
    margin: 0 !important;
  }

  /* Brands and How-It-Works Single Column */
  .brand-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .brand-card-rich .shade-thumb {
    min-height: 200px;
    max-height: 240px;
  }

  .shade-thumb-image {
    height: 220px;
  }

  .how-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Recommendation Item / List Polish (Clean 3-tier mobile card - Zero Overflow) */
  .recommendation-list {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 14px !important;
  }

  .recommendation-item {
    padding: 16px !important;
    border-radius: 20px !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .recommendation-item-header {
    gap: 10px !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .recommendation-item-header .rank-pill {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.82rem !important;
    flex-shrink: 0 !important;
  }

  .recommendation-item-header .mini-image-thumb,
  .recommendation-item-header .mini-thumb {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    flex-shrink: 0 !important;
  }

  .recommendation-title-block {
    min-width: 0 !important;
    flex: 1 1 0 !important;
  }

  .recommendation-title-block h3 {
    font-size: 0.96rem !important;
    margin: 0 0 2px !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .recommendation-title-block .recommendation-variant {
    font-size: 0.82rem !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .recommendation-specs-chips {
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .spec-chip {
    padding: 4px 10px !important;
    font-size: 0.74rem !important;
    max-width: 100% !important;
    word-break: break-word !important;
  }

  .recommendation-score {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 10px !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    border-top: 1px dashed rgba(236, 222, 221, 0.95) !important;
  }

  .score-pill-box {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .score-pill-box strong {
    font-size: 0.98rem !important;
    padding: 4px 10px !important;
  }

  .score-pill-box .score-label {
    display: inline-block !important;
    font-size: 0.76rem !important;
    color: var(--muted) !important;
    font-weight: 600 !important;
  }

  .recommendation-date,
  .recommendation-coverage {
    font-size: 0.76rem !important;
    word-break: break-word !important;
    color: var(--muted) !important;
    text-align: right !important;
  }

  .recommendation-action-bar {
    width: 100% !important;
    padding-top: 2px !important;
  }

  .recommendation-action-bar .full-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 15 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
  }

  /* Favorite Product Card Polish on Mobile */
  .favorite-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .favorite-product-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    border-radius: 18px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .favorite-card-media {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
  }

  .favorite-card-body {
    flex: 1 !important;
    min-width: 0 !important;
  }

  .favorite-card-body h3 {
    font-size: 0.92rem !important;
    margin: 0 0 2px !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
  }

  .favorite-card-body p {
    font-size: 0.78rem !important;
    color: var(--muted) !important;
    margin: 0 !important;
    word-break: break-word !important;
  }

  .favorite-card-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
  }

  .favorite-card-actions .ghost-button {
    padding: 7px 12px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
  }

  .favorite-card-actions .favorite-form-inline {
    flex-shrink: 0 !important;
  }

  /* Option Grids */
  .option-grid.cols-3,
  .option-grid.cols-4,
  .option-grid.cols-5,
  .option-grid.cols-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .option-grid.compact,
  .option-grid:not(.grid-has-images) {
    grid-template-columns: 1fr !important;
  }

  .option-card-content {
    min-height: 48px;
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .option-card.has-image .option-card-content,
  .option-card.has-placeholder .option-card-content {
    padding: 8px 6px;
    min-height: 110px;
  }
}

/* --------------------------------------------------------------------------
   5. MOBILE COMPACT (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .section-heading {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    margin-bottom: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  .section-heading > div {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .section-heading h1 {
    font-size: 1.35rem !important;
    margin: 0 !important;
    word-break: break-word !important;
  }

  .section-heading h2 {
    font-size: 1.15rem !important;
    margin: 0 !important;
    word-break: break-word !important;
  }

  .section-heading .ghost-button,
  .section-heading .primary-button {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
    width: auto !important;
    flex-shrink: 0 !important;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-actions .primary-button,
  .hero-actions .ghost-button,
  .auth-form .primary-button,
  .auth-form .ghost-button,
  .profile-form-actions .primary-button,
  .full-width-button {
    width: 100% !important;
  }

  /* Specific Buttons that should NOT be full-width */
  .favorite-card-actions .favorite-button,
  .header-fav-action .favorite-button {
    width: auto !important;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    width: 100%;
    box-sizing: border-box;
  }

  .profile-main-card {
    padding: 16px 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .detail-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
  }

  .detail-spec-grid div {
    padding: 8px 10px;
    border-radius: 12px;
    min-width: 0;
  }

  .detail-spec-grid span {
    font-size: 0.72rem;
  }

  .detail-spec-grid strong {
    font-size: 0.88rem;
    word-break: break-word;
  }

  .bar-item {
    grid-template-columns: 80px 1fr 40px;
    gap: 6px;
    font-size: 0.8rem;
  }

  .custom-modal-card {
    padding: 20px 16px 18px;
    border-radius: 20px;
  }

  .custom-modal-title {
    font-size: 1.2rem;
  }

  .custom-modal-message {
    font-size: 0.84rem;
  }
}

/* --------------------------------------------------------------------------
   6. MOBILE ULTRA-COMPACT (max-width: 380px)
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
  .page-shell {
    padding: 10px 8px 30px !important;
  }

  .dashboard-layout .stats-grid {
    gap: 10px !important;
  }

  .dashboard-layout .stat-card {
    padding: 14px 14px !important;
    border-radius: 16px !important;
  }

  .dashboard-layout .stat-card strong {
    font-size: 1.45rem !important;
  }

  .dashboard-layout .stat-card .stat-card-title {
    font-size: 0.76rem !important;
  }

  .dashboard-layout .stat-card .stat-card-desc {
    font-size: 0.72rem !important;
  }

  .profile-summary-grid {
    grid-template-columns: 1fr;
  }

  .option-grid,
  .option-grid.cols-2,
  .option-grid.cols-3,
  .option-grid.cols-4,
  .option-grid.cols-5,
  .option-grid.cols-6,
  .option-grid.grid-has-images {
    grid-template-columns: 1fr !important;
  }

  .bar-item {
    grid-template-columns: 70px 1fr 36px;
    font-size: 0.76rem;
  }
}
