/* Timed new-user offer modal */
.timed-modal { position: fixed !important; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; z-index: 9999999 !important; pointer-events: none; }
.timed-modal--hidden { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.25s ease, visibility 0.25s ease; }
.timed-modal:not(.timed-modal--hidden) { opacity: 1; visibility: visible; pointer-events: auto; }
.timed-modal-backdrop { position: absolute; inset: 0; background: rgba(4, 12, 24, 0.86); backdrop-filter: blur(16px); z-index: 9999998 !important; }
.timed-modal-card { position: relative; width: min(520px, calc(100vw - 32px)); max-width: 520px; background: rgba(8, 12, 22, 0.98); border: 1px solid rgba(125, 211, 252, 0.18); border-radius: 24px; box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55); padding: 32px 32px 24px; color: #eef2ff; z-index: 9999999 !important; display: grid; gap: 20px; margin: auto; max-height: calc(100vh - 48px); overflow: auto; }
.timed-modal-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.08); border-radius: 50%; background: rgba(255,255,255,0.04); color: #f8fafc; font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: transform 0.2s ease, background 0.2s ease; }
.timed-modal-close:hover { transform: scale(1.04); background: rgba(255,255,255,0.08); }
.timed-modal-badge { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 999px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; background: rgba(125,211,252,0.12); color: #7dd3fc; font-weight: 700; }
.timed-modal-card { position: relative; width: min(520px, calc(100vw - 32px)); max-width: 520px; background: rgba(8, 12, 22, 0.98); border: 1px solid rgba(125, 211, 252, 0.18); border-radius: 24px; box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55); padding: 32px 32px 24px; color: #eef2ff; z-index: 9999999 !important; display: grid; gap: 20px; margin: auto; max-height: calc(100vh - 48px); overflow: auto; text-align: center; }
.timed-modal-copy h2 { margin: 0; font-family: 'Orbitron', sans-serif; font-size: clamp(22px, 2.3vw, 28px); letter-spacing: 0.08em; text-transform: uppercase; color: transparent; background: linear-gradient(135deg, #7dd3fc 0%, #a78bfa 45%, #67e8f9 100%); -webkit-background-clip: text; background-clip: text; text-shadow: 0 0 18px rgba(103, 232, 249, 0.35); }
.timed-modal-copy p { margin: 0; line-height: 1.8; color: rgba(226, 232, 240, 0.88); font-size: 15px; }
.timed-modal-form { display: grid; gap: 16px; }
.form-field-row { display: grid; gap: 8px; justify-items: center; }
.form-field-row label { font-size: 12px; color: #94a3b8; letter-spacing: 0.14em; text-transform: uppercase; }
.form-field-row input { width: 100%; min-height: 50px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 14px 16px; color: #eef2ff; font-size: 14px; font-family: 'Inter', sans-serif; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.form-field-row input { width: 100%; min-height: 50px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 14px 16px; color: #eef2ff; font-size: 14px; font-family: 'Inter', sans-serif; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.form-field-row input:focus { outline: none; border-color: #7dd3fc; box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.12); }
.timed-modal-submit { width: 100%; min-height: 54px; border: none; border-radius: 14px; background: linear-gradient(135deg, #a78bfa 0%, #7dd3fc 45%, #67e8f9 100%); color: #000; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.timed-modal-submit:hover { transform: translateY(-1px); box-shadow: 0 18px 35px rgba(103,232,249,0.24); }
.timed-modal-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.timed-modal-nope { background: transparent; border: 1px solid rgba(255,255,255,0.12); color: #d1d5db; border-radius: 999px; padding: 12px 18px; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.timed-modal-nope:hover { background: rgba(255,255,255,0.06); color: #fff; }
.timed-modal-signin { color: #7dd3fc; text-decoration: none; font-size: 13px; font-weight: 600; }
.timed-modal-note { font-size: 12px; color: #94a3b8; text-align: center; line-height: 1.6; }
body.modal-open { overflow: hidden !important; }

@media (max-width: 720px) {
  .timed-modal-card { width: min(100%, calc(100vw - 24px)); padding: 24px 18px 20px; border-radius: 20px; }
  .timed-modal-copy h2 { font-size: 22px; }
  .timed-modal-actions { flex-direction: column; align-items: stretch; }
  .timed-modal-signin { text-align: center; }
}

@media (max-width: 520px) {
  .timed-modal-card { border: 0.5px solid rgba(125, 211, 252, 0.12); }
  .form-field-row input { border: 0.75px solid rgba(255, 255, 255, 0.06); }
  .form-field-row input { padding: 12px 14px; }
  .timed-modal-submit { min-height: 48px; font-size: 0.92rem; }
  .timed-modal-nope { padding: 10px 14px; }
}

/* Fallback: when any ancestor creates a stacking context, ensure the modal still appears above */
.timed-modal, .timed-modal * {
  -webkit-transform: none !important;
  transform: none !important;
}
