:root {
  color-scheme: dark;
  --yellow: #ffdd1c;
  --ink: #0b0c0e;
  --panel: rgba(22, 23, 27, 0.76);
  --line: rgba(255, 255, 255, 0.11);
  --text: #fff;
  --muted: #a8abb2;
}

* { box-sizing: border-box; }

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

body {
  min-height: 100vh;
  margin: 0;
  font-family: Vazirmatn, IRANSansX, Tahoma, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(var(--accent-rgb, 255, 221, 28), 0.14), transparent 36rem),
    var(--ink);
}

a { color: inherit; }

.public-page { overflow-x: hidden; position: relative; }

.ambient { position: fixed; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.ambient-one { width: 360px; height: 360px; background: rgba(var(--accent-rgb, 255, 221, 28), 0.055); top: -190px; right: -120px; }
.ambient-two { width: 280px; height: 280px; border: 1px solid rgba(var(--accent-rgb, 255, 221, 28), 0.08); bottom: -170px; left: -100px; }

.link-hub { width: min(100% - 32px, 650px); margin: 0 auto; padding: 54px 0 28px; position: relative; z-index: 1; }

.brand-header { text-align: center; margin-bottom: 28px; }
.logo-shell { width: 158px; height: 112px; margin: 0 auto 20px; padding: 14px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.055); backdrop-filter: blur(18px); display: grid; place-items: center; box-shadow: 0 24px 70px rgba(0,0,0,.32); }
.logo-shell img { width: 100%; height: 100%; object-fit: contain; }
.eyebrow { margin: 0 0 9px; color: var(--yellow); font: 700 .72rem/1.5 Arial, sans-serif; letter-spacing: .21em; }
.brand-header h1 { margin: 0; font-size: clamp(1.62rem, 5vw, 2.15rem); line-height: 1.45; letter-spacing: -.045em; }
.intro { max-width: 500px; margin: 10px auto 0; color: var(--muted); font-size: .95rem; line-height: 1.9; }

.links-list { display: grid; gap: 12px; }
.link-group { display: grid; }
.link-group > summary { list-style: none; cursor: pointer; }
.link-group > summary::-webkit-details-marker { display: none; }
.quick-link { --mx: 50%; --my: 50%; min-height: 76px; padding: 12px 14px 12px 18px; display: grid; grid-template-columns: 52px minmax(0,1fr) 34px; align-items: center; gap: 14px; position: relative; overflow: hidden; color:var(--text); text-decoration: none; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 10px 32px rgba(0,0,0,.19); animation: rise .46s both; animation-delay: var(--delay); transition: transform .22s ease, border-color .22s ease, filter .22s ease; }
.quick-link::after { content: ''; position: absolute; width: 220px; height: 220px; left: calc(var(--mx) - 110px); top: calc(var(--my) - 110px); background: radial-gradient(circle, rgba(var(--accent-rgb,255,221,28),.11), transparent 63%); opacity: 0; transition: opacity .25s; pointer-events: none; }
.quick-link:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb, 255,221,28),.5); filter:brightness(1.12); }
.quick-link:hover::after { opacity: 1; }
.quick-link:focus-visible { outline: 3px solid rgba(var(--accent-rgb,255,221,28),.4); outline-offset: 3px; }
.quick-icon { width: 52px; height: 52px; display: grid; place-items: center; color: #111; background: var(--yellow); }
.quick-icon svg { width: 25px; height: 25px; }
.quick-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.quick-copy strong { font-size: 1rem; line-height: 1.45; }
.quick-copy small { color: var(--muted); font-size: .79rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-arrow { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--yellow); font-family: Arial, sans-serif; transition: transform .22s; }
.quick-link:hover .quick-arrow { transform: translate(-2px,-2px); }
.group-trigger { width: 100%; color: inherit; }
.group-chevron { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--yellow); font: 1.2rem/1 Arial, sans-serif; transition: transform .25s ease, background .25s ease; }
.link-group[open] .group-trigger { border-color: rgba(var(--accent-rgb, 255,221,28),.5); filter:brightness(1.12); }
.link-group[open] .group-chevron { transform: rotate(180deg); color: #111; background: var(--yellow); border-color: var(--yellow); }
.sub-links { margin: 8px 15px 2px 0; padding-right: 14px; display: grid; gap: 8px; border-right: 2px solid rgba(var(--accent-rgb, 255,221,28),.32); animation: reveal .24s ease both; }
.sub-link { min-height: 62px; padding: 9px 11px 9px 14px; display: grid; grid-template-columns: 42px minmax(0,1fr) 28px; align-items: center; gap: 11px; position: relative; overflow: hidden; color: var(--text); text-decoration: none; background: var(--panel); border: 1px solid rgba(255,255,255,.085); transition: transform .2s ease, border-color .2s ease, filter .2s ease; }
.sub-link:hover { transform: translateX(-3px); border-color: rgba(var(--accent-rgb, 255,221,28),.36); filter:brightness(1.12); }
.sub-link:focus-visible { outline: 3px solid rgba(var(--accent-rgb,255,221,28),.35); outline-offset: 2px; }
.sub-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--yellow); background: rgba(var(--accent-rgb,255,221,28),.08); border: 1px solid rgba(var(--accent-rgb,255,221,28),.18); }
.sub-icon svg { width: 21px; height: 21px; }
.sub-arrow { color: #6f727a; font-family: Arial, sans-serif; }
.sub-link:hover .sub-arrow { color: var(--yellow); }
.quick-link:nth-child(2) { animation-delay: 45ms; }
.quick-link:nth-child(3) { animation-delay: 90ms; }
.quick-link:nth-child(4) { animation-delay: 135ms; }
.quick-link:nth-child(5) { animation-delay: 180ms; }
.quick-link:nth-child(6) { animation-delay: 225ms; }
.quick-link:nth-child(7) { animation-delay: 270ms; }
.quick-link:nth-child(8) { animation-delay: 315ms; }

.empty-state { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 24px; text-align: center; border: 1px dashed rgba(255,255,255,.15); color: var(--muted); }
.empty-state svg { width: 38px; color: var(--yellow); }
.empty-state strong { color: var(--text); }
.empty-state span { font-size: .88rem; }

.public-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 28px; padding: 18px 4px 0; border-top: 1px solid rgba(255,255,255,.08); color: #777b84; font-size: .75rem; }
.public-footer a { text-decoration: none; direction: ltr; }
.public-footer a:hover { color: var(--yellow); }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes reveal { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 520px) {
  .link-hub { width: min(100% - 24px, 650px); padding-top: 34px; }
  .logo-shell { width: 144px; height: 102px; margin-bottom: 16px; }
  .intro { font-size: .88rem; }
  .quick-link { grid-template-columns: 48px minmax(0,1fr) 30px; min-height: 72px; gap: 11px; padding: 11px 12px; }
  .quick-icon { width: 48px; height: 48px; }
  .sub-links { margin-right: 10px; padding-right: 10px; }
  .sub-link { grid-template-columns: 40px minmax(0,1fr) 24px; }
  .public-footer { flex-direction: column; gap: 7px; }
}

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