/* ── VARIÁVEIS INSPIRADAS NA ARIA ── */
:root {
    --primary: #F2752A; /* Laranja da pelagem */
    --primary-light: #FF9A6C; 
    --gold: #FFC857; /* Dourado quente para destacar os botões */
    --secondary: #6B345D; /* Roxo escuro do moletom*/
    --accent: #5865F2; /* Blurple, a cor tema do Discord */
    --accent-light: #8C99FF; /* Variante clara do blurple para texto/detalhes */
    
    --bg-deep: #0D0612; /* Fundo principal super escuro e levemente roxo */
    --bg-surface: #1B1023; /* Fundo de cartões */
    --bg-glass: rgba(27, 16, 35, 0.65); /* Efeito vidro focado */
    
    --text-main: #F4EEF5; /* Branco suave de contraste */
    --text-muted: #AFA5B5; /* Texto secundário */
    
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(242, 117, 42, 0.2);

    --band-bg: rgba(43, 24, 58, 0.78);
    /* Stats: mesma família do resto da página, só um pouco mais leve */
    --stats-bg: rgba(32, 18, 46, 0.55);
    --wave-h: 28px;
    /* Onda mais suave e baixa para a transição home ↔ estatísticas */
    --wave-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 24' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 12C180 20 300 4 480 12s300-8 480 0 300 8 480 0v12H0Z'/%3E%3C/svg%3E");
    --wave-edge-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 24' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0h1440v12c-180 8-300-8-480 0s-300 8-480 0S180 4 0 12Z'/%3E%3C/svg%3E");
    
    --gradient-1: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-btn: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Sora', sans-serif;
    background: var(--bg-deep);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.7;
    font-size: 1rem;
    cursor: none;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(242, 117, 42, 0.5) rgba(13, 6, 18, 0.85);
}

/* ── SCROLLBAR ── */
*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
*::-webkit-scrollbar-track {
    background: rgba(13, 6, 18, 0.85);
}
*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #F2752A 0%, #6B345D 100%);
    border-radius: 999px;
    border: 1px solid #0d0612;
    min-height: 40px;
}
*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FF9A6C 0%, #5865F2 100%);
}
*::-webkit-scrollbar-corner {
    background: #0d0612;
}

/* ── CURSOR PATINHA ── */
* { cursor: none !important; }
input { cursor: text !important; }

.cursor {
    position: fixed;
    width: 44px;
    height: 44px; 
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                height 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                filter 0.3s ease, transform 0.1s ease-out;
    filter: drop-shadow(0 4px 8px rgba(242, 117, 42, 0.4));
}

.cursor svg { width: 100%; height: 100%; }

.cursor.hover {
    width: 58px;
    height: 58px; 
    transform: translate(-50%, -50%) rotate(-12deg) scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(242, 117, 42, 0.6)) drop-shadow(0 0 20px rgba(176, 82, 209, 0.4));
}

/* ── TIPOGRAFIA & DESTAQUES ── */
.aria-name-styled {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    background: var(--gradient-1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.02em;
    display: inline-block;
}

h1, h2, h3 { line-height: 1.2; }

.section-title {
    font-family: 'Caveat', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ── BACKGROUND ANIMADO (BLOBS) ── */
#particles-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.bg-blobs {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-deep);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: moveBlob 25s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    background: var(--secondary);
    animation-delay: 0s;
}
.blob-2 {
    bottom: -20%; right: -10%;
    width: 60vw; height: 60vw;
    background: rgba(242, 117, 42, 0.15);
    animation-delay: -5s;
    animation-duration: 30s;
}
.blob-3 {
    top: 30%; left: 40%;
    width: 40vw; height: 40vw;
    background: rgba(176, 82, 209, 0.15);
    animation-delay: -10s;
    animation-duration: 20s;
}

@keyframes moveBlob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10%, 15%) scale(1.1); }
    100% { transform: translate(-10%, 5%) scale(0.9); }
}

/* ── TOAST DE SUCESSO (TOPO) ── */
.top-toast {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(12, 28, 18, 0.92);
    border-bottom: 1px solid rgba(76, 217, 123, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease;
}
.top-toast.is-visible {
    max-height: 56px;
    opacity: 1;
    padding: 0.7rem 1rem;
    pointer-events: auto;
}
.top-toast.is-leaving {
    max-height: 0;
    opacity: 0;
    padding: 0 1rem;
}
.top-toast-text {
    font-family: 'Sora', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: #4CD97B;
    text-align: center;
}

/* ── NAVBAR ── */
nav {
    position: fixed;
    top: 0; width: 100%;
    background: transparent;
    padding: 1.2rem 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: background 0.35s ease,
                padding 0.35s ease,
                box-shadow 0.35s ease,
                border-color 0.35s ease,
                backdrop-filter 0.35s ease,
                -webkit-backdrop-filter 0.35s ease;
}
nav.scrolled { 
    background: rgba(13, 6, 18, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.8rem 0;
    border-bottom-color: rgba(255, 255, 255, 0.04);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
nav .container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.logo {
    font-size: 2.5rem;
    line-height: 1;
    z-index: 2;
    margin-left: 1rem;
}
a.logo {
    color: inherit;
    text-decoration: none;
}
.nav-end {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: auto;
    z-index: 2;
    position: relative;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    transform: translateX(calc(-42vw + 220px));
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1),
                gap 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
nav.scrolled .nav-links {
    transform: translateX(0);
    gap: 1.35rem;
}
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    height: 40px;
    transition: color 0.3s ease;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 8px; left: 50%;
    width: 0; height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}
.nav-links a:hover { color: var(--primary-light); }
.nav-links a:hover::after { width: 100%; }

.nav-auth {
    display: flex;
    align-items: center;
    margin-left: 0;
    min-height: 40px;
}
.nav-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    height: 40px;
    padding: 0 1.05rem;
    border-radius: 999px;
    border: 1px solid rgba(88, 101, 242, 0.55);
    background: linear-gradient(135deg, #5865F2 0%, #7289DA 100%);
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.25);
}
.nav-login-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 10px 24px rgba(88, 101, 242, 0.35);
}
.nav-login-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-login-label-short { display: none; }

/* Botão hamburger (visível só no mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    position: relative;
    z-index: 1002;
    transition: background 0.25s ease, border-color 0.25s ease;
}
.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(8, 4, 12, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}
body.nav-open {
    overflow: hidden;
}

.nav-user-chip {
    display: none;
    position: relative;
    align-items: center;
}
.nav-user-chip.is-visible { display: inline-flex; }
.nav-user-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-user-trigger:hover,
.nav-user-trigger[aria-expanded="true"] {
    transform: translateY(-1px);
    box-shadow: 0 0 0 2px #5865F2;
}
.nav-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.14);
    background: #1e1f22;
    display: block;
}
.nav-user-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    z-index: 1200;
    width: 340px;
    padding: 0 0 8px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.45);
    background: #111214;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 1px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: navUserMenuIn 0.18s ease-out;
}
.nav-user-menu[hidden] { display: none !important; }
@keyframes navUserMenuIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.nav-user-banner {
    height: 72px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 50%, #3c45a5 100%);
    background-size: cover;
    background-position: center;
}
.nav-user-banner.has-color {
    background-image: none;
}
.nav-user-banner.has-image {
    background-color: #1e1f22;
}
.nav-user-header {
    display: flex;
    align-items: flex-end;
    padding: 0 16px;
    margin-top: -38px;
    position: relative;
}
.nav-user-menu-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 7px solid #111214;
    background: #1e1f22;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}
.nav-user-card {
    margin: 10px 12px 0;
    padding: 12px;
    border-radius: 8px;
    background: #232428;
}
.nav-user-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1.3;
}
.nav-user-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f2f3f5;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-user-plan {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #b5bac1;
    background: #1e1f22;
    border: 1px solid #2b2d31;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
}
.nav-user-plan.is-premium {
    color: #f0b132;
    background: rgba(240, 177, 50, 0.12);
    border-color: rgba(240, 177, 50, 0.35);
}
.nav-user-menu-panel {
    margin: 8px 12px 0;
    padding: 6px;
    border-radius: 8px;
    background: #232428;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nav-user-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 38px;
    padding: 0 0.65rem;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: #dbdee1;
    font-family: 'Sora', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}
.nav-user-menu-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.95;
}
.nav-user-menu-item:hover {
    background: #5865F2;
    color: #fff;
}
.nav-user-menu-item.is-danger:hover {
    background: #da373c;
    color: #fff;
}
.nav-user-menu-divider {
    height: 1px;
    margin: 4px 6px;
    background: rgba(255, 255, 255, 0.06);
}
.nav-user-menu-item[hidden] {
    display: none !important;
}

.auth-waiting {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 4, 12, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.auth-waiting.is-visible { display: flex; }
.auth-waiting-card {
    width: min(360px, calc(100vw - 2rem));
    padding: 2.2rem 1.8rem 1.6rem;
    border-radius: 22px;
    border: 1px solid var(--border-glass);
    background: linear-gradient(180deg, rgba(40, 24, 52, 0.95), rgba(22, 12, 32, 0.98));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    text-align: center;
}
.auth-doughnut {
    width: 76px;
    height: 76px;
    margin: 0 auto 1.35rem;
    border-radius: 50%;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.06);
    border-top-color: var(--primary);
    border-right-color: #FFC857;
    box-shadow:
        0 0 0 1px rgba(242, 117, 42, 0.08),
        0 0 28px rgba(242, 117, 42, 0.22);
    animation: auth-spin 0.8s linear infinite;
}
.auth-doughnut::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-bottom-color: var(--accent);
    border-left-color: var(--primary-light);
    animation: auth-spin 1.15s linear infinite reverse;
}
.auth-doughnut::after {
    content: '';
    position: absolute;
    inset: 22px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 117, 42, 0.35) 0%, transparent 70%);
    animation: auth-glow 1.4s ease-in-out infinite alternate;
}
@keyframes auth-spin {
    to { transform: rotate(360deg); }
}
@keyframes auth-glow {
    from { opacity: 0.45; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1.08); }
}
.auth-waiting-card h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.45rem;
}
.auth-waiting-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.3rem;
    line-height: 1.5;
}
.auth-waiting-cancel {
    height: 38px;
    padding: 0 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-muted);
    font-family: 'Sora', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}
.auth-waiting-cancel:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.22);
}

/* ── MODAL DE SERVIDORES ── */
.guild-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.guild-modal.is-visible { display: flex; }
.guild-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 4, 12, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.guild-modal-card {
    position: relative;
    z-index: 1;
    width: min(720px, calc(100vw - 2rem));
    max-height: min(88vh, 780px);
    overflow: auto;
    padding: 2.4rem 2rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    background: linear-gradient(180deg, rgba(40, 24, 52, 0.97), rgba(18, 10, 28, 0.99));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
    text-align: center;
}
.guild-modal-close {
    position: absolute;
    top: 0.85rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}
.guild-modal-close:hover {
    color: var(--text-main);
    background: rgba(242, 117, 42, 0.18);
}
.guild-modal-view h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}
.guild-modal-hint {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    line-height: 1.5;
}
.guild-modal-empty {
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 2rem 0.5rem;
}
.guild-balloon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.35rem 1rem;
    justify-items: center;
}
.guild-balloon {
    width: 100%;
    max-width: 128px;
    padding: 0.45rem 0.25rem;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    transition: transform 0.2s ease;
}
.guild-balloon:hover,
.guild-balloon:focus-visible {
    transform: translateY(-4px);
    outline: none;
}
.guild-balloon-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.12);
    background: var(--bg-surface);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.guild-balloon:hover .guild-balloon-avatar,
.guild-balloon:focus-visible .guild-balloon-avatar {
    border-color: rgba(242, 117, 42, 0.65);
    box-shadow: 0 12px 30px rgba(242, 117, 42, 0.3);
}
.guild-balloon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}
.guild-balloon-name {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.guild-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
}
.guild-modal-actions .btn {
    min-width: 160px;
    padding: 0.85rem 1.4rem;
    font-size: 0.88rem;
}

/* ── BOTÕES MODERNOS ── */
.btn {
    padding: 1rem 2.2rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.3s ease,
                filter 0.3s ease,
                background 0.3s ease,
                border-color 0.3s ease;
    border: none;
    cursor: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    isolation: isolate;
    z-index: 1;
}
.btn-primary {
    background: linear-gradient(135deg, #E86A1F 0%, #F2752A 42%, #E8A020 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(232, 106, 31, 0.38);
}
.btn-primary:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);
    box-shadow: 0 12px 32px rgba(232, 106, 31, 0.5);
}
.btn-secondary {
    background: rgba(27, 16, 35, 0.85);
    color: var(--text-main);
    border: 1px solid rgba(242, 117, 42, 0.45);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(242, 117, 42, 0.14);
    transform: translateY(-3px);
}
.btn:disabled,
.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none;
    filter: none !important;
}
.btn.is-loading {
    opacity: 1 !important;
    pointer-events: none;
    min-height: 3.2rem;
}
.btn.is-loading .btn-spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.22);
    border-top-color: #fff;
    border-right-color: #FFC857;
    animation: auth-spin 0.7s linear infinite;
    flex-shrink: 0;
}
.btn-secondary.is-loading .btn-spinner {
    border-color: rgba(242, 117, 42, 0.2);
    border-top-color: var(--primary);
    border-right-color: var(--accent-light);
}
.nav-user-menu-item.is-loading {
    justify-content: center;
    pointer-events: none;
    opacity: 0.85;
}
.nav-user-menu-item.is-loading .btn-spinner {
    display: inline-block;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-right-color: #8C99FF;
    animation: auth-spin 0.7s linear infinite;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.plan-cta[hidden] {
    display: none !important;
}

@media (hover: none), (pointer: coarse) {
    body,
    * {
        cursor: auto !important;
    }
    input,
    textarea,
    select {
        cursor: text !important;
    }
    .cursor {
        display: none !important;
    }
}

/* ── SECÇÃO HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 5.5rem;
    position: relative;
    z-index: 1;
    overflow: visible;
}
/* Transição home → estatísticas: a onda sólida vem da máscara da .stats */
.hero::after {
    display: none;
}
.hero-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
/* Filtro roxo suave sobre o fundo da home */
.hero-atmosphere::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(88, 101, 242, 0.05);
    pointer-events: none;
}
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.4;
}
.hero-glow-left {
    width: min(48vw, 520px);
    height: min(48vw, 520px);
    left: -8%;
    top: 18%;
    background: rgba(88, 101, 242, 0.18);
}
.hero-glow-right {
    width: min(42vw, 420px);
    height: min(42vw, 420px);
    right: 4%;
    top: 22%;
    background: rgba(242, 117, 42, 0.12);
}
.hero .container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-content {
    align-self: center;
    transform: translate(-10px, -1.5rem);
    max-width: 620px;
}
.hero-content h1 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 3.85rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}
.hero-content h1 .aria-name-styled {
    font-size: 4.9rem;
    margin-left: 3px;
}
.hero-content .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    line-height: 1.65;
}
.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.55rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}
.cta-buttons .btn {
    font-size: 1.02rem;
    padding: 0.95rem 1.55rem;
}

/* ── HERO IMAGE ── */
.hero-image-wrapper {
    position: relative;
    animation: fadeInRight 1s ease-out 0.3s both;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 420px;
    overflow: visible;
}
.hero-image {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    filter: drop-shadow(0 12px 28px rgba(0,0,0,0.35));
    will-change: transform;
    animation: floatAria 6s ease-in-out infinite;
    overflow: visible;
}
.hero-image-floor {
    position: absolute;
    left: 43%;
    bottom: 2px;
    width: 96%;
    height: 72px;
    transform: translate(-50%, calc(58% - 2px));
    background: radial-gradient(ellipse at center,
        rgba(242, 117, 42, 0.7) 0%,
        rgba(242, 117, 42, 0.38) 28%,
        rgba(242, 117, 42, 0.16) 48%,
        rgba(107, 52, 93, 0.1) 62%,
        transparent 78%);
    border-radius: 50%;
    filter: blur(20px);
    z-index: 0;
    pointer-events: none;
}
.hero-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
}
.hero-scroll-hint {
    position: fixed;
    left: 50%;
    bottom: max(1.25rem, calc(env(safe-area-inset-bottom, 0px) + 1rem));
    transform: translateX(-50%);
    z-index: 40;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
    pointer-events: auto;
    transition: color 0.25s ease, opacity 0.35s ease, visibility 0.35s ease;
}
.hero-scroll-hint.is-away {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.hero-scroll-hint:hover {
    color: var(--primary-light);
    opacity: 1;
}
.hero-scroll-hint.is-away:hover {
    opacity: 0;
}
.hero-scroll-chevron {
    width: 12px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    animation: heroScrollBounce 1.6s ease-in-out infinite;
}
@keyframes heroScrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.55; }
    50% { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}

@keyframes pulseBg {
    0% { transform: scale(0.9); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; }
}
@keyframes floatAria {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ── DICA BANNER ── */
.tip-banner-wrapper {
    padding: 0 2rem;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
}
.tip-banner {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}
.tip-banner .icon {
    font-size: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tip-banner p {
    color: var(--text-main);
    font-size: 0.9rem;
    margin: 0;
}
.tip-banner strong { color: var(--primary-light); font-family: 'IBM Plex Mono', monospace;}

/* ── FEATURES (RECURSOS) ── */
.features {
    padding: 8rem 2rem;
    position: relative;
    z-index: 1;
}
.features .container { max-width: 1200px; width: 100%; margin: 0 auto; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.feature-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 100%;
    background: var(--gradient-glass);
    z-index: 0;
    pointer-events: none;
}
.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-accent);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3), 0 0 20px rgba(242, 117, 42, 0.1);
}
.feature-icon { 
    font-size: 2.5rem; 
    margin-bottom: 1.5rem; 
    position: relative; 
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}
.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
    position: relative;
    z-index: 1;
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ── SECÇÕES COM FUNDO + ONDAS ── */
.section-band {
    position: relative;
    z-index: 2;
    background: var(--band-bg);
    border: none;
    /* Máscara: onda suave em cima + corpo + onda em baixo */
    -webkit-mask-image:
        var(--wave-edge),
        linear-gradient(#000 0 0),
        var(--wave-edge-bottom);
    mask-image:
        var(--wave-edge),
        linear-gradient(#000 0 0),
        var(--wave-edge-bottom);
    -webkit-mask-position: top, center, bottom;
    mask-position: top, center, bottom;
    -webkit-mask-size: 100% var(--wave-h), 100% calc(100% - (var(--wave-h) * 2 - 2px)), 100% var(--wave-h);
    mask-size: 100% var(--wave-h), 100% calc(100% - (var(--wave-h) * 2 - 2px)), 100% var(--wave-h);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}
.stats.section-band {
    background: var(--stats-bg);
    margin-top: calc(var(--wave-h) * -1);
    /* Mais espaço em baixo p/ compensar a onda e centrar os cards */
    padding-top: calc(2.6rem + var(--wave-h));
    padding-bottom: calc(2.5rem + var(--wave-h));
    overflow: hidden;
    isolation: isolate;
}
/* Vinheta suave nas ondas — funde com o fundo da página (sem glow neon) */
.stats.section-band::before,
.stats.section-band::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: calc(var(--wave-h) * 5);
    pointer-events: none;
    z-index: 0;
}
.stats.section-band::before {
    top: 0;
    background: linear-gradient(
        to bottom,
        rgba(13, 6, 18, 0.72) 0%,
        rgba(27, 16, 35, 0.28) 40%,
        rgba(43, 24, 58, 0.08) 70%,
        transparent 100%
    );
}
.stats.section-band::after {
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(13, 6, 18, 0.72) 0%,
        rgba(27, 16, 35, 0.28) 40%,
        rgba(43, 24, 58, 0.08) 70%,
        transparent 100%
    );
}

/* ── ESTATÍSTICAS ── */
.stats {
    padding-left: 2rem;
    padding-right: 2rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.stat-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-accent);
}
.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ── COMANDOS ── */
.commands {
    padding: 6rem 2rem 5rem;
    position: relative;
    z-index: 1;
}
.commands .container { max-width: 1200px; width: 100%; margin: 0 auto; }

/* ── PESQUISA DE COMANDOS ── */
.cmd-search-wrapper {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    position: relative;
}
.cmd-search {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    border-radius: 100px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.cmd-search:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 15px rgba(242, 117, 42, 0.2);
}
.cmd-search::placeholder {
    color: rgba(175, 165, 181, 0.5);
}
.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 10; /* Mantém o ícone visível acima do input com backdrop-filter */
}

/* ── COMPORTAMENTO DE PESQUISA ATIVA ── */
.commands.searching .cmd-tabs { display: none; }
.commands.searching .cmd-panel { display: block; animation: none; }
.commands.searching .command-item { display: none; }
.commands.searching .command-item.match { display: flex; animation: fadeIn 0.4s ease; }

/* Abas Estilo Pill Moderno */
.cmd-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.55rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 3.5rem;
    background: rgba(255,255,255,0.02);
    padding: 0.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-glass);
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
}
.cmd-tab {
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.86rem;
    cursor: none;
    transition: all 0.3s ease;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.cmd-tab:hover { color: var(--text-main); background: rgba(255,255,255,0.05); }
.cmd-tab.active {
    background: var(--bg-surface);
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.08);
}
.cmd-tab:focus {
    outline: none;
}
.cmd-tab:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.cmd-panel { display: none; }
.cmd-panel.active { display: block; animation: fadeIn 0.4s ease; }

.command-list { display: grid; gap: 1rem; }

.command-item {
    background: var(--bg-glass);
    backdrop-filter: blur(7px);
    padding: 1.0rem;
    border-radius: 100px;
    border: 1px solid var(--border-glass);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.command-item:hover {
    transform: translateX(6px);
    border-color: rgba(176, 82, 209, 0.3);
    background: rgba(27, 16, 35, 0.8);
}
.command-item .cmd-icon {
    font-size: 1.8rem;
    padding: 2px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.03);
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 30px;
}
.command-item .cmd-body {
    flex: 1;
    min-width: 0;
}
.command-item code {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--primary-light);
    font-size: 1rem;
    font-weight: 600;
    background: rgba(242, 117, 42, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    display: inline;
    margin-bottom: 0;
    margin-right: 0.35rem;
    line-height: 1.7;
    white-space: nowrap;
}
.command-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0.35rem 0 0;
}
.cmd-legend {
    position: relative;
    display: grid;
    gap: 1rem;
    margin: 0 auto 2rem;
    max-width: 960px;
    padding: 1.35rem 1.4rem 1.45rem;
    background:
        linear-gradient(145deg, rgba(242, 117, 42, 0.10), rgba(176, 82, 209, 0.06) 45%, rgba(64, 140, 220, 0.08)),
        rgba(18, 12, 28, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.cmd-legend::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #8FD99A, #D68CF0, #7EC4FF);
    border-radius: 20px 0 0 20px;
}
.cmd-legend-title {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    letter-spacing: 0.01em;
}
.cmd-legend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.cmd-legend-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-muted);
    padding: 0.85rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    min-height: 100%;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.cmd-legend-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(242, 117, 42, 0.28);
    transform: translateY(-2px);
}
.cmd-legend-item .cmd-badge {
    margin-left: 0;
    flex-shrink: 0;
    margin-top: 0;
}
.cmd-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-left: 0;
    max-width: 100%;
    vertical-align: middle;
}
.cmd-badge {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    padding: 0.2rem 0.55rem;
    border-radius: 100px;
    vertical-align: middle;
    font-weight: 600;
    white-space: nowrap;
    max-width: 100%;
}
.badge-free { background: rgba(110, 168, 120, 0.15); color: #8FD99A; border: 1px solid rgba(110, 168, 120, 0.35); }
.badge-premium { background: rgba(176, 82, 209, 0.15); color: #D68CF0; border: 1px solid rgba(176, 82, 209, 0.3); }
.badge-server { background: rgba(64, 140, 220, 0.15); color: #7EC4FF; border: 1px solid rgba(64, 140, 220, 0.35); }
.badge-perm { background: rgba(242, 117, 42, 0.12); color: var(--primary-light); border: 1px solid rgba(242, 117, 42, 0.3); }
.badge-mod { background: rgba(242, 117, 42, 0.15); color: var(--primary-light); border: 1px solid rgba(242, 117, 42, 0.3); }
.badge-admin { background: rgba(244, 67, 54, 0.15); color: #FF7B72; border: 1px solid rgba(244, 67, 54, 0.3); }

/* ── PLANOS DE ASSINATURA ── */
.pricing {
    padding: 6rem 2rem 8rem;
    position: relative;
    z-index: 1;
}
.pricing .container { max-width: 1100px; width: 100%; margin: 0 auto; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
}
.plan-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem 2.2rem;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.plan-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-accent);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3), 0 0 20px rgba(242, 117, 42, 0.1);
}
.plan-card.featured {
    border-color: rgba(242, 117, 42, 0.4);
    box-shadow: 0 0 0 1px rgba(242, 117, 42, 0.15), 0 15px 35px rgba(0,0,0,0.3);
}
.plan-name {
    font-family: 'Caveat', cursive;
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}
.plan-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    min-height: 0;
}
.plan-why {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-main);
    background: rgba(242, 117, 42, 0.08);
    border: 1px solid rgba(242, 117, 42, 0.18);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    margin-bottom: 1.35rem;
}
.plan-why strong {
    color: var(--primary-light);
    font-weight: 600;
}
.plan-diff {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0.65rem 0 0;
    line-height: 1.45;
}
.plan-price {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 2.4rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.35rem;
    line-height: 1.15;
    white-space: nowrap;
}
.plan-price .period {
    font-family: 'Sora', sans-serif;
    font-weight: 400;
    font-size: 0.78rem;
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
    margin-left: 0;
    white-space: nowrap;
    flex-shrink: 0;
}
.plan-features {
    list-style: none;
    margin: 1rem 0 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.plan-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0;
    display: grid;
    grid-template-columns: 1.1rem 1fr;
    column-gap: 0.7rem;
    align-items: start;
    line-height: 1.55;
}
.plan-features li::before {
    content: '✓';
    color: var(--primary-light);
    font-weight: 700;
    line-height: 1.55;
}
.plan-card-free .plan-features li {
    grid-template-columns: 1fr;
    column-gap: 0;
}
.plan-card-free .plan-features li::before {
    content: none;
}
.plan-features li > span {
    min-width: 0;
    overflow-wrap: anywhere;
}
.plan-features strong {
    color: var(--text-main);
    font-weight: 600;
}
.plan-features code {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--primary-light);
    font-size: 0.8rem;
    background: rgba(242, 117, 42, 0.12);
    padding: 0.12rem 0.4rem;
    border-radius: 6px;
    white-space: nowrap;
}
.plan-card .plan-cta + .plan-cta {
    margin-top: 0.65rem;
}
.plan-cta {
    margin-top: auto;
    width: 100%;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pricing-fineprint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 2rem;
    max-width: 700px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* ── STATUS POP-UP ── */
.status-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.status-modal.is-visible { display: flex; }
.status-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 4, 12, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.status-modal-card {
    position: relative;
    z-index: 1;
    width: min(400px, calc(100vw - 2rem));
    padding: 2rem 1.7rem 1.5rem;
    border-radius: 22px;
    border: 1px solid var(--border-glass);
    background: linear-gradient(180deg, rgba(40, 24, 52, 0.97), rgba(18, 10, 28, 0.99));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: navUserMenuIn 0.18s ease-out;
}
.status-modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(88, 101, 242, 0.18);
    color: var(--accent-light);
    border: 1px solid rgba(88, 101, 242, 0.3);
}
.status-modal.is-success .status-modal-icon {
    background: rgba(76, 217, 123, 0.15);
    color: #6EE7A5;
    border-color: rgba(76, 217, 123, 0.35);
}
.status-modal.is-error .status-modal-icon {
    background: rgba(218, 55, 60, 0.15);
    color: #ff8b8f;
    border-color: rgba(218, 55, 60, 0.35);
}
.status-modal.is-warn .status-modal-icon {
    background: rgba(242, 117, 42, 0.15);
    color: var(--primary-light);
    border-color: rgba(242, 117, 42, 0.35);
}
.status-modal-card h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}
.status-modal-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 1.4rem;
}
.status-modal-ok {
    min-width: 120px;
    padding: 0.8rem 1.4rem;
    font-size: 0.88rem;
}

/* ── LEGAL (TERMOS E PRIVACIDADE) ── */
.legal {
    padding: 6.5rem 2rem 3.5rem;
    background: transparent;
    -webkit-mask-image: none;
    mask-image: none;
}
.legal .container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.legal-content {
    background: var(--bg-glass);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    margin-bottom: 3rem;
}
.legal-content:last-child {
    margin-bottom: 0;
}
.legal-content h3 {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}
.legal-content > p:first-of-type {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--primary-light);
    margin-bottom: 2rem;
}
.legal-content h4 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.legal-content p, .legal-content ul, .legal-content li {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.legal-content ul { padding-left: 1.5rem; list-style: disc; }
.legal-content li { margin-bottom: 0.5rem; padding-left: 0.5rem; }
.legal-content strong { color: var(--text-main); font-weight: 600; }

/* ── FOOTER ── */
footer {
    background: var(--bg-deep);
    padding: 2rem 2rem 1.5rem;
    border-top: 1px solid var(--border-glass);
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 0;
    -webkit-mask-image: none;
    mask-image: none;
}
footer .container { max-width: 1200px; width: 100%; margin: 0 auto; }
footer .logo-bottom {
    font-size: 1.65rem;
    margin-bottom: 0.4rem;
    opacity: 0.7;
}
footer p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.2rem; }
footer a { color: var(--primary-light); text-decoration: none; transition: color 0.3s ease; }
footer a:hover { color: var(--primary); text-decoration: underline; }
.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: rgba(88, 101, 242, 0.45);
    background: transparent;
    transition: color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.footer-discord svg {
    width: 26px;
    height: 26px;
}
.footer-discord:hover {
    color: rgba(88, 101, 242, 0.9);
    background: rgba(88, 101, 242, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ── DISCORD FAB ── */
.discord-fab {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    width: 56px;
    height: 56px;
    max-width: 56px;
    padding: 0 16px;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(88, 101, 242, 0.4);
    animation: discordFabFloat 3.2s ease-in-out infinite;
    transform-origin: right center;
    transition: max-width 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
                width 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
                gap 0.3s ease,
                padding 0.3s ease,
                box-shadow 0.3s ease,
                transform 0.3s ease;
}
.discord-fab.is-visible {
    display: inline-flex;
}
.discord-fab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.discord-fab-icon svg {
    width: 24px;
    height: 24px;
}
.discord-fab-label {
    white-space: nowrap;
    font-family: 'Sora', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(3px);
    transition: max-width 0.35s ease, opacity 0.25s ease;
}
.discord-fab:hover,
.discord-fab:focus-visible {
    width: auto;
    max-width: 280px;
    gap: 0.65rem;
    padding: 0 1rem 0 1.15rem;
    box-shadow: 0 16px 36px rgba(88, 101, 242, 0.5);
    outline: none;
    animation-play-state: paused;
}
.discord-fab:hover .discord-fab-label,
.discord-fab:focus-visible .discord-fab-label {
    max-width: 220px;
    opacity: 1;
}
@keyframes discordFabFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

/* ── ANIMAÇÕES ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVO / MODO CELULAR ── */
@media (max-width: 968px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
    .hero-content { transform: none; }
    .hero-content h1 { font-size: 3rem; }
    .hero-content h1 .aria-name-styled { font-size: 4rem; }
    .hero-image-wrapper { order: -1; min-height: 300px; }
    .cta-buttons { justify-content: center; }
    .nav-links,
    nav.scrolled .nav-links {
        transform: none;
        gap: 1.25rem;
    }
    .cmd-tabs {
        flex-wrap: nowrap;
        border-radius: 16px;
        padding: 0.45rem;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .cmd-tabs::-webkit-scrollbar { display: none; }
    .cmd-tab { flex: 0 0 auto; justify-content: center; border-radius: 10px; }
    .features-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

@media (max-width: 768px) {
    .nav-toggle { display: inline-flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(82vw, 320px);
        height: 100dvh;
        margin: 0;
        padding: calc(5.5rem + env(safe-area-inset-top, 0px)) 1.5rem 2rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        background: rgba(16, 8, 24, 0.96);
        border-left: 1px solid var(--border-glass);
        box-shadow: -16px 0 40px rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        transform: translateX(105%);
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: 1001;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    nav.scrolled .nav-links {
        transform: translateX(105%);
        gap: 0.35rem;
    }
    body.nav-open .nav-links,
    body.nav-open nav.scrolled .nav-links {
        transform: translateX(0);
    }
    .nav-links li { width: 100%; }
    .nav-links a {
        width: 100%;
        height: auto;
        min-height: 48px;
        padding: 0.85rem 1rem;
        font-size: 1.05rem;
        border-radius: 14px;
        justify-content: flex-start;
    }
    .nav-links a::after { display: none; }
    .nav-links a:hover,
    .nav-links a:active {
        background: rgba(242, 117, 42, 0.1);
        color: var(--primary-light);
    }

    .nav-end { gap: 0.65rem; }
    .logo { font-size: 2.1rem; margin-left: 0; }
    nav .container { padding: 0 1rem; }
    nav { padding: 0.85rem 0; }
    nav.scrolled { padding: 0.65rem 0; }

    .nav-login-label-full { display: none; }
    .nav-login-label-short { display: inline; }
    .nav-login-btn {
        padding: 0 0.9rem;
        height: 40px;
        font-size: 0.82rem;
        border-radius: 12px;
    }

    .hero {
        min-height: auto;
        padding: 6.5rem 1.25rem 3.5rem;
        align-items: flex-start;
    }
    .hero .container { gap: 1.75rem; }
    .hero-content h1 { font-size: 2.35rem; }
    .hero-content h1 .aria-name-styled { font-size: 3.1rem; }
    .hero-content .subtitle { font-size: 0.95rem; margin-left: auto; margin-right: auto; }
    .hero-note { font-size: 0.88rem; }
    .hero-image-wrapper { min-height: 240px; max-width: 280px; margin: 0 auto; }
    .hero-glow { opacity: 0.28; }
    .cta-buttons { flex-direction: column; width: 100%; gap: 0.75rem; }
    .btn { width: 100%; min-height: 48px; justify-content: center; }
    .hero-scroll-hint { font-size: 0.68rem; bottom: max(1rem, calc(env(safe-area-inset-bottom, 0px) + 0.75rem)); }

    .stats.section-band {
        padding-top: calc(2.2rem + var(--wave-h));
        padding-bottom: calc(3.6rem + var(--wave-h));
    }
    .stats { padding-left: 1.25rem; padding-right: 1.25rem; }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        max-width: 420px;
    }
    .stat-card { padding: 1.35rem 1.25rem; border-radius: 18px; }
    .stat-number { font-size: 2.6rem; }
    .stat-suffix { font-size: 1.5rem; }
    .stat-label { font-size: 0.8rem; }

    .section-title { font-size: 2.35rem; }
    .section-subtitle { font-size: 0.92rem; margin-bottom: 2.5rem; padding: 0 0.5rem; }

    .features { padding: 4.5rem 1.25rem; }
    .features-grid { grid-template-columns: 1fr; gap: 1rem; }
    .feature-card { padding: 1.6rem 1.35rem; border-radius: 18px; }
    .feature-card:hover { transform: none; }
    .feature-icon { width: 52px; height: 52px; font-size: 2rem; margin-bottom: 1rem; }

    .commands { padding: 4rem 1.25rem 5rem; }
    .cmd-legend {
        padding: 1.15rem 1.1rem 1.2rem;
        border-radius: 16px;
        margin-bottom: 1.5rem;
    }
    .cmd-legend-grid {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }
    .cmd-legend-item { padding: 0.75rem 0.8rem; }
    .cmd-legend-item:hover { transform: none; }
    .cmd-search-wrapper { margin-bottom: 1.5rem; }
    .cmd-search {
        padding: 0.9rem 1.1rem 0.9rem 3rem;
        font-size: 0.9rem;
        border-radius: 16px;
    }
    .search-icon { left: 1.1rem; }
    .cmd-tabs {
        margin-bottom: 1.75rem;
        gap: 0.35rem;
        padding: 0.4rem;
    }
    .cmd-tab {
        padding: 0.55rem 0.75rem;
        font-size: 0.78rem;
    }
    .command-list { gap: 0.75rem; }
    .command-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 0.85rem;
        padding: 1rem 0.95rem;
        border-radius: 16px;
    }
    .command-item:hover { transform: none; }
    .command-item .cmd-icon {
        width: 42px;
        height: 42px;
        font-size: 1.35rem;
        border-radius: 50px;
        margin-top: 0.1rem;
    }
    .command-item code {
        font-size: 0.88rem;
        padding: 0.15rem 0.45rem;
        margin-right: 0.3rem;
    }
    .command-item p {
        font-size: 0.84rem;
        line-height: 1.45;
        margin-top: 0.3rem;
    }
    .cmd-badges {
        margin-left: 0;
        margin-top: 0;
        width: auto;
        max-width: calc(100% - 0.5rem);
        gap: 0.3rem;
        vertical-align: middle;
    }
    .cmd-badge {
        font-size: 0.62rem;
        padding: 0.18rem 0.45rem;
        white-space: nowrap;
        line-height: 1.25;
        border-radius: 8px;
    }
    .tip-banner { flex-direction: column; text-align: center; gap: 0.75rem; padding: 1.1rem; }

    .pricing { padding: 4rem 1.25rem 5rem; }
    .pricing-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .plan-card {
        padding: 1.5rem 1.2rem;
        border-radius: 18px;
        overflow: visible;
    }
    .plan-card:hover { transform: none; }
    .plan-tagline {
        min-height: 0;
        margin-bottom: 0.7rem;
        font-size: 0.82rem;
        line-height: 1.45;
    }
    .plan-why {
        font-size: 0.78rem;
        padding: 0.7rem 0.8rem;
        margin-bottom: 1rem;
        line-height: 1.45;
    }
    .plan-diff {
        margin: 0.5rem 0 0;
        font-size: 0.74rem;
        line-height: 1.45;
    }
    .plan-name { font-size: 1.85rem; }
    .plan-price {
        font-size: 1.75rem;
        line-height: 1.2;
        gap: 0.28rem;
    }
    .plan-price .period {
        display: inline;
        margin: 0;
        font-size: 0.68rem;
        white-space: nowrap;
        line-height: 1.2;
    }
    .plan-features {
        margin: 0.9rem 0 1.5rem;
        gap: 0.65rem;
    }
    .plan-features li {
        font-size: 0.84rem;
        grid-template-columns: 1rem 1fr;
        column-gap: 0.55rem;
        line-height: 1.45;
    }
    .plan-card-free .plan-features li {
        grid-template-columns: 1fr;
    }
    .plan-features code {
        white-space: normal;
        font-size: 0.74rem;
        padding: 0.1rem 0.32rem;
    }

    .legal { padding: 4rem 1.25rem 2.5rem; }
    .legal-content { padding: 1.5rem 1.2rem; border-radius: 18px; margin-bottom: 1.5rem; }
    .legal-content h3 { font-size: 1.85rem; }
    .legal-content h4 { font-size: 1.05rem; margin-top: 1.75rem; }

    footer { padding: 1.5rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px)); }
    .footer-links { gap: 1rem 1.25rem; font-size: 0.9rem; }
    .footer-discord { margin-top: 0.85rem; }

    .discord-fab {
        right: max(0.9rem, env(safe-area-inset-right, 0px));
        bottom: max(0.9rem, env(safe-area-inset-bottom, 0px));
        width: 52px;
        height: 52px;
    }
    .discord-fab:hover,
    .discord-fab:focus-visible {
        width: 52px;
        max-width: 52px;
        padding: 0;
        gap: 0;
    }
    .discord-fab-label { display: none; }

    body { cursor: auto; }
    .cursor { display: none; }
    .bg-blobs .blob { opacity: 0.22; }

    .guild-modal-card,
    .status-modal-card,
    .auth-waiting-card {
        width: calc(100% - 1.5rem);
        max-width: 100%;
        margin: 0.75rem;
    }
}

@media (max-width: 420px) {
    .hero-content h1 { font-size: 2.05rem; }
    .hero-content h1 .aria-name-styled { font-size: 2.7rem; }
    .section-title { font-size: 2.05rem; }
    .nav-login-btn { padding: 0 0.7rem; }
    .logo { font-size: 1.9rem; }
}

/* ── AGRADECIMENTOS ── */
.ack-page {
    position: relative;
    z-index: 1;
    padding: 7.5rem 1.5rem 5rem;
}
.ack-page .container {
    max-width: 920px;
    margin: 0 auto;
}
.ack-hero {
    text-align: center;
    margin-bottom: 3rem;
}
.ack-hero .section-title {
    margin-bottom: 0.75rem;
}
.ack-intro {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}
.ack-block {
    margin-bottom: 2.25rem;
    padding: 1.6rem 1.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}
.ack-block h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.85rem;
}
.ack-block p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}
.ack-block p:last-child { margin-bottom: 0; }
.ack-note {
    margin: 2.75rem 0 0.5rem;
    padding: 2rem 1.75rem 1.75rem;
    text-align: center;
    background:
        linear-gradient(160deg, rgba(242, 117, 42, 0.14), rgba(176, 82, 209, 0.08) 55%, rgba(27, 16, 35, 0.7)),
        rgba(18, 10, 26, 0.85);
    border: 1px solid rgba(242, 117, 42, 0.35);
    border-radius: 8px 28px 8px 28px;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
}
.ack-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-light), var(--accent-light), transparent);
    opacity: 0.7;
}
.ack-note-text {
    font-family: 'Caveat', cursive;
    font-size: 1.55rem;
    font-weight: 400;
    line-height: 1.45;
    color: var(--text-main);
    margin: 0 auto 1.25rem;
    max-width: 34rem;
}
.ack-note-sign {
    font-family: 'Sora', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-light);
    margin: 0 0 1.35rem;
}
.ack-note-sign span {
    font-weight: 400;
    color: var(--text-muted);
}
.ack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}
.ack-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-light);
    background: rgba(242, 117, 42, 0.12);
    border: 1px solid rgba(242, 117, 42, 0.28);
    border-radius: 5px;
    padding: 0.35rem 0.75rem;
}
.ack-lib-list {
    list-style: none;
    display: grid;
    gap: 0.7rem;
}
.ack-lib-list li {
    display: grid;
    grid-template-columns: minmax(140px, 200px) 1fr;
    gap: 0.75rem 1rem;
    align-items: start;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.ack-lib-list code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-light);
    word-break: break-word;
}
.ack-lib-list span {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.45;
}
.ack-back {
    display: inline-flex;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .ack-page { padding: 6.5rem 1.15rem 4rem; }
    .ack-block { padding: 1.25rem 1.1rem; border-radius: 16px; }
    .ack-block h3 { font-size: 1.6rem; }
    .ack-note {
        padding: 1.6rem 1.2rem 1.4rem;
        border-radius: 8px 22px 8px 22px;
    }
    .ack-note-text { font-size: 1.35rem; }
    .ack-lib-list li {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

/* ── LEGAL (VISUAL DISCORD) ── */
body.page-legal {
    background: var(--bg-deep);
    overflow: hidden;
    height: 100dvh;
}
body.page-legal .bg-blobs {
    z-index: 0;
}
body.page-legal .bg-blobs .blob {
    filter: blur(140px);
    opacity: 0.55;
}

.dc-app {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 240px 1fr;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    background: transparent;
    color: #dbdee1;
}

.dc-sidebar {
    background: rgba(27, 16, 35, 0.72);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-height: 100dvh;
    position: sticky;
    top: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.dc-server-banner {
    padding: 1.15rem 1rem 1.15rem;
    background: linear-gradient(180deg, rgba(43, 24, 58, 0.95) 0%, rgba(32, 18, 46, 0.9) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
.dc-brand {
    display: inline-block;
    font-size: 2rem;
    line-height: 1;
    text-decoration: none;
}
.dc-brand.aria-name-styled {
    background: var(--gradient-1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
}
.dc-server-sub {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: rgba(244, 238, 245, 0.72);
}
.dc-channel-group {
    padding: 1rem 0.5rem 0.35rem;
}
.dc-sidebar-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}
.dc-channel-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #949ba4;
    padding: 0 0.55rem 0.45rem;
}
.dc-channel {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.45rem 0.55rem;
    margin-bottom: 0.15rem;
    border-radius: 8px;
    color: #949ba4;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}
.dc-channel:hover {
    background: rgba(79, 84, 92, 0.48);
    color: #f2f3f5;
}
.dc-channel.is-active {
    background: rgba(79, 84, 92, 0.6);
    color: #fff;
}
.dc-hash {
    color: #80848e;
    font-weight: 700;
    margin-right: 0.15rem;
}
.dc-userbar {
    margin-top: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.75rem;
    background: rgba(13, 6, 18, 0.72);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.dc-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #5865f2;
    display: block;
    flex-shrink: 0;
}
.dc-user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.dc-user-meta strong {
    font-size: 0.82rem;
    color: #f2f3f5;
}
.dc-user-meta span {
    font-size: 0.72rem;
    color: #23a559;
}

.dc-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    background: transparent;
    position: relative;
}
.dc-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 6, 18, 0.28);
    backdrop-filter: blur(48px) saturate(1.25);
    -webkit-backdrop-filter: blur(48px) saturate(1.25);
    pointer-events: none;
    z-index: 0;
}
.dc-topbar {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
    background: rgba(13, 6, 18, 0.45);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: sticky;
    top: 0;
    z-index: 5;
}
.dc-menu-btn {
    display: none;
    border: 0;
    background: transparent;
    color: #dbdee1;
    font-size: 1.2rem;
    padding: 0.25rem 0.4rem;
}
.dc-channel-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f2f3f5;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}
.dc-top-link {
    margin-left: auto;
    color: #00a8fc;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}
.dc-top-link:hover { text-decoration: underline; }

.dc-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.1rem 3rem;
    position: relative;
    z-index: 1;
}
.dc-panel { display: none; max-width: 780px; margin: 0 auto; }
.dc-panel.is-active { display: block; }

.dc-message {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 0.9rem;
}
.dc-msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #5865f2;
    display: block;
}
.dc-msg-head {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
    flex-wrap: wrap;
}
.dc-msg-author {
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
}
.dc-msg-badge {
    font-size: 0.62rem;
    font-weight: 700;
    background: #5865f2;
    color: #fff;
    border-radius: 4px;
    padding: 0.12rem 0.35rem;
    letter-spacing: 0.03em;
}
.dc-msg-head time {
    font-size: 0.72rem;
    color: #949ba4;
}
.dc-msg-body h3 {
    margin: 1.35rem 0 0.55rem;
    font-size: 1.05rem;
    color: #f2f3f5;
}
.dc-msg-body p,
.dc-msg-body li {
    color: #dbdee1;
    font-size: 0.95rem;
    line-height: 1.65;
}
.dc-msg-body p { margin-bottom: 0.7rem; }
.dc-msg-body ul {
    margin: 0 0 0.85rem;
    padding-left: 1.25rem;
}
.dc-msg-body li { margin-bottom: 0.45rem; }
.dc-msg-body strong { color: #f2f3f5; }
.dc-msg-body code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.82rem;
    background: rgba(13, 6, 18, 0.75);
    color: #dbdee1;
    padding: 0.12rem 0.35rem;
    border-radius: 4px;
}
.dc-updated {
    margin-top: 1.5rem !important;
    color: #949ba4 !important;
}

.dc-embed {
    display: grid;
    grid-template-columns: 4px 1fr;
    margin: 0.55rem 0 1.1rem;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(27, 16, 35, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.06);
    max-width: 520px;
}
.dc-embed-bar { background: #5865f2; }
.dc-embed-bar-gold { background: #f0b232; }
.dc-embed-inner { padding: 0.75rem 0.9rem 0.85rem; }
.dc-embed-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    color: #00a8fc;
    margin-bottom: 0.25rem !important;
}
.dc-embed-title {
    font-size: 1.05rem;
    color: #f2f3f5;
    margin: 0 0 0.35rem;
}
.dc-embed-desc {
    margin: 0 !important;
    font-size: 0.88rem !important;
    color: #dbdee1 !important;
}

.dc-backdrop {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 20;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.dc-backdrop.is-open { display: block; }
.dc-backdrop[hidden] { display: none !important; }

@media (max-width: 860px) {
    .dc-app {
        grid-template-columns: 1fr;
        height: 100dvh;
        overflow: visible;
    }
    .dc-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(80vw, 280px);
        height: 100dvh;
        z-index: 60;
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        pointer-events: auto;
    }
    body.dc-nav-open .dc-sidebar { transform: translateX(0); }
    body.dc-nav-open .dc-backdrop.is-open {
        display: block;
        z-index: 40;
    }
    .dc-menu-btn {
        display: inline-flex;
        position: relative;
        z-index: 50;
    }
    .dc-topbar { z-index: 50; }
    .dc-content { padding: 1rem 0.9rem 2.5rem; }
    .dc-message { grid-template-columns: 32px 1fr; gap: 0.65rem; }
    .dc-msg-avatar { width: 32px; height: 32px; }
}

