:root {
  --bg: #f6f5ef;
  --surface: #ffffff;
  --surface-soft: #f1f3eb;
  --line: #dfe6d7;
  --text: #1f2a1e;
  --muted: #66725f;
  --green: #2f7d32;
  --green-dark: #205f25;
  --green-soft: #93b46e;
  --accent: #e8f0df;
  --gold: #f1be2c;
  --silver: #9ea5ae;
  --bronze: #c7771b;
  --danger: #d97706;
  --shadow: 0 18px 40px rgba(48, 77, 42, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8f7f2 0%, #f3f4ee 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 247, 242, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(105, 128, 81, 0.12);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex: 1;
}

.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid #cfdac3;
  border-radius: 12px;
  color: var(--green-dark);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-nav-toggle:hover {
  background: #eef4e8;
  border-color: #88a464;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  white-space: nowrap;
  text-decoration: none;
}

.brand-text {
  font-weight: 800;
  font-size: 1.65rem;
  line-height: 1.1;
  color: #021536;
  white-space: nowrap;
}

.brand small {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: #64748b;
  font-weight: 600;
  margin-top: 2px;
}

.brand-mark {
  color: var(--green-dark);
}

.brand-soft {
  color: #91a56f;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
}

.main-nav a {
  color: #374236;
  padding: 8px 0;
  position: relative;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--green-dark);
}

.main-nav a.active::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.auth-link {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #cfdac3;
  color: var(--green-dark);
  font-weight: 700;
  background: #fff;
}

.auth-link-filled {
  background: #eef4e8;
}

.auth-link.active {
  border-color: #88a464;
  background: #edf5e7;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #edf4e8;
  color: var(--green-dark);
  font-weight: 700;
}

.profile-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid #8aa279;
  border-radius: 50%;
}

.profile-btn span {
  width: 16px;
  height: 16px;
  border: 2px solid #56724a;
  border-radius: 50%;
  position: relative;
}

.profile-btn span::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -12px;
  width: 18px;
  height: 10px;
  border: 2px solid #56724a;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom: 0;
}

.hero-section,
.section,
.page-hero {
  padding: 28px 0;
}

.hero-grid,
.product-layout,
.process-grid,
.two-panel-grid {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  background: linear-gradient(135deg, #f1f0e7 0%, #ecebdc 100%);
  border: 1px solid rgba(136, 162, 107, 0.2);
  border-radius: 32px;
  padding: 42px;
  box-shadow: var(--shadow);
}

.hero-copy h1,
.page-hero h1 {
  margin: 12px 0 8px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  color: #6f8451;
}

.hero-copy p,
.page-hero p,
.panel p,
.mini-card p,
.info-card p,
.stat-card p,
.method-card p,
.detail-description p {
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(147, 180, 110, 0.15);
  color: var(--green-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
}

.hero-actions,
.button-row,
.center-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, #328d38 0%, #246d2a 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(47, 125, 50, 0.22);
}

.btn-secondary {
  background: #fff;
  color: var(--green-dark);
  border-color: #9ab182;
}

.btn-ghost {
  width: 100%;
  background: #eef4ea;
  color: var(--green-dark);
}

.btn.small {
  padding: 10px 16px;
}

.btn.wide {
  min-width: 230px;
}

.hero-visual {
  position: relative;
  min-height: 430px;
}

.visual-blob {
  position: absolute;
  inset: 24px 10px 12px 40px;
  background:
    radial-gradient(
      circle at 65% 35%,
      rgba(177, 199, 138, 0.4),
      transparent 32%
    ),
    radial-gradient(
      circle at 30% 65%,
      rgba(214, 227, 193, 0.8),
      transparent 28%
    ),
    #efeee2;
  border-radius: 44% 56% 42% 58% / 44% 36% 64% 56%;
}

.product-display {
  position: absolute;
  inset: 0;
}

.jar,
.jar-preview,
.jar-hero,
.tube,
.block-card,
.table-thumb {
  position: absolute;
  border-radius: 18px;
  box-shadow: 0 16px 35px rgba(50, 70, 46, 0.12);
}

.jar::before,
.jar-preview::before,
.jar-hero::before,
.table-thumb::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 16%;
  top: 32%;
  background: rgba(255, 255, 255, 0.84);
  border-radius: 8px;
}

.jar::after,
.jar-preview::after,
.jar-hero::after,
.table-thumb::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28%;
  border-radius: 18px 18px 8px 8px;
  background: rgba(36, 57, 33, 0.2);
}

.jar-lg {
  width: 160px;
  height: 124px;
  left: 92px;
  bottom: 50px;
}

.jar-md {
  width: 116px;
  height: 92px;
  left: 268px;
  bottom: 78px;
}

.tube {
  width: 92px;
  height: 202px;
  right: 56px;
  bottom: 70px;
  border-radius: 20px 20px 14px 14px;
  transform: skewX(-4deg);
}

.block-card {
  width: 138px;
  height: 162px;
  right: 168px;
  bottom: 62px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f1e9 100%);
}

.leaf-cluster {
  position: absolute;
  width: 180px;
  height: 120px;
}

.leaf-cluster::before,
.leaf-cluster::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 75%, #a0b86d 0 8px, transparent 9px),
    radial-gradient(circle at 35% 55%, #93b46e 0 10px, transparent 11px),
    radial-gradient(circle at 48% 28%, #86a95a 0 8px, transparent 9px),
    radial-gradient(circle at 62% 44%, #a8bf7c 0 10px, transparent 11px),
    radial-gradient(circle at 76% 20%, #95b665 0 8px, transparent 9px),
    radial-gradient(circle at 82% 62%, #8ca95f 0 9px, transparent 10px);
  opacity: 0.8;
}

.leaf-a {
  right: 56px;
  top: 8px;
}

.leaf-b {
  left: 42px;
  bottom: 18px;
}

.tone-green,
.tone-green::after {
  background-color: #718b55;
}

.tone-olive,
.tone-olive::after {
  background-color: #8a9d71;
}

.tone-sage,
.tone-sage::after {
  background-color: #a1b08c;
}

.tone-pink,
.tone-pink::after {
  background-color: #d6a6af;
}

.tone-dark,
.tone-dark::after {
  background-color: #595959;
}

.tone-mint,
.tone-mint::after {
  background-color: #a7c1aa;
}

.tone-forest,
.tone-forest::after {
  background-color: #4f7058;
}

.tone-pearl,
.tone-pearl::after {
  background-color: #cfd2cd;
}

.section-title {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
}

.section-title.centered,
.page-hero.centered {
  text-align: center;
}

.steps-grid,
.criteria-grid,
.stats-grid,
.recommendation-grid,
.summary-grid {
  display: grid;
  gap: 18px;
}

.steps-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.criteria-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.summary-grid {
  grid-template-columns: 1.1fr 1.1fr 0.9fr;
}

.info-card,
.panel,
.mini-card,
.stat-card,
.summary-box,
.recommend-card,
.table-card,
.note-box,
.note-inline {
  background: var(--surface);
  border: 1px solid rgba(112, 132, 90, 0.16);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.step-card,
.mini-card,
.stat-card,
.summary-box,
.recommend-card {
  padding: 22px;
}

.step-card {
  position: relative;
  min-height: 200px;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #81a45f 0%, #5f7e41 100%);
  color: #fff;
  font-weight: 800;
  margin-bottom: 18px;
}

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

.panel {
  padding: 24px;
}

.mini-card {
  min-height: 170px;
}

.mini-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #eef4e5;
  color: var(--green-dark);
  font-weight: 800;
  margin-bottom: 14px;
}

.method-card {
  background: linear-gradient(180deg, #f6f8f0 0%, #edf2e3 100%);
  border-radius: 24px;
  padding: 28px;
  min-height: 100%;
}

.method-card h4 {
  margin: 0 0 10px;
  font-size: 2rem;
}

.method-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
}

.method-pill {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  text-align: center;
}

.method-pill strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 8px;
}

.method-plus {
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green);
}

.result-banner {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8cab63 0%, #75954f 100%);
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 2.4rem;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.stat-card span {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.note-box,
.note-inline {
  padding: 20px 24px;
  margin-top: 18px;
  color: #43513f;
}

.page-hero.slim {
  padding-bottom: 8px;
}

.page-hero.slim h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.success-caption {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #eef4ea;
  color: var(--green-dark);
  font-weight: 700;
}

.success-caption::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.85rem;
}

.product-layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(350px, 0.82fr);
  align-items: start;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.search-box input,
.toolbar select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d7dfcf;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

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

.product-card {
  background: #fff;
  border: 1px solid rgba(112, 132, 90, 0.15);
  border-radius: 20px;
  padding: 18px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  box-shadow: var(--shadow);
}

.product-card:hover,
.product-card.is-active {
  transform: translateY(-2px);
  border-color: #86a35f;
}

.product-thumb,
.recommend-thumb {
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid #f0f4f8;
  border-radius: 16px;
  min-height: 148px;
  margin-bottom: 16px;
}

.jar-preview,
.table-thumb {
  position: relative;
}

.jar-preview {
  width: 86px;
  height: 68px;
  border-radius: 14px;
}

.jar-preview.large {
  width: 130px;
  height: 102px;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d29b04;
  font-weight: 700;
  margin: 8px 0 6px;
}

.rating-row small {
  color: var(--muted);
  font-weight: 600;
}

.rating-row.large {
  margin: 10px 0 16px;
}

.product-detail-card {
  position: sticky;
  top: 100px;
  background: #fff;
  border: 1px solid rgba(112, 132, 90, 0.15);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.back-link {
  color: var(--muted);
  font-size: 0.92rem;
}

.detail-visual {
  display: grid;
  place-items: center;
  min-height: 320px;
  margin: 16px 0;
  background: #ffffff;
  border: 1px solid #f0f4f8;
  border-radius: 22px;
}

.jar-hero {
  position: relative;
  width: 220px;
  height: 176px;
  border-radius: 24px;
}

.detail-thumbs {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.detail-thumb {
  width: 56px;
  height: 56px;
  border: 1px solid #d5decd;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #f0f4f8;
}

.detail-thumb.active {
  border-color: #88a464;
}

.brand-label {
  color: var(--green);
  font-weight: 700;
  margin-bottom: 6px;
}

.detail-copy h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
}

.detail-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 18px;
}

.detail-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.detail-specs li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px dashed #dde4d6;
}

.detail-specs strong {
  width: 130px;
  color: var(--green-dark);
}

.detail-specs span {
  flex: 1;
  color: #43513f;
  line-height: 1.6;
}

.detail-description {
  margin-top: 20px;
  padding: 18px;
  background: #ffffff; border: 1px solid #eef2f7;
  border-radius: 18px;
}

.detail-description h3,
.panel-title,
.summary-box h2,
.recommend-card h3,
.table-header h2 {
  margin: 0 0 12px;
}

.summary-box h2,
.summary-subtitle,
.summary-detail-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-box h2 i,
.summary-subtitle i,
.summary-detail-label i,
.summary-note-icon i,
.summary-chip i,
.result-section-title i,
.recommend-type-pill i,
.rating-row i,
.score-box span i,
.recommend-price i,
.btn i {
  color: #021536;
}

.process-grid {
  grid-template-columns: 0.85fr 1.15fr;
}

.skin-type-grid,
.issue-grid,
.feature-list {
  display: grid;
  gap: 16px;
}

.skin-type-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.issue-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.select-card,
.issue-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #f6f8f4;
  border: 1px solid #dce5d4;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
  min-height: 74px;
}

.select-card:hover,
.issue-card:hover,
.select-card.is-selected,
.issue-card.is-selected {
  border-color: #89a766;
  background: #eef4e8;
  transform: translateY(-1px);
}

.select-card input,
.issue-card input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--green);
}

.select-card span,
.issue-card span {
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-item,
.guest-banner,
.auth-required-card {
  background: var(--surface);
  border: 1px solid rgba(112, 132, 90, 0.16);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 18px;
}

.feature-item.is-open {
  background: #f8fbf5;
}

.feature-item.is-locked {
  background: #fcfcf8;
}

.feature-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf3e3;
  color: var(--green-dark);
  font-weight: 800;
}

.feature-item.is-locked .feature-icon {
  background: #f5eddc;
  color: #9a6f15;
}

.feature-item h3 {
  margin: 0 0 4px;
}

.feature-item p {
  margin: 0;
}

.feature-state {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 12px;
  background: #eef4e8;
  color: var(--green-dark);
  font-weight: 700;
  white-space: nowrap;
}

.feature-item.is-locked .feature-state {
  background: #f6eedf;
  color: #8f6b20;
}

.summary-group {
  margin-bottom: 24px;
}

.summary-group span {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #f3f5f0;
  border: 1px solid #e1e6db;
  font-weight: 600;
  min-width: 200px;
}

.summary-detail-list {
  display: grid;
  gap: 16px;
}

.summary-detail-item {
  display: grid;
  gap: 10px;
}

.summary-detail-label {
  color: #51627f;
  font-size: 0.95rem;
  font-weight: 700;
}

.summary-divider {
  height: 1px;
  margin: 18px 0;
  background: rgba(112, 132, 90, 0.14);
}

.summary-subtitle {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.08rem;
}

.summary-chip.pregnancy.is-pregnant {
  background: rgba(255, 236, 205, 0.9);
  border-color: rgba(255, 183, 77, 0.32);
  color: #9a6000;
}

.summary-chip.pregnancy.is-default {
  background: rgba(231, 243, 255, 0.9);
  border-color: rgba(77, 144, 254, 0.22);
  color: #021536;
}

.summary-chip.concern-chip {
  min-width: auto;
}

.summary-stack {
  display: grid;
  gap: 12px;
}

.summary-stack.inline {
  display: flex;
  flex-wrap: wrap;
}

.info-strip {
  padding: 18px;
  background: #f4f7f1;
  border-radius: 18px;
  color: #4b5947;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
}

.timeline-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  margin-top: 2px;
}

.timeline-copy h3 {
  margin: 0 0 4px;
}

.done-pill {
  padding: 10px 14px;
  border-radius: 12px;
  background: #eef5ea;
  color: var(--green-dark);
  font-weight: 700;
  white-space: nowrap;
}

.progress-panel {
  padding: 26px;
}

.progress-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.progress-header strong {
  color: var(--green-dark);
  font-size: 1.4rem;
}

.progress-bar {
  height: 12px;
  margin: 18px 0 24px;
  border-radius: 999px;
  background: #e3eadf;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #7eb15b 0%, #2f7d32 100%);
}

.recommendation-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.recommend-card {
  position: relative;
  border-color: rgba(2, 21, 54, 0.12);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(247, 250, 255, 0.98) 100%
  );
}

.rank-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 800;
  color: #fff;
}

.rank-badge.gold {
  background: var(--gold);
}

.rank-badge.silver {
  background: var(--silver);
}

.rank-badge.bronze {
  background: var(--bronze);
}

.rank-badge.green {
  background: #051b47;
}

.rank-badge.mini {
  position: static;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.82rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tag,
.status-tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e8eff8;
  color: #021536;
  font-weight: 700;
  font-size: 0.82rem;
}

.recommend-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e8eff8;
  color: #021536;
  font-size: 0.83rem;
  font-weight: 700;
}

.score-box {
  margin: 16px 0 10px;
  padding: 16px;
  border-radius: 16px;
  background: #f6f8f3;
  text-align: center;
}

.score-box span {
  display: block;
  color: #64748b;
  margin-bottom: 4px;
}

.score-box strong,
.recommend-price {
  display: block;
  color: #021536;
  font-size: 1.1rem;
  font-weight: 800;
}

.recommend-price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.result-btn.btn-primary {
  background: linear-gradient(180deg, #051b47 0%, #021536 100%);
  box-shadow: 0 12px 24px rgba(2, 21, 54, 0.24);
}

.result-btn.btn-primary,
.result-btn.btn-primary i {
  color: #fff;
}

.result-btn.btn-secondary,
.result-btn.btn-ghost {
  border-color: rgba(2, 21, 54, 0.16);
  background: #e8eff8;
  color: #021536;
}

.result-btn.btn-secondary i,
.result-btn.btn-ghost i {
  color: #021536;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.table-card {
  overflow: hidden;
}

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

th,
td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid #edf1e8;
}

thead th {
  background: #f5f8f2;
  color: var(--green-dark);
  font-size: 0.92rem;
}

.product-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-thumb {
  width: 30px;
  height: 24px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.table-thumb::before {
  left: 12%;
  right: 12%;
  top: 36%;
  bottom: 16%;
}

.table-thumb::after {
  height: 24%;
  border-radius: 8px 8px 4px 4px;
}

.summary-box.emphasis {
  display: grid;
  place-items: center;
  align-content: center;
  text-align: left;
  gap: 16px;
  font-weight: 600;
  color: #43513f;
}

.summary-note-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(58, 110, 236, 0.1);
}

.result-section-head {
  margin-bottom: 18px;
}

.result-section-head.compact {
  margin-bottom: 0;
}

.result-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.result-section-caption {
  margin: 0;
  color: #64748b;
  max-width: 720px;
}

.guest-banner,
.auth-required-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  margin-bottom: 18px;
}

.guest-banner strong,
.auth-required-card h2 {
  color: var(--green-dark);
}

.guest-banner p,
.auth-required-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.compact-top {
  padding-top: 8px;
}

.site-footer {
  margin-top: 36px;
  background: linear-gradient(180deg, #88a869 0%, #728f54 100%);
  color: #fff;
}

.auth-layout,
.profile-layout,
.profile-stat-grid,
.profile-content-grid,
.form-grid {
  display: grid;
  gap: 24px;
}

.auth-layout {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
}

.register-layout {
  grid-template-columns: 1.2fr 0.8fr;
}

.auth-card,
.profile-summary-card {
  background: var(--surface);
  border: 1px solid rgba(112, 132, 90, 0.16);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.auth-card {
  padding: 28px;
}

.auth-card-highlight {
  min-height: 100%;
  background: linear-gradient(180deg, #eef4e7 0%, #f8faf4 100%);
}

.auth-card h2,
.profile-summary-card h2 {
  margin: 10px 0 12px;
}

.auth-feature-list,
.profile-contact-list,
.activity-list {
  display: grid;
  gap: 14px;
}

.auth-feature-item,
.activity-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: #f5f8f2;
  border: 1px solid #e0e8d9;
}

.auth-feature-item strong,
.profile-contact-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green-dark);
}

.auth-feature-item span,
.profile-contact-list span,
.activity-item,
.profile-bio,
.profile-username {
  color: var(--muted);
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form label span {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
}

.auth-form input,
.auth-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d7dfcf;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

.auth-form-wide {
  gap: 20px;
}

.form-grid.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.password-field {
  position: relative;
}

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

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 0;
  background: #eef4ea;
  color: var(--green-dark);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
}

.auth-meta,
.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.check-row {
  justify-content: flex-start;
}

.check-row input {
  width: auto;
  margin: 0;
}

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

.chip-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f5f8f2;
  border: 1px solid #dde5d6;
}

.chip-check input {
  width: auto;
  margin: 0;
}

.auth-side-card {
  position: sticky;
  top: 100px;
}

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

.profile-summary-card {
  position: sticky;
  top: 100px;
  padding: 28px;
  text-align: center;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #8fb36c 0%, #6d9150 100%);
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
}

.profile-username {
  margin: 0 0 10px;
  font-weight: 700;
}

.profile-bio {
  margin: 0 0 20px;
}

.profile-contact-list {
  text-align: left;
  margin-bottom: 20px;
}

.profile-contact-list > div {
  padding: 14px 0;
  border-bottom: 1px dashed #dde4d6;
}

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

.profile-subsection {
  padding-top: 0;
  padding-bottom: 0;
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
}

.footer-inner strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 6px;
}

.footer-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.is-hidden {
  display: none;
}

@media (max-width: 1100px) {
  .hero-grid,
  .product-layout,
  .process-grid,
  .two-panel-grid,
  .summary-grid,
  .auth-layout,
  .register-layout,
  .profile-layout,
  .profile-content-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .profile-stat-grid,
  .profile-favorites,
  .skin-type-grid,
  .issue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail-card {
    position: static;
  }

  .auth-side-card,
  .profile-summary-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .topbar-inner,
  .table-header,
  .footer-inner,
  .progress-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    gap: 16px;
    flex-wrap: wrap;
  }

  .toolbar,
  .product-grid,
  .criteria-grid,
  .steps-grid,
  .recommendation-grid,
  .stats-grid,
  .profile-stat-grid,
  .profile-favorites,
  .chip-check-grid,
  .form-grid.two-cols {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: auto 1fr;
  }

  .done-pill {
    grid-column: 2;
    justify-self: start;
  }

  .feature-item {
    grid-template-columns: auto 1fr;
  }

  .feature-state {
    grid-column: 2;
    justify-self: start;
  }

  .detail-specs li {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .detail-specs strong {
    width: 120px;
    flex-shrink: 0;
  }

  .account-actions {
    width: 100%;
    margin-left: 0;
  }

  .guest-banner,
  .auth-required-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media print {
  .topbar,
  .site-footer,
  .button-row,
  .toolbar,
  .profile-btn,
  .account-actions {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .panel,
  .recommend-card,
  .summary-box,
  .table-card {
    box-shadow: none;
  }
}

.admin-body {
  background: linear-gradient(180deg, #f4f6f0 0%, #eef2e8 100%);
}

.admin-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  padding: 28px 22px;
  background: #1f3521;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-brand {
  display: flex;
  flex-direction: column;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}

.admin-brand small {
  margin-top: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

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

.admin-nav a {
  padding: 14px 16px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.admin-nav a.active,
.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admin-profile-card,
.admin-hero,
.admin-panel,
.admin-stat-card,
.admin-mini-metric {
  background: var(--surface);
  border: 1px solid rgba(112, 132, 90, 0.16);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.admin-profile-card {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.admin-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #8fb36c 0%, #6d9150 100%);
  font-weight: 800;
}

.admin-profile-card span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.admin-main {
  padding: 28px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-kicker {
  margin: 0 0 6px;
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.admin-topbar h1,
.admin-hero h2 {
  margin: 0;
}

.admin-topbar-actions,
.admin-hero-actions,
.admin-inline-actions,
.admin-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-content,
.admin-card-grid,
.admin-two-col,
.admin-list,
.admin-action-stats,
.admin-analytics-table {
  display: grid;
  gap: 20px;
}

.admin-section + .admin-section {
  margin-top: 24px;
}

.admin-hero {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #eef4e7 0%, #f8faf4 100%);
}

.admin-hero p {
  max-width: 700px;
  color: var(--muted);
  line-height: 1.7;
}

.admin-card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-stat-card,
.admin-mini-metric,
.admin-panel {
  padding: 24px;
}

.admin-stat-card span {
  display: block;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 12px;
}

.admin-stat-card strong {
  display: block;
  font-size: 2rem;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.admin-stat-card p,
.admin-list-item p,
.admin-legend-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-two-col.wide-right {
  grid-template-columns: 1.2fr 0.8fr;
}

.admin-list-item,
.admin-analytics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f6f8f3;
  border: 1px solid #e0e8d9;
}

.admin-list-item strong,
.admin-analytics-row strong {
  display: block;
  margin-bottom: 4px;
}

.admin-metric-row + .admin-metric-row {
  margin-top: 16px;
}

.admin-metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.admin-progress {
  height: 12px;
  background: #e5ede0;
  border-radius: 999px;
  overflow: hidden;
}

.admin-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #88b25a 0%, #2f7d32 100%);
  border-radius: inherit;
}

.admin-bar-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  min-height: 280px;
  align-items: end;
}

.admin-bar-group {
  text-align: center;
}

.admin-bar {
  height: 180px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10px;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, #8eb06a 0%, #2f7d32 100%);
  color: #fff;
  font-weight: 800;
  margin-bottom: 10px;
}

.admin-bar-group small {
  color: var(--muted);
}

.admin-toolbar input,
.admin-toolbar select {
  min-width: 220px;
  padding: 14px 16px;
  border: 1px solid #d7dfcf;
  border-radius: 14px;
  background: #fff;
}

#adminUserTable tbody tr.is-active {
  background: #f2f7ec;
}

.admin-user-cell strong,
.admin-user-cell small {
  display: block;
}

.admin-user-cell small {
  color: var(--muted);
}

.admin-note {
  margin-top: 18px;
}

.admin-donut-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
}

.admin-donut-ring {
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 42%, transparent 43%),
    conic-gradient(#2f7d32 0 34%, #8a9d71 34% 83%, #b2c39b 83% 100%);
  color: var(--green-dark);
  text-align: center;
}

.admin-donut-ring strong {
  display: block;
  font-size: 2rem;
}

.admin-legend {
  display: grid;
  gap: 14px;
}

.admin-legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f6f8f3;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: 0 0 auto;
}

@media (max-width: 1180px) {
  .admin-shell,
  .admin-two-col,
  .admin-two-col.wide-right,
  .admin-donut-card {
    grid-template-columns: 1fr;
  }

  .admin-card-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .admin-main,
  .admin-sidebar {
    padding: 18px;
  }

  .admin-topbar,
  .admin-hero,
  .admin-list-item,
  .admin-analytics-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-card-grid.four,
  .admin-card-grid.two,
  .admin-bar-chart {
    grid-template-columns: 1fr;
  }

  .admin-donut-ring {
    width: 180px;
    height: 180px;
  }
}

/* Admin UI refresh */
.admin-body {
  background:
    radial-gradient(
      circle at top right,
      rgba(131, 168, 109, 0.18),
      transparent 24%
    ),
    radial-gradient(
      circle at top left,
      rgba(73, 111, 68, 0.12),
      transparent 18%
    ),
    linear-gradient(180deg, #f5f7f2 0%, #edf2ea 100%);
}

.admin-shell {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 20px;
  background:
    linear-gradient(
      180deg,
      rgba(27, 49, 29, 0.98) 0%,
      rgba(18, 35, 22, 0.98) 100%
    ),
    #16261a;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-sidebar-copy {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.admin-sidebar-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  font-size: 0.92rem;
}

.admin-nav {
  gap: 12px;
}

.admin-nav a {
  position: relative;
  overflow: hidden;
  padding: 15px 18px;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.admin-nav a:hover,
.admin-nav a.active {
  transform: translateX(2px);
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    90deg,
    rgba(145, 179, 102, 0.24) 0%,
    rgba(255, 255, 255, 0.06) 100%
  );
}

.admin-profile-card {
  border-radius: 22px;
  padding: 16px;
}

.admin-main {
  padding: 26px 28px 34px;
}

.admin-topbar {
  margin-bottom: 28px;
  padding: 24px 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(116, 139, 94, 0.14);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(43, 66, 40, 0.08);
}

.admin-topbar-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.admin-section {
  margin-top: 0;
}

.admin-section + .admin-section {
  margin-top: 22px;
}

.admin-hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 30px;
  background:
    radial-gradient(
      circle at top right,
      rgba(166, 197, 129, 0.42),
      transparent 26%
    ),
    linear-gradient(135deg, #1f3b24 0%, #284d2d 45%, #7ea35e 140%);
  color: #fff;
  border: 0;
  box-shadow: 0 22px 46px rgba(31, 59, 36, 0.22);
}

.admin-hero.modern {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  display: grid;
  gap: 24px;
  align-items: stretch;
}

.admin-hero.compact {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.admin-hero .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admin-hero h2 {
  margin: 14px 0 10px;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.15;
}

.admin-hero p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.admin-hero-copy {
  display: grid;
  gap: 16px;
}

.admin-chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-hero-side {
  display: grid;
  gap: 16px;
  align-content: space-between;
}

.admin-surface-note {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-surface-note strong {
  display: block;
  margin-bottom: 6px;
}

.admin-surface-note p {
  margin: 0;
}

.modern-stats .admin-stat-card,
.admin-panel.elevated,
.admin-mini-metric {
  border-radius: 28px;
  border: 1px solid rgba(116, 139, 94, 0.14);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(248, 250, 245, 0.96) 100%
  );
  box-shadow: 0 18px 40px rgba(49, 76, 42, 0.08);
}

.modern-stats .admin-stat-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
}

.modern-stats .admin-stat-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(142, 176, 106, 0.22) 0%,
    transparent 68%
  );
}

.admin-stat-card span {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-stat-card strong {
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.admin-panel.elevated {
  padding: 26px;
}

.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-section-head .section-title {
  margin: 4px 0 0;
  font-size: 1.45rem;
}

.admin-label {
  margin: 0;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-list-item,
.admin-analytics-row,
.admin-legend-item {
  background: #fff;
  border: 1px solid rgba(116, 139, 94, 0.12);
  border-radius: 20px;
}

.admin-list-item {
  padding: 18px 18px;
}

.admin-list-item strong {
  font-size: 1rem;
}

.admin-list-item p {
  margin-top: 6px;
}

.admin-action-stats {
  gap: 18px;
}

.admin-metric-row {
  padding: 16px 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(116, 139, 94, 0.12);
}

.admin-metric-row + .admin-metric-row {
  margin-top: 0;
}

.admin-metric-head strong {
  font-size: 0.98rem;
}

.admin-progress {
  height: 10px;
  background: #eaf0e4;
}

.admin-progress span {
  box-shadow: 0 6px 16px rgba(47, 125, 50, 0.18);
}

.admin-bar-chart {
  min-height: 320px;
  gap: 18px;
  padding: 12px 6px 0;
}

.admin-bar-group {
  padding: 14px 10px 0;
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(247, 249, 244, 0.82) 0%,
    rgba(255, 255, 255, 0.98) 100%
  );
  border: 1px solid rgba(116, 139, 94, 0.1);
}

.admin-bar {
  height: 220px;
  margin-bottom: 12px;
  border-radius: 18px 18px 12px 12px;
  background: linear-gradient(180deg, #9cc271 0%, #5f8d44 48%, #2f7d32 100%);
}

.admin-bar span {
  font-size: 0.82rem;
}

.admin-toolbar {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f7faf4 0%, #ffffff 100%);
  border: 1px solid rgba(116, 139, 94, 0.1);
}

.admin-toolbar input,
.admin-toolbar select {
  min-width: 240px;
  height: 50px;
  border-radius: 16px;
  border-color: #dbe4d1;
}

#adminUserTable {
  min-width: 100%;
}

#adminUserTable thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f6f9f3;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.78rem;
}

#adminUserTable tbody tr {
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

#adminUserTable tbody tr:hover,
#adminUserTable tbody tr.is-active {
  background: #f2f7ec;
}

#adminUserTable td small {
  color: var(--muted);
}

.admin-inline-actions .btn.small {
  padding: 9px 12px;
}

.sticky-admin-panel {
  position: sticky;
  top: 26px;
}

.admin-note {
  border-radius: 18px;
  border: 1px dashed rgba(116, 139, 94, 0.2);
  background: linear-gradient(180deg, #f8faf5 0%, #f3f7ef 100%);
}

.admin-donut-card {
  grid-template-columns: 240px 1fr;
  gap: 28px;
}

.admin-donut-ring {
  position: relative;
  width: 240px;
  height: 240px;
  background:
    radial-gradient(circle at center, #fff 0 44%, transparent 45%),
    conic-gradient(#2f7d32 0 34%, #88a868 34% 83%, #c6d4b6 83% 100%);
  box-shadow: inset 0 0 0 14px rgba(255, 255, 255, 0.4);
}

.admin-legend-item {
  padding: 16px 18px;
}

.admin-legend-item strong {
  display: block;
  margin-bottom: 4px;
}

.admin-analytics-table {
  gap: 14px;
}

.admin-analytics-row {
  padding: 18px 18px;
}

.admin-card-grid.two {
  gap: 18px;
}

.admin-mini-metric {
  padding: 20px;
}

.admin-topbar-actions .auth-link,
.admin-section-head .btn.small,
.admin-inline-actions .btn.small {
  border-radius: 12px;
}

@media (max-width: 1180px) {
  .admin-hero.modern,
  .admin-hero.compact {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .sticky-admin-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-topbar,
  .admin-panel.elevated,
  .admin-hero {
    padding: 22px;
  }

  .admin-section-head,
  .admin-toolbar,
  .admin-chip-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-toolbar input,
  .admin-toolbar select {
    width: 100%;
    min-width: 0;
  }
}

/* Admin users page refinements */
.admin-user-hero {
  align-items: stretch;
}

.admin-user-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: 320px;
}

.admin-mini-summary {
  padding: 18px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

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

.admin-mini-summary span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.admin-user-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.admin-user-table-panel-full {
  width: 100%;
}

.admin-user-table-panel,
.admin-user-form-panel {
  min-height: 100%;
}

.admin-section-head-stacked {
  align-items: center;
}

.admin-section-description {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 720px;
}

.admin-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-filter-bar .admin-toolbar {
  flex: 1;
  margin-bottom: 0;
}

.admin-filter-summary {
  flex: 0 0 auto;
}

.admin-table-wrap {
  border-radius: 24px;
  border: 1px solid rgba(116, 139, 94, 0.1);
  overflow: auto;
  background: #fff;
}

#adminUserTable {
  min-width: 860px;
}

#adminUserTable th:nth-child(1) {
  min-width: 190px;
}

#adminUserTable th:nth-child(2) {
  min-width: 220px;
}

#adminUserTable th:nth-child(6) {
  min-width: 150px;
}

#adminUserTable td,
#adminUserTable th {
  vertical-align: middle;
}

.admin-inline-actions {
  flex-wrap: nowrap;
}

.admin-inline-actions .btn.small {
  min-width: 68px;
  justify-content: center;
}

.admin-user-form-panel .auth-form {
  gap: 16px;
}

.admin-user-form-panel .button-row {
  margin-top: 4px;
}

.admin-user-form-panel .btn.wide {
  min-width: 0;
  flex: 1;
}

.admin-user-table-panel-full .admin-table-wrap {
  margin-top: 2px;
}

.admin-user-table-panel-full .admin-note {
  margin-top: 18px;
}

.admin-process-panel {
  gap: 24px;
}

.admin-result-list {
  display: grid;
  gap: 14px;
}

.admin-result-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1.35fr) minmax(260px, 0.95fr) minmax(260px, 1fr)
    auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(116, 139, 94, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf7 100%);
}

.admin-result-main h3 {
  margin: 6px 0 4px;
}

.admin-result-main p,
.admin-result-products {
  margin: 0;
  color: var(--muted);
}

.admin-result-summary {
  display: grid;
  gap: 12px;
}

.admin-result-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-process-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-process-meta-card {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(116, 139, 94, 0.1);
}

.admin-process-meta-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-process-meta-card strong,
.admin-process-meta-card p {
  margin: 0;
}

.admin-result-products {
  font-size: 0.95rem;
  line-height: 1.7;
}

.admin-result-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-detail-layout {
  display: grid;
  gap: 18px;
}

.admin-detail-product-list {
  display: grid;
  gap: 10px;
}

.admin-detail-product-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(116, 139, 94, 0.08);
}

.admin-detail-product-item strong,
.admin-detail-product-item span {
  display: block;
}

.admin-detail-product-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-process-timeline {
  gap: 14px;
}

.admin-process-timeline .timeline-item {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(116, 139, 94, 0.08);
}

@media (max-width: 1180px) {
  .admin-user-layout {
    grid-template-columns: 1fr;
  }

  .admin-user-hero-stats {
    min-width: 0;
  }

  .admin-result-row,
  .admin-process-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .admin-user-hero-stats {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .admin-filter-bar,
  .admin-section-head-stacked {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-filter-summary {
    width: 100%;
  }

  .admin-result-row,
  .admin-result-actions {
    justify-content: stretch;
  }

  .admin-result-actions .btn.small {
    width: 100%;
    justify-content: center;
  }

  .admin-filter-summary .user-pill {
    width: 100%;
    justify-content: center;
  }
}

/* User theme refresh */
:root {
  --bg: #f5f8ff;
  --surface: #ffffff;
  --surface-soft: #edf2f9;
  --line: #dbe5f4;
  --text: #0f172a;
  --muted: #64748b;
  --green: #021536;
  --green-dark: #021536;
  --green-soft: #0a2e6b;
  --accent: #e8f1ff;
  --gold: #f6c94c;
  --silver: #94a3b8;
  --bronze: #d89a5b;
  --danger: #ef4444;
  --shadow: 0 20px 50px rgba(2, 21, 54, 0.08);
  --radius: 24px;
}

body {
  background:
    radial-gradient(
      circle at top left,
      rgba(184, 204, 233, 0.34),
      transparent 22%
    ),
    radial-gradient(
      circle at right top,
      rgba(143, 169, 212, 0.2),
      transparent 18%
    ),
    linear-gradient(180deg, #f8fbff 0%, #edf2f9 100%);
  color: var(--text);
}

.topbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 8px 26px rgba(148, 163, 184, 0.08);
}

.topbar-inner {
  padding: 14px 0;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  white-space: nowrap;
  text-decoration: none;
}

.brand-text {
  font-weight: 800;
  font-size: 1.65rem;
  line-height: 1.1;
  color: #021536;
  white-space: nowrap;
}

.brand small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: #64748b;
  font-weight: 600;
  margin-top: 2px;
  line-height: 1.1;
}

.brand-icon {
  display: none !important;
}

.brand-icon::after {
  display: none !important;
}

.brand-mark,
.brand-soft {
  color: #021536;
}

.main-nav {
  gap: 24px;
}

.main-nav a {
  color: #334155;
  font-size: 0.96rem;
}

.main-nav a.active,
.main-nav a:hover {
  color: #021536;
}

.main-nav a.active::after,
.main-nav a:hover::after {
  bottom: -14px;
  height: 2px;
  background: #021536;
}

.account-actions {
  gap: 12px;
}

.user-pill {
  background: transparent;
  color: #334155;
  padding: 0;
  font-weight: 700;
}

.auth-link {
  border-radius: 14px;
  border-color: #d6e2f3;
  color: #021536;
}

.auth-link-filled,
.auth-link.active {
  background: #e8eff8;
  border-color: #b8cce9;
}

.auth-link-subtle {
  background: #fff;
}

.profile-btn {
  width: 42px;
  height: 42px;
  border: 1px solid #d6e2f3;
  background: #fff;
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.12);
}

.profile-btn span,
.profile-btn span::after {
  border-color: #64748b;
}

.hero-section,
.section,
.page-hero {
  padding: 24px 0;
}

.page-hero.slim {
  padding-bottom: 4px;
}

.hero-grid,
.page-hero-card,
.panel,
.mini-card,
.stat-card,
.summary-box,
.recommend-card,
.table-card,
.note-box,
.note-inline,
.product-card,
.product-detail-card,
.profile-overview-card,
.profile-action-card,
.profile-info-item,
.profile-history-item,
.process-select-box {
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow);
}

.hero-grid,
.page-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
  border-radius: 30px;
}

.hero-grid {
  padding: 46px;
}

.hero-grid-home {
  grid-template-columns: 1fr 1.1fr;
  overflow: hidden;
}

.hero-copy h1 {
  font-size: clamp(2.45rem, 5vw, 4rem);
  line-height: 1.08;
}

.hero-copy h1 span,
.page-hero-copy h1 span {
  color: #021536;
}

.hero-copy p,
.page-hero-copy p {
  max-width: 540px;
}

.eyebrow {
  background: #e6ebf5;
  color: #021536;
  font-size: 0.7rem;
}

.btn {
  border-radius: 14px;
}

.btn-primary {
  background: linear-gradient(180deg, #072559 0%, #021536 100%);
  box-shadow: 0 16px 26px rgba(2, 21, 54, 0.24);
}

.btn-secondary {
  border-color: #b8cce9;
  color: #021536;
}

.btn-ghost {
  background: #e8eff8;
  color: #021536;
}

.hero-inline-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 620px;
}

.hero-inline-stat {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d4e0f0;
}

.hero-inline-stat strong {
  display: block;
  font-size: 1rem;
  color: #021536;
  margin-bottom: 6px;
}

.hero-inline-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual-home,
.page-hero-art {
  min-height: 380px;
}

.page-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: 18px;
  padding: 30px 34px;
}

.page-hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.page-hero-art {
  position: relative;
  overflow: hidden;
}

.page-hero-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.visual-blob {
  inset: 8px 0 0 24px;
  background:
    radial-gradient(
      circle at 72% 28%,
      rgba(96, 165, 250, 0.32),
      transparent 20%
    ),
    radial-gradient(
      circle at 28% 60%,
      rgba(184, 204, 233, 0.82),
      transparent 32%
    ),
    linear-gradient(180deg, #f3f8ff 0%, #eaf2ff 100%);
  border-radius: 50%;
}

.hero-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.95),
    rgba(184, 204, 233, 0.55)
  );
  border: 1px solid rgba(184, 204, 233, 0.8);
}

.bubble-a {
  width: 48px;
  height: 48px;
  top: 52px;
  left: 38px;
}

.bubble-b {
  width: 28px;
  height: 28px;
  top: 138px;
  left: 96px;
}

.bubble-c {
  width: 36px;
  height: 36px;
  top: 100px;
  right: 64px;
}

.block-card-light {
  background: linear-gradient(180deg, #fefefe 0%, #eef5ff 100%);
}

.tone-blue,
.tone-blue::after {
  background-color: #051b47;
}

.tone-cyan,
.tone-cyan::after {
  background-color: #14b8a6;
}

.tone-sky,
.tone-sky::after {
  background-color: #0a2e6b;
}

.tone-green,
.tone-green::after {
  background-color: #8fa9d4;
}

.tone-olive,
.tone-olive::after {
  background-color: #7dd3fc;
}

.tone-sage,
.tone-sage::after {
  background-color: #38bdf8;
}

.tone-pink,
.tone-pink::after {
  background-color: #f9a8d4;
}

.tone-dark,
.tone-dark::after {
  background-color: #64748b;
}

.tone-mint,
.tone-mint::after {
  background-color: #67e8f9;
}

.tone-forest,
.tone-forest::after {
  background-color: #10b981;
}

.tone-pearl,
.tone-pearl::after {
  background-color: #cbd5e1;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading p {
  color: var(--muted);
  margin: 0;
}

.feature-grid-home {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-home-card,
.workflow-panel,
.panel-soft,
.panel-accent {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.workflow-panel {
  border-radius: 28px;
  padding: 28px;
}

.workflow-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.workflow-step {
  min-height: 100%;
  text-align: center;
}

.step-number {
  background: linear-gradient(180deg, #051b47 0%, #021536 100%);
}

.panel,
.mini-card,
.stat-card,
.summary-box,
.recommend-card,
.table-card,
.note-box,
.note-inline {
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.panel-soft {
  background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
}

.panel-accent {
  background: linear-gradient(180deg, #edf4ff 0%, #f8fbff 100%);
}

.method-card {
  background: transparent;
  padding: 0;
}

.method-pill {
  border-color: #dbe6f5;
}

.method-plus {
  color: #021536;
}

.home-result-list {
  display: grid;
  gap: 12px;
}

.home-result-item {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid #dce7f6;
}

.home-result-item strong {
  display: block;
  margin-bottom: 6px;
}

.home-result-item span {
  color: var(--muted);
  line-height: 1.6;
}

.product-layout {
  grid-template-columns: 1fr;
  gap: 0;
}

.toolbar {
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
}

.search-box input,
.toolbar select,
.auth-form input,
.auth-form select {
  border-color: #d8e4f4;
  background: #fff;
  border-radius: 16px;
}

.catalog-note {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #e8eff8;
  color: #4b5e80;
  border: 1px solid #dbe7fb;
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  border-radius: 22px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #eef2f7;
}

.product-card:hover,
.product-card.is-active {
  border-color: #8fa9d4;
  box-shadow: 0 20px 38px rgba(2, 21, 54, 0.14);
}

.table-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.product-thumb,
.recommend-thumb,
.detail-visual {
  background: #ffffff;
  border: 1px solid #f0f4f8;
}

.product-thumb {
  position: relative;
  min-height: 210px;
  padding: 14px;
  overflow: hidden;
}

.product-thumb-image {
  background: #ffffff;
  width: 100%;
  height: 182px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.product-chip-row {
  margin-bottom: 10px;
}

.product-card h3,
.recommend-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.product-card p {
  margin: 0;
  color: var(--muted);
}

.product-card strong {
  color: #021536;
}

.product-grid-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.favorite-toggle {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #dbe7fb;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  color: #64748b;
  box-shadow: 0 8px 20px rgba(2, 21, 54, 0.08);
  cursor: pointer;
  transition:
    transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.favorite-toggle:hover {
  transform: translateY(-2px) scale(1.06);
  border-color: #fda4af;
  color: #e11d48;
  box-shadow: 0 12px 26px rgba(225, 29, 72, 0.16);
}

.favorite-toggle i {
  font-size: 1.05rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.favorite-toggle.is-favorite {
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
  border-color: #fca5a5;
  color: #e11d48;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.18);
}

.favorite-toggle.is-favorite i {
  color: #e11d48;
}

.favorite-toggle.favorite-pop {
  animation: heartPopAnim 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPopAnim {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}

.rating-row {
  color: #f5b301;
}

.rating-row small {
  color: var(--muted);
}

.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.detail-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e8eff8;
  color: #021536;
  font-weight: 700;
  font-size: 0.82rem;
}

.detail-intro {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.detail-visual {
  min-height: 180px;
  margin: 0;
}

.detail-thumbs {
  margin: 16px 0 18px;
}

.detail-thumb {
  border-radius: 14px;
}

.detail-copy h2 {
  font-size: 1.75rem;
}

.detail-price {
  color: #021536;
}

.detail-specs li {
  border-bottom: 1px solid #e8eff9;
}

.detail-specs strong {
  color: #0f172a;
}

.detail-description {
  background: #ffffff; border: 1px solid #eef2f7;
}

.detail-intro-modal {
  grid-template-columns: 220px minmax(0, 1fr);
}

.detail-visual-modal {
  min-height: 260px;
  border-radius: 24px;
}

.product-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  z-index: 1250;
}

.product-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
}

.product-modal-dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
}

.product-modal-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #e8eff8;
  color: #021536;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.process-group {
  display: grid;
  gap: 16px;
}

.process-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.process-heading strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.process-heading p {
  margin: 0;
  color: var(--muted);
}

.section-index {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #021536;
  color: #fff;
  font-weight: 800;
  flex: 0 0 auto;
}

.skin-type-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.select-card,
.issue-card {
  border-radius: 20px;
  background: #fff;
  border-color: #d4e0f0;
}

.select-card {
  flex-direction: column;
  align-items: flex-start;
  min-height: 156px;
  justify-content: space-between;
}

.issue-card {
  min-height: 68px;
}

.select-card:hover,
.issue-card:hover,
.select-card.is-selected,
.issue-card.is-selected {
  border-color: #8fa9d4;
  background: #f3f8ff;
}

.select-card input,
.issue-card input {
  accent-color: #021536;
}

.process-select-box {
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.process-select-box span {
  color: var(--muted);
}

.success-caption {
  background: #e8eff8;
  color: #021536;
}

.success-caption::before {
  background: #021536;
}

.summary-chip,
.tag,
.status-tag {
  background: #e8eff8;
  border-color: #d9e7fb;
  color: #021536;
}

.score-box {
  background: #ffffff; border: 1px solid #eef2f7;
}

.recommend-price,
.score-box strong {
  color: #021536;
}

.table-header {
  margin-bottom: 18px;
}

.result-table-header {
  align-items: flex-end;
}

thead th {
  background: #f4f8ff;
  color: #021536;
}

.site-footer {
  margin-top: 42px;
  background: transparent;
  color: #64748b;
}

.footer-inner {
  padding: 26px 0 36px;
  border-top: 1px solid #d9e5f5;
}

.footer-inner strong {
  font-size: 1.3rem;
  color: #021536;
}

.footer-inner p {
  color: #64748b;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: #021536;
  font-weight: 600;
}

.profile-dashboard {
  display: grid;
  gap: 22px;
}

.profile-overview-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 22px;
  padding: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 28px;
}

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

.profile-overview-left h2 {
  margin: 0 0 6px;
}

.profile-overview-right {
  display: grid;
}

.profile-avatar.large {
  width: 120px;
  height: 120px;
  margin: 0;
  background: linear-gradient(180deg, #8fa9d4 0%, #021536 100%);
}

.profile-panel {
  padding: 24px;
}

.profile-panel > .table-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

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

.profile-info-item {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.profile-info-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #334155;
}

.profile-info-item span {
  color: #0f172a;
  line-height: 1.6;
}

.status-active {
  width: fit-content;
}

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

.profile-history-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.profile-history-date {
  font-weight: 700;
  color: #021536;
}

.profile-history-copy strong {
  display: block;
  margin-bottom: 4px;
}

.profile-history-copy span {
  color: var(--muted);
}

.profile-history-link {
  color: #021536;
  font-weight: 700;
}

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

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

.profile-action-card {
  display: block;
  padding: 22px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.profile-action-card strong {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
}

.profile-action-card span {
  color: var(--muted);
  line-height: 1.6;
}

.activity-item {
  background: #f8fbff;
  border-color: #dfebfb;
}

@media (max-width: 1180px) {
  .hero-grid-home,
  .page-hero-card,
  .profile-overview-card,
  .profile-info-grid,
  .profile-info-grid.compact {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .feature-grid-home,
  .profile-favorites {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .hero-grid,
  .page-hero-card,
  .workflow-panel,
  .profile-panel,
  .profile-overview-card {
    padding: 20px;
  }

  .hero-inline-stats,
  .page-hero-summary,
  .profile-actions-grid,
  .profile-favorites,
  .profile-info-grid,
  .profile-info-grid.compact,
  .feature-grid-home,
  .product-grid,
  .skin-type-grid {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .detail-intro,
  .profile-history-item,
  .footer-links {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-visual-home,
  .page-hero-art {
    min-height: 250px;
  }

  .detail-intro {
    display: grid;
  }

  .product-modal {
    padding: 14px;
  }

  .product-modal-dialog {
    padding: 20px;
    border-radius: 22px;
  }

  .detail-intro-modal {
    grid-template-columns: 1fr;
  }

  .detail-topbar-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
  }
}

.modal-open {
  overflow: hidden;
}

.admin-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  z-index: 1200;
}

.admin-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 35, 20, 0.48);
  backdrop-filter: blur(6px);
}

.admin-modal-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faf4 100%);
  border: 1px solid rgba(116, 139, 94, 0.16);
  box-shadow: 0 24px 60px rgba(25, 43, 23, 0.24);
}

.admin-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-modal-header .section-title {
  margin: 4px 0 0;
}

.admin-modal-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #eef4e7;
  color: var(--green-dark);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.admin-modal-form {
  gap: 18px;
}

.admin-modal-actions {
  margin-top: 6px;
}

@media (max-width: 820px) {
  .admin-modal {
    padding: 14px;
  }

  .admin-modal-dialog {
    padding: 22px;
    border-radius: 22px;
  }

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

  .admin-modal-close {
    align-self: flex-end;
  }
}

/* =======================================================
   PRODUCT HERO CARD & CATALOG HEADER
   ======================================================= */
.product-hero-card {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 3rem;
  background: linear-gradient(125deg, #ffffff 0%, #f0f7ff 50%, #dbe6f5 100%);
  border-radius: 24px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 15px 35px -10px rgba(2, 21, 54, 0.12);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-ambient-glow {
  position: absolute;
  right: -50px;
  top: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(186,230,253,0.5) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
  border-radius: 50%;
}

.product-hero-card .page-hero-copy {
  position: relative;
  z-index: 2;
  flex: 1.2;
  max-width: 560px;
}

.product-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255,255,255,0.9);
  color: #021536;
  border: 1px solid #b8cce9;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 4px 12px rgba(2, 21, 54, 0.06);
  margin-bottom: 0.85rem;
}

.product-hero-card h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.6rem 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.product-hero-card p {
  color: #475569;
  font-size: 1rem;
  margin: 0 0 1.25rem 0;
  line-height: 1.6;
}

.product-hero-chips {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-chip-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.85);
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 0.825rem;
  font-weight: 600;
  color: #334155;
}

.product-hero-card .page-hero-art {
  position: relative;
  z-index: 2;
  flex: 1.1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: 460px;
}

.product-hero-card .page-hero-art img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 15px 35px -5px rgba(2, 21, 54, 0.2);
  border: 1px solid rgba(255,255,255,0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ===========================
   PRODUCT DETAIL MODAL OVERHAUL
   =========================== */
.product-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  padding: clamp(10px, 2.5vw, 24px);
  z-index: 99999;
  box-sizing: border-box;
}

.product-modal.is-open {
  display: flex !important;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}

.product-modal-dialog {
  position: relative;
  width: min(1040px, 94vw);
  max-width: 100%;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 24px;
  padding: clamp(16px, 2.5vw, 28px);
  z-index: 2;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.25);
  animation: popup 0.25s ease;
  box-sizing: border-box;
}

.product-modal-dialog::-webkit-scrollbar {
  width: 6px;
}
.product-modal-dialog::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}
.product-modal-dialog::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.detail-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.detail-heading {
  flex: 1 1 auto;
  min-width: 0;
}

.detail-topbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  flex-shrink: 0;
}

.product-modal-close {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 12px;
  background: #f1f5f9;
  color: #021536;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.product-modal-close:hover {
  background: #e2e8f0;
  color: #ef4444;
}

.detail-intro-modal {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: start;
  width: 100%;
}

.detail-media-panel {
  padding: 16px;
  display: grid;
  gap: 16px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  position: relative;
}

.detail-visual-modal {
  position: relative !important;
  min-height: 320px;
  max-height: 420px;
  margin: 0;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  padding: 16px;
  overflow: hidden !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-visual-modal img {
  max-height: 360px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
}

.slider-btn {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 36px !important;
  height: 36px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12) !important;
  cursor: pointer !important;
  font-size: 16px !important;
  color: #334155 !important;
  z-index: 10 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.slider-btn:hover {
  background: #021536 !important;
  border-color: #021536 !important;
  color: #ffffff !important;
}

.slider-btn:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
}

.prev {
  left: 10px !important;
}

.next {
  right: 10px !important;
}

@media (max-width: 991px) {
  .product-hero-card {
    flex-direction: column-reverse !important;
    padding: 24px 18px !important;
    gap: 20px !important;
    text-align: center !important;
  }

  .product-hero-card .page-hero-copy {
    max-width: 100% !important;
    flex: none !important;
    text-align: center !important;
  }

  .product-hero-card p {
    max-width: 100% !important;
    text-align: center !important;
    font-size: 0.92rem !important;
  }

  .product-hero-chips {
    justify-content: center !important;
  }

  .product-hero-card .page-hero-art {
    max-width: 100% !important;
    flex: none !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .product-hero-card .page-hero-art img {
    max-height: 180px !important;
    width: auto !important;
    max-width: 85% !important;
    object-fit: contain !important;
  }

  .product-modal {
    padding: 10px !important;
  }

  .product-modal-dialog {
    padding: 16px !important;
    border-radius: 18px !important;
    max-height: calc(100vh - 20px) !important;
    width: 95vw !important;
  }

  .detail-intro-modal {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .detail-visual-modal {
    min-height: 200px !important;
    max-height: 240px !important;
    padding: 10px !important;
  }

  .detail-visual-modal img {
    max-height: 190px !important;
    object-fit: contain !important;
  }

  .detail-media-panel,
  .detail-copy-panel {
    padding: 14px !important;
    border-radius: 16px !important;
  }
}

.detail-copy {
  padding: 22px 24px 18px;
  border-bottom: 1px solid #eef2f7;
}

.brand-label {
  margin-bottom: 8px;
}

.detail-copy h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
  color: #0f172a;
}

.detail-price {
  margin-bottom: 14px;
}

.detail-specs {
  list-style: none !important;
  padding: 0 !important;
  margin: 16px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: 100% !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

.detail-specs li {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 14px !important;
  margin: 0 !important;
  border-bottom: 1px solid #edf2f7 !important;
  gap: 10px !important;
  min-height: auto !important;
  height: auto !important;
  background: #ffffff;
}

.detail-specs li:nth-child(even) {
  background: #f8fafc !important;
}

.detail-specs li:last-child {
  border-bottom: none !important;
}

.detail-specs strong {
  width: 120px !important;
  min-width: 110px !important;
  flex-shrink: 0 !important;
  color: #0f172a !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
}

.detail-specs span {
  flex: 1 !important;
  color: #334155 !important;
  font-size: 0.86rem !important;
  font-weight: 500 !important;
  text-align: right !important;
  line-height: 1.35 !important;
  word-break: break-word !important;
}

#detailPregnantSafe {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  line-height: 1.2;
}

.detail-description {
  margin-top: 22px;
  padding: 22px 24px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #fff;
}

.detail-description-inline {
  margin-top: 0;
  padding: 20px 20px 22px;
  background: #ffffff;
  border: 1px solid #eef2f7;
}

.detail-description-inline h3 {
  margin-bottom: 10px;
}

.detail-description-inline p {
  margin: 0;
}

@media (max-width: 820px) {
  .product-thumb {
    min-height: 188px;
  }

  .product-thumb-image {
  background: #ffffff;
    height: 160px;
  }

  .detail-visual-modal {
    min-height: 360px;
    padding: 18px;
  }

  .detail-image {
  background: #ffffff;
    max-width: 100%;
    height: 320px;
  }

  .detail-topbar-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
  }
}

/* =======================================================
   RECOMMENDATION PAGE
======================================================= */

.recommendation-page {
  padding: 60px 0;
  background: #f5f8fc;
}

.recommendation-page .container {
  max-width: 1180px;
  margin: auto;
  padding: 0 20px;
}

/* =======================================================
   HERO
======================================================= */

.recommendation-header {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 50px;
}

.header-left h1 {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 800;
  color: #172554;
  margin: 20px 0;
}

.header-left h1 span {
  color: #021536;
}

.header-left p {
  color: #64748b;
  font-size: 17px;
  line-height: 1.8;
  max-width: 600px;
}

.header-right {
  text-align: center;
}

.header-right img {
  width: 100%;
  max-width: 430px;
}

/* =======================================================
   BADGE
======================================================= */

.badge-blue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #dbe6f5;
  color: #021536;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}

.badge-blue svg {
  width: 18px;
  height: 18px;
}

/* =======================================================
   FORM
======================================================= */

.recommendation-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* =======================================================
   CARD
======================================================= */

.process-card {
  background: #ffffff;

  border-radius: 22px;

  padding: 35px;

  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.05);

  border: 1px solid #edf2f7;

  transition: 0.3s;
}

.process-card:hover {
  transform: translateY(-4px);

  box-shadow: 0 18px 45px rgba(2, 21, 54, 0.1);
}

/* =======================================================
   CARD TITLE
======================================================= */

.card-title {
  display: flex;

  align-items: flex-start;

  gap: 18px;

  margin-bottom: 28px;
}

.card-number {
  width: 52px;

  height: 52px;

  border-radius: 50%;

  background: #021536;

  color: #fff;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 20px;

  font-weight: 700;

  flex-shrink: 0;
}

.card-title h3 {
  display: flex;

  align-items: center;

  gap: 10px;

  font-size: 23px;

  color: #1e293b;

  margin-bottom: 8px;
}

.card-title p {
  color: #64748b;

  line-height: 1.6;
}

.card-title svg {
  width: 22px;

  height: 22px;

  color: #021536;
}

/* =======================================================
   OPTION GRID
======================================================= */

.option-grid {
  display: grid;

  gap: 18px;
}

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

.pregnant-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 20px;
}

/* =======================================================
   OPTION CARD
======================================================= */

.option-card {
  position: relative;

  cursor: pointer;
}

.option-card input {
  display: none;
}

.option-content {
  background: #fff;

  border: 2px solid #e5e7eb;

  border-radius: 18px;

  padding: 28px;

  text-align: center;

  transition: 0.25s;

  height: 100%;
}

.option-card:hover .option-content {
  border-color: #051b47;

  transform: translateY(-3px);
}

.option-card.active .option-content {
  border-color: #021536;

  background: #eff6ff;

  box-shadow: 0 10px 25px rgba(2, 21, 54, 0.12);
}

.option-card input:checked + .option-content {
  border-color: #021536;
  background: #eff6ff;
  box-shadow: 0 10px 25px rgba(2, 21, 54, 0.12);
  transform: translateY(-3px);
}

/* =======================================================
   ICON
======================================================= */

.option-icon {
  width: 68px;

  height: 68px;

  margin: auto;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  background: #eff6ff;

  margin-bottom: 18px;
}

.option-icon svg {
  width: 30px;

  height: 30px;

  color: #021536;
}

.option-title {
  font-size: 16px;

  font-weight: 700;

  color: #1e293b;
}
/* =======================================================
   ISSUE GRID
======================================================= */

.issue-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 18px;
}

.issue-card-modern {
  position: relative;

  cursor: pointer;
}

.issue-card-modern input {
  display: none;
}

.issue-body {
  display: flex;

  align-items: center;

  gap: 18px;

  padding: 20px;

  border: 2px solid #e5e7eb;

  border-radius: 18px;

  background: #fff;

  transition: 0.25s;

  min-height: 90px;
}

.issue-card-modern:hover .issue-body {
  border-color: #051b47;

  transform: translateY(-3px);
}

.issue-card-modern.active .issue-body {
  background: #eff6ff;

  border-color: #021536;

  box-shadow: 0 12px 25px rgba(2, 21, 54, 0.12);
}

.issue-card-modern input:checked + .issue-body {
  background: #eff6ff;
  border-color: #021536;
  box-shadow: 0 12px 25px rgba(2, 21, 54, 0.12);
  transform: translateY(-3px);
}

/* =======================================================
   ISSUE ICON
======================================================= */

.issue-icon {
  width: 52px;

  height: 52px;

  border-radius: 50%;

  background: #dbe6f5;

  display: flex;

  justify-content: center;

  align-items: center;

  flex-shrink: 0;
}

.issue-icon svg {
  width: 22px;

  height: 22px;

  color: #021536;
}

.issue-body div:last-child {
  font-size: 15px;

  font-weight: 600;

  color: #1e293b;
}

/* =======================================================
   MODERN SELECT
======================================================= */

.modern-select {
  position: relative;
}

.modern-select svg {
  position: absolute;

  left: 20px;

  top: 50%;

  transform: translateY(-50%);

  width: 22px;

  height: 22px;

  color: #051b47;

  pointer-events: none;
}

.modern-select select {
  width: 100%;

  padding: 18px 22px 18px 58px;

  border-radius: 16px;

  border: 2px solid #e5e7eb;

  background: #fff;

  font-size: 16px;

  color: #1e293b;

  transition: 0.25s;

  appearance: none;

  -webkit-appearance: none;

  -moz-appearance: none;

  cursor: pointer;
}

.modern-select select:focus {
  outline: none;

  border-color: #021536;

  box-shadow: 0 0 0 4px rgba(2, 21, 54, 0.12);
}

/* =======================================================
   DROPDOWN ARROW
======================================================= */

.modern-select::after {
  content: "▼";

  position: absolute;

  right: 22px;

  top: 50%;

  transform: translateY(-50%);

  font-size: 11px;

  color: #64748b;

  pointer-events: none;
}

/* =======================================================
   BUTTON
======================================================= */

.recommend-action {
  margin-top: 15px;
}

.recommend-button {
  width: 100%;

  border: none;

  cursor: pointer;

  border-radius: 18px;

  padding: 20px;

  background: linear-gradient(135deg, #021536, #051b47);

  color: #fff;

  font-size: 18px;

  font-weight: 700;

  display: flex;

  justify-content: center;

  align-items: center;

  gap: 12px;

  transition: 0.3s;

  box-shadow: 0 15px 30px rgba(2, 21, 54, 0.25);
}

.recommend-button:hover {
  transform: translateY(-4px);

  box-shadow: 0 20px 40px rgba(2, 21, 54, 0.35);
}

.recommend-button svg {
  width: 22px;

  height: 22px;
}

/* =======================================================
   ALERT
======================================================= */

.alert-box {
  display: flex;

  gap: 18px;

  align-items: center;

  padding: 20px 24px;

  border-radius: 16px;

  margin-top: 20px;

  margin-bottom: 20px;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.alert-box.info {
  background: #eff6ff;

  border: 1.5px solid #b8cce9;

  box-shadow: 0 4px 18px rgba(2, 21, 54, 0.06);
}

.alert-box.warning {
  background: #fff8e7;

  border: 1.5px solid #fcd34d;

  box-shadow: 0 4px 18px rgba(217, 119, 6, 0.08);
}

.alert-box.error {
  background: #fef2f2;

  border: 1.5px solid #fecaca;

  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.06);
}

.alert-icon {
  width: 48px;

  height: 48px;

  min-width: 48px;

  min-height: 48px;

  border-radius: 14px;

  display: flex;

  justify-content: center;

  align-items: center;

  flex-shrink: 0;
}

.alert-box.info .alert-icon {
  background: #dbe6f5;
}

.alert-box.warning .alert-icon {
  background: #fef3c7;
}

.alert-box.error .alert-icon {
  background: #fee2e2;
}

.alert-icon svg {
  width: 24px;

  height: 24px;
}

.alert-box.info svg {
  color: #021536;
}

.alert-box.warning svg {
  color: #d97706;
}

.alert-box.error svg {
  color: #dc2626;
}

.alert-box strong {
  display: block;

  margin-bottom: 4px;

  color: #1e293b;

  font-size: 17px;

  font-weight: 700;
}

.alert-box p {
  color: #475569;

  font-size: 14.5px;

  line-height: 1.6;

  margin: 0;
}

.alert-box p strong {
  display: inline !important;

  margin: 0 !important;

  color: #0f172a !important;

  font-size: inherit !important;

  font-weight: 700 !important;
}
/* =======================================================
   ANIMATION
======================================================= */

.process-card,
.option-content,
.issue-body,
.recommend-button,
.modern-select select,
.alert-box {
  transition: all 0.3s ease;
}

.process-card {
  animation: fadeUp 0.5s ease;
}

.process-card:nth-child(2) {
  animation-delay: 0.1s;
}

.process-card:nth-child(3) {
  animation-delay: 0.2s;
}

.process-card:nth-child(4) {
  animation-delay: 0.3s;
}

.process-card:nth-child(5) {
  animation-delay: 0.4s;
}

.process-card:nth-child(6) {
  animation-delay: 0.5s;
}

@keyframes fadeUp {
  from {
    opacity: 0;

    transform: translateY(25px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* =======================================================
   ACTIVE EFFECT
======================================================= */

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

.issue-card-modern.active .issue-body {
  transform: translateY(-3px);
}

.option-card.active .option-icon {
  background: #021536;
}

.option-card input:checked + .option-content .option-icon {
  background: #021536;
}

.option-card.active .option-icon svg {
  color: #fff;
}

.option-card input:checked + .option-content .option-icon svg {
  color: #fff;
}

.issue-card-modern.active .issue-icon {
  background: #021536;
}

.issue-card-modern input:checked + .issue-body .issue-icon {
  background: #021536;
}

.issue-card-modern.active .issue-icon svg {
  color: #fff;
}

.issue-card-modern input:checked + .issue-body .issue-icon svg {
  color: #fff;
}

/* =======================================================
   FORM SPACING
======================================================= */

.process-card + .process-card {
  margin-top: 30px;
}

.card-title {
  border-bottom: 1px solid #eef2f7;

  padding-bottom: 18px;
}

.card-title h3 {
  margin: 0;
}

.card-title p {
  margin-top: 8px;
}

/* =======================================================
   FOCUS
======================================================= */

input:focus,
select:focus,
button:focus {
  outline: none;
}

.option-card:focus-within .option-content {
  border-color: #021536;
}

.issue-card-modern:focus-within .issue-body {
  border-color: #021536;
}

/* =======================================================
   SCROLLBAR
======================================================= */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #eef2f7;
}

::-webkit-scrollbar-thumb {
  background: #94a3b8;

  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* =======================================================
   TABLET
======================================================= */

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

    text-align: center;

    gap: 35px;
  }

  .header-left p {
    margin: auto;
  }

  .header-right img {
    max-width: 300px;
  }

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

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

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

/* =======================================================
   MOBILE
======================================================= */

@media (max-width: 768px) {
  .recommendation-page {
    padding: 35px 0;
  }

  .header-left h1 {
    font-size: 34px;
  }

  .header-left p {
    font-size: 15px;
  }

  .process-card {
    padding: 22px;

    border-radius: 18px;
  }

  .card-number {
    width: 44px;

    height: 44px;

    font-size: 18px;
  }

  .card-title h3 {
    font-size: 20px;
  }

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

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

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

  .option-content {
    padding: 22px;
  }

  .issue-body {
    padding: 18px;
  }

  .recommend-button {
    padding: 18px;

    font-size: 16px;
  }
}

/* =======================================================
   SMALL MOBILE
======================================================= */

@media (max-width: 480px) {
  .container {
    padding: 0 24px;
  }

  .header-left h1 {
    font-size: 28px;
  }

  .badge-blue {
    font-size: 12px;

    padding: 8px 14px;
  }

  .card-title {
    gap: 12px;
  }

  .card-number {
    width: 40px;

    height: 40px;

    font-size: 16px;
  }

  .card-title h3 {
    font-size: 18px;
  }

  .option-icon {
    width: 55px;

    height: 55px;
  }

  .option-icon svg {
    width: 24px;

    height: 24px;
  }

  .issue-icon {
    width: 45px;

    height: 45px;
  }

  .issue-icon svg {
    width: 20px;

    height: 20px;
  }

  .recommend-button {
    border-radius: 14px;
  }

  .alert-box {
    padding: 18px;

    gap: 14px;
  }

  .alert-icon {
    width: 45px;

    height: 45px;
  }
}

/* =======================================================
   SMOOTH
======================================================= */

html {
  scroll-behavior: smooth;
}

body {
  background: #f5f8fc;

  font-family: "Poppins", sans-serif;

  color: #1e293b;
}

/* =======================================================
   HERO BANNER THEME (Gambar 2 Layout)
======================================================= */
.hero-theme-ref {
  padding: 0 0 125px;
}

.hero-full-screen-bg {
  width: 100%;
  min-height: 640px;
  background: #ffffff url('../images/banner%20fix.png') top right / cover no-repeat;
  border-radius: 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 15px 35px -10px rgba(2, 21, 54, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 0 0 0;
}

.hero-banner-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  width: 100%;
}

.hero-overlay-copy {
  max-width: 580px;
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
  padding-left: 28px;
}

.hero-theme-ref .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.95);
  backdrop-filter: blur(8px);
  color: #021536;
  border: 1px solid #dbe6f5;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-theme-ref .hero-overlay-copy h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.14;
  margin: 0 0 18px 0;
  letter-spacing: -0.02em;
}

.hero-theme-ref .hero-overlay-copy h1 span {
  color: #021536;
}

.hero-mobile-image {
  display: none;
}

.hero-theme-ref .hero-overlay-copy p {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-theme-ref .hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-theme-ref .hero-btn-main {
  padding: 14px 28px;
  font-size: 0.98rem;
  font-weight: 700;
  background: #021536;
  color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 22px -4px rgba(2, 21, 54, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.hero-theme-ref .hero-btn-main:hover {
  background: #021536;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(2, 21, 54, 0.45);
}

/* 4 Feature Cards Grid Floating OVER the Photo Background - Centered Inward */
.hero-feature-cards.hero-feature-overlay {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  margin-top: auto;
  margin-bottom: 0;
  transform: translateY(67%);
  position: relative;
  z-index: 5;
}

.hero-feature-cards.hero-feature-overlay .feature-card-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 14px 35px -8px rgba(2, 21, 54, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.hero-feature-cards.hero-feature-overlay .feature-card-item .feature-card-icon {
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.hero-feature-cards.hero-feature-overlay .feature-card-item:hover {
  background: #ffffff;
  border-color: #021536;
  box-shadow: 0 20px 40px -4px rgba(2, 21, 54, 0.2);
}

.hero-feature-cards.hero-feature-overlay .feature-card-item:hover .feature-card-icon {
  transform: scale(1.08);
  background: #021536;
}

/* Floating Badge in Visual (Reference Style) */
.visual-floating-badge-ref {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 999px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 28px -6px rgba(2, 21, 54, 0.15);
  animation: floatBadge 4s ease-in-out infinite alternate;
}

.badge-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eff6ff;
  color: #021536;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.badge-text-wrap {
  display: flex;
  flex-direction: column;
}

.badge-text-wrap strong {
  font-size: 0.72rem;
  color: #0f172a;
  line-height: 1.2;
}

.badge-text-wrap span {
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.2;
}

.hero-theme-ref .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: #021536;
  border: 1px solid #dbe6f5;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-theme-ref .hero-copy h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.hero-theme-ref .hero-copy h1 span {
  color: #021536;
}

.hero-theme-ref .hero-copy p {
  font-size: 1.02rem;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-theme-ref .hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0px;
}

.hero-theme-ref .hero-btn-main {
  padding: 14px 28px;
  font-size: 0.98rem;
  font-weight: 700;
  background: #021536;
  color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 22px -4px rgba(2, 21, 54, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.hero-theme-ref .hero-btn-main:hover {
  background: #021536;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(2, 21, 54, 0.45);
}

/* 4 Feature Cards Grid below Hero Card */
.hero-feature-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.feature-card-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -5px rgba(2, 21, 54, 0.12);
  border-color: #cbd5e1;
}

.feature-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #021536;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 8px 18px -3px rgba(2, 21, 54, 0.35);
}

.feature-card-content strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.feature-card-content p {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 1024px) {
  .hero-card-wrapper .hero-grid-home {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 32px;
  }
  .hero-feature-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .hero-feature-cards {
    grid-template-columns: 1fr;
  }
  .visual-floating-badge-ref {
    display: none;
  }
}

/* Floating Product Badges (Gambar 2 Reference Style) */
.visual-card-wrap {
  position: relative;
  overflow: visible !important;
}

.visual-floating-badge {
  position: absolute;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px -6px rgba(2, 21, 54, 0.2), 0 4px 12px rgba(0,0,0,0.05);
  border-radius: 999px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  animation: floatBadge 4s ease-in-out infinite alternate;
}

@keyframes floatBadge {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-6px); }
}

.badge-top-left {
  top: 18px;
  left: -14px;
  border-radius: 18px;
  padding: 8px 14px;
}

.badge-top-left .badge-icon-star {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fef3c7;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.badge-top-left strong {
  display: block;
  font-size: 0.72rem;
  color: #0f172a;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.badge-top-left small {
  display: block;
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 700;
}

.badge-top-right {
  top: 24px;
  right: -10px;
  background: rgba(255, 255, 255, 0.94);
  color: #15803d;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-top-right i {
  color: #16a34a;
  font-size: 0.85rem;
}

.badge-bottom-left {
  bottom: 24px;
  left: -14px;
  border-radius: 16px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 14px;
  animation-delay: 1.5s;
}

.badge-bottom-left .stars-row {
  display: flex;
  gap: 3px;
  color: #f59e0b;
  font-size: 0.75rem;
}

.badge-bottom-left strong {
  font-size: 0.72rem;
  color: #0f172a;
  letter-spacing: 0.04em;
}

.badge-bottom-right {
  bottom: 20px;
  right: -10px;
  color: #0284c7;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  animation-delay: 2s;
}

.badge-bottom-right i {
  color: #0284c7;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .visual-floating-badge {
    display: none;
  }
}

/* =======================================================
   BOTTOM SECTIONS (Matching Reference Screenshot)
======================================================= */
.how-it-works-ref {
  padding: 64px 0 48px;
}

.how-works-grid {
  display: grid;
  grid-template-columns: 0.75fr 2.25fr;
  gap: 40px;
  align-items: flex-start;
}

.how-works-copy h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.16;
  margin: 14px 0 18px 0;
  letter-spacing: -0.02em;
}

.how-works-copy h2 span {
  color: #021536;
}

.how-works-copy p {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.68;
  margin-bottom: 32px;
  max-width: 480px;
}

.btn-learn-more {
  padding: 14px 28px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #021536;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.btn-learn-more:hover {
  border-color: #021536;
  background: #f8fafc;
  transform: translateY(-2px);
}

.how-works-steps {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-card-ref {
  flex: 1;
  border-radius: 22px;
  padding: 28px 20px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 265px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card-ref:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px -4px rgba(2, 21, 54, 0.12);
}

.step-tint-blue {
  background: #f0f7ff;
  border-color: #dbe6f5;
}

.step-tint-green {
  background: #f0fdf4;
  border-color: #dcfce7;
}

.step-tint-purple {
  background: #faf5ff;
  border-color: #f3e8ff;
}

.step-tint-yellow {
  background: #fefce8;
  border-color: #fef9c3;
}

.step-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 18px;
}

.step-icon-circle.blue {
  background: #dbe6f5;
  color: #021536;
}

.step-icon-circle.green {
  background: #dcfce7;
  color: #16a34a;
}

.step-icon-circle.purple {
  background: #f3e8ff;
  color: #9333ea;
}

.step-icon-circle.yellow {
  background: #fef9c3;
  color: #ca8a04;
}

.step-card-ref h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px 0;
  line-height: 1.25;
}

.step-card-ref p {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

.step-arrow {
  color: #94a3b8;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Criteria Card Container (6 columns) */
.criteria-section-ref {
  padding: 44px 0 72px;
}

.criteria-section-ref .section-heading {
  margin-bottom: 28px;
}

.criteria-section-ref .section-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
}

.criteria-card-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 42px 28px;
  box-shadow: 0 14px 36px -8px rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.criteria-col-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  border-right: 1px solid #f1f5f9;
}

.criteria-col-item:last-child {
  border-right: none;
}

.criteria-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eff6ff;
  border: 1px solid #dbe6f5;
  color: #021536;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.criteria-col-item:hover .criteria-icon-wrap {
  transform: scale(1.1);
  background: #021536;
  color: #ffffff;
}

.criteria-col-item h4 {
  font-size: 0.94rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.criteria-col-item p {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.48;
  margin: 0;
}

@media (max-width: 1024px) {
  .how-works-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .how-works-steps {
    flex-wrap: wrap;
    gap: 16px;
  }
  .step-arrow {
    display: none;
  }
  .step-card-ref {
    min-width: calc(50% - 16px);
  }
  .criteria-card-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 0;
  }
  .criteria-col-item:nth-child(3n) {
    border-right: none;
  }
}

@media (max-width: 640px) {
  .step-card-ref {
    min-width: 100%;
  }
  .criteria-card-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .criteria-col-item {
    border-right: none;
  }
}

/* =======================================================
   CATATAN PENTING CARD (Matching Theme & Screenshot)
======================================================= */
.important-note-card {
  background: #eff6ff !important;
  border: 1px solid #dbe6f5 !important;
  border-radius: 18px !important;
  padding: 20px 24px !important;
  margin-top: 20px !important;
  margin-bottom: 10px !important;
  box-shadow: 0 4px 16px rgba(2, 21, 54, 0.05) !important;
  clear: both !important;
  text-align: left !important;
}

.important-note-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 10px !important;
  padding: 0 !important;
}

.important-note-icon {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: 50% !important;
  background: #dbe6f5 !important;
  color: #021536 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.1rem !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

.important-note-icon i {
  color: #021536 !important;
  font-size: 1.1rem !important;
  margin: 0 !important;
  padding: 0 !important;
}

.important-note-title {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #1e40af !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

.important-note-text {
  font-size: 0.9rem !important;
  color: #334155 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* =======================================================
   RESPONSIVE DESIGN & MOBILE OVERHAUL (GLOWMASK)
   ======================================================= */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

/* Base Body Modal & Navigation Overlays */
body.mobile-nav-active {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

/* Nav Icons default (hidden on desktop, visible on mobile) */
.main-nav .nav-icon {
  display: none;
}

/* ---- Desktop Defaults (> 991px) ---- */
@media (min-width: 992px) {
  .mobile-nav-toggle {
    display: none !important;
  }

  .nav-wrapper {
    display: flex !important;
    position: static !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex: 1;
  }

  .mobile-bottom-nav {
    display: none !important;
  }
}

/* =======================================================
   MOBILE APP-STYLE BOTTOM NAVIGATION BAR (<= 768px)
   ======================================================= */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(2, 21, 54, 0.08);
    box-shadow: 0 -4px 24px rgba(2, 21, 54, 0.08);
    z-index: 990;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  /* Safe bottom padding so page content & footer never get covered */
  body {
    padding-bottom: 74px !important;
  }

  .site-footer {
    padding-bottom: 24px !important;
    margin-bottom: 0 !important;
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: #64748b;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    transition: all 0.2s ease;
    gap: 3px;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-icon {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .bottom-nav-label {
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 0.01em;
    font-size: 0.72rem;
  }

  .bottom-nav-item:hover,
  .bottom-nav-item:focus {
    color: #021536;
  }

  .bottom-nav-item.active {
    color: #021536 !important;
    font-weight: 800 !important;
  }

  .bottom-nav-item.active .bottom-nav-icon {
    transform: translateY(-2px);
    color: #021536;
  }

  .bottom-nav-item.active::after {
    content: "";
    position: absolute;
    top: 4px;
    width: 18px;
    height: 3px;
    background: #021536;
    border-radius: 99px;
  }
}

/* =======================================================
   TABLET & MOBILE HEADER / TOPBAR (<= 991px)
   ======================================================= */
@media (max-width: 991px) {
  .container {
    width: 100% !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 995;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(2, 21, 54, 0.08);
  }

  .topbar-inner {
    position: relative;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 4px !important;
  }

  .brand {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding-left: 2px !important;
  }

  .brand-text {
    font-size: 1.35rem !important;
    line-height: 1.1 !important;
    color: #021536 !important;
    font-weight: 800 !important;
  }

  .brand small {
    font-size: 0.62rem !important;
    line-height: 1.1 !important;
    margin-top: 3px !important;
    color: #64748b !important;
    font-weight: 600 !important;
  }

  .mobile-nav-toggle {
    display: none !important;
  }

  .nav-wrapper {
    display: none !important;
  }

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

  .main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .main-nav .nav-icon {
    display: inline-flex;
    font-size: 1rem;
    color: #021536;
    width: 20px;
    text-align: center;
  }

  .main-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    transition: all 0.2s ease;
  }

  .main-nav a:hover,
  .main-nav a:active {
    background: #edf4ff;
    color: #021536;
    border-color: #cbd5e1;
  }

  .main-nav a.active {
    background: #021536 !important;
    color: #ffffff !important;
    border-color: #021536 !important;
  }

  .main-nav a.active .nav-icon {
    color: #ffffff !important;
  }

  .main-nav a.active::after,
  .main-nav a:hover::after {
    display: none !important;
  }

  .account-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-left: 0;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
  }

  .account-actions .auth-link,
  .account-actions .user-pill {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    box-sizing: border-box;
  }

  .account-actions .user-pill {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #dbeafe;
  }

  .account-actions .auth-link {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    color: #021536;
  }

  .account-actions .auth-link-filled {
    background: #021536 !important;
    color: #ffffff !important;
    border-color: #021536 !important;
  }

  .profile-btn {
    display: none !important;
  }
}

/* =======================================================
   HERO & LANDING PAGE MOBILE POLISH
   ======================================================= */
@media (max-width: 991px) {
  .hero-theme-ref {
    padding: 0 0 32px !important;
  }

  .hero-full-screen-bg {
    min-height: auto !important;
    padding: 28px 18px 24px !important;
    background: #ffffff url('../images/banner%20fix.png') right center / contain no-repeat !important;
    border-radius: 20px;
  }

  .hero-overlay-copy {
    max-width: 60% !important;
    padding-left: 0 !important;
    text-align: left;
    margin-bottom: 20px;
  }

  .hero-theme-ref .hero-overlay-copy h1 {
    font-size: clamp(1.4rem, 4vw, 2.4rem) !important;
    margin-bottom: 10px !important;
  }

  .hero-mobile-image {
    display: block;
    width: 100%;
    margin: 14px 0 16px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px -4px rgba(2, 21, 54, 0.12);
    border: 1px solid rgba(2, 21, 54, 0.08);
  }

  .hero-mobile-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    object-fit: cover;
  }

  .hero-theme-ref .hero-overlay-copy p {
    font-size: clamp(0.78rem, 2vw, 0.92rem) !important;
    margin-bottom: 16px !important;
  }

  .hero-theme-ref .hero-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-feature-cards.hero-feature-overlay {
    grid-template-columns: repeat(2, 1fr) !important;
    transform: none !important;
    margin-top: 20px !important;
    margin-bottom: 0 !important;
    gap: 12px !important;
    position: static !important;
  }

  /* Section 1 How it works steps */
  .how-works-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .how-works-steps {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }

  .step-card-ref {
    min-height: auto !important;
    width: 100% !important;
    padding: 18px 16px !important;
    border-radius: 18px !important;
  }

  .step-arrow {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .hero-full-screen-bg {
    background: #ffffff !important;
    padding: 24px 18px !important;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -5px rgba(2, 21, 54, 0.06);
  }

  .hero-overlay-copy {
    max-width: 100% !important;
    text-align: center;
  }

  .hero-theme-ref .hero-actions {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }

  .hero-theme-ref .hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 13px 20px !important;
    font-size: 0.95rem !important;
  }

  .hero-feature-cards.hero-feature-overlay {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .hero-feature-cards.hero-feature-overlay .feature-card-item {
    padding: 14px 16px !important;
    border-radius: 16px !important;
  }
}

/* =======================================================
   CRITERIA & HOW IT WORKS SECTIONS MOBILE
   ======================================================= */
@media (max-width: 768px) {
  .criteria-card-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .criteria-col-item {
    padding: 16px 12px !important;
    border-radius: 16px !important;
    text-align: center !important;
  }

  .criteria-icon-wrap {
    width: 44px !important;
    height: 44px !important;
    margin: 0 auto 10px !important;
    font-size: 1.25rem !important;
  }

  .criteria-col-item h4 {
    font-size: 0.9rem !important;
    margin-bottom: 4px !important;
  }

  .criteria-col-item p {
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
  }
}

@media (max-width: 380px) {
  .criteria-card-container {
    grid-template-columns: 1fr !important;
  }
}

/* =======================================================
   KATALOG PRODUK & MODAL DETAIL POLISH (PRODUK.PHP)
   ======================================================= */
@media (max-width: 991px) {
  .product-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .toolbar {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
  }

  .toolbar .search-box input,
  .toolbar select {
    width: 100% !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    font-size: 0.9rem !important;
    min-height: 44px;
    box-sizing: border-box;
  }

  /* Product Grid: Crisp 2-Column e-Commerce Layout */
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .product-card {
    border-radius: 16px !important;
    padding: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative;
    box-shadow: 0 4px 14px rgba(2, 21, 54, 0.04) !important;
  }

  .product-card .table-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
  }

  .product-card .favorite-toggle {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(2, 21, 54, 0.08);
    font-size: 0.9rem;
    color: #64748b;
  }

  .product-card .favorite-toggle.is-favorite {
    background: #fff1f2;
    border-color: #fca5a5;
    color: #e11d48;
  }

  .product-card .product-thumb {
    width: 100% !important;
    height: 140px !important;
    min-height: 140px !important;
    border-radius: 12px !important;
    margin-bottom: 10px !important;
    background: #ffffff !important;
    overflow: hidden;
  }

  .product-thumb-image {
    max-width: 90% !important;
    max-height: 90% !important;
    object-fit: contain;
  }

  .product-card .product-chip-row {
    margin-bottom: 6px !important;
  }

  .product-card .tag {
    font-size: 0.68rem !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
  }

  .product-card h3 {
    font-size: 0.88rem !important;
    line-height: 1.35 !important;
    margin: 0 0 4px 0 !important;
    font-weight: 700 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card p {
    font-size: 0.76rem !important;
    color: #64748b !important;
    margin: 0 0 6px 0 !important;
  }

  .product-card .rating-row {
    font-size: 0.78rem !important;
    margin: 0 0 6px 0 !important;
  }

  .product-card strong {
    font-size: 0.95rem !important;
    color: #021536 !important;
    margin-top: auto;
  }
}

@media (max-width: 360px) {
  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .product-card .product-thumb {
    height: 180px !important;
  }
}

/* Product Modal Bottom Sheet / Mobile Dialog */
@media (max-width: 768px) {
  .product-modal-dialog {
    width: 96vw !important;
    max-width: 540px !important;
    max-height: calc(100vh - 24px) !important;
    border-radius: 22px !important;
    margin: 12px auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .detail-topbar {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 14px 16px !important;
    border-bottom: 1px solid #f1f5f9;
    box-sizing: border-box !important;
  }

  .detail-heading {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .detail-heading h2,
  .detail-heading .detail-pill {
    font-size: 0.82rem !important;
  }

  .detail-heading p {
    font-size: 0.75rem !important;
    margin: 4px 0 0 0 !important;
  }

  .detail-topbar-actions {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    width: auto !important;
  }

  .product-modal-close {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.3rem !important;
    flex-shrink: 0 !important;
  }

  .detail-intro-modal {
    flex-direction: column !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 16px !important;
    gap: 16px !important;
    max-height: calc(100vh - 100px) !important;
  }

  .detail-media-panel,
  .detail-copy-panel {
    width: 100% !important;
  }

  .detail-visual-modal {
    min-height: 200px !important;
    height: 220px !important;
    border-radius: 16px !important;
  }

  .detail-image {
    max-height: 180px !important;
    object-fit: contain;
  }

  .detail-copy h2 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
  }

  .detail-price {
    font-size: 1.3rem !important;
    margin-bottom: 10px !important;
  }

  .detail-specs li {
    flex-direction: column !important;
    gap: 4px !important;
    padding-bottom: 8px !important;
  }

  .detail-specs strong {
    width: 100% !important;
    font-size: 0.82rem !important;
  }

  .detail-specs span {
    font-size: 0.84rem !important;
  }
}

/* =======================================================
   RECOMMENDATION WIZARD (PROSES.PHP) POLISH
   ======================================================= */
@media (max-width: 768px) {
  .recommendation-page {
    padding: 16px 0 24px !important;
  }

  .recommendation-header {
    flex-direction: column-reverse !important;
    text-align: center !important;
    gap: 14px !important;
    padding: 18px 16px !important;
    margin-bottom: 16px !important;
    border-radius: 18px !important;
  }

  .recommendation-header .header-left {
    max-width: 100% !important;
    text-align: center !important;
  }

  .recommendation-header h1 {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
    margin-bottom: 6px !important;
  }

  .recommendation-header p {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
  }

  .recommendation-header .header-right img {
    max-width: 170px !important;
    height: auto !important;
  }

  /* Sleek 5-Node Wizard Bar on Mobile */
  .process-wizard-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 12px !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 16px !important;
    box-shadow: 0 4px 12px rgba(2, 21, 54, 0.04) !important;
  }

  .wizard-step-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    flex-shrink: 0 !important;
  }

  .wizard-step-badge .step-label {
    display: none !important;
  }

  .wizard-step-badge .step-circle {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    border-radius: 50% !important;
  }

  .wizard-line {
    display: block !important;
    flex: 1 !important;
    height: 2.5px !important;
    margin: 0 3px !important;
    min-width: 6px !important;
    border-radius: 2px !important;
  }

  .step-process-card {
    padding: 16px 14px !important;
    border-radius: 18px !important;
  }

  .step-process-card .card-title {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px !important;
    text-align: left !important;
    margin-bottom: 12px !important;
  }

  .step-process-card .card-number {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    font-size: 0.85rem !important;
    border-radius: 50% !important;
  }

  .step-process-card h3 {
    font-size: 1.05rem !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
  }

  .step-process-card p {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
  }

  /* Touch Option Cards */
  .descriptive-option-grid,
  .descriptive-option-grid.grid-step-3,
  .descriptive-option-grid.grid-step-4 {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 12px !important;
  }

  .descriptive-option-card {
    display: grid !important;
    grid-template-columns: 44px 1fr !important;
    grid-template-rows: auto auto !important;
    column-gap: 12px !important;
    row-gap: 3px !important;
    align-items: center !important;
    text-align: left !important;
    padding: 12px 14px !important;
    min-height: auto !important;
    height: auto !important;
    border-radius: 14px !important;
    border-width: 1.5px !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 8px rgba(2, 21, 54, 0.03) !important;
  }

  .descriptive-option-card .card-icon-circle {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    font-size: 1.15rem !important;
    margin: 0 !important;
    align-self: center !important;
    border-radius: 12px !important;
  }

  .descriptive-option-card .card-option-title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #021536 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
  }

  .descriptive-option-card .card-option-desc {
    grid-column: 2 !important;
    grid-row: 2 !important;
    font-size: 0.78rem !important;
    color: #64748b !important;
    text-align: left !important;
    justify-content: flex-start !important;
    line-height: 1.35 !important;
    margin: 0 !important;
  }

  /* Wizard Actions on Mobile */
  .process-wizard-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 1.5rem !important;
  }

  .process-wizard-actions #btnStepNext,
  .process-wizard-actions #btnStepSubmit,
  .process-wizard-actions .recommend-button {
    order: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    justify-content: center !important;
    padding: 14px 20px !important;
    font-size: 0.95rem !important;
    border-radius: 14px !important;
  }

  .process-wizard-actions #btnStepPrev {
    order: 2 !important;
    width: 100% !important;
    margin: 0 !important;
    justify-content: center !important;
    padding: 13px 20px !important;
    font-size: 0.92rem !important;
    border-radius: 14px !important;
  }
}

/* =======================================================
   RECOMMENDATION RESULTS (HASIL.PHP) POLISH
   ======================================================= */
@media (max-width: 992px) {
  .result-product-row {
    grid-template-columns: 50px 1fr 1fr !important;
    gap: 1rem !important;
  }
}

@media (max-width: 768px) {
  .hasil-preference-box {
    max-width: 100% !important;
    padding: 1rem 1.25rem !important;
    border-radius: 16px !important;
  }

  .result-product-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: left !important;
    gap: 12px !important;
    padding: 1.25rem 1rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    position: relative;
  }

  .result-product-row:last-child {
    border-bottom: none !important;
  }

  .result-product-row > div:nth-child(1) {
    position: absolute;
    top: 14px;
    right: 14px;
    width: auto !important;
  }

  .result-product-row > div:nth-child(2) {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding-right: 48px;
  }

  .result-product-row > div:nth-child(2) img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 10px !important;
  }

  .result-product-row h4 {
    font-size: 0.98rem !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
  }

  .result-product-row > div:nth-child(3) {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 10px;
  }

  .result-product-row > div:nth-child(4) {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .result-product-row > div:last-child {
    width: 100% !important;
  }

  .result-product-row > div:last-child .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px !important;
    font-size: 0.9rem !important;
    border-radius: 12px !important;
  }

  .hasil-footer-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .hasil-footer-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center;
    padding: 13px !important;
    font-size: 0.92rem !important;
  }
}

/* =======================================================
   PROFILE & HISTORY (PROFIL.PHP & RIWAYAT.PHP) POLISH
   ======================================================= */
@media (max-width: 768px) {
  .profile-overview-card {
    padding: 18px 16px !important;
    border-radius: 18px !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .profile-overview-left {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
  }

  .profile-avatar.large {
    width: 64px !important;
    height: 64px !important;
    font-size: 1.6rem !important;
    margin: 0 auto 8px !important;
  }

  .profile-info-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .profile-history-item {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    border-radius: 16px !important;
  }

  .profile-history-item > div:first-child {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .profile-history-item > div:last-child {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .profile-history-item .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center;
  }

  .profile-dashboard .panel.profile-panel {
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .profile-actions-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* =======================================================
   AUTH PAGES (LOGIN.PHP & REGISTER.PHP) POLISH
   ======================================================= */
@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem 1.25rem !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 28px rgba(2, 21, 54, 0.08) !important;
  }

  .auth-card h2 {
    font-size: 1.35rem !important;
  }

  .auth-card p {
    font-size: 0.85rem !important;
  }

  .auth-form .form-grid.two-cols {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .auth-card .btn {
    padding: 13px !important;
    font-size: 0.95rem !important;
    border-radius: 12px !important;
  }

  .container {
    padding-left: 24px !important;
    padding-right: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .nav-wrapper {
    left: -24px !important;
    right: -24px !important;
    padding: 16px 24px 20px !important;
  }

  .topbar-inner {
    padding: 12px 4px !important;
  }
}

@media (max-width: 360px) {
  .auth-card {
    padding: 1.25rem 1rem !important;
    border-radius: 16px !important;
  }

  .auth-card h2 {
    font-size: 1.2rem !important;
  }
}

/* =======================================================
   FOOTER & GENERAL MOBILE POLISH
   ======================================================= */
@media (max-width: 768px) {
  .site-footer {
    padding: 24px 0 20px !important;
  }

  .footer-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }

  .footer-links {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .footer-links a {
    font-size: 0.82rem !important;
  }

  .site-footer .brand-text {
    font-size: 1.1rem !important;
  }

  /* Tap targets and prevent horizontal scroll */
  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  body,
  main,
  .site-shell {
    overflow-x: hidden;
  }
}

/* ==========================================================================
   Hasil Rekomendasi: Guest Callout, Result Tabs & Suitability Badges
   ========================================================================== */
.guest-history-callout {
  background: linear-gradient(135deg, #021536 0%, #0d2a63 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px rgba(2, 21, 54, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.guest-history-callout .guest-btn-reg {
  background: #2563eb;
  color: #ffffff !important;
  border: none;
  padding: 11px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
}

.guest-history-callout .guest-btn-reg:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

.guest-history-callout .guest-btn-login {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.guest-history-callout .guest-btn-login:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.result-tabs-nav {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.5rem 0.75rem 0;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.result-tabs-nav::-webkit-scrollbar {
  display: none;
}

.result-tab-btn {
  padding: 0.9rem 1.35rem;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 14px 14px 0 0;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: transparent;
  color: #64748b;
  border-top: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.result-tab-btn:hover {
  color: #021536;
  background: rgba(255, 255, 255, 0.6);
}

.result-tab-btn.active {
  background: #ffffff;
  color: #021536;
  border-top: 3px solid #021536;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.03);
}

.result-tab-btn[data-tab-target="tab-sangat-sesuai"].active {
  color: #059669;
  border-top-color: #059669;
}

.result-tab-btn[data-tab-target="tab-sesuai"].active {
  color: #0284c7;
  border-top-color: #0284c7;
}

.result-tab-btn[data-tab-target="tab-tidak-sesuai"].active {
  color: #dc2626;
  border-top-color: #dc2626;
}

.result-tab-btn[data-tab-target="tab-semua"].active {
  color: #021536;
  border-top-color: #021536;
}

.tab-badge {
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.3;
}

.tab-badge-sangat {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.tab-badge-sesuai {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.tab-badge-tidak {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.tab-badge-semua {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.result-tab-pane {
  display: none;
}

.result-tab-pane.active {
  display: block;
}

.tab-info-banner {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
  border-bottom: 1px solid #f1f5f9;
}

.tab-info-banner.sangat {
  background: #f0fdf4;
  color: #166534;
  border-left: 4px solid #16a34a;
}

.tab-info-banner.sesuai {
  background: #f0f9ff;
  color: #075985;
  border-left: 4px solid #0284c7;
}

.tab-info-banner.tidak {
  background: #fff7ed;
  color: #9a3412;
  border-left: 4px solid #ea580c;
}

.tab-info-banner.semua {
  background: #f8fafc;
  color: #334155;
  border-left: 4px solid #64748b;
}

.badge-suitability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-suitability.sangat-sesuai {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.badge-suitability.sesuai {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.badge-suitability.tidak-sesuai {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.result-product-row {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid #f1f5f9;
  display: grid;
  grid-template-columns: 55px 1fr 160px 140px 130px;
  align-items: center;
  gap: 1.25rem;
  transition: background-color 0.15s ease;
}

.result-product-row:hover {
  background-color: #fbfcfe;
}

.result-product-row:last-child {
  border-bottom: none;
}

@media (max-width: 992px) {
  .result-product-row {
    grid-template-columns: 50px 1fr 140px 120px;
    gap: 1rem;
  }
  .result-product-row .product-btn-col {
    grid-column: 1 / -1;
    text-align: right;
    margin-top: 0.25rem;
  }
}

@media (max-width: 768px) {
  .result-tabs-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 10px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    overflow-x: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .result-tab-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 12px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #ffffff !important;
    gap: 6px !important;
    white-space: nowrap !important;
    text-align: left !important;
    min-height: 42px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  }

  .result-tab-btn span:first-of-type {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .result-tab-btn.active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  }

  .result-tab-btn[data-tab-target="tab-sangat-sesuai"].active {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border-color: #a7f3d0 !important;
  }

  .result-tab-btn[data-tab-target="tab-sesuai"].active {
    background: #f0f9ff !important;
    color: #0284c7 !important;
    border-color: #bae6fd !important;
  }

  .result-tab-btn[data-tab-target="tab-tidak-sesuai"].active {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border-color: #fecaca !important;
  }

  .result-tab-btn[data-tab-target="tab-semua"].active {
    background: #021536 !important;
    color: #ffffff !important;
    border-color: #021536 !important;
  }

  .result-tab-btn[data-tab-target="tab-semua"].active .tab-badge-semua {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
  }

  .result-tab-btn[data-tab-target="tab-semua"].active i {
    color: #ffffff !important;
  }

  .result-product-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.85rem !important;
    padding: 1.15rem 1.25rem !important;
    position: relative !important;
  }

  .result-product-row .product-rank-col {
    position: absolute !important;
    top: 1.15rem !important;
    right: 1.25rem !important;
  }

  .result-product-row .product-info-col {
    padding-right: 48px !important;
  }

  .result-product-row .product-meta-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .result-product-row .product-btn-col {
    width: 100% !important;
    margin-top: 0.25rem !important;
  }

  .result-product-row .product-btn-col a {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 16px !important;
    font-size: 0.9rem !important;
  }
}

