@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700;800&display=swap');

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

.links-page {
  font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  min-height: 100dvh;
  margin: 0;
  padding: max(24px, env(safe-area-inset-top)) 18px max(32px, env(safe-area-inset-bottom));
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(18px, env(safe-area-inset-right));
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(232, 184, 106, .18) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(42, 157, 143, .14) 0%, transparent 50%),
    linear-gradient(165deg, #071820 0%, #0a2430 38%, #0f3544 100%);
  color: #eef6f9;
  -webkit-font-smoothing: antialiased;
}

.links-wrap {
  width: min(100%, 400px);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: linksFade 0.55s ease both;
}

@keyframes linksFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.links-logo-wrap {
  padding: 14px 22px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .28);
  border: 1px solid rgba(232, 184, 106, .35);
}

.links-logo {
  width: min(72vw, 220px);
  height: auto;
  display: block;
}

.links-brand {
  margin: 0 0 8px;
  padding: 0 8px;
  font-size: clamp(20px, 5.2vw, 25px);
  font-weight: 800;
  text-align: center;
  line-height: 1.5;
  color: #fffef8;
}

.links-tagline {
  margin: 0 0 26px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  color: rgba(210, 230, 238, .85);
  line-height: 1.75;
}

.links-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 26px;
}

.links-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: #0a2430;
  background: linear-gradient(135deg, #f0d08a 0%, #e8b86a 48%, #d4a04a 100%);
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.links-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}

.links-btn:active {
  transform: scale(0.98);
}

.links-btn--ghost {
  color: #f4fafc;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
}

.links-btn--ghost:hover {
  background: rgba(255, 255, 255, .13);
}

.links-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  opacity: 0.95;
}

.links-btn__icon svg {
  width: 20px;
  height: 20px;
}

.links-btn--ghost .links-btn__icon svg {
  fill: currentColor;
}

.links-btn:not(.links-btn--ghost) .links-btn__icon svg {
  fill: #0a2430;
}

.links-section-label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(232, 184, 106, .9);
  text-align: center;
}

.links-social {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin-bottom: 10px;
}

.links-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 10px 8px;
  border-radius: 14px;
  text-decoration: none;
  color: #f4fafc;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.links-social__link:hover {
  background: rgba(255, 255, 255, .14);
  transform: translateY(-1px);
}

.links-social__link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.links-social__link--wide {
  grid-column: 1 / -1;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 999px;
  font-size: 12px;
  word-break: break-all;
}

.links-footer {
  margin-top: 22px;
  font-size: 12px;
  color: rgba(180, 200, 210, .7);
  text-align: center;
  line-height: 1.6;
}

.links-footer a {
  color: rgba(232, 184, 106, .8);
  text-decoration: none;
}

@media (max-width: 340px) {
  .links-social__link {
    font-size: 11px;
    padding-inline: 6px;
  }

  .links-btn {
    font-size: 14px;
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .links-wrap {
    animation: none;
  }

  .links-btn,
  .links-social__link {
    transition: none;
  }
}
