/*
Theme Name: Li Doctor Theme
Author: Codex
Version: 0.1.0
Text Domain: li-doctor-theme
*/

:root {
  --bg: #f7faf9;
  --surface: #ffffff;
  --surface-soft: #eef5f3;
  --text: #10231f;
  --muted: #4f6460;
  --line: #d6e3df;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-soft: #d7f0eb;
  --warn: #9a3412;
  --shadow: 0 14px 40px rgba(16, 35, 31, 0.08);
  --radius: 10px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
}

.site-header,
.site-footer,
.section {
  width: 100%;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 250, 249, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(214, 227, 223, 0.7);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 240px;
  min-width: 180px;
}

.brand strong {
  font-size: 1rem;
}

.brand span {
  color: var(--muted);
  font-size: 0.875rem;
}

.primary-nav {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.primary-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.hero {
  padding: 42px 0 28px;
}

.hero-shell {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 18px;
}

.hero-copy {
  min-height: 520px;
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.hero-media img,
.service-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(214, 227, 223, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.hero-badge strong {
  display: block;
}

.hero-badge span {
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
}

.hero h1,
.section h2,
.section h3 {
  line-height: 1.15;
  margin: 0;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  max-width: 14ch;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 64ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-secondary {
  background: #fff;
  color: var(--accent-strong);
  border-color: var(--line);
}

.section {
  padding: 18px 0 42px;
}

.section-band {
  background: #fff;
  border-top: 1px solid rgba(214, 227, 223, 0.75);
  border-bottom: 1px solid rgba(214, 227, 223, 0.75);
}

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

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 16px;
}

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

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

.panel,
.service-card,
.faq-item,
.contact-card,
.form-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-card,
.faq-item,
.contact-card {
  padding: 18px;
}

.service-price {
  color: var(--accent);
  font-weight: 700;
}

.service-card p,
.faq-item p,
.contact-card p {
  color: var(--muted);
}

.form-shell {
  padding: 20px;
}

.note-card {
  padding: 14px 16px;
  border-radius: 8px;
  background: #fefce8;
  border: 1px solid #fde68a;
  color: #854d0e;
}

.doctor-callout {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.doctor-callout strong {
  font-size: 1.1rem;
}

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

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

.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.step b {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-size: 1.1rem;
}

.step p {
  margin: 6px 0 0;
  color: var(--muted);
}

.service-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 18px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 480px;
  padding: 8px 6px;
}

.service-copy h1 {
  margin: 0;
  line-height: 1.12;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.service-copy p,
.service-copy li {
  color: var(--muted);
}

.service-copy ul {
  margin: 0;
  padding-left: 18px;
}

.service-copy li {
  margin-bottom: 8px;
}

.service-shot {
  min-height: 480px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

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

.field input[type="checkbox"] {
  width: auto;
  min-height: auto;
  padding: 0;
  flex: 0 0 auto;
  margin-top: 4px;
}

.inline-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
}

.notice-success {
  padding: 14px 16px;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.notice-error {
  padding: 14px 16px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.form-note,
.appointment-reminder {
  padding: 14px 16px;
  border-radius: 8px;
}

.form-note {
  background: #f8faf9;
  border: 1px solid var(--line);
  color: var(--muted);
}

.form-note strong,
.appointment-reminder strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.form-note p,
.appointment-reminder p {
  margin: 0;
}

.appointment-reminder {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c2d12;
}

.split-editorial-light .form-note p {
  color: #4f5c55;
}

.split-editorial-light .appointment-reminder p {
  color: #7c2d12;
}

.appointment-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 28, 24, 0.42);
}

.appointment-success-card {
  width: min(100%, 560px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}

.appointment-success-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 2rem;
  line-height: 1.08;
  font-weight: 500;
}

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

.success-kicker {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
}

.success-ref,
.official-contact {
  padding: 12px 14px;
  border-radius: 8px;
  background: #f8faf9;
  border: 1px solid var(--line);
}

.official-contact {
  display: grid;
  gap: 4px;
}

.official-contact span {
  color: var(--muted);
  font-size: 0.88rem;
}

.official-contact strong {
  font-size: 1.18rem;
}

.payment-upload-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #b9d8ce;
  background: #f2fbf7;
}

.payment-upload-panel strong {
  color: var(--text);
}

.payment-upload-panel p,
.payment-upload-panel small {
  margin: 0;
  color: var(--muted);
}

.payment-upload-form {
  display: grid;
  gap: 10px;
}

.payment-upload-field {
  display: grid;
  gap: 8px;
}

.payment-upload-field span {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
}

.payment-upload-field input[type="file"] {
  width: 100%;
  min-height: 48px;
  border: 1px dashed #8cb5a9;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
}

.success-steps {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.consultation-flow,
.flow-intro,
.flow-form {
  display: grid;
  gap: 16px;
}

.flow-intro h2 {
  margin: 0;
}

.flow-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(17, 28, 24, 0.48);
}

.flow-modal:target {
  display: grid;
}

.flow-modal-card {
  position: relative;
  width: min(100%, 920px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}

.flow-modal-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  font-weight: 500;
}

.flow-modal-card p,
.flow-modal-card small,
.contact-choice-card p,
.contact-choice-card small {
  color: var(--muted);
}

.clinic-address-modal {
  width: min(100%, 760px);
}

.clinic-address-list {
  display: grid;
  gap: 12px;
}

.clinic-address-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8faf9;
}

.clinic-address-card span {
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.clinic-address-card strong {
  color: var(--text);
  font-size: 1.08rem;
}

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

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

.flow-form .field {
  display: grid;
  gap: 8px;
}

.flow-form .field label {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
}

.flow-form .field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  font: inherit;
  font-size: 1rem;
  background: #f8faf9;
  color: var(--text);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.flow-form .field input::placeholder {
  color: #7b8883;
}

.flow-form .field input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.flow-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-size: 1.4rem;
}

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

.method-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.method-card input {
  width: auto;
  min-height: auto;
}

.method-card span {
  font-weight: 800;
}

.package-card {
  align-content: start;
}

.package-card strong {
  font-size: 1rem;
  color: var(--accent);
}

.package-card p {
  margin: 0;
  color: var(--text);
}

.package-card small {
  line-height: 1.55;
}

.payment-choice-card {
  min-height: 116px;
  align-content: center;
}

.payment-choice-card.is-disabled {
  opacity: 0.58;
  cursor: not-allowed;
  background: rgba(248, 250, 249, 0.74);
}

.payment-choice-card.is-disabled * {
  cursor: not-allowed;
}

.method-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8faf9;
}

.payment-qr-preview {
  display: none;
  gap: 14px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8faf9;
}

.payment-qr-preview.is-visible {
  display: grid;
}

.payment-qr-preview p {
  margin: 4px 0 0;
  color: var(--muted);
}

.payment-qr-card {
  display: none;
  gap: 10px;
  justify-items: center;
  color: var(--text);
}

.payment-qr-card.is-active {
  display: grid;
}

.payment-qr-card span {
  font-weight: 800;
}

.payment-qr-card img {
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  -webkit-touch-callout: default;
}

@media (hover: hover) and (pointer: fine) {
  .payment-qr-card img:hover {
    position: relative;
    z-index: 5;
    transform: scale(1.22);
    box-shadow: 0 20px 54px rgba(18, 35, 31, 0.24);
  }
}

.contact-choice-card {
  width: min(100%, 980px);
}

.contact-method-card img {
  aspect-ratio: 3 / 4;
}

@media (max-width: 760px) {
  .flow-input-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .flow-modal-card,
  .appointment-success-card {
    padding: 22px;
  }
}

.site-footer {
  padding: 24px 0 36px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.disclaimer {
  font-size: 0.92rem;
}

.site-risk-notice,
.medical-risk-note,
.privacy-contact-note {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.site-risk-notice {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.site-risk-notice strong,
.medical-risk-note strong,
.privacy-contact-note strong {
  color: var(--text);
  font-weight: 800;
}

.site-risk-notice span,
.medical-risk-note p,
.privacy-contact-note p {
  margin: 0;
}

.medical-risk-note,
.privacy-contact-note {
  padding: 14px 16px;
  border: 1px solid rgba(47, 95, 71, 0.18);
  border-radius: 8px;
  background: #f4f8f4;
}

.privacy-contact-note {
  background: #f8faf9;
}

@media (max-width: 920px) {
  .hero-shell,
  .service-hero,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-media,
  .service-copy,
  .service-shot {
    min-height: auto;
  }

  .hero-media,
  .service-shot {
    aspect-ratio: 4 / 3;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .primary-nav ul {
    gap: 12px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button-compact {
  min-height: 38px;
  padding: 0 14px;
}

.hero-shell,
.service-hero,
.panel,
.service-card,
.faq-item,
.contact-card,
.form-shell,
.doctor-callout,
.auth-card,
.auth-panel,
.account-summary {
  border-radius: 8px;
}

.hero-shell,
.service-hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 249, 0.94));
}

.service-card,
.faq-item,
.contact-card,
.doctor-callout,
.auth-card,
.auth-panel,
.account-summary {
  box-shadow: none;
}

.section-title {
  margin: 0;
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  line-height: 1.08;
}

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

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

.auth-card,
.auth-panel,
.account-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 22px;
}

.auth-card,
.auth-panel,
.account-summary {
  display: grid;
  gap: 12px;
}

.auth-panel-accent,
.auth-card-soft {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.05), rgba(255, 255, 255, 0.98));
}

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

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

.auth-form input,
.auth-form select,
.auth-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.auth-form input[type="checkbox"] {
  width: auto;
  min-height: auto;
  padding: 0;
  flex: 0 0 auto;
  margin-top: 4px;
}

.auth-form input[type="submit"] {
  justify-self: start;
}

.auth-status,
.auth-error {
  padding: 12px 14px;
  border-radius: 8px;
}

.auth-status {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
}

.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.link-grid {
  display: grid;
  gap: 10px;
}

.link-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.account-gate,
.account-dashboard,
.account-record-card,
.account-next-actions {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.account-gate {
  display: grid;
  gap: 14px;
  padding: 26px;
}

.account-gate h3,
.account-dashboard h3,
.account-record-card h4,
.account-next-actions h4 {
  margin: 0;
  line-height: 1.15;
}

.account-gate p,
.account-dashboard p,
.account-empty,
.account-record-item small {
  margin: 0;
  color: var(--muted);
}

.account-gate-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.account-gate-list span,
.account-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 800;
}

.account-dashboard {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
}

.account-summary-hero {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.35fr);
  align-items: center;
}

.account-meta {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 8px;
  background: #f8faf9;
  border: 1px solid var(--line);
}

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

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

.account-record-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.account-record-head,
.account-record-item,
.account-next-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.account-record-head span {
  color: var(--muted);
  font-size: 0.9rem;
}

.account-record-list {
  display: grid;
  gap: 10px;
}

.account-empty-state {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(47, 95, 71, 0.18);
  background: linear-gradient(180deg, rgba(244, 239, 232, 0.78), rgba(255, 255, 255, 0.96));
}

.account-empty-state span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.account-empty-state strong {
  font-size: 1.08rem;
  line-height: 1.25;
}

.account-empty-state p {
  margin: 0;
  color: var(--muted);
}

.account-empty-state a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.account-record-item {
  align-items: flex-start;
  padding: 12px;
  border-radius: 8px;
  background: #f8faf9;
  border: 1px solid rgba(222, 216, 206, 0.72);
}

.account-record-item div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.account-record-number {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(47, 95, 71, 0.2);
  background: #fff;
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.account-record-item strong {
  overflow-wrap: anywhere;
}

.account-record-next {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.account-next-actions {
  padding: 18px;
  flex-wrap: wrap;
}

.account-next-actions .link-grid {
  min-width: min(100%, 520px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 920px) {
  .header-inner {
    align-items: flex-start;
  }

  .auth-preview,
  .auth-shell,
  .auth-grid,
  .account-grid,
  .account-record-grid,
  .account-explain-grid,
  .account-summary-hero,
  .account-next-actions .link-grid {
    grid-template-columns: 1fr;
  }

  .account-summary-hero,
  .account-record-item,
  .account-next-actions {
    align-items: flex-start;
  }
}

/* Editorial wellness direction inspired by premium clinic/wellness sites. */
:root {
  --bg: #fbfaf7;
  --surface-soft: #f4efe8;
  --text: #111c18;
  --muted: #5e6963;
  --line: #ded8ce;
  --accent: #2f5f47;
  --accent-strong: #244a38;
  --accent-soft: #e7efe7;
  --clay: #c97855;
  --clay-deep: #a95f43;
  --cream: #f4dfbd;
  --shadow: none;
  --radius: 8px;
  --max: 1180px;
}

body {
  background: var(--bg);
}

.announcement-bar {
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 8px 16px;
  background: #a9bed6;
  color: #111c18;
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.header-inner {
  min-height: 76px;
}

.brand strong {
  font-size: 1.3rem;
  letter-spacing: 0;
}

.primary-nav a {
  color: var(--text);
  font-weight: 600;
}

.button,
button,
input[type="submit"] {
  border-radius: 999px;
  font-weight: 700;
}

.button-primary,
input[type="submit"] {
  background: var(--accent);
}

.button-secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}

.editorial-hero {
  background: var(--clay);
  color: #fff;
  min-height: calc(100vh - 112px);
  display: grid;
  align-items: stretch;
  overflow: hidden;
}

.service-editorial-hero {
  background: var(--clay);
  color: #fff;
  border-bottom: 1px solid rgba(17, 28, 24, 0.12);
}

.service-editorial-hero-inner {
  min-height: 620px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: center;
  padding: 72px 0;
}

.service-page-copy {
  display: grid;
  gap: 18px;
}

.service-page-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: 0;
}

.service-page-copy h1.service-title-lines,
.flow-intro h2.flow-title-lines {
  display: grid;
  gap: 10px;
}

.service-title-lines span,
.flow-title-lines span {
  display: block;
  white-space: nowrap;
}

.service-page-copy h1.service-title-lines {
  font-size: clamp(3rem, 5.1vw, 5.1rem);
  line-height: 0.98;
}

.service-page-copy h1.service-title-single {
  font-size: clamp(3rem, 5.4vw, 5.2rem);
  line-height: 1;
}

body.lang-zh-hans .service-page-copy h1.service-title-single,
body.lang-zh-hant .service-page-copy h1.service-title-single {
  white-space: nowrap;
}

.service-page-copy h1.doctor-hero-title,
.doctor-hero-title {
  display: grid;
  gap: 6px;
}

.doctor-hero-title span {
  display: block;
  white-space: nowrap;
}

.flow-intro h2.flow-title-lines {
  font-size: clamp(2.15rem, 3.7vw, 3.65rem);
  line-height: 1;
}

.service-page-copy p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
}

.image-brief-service {
  min-height: 450px;
  background: rgba(244, 223, 189, 0.88);
}

.editorial-hero-inner {
  min-height: calc(100vh - 112px);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 22px;
  padding: 72px 0;
  position: relative;
}

.hero-kicker {
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.editorial-hero h1,
.section h2,
.doctor-editorial h2 {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.editorial-hero h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.98;
}

.editorial-hero h1.home-hero-title {
  display: grid;
  justify-items: center;
  max-width: min(100%, 1160px);
  font-size: 4.85rem;
  line-height: 1.02;
}

.home-hero-title span,
.clinic-intro-title span {
  display: block;
  white-space: nowrap;
}

.editorial-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions-center {
  justify-content: center;
}

.image-brief {
  min-height: 220px;
  border: 1px dashed rgba(17, 28, 24, 0.35);
  background: rgba(255, 255, 255, 0.46);
  color: var(--text);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 10px;
}

.image-brief strong {
  font-size: 1rem;
}

.image-brief span {
  color: #4f5c55;
}

.photo-frame {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(17, 28, 24, 0.18);
  background: var(--surface-2);
}

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

.photo-hero-wide {
  width: min(100%, 860px);
  height: clamp(240px, 34vw, 430px);
}

.photo-card {
  height: 260px;
  border-width: 0 0 1px;
  border-radius: 0;
}

.photo-large {
  height: 470px;
}

.photo-service {
  height: 450px;
}

.photo-inline {
  height: 260px;
  margin-top: 18px;
}

.photo-portrait {
  height: 560px;
}

.photo-profile-landscape {
  height: 360px;
}

.photo-focus-top img {
  object-position: center top;
}

.photo-doctor-hero img {
  object-position: center 34%;
}

.photo-focus-left img {
  object-position: left center;
}

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

.photo-mosaic .photo-frame {
  height: 220px;
}

.photo-mosaic-wide {
  grid-column: 1 / -1;
  height: 250px;
}

.image-brief-hero {
  width: min(100%, 780px);
  min-height: 150px;
  background: rgba(244, 223, 189, 0.88);
  border-color: rgba(255, 255, 255, 0.56);
}

.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.trust-strip-inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  text-align: center;
  gap: 12px;
  font-weight: 800;
}

.section {
  padding: 68px 0;
}

.section-band {
  background: #fff;
}

.section-clay {
  background: var(--clay);
  color: #fff;
}

.section-clay p,
.section-clay .eyebrow {
  color: rgba(255, 255, 255, 0.9);
}

.section-consultation-payment {
  background: linear-gradient(180deg, #edf4f1 0%, #f8fbfa 100%);
  color: var(--text);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-consultation-payment .eyebrow {
  color: var(--accent-2);
}

.section-consultation-payment .split-editorial p {
  color: var(--muted);
}

.section-consultation-payment .photo-large {
  background: #fff;
  border-color: rgba(20, 91, 83, 0.18);
  box-shadow: 0 18px 44px rgba(18, 35, 31, 0.08);
}

.section-head-centered {
  justify-content: center;
  text-align: center;
}

.section-head-centered p {
  margin-inline: auto;
}

.section h2 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.98;
}

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

.service-editorial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
}

.service-editorial-card .image-brief {
  border-width: 0 0 1px;
  border-style: dashed;
  border-radius: 0;
  min-height: 260px;
  background: #f3eee6;
}

.service-editorial-copy {
  padding: 20px;
  display: grid;
  gap: 12px;
}

.service-editorial-copy h3 {
  font-size: 1.35rem;
  line-height: 1.16;
}

.service-editorial-copy p,
.auth-card p,
.doctor-editorial p,
.split-editorial p {
  color: var(--muted);
}

.split-editorial {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 40px;
  align-items: center;
}

.split-editorial-light p {
  color: var(--muted);
}

.service-detail-brief {
  margin-top: 20px;
}

.split-editorial h2 {
  margin: 0 0 16px;
}

.split-editorial h2.testimonial-title {
  font-size: clamp(2.5rem, 3.8vw, 4.05rem);
  line-height: 1.02;
  white-space: nowrap;
}

.split-editorial h2.clinic-intro-title {
  display: grid;
  gap: 8px;
  justify-items: start;
  max-width: 100%;
  font-size: 2.55rem;
  line-height: 1.06;
}

.split-editorial .eyebrow:has(+ .clinic-intro-title) {
  margin-bottom: 14px;
}

@media (max-width: 1200px) {
  .editorial-hero h1.home-hero-title {
    font-size: 4.45rem;
  }

  .split-editorial h2.clinic-intro-title {
    font-size: 2.35rem;
  }
}

.section-clay .split-editorial p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 22px;
}

.image-brief-large {
  min-height: 470px;
  background: rgba(244, 223, 189, 0.82);
}

.doctor-editorial {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 42px;
  align-items: center;
}

.image-brief-portrait {
  min-height: 560px;
  background: #f3eee6;
}

.doctor-editorial h2 {
  margin: 0 0 14px;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
}

.doctor-editorial h2.doctor-profile-title {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  white-space: nowrap;
}

.doctor-specialties ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.1em;
}

.doctor-specialties li {
  color: var(--muted);
  line-height: 1.65;
}

.doctor-specialties li strong {
  color: var(--text);
}

.auth-card,
.auth-panel,
.account-summary,
.faq-item,
.service-card {
  border-color: var(--line);
  background: #fff;
}

.auth-card-soft,
.auth-panel-accent {
  background: #f3eee6;
}

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

.editorial-timeline .step {
  grid-template-columns: 1fr;
  align-content: start;
}

.editorial-timeline .step b {
  border-radius: 999px;
  background: var(--cream);
}

@media (max-width: 920px) {
  .editorial-hero,
  .editorial-hero-inner {
    min-height: auto;
  }

  .editorial-hero-inner {
    padding: 56px 0;
  }

  .editorial-hero h1.home-hero-title {
    font-size: 3.2rem;
  }

  .split-editorial h2.clinic-intro-title {
    font-size: 2.5rem;
  }

  .trust-strip-inner,
  .service-editorial-grid,
  .split-editorial,
  .doctor-editorial,
  .service-editorial-hero-inner,
  .editorial-timeline {
    grid-template-columns: 1fr;
  }

  .trust-strip-inner {
    padding: 18px 0;
  }
}

@media (max-width: 520px) {
  .service-page-copy h1.service-title-lines,
  .flow-intro h2.flow-title-lines {
    font-size: 2.1rem;
  }

  .doctor-editorial h2.doctor-profile-title {
    font-size: 1.75rem;
    white-space: normal;
  }

  .split-editorial h2.testimonial-title {
    font-size: 2rem;
  }

  .editorial-hero h1.home-hero-title {
    font-size: 2.1rem;
  }

  .split-editorial h2.clinic-intro-title {
    font-size: 1.65rem;
  }

  .split-editorial .eyebrow:has(+ .clinic-intro-title) {
    margin-bottom: 10px;
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .container {
    width: min(calc(100% - 24px), var(--max));
  }

  .announcement-bar {
    min-height: auto;
    padding: 8px 12px;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .header-inner {
    min-height: auto;
    padding: 12px 0;
    align-items: flex-start;
  }

  .brand strong {
    font-size: 1.08rem;
  }

  .brand span {
    font-size: 0.78rem;
  }

  .primary-nav ul {
    gap: 6px;
  }

  .primary-nav a {
    font-size: 0.82rem;
  }

  .header-actions {
    width: 100%;
  }

  .button,
  button,
  input[type="submit"] {
    width: 100%;
    min-height: 46px;
  }

  .button-compact {
    width: auto;
    min-height: 34px;
    font-size: 0.84rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .editorial-hero-inner,
  .service-editorial-hero-inner {
    padding: 42px 0;
    gap: 24px;
  }

  .service-page-copy {
    gap: 14px;
  }

  .service-page-copy h1 {
    font-size: clamp(2.45rem, 14vw, 3.4rem);
  }

  .service-page-copy h1.service-title-lines,
  .flow-intro h2.flow-title-lines {
    font-size: clamp(2.05rem, 11vw, 2.75rem);
    gap: 8px;
  }

  .service-page-copy p {
    font-size: 0.98rem;
  }

  .photo-service,
  .photo-large,
  .photo-portrait,
  .photo-profile-landscape {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .photo-portrait,
  .photo-doctor-hero {
    aspect-ratio: 3 / 4;
  }

  .trust-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    font-size: 0.9rem;
  }

  .section {
    padding: 48px 0;
  }

  .section h2 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .split-editorial h2.testimonial-title {
    white-space: normal;
  }

  .flow-modal {
    place-items: start center;
    padding: 12px;
  }

  .flow-modal-card,
  .appointment-success-card {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 20px;
  }

  .flow-modal-card h3,
  .appointment-success-card h3 {
    font-size: clamp(1.85rem, 10vw, 2.55rem);
  }

  .payment-qr-card img {
    width: min(100%, 280px);
  }

  .contact-choice-card {
    width: 100%;
  }

  .account-gate,
  .auth-card,
  .auth-panel,
  .account-summary,
  .account-record-card,
  .account-next-actions {
    padding: 18px;
  }

  .account-record-head,
  .account-record-item,
  .account-next-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.mobile-nav-toggle,
.mobile-nav-close,
.mobile-nav-backdrop,
.mobile-nav-heading,
.mobile-nav-actions {
  display: none;
}

@media (max-width: 760px) {
  .site-header {
    z-index: 80;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
  }

  .mobile-nav-toggle {
    width: 44px;
    height: 44px;
    min-height: 44px;
    flex: 0 0 44px;
    display: inline-grid;
    place-items: center;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
  }

  .mobile-nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 120;
    width: min(86vw, 368px);
    height: 100vh;
    display: grid;
    align-content: start;
    gap: 22px;
    padding: 24px;
    background: #f4e8d9;
    border-right: 1px solid rgba(17, 28, 24, 0.16);
    box-shadow: 18px 0 44px rgba(17, 28, 24, 0.18);
    transform: translateX(-105%);
    transition: transform 0.24s ease;
    overflow-y: auto;
  }

  .mobile-nav-open .primary-nav {
    transform: translateX(0);
  }

  .primary-nav ul {
    display: grid;
    gap: 18px;
    padding: 0;
    margin: 0;
  }

  .primary-nav li {
    list-style: none;
  }

  .primary-nav a,
  .mobile-nav-actions a {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 0;
    color: var(--text);
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.15;
  }

  .mobile-nav-actions {
    display: grid;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(17, 28, 24, 0.16);
  }

  .mobile-nav-actions a {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
  }

  .mobile-nav-heading {
    display: block;
    color: rgba(17, 28, 24, 0.58);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .mobile-nav-close {
    width: 42px;
    height: 42px;
    min-height: 42px;
    display: grid;
    place-items: center;
    justify-self: start;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
  }

  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(17, 28, 24, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
  }

  .mobile-nav-open .mobile-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-open {
    overflow: hidden;
  }

  .header-actions {
    display: none;
  }
}

.language-switcher {
  position: relative;
  margin-left: 4px;
  flex: 0 0 auto;
}

.language-switcher-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 180;
  display: grid;
  min-width: 154px;
  padding: 8px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(17, 28, 24, 0.16);
}

.language-menu[hidden] {
  display: none;
}

.language-menu a {
  display: flex;
  min-height: 38px;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
  white-space: nowrap;
}

.language-menu a:hover {
  background: var(--surface-2);
  color: var(--accent-2);
}

body.lang-en .home-hero-title span,
body.lang-ms .home-hero-title span,
body.lang-en .service-title-lines span,
body.lang-ms .service-title-lines span,
body.lang-en .flow-title-lines span,
body.lang-ms .flow-title-lines span {
  white-space: normal;
  text-wrap: balance;
}

body.lang-en .home-hero-title span {
  max-width: 21ch;
}

body.lang-ms .home-hero-title span {
  max-width: 24ch;
}

body.lang-en .service-page-copy h1.service-title-lines,
body.lang-ms .service-page-copy h1.service-title-lines {
  line-height: 1.06;
}

body.lang-en .split-editorial h2.testimonial-title,
body.lang-ms .split-editorial h2.testimonial-title {
  white-space: normal;
  text-wrap: balance;
}

body.lang-en .btn,
body.lang-ms .btn,
body.lang-en button,
body.lang-ms button {
  min-height: 48px;
  padding: 8px 18px;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

body.lang-en .trust-strip-inner,
body.lang-ms .trust-strip-inner {
  line-height: 1.35;
}

body.lang-en .flow-modal-card,
body.lang-ms .flow-modal-card,
body.lang-en .appointment-success-card,
body.lang-ms .appointment-success-card {
  width: min(100%, 980px);
}

body.lang-en .service-editorial-copy,
body.lang-ms .service-editorial-copy,
body.lang-en .account-record-card,
body.lang-ms .account-record-card {
  min-width: 0;
}

@media (min-width: 761px) {
  .topbar-inner {
    gap: 12px;
  }

  .brand {
    flex: 0 0 auto;
    min-width: 154px;
  }

  .brand strong {
    white-space: nowrap;
  }

  .primary-nav {
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .primary-nav a {
    flex: 0 0 auto;
    padding: 9px 9px;
    white-space: nowrap;
  }

  .primary-nav a[href*="member-center"],
  .primary-nav a[href*="account"] {
    margin-left: 8px;
  }

  .language-switcher-toggle {
    min-width: 58px;
    justify-content: center;
    padding: 0 10px;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .topbar-inner {
    gap: 6px;
  }

  .brand {
    min-width: 132px;
  }

  .brand span {
    font-size: 0.72rem;
  }

  .primary-nav {
    gap: 2px;
  }

  .primary-nav a {
    padding: 8px 6px;
    font-size: 0.8rem;
  }
}

@media (max-width: 760px) {
  .language-switcher {
    margin-top: 8px;
    margin-left: 0;
  }

  .language-switcher-toggle {
    min-height: 42px;
    width: 100%;
    justify-content: space-between;
  }

  .language-menu {
    position: static;
    margin-top: 6px;
    box-shadow: none;
  }

  body.lang-en .home-hero-title span,
  body.lang-ms .home-hero-title span {
    max-width: 100%;
  }

  body.lang-en .service-page-copy h1.service-title-lines,
  body.lang-ms .service-page-copy h1.service-title-lines,
  body.lang-en .flow-intro h2.flow-title-lines,
  body.lang-ms .flow-intro h2.flow-title-lines {
    font-size: 2.15rem;
  }
}
