:root {
  --deep: #073F43;
  --teal: #0D6868;
  --mint: #DDF3EA;
  --pale: #F4F9F6;
  --ink: #173638;
  --muted: #718584;
  --white: #FFFFFF;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--pale);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
button { font: inherit; }
.topbar {
  height: 76px;
  padding: 0 max(6%, calc((100% - 1100px)/2));
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e9f0ed;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--deep); text-decoration: none;
  font-size: 21px; font-weight: 800; letter-spacing: -1px;
}
.brand-icon {
  width: 38px; height: 38px; border-radius: 13px;
  display: grid; place-items: center;
  color: white; background: var(--deep);
}
.brand-dot { color: #45A98C; }
.brand small {
  display: block; font-size: 8px; letter-spacing: 1.5px;
  color: var(--muted); font-weight: 700;
}
.status {
  color: var(--muted); font-size: 11px;
  background: var(--pale); padding: 9px 13px; border-radius: 20px;
}
.status span {
  display: inline-block; width: 7px; height: 7px;
  background: #42A987; border-radius: 50%; margin-right: 6px;
}
.container { max-width: 1000px; margin: auto; padding: 45px 24px 120px; }
.eyebrow {
  color: var(--teal); font-size: 10px;
  font-weight: 800; letter-spacing: 2px;
}
.welcome h1 {
  font-size: clamp(36px, 7vw, 58px);
  letter-spacing: -2.5px; line-height: 1.08; margin: 13px 0;
  color: var(--deep);
}
.welcome h1 span { color: #43A88A; }
.subtext { color: var(--muted); font-size: 14px; }
.overview {
  margin: 35px 0 42px; padding: 27px 30px;
  border-radius: 22px; background: var(--deep);
  color: white; display: flex; justify-content: space-between;
  align-items: center; overflow: hidden; position: relative;
}
.overview .eyebrow { color: #9ADBC5; }
.overview h2 { margin: 10px 0; font-size: 22px; }
.overview p:last-child { color: #C2DAD4; font-size: 13px; }
.orb {
  width: 95px; height: 95px; flex: 0 0 95px;
  display: grid; place-items: center; border-radius: 50%;
  background: #145A5A; color: #A9E8D1; font-size: 42px;
  box-shadow: 0 0 0 17px #104D50;
  margin: 0 20px;
}
.section-heading {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 18px;
}
.section-heading h2 { margin: 5px 0; font-size: 23px; }
.small-label { color: var(--muted); font-size: 10px; letter-spacing: 1px; }
.feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px;
}
.feature-card {
  min-height: 190px; text-align: left; padding: 22px;
  border: 1px solid #e4eeea; border-radius: 18px;
  background: white; color: var(--ink);
  display: flex; flex-direction: column; align-items: flex-start;
  cursor: pointer; transition: .2s;
}
.feature-card:hover { transform: translateY(-3px); border-color: #83CBB0; }
.feature-card.featured {
  background: #E5F4ED; border-color: #CDE8DA;
}
.feature-icon {
  width: 37px; height: 37px; display: grid; place-items: center;
  border-radius: 12px; background: var(--mint);
  color: var(--teal); font-size: 21px; margin-bottom: 13px;
}
.feature-tag {
  font-size: 9px; letter-spacing: 1.4px;
  color: var(--teal); font-weight: 800; margin-bottom: 5px;
}
.feature-card strong { font-size: 16px; margin-bottom: 7px; }
.feature-card > span:not(.feature-icon):not(.feature-tag) {
  color: var(--muted); font-size: 12px; line-height: 1.5;
}
.feature-card .feature-link {
  margin-top: auto; padding-top: 13px; color: var(--teal) !important;
  font-weight: 700;
}
.notice {
  margin-top: 24px; padding: 16px; border-radius: 14px;
  background: #EDF3F1; display: flex; gap: 12px;
  color: var(--muted); font-size: 11px; line-height: 1.6;
}
.notice p { margin: 0; }
.notice strong { color: var(--deep); }
.module-view {
  background: white; padding: 25px; border-radius: 18px;
  margin-top: 20px; min-height: 220px;
}
.module-view h2 { color: var(--deep); }
.back-button {
  border: 0; background: transparent; color: var(--teal);
  cursor: pointer; padding: 0; font-weight: 700;
}
.coming-soon {
  margin-top: 25px; background: var(--pale);
  border-radius: 12px; padding: 20px; color: var(--muted);
  font-size: 13px;
}
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: center; gap: 0;
  background: rgba(255,255,255,.96); border-top: 1px solid #e6eeeb;
  padding: 9px 8px max(9px, env(safe-area-inset-bottom));
  backdrop-filter: blur(12px);
}
.nav-item {
  border: 0; background: transparent; color: var(--muted);
  min-width: 65px; padding: 5px 8px; font-size: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer;
}
.nav-item span { font-size: 20px; }
.nav-item.active { color: var(--teal); font-weight: 800; }
@media (min-width: 760px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-card { min-height: 215px; }
  .bottom-nav { left: 50%; right: auto; transform: translateX(-50%);
    width: min(600px, 95%); border: 1px solid #e6eeeb;
    border-radius: 18px 18px 0 0; }
}
@media (max-width: 430px) {
  .container { padding: 32px 17px 110px; }
  .overview { padding: 22px 19px; }
  .orb { width: 58px; height: 58px; flex-basis: 58px;
    margin-right: 8px; font-size: 28px; box-shadow: 0 0 0 10px #104D50; }
  .feature-grid { gap: 10px; }
  .feature-card { padding: 16px; min-height: 190px; }
  .nav-item { min-width: 0; flex: 1; }
}


/* ===== CHILLIPOP AI ANALYSIS ===== */
.analysis-view {
  background: white;
  padding: 25px;
  border-radius: 20px;
  margin-top: 20px;
}
.analysis-view h2 { color: var(--deep); margin-bottom: 8px; }
.analysis-intro { color: var(--muted); font-size: 13px; line-height: 1.6; }
.upload-card {
  margin-top: 22px;
  padding: 22px;
  background: var(--pale);
  border: 1px solid #e4eeea;
  border-radius: 17px;
}
.upload-area {
  min-height: 155px;
  border: 2px dashed #A9D9C7;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  color: var(--deep);
  text-align: center;
}
.upload-area span:last-child { color: var(--muted); font-size: 11px; }
.upload-symbol { font-size: 30px; color: var(--teal); }
#gum-image { display: none; }
#image-preview {
  display: block;
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  margin: 18px auto;
  border-radius: 12px;
}
.analyze-button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px;
  margin-top: 18px;
  background: var(--deep);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.analyze-button:disabled { opacity: .45; cursor: not-allowed; }
.analysis-status {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.results-card {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #DCEDE5;
  border-radius: 16px;
}
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.result-item {
  background: var(--pale);
  border-radius: 13px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.result-item span { color: var(--muted); font-size: 12px; }
.result-item strong { color: var(--deep); font-size: 20px; }
.result-item small { color: var(--teal); font-size: 11px; }
.result-model { color: var(--muted); font-size: 11px; }
.analysis-disclaimer {
  margin-top: 18px;
  padding: 15px;
  border-radius: 13px;
  background: #EDF3F1;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.analysis-disclaimer strong { color: var(--deep); }
.analysis-disclaimer p { margin-bottom: 0; }
@media (max-width: 430px) {
  .analysis-view { padding: 18px; }
  .result-grid { grid-template-columns: 1fr; }
}


/* STEP 18.40 - Health Journal */
.journal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  color: #527276;
  font-size: 0.9rem;
}

.journal-clear {
  border: 1px solid #d9e5e3;
  background: #fff;
  color: #8b4545;
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
}

.journal-record {
  background: #fff;
  border: 1px solid #e1ebea;
  border-radius: 16px;
  padding: 17px;
  margin-bottom: 13px;
}

.journal-date {
  color: #668184;
  font-size: 0.8rem;
  margin: 0 0 9px;
}

.journal-heading {
  display: block;
  color: #073F43;
  margin-bottom: 10px;
}

.journal-details p {
  margin: 7px 0;
  color: #34585b;
  font-size: 0.92rem;
}

.journal-record small {
  display: block;
  color: #71888a;
  margin-top: 10px;
}

.journal-empty {
  padding: 22px;
  border: 1px dashed #cbdcda;
  border-radius: 14px;
  color: #668184;
  line-height: 1.6;
}


/* Film Usage Tracking */
.usage-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.usage-stat {
  padding: 18px;
  border: 1px solid var(--border-color, #dddddd);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.usage-stat span {
  font-size: 1.7rem;
  font-weight: 700;
}
.usage-stat small { opacity: .7; }
.usage-form {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
.usage-form input, .usage-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid var(--border-color, #cccccc);
  border-radius: 10px;
  font: inherit;
}
.usage-submit {
  padding: 13px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.usage-history-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
}
.usage-record {
  padding: 15px;
  margin: 12px 0;
  border: 1px solid var(--border-color, #dddddd);
  border-radius: 12px;
}
.usage-record p { overflow-wrap: anywhere; }
.usage-delete {
  padding: 7px 12px;
  border: 1px solid var(--border-color, #cccccc);
  border-radius: 8px;
  cursor: pointer;
}



/* CHILLIPOP SOFT LUXURY BIOMEDICAL THEME */

:root {
  --pink: #EFCFD9;
  --pink-soft: #F9E9EE;
  --pink-deep: #A66F83;
  --sage: #C9DCCF;
  --sage-soft: #EAF2EC;
  --sage-deep: #587565;
  --blue: #D6E5EF;
  --blue-deep: #607F96;
  --cream: #F8F3EB;
  --ivory: #FFFCF8;
  --mauve: #A58C9A;
  --ink: #514B50;
  --muted: #887D83;
  --line: #E9DDE1;
  --shadow-soft: 0 10px 30px rgba(119, 91, 105, 0.08);
}

* {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "IBM Plex Sans Thai", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(239,207,217,.34), transparent 28%),
    radial-gradient(circle at 95% 35%, rgba(214,229,239,.30), transparent 30%),
    linear-gradient(145deg, #FFFCF8 0%, #F9F5F1 55%, #F3F7F2 100%);
}

button,
input,
textarea {
  font-family: "IBM Plex Sans Thai", "Segoe UI", sans-serif;
}

h1, h2, h3,
.brand,
.overview h2,
.welcome h1 {
  font-family: "Cormorant Garamond", "Mali", Georgia, serif;
}

.topbar {
  background: rgba(255, 252, 248, .88);
  border-bottom: 1px solid rgba(233, 221, 225, .8);
  backdrop-filter: blur(16px);
}

.brand {
  color: var(--pink-deep);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.brand-icon {
  background: linear-gradient(145deg, #F2D6DF, #D7E8DD);
  color: #946779;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow-soft);
}

.brand-dot {
  color: #B98A9C;
}

.brand small {
  font-family: "IBM Plex Sans Thai", sans-serif;
  color: var(--muted);
  letter-spacing: .16em;
}

.status {
  color: var(--sage-deep);
  background: var(--sage-soft);
  border: 1px solid #D9E8DC;
  border-radius: 999px;
}

.status span {
  background: #8BAF98;
}

.eyebrow,
.small-label {
  color: var(--pink-deep);
  letter-spacing: .14em;
}

.welcome h1 {
  color: #65545E;
  font-weight: 600;
  letter-spacing: -.025em;
}

.welcome h1 span {
  color: var(--pink-deep);
}

.subtext,
.overview p:last-child {
  color: var(--muted);
}

.overview {
  background: linear-gradient(125deg, #F3E1E7, #E6EFE8 72%, #E7EFF4);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.overview .eyebrow {
  color: #956C7D;
}

.overview h2 {
  color: #65545E;
}

.orb {
  background: rgba(255,255,255,.55);
  color: #A77A8D;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow-soft);
}

.section-heading h2,
.module-view h2,
.analysis-view h2 {
  color: #6E5964;
}

.feature-card {
  background: rgba(255,252,248,.88);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(119,91,105,.12);
}

.feature-card.featured {
  background: linear-gradient(145deg, #F7E7EC, #EDF3EC);
  border-color: #E8D5DD;
}

.feature-icon {
  background: var(--pink-soft);
  border-radius: 15px;
}

.feature-tag {
  background: var(--sage-soft);
  color: var(--sage-deep);
  border-radius: 999px;
}

.feature-card strong {
  color: #705C66;
}

.feature-card > span:not(.feature-icon):not(.feature-tag) {
  color: var(--muted);
}

.feature-card .feature-link {
  color: var(--pink-deep);
}

.notice {
  background: var(--cream);
  border: 1px solid #EDE3D7;
  border-radius: 18px;
}

.notice strong {
  color: #8C7160;
}

.notice p {
  color: #81766F;
}

.module-view,
.analysis-view {
  color: var(--ink);
}

.back-button {
  background: #F5E7EC;
  color: #956B7D;
  border: 1px solid #EBD7DF;
  border-radius: 999px;
}

.upload-card,
.upload-area,
.results-card,
.result-item,
.usage-stat,
.usage-form,
.journal-record,
.usage-record {
  border-radius: 20px;
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.upload-card,
.results-card,
.usage-form,
.journal-record,
.usage-record,
.usage-stat {
  background: rgba(255,252,248,.94);
}

.upload-area {
  background: linear-gradient(145deg, #FAEDF1, #EDF4EF);
  border: 1.5px dashed #D8BAC7;
}

.upload-symbol {
  color: var(--pink-deep);
}

.analyze-button,
.usage-submit {
  background: linear-gradient(110deg, #B98296, #8EA997);
  color: white;
  border: none;
  border-radius: 14px;
  box-shadow: 0 7px 18px rgba(158,116,137,.18);
}

.analyze-button:hover,
.usage-submit:hover {
  filter: brightness(1.04);
}

.result-item {
  background: linear-gradient(145deg, #F8EDF0, #F1F5F0);
}

.result-item span,
.result-item small {
  color: var(--muted);
}

.result-item strong {
  color: #765C69;
}

.result-model {
  color: var(--sage-deep);
}

.analysis-disclaimer {
  background: #F2F5F1;
  border: 1px solid #DCE8DE;
  border-radius: 16px;
}

.analysis-disclaimer strong {
  color: var(--sage-deep);
}

.analysis-disclaimer p {
  color: #6E7D72;
}

.journal-toolbar,
.usage-history-heading {
  color: #765F6A;
}

.journal-clear,
.usage-delete {
  background: #F7E8ED;
  color: #986D7F;
  border: 1px solid #EBD5DE;
  border-radius: 999px;
}

.journal-record {
  border-left: 3px solid #D8B0C0;
}

.journal-date,
.journal-record small {
  color: var(--muted);
}

.journal-heading {
  color: #8D687A;
}

.journal-details p {
  color: #655B60;
}

.journal-empty {
  color: var(--muted);
}

.usage-summary {
  gap: 12px;
}

.usage-stat {
  background: linear-gradient(145deg, #F7E9ED, #EDF3EE);
  border: 1px solid var(--line);
}

.usage-stat span {
  color: #8D687A;
}

.usage-stat small {
  color: var(--muted);
}

.usage-form input,
.usage-form textarea {
  background: #FFFCF8;
  color: var(--ink);
  border: 1px solid #E6D9DE;
  border-radius: 12px;
}

.bottom-nav {
  background: rgba(255,252,248,.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-item {
  color: #9B8C93;
}

.nav-item.active {
  color: var(--pink-deep);
}

.backup-tools {
  background: linear-gradient(135deg, #F8E9EE, #EDF3ED 75%, #EEF4F8);
  border: 1px solid #E8D9DF;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.backup-tools h3 {
  font-family: "Mali", "IBM Plex Sans Thai", sans-serif;
  color: #936A7C;
}

.backup-tools > p {
  color: #81757B;
}

.backup-actions button {
  background: #A8798D;
  border-color: #A8798D;
  border-radius: 999px;
}

.backup-actions label {
  background: #E4EEE6;
  color: #587565;
  border-color: #D2E2D6;
  border-radius: 999px;
}

#backup-status {
  color: #647D6C;
}

@media (max-width: 430px) {
  .overview {
    border-radius: 20px;
  }

  .feature-card {
    border-radius: 18px;
  }

  .backup-tools {
    padding: 16px;
  }
}

/* END CHILLIPOP SOFT LUXURY BIOMEDICAL THEME */



/* CHILLIPOP PREMIUM EDITORIAL V2 */

/* Stronger editorial hierarchy */
.welcome {
  position: relative;
  padding: 12px 0 28px;
  border-bottom: 1px solid #E5D4DA;
  margin-bottom: 28px;
}

.welcome .eyebrow {
  color: #98677B;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
}

.welcome h1 {
  color: #51404B;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 760px;
}

.welcome h1 span {
  color: #A45F79;
}

.welcome .subtext {
  color: #756770;
  font-size: 15px;
  line-height: 1.8;
  max-width: 580px;
}

/* More defined platform overview */
.overview {
  background: linear-gradient(
    115deg,
    #E9C9D5 0%,
    #DCE7DD 58%,
    #D5E3ED 100%
  );
  border: 1px solid #D8C2CB;
  border-left: 5px solid #A66F83;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(105, 75, 91, 0.12);
  padding: 32px 34px;
}

.overview .eyebrow {
  color: #86566B;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.overview h2 {
  color: #55434E;
  font-size: 25px;
  font-weight: 600;
}

.overview p:last-child {
  color: #6F626A;
  line-height: 1.7;
}

.orb {
  background: rgba(255, 252, 248, 0.82);
  color: #A66F83;
  box-shadow: 0 8px 24px rgba(105, 75, 91, 0.10);
}

/* Clear section separation */
.section-heading {
  padding: 0 0 15px;
  margin: 38px 0 20px;
  border-bottom: 1px solid #DDC9D1;
  position: relative;
}

.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 66px;
  height: 3px;
  border-radius: 3px;
  background: #A66F83;
}

.section-heading .eyebrow {
  color: #98677B;
  font-size: 10px;
  letter-spacing: 2px;
}

.section-heading h2 {
  color: #51404B;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.small-label {
  color: #806D77;
  font-weight: 700;
  letter-spacing: 1.4px;
}

/* Feature cards with distinct identities */
.feature-grid {
  gap: 17px;
}

.feature-card {
  min-height: 215px;
  padding: 23px;
  border: 1px solid #E2D3D9;
  border-top: 4px solid #D9B5C3;
  border-radius: 20px;
  background: #FFFCF8;
  box-shadow: 0 9px 24px rgba(105, 75, 91, 0.075);
}

.feature-card:nth-child(2) {
  border-top-color: #A9C6B2;
  background: #F6FAF6;
}

.feature-card:nth-child(3) {
  border-top-color: #AFC8D9;
  background: #F5F9FC;
}

.feature-card:nth-child(4) {
  border-top-color: #C5A9B8;
  background: #FAF6F8;
}

.feature-card.featured {
  background: linear-gradient(145deg, #F4E3E9, #F8F2F1);
  border-color: #E4CAD4;
  border-top-color: #A66F83;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(105, 75, 91, 0.13);
  border-color: #CDA9B8;
}

.feature-card strong {
  color: #55434E;
  font-size: 16px;
  font-weight: 750;
}

.feature-card > span:not(.feature-icon):not(.feature-tag) {
  color: #786B73;
  line-height: 1.65;
}

.feature-icon {
  border-radius: 13px;
  background: #F2E1E8;
  color: #95647A;
  padding: 10px;
}

.feature-card:nth-child(2) .feature-icon {
  background: #E4EEE6;
  color: #587565;
}

.feature-card:nth-child(3) .feature-icon {
  background: #E5EEF4;
  color: #607F96;
}

.feature-card:nth-child(4) .feature-icon {
  background: #EEE5EB;
  color: #8B6D80;
}

/* More defined navigation */
.bottom-nav {
  background: rgba(255, 252, 248, 0.97);
  border: 1px solid #E2D1D9;
  box-shadow: 0 -8px 28px rgba(105, 75, 91, 0.08);
  backdrop-filter: blur(18px);
}

.nav-item {
  color: #8B7C84;
  font-weight: 600;
  transition: color .2s ease;
}

.nav-item.active {
  color: #965D75;
  font-weight: 800;
}

.nav-item.active span {
  color: #965D75;
}

/* Keep layout comfortable on small screens */
@media (max-width: 430px) {
  .welcome {
    padding-bottom: 22px;
  }

  .welcome h1 {
    font-size: clamp(34px, 9vw, 44px);
  }

  .overview {
    padding: 23px 19px;
  }

  .overview h2 {
    font-size: 21px;
  }

  .section-heading {
    margin-top: 30px;
  }

  .section-heading h2 {
    font-size: 23px;
  }

  .feature-grid {
    gap: 12px;
  }

  .feature-card {
    min-height: 195px;
    padding: 16px;
  }
}

/* END CHILLIPOP PREMIUM EDITORIAL V2 */



/* CHILLIPOP SIGNATURE TYPOGRAPHY V1 */

/* Main reading font */
body,
button,
input,
textarea,
select {
  font-family: "IBM Plex Sans Thai", sans-serif;
  letter-spacing: 0;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

/* Signature display typography */
.welcome h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 600;
  line-height: .99;
  letter-spacing: -.045em;
  max-width: 790px;
  margin: 18px 0 17px;
}

.welcome h1 span {
  font-style: italic;
  font-weight: 600;
}

/* Brand identity */
.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.025em;
}

.brand small {
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

/* Editorial labels */
.eyebrow,
.small-label,
.feature-tag {
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.6;
  text-transform: uppercase;
}

/* Section titles */
.section-heading h2,
.module-view h2,
.analysis-view h2 {
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.035em;
}

/* Overview title keeps editorial character */
.overview h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
}

/* Feature card typography */
.feature-card strong {
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.02em;
}

.feature-card > span:not(.feature-icon):not(.feature-tag) {
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: .005em;
}

/* Body copy */
.subtext,
.overview p:last-child,
.notice p,
.analysis-intro,
.analysis-disclaimer p {
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: .005em;
}

/* Analysis results */
.result-item strong {
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.025em;
}

.result-item span,
.result-item small,
.result-model {
  font-family: "IBM Plex Sans Thai", sans-serif;
  line-height: 1.65;
}

/* Journal and usage */
.journal-heading,
.usage-history-heading {
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-weight: 700;
  letter-spacing: -.02em;
}

.journal-details p,
.usage-record p,
.usage-stat span,
.usage-stat small {
  font-family: "IBM Plex Sans Thai", sans-serif;
  line-height: 1.8;
}

/* Navigation */
.nav-item {
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
}

/* Buttons */
button,
.back-button,
.backup-actions label {
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-weight: 650;
  letter-spacing: .005em;
}

/* Mobile typography */
@media (max-width: 430px) {
  .welcome h1 {
    font-size: clamp(42px, 10vw, 54px);
    line-height: 1.03;
  }

  .overview h2 {
    font-size: 27px;
  }

  .section-heading h2,
  .module-view h2,
  .analysis-view h2 {
    font-size: 22px;
  }

  .feature-card strong {
    font-size: 14px;
  }

  .feature-card > span:not(.feature-icon):not(.feature-tag) {
    font-size: 12px;
    line-height: 1.75;
  }
}

/* END CHILLIPOP SIGNATURE TYPOGRAPHY V1 */


/* ===== CHILLIPOP BOTANICAL STORY V2 ===== */

.botanical-story {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  padding: 42px;
  margin: 35px 0 48px;
  border-radius: 30px;
  border: 1px solid #E4CED7;
  background:
    radial-gradient(ellipse at 92% 8%,
      rgba(255,255,255,.9), transparent 34%),
    radial-gradient(ellipse at 5% 90%,
      rgba(214,232,218,.72), transparent 38%),
    linear-gradient(135deg,
      #F4E3E9 0%,
      #F8F0EA 48%,
      #E8F0E9 100%);
  box-shadow: 0 18px 45px rgba(105,75,91,.10);
}

.botanical-content {
  position: relative;
  z-index: 2;
}

.botanical-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.botanical-ring {
  position: absolute;
  border: 1px solid rgba(166,111,131,.15);
  border-radius: 50%;
}

.ring-one {
  width: 300px;
  height: 300px;
  right: -105px;
  top: -130px;
}

.ring-two {
  width: 210px;
  height: 210px;
  right: -60px;
  top: -85px;
}

.botanical-spark {
  position: absolute;
  right: 14%;
  top: 27%;
  color: rgba(166,111,131,.22);
  font-size: 45px;
}

.botanical-leaf {
  position: absolute;
  left: -15px;
  bottom: 13%;
  font-size: 95px;
  color: rgba(88,117,101,.10);
  transform: rotate(-25deg);
}

.botanical-topline,
.botanical-divider,
.botanical-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.botanical-kicker,
.botanical-edition,
.botanical-overline,
.botanical-category,
.botanical-number,
.film-story-label,
.botanical-divider,
.botanical-footer {
  font-family: "IBM Plex Sans Thai", sans-serif;
  letter-spacing: 1.3px;
  font-size: 10px;
  font-weight: 700;
}

.botanical-kicker {
  color: #94677A;
}

.botanical-edition {
  color: #887D83;
  font-size: 9px;
}

.botanical-intro {
  max-width: 670px;
  padding: 43px 0 32px;
}

.botanical-overline {
  color: #A66F83;
  margin-bottom: 14px;
}

.botanical-intro h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #65505C;
  font-size: clamp(37px, 5vw, 57px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.035em;
  margin: 0 0 16px;
}

.botanical-intro h2 em {
  color: #A66F83;
  font-weight: 500;
}

.botanical-description {
  max-width: 520px;
  color: #75666D;
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
}

.botanical-divider {
  border-top: 1px solid rgba(166,111,131,.24);
  border-bottom: 1px solid rgba(166,111,131,.24);
  padding: 13px 0;
  color: #916A7C;
  margin-bottom: 18px;
}

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

.botanical-item {
  position: relative;
  min-width: 0;
  padding: 22px;
  min-height: 180px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 20px;
  background: rgba(255,252,248,.76);
  box-shadow: 0 7px 20px rgba(105,75,91,.055);
  transition: transform .2s ease, box-shadow .2s ease;
}

.botanical-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(105,75,91,.10);
}

.botanical-number {
  position: absolute;
  top: 17px;
  right: 19px;
  color: #A99AA0;
}

.botanical-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 23px;
  margin-bottom: 14px;
}

.fingerroot .botanical-symbol {
  background: #F3E1E8;
  color: #A66F83;
}

.licorice .botanical-symbol {
  background: #E5EEE5;
  color: #587565;
}

.menthol .botanical-symbol {
  background: #E4EEF4;
  color: #607F96;
}

.fruity .botanical-symbol {
  background: #F7ECDD;
  color: #A17D52;
}

.botanical-category {
  display: block;
  color: #99858E;
  font-size: 9px;
  letter-spacing: 1.1px;
}

.botanical-item h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #66515D;
  font-size: 24px;
  line-height: 1.2;
  margin: 6px 0 3px;
}

.botanical-item p {
  color: #776A70;
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}

.botanical-detail {
  display: block;
  color: #A18C95;
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-size: 10px;
  margin-top: 10px;
}

.film-story {
  display: flex;
  align-items: center;
  gap: 17px;
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  padding: 23px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 20px;
  background: linear-gradient(
    115deg,
    rgba(255,255,255,.85),
    rgba(233,241,235,.88)
  );
}

.film-story-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #EBD9E1;
  color: #96677D;
  font-size: 27px;
}

.film-story-label {
  color: #987083;
  font-size: 9px;
}

.film-story h3 {
  font-family: "IBM Plex Sans Thai", sans-serif;
  color: #5F555A;
  font-size: 15px;
  margin: 5px 0;
}

.film-story p {
  font-family: "IBM Plex Sans Thai", sans-serif;
  color: #81757B;
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}

.film-story-mark {
  margin-left: auto;
  color: rgba(166,111,131,.16);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 45px;
  font-weight: 700;
}

.botanical-footer {
  color: #947F89;
  font-size: 9px;
  margin-top: 22px;
}

@media (max-width: 600px) {
  .botanical-story {
    padding: 24px 18px;
    border-radius: 23px;
  }

  .botanical-intro {
    padding: 33px 0 24px;
  }

  .botanical-intro h2 {
    font-size: 39px;
  }

  .botanical-description {
    font-size: 13px;
  }

  .botanical-grid {
    gap: 9px;
  }

  .botanical-item {
    padding: 15px 12px;
    min-height: 178px;
    border-radius: 16px;
  }

  .botanical-item h3 {
    font-size: 20px;
  }

  .botanical-category {
    font-size: 8px;
  }

  .botanical-item p {
    font-size: 11px;
  }

  .film-story {
    padding: 17px 13px;
    gap: 11px;
  }

  .film-story h3 {
    font-size: 13px;
  }

  .film-story p {
    font-size: 11px;
  }

  .film-story-mark {
    display: none;
  }

  .botanical-footer {
    font-size: 8px;
  }
}

/* ===== END BOTANICAL STORY V2 ===== */


/* STEP 62.5 — BOTANICAL IMAGE & REAL FILM SHOWCASE */

.botanical-hero-image {
  width: 100%;
  max-width: 760px;
  margin: 34px auto 42px;
  overflow: hidden;
  border-radius: 22px;
}

.botanical-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.botanical-hero-image figcaption {
  padding: 10px 4px 0;
  text-align: right;
  font-size: 10px;
  letter-spacing: 0.16em;
  opacity: 0.65;
}

.film-showcase {
  margin: 42px 0 34px;
  padding: 30px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.48);
}

.showcase-heading {
  margin-bottom: 24px;
}

.showcase-kicker {
  font-size: 10px;
  letter-spacing: 0.16em;
  opacity: 0.68;
}

.showcase-heading h3 {
  margin: 10px 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 500;
}

.showcase-heading h3 em {
  color: #9b7183;
}

.showcase-heading p,
.showcase-note {
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.75;
}

.showcase-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 18px;
}

.showcase-photo {
  min-width: 0;
  margin: 0;
}

.showcase-photo img {
  display: block;
  width: 100%;
  height: 310px;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
}

.showcase-photo-tall img {
  height: 370px;
}

.showcase-photo figcaption {
  padding: 11px 3px;
  font-size: 10px;
  letter-spacing: 0.14em;
  opacity: 0.7;
}

.showcase-note {
  margin: 12px 0 0;
  font-size: 11px;
}

@media (max-width: 600px) {
  .botanical-hero-image {
    margin: 24px auto 30px;
    border-radius: 16px;
  }

  .film-showcase {
    padding: 18px;
    margin: 30px 0;
  }

  .showcase-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .showcase-photo img,
  .showcase-photo-tall img {
    height: auto;
    max-height: 460px;
    object-fit: contain;
    background: rgba(255,255,255,0.35);
  }
}



/* STEP 62.7 — CHILLIPOP EDITORIAL LAYOUT */

.botanical-story {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 90% 12%, rgba(225,190,194,.30), transparent 34%),
    radial-gradient(ellipse at 5% 75%, rgba(190,207,184,.25), transparent 35%),
    linear-gradient(145deg, #fbf6ef 0%, #f6eee9 52%, #f8f3ed 100%);
  border: 1px solid rgba(160,126,119,.13);
  border-radius: 28px;
}

.botanical-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  align-items: center;
  column-gap: clamp(24px, 4vw, 54px);
  row-gap: 30px;
  padding: clamp(24px, 4vw, 54px);
}

.botanical-topline,
.botanical-divider,
.botanical-grid,
.film-story,
.film-showcase,
.botanical-footer {
  grid-column: 1 / -1;
  min-width: 0;
}

.botanical-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(130,105,100,.20);
}

.botanical-kicker,
.botanical-edition,
.botanical-overline,
.botanical-category,
.botanical-detail,
.botanical-divider,
.botanical-footer,
.showcase-kicker {
  letter-spacing: .13em;
}

.botanical-intro {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  max-width: 540px;
  margin: 0;
  padding: 20px 0;
}

.botanical-intro h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 5.3vw, 68px);
  line-height: .99;
  font-weight: 500;
  letter-spacing: -.035em;
  color: #354c43;
  margin: 14px 0 20px;
}

.botanical-intro h2 em {
  color: #a47783;
  font-weight: 400;
}

.botanical-description {
  max-width: 420px;
  font-size: 14px;
  line-height: 1.95;
  color: #6f7169;
}

.botanical-hero-image {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  align-self: center;
  position: relative;
  overflow: hidden;
  border-radius: 48% 48% 22px 22px;
  background: #eee2d9;
  box-shadow: 0 18px 45px rgba(91,70,63,.12);
}

.botanical-hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.botanical-hero-image figcaption {
  padding: 12px 16px;
  background: rgba(255,255,255,.72);
  color: #7c7770;
  font-size: 9px;
  letter-spacing: .17em;
}

.botanical-divider {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 0 13px;
  border-bottom: 1px solid rgba(130,105,100,.22);
  color: #77766c;
  font-size: 10px;
}

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

.botanical-item {
  position: relative;
  min-width: 0;
  min-height: 190px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(120,100,90,.10);
  border-radius: 20px;
  background: rgba(255,255,255,.66);
  box-shadow: 0 8px 24px rgba(91,70,63,.045);
  transition: transform .25s ease, box-shadow .25s ease;
}

.botanical-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(91,70,63,.09);
}

.botanical-item h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 29px;
  font-weight: 500;
  color: #46594c;
  margin: 12px 0 4px;
}

.botanical-item p {
  font-size: 13px;
  line-height: 1.7;
  color: #77756e;
}

.botanical-number {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  color: rgba(100,110,91,.55);
}

.botanical-symbol {
  font-size: 25px;
  color: #ad8790;
}

.botanical-detail {
  display: inline-block;
  margin-top: 13px;
  color: #8c8177;
  font-size: 9px;
}

.botanical-item.fingerroot { background: #f0eee4; }
.botanical-item.licorice { background: #f2e6e4; }
.botanical-item.menthol { background: #e9efea; }
.botanical-item.fruity { background: #f5eadf; }

.film-story {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 25px 28px;
  border-radius: 20px;
  background: #e9eee6;
  border: 1px solid rgba(100,120,95,.12);
}

.film-story h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  color: #46594c;
  margin: 6px 0;
}

.film-story p {
  font-size: 13px;
  line-height: 1.8;
  color: #73786e;
}

.film-story-mark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 48px;
  color: #a2ad9a;
}

.film-showcase {
  margin: 0;
  padding: clamp(20px, 3vw, 34px);
  border-radius: 22px;
  background: #f2e9e5;
}

.showcase-heading {
  margin-bottom: 22px;
}

.showcase-heading h3 {
  color: #46594c;
  font-size: clamp(30px, 4vw, 43px);
}

.showcase-gallery {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 20px;
}

.showcase-photo {
  padding: 10px;
  border-radius: 17px;
  background: rgba(255,255,255,.75);
}

.showcase-photo img,
.showcase-photo-tall img {
  width: 100%;
  height: 340px;
  object-fit: contain;
  border-radius: 11px;
  background: #fff;
}

.showcase-photo figcaption {
  padding: 12px 5px 5px;
  color: #77756e;
}

.showcase-note {
  margin-top: 18px;
  color: #77756e;
}

.botanical-footer {
  padding-top: 18px;
  border-top: 1px solid rgba(130,105,100,.20);
  color: #77766c;
  font-size: 9px;
}

@media (max-width: 720px) {
  .botanical-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 22px 18px;
  }

  .botanical-topline,
  .botanical-divider,
  .botanical-grid,
  .film-story,
  .film-showcase,
  .botanical-footer {
    grid-column: 1;
  }

  .botanical-intro {
    grid-column: 1;
    grid-row: auto;
    padding: 5px 0 0;
  }

  .botanical-intro h2 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .botanical-hero-image {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    border-radius: 24px;
  }

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

  .botanical-item {
    min-height: 175px;
    padding: 17px;
  }

  .botanical-item h3 {
    font-size: 23px;
  }

  .film-story {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 20px;
  }

  .film-story-mark {
    display: none;
  }

  .showcase-gallery {
    grid-template-columns: 1fr;
  }

  .showcase-photo img,
  .showcase-photo-tall img {
    height: auto;
    max-height: 440px;
  }

  .botanical-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
  }
}

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



/* STEP 63.1 GLOBAL BOTANICAL THEME START */

:root {
  --chilli-cream: #fffaf5;
  --chilli-blush: #f8e8e8;
  --chilli-pink: #e9bdc6;
  --chilli-rose: #bd7f91;
  --chilli-sage: #dce7d8;
  --chilli-green: #738b72;
  --chilli-ink: #51464a;
  --chilli-muted: #8e8080;
  --chilli-line: rgba(130, 105, 105, 0.14);
  --chilli-shadow: 0 18px 50px rgba(115, 83, 86, 0.10);
}

/* Full-page botanical atmosphere */

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 8% 8%,
      rgba(239, 208, 213, .58), transparent 34%),
    radial-gradient(ellipse at 92% 28%,
      rgba(215, 230, 210, .58), transparent 32%),
    radial-gradient(ellipse at 10% 76%,
      rgba(242, 225, 207, .52), transparent 34%),
    linear-gradient(145deg, #fffaf6 0%, #fbf4ef 48%, #f7f5ee 100%);
  color: var(--chilli-ink);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  width: 330px;
  height: 480px;
  opacity: .17;
  filter: blur(.2px);
  background:
    radial-gradient(ellipse at 50% 10%,
      transparent 0 18%, #9fb69b 19% 20%, transparent 21%),
    radial-gradient(ellipse at 28% 30%,
      #b6c9ad 0 10%, transparent 11%),
    radial-gradient(ellipse at 70% 43%,
      #c5d5bb 0 12%, transparent 13%),
    radial-gradient(ellipse at 30% 62%,
      #b6c9ad 0 11%, transparent 12%);
}

body::before {
  top: 4%;
  left: -190px;
  transform: rotate(-28deg);
}

body::after {
  right: -205px;
  bottom: 0;
  transform: rotate(155deg);
}

/* Main layout */

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  position: relative;
  z-index: 5;
  background: rgba(255, 250, 246, .78);
  border-bottom: 1px solid rgba(160, 130, 130, .12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand-icon {
  background: linear-gradient(145deg, #e8c2c9, #b9cdb5);
  box-shadow: 0 7px 20px rgba(160, 119, 127, .18);
}

.status {
  border: 1px solid rgba(115, 139, 114, .22);
  background: rgba(220, 231, 216, .58);
  border-radius: 999px;
  padding: 7px 13px;
}

/* Home hero */

.welcome {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(44px, 7vw, 88px) clamp(24px, 5vw, 64px);
  margin: 28px 0 30px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 34px;
  background:
    radial-gradient(circle at 88% 20%,
      rgba(255,255,255,.8), transparent 24%),
    radial-gradient(circle at 10% 100%,
      rgba(220,231,216,.72), transparent 38%),
    linear-gradient(120deg, #f8e8e8, #fff8f1 60%, #edf1e7);
  box-shadow: var(--chilli-shadow);
}

.welcome::after {
  content: "✿";
  position: absolute;
  z-index: -1;
  right: 5%;
  top: 4%;
  font-size: clamp(130px, 22vw, 270px);
  line-height: 1;
  color: rgba(173, 190, 158, .18);
  transform: rotate(-18deg);
}

.welcome .eyebrow {
  color: var(--chilli-green);
  letter-spacing: .2em;
}

.welcome h1 {
  max-width: 720px;
  color: #55454b;
  line-height: 1.08;
}

.welcome h1 span {
  color: var(--chilli-rose);
}

.welcome .subtext {
  max-width: 540px;
  color: #786c6d;
  line-height: 1.8;
}

/* Botanical story container */

.botanical-story {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 34px;
  background:
    radial-gradient(circle at 0% 0%,
      rgba(244, 219, 220, .8), transparent 34%),
    radial-gradient(circle at 100% 60%,
      rgba(222, 234, 215, .72), transparent 34%),
    linear-gradient(150deg, #fffaf5, #f9f2eb 55%, #f2f5ed);
  box-shadow: var(--chilli-shadow);
}

.botanical-content {
  position: relative;
  z-index: 1;
  padding: clamp(22px, 4vw, 48px);
}

.botanical-intro h2 {
  color: #594950;
}

.botanical-description {
  color: #817477;
  line-height: 1.85;
}

.botanical-hero-image {
  overflow: hidden;
  border-radius: 28px;
  border: 8px solid rgba(255,255,255,.68);
  box-shadow: 0 18px 40px rgba(111, 88, 86, .13);
}

.botanical-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* Ingredient gallery */

.botanical-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-block: 28px;
}

.botanical-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  overflow: hidden;
  padding: 23px;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 26px;
  box-shadow: 0 12px 30px rgba(104, 83, 78, .09);
  transition: transform .3s ease, box-shadow .3s ease;
}

.botanical-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 38px rgba(104, 83, 78, .14);
}

.botanical-item::after {
  content: "✧";
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 34px;
  opacity: .35;
}

.botanical-item.fingerroot {
  background:
    radial-gradient(circle at 88% 18%, #fff 0 8%, transparent 9%),
    linear-gradient(145deg, #f2e8dc, #fbf5ec);
}

.botanical-item.licorice {
  background:
    radial-gradient(circle at 88% 18%, #fff 0 8%, transparent 9%),
    linear-gradient(145deg, #eee6dc, #f8f1e9);
}

.botanical-item.menthol {
  background:
    radial-gradient(circle at 88% 18%, #fff 0 8%, transparent 9%),
    linear-gradient(145deg, #e5eee7, #f3f7f0);
}

.botanical-item.fruity {
  background:
    radial-gradient(circle at 88% 18%, #fff 0 8%, transparent 9%),
    linear-gradient(145deg, #f5e4e7, #fff3ed);
}

.ingredient-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(145px, 20vw, 225px);
  margin: 12px 0 15px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255,255,255,.42);
}

.ingredient-art::before {
  content: "";
  position: absolute;
  width: 75%;
  height: 75%;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
}

.ingredient-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 9px;
  transition: transform .45s ease;
}

.botanical-item:hover .ingredient-art img {
  transform: scale(1.06) rotate(-2deg);
}

.botanical-number,
.botanical-category,
.botanical-detail {
  position: relative;
  z-index: 1;
}

.botanical-item h3 {
  margin: 2px 0 6px;
  color: #594950;
  font-size: clamp(19px, 2vw, 25px);
}

.botanical-item p {
  color: #827477;
  line-height: 1.6;
}

.botanical-detail {
  margin-top: auto;
  padding-top: 12px;
  color: #8d777b;
  font-size: 12px;
  letter-spacing: .04em;
}

/* Product showcase */

.film-story,
.film-showcase {
  border-radius: 28px;
}

.film-story {
  background: linear-gradient(120deg, #e9eee3, #f8eee9);
  border: 1px solid rgba(255,255,255,.85);
}

.film-showcase {
  padding: clamp(20px, 4vw, 38px);
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 12px 34px rgba(110, 87, 84, .07);
}

.showcase-photo {
  overflow: hidden;
  border-radius: 22px;
  background: #f7f0e9;
  box-shadow: 0 12px 30px rgba(100, 78, 78, .12);
}

.showcase-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Feature cards */

.section-heading {
  position: relative;
  padding-top: 18px;
}

.section-heading h2 {
  color: #594950;
}

.feature-grid {
  gap: 18px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 25px;
  background: rgba(255, 252, 248, .83);
  box-shadow: 0 12px 30px rgba(110, 87, 84, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.feature-card::after {
  content: "✧";
  position: absolute;
  top: 10px;
  right: 16px;
  color: rgba(166, 139, 139, .4);
  font-size: 26px;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(110, 87, 84, .14);
}

.feature-card.featured {
  background: linear-gradient(145deg, #f5e3e6, #fff8f1);
}

.notice {
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 22px;
  background: rgba(237, 241, 231, .78);
}

/* Module and analysis surfaces */

.module-view,
.analysis-view {
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 30px;
  background: rgba(255, 251, 247, .88);
  box-shadow: var(--chilli-shadow);
  padding: clamp(20px, 4vw, 38px);
}

.upload-card,
.upload-area,
.results-card,
.result-item,
.usage-stat,
.usage-form,
.journal-record,
.usage-record {
  border-color: var(--chilli-line);
  border-radius: 20px;
}

.upload-card,
.results-card,
.usage-form,
.journal-record,
.usage-record,
.usage-stat {
  background: rgba(255,255,255,.76);
  box-shadow: 0 8px 24px rgba(110, 87, 84, .06);
}

button,
.back-button,
.analyze-button,
.usage-submit {
  transition: transform .2s ease, box-shadow .2s ease;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(189, 127, 145, .4);
  outline-offset: 3px;
}

/* Bottom navigation */

.bottom-nav {
  background: rgba(255, 250, 246, .9);
  border-top: 1px solid rgba(160, 130, 130, .14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-item {
  color: #918184;
}

.nav-item.active {
  color: var(--chilli-rose);
}

.nav-item.active span {
  color: var(--chilli-rose);
}

/* Responsive */

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 600px);
  }

  .welcome {
    border-radius: 26px;
    padding: 34px 24px;
  }

  .botanical-story {
    border-radius: 26px;
  }

  .botanical-content {
    padding: 20px;
  }

  .botanical-grid {
    gap: 13px;
  }

  .botanical-item {
    padding: 15px;
    border-radius: 21px;
  }

  .ingredient-art {
    height: 145px;
  }

  .film-showcase {
    padding: 18px;
  }

  .module-view,
  .analysis-view {
    border-radius: 24px;
    padding: 20px;
  }
}

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

  .ingredient-art {
    height: 205px;
  }

  .welcome::after {
    right: -25px;
    top: 18%;
    font-size: 145px;
  }
}

/* STEP 63.1 GLOBAL BOTANICAL THEME END */



/* STEP 63.2 INGREDIENT REFINEMENT START */

/* Cleaner ingredient card header */
.botanical-item {
  padding: 24px 24px 23px;
  min-height: 0;
}

.botanical-number {
  position: absolute;
  top: 23px;
  left: 24px;
  z-index: 2;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .08em;
}

.botanical-category {
  display: block;
  min-height: 18px;
  margin-left: 38px;
  margin-bottom: 5px;
  line-height: 1.5;
  letter-spacing: .14em;
  font-size: 10px;
}

/* More balanced image proportions */
.ingredient-art {
  height: 185px;
  margin: 13px 0 15px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 19px;
  background:
    radial-gradient(circle at 50% 45%,
      rgba(255,255,255,.72), rgba(255,255,255,.2) 70%);
}

.ingredient-art img {
  padding: 12px;
}

/* Refined typography */
.botanical-item h3 {
  margin-top: 2px;
  margin-bottom: 7px;
  line-height: 1.25;
}

.botanical-item p {
  margin-top: 0;
  margin-bottom: 4px;
  line-height: 1.65;
  font-size: 13px;
}

.botanical-detail {
  display: inline-block;
  margin-top: 8px;
  padding-top: 9px;
  border-top: 1px solid rgba(130,105,105,.15);
  font-size: 11px;
}

/* Subtle individual card ornaments */
.botanical-item.fingerroot {
  box-shadow:
    inset 0 0 0 1px rgba(206,173,139,.12),
    0 12px 30px rgba(104,83,78,.09);
}

.botanical-item.licorice {
  box-shadow:
    inset 0 0 0 1px rgba(180,145,116,.12),
    0 12px 30px rgba(104,83,78,.09);
}

.botanical-item.menthol {
  box-shadow:
    inset 0 0 0 1px rgba(125,165,139,.15),
    0 12px 30px rgba(104,83,78,.09);
}

.botanical-item.fruity {
  box-shadow:
    inset 0 0 0 1px rgba(212,151,159,.15),
    0 12px 30px rgba(104,83,78,.09);
}

/* Prevent fixed navigation from covering the final content */
.container {
  padding-bottom: 115px;
}

.bottom-nav {
  z-index: 20;
  box-shadow: 0 -8px 30px rgba(100,78,78,.07);
}

/* Mobile refinement */
@media (max-width: 720px) {
  .botanical-item {
    padding: 19px;
  }

  .botanical-number {
    top: 19px;
    left: 19px;
  }

  .botanical-category {
    margin-left: 35px;
    font-size: 9px;
  }

  .ingredient-art {
    height: 170px;
  }

  .container {
    padding-bottom: 125px;
  }
}

@media (max-width: 430px) {
  .ingredient-art {
    height: 195px;
  }
}

/* STEP 63.2 INGREDIENT REFINEMENT END */



/* STEP 63.4 NAVIGATION FLOW FIX START */

.bottom-nav {
  position: relative;
  inset: auto;
  left: auto;
  right: auto;
  bottom: auto;
  transform: none;

  display: flex;
  justify-content: center;
  gap: 0;

  width: min(600px, 95%);
  margin: 32px auto 0;
  padding: 12px 10px;

  border: 1px solid rgba(226, 209, 217, .9);
  border-radius: 20px;
  background: rgba(255, 250, 246, .94);

  box-shadow: 0 10px 30px rgba(105, 75, 91, .09);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  z-index: 2;
}

.container {
  padding-bottom: 50px;
}

@media (max-width: 600px) {
  .bottom-nav {
    width: calc(100% - 24px);
    margin-top: 24px;
    padding: 10px 6px;
    border-radius: 18px;
  }

  .container {
    padding-bottom: 35px;
  }
}

/* STEP 63.4 NAVIGATION FLOW FIX END */



/* STEP 64.1 AI PREMIUM DESIGN START */

/* Main analysis canvas */
.analysis-view {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 30px;
  padding: clamp(22px, 4vw, 42px);
  background:
    radial-gradient(circle at 94% 8%,
      rgba(228,190,202,.28), transparent 27%),
    radial-gradient(circle at 5% 85%,
      rgba(191,215,197,.30), transparent 30%),
    linear-gradient(145deg, #FFFAF5, #F8F0EA 55%, #F4F4EC);
  box-shadow: 0 20px 55px rgba(104,78,78,.09);
}

.analysis-view::before {
  content: "✳";
  position: absolute;
  top: 22px;
  right: 30px;
  z-index: -1;
  color: rgba(179,133,151,.20);
  font-size: 76px;
  pointer-events: none;
}

.analysis-view .back-button {
  position: relative;
  z-index: 1;
  margin-bottom: 25px;
  border: 1px solid rgba(183,145,157,.22);
  border-radius: 30px;
  padding: 9px 16px;
  background: rgba(255,255,255,.66);
  color: #806775;
}

/* Editorial heading */
.analysis-view > .eyebrow {
  margin-bottom: 9px;
  color: #AD7B8B;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}

.analysis-view > h2 {
  margin: 0 0 12px;
  color: #385348;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(38px, 6vw, 54px);
  font-weight: 500;
  line-height: 1.05;
}

.analysis-intro {
  max-width: 580px;
  color: #81747A;
  font-size: 14px;
  line-height: 1.85;
}

/* Image upload panel */
.analysis-view .upload-card {
  position: relative;
  margin-top: 28px;
  padding: clamp(17px, 3vw, 28px);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 25px;
  background: rgba(255,255,255,.60);
  box-shadow: 0 12px 35px rgba(108,83,91,.07);
}

.analysis-view .upload-area {
  position: relative;
  min-height: 190px;
  padding: 24px;
  border: 1.5px dashed #D5B4C1;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%,
      rgba(255,255,255,.95), transparent 60%),
    linear-gradient(140deg, #FAEDF1, #EEF4ED);
  color: #66535D;
  transition: border-color .25s ease,
              transform .25s ease,
              box-shadow .25s ease;
}

.analysis-view .upload-area:hover {
  border-color: #B98599;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(155,112,132,.10);
}

.analysis-view .upload-symbol {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  color: #B77F95;
  font-size: 31px;
  box-shadow: 0 7px 20px rgba(121,91,101,.08);
}

.analysis-view .upload-area strong {
  color: #55464F;
  font-size: 15px;
  letter-spacing: .01em;
}

.analysis-view .upload-area span:last-child {
  color: #9A858E;
  font-size: 11px;
}

.analysis-view #image-preview {
  max-width: min(100%, 520px);
  max-height: 360px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 20px;
  background: white;
  box-shadow: 0 12px 28px rgba(92,73,78,.10);
}

/* Main analyze button */
.analysis-view .analyze-button {
  min-height: 52px;
  margin-top: 20px;
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 16px;
  background: linear-gradient(110deg, #48685A, #78917D);
  box-shadow: 0 9px 22px rgba(72,104,90,.18);
  color: #fff;
  font-size: 14px;
  letter-spacing: .035em;
  transition: transform .2s ease, box-shadow .2s ease;
}

.analysis-view .analyze-button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(72,104,90,.24);
}

.analysis-view .analyze-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.analysis-view .analysis-status {
  min-height: 20px;
  margin-top: 14px;
  color: #8D7881;
  line-height: 1.7;
}

/* Results panel */
.analysis-view .results-card {
  margin-top: 26px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 25px;
  background:
    radial-gradient(circle at 100% 0%,
      rgba(220,190,202,.22), transparent 35%),
    rgba(255,255,255,.72);
  box-shadow: 0 12px 32px rgba(104,78,78,.07);
}

.analysis-view .results-card > .eyebrow {
  color: #AD7B8B;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}

.analysis-view .result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.analysis-view .result-item {
  position: relative;
  min-width: 0;
  padding: 23px 19px;
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 20px;
  background: linear-gradient(145deg, #F8EDF0, #F0F5EF);
  box-shadow: 0 7px 22px rgba(105,75,91,.06);
  gap: 11px;
}

.analysis-view .result-item:first-child {
  background: linear-gradient(145deg, #F9EDEF, #F8F2ED);
}

.analysis-view .result-item:last-child {
  background: linear-gradient(145deg, #EAF2EC, #F4F5EE);
}

.analysis-view .result-item span {
  color: #8D7780;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.analysis-view .result-item strong {
  color: #456252;
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.analysis-view .result-item small {
  color: #98858B;
  font-size: 11px;
}

.analysis-view .result-model {
  margin-top: 18px;
  color: #81747A;
  font-size: 11px;
}

/* Research disclaimer */
.analysis-view .analysis-disclaimer {
  position: relative;
  margin-top: 22px;
  padding: 19px 21px;
  border: 1px solid rgba(180,199,180,.50);
  border-radius: 19px;
  background: rgba(237,244,236,.78);
  color: #7D8980;
  font-size: 11px;
  line-height: 1.8;
}

.analysis-view .analysis-disclaimer strong {
  display: block;
  margin-bottom: 5px;
  color: #577360;
  font-size: 12px;
  letter-spacing: .04em;
}

.analysis-view .analysis-disclaimer p {
  margin: 0;
}

/* Responsive layout */
@media (max-width: 600px) {
  .analysis-view {
    padding: 21px 16px;
    border-radius: 24px;
  }

  .analysis-view > h2 {
    font-size: 39px;
  }

  .analysis-view .upload-card {
    padding: 14px;
    border-radius: 20px;
  }

  .analysis-view .upload-area {
    min-height: 165px;
    padding: 18px 12px;
  }

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

  .analysis-view .result-item {
    padding: 19px;
  }
}

/* STEP 64.1 AI PREMIUM DESIGN END */
