/* ===== بوابة دخول ألعاب ساو — لوحة دخول موحّدة بثيم الألعاب (بنفسجي §19) ===== */
.ga-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(4, 2, 12, .82); backdrop-filter: blur(12px);
  font-family: 'Cairo', system-ui, sans-serif;
}
.ga-modal[hidden] { display: none; }
.ga-card {
  width: min(420px, 100%); padding: 30px 28px; border-radius: 26px; text-align: center;
  background: linear-gradient(180deg, #120d26, #0b0719); border: 1px solid rgba(185, 165, 255, .2);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 50px rgba(var(--accent-rgb), .12);
  animation: gaIn .3s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes gaIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }

.ga-logo { width: 54px; height: 54px; margin: 0 auto 4px; display: block; }
.ga-gem { font-size: 50px; display: block; }
.ga-title { margin: 10px 0 0; font-family: 'Baloo Bhaijaan 2', 'Cairo', sans-serif; font-weight: 800; font-size: 23px; color: #fff; }
.ga-sub { margin: 8px 0 0; color: var(--muted, #a9a3c4); font-weight: 700; font-size: 13px; line-height: 1.8; }

.ga-form { display: flex; flex-direction: column; gap: 11px; margin-top: 20px; text-align: right; }
.ga-field { position: relative; }
.ga-field[hidden] { display: none; }
.ga-field input {
  width: 100%; box-sizing: border-box; padding: 13px 44px 13px 14px; border-radius: 13px;
  border: 1px solid rgba(255,255,255,.12); background: #0d0a1f; color: var(--text, #f8f7fd);
  font-family: 'Cairo', system-ui, sans-serif; font-weight: 700; font-size: 14.5px;
}
.ga-field input:focus { outline: none; border-color: rgba(var(--accent-rgb), .55); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .14); }
.ga-field input::placeholder { color: #7d769a; }
.ga-field .ga-ficon { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); width: 20px; height: 20px; color: #8b83ad; pointer-events: none; }
.ga-field .ga-eye { position: absolute; top: 50%; left: 10px; transform: translateY(-50%); border: 0; background: none; color: #8b83ad; cursor: pointer; padding: 4px; }
.ga-field .ga-eye:hover { color: var(--accent-soft, #c7b7ff); }

.ga-btn {
  margin-top: 4px; padding: 13px; border: 0; border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-soft, #c7b7ff) 0%, var(--accent, #8b6cff) 48%, #6a4de6 100%);
  color: #0c0722; font-family: 'Baloo Bhaijaan 2', 'Cairo', sans-serif; font-weight: 800; font-size: 17px; cursor: pointer;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.55), inset 0 -4px 0 rgba(38, 20, 105,.28), 0 12px 28px rgba(0,0,0,.4), 0 0 26px rgba(var(--accent-rgb),.3);
  transition: transform .2s cubic-bezier(.2,.9,.3,1.25), box-shadow .2s ease, opacity .2s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.ga-btn:hover:not(:disabled) { transform: translateY(-2px); }
.ga-btn:disabled { opacity: .6; cursor: default; }
.ga-btn.is-loading .ga-btn-label { opacity: .4; }
.ga-spinner { width: 18px; height: 18px; border: 2.5px solid rgba(12,7,34,.35); border-top-color: #0c0722; border-radius: 50%; display: none; animation: gaSpin .7s linear infinite; }
.ga-btn.is-loading .ga-spinner { display: inline-block; }
@keyframes gaSpin { to { transform: rotate(360deg); } }

.ga-links { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.ga-link { color: var(--accent-soft, #c7b7ff); font-weight: 800; font-size: 13px; text-decoration: none; cursor: pointer; background: none; border: 0; font-family: inherit; }
.ga-link:hover { color: #fff; text-decoration: underline; }
.ga-link--muted { color: var(--muted, #a9a3c4); font-weight: 700; }

.ga-btn-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.ga-btn2 {
  padding: 11px 22px; border: 0; border-radius: 999px; text-decoration: none; cursor: pointer;
  background: linear-gradient(180deg, var(--accent-soft, #c7b7ff) 0%, var(--accent, #8b6cff) 48%, #6a4de6 100%);
  color: #0c0722; font-family: 'Baloo Bhaijaan 2', 'Cairo', sans-serif; font-weight: 800; font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 10px 22px rgba(0,0,0,.35);
  transition: transform .2s ease;
}
.ga-btn2:hover { transform: translateY(-2px); }
.ga-btn2--ghost { background: none; border: 1px solid rgba(185, 165, 255, .35); color: #c5bce6; box-shadow: none; }
.ga-btn2--ghost:hover { color: #fff; border-color: rgba(185,165,255,.6); }

.ga-toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  z-index: 210; padding: 12px 22px; border-radius: 999px;
  background: linear-gradient(180deg, #1c1341, #120c2c); border: 1px solid rgba(185, 165, 255, .35);
  color: #fff; font-weight: 800; font-size: 14px; font-family: 'Cairo', system-ui, sans-serif;
  box-shadow: 0 14px 34px rgba(0,0,0,.5); opacity: 0; transition: opacity .25s ease, transform .25s ease; pointer-events: none;
}
.ga-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ga-toast[hidden] { display: none; }
.ga-toast.is-bad { border-color: rgba(255, 82, 82, .5); color: #ffd7d7; }
