:root {
  --bg: #1f1f1f;
  --bg-soft: #262626;
  --text: #f7f8fb;
  --muted: #d6d9df;
  --muted-2: #aeb5c1;
  --box: #2b2b2b;
  --box-2: #242424;
  --border: rgba(255,255,255,.48);
  --line: rgba(255,255,255,.14);
  --green: #42d46d;
  --orange: #ff9b2f;
  --red: #ff6b6b;
  --shadow: 0 18px 60px rgba(0,0,0,.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,155,47,.08), transparent 22%),
    radial-gradient(circle at 70% 20%, rgba(66,212,109,.04), transparent 26%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", "Cairo", Arial, "Segoe UI", Tahoma, sans-serif;
}

.security-page {
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  padding: 40px 0 58px 32px;
}

.security-screen {
  display: none;
  max-width: 1060px;
}

.security-screen.is-active {
  display: block;
  animation: fadeIn .22s ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.host-name {
  display: block;
  color: var(--text);
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -2px;
  text-rendering: geometricPrecision;
}

.dna-mark {
  width: clamp(42px, 4vw, 58px);
  height: clamp(42px, 4vw, 58px);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: visible;
  filter: drop-shadow(0 0 18px rgba(255,155,47,.24));
}

.dna-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transform-origin: center;
  animation: gifFloat 2.8s ease-in-out infinite;
}

.dna-mark.denied {
  filter: drop-shadow(0 0 18px rgba(255,107,107,.18));
}

.dna-mark.denied img {
  opacity: .9;
  animation-duration: 3.2s;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -.7px;
}

.description {
  max-width: 990px;
  margin: 0 0 34px;
  color: var(--text);
  font-size: clamp(17px, 1.75vw, 22px);
  line-height: 1.58;
  font-weight: 400;
}

.verify-box {
  width: min(420px, 100%);
  min-height: 88px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)),
    var(--box);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  margin: 0 0 34px;
}

.spinner {
  width: 34px;
  height: 34px;
  border: 4px dotted var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 22px rgba(66,212,109,.16);
  flex: 0 0 auto;
}

.verify-text {
  font-size: 18px;
  font-weight: 750;
  white-space: nowrap;
}

.gateway-logo {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 106px;
  max-width: 138px;
  height: 34px;
}

.gateway-logo img {
  display: block;
  max-width: 100%;
  max-height: 30px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255,255,255,.08));
}

.arabic-note {
  margin: 0;
  color: var(--muted);
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.7;
  text-align: left;
  font-weight: 500;
}

.denied-text {
  color: var(--red);
  font-weight: 700;
}

.error-box {
  width: min(640px, 100%);
  margin: 0 0 30px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)),
    var(--box-2);
  box-shadow: var(--shadow);
}

.error-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}

.error-row:last-child {
  border-bottom: 0;
}

.error-row span {
  color: var(--muted-2);
}

.error-row strong {
  color: var(--text);
  font-weight: 750;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes gifFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-3px) scale(1.03);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 700px) {
  .security-page {
    width: calc(100% - 28px);
    padding: 28px 0 44px 18px;
  }

  .brand {
    gap: 14px;
    align-items: flex-start;
  }

  .host-name {
    font-size: 32px;
    letter-spacing: -1px;
    overflow-wrap: anywhere;
  }

  .dna-mark {
    margin-top: 1px;
  }

  .verify-box {
    width: min(420px, 100%);
    padding: 16px;
    gap: 12px;
  }

  .gateway-logo {
    min-width: 86px;
    max-width: 112px;
  }

  .gateway-logo img {
    max-height: 26px;
  }
}
