/* بوابة الدخول + صفحة قريباً */
.gate-brand-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gate-crest {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.gate-crest--card {
  margin-bottom: 1rem;
}

.gate-crest__ring {
  position: absolute;
  inset: -8px;
  border-radius: 24px;
  background: conic-gradient(from 120deg, transparent, rgba(196, 165, 116, 0.38), transparent 50%);
  animation: gate-crest-spin 12s linear infinite;
  opacity: 0.72;
  pointer-events: none;
}

@keyframes gate-crest-spin {
  to {
    transform: rotate(360deg);
  }
}

.gate-crest__img {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(72vw, 240px);
  height: min(72vw, 240px);
  max-height: min(240px, 42vh);
  max-width: min(240px, 72vw);
  padding: clamp(12px, 3.5vw, 22px);
  object-fit: contain;
  object-position: center;
  border-radius: 22px;
  background: linear-gradient(168deg, rgba(26, 51, 40, 0.96), rgba(6, 14, 11, 0.99));
  border: 1px solid rgba(196, 165, 116, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 12px 40px rgba(0, 0, 0, 0.45);
  backface-visibility: hidden;
  transform: translateZ(0);
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.35));
  animation: gate-crest-in 1s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.gate-crest--card .gate-crest__img {
  width: min(64vw, 200px);
  height: min(64vw, 200px);
  max-width: min(200px, 64vw);
  max-height: min(200px, 38vh);
}

@keyframes gate-crest-in {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.gate-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.gate-title-ar {
  font-family: "Cormorant Garamond", var(--font-display), serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.gate-hero {
  text-align: center;
  max-width: 36rem;
  position: relative;
  z-index: 1;
}

.gate-hero--soon .gate-title-ar {
  font-size: clamp(2.75rem, 11vw, 4.25rem);
  color: var(--text);
  margin: 0.35rem 0 1rem;
  text-shadow: 0 0 60px rgba(196, 165, 116, 0.2);
}

.gate-lead {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.gate-card {
  width: min(420px, 100%);
  position: relative;
  z-index: 1;
  background: rgba(8, 22, 18, 0.94);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 24px;
  padding: 2rem 1.75rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(46, 230, 200, 0.06);
}

.gate-card__title {
  font-family: "Cormorant Garamond", var(--font-display), serif;
  font-size: 1.45rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.gate-card__hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gate-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.gate-input {
  font-family: ui-monospace, monospace;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(3, 8, 6, 0.9);
  color: var(--text);
  width: 100%;
}

.gate-input:focus {
  outline: none;
  border-color: var(--emerald-bright);
  box-shadow: 0 0 0 3px rgba(13, 122, 79, 0.25);
}

.gate-status {
  min-height: 1.25rem;
  font-size: 0.8rem;
  color: #e88a6f;
  margin: 0.25rem 0 0;
}

.gate-status--ok {
  color: var(--emerald-bright);
}

.gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--border);
  background: rgba(12, 28, 22, 0.8);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.gate-btn:hover {
  background: rgba(13, 122, 79, 0.35);
  border-color: var(--emerald-bright);
}

.gate-btn--primary {
  background: linear-gradient(135deg, rgba(13, 122, 79, 0.55), rgba(8, 18, 14, 0.95));
  border-color: var(--emerald-bright);
}

.gate-btn--block {
  width: 100%;
  margin-top: 0.5rem;
}

.gate-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.gate-foot {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.gate-foot a {
  color: var(--gold);
  text-decoration: none;
}

.gate-foot a:hover {
  text-decoration: underline;
}
