.login-box {
    background: linear-gradient(180deg, var(--mid-teal) 0%, var(--obsidiana) 100%);
    border: 1px solid var(--frame-border);
    border-radius: var(--radius-frame);
    box-shadow: var(--shadow-frame);
    overflow: hidden;
    margin-bottom: 12px;
}
.login-box-header {
    background: var(--header-bg);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    text-align: center;
    padding: 9px 12px;
    font-size: 17px;
    letter-spacing: 0.4px;
    border-bottom: 1px solid var(--frame-border-strong);
}
.login-box-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.login-btn {
    display: block;
    text-align: center;
    padding: 10px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 0.3px;
    border: 1px solid transparent;
    transition: background 0.15s, box-shadow 0.15s, color 0.15s;
}
.login-btn--primary {
    background: var(--cta-bg);
    color: var(--cta-text);
    border-color: var(--cta-border);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 6px rgba(169, 130, 27, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.login-btn--primary:hover {
    background: var(--cta-bg-hover);
    box-shadow: 0 3px 10px rgba(226, 182, 92, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: var(--cta-text);
}
.login-btn--secondary {
    background: linear-gradient(180deg, #1a2d35 0%, #0d1a20 100%);
    color: var(--hydra-light);
    border-color: var(--frame-border);
}
.login-btn--secondary:hover {
    background: linear-gradient(180deg, #21383f 0%, #11222a 100%);
    border-color: var(--frame-border-strong);
    color: var(--white);
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-section {
    background: linear-gradient(180deg, var(--mid-teal) 0%, var(--obsidiana) 100%);
    border: 1px solid var(--frame-border);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(74, 119, 212, 0.08);
}
.menu-section--solo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.4px;
    transition: background 0.15s, color 0.15s;
}
.menu-section--solo:hover {
    background: linear-gradient(180deg, #102d35 0%, #061319 100%);
    color: var(--hydra-light);
}

/* Destaque no "Baixar Cliente" */
.menu-section--solo[data-section="download"] {
    border-color: rgba(74, 119, 212, 0.6);
    color: var(--hydra-light);
    animation: dl-pulse 2.2s ease-in-out infinite;
}
.menu-section--solo[data-section="download"] .menu-section-label { color: var(--hydra-light); }
.menu-section--solo[data-section="download"] .menu-section-icon { filter: drop-shadow(0 0 5px rgba(74, 119, 212, 0.75)); }
.menu-section--solo[data-section="download"]:hover { border-color: var(--hydra-glow); }
@keyframes dl-pulse {
    0%, 100% { box-shadow: 0 0 7px rgba(74, 119, 212, 0.35), 0 2px 6px rgba(0, 0, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(74, 119, 212, 0.7), 0 2px 6px rgba(0, 0, 0, 0.5); }
}
@media (prefers-reduced-motion: reduce) {
    .menu-section--solo[data-section="download"] { animation: none; box-shadow: 0 0 14px rgba(74, 119, 212, 0.5); }
}

.menu-section-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    background: transparent;
    border: 0;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    text-align: left;
    transition: color 0.15s, background 0.15s;
    list-style: none;
}
.menu-section-toggle::-webkit-details-marker { display: none; }
.menu-section-toggle::marker { display: none; }
.menu-section-toggle:hover { color: var(--hydra-light); background: rgba(74, 119, 212, 0.06); }

.menu-section-label { flex: 1; text-align: center; }
.menu-section-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.9;
}
.menu-section-icon--download {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A77D4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/><polyline points='7 10 12 15 17 10'/><line x1='12' y1='15' x2='12' y2='3'/></svg>");
}
.menu-section-icon--book {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A77D4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/><path d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/></svg>");
}
.menu-section-icon--news {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A77D4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2'/><path d='M18 14h-8'/><path d='M15 18h-5'/><path d='M10 6h8v4h-8z'/></svg>");
}
.menu-section-icon--library {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A77D4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/><path d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/></svg>");
}
.menu-section-icon--account {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A77D4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>");
}
.menu-section-icon--community {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A77D4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/><circle cx='9' cy='7' r='4'/><path d='M23 21v-2a4 4 0 0 0-3-3.87'/><path d='M16 3.13a4 4 0 0 1 0 7.75'/></svg>");
}
.menu-section-icon--shop {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A77D4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'/><circle cx='20' cy='21' r='1'/><path d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/></svg>");
}
.menu-section-icon--support {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A77D4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/><line x1='12' y1='17' x2='12.01' y2='17'/></svg>");
}

.menu-section-chevron {
    color: var(--hydra-deep);
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
    transform: rotate(90deg);
    will-change: transform;
}
.menu-section[open] .menu-section-chevron {
    transform: rotate(-90deg);
    color: var(--hydra-glow);
}

.menu-items {
    list-style: none;
    margin: 0;
    padding: 4px 0 6px;
    background: rgba(5, 16, 42, 0.55);
    border-top: 1px solid rgba(74, 119, 212, 0.12);
    overflow: hidden;
    will-change: max-height, opacity, transform;
}
.menu-item {
    transform: translateX(0);
    transition: color 0.1s, background 0.1s, transform 0.18s ease;
}
.menu-section[open] .menu-item {
    animation: menuItemFadeIn 0.32s ease both;
}
.menu-section[open] .menu-item:nth-child(1) { animation-delay: 0.04s; }
.menu-section[open] .menu-item:nth-child(2) { animation-delay: 0.07s; }
.menu-section[open] .menu-item:nth-child(3) { animation-delay: 0.10s; }
.menu-section[open] .menu-item:nth-child(4) { animation-delay: 0.13s; }
.menu-section[open] .menu-item:nth-child(5) { animation-delay: 0.16s; }
.menu-section[open] .menu-item:nth-child(6) { animation-delay: 0.19s; }
.menu-section[open] .menu-item:nth-child(7) { animation-delay: 0.22s; }
@keyframes menuItemFadeIn {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: translateX(0); }
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px 7px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.1s, background 0.1s;
}
.menu-item:hover {
    color: var(--hydra-light);
    background: rgba(74, 119, 212, 0.08);
}
.menu-item--active {
    color: var(--hydra-glow);
    font-weight: 600;
    background: rgba(74, 119, 212, 0.1);
}
.menu-item-bullet {
    color: var(--hydra-deep);
    font-weight: bold;
    font-size: 12px;
}
.menu-item--active .menu-item-bullet { color: var(--hydra-glow); }
.menu-item-label { flex: 1; }

.badge {
    display: inline-block;
    padding: 1px 6px;
    font-size: 9px;
    font-weight: bold;
    border-radius: 3px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge--hot { background: var(--vinho); }
.badge--new { background: var(--verdejante); }

.sidebar-box {
    background: linear-gradient(180deg, var(--mid-teal) 0%, var(--obsidiana) 100%);
    border: 1px solid var(--frame-border);
    border-radius: var(--radius-frame);
    box-shadow: var(--shadow-frame);
    overflow: hidden;
}
.sidebar-box-header {
    background: var(--header-bg);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    text-align: center;
    padding: 9px 12px;
    font-size: 17px;
    letter-spacing: 0.4px;
    border-bottom: 1px solid var(--frame-border-strong);
}
.sidebar-box-body {
    padding: 14px 12px 16px;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
}
.sidebar-box-body--flush { padding: 12px 10px; }
.sidebar-box-text { margin: 0 0 10px; color: var(--text-primary); }
.sidebar-box-cta {
    display: inline-block;
    background: var(--cta-bg);
    color: var(--cta-text);
    padding: 8px 14px;
    text-decoration: none;
    font-weight: bold;
    font-size: 11px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.05s;
    border: 1px solid var(--cta-border);
    box-shadow: 0 2px 6px rgba(169, 130, 27, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
.sidebar-box-cta:hover {
    background: var(--cta-bg-hover);
    color: var(--cta-text);
    box-shadow: 0 3px 10px rgba(226, 182, 92, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.sidebar-box-cta:active { transform: translateY(1px); }

.sidebar-icon {
    width: 64px;
    height: 64px;
    margin: 6px auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: box-shadow 0.25s;
}
.sidebar-icon::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: inherit;
    filter: blur(14px);
    opacity: 0.55;
    z-index: -1;
    pointer-events: none;
}
.sidebar-icon svg { width: 36px; height: 36px; display: block; margin: 0 auto; }

.sidebar-icon--discord {
    background: linear-gradient(180deg, #6a78f1 0%, #5865f2 100%);
    box-shadow:
        0 0 18px rgba(88, 101, 242, 0.65),
        0 2px 6px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.sidebar-icon--diamond {
    background: linear-gradient(180deg, var(--hydra-light) 0%, var(--hydra-deep) 100%);
    box-shadow:
        0 0 18px rgba(74, 119, 212, 0.65),
        0 2px 6px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.sidebar-icon--diamond svg { width: 32px; height: 32px; }

.sidebar-box:hover .sidebar-icon--discord {
    box-shadow:
        0 0 28px rgba(88, 101, 242, 0.85),
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.sidebar-box:hover .sidebar-icon--diamond {
    box-shadow:
        0 0 28px rgba(74, 119, 212, 0.85),
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.sidebar-box--dark {
    background: linear-gradient(180deg, var(--abyss) 0%, #010a10 100%);
    border-color: rgba(74, 119, 212, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(74, 119, 212, 0.05);
}
.sidebar-box-header--dark {
    background: linear-gradient(180deg, #010a10 0%, var(--abyss) 100%);
    color: var(--hydra-light);
    border-bottom-color: rgba(74, 119, 212, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 17px;
    letter-spacing: 0.4px;
    font-family: var(--font-display);
    font-weight: 700;
}
.sidebar-box-header-decor {
    color: var(--hydra-deep);
    font-size: 9px;
    font-weight: normal;
    line-height: 1;
}
.sidebar-box-body--dark {
    color: var(--text-secondary);
    padding: 18px 14px 16px;
}
.sidebar-box-text--dark {
    margin: 4px 0 14px;
    color: var(--text-secondary);
    line-height: 1.45;
    font-size: 12px;
}
.sidebar-box-cta--dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(180deg, rgba(91, 63, 184, 0.4) 0%, rgba(40, 24, 79, 0.7) 100%);
    color: var(--hydra-light);
    border: 1px solid var(--royal-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sidebar-box-cta--dark:hover {
    background: linear-gradient(180deg, rgba(142, 123, 224, 0.55) 0%, rgba(91, 63, 184, 0.85) 100%);
    border-color: var(--hydra-glow);
    color: var(--white);
}
.sidebar-box-cta-icon { font-size: 13px; color: var(--hydra-glow); }

.content-frame {
    background: linear-gradient(180deg, var(--mid-teal) 0%, var(--obsidiana) 100%);
    border: 1px solid var(--frame-border);
    border-radius: var(--radius-frame);
    box-shadow: var(--shadow-frame);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.content-frame-body { overflow-x: auto; }
.content-frame-body--flush { overflow-x: auto; }
.content-frame-header {
    background: var(--header-bg);
    color: var(--white);
    padding: 10px 16px;
    border-bottom: 1px solid var(--frame-border-strong);
}
.content-frame-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 0.4px;
    font-weight: 700;
    color: var(--white);
}
.content-frame-body { padding: 16px 18px; color: var(--text-primary); }
.content-frame-body--center { text-align: center; }
.content-frame-body--flush { padding: 0; }
.content-paragraph { margin: 0 0 12px; color: var(--text-primary); font-size: 13px; }
.content-paragraph:last-child { margin-bottom: 0; }
.content-cta { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.content-empty { margin: 0; color: var(--text-muted); font-style: italic; text-align: center; padding: 24px 0; }

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    font-size: 13px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: background 0.15s, transform 0.05s, color 0.15s;
    cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
    background: var(--cta-bg);
    color: var(--cta-text);
    border-color: var(--cta-border);
    box-shadow: 0 2px 6px rgba(169, 130, 27, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover {
    background: var(--cta-bg-hover);
    color: var(--cta-text);
    box-shadow: 0 3px 10px rgba(226, 182, 92, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn--secondary {
    background: transparent;
    color: var(--hydra-light);
    border: 1px solid var(--frame-border-strong);
}
.btn--secondary:hover { background: rgba(74, 119, 212, 0.1); color: var(--white); }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: var(--text-primary);
}
.table th {
    background: rgba(27, 58, 122, 0.2);
    text-align: left;
    padding: 8px 12px;
    font-weight: bold;
    color: var(--hydra-light);
    border-bottom: 1px solid var(--frame-border-strong);
}
.table td {
    padding: 7px 12px;
    border-bottom: 1px solid rgba(74, 119, 212, 0.08);
}
.table tr:nth-child(even) td { background: rgba(5, 16, 42, 0.4); }
.table tr:hover td { background: rgba(74, 119, 212, 0.06); }

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border-top: 1px solid rgba(74, 119, 212, 0.12);
}
.pagination-link {
    padding: 5px 12px;
    background: rgba(27, 58, 122, 0.2);
    border: 1px solid var(--frame-border);
    border-radius: 3px;
    text-decoration: none;
    color: var(--hydra-light);
    font-size: 12px;
}
.pagination-link:hover { background: var(--hydra-deep); color: var(--white); }
.pagination-info { color: var(--text-muted); font-size: 12px; }
