/* =====================================================================
   GA-Server theme, part 2: forms (register, password, e-mail, reset),
   captcha, sidebar login and the home "about the server" section
   ===================================================================== */

/* ---------- forms ---------- */
.form-page { max-width: 640px; }
.form-intro { margin: 0 0 18px; color: var(--sub); font-size: 14.5px; }
.ga-form { display: grid; gap: 16px; margin-top: 18px; }
.ga-form .frow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ga-form .fgroup { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ga-form label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #93c5fd; }
.ga-form .field-reg { width: 100%; margin: 0; }
.ga-form small { font-size: 12px; color: var(--muted); }
.ga-form input:disabled { opacity: .6; cursor: not-allowed; }
.ga-form input:user-invalid { border-color: rgba(248, 113, 113, .6); }
.ga-form input[type="submit"] { margin-top: 6px; padding: 14px 22px; font-size: 15px; }
.form-page .error, .form-page .accept { margin: 0 0 6px; text-align: left; }
.error.flash { max-width: 1240px; margin: 18px auto 0; }

/* ---------- captcha ---------- */
.captcha { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; }
.captcha-img { position: relative; border-radius: 14px; padding: 2px; isolation: isolate;
  background: conic-gradient(from var(--ang), #22d3ee, #3b82f6, #8b5cf6, #e879f9, #22d3ee); animation: capRing 6s linear infinite;
  box-shadow: 0 0 22px rgba(56, 189, 248, .25), 0 10px 26px rgba(0, 0, 0, .45); }
.captcha-img img { display: block; width: 200px; height: 64px; border-radius: 12px; border: 0 !important; }
@keyframes capRing { to { --ang: 360deg; } }
.captcha .captcha-refresh { width: 46px; height: 46px; padding: 0; border-radius: 50%;
  --face: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); --depth: rgba(15, 30, 60, .95); --glow: rgba(56, 189, 248, .2);
  outline: 1px solid rgba(125, 211, 252, .35); outline-offset: -1px; }
.captcha .captcha-refresh::before { display: none; }
.captcha-refresh svg { width: 20px; height: 20px; fill: #7dd3fc; }
.captcha-refresh.spin svg { animation: capSpin .6s var(--ease); }
@keyframes capSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.captcha .captcha-input { margin: 0; min-width: 120px; text-align: center; text-transform: uppercase;
  font: 700 20px/1 'Be Vietnam Pro', sans-serif; letter-spacing: .4em; }
.captcha .captcha-input::placeholder { letter-spacing: .1em; font-size: 14px; font-weight: 500; text-transform: none; }

/* ---------- sidebar login ---------- */
.login-box { display: grid; gap: 10px; }
.login-box .lf { display: flex; flex-direction: column; gap: 5px; }
.login-box .lf span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #93c5fd; }
.login-box .logintext { margin: 0; }
.login-box input[type="submit"] { margin-top: 4px; }
.login-links { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.gm-online .gm { display: inline-block; margin: 0 6px 6px 0; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 600;
  color: #fde68a; background: rgba(250, 204, 21, .1); border: 1px solid rgba(250, 204, 21, .3); }
.btn-danger { --face: linear-gradient(135deg, #f87171, #dc2626); --depth: #7f1d1d; --glow: rgba(248, 113, 113, .35); }

@media (max-width: 600px) {
  .ga-form .frow { grid-template-columns: 1fr; }
  .captcha { grid-template-columns: 1fr auto; }
  .captcha-img { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- home: about the server ---------- */
.about { position: relative; padding: 70px 24px 40px; }
.about-inner { max-width: 1240px; margin: 0 auto; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: #7dd3fc; }
.eyebrow span { width: 42px; height: 1px; background: linear-gradient(90deg, transparent, #67e8f9); }
.eyebrow span:last-child { background: linear-gradient(90deg, #c4b5fd, transparent); }
.section-head h2 { margin: 0; font: 700 clamp(30px, 4vw, 46px)/1.15 'Cinzel', serif; color: #fff; text-shadow: 0 0 30px rgba(56, 189, 248, .35); }
.section-head h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head .sub { margin: 14px 0 0; color: var(--sub); font-size: 16px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { position: relative; padding: 26px 24px 22px; border-radius: 20px; overflow: hidden; isolation: isolate; transform-style: preserve-3d;
  background: linear-gradient(160deg, rgba(20, 34, 66, .82), rgba(8, 13, 27, .86)); border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .35); transition: border-color .3s, box-shadow .3s; }
.feature::after { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at 0 0, rgba(56, 189, 248, .18), transparent 60%); }
.feature:hover { border-color: var(--line-2); box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 40px rgba(56, 189, 248, .15); }
.feature:hover::after { opacity: 1; }
.f-ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 15px; background: var(--grad); transform: translateZ(30px);
  box-shadow: 0 5px 0 #1d3f8f, 0 12px 26px rgba(34, 211, 238, .35), inset 0 1px 0 rgba(255, 255, 255, .5); }
.feature:nth-child(even) .f-ic { background: linear-gradient(135deg, #a855f7, #8b5cf6 45%, #ec4899);
  box-shadow: 0 5px 0 #5b21b6, 0 12px 26px rgba(168, 85, 247, .35), inset 0 1px 0 rgba(255, 255, 255, .5); }
.f-ic svg { width: 26px; height: 26px; fill: #fff; }
.feature h3 { margin: 0 0 8px; font-size: 19px; color: #fff; transform: translateZ(20px); }
.feature p { margin: 0 0 14px; color: #b6c4dd; font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; color: #bae6fd; background: rgba(56, 189, 248, .1); border: 1px solid rgba(56, 189, 248, .25); }

.numbers { display: grid; grid-template-columns: repeat(6, 1fr); margin: 34px 0; border-radius: 20px; overflow: hidden;
  background: linear-gradient(90deg, rgba(34, 211, 238, .12), rgba(59, 130, 246, .1), rgba(139, 92, 246, .14)); border: 1px solid var(--line); }
.number { padding: 22px 12px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .06); }
.number:last-child { border-right: 0; }
.number b { display: block; font: 800 clamp(22px, 2.4vw, 30px)/1.1 'Be Vietnam Pro', sans-serif; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.number span { display: block; margin-top: 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); }

.about-split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.card-glass { padding: 24px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(14px); box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.card-glass h3 { margin: 0; font-size: 19px; color: #fff; }
.sched-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.tz { font-size: 12px; color: var(--sub); padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); }
.sched-list { margin: 0; padding: 0; list-style: none; }
.sched-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 12px; margin: 0 -12px; border-radius: 12px; border-bottom: 1px solid rgba(255, 255, 255, .05); transition: background .25s; }
.sched-list li:hover { background: rgba(56, 189, 248, .07); }
.sched-list li.open { background: linear-gradient(90deg, rgba(52, 211, 153, .12), transparent); }
.s-name b { display: block; color: #fff; font-size: 14.5px; }
.s-name span { font-size: 12px; color: var(--sub); }
.s-when { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.s-when time { font-weight: 700; color: #7dd3fc; font-variant-numeric: tabular-nums; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6ee7b7; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; animation: liveDot 1.4s infinite; }
@keyframes liveDot { 50% { opacity: .35; } }
.muted { color: var(--sub); margin: 4px 0 14px; font-size: 13.5px; }
.cmd-list { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 8px; }
.cmd-list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; font-size: 13.5px; color: #c9d6ee; }
.cmd-list code { padding: 4px 10px; border-radius: 8px; font: 600 13px Consolas, monospace; color: #a5f3fc; background: rgba(3, 7, 18, .6); border: 1px solid var(--line); white-space: nowrap; }
.about-cta { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers { grid-template-columns: repeat(3, 1fr); }
  .number:nth-child(3) { border-right: 0; }
  .number:nth-child(-n+3) { border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .about-split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .about { padding: 50px 16px 30px; }
  .feature-grid { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .number { border-right: 1px solid rgba(255, 255, 255, .06) !important; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .number:nth-child(even) { border-right: 0 !important; }
  .cmd-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* active language flag */
.langs a.active img.flags { opacity: 1; box-shadow: 0 0 0 1px rgba(120,200,255,.8); }

/* ---------- news posts written as HTML (GA news layout) ---------- */
.gn { display: grid; gap: 18px; }
.gn-lead { margin: 0; font-size: 15.5px; color: #dbe7fb; }
.gn h4 { margin: 4px 0 0; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #93c5fd; }
.gn-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: gn; }
.gn-steps li { position: relative; padding: 16px 16px 14px 56px; border: 1px solid var(--line); border-radius: 14px; background: rgba(15, 26, 52, .55); counter-increment: gn; line-height: 1.55; }
.gn-steps li::before { content: counter(gn); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #04101f; background: var(--grad); box-shadow: 0 0 14px rgba(34, 211, 238, .35); }
.gn-steps b { display: block; color: var(--text); margin-bottom: 2px; }
.gn-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.gn-list li { position: relative; padding-left: 22px; }
.gn-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 3px; background: var(--grad); transform: rotate(45deg); }
.gn-cmds { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
.gn-cmds div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(15, 26, 52, .45); font-size: 14px; }
.gn-cmds code { font: 700 13px/1 ui-monospace, Consolas, monospace; color: #67e8f9; margin-right: 8px; }
.gn-note { padding: 12px 14px; border-left: 3px solid #22d3ee; border-radius: 0 12px 12px 0; background: rgba(34, 211, 238, .07); font-size: 14px; }
.gn-tag { display: inline-block; padding: 2px 9px; margin-right: 6px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #04101f; background: #67e8f9; }
.gn-tag.fix { background: #fbbf24; }
.gn-tag.web { background: #a78bfa; }

/* news editor: one block per language */
.news-lang { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.news-lang legend { padding: 0 8px; font-weight: 800; color: #93c5fd; }
.news-lang legend small { font-weight: 500; color: var(--sub); }
.news-lang textarea { width: 100%; box-sizing: border-box; }

/* =====================================================================
   Type scale, tuned for Vietnamese / Spanish texts (longer words,
   stacked diacritics): one size per role, nothing wraps where it should not
   ===================================================================== */
/* top bar: compact, single-line items */
.topbar-inner { gap: 16px; }
ul#menu a, ul#menu span { padding: 8px 12px; font-size: 13.5px; white-space: nowrap; }
.pill, .topbar .btn-sm, .brand-name { white-space: nowrap; }
.pill { padding: 5px 11px; font-size: 12px; }
.status-pills { gap: 6px; }
@media (max-width: 1400px) { .status-pills .pill:not(.players) { display: none; } }

/* hero: room for diacritics above the capitals */
.hero h1 { font-size: clamp(34px, 3.3vw, 46px); line-height: 1.22; }
.lead { font-size: 15.5px; line-height: 1.7; max-width: 600px; }
.tagline { font-size: 11.5px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }

/* hero status bar: equal cells, labels and values on one line */
.stat { padding: 13px 16px; gap: 6px; min-width: 0; justify-content: center; }
.stat .k { font-size: 10.5px; letter-spacing: .08em; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .v { font-size: 17px; line-height: 1.3; white-space: nowrap; }
.stat .num { font-size: 22px; line-height: 1.2; }

/* headings: Cinzel has no Vietnamese glyphs, use the body font for translated headings */
html[lang="vi"] .section-head h2 { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.section-head .sub { font-size: 15.5px; line-height: 1.7; }
.feature h3 { font-size: 18px; line-height: 1.35; }
.feature p { font-size: 14px; line-height: 1.65; }
.number span { font-size: 11.5px; line-height: 1.4; }
.news_title a, .news-title { line-height: 1.35; }

/* =====================================================================
   official domain: www.AionGA.online (top bar, hero chip, footer)
   ===================================================================== */
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-domain { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; color: #7dd3fc; opacity: .85; white-space: nowrap; transition: color .3s; }
.brand:hover .brand-domain { color: #c4b5fd; }

.domain-chip {
  position: relative; align-self: center; display: inline-flex; align-items: center; gap: 10px; margin: 24px auto 0;
  padding: 8px 18px 8px 8px; border-radius: 999px; text-decoration: none; color: var(--text); isolation: isolate;
  background: linear-gradient(135deg, rgba(34, 211, 238, .12), rgba(12, 20, 40, .85) 45%, rgba(139, 92, 246, .14));
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, .22), 0 8px 26px rgba(8, 15, 35, .45);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.domain-chip::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 60%, #67e8f9 78%, #c4b5fd 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: comet 5s linear infinite;
}
.domain-chip:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(125, 211, 252, .45), 0 12px 32px rgba(34, 211, 238, .22); }
.domain-chip .dc-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 14px rgba(34, 211, 238, .55); }
.domain-chip .dc-ico svg { width: 17px; height: 17px; fill: #fff; animation: spinGlobe 12s linear infinite; }
@keyframes spinGlobe { to { transform: rotate(360deg); } }
.domain-chip .dc-k { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sub); padding-right: 10px; border-right: 1px solid rgba(255, 255, 255, .12); }
.domain-chip b { font: 800 16px 'Be Vietnam Pro', sans-serif; letter-spacing: .02em; color: #eaf2ff; }
.domain-chip b em {
  font-style: normal; background: linear-gradient(90deg, #67e8f9, #a5b4fc, #f0abfc, #67e8f9); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: hue 6s linear infinite;
}
.hero-copy > .domain-chip + .hero-stats { margin-top: 22px; }
.hero-copy > *:nth-child(6) { animation-delay: 1.2s; }

.f-domain { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0; font-weight: 700; letter-spacing: .04em; color: #7dd3fc; text-decoration: none; }
.f-domain svg { width: 14px; height: 14px; fill: currentColor; }
.f-domain:hover { color: #c4b5fd; }
.footer-bottom a { color: #7dd3fc; text-decoration: none; }
.footer-bottom a:hover { color: #c4b5fd; }

@media (max-width: 640px) {
  .brand-domain { display: none; }
  .domain-chip { padding-right: 14px; gap: 8px; }
  .domain-chip .dc-k { display: none; }
  .domain-chip b { font-size: 13.5px; }
}

/* web address under the big AION logo (same float as the logo) */
.hero-domain {
  position: absolute; top: 50px; left: 67%; z-index: 3; display: flex; align-items: center; gap: 12px; white-space: nowrap; text-decoration: none;
  transform: translateX(-50%); animation: domainIn 1s 1.2s var(--ease) both, float 5s 1.5s ease-in-out infinite;
}
.hero-domain span { font: 700 13px 'Be Vietnam Pro', sans-serif; letter-spacing: .22em; color: #bae6fd; text-shadow: 0 0 12px rgba(56, 189, 248, .8), 0 0 2px rgba(0, 0, 0, .9); transition: color .3s, letter-spacing .4s var(--ease); }
.hero-domain em {
  font-style: normal; background: linear-gradient(90deg, #67e8f9, #a5b4fc, #f0abfc, #67e8f9); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: hue 6s linear infinite; text-shadow: none;
}
.hero-domain i { width: 34px; height: 1px; background: linear-gradient(90deg, transparent, #67e8f9); }
.hero-domain i:last-child { background: linear-gradient(90deg, #c4b5fd, transparent); }
.hero-domain:hover span { color: #fff; letter-spacing: .26em; }
@keyframes domainIn { from { opacity: 0; transform: translate(-50%, -8px); } }
@media (max-width: 1080px) { .hero-domain { display: none; } }
