/* ============================================================
   common.css — Shared styles for standalone pages
   (login, checkout, subscribe, payment-success)
   ============================================================ */

/* --- Tokens --- */
:root {
  --bg: #0f1115; --panel: #1a1d24; --panel2: #232730;
  --border: #2c313c; --text: #e6e8ec; --muted: #8a93a6;
  --accent: #4f8cff; --accent2: #6ee7b7;
  --warn: #f59e0b; --error: #ef4444; --highlight: #facc15;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: transparent; color: var(--text); font-size: 14px; min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border: 1px solid transparent; border-radius: 6px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { opacity: 0.9; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--muted); background: var(--panel); }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { opacity: 0.9; }
.btn-ghost { background: transparent; color: var(--muted); border: none; padding: 8px 12px; }
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Forms --- */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 4px; font-weight: 600;
}
.form-input {
  width: 100%; padding: 10px 14px; background: var(--panel2);
  border: 1px solid var(--border); border-radius: 6px;
  color: var(--text); font-size: 13px; outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--accent); }
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a93a6' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
textarea.form-input { resize: vertical; min-height: 80px; }

/* --- Card --- */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 24px; }

/* --- Badge --- */
.badge {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 999px; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-success { background: rgba(110,231,183,0.15); color: var(--accent2); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warn); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--error); }
.badge-info { background: rgba(79,140,255,0.15); color: var(--accent); }

/* --- Spinner --- */
.spinner {
  width: 20px; height: 20px; border: 2px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.6s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Alert --- */
.alert { padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 16px; display: none; }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert-success { background: rgba(110,231,183,0.1); border: 1px solid rgba(110,231,183,0.3); color: #6ee7b7; }
.alert.visible { display: block; }

/* --- Modal --- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center;
  z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 28px; max-width: 500px; width: 90%; box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; }

/* --- Shared page layout --- */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page-header {
  padding: 16px 24px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--panel);
}
.page-header .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.brand-logo { height: 28px; }
.brand-accent { color: var(--accent2); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .btn-lg { padding: 12px 20px; font-size: 13px; }
}

/* ============================================================
   Argos OSINT Portal Background
   ============================================================ */
.argos-bg {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background: radial-gradient(ellipse 80% 75% at 50% 50%, #0f1115 0%, #080C20 60%, #05081A 100%);
}
.argos-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.argos-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .06;
  mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.argos-bg--quiet canvas { opacity: .45; }
@media (prefers-reduced-motion: reduce) { .argos-bg canvas { opacity: .45; } }
body > *:not(.argos-bg) { position: relative; z-index: 1; }
