/* =============================================================
   Click2Care — Design System
   Modern healthcare theme: deep ink + teal + coral accent
   ============================================================= */

:root {
  --ink: #0a2b26;
  --ink-2: #123b34;
  --muted: #5b716c;
  --line: #e4edea;
  --bg: #f6fbf9;
  --card: #ffffff;

  --brand: #0d9488;
  --brand-600: #0f766e;
  --brand-700: #0b5d56;
  --brand-100: #ccfbf1;
  --brand-50: #ecfdf5;

  --accent: #ff7a59;
  --accent-soft: #ffeae3;
  --star: #fbbf24;

  --shadow-sm: 0 2px 8px rgba(10, 43, 38, 0.06);
  --shadow: 0 14px 34px -18px rgba(10, 43, 38, 0.35);
  --shadow-lg: 0 30px 60px -30px rgba(10, 43, 38, 0.45);

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --container: 1180px;
  --nav-h: 76px;

  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Semantic aliases — themed independently so dark mode never breaks white-on-dark surfaces */
  --link: var(--brand-600);
  --link-strong: var(--brand-700);
  --ink-surface: #0a2b26;
  --ink-surface-2: #123b34;
  --surface-2: #f4f9f8;
  --surface-3: #eef5f3;
  --surface-4: #fbfefd;
  --line-strong: #cfe6e1;
  --danger: #ef4444;
  --danger-ink: #dc2626;
  --danger-bg: #fff5f5;
  --ok-ink: #15803d;
  --ok-bg: #f0fdf4;
  --ok-border: #dcfce7;
  --indigo-bg: #eef2ff;
  --indigo-ink: #4f46e5;
  --blob-a: #c8f5ec;
  --blob-b: #d6f7ef;
  --placeholder: #9aadaa;
  --nav-glass: rgba(255, 255, 255, 0.75);
  --nav-glass-solid: rgba(255, 255, 255, 0.94);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 800;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--brand-100);
}

:focus-visible {
  outline: 3px solid rgba(13, 148, 136, 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding: 92px 0;
}

.section-sm {
  padding: 60px 0;
}

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

section[id],
[id^="book"],
[id^="filter"] {
  scroll-margin-top: calc(var(--nav-h) + 18px);
}

.center {
  text-align: center;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--link);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.18);
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-bottom: 14px;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 620px;
}

.center .section-sub,
.center .eyebrow {
  margin-inline: auto;
}

.center .section-sub {
  display: block;
}

.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.head-row .section-title {
  margin-bottom: 8px;
}

.hl {
  position: relative;
  color: var(--link);
  white-space: nowrap;
}

.hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.34em;
  background: var(--accent-soft);
  z-index: -1;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  color: #fff;
  box-shadow: 0 14px 26px -14px rgba(13, 148, 136, 0.9);
}

.btn-primary:hover {
  box-shadow: 0 20px 32px -14px rgba(13, 148, 136, 0.95);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 26px -16px rgba(10, 43, 38, 0.9);
}

.btn-light {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}

.btn-light:hover {
  border-color: var(--brand);
  color: var(--link);
}

.btn-ghost {
  background: transparent;
  color: var(--link);
  border-color: var(--brand-100);
}

.btn-ghost:hover {
  background: var(--brand-50);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 26px -14px rgba(255, 122, 89, 0.9);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.87rem;
}

.btn-lg {
  padding: 17px 32px;
  font-size: 1.02rem;
}

.btn-block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--link);
  font-size: 0.95rem;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--nav-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav.scrolled {
  background: var(--nav-glass-solid);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 34px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  display: grid;
  place-items: center;
  box-shadow: 0 10px 20px -10px rgba(13, 148, 136, 0.9);
  flex: none;
}

.logo-mark svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.logo span b {
  color: var(--link);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-links a {
  padding: 9px 15px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-2);
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-links a:hover {
  background: var(--brand-50);
  color: var(--link);
}

.nav-links a.active {
  color: var(--link);
  background: var(--brand-50);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta .sign-in {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 9px 6px;
}

.nav-cta .sign-in:hover {
  color: var(--link);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 13px;
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: background 0.2s ease;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease;
}

.burger span::before {
  top: -6px;
}

.burger span::after {
  top: 6px;
}

.nav.open .burger span {
  background: transparent;
}

.nav.open .burger span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav.open .burger span::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 18px 24px 26px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 99;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}

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

.mobile-menu a {
  padding: 13px 14px;
  border-radius: 14px;
  font-weight: 700;
  color: var(--ink-2);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: var(--brand-50);
  color: var(--link);
}

.mobile-menu .btn {
  margin-top: 10px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 70px) 0 90px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--card) 0%, var(--bg) 70%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: 0;
}

.hero::before {
  width: 460px;
  height: 460px;
  background: var(--blob-a);
  top: -140px;
  right: -80px;
}

.hero::after {
  width: 380px;
  height: 380px;
  background: var(--accent-soft);
  bottom: -160px;
  left: -120px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.pill-badge .dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-50);
  display: grid;
  place-items: center;
  color: var(--link);
}

.pill-badge .dot svg {
  width: 13px;
  height: 13px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.hero .lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 30px;
}

/* Search widget */
.search-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  max-width: 620px;
}

.search-tabs {
  display: inline-flex;
  background: var(--surface-3);
  padding: 5px;
  border-radius: 999px;
  gap: 4px;
  margin-bottom: 14px;
}

.search-tabs button {
  border: 0;
  background: transparent;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s ease;
}

.search-tabs button.active {
  background: var(--card);
  color: var(--link);
  box-shadow: var(--shadow-sm);
}

.search-row {
  display: flex;
  gap: 10px;
}

.search-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 6px 8px 6px 18px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.search-input:focus-within {
  background: var(--card);
  border-color: var(--brand);
}

.search-input svg {
  width: 19px;
  height: 19px;
  color: var(--link);
  flex: none;
}

.search-input input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 0;
  outline: none;
  min-width: 0;
}

.search-input input::placeholder {
  color: #91a5a0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  align-items: center;
}

.chips .label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.chip:hover,
.chip.active {
  background: var(--brand-50);
  border-color: var(--brand-100);
  color: var(--link);
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-stats .stat b {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-stats .stat span {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
}

/* Hero visual */
.hero-visual {
  position: relative;
  min-height: 460px;
}

.hv-card {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}

.hv-main {
  inset: 20px 0 0 40px;
  padding: 26px;
  background: linear-gradient(160deg, var(--card) 55%, var(--surface-2) 100%);
}

.hv-main .hv-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.hv-main h4 {
  margin: 0;
  font-size: 1.1rem;
}

.hv-main .spec {
  color: var(--link);
  font-size: 0.86rem;
  font-weight: 700;
}

.hv-slot {
  border: 1px dashed var(--brand-100);
  background: var(--brand-50);
  color: var(--link);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 0.87rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.hv-rx {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.hv-rx .rx-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
  margin-bottom: 12px;
}

.rx-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.rx-line .rx-name {
  font-weight: 700;
  min-width: 130px;
}

.rx-bar {
  height: 7px;
  background: var(--surface-3);
  border-radius: 4px;
  flex: 1;
  position: relative;
  overflow: hidden;
}

.rx-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-100));
  border-radius: 4px;
  display: block;
}

.rx-sign {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: italic;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.hv-float {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  z-index: 3;
}

.hv-float b {
  display: block;
  font-size: 0.92rem;
}

.hv-float span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.hv-rating {
  top: 0;
  right: -6px;
  animation: floaty 5s ease-in-out infinite;
}

.hv-online {
  bottom: -14px;
  left: -18px;
  animation: floaty 6.5s ease-in-out infinite reverse;
}

.hv-online .live {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.08);
  }
}

/* ---------- Avatars ---------- */
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  user-select: none;
  position: relative;
  overflow: hidden;
}

.avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 55%);
}

.avatar-48 {
  width: 48px;
  height: 48px;
  font-size: 0.95rem;
}

.avatar-56 {
  width: 56px;
  height: 56px;
  font-size: 1.05rem;
}

.avatar-64 {
  width: 64px;
  height: 64px;
  font-size: 1.2rem;
}

.avatar-96 {
  width: 96px;
  height: 96px;
  font-size: 1.8rem;
}

.avatar-120 {
  width: 120px;
  height: 120px;
  font-size: 2.3rem;
}

/* ---------- Cards / grids ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: #d3e7e2;
}

/* Doctor card */
.doc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
}

.doc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), #7ce7d8, var(--accent));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.doc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.doc-card:hover::before {
  opacity: 1;
}

.doc-top {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.doc-top h3 {
  font-size: 1.08rem;
  margin: 0 0 3px;
}

.doc-degree {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.doc-spec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-50);
  color: var(--link);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  margin-top: 8px;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 6px 12px;
}

.meta-chip svg {
  width: 13px;
  height: 13px;
  color: var(--link);
}

.doc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
  margin-top: auto;
}

.doc-fee b {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.doc-fee span {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  font-size: 0.88rem;
}

.rating svg {
  width: 15px;
  height: 15px;
  color: var(--star);
  fill: var(--star);
}

.online-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ok-ink);
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.online-tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

/* Feature card */
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: block;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.feature-card .ic {
  width: 56px;
  height: 56px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: var(--brand-50);
  color: var(--link);
  margin-bottom: 20px;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.feature-card:nth-child(2n) .ic {
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-card .ic svg {
  width: 26px;
  height: 26px;
}

.feature-card:hover .ic {
  transform: rotate(-6deg) scale(1.06);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.feature-card .corner {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--brand-50);
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.feature-card:hover .corner {
  transform: scale(1.35);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 47px;
  left: 12%;
  right: 12%;
  border-top: 2px dashed var(--brand-100);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  text-align: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.step-num {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  box-shadow: 0 16px 28px -16px rgba(13, 148, 136, 0.9);
}

.step:nth-child(2) .step-num {
  background: linear-gradient(135deg, var(--accent), #e8552e);
  box-shadow: 0 16px 28px -16px rgba(255, 122, 89, 0.9);
}

.step:nth-child(3) .step-num {
  background: linear-gradient(135deg, var(--ink-surface), var(--ink-surface-2));
  box-shadow: 0 16px 28px -16px rgba(10, 43, 38, 0.9);
}

.step h3 {
  font-size: 1.1rem;
}

.step p {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
}

/* About split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 26px 0 30px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
  color: var(--ink-2);
}

.check-list .tick {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  flex: none;
  background: var(--brand-50);
  color: var(--link);
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.check-list .tick svg {
  width: 14px;
  height: 14px;
}

.check-list li span {
  font-weight: 500;
  color: var(--muted);
}

.check-list li b {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
}

/* Illustration block */
.illustration {
  position: relative;
  background: linear-gradient(150deg, var(--surface-3), var(--card) 55%, var(--accent-soft));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 40px;
  min-height: 380px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.illustration .grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(13, 148, 136, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 78%);
}

.float-stat {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.float-stat b {
  font-size: 1.05rem;
}

.float-stat span {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
  display: block;
}

.float-stat .ic {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-50);
  color: var(--link);
}

.float-stat .ic svg {
  width: 17px;
  height: 17px;
}

/* Stats band */
.stats-band {
  background: linear-gradient(120deg, var(--ink-surface) 0%, #0d4a41 60%, var(--brand-700) 100%);
  border-radius: var(--r-xl);
  padding: 52px 44px;
  color: #fff;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  position: relative;
  overflow: hidden;
}

.stats-band::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  top: -140px;
  right: -60px;
}

.stat-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-item b {
  display: block;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-item span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Video / tips */
.video-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-600), var(--ink-surface) 70%);
  overflow: hidden;
}

.video-card:nth-child(2) .video-thumb {
  background: linear-gradient(135deg, var(--accent), #b23c1e);
}

.video-card:nth-child(3) .video-thumb {
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
}

.video-card:nth-child(4) .video-thumb {
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
}

.video-thumb .pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.4px, transparent 1.4px);
  background-size: 20px 20px;
}

.play {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: grid;
  place-items: center;
  color: var(--ink);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.5);
  transition: transform 0.22s ease;
}

.video-card:hover .play {
  transform: scale(1.12);
}

.play svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(4, 20, 17, 0.78);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 7px;
  z-index: 1;
}

.video-body {
  padding: 20px 22px 24px;
}

.video-body .tag {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--link);
}

.video-body h3 {
  font-size: 1.04rem;
  margin: 7px 0 6px;
}

.video-body .by {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 600;
}

/* Testimonials */
.quote-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.quote-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.quote-card .stars {
  display: flex;
  gap: 3px;
  color: var(--star);
}

.quote-card .stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.quote-card p {
  color: var(--ink-2);
  font-size: 0.97rem;
  margin: 0;
}

.quote-who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.quote-who b {
  display: block;
  font-size: 0.95rem;
}

.quote-who span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

/* CTA band */
.cta-band {
  position: relative;
  background: linear-gradient(120deg, var(--brand-700), var(--brand) 55%, #14b8a6);
  border-radius: var(--r-xl);
  padding: 62px 48px;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cta-band::before {
  width: 300px;
  height: 300px;
  top: -130px;
  left: -60px;
}

.cta-band::after {
  width: 220px;
  height: 220px;
  bottom: -110px;
  right: 12%;
}

.cta-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 58px) 0 58px;
  background: linear-gradient(160deg, var(--card), var(--bg) 60%, var(--surface-3));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--blob-b);
  filter: blur(70px);
  opacity: 0.6;
  top: -180px;
  right: -80px;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.crumbs a:hover {
  color: var(--link);
}

.crumbs .sep {
  color: #b6c8c3;
}

.crumbs .here {
  color: var(--link);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
  max-width: 780px;
}

.page-hero p {
  color: var(--muted);
  max-width: 640px;
  margin: 0;
  font-size: 1.05rem;
}

/* ---------- Toolbar / filters ---------- */
.toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}

.toolbar .search-input {
  flex: 1;
  min-width: 220px;
}

.select {
  appearance: none;
  background: var(--surface-2) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 16px center;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 12px 42px 12px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.select:focus {
  border-color: var(--brand);
  background-color: var(--card);
}

.filter-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

.filter-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

.filter-panel h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.filter-group {
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}

.filter-group:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.filter-group > b {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  cursor: pointer;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-2);
}

.check input {
  appearance: none;
  width: 19px;
  height: 19px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: var(--card);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
  flex: none;
}

.check input:checked {
  background: var(--brand);
  border-color: var(--brand);
}

.check input:checked::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.check .count {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--surface-3);
  border-radius: 999px;
  padding: 1px 9px;
  font-weight: 700;
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.results-head b {
  font-size: 1.02rem;
}

.empty-state {
  background: var(--card);
  border: 1.5px dashed var(--line);
  border-radius: var(--r-lg);
  padding: 56px 24px;
  text-align: center;
  color: var(--muted);
}

.empty-state .ic {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: var(--brand-50);
  color: var(--link);
  display: grid;
  place-items: center;
}

.empty-state h3 {
  color: var(--ink);
  font-size: 1.15rem;
}

/* ---------- Doctor profile ---------- */
.profile-banner {
  background: linear-gradient(120deg, var(--ink-surface) 0%, #0e4b42 65%, var(--brand-700));
  border-radius: var(--r-xl);
  color: #fff;
  padding: 36px;
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.profile-banner::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  right: -80px;
  top: -120px;
}

.profile-banner .avatar {
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.16);
}

.profile-banner h1 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 6px;
}

.profile-banner .degree {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  margin: 0 0 12px;
}

.profile-banner .chips-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.glass-chip {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.glass-chip svg {
  width: 13px;
  height: 13px;
}

.profile-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  z-index: 1;
  flex-wrap: wrap;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

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

.info-box {
  background: var(--surface-4);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}

.info-box span {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.info-box b {
  font-size: 0.98rem;
}

.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.slot {
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 9px 15px;
  font-size: 0.87rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.slot:hover {
  border-color: var(--brand);
  color: var(--link);
}

.slot.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 12px 20px -12px rgba(13, 148, 136, 0.9);
}

.book-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  box-shadow: var(--shadow-sm);
}

.book-card .fee-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 18px;
}

.book-card .fee-row b {
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.book-card .fee-row span {
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 600;
}

/* ---------- Forms ---------- */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--ink-2);
}

.field label .req {
  color: var(--accent);
}

.input,
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--surface-4);
  border-radius: 14px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

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

.field input:focus,
.field textarea:focus,
.field select:focus,
.input:focus {
  border-color: var(--brand);
  background: var(--card);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--placeholder);
}

.field .hint {
  font-size: 0.79rem;
  color: var(--muted);
  margin-top: 6px;
}

.field.error input,
.field.error textarea,
.field.error select {
  border-color: var(--danger);
  background: var(--danger-bg);
}

.field .err {
  display: none;
  font-size: 0.79rem;
  color: var(--danger-ink);
  font-weight: 600;
  margin-top: 6px;
}

.field.error .err {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.radio-card {
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.16s ease;
  background: var(--surface-4);
  position: relative;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card b {
  font-size: 0.93rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.radio-card b::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid #cfdeda;
  flex: none;
  transition: all 0.16s ease;
}

.radio-card span {
  font-size: 0.79rem;
  color: var(--muted);
  padding-left: 23px;
}

.radio-card:hover {
  border-color: var(--brand-100);
}

.radio-card.checked {
  border-color: var(--brand);
  background: var(--brand-50);
}

.radio-card.checked b::before {
  border-color: var(--brand);
  background: radial-gradient(circle, var(--brand) 45%, transparent 50%);
}

.form-note {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--link-strong);
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 14px;
  padding: 12px 15px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.form-note svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
}

/* ---------- Tabs ---------- */
.tabs {
  display: inline-flex;
  background: var(--surface-3);
  padding: 6px;
  border-radius: 999px;
  gap: 4px;
  flex-wrap: wrap;
}

.tabs button {
  border: 0;
  background: transparent;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.16s ease;
}

.tabs button.active {
  background: var(--card);
  color: var(--link);
  box-shadow: var(--shadow-sm);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Auth ---------- */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.auth-side {
  position: relative;
  background: linear-gradient(150deg, var(--brand-700), var(--ink-surface) 75%);
  color: #fff;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.auth-side::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  bottom: -180px;
  left: -140px;
}

.auth-side .logo {
  color: #fff;
  position: relative;
  z-index: 1;
}

.auth-side .logo span b {
  color: #7ce7d8;
}

.auth-quote {
  position: relative;
  z-index: 1;
}

.auth-quote h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  max-width: 440px;
}

.auth-quote p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 420px;
}

.auth-points {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.auth-points li {
  display: flex;
  gap: 11px;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.auth-points .tick {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  flex: none;
}

.auth-points .tick svg {
  width: 14px;
  height: 14px;
}

.auth-foot {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.auth-main {
  display: grid;
  place-items: center;
  padding: 48px 28px;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 470px;
}

.auth-card h1 {
  font-size: 1.9rem;
  margin-bottom: 8px;
}

.auth-card .sub {
  color: var(--muted);
  margin-bottom: 26px;
}

.auth-card .tabs {
  width: 100%;
  display: flex;
  margin-bottom: 24px;
}

.auth-card .tabs button {
  flex: 1;
}

.auth-card .row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  flex-wrap: wrap;
}

.auth-card .row-between a {
  color: var(--link);
  font-weight: 700;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
  margin: 22px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.alt-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-switch {
  text-align: center;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.auth-switch a {
  color: var(--link);
  font-weight: 800;
}

/* ---------- Contact ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: -46px;
  position: relative;
  z-index: 2;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card .ic {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--brand-50);
  color: var(--link);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.contact-card:nth-child(2) .ic {
  background: var(--accent-soft);
  color: var(--accent);
}

.contact-card .ic svg {
  width: 23px;
  height: 23px;
}

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 5px;
}

.contact-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.94rem;
}

.contact-card a {
  font-weight: 700;
  color: var(--link);
}

.map-box {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(150deg, var(--surface-3), var(--card));
  min-height: 320px;
  position: relative;
  display: grid;
  place-items: center;
}

.map-box .pin {
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.map-box .pin .ic {
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--card);
  color: var(--accent);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  animation: floaty 4s ease-in-out infinite;
}

.map-box .grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(13, 148, 136, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Accordion */
.accordion {
  display: grid;
  gap: 12px;
}

.acc-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.acc-item.open {
  box-shadow: var(--shadow);
}

.acc-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 19px 22px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
}

.acc-q .plus {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--link);
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 0.25s ease;
}

.acc-item.open .plus {
  transform: rotate(45deg);
}

.acc-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.acc-a p {
  padding: 0 22px 20px;
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Jobs ---------- */
.job-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.job-card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.job-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- Legal ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  display: grid;
  gap: 4px;
}

.legal-nav a {
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--ink-2);
}

.legal-nav a:hover {
  background: var(--brand-50);
  color: var(--link);
}

.legal-doc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 38px;
}

.legal-doc section {
  padding-bottom: 34px;
  margin-bottom: 34px;
  border-bottom: 1px dashed var(--line);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.legal-doc section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-doc h2 {
  font-size: 1.45rem;
}

.legal-doc h3 {
  font-size: 1.05rem;
  margin-top: 22px;
}

.legal-doc p,
.legal-doc li {
  color: var(--muted);
  font-size: 0.97rem;
}

.legal-doc ul {
  display: grid;
  gap: 9px;
  margin: 14px 0;
}

.legal-doc ul li {
  padding-left: 26px;
  position: relative;
}

.legal-doc ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--brand);
}

.updated {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: var(--brand-50);
  color: var(--link-strong);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: 999px;
  margin-bottom: 26px;
}

/* ---------- Footer ---------- */
.footer {
  background: #061e1a;
  color: #cfe0dc;
  padding: 74px 0 0;
  margin-top: 90px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer .logo span b {
  color: #7ce7d8;
}

.footer p {
  color: #93aaa5;
  font-size: 0.94rem;
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.footer-links {
  display: grid;
  gap: 11px;
}

.footer-links a {
  color: #a9bfba;
  font-size: 0.94rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: color 0.16s ease, transform 0.16s ease;
  width: fit-content;
}

.footer-links a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0;
  transition: opacity 0.16s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links a:hover::before {
  opacity: 1;
}

.footer-contact li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 15px;
  font-size: 0.94rem;
  color: #a9bfba;
}

.footer-contact .ic {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
  display: grid;
  place-items: center;
  color: #7ce7d8;
  flex: none;
}

.footer-contact .ic svg {
  width: 16px;
  height: 16px;
}

.footer-contact a:hover {
  color: #fff;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  display: grid;
  place-items: center;
  color: #cfe0dc;
  transition: all 0.18s ease;
}

.socials a:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-3px);
}

.socials svg {
  width: 17px;
  height: 17px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.87rem;
  color: #8ba39e;
}

.footer-bottom .legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ---------- Misc ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  border: 0;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.25s ease;
  z-index: 60;
  box-shadow: var(--shadow-lg);
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--brand-600);
}

.to-top svg {
  width: 19px;
  height: 19px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 140%);
  background: var(--ink);
  color: #fff;
  padding: 15px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.93rem;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.3);
  max-width: calc(100vw - 40px);
}

.toast.show {
  transform: translate(-50%, 0);
}

.toast .ok {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
}

.toast .ok svg {
  width: 13px;
  height: 13px;
}

/* Reveal only hides content when JS is running, so no-JS visitors still see the page */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-soft);
  color: #d1502b;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
}

.marquee-note {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  width: fit-content;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.marquee-note b {
  color: var(--link);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .book-card {
    position: static;
  }

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

@media (max-width: 960px) {
  .nav-links,
  .nav-cta .sign-in,
  .nav-cta .btn {
    display: none;
  }

  .nav-cta {
    margin-left: auto;
  }

  .burger {
    display: grid;
  }

  .nav-inner {
    gap: 16px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-visual {
    min-height: 430px;
    max-width: 560px;
  }

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

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .filter-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

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

  .steps::before {
    display: none;
  }

  .stats-band {
    grid-template-columns: repeat(2, 1fr);
    padding: 40px 28px;
  }

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

  .auth-side {
    display: none;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    margin-top: -30px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 6px;
  }

  .legal-nav a {
    white-space: nowrap;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 64px 0;
  }

  .container {
    padding-inline: 18px;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 44px);
    padding-bottom: 64px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 9vw, 2.7rem);
  }

  .search-row {
    flex-direction: column;
  }

  .search-row .btn {
    width: 100%;
  }

  .hero-stats {
    gap: 22px;
  }

  .hero-visual {
    min-height: 400px;
  }

  .hv-main {
    inset: 16px 0 0 0;
    padding: 20px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .form-row,
  .radio-cards,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .stats-band {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cta-band {
    padding: 42px 26px;
  }

  .profile-banner {
    padding: 26px;
  }

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

  .profile-actions .btn {
    flex: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .legal-doc {
    padding: 24px 20px;
  }

  .head-row {
    margin-bottom: 30px;
  }

  .auth-main {
    padding: 34px 18px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =============================================================
   Theme toggle + dark mode
   [data-theme="dark"] is set on <html> by the inline boot script
   before first paint; main.js flips it and persists to localStorage.
   ============================================================= */
.theme-toggle {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, background 0.18s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
  color: var(--link);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
  display: block;
}

.theme-toggle .ic-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .ic-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .ic-moon {
  display: none;
}

/* Floating toggle on auth pages (they have no top nav) */
.theme-toggle-float {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 120;
  box-shadow: var(--shadow-sm);
}

/* ---------- Dark palette ---------- */
[data-theme="dark"] {
  color-scheme: dark;

  --ink: #e7f5f1;
  --ink-2: #cbe2dc;
  --muted: #93aaa5;
  --line: #1e4b43;
  --line-strong: #27564e;
  --bg: #061a17;
  --card: #0d2b26;

  --surface-2: #0f332d;
  --surface-3: #0a2521;
  --surface-4: #113731;

  --link: #5eead4;
  --link-strong: #99f6e4;
  --placeholder: #7f9691;

  --brand-50: #0c332f;
  --brand-100: #12433d;

  --accent-soft: #3b1f18;
  --danger: #f87171;
  --danger-ink: #fca5a5;
  --danger-bg: #2b1312;

  --ok-ink: #4ade80;
  --ok-bg: #052e16;
  --ok-border: #14532d;

  --indigo-bg: #1e1b4b;
  --indigo-ink: #a5b4fc;

  --blob-a: #0e4b42;
  --blob-b: #0d453d;

  --nav-glass: rgba(6, 26, 23, 0.78);
  --nav-glass-solid: rgba(6, 26, 23, 0.94);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.45);
  --shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, 0.85);
}

/* Inverted controls: "dark" ink surfaces become light in dark mode,
   so their text/icons must flip to stay readable. */
[data-theme="dark"] .btn-dark,
[data-theme="dark"] .to-top {
  color: #06221e;
}

/* Toast must stay a dark surface (its label is hard-coded white) */
[data-theme="dark"] .toast {
  background: #041211;
}

/* Select chevron: data-URI stroke is hard-coded, swap for a light one */
[data-theme="dark"] .select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235eead4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* =============================================================
   Booking confirmation + printable prescription (prescription.html)
   ============================================================= */

/* --- Doctor page: post-booking confirmation card --- */
.book-done {
  display: none;
  text-align: center;
  padding: 6px 2px 2px;
}
.book-done.show {
  display: block;
}
.book-done-ic {
  width: 58px;
  height: 58px;
  margin: 4px auto 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  color: var(--ok-ink);
}
.book-done-ic svg {
  width: 26px;
  height: 26px;
}
.book-done h4 {
  margin: 14px 0 6px;
  font-size: 1.12rem;
  color: var(--ink);
}
.book-done p {
  margin: 0 0 4px;
  font-size: 0.88rem;
}
.book-done .btn {
  margin-top: 12px;
}
.book-done .btn svg {
  width: 17px;
  height: 17px;
}

/* --- Rx page shell --- */
.rx-main {
  padding: calc(var(--nav-h) + 30px) 0 76px;
  background: var(--bg);
}
.rx-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.rx-toolbar h1 {
  margin: 8px 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.rx-toolbar .muted {
  max-width: 640px;
  margin: 0;
  font-size: 0.95rem;
}
.rx-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.rx-buttons svg {
  width: 18px;
  height: 18px;
}

/* --- Rx sheet --- */
.rx-sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 42px);
}
.rx-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 2px dashed var(--line-strong);
}
.rx-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.rx-brand .logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--brand-600);
  color: #fff;
  display: grid;
  place-items: center;
}
.rx-brand > div > b {
  display: block;
  font-size: 1.16rem;
  color: var(--ink);
}
.rx-brand > div > b b {
  color: var(--accent);
}
.rx-brand > div > span {
  display: block;
  font-size: 0.79rem;
  color: var(--muted);
}
.rx-meta {
  display: flex;
  gap: 26px;
}
.rx-meta span {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.rx-meta b {
  display: block;
  margin-top: 3px;
  font-size: 0.97rem;
  color: var(--ink);
}

.rx-parties {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 26px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.rx-doc {
  display: flex;
  gap: 15px;
  align-items: center;
}
.rx-doc h3 {
  margin: 0;
  font-size: 1.22rem;
  color: var(--ink);
}
.rx-degree {
  margin: 3px 0 4px;
  font-size: 0.87rem;
  font-weight: 800;
  color: var(--link);
}
.rx-doc .muted {
  margin: 0;
  font-size: 0.9rem;
}
.rx-reg {
  display: inline-block;
  margin-top: 9px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.rx-patient {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 15px 18px;
}
.rx-patient h4 {
  margin: 0 0 9px;
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.rx-patient dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 14px;
  margin: 0;
  font-size: 0.9rem;
}
.rx-patient dt {
  color: var(--muted);
}
.rx-patient dd {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.rx-block {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.rx-block h4 {
  margin: 0 0 11px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.rx-block p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--muted);
}
.rx-r {
  color: var(--accent);
  font-size: 1.1rem;
}
.rx-table-wrap {
  overflow-x: auto;
  max-width: 100%;
}
.rx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.rx-table th,
.rx-table td {
  padding: 11px 13px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.rx-table thead th {
  background: var(--ink-surface);
  color: #fff;
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-color: var(--ink-surface);
}
.rx-table .n {
  width: 44px;
  text-align: center;
  color: var(--muted);
}
.rx-table tbody td {
  color: var(--muted);
}
.rx-table thead th.n {
  color: #fff;
}
.rx-table tbody td:nth-child(2) {
  color: var(--ink);
  font-weight: 700;
}
.rx-table tbody tr:nth-child(even) td {
  background: var(--surface-2);
}
.rx-advice {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.rx-advice li {
  position: relative;
  padding-left: 27px;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--muted);
}
.rx-advice li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--brand-100);
  color: var(--brand-700);
}

.rx-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-top: 24px;
}
.rx-disclaimer {
  max-width: 520px;
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.65;
  color: var(--muted);
}
.rx-signature {
  text-align: center;
  min-width: 220px;
}
.rx-sign-line {
  display: block;
  width: 220px;
  height: 36px;
  margin: 0 auto 7px;
  border-bottom: 1.5px solid var(--ink);
}
.rx-signature b {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
}
.rx-signature span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.rx-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.rx-bottom p {
  margin: 0;
  font-size: 0.9rem;
}
.rx-bottom a {
  color: var(--link);
  font-weight: 700;
}

@media (max-width: 900px) {
  .rx-parties {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .rx-head {
    flex-direction: column;
  }
  .rx-meta {
    gap: 18px;
  }
  .rx-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .rx-buttons {
    width: 100%;
  }
  .rx-buttons .btn {
    flex: 1;
    justify-content: center;
  }
  .rx-table {
    font-size: 0.84rem;
  }
  .rx-table th,
  .rx-table td {
    padding: 8px 9px;
  }
  .rx-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .rx-signature {
    min-width: 0;
  }
  .rx-sign-line {
    width: 100%;
  }
}

/* --- Print: hide chrome, keep the sheet crisp on paper --- */
@media print {
  @page {
    size: A4;
    margin: 14mm;
  }
  .nav,
  .mobile-menu,
  .footer,
  .to-top,
  .toast,
  .no-print {
    display: none !important;
  }
  body.rx-page {
    background: #fff !important;
  }
  .rx-main {
    padding: 0 !important;
    background: none !important;
  }
  .rx-sheet {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: #fff !important;
  }
  .rx-head {
    border-bottom-color: #999 !important;
  }
  .rx-parties,
  .rx-block {
    border-bottom-color: #ddd !important;
  }
  .rx-patient {
    background: #f7f7f7 !important;
    border-color: #ddd !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .rx-table thead th {
    background: #eee !important;
    color: #000 !important;
    border-color: #bbb !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .rx-table th,
  .rx-table td {
    border-color: #ccc !important;
  }
  .rx-table tbody tr:nth-child(even) td {
    background: #fafafa !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .rx-advice li::before {
    background: #e5e5e5 !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .rx-reg {
    background: #f2f2f2 !important;
    border-color: #ddd !important;
  }
  .rx-degree {
    color: #0b5d56 !important;
  }
  .rx-disclaimer,
  .rx-block p,
  .rx-advice li,
  .rx-patient dt,
  .rx-signature span,
  .rx-brand > div > span,
  .rx-meta span {
    color: #444 !important;
  }
  .rx-sign-line {
    border-bottom-color: #000 !important;
  }
  .rx-table-wrap {
    overflow: visible !important;
  }
  a {
    color: inherit !important;
    text-decoration: none !important;
  }
}
