@import url("../style.css");

:root {
    --dark: #16495a;
    --dark2: #123f4f;
    --blue: #254bb6;
    --blue-deep: #2f45c2;
    --cream: #79a4e6;
    --pink: #5b8eec;
    --lightblue: #557ce6;
    --purple: #86c3e4;
    --text: #2b2b2b;
    --muted: #6b6b6b;
    --green: #2eb872;
    --red: #e5544e;
    --gray-slot: #eef1f6;
}

@font-face {
    font-family: 'FatherGalaxy';
    src: url('../assets/fonts/FatherGalaxy-Regular.otf') format('truetype');
}

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

body {
    font-family: 'Fredoka', 'Segoe UI', Arial, sans-serif;
    font-weight: 500;
    color: var(--text);
    background: #fff;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dark);
    color: #fff;
    padding: 13px 26px;
    border-radius: 10px;
    font-family: 'Fredoka', sans-serif;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(22,73,90,.28); }

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    position: relative;
    z-index: 30;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--blue-deep);
    display: flex;
    align-items: center;
    gap: 6px;
}

nav ul { display: flex; gap: 34px; font-size: 14px; font-weight: 600; color: #333; }
nav ul li { position: relative; cursor: pointer; }
nav ul li:hover { color: var(--dark); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
}

.hero-wrap {
    background: linear-gradient(135deg, #79a4e6 0%, #5b8eec 48%, #3e61d4 100%);
    position: relative;
    overflow: hidden;
}



.panel-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 24px;
    padding: 30px 0 60px;
}

.panel-hero h1 {
    font-size: 46px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 0 #254bb6, 0 5px 15px rgba(22,73,90,.35);
    margin-bottom: 8px;
}

.panel-hero p {
    color: rgb(211,229,255);
    font-size: 15px;
    max-width: 420px;
}

.search-box {
    background: #fff;
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(22,73,90,.2);
    min-width: 280px;
}

.search-box i { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }

.search-box input {
    border: none;
    outline: none;
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    font-size: 14px;
    width: 100%;
}

.wave-divider { display: block; width: 100%; line-height: 0; margin-top: -2px; }
.wave-divider svg { display: block; width: 100%; height: 70px; }

.section-heading {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid var(--dark);
    display: inline-block;
    padding-bottom: 6px;
    margin-bottom: 30px;
}

/* ===== RANKING ===== */
.ranking-section { padding: 20px 0 80px; }.ranking-heading .section-heading { margin-bottom: 30px; }

.table-wrap {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid #eee;
    box-shadow: 0 8px 30px rgba(25,55,90,.06);
}

table { width: 100%; border-collapse: collapse; min-width: 720px; }

thead th {
    text-align: left;
    padding: 16px 14px;
    background: #fafbff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--muted);
    border-bottom: 1px solid #eee;
    cursor: pointer;
    white-space: nowrap;
}

thead th:hover { color: var(--blue-deep); }
.score-info { position: relative; display: inline-flex; vertical-align: middle; color: #8a939d; cursor: help; outline: none; }.score-info > i { width: 11px; height: 11px; }.score-tooltip { position: absolute; z-index: 10; top: calc(100% + 9px); left: 50%; width: max-content; max-width: 270px; padding: 10px 12px; transform: translateX(-50%) translateY(-4px); opacity: 0; pointer-events: none; border-radius: 9px; background: #183e61; color: #fff; font-size: 11px; font-weight: 500; line-height: 1.55; letter-spacing: 0; text-transform: none; box-shadow: 0 8px 20px rgba(18,63,79,.24); transition: opacity .16s ease, transform .16s ease; }.score-tooltip b { font-size: 11px; }.score-info:hover .score-tooltip, .score-info:focus .score-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }

tbody tr {
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
    transition: background .2s ease;
}

tbody tr:hover { background: #f7faff; }
tbody td { padding: 12px 14px; font-size: 14px; }

.loading-row, .empty-row { text-align: center; color: var(--muted); padding: 30px !important; }

.player-cell { display: flex; align-items: center; gap: 10px; }
.player-avatar { width: 32px; height: 32px; border-radius: 8px; image-rendering: pixelated; }

.cargo-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(85,124,230,.12);
    color: var(--blue-deep);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
}

.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-dot.online { background: var(--green); box-shadow: 0 0 0 3px rgba(46,184,114,.2); }
.status-dot.offline { background: #b8bec9; }

/* ===== PERFIL ===== */
.profile-section { padding: 50px 0 20px; }

.account-box {
    margin: 30px 0 5px;
    padding: 18px 22px;
    border-radius: 16px;
    background: #fff7e8;
    border: 1px solid #f0d6a6;
    color: var(--text);
}

.auth-button {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    background: var(--primary, #e48a24);
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.account-menu { position: relative; }
.account-avatar {
    width: 42px; height: 42px; padding: 0; border: 2px solid #fff;
    border-radius: 50%; overflow: hidden; cursor: pointer; background: var(--blue);
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-dropdown {
    position: absolute; z-index: 20; top: calc(100% + 10px); right: 0; min-width: 150px;
    overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 10px 28px #123f4f55;
}
.account-dropdown a, .account-dropdown button {
    display: block; width: 100%; padding: 11px 14px; border: 0; background: #fff;
    color: var(--text); text-align: left; font: inherit; cursor: pointer;
}
.account-dropdown a:hover, .account-dropdown button:hover { background: var(--gray-slot); }

#linkActions { margin-top: 12px; }

.profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 26px;
    margin-bottom: 26px;
}

.profile-card {
    background: linear-gradient(160deg, #fafcff, #eef3ff);
    border: 1px solid rgba(47,69,194,.08);
    border-radius: 22px;
    padding: 26px;
    position: relative;
    text-align: center;
}

.profile-status-dot {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.profile-status-dot.online { background: var(--green); box-shadow: 0 0 0 4px rgba(46,184,114,.2); }
.profile-status-dot.offline { background: #b8bec9; }

.profile-skin-wrap {
    position: relative;
    margin: 0 auto 16px;
    width: 130px;
}

.profile-skin-wrap::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 16px;
    background: radial-gradient(ellipse, rgba(22,73,90,.35), transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.profile-skin {
    width: 130px;
    display: block;
    image-rendering: pixelated;
    filter:
        drop-shadow(-2px -2px 0 rgba(255,255,255,.15))
        drop-shadow(-3px -3px 3px rgba(255,255,255,.3))
        drop-shadow(2px 2px 0 rgba(0,0,0,.45))
        drop-shadow(4px 6px 14px rgba(22,73,90,.45))
        drop-shadow(0 18px 12px rgba(22,73,90,.22));
}

.profile-name-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
    text-align: left;
}

.profile-head { width: 44px; height: 44px; border-radius: 10px; image-rendering: pixelated; }
.profile-name-wrap h3 { font-size: 19px; font-weight: 700; }

.profile-meta {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
}

.profile-meta li { display: flex; align-items: center; gap: 8px; }
.profile-meta li i { width: 15px; height: 15px; flex-shrink: 0; color: var(--blue-deep); }
.profile-meta b { color: var(--text); font-weight: 700; }

.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); }
.bar { background: #e3e9f5; border-radius: 999px; height: 8px; margin-top: 5px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; }
.bar-fill.health { background: linear-gradient(90deg, #ff8a8a, var(--red)); }
.bar-fill.xp { background: linear-gradient(90deg, #8fd6a0, var(--green)); }

.profile-stats { display: flex; flex-direction: column; gap: 20px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.stat-tile {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 18px;
    text-align: center;
}

.stat-tile .value { font-size: 22px; font-weight: 700; color: var(--blue-deep); }
.stat-tile .label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }

.punishments-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 20px;
}

.punishments-box h4 { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 14px; }
.punishments-box h4 i { width: 17px; height: 17px; color: var(--red); }
.punishment-form { display: grid; grid-template-columns: 105px 1fr 1.4fr auto; gap: 7px; margin: -3px 0 14px; }
.punishment-form input, .punishment-form select { min-width: 0; border: 1px solid #dce3ec; border-radius: 8px; padding: 8px; font: inherit; font-size: 11px; }

.punishments-list { display: flex; flex-direction: column; gap: 10px; max-height: 220px; overflow-y: auto; }

.punishment-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12.5px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fafafa;
    border-left: 3px solid var(--red);
}

.punishment-item.expired { border-left-color: #ccc; opacity: .65; }
.punishment-item .type { font-weight: 700; text-transform: uppercase; font-size: 10.5px; }
.empty-hint { color: var(--muted); font-size: 13px; }

/* ===== INVENTARIO ===== */
.inventory-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 60px;
}

.inventory-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.inventory-box h4 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; }
.inventory-box h4 i { width: 18px; height: 18px; color: var(--blue-deep); }
.inventory-admin-actions { display: flex; gap: 6px; }
.icon-action { display: inline-grid; width: 32px; height: 32px; place-items: center; padding: 0; color: #55708f; background: #f2f6fb; border: 1px solid #dce6f1; border-radius: 8px; cursor: pointer; transition: .2s ease; }
.icon-action:hover { color: var(--blue-deep); background: #e7efff; transform: translateY(-1px); }.icon-action i { width: 15px; height: 15px; }.icon-action.primary { color: #fff; background: var(--blue-deep); border-color: var(--blue-deep); }

.inventory-armor {
    display: grid;
    grid-template-columns: repeat(4, 48px);
    gap: 8px;
    margin-bottom: 16px;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(9, 48px);
    gap: 8px;
}

.inventory-offhand-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    font-size: 12px;
    color: var(--muted);
}

.admin-action-message { margin: -46px 0 32px; min-height: 18px; }
.inventory-modal { width: min(720px, calc(100vw - 28px)); max-height: calc(100vh - 28px); margin: auto; padding: 0; overflow: auto; border: 0; border-radius: 18px; box-shadow: 0 24px 70px rgba(11,35,65,.3); color: var(--text); scrollbar-width: thin; scrollbar-color: #86a4dc #edf3fc; }.inventory-modal::backdrop { background: rgba(13,31,55,.48); }
.inventory-modal::-webkit-scrollbar { width: 9px; }.inventory-modal::-webkit-scrollbar-track { margin: 14px 0; background: #edf3fc; border-radius: 999px; }.inventory-modal::-webkit-scrollbar-thumb { background: linear-gradient(#86a4dc, var(--blue-deep)); border: 2px solid #edf3fc; border-radius: 999px; }.inventory-modal::-webkit-scrollbar-thumb:hover { background: var(--blue-deep); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid #e7edf4; }.modal-header span { font-size: 18px; font-weight: 700; color: var(--blue-deep); }.modal-header p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.modal-inventory { display: grid; gap: 10px; padding: 22px; }.modal-inventory > span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }.editor-grid .item-slot { cursor: pointer; }.editor-grid .item-slot:hover, .editor-grid .item-slot.selected { outline: 2px solid var(--blue-deep); outline-offset: 1px; background: #e7efff; }
.item-editor { display: grid; grid-template-columns: 1.3fr .6fr 1fr; gap: 10px; padding: 18px 22px; background: #f7faff; border-top: 1px solid #e2eaf4; }.item-editor b { grid-column: 1 / -1; font-size: 13px; color: var(--blue-deep); }.item-editor label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }.item-editor input { min-width: 0; padding: 9px; border: 1px solid #d6dfeb; border-radius: 8px; font: inherit; }.item-editor > div { grid-column: 1 / -1; display: flex; justify-content: flex-start; align-items: center; }.text-button { border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }.text-button.danger { color: var(--red); }.modal-footer { display: flex; justify-content: flex-end; padding: 14px 22px 20px; background: #f7faff; }
@media(max-width:700px) { .punishment-form { grid-template-columns: 1fr 1fr auto; }.punishment-form input:last-of-type { grid-column: 1 / 3; }.item-editor { grid-template-columns: 1fr 1fr; }.item-editor label:first-of-type { grid-column: 1 / -1; } }

.item-slot {
    width: 48px;
    height: 48px;
    background: var(--gray-slot);
    border-radius: 8px;
    border: 1px solid #e3e8f2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-slot img { width: 32px; height: 32px; image-rendering: pixelated; }

.item-slot .amount {
    position: absolute;
    bottom: 1px;
    right: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--dark);
    text-shadow: 0 1px 0 #fff;
}

.item-slot .fallback-label {
    font-size: 8px;
    color: var(--muted);
    text-align: center;
    padding: 2px;
    line-height: 1.1;
}

footer { background: #fff; padding: 40px 0 0; margin-top: 20px; }

.footer-bottom {
    border-top: 1px solid #eee;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom ul { display: flex; gap: 24px; }

@media(max-width: 900px) {
    .profile-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #fff;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 12px 24px rgba(0,0,0,.12);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    nav.open { max-height: 260px; }
    nav ul { flex-direction: column; gap: 0; padding: 10px 0; }
    nav ul li { padding: 14px 24px; color: var(--dark); }
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .panel-hero { flex-direction: column; align-items: flex-start; }
}

@media(max-width: 600px) {
    .container { padding: 0 18px; }
    .panel-hero h1 { font-size: 34px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .inventory-grid { grid-template-columns: repeat(9, 32px); }
    .inventory-armor { grid-template-columns: repeat(4, 32px); }
    .item-slot { width: 32px; height: 32px; }
    .item-slot img { width: 22px; height: 22px; }
}

/* Mesmo cabeçalho translúcido usado na página principal. */
header {
    margin-top: 12px;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,.46);
    border-radius: 18px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 10px 28px rgba(24,50,115,.14);
    backdrop-filter: blur(10px);
}
header .logo {
    font-family: 'FatherGalaxy', 'Fredoka', sans-serif;
    color: #183b96;
}
header nav ul { color: #173f70; }
header nav ul li:hover { color: #254bb6; }
header .auth-button { background: var(--blue); }
header .menu-toggle { color: #173f70; }
@media (min-width: 901px) {
    header nav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

.site-header {
    min-height: 76px;
    padding: 15px 20px;
}

.site-header .logo {
    gap: 10px;
}

.site-header .logo span {
    display: block;
    padding-top: 4px;
    line-height: 1;
}

.logo-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    object-fit: contain;
    border-radius: 10px;
}

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

.panel-bee-divider {
    position: relative;
    left: 50%;
    width: 100vw;
    height: clamp(72px, 6.25vw, 112px);
    margin: -30px 0 0 -50vw;
}

.site-header .btn {
    letter-spacing: .5px;
}

.site-header nav ul li::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #254bb6;
    transition: width .25s ease;
}

.site-header nav ul li:hover::after {
    width: 100%;
}

.site-header .menu-toggle {
    padding: 6px;
}

@media(max-width: 600px) {
    .site-header {
        min-height: 68px;
        padding: 12px 16px;
    }

    .site-header .logo { font-size: 21px; }
    .logo-mark { width: 34px; height: 34px; flex-basis: 34px; }
}

/* Painel na mesma linguagem do site: leitura rápida e blocos de jogo. */
:root { --dark: #244aaf; --dark2: #1c3f91; --blue: #4d78d7; --blue-deep: #244aaf; --cream: #f5f8ff; --pink: #4d78d7; --lightblue: #78a0ed; --purple: #e7efff; --text: #1c2b50; --muted: #62708d; --gray-slot: #edf2fb; }
body { background: #f5f8ff; }.hero-wrap { background: #315ebd; background-image: linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px); background-size: 28px 28px; }
.site-header { margin-top: 0; padding-left: 0; padding-right: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }.site-header .logo { color: #fff; }.site-header nav ul { color: #e8efff; }.site-header nav ul li:hover { color: #fff; }.site-header .btn { border: 1px solid #173b90; border-radius: 7px; background: #f0a841; color: #1c2b50; box-shadow: 2px 2px 0 #173b90; }
.panel-hero h1 { font-family: 'FatherGalaxy', 'Fredoka', sans-serif; text-shadow: none; }.search-box { border: 1px solid #c8d9f7; border-radius: 10px; box-shadow: 0 8px 18px rgba(38,76,160,.15); }.account-box { border: 1px solid #d6e0f4; border-radius: 10px; background: #fff; }.profile-card, .punishments-box, .inventory-box { border: 1px solid #d6e0f4; border-radius: 12px; background: #fff; box-shadow: none; }.profile-card { background: #fff; }.stat-tile { border-radius: 8px; background: #edf3ff; }.stat-tile .value { color: #244aaf; }.inventory-box { margin-bottom: 34px; }.item-slot { border-radius: 3px; background: #edf2fb; }.item-slot:hover { background: #e1ebff; }.punishment-item { border-radius: 5px; background: #f7faff; }.ranking-section { padding-bottom: 70px; }.table-wrap { border: 1px solid #d6e0f4; border-radius: 10px; box-shadow: none; } thead th { background: #eaf1ff; color: #315496; } tbody tr:hover { background: #f7faff; }
footer { background: #1d397f; }.footer-bottom { color: #d5e2ff; }

/* Mesmas dimensões e alinhamento do cabeçalho do site. */
.site-header{min-height:86px;padding:0 14px}.header-copy-ip{display:inline-flex;align-items:center;gap:7px;padding:10px 13px;border:1px solid #ffffff61;border-radius:9px;background:#ffffff17;color:#fff;cursor:pointer;font:700 13px Fredoka,sans-serif;transition:background .2s,transform .2s}.header-copy-ip:hover{background:#ffffff29;transform:translateY(-2px)}.header-copy-ip i{width:15px}
@media(max-width:600px){.site-header{min-height:72px;padding:0 10px}.header-copy-ip{padding:10px}.header-copy-ip span{display:none}}
