/* Trang /client - EVO Client. Cùng hệ màu EVO (store.css) nhưng tông tối, neon, chất game thủ.
   Header + footer giữ nguyên của web EVO. */

.gx {
  --gx-bg: #040c17;
  --gx-bg-2: #071729;
  --gx-panel: rgba(9, 30, 56, .72);
  --gx-line: rgba(0, 194, 247, .22);
  --gx-cyan: #00c2f7;
  --gx-cyan-2: #8cebff;
  --gx-text: rgba(255, 255, 255, .86);
  --gx-dim: rgba(255, 255, 255, .58);
  --gx-good: #4ade80;
  --hud: "Chakra Petch", "League Spartan", system-ui, sans-serif;   /* có dấu tiếng Việt (Rajdhani thì không) */
  background:
    repeating-linear-gradient(90deg, rgba(0, 194, 247, .045) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(0, 194, 247, .045) 0 1px, transparent 1px 46px),
    var(--gx-bg);
  color: #ffffff;
  overflow: hidden;
}
.gx b { font-weight: 600; }

/* thông báo sau khi đăng nhập Discord */
.gx-login-ok {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; font-size: 15px; font-weight: 500;
  background: linear-gradient(90deg, rgba(0, 194, 247, .18), rgba(74, 222, 128, .18));
  border-bottom: 1px solid var(--gx-line);
}
.gx-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gx-good); box-shadow: 0 0 10px var(--gx-good); }

/* ── HERO ──────────────────────────────────────────────────────────── */
.gx-hero {
  position: relative;
  padding: 72px 0 84px;
  background: radial-gradient(60% 90% at 78% 40%, rgba(0, 194, 247, .22) 0%, transparent 65%),
              linear-gradient(180deg, var(--navy) 0%, transparent 100%);
}
.gx-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.gx-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.gx-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 5.4vw, 74px); font-weight: 700; line-height: .98; letter-spacing: -.015em;
  text-transform: uppercase;
}
.gx-hero h1 span {
  /* chữ chuyển màu cắt theo khung chữ: chừa chỗ phía trên để dấu tiếng Việt (Ô, Ặ) không bị cụt */
  display: inline-block; padding-top: .16em; margin-top: -.16em;
  background: linear-gradient(90deg, var(--gx-cyan) 0%, var(--gx-cyan-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(0, 194, 247, .45));
}
.gx-lead { margin: 0 0 28px; max-width: 520px; font-size: 18px; line-height: 1.55; color: var(--gx-text); }
.gx-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.gx-btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 28px;
  font-size: 17px; font-weight: 600; text-decoration: none; white-space: nowrap;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: transform .18s ease, filter .18s ease, background-color .18s ease;
}
.gx-btn:hover { transform: translateY(-2px); }
.gx-btn-main { background: linear-gradient(90deg, var(--gx-cyan) 0%, #39d7ff 100%); color: var(--navy-dark); box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset; }
.gx-btn-main:hover { filter: brightness(1.08) drop-shadow(0 0 16px rgba(0, 194, 247, .6)); }
.gx-btn-main small { font-family: var(--hud); font-size: 13px; font-weight: 700; opacity: .7; letter-spacing: .5px; }
.gx-btn-ghost { color: #ffffff; background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px rgba(255, 255, 255, .28) inset; clip-path: none; border-radius: 4px; }
.gx-btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.gx-btn-xl { height: 64px; padding: 0 36px; font-size: 19px; }


.gx-hero-shot { position: relative; }
.gx-frame {
  position: relative; padding: 8px;
  background: linear-gradient(135deg, rgba(0, 194, 247, .55), rgba(0, 194, 247, .05) 40%, rgba(140, 235, 255, .35));
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  filter: drop-shadow(0 30px 60px rgba(0, 10, 25, .7)) drop-shadow(0 0 30px rgba(0, 194, 247, .25));
}
.gx-frame img { display: block; width: 100%; height: auto; clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.gx-chip {
  position: absolute; display: inline-flex; align-items: baseline; gap: 6px;
  padding: 8px 12px 6px; font-family: var(--hud); font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--gx-cyan-2); background: rgba(4, 14, 28, .88); border: 1px solid var(--gx-line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); backdrop-filter: blur(6px);
  animation: gxFloat 5s ease-in-out infinite;
}
.gx-chip b { font-size: 18px; color: #ffffff; letter-spacing: .5px; }
.gx-chip-a { left: -26px; top: 14%; }
.gx-chip-b { right: -18px; top: 46%; animation-delay: -1.6s; }
.gx-chip-c { left: 12%; bottom: -18px; animation-delay: -3.2s; }
@keyframes gxFloat { 50% { transform: translateY(-8px); } }

/* ── SECTIONS ──────────────────────────────────────────────────────── */
.gx-section { padding: 80px 0 0; }
.gx-section-last { padding-bottom: 90px; }
.gx-head { margin-bottom: 30px; }
.gx-kicker { display: inline-block; line-height: 1.5; font-family: var(--hud); font-size: 15px; font-weight: 700; letter-spacing: 2.5px; color: var(--gx-cyan); }
.gx-head h2, .gx-launcher h2 { margin: 12px 0 0; padding-top: .08em; font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.14; }


/* 2 chế độ */
.gx-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gx-mode {
  position: relative; padding: 30px 30px 26px;
  background: var(--gx-panel); border: 1px solid var(--gx-line);
  transition: border-color .2s ease, transform .2s ease;
}
.gx-mode:hover { transform: translateY(-3px); border-color: rgba(0, 194, 247, .55); }
.gx-mode-rec { background: linear-gradient(160deg, rgba(0, 194, 247, .2), var(--gx-panel) 55%); border-color: rgba(0, 194, 247, .55); }
.gx-badge { position: absolute; top: 22px; right: 26px; font-family: var(--hud); font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--navy-dark); background: var(--gx-cyan); padding: 4px 10px 2px; }
.gx-mode h3 { margin: 0 0 10px; font-size: 28px; font-weight: 700; text-transform: uppercase; }
.gx-mode-what { margin: 0 0 10px; font-size: 18px; font-weight: 600; color: #ffffff; line-height: 1.4; }
.gx-mode-when { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--gx-dim); }
.gx-mode-when b { color: var(--gx-cyan-2); }

/* ── Tiêu đề phụ ──────────────────────────────────────────────────── */
.gx-sub { margin: 12px 0 0; max-width: 680px; font-size: 17px; line-height: 1.55; color: var(--gx-dim); }
.gx-h2-inline { margin: 6px 0 22px; font-size: clamp(28px, 3vw, 40px); font-weight: 700; text-transform: uppercase; line-height: 1.05; }
.gx-row-title { margin: 0 0 8px; font-size: 24px; font-weight: 700; text-transform: uppercase; }
.gx-row-desc { margin: 0 0 18px; font-size: 16px; line-height: 1.55; color: var(--gx-dim); }

/* ── Checklist dùng chung ─────────────────────────────────────────── */
.gx-checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.gx-checks li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.45; color: var(--gx-text); }
.gx-checks li::before {
  content: ""; position: absolute; left: 2px; top: 5px; width: 11px; height: 6px;
  border: 2.5px solid var(--gx-good); border-top: 0; border-right: 0; transform: rotate(-45deg);
}
.gx-checks li.gx-warn { color: var(--gx-dim); }
.gx-checks li.gx-warn::before { width: 6px; height: 6px; left: 5px; top: 8px; border: 0; border-radius: 50%; background: #fcd27b; transform: none; }

/* ── 3 profile ────────────────────────────────────────────────────── */
.gx-profiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 64px; }
.gx-profile {
  --pc: var(--gx-cyan);
  position: relative; padding: 28px 26px 26px;
  background: linear-gradient(170deg, color-mix(in srgb, var(--pc) 18%, transparent), var(--gx-panel) 55%);
  border: 1px solid color-mix(in srgb, var(--pc) 45%, transparent);
  transition: transform .2s ease, border-color .2s ease;
}
.gx-profile:hover { transform: translateY(-4px); border-color: var(--pc); }
.gx-profile-fps { --pc: #ff5a6e; }
.gx-profile-off { --pc: #00c2f7; }
.gx-profile-work { --pc: #4ade80; }
.gx-profile-ico {
  display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 16px;
  color: var(--pc); border: 1px solid color-mix(in srgb, var(--pc) 60%, transparent);
  background: color-mix(in srgb, var(--pc) 14%, transparent);
  border-radius: 10px;
}
.gx-profile-ico svg { width: 26px; height: 26px; }
.gx-profile h3 { margin: 0 0 4px; font-size: 26px; font-weight: 700; text-transform: uppercase; }
.gx-profile-for { margin: 0 0 18px; font-family: var(--hud); font-size: 16px; font-weight: 700; letter-spacing: .6px; color: var(--pc); }

/* hàng tính năng + ảnh */
.gx-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 44px; align-items: center; margin-bottom: 56px; }
.gx-row-rev .gx-row-text { order: 2; }
.gx-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.gx-list li { position: relative; padding: 14px 16px 12px 46px; font-size: 16px; line-height: 1.45; color: var(--gx-text); background: rgba(9, 30, 56, .55); border-left: 2px solid var(--gx-cyan); }
.gx-list li::before { content: ""; position: absolute; left: 17px; top: 19px; width: 12px; height: 12px; border: 2px solid var(--gx-cyan); transform: rotate(45deg); box-shadow: 0 0 10px rgba(0, 194, 247, .5); }
.gx-list b { color: #ffffff; }
.gx-note { margin: 18px 0 0; font-size: 15px; line-height: 1.55; color: var(--gx-dim); }
.gx-note b { color: var(--gx-cyan-2); }
.gx-shot { margin: 0; padding: 6px; background: linear-gradient(135deg, rgba(0, 194, 247, .45), transparent 50%, rgba(140, 235, 255, .3)); clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); }
.gx-shot img { display: block; width: 100%; height: auto; clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }

/* hướng dẫn */
.gx-steps { counter-reset: none; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; }
.gx-steps::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 1px; background: linear-gradient(90deg, var(--gx-cyan), transparent); opacity: .5; }
.gx-steps li { position: relative; padding: 0 4px; }
.gx-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 68px; height: 68px; margin-bottom: 16px;
  font-family: var(--hud); font-size: 28px; font-weight: 700; color: var(--gx-cyan);
  background: var(--gx-bg); border: 1px solid rgba(0, 194, 247, .6);
  border-radius: 4px;
  box-shadow: inset 0 0 20px rgba(0, 194, 247, .25);
}
.gx-steps b { display: block; font-size: 19px; margin-bottom: 6px; }
.gx-steps p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--gx-dim); }
.gx-steps i { color: var(--gx-cyan-2); font-style: normal; }

/* launcher tải về */
.gx-launcher {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center;
  padding: 36px 40px;
  background: linear-gradient(120deg, rgba(0, 194, 247, .22), rgba(6, 59, 106, .6) 45%, rgba(4, 14, 28, .9));
  border: 1px solid rgba(0, 194, 247, .5);
  position: relative;
}
.gx-launcher p { margin: 10px 0 0; font-family: var(--hud); font-size: 17px; font-weight: 600; letter-spacing: .5px; color: var(--gx-text); }
.gx-launcher-act { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.gx-sha { max-width: 360px; font-size: 11px; color: var(--gx-dim); word-break: break-all; text-align: right; }
.gx-changelog { margin-top: 14px; }
.gx-changelog summary { cursor: pointer; font-family: var(--hud); font-size: 16px; font-weight: 700; letter-spacing: 1px; color: var(--gx-cyan); }
.gx-changelog pre { margin: 10px 0 0; white-space: pre-wrap; font-family: inherit; font-size: 15px; line-height: 1.65; color: var(--gx-text); }

/* FAQ: cột trái tiêu đề + hỗ trợ, cột phải danh sách; cả khối rộng đúng bằng khung Tải về */
.gx-faq-wrap { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 56px; align-items: start; }
.gx-faq-side { position: sticky; top: 120px; }
.gx-faq-side h2 { margin: 6px 0 14px; font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; text-transform: uppercase; line-height: 1.02; }
.gx-faq-side p { margin: 0 0 24px; font-size: 16px; line-height: 1.55; color: var(--gx-dim); }
.gx-btn-dc { height: 50px; padding: 0 22px; font-size: 16px; }
.gx-faq { display: flex; flex-direction: column; gap: 10px; }
.gx-faq details {
  position: relative; padding: 0 22px;
  background: rgba(9, 30, 56, .55); border: 1px solid var(--gx-line);
  transition: border-color .2s ease, background-color .2s ease;
}
.gx-faq details:hover { border-color: rgba(0, 194, 247, .45); }
.gx-faq details[open] { border-color: rgba(0, 194, 247, .6); background: rgba(9, 30, 56, .8); }
.gx-faq details[open]::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: var(--gx-cyan); box-shadow: 0 0 12px rgba(0, 194, 247, .6); }
.gx-faq summary { cursor: pointer; list-style: none; padding: 18px 0 16px; font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 14px; }
.gx-faq summary::-webkit-details-marker { display: none; }
.gx-faq summary::after { content: "+"; margin-left: auto; font-family: var(--hud); color: var(--gx-cyan); font-size: 26px; line-height: .7; }
.gx-faq details[open] summary::after { content: "−"; }
.gx-q { flex-shrink: 0; width: 28px; font-family: var(--hud); font-size: 16px; font-weight: 700; color: var(--gx-cyan); }
.gx-faq p { margin: 0; padding: 0 0 20px 42px; font-size: 15px; line-height: 1.6; color: var(--gx-dim); }
.gx-faq i { font-style: normal; color: var(--gx-cyan-2); }

/* ── Góc ngoặc neon cho các khung có viền (thay cho cắt góc, không làm mất viền) ── */
.gx-mode::after, .gx-profile::after, .gx-launcher::after {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  --c: var(--gx-cyan); --s: 20px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--s) 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 2px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--s) 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 2px var(--s) no-repeat;
}
.gx-profile::after { --c: var(--pc); }
.gx-mode:not(.gx-mode-rec)::after { --c: rgba(140, 235, 255, .7); }

/* ── Màn hình nhỏ ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .gx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .gx-steps::before { display: none; }
}
@media (max-width: 900px) {
  .gx-hero { padding: 44px 0 56px; }
  .gx-hero-grid, .gx-row, .gx-modes, .gx-profiles, .gx-launcher, .gx-faq-wrap { grid-template-columns: 1fr; }
  .gx-faq-wrap { gap: 28px; }
  .gx-faq-side { position: static; }
  .gx-row-rev .gx-row-text { order: 0; }
  .gx-launcher-act { align-items: stretch; }
  .gx-sha { text-align: left; max-width: none; }
  .gx-chip-a { left: 8px; } .gx-chip-b { right: 8px; }
}
@media (max-width: 560px) {
  .gx-steps { grid-template-columns: 1fr; }
  .gx-cta .gx-btn { flex: 1 1 auto; justify-content: center; }
  .gx-lead { font-size: 16px; }
  .gx-badge { position: static; display: inline-block; margin-bottom: 12px; }
  .gx-faq p { padding-left: 0; }
  .gx-launcher { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .gx-chip { animation: none; }
}

/* Trang client tối màu: footer nối liền, không chừa dải trắng */
.gx ~ .footer { margin-top: 0; }

/* Nút trên trang client là thẻ <a>: CSS chung của web có "a:hover { color: --cyan-700 }" (mạnh hơn
   .gx-btn-*), làm chữ thành xanh đậm trên nền tối khi rê chuột. Ghi đè rõ màu cho từng trạng thái. */
.gx a.gx-btn-main, .gx a.gx-btn-main:hover, .gx a.gx-btn-main:focus-visible { color: var(--navy-dark); }
.gx a.gx-btn-ghost, .gx a.gx-btn-ghost:focus-visible { color: #ffffff; }
.gx a.gx-btn-ghost:hover {
  color: var(--navy-dark);
  background: #ffffff;
  box-shadow: 0 0 0 1px #ffffff inset, 0 8px 24px rgba(0, 194, 247, .25);
}
.gx a.gx-btn-ghost svg { transition: color .18s ease; }
.gx a.gx-btn-dc:hover svg { color: #5865F2; }
.gx a.gx-btn:focus-visible { outline: 2px solid var(--gx-cyan); outline-offset: 3px; }
