/* Telegram proxy page. A standalone page: it does not load the site stylesheet, header or
   footer, so everything it needs is here. Dark throughout, in the store's own navy, orange
   and gold, with Tajawal. No white surfaces anywhere. */
@font-face { font-family: Tajawal; src: url("/assets/Tajawal-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Tajawal; src: url("/assets/Tajawal-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Tajawal; src: url("/assets/Tajawal-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Tajawal; src: url("/assets/Tajawal-ExtraBold.ttf") format("truetype"); font-weight: 800 900; font-display: swap; }

:root {
  color-scheme: dark;
  --navy: #172535;
  --bg: #0b141e;
  --bg-2: #101c29;
  --panel: #15243480;
  --panel-solid: #142232;
  --panel-hi: #1b2e44;
  --edge: rgba(244, 180, 85, .20);
  --edge-hi: rgba(244, 180, 85, .58);
  --text: #f6ead6;
  --text-soft: #c9d4dd;
  --muted: #93a4b3;
  --accent: #ad4a00;
  --accent-hi: #d2640a;
  --gold: #ef9b17;
  --gold-soft: #f4b455;
  --ok: #7fe0a6;
  --radius: 22px;
  --icon-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M7 10V8a5 5 0 0 1 10 0v2h1a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h1Zm2 0h6V8a3 3 0 0 0-6 0v2Zm3 3.4a1.6 1.6 0 0 0-1 2.85V18h2v-1.75a1.6 1.6 0 0 0-1-2.85Z'/%3E%3C/svg%3E");
  --icon-plane: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m3.5 11.2 16.2-6.3c.8-.3 1.5.2 1.2 1.5l-2.8 13c-.2.9-.8 1.1-1.6.7l-4.3-3.2-2.1 2c-.2.2-.4.4-.9.4l.3-4.4 8.1-7.3c.4-.3-.1-.5-.5-.2L7 13.7l-4.3-1.4c-.9-.3-.9-.9.8-1.1Z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body.tgp { margin: 0; color: var(--text-soft); background:
    radial-gradient(1100px 620px at 100% -8%, rgba(239, 155, 23, .16), transparent 62%),
    radial-gradient(900px 620px at -10% 34%, rgba(173, 74, 0, .22), transparent 60%),
    radial-gradient(1000px 700px at 110% 78%, rgba(32, 51, 74, .9), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 46%, var(--bg) 100%);
  font-family: Tajawal, "Segoe UI", Tahoma, Arial, sans-serif; line-height: 1.75; min-height: 100vh; }
.tgp a { color: inherit; }
.tgp h1, .tgp h2, .tgp h3, .tgp p { margin: 0; }
.tgp h1, .tgp h2, .tgp strong { color: var(--text); }
.tgp svg { display: block; }
.tgp-wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.tgp-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; color: #101b28; background: var(--gold-soft); font-weight: 800; }
.tgp-skip:focus { top: 12px; }
.tgp :focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 10px; }
.tgp-ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Top bar */
.tgp-top { position: sticky; top: 0; z-index: 20; background: rgba(9, 16, 24, .82); border-bottom: 1px solid var(--edge); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.tgp-top .tgp-wrap { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tgp-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.tgp-brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 0 0 1px var(--edge); }
.tgp-brand strong { display: block; font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.tgp-brand small { display: block; color: var(--gold-soft); font-size: .68rem; font-weight: 700; letter-spacing: .12em; }
.tgp-top-link { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border: 1px solid var(--edge); border-radius: 12px; color: var(--gold-soft); background: rgba(239, 155, 23, .06); font-size: .9rem; font-weight: 800; text-decoration: none; white-space: nowrap; transition: background .25s, border-color .25s, transform .25s; }
.tgp-top-link:hover { background: rgba(239, 155, 23, .16); border-color: var(--edge-hi); transform: translateY(-1px); }
.tgp-top-link svg { width: 18px; height: 18px; }

/* Hero */
.tgp-hero { position: relative; overflow: hidden; padding: 62px 0 54px; }
.tgp-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image: linear-gradient(rgba(244, 180, 85, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 180, 85, .05) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(ellipse at 50% 0%, #000 12%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 12%, transparent 72%); }
.tgp-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 52px; }
.tgp-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border: 1px solid var(--edge-hi); border-radius: 999px; color: var(--gold-soft); background: rgba(239, 155, 23, .10); font-size: .86rem; font-weight: 800; }
.tgp-eyebrow svg { width: 17px; height: 17px; }
.tgp-hero h1 { margin: 18px 0 14px; font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 900; line-height: 1.22; }
.tgp-hero h1 span { background: linear-gradient(100deg, #ffd08a, var(--gold) 55%, #d2640a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tgp-hero-lead { max-width: 520px; font-size: 1.12rem; line-height: 1.95; }
.tgp-trust { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 520px; }
.tgp-trust li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--edge); border-radius: 16px; color: var(--text); background: var(--panel); font-size: .95rem; font-weight: 700; transition: border-color .25s, transform .25s, background .25s; }
.tgp-trust li:hover { border-color: var(--edge-hi); background: rgba(239, 155, 23, .08); transform: translateY(-2px); }
.tgp-trust svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 11px; color: var(--gold-soft); background: rgba(239, 155, 23, .12); }

/* Activation card (the script drives data-state) */
.tgproxy-card { position: relative; padding: 58px 28px 28px; border: 1px solid var(--edge-hi); border-radius: 28px; text-align: center;
  background: linear-gradient(160deg, rgba(32, 51, 74, .92), rgba(16, 28, 41, .96));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(239, 155, 23, .08), inset 0 1px 0 rgba(255, 220, 160, .10); }
.tgproxy-card::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: conic-gradient(from 210deg, transparent 0 62%, rgba(239, 155, 23, .55) 76%, transparent 90%); filter: blur(22px); opacity: .55; }
.tgp-emblem { position: absolute; top: -38px; left: 50%; width: 76px; height: 76px; margin-left: -38px; display: grid; place-items: center; border: 1px solid var(--edge-hi); border-radius: 24px; color: #1a0f02; background: linear-gradient(140deg, #ffd08a, var(--gold) 55%, #c85a06); box-shadow: 0 14px 34px rgba(239, 155, 23, .38); }
.tgp-emblem svg { width: 40px; height: 40px; stroke-width: 2; }
.tgp-emblem::before, .tgp-emblem::after { content: ""; position: absolute; inset: -1px; border: 1px solid rgba(244, 180, 85, .55); border-radius: inherit; animation: tgp-ring 3.2s ease-out infinite; }
.tgp-emblem::after { animation-delay: 1.6s; }
@keyframes tgp-ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.75); opacity: 0; } }
.tgproxy-card h2 { margin: 12px 0 8px; font-size: 1.65rem; font-weight: 800; }
.tgproxy-status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 15px; border: 1px solid var(--edge-hi); border-radius: 999px; color: var(--gold-soft); background: rgba(239, 155, 23, .12); font-size: .86rem; font-weight: 800; }
.tgproxy-status::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--icon-lock) center / contain no-repeat; mask: var(--icon-lock) center / contain no-repeat; }
.tgproxy-status[data-state="live"] { border-color: rgba(127, 224, 166, .5); color: var(--ok); background: rgba(46, 204, 113, .12); }
.tgproxy-status[data-state="live"]::before { width: 9px; height: 9px; border-radius: 50%; -webkit-mask: none; mask: none; box-shadow: 0 0 0 4px rgba(127, 224, 166, .22); animation: tgp-live 1.8s ease-in-out infinite; }
@keyframes tgp-live { 50% { box-shadow: 0 0 0 8px rgba(127, 224, 166, 0); } }
.tgproxy-note { margin: 16px 0 0 !important; padding: 12px 14px; border: 1px dashed rgba(244, 180, 85, .42); border-radius: 14px; color: var(--text-soft); background: rgba(239, 155, 23, .07); font-size: .9rem; line-height: 1.85; }
.tgproxy-card:not([data-state="live"]):not([data-state="signed-out"]) .tgproxy-note { display: none; }

.tgp-button { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 62px; margin-top: 20px; padding: 12px 22px; border: 1px solid rgba(255, 208, 138, .55); border-radius: 16px; color: #fff3df !important; background: linear-gradient(135deg, var(--accent-hi), var(--accent) 60%, #8a3900); font-size: 1.12rem; font-weight: 800; text-decoration: none; box-shadow: 0 14px 34px rgba(173, 74, 0, .45), inset 0 1px 0 rgba(255, 220, 160, .35); transition: transform .25s, box-shadow .25s, filter .25s; }
.tgp-button::before { content: ""; flex: none; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--icon-lock) center / contain no-repeat; mask: var(--icon-lock) center / contain no-repeat; }
.tgproxy-card[data-state="live"] .tgp-button::before { -webkit-mask-image: var(--icon-plane); mask-image: var(--icon-plane); }
.tgp-button::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 230, 190, .38), transparent); transform: skewX(-18deg); animation: tgp-shine 3.6s ease-in-out infinite; }
@keyframes tgp-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.tgp-button:hover { transform: translateY(-3px); filter: brightness(1.08); box-shadow: 0 20px 44px rgba(210, 100, 10, .55), inset 0 1px 0 rgba(255, 220, 160, .45); }
.tgp-button:active { transform: translateY(0); }
.tgp-button[aria-disabled="true"] { pointer-events: none; filter: grayscale(.55) brightness(.72); box-shadow: none; }
.tgp-button[aria-disabled="true"]::after { display: none; }
.tgproxy-hint { margin-top: 14px !important; color: var(--muted); font-size: .9rem; }
.tgproxy-hint:empty { display: none; }

/* Sections */
.tgp-section { padding: 46px 0; }
.tgp-heading { margin-bottom: 28px; text-align: center; }
.tgp-heading span { display: inline-block; margin-bottom: 8px; color: var(--gold-soft); font-size: .86rem; font-weight: 800; letter-spacing: .04em; }
.tgp-heading h2 { font-size: clamp(1.55rem, 3.2vw, 2.1rem); font-weight: 900; }
.tgp-card { position: relative; border: 1px solid var(--edge); border-radius: var(--radius); background: linear-gradient(160deg, rgba(27, 46, 68, .78), rgba(16, 28, 41, .82)); box-shadow: 0 16px 40px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 220, 160, .06); transition: transform .3s, border-color .3s, box-shadow .3s; }
.tgp-card:hover { transform: translateY(-5px); border-color: var(--edge-hi); box-shadow: 0 24px 54px rgba(0, 0, 0, .42), 0 0 0 1px rgba(239, 155, 23, .14), 0 0 44px rgba(239, 155, 23, .10); }

.tgproxy-steps { margin: 0; padding: 0; list-style: none; counter-reset: tgstep; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tgproxy-steps li { padding: 24px 22px; counter-increment: tgstep; }
.tgp-step-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tgp-step-head svg { width: 48px; height: 48px; padding: 11px; border: 1px solid var(--edge); border-radius: 15px; color: var(--gold-soft); background: rgba(239, 155, 23, .10); transition: transform .3s, background .3s; }
.tgp-card:hover .tgp-step-head svg, .tgp-card:hover .tgp-feature-ico { transform: scale(1.08) rotate(-4deg); background: rgba(239, 155, 23, .2); }
.tgp-step-head::after { content: "0" counter(tgstep); color: rgba(244, 180, 85, .28); font-size: 2.3rem; font-weight: 900; line-height: 1; }
.tgproxy-steps strong { display: block; margin-bottom: 4px; font-size: 1.12rem; }
.tgproxy-steps span { color: var(--text-soft); font-size: .96rem; }

.tgp-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tgp-feature { padding: 26px 22px; }
.tgp-feature-ico { width: 58px; height: 58px; margin-bottom: 16px; padding: 13px; border: 1px solid var(--edge-hi); border-radius: 18px; color: #1a0f02; background: linear-gradient(140deg, #ffd08a, var(--gold) 55%, #c85a06); box-shadow: 0 10px 26px rgba(239, 155, 23, .26); transition: transform .3s; stroke-width: 2; }
.tgp-card:hover .tgp-feature-ico { background: linear-gradient(140deg, #ffd08a, var(--gold) 55%, #c85a06); }
.tgp-feature strong { display: block; margin-bottom: 6px; font-size: 1.12rem; }
.tgp-feature span { font-size: .96rem; }

.tgp-panel { padding: clamp(22px, 4vw, 36px); border-radius: 26px; }
.tgp-panel:hover { transform: none; }
.tgp-panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.tgp-panel-head svg { flex: none; width: 46px; height: 46px; padding: 10px; border: 1px solid var(--edge); border-radius: 14px; color: var(--gold-soft); background: rgba(239, 155, 23, .10); }
.tgp-panel h2 { font-size: 1.4rem; font-weight: 800; }
.tgp-path { display: inline-block; margin: 6px 0; padding: 4px 12px; border: 1px solid var(--edge); border-radius: 10px; color: var(--gold-soft); background: rgba(239, 155, 23, .09); font-weight: 700; }
.tgproxy-manual { margin: 18px 0 0; display: grid; gap: 10px; }
.tgproxy-manual div { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--edge); border-radius: 14px; background: rgba(9, 16, 24, .55); transition: border-color .25s; }
.tgproxy-manual div:hover { border-color: var(--edge-hi); }
.tgproxy-manual dt { color: var(--text); font-weight: 800; }
.tgproxy-manual dd { margin: 0; overflow-wrap: anywhere; color: var(--gold-soft); font-family: ui-monospace, Consolas, monospace; font-size: .9rem; text-align: left; }
.tgproxy-copy { min-height: 38px; padding: 6px 16px; border: 1px solid var(--edge-hi); border-radius: 10px; color: var(--gold-soft); background: rgba(239, 155, 23, .08); font: inherit; font-size: .86rem; font-weight: 800; cursor: pointer; transition: background .2s, transform .2s; }
.tgproxy-copy:hover:not([disabled]) { background: rgba(239, 155, 23, .22); transform: translateY(-1px); }
.tgproxy-copy[disabled] { opacity: .45; cursor: default; }

.tgp-faq { display: grid; gap: 12px; }
.tgp-faq details { border-radius: 18px; }
.tgp-faq details:hover { transform: none; }
.tgp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; color: var(--text); font-size: 1.04rem; font-weight: 800; cursor: pointer; list-style: none; }
.tgp-faq summary::-webkit-details-marker { display: none; }
.tgp-faq summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid var(--edge-hi); border-radius: 11px; color: var(--gold-soft); background: rgba(239, 155, 23, .12); font-size: 1.3rem; font-weight: 800; line-height: 1; transition: transform .3s, background .3s; }
.tgp-faq details[open] summary::after { content: "\2212"; transform: rotate(180deg); background: rgba(239, 155, 23, .26); }
.tgp-faq details[open] { border-color: var(--edge-hi); }
.tgp-faq details p { padding: 0 20px 20px; line-height: 1.95; }
.tgp-faq a { color: var(--gold-soft); font-weight: 700; }

/* Footer */
.tgp-foot { margin-top: 30px; padding: 34px 0 30px; color: var(--muted); background: rgba(7, 12, 19, .78); border-top: 1px solid var(--edge); font-size: .88rem; }
.tgp-foot .tgp-wrap { display: grid; gap: 18px; }
.tgp-foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.tgp-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.tgp-foot nav a { color: var(--text-soft); font-weight: 700; text-decoration: none; transition: color .2s; }
.tgp-foot nav a:hover { color: var(--gold-soft); }
.tgp-legal { padding-top: 18px; border-top: 1px solid rgba(244, 180, 85, .14); line-height: 1.9; }
.tgp-legal span { display: block; }

/* Entrance */
@keyframes tgp-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.tgp-hero-grid > * { animation: tgp-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.tgp-hero-grid > *:nth-child(2) { animation-delay: .12s; }

@media (max-width: 880px) {
  .tgp-hero { padding: 26px 0 30px; }
  .tgp-hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .tgp-hero h1 { margin: 14px 0 10px; }
  .tgp-hero-lead { font-size: 1.02rem; line-height: 1.8; }
  /* On a phone the activation card comes before anything optional. */
  .tgp-trust { display: none; }
  .tgproxy-steps, .tgp-features { grid-template-columns: 1fr; gap: 12px; }
  .tgp-section { padding: 34px 0; }
}
@media (max-width: 560px) {
  .tgp-top .tgp-wrap { min-height: 60px; }
  .tgp-brand img { width: 38px; height: 38px; }
  .tgp-brand small { display: none; }
  .tgp-top-link { padding: 6px 12px; font-size: .84rem; }
  /* Keep the activation button on the first screen of a phone. */
  .tgp-hero { padding-top: 18px; }
  .tgp-eyebrow { display: none; }
  .tgp-hero h1 { margin-top: 0; font-size: 2.05rem; }
  .tgp-hero-grid { gap: 50px; }
  .tgproxy-card { padding: 50px 18px 22px; border-radius: 24px; }
  .tgproxy-card h2 { margin: 10px 0 6px; font-size: 1.5rem; }
  .tgp-button { margin-top: 16px; }
  .tgproxy-manual div { grid-template-columns: 1fr auto; }
  .tgproxy-manual dt { grid-column: 1 / -1; }
  .tgp-foot-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tgp *, .tgp *::before, .tgp *::after { animation: none !important; transition: none !important; }
  .tgp-card:hover, .tgp-button:hover, .tgp-trust li:hover { transform: none; }
}
