/* =====================================================================
   Rykku Corp — site officiel
   Reprend le langage d'Alluna V1 (noir, verre, néon blanc, blocs flottants)
   Améliorations : titres Unbounded, bandeau de nav en verre, cartes à reflet,
   page VYROX à l'identité propre (cyan / violet, coins coupés).
   ===================================================================== */
:root {
  --bg: #050608;
  --bg-2: #0B0D11;
  --panel: rgba(255,255,255,.035);
  --panel-2: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.07);
  --line-2: rgba(255,255,255,.13);
  --text: #F4F6FA;
  --muted: #8A909C;
  --dim: #5A606B;
  --blue: #3D8BFF;
  --green: #4ED17A;
  --violet: #8B6CFF;
  --yellow: #FFC83D;
  --red: #FF4D5E;
  --neon: #ffffff;
  --neon-rgb: 255,255,255;
  --cyan: #2EE6D6;
  --radius: 14px;
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --display: 'Unbounded', 'Inter', 'Segoe UI', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); font-size: 15px; line-height: 1.55;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; font-size: inherit; }
img { max-width: 100%; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid rgba(var(--neon-rgb), .7); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(255,255,255,.2); }

/* ---------- Fond : halo + blocs flottants (repris d'Alluna) ---------- */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.ambient::before {
  content: ''; position: absolute; left: 50%; top: -340px; width: 1100px; height: 640px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255,255,255,.08), transparent 65%);
}
.ambient::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}
.ambient i {
  position: absolute; bottom: -40px; width: var(--s); height: var(--s); left: var(--l);
  border-radius: 22%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06);
  animation: rise var(--t) linear var(--d) infinite;
}
@keyframes rise {
  from { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; } 90% { opacity: 1; }
  to { transform: translateY(-110vh) rotate(260deg); opacity: 0; }
}
body.theme-vyrox .ambient::before { background: radial-gradient(ellipse at center, rgba(46,230,214,.10), rgba(139,108,255,.06) 40%, transparent 68%); }
body.theme-vyrox .ambient i { border-color: rgba(46,230,214,.10); background: rgba(46,230,214,.035); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; font-weight: 600; font-size: 13.5px;
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 10px;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; fill: currentColor; }
.btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-white {
  background: linear-gradient(var(--neon), #E6E8EC); color: #0A0B0E; border-color: var(--neon);
  box-shadow: 0 0 0 1px rgba(var(--neon-rgb), .2), 0 0 24px rgba(var(--neon-rgb), .25);
}
.btn-white:hover { background: var(--neon); box-shadow: 0 0 0 1px rgba(var(--neon-rgb), .35), 0 0 34px rgba(var(--neon-rgb), .45); }
.btn-blue { background: rgba(61,139,255,.14); border-color: rgba(61,139,255,.35); color: #A9CBFF; }
.btn-blue:hover { background: rgba(61,139,255,.24); border-color: rgba(61,139,255,.55); }
.btn-danger { background: rgba(255,77,94,.12); border-color: rgba(255,77,94,.35); color: #FFB3BB; }
.btn-lg { padding: 13px 24px; font-size: 14.5px; border-radius: 12px; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---------- En-tête ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,6,8,.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 1240px; margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 22px;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 15px; letter-spacing: .2px; flex-shrink: 0; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 18px rgba(61,139,255,.35); }
.brand b { color: var(--muted); font-weight: 600; }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; }
.nav a {
  position: relative; padding: 8px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a.active { color: #fff; background: var(--panel-2); }
.nav a.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -13px; height: 2px; border-radius: 2px; background: var(--neon); box-shadow: 0 0 12px var(--neon); }
.nav a.nav-vyrox { color: #9FF5EC; }
.nav a.nav-vyrox.active::after { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 5px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--panel); font-size: 13px; font-weight: 600; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: linear-gradient(135deg, #3D8BFF, #8B6CFF); color: #fff; overflow: hidden; flex-shrink: 0; }
.avatar.lg { width: 56px; height: 56px; font-size: 22px; border-radius: 16px; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); place-items: center; }
.menu-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Mise en page ---------- */
main { position: relative; z-index: 2; }
.wrap {
  max-width: 1240px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.view { padding-block: 40px 90px; animation: viewIn .45s ease both; }
@keyframes viewIn { from { opacity: .001; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.section { margin-top: 70px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { text-wrap: balance; }
.h-display { font-family: var(--display); font-weight: 700; letter-spacing: -.5px; line-height: 1.05; }
.section-head h2 { font-family: var(--display); font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -.3px; margin-top: 6px; }
.lead { color: var(--muted); font-size: 16px; max-width: 62ch; }
.grad { background: linear-gradient(90deg, var(--neon), #9DA4B3); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Héros accueil ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; padding-top: 30px; }
.hero h1 { font-family: var(--display); font-size: clamp(34px, 5.4vw, 64px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.02; margin: 14px 0 18px; }
.hero .lead { font-size: 17px; }
.hero-cta { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats div b { display: block; font-family: var(--display); font-size: 24px; font-weight: 600; }
.hero-stats div span { font-size: 12.5px; color: var(--muted); }
.hero-art { position: relative; aspect-ratio: 1; max-width: 440px; width: 100%; justify-self: center; display: grid; place-items: center; }
.hero-art::before { content: ''; position: absolute; inset: 8%; border-radius: 30%; background: radial-gradient(circle, rgba(61,139,255,.35), transparent 65%); filter: blur(30px); }
.hero-art img.logo-big { position: relative; width: 62%; border-radius: 26%; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); animation: float 6s ease-in-out infinite; }
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255,255,255,.09); animation: spin 40s linear infinite; }
.orbit.o2 { inset: 13%; border-style: solid; border-color: rgba(255,255,255,.05); animation-duration: 28s; animation-direction: reverse; }
.orbit span { position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; border-radius: 4px; background: var(--neon); box-shadow: 0 0 16px var(--neon); }
.orbit.o2 span { background: var(--yellow); box-shadow: 0 0 16px var(--yellow); top: auto; bottom: -7px; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-2deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Panneaux / cartes en verre ---------- */
.glass { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card {
  position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: border-color .25s, transform .25s, background .25s;
}
.card.hover:hover { border-color: rgba(255,255,255,.2); transform: translateY(-3px); background: var(--panel-2); }
.card.hover::after { /* reflet qui suit la souris */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.07), transparent 45%);
}
.card.hover:hover::after { opacity: 1; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

/* logiciels */
.soft { display: flex; flex-direction: column; gap: 14px; min-height: 230px; }
.soft-top { display: flex; align-items: center; gap: 14px; }
.soft-icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 20px; flex-shrink: 0; background: var(--c, #222); color: #fff; box-shadow: 0 0 26px color-mix(in srgb, var(--c, #fff) 40%, transparent); overflow: hidden; }
.soft-icon img { width: 100%; height: 100%; object-fit: cover; }
.soft h3 { font-size: 17px; font-weight: 700; }
.soft .kind { font-size: 12.5px; color: var(--muted); }
.soft p { color: var(--muted); font-size: 14px; flex: 1; }
.soft ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.soft li { font-size: 11.5px; padding: 4px 9px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); color: #C9CED8; }
.soft-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* pastilles */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line-2); color: #C9CED8; background: var(--panel); white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.green { color: var(--green); border-color: rgba(78,209,122,.3); background: rgba(78,209,122,.08); }
.pill.yellow { color: var(--yellow); border-color: rgba(255,200,61,.3); background: rgba(255,200,61,.08); }
.pill.red { color: var(--red); border-color: rgba(255,77,94,.3); background: rgba(255,77,94,.08); }
.pill.blue { color: #8DB8FF; border-color: rgba(61,139,255,.3); background: rgba(61,139,255,.08); }
.pill.cyan { color: var(--cyan); border-color: rgba(46,230,214,.3); background: rgba(46,230,214,.08); }
.pill.grey { color: var(--muted); }
.pill.plain::before { display: none; }

/* actus */
.news { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.news-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.news h3 { font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.news p { color: var(--muted); font-size: 14px; white-space: pre-line; }
.news.feature { grid-column: span 2; min-height: 240px; justify-content: flex-end; background: linear-gradient(160deg, rgba(61,139,255,.16), rgba(139,108,255,.07) 45%, var(--panel) 75%); }
.news.feature h3 { font-family: var(--display); font-size: 24px; font-weight: 600; }
.notes { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 12.5px; color: #C9CED8; white-space: pre-wrap; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 10px; padding: 12px; max-height: 220px; overflow: auto; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 7px 13px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); background: var(--panel); }
.chip:hover { color: var(--text); }
.chip.active { color: #0A0B0E; background: var(--neon); border-color: var(--neon); box-shadow: 0 0 16px rgba(var(--neon-rgb), .3); }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.input, textarea.input, select.input {
  width: 100%; padding: 11px 13px; border-radius: 10px; font: inherit; font-size: 14px;
  background: rgba(0,0,0,.3); color: var(--text); border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s;
}
textarea.input { resize: vertical; min-height: 120px; }
.input:focus { outline: none; border-color: rgba(var(--neon-rgb), .55); box-shadow: 0 0 0 3px rgba(var(--neon-rgb), .1); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 12.5px; color: var(--dim); }
.err { font-size: 13px; color: #FFB3BB; }
.ok { font-size: 13px; color: var(--green); }

/* compte */
.auth { max-width: 940px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; padding: 0; }
.auth-side { padding: 38px; background: linear-gradient(160deg, rgba(61,139,255,.18), rgba(139,108,255,.06) 50%, transparent); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.auth-side img { width: 64px; border-radius: 18px; }
.auth-side h2 { font-family: var(--display); font-size: 26px; font-weight: 600; }
.auth-side ul { list-style: none; display: flex; flex-direction: column; gap: 10px; color: #C9CED8; font-size: 14px; }
.auth-side li { display: flex; gap: 10px; }
.auth-side li::before { content: ''; width: 7px; height: 7px; margin-top: 7px; border-radius: 2px; background: var(--neon); box-shadow: 0 0 8px var(--neon); flex-shrink: 0; }
.auth-main { padding: 38px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid var(--line); margin-bottom: 22px; }
.tabs button { flex: 1; padding: 9px; border-radius: 9px; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.tabs button.active { background: var(--panel-2); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.profile-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profile-head h2 { font-family: var(--display); font-size: 24px; font-weight: 600; }

/* boutique */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.offer { display: flex; flex-direction: column; gap: 14px; }
.offer h4 { font-size: 15px; font-weight: 700; }
.offer .price { font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.offer .price small { font-family: var(--font); font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.offer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; flex: 1; color: #C9CED8; font-size: 13.5px; }
.offer li { display: flex; gap: 9px; }
.offer li::before { content: ''; width: 14px; height: 14px; margin-top: 3px; flex-shrink: 0; border-radius: 4px; background: rgba(78,209,122,.15); box-shadow: inset 0 0 0 1px rgba(78,209,122,.45); }
.offer.premium { border-color: rgba(255,255,255,.22); background: linear-gradient(170deg, rgba(255,255,255,.08), var(--panel) 60%); box-shadow: 0 0 40px rgba(255,255,255,.05); }
.offer.best { border-color: rgba(78,209,122,.35); }
.offer .tag { position: absolute; top: 16px; right: 16px; }
.pay-grid { display: flex; flex-direction: column; gap: 8px; }
.pay-line { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.25); border: 1px solid var(--line); flex-wrap: wrap; }
.pay-line span { font-size: 12.5px; color: var(--muted); min-width: 170px; }
.pay-line code { font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; flex: 1; min-width: 0; word-break: break-all; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.step { padding: 16px; }
.step b { display: block; font-family: var(--display); font-size: 13px; color: var(--muted); margin-bottom: 6px; }

/* tickets */
.ticket { display: flex; flex-direction: column; gap: 8px; }
.ticket-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ticket-top h4 { font-size: 15px; }
.ticket-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.ticket .msg { font-size: 14px; color: #C9CED8; white-space: pre-line; }
.reply { font-size: 13.5px; padding: 10px 12px; border-radius: 10px; background: rgba(78,209,122,.07); border: 1px solid rgba(78,209,122,.22); }

/* forum */
.forum { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 20px; align-items: start; }
.forum-cats { display: flex; flex-direction: column; gap: 4px; padding: 10px; position: sticky; top: 84px; }
.forum-cats button { display: flex; justify-content: space-between; align-items: center; text-align: left; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--muted); border: 1px solid transparent; }
.forum-cats button:hover { background: var(--panel); color: var(--text); }
.forum-cats button.active { background: var(--panel-2); color: #fff; border-color: var(--line); }
.thread-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .2s; }
.thread-row:last-child { border-bottom: 0; }
.thread-row:hover { background: var(--panel); }
.thread-row h4 { font-size: 15px; font-weight: 600; }
.thread-row .sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.thread-row .count { text-align: right; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.post { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 14px; padding: 18px; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.post .avatar { width: 44px; height: 44px; font-size: 16px; border-radius: 12px; }
.post-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.post-head b { color: var(--text); font-size: 14px; }
.post-body { margin-top: 6px; white-space: pre-line; overflow-wrap: anywhere; font-size: 14.5px; }

/* état vide, toast, modale */
.empty { padding: 36px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.toast-zone { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 16px; border-radius: 12px; background: #121318; border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0,0,0,.55); font-size: 13.5px; max-width: 360px; animation: viewIn .3s ease both; }
.toast.bad { border-color: rgba(255,77,94,.45); }
.modal-bg { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; }
.modal { width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; padding: 26px; background: #0D0F13; border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal h3 { font-family: var(--display); font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.banner { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255,200,61,.3); background: rgba(255,200,61,.06); font-size: 13.5px; color: #F2DDA6; }

/* pied de page */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line); padding-block: 40px; color: var(--muted); font-size: 13px; }
.footer-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a:hover { color: var(--text); }

/* =====================================================================
   VYROX — page jeu (inspirée des sites de jeux compétitifs)
   ===================================================================== */
:root { --vx: var(--cyan); --vx2: var(--violet); }
.vx-hero {
  position: relative; overflow: hidden; border-radius: 22px; border: 1px solid rgba(46,230,214,.18);
  padding: clamp(28px, 6vw, 70px); min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end;
  background:
    linear-gradient(115deg, rgba(5,6,8,.95) 30%, rgba(5,6,8,.4)),
    radial-gradient(circle at 80% 30%, rgba(46,230,214,.28), transparent 45%),
    radial-gradient(circle at 95% 90%, rgba(139,108,255,.35), transparent 50%),
    #07090C;
}
.vx-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.vx-hero > *:not(canvas) { position: relative; }
.vx-title { font-family: var(--display); font-weight: 800; font-size: clamp(64px, 14vw, 170px); line-height: .82; letter-spacing: -4px; margin: 14px 0 18px;
  background: linear-gradient(180deg, #fff 30%, #9FF5EC); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(46,230,214,.25)); }
.vx-tag { font-size: clamp(16px, 2vw, 20px); max-width: 52ch; color: #C9D6DA; }
.vx-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.btn-vx { background: var(--vx); color: #031614; border-color: var(--vx); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); border-radius: 0; box-shadow: 0 0 30px rgba(46,230,214,.35); font-weight: 700; letter-spacing: .4px; text-transform: uppercase; font-size: 13px; }
.btn-vx:hover { background: #6FF2E6; }
.btn-vx-ghost { border-radius: 0; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); text-transform: uppercase; letter-spacing: .4px; font-size: 13px; }
.vx-hero > .vx-status { position: absolute; top: clamp(20px, 4vw, 34px); right: clamp(20px, 4vw, 34px); }
.vx-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 16px; }
.vx-strip div { padding: 18px 20px; border-right: 1px solid var(--line); background: var(--panel); }
.vx-strip div:last-child { border-right: 0; }
.vx-strip b { display: block; font-family: var(--display); font-size: 26px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.vx-strip span { font-size: 12.5px; color: var(--muted); }
.vx-card { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); border-radius: 0; border-color: rgba(46,230,214,.13); }
.vx-card .num { font-family: var(--display); font-size: 12px; color: var(--vx); letter-spacing: 2px; }
.vx-card h3 { font-family: var(--display); font-size: 19px; font-weight: 600; margin: 10px 0 8px; }
.vx-card p { color: var(--muted); font-size: 14px; }
.vx-news-date { font-family: var(--display); font-size: 12px; color: var(--vx); letter-spacing: 1px; }
.arsenal-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.arsenal-tabs .chip.active { background: var(--vx); border-color: var(--vx); color: #031614; box-shadow: 0 0 16px rgba(46,230,214,.35); }
.weapons { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.weapon { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.weapon-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.weapon h4 { font-family: var(--display); font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.weapon .cat { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; }
.weapon .cost { font-family: var(--display); font-size: 14px; color: var(--yellow); font-variant-numeric: tabular-nums; }
.bar { display: grid; grid-template-columns: 66px minmax(0,1fr) 36px; gap: 8px; align-items: center; font-size: 11.5px; color: var(--muted); }
.bar i { height: 5px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; display: block; }
.bar i em { display: block; height: 100%; background: linear-gradient(90deg, var(--vx), var(--vx2)); box-shadow: 0 0 10px rgba(46,230,214,.5); }
.bar b { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.rarities { display: flex; gap: 8px; flex-wrap: wrap; }
.rarity { padding: 10px 14px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--r) 45%, transparent); background: color-mix(in srgb, var(--r) 10%, transparent); color: var(--r); font-weight: 700; font-size: 13px; }
.roadmap { display: flex; flex-direction: column; }
.road { display: grid; grid-template-columns: 150px minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.road:last-child { border-bottom: 0; }
.road b { font-family: var(--display); font-size: 12px; letter-spacing: 1px; color: var(--muted); }
.road span { font-size: 14.5px; }

/* ---------- Adaptation ---------- */
@media (max-width: 1080px) {
  .nav a { padding: 8px 9px; font-size: 13px; }
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 920px) {
  .menu-btn { display: grid; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; padding: 10px max(16px, env(safe-area-inset-left, 0px)) 16px; background: rgba(5,6,8,.97); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a.active::after { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 300px; order: -1; }
  .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .auth { grid-template-columns: 1fr; }
  .auth-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .forum { grid-template-columns: 1fr; }
  .forum-cats { position: static; flex-direction: row; flex-wrap: wrap; }
  .vx-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .vx-strip div:nth-child(2) { border-right: 0; }
  .vx-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .topbar-in, .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .brand span { display: none; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .news.feature { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; }
  .auth-side, .auth-main { padding: 24px; }
  .road { grid-template-columns: 1fr; gap: 6px; }
  .pay-line span { min-width: 0; width: 100%; }
  .top-actions .btn-label, .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   Panel admin
   ===================================================================== */
.admin-btn { border-color: rgba(255,200,61,.35); color: #F2DDA6; background: rgba(255,200,61,.07); }
.admin-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.admin-tabs button { padding: 9px 14px; border-radius: 9px; font-weight: 600; font-size: 13.5px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.admin-tabs button:hover { color: var(--text); }
.admin-tabs button.active { background: var(--panel-2); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.count-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--yellow); color: #1A1300; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat b { font-family: var(--display); font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat small { font-size: 12.5px; color: var(--muted); }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini-row:last-child { border-bottom: 0; }
.mini-row b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-row small { display: block; font-size: 12px; color: var(--muted); }
.mini-row > div { flex: 1; }
.mini-row.click { cursor: pointer; border-radius: 8px; }
.mini-row.click:hover { background: var(--panel); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--panel); }
.table .num { font-variant-numeric: tabular-nums; }
.table .input { padding: 8px 10px; font-size: 13px; }
.muted { color: var(--muted); }
.u { display: flex; align-items: center; gap: 10px; }
.admin-toolbar { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.kv div { padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.kv span { display: block; font-size: 12px; color: var(--muted); }
.kv b { font-size: 14px; }
.admin-sub { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.modal.wide { max-width: 680px; }
@media (max-width: 920px) { .stat-row { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .kv { grid-template-columns: 1fr; } .admin-btn { display: none; } }

/* ---------- VYROX : cartes des agents ---------- */
.agents { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.agent-card { position: relative; border-radius: 16px; overflow: hidden; background: #0d0b14; border: 2px solid var(--ac); box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 0 26px color-mix(in srgb, var(--ac) 28%, transparent); transition: transform .25s, box-shadow .25s; }
.agent-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 0 40px color-mix(in srgb, var(--ac) 50%, transparent); }
.agent-card img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.agent-top { position: absolute; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; z-index: 1; font-family: var(--display); }
.agent-top span { font-size: 11px; letter-spacing: 2px; color: #fff; opacity: .85; }
.agent-top b { font-size: 20px; color: var(--ac); text-shadow: 0 0 12px color-mix(in srgb, var(--ac) 60%, transparent); }
.agent-info { position: absolute; inset: auto 0 0 0; padding: 40px 14px 14px; background: linear-gradient(180deg, transparent, rgba(10,6,20,.92) 55%); }
.agent-info i { display: block; width: 46px; height: 3px; border-radius: 3px; background: var(--ac); margin-bottom: 8px; }
.agent-info h3 { font-family: var(--display); font-size: 22px; font-weight: 800; font-style: italic; letter-spacing: .5px; text-transform: uppercase; line-height: 1.1; }
.agent-info span { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ac); }
.news.upcoming { border-style: dashed; }
@media (max-width: 920px) { .agents { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
