/* ===========================
   Variables & Reset
============================ */
:root {
  --bg: #0a0014;
  --bg-soft: #100020;
  --card: #140024;
  --primary: #ff2bd6;
  --secondary: #9b5cff;
  --text: #eae6ff;
  --muted: #b7a6ff;
  --shadow: 0 12px 45px rgba(255, 43, 214, 0.25);
  --shadow-hover: 0 15px 35px rgba(255, 43, 214, 0.3);
  --border: rgba(155, 92, 255, 0.18);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(1200px 600px at 70% 0%, rgba(155, 92, 255, 0.10), transparent), var(--bg);
  color: var(--text);
  overflow: hidden;
}

/* ===========================
   Loader
============================ */
#loader, #restricted {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
  padding: 24px;
}
#loader.active, #restricted.active { opacity: 1; z-index: 2; }

.loader-content { text-align: center; }

.spinner {
  border: 3px solid rgba(255,255,255,0.08);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  margin: 24px auto;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.loader-line {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 4px 0;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.2px;
}

.logo {
  max-width: 72px;
  margin: 0 auto;
  border-radius: 10px;
}

/* ===========================
   Particles
============================ */
#particles-js { position: absolute; width: 100%; height: 100%; z-index: 0; }

/* ===========================
   Panel (main card)
============================ */
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 560px;
  width: 100%;
  margin: auto;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}

.logo-small {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.header-text {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}

.brand {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
}

.subbrand {
  font-size: 0.75rem;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid rgba(255, 43, 214, 0.35);
  background: rgba(255, 43, 214, 0.08);
  padding: 5px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
}

.panel-body {
  padding: 28px 26px 8px;
  text-align: left;
}

.panel-body h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.4;
}

.lead {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.lead strong { color: var(--text); }

.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin-bottom: 20px;
}

.detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  opacity: 0.75;
}

.detail-value {
  font-size: 0.88rem;
  font-family: 'Consolas', 'Courier New', monospace;
  color: var(--text);
}

.status-value {
  color: var(--primary);
  font-weight: 600;
}

.note {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

/* ===========================
   Button
============================ */
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

/* ===========================
   Footer
============================ */
.panel-footer {
  padding: 14px 26px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.panel-footer span {
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.7;
}

/* ===========================
   Popup d'erreur
============================ */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 0, 20, 0.85);
  z-index: 9999;
  backdrop-filter: blur(6px);
  padding: 20px;
}

.popup-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 26px;
  text-align: left;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow);
}

.popup-box h2 {
  color: var(--text);
  margin-bottom: 12px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.popup-box p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 22px;
  line-height: 1.6;
}

/* ===========================
   Responsive
============================ */
@media(max-width:600px){
  .panel { max-width: 100%; }
  .details-grid { grid-template-columns: 1fr; }
  .panel-header { flex-wrap: wrap; }
}