/* Cabal Stars — visual estilo Neo (overlay do tema Dark) */

@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Rajdhani:wght@500;600;700&display=swap");

:root {
    --neo-bg: #07060c;
    --neo-gold: #e8c36a;
    --neo-gold-2: #f4e2a6;
    --neo-cyan: #4dfbff;
    --neo-red: #ff5f6d;
    --neo-card: rgba(10, 10, 18, 0.78);
    --neo-line: rgba(232, 195, 106, 0.22);
}

body {
    font-family: "Rajdhani", "Montserrat", sans-serif;
    background:
        radial-gradient(1200px 600px at 15% 0%, rgba(232, 195, 106, 0.08), transparent 55%),
        radial-gradient(900px 500px at 90% 10%, rgba(77, 251, 255, 0.08), transparent 50%),
        #07060c;
}

body::before {
    background:
        linear-gradient(180deg, rgba(7, 6, 12, 0.55) 0%, rgba(7, 6, 12, 0.72) 55%, rgba(7, 6, 12, 0.88) 100%),
        url("images/fundo.jpg") center/cover no-repeat fixed;
    opacity: 0.88;
}

h1, h2, h3, .page-title, .auth-title, .ranking-page-title, .neo-title {
    font-family: "Cinzel", "Orbitron", serif;
    letter-spacing: 0.04em;
}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
    box-shadow: none;
}

.brand__logo-wrap {
    width: 150px;
    height: 150px;
    padding: 0;
}

.site-main,
body.home-page .site-main,
body.auth-page .site-main,
body.rankings-page .site-main,
body.admin-page .site-main {
    padding-top: 168px;
}

.auth-shell {
    margin-top: 8px;
}

.neo-hero {
    min-height: calc(100vh - 168px);
    padding-top: 24px;
}

.neo-rank-page,
.neo-panel {
    padding-top: 12px;
}

.primary-nav__link {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.82rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.primary-nav__link i {
    font-size: 1.2rem;
    width: 1.25em;
    text-align: center;
}

.primary-nav a[href*="ranking.php"] i {
    color: #f4d06a;
    filter: drop-shadow(0 0 8px rgba(244, 208, 106, 0.75));
}

.primary-nav a[href*="donate.php"] i {
    color: #7ee0ff;
    filter: drop-shadow(0 0 8px rgba(126, 224, 255, 0.7));
}

.primary-nav a[href*="drive.google"] i,
.primary-nav a[href*="Download"] i {
    color: #54ffb9;
    filter: drop-shadow(0 0 8px rgba(84, 255, 185, 0.65));
}

.primary-nav a[href*="login.php"] i {
    color: #8b9dff;
    filter: drop-shadow(0 0 8px rgba(139, 157, 255, 0.7));
}

.primary-nav a[href*="register.php"] i {
    color: #ff8fab;
    filter: drop-shadow(0 0 8px rgba(255, 143, 171, 0.7));
}

.primary-nav a[href*="logout.php"] i {
    color: #ff6b7a;
    filter: drop-shadow(0 0 8px rgba(255, 107, 122, 0.65));
}

.header-social--whatsapp i {
    font-size: 1.45rem;
    color: #25d366;
    filter: drop-shadow(0 0 10px rgba(37, 211, 102, 0.7));
}

.header-social--discord i {
    font-size: 1.4rem;
    color: #7289da;
    filter: drop-shadow(0 0 10px rgba(114, 137, 218, 0.7));
}

.primary-nav__link.is-active,
.primary-nav__link:hover {
    color: var(--neo-gold);
}

.neo-ecoins {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid rgba(232, 195, 106, 0.4);
    background: rgba(232, 195, 106, 0.1);
    color: var(--neo-gold-2);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
}

.site-footer {
    background: rgba(5, 4, 10, 0.92);
    border-top: 1px solid var(--neo-line);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px 12px;
}

.site-footer__col h3 {
    margin: 0 0 10px;
    color: var(--neo-gold);
    font-size: 0.95rem;
}

.site-footer__col a,
.site-footer__col p {
    color: var(--text-secondary);
    display: block;
    margin: 6px 0;
}

/* HOME */
.neo-hero {
    position: relative;
    min-height: calc(100vh - 168px);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: center;
    padding: 24px 6vw 70px;
}

.neo-kicker {
    color: var(--neo-gold);
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin-bottom: 10px;
}

.neo-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 0.95;
    margin: 0 0 16px;
    text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

.neo-hero p.lead {
    max-width: 560px;
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin: 0 0 24px;
}

.neo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.neo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.neo-btn--gold {
    background: linear-gradient(180deg, #f3d27a, #c89a3a);
    color: #2a1c05;
}

.neo-btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.neo-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.neo-stat {
    background: var(--neo-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
}

.neo-stat small {
    display: block;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.neo-stat strong {
    font-size: 1.4rem;
    color: #fff;
}

.neo-side {
    display: grid;
    gap: 14px;
}

.neo-card {
    background: var(--neo-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.neo-card__head {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--neo-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.neo-online {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.neo-preview {
    padding: 0 6vw 70px;
}

.neo-preview__head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 18px;
}

.neo-rank-row {
    display: grid;
    grid-template-columns: 56px 52px 1fr auto auto;
    gap: 14px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.neo-rank-row img.portrait {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(232, 195, 106, 0.28);
    filter: drop-shadow(0 0 8px rgba(232, 195, 106, 0.25));
}

/* RANKING */
.neo-rank-page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 18px 70px;
}

.neo-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 18px 0 26px;
}

.neo-tab {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.neo-tab.is-active {
    background: linear-gradient(180deg, #f3d27a, #c89a3a);
    color: #2a1c05;
    border-color: transparent;
}

.neo-podium {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 16px;
    align-items: end;
    margin-bottom: 28px;
}

.neo-podium__card {
    background: var(--neo-card);
    border: 1px solid rgba(232, 195, 106, 0.2);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.neo-podium__card--1 {
    transform: translateY(-18px);
    box-shadow: 0 20px 50px rgba(232, 195, 106, 0.15);
}

.neo-podium__art {
    height: 300px;
    object-fit: cover;
    object-position: center 12%;
    width: 100%;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 244, 214, 0.55), rgba(40, 32, 52, 0.3) 65%),
        #3a3348;
    filter: brightness(1.38) contrast(1.2) saturate(1.3);
    image-rendering: -webkit-optimize-contrast;
}

.neo-podium__meta {
    padding: 14px 16px 18px;
}

.neo-podium__place {
    color: var(--neo-gold);
    font-family: "Cinzel", serif;
    font-weight: 800;
}

.neo-table {
    width: 100%;
    border-collapse: collapse;
}

.neo-table th {
    text-align: left;
    color: var(--neo-gold);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 12px 10px;
    border-bottom: 1px solid var(--neo-line);
}

.neo-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.neo-table tr:hover td {
    background: rgba(232, 195, 106, 0.05);
}

.neo-class {
    display: flex;
    align-items: center;
    gap: 12px;
}

.neo-class img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(232, 195, 106, 0.3);
    filter: drop-shadow(0 0 8px rgba(232, 195, 106, 0.22));
}

.nation-capella { color: var(--neo-red); font-weight: 700; }
.nation-procyon { color: var(--neo-cyan); font-weight: 700; }
.nation-neutral { color: #c9d4ff; font-weight: 700; }

/* USER PANEL */
.neo-panel {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 16px 70px;
}

.neo-wallet {
    display: grid;
    grid-template-columns: 1.1fr 1.6fr;
    gap: 16px;
    margin-bottom: 22px;
}

.neo-wallet__value {
    font-size: 2.4rem;
    color: var(--neo-gold);
    font-family: "Cinzel", serif;
}

.neo-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.neo-actions-grid a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 700;
}

.neo-actions-grid a:hover {
    border-color: rgba(232, 195, 106, 0.4);
    color: var(--neo-gold);
}

.neo-chars {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 16px;
}

.neo-char {
    display: grid;
    grid-template-columns: 168px 1fr;
    gap: 0;
    overflow: hidden;
    background: var(--neo-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.neo-char__art {
    width: 168px;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    object-position: center 12%;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 244, 214, 0.72), rgba(70, 58, 88, 0.35) 62%),
        #4a4258;
    filter: brightness(1.42) contrast(1.22) saturate(1.35);
    image-rendering: -webkit-optimize-contrast;
    box-shadow: inset 0 0 0 1px rgba(255, 236, 190, 0.18);
}

.neo-char__body {
    padding: 14px 14px 16px;
}

.neo-char__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.neo-mini {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 8px;
}

.neo-mini small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.72rem;
    text-transform: uppercase;
}

@media (max-width: 960px) {
    .site-header__nav-group.is-open {
        background: rgba(8, 6, 12, 0.92);
        backdrop-filter: blur(12px);
    }
    .neo-hero,
    .neo-wallet,
    .neo-podium,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
    .neo-podium__card--1 { transform: none; }
    .neo-stats,
    .neo-actions-grid {
        grid-template-columns: 1fr;
    }
    .neo-rank-row {
        grid-template-columns: 40px 52px 1fr;
    }
    .admin-section__menu {
        grid-template-columns: 1fr 1fr;
    }
    .admin-section__link,
    .admin-section__link:nth-child(n+5) {
        grid-column: auto;
    }
}

/* Admin nav — duas linhas, botões iguais */
.admin-section {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.admin-section__info {
    align-self: flex-start;
}

.admin-section__menu {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(16, 14, 22, 0.88), rgba(8, 7, 14, 0.92));
    border: 1px solid rgba(232, 195, 106, 0.22);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.admin-section__link {
    grid-column: span 3;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 86px;
    padding: 14px 10px;
    text-align: center;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(36, 30, 42, 0.95), rgba(16, 14, 22, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f4f0e6;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.admin-section__link:nth-child(n+5) {
    grid-column: span 4;
}

.admin-section__link i {
    font-size: 1.15rem;
    color: var(--neo-gold);
    filter: drop-shadow(0 0 8px rgba(232, 195, 106, 0.35));
}

.admin-section__link:hover,
.admin-section__link.is-active {
    background: linear-gradient(180deg, #f3d27a, #c89a3a);
    border-color: transparent;
    color: #2a1c05;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(200, 154, 58, 0.28);
}

.admin-section__link:hover i,
.admin-section__link.is-active i {
    color: #2a1c05;
    filter: none;
}
