/* Waliiidr — link hub: cyan / gold / industrial rust tone */
:root {
  --bg0: #050508;
  --bg1: #0a0d14;
  --panel: rgba(14, 18, 28, 0.72);
  --panel2: rgba(10, 14, 22, 0.92);
  --stroke: rgba(56, 189, 248, 0.18);
  --stroke2: rgba(250, 204, 21, 0.28);
  --cyan: #38bdf8;
  --cyan-dim: #0ea5e9;
  --gold: #facc15;
  --gold2: #eab308;
  --text: #e8eef8;
  --muted: rgba(232, 238, 248, 0.65);
  --rust: #b45309;
  --red: #ef4444;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --radius: 16px;
  --font-ar: "Cairo", system-ui, sans-serif;
  --font-en: "Rajdhani", "Orbitron", system-ui, sans-serif;
  --font-h: "Orbitron", "Rajdhani", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-ar);
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% 0%, rgba(56, 189, 248, 0.06), transparent 55%),
    radial-gradient(900px 600px at 90% 20%, rgba(234, 179, 8, 0.05), transparent 50%),
    linear-gradient(180deg, var(--bg0) 0%, #070a10 40%, var(--bg1) 100%);
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 100%);
  z-index: 0;
}

.bg-topo {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  z-index: 0;
  background: repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 8px,
      rgba(56, 189, 248, 0.09) 8px,
      rgba(56, 189, 248, 0.09) 9px
    ),
    repeating-linear-gradient(
      8deg,
      transparent,
      transparent 14px,
      rgba(14, 165, 233, 0.06) 14px,
      rgba(14, 165, 233, 0.06) 15px
    );
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}

/* إعلان واحد — خلفية ad.gif + ExitLag (شعار + اسم) */
.corner-ad {
  --ad-size: min(176px, 38vw);
  position: fixed;
  right: max(0.65rem, env(safe-area-inset-right));
  bottom: max(0.65rem, env(safe-area-inset-bottom));
  z-index: 50;
  isolation: isolate;
  width: var(--ad-size);
  height: var(--ad-size);
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  border: 1px solid rgba(239, 68, 68, 0.38);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.corner-ad:hover {
  transform: translateY(-3px);
  border-color: rgba(239, 68, 68, 0.65);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.62), 0 0 30px rgba(239, 68, 68, 0.16);
}

.corner-ad:focus-visible {
  outline: 2px solid #f87171;
  outline-offset: 3px;
}

.corner-ad-bg {
  position: absolute;
  inset: 0;
  background: #fff;
}

.corner-ad-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.corner-ad-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  padding: 0.35rem 0.4rem 0.45rem;
  gap: 0.2rem;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.35) 28%,
    rgba(0, 0, 0, 0.45) 62%,
    rgba(0, 0, 0, 0.88) 100%
  );
  pointer-events: none;
}

.corner-ad-tag {
  align-self: flex-end;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.corner-ad-promo {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.15rem 0.25rem 0;
  min-height: 0;
}

.corner-ad-offer {
  display: block;
  font-family: var(--font-ar);
  font-size: clamp(0.95rem, 5vw, 1.15rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
  letter-spacing: 0.02em;
}

.corner-ad-pct {
  color: var(--gold);
  text-shadow: 0 0 14px rgba(250, 204, 21, 0.45), 0 2px 14px rgba(0, 0, 0, 0.95);
}

.corner-ad-lines {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  margin-top: 0.28rem;
  max-width: 100%;
}

.corner-ad-lines span {
  display: block;
  font-family: var(--font-ar);
  font-size: clamp(0.52rem, 2.8vw, 0.62rem);
  font-weight: 700;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.corner-ad-brand {
  align-self: stretch;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.35rem 0.4rem;
  margin: 0 -0.4rem -0.45rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88));
}

.corner-ad-logo {
  flex: 0 0 auto;
  width: clamp(26px, 16%, 36px);
  height: clamp(26px, 16%, 36px);
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.65));
}

.corner-ad-name {
  font-family: var(--font-en);
  font-size: clamp(0.72rem, 3.8vw, 0.85rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #fff;
  text-transform: none;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}

.shell {
  position: relative;
  z-index: 2;
  width: min(440px, 100% - 2rem);
  margin-inline: auto;
  padding: 2.25rem 0 3rem;
}

.hero {
  text-align: center;
  margin-bottom: 1.75rem;
}

.brand-ring {
  position: relative;
  width: 148px;
  height: 148px;
  margin-inline: auto;
  margin-bottom: 1rem;
}

.brand-ring::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--cyan), var(--gold), var(--cyan-dim), var(--cyan));
  animation: spin 7s linear infinite;
  opacity: 0.85;
}

.brand-ring::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--bg0);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.2);
}

.avatar {
  position: relative;
  z-index: 1;
  display: block;
  width: 140px;
  height: 140px;
  margin: 4px auto 0;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.brand-mark {
  position: absolute;
  z-index: 3;
  left: -6px;
  bottom: -2px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid rgba(0, 0, 0, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  background: #000;
  object-fit: cover;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.eyebrow {
  font-family: var(--font-en);
  letter-spacing: 0.35em;
  font-size: 0.68rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.name {
  margin: 0 0 0.5rem;
  line-height: 1.1;
}

.name-en {
  display: block;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: clamp(1.85rem, 7vw, 2.35rem);
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 0 28px rgba(56, 189, 248, 0.25);
}

.name-ar {
  display: block;
  font-size: clamp(1.35rem, 5vw, 1.65rem);
  font-weight: 800;
  color: var(--gold);
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

.tagline {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.panel {
  background: linear-gradient(145deg, var(--panel), rgba(8, 12, 20, 0.65));
  border: 1px solid var(--stroke);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.1rem 1rem 1.15rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.video-panel {
  padding-bottom: 1rem;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}

.subtle-link {
  font-size: 0.78rem;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
}
.subtle-link:hover {
  text-decoration: underline;
}

.panel-note {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  direction: ltr;
}


.link-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 0.85rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  background: var(--panel2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.link-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(56, 189, 248, 0.12);
}

.link-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.link-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--cyan);
}

.ico-box {
  font-family: var(--font-h);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.link-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.link-label {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.link-sub {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.link-chev {
  flex: 0 0 auto;
  font-size: 1.35rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.22);
  font-weight: 300;
}

.link-discord .link-ico {
  color: #5865f2;
}
.link-twitch .link-ico {
  color: #a855f7;
}
.link-yt .link-ico {
  color: #ef4444;
}
.link-tiktok .link-ico {
  color: #f472b6;
}
.link-kick .link-ico {
  color: #4ade80;
}

.links-compact .link-sub {
  font-size: 0.74rem;
}

.link-gold:hover {
  border-color: rgba(250, 204, 21, 0.5);
  box-shadow: 0 10px 28px rgba(180, 83, 9, 0.2);
}
.link-exit .link-ico {
  color: #22c55e;
}
.link-dm .link-ico {
  color: #60a5fa;
}
.link-tip .link-ico {
  color: #fb7185;
}
.link-tip:hover {
  border-color: rgba(251, 113, 133, 0.45);
}

.video-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.foot {
  text-align: center;
  padding: 1.25rem 0 0;
}

.foot-line {
  margin: 0;
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(232, 238, 248, 0.35);
  text-transform: lowercase;
}

.foot-credit {
  margin: 0.65rem 0 0;
  font-family: var(--font-ar);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(232, 238, 248, 0.42);
  letter-spacing: 0.02em;
}

.foot-credit-name {
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(56, 189, 248, 0.72);
}

.foot-thanks {
  margin: 0.35rem 0 0;
  font-family: var(--font-ar);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(232, 238, 248, 0.38);
  letter-spacing: 0.02em;
}

@media (max-width: 520px) {
  .corner-ad {
    --ad-size: min(148px, 42vw);
    right: max(0.45rem, env(safe-area-inset-right));
    bottom: max(0.45rem, env(safe-area-inset-bottom));
  }
  .shell {
    padding-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-ring::before {
    animation: none;
  }
  .link-btn {
    transition: none;
  }
  .corner-ad {
    transition: none;
  }
  .corner-ad:hover {
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}
