/* EduFreek / Next Toppers - Key Gate & Security System Styles */
:root {
  --bg-primary: #0a0e17;
  --bg-card: rgba(18, 26, 43, 0.9);
  --bg-card-hover: rgba(28, 38, 62, 0.95);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(59, 130, 246, 0.4);
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-amber: #f59e0b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --gradient-btn: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-vip: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gradient-card: linear-gradient(145deg, rgba(26, 36, 56, 0.9) 0%, rgba(13, 20, 36, 0.95) 100%);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background-color: var(--bg-primary); color: var(--text-main); min-height: 100vh; overflow-x: hidden; }
.ambient-glow { position: fixed; top: -150px; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, rgba(139, 92, 246, 0.08) 45%, transparent 70%); pointer-events: none; z-index: 0; border-radius: 50%; }
.ambient-glow-bottom { position: fixed; bottom: -150px; right: 5%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%); pointer-events: none; z-index: 0; border-radius: 50%; }
#key-gate-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(10, 14, 23, 0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 1.25rem; overflow-y: auto; }
.gate-container { position: relative; z-index: 10; width: 100%; max-width: 480px; margin: auto; }
.gate-card { background: var(--gradient-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border-color); border-radius: 1.25rem; padding: 2rem 1.75rem; box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(59, 130, 246, 0.15); position: relative; overflow: hidden; }
.gate-header { text-align: center; margin-bottom: 1.5rem; }
.gate-logo { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 0.75rem; border: 2px solid rgba(59, 130, 246, 0.5); box-shadow: 0 0 25px rgba(59, 130, 246, 0.4); display: block; object-fit: cover; background: #0f172a; }
.gate-title { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; color: #ffffff; }
.gate-subtitle { font-size: 0.8rem; color: var(--accent-cyan); text-transform: uppercase; font-weight: 700; letter-spacing: 0.12em; margin-top: 0.3rem; }
.gate-badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.8rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; margin-top: 0.75rem; background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.gate-badge.active { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.3); }
.gate-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }
.btn-main { width: 100%; padding: 0.9rem 1.25rem; border-radius: 0.75rem; font-size: 0.95rem; font-weight: 700; color: #ffffff; background: var(--gradient-btn); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.6rem; box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4); transition: all 0.25s ease; text-decoration: none; outline: none; }
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6); }
.btn-vip { background: var(--gradient-vip); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3); }
.divider { display: flex; align-items: center; text-align: center; margin: 1.35rem 0; color: var(--text-muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--border-color); }
.divider span { padding: 0 0.75rem; }
.input-box-wrapper { display: flex; gap: 0.5rem; margin-bottom: 0.85rem; }
.gate-input { flex: 1; background: rgba(15, 23, 42, 0.7); border: 1px solid var(--border-color); border-radius: 0.75rem; padding: 0.8rem 1rem; color: var(--text-main); font-size: 0.9rem; outline: none; }
.gate-input:focus { border-color: var(--accent-blue); box-shadow: 0 0 12px rgba(59, 130, 246, 0.25); }
.btn-small { padding: 0 1.25rem; border-radius: 0.75rem; font-size: 0.85rem; font-weight: 700; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border-color); color: var(--text-main); cursor: pointer; }
.buy-vip-card { background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.25); border-radius: 0.85rem; padding: 0.85rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1rem; }
.buy-vip-text { font-size: 0.8rem; color: #fde68a; font-weight: 600; }
.buy-vip-text small { display: block; font-size: 0.7rem; color: var(--text-muted); font-weight: normal; margin-top: 0.15rem; }
.tg-button { padding: 0.45rem 0.9rem; background: #0088cc; color: #fff; border-radius: 0.6rem; font-size: 0.75rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.instructions-box { background: rgba(15, 23, 42, 0.5); border-radius: 0.75rem; border: 1px solid rgba(255, 255, 255, 0.05); padding: 0.9rem 1rem; margin-top: 1.25rem; font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.alert-msg { padding: 0.75rem 1rem; border-radius: 0.75rem; font-size: 0.82rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.alert-msg.error { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.alert-msg.success { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.key-display { background: rgba(15, 23, 42, 0.85); border: 1px dashed var(--accent-cyan); border-radius: 0.75rem; padding: 1rem; text-align: center; font-family: monospace; font-size: 1.05rem; font-weight: 700; color: var(--accent-cyan); margin: 1.25rem 0; word-break: break-all; }
.loading-spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #ffffff; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
