/* AfterDark - CSS Global */

/* ========== Reset e Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --global-ui-scale: 0.8;
    --app-background-image: none;
    --app-background-position: center center;
    --app-background-size: cover;
    --app-background-overlay:
        linear-gradient(
            160deg,
            rgba(0, 0, 0, 0.6),
            rgba(0, 0, 0, 0.6)
        );
}

html {
    zoom: var(--global-ui-scale);
}

@supports not (zoom: 1) {
    body {
        transform: scale(var(--global-ui-scale));
        transform-origin: top left;
        width: calc(100% / var(--global-ui-scale));
        min-height: 100vh;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background-body);
    background-attachment: fixed;
    color: var(--text-primary);
    padding: 20px;
    min-height: calc(100vh / var(--global-ui-scale));
    overflow-x: hidden;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    @supports (overflow: clip) {
        html,
        body {
            overflow-x: clip;
        }
    }

    body:not(.library-page-body) .main-header,
    body:not(.library-page-body) .main-footer {
        margin-left: calc((-50vw / var(--global-ui-scale)) - 2.5px);
        margin-right: calc((-50vw / var(--global-ui-scale)) - 2.5px);
    }
}

.landing-body {
    padding: 0;
}

.scale-80 {
    transform: scale(1);
    transform-origin: top center;
    width: auto;
    max-width: 1220px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.layout-2col .scale-80 {
    max-width: 2100px;
}

.scale-80 .charts-scale-normalizer {
    width: 100%;
    max-width: 100%;
    transform: none;
    zoom: 1;
}

/* ========== Página de Contato ========== */
.contact-intro {
    margin: 30px 0;
    padding: 35px;
    border-radius: 16px;
    border: 1px solid var(--badge-unificado-borda);
    background: var(--background-hero);
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 30px;
}

.contact-intro-text h1 {
    margin: 12px 0 14px;
    font-size: 34px;
    color: var(--text-light);
}

.contact-intro-text p {
    color: var(--text-blue);
    line-height: 1.6;
    font-size: 16px;
}

.contact-eyebrow,
.contact-form-eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    font-size: 12px;
    color: var(--text-secondary);
}

.contact-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.contact-highlight {
    background: var(--background-hero);
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    border-radius: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.contact-highlight strong {
    color: var(--text-light);
    font-weight: 600;
    display: block;
}

.contact-highlight span {
    color: var(--text-secondary);
    font-size: 13px;
}

.contact-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--background-hero);
    border: 1px solid var(--border-color-medium);
    color: var(--text-light);
    font-size: 13px;
}

.contact-side-card {
    background: var(--background-hero);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--badge-unificado-borda);
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: var(--text-blue);
}

.contact-side-card h2 {
    margin: 0;
    color: var(--text-light);
    font-size: 22px;
}

.contact-side-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
    line-height: 1.6;
}

.contact-meta-card {
    background: var(--background-hero);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color-medium);
    font-size: 14px;
}

.contact-meta-card a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.contact-form-card {
    margin-bottom: 50px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    background: var(--background-hero);
    border: 1px solid var(--badge-unificado-borda);
    border-radius: 16px;
    padding: 24px;
}

.contact-form-card.has-feedback-error {
    border-color: rgba(255, 107, 107, 0.4);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.25);
}

.contact-form-card.has-feedback-success {
    border-color: rgba(86, 171, 47, 0.45);
    box-shadow: 0 12px 32px rgba(86, 171, 47, 0.25);
}

.contact-page .main-header,
.contact-page .main-footer,
.contact-page .contact-intro,
.contact-page .contact-side-card,
.contact-page .contact-form-card {
    background: var(--background-hero);
}

body.contact-page,
body.landing-body.contact-page {
    background: var(--background-body);
    background-attachment: fixed;
    min-height: calc(100vh / var(--global-ui-scale));
}

.contact-page .contact-highlight,
.contact-page .contact-tag,
.contact-page .contact-meta-card {
    background: color-mix(in srgb, var(--background-card-secondary) 84%, #000 16%);
}

.contact-page .contact-intro,
.contact-page .contact-side-card,
.contact-page .contact-highlight,
.contact-page .contact-tag,
.contact-page .contact-meta-card,
.contact-page .contact-form-card {
    box-shadow: none;
}

.contact-page .btn-primary {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: none;
}

.contact-page .btn-primary:hover {
    background: color-mix(in srgb, var(--primary-color) 85%, #000 15%);
    border-color: color-mix(in srgb, var(--primary-color) 80%, #000 20%);
    transform: none;
    box-shadow: none;
}

.contact-form-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-form-header h2 {
    margin: 6px 0 4px;
    color: var(--text-light);
    font-size: 26px;
}

.contact-form-header p {
    color: var(--text-secondary);
    margin: 0;
}

.contact-counter {
    padding: 0;
}

.contact-counter-logo {
    justify-content: center;
    border: none;
    box-shadow: none;
    background: none;
}

.contact-counter-logo .contact-counter-brand {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transform: scale(1.2);
}

.contact-form-grid textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-inline-feedback {
    grid-column: span 3;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.contact-inline-feedback.feedback-error {
    background: var(--feedback-error-bg);
    border: 1px solid var(--feedback-error-border);
    color: var(--feedback-error-text);
}

.contact-inline-feedback.feedback-success {
    background: var(--feedback-success-bg);
    border: 1px solid var(--feedback-success-border);
    color: var(--feedback-success-text);
}

@media (max-width: 968px) {
    .contact-intro {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .contact-form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .contact-inline-feedback {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .contact-inline-feedback {
        grid-column: span 1;
    }
}

/* Background do Steam - Aplicado quando usuário tem perfil Steam com background */
body.steam-background {
    background-color: var(--background-dark);
    background-image: none !important;
    background-attachment: scroll !important;
    position: relative;
}

/* Overlay escuro sobre o background do Steam para manter legibilidade */
body.steam-background::before {
    content: none !important;
    display: none !important;
}

.app-background-image-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background-color: var(--background-dark);
    background-image: var(--app-background-overlay), var(--app-background-image);
    background-position: center center, var(--app-background-position);
    background-size: cover, var(--app-background-size);
    background-repeat: no-repeat, no-repeat;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.app-background-video-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: var(--background-dark);
}

.app-background-video-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--app-background-overlay);
}

.app-background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-background-image-layer ~ *,
.app-background-video-layer ~ * {
    position: relative;
    z-index: 1;
}

/* ========== Scrollbar Personalizada ========== */
/* Para navegadores Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
    border: 2px solid var(--scrollbar-border);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
    box-shadow: 0 0 10px var(--shadow-color);
}

::-webkit-scrollbar-thumb:active {
    background: var(--scrollbar-thumb-active);
}

/* Para Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--background-card);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.layout-2col .container {
    max-width: 2140px;
    width: 100%;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.layout-2col .header-content {
    max-width: 2100px;
}

/* ========== Header ========== */
.main-header {
    background: var(--background-hero);
    padding: 15px 0;
    margin: -20px -20px 20px -20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
    width: calc(100vw / var(--global-ui-scale));
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: calc(-50vw / var(--global-ui-scale));
    margin-right: calc(-50vw / var(--global-ui-scale));
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.header-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.header-beta-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 4px 7px;
    border: 1px solid color-mix(in srgb, var(--text-primary) 38%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--background-card) 74%, transparent);
    color: var(--text-primary);
    font-size: 10px;
    font-weight: 750;
    line-height: 1;
    letter-spacing: 0.08em;
    white-space: nowrap;
    box-shadow: none;
}

.brand-mark {
    text-decoration: none;
    display: inline-flex;
    align-items: flex-end;
    gap: 10px;
}

.header-logo {
    text-decoration: none;
}

.brand-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.brand-text {
    background: var(--brand-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    line-height: 1.05;
    transform: translateY(-8.5px);
}

.brand-text::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--brand-gradient);
    background-size: 200% 200%;
    border-radius: 999px;
    pointer-events: none;
}

.brand-mark--white .brand-logo,
.brand-white .brand-logo {
    filter: brightness(0) invert(1) saturate(0);
}

.brand-mark--white .brand-text,
.brand-white .brand-text {
    background: none;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.brand-mark--white .brand-text::after,
.brand-white .brand-text::after {
    background: #ffffff;
}

body[data-theme="white"] .brand-white .brand-logo,
body[data-theme="gray"] .brand-white .brand-logo,
body[data-theme="pastel"] .brand-white .brand-logo {
    filter: brightness(0) saturate(100%);
}

body[data-theme="white"] .brand-white .brand-text,
body[data-theme="gray"] .brand-white .brand-text,
body[data-theme="pastel"] .brand-white .brand-text {
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
}

body[data-theme="white"] .brand-white .brand-text::after,
body[data-theme="gray"] .brand-white .brand-text::after,
body[data-theme="pastel"] .brand-white .brand-text::after {
    background: var(--text-primary);
}

@media (max-width: 640px) {
    .header-content {
        gap: 12px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .header-brand-lockup {
        gap: 7px;
    }

    .header-beta-badge {
        padding: 3px 6px;
        font-size: 9px;
    }
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-actions .btn {
    padding: 8px 16px;
    font-size: 13px;
}

.header-actions .btn-login-steam {
    --steam-login-foreground: color-mix(in srgb, var(--background-dark) 88%, #000000 12%);
    min-height: 48px;
    padding: 0 26px 0 22px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--steam-login-foreground) 42%, #ffffff 58%);
    background: #ffffff;
    color: var(--steam-login-foreground) !important;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    gap: 10px;
    box-shadow: none;
    overflow: hidden;
}

.header-actions .btn-login-steam .steam-login-icon {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    background: currentColor !important;
    background-image: none !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='black' d='M18.102 12.129c0-0 0-0 0-0.001 0-1.564 1.268-2.831 2.831-2.831s2.831 1.268 2.831 2.831c0 1.564-1.267 2.831-2.831 2.831-0 0-0 0-0.001 0h0c-0 0-0 0-0.001 0-1.563 0-2.83-1.267-2.83-2.83 0-0 0-0 0-0.001v0zM24.691 12.135c0-2.081-1.687-3.768-3.768-3.768s-3.768 1.687-3.768 3.768c0 2.081 1.687 3.768 3.768 3.768v0c2.080-0.003 3.765-1.688 3.768-3.767v-0zM10.427 23.76l-1.841-0.762c0.524 1.078 1.611 1.808 2.868 1.808 1.317 0 2.448-0.801 2.93-1.943l0.008-0.021c0.155-0.362 0.246-0.784 0.246-1.226 0-1.757-1.424-3.181-3.181-3.181-0.405 0-0.792 0.076-1.148 0.213l0.022-0.007 1.903 0.787c0.852 0.364 1.439 1.196 1.439 2.164 0 1.296-1.051 2.347-2.347 2.347-0.324 0-0.632-0.066-0.913-0.184l0.015 0.006zM15.974 1.004c-7.857 0.001-14.301 6.046-14.938 13.738l-0.004 0.054 8.038 3.322c0.668-0.462 1.495-0.737 2.387-0.737 0.001 0 0.002 0 0.002 0h-0c0.079 0 0.156 0.005 0.235 0.008l3.575-5.176v-0.074c0.003-3.12 2.533-5.648 5.653-5.648 3.122 0 5.653 2.531 5.653 5.653s-2.531 5.653-5.653 5.653h-0.131l-5.094 3.638c0 0.065 0.005 0.131 0.005 0.199 0 0.001 0 0.002 0 0.003 0 2.342-1.899 4.241-4.241 4.241-2.047 0-3.756-1.451-4.153-3.38l-0.005-0.027-5.755-2.383c1.841 6.345 7.601 10.905 14.425 10.905 8.281 0 14.994-6.713 14.994-14.994s-6.713-14.994-14.994-14.994c-0 0-0.001 0-0.001 0h0z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='black' d='M18.102 12.129c0-0 0-0 0-0.001 0-1.564 1.268-2.831 2.831-2.831s2.831 1.268 2.831 2.831c0 1.564-1.267 2.831-2.831 2.831-0 0-0 0-0.001 0h0c-0 0-0 0-0.001 0-1.563 0-2.83-1.267-2.83-2.83 0-0 0-0 0-0.001v0zM24.691 12.135c0-2.081-1.687-3.768-3.768-3.768s-3.768 1.687-3.768 3.768c0 2.081 1.687 3.768 3.768 3.768v0c2.080-0.003 3.765-1.688 3.768-3.767v-0zM10.427 23.76l-1.841-0.762c0.524 1.078 1.611 1.808 2.868 1.808 1.317 0 2.448-0.801 2.93-1.943l0.008-0.021c0.155-0.362 0.246-0.784 0.246-1.226 0-1.757-1.424-3.181-3.181-3.181-0.405 0-0.792 0.076-1.148 0.213l0.022-0.007 1.903 0.787c0.852 0.364 1.439 1.196 1.439 2.164 0 1.296-1.051 2.347-2.347 2.347-0.324 0-0.632-0.066-0.913-0.184l0.015 0.006zM15.974 1.004c-7.857 0.001-14.301 6.046-14.938 13.738l-0.004 0.054 8.038 3.322c0.668-0.462 1.495-0.737 2.387-0.737 0.001 0 0.002 0 0.002 0h-0c0.079 0 0.156 0.005 0.235 0.008l3.575-5.176v-0.074c0.003-3.12 2.533-5.648 5.653-5.648 3.122 0 5.653 2.531 5.653 5.653s-2.531 5.653-5.653 5.653h-0.131l-5.094 3.638c0 0.065 0.005 0.131 0.005 0.199 0 0.001 0 0.002 0 0.003 0 2.342-1.899 4.241-4.241 4.241-2.047 0-3.756-1.451-4.153-3.38l-0.005-0.027-5.755-2.383c1.841 6.345 7.601 10.905 14.425 10.905 8.281 0 14.994-6.713 14.994-14.994s-6.713-14.994-14.994-14.994c-0 0-0.001 0-0.001 0h0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.header-actions .btn-login-steam .steam-login-label {
    color: currentColor !important;
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: currentColor !important;
    white-space: nowrap;
}

.header-actions .btn-login-steam:hover {
    transform: translateY(-1px);
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: none;
}

.header-actions .btn-login-steam:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* ========== Botões ========== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-filtrar {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    background: var(--gradient-primary);
    color: white;
}

.btn-filtrar:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-limpar {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    background: var(--gradient-primary);
    color: white;
}

.btn-limpar:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* Windows Explorer Style View Toggle */
.btn-layout-toggle {
    padding: 6px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    background: transparent;
    color: #cbd5e1;
    font-size: 0;
    min-width: 30px;
    min-height: 30px;
}

.btn-layout-toggle:hover {
    background: rgba(102, 126, 234, 0.15);
    color: #e2e8f0;
}

.btn-layout-toggle:active {
    background: rgba(102, 126, 234, 0.25);
    transform: scale(0.95);
}

.btn-layout-toggle .icon {
    opacity: 0.75;
    flex-shrink: 0;
}

.btn-layout-toggle:hover .icon {
    opacity: 1;
}

/* ========== Cards e Painéis ========== */
.card {
    background: var(--background-hero);
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

/* ========== Header de Perfil Compartilhado ========== */
.profile-context-panel {
    background: var(--background-hero);
    border: 1px solid var(--badge-unificado-borda);
    border-radius: 8px;
    padding: 22px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 22px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.profile-context-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1 1 auto;
}

.profile-context-avatar {
    width: 92px;
    height: 92px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    background: var(--background-input);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.profile-context-avatar.is-steam-linked {
    border-color: var(--primary-color);
    box-shadow: 0 0 14px var(--shadow-primary);
}

.profile-context-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-context-avatar-placeholder {
    color: var(--text-muted);
}

.profile-context-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-context-name {
    margin: 0;
    color: var(--text-primary);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.05;
    font-weight: 800;
}

.profile-context-real-name {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 650;
}

.profile-context-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    color: var(--text-muted);
    font-size: 13px;
}

.profile-context-meta span,
.profile-context-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profile-context-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.profile-context-link {
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--background-input);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.profile-context-link:hover,
.profile-context-link:focus-visible,
.profile-context-link.is-active {
    color: var(--text-primary);
    border-color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 18%, var(--background-input));
}

.profile-context-link:hover {
    transform: translateY(-1px);
}

.profile-context-side {
    flex: 0 0 min(330px, 34%);
    display: grid;
    grid-template-columns: minmax(86px, 0.7fr) minmax(130px, 1.3fr);
    gap: 12px;
    align-items: stretch;
}

.profile-context-level,
.profile-context-badge {
    min-width: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: color-mix(in srgb, var(--background-card) 78%, transparent);
    padding: 12px;
}

.profile-context-level {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 750;
    text-align: center;
}

.profile-context-level-value {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 850;
    border: 2px solid color-mix(in srgb, var(--primary-color) 72%, #ffffff 12%);
    box-shadow: 0 0 14px color-mix(in srgb, var(--primary-color) 42%, transparent);
}

.profile-context-level.is-muted .profile-context-level-value {
    border-color: var(--border-color);
    box-shadow: none;
    color: var(--text-muted);
}

.profile-context-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-context-badge-icon {
    width: 54px;
    height: 54px;
    object-fit: contain;
    flex: 0 0 auto;
}

.profile-context-badge-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-context-badge-text strong {
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.25;
}

.profile-context-badge-text span {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.3;
}

.profile-context-badge.is-empty {
    opacity: 0.78;
}

@media (max-width: 980px) {
    .profile-context-panel {
        flex-direction: column;
    }

    .profile-context-side {
        flex-basis: auto;
        width: 100%;
    }
}

@media (max-width: 620px) {
    .profile-context-side {
        grid-template-columns: 1fr;
    }

    .profile-context-main {
        align-items: flex-start;
    }

    .profile-context-avatar {
        width: 76px;
        height: 76px;
    }

    .profile-context-side {
        display: flex;
        flex-direction: column;
    }
}

.profile-context-panel {
    display: block;
    padding: 35px;
    border-radius: 8px;
    background: var(--background-hero);
    border: 1px solid var(--badge-unificado-borda);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.45);
}

.profile-context-header {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.profile-context-left {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    flex: 1 1 auto;
    min-width: 0;
}

.profile-context-avatar {
    width: 180px;
    height: 180px;
    border-radius: 10px;
    border: 3px solid var(--border-color);
    background: var(--gradient-card);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.profile-context-avatar.is-steam-linked {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--shadow-primary);
}

.profile-context-avatar-placeholder {
    color: var(--text-primary);
}

.profile-context-info {
    gap: 8px;
    padding-top: 8px;
}

.profile-context-name {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
}

.profile-context-real-name {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 700;
}

.profile-context-meta {
    gap: 12px;
    font-size: 14px;
}

.profile-context-meta span:first-child {
    color: var(--text-primary);
    font-weight: 700;
}

.profile-context-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.profile-context-steam-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--background-input);
    border: 1px solid var(--border-color);
    transition: background 0.2s ease, transform 0.2s ease;
}

.profile-context-refresh-button {
    font: inherit;
    cursor: pointer;
}

.profile-context-refresh-button:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
}

.profile-context-steam-link .icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    opacity: 0.82;
    stroke-width: 1.6;
}

.profile-context-steam-link:hover {
    background: var(--hover-bg);
    transform: translateY(-1px);
}

.profile-context-side {
    min-width: 280px;
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-context-level,
.profile-context-badge {
    background: var(--background-hero);
    border: 1px solid var(--badge-unificado-borda);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.profile-context-level {
    min-height: 68px;
    padding: 10px 16px;
    flex-direction: row;
    justify-content: flex-start;
    text-transform: uppercase;
    gap: 14px;
}

.profile-context-level-value {
    width: 54px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.3), transparent 70%);
    box-shadow: 0 0 0 2.5px rgba(70, 130, 255, 0.8), 0 0 10px rgba(70, 130, 255, 0.5);
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    position: relative;
    z-index: 0;
    isolation: isolate;
    flex-shrink: 0;
}

.profile-context-level-value.steam-level-grey { box-shadow: 0 0 0 2.5px rgba(150, 150, 150, 0.7), 0 0 10px rgba(150, 150, 150, 0.4); }
.profile-context-level-value.steam-level-red { box-shadow: 0 0 0 2.5px rgba(230, 50, 50, 0.8), 0 0 10px rgba(230, 50, 50, 0.5); }
.profile-context-level-value.steam-level-orange { box-shadow: 0 0 0 2.5px rgba(255, 140, 0, 0.8), 0 0 10px rgba(255, 140, 0, 0.5); }
.profile-context-level-value.steam-level-yellow { box-shadow: 0 0 0 2.5px rgba(255, 215, 0, 0.8), 0 0 10px rgba(255, 215, 0, 0.5); }
.profile-context-level-value.steam-level-green { box-shadow: 0 0 0 2.5px rgba(50, 205, 50, 0.8), 0 0 10px rgba(50, 205, 50, 0.5); }
.profile-context-level-value.steam-level-blue { box-shadow: 0 0 0 2.5px rgba(70, 130, 255, 0.8), 0 0 10px rgba(70, 130, 255, 0.5); }
.profile-context-level-value.steam-level-purple { box-shadow: 0 0 0 2.5px rgba(150, 50, 230, 0.8), 0 0 10px rgba(150, 50, 230, 0.5); }
.profile-context-level-value.steam-level-pink { box-shadow: 0 0 0 2.5px rgba(255, 105, 180, 0.8), 0 0 10px rgba(255, 105, 180, 0.5); }
.profile-context-level-value.steam-level-brown { box-shadow: 0 0 0 2.5px rgba(160, 82, 45, 0.8), 0 0 10px rgba(160, 82, 45, 0.5); }
.profile-context-level-value.steam-level-cyan { box-shadow: 0 0 0 2.5px rgba(0, 206, 209, 0.8), 0 0 10px rgba(0, 206, 209, 0.5); }

.profile-context-level-value.steam-level-hex {
    border-radius: 0;
    width: 54px;
    height: 48px;
    background: transparent;
    box-shadow: none;
    position: relative;
    z-index: 0;
    isolation: isolate;
}

.profile-context-level-value.steam-level-hex::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(0.87);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: radial-gradient(circle, rgba(0, 0, 0, 0.3), transparent 70%);
    z-index: -1;
}

.profile-context-level-value.steam-level-hex::after {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    z-index: -2;
}

.profile-context-level-value.steam-level-hex-grey::after {
    background: rgba(150, 150, 150, 0.8);
    filter: drop-shadow(0 0 8px rgba(150, 150, 150, 0.6));
}

.profile-context-level-value.steam-level-hex-red::after {
    background: rgba(230, 50, 50, 0.9);
    filter: drop-shadow(0 0 8px rgba(230, 50, 50, 0.7));
}

.profile-context-level-value.steam-level-hex-orange::after {
    background: rgba(255, 140, 0, 0.9);
    filter: drop-shadow(0 0 8px rgba(255, 140, 0, 0.7));
}

.profile-context-level-value.steam-level-hex-yellow::after {
    background: rgba(255, 215, 0, 0.9);
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.7));
}

.profile-context-level-value.steam-level-hex-green::after {
    background: rgba(50, 205, 50, 0.9);
    filter: drop-shadow(0 0 8px rgba(50, 205, 50, 0.7));
}

.profile-context-level-value.steam-level-hex-blue::after {
    background: rgba(70, 130, 255, 0.9);
    filter: drop-shadow(0 0 8px rgba(70, 130, 255, 0.7));
}

.profile-context-level-value.steam-level-hex-purple::after {
    background: rgba(150, 50, 230, 0.9);
    filter: drop-shadow(0 0 8px rgba(150, 50, 230, 0.7));
}

.profile-context-level-value.steam-level-hex-pink::after {
    background: rgba(255, 105, 180, 0.9);
    filter: drop-shadow(0 0 8px rgba(255, 105, 180, 0.7));
}

.profile-context-level-value.steam-level-hex-brown::after {
    background: rgba(160, 82, 45, 0.9);
    filter: drop-shadow(0 0 8px rgba(160, 82, 45, 0.7));
}

.profile-context-level-value.steam-level-hex-cyan::after {
    background: rgba(0, 206, 209, 0.9);
    filter: drop-shadow(0 0 8px rgba(0, 206, 209, 0.7));
}

.profile-context-level-value {
    --steam-level-border: #8f98a3;
    border: 2px solid var(--steam-level-border);
    background:
        radial-gradient(circle at 50% 46%, #303842 0 46%, #1d2229 66%, #14181d 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.35),
        0 2px 4px rgba(0, 0, 0, 0.28);
    color: #dfe7ef;
    font-size: 24px;
    font-weight: 500;
}

.profile-context-level-value.steam-level-grey,
.profile-context-level-value.steam-level-hex-grey { --steam-level-border: #8f98a3; }
.profile-context-level-value.steam-level-red,
.profile-context-level-value.steam-level-hex-red { --steam-level-border: #c12d45; }
.profile-context-level-value.steam-level-orange,
.profile-context-level-value.steam-level-hex-orange { --steam-level-border: #c96a35; }
.profile-context-level-value.steam-level-yellow,
.profile-context-level-value.steam-level-hex-yellow { --steam-level-border: #d4c02f; }
.profile-context-level-value.steam-level-green,
.profile-context-level-value.steam-level-hex-green { --steam-level-border: #5b9555; }
.profile-context-level-value.steam-level-blue,
.profile-context-level-value.steam-level-hex-blue { --steam-level-border: #5084c2; }
.profile-context-level-value.steam-level-purple,
.profile-context-level-value.steam-level-hex-purple { --steam-level-border: #745ac5; }
.profile-context-level-value.steam-level-pink,
.profile-context-level-value.steam-level-hex-pink { --steam-level-border: #b744bb; }
.profile-context-level-value.steam-level-brown,
.profile-context-level-value.steam-level-hex-brown { --steam-level-border: #79464c; }
.profile-context-level-value.steam-level-cyan,
.profile-context-level-value.steam-level-hex-cyan { --steam-level-border: #b99759; }

.profile-context-level-value.steam-level-hex {
    width: 56px;
    height: 50px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.profile-context-level-value.steam-level-hex::before {
    inset: 4px;
    width: auto;
    height: auto;
    transform: none;
    clip-path: polygon(26% 3%, 74% 3%, 97% 50%, 74% 97%, 26% 97%, 3% 50%);
    background:
        radial-gradient(circle at 50% 45%, #323943 0 46%, #1d2229 67%, #14181d 100%);
}

.profile-context-level-value.steam-level-hex::after {
    inset: 0;
    clip-path: polygon(26% 3%, 74% 3%, 97% 50%, 74% 97%, 26% 97%, 3% 50%);
    background: var(--steam-level-border);
    filter: none;
}

.profile-context-level-value.steam-level-hex-grey::after,
.profile-context-level-value.steam-level-hex-red::after,
.profile-context-level-value.steam-level-hex-orange::after,
.profile-context-level-value.steam-level-hex-yellow::after,
.profile-context-level-value.steam-level-hex-green::after,
.profile-context-level-value.steam-level-hex-blue::after,
.profile-context-level-value.steam-level-hex-purple::after,
.profile-context-level-value.steam-level-hex-pink::after,
.profile-context-level-value.steam-level-hex-brown::after,
.profile-context-level-value.steam-level-hex-cyan::after {
    background: var(--steam-level-border);
    filter: none;
}

.profile-context-badge {
    min-height: 86px;
    padding: 14px;
}

.profile-context-badge-icon {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: var(--background-input);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-context-badge-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile-context-badge-text strong {
    font-size: 15px;
}

.profile-context-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 20px;
}

.profile-context-stat {
    min-height: 108px;
    padding: 20px;
    border-radius: 10px;
    background: var(--badge-unificado);
    border: 1px solid var(--badge-unificado-borda);
    color: inherit;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.profile-context-stat:hover {
    background: var(--select-background);
    border-color: var(--primary-color);
}

.profile-context-stat-attention {
    position: absolute;
    top: -11px;
    right: 12px;
    width: 23px;
    height: 23px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    background: var(--background-card);
    color: var(--primary-color);
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
}

.profile-context-stat-label {
    min-height: 30px;
    color: var(--badge-text-color);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.profile-context-stat-value {
    color: var(--badge-text-color);
    font-size: 32px;
    font-weight: 850;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-context-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.92em;
    height: 0.92em;
    flex: 0 0 auto;
    line-height: 0;
}

.profile-context-stat-icon .icon,
.profile-context-stat-icon svg,
.profile-context-stat-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.profile-context-stat.is-metacritic-pair .profile-context-stat-value.is-pair {
    width: 100%;
    gap: 12px;
    justify-content: center;
}

.profile-context-stat-pair-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.profile-context-stat-pair-scores {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
}

.profile-context-stat-pair-item {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.profile-context-stat-pair-text {
    display: grid;
    gap: 4px;
    justify-items: center;
    line-height: 1;
}

.profile-context-stat-pair-label {
    color: var(--text-secondary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.profile-context-stat-score-box {
    width: 38px;
    height: 34px;
    flex: 0 0 38px;
    border: 2px solid;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 850;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .34);
}

.profile-context-stat-score-box.meta-positive {
    background: #66cc33;
    border-color: #66cc33;
    color: #07120a;
}

.profile-context-stat-score-box.meta-mixed {
    background: #ffcc33;
    border-color: #ffcc33;
    color: #171000;
}

.profile-context-stat-score-box.meta-negative {
    background: #ff6666;
    border-color: #ff6666;
    color: #170505;
}

.profile-context-stat-score-box.meta-tbd {
    background: #666666;
    border-color: #666666;
    color: #ffffff;
    font-size: 10px;
    text-transform: uppercase;
}

.profile-context-stat[data-tooltip]::after {
    content: attr(data-tooltip);
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    pointer-events: none;
    background: color-mix(in srgb, var(--background-dark) 92%, #000 8%);
    color: var(--text-white);
    border: 1px solid var(--border-color-light);
    border-radius: 8px;
    padding: 8px 10px;
    width: max-content;
    max-width: min(440px, calc(100vw - 32px));
    white-space: normal;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 500;
    text-transform: none;
    z-index: 30;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.profile-context-stat[data-tooltip]::before {
    content: '';
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 5px);
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    pointer-events: none;
    border: 6px solid transparent;
    border-top-color: color-mix(in srgb, var(--background-dark) 92%, #000 8%);
    z-index: 31;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.profile-context-stat[data-tooltip]:hover::after,
.profile-context-stat[data-tooltip]:hover::before,
.profile-context-stat[data-tooltip]:focus-visible::after,
.profile-context-stat[data-tooltip]:focus-visible::before {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.perfeito-medal-toggle {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 112px;
    min-height: 122px;
    padding: 12px 10px;
    border: 1px solid var(--border-color-light);
    border-radius: 10px;
    background: color-mix(in srgb, var(--background-input) 86%, transparent);
    color: var(--text-secondary);
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.perfeito-medal-toggle:hover,
.perfeito-medal-toggle:focus-within {
    color: var(--text-light);
    border-color: color-mix(in srgb, #ffd166 58%, var(--primary-color) 42%);
    background: color-mix(in srgb, var(--background-input) 74%, #ffd166 10%);
}

.perfeito-medal-toggle input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.perfeito-medal-image {
    width: auto;
    height: 66px;
    display: block;
    filter: grayscale(0.22) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.42));
    transition: filter 0.18s ease;
}

.perfeito-medal-caption {
    font-size: 11px;
    line-height: 1.15;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.perfeito-medal-toggle.is-selected,
.perfeito-medal-toggle:has(input[type="checkbox"]:checked) {
    color: #fff7d5;
    border-color: #ffd166;
    background: color-mix(in srgb, var(--background-input) 68%, #ffd166 16%);
    box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.42), 0 0 22px rgba(255, 209, 102, 0.35);
}

.perfeito-medal-toggle.is-selected .perfeito-medal-image,
.perfeito-medal-toggle:has(input[type="checkbox"]:checked) .perfeito-medal-image {
    filter: drop-shadow(0 0 12px rgba(255, 209, 102, 0.85)) drop-shadow(0 5px 12px rgba(0, 0, 0, 0.48));
}

.perfeito-medal-toggle[data-tooltip]::after {
    content: attr(data-tooltip);
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    pointer-events: none;
    background: color-mix(in srgb, var(--background-dark) 92%, #000 8%);
    color: var(--text-white);
    border: 1px solid var(--border-color-light);
    border-radius: 8px;
    padding: 8px 10px;
    width: max-content;
    max-width: 260px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 500;
    text-transform: none;
    z-index: 50;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.perfeito-medal-toggle[data-tooltip]::before {
    content: '';
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 5px);
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    pointer-events: none;
    border: 6px solid transparent;
    border-top-color: color-mix(in srgb, var(--background-dark) 92%, #000 8%);
    z-index: 51;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.perfeito-medal-toggle[data-tooltip]:hover::after,
.perfeito-medal-toggle[data-tooltip]:hover::before,
.perfeito-medal-toggle[data-tooltip]:focus-within::after,
.perfeito-medal-toggle[data-tooltip]:focus-within::before {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
    .profile-context-header {
        flex-direction: column;
    }

    .profile-context-side {
        min-width: 0;
        flex-basis: auto;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .profile-context-panel {
        padding: 20px;
    }

    .profile-context-left {
        flex-direction: column;
    }

    .profile-context-avatar {
        width: 120px;
        height: 120px;
    }
}

/* ========== Forms ========== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--background-input);
    border: 1px solid var(--border-color-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-group input[type="date"] {
    color-scheme: dark;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    background-color: rgba(102, 126, 234, 0.25);
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
}

.form-group input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    background-color: transparent;
}

.form-group select {
    background-image: var(--select-background);
    position: relative;
}

.form-group select option,
.form-group select optgroup {
    background-color: var(--background-card);
    color: var(--text-primary);
}

.form-group select::-ms-expand {
    display: none;
}

.form-group select:after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--background-input-focus);
    box-shadow: 0 0 0 3px var(--shadow-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 12px;
}

/* ========== Badges ========== */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-jogando {
    background: var(--badge-jogando);
    color: var(--badge-text-color);
}

.badge-finalizado {
    background: var(--badge-finalizado);
    color: var(--badge-text-color);
}

.badge-pausado {
    background: var(--badge-pausado);
    color: var(--badge-text-color);
}

.badge-abandonado {
    background: var(--badge-abandonado);
    color: var(--badge-text-color);
}

.badge-planejando {
    background: var(--badge-planejando);
    color: var(--badge-text-color);
}

/* ========== Notas Coloridas ========== */
.nota-excelente {
    background: var(--nota-excelente);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nota-boa {
    background: var(--nota-boa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nota-media {
    background: var(--nota-media);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nota-baixa {
    background: var(--nota-baixa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== Mensagens Toast (Canto Superior Direito) ========== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 0;
    color: white;
    font-weight: 500;
    font-size: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 300px;
    max-width: 460px;
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.toast-exit {
    animation: slideOutRight 0.3s ease-in forwards;
}

.toast-info {
    background: var(--toast-info);
    box-shadow: var(--shadow-lg);
}

.toast.erro {
    background: var(--gradient-danger);
    box-shadow: var(--shadow-lg);
}

.toast.sucesso {
    background: var(--gradient-success);
    box-shadow: var(--shadow-lg);
}

.toast.toast-confirm {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    background: var(--toast-confirm);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.toast-message {
    flex: 1;
}

.toast-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    width: 100%;
}

.toast-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.toast-btn:hover {
    transform: translateY(-1px);
}

.toast-btn-confirm {
    background: rgba(86, 171, 47, 0.95);
    color: #fff;
}

.toast-btn-cancel {
    background: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Responsivo para mobile */
@media (max-width: 640px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: unset;
        width: 100%;
    }
}

/* ========== Footer ========== */
.main-footer {
    background: var(--background-hero);
    padding: 30px 0;
    margin: 40px -20px -20px -20px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    width: calc(100vw / var(--global-ui-scale));
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: calc(-50vw / var(--global-ui-scale));
    margin-right: calc(-50vw / var(--global-ui-scale));
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 0 40px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-separator {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-copyright p {
    margin: 0;
}

/* ========== Ícones SVG ========== */
.icon {
    display: inline-block;
    vertical-align: middle;
    stroke: currentColor;
}

.icon-inline {
    display: inline;
    vertical-align: middle;
    margin: 0 4px;
}

/* ========== Páginas Estáticas (Termos) ========== */
.static-body {
    background: var(--background-dark);
    background-attachment: fixed;
    min-height: calc(100vh / var(--global-ui-scale));
    padding: 20px;
}

.terms-container {
    gap: 18px;
}

.terms-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
    --terms-border-color: var(--badge-unificado-borda);
}

.terms-hero {
    background: var(--background-hero);
    border: 1px solid var(--terms-border-color);
    border-radius: 10px;
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    box-shadow: none;
}

.terms-hero-text h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--text-white);
}

.terms-title-icon {
    flex: 0 0 auto;
    color: var(--primary-color);
}

.terms-hero-text p {
    color: var(--text-secondary);
    line-height: 1.5;
}

.terms-hero-meta {
    min-width: 220px;
    padding: 4px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.terms-hero-meta div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.terms-hero-meta .meta-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.12em;
}

.terms-hero-meta strong {
    font-size: 16px;
    color: var(--text-white);
}

.terms-summary,
.terms-content {
    background: var(--background-hero);
    border: 1px solid var(--terms-border-color);
    border-radius: 10px;
    box-shadow: none;
    padding: 20px 26px;
}

.terms-summary h2 {
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terms-summary ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px 16px;
}

.terms-summary a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.terms-summary a:hover {
    opacity: 1;
}

.terms-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.terms-article h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-white);
}

.terms-article p {
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 8px;
}

.terms-list-block {
    margin: 8px 0 12px;
    padding: 8px 0;
}

.terms-list-block .list-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-white);
}

.terms-list-block ul {
    padding-left: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text-secondary);
}

.refresh-body {
    --app-background-image: url('../assets/afterdark-default-background.webp');
    background-color: var(--background-dark);
    background-image: var(--app-background-overlay), var(--app-background-image);
    background-position: center center, var(--app-background-position);
    background-size: cover, var(--app-background-size);
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed, fixed;
}

@media (max-width: 900px) {
    .terms-hero {
        flex-direction: column;
    }

    .terms-hero-meta {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        gap: 12px;
    }

    .terms-summary ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .static-body {
        padding: 12px;
    }

    .terms-container {
        gap: 12px;
    }

    .terms-hero,
    .terms-summary,
    .terms-content {
        padding: 18px;
    }

    .terms-hero-text h1 {
        align-items: flex-start;
        font-size: 28px;
    }

    .terms-title-icon {
        margin-top: 2px;
    }

    .terms-hero-meta {
        flex-direction: column;
        gap: 6px;
    }
}

/* ========== Utilitários ========== */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.flex {
    display: flex;
}

.gap-10 {
    gap: 10px;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}
