/* AXI0 keys: mesmo clima escuro do loader (accent 232,67,84) */
:root {
    --bg: #0a0a0a;
    --panel: #0e0e0e;
    --panel-2: #141415;
    --stroke: #232325;
    --stroke-2: #2e2e31;
    --text: #cdcdd2;
    --text-bright: #ebebeb;
    --muted: #7c7c84;
    --accent: #e84354;
    --accent-light: #f14657;
    --accent-dark: #b03340;
    --success: #4dc86b;
    --warning: #e2b254;
    --danger: #c2484c;
    --info: #5b9be6;
    --radius: 10px;
    --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }

/* scrollbar fina no tom do painel, accent no hover */
html { scrollbar-width: thin; scrollbar-color: var(--stroke-2) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--stroke-2);
    border-radius: 8px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }
::-webkit-scrollbar-thumb:active { background: var(--accent); }
::-webkit-scrollbar-corner { background: transparent; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--text-bright); margin: 0 0 12px; line-height: 1.25; }
h1 { font-size: 26px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p { margin: 0 0 12px; }
code, .mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.inline { display: inline; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* topo */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    /* same "mesh" texture as the loader (menu texture_pattern style 1): 4px diagonal cross hatch, white at alpha 20/255 */
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges' fill='%23fff'%3E%3Crect width='1' height='1' fill-opacity='.067'/%3E%3Crect x='2' y='2' width='1' height='1' fill-opacity='.067'/%3E%3Crect x='1' y='3' width='1' height='1' fill-opacity='.05'/%3E%3Crect x='3' y='1' width='1' height='1' fill-opacity='.05'/%3E%3Crect x='1' y='1' width='1' height='1' fill-opacity='.027'/%3E%3Crect x='3' y='3' width='1' height='1' fill-opacity='.027'/%3E%3C/svg%3E") 0 0 / 4px 4px repeat,
        linear-gradient(180deg, #0b0b0d, #050506);
    border-bottom: 1px solid #1c1c1f;
}
.topbar-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
}
.brand { display: flex; align-items: center; flex: none; }
.brand:hover { text-decoration: none; }
.brand canvas { display: block; }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a { padding: 7px 12px; border-radius: 10px; color: #8b8b92; font-weight: 500; font-size: 15px; white-space: nowrap; transition: color .15s, background .15s; }
.topnav a:hover { color: var(--text-bright); text-decoration: none; }
.topnav a.active { color: #fff; font-weight: 600; background: #1d1d20; }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.pill {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    box-sizing: border-box; height: 36px; min-width: 104px;
    padding: 0 14px; line-height: 1;
    border: 1px solid #2a2a2e;
    border-radius: 10px;
    background: #0e0e10;
    color: var(--text-bright);
    font: inherit; font-size: 14px; font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.pill:hover, .pill.active { background: #18181b; border-color: #3a3a40; text-decoration: none; }
.pill-discord svg { color: #5865f2; }
.pill-light { background: #ececee; border-color: #ececee; color: #0b0b0c; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 4px 14px rgba(255, 255, 255, .06); }
.pill-light:hover { background: #fff; border-color: #fff; }
.pill-user { padding: 0 14px 0 8px; }
.pill-user span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 960px) {
    .topbar-inner { flex-wrap: wrap; gap: 10px 16px; padding: 10px 16px; }
    .topnav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
    .pill-discord span, .pill-user span { display: none; }
    .pill-discord, .pill-user { min-width: 36px; width: 36px; padding: 0; }
}
.subnav {
    display: flex;
    gap: 4px;
    padding: 8px 24px;
    border-bottom: 1px solid var(--stroke);
    background: var(--panel);
    overflow-x: auto;
}
.subnav a { padding: 6px 12px; border-radius: 8px; color: var(--muted); white-space: nowrap; }
.subnav a:hover { color: var(--text-bright); background: var(--panel-2); text-decoration: none; }
.subnav a.active { color: var(--text-bright); background: var(--panel-2); }

/* abas dentro da página (My account) */
.tabs { display: flex; gap: 4px; margin-bottom: 20px; box-shadow: inset 0 -1px var(--stroke); overflow-x: auto; }
.tabs a { padding: 9px 16px; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--text-bright); text-decoration: none; }
.tabs a.active { color: var(--text-bright); border-bottom-color: var(--accent); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 24px 48px; flex: 1; }
.container.narrow { max-width: 440px; }
.container.wide { max-width: 1600px; }
.site-footer { background: #0a0a0a; border-top: 1px solid #1c1c1f; color: #8b8b92; font-size: 14px; }
.site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; max-width: 1280px; margin: 0 auto; padding: 32px 24px; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer-links a { color: #8b8b92; transition: color .15s; }
.site-footer-links a:hover { color: var(--text-bright); text-decoration: none; }
@media (max-width: 600px) {
    .site-footer-inner { flex-direction: column; justify-content: center; padding: 24px 16px; }
    .site-footer-links { justify-content: center; }
}

/* blocos */
.card {
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 20px;
}
.card + .card { margin-top: 16px; }
.grid > .card + .card { margin-top: 0; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: 16px; }
.grid-games { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-stats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }

.stat { background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 14px 16px; }
.stat .value { font-size: 24px; font-weight: 700; color: var(--text-bright); font-variant-numeric: tabular-nums; }
.stat .label { color: var(--muted); font-size: 12px; }

/* jogos na loja */
.game-card { display: flex; flex-direction: column; gap: 14px; }
.game-top { display: flex; gap: 12px; align-items: center; }
.game-code {
    width: 46px; height: 46px; flex: none;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--panel-2);
    border: 1px solid var(--stroke-2);
    color: var(--accent);
    font-weight: 800;
    font-size: 13px;
}
.game-image { display: block; object-fit: cover; }
.game-banner { display: block; max-width: 100%; object-fit: cover; border-radius: 10px; border: 1px solid var(--stroke-2); background: var(--panel-2); }
.game-banner-empty { display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.game-name { color: var(--text-bright); font-weight: 700; }
.plans { display: flex; flex-direction: column; gap: 8px; }
.plan {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px 9px 14px;
    background: var(--panel-2);
    border: 1px solid var(--stroke);
    border-radius: 8px;
}
.plan .price { margin-left: auto; color: var(--text-bright); font-weight: 600; font-variant-numeric: tabular-nums; }

/* loja (Shop) */
.shop-hero { padding: 8px 0 30px; }
.eyebrow { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 10px; }
.eyebrow::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.shop-hero h1 { font-size: 40px; font-weight: 800; letter-spacing: -.8px; margin-bottom: 10px; }
.shop-hero p { color: var(--muted); font-size: 15px; max-width: 620px; margin: 0; }
.pay-methods { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pay-label { color: var(--text-bright); font-size: 14px; font-weight: 600; margin-right: 4px; }
.pay-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--stroke); border-radius: 999px; background: var(--panel); color: var(--text-bright); font-size: 14px; }
.pay-chip svg { color: var(--muted); }
.pay-soon { opacity: .45; }
.pay-badge { font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; padding: 1px 7px; border: 1px solid currentColor; border-radius: 999px; }
.shop-pay { margin-top: 28px; }
.pay-note { color: var(--muted); margin-top: 10px; }
.shop-pay .pay-note { font-size: 13px; margin-top: 10px; max-width: none; }
.shop-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.shop-card {
    display: flex; flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .15s;
}
.shop-card:hover { border-color: var(--stroke-2); }

/* faixa do topo: o banner do jogo, ou o ícone ampliado e desfocado quando não tem banner */
.shop-banner {
    position: relative;
    height: 150px;
    overflow: hidden;
    background: radial-gradient(120% 140% at 85% 0%, rgba(232, 67, 84, .28), transparent 60%), var(--panel-2);
    border-bottom: 1px solid var(--stroke);
}
.shop-banner-bg {
    position: absolute; inset: -30px;
    background-size: cover; background-position: center;
    filter: blur(26px) saturate(1.3) brightness(.65);
    transform: scale(1.15);
}
.shop-banner-bg.shop-banner-image { inset: 0; filter: none; transform: none; }
.shop-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(18, 18, 20, .6)); }
.shop-offline .shop-banner-bg, .shop-offline .shop-title .game-code { filter: grayscale(1) brightness(.5); }

.shop-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 18px; flex: 1; }
.shop-title { display: flex; align-items: center; gap: 10px; }
.shop-title .game-code { flex: none; border-radius: 7px; font-size: 10px; }
.shop-name { color: var(--text-bright); font-size: 17px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-tag {
    margin-left: auto; flex: none;
    padding: 2px 8px;
    border: 1px solid var(--stroke-2);
    border-radius: 6px;
    font: 12px var(--mono);
    color: var(--muted);
}
.shop-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; }
.shop-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.shop-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.shop-status-online { color: var(--success); }
.shop-status-online::before { box-shadow: 0 0 0 3px rgba(77, 200, 107, .18); }
.shop-status-updating { color: var(--warning); }
.shop-status-development { color: var(--accent); }
.shop-status-offline { color: var(--danger); }
.shop-sub { color: var(--muted); }
.shop-plans { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.shop-plan {
    display: flex; align-items: center; gap: 10px;
    min-height: 46px;
    padding: 0 16px;
    background: #0b0b0c;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--text-bright);
    transition: border-color .15s, background .15s;
}
.shop-plan:hover { text-decoration: none; background: #111113; border-color: var(--stroke-2); }
.shop-plan-name { font-weight: 600; }
.shop-plan-note { margin-left: auto; color: var(--muted); font-size: 13px; }
.shop-plan-note.good { color: var(--success); }
.shop-plan-price { min-width: 64px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.shop-foot { color: var(--muted); font-size: 13px; margin: 28px 0 0; max-width: 680px; }

/* página Games: cards em pé, estilo capa. A imagem ocupa o card todo e escurece embaixo, onde ficam o nome e a compra */
.games-section + .games-section { margin-top: 36px; }
.games-section-title { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 14px; }
.games-count { padding: 1px 8px; border: 1px solid var(--stroke-2); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 600; }
.games-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }

.games-card {
    position: relative;
    display: flex; flex-direction: column; justify-content: flex-end;
    aspect-ratio: 1 / 2.1;
    min-height: 330px;
    max-height: 400px;
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    overflow: hidden;
    isolation: isolate;
    transition: border-color .15s, transform .15s;
}
.games-card:hover { border-color: var(--stroke-2); transform: translateY(-2px); }

/* fundo: o banner do jogo, ou o ícone ampliado e desfocado quando não tem banner */
.games-cover {
    position: absolute; inset: 0; z-index: -1;
    overflow: hidden;
    background: radial-gradient(120% 80% at 50% 0%, rgba(232, 67, 84, .22), transparent 65%), var(--panel-2);
}
.games-cover-bg {
    position: absolute; inset: -30px;
    background-size: cover; background-position: center top;
    filter: blur(26px) saturate(1.3) brightness(.6);
    transform: scale(1.15);
}
.games-cover-bg.games-cover-image { inset: 0; filter: none; transform: none; transition: transform .3s; }
.games-card:hover .games-cover-image { transform: scale(1.04); }
.games-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(18, 18, 20, .85) 62%, var(--panel) 80%); }
.games-unavailable .games-cover-image { filter: saturate(.55) brightness(.55); }
.games-unavailable .games-name { color: var(--text); }
.games-offline .games-cover-bg, .games-offline .games-title .game-code { filter: grayscale(1) brightness(.5); }

/* tags no canto: status e tipo */
.games-tags { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.games-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 6px;
    background: rgba(10, 10, 12, .72);
    backdrop-filter: blur(6px);
    font: 600 11px var(--mono);
    color: var(--text-bright);
}
.games-chip:not(.games-type)::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.games-status-online { color: var(--success); }
.games-status-online::before { box-shadow: 0 0 0 3px rgba(77, 200, 107, .2); }
.games-status-updating { color: var(--warning); }
.games-status-development { color: var(--accent); }
.games-status-offline { color: var(--danger); }

.games-body { display: flex; flex-direction: column; gap: 4px; padding: 0 14px 14px; }
.games-title { display: flex; align-items: flex-start; gap: 9px; min-height: 40px; }
.games-title .game-code { flex: none; margin-top: 1px; border-radius: 6px; font-size: 8px; }
.games-name { color: var(--text-bright); font-size: 15px; font-weight: 700; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.games-sub { color: var(--muted); font-size: 11px; }
.games-buy { display: flex; align-items: center; gap: 8px; min-height: 36px; margin-top: 6px; }
.games-from { color: var(--muted); font-size: 12px; }
.games-from strong { color: var(--text-bright); font-size: 14px; }
.games-buy-btn {
    margin-left: auto;
    padding: 7px 16px;
    border-radius: 999px;
    background: #ebebeb;
    color: #111;
    font-size: 13px; font-weight: 700;
    transition: background .15s;
}
.games-buy-btn:hover { background: #fff; text-decoration: none; }
.games-soon { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 600; }
.games-soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* checkout: escolha do plano, aceite e formas de pagamento */
.crumbs { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--text); }
.crumbs-here { color: var(--text); }
.co-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.co-main { background: var(--panel); border: 1px solid var(--stroke); border-radius: 14px; padding: 28px; }
.co-game { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--stroke); }
.co-game-name { color: var(--text-bright); font-size: 21px; font-weight: 700; }
.co-label { margin: 24px 0 12px; color: var(--muted); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.co-plans { display: flex; flex-direction: column; gap: 10px; }
.co-plan {
    display: flex; align-items: center; gap: 16px;
    min-height: 80px;
    padding: 14px 20px;
    border: 1px solid var(--stroke);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.co-plan:hover { border-color: var(--stroke-2); background: var(--panel-2); }
.co-plan:has(input:checked) { border-color: var(--text-bright); background: var(--panel-2); }
.co-plan input {
    appearance: none; flex: none;
    width: 16px; height: 16px; margin: 0;
    border: 1px solid var(--stroke-2); border-radius: 50%;
    background: #2a2a2e;
    cursor: pointer;
}
.co-plan input:checked { background: var(--text-bright); border-color: var(--text-bright); box-shadow: inset 0 0 0 3px var(--panel-2); }
.co-plan input:focus-visible { outline: 2px solid var(--text-bright); outline-offset: 2px; }
.co-plan-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.co-plan-name { display: flex; align-items: center; gap: 8px; color: var(--text-bright); font-weight: 700; }
.co-plan-note { color: var(--muted); font-size: 13px; }
.co-plan-price { margin-left: auto; color: var(--text-bright); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.co-badge { padding: 2px 6px; border-radius: 4px; background: var(--text-bright); color: var(--bg); font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; }
.co-total { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--stroke); }
.co-total strong { color: var(--text-bright); font-size: 26px; font-variant-numeric: tabular-nums; }
.co-consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; font-size: 13px; cursor: pointer; }
.co-consent input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--text-bright); cursor: pointer; }
.co-hint { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.co-pay { margin-top: 14px; min-height: 46px; border-radius: 999px; border-color: var(--text-bright); background: var(--text-bright); color: var(--bg); font-size: 15px; }
.co-pay:hover { background: #fff; }
.co-pay:disabled { cursor: not-allowed; border-color: #6a6a70; background: #6a6a70; color: #2a2a2e; }
.co-other { margin-top: 26px; padding-top: 2px; border-top: 1px solid var(--stroke); }
.co-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-alt-btn { min-height: 40px; border-radius: 999px; border-color: var(--stroke-2); background: transparent; color: var(--text-bright); }
.co-alt-btn:hover { background: var(--panel-2); }
.co-alt-btn:disabled { cursor: not-allowed; opacity: .45; }
.co-alt-btn:disabled:hover { background: transparent; }
.co-small { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.co-stripe { display: flex; align-items: flex-start; gap: 8px; }
.co-stripe svg { flex: none; margin-top: 1px; color: var(--success); }
.co-stripe strong { color: var(--text-bright); }
.co-perks { background: var(--panel); border: 1px solid var(--stroke); border-radius: 14px; padding: 20px; }
.co-perks-title { margin-bottom: 14px; color: var(--text-bright); font-weight: 700; }
.co-perks ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.co-perks li { position: relative; padding-left: 24px; font-size: 13px; }
.co-perks li::before { content: ""; position: absolute; left: 3px; top: 2px; width: 10px; height: 5px; border-left: 2px solid var(--text-bright); border-bottom: 2px solid var(--text-bright); transform: rotate(-45deg); }
.co-signed { margin: 14px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.co-signed strong { color: var(--text); }
@media (max-width: 900px) {
    .co-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .co-main { padding: 20px 16px; }
    .co-plan { min-height: 0; padding: 14px; gap: 12px; }
    .co-alt { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .shop-hero h1 { font-size: 30px; }
    .shop-grid { grid-template-columns: 1fr; }
    .shop-banner { height: 120px; }
    .shop-plan { padding: 0 12px; }
    .shop-plan-price { min-width: 0; }
    .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .games-card { min-height: 290px; }
}

/* badges */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 2px 9px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
    white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-active, .badge-online, .badge-paid { color: var(--success); background: rgba(77, 200, 107, .1); }
.badge-unused, .badge-pending { color: var(--info); background: rgba(91, 155, 230, .1); }
.badge-updating { color: var(--warning); background: rgba(226, 178, 84, .1); }
.badge-expired, .badge-neutral, .badge-refunded { color: var(--muted); background: rgba(124, 124, 132, .12); }
.badge-frozen { color: #7cc8e8; background: rgba(124, 200, 232, .12); }
.badge-offline, .badge-banned { color: var(--danger); background: rgba(194, 72, 76, .12); }
.badge-development { color: var(--accent-light); background: rgba(232, 67, 84, .12); }
.badge-type { color: var(--text); background: rgba(124, 124, 132, .12); }
.badge-type::before { display: none; }
.badge-admin { color: var(--accent-light); background: rgba(232, 67, 84, .12); }
.badge-beta { color: #5cc8ea; background: rgba(92, 200, 234, .12); }

/* formulários */
label { display: block; color: var(--text); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.field .hint { color: var(--muted); font-size: 12px; margin-top: 4px; font-weight: 400; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
    width: 100%;
    padding: 9px 12px;
    background: var(--panel-2);
    border: 1px solid var(--stroke-2);
    border-radius: 8px;
    color: var(--text-bright);
    font: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
input.mono { font-family: var(--mono); letter-spacing: .5px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.form-grid { display: grid; gap: 12px 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); align-items: end; }
.form-grid .field { margin: 0; }
.form-grid .wide { grid-column: span 2; }

button, .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 16px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
button:hover, .btn:hover { background: var(--accent-light); text-decoration: none; }
.btn-ghost { background: transparent; border-color: var(--stroke-2); color: var(--text); }
.btn-ghost:hover { background: var(--panel-2); border-color: var(--muted); }
.btn-danger { background: transparent; border-color: rgba(194, 72, 76, .5); color: var(--danger); }
.btn-danger:hover { background: rgba(194, 72, 76, .12); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-block { width: 100%; }
button.link { background: none; border: 0; padding: 0; color: var(--accent-light); font-weight: 400; }
button.link:hover { background: none; text-decoration: underline; }

/* tabelas */
.table-wrap { overflow-x: auto; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--stroke); vertical-align: middle; }
th { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; background: var(--panel-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, .015); }
tr.highlight td { background: rgba(232, 67, 84, .07); }
td.actions { white-space: nowrap; text-align: right; }
td.actions form { display: inline; }
.key { font-family: var(--mono); color: var(--text-bright); letter-spacing: .4px; white-space: nowrap; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* admin: planos agrupados por jogo */
.plan-group { border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--panel); margin-bottom: 12px; overflow: hidden; }
.card + .plan-group, .card + .table-wrap { margin-top: 16px; }
.plan-group summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; user-select: none; }
.plan-group summary::-webkit-details-marker { display: none; }
.plan-group summary::before {
    content: ""; flex: none; width: 7px; height: 7px;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    transform: rotate(-45deg); transition: transform .15s;
}
.plan-group[open] summary::before { transform: rotate(45deg); }
.plan-group summary:hover { background: rgba(255, 255, 255, .02); }
.plan-group summary:hover::before { border-color: var(--text-bright); }
.plan-group-name { color: var(--text-bright); font-weight: 600; }
.plan-group-name .badge { margin-left: 10px; }
.plan-group-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; color: var(--muted); font-size: 13px; }
.plan-group-body { overflow-x: auto; border-top: 1px solid var(--stroke); }

/* key em destaque */
.key-box {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 14px 16px;
    background: var(--panel-2);
    border: 1px dashed var(--accent);
    border-radius: var(--radius);
}
.key-box .key { font-size: 18px; }
.info-list { margin: 0; }
.info-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--stroke); }
.info-list > div:first-child { border-top: 0; padding-top: 0; }
.info-list > div:last-child { padding-bottom: 0; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; color: var(--text-bright); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.key-list { font-family: var(--mono); background: var(--panel-2); border: 1px solid var(--stroke-2); border-radius: 8px; padding: 12px 14px; max-height: 260px; overflow: auto; white-space: pre; color: var(--text-bright); margin: 0; }

/* avisos */
.flash { padding: 11px 14px; border-radius: 8px; margin-bottom: 16px; border: 1px solid; }
.flash-success { color: var(--success); border-color: rgba(77, 200, 107, .35); background: rgba(77, 200, 107, .07); }
.flash-error { color: #ef7a7e; border-color: rgba(194, 72, 76, .45); background: rgba(194, 72, 76, .08); }
.flash-info { color: var(--info); border-color: rgba(91, 155, 230, .35); background: rgba(91, 155, 230, .07); }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 5px 11px; border-radius: 6px; border: 1px solid var(--stroke-2); color: var(--text); }
.pagination span.current { background: var(--accent); border-color: var(--accent); color: #fff; }

.hero { padding: 12px 0 28px; }
.hero h1 { font-size: 32px; }
.hero p { color: var(--muted); max-width: 640px; }

.copied { color: var(--success) !important; border-color: var(--success) !important; }

/* convites (painel > Invites) */
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); margin: 16px 0; align-items: start; }
.key-box .key, .key[title] { overflow-wrap: anywhere; }
.member-pick > * + * { margin-top: 8px; }
.member-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; max-height: 220px; overflow: auto; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--stroke-2); border-radius: 8px; }
.member-list .check[hidden] { display: none; }
.member-list .check { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 640px) {
    .container { padding: 20px 16px 40px; }
    .subnav { padding: 8px 16px; }
    .form-grid .wide { grid-column: auto; }
    .hero h1 { font-size: 26px; }
}

/* foto de perfil */
.avatar { display: inline-block; flex: none; border-radius: 50%; object-fit: cover; background: var(--panel-2); border: 1px solid var(--stroke-2); vertical-align: middle; }
.avatar-empty { display: inline-grid; place-items: center; color: var(--muted); font-weight: 700; line-height: 1; }
.page-head .avatar { align-self: center; }
.avatar-edit { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.avatar-edit .stack-sm { flex: 1; min-width: 240px; }
/* aba Profile: a foto ocupa a largura toda (igual ao banner) e a info da conta flutua fora da coluna, à direita.
   Sem espaço na lateral, a info desce para baixo da foto. */
.profile-top { position: relative; }
.profile-top + * { margin-top: 16px; }
.account-info-card { box-shadow: 0 8px 28px rgba(0, 0, 0, .45); }
@media (min-width: 1700px) {
    .account-info-card { position: absolute; top: 0; left: calc(100% + 16px); width: 260px; }
    .profile-top > .card + .card { margin-top: 0; }
}
.stack-sm > * + * { margin-top: 10px; }
input[type=file] { color: var(--muted); font: inherit; max-width: 100%; }
input[type=file]::file-selector-button,
.file-pick-btn {
    margin-right: 10px; padding: 7px 12px;
    background: var(--panel-2); color: var(--text); font: inherit; font-weight: 600;
    border: 1px solid var(--stroke-2); border-radius: 8px; cursor: pointer;
}
input[type=file]::file-selector-button:hover,
.file-pick:hover .file-pick-btn { border-color: var(--muted); }
/* Native button text follows the browser language; app.js swaps in an English one. */
.file-pick { position: relative; display: inline-flex; align-items: center; max-width: 100%; color: var(--muted); cursor: pointer; }
.file-pick input[type=file] { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.file-pick-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-pick:focus-within .file-pick-btn { border-color: var(--accent); }
.user-cell { display: inline-flex; align-items: center; gap: 8px; }

/* FAQ */
.faq-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.faq-jump a { padding: 7px 14px; border: 1px solid var(--stroke-2); border-radius: 999px; color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; }
.faq-jump a:hover { color: var(--text-bright); border-color: var(--muted); }
.faq-section { max-width: 860px; margin: 24px 0 44px; scroll-margin-top: 80px; }
.faq-section h2 { color: var(--text-bright); font-size: 28px; font-weight: 800; letter-spacing: -.5px; margin: 0 0 12px; }
.faq-lead { color: var(--muted); max-width: 640px; margin: -4px 0 14px; }
.faq-item { border: 1px solid var(--stroke-2); border-radius: var(--radius); background: var(--panel); margin-bottom: 8px; }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; color: var(--text-bright); font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--muted); font-size: 20px; font-weight: 300; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover::after { color: var(--text-bright); }
.faq-body { padding: 0 20px 18px; color: var(--muted); max-width: 720px; }
.faq-body p { margin: 0 0 12px; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body a { color: var(--text-bright); text-decoration: underline; }
.faq-body strong { color: var(--text-bright); }
.faq-body h3 { color: var(--text); font-size: 13px; font-weight: 700; margin: 16px 0 8px; }
.faq-cmd { display: flex; align-items: center; gap: 10px; max-width: 560px; margin-bottom: 6px; padding: 9px 10px 9px 14px; border: 1px solid var(--stroke); border-radius: 8px; background: var(--bg); }
.faq-cmd code { flex: 1; min-width: 0; overflow-x: auto; color: var(--text-bright); font: 13px var(--mono); white-space: nowrap; }
.faq-copy { padding: 3px 10px; border: 1px solid var(--stroke-2); border-radius: 6px; background: none; color: var(--muted); font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.faq-copy:hover, .faq-copy.copied { color: var(--text-bright); border-color: var(--muted); }
@media (max-width: 640px) {
    .faq-item summary { padding: 14px 16px; }
    .faq-body { padding: 0 16px 16px; }
}

/* home: hero com o menu, um bloco por jogo à venda e o Cloud (mesma linha do xhook.win) */
.container.home { max-width: none; padding: 0 0 24px; background: radial-gradient(1100px 520px at 50% -180px, rgba(226, 226, 232, .07), transparent 70%) no-repeat; }
.home-wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 20px; }
.home h1, .home h2, .home h3 { margin: 0; letter-spacing: -.025em; text-wrap: balance; }

.home-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 40px; padding: 0 18px;
    border: 1px solid transparent; border-radius: 999px;
    font-size: 14px; font-weight: 600; white-space: nowrap;
    transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.home-btn:hover { text-decoration: none; }
.home-btn-primary { background: #e2e2e8; color: #0b0b0c; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 6px 22px rgba(226, 226, 232, .12); }
.home-btn-primary:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 0 0 1px #fff, 0 8px 28px rgba(226, 226, 232, .2); }
.home-btn-ghost { background: transparent; color: var(--text-bright); border-color: rgba(101, 101, 105, .43); }
.home-btn-ghost:hover { background: #222224; border-color: rgba(160, 160, 166, .6); }

.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; padding-block: 88px 64px; }
.home-hero h1 { margin: 14px 0 20px; color: #ececf0; font-size: clamp(42px, 6vw, 72px); font-weight: 800; line-height: .98; letter-spacing: -.045em; }
.home-tagline { display: block; margin-top: 14px; color: #9a9aa2; font-size: .5em; font-weight: 700; line-height: 1.08; letter-spacing: -.035em; }
.home-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.home-welcome { margin: 24px 0 0; color: #9a9aa2; font-size: 15px; }
.home-welcome strong { color: #e2e2e8; }
.home-welcome + .home-cta { margin-top: 20px; }
.home-visual { position: relative; }
.home-visual::before { content: ""; position: absolute; inset: -12% 0 -18%; z-index: -1; pointer-events: none; background: radial-gradient(50% 50%, rgba(226, 226, 232, .1), transparent 70%); }
.home-shot { position: relative; filter: drop-shadow(0 24px 50px rgba(0, 0, 0, .55)) drop-shadow(0 3px 10px rgba(0, 0, 0, .45)); }
.home-zoom, .home-zoom:hover { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 0; background: none; cursor: zoom-in; }
.home-zoom img { display: block; width: 100%; height: auto; }
.home-zoom-hint {
    position: absolute; right: 12px; bottom: 12px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px;
    background: rgba(11, 11, 12, .72); backdrop-filter: blur(6px);
    color: #f2f2f6; font-size: 12px; font-weight: 600;
    opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s;
}
.home-zoom:hover .home-zoom-hint, .home-zoom:focus-visible .home-zoom-hint { opacity: 1; transform: none; }
.home-note { display: block; margin-top: 12px; color: #85858c; font-size: 12.5px; }
.home-lightbox { max-width: min(1500px, 94vw); max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; cursor: zoom-out; }
.home-lightbox::backdrop { background: rgba(5, 5, 6, .86); backdrop-filter: blur(6px); }
.home-lightbox img { display: block; width: min(1100px, 94vw); height: auto; max-height: 86vh; object-fit: contain; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .7)); }
.home-lightbox p { margin: 12px 0 0; color: #9a9aa2; font-size: 13px; text-align: center; }

.home-reveal { animation: home-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.home-reveal-2 { animation-delay: .12s; }
@keyframes home-rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .home-reveal { animation: none; } }

.home-section { padding-block: 72px; scroll-margin-top: 40px; }
.home-section + .home-section { border-top: 1px solid rgba(255, 255, 255, .06); }
.home-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.home-head h2 { margin-top: 8px; color: #ececf0; font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.08; }
.home-eyebrow { color: #85858c; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.home-more { color: #9a9aa2; font-size: 14px; font-weight: 600; }
.home-more:hover { color: #ececf0; text-decoration: none; }
.home-lede { max-width: 36em; margin: 12px 0 0; color: #9a9aa2; font-size: 16px; }
.home-card { background: #0e0e0f; border: 1px solid rgba(101, 101, 105, .43); border-radius: 12px; box-shadow: 0 3px 12px rgba(0, 0, 0, .45); }
.home-tag { display: inline-flex; align-items: center; padding: 2px 8px; border: 1px solid rgba(101, 101, 105, .43); border-radius: 6px; background: rgba(11, 11, 12, .6); color: #b4b4bc; font: 600 11.5px var(--mono); }

.home-featured { display: grid; overflow: hidden; }
.home-featured-art { position: relative; display: block; aspect-ratio: 21 / 7; min-height: 200px; overflow: hidden; background: #111113; }
.home-featured-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .6s; }
.home-featured-art > img.home-featured-blur { inset: -20%; width: 140%; height: 140%; filter: blur(40px) saturate(1.3) brightness(.6); }
.home-featured:hover .home-featured-art > img { transform: scale(1.03); }
.home-featured-shade { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0) 30%, rgba(14, 14, 15, .92)); }
.home-featured-logo { position: absolute; left: 28px; bottom: 22px; display: flex; align-items: center; gap: 14px; color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.home-featured-logo .game-code { border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 4px 18px rgba(0, 0, 0, .6); }
.home-featured-build { position: absolute; right: 22px; bottom: 24px; }
.home-featured-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; padding: 26px 28px 28px; }
.home-featured-intro { max-width: 62ch; margin: 0; color: #9a9aa2; font-size: 15.5px; }
.home-featured-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 26px; margin: 18px 0 0; padding: 0; list-style: none; }
.home-featured-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.home-featured-list svg { width: 16px; height: 16px; margin-top: 3px; fill: none; stroke: var(--success); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-featured-list span { display: grid; gap: 2px; color: #9a9aa2; font-size: 13.5px; }
.home-featured-list b { color: #ececf0; font-size: 14.5px; }
.home-featured-buy { display: flex; flex-direction: column; justify-content: center; gap: 10px; align-self: start; padding: 22px; border-radius: 12px; background: #131313; }
.home-featured-price { color: #ececf0; font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.home-featured-price em { margin-right: 4px; color: #85858c; font-size: 16px; font-style: normal; font-weight: 600; letter-spacing: 0; }
.home-featured-sub { color: #85858c; font-size: 13px; }
.home-featured-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.home-soon { display: grid; gap: 10px; margin-top: 26px; }
.home-soon-row { display: flex; flex-wrap: wrap; gap: 8px; }
.home-soon-item { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid rgba(101, 101, 105, .43); border-radius: 999px; color: #9a9aa2; font-size: 13px; }
.home-soon-item .game-code { border-radius: 4px; font-size: 7px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.home-soon-item em { color: #6c6c74; font: 600 11px var(--mono); font-style: normal; }
.shop-faq { margin-top: 24px; }
.faq-section h2.shop-faq-title { margin: 10px 0 24px; color: #ececf0; font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.08; }

.home-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-feature { padding: 22px; }
.home-feature h3 { margin-bottom: 8px; color: #ececf0; font-size: 17px; }
.home-feature p { margin: 0; color: #9a9aa2; font-size: 14px; }
.home-per { display: grid; margin-top: 16px; }
.home-per div { display: flex; gap: 12px; padding-block: 9px; border-top: 1px solid rgba(82, 82, 85, .47); font-size: 13.5px; }
.home-per b { flex: none; width: 76px; padding-top: 2px; color: var(--accent-light); font: 600 11.5px var(--mono); }
.home-per span { min-width: 0; color: #9a9aa2; }
.home-code { padding: 1px 6px; border: 1px solid rgba(255, 255, 255, .06); border-radius: 6px; background: #0e0e0f; color: #ececf0; font: 12px var(--mono); user-select: all; }

@media (max-width: 1000px) {
    .home-hero { grid-template-columns: minmax(0, 1fr); }
    .home-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .home-featured-body { grid-template-columns: minmax(0, 1fr); }
    .home-featured-art { aspect-ratio: 16 / 8; }
}
@media (max-width: 640px) {
    .home-hero { padding-block: 56px 40px; }
    .home-wrap { padding-inline: 16px; }
    .home-featured-list, .home-features { grid-template-columns: minmax(0, 1fr); }
    .home-featured-body { padding: 20px; }
    .home-featured-logo { left: 18px; bottom: 16px; }
    .home-featured-build { display: none; }
}

/* termos de uso */
.legal { max-width: 760px; color: var(--muted); }
.legal-summary { padding: 16px 20px; border: 1px solid var(--stroke-2); border-radius: var(--radius); background: var(--panel); color: var(--text); margin: 0 0 22px; }
.legal-toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 18px; margin-bottom: 34px; font-size: 13px; }
.legal-toc a { color: var(--text); }
.legal-toc a:hover { color: var(--text-bright); }
.legal section { margin-bottom: 30px; scroll-margin-top: 80px; }
.legal h2 { color: var(--text-bright); font-size: 20px; font-weight: 700; margin: 0 0 10px; }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--text-bright); text-decoration: underline; }

/* página do jogo (/games/cs2): topo com o banner, abas do menu alternando print e texto, grade com o resto */
.gp { padding-top: 28px; }
.gp h1, .gp h2 { color: #ececf0; }
.gp-switch { display: flex; gap: 6px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.gp-switch a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid transparent; border-radius: 10px; color: #8b8b92; font-weight: 600; white-space: nowrap; }
.gp-switch a:hover { color: var(--text-bright); text-decoration: none; }
.gp-switch a.active { color: #fff; background: #1d1d20; border-color: #2a2a2e; }
.gp-switch .game-code { border-radius: 5px; font-size: 7px; }

.gp-hero { position: relative; overflow: hidden; isolation: isolate; border: 1px solid rgba(101, 101, 105, .43); border-radius: 16px; background: radial-gradient(90% 120% at 100% 0%, rgba(232, 67, 84, .2), transparent 60%), #0e0e0f; }
.gp-hero-bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; }
.gp-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 10, .96) 0%, rgba(10, 10, 10, .82) 45%, rgba(10, 10, 10, .35) 100%), linear-gradient(0deg, rgba(10, 10, 10, .8), transparent 50%); }
.gp-hero-body { max-width: 640px; padding: 34px 40px 38px; }
.gp-hero .crumbs { margin-bottom: 22px; }
.gp-title { display: flex; align-items: center; gap: 14px; }
.gp-title .game-code { border-radius: 10px; }
.gp-title h1 { margin: 0; font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.gp-intro { margin: 18px 0 0; color: #b4b4bc; font-size: 16px; line-height: 1.6; }
.gp-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; }
.gp-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 24px; }
.gp-from { color: var(--muted); font-size: 13px; }
.gp-from strong { color: var(--text-bright); font-size: 15px; }
.gp-updated { margin-top: 12px; color: var(--muted); font-size: 12px; }

.gp-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 64px; }
.gp-feature + .gp-feature { border-top: 1px solid rgba(255, 255, 255, .06); }
.gp-feature-flip .gp-shot { order: 2; }
.gp-shot { max-width: 708px; }
.gp-zoom img { border-radius: 4px; }
.gp-text h2 { margin: 10px 0 0; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; }
.gp-text p { margin: 12px 0 0; color: #9a9aa2; font-size: 16px; }
.gp-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 26px 0 0; padding: 0; list-style: none; }
.gp-checks li { position: relative; padding-left: 30px; color: var(--text-bright); font-weight: 600; line-height: 1.35; }
.gp-checks li::before { content: ""; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border: 1px solid rgba(101, 101, 105, .43); border-radius: 6px; background: #161618; }
.gp-checks li::after { content: ""; position: absolute; left: 6px; top: 5px; width: 8px; height: 4px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.gp-more { padding-block: 64px; border-top: 1px solid rgba(255, 255, 255, .06); }
.gp-more h2 { margin: 8px 0 28px; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; }
.gp-more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 24px; }
.gp-more figure { margin: 0; }
.gp-more figcaption { margin-top: 10px; color: #9a9aa2; font-size: 13px; font-weight: 600; }

.gp-cta { padding: 56px 24px 40px; border-top: 1px solid rgba(255, 255, 255, .06); text-align: center; }
.gp-cta h2 { margin: 0; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; }
.gp-cta .gp-buy { justify-content: center; }
.gp-lightbox { outline: none; }
.gp-lightbox img { border-radius: 6px; }

@media (max-width: 900px) {
    .gp-feature { grid-template-columns: 1fr; gap: 28px; padding-block: 44px; }
    .gp-feature-flip .gp-shot { order: 0; }
    .gp-shot { margin-inline: auto; }
}
@media (max-width: 640px) {
    .gp { padding-top: 16px; }
    .gp-hero-body { padding: 24px 20px 28px; }
    .gp-checks { grid-template-columns: 1fr; }
    .gp-more-grid { grid-template-columns: 1fr; }
}

/* página Games: card com página própria vira link (a compra fica por cima) */
.games-link { position: absolute; inset: 0; z-index: 1; }
.games-buy-btn { position: relative; z-index: 2; }

/* avaliações (loja e página do jogo) */
.reviews { --star: #f4c04e; margin: 44px 0; scroll-margin-top: 80px; }
.gp .reviews { padding-top: 64px; margin: 0 0 64px; border-top: 1px solid rgba(255, 255, 255, .06); }
.reviews .reviews-title { margin: 12px 0 20px; line-height: 1.15; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; }
.reviews-grid { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 16px; align-items: start; }
.reviews-summary { padding: 18px; border: 1px solid var(--stroke-2); border-radius: var(--radius); background: var(--panel); }
.reviews-average { color: var(--text-bright); font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.reviews-summary .stars { margin-top: 10px; font-size: 18px; }
.reviews-count { margin-top: 6px; color: var(--muted); font-size: 12px; }
.reviews-bars { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.reviews-bar { display: grid; grid-template-columns: 12px minmax(0, 1fr) 24px; gap: 10px; align-items: center; font-size: 12px; }
.reviews-bar-label { color: var(--text-bright); font-weight: 600; }
.reviews-bar-track { height: 4px; border-radius: 4px; background: var(--stroke); overflow: hidden; }
.reviews-bar-track span { display: block; height: 100%; border-radius: 4px; background: var(--star); }
.reviews-bar-count { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.reviews-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.reviews-note, .reviews-empty { padding: 12px 14px; border: 1px dashed var(--stroke-2); border-radius: var(--radius); color: var(--muted); font-size: 13px; }
.reviews-note a { color: var(--text-bright); text-decoration: underline; }
.reviews-main .flash { margin: 0; }
.reviews-pages { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 6px; }

.stars { position: relative; display: inline-block; color: var(--stroke-2); font-size: 14px; line-height: 1; letter-spacing: 2px; white-space: nowrap; }
.stars::before { content: "★★★★★"; position: absolute; inset: 0 auto 0 0; width: var(--fill); overflow: hidden; color: var(--star); }
.stars-sm { font-size: 12px; letter-spacing: 1px; }

.review, .review-compose { padding: 14px 16px; border: 1px solid var(--stroke-2); border-radius: var(--radius); background: var(--panel); }
.review-own { border-color: #3a3a3e; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.review-user { color: var(--text-bright); font-weight: 700; }
.review-badge { padding: 1px 8px; border-radius: 999px; background: rgba(77, 200, 107, .12); color: var(--success); font-size: 11px; font-weight: 600; }
.review-badge-you { background: rgba(124, 124, 132, .14); color: var(--text); }
.review-game { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: 12px; font-weight: 600; }
.review-game .game-code { border-radius: 4px; font-size: 6px; }
a.review-game:hover { color: var(--text-bright); }
.review-date { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.review-body { margin: 10px 0 0; color: var(--text); overflow-wrap: anywhere; }
.review-actions { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; }
.review-actions[hidden] { display: none; }
.review-actions button.link { color: var(--muted); font-size: 12px; }
.review-actions button.link:hover { color: var(--text-bright); }
.review-actions button.link-danger:hover { color: var(--danger); }
.review-compose-title { margin-bottom: 10px; color: var(--text-bright); font-weight: 700; }

.review-form { display: flex; flex-direction: column; gap: 10px; }
.review .review-form { margin-top: 10px; }
.review-form[hidden] { display: none; }
.review-form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.review-form-row select { width: auto; min-width: 200px; }
.review-form textarea { min-height: 84px; resize: vertical; }
.review-form-foot { display: flex; align-items: center; gap: 8px; }
.review-form-foot .muted { margin-right: auto; }

/* estrelas clicáveis: a ordem no HTML é 5..1 e o row-reverse mostra 1..5, então "~" pinta as anteriores */
.star-input-label { margin-right: -8px; color: var(--muted); font-size: 13px; }
.star-input { position: relative; display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.star-input label { margin: 0; color: var(--stroke-2); font-size: 22px; line-height: 1; cursor: pointer; transition: color .1s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--star); }
.star-input:hover input:checked ~ label:not(:hover ~ label):not(:hover) { color: var(--stroke-2); }
.star-input input:focus-visible + label { outline: 1px solid var(--star); outline-offset: 2px; border-radius: 3px; }

@media (max-width: 760px) {
    .reviews-grid { grid-template-columns: 1fr; }
}

/* perfil público (/u/<usuário>) */
.profile { margin-bottom: 20px; }
.profile-banner { position: relative; width: 100%; aspect-ratio: 3 / 1; max-height: 300px; overflow: hidden; border: 1px solid var(--stroke); border-radius: 14px; background: var(--panel-2); }
.profile-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* banner padrão: colchetes do logo, grade de pontos e cortes do glitch (assets/img/banner-default.svg) */
.profile-banner-default { background: #0c0c0e url("/assets/img/banner-default.svg") center / cover no-repeat; }
.profile-head { position: relative; display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px 20px; margin-top: -60px; padding: 0 24px; }
.profile-avatar { display: block; flex: none; padding: 6px; border-radius: 50%; background: var(--bg); line-height: 0; }
.profile-id { flex: 1; min-width: 200px; padding-bottom: 8px; }
.profile-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.profile-name h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.profile-meta { margin-top: 4px; color: var(--muted); font-size: 13px; }
.profile-actions { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.profile-grid > .card + .card { margin-top: 0; }
.profile-main { min-width: 0; }

/* comentários do perfil (estilo Steam) */
.profile-comments { scroll-margin-top: 80px; }
.profile-comments .card-head h2 .muted { margin-left: 4px; font-weight: 600; }
.comments-privacy { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.comments-privacy select { width: auto; padding-top: 5px; padding-bottom: 5px; font-size: 13px; }
.profile-comments > .flash, .profile-comments > .reviews-note { margin: 0 0 14px; }
.comment-form { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; margin-bottom: 14px; }
.comment-form textarea { min-height: 42px; resize: vertical; }
.comment-form-avatar, .comment-avatar { line-height: 0; }
.comment-list { margin: 0; padding: 0; list-style: none; }
.comment { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--stroke); }
.comment-avatar:hover { text-decoration: none; }
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.comment-body { margin: 4px 0 0; color: var(--text); overflow-wrap: anywhere; }
.comment .review-actions { margin-top: 6px; }
.radio-row { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.radio-row input { width: auto; margin: 0; accent-color: var(--accent); }
@media (max-width: 760px) {
    .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .profile-head { margin-top: -44px; padding: 0 8px; }
    .profile-avatar .avatar { width: 88px !important; height: 88px !important; font-size: 38px !important; }
    .profile-name h1 { font-size: 24px; }
    .profile-actions { padding-bottom: 0; }
}

/* like (reputação): só like, sem dislike */
.like-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 38px; padding: 0 16px;
    border: 1px solid var(--stroke-2); border-radius: 999px;
    background: var(--panel); color: var(--text-bright);
    font-weight: 700; font-variant-numeric: tabular-nums;
}
.like-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; transition: transform .15s; }
.like-btn:hover { background: var(--panel-2); border-color: var(--accent); text-decoration: none; }
.like-btn:hover svg { transform: scale(1.12); }
.like-btn.liked { border-color: rgba(232, 67, 84, .55); background: rgba(232, 67, 84, .1); }
.like-btn.liked svg { fill: var(--accent); stroke: var(--accent); }
.like-btn:disabled { opacity: .55; cursor: not-allowed; }
.like-btn:disabled:hover, .like-static:hover { background: var(--panel); border-color: var(--stroke-2); }
.like-btn:disabled:hover svg, .like-static:hover svg { transform: none; }
.like-static { cursor: default; }

/* badges do perfil (estilo Discord). Cada ícone pinta as faces com --g0 (clara) ... --g3 (escura). */
.pbadges { display: inline-flex; align-items: center; gap: 4px; }
.pbadge { position: relative; display: inline-flex; flex: none; line-height: 0; }
.pbadge svg { display: block; overflow: visible; }
.pbadge .f0 { fill: var(--g0); }
.pbadge .f1 { fill: var(--g1); }
.pbadge .f2 { fill: var(--g2); }
.pbadge .f3 { fill: var(--g3); }
.pbadge .ink { fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pbadge .liquid { fill: #fff; opacity: .85; }
.pbadge .tool { fill: #fff; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; }
.pbadge[data-tip]:hover::after {
    content: attr(data-tip);
    position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 30;
    transform: translateX(-50%);
    padding: 5px 9px;
    border: 1px solid var(--stroke-2); border-radius: 7px;
    background: #1b1b1e; color: var(--text-bright);
    font-size: 12px; font-weight: 600; line-height: 1.35; letter-spacing: 0; white-space: nowrap;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
    pointer-events: none;
}
.pbadge-tier-bronze { --g0: #f6cfa6; --g1: #d68b4c; --g2: #a9632d; --g3: #6e3e1b; }
.pbadge-tier-silver { --g0: #ffffff; --g1: #d3d7de; --g2: #a2a8b3; --g3: #686e7a; }
.pbadge-tier-gold { --g0: #fff3b8; --g1: #f6c844; --g2: #d29a17; --g3: #8b620c; }
.pbadge-tier-platinum { --g0: #effcff; --g1: #b2e9f0; --g2: #77c3cf; --g3: #3f8794; }
.pbadge-tier-diamond { --g0: #e6f4ff; --g1: #8fcbff; --g2: #4b93f0; --g3: #2557b2; --glow: rgba(110, 180, 255, .55); }
.pbadge-tier-emerald { --g0: #d0ffe6; --g1: #4fe08f; --g2: #1ead5e; --g3: #0d6b39; --glow: rgba(79, 224, 143, .5); }
.pbadge-tier-rose { --g0: #ffd6ee; --g1: #ec74b8; --g2: #b9478c; --g3: #772a5a; --glow: rgba(236, 116, 184, .55); }
.pbadge-tier-ruby { --g0: #ffc9d1; --g1: #ff4d6b; --g2: #c91c3e; --g3: #7a0e25; --glow: rgba(255, 77, 107, .55); }
.pbadge-tier-opal { --g0: #fff6fd; --g1: #a8f1ea; --g2: #d6b5ff; --g3: #ffb1c8; --glow: rgba(214, 181, 255, .6); }
.pbadge-tier-diamond svg, .pbadge-tier-emerald svg, .pbadge-tier-rose svg, .pbadge-tier-ruby svg { filter: drop-shadow(0 0 3px var(--glow)); }
.pbadge-tier-opal svg { filter: drop-shadow(0 0 4px var(--glow)) hue-rotate(0deg); animation: pbadge-opal 4s ease-in-out infinite; }
@keyframes pbadge-opal { 50% { filter: drop-shadow(0 0 4px var(--glow)) hue-rotate(50deg); } }
@media (prefers-reduced-motion: reduce) {
    .pbadge-tier-opal svg { animation: none; }
}
.pbadge-lifetime { --g1: #9a6bff; --g2: #6c3fd8; }
.pbadge-beta { --g1: #2bb3d9; }
.pbadge-staff { --g1: var(--accent); }

.pbadge-list { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.pbadge-list li { display: flex; align-items: center; gap: 14px; }
.pbadge-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.pbadge-text b { color: var(--text-bright); }
.tier-progress { display: block; max-width: 280px; height: 4px; margin-top: 6px; border-radius: 4px; background: var(--stroke); overflow: hidden; }
.tier-progress span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent-dark), var(--accent-light)); }
.tier-ladder-wrap { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--stroke); }
.tier-ladder { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tier-step { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 66px; color: var(--muted); font-size: 11px; text-align: center; }
.tier-step.reached { color: var(--text-bright); }
.tier-step:not(.reached) .pbadge svg { filter: grayscale(1) brightness(.7); opacity: .4; animation: none; }

/* banner: galeria e upload (My account > Profile, Admin > Banners) */
.banner-preview { max-width: 720px; }
.banner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.banner-option {
    display: flex; flex-direction: column; align-items: stretch; gap: 6px;
    padding: 6px;
    border: 1px solid var(--stroke-2); border-radius: 10px;
    background: var(--panel-2); color: var(--text);
    font-size: 12px; font-weight: 600; white-space: normal;
}
.banner-option:hover { background: var(--panel-2); border-color: var(--muted); }
.banner-option.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); color: var(--text-bright); }
.banner-thumb { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 6px; background-color: var(--panel); }
.banner-option-name { overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.banner-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 16px; }
.banner-admin-grid > .card + .card { margin-top: 0; }
.banner-admin { display: flex; flex-direction: column; gap: 12px; }
.banner-admin .banner-thumb { border: 1px solid var(--stroke-2); }

/* links para o perfil (avaliações, painel > Users) */
.review-author, .user-link { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.review-author:hover, .user-link:hover { text-decoration: none; }
.review-author:hover .review-user, .user-link:hover > span { text-decoration: underline; }

/* suporte: tickets do cliente (/support) e conversa (também no painel) */
.badge-ticket-waiting-staff { color: var(--warning); background: rgba(226, 178, 84, .1); border-color: rgba(226, 178, 84, .3); }
.badge-ticket-answered { color: var(--success); background: rgba(77, 200, 107, .1); border-color: rgba(77, 200, 107, .3); }
.badge-ticket-closed { color: var(--muted); background: rgba(124, 124, 132, .12); }
.badge-ticket-closed::before { display: none; }
.tab-count { margin-left: 4px; padding: 0 7px; border-radius: 999px; background: var(--panel-2); color: var(--muted); font-size: 11px; font-weight: 600; }
.tabs a.active .tab-count { color: var(--text-bright); background: var(--stroke-2); }
.subnav-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.pill-sm { height: 32px; min-width: 0; padding: 0 12px; font-size: 13px; }
.pill-danger { color: var(--danger); border-color: rgba(194, 72, 76, .45); }
.pill-danger:hover { background: rgba(194, 72, 76, .12); border-color: var(--danger); }

.support-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.support-head h1, .support-title, .ticket-head h1 { color: var(--text-bright); font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; margin: 0 0 10px; }
.support-head p { margin: 0 0 8px; font-size: 15px; }
.support-discord { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 600; }
.support-discord svg { color: #5865f2; }
.support-discord:hover { color: var(--text-bright); text-decoration: none; }
.support-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 20px; border: 1px solid var(--stroke-2); border-radius: 14px; background: var(--panel); text-align: center; color: var(--muted); }
.support-empty h2 { margin: 6px 0 0; font-size: 17px; }
.support-empty p { margin: 0 0 8px; }
.support-empty-sm { padding: 28px 20px; }
.support-empty-sm p { margin: 0; }

.ticket-list { display: flex; flex-direction: column; gap: 8px; }
.ticket-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--stroke-2); border-radius: 12px; background: var(--panel); color: var(--text); transition: border-color .15s, background .15s; }
.ticket-row:hover { text-decoration: none; border-color: #3a3a40; background: #111113; }
.ticket-row-icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--stroke-2); color: var(--muted); font-weight: 700; }
.ticket-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ticket-row-title { color: var(--text-bright); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-row-meta { color: var(--muted); font-size: 12px; }
.ticket-row-time { min-width: 76px; color: var(--muted); font-size: 12px; text-align: right; white-space: nowrap; }

.back-link { display: inline-block; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.back-link:hover { color: var(--text-bright); text-decoration: none; }
.support-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; margin-top: 16px; }
.support-card { padding: 22px; border: 1px solid var(--stroke-2); border-radius: 14px; background: var(--panel); }
.support-card textarea { resize: vertical; min-height: 120px; }
.support-tips h2 { font-size: 15px; margin-bottom: 14px; }
.support-tips p { color: var(--muted); font-size: 13px; }
.support-tips b { color: var(--text-bright); }
.support-tips p:last-child { margin: 0; }

.ticket-cats-field { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.ticket-cats-field legend { padding: 0; margin-bottom: 8px; color: var(--text); font-size: 13px; font-weight: 600; }
.ticket-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ticket-cat { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px; border: 1px solid transparent; border-radius: 9px; background: var(--panel-2); font-weight: 400; cursor: pointer; transition: border-color .15s, background .15s; }
.ticket-cat:hover { border-color: var(--stroke-2); }
.ticket-cat:has(input:checked) { border-color: var(--text-bright); background: #18181b; }
.ticket-cat input { appearance: none; flex: none; width: 14px; height: 14px; margin: 2px 0 0; border: 1px solid var(--muted); border-radius: 50%; cursor: pointer; }
.ticket-cat input:checked { border-color: var(--text-bright); background: var(--text-bright); box-shadow: inset 0 0 0 3px #18181b; }
.ticket-cat input:focus-visible { outline: 2px solid var(--text-bright); outline-offset: 2px; }
.ticket-cat-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ticket-cat-name { color: var(--text-bright); font-weight: 700; }
.ticket-cat-desc { color: var(--muted); font-size: 12px; line-height: 1.4; }
.ticket-form-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; color: var(--muted); font-size: 12px; }
.ticket-counter { color: var(--muted); font: 12px var(--mono); white-space: nowrap; }
.ticket-counter.full { color: var(--warning); }

.ticket-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ticket-head-text { min-width: 0; }
.ticket-head h1 { overflow-wrap: anywhere; margin-bottom: 6px; }
.ticket-head-meta { color: var(--muted); font-size: 13px; }
.ticket-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ticket-head-actions form { display: flex; gap: 8px; }
.ticket-page { min-width: 0; }
.ticket-thread { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.ticket-msg { display: flex; align-items: flex-start; gap: 12px; scroll-margin-top: 90px; }
.ticket-msg .avatar { border-radius: 9px; }
.ticket-bubble { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--stroke-2); border-radius: 10px; background: var(--panel); }
.ticket-msg-staff .ticket-bubble { border-color: rgba(232, 67, 84, .35); background: linear-gradient(180deg, rgba(232, 67, 84, .05), transparent 70%), var(--panel); }
.ticket-bubble-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ticket-bubble-head b { color: var(--text-bright); }
.ticket-staff-tag { padding: 1px 7px; border-radius: 999px; background: rgba(232, 67, 84, .14); color: var(--accent-light); font-size: 11px; font-weight: 700; }
.ticket-bubble-time { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.ticket-bubble-body { color: var(--text); overflow-wrap: anywhere; }
.ticket-event { display: flex; align-items: center; gap: 14px; margin: 4px 0; color: var(--muted); font-size: 12px; scroll-margin-top: 90px; }
.ticket-event::before, .ticket-event::after { content: ""; flex: 1; height: 1px; background: var(--stroke-2); }
.ticket-event b { color: var(--text); }
.ticket-hint { margin: 20px 0 12px; color: var(--muted); font-size: 13px; }
.ticket-reply { padding: 12px; border: 1px solid var(--stroke-2); border-radius: 12px; background: var(--panel); }
.ticket-reply .flash { margin-bottom: 10px; }
.ticket-reply textarea { display: block; resize: vertical; min-height: 110px; border-color: transparent; }
.ticket-reply textarea:focus { border-color: var(--stroke-2); }
.ticket-reply-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding: 0 2px; }
.ticket-customer h2 { font-size: 15px; margin-bottom: 14px; }
.ticket-customer .user-link { color: var(--text-bright); }
.ticket-customer .info-list { margin-top: 16px; }
.ticket-customer-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.ticket-cell-title { color: var(--text-bright); font-weight: 600; }

@media (max-width: 900px) {
    .support-layout { grid-template-columns: 1fr; }
    .ticket-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .ticket-row { flex-wrap: wrap; gap: 8px 12px; padding: 12px 14px; }
    .ticket-row-main { flex-basis: calc(100% - 44px); }
    .ticket-row .badge { margin-left: 42px; }
    .ticket-row-time { min-width: 0; margin-left: auto; }
    .ticket-cats { grid-template-columns: 1fr; }
    .support-card { padding: 16px; }
    .ticket-msg .avatar { display: none; }
}
