/* =====================================================================
   RELIQUIA Z // TERMINAL PORTAL STYLESHEET
   Preto puro, sem caixas, sem bordas, sem outline, sem sombra.
   Separação só por espaçamento. Interação = leve brilho cinza que nasce
   na ponta esquerda do elemento (gradiente de fundo, não borda).
   ===================================================================== */

:root {
    --bg:     #080808;
    --muted:  #777777;
    --dim:    #444444;
    --text:   #E0E0E0;
    --bright: #FFFFFF;

    /* brilho cinza na ponta */
    --glow:      linear-gradient(90deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 35%, rgba(255, 255, 255, 0) 70%);
    --glow-rest: 0% 100%;
    --glow-on:   100% 100%;

    --font: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    --ease: 220ms ease;
}

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

html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--text); color: var(--bg); }

a { color: var(--text); text-decoration: none; }

/* ---------------------------------------------------------------------
   Brilho na ponta — aplicado a tudo que é interativo
   --------------------------------------------------------------------- */
.nav-link,
.tab,
.btn,
.input,
.form-links a {
    background-color: transparent;
    background-image: var(--glow);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: var(--glow-rest);
    transition: background-size var(--ease), color var(--ease);
}

.nav-link:hover,
.tab:hover,
.btn:hover,
.input:hover,
.form-links a:hover,
.nav-link:focus-visible,
.tab:focus-visible,
.btn:focus-visible,
.input:focus,
.form-links a:focus-visible {
    background-size: var(--glow-on);
    color: var(--bright);
}

/* ---------------------------------------------------------------------
   Layout
   --------------------------------------------------------------------- */
.wrap { width: 100%; max-width: 920px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.main { flex: 1; padding-top: 48px; padding-bottom: 64px; }

/* ---------------------------------------------------------------------
   Topo / navegação
   --------------------------------------------------------------------- */
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 22px;
}

.brand { color: var(--bright); font-weight: 700; letter-spacing: 0.12em; padding: 6px 0; }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-form { display: inline; }

.nav-link {
    display: inline-block;
    padding: 6px 14px;
    color: var(--muted);
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: inherit;
    cursor: pointer;
}
.nav-link.is-active { color: var(--bright); }
.nav-link.is-active::before { content: '> '; }

/* ---------------------------------------------------------------------
   Tipografia
   --------------------------------------------------------------------- */
.h1, .h2, .h3 {
    color: var(--bright);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    line-height: 1.3;
}
.h1 { font-size: 22px; }
.h2 { font-size: 15px; margin-bottom: 20px; }
.h3 { font-size: 13px; margin-bottom: 6px; }
.h3.spaced { margin-top: 36px; margin-bottom: 14px; }

.text { margin-bottom: 20px; max-width: 72ch; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.break { overflow-wrap: anywhere; }

.label {
    display: block;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.hint { display: block; color: var(--dim); font-size: 11px; margin-top: 4px; padding-left: 12px; }

.boot { color: var(--muted); margin: 18px 0 12px; }
.boot-line { display: block; }

.cursor { animation: blink 1.1s steps(1) infinite; color: var(--bright); margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------------------------------------------------------------------
   Seções e blocos — sem fundo, só espaço
   --------------------------------------------------------------------- */
.panel { margin-bottom: 64px; }
.card { padding: 4px 0; }

.notice { color: var(--text); margin-bottom: 24px; font-size: 12px; max-width: 80ch; }
.notice-err { color: var(--bright); }

.grid { display: grid; gap: 28px 32px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-tiers { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.grid > .panel { margin-bottom: 0; }
.main > .grid { margin-bottom: 64px; }

/* ---------------------------------------------------------------------
   Hero + status do servidor
   --------------------------------------------------------------------- */
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tagline { font-size: 15px; margin-bottom: 28px; max-width: 60ch; }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.1em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.status-online .status-dot { background: var(--bright); animation: pulse 2s ease-in-out infinite; }
.status-online strong { color: var(--bright); }
.status-offline .status-dot { background: var(--muted); }
.status-offline strong,
.status-unknown strong { color: var(--muted); }
@keyframes pulse { 50% { opacity: 0.25; } }

/* ---------------------------------------------------------------------
   Chave/valor
   --------------------------------------------------------------------- */
.kv { margin-bottom: 20px; }
.card .kv { margin-bottom: 0; }
.kv-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 5px 0; }
.kv dt { color: var(--muted); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 2px; }
.kv dd { color: var(--bright); }

/* ---------------------------------------------------------------------
   Tiers de GC e saldo
   --------------------------------------------------------------------- */
.tier { display: flex; flex-direction: column; gap: 6px; }
.tier-head { display: flex; gap: 10px; align-items: baseline; }
.tier-name { color: var(--bright); letter-spacing: 0.12em; font-weight: 700; font-size: 12px; }
.tier-amount { font-size: 24px; color: var(--bright); font-weight: 700; line-height: 1.2; }
.tier-amount .muted { font-size: 13px; font-weight: 400; }
.tier-bonus { font-size: 11px; letter-spacing: 0.1em; color: var(--text); }
.tier-price { margin-top: 4px; overflow-wrap: anywhere; }

.gc-card { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.gc-balance { font-size: 32px; font-weight: 700; color: var(--bright); line-height: 1.1; }
.gc-balance .muted { font-size: 14px; font-weight: 400; }

.steps { list-style: none; counter-reset: step; margin-bottom: 26px; }
.steps li { counter-increment: step; padding: 4px 0 4px 40px; position: relative; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; color: var(--muted); }

/* ---------------------------------------------------------------------
   Botões — texto puro entre colchetes
   --------------------------------------------------------------------- */
.actions { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 8px 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
.btn::before { content: '[ '; color: var(--muted); }
.btn::after  { content: ' ]'; color: var(--muted); }

.btn-primary { color: var(--bright); }
.btn-primary::before,
.btn-primary::after { color: var(--bright); }

.btn-block { display: block; width: 100%; margin-top: 4px; }

.btn-disabled,
.btn-disabled:hover { color: var(--dim); background-size: var(--glow-rest); cursor: not-allowed; }
.btn-disabled::before,
.btn-disabled::after { color: var(--dim); }

/* ---------------------------------------------------------------------
   Formulários — campos invisíveis, só o brilho na ponta denuncia
   --------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: block; }

.input {
    display: block;
    width: 100%;
    padding: 8px 12px;
    color: var(--bright);
    font-family: inherit;
    font-size: 14px;
    caret-color: var(--bright);
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    /* ponta sempre levemente acesa para indicar onde o campo começa */
    background-size: 4% 100%;
}
.input::placeholder { color: var(--dim); }

/* Remove o fundo amarelo/azul do autofill sem usar sombra. */
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--bright);
    caret-color: var(--bright);
    transition: background-color 600000s 0s, color 600000s 0s, background-size var(--ease);
}

.form-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 24px; font-size: 12px; }
.form-links a { color: var(--muted); padding: 4px 8px; }

/* ---------------------------------------------------------------------
   Abas de autenticação
   --------------------------------------------------------------------- */
.auth { max-width: 520px; margin: 0 auto; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 36px; }
.tab {
    padding: 6px 12px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.tab.is-active { color: var(--bright); }
.tab.is-active::before { content: '> '; }

/* ---------------------------------------------------------------------
   Mensagens
   --------------------------------------------------------------------- */
.flash { display: flex; gap: 12px; margin-bottom: 28px; font-size: 13px; }
.flash-tag { color: var(--muted); white-space: nowrap; font-weight: 700; }
.flash-err { color: var(--bright); }
.flash-err .flash-tag { color: var(--bright); }

/* ---------------------------------------------------------------------
   Rodapé
   --------------------------------------------------------------------- */
.footer { font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-bottom: 28px; }

/* ---------------------------------------------------------------------
   Responsivo
   --------------------------------------------------------------------- */
@media (max-width: 720px) {
    .grid-2,
    .grid-3 { grid-template-columns: minmax(0, 1fr); }
    .h1 { font-size: 18px; }
    .kv-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .panel { margin-bottom: 48px; }
}

@media (max-width: 420px) {
    .wrap { padding-left: 14px; padding-right: 14px; }
    .nav-link { padding: 6px 8px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
