/* links.syfarix.com */
@font-face { font-family: 'Cairo'; src: url('fonts/cairo-latin-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('fonts/cairo-latin-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('fonts/cairo-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('fonts/cairo-latin-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
:root {
  --navy: #000835; --navy2: #061a52; --blue: #0C66E1; --sky: #7fb3ff;
  --glass: rgba(255, 255, 255, .085); --glass2: rgba(255, 255, 255, .14); --line: rgba(255, 255, 255, .14);
  --text: #fff; --muted: rgba(255, 255, 255, .68); --green: #37d67a; --amber: #ffbf47;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--navy); -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

/* light behind everything: plain gradients, painted once (blurred moving shapes made phones lag) */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 15% 0%, rgba(12, 102, 225, .55) 0%, rgba(12, 102, 225, 0) 70%),
    radial-gradient(50% 35% at 100% 100%, rgba(43, 140, 255, .35) 0%, rgba(43, 140, 255, 0) 70%),
    radial-gradient(40% 30% at 80% 45%, rgba(122, 92, 255, .18) 0%, rgba(122, 92, 255, 0) 70%),
    radial-gradient(120% 80% at 50% 0%, #0b2a73 0%, var(--navy) 60%); }
.bg i { display: none; }
/* big screens only: one soft layer drifting slowly (GPU transform, no blur) */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .bg::after { content: ''; position: absolute; inset: -20%; background: radial-gradient(30% 30% at 30% 30%, rgba(12, 102, 225, .25), transparent 70%); animation: drift 24s ease-in-out infinite alternate; will-change: transform; }
  @keyframes drift { to { transform: translate3d(12%, 8%, 0); } }
}

.wrap { position: relative; z-index: 1; width: min(560px, 100% - 32px); margin: 0 auto; padding: 18px 0 40px; }
.top { display: flex; justify-content: space-between; align-items: center; }
.lang { display: inline-flex; background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { background: none; border: 0; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--muted); }
.lang button.on { background: #fff; color: var(--navy); }
.share { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); display: grid; place-items: center; transition: background .2s; }
.share:hover { background: var(--glass2); }
.share svg { width: 17px; height: 17px; }

.head { text-align: center; margin-top: 8px; animation: rise .6s var(--ease) both; }
.avatar { width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 50%; padding: 3px; background: conic-gradient(from 180deg, var(--sky), var(--blue), #7a5cff, var(--sky)); box-shadow: 0 16px 40px rgba(12, 102, 225, .45); }
.avatar { display: grid; }
.avatar > * { grid-area: 1 / 1; }
.avatar::before { content: ''; grid-area: 1 / 1; border-radius: 50%; background: #fff; }
.avatar img { width: 54%; height: 54%; margin: auto; object-fit: contain; position: relative; }
.avatar span { margin: auto; position: relative; font-size: 40px; font-weight: 800; color: var(--blue); }
h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.bio { margin: 6px auto 0; max-width: 420px; color: var(--muted); font-size: 15px; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; }
.status i { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.status.open i { background: var(--green); }
.status.open i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ping 2s ease-out infinite; will-change: transform, opacity; }
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(2.8); opacity: 0; } }
.status small { color: var(--muted); font-weight: 600; }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line); transition: transform .25s var(--ease), background .2s; }
@media (hover: hover) { .socials a:hover { transform: translateY(-3px); background: #fff; color: var(--navy); } }
.socials a:active { background: #fff; color: var(--navy); }

.notice { margin: 20px 0 0; padding: 12px 16px; border-radius: 16px; background: rgba(255, 191, 71, .14); border: 1px solid rgba(255, 191, 71, .45); color: #ffe2a6; font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; animation: rise .6s var(--ease) both; }

.links { display: grid; gap: 12px; margin-top: 24px; }
.lk { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; min-height: 66px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line);
  transition: transform .25s var(--ease), background .2s, border-color .2s; animation: rise .5s var(--ease) both; overflow: hidden; }
@media (hover: hover) { .lk:hover { transform: translateY(-2px); background: var(--glass2); border-color: rgba(255, 255, 255, .28); } .lk:hover .go { transform: translateX(3px); opacity: 1; } }
.lk:active { transform: scale(.98); }
.lk .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); flex: none; }
.lk .ic img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.lk .tx { flex: 1; min-width: 0; display: grid; }
.lk b { font-size: 16px; font-weight: 700; line-height: 1.25; }
.lk small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk .go { opacity: .55; transition: transform .25s var(--ease), opacity .2s; }
.lk.hl { background: #fff; color: var(--navy); border-color: #fff; box-shadow: 0 16px 40px rgba(12, 102, 225, .35); }
.lk.hl .ic { background: var(--blue); color: #fff; }
.lk.hl small { color: #4b5578; }
.lk.hl::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(12, 102, 225, .12) 50%, transparent 65%); background-size: 250% 100%; background-position: -100% 0; animation: shine 1.6s .6s var(--ease) 1; pointer-events: none; }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.sk { height: 66px; border-radius: 18px; background: linear-gradient(90deg, var(--glass) 25%, var(--glass2) 50%, var(--glass) 75%); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

.card { margin-top: 18px; padding: 16px 18px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); animation: rise .5s var(--ease) both; }
.card h2 { margin: 0 0 10px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.hrs { display: grid; gap: 2px; }
.hrs div { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 10px; font-size: 14px; color: var(--muted); }
.hrs div.today { background: rgba(255, 255, 255, .1); color: #fff; font-weight: 700; }
.hrs div .cl { color: rgba(255, 255, 255, .45); }
.hnote { margin: 8px 2px 0; font-size: 13px; color: var(--muted); }
.ct { display: grid; gap: 8px; }
.ct a, .ct span { display: flex; align-items: center; gap: 10px; font-size: 14.5px; padding: 8px 10px; border-radius: 12px; transition: background .2s; }
.ct a:hover { background: rgba(255, 255, 255, .08); }
.ct svg { color: var(--sky); }
.ct a > span, .ct span > span { display: grid; line-height: 1.35; }
.foot { text-align: center; margin-top: 28px; color: rgba(255, 255, 255, .45); font-size: 13px; }
.off { text-align: center; padding: 60px 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #fff; color: var(--navy); padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; z-index: 5; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: rise .3s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* policy pages (Settings → Policies) */
.policies { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 22px; font-size: 13px; color: var(--muted); }
.policies a:hover { color: var(--text); }
.policy { line-height: 1.7; }
.policy h1 { font-size: 26px; margin: 0 0 4px; }
.policy h2 { font-size: 17px; margin: 22px 0 6px; }
.policy p { margin: 0 0 12px; color: var(--muted); }
.policy .policy-date, .policy .policy-empty { color: var(--muted); font-size: 13px; }
.soc-img { width: 22px; height: 22px; object-fit: contain; border-radius: 5px; }
