/* ============================================================
   3D VIP — Design System Global
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Orbitron:wght@700;900&display=swap');

/* ── Variáveis ───────────────────────────────────────────── */
:root {
  --bg-deep:       #06060F;
  --bg-dark:       #0D0D1A;
  --bg-card:       #12121F;
  --bg-card-hover: #1A1A2E;
  --border:        rgba(255, 184, 0, 0.15);
  --border-bright: rgba(255, 184, 0, 0.5);

  --gold:          #FFB800;
  --gold-light:    #FFD060;
  --gold-dim:      rgba(255, 184, 0, 0.12);

  --text-white:    #FFFFFF;
  --text-light:    #C8C8D8;
  --text-muted:    #6B6B8A;

  --success:       #22C55E;
  --danger:        #EF4444;
  --info:          #3B82F6;

  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     22px;
  --radius-xl:     32px;

  --shadow-gold:   0 0 30px rgba(255, 184, 0, 0.15);
  --shadow-card:   0 4px 30px rgba(0, 0, 0, 0.5);

  --transition:    all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-deep);
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Tipografia ──────────────────────────────────────────── */
.font-brand { font-family: 'Orbitron', sans-serif; }

h1, h2, h3, h4, h5, h6 {
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.2;
}

.text-gold  { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }

/* ── Botões ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #FF8C00 100%);
  color: #000;
  box-shadow: 0 4px 20px rgba(255, 184, 0, 0.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 184, 0, 0.5);
  filter: brightness(1.08);
}
.btn-gold:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--border-bright);
}
.btn-outline:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.09);
  color: var(--text-white);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover { filter: brightness(1.1); }

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 40px; font-size: 17px; }
.btn-full { width: 100%; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}

/* ── Form ────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.03em;
}
.form-input, .form-select, .form-textarea {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  padding: 12px 16px;
  font-size: 15px;
  width: 100%;
  transition: var(--transition);
  outline: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  background: rgba(255, 184, 0, 0.04);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.1);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-select option { background: var(--bg-dark); color: var(--text-white); }

/* ── Badge ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-gold    { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(255,184,0,0.3); }
.badge-pro     { background: linear-gradient(135deg,#FF8C00,#FFB800); color: #000; }
.badge-success { background: rgba(34,197,94,0.12); color: var(--success); border: 1px solid rgba(34,197,94,0.3); }
.badge-danger  { background: rgba(239,68,68,0.12); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }
.badge-muted   { background: rgba(255,255,255,0.06); color: var(--text-muted); }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 32px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 6, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-logo span { color: var(--text-white); }
.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.navbar-links a {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.navbar-links a:hover { color: var(--text-white); background: rgba(255,255,255,0.06); }
.navbar-links a.active { color: var(--gold); }
.navbar-links a.btn-gold,
.navbar-links a.btn-gold:hover { color: #000 !important; }

/* ── Container ───────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ── Utilitários ─────────────────────────────────────────── */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.pt-80 { padding-top: 80px; } /* navbar offset */

.text-center { text-align: center; }
.text-right  { text-align: right; }

.w-full { width: 100%; }

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 24px 0;
}

/* ── Glow decoration ─────────────────────────────────────── */
.glow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  display: inline-block;
}

/* ── Toast / Alert ───────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  max-width: 340px;
}
.toast-success { background: #0A2E1A; border: 1px solid rgba(34,197,94,0.4); color: var(--success); }
.toast-error   { background: #2E0A0A; border: 1px solid rgba(239,68,68,0.4); color: var(--danger); }
.toast-info    { background: #0A1A2E; border: 1px solid rgba(59,130,246,0.4); color: var(--info); }

@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; transform: translateX(30px); } }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 560px;
  width: 100%;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title  { font-size: 20px; font-weight: 700; color: var(--text-white); }
.modal-close  {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--text-white); }

/* ── Loader ──────────────────────────────────────────────── */
.spinner {
  width: 44px; height: 44px;
  border: 3px solid rgba(255,184,0,0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.page-loader {
  position: fixed; inset: 0;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  flex-direction: column;
  gap: 20px;
}
.page-loader p { color: var(--text-muted); font-size: 14px; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(255,184,0,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,184,0,0.5); }

/* ── Selection ───────────────────────────────────────────── */
::selection { background: rgba(255,184,0,0.25); color: var(--text-white); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar { padding: 0 16px; }
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .navbar-links { display: none; }
}
