/* MedZ design system — components per design/DESIGN-NOTES.md.
   Fonts + tokens live in tokens.css (loaded before this file).
   RTL rule: logical properties only; physical left/right needs a justifying comment. */

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

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-latin);
  background-color: var(--primary);
  color: var(--dark-text-300);
  min-height: 100vh;
  line-height: 1.5;
}

/* Arabic typography: dedicated face, taller line-height, never letter-spacing */
html[lang="ar"] body {
  font-family: var(--font-arabic);
  line-height: 1.7;
  letter-spacing: 0;
}

h1 {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.2;
}
h2 {
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.2;
}
h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.3;
}
/* Latin display type tightens slightly; NEVER letter-space Arabic */
html[lang="en"] h1,
html[lang="en"] h2 {
  letter-spacing: -0.02em;
}
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
  line-height: 1.5; /* Arabic ascenders/descenders clip at Latin heading line-heights */
}
p,
a {
  font-size: var(--text-base);
  color: inherit;
}
a {
  text-decoration: none;
}
ul {
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
}
input,
textarea,
button {
  font-family: inherit;
}
*:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

/* Utilities */
.container {
  width: min(var(--container-max), calc(100% - 2rem));
  margin-inline: auto;
}
section,
footer {
  margin-block-start: var(--section-gap);
}
/* The first section must not stack its gap on top of main's --header-offset
   (that stacking produced ~240px of dead space pre-redesign).
   :where() keeps specificity at 0 so .hero/.page-hero can still opt in. */
main > :where(section:first-child) {
  margin-block-start: 0;
}
.skip-link {
  position: absolute;
  inset-inline-start: 0;
  transform: translateY(-200%);
  background: var(--secondary);
  color: var(--light-text-400);
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip-link:focus {
  transform: none;
}

/* Inline SVG icons (templates/partials/icon.html) */
.icon {
  flex-shrink: 0;
  vertical-align: -0.125em;
}
/* Directional icons flip in RTL; symmetric/brand icons never get this class */
html[dir="rtl"] .icon-directional {
  scale: -1 1;
}

/* Header */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  padding-block-start: var(--space-4);
  background-color: var(--primary-transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-block-end: 1px solid transparent;
  transition: padding 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
header.is-scrolled {
  padding-block-start: var(--space-2);
  border-block-end-color: var(--divider);
  box-shadow: var(--elev-2);
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block-end: var(--space-4);
  transition: padding 0.2s ease;
}
header.is-scrolled .container {
  padding-block-end: var(--space-2);
}
.logo {
  display: flex;
  align-items: center;
}
.logo__img {
  width: 34px;
}
/* Light bg → dark mark; dark bg → light mark. Covers explicit [data-theme] and
   the prefers-color-scheme auto default. */
.logo__img--light { display: none; }
:root[data-theme="dark"] .logo__img--dark { display: none; }
:root[data-theme="dark"] .logo__img--light { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .logo__img--dark { display: none; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .logo__img--light { display: block; }
}
.logo__text {
  font-size: 1.625rem;
  font-weight: 500;
  margin-inline-start: 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  position: relative;
  padding: 0.5rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--accent-text);
}
/* Animated underline — scales from center, so it needs no RTL flip */
.nav-links a:not(.lang-switch):not(.nav-signin)::after {
  content: "";
  position: absolute;
  inset-inline: 0.5rem;
  inset-block-end: 0.15rem;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--accent);
  scale: 0 1;
  transition: scale 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  scale: 1 1;
}
.nav-links a[aria-current="page"] {
  color: var(--accent-text);
  font-weight: 600;
}
/* Header nav lays out the always-visible sign-in CTA next to the menu button
   (and, on desktop, the nav links). */
header nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
/* On desktop the CTA reads best at the trailing end of the bar (after the nav
   links); on mobile it stays first, right next to the hamburger. */
@media (min-width: 901px) {
  .header-cta { order: 2; }
}

/* Prominent, always-visible sign-in / dashboard CTA — solid teal so anonymous
   users are pushed to sign in from the top bar of every page. */
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: var(--secondary); /* navy on teal ≈ 5.5:1 — matches the solid-button fix */
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 0.6rem 1.5rem;
  font-size: var(--text-base);
  white-space: nowrap;
  box-shadow: var(--elev-1);
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
}
.header-cta:hover {
  background-color: var(--accent-hover);
  color: #fff;
  box-shadow: var(--elev-2);
  transform: translateY(-1px);
}
.header-cta:active {
  transform: translateY(0);
}
.header-cta:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}
.lang-switch {
  border: 2px solid var(--accent);
  border-radius: var(--radius-full);
  padding: 0.35rem 1rem;
  color: var(--accent-text);
  font-weight: 600;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}
.lang-switch:hover {
  background-color: var(--accent);
  color: var(--primary);
}
html[lang="en"] .lang-switch {
  font-family: var(--font-arabic); /* the switcher shows the OTHER language's name */
}
html[lang="ar"] .lang-switch {
  font-family: var(--font-latin);
}

/* Theme toggle — circular icon button matching the .lang-switch pill.
   Shows the moon in light mode (click → dark) and the sun in dark mode. Both
   icons live in the DOM; CSS reveals the one for the ACTIVE theme, covering the
   explicit [data-theme] cases and the prefers-color-scheme auto default. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-full);
  background: none;
  color: var(--accent-text);
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}
.theme-toggle:hover {
  background-color: var(--accent);
  color: var(--primary);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* Quick rotate+fade so the button itself reacts to the click (the page-wide
   reveal is driven by tokens.css). Reduced-motion neutralizes this via the
   global block below. */
.theme-toggle__icon { display: inline-flex; transition: transform 0.35s ease, opacity 0.2s ease; }
.theme-toggle:active .theme-toggle__icon { transform: rotate(-45deg); }
/* Default (light / explicit light): moon visible, sun hidden. */
.theme-toggle__icon--sun { display: none; }
:root[data-theme="dark"] .theme-toggle__icon--moon { display: none; }
:root[data-theme="dark"] .theme-toggle__icon--sun { display: inline-flex; }
/* Auto (OS dark, no explicit choice): mirror the dark state. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle__icon--moon { display: none; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle__icon--sun { display: inline-flex; }
}

/* Buttons — full state matrix: hover, active, focus, disabled, icon slot */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: fit-content;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
}
html[lang="ar"] .button {
  text-transform: none; /* uppercase is meaningless in Arabic */
  letter-spacing: 0;
}
.button:active {
  transform: translateY(1px);
}
.button:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}
.button[disabled],
.button--disabled {
  opacity: 0.55;
  pointer-events: none;
}
.button--pill {
  color: var(--accent-text);
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius-full);
}
.button--pill:hover {
  background-color: var(--accent);
  color: var(--primary);
}
.button--solid {
  background-color: var(--accent);
  color: var(--secondary); /* navy on teal ≈ 5.5:1; the old mint text was 2.9:1 */
  border: none;
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  box-shadow: var(--elev-1);
}
.button--solid:hover {
  background-color: var(--accent-hover);
  color: #fff;
  box-shadow: var(--elev-2);
}
.button--sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
}
.button--lg {
  padding: 1.1rem 1.75rem;
  font-size: var(--text-lg);
}

/* Full-bleed section bands — the monotony breakers. Use on a <section> with an
   inner .container: <section class="band band--dark"><div class="container">… */
.band {
  padding-block: var(--space-8);
}
.band--tint {
  background: linear-gradient(to bottom, var(--surface-card), var(--primary));
}
.band--dark {
  background: var(--surface-dark);
  color: var(--light-text-300);
}
.band--dark h2,
.band--dark h3 {
  color: var(--light-text-400);
}

/* Eyebrow label above section titles */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--accent-text);
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-block-end: var(--space-2);
}
html[lang="ar"] .eyebrow {
  text-transform: none;
  letter-spacing: 0;
}
.band--dark .eyebrow {
  color: var(--accent);
}

/* Section head: title start-aligned with an optional "view all" link at the end */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-block-end: var(--space-6);
}
.section-head h2 {
  margin: 0;
}
.section-head__link {
  color: var(--accent-text);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.section-head__link:hover {
  text-decoration: underline;
}

/* Icon chip — 50×50 accent square per DESIGN-NOTES */
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: var(--secondary);
  flex-shrink: 0;
}

/* Cards & panels */
.box {
  background-color: var(--surface-card);
  box-shadow: var(--elev-2);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px solid transparent;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
/* Link-cards lift on hover and show a visible focus ring */
a.box:hover {
  transform: translateY(-4px);
  box-shadow: var(--elev-3);
  border-color: rgba(60, 160, 155, 0.35);
}
a.box:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
  box-shadow: var(--elev-3);
}
/* Card media: fixed aspect ratio kills layout shift and squashed images */
.card-media {
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: scale 0.3s ease;
}
a.box:hover .card-media img,
.box:hover .card-media img {
  scale: 1.04;
}
.panel-dark {
  background-color: var(--secondary);
  border-radius: var(--radius-card);
  padding: 4rem;
  text-align: center;
}
.panel-dark h2 {
  color: var(--light-text-400);
  margin-block-end: 1rem;
}
.panel-dark p {
  color: var(--light-text-300);
  max-width: 80ch;
  margin-inline: auto;
}

/* Hero */
.hero {
  margin-block-start: var(--space-6); /* main's --header-offset already clears the fixed header */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.hero__info {
  max-width: 500px;
}
.hero__title {
  font-size: var(--text-display);
  line-height: 1.12;
  margin-block-end: 0.75rem;
}
html[lang="ar"] .hero__title {
  line-height: 1.4; /* Arabic display type clips below Latin line-heights */
}
.hero__title span {
  color: var(--accent-hover);
}
.hero__subheading {
  color: var(--dark-text-200);
  font-size: clamp(1rem, 0.784rem + 0.455vw, 1.125rem);
  margin-block-end: 1.25rem;
}
.hero__imgs {
  position: relative;
  width: clamp(18.75rem, 11.875rem + 18.333vw, 25.625rem);
  aspect-ratio: 1/1;
  flex-shrink: 0;
}
.hero__imgs img {
  width: clamp(6.25rem, 1.25rem + 13.333vw, 11.25rem);
  height: auto;
  position: absolute;
}
.hero__imgs img:first-child {
  top: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
html[dir="rtl"] .hero__imgs img:first-child {
  transform: translate(50%, -50%);
}
/* CMS-uploaded hero image: framed depth, centered over the blob */
.hero__imgs img.hero__cms-img {
  top: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: clamp(10rem, 5rem + 14vw, 15rem);
  border-radius: var(--radius-lg);
  border: 4px solid var(--surface-raised);
  box-shadow: var(--elev-3);
}
html[dir="rtl"] .hero__imgs img.hero__cms-img {
  transform: translate(50%, -50%);
}
/* Default hero art: staggered icon tiles over the blob (replaced legacy photos) */
.hero__icons {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.hero-icon-card {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(4.25rem, 2.25rem + 5.5vw, 5.75rem);
  aspect-ratio: 1 / 1;
  background: var(--surface-raised);
  color: var(--accent-text);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-3);
}
.hero-icon-card:nth-child(1) { top: 6%; inset-inline-start: 8%; }
.hero-icon-card:nth-child(2) { top: 24%; inset-inline-end: 6%; }
.hero-icon-card:nth-child(3) { bottom: 22%; inset-inline-start: 12%; }
.hero-icon-card:nth-child(4) { bottom: 4%; inset-inline-end: 10%; }
/* MedZ mark centred on the blob, above the tiles. Scoped under .hero__imgs to
   out-rank the generic `.hero__imgs img` width rule. */
.hero__imgs .hero__logo {
  position: absolute;
  top: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  /* The mark is a tall SVG — keep the width modest so it sits INSIDE the blob. */
  width: clamp(3rem, 2rem + 2.8vw, 4rem);
  filter: drop-shadow(0 4px 12px rgba(16, 23, 45, 0.25));
}
html[dir="rtl"] .hero__imgs .hero__logo {
  transform: translate(50%, -50%);
}

/* Footer */
footer {
  background-color: var(--surface-dark);
  color: var(--light-text-300);
  border-block-start: 3px solid var(--accent);
}
.footer__info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  padding-block: var(--space-8) var(--space-6);
}
@media (min-width: 901px) {
  .footer__info {
    grid-template-columns: 2.2fr 1fr 1.2fr 1fr;
  }
}
.footer__logo_heading {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-block-end: 10px;
}
.footer__logo_heading img {
  width: 28px;
}
.footer__logo_heading span {
  color: var(--light-text-400);
}
.footer__logo p {
  color: var(--light-text-300); /* -100 was 3.06:1 on navy — fails AA */
  max-width: 250px;
}
.footer__title {
  color: var(--light-text-400);
  font-weight: 600;
  margin-block-end: 10px;
}
.footer__link {
  color: var(--light-text-200);
  font-size: 0.875rem;
}
.footer__link:hover {
  text-decoration: underline;
}
.footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.social-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  color: var(--light-text-300);
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out,
    transform 0.15s ease-in-out;
}
.social-chip:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
footer .copy {
  padding-block: 1rem;
  font-size: var(--text-xs);
  border-block-start: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--light-text-200);
  text-align: center;
}

/* Mobile */
@media (max-width: 640px) {
  .logo__img {
    width: 26px;
  }
  .logo__text {
    font-size: 1.375rem;
  }
  .nav-links {
    gap: 0.75rem;
  }
  .hero {
    flex-direction: column;
    gap: var(--space-6);
    text-align: center;
    align-items: center;
  }
  .hero__imgs {
    order: -1;
    width: clamp(16.25rem, 13.194rem + 14.815vw, 18.75rem);
  }
  .hero__imgs img {
    width: 120px;
  }
  .hero__actions {
    display: flex;
    justify-content: center;
  }
  .panel-dark {
    padding: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Account area: forms, profile, dashboard (Phase 4)
   ============================================================ */
.container.narrow {
  width: min(var(--container-narrow), calc(100% - 2rem));
}

/* Standalone 500 page (rendered without base.html) — centered, no inline style
   so the CSP can forbid inline styles. */
.error-page {
  text-align: center;
  padding-block: 6rem;
}
/* Giant outlined status code on 404/500 */
.error-code {
  font-size: clamp(5rem, 4rem + 8vw, 8.5rem);
  line-height: 1;
  font-weight: 700;
  color: var(--accent-text);
}
@supports (-webkit-text-stroke: 3px black) {
  .error-code {
    color: transparent;
    -webkit-text-stroke: 3px var(--accent-text);
  }
}
main {
  padding-block-start: var(--header-offset); /* clear the fixed header */
}

/* Breadcrumbs */
.breadcrumbs {
  margin-block: 1rem;
  font-size: 0.875rem;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/"; /* direction-neutral separator (a chevron glyph would need an RTL flip) */
  margin-inline-start: 0.5rem;
  color: var(--dark-text-100);
}
.breadcrumbs a {
  color: var(--accent-text);
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs li:last-child span {
  color: var(--dark-text-200);
  font-weight: 500;
}

/* Messages */
.messages {
  list-style: none;
  margin-block-end: 1rem;
}
.message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-block-end: 0.5rem;
}
.message--success {
  background-color: var(--ok-bg);
  color: var(--ok-text);
}
.message--error {
  background-color: var(--danger-bg);
  color: var(--danger);
}

/* Form card */
.form-card {
  background-color: var(--primary);
}
.form-card__title {
  margin-block-end: 0.25rem;
}
.form-card__subtitle {
  color: var(--dark-text-200);
  margin-block-end: 1.5rem;
}
.field {
  display: grid;
  gap: 0.35rem;
  margin-block-end: 1.25rem;
}
.field label {
  font-weight: 600;
  font-size: 0.875rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background-color: var(--surface-raised);
  color: var(--dark-text-300);
  padding: 0.75rem 1rem;
  border: 1px solid var(--divider);
  border-block-end: 2px solid var(--border-200); /* brand underline emphasis, kept */
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  border-block-end-color: var(--accent-hover);
  box-shadow: var(--ring);
  outline: none;
}
.field--error input {
  border-block-end-color: var(--danger);
}
.field-error {
  color: var(--danger);
  font-size: 0.8125rem;
}
.hint {
  color: var(--dark-text-100);
  font-size: 0.8125rem;
}
.form-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.form-card__signout {
  margin-block-start: 1.5rem;
  border-block-start: 1px solid var(--divider);
  padding-block-start: var(--space-4);
}
.link-button {
  background: none;
  border: none;
  color: var(--dark-text-200);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-size: 0.875rem;
}

/* Google-only sign-in: split card with a navy brand panel on desktop */
.auth-container {
  width: min(920px, calc(100% - 2rem));
}
.auth-split {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--elev-3);
}
.auth-split__brand {
  display: none;
}
@media (min-width: 901px) {
  .auth-split {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
  }
  .auth-split__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Gradient position decorative — no RTL variant needed */
    background:
      radial-gradient(20rem 20rem at 80% 110%, rgba(60, 160, 155, 0.35), transparent 65%),
      var(--surface-dark);
  }
  .auth-split__brand img {
    width: 96px;
    opacity: 0.95;
  }
  .auth-split .box {
    border-radius: 0;
    box-shadow: none;
    padding: var(--space-8) var(--space-7);
  }
}
.auth-card {
  text-align: center;
}
.auth-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  margin-block-start: 0.5rem;
}
.auth-google__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}
.auth-card__note {
  color: var(--dark-text-100);
  font-size: 0.85rem;
  margin-block-start: 1.25rem;
}
.settings-email {
  margin-block-end: 1.5rem;
}
.settings-email label {
  font-weight: 600;
  font-size: 0.875rem;
  display: block;
  margin-block-end: 0.25rem;
}

/* Profile header — banner card: gradient strip with the avatar overlapping it */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  background-color: var(--surface-card);
  position: relative;
  overflow: hidden;
  padding-block-start: calc(64px + var(--space-5));
}
.profile-header::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 64px;
  /* Gradient angle decorative — no RTL variant needed */
  background: linear-gradient(100deg, var(--accent), var(--secondary));
}
.profile-header > * {
  position: relative;
}
.profile-header__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--surface-card);
  margin-block-start: calc(-1 * var(--space-8));
  background: var(--surface-card);
}
.profile-header__info {
  flex: 1;
  min-width: 200px;
}
.profile-header__email {
  color: var(--dark-text-200);
}
.profile-header__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block-start: 0.75rem;
}
.chip {
  background-color: var(--surface-raised);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  box-shadow: var(--elev-1);
}

/* Dashboard grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-block-start: 1.5rem;
}
.dashboard-panel__title {
  font-size: 1.125rem;
  margin-block-end: 0.75rem;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.dashboard-panel__title .icon {
  color: var(--accent-text);
}
.dashboard-panel__list {
  display: grid;
  gap: 0.5rem;
}
.dashboard-panel__empty {
  color: var(--dark-text-100);
}

/* Coming soon (registration) */
.coming-soon {
  text-align: center;
  padding-block: 2rem;
}
.coming-soon__medallion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface-card);
  color: var(--accent-text);
  box-shadow: var(--elev-2);
  margin-block-end: var(--space-4);
}
.coming-soon__title {
  margin-block-end: 1rem;
}
.coming-soon__text {
  color: var(--dark-text-200);
  max-width: 60ch;
  margin-inline: auto;
  margin-block-end: 0.5rem;
}
.coming-soon__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-block-start: 1.5rem;
}
