/* ═══════════════════════════════════════════════
   ProtoHéberge — Dark Gaming UI
   Font: Syne (display) + DM Sans (body)
   Palette: #0a0a0f base, #00f5a0 accent, #7c3aed purple
   ═══════════════════════════════════════════════ */

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

:root {
  --bg:         #0a0a0f;
  --bg2:        #0f0f1a;
  --bg3:        #131325;
  --surface:    #16162a;
  --border:     rgba(255,255,255,.07);
  --border2:    rgba(0,245,160,.2);
  --accent:     #00f5a0;
  --accent2:    #00c8ff;
  --purple:     #7c3aed;
  --purple-l:   #a855f7;
  --text:       #e8e8f0;
  --muted:      #6b6b8a;
  --danger:     #ff4757;
  --warn:       #ffa502;
  --ok:         #00f5a0;
  --r:          12px;
  --r2:         8px;
  --shadow:     0 4px 24px rgba(0,0,0,.5);
  --shadow-g:   0 0 40px rgba(0,245,160,.08);
  --glow:       0 0 20px rgba(0,245,160,.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Background grid texture ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,245,160,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,160,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

main, header, footer, section, .container, .card, .glass-card, table, form, h1, h2, h3, h4, p, a, button, input, select, ul {
  position: relative;
  z-index: 1;
}

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 8px; }
h3 { font-size: 1.2rem; }

a { color: var(--accent); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }

.muted { color: var(--muted); }
.small { font-size: .82em; }

/* ── Header / Nav ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 62px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff !important;
  text-decoration: none;
  opacity: 1 !important;
}
.brand .dot { color: var(--accent); }

.logo-img { width: 28px; height: 28px; border-radius: 6px; }

.menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn, .btn-primary, .btn-refuse, .btn-paypal, .btn.accept {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r2);
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .18s ease;
  white-space: nowrap;
}

.btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn:hover {
  background: var(--bg3);
  border-color: rgba(255,255,255,.15);
  color: #fff;
  opacity: 1;
}

.btn-primary {
  background: var(--accent);
  color: #050f09;
  font-weight: 600;
  box-shadow: 0 0 0 0 rgba(0,245,160,0);
}
.btn-primary:hover {
  background: #00dea0;
  box-shadow: var(--glow);
  opacity: 1;
  color: #050f09;
  transform: translateY(-1px);
}
.btn-primary:disabled {
  background: var(--surface);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-refuse {
  background: rgba(255,71,87,.12);
  border: 1px solid rgba(255,71,87,.3);
  color: var(--danger);
}
.btn-refuse:hover {
  background: rgba(255,71,87,.22);
  color: var(--danger);
  opacity: 1;
}

.btn-paypal, .btn.accept {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-weight: 600;
}
.btn-paypal:hover, .btn.accept:hover {
  box-shadow: 0 0 20px rgba(124,58,237,.4);
  opacity: 1;
  transform: translateY(-1px);
  color: #fff;
}

/* ── Cards ── */
.card, .glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
}

.glass-card {
  background: rgba(22,22,42,.7);
  backdrop-filter: blur(12px);
}

.card:hover { border-color: rgba(255,255,255,.12); }

/* ── Grid layouts ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 768px) { .grid-3 { grid-template-columns: 1fr; } }
@media (min-width: 769px) and (max-width: 1000px) { .grid-3 { grid-template-columns: 1fr 1fr; } }

.mini {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 14px 16px;
  font-size: .9rem;
  line-height: 1.5;
}

/* ── Section spacing ── */
.section { padding: 60px 0; }

/* ── Pricing cards ── */
.price { margin: 16px 0; }
.price strong { font-family: 'Syne', sans-serif; font-size: 2rem; color: #fff; }
.price span { color: var(--muted); font-size: .9rem; margin-left: 4px; }

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(0,245,160,.1);
  border: 1px solid rgba(0,245,160,.25);
  color: var(--accent);
  margin-bottom: 8px;
}

.pill.popular {
  background: linear-gradient(135deg, rgba(124,58,237,.25), rgba(168,85,247,.15));
  border-color: rgba(168,85,247,.4);
  color: var(--purple-l);
}

.check { padding-left: 4px; }

/* Card featured (popular) */
.card.featured {
  border-color: rgba(124,58,237,.4);
  background: linear-gradient(160deg, rgba(124,58,237,.08), var(--surface));
  box-shadow: 0 0 40px rgba(124,58,237,.1);
}

/* ── Tables ── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  margin-top: 16px;
}
th {
  text-align: left;
  padding: 10px 12px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .05em;
}
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tr:hover td { background: rgba(255,255,255,.02); }

/* ── Status badges ── */
.status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.status.ok     { background: rgba(0,245,160,.12); color: var(--ok); border: 1px solid rgba(0,245,160,.25); }
.status.attente { background: rgba(255,165,2,.1); color: var(--warn); border: 1px solid rgba(255,165,2,.25); }
.status.ko     { background: rgba(255,71,87,.1); color: var(--danger); border: 1px solid rgba(255,71,87,.25); }

/* ── Forms & inputs ── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 10px 14px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  transition: border-color .18s, box-shadow .18s;
  outline: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(0,245,160,.4);
  box-shadow: 0 0 0 3px rgba(0,245,160,.08);
}
input::placeholder { color: var(--muted); }
select { cursor: pointer; }

label {
  display: block;
  margin-bottom: 6px;
  font-size: .85rem;
  color: var(--muted);
  font-weight: 500;
}

.field { margin-bottom: 16px; }

/* Checkbox */
input[type="checkbox"] {
  width: auto;
  accent-color: var(--accent);
}

/* ── Auth card (login/register) ── */
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
}
.auth-card h2 { margin-bottom: 6px; }
.auth-card .subtitle { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }

/* ── Page center ── */
.page-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

/* ── Centered card ── */
.centered-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
  max-width: 560px;
  margin: 60px auto;
  text-align: center;
}

/* ── Notice / msg boxes ── */
.notice {
  padding: 12px 16px;
  border-radius: var(--r2);
  font-size: .9rem;
  margin-bottom: 20px;
  border-left: 3px solid;
}
.notice.ok    { background: rgba(0,245,160,.07); border-color: var(--accent); color: #a0f5d0; }
.notice.err   { background: rgba(255,71,87,.07); border-color: var(--danger); color: #ffa0a8; }
.notice.warn  { background: rgba(255,165,2,.07); border-color: var(--warn); color: #ffd080; }

.trust-note { /* generic message block */
  padding: 12px 16px;
  background: rgba(0,245,160,.07);
  border: 1px solid rgba(0,245,160,.2);
  border-radius: var(--r2);
  color: #a0f5d0;
  font-size: .9rem;
  margin-bottom: 20px;
}

/* ── Payment block ── */
.payment-block, .confirm-block {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 24px;
  margin-top: 24px;
}
.payment-block h3, .confirm-block h3 { margin-bottom: 12px; }

.discord-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #5865f2;
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--r2);
  font-weight: 600;
  text-decoration: none;
  margin-top: 8px;
  transition: filter .2s;
}
.discord-link:hover { filter: brightness(1.1); opacity: 1; color: #fff; }

.price-tag {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.02em;
}

/* ── Hero section ── */
.hero {
  padding: 90px 0 70px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,245,160,.08);
  border: 1px solid rgba(0,245,160,.2);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: .8rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: .04em;
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,245,160,.4); }
  50%       { opacity: .7; box-shadow: 0 0 0 6px rgba(0,245,160,0); }
}

.hero h1 { margin-bottom: 20px; line-height: 1.1; }
.hero h1 .accent { color: var(--accent); }
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 520px; margin: 0 auto 36px; }

.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
}
.hero-stats .stat .num {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}
.hero-stats .stat .lbl { color: var(--muted); font-size: .85rem; }

/* ── Section headings ── */
.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-head p { color: var(--muted); margin-top: 8px; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: .85rem;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--text); opacity: 1; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; gap: 20px; }

/* ── Admin specific ── */
.app { padding: 0; }
.app > h1 { padding: 32px 32px 0; }
.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px 60px; }
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.admin-header h1 { font-size: 1.6rem; }

.section-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ── Responsive nav ── */
@media (max-width: 600px) {
  .menu { gap: 4px; }
  .btn, .btn-primary { padding: 6px 10px; font-size: .8rem; }
  .hero { padding: 60px 0 40px; }
  .section { padding: 40px 0; }
  .auth-card { padding: 24px 20px; }
  table { font-size: .78rem; }
  th, td { padding: 8px 8px; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--bg3); }

/* ── Inline flex form utils ── */
.form-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.form-row .field { margin-bottom: 0; flex: 1; min-width: 120px; }

/* ── Stars ── */
.stars { color: #fbbf24; letter-spacing: 2px; }