@font-face {
  font-family: "Rabar 038";
  src:
    url("fonts/Rabar_038.woff2") format("woff2"),
    url("fonts/Rabar_038.woff") format("woff"),
    url("fonts/Rabar_038.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-deep: #047985;
  --brand-mid: #058e9b;
  --brand: #07aebe;
  --brand-glow: #39d4e2;
  --brand-tint: #ccf2f6;
  --brand-mist: #e8f8fa;
  --brand-wash: #f4fcfd;

  --porcelain: #ffffff;
  --ink-primary: #0b2c33;
  --ink-secondary: #486e76;
  --ink-muted: #70959d;
  --border-soft: rgba(7, 174, 190, 0.14);
  --border-hover: rgba(7, 174, 190, 0.42);

  --icon-primary: var(--brand);
  --icon-secondary: rgba(7, 174, 190, 0.18);

  --radius-shell: 38px;
  --radius-card: 22px;
  --radius-squircle: 15px;

  --spring: cubic-bezier(0.34, 1.48, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --font-main: "Rabar 038", "Noto Sans Arabic", Tahoma, sans-serif;
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-main);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0;
  color: var(--ink-primary);
  background: radial-gradient(
    circle at 50% 0%,
    #f7fdfe 0%,
    #e7f7f9 58%,
    #daf1f4 100%
  );
  display: grid;
  place-items: center;
  padding: 32px 16px;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: 0;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='116' viewBox='0 0 180 116'%3E%3Cg fill='%2307aebe' fill-opacity='0.065'%3E%3Cg transform='translate(14 14) scale(0.24)'%3E%3Cpath fill-rule='evenodd' d='M2 3H48C77 3 99 22 99 50C99 78 77 97 48 97H2C.5 97 0 95.5 0 94V92C0 90 1.5 89 4 88.5L7.2 87.5V12.5L4 11.5C1.5 11 0 10 0 8V6C0 4.5.5 3 2 3ZM27.5 20.5V79.5H47C66 79.5 79 67.5 79 50C79 32.5 66 20.5 47 20.5Z'/%3E%3Cpath d='M100 3H123C126 3 128 4.5 130 7L156 39.5L186 5.5C188.5 3.5 191 3 194 3H254C256 3 257 4.5 257 6.5V28.5C258.8 30 259.6 32.2 259.6 34.6C259.6 38.4 256.6 41.2 253 41.2C249.4 41.2 246.8 38.4 246.8 34.6C246.8 32.2 247.8 30 249.4 28.5V24C249.4 21.5 247.5 20 244.5 20H204C200.5 20 197.5 21.5 195 24.5L160 69.5C158.5 71.5 156 71.5 154.5 69.5L128 41V87.5L132.5 89C134.5 89.6 135.5 91 135.5 93V94.5C135.5 96 134.5 97 132.5 97H102C100.5 97 99.5 96 99.5 94.5V93C99.5 91 100.8 89.6 103 89L107.2 87.5V12.5L102 11C99.5 10.2 98.5 9 98.5 7V5.5C98.5 4 99 3 100 3Z'/%3E%3Cpath d='M184 78.5L192.5 68.5C194 67 195.8 67.5 197.5 69C202.5 74.5 208 79 216 79H244.5C247.5 79 249.4 77.5 249.4 75V71.5C247.8 70 246.8 67.8 246.8 65.4C246.8 61.6 249.4 58.8 253 58.8C256.6 58.8 259.6 61.6 259.6 65.4C259.6 67.8 258.8 70 257 71.5V93.5C257 95.5 256 97 254 97H211C198 97 189.5 92 183.5 82.5C182.5 81 182.8 79.6 184 78.5Z'/%3E%3Crect x='216.8' y='30' width='12.4' height='40' rx='6.2'/%3E%3Crect x='202.5' y='43.8' width='41' height='12.4' rx='6.2'/%3E%3C/g%3E%3Cg transform='translate(104 72) scale(0.24)'%3E%3Cpath fill-rule='evenodd' d='M2 3H48C77 3 99 22 99 50C99 78 77 97 48 97H2C.5 97 0 95.5 0 94V92C0 90 1.5 89 4 88.5L7.2 87.5V12.5L4 11.5C1.5 11 0 10 0 8V6C0 4.5.5 3 2 3ZM27.5 20.5V79.5H47C66 79.5 79 67.5 79 50C79 32.5 66 20.5 47 20.5Z'/%3E%3Cpath d='M100 3H123C126 3 128 4.5 130 7L156 39.5L186 5.5C188.5 3.5 191 3 194 3H254C256 3 257 4.5 257 6.5V28.5C258.8 30 259.6 32.2 259.6 34.6C259.6 38.4 256.6 41.2 253 41.2C249.4 41.2 246.8 38.4 246.8 34.6C246.8 32.2 247.8 30 249.4 28.5V24C249.4 21.5 247.5 20 244.5 20H204C200.5 20 197.5 21.5 195 24.5L160 69.5C158.5 71.5 156 71.5 154.5 69.5L128 41V87.5L132.5 89C134.5 89.6 135.5 91 135.5 93V94.5C135.5 96 134.5 97 132.5 97H102C100.5 97 99.5 96 99.5 94.5V93C99.5 91 100.8 89.6 103 89L107.2 87.5V12.5L102 11C99.5 10.2 98.5 9 98.5 7V5.5C98.5 4 99 3 100 3Z'/%3E%3Cpath d='M184 78.5L192.5 68.5C194 67 195.8 67.5 197.5 69C202.5 74.5 208 79 216 79H244.5C247.5 79 249.4 77.5 249.4 75V71.5C247.8 70 246.8 67.8 246.8 65.4C246.8 61.6 249.4 58.8 253 58.8C256.6 58.8 259.6 61.6 259.6 65.4C259.6 67.8 258.8 70 257 71.5V93.5C257 95.5 256 97 254 97H211C198 97 189.5 92 183.5 82.5C182.5 81 182.8 79.6 184 78.5Z'/%3E%3Crect x='216.8' y='30' width='12.4' height='40' rx='6.2'/%3E%3Crect x='202.5' y='43.8' width='41' height='12.4' rx='6.2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 180px 116px;
}

.linktree-shell {
  position: relative;
  width: 100%;
  max-width: 428px;
  min-height: 670px;
  background: var(--porcelain);
  border-radius: var(--radius-shell);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow:
    0 32px 72px -26px rgba(4, 121, 133, 0.22),
    0 8px 20px -8px rgba(7, 174, 190, 0.1),
    0 0 0 1px rgba(7, 174, 190, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: shellEnter 0.65s var(--ease-out) both;
}

.moroccan-cap {
  position: relative;
  height: 136px;
  background:
    radial-gradient(
      ellipse at 50% -10%,
      rgba(125, 232, 241, 0.45),
      transparent 62%
    ),
    linear-gradient(
      160deg,
      var(--brand-deep) 0%,
      var(--brand) 62%,
      #13becf 100%
    );
  flex-shrink: 0;
}

.dmc-pattern-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='118' height='74' viewBox='0 0 118 74'%3E%3Cg fill='%23ffffff' fill-opacity='0.14'%3E%3Cg transform='translate(10 10) scale(0.165)'%3E%3Cpath fill-rule='evenodd' d='M2 3H48C77 3 99 22 99 50C99 78 77 97 48 97H2C.5 97 0 95.5 0 94V92C0 90 1.5 89 4 88.5L7.2 87.5V12.5L4 11.5C1.5 11 0 10 0 8V6C0 4.5.5 3 2 3ZM27.5 20.5V79.5H47C66 79.5 79 67.5 79 50C79 32.5 66 20.5 47 20.5Z'/%3E%3Cpath d='M100 3H123C126 3 128 4.5 130 7L156 39.5L186 5.5C188.5 3.5 191 3 194 3H254C256 3 257 4.5 257 6.5V28.5C258.8 30 259.6 32.2 259.6 34.6C259.6 38.4 256.6 41.2 253 41.2C249.4 41.2 246.8 38.4 246.8 34.6C246.8 32.2 247.8 30 249.4 28.5V24C249.4 21.5 247.5 20 244.5 20H204C200.5 20 197.5 21.5 195 24.5L160 69.5C158.5 71.5 156 71.5 154.5 69.5L128 41V87.5L132.5 89C134.5 89.6 135.5 91 135.5 93V94.5C135.5 96 134.5 97 132.5 97H102C100.5 97 99.5 96 99.5 94.5V93C99.5 91 100.8 89.6 103 89L107.2 87.5V12.5L102 11C99.5 10.2 98.5 9 98.5 7V5.5C98.5 4 99 3 100 3Z'/%3E%3Cpath d='M184 78.5L192.5 68.5C194 67 195.8 67.5 197.5 69C202.5 74.5 208 79 216 79H244.5C247.5 79 249.4 77.5 249.4 75V71.5C247.8 70 246.8 67.8 246.8 65.4C246.8 61.6 249.4 58.8 253 58.8C256.6 58.8 259.6 61.6 259.6 65.4C259.6 67.8 258.8 70 257 71.5V93.5C257 95.5 256 97 254 97H211C198 97 189.5 92 183.5 82.5C182.5 81 182.8 79.6 184 78.5Z'/%3E%3Crect x='216.8' y='30' width='12.4' height='40' rx='6.2'/%3E%3Crect x='202.5' y='43.8' width='41' height='12.4' rx='6.2'/%3E%3C/g%3E%3Cg transform='translate(69 47) scale(0.165)'%3E%3Cpath fill-rule='evenodd' d='M2 3H48C77 3 99 22 99 50C99 78 77 97 48 97H2C.5 97 0 95.5 0 94V92C0 90 1.5 89 4 88.5L7.2 87.5V12.5L4 11.5C1.5 11 0 10 0 8V6C0 4.5.5 3 2 3ZM27.5 20.5V79.5H47C66 79.5 79 67.5 79 50C79 32.5 66 20.5 47 20.5Z'/%3E%3Cpath d='M100 3H123C126 3 128 4.5 130 7L156 39.5L186 5.5C188.5 3.5 191 3 194 3H254C256 3 257 4.5 257 6.5V28.5C258.8 30 259.6 32.2 259.6 34.6C259.6 38.4 256.6 41.2 253 41.2C249.4 41.2 246.8 38.4 246.8 34.6C246.8 32.2 247.8 30 249.4 28.5V24C249.4 21.5 247.5 20 244.5 20H204C200.5 20 197.5 21.5 195 24.5L160 69.5C158.5 71.5 156 71.5 154.5 69.5L128 41V87.5L132.5 89C134.5 89.6 135.5 91 135.5 93V94.5C135.5 96 134.5 97 132.5 97H102C100.5 97 99.5 96 99.5 94.5V93C99.5 91 100.8 89.6 103 89L107.2 87.5V12.5L102 11C99.5 10.2 98.5 9 98.5 7V5.5C98.5 4 99 3 100 3Z'/%3E%3Cpath d='M184 78.5L192.5 68.5C194 67 195.8 67.5 197.5 69C202.5 74.5 208 79 216 79H244.5C247.5 79 249.4 77.5 249.4 75V71.5C247.8 70 246.8 67.8 246.8 65.4C246.8 61.6 249.4 58.8 253 58.8C256.6 58.8 259.6 61.6 259.6 65.4C259.6 67.8 258.8 70 257 71.5V93.5C257 95.5 256 97 254 97H211C198 97 189.5 92 183.5 82.5C182.5 81 182.8 79.6 184 78.5Z'/%3E%3Crect x='216.8' y='30' width='12.4' height='40' rx='6.2'/%3E%3Crect x='202.5' y='43.8' width='41' height='12.4' rx='6.2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 118px 74px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.96), transparent 90%);
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.96),
    transparent 90%
  );
}

.arch-curve {
  position: absolute;
  bottom: -1px;
  inset-inline: 0;
  width: 100%;
  height: 54px;
  display: block;
}

.linktree-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 24px 22px;
}

.jelly-svg {
  width: 22px;
  height: 22px;
  display: block;
  overflow: visible;
  transition: transform 0.4s var(--spring);
}

.jelly-stroke {
  fill: none;
  stroke: var(--icon-primary);
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    stroke 0.25s ease,
    fill 0.25s ease;
}

.jelly-fill {
  fill: var(--icon-secondary);
  stroke: none;
  transition:
    fill 0.25s ease,
    opacity 0.25s ease;
}

.jelly-detail {
  stroke: var(--icon-primary);
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -60px;
  margin-bottom: 24px;
}

.avatar-frame {
  position: relative;
  padding: 2.5px;
  border-radius: 26px;
  background: var(--porcelain);
  box-shadow:
    0 10px 26px -10px rgba(4, 121, 133, 0.24),
    0 0 0 1px rgba(7, 174, 190, 0.08);
  margin-bottom: 14px;
}

.avatar-squircle {
  width: 84px;
  height: 84px;
  border-radius: 23.5px;
  background: linear-gradient(
    160deg,
    var(--brand-wash) 0%,
    var(--brand-tint) 100%
  );
  border: none;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.avatar-squircle--dmc {
  padding: 0;
}

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

.doctor-name {
  font-size: 1.58rem;
  font-weight: 400;
  color: var(--ink-primary);
  line-height: 1.45;
}

.links-stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.hub-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding-block: 8px;
  padding-inline-start: 8px;
  padding-inline-end: 16px;
  border-radius: var(--radius-card);
  background: var(--porcelain);
  border: 1px solid var(--border-soft);
  text-decoration: none;
  color: var(--ink-primary);
  cursor: pointer;
  box-shadow:
    0 6px 18px -14px rgba(4, 121, 133, 0.22),
    0 1px 2px rgba(4, 121, 133, 0.04);
  transition:
    transform 0.36s var(--spring),
    border-color 0.24s ease,
    box-shadow 0.28s var(--ease-out),
    background-color 0.24s ease;
  outline: none;
  animation: itemFadeUp 0.5s var(--ease-out) both;
}

.hub-card:nth-child(1) {
  animation-delay: 0.04s;
}
.hub-card:nth-child(2) {
  animation-delay: 0.08s;
}
.hub-card:nth-child(3) {
  animation-delay: 0.12s;
}
.hub-card:nth-child(4) {
  animation-delay: 0.16s;
}
.hub-card:nth-child(5) {
  animation-delay: 0.2s;
}

.icon-squircle {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-squircle);
  background: var(--brand-mist);
  border: 1px solid rgba(7, 174, 190, 0.14);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition:
    transform 0.4s var(--spring),
    background-color 0.26s var(--ease-out),
    border-color 0.26s ease,
    box-shadow 0.26s ease;
}

.hub-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: start;
}

.hub-card-title {
  font-size: 0.99rem;
  line-height: 1.45;
  color: var(--ink-primary);
}

.hub-card-desc {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--brand-deep);
}

.link-arrow {
  color: rgba(7, 174, 190, 0.48);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition:
    transform 0.36s var(--spring),
    color 0.24s ease;
}

.doctor-stack {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-inline-end: 2px;
}

.doctor-stack-circle {
  position: relative;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--brand-mist);
  border: 2px solid var(--porcelain);
  box-shadow: 0 2px 6px -2px rgba(4, 121, 133, 0.26);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  --icon-primary: var(--brand-deep);
  --icon-secondary: rgba(7, 174, 190, 0.22);
  transition:
    margin-inline-start 0.34s var(--spring),
    transform 0.34s var(--spring),
    background-color 0.24s ease;
}

.doctor-stack-circle:not(:first-child) {
  margin-inline-start: -9px;
}

.doctor-stack-circle:nth-child(2) {
  background: #dcf5f8;
}

.doctor-stack-circle:nth-child(3) {
  background: #cdeef3;
}

.doctor-stack-circle:has(img) {
  background:
    radial-gradient(circle at 50% 24%, #6ce6f2 0%, rgba(19, 190, 207, 0.25) 48%, transparent 74%),
    linear-gradient(160deg, #09b8c8 0%, var(--brand) 48%, var(--brand-deep) 100%);
}

.doctor-stack-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.doctor-stack-circle .jelly-svg {
  width: 14px;
  height: 14px;
}

.doctor-stack-circle .jelly-stroke {
  stroke-width: 2;
}

.doctor-stack-more {
  background: var(--brand);
  color: var(--porcelain);
  font-size: 0.72rem;
  line-height: 1;
  direction: ltr;
  unicode-bidi: isolate;
}

.hub-card:hover .doctor-stack-more {
  background: var(--brand-deep);
}

.hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: #fcffff;
  box-shadow:
    0 16px 30px -18px rgba(4, 121, 133, 0.28),
    0 4px 10px -6px rgba(7, 174, 190, 0.12);
}

.hub-card:hover .icon-squircle {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 8px 18px -8px rgba(7, 174, 190, 0.55);
  transform: scale(1.05);
  --icon-primary: #ffffff;
  --icon-secondary: rgba(255, 255, 255, 0.28);
}

.hub-card:hover .jelly-svg {
  transform: scale(1.06);
}

.hub-card:hover .link-arrow {
  color: var(--brand);
  transform: translateX(-3px);
}

.hub-card:active {
  transform: translateY(0) scale(0.988);
}

.hub-card:active .icon-squircle {
  transform: scale(0.95);
}

.hub-card:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(7, 174, 190, 0.26);
}

.footer-dock {
  margin-top: auto;
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.dmc-footer-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(7, 174, 190, 0.42);
}

.dmc-footer-mark svg {
  width: 46px;
  height: auto;
  display: block;
}

.app-footer {
  padding: 14px 24px 20px;
  text-align: center;
  border-top: 1px solid rgba(7, 174, 190, 0.12);
  width: 100%;
}

.premionix-footer {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.premionix-footer .dev-by {
  font-size: 0.56rem;
  color: var(--ink-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}

.premionix-footer .premionix-brand {
  font-size: 0.74rem;
  color: var(--ink-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: flex;
  align-items: center;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  transition: color 0.25s ease;
}

.premionix-footer .divider {
  margin: 0 0.45rem;
  opacity: 0.35;
}

.premionix-footer:hover .premionix-brand {
  color: var(--brand);
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 14px);
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--brand-deep);
  color: var(--porcelain);
  font-size: 0.86rem;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: 0 12px 24px -10px rgba(4, 121, 133, 0.45);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.24s ease,
    transform 0.34s var(--spring);
}

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

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

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

@media (max-width: 480px) {
  body {
    padding: 0;
    background: var(--porcelain);
    display: block;
  }

  .page-backdrop {
    display: none;
  }

  .linktree-shell {
    max-width: 100%;
    min-height: 100svh;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
}

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