/* =====================================================================
   ProjetoMS — Design System "Fantasia Outonal"
   Navy + azul + laranja + dourado. Tokens centralizados em :root.
   (O tema antigo assets/theme.css continua existindo para o painel
   financeiro interno.)
   ===================================================================== */

:root {
    /* Navy */
    --navy-950: #020b18;
    --navy-900: #031326;   /* Deep Navy */
    --navy-850: #041a33;
    --navy-800: #061a33;   /* Navy */
    --navy-750: #08223f;
    --navy-700: #0b2a4d;
    --navy-600: #113763;
    /* Marca */
    --blue: #087fc9;
    --blue-light: #28b8ff;
    --orange: #ff9700;
    --orange-deep: #e86d00;
    --gold: #f9c343;
    --gold-soft: #ffe39a;
    --green: #20df8f;
    --red: #ff5d62;
    --amber: #ffb547;
    --purple: #b48cff;
    --white: #f7faff;
    /* Texto */
    --text: #e8f0fb;
    --text-dim: #b4c6de;
    --text-mute: #8aa1c2;
    /* Superfícies */
    --surface: rgba(8, 31, 60, 0.78);
    --surface-solid: #0a2546;
    --surface-2: rgba(12, 41, 78, 0.72);
    --surface-hover: rgba(17, 55, 99, 0.85);
    --line: rgba(74, 150, 230, 0.22);
    --line-strong: rgba(90, 175, 255, 0.42);
    --glass-blur: 10px;
    /* Raios / sombras */
    --r-sm: 8px;
    --r: 14px;
    --r-lg: 20px;
    --shadow: 0 14px 34px rgba(0, 6, 18, 0.45);
    --shadow-sm: 0 6px 16px rgba(0, 6, 18, 0.35);
    --ring: 0 0 0 3px rgba(40, 184, 255, 0.45);
    /* Tipografia */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --container: 1240px;
    --header-h: 76px;
    color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background-color: var(--navy-900);
    background-image:
        radial-gradient(1100px 600px at 85% -10%, rgba(8, 127, 201, 0.16), transparent 60%),
        radial-gradient(900px 500px at -10% 40%, rgba(255, 151, 0, 0.06), transparent 60%);
    background-attachment: scroll;
    display: flex;
    flex-direction: column;
}
main { flex: 1 0 auto; outline: none; overflow-x: clip; }
img, svg, picture { display: block; max-width: 100%; }
a { color: var(--blue-light); text-decoration: none; }
a:hover { color: #7fd4ff; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; color: var(--white); }
p { margin: 0 0 1em; }
code { font-family: Consolas, 'Courier New', monospace; font-size: .92em; background: rgba(40, 184, 255, .12); color: #bfe8ff; padding: .1em .4em; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
::selection { background: rgba(255, 151, 0, .35); color: #fff; }

:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--orange); color: var(--navy-900); font-weight: 800; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: var(--navy-900); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.icon-sm { width: .9em; height: .9em; }
:where(p, li, span, small, td, b, label, a:not(.btn)) > .icon { display: inline-block; vertical-align: -0.16em; }
.text-gold { color: var(--gold); }
.text-orange { color: var(--orange); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-dim { color: var(--text-dim); }
.text-mute { color: var(--text-mute); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1 1 auto; }

/* ---------- Botões ---------- */
.btn {
    --btn-bg: var(--surface-2);
    --btn-fg: var(--white);
    --btn-bd: var(--line-strong);
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    min-height: 44px; padding: 10px 20px;
    font: 800 15px/1.1 var(--font-body); letter-spacing: .02em;
    color: var(--btn-fg); background: var(--btn-bg);
    border: 1.5px solid var(--btn-bd); border-radius: 12px;
    cursor: pointer; text-decoration: none; text-align: center;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, filter .2s ease, border-color .2s ease;
    -webkit-user-select: none; user-select: none;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary {
    --btn-fg: #2a1500; --btn-bd: #ffb347;
    background: linear-gradient(180deg, #ffb43a 0%, var(--orange) 55%, var(--orange-deep) 100%);
    box-shadow: 0 6px 18px rgba(255, 151, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 10px 26px rgba(255, 151, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-secondary { --btn-bg: rgba(6, 26, 51, .82); --btn-bd: rgba(80, 170, 255, .55); }
.btn-secondary:hover { --btn-bg: rgba(12, 44, 82, .92); --btn-bd: var(--blue-light); }
.btn-gold {
    --btn-fg: #2b1d00; --btn-bd: #ffe08a;
    background: linear-gradient(180deg, #ffe08a, var(--gold) 60%, #d99e1c);
}
.btn-blue { --btn-bd: #46b6ff; background: linear-gradient(180deg, #1aa0ef, var(--blue)); }
.btn-success { --btn-fg: #032016; --btn-bd: #6ff0ba; background: linear-gradient(180deg, #4ff0a8, var(--green)); }
.btn-danger { --btn-bd: #ff8c90; background: linear-gradient(180deg, #ff6f74, #d8353b); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; }
.btn-ghost:hover { --btn-bg: rgba(40, 184, 255, .1); box-shadow: none; }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { min-height: 58px; padding: 16px 30px; font-size: 17px; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-upper { text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    height: var(--header-h);
    background: linear-gradient(180deg, rgba(3, 19, 38, .97), rgba(4, 24, 47, .93));
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: saturate(140%) blur(var(--glass-blur));
    backdrop-filter: saturate(140%) blur(var(--glass-blur));
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; max-width: 1480px; }
.nav-actions .btn { white-space: nowrap; }
.brand {
    position: relative; flex: 0 0 auto; align-self: flex-start;
    padding: 6px 18px 10px; margin-top: 0;
    background: linear-gradient(180deg, #072447, #041a33);
    border: 1px solid var(--line); border-top: 0;
    border-radius: 0 0 22px 22px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .45);
    z-index: 2;
}
.brand::after {
    content: ""; position: absolute; left: 50%; bottom: -9px; width: 34px; height: 18px; transform: translateX(-50%);
    background: #041a33; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
    clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 0 0 4px 4px;
}
.brand img { width: 190px; height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); }
.site-nav { flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 0; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-link {
    position: relative; display: inline-flex; align-items: center; gap: 8px;
    height: var(--header-h); padding: 0 12px;
    color: var(--text); font-weight: 700; font-size: 15px; white-space: nowrap;
}
.nav-link .icon { color: var(--text-dim); transition: color .2s; }
.nav-link:hover { color: #fff; }
.nav-link:hover .icon { color: var(--blue-light); }
.nav-link.is-active { color: var(--orange); }
.nav-link.is-active .icon { color: var(--orange); }
.nav-link.is-active::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--gold)); border-radius: 3px 3px 0 0;
    box-shadow: 0 -2px 12px rgba(255, 151, 0, .55);
}
.nav-link.is-highlight:not(.is-active) .icon { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
    display: none; margin-left: auto;
    width: 46px; height: 46px; border-radius: 12px;
    background: var(--surface-2); color: var(--white); border: 1.5px solid var(--line-strong); cursor: pointer;
    align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 24px; height: 24px; }

.account-menu { position: relative; }
.btn-account { max-width: 230px; }
.btn-account .account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--orange); color: #2a1500; font-size: 12px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; }
.dropdown {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; margin: 0; padding: 8px; list-style: none;
    background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: var(--r); box-shadow: var(--shadow);
    display: none; z-index: 120;
}
.dropdown.is-open { display: block; }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-weight: 700; }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--surface-hover); color: #fff; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .02em; border: 1px solid transparent; white-space: nowrap; }
.badge-orange { background: rgba(255, 151, 0, .16); color: #ffc070; border-color: rgba(255, 151, 0, .4); }
.badge-gold { background: rgba(249, 195, 67, .15); color: var(--gold); border-color: rgba(249, 195, 67, .4); }
.badge-blue { background: rgba(40, 184, 255, .14); color: #8fd8ff; border-color: rgba(40, 184, 255, .4); }
.badge-green { background: rgba(32, 223, 143, .13); color: #7ff3c1; border-color: rgba(32, 223, 143, .4); }
.badge-red { background: rgba(255, 93, 98, .14); color: #ff9da0; border-color: rgba(255, 93, 98, .42); }
.badge-amber { background: rgba(255, 181, 71, .14); color: #ffd08a; border-color: rgba(255, 181, 71, .42); }
.badge-gray { background: rgba(138, 161, 194, .12); color: var(--text-dim); border-color: rgba(138, 161, 194, .3); }
.badge-purple { background: rgba(180, 140, 255, .14); color: #d6c2ff; border-color: rgba(180, 140, 255, .4); }

/* ---------- Hero ---------- */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: clamp(600px, calc(100vh - var(--header-h) + 20px), 780px);
    display: flex; align-items: center;
    padding: 64px 0 132px;
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.hero-bg img { object-fit: cover; object-position: 68% 42%; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background:
        linear-gradient(90deg, rgba(3, 19, 38, .96) 0%, rgba(3, 19, 38, .86) 26%, rgba(3, 19, 38, .45) 52%, rgba(3, 19, 38, .05) 74%, rgba(3, 19, 38, 0) 100%),
        linear-gradient(180deg, rgba(3, 19, 38, .55) 0%, rgba(3, 19, 38, 0) 22%, rgba(3, 19, 38, 0) 62%, rgba(3, 19, 38, .9) 92%, var(--navy-900) 100%);
}
.hero-content { position: relative; max-width: 720px; }
.status-pill {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 9px 16px; margin-bottom: 22px;
    background: rgba(3, 19, 38, .78); border: 1px solid var(--line-strong); border-radius: 999px;
    font-weight: 800; font-size: 14px; letter-spacing: .04em;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.status-pill .sep { width: 1px; height: 16px; background: var(--line-strong); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(255, 93, 98, .18); }
.is-online .status-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(32, 223, 143, .18); animation: pulse 2.2s ease-in-out infinite; }
.is-maintenance .status-dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 181, 71, .18); }
.is-online .status-text { color: var(--green); }
.is-offline .status-text { color: var(--red); }
.is-maintenance .status-text { color: var(--amber); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(32, 223, 143, .18); } 50% { box-shadow: 0 0 0 7px rgba(32, 223, 143, .05); } }
.hero h1 {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(38px, 4.6vw, 66px); line-height: 1.04; letter-spacing: -.01em;
    margin-bottom: 22px; text-shadow: 0 4px 24px rgba(0, 0, 0, .45);
}
.hero h1 .line-2 {
    display: block;
    background: linear-gradient(180deg, #ffe7a3 0%, var(--gold) 45%, #f0a020 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 3px 14px rgba(249, 195, 67, .18));
}
.hero-lead { font-size: clamp(16px, 1.45vw, 19px); color: #d6e3f4; max-width: 540px; margin-bottom: 30px; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-ctas .btn { min-width: 230px; }
.hero-ctas .btn-primary { animation: ctaGlow 3.6s ease-in-out infinite; }
@keyframes ctaGlow { 0%, 100% { box-shadow: 0 6px 18px rgba(255, 151, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .45); } 50% { box-shadow: 0 8px 30px rgba(255, 151, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .45); } }
.hero-features { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; color: #d6e3f4; font-weight: 700; font-size: 14px; }
.hero-features li { display: inline-flex; align-items: center; gap: 8px; }
.hero-features .icon { color: var(--blue-light); }
.invite-banner {
    display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 12px 16px;
    background: linear-gradient(90deg, rgba(255, 151, 0, .2), rgba(255, 151, 0, .05)); border: 1px solid rgba(255, 151, 0, .45);
    border-radius: var(--r); font-weight: 700;
}
.invite-banner .icon { color: var(--orange); width: 22px; height: 22px; }

/* Folhas decorativas (poucas, leves; somem com prefers-reduced-motion) */
.leaves { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.leaf {
    position: absolute; top: -40px; width: 22px; height: 22px; opacity: .85;
    background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff8a1f' d='M12 1.5l1.6 3.6 3.1-1.2-.6 3.7 3.8-.4-1.9 3 2.8 1.3-3.5 1.5 1 2.9-3.5-.9L12 18l-2.8-2.9-3.5.9 1-2.9-3.5-1.5 2.8-1.3-1.9-3 3.8.4-.6-3.7 3.1 1.2L12 1.5Z'/%3E%3Cpath stroke='%23b14a00' stroke-width='1' d='M12 18v4.5'/%3E%3C/svg%3E");
    animation: leafFall linear infinite;
    will-change: transform;
}
.leaf.gold { filter: hue-rotate(18deg) saturate(1.2) brightness(1.1); }
.leaf.red { filter: hue-rotate(-22deg) saturate(1.3); }
@keyframes leafFall {
    0% { transform: translate3d(0, -40px, 0) rotate(0deg); opacity: 0; }
    8% { opacity: .9; }
    50% { transform: translate3d(60px, 50vh, 0) rotate(200deg); }
    92% { opacity: .8; }
    100% { transform: translate3d(-30px, 105vh, 0) rotate(420deg); opacity: 0; }
}

/* ---------- Faixa de status / rates ---------- */
.stats-strip { position: relative; z-index: 3; margin-top: -92px; }
.stats-strip .container { max-width: 1480px; }
.stats-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.45fr) repeat(4, minmax(0, .88fr)); gap: 12px; }
.stat {
    display: flex; align-items: center; gap: 12px; min-height: 96px; padding: 14px 16px; min-width: 0;
    background: linear-gradient(180deg, rgba(10, 37, 70, .92), rgba(5, 24, 47, .94));
    border: 1px solid var(--line); border-radius: var(--r);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .04);
    -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
}
.stat-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(40, 184, 255, .1); border: 1px solid var(--line); }
.stat-icon .icon { width: 25px; height: 25px; }
.stat > div:not(.stat-icon):not(.players) { min-width: 0; }
.stat-label { font-size: 12.5px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: var(--text-dim); line-height: 1.25; }
.stat-value { font-family: var(--font-display); font-size: 26px; font-weight: 800; line-height: 1.05; color: var(--white); }
.stat-sub { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-mute); }
.stat.is-server .stat-value { color: var(--green); font-family: var(--font-body); font-size: 17px; font-weight: 900; letter-spacing: .03em; line-height: 1.2; }
.stat.is-server.off .stat-value { color: var(--red); }
.stat.is-server.maint .stat-value { color: var(--amber); }
.stat .players { margin-left: auto; text-align: right; padding-left: 12px; border-left: 1px solid var(--line); }
.stat .players b { display: block; font-family: var(--font-display); font-size: 26px; color: var(--white); line-height: 1; }
.stat .players span { font-size: 11px; font-weight: 900; letter-spacing: .06em; color: var(--text-mute); text-transform: uppercase; }
.exp-tiers { list-style: none; margin: 0; padding: 0; font-size: 13px; font-weight: 700; color: var(--text-dim); line-height: 1.45; }
.exp-tiers b { color: var(--gold); }
.c-green { color: var(--green); } .c-gold { color: var(--gold); } .c-orange { color: var(--orange); }
.c-pink { color: #ff7eb6; } .c-red { color: var(--red); } .c-blue { color: var(--blue-light); } .c-purple { color: var(--purple); }

/* ---------- Seções ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-title { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.section-title .icon { width: 34px; height: 34px; color: var(--orange); fill: rgba(255, 151, 0, .25); }
.section-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow { display: inline-block; font-weight: 900; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }

/* ---------- Cards ---------- */
.card {
    position: relative;
    background: linear-gradient(180deg, rgba(10, 37, 70, .82), rgba(5, 24, 47, .88));
    border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .04);
    padding: 24px;
}
.card-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 18px; font-weight: 900; margin-bottom: 16px; color: var(--white); }
.card-title .icon { color: var(--gold); width: 22px; height: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head .card-title { margin: 0; }
.card.is-accent { border-color: rgba(255, 151, 0, .45); background: linear-gradient(180deg, rgba(42, 30, 12, .55), rgba(5, 24, 47, .92)); }
.card.is-gold { border-color: rgba(249, 195, 67, .45); }
.card-leaf::before {
    content: ""; position: absolute; right: 14px; top: 12px; width: 38px; height: 38px; opacity: .14; pointer-events: none;
    background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff9700' d='M12 1.5l1.6 3.6 3.1-1.2-.6 3.7 3.8-.4-1.9 3 2.8 1.3-3.5 1.5 1 2.9-3.5-.9L12 18l-2.8-2.9-3.5.9 1-2.9-3.5-1.5 2.8-1.3-1.9-3 3.8.4-.6-3.7 3.1 1.2L12 1.5Z'/%3E%3C/svg%3E");
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-home { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: start; }

/* Feature cards ("Por que jogar") */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature {
    position: relative; overflow: hidden; display: flex; flex-direction: column;
    background: linear-gradient(180deg, rgba(10, 37, 70, .85), rgba(5, 24, 47, .92));
    border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.feature-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-750); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.feature:hover .feature-media img { transform: scale(1.04); }
.feature-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 24, 47, 0) 40%, rgba(5, 24, 47, .95)); }
.feature-body { position: relative; padding: 0 22px 22px; margin-top: -30px; z-index: 1; }
.feature-icon { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; background: linear-gradient(180deg, #0f3a6b, #082546); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); }
.feature-icon .icon { width: 28px; height: 28px; }
.feature h3 { font-family: var(--font-display); font-size: 24px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.feature p { color: var(--text-dim); margin: 0; }

/* Ranking compacto */
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.rank-item:last-child { border-bottom: 0; }
.rank-pos { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; background: rgba(138, 161, 194, .14); color: var(--text-dim); }
.rank-pos.p1 { background: linear-gradient(180deg, #ffe08a, #e0a91c); color: #3b2600; }
.rank-pos.p2 { background: linear-gradient(180deg, #eef3fb, #9fb1c9); color: #1f2e45; }
.rank-pos.p3 { background: linear-gradient(180deg, #ffbe8a, #c06a2b); color: #3b1a00; }
.rank-name { font-weight: 800; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-meta { font-size: 12.5px; color: var(--text-mute); font-weight: 700; }
.rank-level { font-weight: 900; color: var(--gold); white-space: nowrap; text-align: right; }
.rank-level small { display: block; font-size: 11px; color: var(--text-mute); font-weight: 800; }
/* Boneco do personagem + ícone da classe (ranking) */
.rank-item.has-avatar { grid-template-columns: 34px 72px minmax(0, 1fr) auto; }
/* A imagem do boneco vem com os PÉS no centro (Avatar::RENDER_MODE) e no tamanho real: o centro dela vai na
   linha dos pés e ninguém é encolhido — todos do mesmo tamanho. Arma/capa/efeito grande pode passar da caixa
   (fica por trás do texto). */
.rank-avatar { position: relative; display: block; width: 72px; height: 72px; flex: 0 0 auto; }
.rank-avatar img { position: absolute; left: 50%; top: 64px; display: block; width: auto; height: auto; max-width: none; max-height: none; transform: translate(-50%, -50%); image-rendering: pixelated; pointer-events: none; z-index: 0; }
.rank-item.has-avatar > :not(.rank-avatar) { position: relative; z-index: 1; }
/* o boneco do 1º lugar pode subir além da linha (asa, efeito): o título do card fica por cima dele */
.card-head { position: relative; z-index: 1; }
.rank-char { display: inline-flex; align-items: center; gap: 12px; }
.rank-job { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.job-ico { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: 0 0 20px; border-radius: 6px; margin-right: 6px; vertical-align: -5px; border: 1px solid transparent; }
.rank-job .job-ico { margin-right: 0; }
.job-ico .icon { width: 13px; height: 13px; }
.job-img { display: inline-block; width: 20px; height: 20px; image-rendering: pixelated; vertical-align: -5px; }
.rank-meta .job-img { margin-right: 6px; }
.job-ico.job-warrior { color: #ff9da0; background: rgba(255, 93, 98, .14); border-color: rgba(255, 93, 98, .35); }
.job-ico.job-magician { color: #8fd8ff; background: rgba(40, 184, 255, .14); border-color: rgba(40, 184, 255, .35); }
.job-ico.job-bowman { color: #7ff3c1; background: rgba(32, 223, 143, .13); border-color: rgba(32, 223, 143, .35); }
.job-ico.job-thief { color: #d6c2ff; background: rgba(180, 140, 255, .14); border-color: rgba(180, 140, 255, .35); }
.job-ico.job-pirate { color: #ffd08a; background: rgba(255, 181, 71, .14); border-color: rgba(255, 181, 71, .38); }
.job-ico.job-aran { color: #bfe3ff; background: rgba(138, 161, 194, .16); border-color: rgba(138, 161, 194, .38); }
.job-ico.job-beginner { color: #b8f08f; background: rgba(120, 200, 80, .13); border-color: rgba(120, 200, 80, .35); }
.job-ico.job-gm { color: var(--gold); background: rgba(249, 195, 67, .14); border-color: rgba(249, 195, 67, .38); }

/* Tiers */
.tier { font-weight: 900; white-space: nowrap; }
.tier-projeto { color: #ffd34d; } .tier-diamante { color: #7ff0ff; } .tier-ouro { color: #ffd700; }
.tier-prata { color: #d6dde8; } .tier-bronze { color: #e0965a; } .tier-latao { color: #b8865a; }

/* ---------- Tabelas ---------- */
.table-wrap { width: 100%; overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { position: sticky; top: 0; background: #0a2546; color: var(--text-dim); font-size: 12px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.table tbody tr:hover { background: rgba(40, 184, 255, .05); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .ctr { text-align: center; }

/* ---------- Formulários ---------- */
.field { margin-bottom: 16px; }
.field label, .label { display: block; margin-bottom: 7px; font-weight: 800; font-size: 14px; color: var(--text); }
.field .hint { display: block; margin-top: 6px; font-size: 13px; color: var(--text-mute); }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number], .field input[type=month], .field input[type=date], .field select, .field textarea, .select {
    width: 100%; min-height: 48px; padding: 12px 14px;
    font: 600 16px/1.3 var(--font-body); color: var(--white);
    background: rgba(2, 11, 24, .6); border: 1.5px solid var(--line-strong); border-radius: 12px;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: #6f86a8; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .select:focus { outline: none; border-color: var(--blue-light); box-shadow: var(--ring); background: rgba(2, 11, 24, .85); }
.field select option, .select option { background: var(--navy-800); color: var(--white); }
.input-group { display: flex; gap: 8px; align-items: stretch; }
.input-group .input { flex: 1 1 auto; min-width: 0; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 600; color: var(--text-dim); font-size: 14px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--orange); flex: 0 0 auto; }

/* ---------- Alertas ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 16px; border-radius: var(--r); border: 1px solid; font-weight: 600; font-size: 14.5px; line-height: 1.5; }
.alert .icon { width: 22px; height: 22px; margin-top: 1px; }
.alert-success { background: rgba(32, 223, 143, .1); border-color: rgba(32, 223, 143, .45); color: #b9f7da; }
.alert-success .icon { color: var(--green); }
.alert-error { background: rgba(255, 93, 98, .1); border-color: rgba(255, 93, 98, .5); color: #ffc7c9; }
.alert-error .icon { color: var(--red); }
.alert-warn { background: rgba(255, 181, 71, .1); border-color: rgba(255, 181, 71, .5); color: #ffe0b0; }
.alert-warn .icon { color: var(--amber); }
.alert-info { background: rgba(40, 184, 255, .08); border-color: rgba(40, 184, 255, .4); color: #c7ecff; }
.alert-info .icon { color: var(--blue-light); }
.alert a { color: #fff; text-decoration: underline; }

/* ---------- Progresso ---------- */
.progress { position: relative; height: 14px; border-radius: 999px; background: rgba(2, 11, 24, .7); border: 1px solid var(--line); overflow: hidden; }
.progress > span { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--orange), var(--gold)); box-shadow: 0 0 14px rgba(255, 151, 0, .45); transition: width .8s ease; }
.progress.is-blue > span { background: linear-gradient(90deg, var(--blue), var(--blue-light)); box-shadow: 0 0 12px rgba(40, 184, 255, .4); }
.progress.is-green > span { background: linear-gradient(90deg, #14b874, var(--green)); }
.progress-sm { height: 8px; }

/* ---------- Page hero (páginas internas) ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 56px 0 46px; border-bottom: 1px solid var(--line); }
.page-hero .hero-bg img { object-position: 60% 40%; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(3, 19, 38, .96), rgba(3, 19, 38, .78) 55%, rgba(3, 19, 38, .55)), linear-gradient(180deg, rgba(3, 19, 38, .2), var(--navy-900)); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: var(--text-dim); max-width: 680px; margin: 0; font-size: 17px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 800; color: var(--text-mute); margin-bottom: 14px; }
.breadcrumb a { color: var(--text-dim); }

/* ---------- Auth (login/cadastro/senha) ---------- */
.auth-wrap { position: relative; isolation: isolate; min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; justify-content: center; padding: 48px 16px 64px; overflow: hidden; }
.auth-wrap::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(800px 500px at 50% 40%, rgba(3, 19, 38, .55), rgba(3, 19, 38, .92)), linear-gradient(180deg, rgba(3, 19, 38, .3), var(--navy-900)); }
.auth-card { width: 100%; max-width: 460px; padding: 32px 30px 28px; border-radius: 22px; background: linear-gradient(180deg, rgba(10, 37, 70, .93), rgba(4, 22, 44, .96)); border: 1px solid var(--line-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.auth-card.is-wide { max-width: 540px; }
.auth-card h1 { font-family: var(--font-display); font-size: 30px; font-weight: 800; margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.auth-card h1 .icon { color: var(--orange); width: 28px; height: 28px; }
.auth-sub { color: var(--text-dim); margin-bottom: 22px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-weight: 800; font-size: 14px; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--text-mute); font-weight: 700; font-size: 14px; }
.terms-box { max-height: 150px; overflow-y: auto; padding: 12px 14px; margin-bottom: 14px; border-radius: 12px; background: rgba(2, 11, 24, .55); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }

/* ---------- Abas (painel) ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; margin-bottom: 22px; background: rgba(2, 11, 24, .5); border: 1px solid var(--line); border-radius: 16px; }
.tab { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--text-dim); font: 800 14.5px/1.1 var(--font-body); cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s; }
.tab:hover { color: #fff; background: rgba(40, 184, 255, .08); }
.tab.active { color: #2a1500; background: linear-gradient(180deg, #ffb43a, var(--orange)); border-color: #ffb347; }
.tab.is-admin { color: #ff9da0; }
.content { display: none; }
.content.active { display: block; animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Doação (pacotes) ---------- */
.wallet-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.wallet { padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(2, 11, 24, .45); }
.wallet small { display: block; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--text-mute); }
.wallet b { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 24px; color: var(--white); }
.wallet.is-gold b { color: var(--gold); } .wallet.is-blue b { color: var(--blue-light); } .wallet.is-green b { color: var(--green); } .wallet.is-orange b { color: var(--orange); } .wallet.is-purple b { color: var(--purple); }
.packages-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.pack-card { position: relative; padding: 18px; border-radius: var(--r); cursor: pointer; background: linear-gradient(180deg, rgba(12, 41, 78, .8), rgba(5, 24, 47, .9)); border: 1.5px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s; }
.pack-card:hover:not(.disabled-pack), .pack-card:focus-visible { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); outline: none; }
.pack-card.selected-pack { border-color: var(--orange) !important; box-shadow: 0 0 0 3px rgba(255, 151, 0, .25), var(--shadow-sm); }
.pack-card.selected-pack::after { content: "✓"; position: absolute; top: -10px; right: -8px; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--orange); color: #2a1500; font-weight: 900; }
.pack-card h4 { margin: 0 0 4px; font-size: 17px; color: var(--white); }
.pack-card .price { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--gold); margin: 4px 0 8px; }
.pack-card ul { list-style: none; padding: 0; margin: 0; font-size: 13.5px; color: var(--text-dim); }
.pack-card li { padding: 3px 0; }
.pack-card .tag { position: absolute; top: -10px; left: 14px; }
.disabled-pack { opacity: .5; cursor: not-allowed; filter: grayscale(.6); }
.nx-result-box { text-align: center; padding: 18px; margin: 16px 0; border-radius: var(--r); border: 1px dashed var(--line-strong); background: rgba(2, 11, 24, .45); }
.nx-value { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--gold); }
.cashback-box { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; margin: 4px 0 16px; border-radius: var(--r); border: 1px solid rgba(32, 223, 143, .45); background: rgba(32, 223, 143, .07); }
.cashback-box .icon { color: var(--green); width: 24px; height: 24px; margin-top: 2px; }
.cashback-box .calc { font-size: 13.5px; color: var(--text-dim); margin-top: 6px; }
.qr-box { text-align: center; }
.qr-box img { margin: 0 auto 12px; background: #fff; padding: 8px; border-radius: 12px; }
.qr-box textarea { width: 100%; min-height: 84px; font: 600 12px/1.4 Consolas, monospace; color: var(--text); background: rgba(2, 11, 24, .6); border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px; }

/* Modal simples (avisos do painel) */
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(1, 7, 16, .78); }
.modal.is-open { display: flex; }
.modal-card { width: 100%; max-width: 440px; padding: 26px; border-radius: 20px; background: var(--surface-solid); border: 1px solid var(--line-strong); box-shadow: var(--shadow); text-align: center; }
.modal-card h2 { font-size: 22px; display: flex; gap: 10px; align-items: center; justify-content: center; }
.modal-card.is-danger { border-color: rgba(255, 93, 98, .7); }
.modal-card.is-warn { border-color: rgba(255, 181, 71, .7); }

/* ---------- Indique e Ganhe ---------- */
.ref-hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: center; }
.reward-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.reward-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(5, 24, 47, .82); }
.reward-card .ri { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: rgba(255, 151, 0, .12); border: 1px solid rgba(255, 151, 0, .35); }
.reward-card h3 { font-size: 15px; font-weight: 900; margin: 0 0 4px; color: var(--text-dim); letter-spacing: .02em; }
.reward-card b { display: block; font-family: var(--font-display); font-size: 21px; color: var(--gold); line-height: 1.2; }
.reward-card p { margin: 6px 0 0; color: var(--text-dim); font-size: 13.5px; }
.link-box { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.link-box .input { flex: 1 1 280px; font-family: Consolas, 'Courier New', monospace; font-size: 15px; color: #bfe8ff; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(5, 24, 47, .82); }
.kpi small { display: block; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--text-mute); min-height: 2.5em; }
.kpi b { display: block; margin-top: 6px; font-family: var(--font-display); font-size: 28px; color: var(--white); line-height: 1.05; }
.kpi b.is-gold { color: var(--gold); } .kpi b.is-green { color: var(--green); } .kpi b.is-orange { color: var(--orange); }
.milestone { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.milestone-count { font-family: var(--font-display); font-size: 44px; font-weight: 800; line-height: 1; color: var(--gold); white-space: nowrap; }
.milestone-count small { font-size: 22px; color: var(--text-mute); }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding-left: 46px; color: var(--text-dim); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 900; background: rgba(255, 151, 0, .14); color: var(--orange); border: 1px solid rgba(255, 151, 0, .4); }
.steps b { color: var(--white); }
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.notice-list li:last-child { border-bottom: 0; }
.notice-list .icon { color: var(--gold); width: 20px; height: 20px; margin-top: 3px; }
.notice-list .is-new .icon { color: var(--orange); }
.notice-list time { display: block; font-size: 12px; color: var(--text-mute); font-weight: 700; }
.disclaimer { font-size: 13.5px; color: var(--text-mute); }
.empty { text-align: center; padding: 28px 12px; color: var(--text-mute); }
.empty .icon { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--line-strong); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(3, 19, 38, .6), var(--navy-950)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; padding-top: 44px; padding-bottom: 28px; }
.footer-brand img { width: 170px; height: auto; margin-bottom: 12px; }
.footer-brand p, .footer-col p { color: var(--text-mute); font-size: 14px; }
.footer-col h2 { font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
.footer-col a:not(.btn) { display: block; padding: 4px 0; color: var(--text-dim); font-weight: 700; font-size: 14.5px; }
.footer-col a:not(.btn):hover { color: #fff; }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-dim); }
.social a:hover { color: #fff; border-color: var(--line-strong); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-mute); }

/* ---------- Aparecer ao rolar (só com JS; sem JS tudo visível) ---------- */
/* Só esconde depois que o site.js iniciou (se o JS falhar, tudo continua visível). */
.reveal-on .reveal { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; }
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 400; transform: translate(-50%, 140%); padding: 12px 18px; border-radius: 12px; background: var(--surface-solid); border: 1px solid rgba(32, 223, 143, .55); color: #c9f9e3; font-weight: 800; box-shadow: var(--shadow); transition: transform .3s ease; display: flex; gap: 8px; align-items: center; }
.toast.is-shown { transform: translate(-50%, 0); }

/* =====================================================================
   Responsivo
   ===================================================================== */
@media (max-width: 1280px) {
    .nav-link { padding: 0 9px; font-size: 14.5px; }
    .nav-link .icon { display: none; }
    .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .stats-grid .stat.is-server { grid-column: span 2; }
    .stats-grid .stat.is-exp { grid-column: span 2; }
    .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
    :root { --header-h: 68px; }
    /* backdrop-filter criaria um bloco de contenção para o menu position:fixed */
    .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(3, 19, 38, .985); }
    .brand { padding: 6px 14px 9px; }
    .brand img { width: 160px; }
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
        flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 18px;
        padding: 18px 20px 28px; overflow-y: auto;
        background: rgba(3, 19, 38, .985); border-top: 1px solid var(--line);
        opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none;
        transition: opacity .22s ease, transform .22s ease, visibility .22s;
    }
    .site-nav.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav-link { height: auto; min-height: 50px; padding: 12px 14px; border-radius: 12px; font-size: 16px; }
    .nav-link .icon { display: block; }
    .nav-link.is-active { background: rgba(255, 151, 0, .1); }
    .nav-link.is-active::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
    .nav-actions { flex-direction: column; align-items: stretch; }
    .nav-actions .btn { width: 100%; }
    .account-menu .dropdown { position: static; display: block; margin-top: 8px; box-shadow: none; }
    .account-menu .btn-account { display: none; }
    .grid-home { grid-template-columns: 1fr; }
    .ref-hero-grid { grid-template-columns: 1fr; }
    body.nav-open { overflow: hidden; }
}
@media (max-width: 900px) {
    .features, .grid-3, .reward-cards { grid-template-columns: 1fr; }
    .feature { display: grid; grid-template-columns: 180px 1fr; }
    .feature-media { aspect-ratio: auto; height: 100%; min-height: 170px; }
    .feature-media::after { background: linear-gradient(90deg, rgba(5, 24, 47, 0) 50%, rgba(5, 24, 47, .95)); }
    .feature-body { margin-top: 0; padding: 18px; }
    .grid-2, .grid-4 { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero::before {
        background:
            linear-gradient(180deg, rgba(3, 19, 38, .55) 0%, rgba(3, 19, 38, .78) 40%, rgba(3, 19, 38, .9) 75%, var(--navy-900) 100%);
    }
}
@media (max-width: 720px) {
    .container { padding: 0 16px; }
    .hero { min-height: 0; padding: 40px 0 120px; text-align: left; }
    .hero-bg img { object-position: 62% 30%; }
    .hero-ctas .btn { flex: 1 1 100%; min-width: 0; }
    .stats-strip { margin-top: -84px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stats-grid .stat.is-server, .stats-grid .stat.is-exp { grid-column: 1 / -1; }
    .stat { min-height: 84px; padding: 14px; gap: 12px; }
    .stat-icon { width: 40px; height: 40px; flex-basis: 40px; }
    .stat-value { font-size: 22px; }
    .section { padding: 44px 0; }
    .feature { grid-template-columns: 1fr; }
    .feature-media { aspect-ratio: 16 / 8; min-height: 0; }
    .feature-media::after { background: linear-gradient(180deg, rgba(5, 24, 47, 0) 40%, rgba(5, 24, 47, .95)); }
    .grid-2, .grid-4 { grid-template-columns: 1fr; }
    .kpis { grid-template-columns: 1fr 1fr; }
    .kpi b { font-size: 24px; }
    .card { padding: 18px; border-radius: 16px; }
    .auth-card { padding: 24px 18px 22px; }
    .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .tabs::-webkit-scrollbar { display: none; }
    .tab { flex: 0 0 auto; }
    .footer-grid { grid-template-columns: 1fr; }
    .milestone { grid-template-columns: 1fr; gap: 10px; }
    .page-hero { padding: 38px 0 30px; }
    /* Tabela vira cartões no celular */
    .table-cards thead { display: none; }
    .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
    .table-cards tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
    .table-cards td { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border: 0; text-align: right; }
    .table-cards td::before { content: attr(data-label); font-size: 12px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: var(--text-mute); text-align: left; }
    .table-cards td.num, .table-cards td.ctr { text-align: right; }
}
@media (max-width: 720px) {
    .rank-item.has-avatar { grid-template-columns: 30px 56px minmax(0, 1fr) auto; gap: 10px; }
    .rank-avatar { width: 56px; height: 60px; }
    .rank-avatar img { top: 54px; transform: translate(-50%, -50%) scale(.8); image-rendering: auto; }
}
@media (max-width: 380px) {
    .stats-grid { grid-template-columns: 1fr; }
    .kpis { grid-template-columns: 1fr; }
}

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .leaves { display: none; }
    .reveal-on .reveal { opacity: 1; transform: none; }
}
