@font-face {
  font-family: "ThmanyahSans";
  src: url("./fonts/thmanyahsans-Regular.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "ThmanyahSans";
  src: url("./fonts/thmanyahsans-Medium.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "ThmanyahSans";
  src: url("./fonts/thmanyahsans-Bold.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root {
  color-scheme: dark;
  --bg: #0a0c10;
  --surface: rgba(16, 19, 26, 0.82);
  --surface-solid: #13161f;
  --surface-hover: #181c27;
  --surface-active: #202534;
  --text: #f3f4f6;
  --muted: #8d94a5;
  --quiet: #525968;
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.09);
  --accent-line: rgba(99, 102, 241, 0.28);
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.04);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: "ThmanyahSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 50% at 50% -15%, rgba(99, 102, 241, 0.07), transparent 75%),
    radial-gradient(ellipse 60% 40% at 50% 115%, rgba(56, 189, 248, 0.04), transparent 75%);
  background-attachment: fixed;
}

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

svg {
  display: block;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

/* Calm geometric ambient backdrop */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.3;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* Profile Card - Sleek executive dark matte glass */
.profile-card {
  position: relative;
  width: min(100%, 480px);
  padding: 30px 22px 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow:
    0 32px 85px -20px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(130%);
  animation: card-in 650ms var(--ease-out) both;
}

/* Subtle mouse tracking spotlight */
.profile-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(255, 255, 255, 0.035),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 300ms ease;
  z-index: 1;
}

.profile-card:hover::after {
  opacity: 1;
}

.profile-header,
.status-strip,
.build-request,
.link-card,
.page-footer,
.copyright {
  position: relative;
  z-index: 2;
  animation: content-in 500ms var(--ease-out) both;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 4px 12px 18px;
  animation-delay: 60ms;
}

/* Share Button & Feedback Toast */
.share-wrapper {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 4;
}

.share-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform 160ms var(--ease-out),
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.share-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.share-button:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.share-button:focus-visible {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.share-button:active {
  transform: scale(0.94);
}

.share-toast {
  position: absolute;
  top: calc(100% + 6px);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  background: #191c26;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms var(--ease-out);
}

.share-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Brand Avatar - Borderless & Clean with calm backlight */
.brand-mark {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: none;
  background: transparent;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.35) 0%, rgba(99, 102, 241, 0.12) 50%, transparent 72%);
  filter: blur(10px);
  pointer-events: none;
  opacity: 0.7;
  animation: avatar-pulse 4.5s ease-in-out infinite alternate;
}

@keyframes avatar-pulse {
  from {
    opacity: 0.45;
    transform: scale(0.92);
  }
  to {
    opacity: 0.85;
    transform: scale(1.06);
  }
}

.avatar {
  position: relative;
  z-index: 1;
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 50%;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
}

/* Profile Typography - Perfectly Centered */
.profile-copy {
  width: 100%;
  text-align: center;
}

h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  text-align: center;
}

.title-wrapper {
  position: relative;
  display: inline-block;
}

.arabic-name {
  display: block;
  font-size: clamp(25px, 6vw, 30px);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.verified-badge {
  position: absolute;
  top: 50%;
  right: calc(100% + 7px);
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--accent);
  pointer-events: none;
}

.english-name {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.bio {
  max-width: 36ch;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.bio-highlight {
  color: #ffffff;
  font-weight: 600;
  border-bottom: none;
}

/* Status Chips - Clean, Balanced & Centered */
.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  animation-delay: 110ms;
}

.status-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background-color 160ms ease,
    transform 140ms var(--ease-out);
}

.status-strip span:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
}

/* Custom Build Request - Executive Configurator Style */
.build-request {
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 180ms ease, background-color 180ms ease;
  animation-delay: 140ms;
}

.build-request:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.build-request[open] {
  border-color: var(--accent-line);
  background: rgba(99, 102, 241, 0.035);
}

.build-request summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.build-request summary::-webkit-details-marker {
  display: none;
}

.summary-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.summary-pill {
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  line-height: 1.3;
}

.summary-copy strong {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}

.summary-copy small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11.5px;
}

.summary-arrow {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform 220ms var(--ease-out),
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.summary-arrow svg {
  width: 14px;
  height: 14px;
}

.build-request[open] .summary-arrow {
  transform: rotate(45deg);
  color: #ffffff;
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.14);
}

.build-request[open] .build-form {
  animation: form-expand 220ms var(--ease-out) both;
}

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

/* Form Styles */
.build-form {
  padding: 0 14px 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 4px;
}

.form-field {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

.form-field small {
  color: var(--quiet);
  font-size: 10px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: rgba(0, 0, 0, 0.28);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.form-field select {
  cursor: pointer;
  color-scheme: dark;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(0, 0, 0, 0.28);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238d94a5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  padding-left: 36px;
  padding-right: 12px;
}

.form-field select option {
  background-color: #131620;
  color: #f3f4f6;
  font-size: 13px;
  padding: 10px 12px;
}

.form-field select option:disabled {
  color: #555c6d;
}

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

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-field select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 11px 14px;
  color: #ffffff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.25);
  transition: transform 160ms var(--ease-out), filter 160ms ease;
}

.form-submit .btn-arrow {
  width: 16px;
  height: 16px;
}

.form-submit:hover {
  filter: brightness(1.08);
}

.form-submit:active {
  transform: scale(0.98);
}

.form-note {
  margin: 8px 0 0;
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

/* Links Grid */
.links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.links > .link-card:nth-child(1),
.links > .link-card:nth-child(n + 4) {
  grid-column: 1 / -1;
}

/* Secondary Compact Reviews Cards (2 & 3 side by side) */
.links > .link-card:nth-child(2),
.links > .link-card:nth-child(3) {
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 8px;
  min-height: 64px;
  height: 64px;
  padding: 8px 10px;
  border-radius: 14px;
  align-content: center;
}

.links > .link-card:nth-child(2) .link-icon,
.links > .link-card:nth-child(3) .link-icon {
  display: none;
}

.links > .link-card:nth-child(2) strong,
.links > .link-card:nth-child(3) strong {
  font-size: 13px;
  line-height: 1.3;
}

.links > .link-card:nth-child(2) small,
.links > .link-card:nth-child(3) small {
  font-size: 10.5px;
  line-height: 1.3;
}

/* Base Link Card Styling */
.link-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-solid);
  transition:
    transform 180ms var(--ease-out),
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
  animation-delay: calc(150ms + (var(--index, 0) * 45ms));
}

.link-card:nth-child(1) { --index: 0; }
.link-card:nth-child(2) { --index: 1; }
.link-card:nth-child(3) { --index: 2; }
.link-card:nth-child(4) { --index: 3; }
.link-card:nth-child(5) { --index: 4; }
.link-card:nth-child(6) { --index: 5; }
.link-card:nth-child(7) { --index: 6; }
.link-card:nth-child(8) { --index: 7; }

/* Primary Store Card - Sleek subtle spotlight & slow sheen */
.primary-link {
  border-color: rgba(99, 102, 241, 0.32);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(19, 22, 31, 0.9));
}

.primary-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 100%
  );
  transform: translateX(-180%) skewX(-20deg);
  animation: primary-sheen 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  will-change: transform;
}

@keyframes primary-sheen {
  0%, 72% {
    transform: translateX(-180%) skewX(-20deg);
  }
  100% {
    transform: translateX(360%) skewX(-20deg);
  }
}

/* Link Icon - Calm matte container, restrained hover tint */
.link-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #cfd4dc;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms var(--ease-out);
}

.link-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.link-logo {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
  border: none;
}

/* Calm, non-screaming platform tints on hover only */
.store-link { --icon-hover: #818cf8; }
.testimonials-link { --icon-hover: #a5b4fc; }
.product-reviews-link { --icon-hover: #fbbf24; }
.instagram-link { --icon-hover: #f472b6; }
.tiktok-link { --icon-hover: #38bdf8; }
.whatsapp-link { --icon-hover: #34d399; }
.snapchat-link { --icon-hover: #fde047; }
.telegram-link { --icon-hover: #60a5fa; }

.link-copy {
  min-width: 0;
}

.copy-title-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.official-tag {
  display: inline-block;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
  color: #818cf8;
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 5px;
}

.link-card strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-card small {
  display: block;
  overflow: hidden;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-arrow {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--quiet);
  transition: color 180ms ease, transform 180ms var(--ease-out);
}

.link-arrow svg {
  width: 15px;
  height: 15px;
}

/* Desktop Hover & Focus States */
@media (hover: hover) and (pointer: fine) {
  .link-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: var(--surface-hover);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
  }

  .primary-link:hover {
    border-color: rgba(99, 102, 241, 0.45);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(24, 28, 39, 0.95));
  }

  .link-card:hover .link-icon {
    color: var(--icon-hover, #ffffff);
    border-color: color-mix(in srgb, var(--icon-hover, #ffffff) 30%, transparent);
    background: color-mix(in srgb, var(--icon-hover, #ffffff) 8%, transparent);
    transform: scale(1.04);
  }

  .link-card:hover .link-arrow {
    color: var(--text);
    transform: translate(-2px, -2px);
  }
}

.link-card:focus-visible {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.link-card:active {
  transform: scale(0.98);
}

/* Tactile Mobile Touch Effects & Haptic Simulation */
@media (hover: none) and (pointer: coarse) {
  .link-card {
    transition:
      transform 120ms var(--ease-out),
      background-color 120ms ease,
      border-color 120ms ease,
      box-shadow 120ms ease;
  }

  .link-card:active {
    transform: scale(0.975);
    border-color: rgba(255, 255, 255, 0.22);
    background: var(--surface-active);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  }

  .primary-link:active {
    border-color: rgba(99, 102, 241, 0.55);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(28, 33, 46, 0.98));
  }

  .link-card:active .link-icon {
    transform: scale(0.92);
    color: var(--icon-hover, #ffffff);
    border-color: color-mix(in srgb, var(--icon-hover, #ffffff) 34%, transparent);
    background: color-mix(in srgb, var(--icon-hover, #ffffff) 14%, transparent);
  }

  .link-card:active .link-arrow {
    color: var(--text);
    transform: translate(-3px, -3px);
  }

  /* Subtle ambient brand tinting for mobile icons */
  .link-card .link-icon {
    color: color-mix(in srgb, var(--icon-hover, #d1d5db) 85%, #ffffff);
    background: color-mix(in srgb, var(--icon-hover, #ffffff) 5%, rgba(255, 255, 255, 0.03));
    border-color: color-mix(in srgb, var(--icon-hover, #ffffff) 15%, rgba(255, 255, 255, 0.06));
  }

  .status-strip span:active {
    transform: scale(0.94);
    border-color: rgba(99, 102, 241, 0.45);
    background: rgba(99, 102, 241, 0.12);
    color: #ffffff;
  }

  .share-button:active {
    transform: scale(0.9);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
  }

  .form-submit:active {
    transform: scale(0.97);
    filter: brightness(1.15);
  }

  .build-request summary:active {
    background: rgba(255, 255, 255, 0.02);
  }
}

/* Footer & Copyright */
.page-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding: 0 4px;
  color: var(--quiet);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  animation-delay: 450ms;
}

.footer-sep {
  font-size: 6px;
  opacity: 0.6;
}

.copyright {
  margin: 8px 0 0;
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
  animation-delay: 480ms;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  font-family: Arial, sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  animation-delay: 500ms;
}

.footer-link {
  color: var(--quiet);
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-dot {
  font-size: 6px;
  color: var(--quiet);
  opacity: 0.6;
}

/* Animations */
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes content-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (prefers-reduced-transparency: reduce) {
  .profile-card {
    background: var(--surface-solid);
    backdrop-filter: none;
  }
}

/* Mobile Responsiveness */
@media (max-width: 520px) {
  .page-shell {
    padding: max(14px, env(safe-area-inset-top)) 10px max(24px, env(safe-area-inset-bottom));
  }

  .profile-card {
    width: 100%;
    padding: 22px 13px 18px;
    border-radius: 22px;
  }

  .profile-header {
    gap: 10px;
    padding-inline: 6px;
    padding-bottom: 14px;
  }

  .share-wrapper {
    inset-inline-end: 2px;
    inset-block-start: 2px;
  }

  .share-button {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .brand-mark {
    width: 70px;
    height: 70px;
  }

  .avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: none;
    box-shadow: none;
  }

  .bio {
    font-size: 13.5px;
    line-height: 1.6;
    max-width: 28ch;
    text-wrap: balance;
  }

  /* Status Chips: 2 equal badges on top row, 1 wide badge on bottom row */
  .status-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: 100%;
    max-width: 330px;
    margin-inline: auto;
    margin-bottom: 14px;
  }

  .status-strip span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    font-size: 11.5px;
    white-space: nowrap;
    text-align: center;
    border-radius: 8px;
  }

  .status-strip span:last-child {
    grid-column: 1 / -1;
  }

  .build-request {
    margin-bottom: 12px;
    border-radius: 16px;
  }

  .build-request summary {
    min-height: 60px;
    padding: 10px 12px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .form-field-full {
    grid-column: auto;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 14px;
    padding: 10px 12px;
  }

  /* Link Cards Grid on Mobile */
  .links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .links > .link-card:nth-child(1),
  .links > .link-card:nth-child(n + 4) {
    grid-column: 1 / -1;
  }

  /* Cards 2 & 3 side by side on mobile */
  .links > .link-card:nth-child(2),
  .links > .link-card:nth-child(3) {
    grid-column: span 1;
    grid-template-columns: minmax(0, 1fr) 18px;
    gap: 6px;
    min-height: 64px;
    height: 64px;
    padding: 8px 10px;
    border-radius: 14px;
    align-content: center;
  }

  .links > .link-card:nth-child(2) .link-icon,
  .links > .link-card:nth-child(3) .link-icon {
    display: none !important;
  }

  .links > .link-card:nth-child(2) strong,
  .links > .link-card:nth-child(3) strong {
    font-size: 12.5px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .links > .link-card:nth-child(2) small,
  .links > .link-card:nth-child(3) small {
    font-size: 10px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .link-card {
    grid-template-columns: 46px minmax(0, 1fr) 20px;
    gap: 12px;
    min-height: 68px;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .link-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .link-card strong {
    font-size: 14.5px;
  }

  .link-card small {
    font-size: 12px;
  }

  .footer-contacts {
    gap: 6px;
    font-size: 11px;
  }
}
