[data-theme="dark"] .brand {
  padding: 6px 12px;
  border: 1px solid #ffffff1c;
  border-radius: 14px;
  background: #13142b;
}

[data-theme="dark"] .brand .wm {
  color: #f7f7ff;
}

[data-theme="dark"] .brand .wm small {
  color: #c5c6e4;
  letter-spacing: 0.06em;
  text-transform: none;
}

[data-theme="dark"] .brand .wm small::after {
  content: " · غالينفيت بيولوجيكس";
}

html[data-theme="light"] .about .reveal p,
html[data-theme="light"] .about .more-body p {
  color: #35364b;
}

.about .mvcard {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 58%),
    linear-gradient(145deg, var(--card), var(--tint));
  box-shadow: 0 12px 30px #1a1b3c12;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.about .mvcard::after {
  position: absolute;
  z-index: -1;
  top: 8px;
  right: 16px;
  color: color-mix(in srgb, var(--accent) 13%, transparent);
  font: 800 5rem/1 var(--display);
  content: "01";
}

.about .mvcard.m1 {
  --accent: var(--blue);
  border-top: 4px solid var(--blue);
}

.about .mvcard.m2 {
  --accent: var(--magenta);
  border-top: 4px solid var(--magenta);
}

.about .mvcard.m2::after {
  content: "02";
}

.about .mvcard svg {
  color: var(--accent);
}

.about .mvcard p {
  color: var(--muted);
}

html[data-theme="light"] .about .mvcard {
  min-height: 220px;
  padding: 28px;
  border: 1px solid transparent;
  box-shadow: 0 18px 42px #23285c1c, 0 3px 8px #23285c0d;
}

html[data-theme="light"] .about .mvcard.m1 {
  border-color: #4458df;
  background:
    radial-gradient(circle at 92% 18%, #ffffff28 0 3px, transparent 4px 100%),
    radial-gradient(ellipse at 100% 0%, #9daaff55, transparent 48%),
    linear-gradient(145deg, #2537a2, #5143c7 58%, #7139b4);
  color: #fff;
}

html[data-theme="light"] .about .mvcard.m2 {
  border-color: #813875;
  background:
    radial-gradient(ellipse at 100% 0%, #d563bb55, transparent 52%),
    linear-gradient(145deg, #4a205f, #712568 58%, #882d69);
  box-shadow: 0 18px 42px #62275c35, 0 3px 8px #23285c12;
  color: #fff;
}

html[data-theme="light"] .about .mvcard.m1::after {
  top: 16px;
  right: 18px;
  color: #ffffff20;
}

html[data-theme="light"] .about .mvcard.m2::after {
  top: 16px;
  right: 18px;
  color: #ffffff20;
}

html[data-theme="light"] .about .mvcard.m1 svg {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  padding: 11px;
  border: 1px solid #ffffff3d;
  border-radius: 15px;
  background: #ffffff1a;
  color: #fff;
}

html[data-theme="light"] .about .mvcard.m2 svg {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  padding: 11px;
  border: 1px solid #ffffff40;
  border-radius: 15px;
  background: #ffffff1a;
  color: #fff;
}

html[data-theme="light"] .about .mvcard h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
  color: inherit;
  font-size: 1.25rem;
}

html[data-theme="light"] .about .mvcard.m1 p {
  color: #f0efff;
}

html[data-theme="light"] .about .mvcard.m2 p {
  color: #faeefa;
}

html[data-theme="dark"] .about .mvcard.m2 {
  --accent: #d66ac2;
  border-top-color: #d66ac2;
  background:
    radial-gradient(ellipse at 100% 0%, #bd54a733, transparent 55%),
    linear-gradient(145deg, #291a3b, #351c3d 58%, #40203c);
}

footer .ftr-brand .ftr-logo {
  display: block;
  background: transparent !important;
  border: 0;
  border-radius: 0;
  padding: 0 !important;
}

[data-theme="dark"] footer .ftr-brand .ftr-logo {
  width: min(240px, 100%);
}

@media (hover: hover) {
  .about .mvcard:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 38px #1a1b3c20;
  }

  html[data-theme="light"] .about .mvcard:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 48px #23285c2a;
  }
}

.tile-img {
  perspective: 1000px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 80%, #dcdff4 0, transparent 52%),
    linear-gradient(145deg, #f8f8ff, #eceefb);
}

.tile-img img.shot {
  padding: 18px 16px 22px;
  object-fit: contain;
  transform: rotateY(-3deg) scale(0.94);
  transform-origin: center bottom;
  filter: drop-shadow(0 16px 13px #15153535);
  transition: transform 350ms cubic-bezier(0.2, 0.75, 0.3, 1), filter 350ms ease;
}

.species-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px !important;
  background: color-mix(in srgb, var(--card) 86%, #7150c8 14%) !important;
  border-color: color-mix(in srgb, var(--line) 75%, #7150c8 25%) !important;
  color: var(--text);
  font-weight: 600;
}

.species-chip .animal-emoji {
  display: inline-grid;
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #ffffffa6 !important;
  padding: 0 !important;
  background: linear-gradient(140deg, #4057d6, #8249bb 56%, #d34b91) !important;
  color: #fff;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 0.78rem;
  line-height: 1;
  flex: 0 0 auto;
  box-shadow: 0 2px 6px #35245a2e;
}

.species-chip-livestock {
  gap: 7px;
}

.species-chip-pet {
  gap: 6px;
}

.species-chip-pet .species-label {
  margin-inline-end: 2px;
}

.range button {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(12px, 0.4fr) minmax(0, 1fr);
  align-items: center;
}

.range button > span,
.range button > em {
  min-width: 0;
}

.range button > i {
  width: 100%;
}

.range button > em {
  text-align: end;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.range .species-filter {
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--tint);
}

.range .species-filter h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.range .species-filter-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.range .species-filter button {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 8px 4px;
  border: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.25;
}

.range .species-filter button:hover {
  border-color: var(--violet);
}

.range .species-filter button.on {
  border-color: var(--violet);
  background: var(--grad);
  color: #fff;
}

.species-filter-icons {
  font-size: 1rem;
  white-space: nowrap;
}

.pgrid > [hidden] {
  display: none !important;
}

.pgrid[data-species-empty]::before {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  content: attr(data-species-empty);
}

.legal-page-shell[hidden] {
  display: none;
}

.legal-page-shell {
  position: fixed;
  z-index: 10000;
  inset: 0;
  overflow: auto;
  background:
    radial-gradient(ellipse at 100% 0%, #8249bd12, transparent 48%),
    var(--bg, #f8f8fc);
  color: var(--text);
}

.legal-page-header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px max(22px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(16px);
}

.legal-page-brand {
  color: var(--text);
  font: 800 1.15rem/1 var(--display);
}

.legal-page-home {
  color: var(--violet);
  font-weight: 700;
  text-decoration: none;
}

.legal-page-home:hover,
.legal-page-links a:hover {
  text-decoration: underline;
}

.legal-page-main {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(36px, 7vw, 72px) 0 56px;
}

.legal-page-main > h1 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.legal-content {
  max-width: none;
  margin: 0;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 100% 0%, #8249bd12, transparent 48%),
    var(--card);
  box-shadow: 0 18px 48px #18183b0d;
}

.legal-content section + section {
  margin-top: 26px;
}

.legal-content h2 {
  margin-bottom: 8px;
  color: var(--violet);
  font-size: 1.12rem;
}

.legal-content p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.75;
}

.legal-content .legal-intro {
  margin-bottom: 22px;
  color: var(--text);
  font-size: 1.05rem;
}

.legal-cookie-settings {
  margin-top: 26px;
}

.legal-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 26px;
}

.legal-page-links a {
  color: var(--violet);
  font-weight: 650;
  text-decoration: none;
}

.species-label {
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  font-size: inherit !important;
}

.ftr-bottom p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.gegasoft-link {
  color: #7d62ff;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 200ms ease;
}

.gegasoft-link:hover,
.gegasoft-link:focus-visible {
  color: #9f7eff;
  text-decoration: underline;
}

.tile-coming-soon .tile-img {
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 42%, #ffffff2a 0 1px, transparent 2px 100%),
    radial-gradient(ellipse at 50% 52%, #ad77ff4d, transparent 47%),
    linear-gradient(145deg, #1d2561, #44308b 52%, #812e78);
}

.tile-coming-soon .tile-img::before,
.tile-coming-soon .tile-img::after {
  position: absolute;
  z-index: -1;
  width: 74%;
  aspect-ratio: 1;
  border: 1px solid #ffffff25;
  border-radius: 50%;
  content: "";
}

.tile-coming-soon .tile-img::after {
  width: 94%;
  border-color: #ffffff14;
}

.coming-soon-art {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 30px 18px;
  color: #fff;
  text-align: center;
}

.coming-soon-orbit {
  position: relative;
  display: flex;
  width: 140px;
  height: 140px;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  border: 1px solid #ffffff38;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff1b, transparent 70%);
  box-shadow: 0 0 55px #db80ff3d, inset 0 0 35px #ffffff12;
  animation: coming-soon-glow 3.2s ease-in-out infinite;
}

.coming-soon-orbit::before,
.coming-soon-orbit::after {
  position: absolute;
  border: 1px solid #ffffff25;
  border-radius: 50%;
  content: "";
}

.coming-soon-orbit::before {
  inset: -14px;
}

.coming-soon-orbit::after {
  inset: 20px;
}

.coming-soon-animal {
  position: absolute;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #ffffff38;
  border-radius: 14px;
  background: #ffffff1a;
  backdrop-filter: blur(8px);
}

.coming-soon-animal svg {
  width: 27px;
  height: 27px;
}

.coming-soon-animal.animal-hen {
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
}

.coming-soon-animal.animal-cow {
  top: 50%;
  right: -17px;
  transform: translateY(-50%);
}

.coming-soon-animal.animal-goat {
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
}

.coming-soon-animal.animal-horse {
  top: 50%;
  left: -17px;
  transform: translateY(-50%);
}

.coming-soon-title {
  font: 800 clamp(1.35rem, 3vw, 1.85rem)/1.1 var(--display);
  letter-spacing: 0.045em;
  text-shadow: 0 3px 18px #090b3380;
}

.coming-soon-subtitle {
  max-width: 24ch;
  color: #eee8ff;
  font-size: 0.88rem;
  line-height: 1.45;
}

@keyframes coming-soon-glow {
  50% {
    transform: scale(1.045);
    box-shadow: 0 0 70px #db80ff60, inset 0 0 38px #ffffff18;
  }
}

@media (prefers-reduced-motion: reduce) {
  .coming-soon-orbit {
    animation: none;
  }
}

@media (hover: hover) {
  .tile:hover .tile-img img.shot {
    transform: rotateY(0) translateY(-5px) scale(0.97);
    filter: drop-shadow(0 22px 18px #15153545);
  }
}

.composition {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--tint);
}

.composition h4 {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}

.composition-list {
  display: grid;
  gap: 4px;
  padding: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  list-style: none;
}

.composition-list li[hidden] {
  display: none;
}

.composition-toggle {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--violet);
  font: 700 0.82rem var(--body);
  cursor: pointer;
}

.composition-toggle:hover {
  text-decoration: underline;
}

.qual .pcard-img {
  isolation: isolate;
  background-image: none !important;
}

.qual .pcard-img::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(160deg, #0e103a40, #0e103a9c);
  content: "";
  pointer-events: none;
}

.quality-card-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.qual .pcard-num,
.qual .pcard-ico {
  position: relative;
  z-index: 2;
}

.product-lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  width: min(1100px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100vh - 28px);
  margin: auto;
  padding: 54px 18px 18px;
  overflow: visible;
  border: 1px solid #ffffff24;
  border-radius: 20px;
  background: #101126;
  box-shadow: 0 24px 80px #0009;
}

.product-lightbox:not([open]) {
  display: none;
}

.product-lightbox::backdrop {
  background: #080917d9;
  backdrop-filter: blur(5px);
}

.product-lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 110px);
  object-fit: contain;
}

.product-lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #ffffff40;
  border-radius: 50%;
  background: #ffffff14;
  color: #fff;
  font: 400 1.8rem/1 var(--body);
  cursor: pointer;
}

.product-lightbox-close:hover {
  background: #ffffff2b;
}

.product-enquiry-dialog,
.news-detail-dialog {
  position: fixed;
  inset: 0;
  width: min(680px, calc(100vw - 28px));
  max-width: none;
  max-height: min(90vh, 900px);
  margin: auto;
  padding: 28px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 24px 80px #0008;
}

.news-detail-dialog {
  width: min(900px, calc(100vw - 28px));
  padding: 24px;
}

.product-enquiry-dialog::backdrop,
.news-detail-dialog::backdrop {
  background: #080917d9;
  backdrop-filter: blur(5px);
}

.form-dialog-close {
  position: sticky;
  z-index: 2;
  top: 0;
  float: right;
  display: grid;
  width: 38px;
  height: 38px;
  margin: -12px -12px 0 12px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--tint);
  color: var(--text);
  font: 400 1.8rem/1 var(--body);
  cursor: pointer;
}

.web3-dialog-content {
  clear: both;
  max-width: 560px;
  margin: 0 auto;
}

.web3-dialog-eyebrow,
.news-detail-meta {
  color: var(--violet);
  font-size: 0.88rem;
  font-weight: 700;
}

.web3-dialog-content h2 {
  margin-bottom: 18px;
}

.web3-form {
  display: grid;
  gap: 14px;
}

.web3-field {
  display: grid;
  gap: 5px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.web3-field input,
.web3-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem var(--body);
}

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

.web3-field input:focus,
.web3-field textarea:focus {
  outline: 2px solid var(--violet);
  outline-offset: 1px;
}

.web3-submit {
  justify-self: start;
}

.web3-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.web3-form-status {
  min-height: 1.5em;
  color: #16794b;
  font-size: 0.92rem;
}

.web3-form-status.is-error {
  color: #bd2838;
}

.cform .web3-form-status {
  grid-column: 1 / -1;
}

.news-detail-image {
  display: block;
  width: 100%;
  max-height: 360px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--tint);
  object-fit: cover;
}

.news-detail-article h1 {
  margin: 6px 0 12px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.2;
}

.news-detail-intro {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 600;
}

.news-detail-body {
  display: grid;
  gap: 14px;
  max-width: 72ch;
}

.news-detail-body p {
  color: var(--text);
}

.news-detail-link {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--violet);
  font: 700 0.92rem var(--body);
  cursor: pointer;
}

.news-detail-link:hover {
  text-decoration: underline;
}

.tile-img img.shot {
  cursor: zoom-in;
}

@media (prefers-reduced-motion: reduce) {
  .about .mvcard,
  .tile-img img.shot {
    transition: none;
  }
}
