:root {
  --bg: #f5f8fb;
  --surface: #ffffff;
  --surface-2: #edf7fb;
  --ink: #12212b;
  --navy: #08204a;
  --muted: #5b6b77;
  --blue: #087ea4;
  --blue-dark: #075f7c;
  --gold: #c8a24a;
  --gold-light: #f2d589;
  --gold-deep: #9a6818;
  --teal-premium: #064c4f;
  --teal-deep: #032d34;
  --rose: #cf5f82;
  --green: #2f9f75;
  --danger: #b94a48;
  --border: #dce8ee;
  --shadow: 0 18px 50px rgba(18, 33, 43, 0.12);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

body.portal-open {
  background: #fbfaf7;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

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

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220, 232, 238, 0.9);
}

.header-grid {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 12px 24px rgba(8, 126, 164, 0.24);
}

.brand-logo {
  display: block;
  width: clamp(190px, 18vw, 270px);
  height: auto;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a,
.portal-nav button {
  border: 1px solid transparent;
  color: #334653;
  padding: 9px 12px;
  border-radius: 999px;
  transition: 180ms ease;
}

.site-nav a:hover,
.portal-nav button:hover,
.portal-nav button.active {
  color: var(--blue-dark);
  border-color: rgba(8, 126, 164, 0.18);
  background: rgba(8, 126, 164, 0.08);
}

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

.header-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.btn,
.icon-link,
.floating-btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn {
  min-height: 44px;
  padding: 0 16px;
  font-weight: 800;
}

.btn:hover,
.icon-link:hover,
.floating-btn:hover {
  transform: translateY(-2px);
}

.btn svg,
.icon-link svg,
.floating-btn svg,
.feature-list svg,
.contact-list svg {
  width: 18px;
  height: 18px;
}

.ig-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.66rem;
  font-weight: 1000;
  letter-spacing: 0;
}

.ig-mark.dark {
  color: #8a3ab9;
  background: rgba(138, 58, 185, 0.12);
}

.btn-primary {
  color: white;
  border: 1px solid rgba(242, 213, 137, 0.62);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(135deg, var(--teal-premium), #08747a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 28px rgba(3, 45, 52, 0.22),
    0 0 0 1px rgba(154, 104, 24, 0.1);
}

.btn-primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 34px rgba(3, 45, 52, 0.28),
    0 0 20px rgba(242, 213, 137, 0.22);
}

.btn-ghost {
  color: var(--teal-premium);
  background: linear-gradient(135deg, #ffffff, #fffaf1);
  border: 1px solid rgba(200, 162, 74, 0.42);
  box-shadow: 0 10px 24px rgba(87, 61, 18, 0.08);
}

.btn-light {
  background: white;
  color: var(--blue-dark);
  box-shadow: 0 12px 30px rgba(18, 33, 43, 0.12);
}

.btn-instagram {
  color: white;
  background: linear-gradient(135deg, #8a3ab9, #e95950 45%, #fccc63);
  box-shadow: 0 14px 28px rgba(207, 95, 130, 0.24);
}

.btn-danger {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: linear-gradient(135deg, #a83d3b, #c65a50);
  box-shadow: 0 14px 28px rgba(185, 74, 72, 0.22);
}

.btn-large {
  min-height: 52px;
  padding-inline: 20px;
}

.full {
  width: 100%;
}

.icon-link {
  width: 44px;
  height: 44px;
  color: var(--blue-dark);
  background: #eef9fc;
  border: 1px solid rgba(8, 126, 164, 0.14);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(5, 65, 88, 0.96), rgba(8, 126, 164, 0.68)),
    url("https://images.unsplash.com/photo-1606811971618-4486d14f3f99?auto=format&fit=crop&w=1800&q=85") center/cover;
  color: white;
}

.hero-full-bleed {
  min-height: 0;
  display: block;
  background: #fff;
  color: var(--ink);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(0deg, var(--bg), transparent);
}

.hero-full-bleed::after {
  display: none;
}

.hero-full-image {
  display: block;
  width: 100%;
  height: auto;
  object-position: center;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.88fr);
  gap: 50px;
  align-items: center;
  padding: 72px 0 92px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f5d47a;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.hero-subtitle {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

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

.hero-visual img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 270px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: 0 18px 38px rgba(18, 33, 43, 0.2);
  font-weight: 800;
}

.hero-card svg {
  flex: 0 0 auto;
  color: var(--blue);
}

.hero-card-top {
  top: 28px;
  left: -28px;
}

.hero-card-bottom {
  right: -22px;
  bottom: 34px;
}

.section {
  padding: 84px 0;
}

.section-soft {
  background: #ffffff;
}

.section-band {
  background: linear-gradient(135deg, #eaf7fb, #fff8e7);
}

.about-specialist-section {
  padding: 36px 0 52px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
}

.about-specialist-wrap {
  max-width: min(100% - 32px, 1536px);
}

.about-specialist-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(220, 232, 238, 0.9);
  box-shadow: 0 24px 58px rgba(18, 33, 43, 0.12);
  background: #ffffff;
}

.differentials-visual-section {
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #eef5fb;
}

.differentials-visual-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.insurance-visual-section {
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #f5f8fb;
}

.insurance-visual-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.instagram-visual-section {
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

.instagram-visual-section a {
  display: block;
}

.instagram-visual-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.agenda-visual-section {
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

.agenda-visual-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.split,
.location-grid,
.auth-grid,
.instagram-layout,
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
}

.align-center {
  align-items: center;
}

.align-start {
  align-items: start;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-copy,
.text-block p,
.instagram-copy p,
.auth-intro p {
  color: var(--muted);
  font-size: 1.02rem;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.feature-list span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
}

.feature-list svg {
  color: var(--green);
}

.specialty-grid,
.benefit-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.specialty-card,
.benefit-grid article,
.review-card,
.auth-panel,
.dashboard-card,
.data-panel,
.modal-panel {
  border-radius: var(--radius);
  border: 1px solid rgba(200, 162, 74, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 252, 246, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 30px rgba(71, 47, 12, 0.07);
}

.benefit-grid article,
.review-card,
.dashboard-card,
.data-panel {
  padding: 18px;
}

.specialty-card {
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.specialty-card-wide {
  grid-column: span 2;
}

.specialty-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 375 / 313;
  object-fit: cover;
}

.specialty-card-wide .specialty-image {
  aspect-ratio: 536 / 315;
}

.specialty-card svg,
.benefit-grid svg,
.dashboard-card svg {
  width: 25px;
  height: 25px;
  color: var(--blue);
}

.specialty-card p,
.benefit-grid p,
.review-card p,
.dashboard-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.plans-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 13px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border);
  font-weight: 800;
  color: #334653;
}

.plan-pill svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.instagram-section {
  color: white;
  background:
    linear-gradient(135deg, rgba(35, 20, 70, 0.92), rgba(207, 95, 130, 0.78)),
    url("https://images.unsplash.com/photo-1588776814546-1ffcf47267a5?auto=format&fit=crop&w=1700&q=85") center/cover;
}

.instagram-section .eyebrow {
  color: #ffe28a;
}

.instagram-section p {
  color: rgba(255, 255, 255, 0.86);
}

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

.post-card {
  position: relative;
  min-height: 205px;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 16px;
  border-radius: var(--radius);
  color: white;
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.post-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.72));
}

.post-card span {
  position: relative;
  font-weight: 900;
}

.post-1 {
  background-image: url("https://images.unsplash.com/photo-1600170311833-c2cf5280ce49?auto=format&fit=crop&w=650&q=82");
}

.post-2 {
  background-image: url("https://images.unsplash.com/photo-1609840114035-3c981b782dfe?auto=format&fit=crop&w=650&q=82");
}

.post-3 {
  background-image: url("https://images.unsplash.com/photo-1606811841689-23dfddce3e95?auto=format&fit=crop&w=650&q=82");
}

.post-4 {
  background-image: url("https://images.unsplash.com/photo-1629909615184-74f495363b67?auto=format&fit=crop&w=650&q=82");
}

.schedule-reference {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: white;
  box-shadow: var(--shadow);
}

.schedule-reference img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  background: white;
}

.review-card {
  display: grid;
  gap: 8px;
}

.stars {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0;
}

.faq-premium-section {
  position: relative;
  overflow: hidden;
  padding: 74px 0 82px;
  color: #f7fbff;
  background:
    linear-gradient(135deg, #03111f 0%, #041b2a 52%, #02101b 100%);
}

.faq-premium-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(28deg, rgba(242, 213, 137, 0.08) 0 1px, transparent 1px 42px),
    linear-gradient(115deg, transparent 0 64%, rgba(8, 126, 164, 0.12) 64.2%, transparent 64.6%);
  opacity: 0.42;
  pointer-events: none;
}

.faq-premium-section .container {
  position: relative;
  z-index: 1;
}

.faq-premium-section .faq-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(560px, 1.22fr);
  gap: 64px;
  align-items: start;
}

.faq-premium-intro {
  display: grid;
  gap: 24px;
  align-content: start;
}

.faq-eyebrow {
  position: relative;
  margin: 0;
  color: var(--gold-light);
  font-size: 0.95rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.faq-eyebrow::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--gold-light), transparent);
}

.faq-premium-intro h2 {
  margin: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.45rem;
  font-weight: 600;
  line-height: 0.98;
}

.faq-premium-intro h2 span {
  display: block;
  color: #10a6b6;
}

.faq-premium-intro > p {
  max-width: 360px;
  margin: 0;
  color: rgba(247, 251, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.6;
}

.faq-help-card {
  position: relative;
  width: 180px;
  height: 170px;
  display: grid;
  place-items: center;
  margin: 16px 0 10px 58px;
  border: 1px solid rgba(51, 240, 213, 0.72);
  border-radius: 8px;
  color: #12d9e7;
  background:
    linear-gradient(135deg, rgba(10, 93, 108, 0.45), rgba(3, 17, 31, 0.82));
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
}

.faq-help-card::after {
  content: "";
  position: absolute;
  left: -86px;
  right: -54px;
  bottom: -20px;
  height: 48px;
  border-bottom: 1px solid rgba(242, 213, 137, 0.8);
  border-radius: 50%;
  transform: rotate(6deg);
}

.faq-help-card svg {
  width: 90px;
  height: 90px;
  stroke-width: 1.4;
}

.faq-help-card span {
  position: absolute;
  right: -24px;
  bottom: 24px;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold-light);
  border-radius: 50%;
  color: var(--gold-light);
  background: #0b1e29;
  font-size: 2.5rem;
  font-weight: 950;
  box-shadow: 0 0 26px rgba(242, 213, 137, 0.22);
}

.faq-safe-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.faq-safe-note span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #17d2dc;
}

.faq-safe-note svg {
  width: 34px;
  height: 34px;
}

.faq-safe-note p {
  margin: 0;
  color: rgba(247, 251, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.38;
}

.faq-safe-note strong {
  display: block;
  margin-bottom: 2px;
  color: #17d2dc;
  font-size: 1rem;
}

.faq-list {
  display: grid;
  gap: 22px;
}

.faq-list details {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  padding: 26px 34px 24px;
  border: 1px solid rgba(51, 240, 213, 0.28);
  border-left-color: rgba(242, 213, 137, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(6, 45, 64, 0.86), rgba(2, 16, 28, 0.93));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px rgba(0, 0, 0, 0.16);
}

.faq-list summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18, 217, 231, 0.6);
  border-radius: 50%;
  color: var(--gold-light);
  background:
    linear-gradient(135deg, rgba(13, 104, 119, 0.52), rgba(3, 17, 31, 0.78));
}

.faq-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.8;
}

.faq-copy strong {
  display: block;
  color: #ffffff;
  font-size: 1.32rem;
  font-weight: 950;
  line-height: 1.24;
}

.faq-list details p {
  max-width: 640px;
  margin: -24px 54px 0 112px;
  color: rgba(247, 251, 255, 0.78);
  font-size: 1.06rem;
  line-height: 1.48;
}

.faq-chevron {
  width: 28px;
  height: 28px;
  color: var(--gold-light);
  transition: transform 180ms ease;
}

.faq-list details:not([open]) .faq-chevron {
  transform: rotate(-90deg);
}

.faq-list details:not([open]) {
  min-height: 112px;
}

.auth-section {
  padding: 34px 0;
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(239, 244, 247, 0.96));
}

.auth-premium-shell {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(430px, 1.05fr);
  gap: 38px;
  align-items: center;
  min-height: 690px;
  padding: 54px;
  border: 1px solid rgba(207, 222, 231, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.68) 43%, rgba(255, 255, 255, 0.84) 100%),
    url("https://images.unsplash.com/photo-1606811971618-4486d14f3f99?auto=format&fit=crop&w=1500&q=85") center/cover;
  box-shadow: 0 22px 60px rgba(18, 33, 43, 0.13);
}

.auth-premium-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 64% 12%, rgba(255, 255, 255, 0.78), transparent 26%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 48%);
  pointer-events: none;
}

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

.auth-intro {
  display: grid;
  gap: 28px;
  align-content: center;
}

.auth-brand-logo {
  width: min(100%, 300px);
  height: auto;
}

.auth-intro h2 {
  max-width: 510px;
  margin: 0;
  color: #07364a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.45rem;
  font-weight: 600;
  line-height: 1.04;
}

.auth-intro p {
  max-width: 480px;
  margin: 0;
  color: #66778a;
  font-size: 1rem;
  line-height: 1.7;
}

.auth-intro > p::before {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  margin: 0 0 20px;
  background: #0d91a9;
}

.auth-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  max-width: 560px;
}

.auth-benefits span {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  color: #0c3852;
  text-align: center;
}

.auth-benefits svg {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 50%;
  color: #087ea4;
  background: rgba(234, 249, 251, 0.92);
  box-shadow: 0 12px 26px rgba(18, 33, 43, 0.08);
}

.auth-benefits small {
  display: block;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.35;
}

.auth-security-card {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100%, 430px);
  padding: 16px 18px;
  border: 1px solid rgba(220, 232, 238, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 32px rgba(18, 33, 43, 0.08);
}

.auth-security-card span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(8, 126, 164, 0.2);
  border-radius: 8px;
  color: #087ea4;
  background: #eaf8fb;
}

.auth-security-card svg {
  width: 27px;
  height: 27px;
}

.auth-security-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.auth-panel {
  width: min(100%, 590px);
  justify-self: end;
  padding: 36px;
  border: 1px solid rgba(220, 232, 238, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(18, 33, 43, 0.14);
  backdrop-filter: blur(12px);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 30px;
}

.auth-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 62px;
  border: 1px solid #d7e2ea;
  border-radius: 8px;
  background: #ffffff;
  color: #31465b;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(18, 33, 43, 0.04);
}

.auth-tab svg {
  width: 23px;
  height: 23px;
}

.auth-tab.active {
  background: linear-gradient(135deg, #053b50, #087ea4);
  color: white;
  border-color: transparent;
  box-shadow: 0 16px 32px rgba(8, 126, 164, 0.25);
}

.auth-form {
  display: none;
}

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

.auth-form label {
  gap: 10px;
  color: #18364a;
  font-size: 0.84rem;
  font-weight: 950;
}

.auth-input-shell {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid #d7e2ea;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  transition: border 160ms ease, box-shadow 160ms ease;
}

.auth-input-shell:focus-within {
  border-color: rgba(8, 126, 164, 0.7);
  box-shadow: 0 0 0 4px rgba(8, 126, 164, 0.1);
}

.auth-input-shell > svg {
  width: 21px;
  height: 21px;
  color: #8390a2;
}

.auth-input-shell .auth-eye {
  width: 21px;
  height: 21px;
}

.auth-input-shell input {
  min-height: 56px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.auth-input-shell input:focus {
  border: 0;
  box-shadow: none;
}

.auth-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #7a8798;
  font-weight: 800;
}

.auth-remember input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.auth-form .link-button {
  justify-self: end;
  color: #087ea4;
  font-size: 0.84rem;
}

.auth-submit {
  min-height: 62px;
  border-radius: 8px;
  background: linear-gradient(135deg, #053b50, #087ea4);
  box-shadow: 0 16px 28px rgba(8, 126, 164, 0.24);
}

.auth-safe-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #8491a4;
  font-weight: 800;
  text-align: center;
}

.auth-safe-line svg {
  width: 20px;
  height: 20px;
}

label {
  display: grid;
  gap: 7px;
  color: #2f424f;
  font-size: 0.92rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfdee7;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
  transition: border 160ms ease, box-shadow 160ms ease;
}

input[type="radio"],
input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--teal-premium);
  box-shadow: none;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(8, 126, 164, 0.12);
}

input[type="radio"]:focus,
input[type="checkbox"]:focus {
  box-shadow: 0 0 0 4px rgba(8, 126, 164, 0.12);
}

.form-pair,
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkbox-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  font-weight: 700;
  color: var(--muted);
}

.checkbox-row input {
  margin-top: 2px;
}

.insurance-choice-field {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.insurance-choice-field legend {
  margin-bottom: 2px;
  color: #2f424f;
  font-size: 0.92rem;
  font-weight: 850;
}

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

.insurance-choice-option {
  min-height: 58px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #cfdee7;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.insurance-choice-option span {
  display: grid;
  gap: 2px;
}

.insurance-choice-option strong {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.1;
}

.insurance-choice-option small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.2;
}

.insurance-choice-option:has(input:checked) {
  border-color: rgba(8, 126, 164, 0.42);
  background: #f1fbf7;
  box-shadow: 0 8px 24px rgba(8, 126, 164, 0.1);
}

.link-button {
  justify-self: center;
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  cursor: pointer;
  font-weight: 900;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.location-grid iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.contact-list a,
.contact-list span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-dark);
  font-weight: 900;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 30px 0 24px;
  color: #f7fbff;
  background:
    radial-gradient(circle at 78% 18%, rgba(8, 126, 164, 0.2), transparent 30%),
    radial-gradient(circle at 12% 14%, rgba(242, 213, 137, 0.12), transparent 24%),
    linear-gradient(135deg, #03111f 0%, #041a27 52%, #02111b 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(8, 126, 164, 0.1) 58.2%, transparent 58.5%),
    repeating-linear-gradient(28deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 38px);
  opacity: 0.55;
  pointer-events: none;
}

.site-footer > .container {
  position: relative;
  z-index: 1;
}

.footer-location-grid {
  display: grid;
  grid-template-columns: minmax(430px, 0.95fr) minmax(500px, 1.05fr);
  gap: 28px;
  align-items: start;
}

.footer-location-copy {
  display: grid;
  align-content: start;
  gap: 13px;
}

.footer-kicker {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-kicker-icon,
.footer-contact-icon,
.footer-trust-card > span,
.footer-benefit-strip article > span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(242, 213, 137, 0.42);
  color: var(--gold-light);
  background:
    radial-gradient(circle at 50% 28%, rgba(242, 213, 137, 0.26), transparent 42%),
    rgba(2, 17, 27, 0.82);
  box-shadow: 0 0 22px rgba(200, 162, 74, 0.18);
}

.footer-kicker-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.footer-kicker-icon svg {
  width: 22px;
  height: 22px;
}

.footer-location-copy h2 {
  margin: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.45rem;
  font-weight: 500;
  line-height: 1.04;
}

.footer-location-copy h2 span {
  color: #17a1b5;
}

.footer-location-note {
  max-width: 500px;
  margin: 0;
  color: rgba(247, 251, 255, 0.74);
  font-size: 0.9rem;
  line-height: 1.45;
}

.footer-contact-stack {
  display: grid;
  gap: 8px;
}

.footer-contact-card {
  min-height: 46px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  border: 1px solid rgba(242, 213, 137, 0.14);
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(4, 32, 48, 0.92), rgba(3, 17, 31, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.footer-contact-card:hover {
  border-color: rgba(242, 213, 137, 0.5);
  transform: translateY(-1px);
}

.footer-contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.footer-contact-icon svg {
  width: 19px;
  height: 19px;
}

.footer-contact-icon.whatsapp {
  color: #33f0d5;
  border-color: rgba(51, 240, 213, 0.32);
}

.footer-contact-icon.instagram {
  color: #ffffff;
  border-color: rgba(242, 93, 173, 0.28);
  background: linear-gradient(135deg, #5c2de0, #e93e7e 52%, #f6a42f);
}

.footer-contact-icon.clock {
  color: #1be0ef;
  border-color: rgba(27, 224, 239, 0.34);
}

.footer-contact-card strong,
.footer-contact-card small,
.footer-trust-card strong,
.footer-benefit-strip strong {
  display: block;
}

.footer-contact-card strong {
  color: #ffffff;
  font-size: 0.92rem;
  line-height: 1.2;
}

.footer-contact-card small {
  margin-top: 2px;
  color: rgba(247, 251, 255, 0.74);
  font-size: 0.76rem;
}

.footer-contact-card em {
  min-width: 118px;
  padding: 7px 12px;
  border: 1px solid rgba(200, 162, 74, 0.52);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.footer-contact-card > svg {
  width: 18px;
  height: 18px;
  color: var(--gold-light);
}

.footer-trust-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(242, 213, 137, 0.48);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(242, 213, 137, 0.11), rgba(8, 126, 164, 0.08));
}

.footer-trust-card > span {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.footer-trust-card svg {
  width: 22px;
  height: 22px;
}

.footer-trust-card p {
  margin: 0;
  color: rgba(247, 251, 255, 0.78);
  font-size: 0.88rem;
  line-height: 1.28;
}

.footer-trust-card strong {
  margin-bottom: 3px;
  color: var(--gold-light);
  font-size: 1rem;
}

.footer-map-card {
  position: relative;
  height: 300px;
  min-height: 0;
  align-self: start;
  overflow: hidden;
  border: 1px solid rgba(51, 240, 213, 0.64);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 92%, rgba(8, 126, 164, 0.52), transparent 32%),
    linear-gradient(135deg, rgba(3, 17, 31, 0.98), rgba(1, 28, 43, 0.96));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.footer-map-card::before {
  display: none;
}

.footer-map-card::after {
  display: none;
}

.footer-map-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-map-roads,
.footer-map-info,
.footer-map-label,
.footer-map-marker,
.footer-map-video,
.footer-map-zoom {
  position: absolute;
  z-index: 1;
}

.road {
  display: block;
  border-radius: 999px;
  background: rgba(130, 169, 192, 0.4);
  box-shadow: 0 0 0 2px rgba(13, 35, 51, 0.72);
}

.road-main {
  left: 58%;
  top: -8%;
  width: 13px;
  height: 118%;
  transform: rotate(-28deg);
}

.road-cross {
  left: 42%;
  top: 46%;
  width: 67%;
  height: 11px;
  transform: rotate(17deg);
}

.road-soft.one {
  left: 20%;
  top: 44%;
  width: 52%;
  height: 7px;
  transform: rotate(-6deg);
  opacity: 0.45;
}

.road-soft.two {
  right: -12%;
  top: 62%;
  width: 47%;
  height: 8px;
  transform: rotate(-25deg);
  opacity: 0.5;
}

.road-soft.three {
  left: 56%;
  top: 10%;
  width: 9px;
  height: 82%;
  transform: rotate(-5deg);
  opacity: 0.34;
}

.footer-map-info {
  top: 18px;
  left: 18px;
  right: 18px;
  width: min(440px, calc(100% - 36px));
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(242, 213, 137, 0.4);
  border-radius: 8px;
  background: rgba(3, 17, 31, 0.86);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.25);
}

.footer-map-info > svg {
  width: 28px;
  height: 28px;
  color: var(--gold-light);
  fill: rgba(242, 213, 137, 0.25);
}

.footer-map-info strong,
.footer-map-info small {
  display: block;
}

.footer-map-info strong {
  color: #ffffff;
  font-size: 0.96rem;
  line-height: 1.2;
}

.footer-map-info small {
  margin-top: 2px;
  color: rgba(247, 251, 255, 0.76);
}

.footer-map-info a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(51, 240, 213, 0.28);
  border-radius: 50%;
  color: #33f0d5;
  background: rgba(1, 26, 40, 0.82);
}

.footer-map-label {
  color: #19d8ea;
  font-size: 0.85rem;
  font-weight: 800;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.label-city {
  left: 32%;
  top: 34%;
}

.label-market {
  left: 34%;
  top: 24%;
}

.label-road {
  right: 35%;
  top: 10%;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 4px;
  color: #ffffff;
  font-size: 0.72rem;
  background: rgba(3, 17, 31, 0.72);
}

.footer-map-marker {
  left: 59%;
  top: 39%;
  display: grid;
  justify-items: center;
  text-align: center;
  transform: translateX(-50%);
}

.footer-map-marker > span {
  position: relative;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 4px solid var(--gold-light);
  border-radius: 50% 50% 50% 0;
  color: #ffffff;
  background: linear-gradient(135deg, #102a36, #04141f);
  box-shadow: 0 0 30px rgba(242, 213, 137, 0.32);
  transform: rotate(-45deg);
}

.footer-map-marker > span svg {
  width: 44px;
  height: 44px;
  transform: rotate(45deg);
}

.footer-map-marker strong {
  margin-top: 18px;
  color: #ffffff;
  font-size: 1rem;
}

.footer-map-marker small {
  color: var(--gold-light);
  font-weight: 900;
}

.footer-map-video {
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 210px;
  padding: 8px 10px;
  border: 1px solid rgba(242, 213, 137, 0.62);
  border-radius: 8px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 900;
  background:
    linear-gradient(rgba(3, 17, 31, 0.45), rgba(3, 17, 31, 0.85)),
    linear-gradient(135deg, #1e7892, #0a2535);
}

.footer-map-video span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
}

.footer-map-video svg {
  width: 14px;
  height: 14px;
}

.footer-map-zoom {
  right: 28px;
  bottom: 42px;
  overflow: hidden;
  border: 1px solid rgba(242, 213, 137, 0.55);
  border-radius: 8px;
  background: rgba(3, 17, 31, 0.88);
}

.footer-map-zoom span {
  width: 46px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 1.7rem;
  line-height: 1;
}

.footer-map-zoom span + span {
  border-top: 1px solid rgba(242, 213, 137, 0.22);
}

.footer-benefit-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(242, 213, 137, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.footer-benefit-strip article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 10px;
}

.footer-benefit-strip article + article {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-benefit-strip article > span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.footer-benefit-strip svg {
  width: 21px;
  height: 21px;
}

.footer-benefit-strip p {
  margin: 0;
  color: rgba(247, 251, 255, 0.75);
  font-size: 0.84rem;
}

.footer-benefit-strip strong {
  margin-bottom: 3px;
  color: #ffffff;
  font-size: 0.92rem;
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: grid;
  gap: 10px;
}

.floating-btn {
  width: 56px;
  height: 56px;
  color: white;
  box-shadow: 0 14px 28px rgba(18, 33, 43, 0.22);
}

.floating-instagram {
  background: linear-gradient(135deg, #8a3ab9, #e95950 48%, #fccc63);
}

.floating-whatsapp {
  background: #25d366;
}

.portal-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  color: #101e2d;
  background:
    repeating-radial-gradient(ellipse at 92% -8%, rgba(200, 162, 74, 0.22) 0 1px, transparent 1px 14px),
    radial-gradient(circle at 28% 12%, rgba(255, 255, 255, 0.92), transparent 30%),
    linear-gradient(135deg, #fffdf9 0%, #f5f1e9 46%, #ffffff 100%);
}

.portal-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
  display: grid;
  grid-template-rows: 120px 1fr 96px;
  justify-items: center;
  align-items: start;
  padding: 28px 14px;
  background: linear-gradient(180deg, #06172d 0%, #08223d 54%, #041326 100%);
  box-shadow: 18px 0 38px rgba(6, 23, 45, 0.16);
}

.portal-brand-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  padding: 7px;
  border-radius: 18px;
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.portal-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portal-side-nav {
  display: grid;
  gap: 18px;
  justify-items: center;
  align-content: start;
  width: 100%;
}

.portal-side-button {
  position: relative;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  cursor: pointer;
  transition: 180ms ease;
}

.portal-side-button svg {
  width: 25px;
  height: 25px;
}

.portal-side-button:hover,
.portal-side-button.active {
  color: #f7dd91;
  border: 1px solid rgba(242, 213, 137, 0.34);
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 213, 137, 0.22), transparent 36%),
    linear-gradient(135deg, #075b5e, #062832);
  box-shadow: 0 14px 30px rgba(3, 45, 52, 0.42);
}

.portal-side-button.active::before {
  content: "";
  position: absolute;
  left: -14px;
  width: 3px;
  height: 38px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
}

.portal-side-settings {
  align-self: end;
}

.portal-main {
  min-width: 0;
  padding-bottom: 52px;
}

.portal-header {
  position: relative;
  z-index: 20;
  padding: 54px 0 22px;
  background: transparent;
  border-bottom: 0;
}

.portal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.portal-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.portal-heading-logo {
  display: block;
  width: clamp(190px, 20vw, 300px);
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.portal-top h2 {
  margin: 0;
  max-width: 880px;
  color: #07182b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.portal-actions {
  flex: 0 0 auto;
}

.portal-actions .icon-link {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #f6fbff;
  box-shadow: 0 10px 24px rgba(11, 30, 55, 0.06);
}

.portal-actions .btn {
  min-height: 54px;
  padding-inline: 22px;
  border-radius: 999px;
  font-size: 1rem;
}

.portal-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 22px;
  justify-content: center;
  padding: 38px 0 6px;
}

.portal-nav button {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: 18px;
  row-gap: 10px;
  padding: 24px 28px;
  border-radius: 22px;
  border: 1px solid rgba(200, 162, 74, 0.48);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 241, 0.9)),
    radial-gradient(circle at 18% 10%, rgba(242, 213, 137, 0.14), transparent 28%);
  color: var(--teal-deep);
  cursor: pointer;
  font-weight: 900;
  font-size: 1rem;
  text-align: left;
  white-space: normal;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 18px 34px rgba(71, 47, 12, 0.1),
    0 2px 0 rgba(154, 104, 24, 0.08);
}

.portal-nav button::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 19px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  pointer-events: none;
}

.portal-nav button::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(242, 213, 137, 0.8), transparent);
  opacity: 0.72;
}

.portal-nav-icon {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  border-radius: 16px;
  color: var(--teal-premium);
  background:
    linear-gradient(145deg, #fff7dc, #b8791c 42%, #ffeaa4 62%, #8c5b16);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.72),
    inset 0 -3px 5px rgba(92, 54, 8, 0.28),
    0 10px 18px rgba(86, 56, 12, 0.16);
}

.portal-nav-icon svg {
  width: 31px;
  height: 31px;
  stroke-width: 2.2;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.58));
}

.portal-nav-text {
  position: relative;
  z-index: 1;
  align-self: end;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 1.4vw, 1.62rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.portal-nav-ornament {
  position: relative;
  z-index: 1;
  width: min(150px, 72%);
  height: 12px;
  display: block;
  align-self: start;
}

.portal-nav-ornament::before,
.portal-nav-ornament::after {
  content: "";
  position: absolute;
  top: 5px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 120, 28, 0.66), transparent);
}

.portal-nav-ornament::before {
  left: 0;
  right: calc(50% + 8px);
}

.portal-nav-ornament::after {
  left: calc(50% + 8px);
  right: 0;
}

.portal-nav-ornament {
  background:
    linear-gradient(45deg, transparent 35%, var(--gold-deep) 35% 50%, transparent 50%) center 1px / 12px 12px no-repeat;
}

.portal-nav button:hover,
.portal-nav button.active {
  color: white;
  border-color: rgba(242, 213, 137, 0.98);
  background:
    radial-gradient(circle at 22% 0%, rgba(242, 213, 137, 0.34), transparent 24%),
    linear-gradient(135deg, #075b5e 0%, var(--teal-deep) 78%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 20px 42px rgba(3, 45, 52, 0.26),
    0 0 18px rgba(242, 213, 137, 0.28);
  transform: translateY(-3px);
}

.portal-nav button:hover .portal-nav-icon,
.portal-nav button.active .portal-nav-icon {
  color: var(--teal-deep);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.8),
    inset 0 -3px 5px rgba(92, 54, 8, 0.28),
    0 12px 24px rgba(242, 213, 137, 0.2);
}

.portal-nav button:hover .portal-nav-ornament::before,
.portal-nav button:hover .portal-nav-ornament::after,
.portal-nav button.active .portal-nav-ornament::before,
.portal-nav button.active .portal-nav-ornament::after {
  background: linear-gradient(90deg, transparent, rgba(242, 213, 137, 0.82), transparent);
}

.portal-content {
  padding: 28px 0 70px;
}

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

.dashboard-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 190px;
  display: grid;
  gap: 18px;
  align-content: space-between;
  padding: 28px 24px;
  border-radius: 8px;
  border: 1px solid rgba(200, 162, 74, 0.32);
  background:
    radial-gradient(circle at 12% 0%, rgba(242, 213, 137, 0.12), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #fffcf7 72%, #f4fbfb 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 15px 36px rgba(71, 47, 12, 0.08);
  color: inherit;
  font: inherit;
  text-align: left;
}

.dashboard-card-link {
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.dashboard-card-link:hover,
.dashboard-card-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(201, 154, 60, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 18px 42px rgba(71, 47, 12, 0.14);
}

.dashboard-card-link:focus-visible {
  outline: 3px solid rgba(8, 126, 164, 0.18);
  outline-offset: 3px;
}

.dashboard-card::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -44px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 20px solid rgba(8, 126, 164, 0.05);
}

.dashboard-card svg {
  width: 32px;
  height: 32px;
  padding: 10px;
  box-sizing: content-box;
  border-radius: 14px;
  color: var(--teal-premium);
  background:
    linear-gradient(145deg, #fff7dc, #c79031 48%, #ffe9a1);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.72),
    0 9px 18px rgba(86, 56, 12, 0.12);
}

.dashboard-card span,
.dashboard-card strong {
  position: relative;
  z-index: 1;
}

.dashboard-card strong {
  display: block;
  width: 100%;
  max-width: 100%;
  font-size: clamp(1.25rem, 1.65vw, 1.72rem);
  line-height: 1.24;
  color: var(--teal-premium);
  letter-spacing: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.dashboard-card small {
  position: relative;
  z-index: 1;
  color: #8a681f;
  font-size: 0.82rem;
  font-weight: 900;
}

.portal-summary-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  padding: 20px 24px;
  border: 1px solid rgba(200, 162, 74, 0.34);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #fff8ea 46%, #eef9fa 100%);
  box-shadow: 0 14px 32px rgba(71, 47, 12, 0.07);
}

.portal-summary-strip strong {
  display: block;
  margin-bottom: 4px;
  color: #10243a;
  font-weight: 950;
}

.portal-summary-strip p {
  margin: 0;
  color: var(--muted);
}

.summary-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #f1c96a;
  background: linear-gradient(135deg, #073d85, #06172d);
  box-shadow: 0 14px 26px rgba(7, 61, 133, 0.22);
}

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

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 18px;
}

.data-panel {
  margin-bottom: 18px;
}

.data-panel h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-panel {
  padding: 22px;
}

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

.profile-heading h3 {
  margin-bottom: 6px;
}

.profile-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

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

.profile-photo-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8fcfd;
}

.profile-avatar {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--green));
  background-position: center;
  background-size: cover;
  box-shadow: 0 12px 28px rgba(8, 126, 164, 0.2);
  font-size: 2rem;
  font-weight: 1000;
}

.profile-avatar.has-photo {
  border: 4px solid white;
}

.photo-upload input {
  display: none;
}

.photo-upload span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: white;
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 900;
}

.profile-photo-panel small {
  color: var(--muted);
  text-align: center;
}

.profile-form-fields {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.profile-form-fields input,
.profile-form-fields select {
  min-height: 46px;
}

.profile-form-fields textarea {
  min-height: 84px;
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: white;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  color: #334653;
  background: #f5fbfd;
  font-size: 0.86rem;
}

.appointments-table .appointment-actions-cell {
  width: 170px;
  min-width: 170px;
  text-align: center;
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  background: #eef9fc;
  color: var(--blue-dark);
}

.status.success {
  background: #e7f7f0;
  color: #197354;
}

.status.warning {
  background: #fff7df;
  color: #8a6812;
}

.status.danger {
  background: #fdecec;
  color: #933c3a;
}

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

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

.return-availability {
  display: grid;
  gap: 10px;
}

.return-availability-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.return-selected-time {
  color: var(--blue-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

.return-planner {
  display: grid;
  gap: 18px;
}

.return-calendar-panel {
  display: grid;
  gap: 16px;
}

.return-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.return-calendar-toolbar h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  text-transform: capitalize;
}

.return-calendar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.return-calendar-actions .mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.return-calendar-actions svg {
  width: 16px;
  height: 16px;
}

.return-month-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.return-month-summary article {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fcfd;
}

.return-month-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.return-month-summary strong {
  color: var(--blue-dark);
  font-size: 1.25rem;
  font-weight: 950;
}

.return-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.return-calendar-weekday {
  padding: 8px 4px;
  color: #41525e;
  font-size: 0.78rem;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.return-calendar-day {
  min-height: 118px;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  cursor: pointer;
  transition: 160ms ease;
}

.return-calendar-day.empty {
  border-color: transparent;
  background: transparent;
  cursor: default;
}

.return-calendar-day span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #eef8fc;
  font-weight: 950;
}

.return-calendar-day strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  color: white;
  background: var(--blue);
  font-weight: 950;
}

.return-calendar-day small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.return-calendar-day.has-return {
  border-color: rgba(8, 126, 164, 0.38);
  background: #edf9fc;
  box-shadow: inset 0 -4px 0 rgba(8, 126, 164, 0.14);
}

.return-calendar-day.selected {
  border-color: var(--blue);
  background: #e2f5fb;
  box-shadow: 0 0 0 3px rgba(8, 126, 164, 0.13);
}

.return-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.return-card-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
}

.return-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.return-card-head strong,
.return-card-head span {
  display: block;
}

.return-card-head strong {
  color: var(--blue-dark);
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.return-card-head span {
  color: var(--muted);
  font-weight: 850;
}

.return-card-status {
  display: grid;
  justify-items: end;
  gap: 7px;
  min-width: 160px;
}

.return-card-status .status {
  max-width: 100%;
  text-align: center;
}

.return-card-status .return-countdown-line {
  justify-self: end;
  text-align: center;
}

.return-card-body {
  display: grid;
  gap: 6px;
}

.return-card-body p {
  margin: 0;
  color: #263946;
  overflow-wrap: anywhere;
}

.return-card-actions .action-row {
  justify-content: flex-start;
}

.return-search-row label {
  flex: 1 1 220px;
  min-width: 180px;
}

.return-finance-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f7fbfd;
}

.return-finance-panel h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.finance-alert {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 850;
}

.finance-alert.warning {
  color: #785d1f;
  background: #fff7df;
  border: 1px solid #efdc9f;
}

.finance-alert.success {
  color: #197354;
  background: #e7f7f0;
  border: 1px solid #bfe8d8;
}

.return-total-preview {
  margin: 0;
  color: var(--blue-dark);
  font-weight: 850;
}

.finance-situation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.finance-situation-grid article {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f7fbfd;
}

.finance-situation-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.finance-situation-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--blue-dark);
  font-size: 1.22rem;
}

.finance-situation-grid .debt {
  background: #fff7df;
  border-color: #efdc9f;
}

.finance-situation-grid .debt strong {
  color: #785d1f;
}

.finance-situation-grid .paid {
  background: #e7f7f0;
  border-color: #bfe8d8;
}

.finance-situation-grid .paid strong {
  color: #197354;
}

.finance-service-box {
  display: grid;
  gap: 6px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
}

.finance-service-box h3,
.finance-service-box p {
  margin-bottom: 0;
}

.finance-service-box p {
  white-space: pre-line;
}

.finance-transactions {
  margin-bottom: 14px;
}

.schedule-date-field {
  display: grid;
  gap: 8px;
}

.field-label {
  color: #2f424f;
  font-size: 0.92rem;
  font-weight: 850;
}

.schedule-calendar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding: 2px;
}

.date-button {
  min-height: 98px;
  display: grid;
  grid-template-rows: 18px 30px 18px;
  align-content: center;
  justify-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  cursor: pointer;
  transition: 160ms ease;
  padding: 9px 6px;
  overflow: hidden;
}

.date-button span,
.date-button small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: capitalize;
  line-height: 1;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.date-button strong {
  color: var(--blue-dark);
  font-size: 1.25rem;
  line-height: 1;
}

.date-button.active {
  border-color: var(--blue);
  background: #eaf8fc;
  box-shadow: 0 0 0 3px rgba(8, 126, 164, 0.12);
}

.date-button.closed {
  color: #8c6c6b;
  background: #f8eeee;
  border-color: #edd2d1;
}

.date-button.closed strong,
.date-button.closed span,
.date-button.closed small {
  color: #9a4f4d;
}

.date-button:disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.slot-button {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.slot-time {
  font-size: 1rem;
}

.slot-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.slot-button.active {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.slot-button.active .slot-label {
  color: rgba(255, 255, 255, 0.88);
}

.slot-button:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.slot-expired {
  color: #785d1f;
  background: #fff7df;
  border-color: #efdc9f;
}

.slot-expired .slot-label {
  color: #785d1f;
}

.slot-occupied {
  color: #984542;
  background: #fdecec;
  border-color: #efc8c7;
}

.slot-occupied .slot-label {
  color: #984542;
}

.slot-closed {
  color: #7a6a6a;
  background: #f3f3f3;
  border-color: #dedede;
}

.slot-closed .slot-label {
  color: #7a6a6a;
}

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

.appointment-action-stack {
  width: 100%;
  min-width: 146px;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
}

.appointment-action-stack .mini-btn,
.appointment-action-stack .status {
  width: 146px;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.18;
}

.appointment-action-stack .mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.panel-title-row h3 {
  margin-bottom: 0;
}

.mini-btn {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(200, 162, 74, 0.42);
  background: linear-gradient(135deg, #ffffff, #fffaf1);
  cursor: pointer;
  color: var(--teal-premium);
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(71, 47, 12, 0.06);
}

.mini-btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.mini-btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--teal-premium), #08747a);
  border-color: rgba(242, 213, 137, 0.62);
}

.mini-btn.danger {
  color: white;
  background: linear-gradient(135deg, #a83d3b, #c65a50);
  border-color: rgba(255, 255, 255, 0.22);
}

.empty-state {
  padding: 26px;
  border: 1px dashed #b7cbd7;
  border-radius: var(--radius);
  color: var(--muted);
  background: #f8fcfd;
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  max-width: min(92vw, 520px);
  padding: 13px 16px;
  border-radius: var(--radius);
  color: white;
  background: #12313f;
  box-shadow: var(--shadow);
  transition: 180ms ease;
  font-weight: 850;
}

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

.toast.error {
  background: var(--danger);
}

.return-reminder-float {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 95;
  width: min(390px, calc(100vw - 28px));
  display: grid;
  gap: 12px;
  padding: 15px 17px;
  border: 1px solid rgba(218, 175, 84, 0.72);
  border-left: 5px solid #c99735;
  border-radius: 20px;
  color: #082c2e;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 238, 190, 0.46), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 245, 0.96));
  box-shadow:
    0 18px 42px rgba(70, 42, 18, 0.18),
    0 4px 0 rgba(180, 130, 36, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  animation: reminderPulse 1.8s ease-in-out infinite;
}

.return-reminder-float::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 44%;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #fff2bd, #b5791d 52%, #ffe9a1);
  box-shadow: 0 9px 22px rgba(156, 104, 24, 0.26);
  transform: rotate(45deg);
}

.return-reminder-float.hidden {
  display: none;
}

.return-reminder-float.urgent {
  border-color: rgba(217, 79, 75, 0.44);
  border-left-color: #c99735;
}

.return-reminder-float.no-show {
  border-color: rgba(194, 65, 52, 0.48);
  border-left-color: #c24134;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 224, 196, 0.55), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 243, 0.97));
}

.return-reminder-float.no-show .return-reminder-title {
  color: #9f2d25;
}

.return-reminder-float.no-show .return-reminder-icon {
  color: #9f2d25;
  background: linear-gradient(145deg, #fff1e9, #f7d6c7);
}

.return-reminder-float.no-show .return-reminder-cta {
  border-color: #d2a14b;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 34%),
    linear-gradient(135deg, #873026, #c24134);
}

.return-reminder-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(179, 122, 33, 0.34);
}

.return-reminder-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #087a73;
  background: linear-gradient(145deg, #fff9ec, #f6e6c7);
  box-shadow:
    0 10px 18px rgba(94, 61, 18, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.return-reminder-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.4;
}

.return-reminder-title {
  color: #087a73;
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.return-reminder-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.return-reminder-head strong {
  display: inline-grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(145deg, #f15161, #cf2f3e);
  box-shadow: 0 9px 18px rgba(202, 49, 64, 0.22);
  font-size: 1.08rem;
  font-weight: 1000;
  text-shadow: 0 1px 0 rgba(92, 0, 8, 0.26);
}

.return-reminder-close {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(218, 175, 84, 0.28);
  border-radius: 999px;
  color: #a97822;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 9px 18px rgba(70, 42, 18, 0.1);
  cursor: pointer;
  transition: 180ms ease;
}

.return-reminder-close:hover {
  color: white;
  background: linear-gradient(145deg, #b8872f, #7b4e13);
  border-color: #b8872f;
}

.return-reminder-close svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.8;
}

.return-reminder-body {
  display: grid;
  gap: 11px;
  animation: reminderContentFade 420ms ease;
}

.return-reminder-body > strong {
  color: #073f42;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 2.5vw, 1.55rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.return-reminder-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #082c2e;
  font-size: 0.86rem;
  font-weight: 850;
}

.return-reminder-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.return-reminder-meta span + span {
  padding-left: 10px;
  border-left: 1px solid rgba(179, 122, 33, 0.48);
}

.return-reminder-meta svg {
  width: 18px;
  height: 18px;
  color: #d0a24c;
}

.return-reminder-service {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #087a73;
  background: linear-gradient(135deg, #e8f5ec, #dceee2);
  font-size: 0.84rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.return-reminder-service svg {
  width: 18px;
  height: 18px;
}

.return-reminder-cta {
  min-height: 46px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid #c99735;
  border-radius: 999px;
  color: white;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(135deg, #064245, #007d76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 24px rgba(3, 62, 65, 0.22);
  cursor: pointer;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 1000;
  text-align: center;
  transition: 180ms ease;
}

.return-reminder-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 15px 28px rgba(3, 62, 65, 0.28);
}

.return-reminder-cta svg {
  width: 21px;
  height: 21px;
  color: #f2d589;
}

.return-reminder-cta svg:last-child {
  justify-self: end;
}

.return-reminder-sound {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 18px;
  border: 1px solid rgba(200, 162, 74, 0.42);
  border-radius: 999px;
  color: var(--teal-premium);
  background: linear-gradient(135deg, #ffffff, #fffaf1);
  cursor: pointer;
  font-weight: 950;
}

.return-reminder-sound svg {
  width: 17px;
  height: 17px;
}

.return-reminder-list {
  display: grid;
  gap: 8px;
}

.return-reminder-item {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
}

.return-reminder-item strong,
.return-reminder-item span,
.return-reminder-item small {
  overflow-wrap: anywhere;
}

.return-reminder-item span {
  color: #304756;
  font-weight: 850;
}

.return-reminder-item small {
  color: var(--muted);
  font-weight: 800;
}

@keyframes reminderPulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      0 18px 42px rgba(70, 42, 18, 0.18),
      0 4px 0 rgba(180, 130, 36, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }
  50% {
    transform: translateY(-3px);
    box-shadow:
      0 22px 50px rgba(70, 42, 18, 0.24),
      0 5px 0 rgba(180, 130, 36, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }
}

@keyframes reminderContentFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(18, 33, 43, 0.58);
}

.modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  padding: 22px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: white;
  cursor: pointer;
}

.filter-row {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.filter-row label {
  min-width: 240px;
}

.appointments-premium-shell {
  display: grid;
  gap: 24px;
}

.appointments-premium-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  min-height: 112px;
  padding: 10px 4px 4px;
}

.appointments-premium-hero::before {
  content: "";
  position: absolute;
  left: -34px;
  top: -30px;
  width: 170px;
  height: 120px;
  opacity: 0.3;
  background: repeating-radial-gradient(ellipse at top left, transparent 0 16px, rgba(200, 162, 74, 0.28) 17px 18px, transparent 19px 32px);
  pointer-events: none;
}

.appointments-premium-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.appointments-premium-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  border-radius: var(--radius);
  color: var(--teal-premium);
  border: 1px solid rgba(200, 162, 74, 0.34);
  background: linear-gradient(145deg, #ffffff, #fff9ed);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 26px rgba(71, 47, 12, 0.08);
}

.appointments-premium-icon svg {
  width: 32px;
  height: 32px;
}

.appointments-premium-title h3 {
  margin: 0;
  color: #003f3c;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}

.appointments-premium-title p {
  margin: 5px 0 0;
  color: #536878;
  font-size: 1rem;
  font-weight: 650;
}

.appointments-premium-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.appointments-premium-new {
  min-height: 58px;
  border-radius: var(--radius);
  font-size: 1.02rem;
}

.appointments-premium-new {
  min-width: 290px;
  padding-inline: 26px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 34px rgba(3, 45, 52, 0.24),
    0 0 0 1px rgba(154, 104, 24, 0.1);
}

.appointments-premium-new svg {
  width: 22px;
  height: 22px;
}

.appointments-premium-new .appointment-new-sparkle {
  color: var(--gold-light);
}

.appointments-premium-send {
  min-height: 54px;
  border-radius: var(--radius);
  border-color: rgba(200, 162, 74, 0.38);
  color: var(--teal-premium);
  background: #ffffff;
  box-shadow: 0 14px 26px rgba(71, 47, 12, 0.07);
}

.appointments-premium-send svg {
  width: 20px;
  height: 20px;
}

.appointment-filter-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 24px;
  margin: 0;
  padding: clamp(22px, 2.7vw, 34px);
  border: 1px solid rgba(200, 162, 74, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 18px 46px rgba(71, 47, 12, 0.07);
}

.appointment-filter-panel::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -84px;
  width: 260px;
  height: 190px;
  opacity: 0.32;
  background: repeating-radial-gradient(ellipse at bottom right, transparent 0 18px, rgba(200, 162, 74, 0.26) 19px 20px, transparent 21px 36px);
  pointer-events: none;
}

.appointment-filter-panel > * {
  position: relative;
  z-index: 1;
}

.appointment-calendar-panel {
  gap: 24px;
}

.appointment-calendar-panel::after {
  display: none;
}

.appointment-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.appointment-filter-head strong,
.appointment-filter-head span {
  display: block;
}

.appointment-filter-head strong {
  color: #102232;
  font-size: 1.08rem;
  font-weight: 950;
}

.appointment-filter-head span {
  color: var(--muted);
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 850;
}

.appointment-filter-head b {
  color: var(--teal-premium);
  font-weight: 1000;
}

.appointment-filter-presets {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.appointment-preset-btn {
  min-width: 116px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(200, 162, 74, 0.36);
  background: #ffffff;
  color: #a26205;
  cursor: pointer;
  font-weight: 950;
}

.appointment-preset-btn:first-child {
  border-radius: 999px 0 0 999px;
}

.appointment-preset-btn:last-child {
  border-radius: 0 999px 999px 0;
}

.appointment-preset-btn.active {
  color: #0a5f59;
  border-color: rgba(200, 162, 74, 0.58);
  background: #fffaf1;
  box-shadow: inset 0 0 0 2px rgba(200, 162, 74, 0.1);
}

.appointment-date-filter-row {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(190px, 260px) auto auto auto;
  align-items: end;
  gap: 18px;
}

.appointment-date-filter-row label {
  display: grid;
  gap: 10px;
  min-width: 0;
  color: #08293d;
  font-weight: 900;
}

.appointment-date-input-wrap {
  position: relative;
  display: block;
}

.appointment-date-input-wrap input {
  width: 100%;
  min-height: 58px;
  padding: 0 50px 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #08293d;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(18, 33, 43, 0.06);
  font-size: 1rem;
  font-weight: 900;
}

.appointment-date-input-wrap input::-webkit-calendar-picker-indicator {
  opacity: 0;
}

.appointment-date-picker-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #08293d;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.appointment-date-picker-btn:hover {
  background: #eef8f2;
}

.appointment-date-picker-btn svg {
  width: 22px;
  height: 22px;
  color: #08293d;
}

.appointment-filter-divider {
  width: 1px;
  height: 52px;
  align-self: end;
  background: rgba(220, 232, 238, 0.95);
}

.appointment-filter-submit,
.appointment-today-btn {
  min-height: 56px;
  padding-inline: 22px;
  border-radius: var(--radius);
}

.appointment-calendar-control-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.appointment-month-field {
  display: grid;
  gap: 7px;
  width: min(100%, 300px);
}

.appointment-month-field > span {
  color: #af6d09;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.appointment-month-select {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(200, 162, 74, 0.36);
  border-radius: 8px;
  color: #102232;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(71, 47, 12, 0.06);
}

.appointment-month-select select {
  min-width: 0;
  width: 100%;
  min-height: 46px;
  border: 0;
  outline: 0;
  color: #102232;
  background: transparent;
  font-size: 0.98rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
}

.appointment-month-select select::-ms-expand {
  display: none;
}

.appointment-month-select svg {
  width: 18px;
  height: 18px;
  color: #0a5f59;
  pointer-events: none;
}

.appointment-month-chevron {
  justify-self: end;
}

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

.appointment-calendar-actions .mini-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-inline: 18px;
  border-radius: 999px;
  border-color: rgba(200, 162, 74, 0.38);
  background: #ffffff;
  color: #102232;
  box-shadow: 0 12px 22px rgba(71, 47, 12, 0.06);
}

.appointment-calendar-actions .mini-btn.primary {
  color: #ffffff;
  border-color: #0a5f59;
  background: linear-gradient(135deg, var(--teal-premium), #08747a);
  box-shadow: 0 14px 24px rgba(3, 45, 52, 0.18);
}

.appointment-calendar-actions svg {
  width: 16px;
  height: 16px;
}

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

.appointment-summary-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(220, 232, 238, 0.95);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(18, 33, 43, 0.05);
}

.appointment-summary-card.success {
  border-color: rgba(47, 159, 117, 0.28);
  background: linear-gradient(135deg, #ffffff, #f4fcf7);
}

.appointment-summary-card.warning {
  border-color: rgba(200, 162, 74, 0.34);
  background: linear-gradient(135deg, #ffffff, #fffaf1);
}

.appointment-summary-card.info {
  border-color: rgba(8, 126, 164, 0.23);
  background: linear-gradient(135deg, #ffffff, #f4fbff);
}

.appointment-summary-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #08714e;
  background: #e5f8ed;
}

.appointment-summary-card.warning .appointment-summary-icon {
  color: #a26205;
  background: #fff3dd;
}

.appointment-summary-card.info .appointment-summary-icon {
  color: #087ea4;
  background: #e5f5fc;
}

.appointment-summary-icon svg {
  width: 30px;
  height: 30px;
}

.appointment-summary-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.appointment-summary-copy em {
  color: #102232;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 850;
}

.appointment-summary-copy strong {
  color: #102232;
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  font-weight: 1000;
  line-height: 1;
}

.appointment-summary-copy small {
  color: #0b7d55;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: capitalize;
}

.appointment-summary-card.warning .appointment-summary-copy small {
  color: #a26205;
}

.appointment-summary-card.info .appointment-summary-copy small {
  color: var(--muted);
}

.appointment-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.appointment-calendar-weekday {
  padding: 5px 4px 8px;
  color: #af6d09;
  font-size: 0.78rem;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.appointment-calendar-day {
  min-height: 118px;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(200, 162, 74, 0.36);
  border-radius: 8px;
  color: #102232;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.appointment-calendar-day.empty {
  border-color: rgba(200, 162, 74, 0.26);
  background: rgba(255, 255, 255, 0.7);
  cursor: default;
}

.appointment-calendar-day:not(.empty):hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(18, 33, 43, 0.08);
}

.appointment-calendar-day span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: #102232;
  background: transparent;
  font-weight: 950;
}

.appointment-calendar-day strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  color: #ffffff;
  background: #08714e;
  font-weight: 950;
  box-shadow: 0 6px 12px rgba(8, 113, 78, 0.22);
}

.appointment-calendar-day small {
  color: #102232;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.appointment-calendar-day.has-appointment {
  border-color: rgba(200, 162, 74, 0.48);
  background: #ffffff;
  box-shadow: none;
}

.appointment-calendar-day.today span {
  color: #a26205;
  border: 2px solid rgba(200, 162, 74, 0.9);
  background: #fffaf1;
}

.appointment-calendar-day.selected {
  border-color: #16965f;
  background: #f3fbf6;
  box-shadow:
    0 0 0 2px rgba(47, 159, 117, 0.1),
    0 16px 30px rgba(18, 33, 43, 0.08);
}

.appointment-calendar-day.selected span {
  color: #102232;
  border-color: transparent;
  background: transparent;
}

.appointment-day-panel {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid rgba(220, 232, 238, 0.95);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #ffffff, #fbfdfe);
  box-shadow: 0 18px 42px rgba(18, 33, 43, 0.06);
}

.appointment-day-panel .panel-title-row h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.appointment-status-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 18px;
}

.appointment-status-filter {
  position: relative;
  min-width: 0;
  min-height: 104px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px 56px 18px 18px;
  border: 1px solid rgba(220, 232, 238, 0.92);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(18, 33, 43, 0.06);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.appointment-status-filter:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(18, 33, 43, 0.08);
}

.appointment-status-filter.active {
  transform: translateY(-2px);
  box-shadow:
    0 18px 34px rgba(18, 33, 43, 0.1),
    0 0 0 3px rgba(200, 162, 74, 0.12),
    inset 4px 0 0 rgba(200, 162, 74, 0.82);
}

.appointment-status-filter.active.success {
  border-color: rgba(47, 159, 117, 0.34);
  box-shadow:
    0 18px 34px rgba(18, 33, 43, 0.1),
    0 0 0 3px rgba(47, 159, 117, 0.14),
    inset 4px 0 0 rgba(47, 159, 117, 0.86);
}

.appointment-status-filter.active.warning {
  border-color: rgba(200, 162, 74, 0.42);
  box-shadow:
    0 18px 34px rgba(18, 33, 43, 0.1),
    0 0 0 3px rgba(200, 162, 74, 0.14),
    inset 4px 0 0 rgba(200, 162, 74, 0.86);
}

.appointment-status-filter.active.info {
  border-color: rgba(8, 126, 164, 0.28);
  box-shadow:
    0 18px 34px rgba(18, 33, 43, 0.1),
    0 0 0 3px rgba(8, 126, 164, 0.13),
    inset 4px 0 0 rgba(8, 126, 164, 0.72);
}

.appointment-status-filter.active.neutral {
  border-color: rgba(104, 109, 114, 0.26);
  box-shadow:
    0 18px 34px rgba(18, 33, 43, 0.1),
    0 0 0 3px rgba(104, 109, 114, 0.1),
    inset 4px 0 0 rgba(104, 109, 114, 0.58);
}

.appointment-status-filter input {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.appointment-status-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  color: #6f7378;
  background: #f3f4f4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.appointment-status-filter.success .appointment-status-icon {
  color: #08714e;
  background: #ddf4e9;
}

.appointment-status-filter.warning .appointment-status-icon {
  color: #a77a08;
  background: #fff5df;
}

.appointment-status-filter.info .appointment-status-icon {
  color: var(--blue);
  background: #e5f5fc;
}

.appointment-status-filter.neutral .appointment-status-icon {
  color: #686d72;
  background: #f1f1f1;
}

.appointment-status-icon svg {
  width: 32px;
  height: 32px;
}

.appointment-status-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding-right: 4px;
}

.appointment-status-filter strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.28;
}

.appointment-status-copy em {
  display: block;
  width: min(70px, 100%);
  height: 2px;
  border-radius: 999px;
  background-image: linear-gradient(90deg, rgba(47, 159, 117, 0.36) 50%, transparent 50%);
  background-size: 10px 2px;
  font-style: normal;
}

.appointment-status-filter small {
  position: absolute;
  right: 16px;
  bottom: 18px;
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #edf7fb;
  font-weight: 900;
  text-align: center;
  z-index: 2;
}

.appointment-status-filter.success small {
  color: #08714e;
  background: #ddf4e9;
}

.appointment-status-filter.warning small {
  color: #a77a08;
  background: #fff5df;
}

.appointment-status-filter.neutral small {
  color: #5d6368;
  background: #eeeeee;
}

.appointments-premium-shell #admin-appointments-table {
  display: grid;
  gap: 12px;
}

.admin-schedule-board {
  overflow: auto;
  border: 1px solid rgba(220, 232, 238, 0.95);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(18, 33, 43, 0.08);
}

.admin-schedule-head,
.admin-schedule-row {
  min-width: 980px;
  display: grid;
  grid-template-columns: 140px minmax(230px, 1.4fr) minmax(220px, 1.15fr) minmax(150px, 0.75fr) 170px;
  align-items: center;
}

.admin-schedule-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 48px;
  color: #67758a;
  background: #f8fafc;
  border-bottom: 1px solid rgba(220, 232, 238, 0.95);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-schedule-head span {
  padding: 0 18px;
}

.admin-schedule-list {
  display: grid;
}

.admin-schedule-row {
  min-height: 82px;
  border-bottom: 1px solid rgba(220, 232, 238, 0.95);
  background: #ffffff;
}

.admin-schedule-row:last-child {
  border-bottom: 0;
}

.admin-schedule-row:hover {
  background: #fbfdfe;
}

.admin-schedule-row > * {
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 12px 18px;
  border-right: 1px solid rgba(220, 232, 238, 0.8);
}

.admin-schedule-row > *:last-child {
  border-right: 0;
}

.admin-schedule-row.is-canceled {
  opacity: 0.72;
}

.admin-schedule-time {
  display: grid;
  grid-template-columns: auto auto;
  align-content: center;
  justify-content: center;
  column-gap: 7px;
  row-gap: 3px;
  color: #0b70bc;
  font-weight: 950;
  text-align: center;
}

.admin-schedule-time svg {
  width: 16px;
  height: 16px;
  align-self: center;
}

.admin-schedule-time strong {
  white-space: nowrap;
}

.admin-schedule-time small {
  display: block;
  grid-column: 1 / -1;
  width: auto;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.admin-schedule-client,
.admin-schedule-procedure {
  gap: 12px;
}

.admin-schedule-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  background: #e8f5f2;
  box-shadow: 0 8px 18px rgba(18, 33, 43, 0.14);
}

.admin-schedule-avatar.fallback {
  background: #e8f5f2;
}

.admin-schedule-client span,
.admin-schedule-procedure span {
  min-width: 0;
}

.admin-schedule-client strong,
.admin-schedule-procedure strong {
  display: block;
  color: var(--navy);
  font-size: 0.92rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.admin-schedule-client small,
.admin-schedule-procedure small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.admin-schedule-procedure-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: #087a55;
  background: #e9f8ef;
}

.admin-schedule-procedure-icon svg {
  width: 21px;
  height: 21px;
}

.admin-schedule-status {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.12;
  text-align: center;
}

.admin-schedule-status svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.admin-schedule-status.confirmed {
  color: #08714e;
  background: #ddf4e9;
}

.admin-schedule-status.return {
  color: #075db0;
  background: #e6f3ff;
}

.admin-schedule-status.pending {
  color: #8c6509;
  background: #fff3d6;
}

.admin-schedule-status.finished {
  color: #087ea4;
  background: #e5f5fc;
}

.admin-schedule-status.canceled {
  color: #9f3a3a;
  background: #fde7e6;
}

.admin-schedule-actions {
  justify-content: center;
}

.admin-schedule-actions .appointment-action-stack {
  min-width: 0;
  gap: 6px;
}

.admin-schedule-actions .appointment-action-stack .mini-btn,
.admin-schedule-actions .appointment-action-stack .status {
  width: 132px;
  min-height: 30px;
  font-size: 0.76rem;
}

.patient-search-row label {
  flex: 1 1 420px;
  max-width: 620px;
}

.history-search-row label {
  flex: 1 1 420px;
  max-width: 620px;
}

.history-patient-results {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 16px;
}

.history-patient-chip {
  min-height: 54px;
  display: inline-grid;
  gap: 2px;
  justify-items: start;
  padding: 9px 14px;
  border: 1px solid rgba(16, 148, 170, 0.24);
  border-radius: 14px;
  color: var(--navy);
  background: linear-gradient(135deg, #ffffff, #f3fbfd);
  box-shadow: 0 10px 24px rgba(18, 33, 43, 0.07);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.history-patient-chip span {
  font-weight: 900;
}

.history-patient-chip small {
  color: var(--muted);
  font-weight: 750;
}

.history-patient-chip.active {
  color: white;
  border-color: #c99a3c;
  background: linear-gradient(135deg, #064245, #008177);
}

.history-patient-chip.active small {
  color: rgba(255, 255, 255, 0.82);
}

.history-patient-panel {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(201, 154, 60, 0.34);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(201, 154, 60, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.82);
}

.history-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
}

.history-detail-grid article {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.history-detail-grid h4 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 950;
}

.history-detail-grid h4 svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
}

.compact-table-wrap table {
  min-width: 620px;
}

.dashboard-filter-row {
  margin-bottom: 22px;
}

.dashboard-filter-row label {
  min-width: 220px;
}

.finance-filter-row label {
  min-width: 170px;
}

.finance-filter-row {
  display: grid;
  gap: 12px;
}

.finance-filter-main,
.finance-filter-report-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.finance-filter-main .btn,
.finance-filter-report-actions .btn {
  min-height: 48px;
  white-space: nowrap;
}

.finance-period-btn.active {
  color: #fff;
  border-color: rgba(242, 213, 137, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 42%),
    linear-gradient(135deg, var(--teal-premium), #08747a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 28px rgba(3, 45, 52, 0.2),
    0 0 0 3px rgba(8, 126, 164, 0.12);
}

.finance-entry-panel h3,
.finance-expense-panel h3,
.finance-ledger-grid h3 {
  margin-bottom: 14px;
}

.finance-entry-form,
.finance-expense-form {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(160px, 0.7fr) minmax(150px, 0.7fr) minmax(190px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
}

.finance-entry-form label,
.finance-expense-form label {
  min-width: 0;
}

.finance-entry-form .btn,
.finance-expense-form .btn {
  min-height: 48px;
  white-space: nowrap;
}

.finance-table-title {
  margin: 18px 0 10px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 900;
}

.finance-table-title:first-child {
  margin-top: 0;
}

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

.finance-ledger-grid .data-panel {
  min-width: 0;
}

.client-picker {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.client-picker-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.client-search-field {
  min-width: 0;
}

.selected-client-card,
.client-result-item,
.quick-patient-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8fcfd;
}

.selected-client-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  color: var(--muted);
  font-weight: 850;
}

.selected-client-card.selected {
  color: var(--ink);
  background: #edf8f5;
  border-color: #bde4d7;
}

.selected-client-card strong,
.selected-client-card span {
  display: block;
}

.client-access-box {
  min-width: 210px;
  color: var(--blue-dark);
  text-align: right;
}

.client-result-list {
  display: grid;
  gap: 8px;
}

.client-result-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.client-result-item:hover {
  border-color: var(--blue);
  background: #eefaff;
}

.client-result-item strong,
.client-result-item span {
  display: block;
}

.quick-patient-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: white;
}

.quick-patient-panel.hidden {
  display: none;
}

.quick-patient-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quick-insurance-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}

.table-link {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-align: left;
}

.table-link:hover {
  color: var(--blue);
  text-decoration: underline;
}

.selected-row {
  background: #eef8fc;
}

.patients-premium-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.2vw, 30px);
  border: 1px solid rgba(200, 162, 74, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(255, 252, 246, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 18px 46px rgba(71, 47, 12, 0.08);
}

.patients-premium-panel::before {
  content: "";
  position: absolute;
  top: 24px;
  right: -12px;
  width: 220px;
  height: 150px;
  opacity: 0.36;
  background:
    repeating-radial-gradient(ellipse at top right, transparent 0 18px, rgba(200, 162, 74, 0.32) 19px 20px, transparent 21px 36px),
    radial-gradient(circle at 70% 22%, rgba(200, 162, 74, 0.55) 0 2px, transparent 3px);
  background-size: auto, 22px 22px;
  pointer-events: none;
}

.patients-premium-header,
.patients-premium-toolbar,
.patients-premium-table,
.patients-premium-footer,
.patient-detail-panel {
  position: relative;
  z-index: 1;
}

.patients-premium-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.patients-premium-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.patients-premium-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--teal-premium);
  border: 1px solid rgba(200, 162, 74, 0.28);
  background: linear-gradient(145deg, #ffffff, #f5efe5);
  box-shadow: 0 14px 24px rgba(71, 47, 12, 0.1);
}

.patients-premium-icon svg {
  width: 28px;
  height: 28px;
}

.patients-premium-title h3 {
  margin: 0;
  color: var(--teal-deep);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.patients-premium-title p {
  margin: 4px 0 0;
  color: var(--muted);
}

.patients-premium-counter {
  align-self: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--teal-premium);
  background: #eef8f2;
  border: 1px solid rgba(47, 159, 117, 0.18);
  font-weight: 900;
}

.patients-premium-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto auto;
  gap: 14px;
  align-items: center;
  margin: 28px 0 26px;
}

.patient-premium-search-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(18, 33, 43, 0.08);
}

.patient-premium-search-field svg {
  width: 24px;
  height: 24px;
  color: #6f7a83;
}

.patient-premium-search-field input {
  width: 100%;
  min-width: 0;
  min-height: 60px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
}

.patient-premium-search-field input::placeholder {
  color: #8b949c;
  font-weight: 700;
}

.patient-premium-search-btn,
.patient-premium-new-btn,
.patient-premium-print-btn {
  min-height: 62px;
  padding-inline: 24px;
}

.patients-premium-table {
  overflow-x: auto;
  border: 1px solid rgba(220, 232, 238, 0.92);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 18px 38px rgba(18, 33, 43, 0.08);
}

.patient-grid {
  display: grid;
  grid-template-columns:
    minmax(250px, 1.35fr)
    minmax(180px, 0.8fr)
    minmax(250px, 1.15fr)
    minmax(120px, 0.55fr)
    minmax(170px, 0.75fr);
  gap: 18px;
  min-width: 1010px;
}

.patients-premium-table-head {
  min-height: 58px;
  align-items: center;
  padding: 0 18px;
  color: white;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(135deg, var(--teal-deep), #075f64);
  font-size: 0.86rem;
  font-weight: 950;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.22);
}

.premium-patient-row {
  align-items: center;
  min-height: 132px;
  padding: 18px;
  border-bottom: 1px solid rgba(220, 232, 238, 0.86);
  background: #ffffff;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.premium-patient-row:last-child {
  border-bottom: 0;
}

.premium-patient-row:hover,
.premium-patient-row.selected {
  background: linear-gradient(135deg, #ffffff, #f7fcfa);
  box-shadow: inset 4px 0 0 rgba(200, 162, 74, 0.9);
}

.patient-cell {
  display: flex;
  align-items: center;
  min-width: 0;
  color: #17303d;
  font-weight: 700;
}

.patient-main-cell {
  gap: 14px;
}

.patient-avatar-button {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.patient-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--gold-light);
  border: 3px solid rgba(200, 162, 74, 0.92);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 42%),
    linear-gradient(145deg, var(--teal-premium), #075c62);
  box-shadow: 0 10px 20px rgba(3, 45, 52, 0.18);
  font-size: 1.08rem;
  font-weight: 1000;
  letter-spacing: 0;
}

.patient-name-link {
  max-width: 100%;
  color: var(--teal-premium);
  font-size: 0.98rem;
  line-height: 1.35;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.patient-name-link:hover {
  color: var(--blue);
  text-decoration: none;
}

.patient-info-cell {
  gap: 12px;
}

.patient-info-cell > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.patient-info-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--teal-premium);
  background: #e7f7f3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.patient-info-icon svg {
  width: 18px;
  height: 18px;
}

.patient-status-dot {
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.58;
}

.patient-created-cell small {
  display: block;
  margin-top: 2px;
  color: #5e7280;
  font-size: 0.85rem;
  font-weight: 800;
}

.premium-patient-actions {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid rgba(220, 232, 238, 0.95);
}

.premium-patient-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(200, 162, 74, 0.34);
  color: var(--teal-premium);
  background: linear-gradient(135deg, #ffffff, #fffaf1);
  box-shadow: 0 10px 18px rgba(71, 47, 12, 0.06);
  cursor: pointer;
  font-weight: 950;
  line-height: 1.15;
  text-align: center;
}

.premium-patient-action.primary {
  min-height: 54px;
  color: white;
  border-color: rgba(242, 213, 137, 0.62);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 42%),
    linear-gradient(135deg, var(--teal-premium), #08747a);
  box-shadow: 0 12px 24px rgba(3, 45, 52, 0.2);
}

.premium-patient-action svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.patients-premium-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.patient-pagination-info {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.patient-page-controls {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 10px;
  min-height: 56px;
  padding: 7px 12px;
  border: 1px solid rgba(220, 232, 238, 0.9);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(18, 33, 43, 0.07);
}

.patient-page-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--gold-deep);
  background: transparent;
  cursor: pointer;
}

.patient-page-btn:disabled {
  color: #c7cbd0;
  cursor: not-allowed;
}

.patient-page-btn svg {
  width: 20px;
  height: 20px;
}

.patient-page-current {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--teal-premium), #075f64);
  box-shadow: 0 10px 18px rgba(3, 45, 52, 0.2);
  font-weight: 950;
}

.patient-page-size {
  position: relative;
  justify-self: end;
  display: inline-flex;
  align-items: center;
}

.patient-page-size select {
  min-height: 52px;
  min-width: 160px;
  appearance: none;
  padding: 0 44px 0 18px;
  border: 1px solid rgba(220, 232, 238, 0.95);
  border-radius: var(--radius);
  color: #17303d;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(18, 33, 43, 0.06);
  font-weight: 800;
}

.patient-page-size svg {
  position: absolute;
  right: 16px;
  width: 18px;
  height: 18px;
  color: var(--gold-deep);
  pointer-events: none;
}

.dashboard-target-highlight {
  outline: 2px solid rgba(8, 126, 164, 0.28);
  outline-offset: -2px;
}

.patient-detail-panel {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.patient-detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.patient-detail-head h4 {
  margin: 4px 0 6px;
  color: #05264b;
  font-size: 1.35rem;
}

.section-kicker {
  color: #b58735;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.patient-detail-grid div {
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fcfd;
}

.patient-detail-grid strong {
  color: #2f424f;
  font-size: 0.82rem;
}

.patient-detail-grid span {
  color: var(--blue-dark);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.patient-detail-grid .patient-return-summary {
  display: grid;
  gap: 7px;
  align-content: start;
}

.patient-detail-grid .patient-return-summary .status {
  width: fit-content;
  max-width: 100%;
}

.return-countdown-line {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  color: #785d1f;
  background: #fff7df;
  border: 1px solid #efdc9f;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.settings-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

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

.settings-phone-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(8, 126, 164, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(248, 252, 253, 0.96), rgba(255, 252, 246, 0.98));
}

.settings-phone-row label {
  min-width: 0;
}

.settings-phone-input {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  min-height: 54px;
  font-size: 1rem;
}

.settings-toggle-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(201, 154, 60, 0.34);
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(201, 154, 60, 0.12), transparent 30%),
    linear-gradient(135deg, #ffffff, #f7fcfc);
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  min-width: 0;
}

.settings-toggle-row input {
  width: 22px;
  min-height: 22px;
  accent-color: var(--teal-premium);
}

.settings-toggle-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.settings-toggle-row strong {
  color: var(--navy);
  font-size: 1rem;
}

.settings-toggle-row small {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}

.whatsapp-settings-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fcfd;
}

.whatsapp-settings-head,
.whatsapp-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.whatsapp-settings-head h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  color: #05264b;
}

.whatsapp-settings-head p,
.whatsapp-error {
  margin: 0;
  color: var(--muted);
}

.whatsapp-settings-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  align-items: center;
}

.whatsapp-qr-area {
  min-height: 252px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(8, 126, 164, 0.35);
  border-radius: 8px;
  background: #ffffff;
}

.whatsapp-qr {
  width: 240px;
  max-width: 100%;
}

.whatsapp-qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.whatsapp-qr-placeholder {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-dark);
  background: #edf7fb;
}

.whatsapp-qr-placeholder svg {
  width: 38px;
  height: 38px;
}

.whatsapp-settings-actions {
  display: grid;
  gap: 10px;
}

.assistant-settings-panel,
.service-settings-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fcfd;
}

.assistant-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.assistant-settings-head h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  color: #05264b;
}

.assistant-settings-head p {
  margin: 0;
  color: var(--muted);
}

.assistant-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.service-form {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(150px, 0.4fr) auto;
  gap: 12px;
  align-items: end;
}

.service-table-shell {
  max-height: 520px;
  overflow: auto;
  border: 1px solid rgba(220, 232, 238, 0.95);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(18, 33, 43, 0.05);
}

.service-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 680px;
}

.service-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 13px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #063f46, #06766e);
  font-size: 0.84rem;
  text-align: left;
  letter-spacing: 0;
}

.service-table th:first-child {
  border-top-left-radius: 8px;
}

.service-table th:last-child {
  width: 190px;
  border-top-right-radius: 8px;
  text-align: right;
}

.service-table th:nth-child(2) {
  width: 170px;
}

.service-table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(220, 232, 238, 0.9);
  vertical-align: middle;
}

.service-table tr:last-child td {
  border-bottom: 0;
}

.service-table tr:hover td {
  background: #f8fcfd;
}

.service-table tr.inactive {
  opacity: 0.72;
}

.service-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.service-name-cell strong {
  color: var(--navy);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.service-thumb-wrap {
  position: relative;
  width: 58px;
  height: 76px;
  flex: 0 0 auto;
}

.service-thumb {
  width: 58px;
  height: 76px;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  background: #e8f5f2;
  box-shadow: 0 8px 18px rgba(18, 33, 43, 0.12);
}

.service-thumb.empty {
  display: grid;
  place-items: center;
  color: var(--teal-premium);
}

.service-thumb.empty svg {
  width: 22px;
  height: 22px;
}

.service-thumb-wrap > span {
  position: absolute;
  left: -7px;
  top: -7px;
  min-width: 27px;
  height: 27px;
  display: inline-grid;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 8px;
  color: #ffffff;
  background: #082b67;
  font-size: 0.76rem;
  font-weight: 950;
  box-shadow: 0 6px 14px rgba(18, 33, 43, 0.16);
}

.service-price-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #efdc9f;
  border-radius: 999px;
  color: #785d1f;
  background: #fff7df;
  font-weight: 950;
  white-space: nowrap;
}

.service-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.service-row-actions .mini-btn {
  min-width: 82px;
}

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

.assistant-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(220, 232, 238, 0.95);
  border-radius: 8px;
  background: #ffffff;
}

.assistant-card.inactive {
  opacity: 0.74;
  background: #fbfbfb;
}

.assistant-card strong,
.assistant-card span,
.assistant-card small {
  display: block;
}

.assistant-card strong {
  color: var(--teal-premium);
}

.assistant-card span,
.assistant-card small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.assistant-card-side {
  display: grid;
  justify-items: end;
  gap: 7px;
  min-width: 150px;
}

.assistant-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.finish-service-group {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(8, 126, 164, 0.2);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #f7fcfc);
}

.finish-service-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.finish-service-group-head strong {
  color: var(--ink);
  font-weight: 950;
}

.finish-service-list {
  display: grid;
  gap: 10px;
}

.finish-service-picker {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) minmax(170px, 0.36fr) auto;
  gap: 12px;
  padding: 0;
  align-items: end;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.finish-service-remove {
  min-width: 44px;
  height: 44px;
  padding-inline: 0;
  align-self: end;
}

.finish-service-remove svg {
  width: 18px;
  height: 18px;
}

.finish-service-picker + .finish-service-picker {
  padding-top: 10px;
  border-top: 1px solid rgba(220, 232, 238, 0.95);
}

.finish-service-preview {
  width: 78px;
  height: 104px;
  display: grid;
  place-items: center;
  align-self: center;
  border: 1px solid rgba(220, 232, 238, 0.95);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.finish-service-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.finish-service-preview span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--teal-premium);
  background: #e8f5f2;
}

.finish-service-preview svg {
  width: 21px;
  height: 21px;
}

.finish-service-picker label {
  margin: 0;
}

.finish-service-picker input[disabled] {
  color: var(--teal-premium);
  font-weight: 950;
  background: #ffffff;
}

.finish-product-offer-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(200, 162, 74, 0.3);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #fffaf1);
}

.finish-product-offer-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.finish-product-offer-head strong,
.finish-product-offer-head span {
  display: block;
}

.finish-product-offer-head strong {
  color: #05264b;
}

.finish-product-offer-head span {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.finish-product-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(220, 232, 238, 0.95);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.finish-product-card:hover,
.finish-product-card.active {
  transform: translateY(-2px);
  border-color: rgba(8, 126, 164, 0.36);
  box-shadow:
    0 14px 24px rgba(18, 33, 43, 0.1),
    0 0 0 3px rgba(8, 126, 164, 0.11);
}

.finish-product-card.active {
  box-shadow:
    0 16px 28px rgba(18, 33, 43, 0.12),
    0 0 0 3px rgba(47, 159, 117, 0.16),
    inset 4px 0 0 rgba(47, 159, 117, 0.86);
}

.finish-product-card img {
  width: 100%;
  aspect-ratio: 1 / 0.74;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  background: #eef7fb;
}

.finish-product-card strong,
.finish-product-card small {
  display: block;
}

.finish-product-card strong {
  color: var(--teal-premium);
  line-height: 1.2;
}

.finish-product-card small {
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.2;
}

.finish-product-sale-fields {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(220, 232, 238, 0.95);
}

.product-commission-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0;
  padding: 8px 10px;
  border-radius: 999px;
  color: #785d1f;
  background: #fff7df;
  border: 1px solid #efdc9f;
  font-size: 0.86rem;
  font-weight: 900;
}

.product-commission-note svg {
  width: 17px;
  height: 17px;
}

.finish-payment-summary,
.finish-total-field {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(201, 154, 60, 0.36);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(201, 154, 60, 0.13), transparent 34%),
    linear-gradient(145deg, #ffffff, #fffaf1);
}

.finish-payment-summary label,
.finish-total-field label {
  margin: 0;
}

.finish-payment-summary input[disabled],
.finish-total-field input[disabled] {
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 950;
  background: #ffffff;
}

.finish-payment-summary [name="amountPaid"] {
  color: var(--teal-premium);
  font-size: 1.08rem;
  font-weight: 950;
}

.whatsapp-error {
  color: var(--danger);
  font-weight: 700;
}

.whatsapp-chat-panel {
  display: grid;
  gap: 14px;
}

.whatsapp-message-list {
  max-height: 360px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fcfd;
}

.whatsapp-message {
  max-width: min(78%, 520px);
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.35;
}

.whatsapp-message.from-me {
  align-self: end;
  color: white;
  background: var(--blue-dark);
}

.whatsapp-message.from-client {
  align-self: start;
  border: 1px solid var(--border);
  background: #ffffff;
}

.whatsapp-message small {
  color: inherit;
  opacity: 0.72;
  font-size: 0.78rem;
}

.whatsapp-chat-form {
  display: grid;
  gap: 10px;
}

@media (max-width: 1040px) {
  .appointments-premium-hero {
    align-items: flex-start;
  }

  .appointments-premium-actions {
    width: 100%;
    justify-content: stretch;
  }

  .appointments-premium-new,
  .appointments-premium-send {
    flex: 1 1 260px;
    width: 100%;
    min-width: 0;
  }

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

  .appointment-filter-divider {
    display: none;
  }

  .appointment-filter-submit,
  .appointment-today-btn {
    width: 100%;
  }

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

  .appointment-calendar-control-row {
    align-items: stretch;
  }

  .appointment-month-field {
    width: min(100%, 360px);
  }

  .appointment-calendar-actions {
    width: 100%;
  }

  .appointment-calendar-actions .mini-btn {
    flex: 1 1 140px;
  }

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

  .whatsapp-settings-body {
    grid-template-columns: 1fr;
  }

  .portal-shell {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .portal-sidebar {
    padding-inline: 10px;
  }

  .portal-side-button {
    width: 58px;
    height: 58px;
  }

  .portal-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-grid {
    grid-template-columns: 1fr;
    padding: 14px 0;
  }

  .brand {
    min-width: 0;
  }

  .site-nav {
    justify-self: start;
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    max-width: 540px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-self: start;
    gap: 8px;
  }

  .header-actions .btn {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
    white-space: nowrap;
  }

  .auth-premium-shell {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 42px;
  }

  .auth-panel {
    justify-self: stretch;
    width: 100%;
  }

  .auth-intro h2 {
    max-width: 680px;
    font-size: 3rem;
  }

  .auth-benefits {
    max-width: 620px;
  }

  .faq-premium-section {
    padding: 58px 0 64px;
  }

  .faq-premium-section .faq-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .faq-premium-intro h2 {
    font-size: 3.55rem;
  }

  .faq-premium-intro > p {
    max-width: 620px;
  }

  .faq-help-card {
    margin-left: 0;
  }

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

  .footer-location-copy h2 {
    max-width: 760px;
    font-size: 3.2rem;
  }

  .footer-map-card {
    height: 340px;
    min-height: 0;
  }

  .footer-map-info {
    right: auto;
    width: min(520px, calc(100% - 64px));
  }

  .footer-benefit-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 18px;
  }

  .footer-benefit-strip article {
    padding: 0 18px;
  }

  .footer-benefit-strip article:nth-child(3) {
    border-left: 0;
  }

  .hero-grid,
  .split,
  .location-grid,
  .auth-grid,
  .instagram-layout,
  .faq-grid,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-card-top {
    left: 14px;
  }

  .hero-card-bottom {
    right: 14px;
  }

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

  .profile-photo-panel {
    justify-items: start;
  }

  .portal-nav {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .portal-nav button {
    min-height: 118px;
    padding: 22px;
  }

  .patients-premium-toolbar {
    grid-template-columns: 1fr;
  }

  .patient-premium-search-btn,
  .patient-premium-new-btn,
  .patient-premium-print-btn {
    width: 100%;
  }

  .patients-premium-footer {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .patient-pagination-info,
  .patient-page-size {
    justify-self: center;
  }

  .client-picker-row {
    grid-template-columns: 1fr;
  }

  .selected-client-card,
  .client-result-item {
    flex-direction: column;
  }

  .client-access-box {
    min-width: 0;
    text-align: left;
  }

  .finance-entry-form,
  .finance-expense-form,
  .finance-ledger-grid,
  .assistant-form,
  .service-form,
  .finish-service-picker {
    grid-template-columns: 1fr;
  }

  .finish-product-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .settings-phone-row {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .about-specialist-section {
    padding: 18px 0 32px;
  }

  .about-specialist-wrap {
    width: 100%;
    max-width: none;
  }

  .about-specialist-image {
    border-inline: 0;
    border-radius: 0;
    box-shadow: 0 14px 32px rgba(18, 33, 43, 0.1);
  }

  .appointments-premium-hero {
    min-height: 0;
    padding-top: 0;
  }

  .appointments-premium-hero::before,
  .appointment-filter-panel::after {
    display: none;
  }

  .appointments-premium-title {
    align-items: flex-start;
    gap: 12px;
  }

  .appointments-premium-icon {
    width: 54px;
    height: 54px;
  }

  .appointments-premium-icon svg {
    width: 27px;
    height: 27px;
  }

  .appointment-filter-panel {
    padding: 16px;
    gap: 20px;
  }

  .appointment-filter-head {
    align-items: flex-start;
  }

  .appointment-filter-presets {
    width: 100%;
  }

  .appointment-preset-btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 12px;
  }

  .appointment-date-filter-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .appointment-status-filter {
    min-height: 106px;
    padding: 14px 54px 14px 14px;
  }

  .appointment-calendar-grid {
    gap: 5px;
  }

  .appointment-calendar-day {
    min-height: 82px;
    padding: 7px;
    gap: 5px;
  }

  .appointment-calendar-day span {
    width: 26px;
    height: 26px;
  }

  .appointment-calendar-day strong {
    min-width: 26px;
    height: 22px;
    padding: 0 6px;
    font-size: 0.78rem;
  }

  .appointment-calendar-day small {
    display: none;
  }

  .appointment-calendar-actions .mini-btn {
    flex-basis: 100%;
  }

  .appointment-month-field {
    width: 100%;
  }

  .appointment-summary-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .return-reminder-float {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    gap: 12px;
    padding: 15px;
    border-radius: 20px;
  }

  .return-reminder-float::before {
    display: none;
  }

  .return-reminder-head {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
  }

  .return-reminder-head-actions {
    grid-column: 1 / -1;
    justify-content: end;
  }

  .return-reminder-icon {
    width: 42px;
    height: 42px;
  }

  .return-reminder-icon svg {
    width: 24px;
    height: 24px;
  }

  .return-reminder-head strong,
  .return-reminder-close {
    min-width: 38px;
    width: 38px;
    height: 38px;
  }

  .return-reminder-close svg {
    width: 20px;
    height: 20px;
  }

  .return-reminder-meta {
    gap: 10px;
  }

  .return-reminder-meta span + span {
    padding-left: 0;
    border-left: 0;
  }

  .return-reminder-cta {
    min-height: 46px;
    padding: 0 16px;
  }

  .portal-shell {
    display: block;
  }

  .return-calendar-grid {
    gap: 5px;
  }

  .return-calendar-day {
    min-height: 78px;
    padding: 7px;
    gap: 5px;
  }

  .return-calendar-day span {
    width: 26px;
    height: 26px;
  }

  .return-calendar-day strong {
    min-width: 26px;
    height: 22px;
    padding: 0 6px;
    font-size: 0.78rem;
  }

  .return-calendar-day small {
    display: none;
  }

  .return-card-list {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: sticky;
    top: 0;
    height: auto;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
  }

  .portal-brand-mark {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
    border-radius: 12px;
  }

  .portal-side-nav {
    grid-auto-flow: column;
    grid-auto-columns: 48px;
    justify-content: start;
    overflow-x: auto;
    gap: 8px;
  }

  .portal-side-button {
    width: 48px;
    height: 48px;
  }

  .portal-side-button.active::before {
    left: 12px;
    bottom: -10px;
    width: 24px;
    height: 3px;
  }

  .portal-header {
    padding-top: 28px;
  }

  .portal-top h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .brand-logo,
  .portal-heading-logo {
    width: min(100%, 280px);
  }

  .portal-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .header-actions,
  .hero-actions,
  .portal-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .portal-actions .btn {
    flex: 1 1 auto;
  }

  .header-actions {
    gap: 8px;
    max-width: none;
  }

  .header-actions .btn {
    min-height: 42px;
    padding-inline: 9px;
    gap: 6px;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .header-actions .ig-mark {
    width: 20px;
    height: 20px;
    font-size: 0.58rem;
  }

  .patients-premium-panel {
    padding: 16px;
  }

  .patients-premium-panel::before {
    display: none;
  }

  .patients-premium-header,
  .patients-premium-title {
    align-items: flex-start;
  }

  .patients-premium-icon {
    width: 50px;
    height: 50px;
  }

  .patient-premium-search-field {
    min-height: 56px;
    padding-inline: 14px;
  }

  .patient-premium-search-field input {
    min-height: 54px;
  }

  .patients-premium-table {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .patients-premium-table-head {
    display: none;
  }

  .patient-grid {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .premium-patient-row {
    min-height: 0;
    gap: 12px;
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid rgba(220, 232, 238, 0.92);
    border-radius: var(--radius);
    box-shadow: 0 10px 24px rgba(18, 33, 43, 0.06);
  }

  .premium-patient-row:last-child {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(220, 232, 238, 0.92);
  }

  .patient-main-cell {
    align-items: flex-start;
  }

  .patient-avatar {
    width: 52px;
    height: 52px;
  }

  .premium-patient-actions {
    grid-template-columns: 1fr;
    padding-left: 0;
    border-left: 0;
  }

  .patient-page-controls {
    width: 100%;
    justify-content: space-between;
  }

  .patient-page-size,
  .patient-page-size select {
    width: 100%;
  }

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

  .assistant-card-side {
    justify-items: start;
    width: 100%;
  }

  .assistant-card-actions,
  .assistant-card-side .mini-btn {
    width: 100%;
  }

  .assistant-card-actions {
    display: grid;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .site-footer {
    padding: 34px 0 26px;
  }

  .auth-section {
    padding: 18px 0;
  }

  .auth-premium-shell {
    width: 100%;
    padding: 24px 16px;
    gap: 24px;
    border-inline: 0;
    border-radius: 0;
  }

  .auth-brand-logo {
    width: min(100%, 240px);
  }

  .auth-intro {
    gap: 18px;
  }

  .auth-intro h2 {
    font-size: 2.28rem;
    line-height: 1.08;
  }

  .auth-intro p {
    font-size: 0.94rem;
  }

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

  .auth-benefits svg {
    width: 42px;
    height: 42px;
    padding: 10px;
  }

  .auth-security-card {
    align-items: flex-start;
    padding: 14px;
  }

  .auth-panel {
    padding: 18px;
  }

  .auth-tabs {
    gap: 10px;
    margin-bottom: 22px;
  }

  .auth-tab {
    min-height: 52px;
  }

  .auth-form.active {
    gap: 16px;
  }

  .auth-input-shell {
    min-height: 52px;
  }

  .auth-input-shell input {
    min-height: 50px;
  }

  .auth-form-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .auth-form .link-button {
    justify-self: start;
  }

  .auth-submit {
    min-height: 56px;
  }

  .faq-premium-section {
    padding: 42px 0 48px;
  }

  .faq-premium-section::before {
    opacity: 0.3;
  }

  .faq-premium-intro {
    gap: 16px;
  }

  .faq-premium-intro h2 {
    font-size: 2.65rem;
    line-height: 1.04;
  }

  .faq-premium-intro > p {
    font-size: 0.98rem;
  }

  .faq-help-card {
    display: none;
  }

  .faq-safe-note {
    align-items: flex-start;
  }

  .faq-list {
    gap: 14px;
  }

  .faq-list details {
    min-height: 0;
    padding: 18px 16px;
  }

  .faq-list summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
  }

  .faq-icon {
    width: 52px;
    height: 52px;
  }

  .faq-icon svg {
    width: 25px;
    height: 25px;
  }

  .faq-copy strong {
    font-size: 1rem;
  }

  .faq-list details p {
    margin: 10px 36px 0 64px;
    font-size: 0.93rem;
  }

  .footer-location-copy h2 {
    font-size: 2.65rem;
    line-height: 1.02;
  }

  .footer-kicker {
    gap: 12px;
    letter-spacing: 0.12em;
  }

  .footer-contact-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .footer-contact-card em {
    display: none;
  }

  .footer-map-card {
    height: 300px;
    min-height: 0;
  }

  .footer-map-info {
    top: 18px;
    left: 18px;
    width: calc(100% - 36px);
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 12px;
  }

  .footer-map-info strong {
    font-size: 0.92rem;
  }

  .label-city,
  .label-market {
    display: none;
  }

  .footer-map-video {
    left: 18px;
    right: 18px;
    bottom: 20px;
    max-width: none;
  }

  .footer-benefit-strip {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .footer-benefit-strip article {
    padding: 14px 0;
  }

  .footer-benefit-strip article + article {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .hero {
    min-height: unset;
  }

  .specialty-grid,
  .benefit-grid,
  .review-grid,
  .dashboard-grid,
  .post-grid,
  .form-pair,
  .insurance-choice-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .specialty-card-wide {
    grid-column: auto;
  }

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

  .portal-nav {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 22px;
  }

  .portal-nav button {
    min-height: 104px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 18px;
    white-space: normal;
    text-align: left;
  }

  .portal-nav-icon {
    width: 50px;
    height: 50px;
  }

  .portal-nav-icon svg {
    width: 27px;
    height: 27px;
  }

  .portal-summary-strip {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .finance-entry-form,
  .finance-expense-form {
    gap: 10px;
  }

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

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

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

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

  .settings-form-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .floating-actions {
    right: 12px;
    bottom: 12px;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 420px) {
  .header-actions {
    gap: 6px;
  }

  .header-actions .btn {
    min-height: 40px;
    padding-inline: 5px;
    gap: 4px;
    font-size: 0.76rem;
  }

  .header-actions .btn svg {
    width: 16px;
    height: 16px;
  }

  .header-actions .ig-mark {
    width: 18px;
    height: 18px;
    font-size: 0.54rem;
  }
}
