/* ── Page navigation ── */
.page-nav {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.page-nav-link {
    padding: 6px 24px;
    border-radius: 6px;
    font-size: .85em;
    font-weight: 600;
    color: var(--text-dim);
    text-decoration: none;
    transition: color .15s, background .15s;
}
.page-nav-link:hover  { color: var(--text); background: rgba(255,255,255,.05); }
.page-nav-link.active { color: var(--gold); background: rgba(200,169,110,.1); }

/* ── Three-column layout ── */
.panels {
    display: grid;
    grid-template-columns: 260px minmax(300px, 460px) 260px;
    justify-content: center;
    flex: 1;
    overflow: hidden;
}

.panel {
    padding: 14px 14px 0;
    background: var(--panel);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid var(--border);
}
.panel:last-of-type {
    border-right: none;
    border-left: 1px solid var(--border);
}

/* Centre column */
.center-col {
    background: #070a10;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 14px 16px;
}

/* ── UID form ── */
.panel-title {
    color: var(--gold);
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 10px;
}
.uid-row { display: flex; gap: 8px; margin-bottom: 6px; }

.uid-inp {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: .9em;
    transition: border-color .15s;
}
.uid-inp:focus { outline: none; border-color: var(--gold); }

.btn-load {
    padding: 8px 16px;
    background: var(--gold);
    border: none;
    border-radius: 6px;
    color: #1a1408;
    font-weight: 700;
    font-size: .85em;
    cursor: pointer;
    transition: opacity .15s;
    white-space: nowrap;
}
.btn-load:hover    { opacity: .85; }
.btn-load:disabled { opacity: .4; cursor: default; }

.player-info {
    font-size: .78em;
    color: var(--text-dim);
    min-height: 14px;
    margin-bottom: 8px;
}

/* ── UID history dropdown ── */
.uid-wrap { position: relative; flex: 1; min-width: 0; }
.uid-wrap .uid-inp { width: 100%; box-sizing: border-box; }

.uid-history {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: #151b2e;
    border: 1px solid var(--border);
    border-radius: 6px;
    z-index: 100;
    overflow: hidden;
}
.uid-history-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: .85em;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.uid-history-item:hover { background: #1e2740; }
.uid-history-item .h-uid { color: var(--gold); }
.uid-history-item .h-name { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Status & spinner ── */
.status {
    padding: 28px 0;
    text-align: center;
    font-size: .84em;
    color: var(--text-dim);
}
.status.loading { color: var(--gold); }
.status.error   { color: var(--lose); }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
    display: inline-block;
    width: 13px; height: 13px;
    border: 2px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    vertical-align: middle;
    margin-right: 5px;
}
