.portal-page {
    min-height: 100vh;
    padding: 100px 16px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.portal-page-panel {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    align-items: stretch;
}

.portal-page-login {
    justify-content: flex-start;
}

.portal-page-login .portal-card {
    margin: 0 auto;
}

.portal-card {
    width: 100%;
    max-width: 460px;
    background: var(--bg-card);
    border: 1px solid rgba(184, 255, 0, 0.14);
    clip-path: var(--clip);
    padding: 28px;
    box-sizing: border-box;
    overflow: hidden;
}

.portal-card.portal-card-wide,
.portal-card-wide {
    max-width: 1180px;
    padding: 28px 28px 32px;
    clip-path: none;
    border-radius: 4px;
}

#panel-root.portal-card-wide {
    clip-path: none;
    border-radius: 4px;
}

.portal-title {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-weight: 900;
    margin-bottom: 6px;
    line-height: 1.15;
    word-break: break-word;
}

.portal-subtitle {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 12px;
    word-break: break-word;
}

.portal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 100%;
}

.portal-form > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.portal-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.portal-input {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(184, 255, 0, 0.18);
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.45);
    color: var(--text-main);
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    display: block;
}

.portal-input:focus {
    outline: none;
    border-color: var(--accent-lime);
    box-shadow: 0 0 0 2px rgba(184, 255, 0, 0.12);
}

.portal-btn {
    margin-top: 6px;
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--accent-lime);
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent-lime);
    color: #000;
    box-sizing: border-box;
    transition: transform 0.12s, box-shadow 0.12s;
}

.portal-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(184, 255, 0, 0.35);
}

.portal-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.portal-btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.15);
}

.portal-btn-secondary:hover:not(:disabled) {
    border-color: var(--accent-lime);
    color: var(--accent-lime);
    box-shadow: none;
}

.portal-btn-inline { width: auto; margin-top: 0; text-decoration: none; }

.panel-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.admin-search-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-search-row .portal-input { max-width: 320px; flex: 1 1 220px; }

.search-pick {
    width: auto !important;
    display: inline-flex !important;
    margin: 0 8px 8px 0 !important;
    padding: 9px 12px !important;
}

.portal-error {
    display: none;
    padding: 12px;
    border-radius: 2px;
    background: rgba(255, 45, 149, 0.1);
    border: 1px solid rgba(255, 45, 149, 0.35);
    color: #ffb3d9;
    font-size: 12px;
    word-break: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.portal-error.visible { display: block; }

.portal-success {
    display: none;
    padding: 12px;
    border-radius: 2px;
    background: rgba(184, 255, 0, 0.08);
    border: 1px solid rgba(184, 255, 0, 0.35);
    color: #d8ff80;
    font-size: 12px;
    word-break: break-word;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 14px;
}

.portal-success.visible { display: block; }

.portal-note {
    margin-top: 14px;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.55;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.turnstile-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 65px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.turnstile-wrap > div {
    max-width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.stat-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(184, 255, 0, 0.1);
    clip-path: var(--clip-sm);
    padding: 16px;
    transition: border-color 0.15s, transform 0.15s;
}

.stat-box:hover {
    border-color: rgba(184, 255, 0, 0.3);
    transform: translateY(-2px);
}

.stat-label {
    color: var(--text-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.stat-value { font-size: 1.2rem; font-weight: 800; font-family: 'Chakra Petch', sans-serif; }
.stat-value.credits { color: var(--accent-gold); }
.stat-value.shards { color: var(--accent-violet); }
.stat-value.money { color: var(--accent-lime); }

.panel-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
    width: 100%;
}

.panel-header > div:first-child {
    flex: 1 1 220px;
    min-width: 0;
}

.panel-header .portal-subtitle {
    margin-bottom: 0;
}

.panel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-muted);
    font-size: 10px;
}

.panel-meta span {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(184, 255, 0, 0.12);
    clip-path: var(--clip-sm);
    padding: 5px 10px;
    max-width: 100%;
}

.section-title {
    margin-top: 24px;
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 800;
}

.section-desc {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 4px;
}

/* PANEL HERO V2 — 3D left, identity right */
.panel-hero-v2 {
    display: grid;
    grid-template-columns: 340px 1fr;
    align-items: stretch;
    gap: 0;
    margin: 12px 0 24px;
    width: 100%;
    max-width: 100%;
    min-height: 420px;
    border: 1px solid rgba(184, 255, 0, 0.12);
    border-radius: 4px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, transparent 45%),
        rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

.panel-hero-stage {
    position: relative;
    min-height: 420px;
    border-right: 1px solid rgba(184, 255, 0, 0.1);
    background:
        radial-gradient(ellipse at 30% 80%, rgba(184, 255, 0, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.panel-hero-stage .skin-stage-panel {
    flex: 1;
    width: 100%;
    min-height: 0;
}

.panel-hero-identity {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 20px 22px;
    position: relative;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.panel-hero-name {
    position: relative;
    z-index: 1;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: #fff;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-shadow:
        0 0 30px rgba(184, 255, 0, 0.25),
        0 0 8px rgba(0, 245, 255, 0.15);
}

.panel-rank-zone {
    position: relative;
    z-index: 1;
    min-width: 0;
    width: 100%;
}

.panel-rank-zone .rank-showcase {
    padding: 12px 14px;
    gap: 12px;
    clip-path: none;
    border-radius: 3px;
    width: 100%;
    box-sizing: border-box;
}

.panel-rank-zone .rank-showcase-emblem {
    width: 48px;
    height: 48px;
    font-size: 18px;
    flex-shrink: 0;
}

.panel-rank-zone .rank-showcase-name {
    font-size: 1.1rem;
}

.panel-rank-zone .rank-showcase-body {
    flex: 1;
    min-width: 0;
}

.panel-rank-zone .rank-showcase-orbit {
    display: none;
}

.panel-hero-identity::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -12deg,
        transparent,
        transparent 40px,
        rgba(184, 255, 0, 0.015) 40px,
        rgba(184, 255, 0, 0.015) 41px
    );
    pointer-events: none;
}

.panel-id-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.panel-id-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    clip-path: var(--clip-sm);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-lime);
    border: 1px solid rgba(184, 255, 0, 0.25);
    background: rgba(184, 255, 0, 0.06);
}

.panel-id-chip-admin {
    color: var(--accent-magenta);
    border-color: rgba(255, 45, 149, 0.35);
    background: rgba(255, 45, 149, 0.08);
}

.panel-quick-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    margin-top: 4px;
}

.panel-quick-stat {
    flex: 1 1 120px;
    min-width: 0;
    padding: 10px 12px;
    clip-path: var(--clip-sm);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 208, 0, 0.2);
}

.panel-quick-label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.panel-quick-value {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    word-break: break-all;
}

.panel-quick-value.credits { color: var(--accent-gold); }

.panel-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    clip-path: var(--clip-sm);
    border: 1px solid rgba(184, 255, 0, 0.2);
    background: rgba(184, 255, 0, 0.06);
    color: var(--accent-lime);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
    white-space: nowrap;
}

.panel-quick-link:hover {
    transform: translateY(-2px);
    background: rgba(184, 255, 0, 0.12);
    box-shadow: 0 0 20px rgba(184, 255, 0, 0.15);
}

/* RANK SHOWCASE */
.rank-showcase {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid color-mix(in srgb, var(--rank-color, var(--accent-lime)) 35%, transparent);
    box-shadow:
        0 0 30px var(--rank-glow, rgba(184, 255, 0, 0.15)),
        inset 0 0 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
}

.rank-showcase-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--rank-color) 8%, transparent) 50%, transparent 100%);
    animation: rankScan 4s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes rankScan {
    0%, 100% { transform: translateY(-80%); opacity: 0; }
    45%, 55% { opacity: 0.5; }
    50% { transform: translateY(80%); opacity: 0.5; }
}

.rank-showcase-orbit {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 100px;
    height: 100px;
    margin-top: -50px;
    pointer-events: none;
}

.rank-showcase-orbit::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px dashed color-mix(in srgb, var(--rank-color) 30%, transparent);
    border-radius: 50%;
    animation: orbitSpin 10s linear infinite;
}

.rank-showcase-emblem {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: color-mix(in srgb, var(--rank-color) 18%, rgba(0, 0, 0, 0.6));
    border: 2px solid var(--rank-color);
    box-shadow: 0 0 24px var(--rank-glow);
    font-size: 24px;
    color: var(--rank-color);
}

.rank-showcase-emblem-empty {
    color: var(--text-muted);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.rank-showcase-body {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.rank-showcase-tier {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rank-color);
    margin-bottom: 4px;
    opacity: 0.9;
}

.rank-showcase-name {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.65rem;
    font-weight: 900;
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 0 20px var(--rank-glow);
    margin-bottom: 6px;
    word-break: break-word;
}

.rank-showcase-duration {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.rank-showcase-empty .rank-showcase-name {
    color: var(--text-muted);
    text-shadow: none;
}

.rank-showcase-extras {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.rank-chip {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    clip-path: var(--clip-sm);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid color-mix(in srgb, var(--rank-color) 25%, transparent);
    min-width: 140px;
}

.rank-chip-label {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.rank-chip-name {
    font-size: 12px;
    font-weight: 800;
    color: var(--rank-color);
}

.rank-chip-time {
    font-size: 10px;
    color: var(--text-muted);
}

/* MC-style floating nameplate */
.mc-nameplate-frame {
    position: absolute;
    inset: 0;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid color-mix(in srgb, var(--rank-color, var(--accent-lime)) 40%, transparent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 16px var(--rank-glow, rgba(184, 255, 0, 0.2));
    z-index: 0;
}

.mc-nameplate {
    position: relative;
    text-align: center;
    padding: 8px 12px 10px;
    max-width: 100%;
    box-sizing: border-box;
}

.mc-nameplate-rank {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
    padding: 3px 10px;
    clip-path: var(--clip-sm);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #000;
    background: var(--rank-color, var(--accent-lime));
    box-shadow: 0 0 12px var(--rank-glow);
}

.mc-nameplate-user {
    position: relative;
    z-index: 1;
    font-family: 'Chakra Petch', sans-serif;
    font-size: clamp(14px, 3vw, 18px);
    font-weight: 900;
    color: #fff;
    text-shadow:
        2px 2px 0 rgba(0, 0, 0, 0.9),
        -1px -1px 0 rgba(0, 0, 0, 0.7),
        0 0 12px var(--rank-glow, rgba(255, 255, 255, 0.2));
    letter-spacing: 0.04em;
    word-break: break-word;
    line-height: 1.1;
}

.skin-stage-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100%;
    min-height: 420px;
    border: none;
    clip-path: none;
    background: transparent;
    padding: 10px 12px 8px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.skin-stage-panel::before,
.skin-stage-panel::after {
    display: none;
}

.skin-stage-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(184, 255, 0, 0.35);
    pointer-events: none;
    z-index: 3;
}

.skin-stage-corner-tl {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.skin-stage-corner-br {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.skin-stage-canvas-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}

.skin-stage-canvas-wrap .skin-stage-glow {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.skin-stage-canvas-wrap .skin-orbit-ring {
    top: 50%;
    left: 50%;
    width: min(200px, 85%);
}

.skin-stage-canvas-wrap .skin-orbit-ring-2 {
    width: min(250px, 95%);
}

.skin-orbit-ring {
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(240px, 72%);
    aspect-ratio: 1;
    pointer-events: none;
    z-index: 0;
}

.skin-orbit-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(184, 255, 0, 0.25);
    border-radius: 50%;
    animation: orbitSpin 8s linear infinite;
}

.skin-orbit-ring::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(255, 45, 149, 0.2);
    border-radius: 50%;
    animation: orbitSpin 14s linear infinite reverse;
}

.skin-orbit-ring-2 {
    width: min(300px, 88%);
    opacity: 0.45;
}

.skin-orbit-ring-2::before {
    animation-duration: 16s;
    animation-direction: reverse;
}

@keyframes orbitSpin {
    to { transform: rotate(360deg); }
}

.skin-stage-nameplate-wrap {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    display: flex;
    justify-content: center;
    z-index: 4;
    pointer-events: none;
    padding: 0 8px 4px;
}

.skin-stage-nameplate-inner {
    animation: nameplateFloat 3s ease-in-out infinite;
    max-width: 100%;
}

.skin-stage-hud {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    display: flex;
    gap: 10px;
    justify-content: center;
    z-index: 3;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding-top: 6px;
    flex-wrap: wrap;
}

.skin-canvas {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
    cursor: grab;
    display: block;
}

.skin-stage-hud span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    clip-path: var(--clip-sm);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(184, 255, 0, 0.12);
}

/* legacy hero — keep for other pages */
.panel-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
    align-items: stretch;
}

.panel-hero-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.skin-stage-wrap {
    min-height: 420px;
}

.skin-stage {
    position: relative;
    height: 100%;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15) 0%, transparent 65%),
        rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(184, 255, 0, 0.2);
    clip-path: var(--clip);
    overflow: hidden;
}

.skin-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(184, 255, 0, 0.04) 0 1px, transparent 1px 32px),
        repeating-linear-gradient(0deg, rgba(139, 92, 246, 0.05) 0 1px, transparent 1px 32px);
    transform: perspective(400px) rotateX(68deg) scale(1.4);
    transform-origin: center 85%;
    pointer-events: none;
    animation: stageGridPulse 6s ease-in-out infinite;
}

.skin-stage::after {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, transparent, rgba(184, 255, 0, 0.08), transparent, rgba(255, 45, 149, 0.08), transparent);
    animation: stageSpin 12s linear infinite;
    pointer-events: none;
}

@keyframes stageGridPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes stageSpin {
    to { transform: rotate(360deg); }
}

.skin-stage-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--accent-violet);
    filter: blur(80px);
    opacity: 0.35;
    animation: stageGlow 4s ease-in-out infinite alternate;
}

@keyframes stageGlow {
    from { transform: scale(1); opacity: 0.25; }
    to { transform: scale(1.3); opacity: 0.45; }
}

.skin-nameplate {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 8px;
    padding: 10px 20px;
    clip-path: var(--clip-sm);
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid var(--rank-color, var(--accent-lime));
    box-shadow: 0 0 20px color-mix(in srgb, var(--rank-color, var(--accent-lime)) 40%, transparent);
    animation: nameplateFloat 3s ease-in-out infinite, nameplateGlitch 8s steps(1) infinite;
}

@keyframes nameplateGlitch {
    0%, 92%, 100% { filter: none; }
    93% { filter: hue-rotate(90deg) brightness(1.2); }
    94% { filter: none; }
    95% { filter: hue-rotate(-45deg) saturate(1.5); }
}

@keyframes nameplateFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.skin-nameplate-rank {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--rank-color, var(--accent-lime));
    margin-bottom: 4px;
}

.skin-nameplate-name {
    display: block;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.skin-canvas:active { cursor: grabbing; }

.skin-stage-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.player-rank-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    padding: 16px;
    clip-path: var(--clip-sm);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(184, 255, 0, 0.12);
}

.player-rank-card-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.player-rank-badge {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
    clip-path: var(--clip-sm);
    font-weight: 700;
    font-size: 12px;
}

.player-rank-badge-shop {
    background: rgba(184, 255, 0, 0.1);
    border: 1px solid rgba(184, 255, 0, 0.3);
    color: var(--accent-lime);
}

.player-rank-badge-staff {
    background: rgba(255, 45, 149, 0.1);
    border: 1px solid rgba(255, 45, 149, 0.3);
    color: var(--accent-magenta);
}

.player-rank-badge-empty {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.player-rank-badge-duration { font-size: 11px; opacity: 0.85; }
.player-rank-note { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }

.panel-stats-section {
    border-top: 1px solid rgba(184, 255, 0, 0.1);
    padding-top: 20px;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .panel-hero-v2 {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .panel-hero-stage {
        min-height: 320px;
        border-right: none;
        border-bottom: 1px solid rgba(184, 255, 0, 0.1);
    }

    .skin-stage-panel {
        min-height: 320px;
    }

    .panel-hero-identity {
        padding: 18px 16px;
    }

    .panel-hero {
        grid-template-columns: 1fr;
    }

    .skin-stage-wrap { order: -1; }
}

@media (max-width: 640px) {
    .portal-page {
        padding: 92px 12px 40px;
    }

    .portal-card,
    .portal-card.portal-card-wide {
        padding: 20px 16px;
    }

    .portal-card { padding: 20px 16px; }
}

/* Admin tabs + activity logs */
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 22px;
}

.admin-tab {
    appearance: none;
    border: 1px solid rgba(184, 255, 0, 0.18);
    background: rgba(8, 8, 18, 0.85);
    color: var(--text-muted);
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    clip-path: var(--clip-sm);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.admin-tab:hover,
.admin-tab.active {
    color: var(--accent-lime);
    border-color: rgba(184, 255, 0, 0.45);
    box-shadow: 0 0 18px rgba(184, 255, 0, 0.12);
}

.admin-tab-panel[hidden] {
    display: none !important;
}

.admin-password-note {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(139, 92, 246, 0.25);
    background: rgba(139, 92, 246, 0.08);
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
}

.admin-activity-section {
    margin-top: 28px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.admin-activity-box {
    margin-top: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.admin-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(184, 255, 0, 0.12);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.35);
}

.admin-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 12px;
}

.admin-table th,
.admin-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(184, 255, 0, 0.08);
    vertical-align: top;
}

.admin-table th {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.35);
    white-space: nowrap;
}

.admin-table tbody tr:hover {
    background: rgba(184, 255, 0, 0.04);
}

.admin-table code {
    font-size: 11px;
    color: var(--accent-cyan);
}

.panel-purchases-section .section-title {
    margin-bottom: 6px;
}

.panel-purchases-section .section-desc {
    margin-bottom: 16px;
}

.admin-delta-plus {
    color: var(--accent-lime);
    font-weight: 800;
}

.admin-delta-minus {
    color: #ff8fab;
    font-weight: 800;
}

.admin-player-history {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(184, 255, 0, 0.1);
}

.admin-subsection-title {
    margin: 16px 0 8px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.avatar-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}


/* Ban & appeal UI */
.appeal-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: start;
}

.appeal-history-panel {
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(184,255,0,0.12);
    border-radius: 8px;
    padding: 14px;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow: auto;
}

.appeal-history-title {
    margin: 0 0 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.appeal-history-list { display: flex; flex-direction: column; gap: 8px; }

.appeal-history-item {
    width: 100%;
    text-align: left;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 10px 12px;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.appeal-history-item:hover,
.appeal-history-item.active {
    border-color: rgba(184,255,0,0.35);
    background: rgba(184,255,0,0.06);
}

.appeal-history-item.is-active-ban { box-shadow: inset 3px 0 0 #ff6b6b; }

.appeal-history-item-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.appeal-history-id {
    font-family: ui-monospace, monospace;
    font-size: 11px;
    color: var(--accent);
}

.appeal-history-reason {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.35;
}

.appeal-history-meta {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

.appeal-main { min-width: 0; }

.panel-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.panel-tab {
    border: 1px solid rgba(184,255,0,0.15);
    background: rgba(0,0,0,0.25);
    color: inherit;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
}

.panel-tab.active {
    background: rgba(184,255,0,0.12);
    border-color: rgba(184,255,0,0.45);
    color: var(--accent);
}

.appeal-badge-neutral {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #adb5bd;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 5px 10px;
    border-radius: 999px;
}

.appeal-closed-neutral {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #ced4da;
}

.appeal-layout {
    display: grid;
    grid-template-columns: minmax(280px, 340px) 1fr;
    gap: 24px;
    align-items: start;
}

.appeal-summary {
    background: linear-gradient(145deg, rgba(255, 60, 60, 0.08), rgba(0, 0, 0, 0.35));
    border: 1px solid rgba(255, 80, 80, 0.22);
    border-radius: 8px;
    padding: 22px;
}

.appeal-summary-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
}

.appeal-badge-banned {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ff8787;
    background: rgba(255, 80, 80, 0.12);
    border: 1px solid rgba(255, 80, 80, 0.35);
    padding: 5px 10px;
    border-radius: 999px;
}

.appeal-status-pill {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.appeal-status-pill.status-waiting { color: #ffd166; background: rgba(255, 209, 102, 0.12); border-color: rgba(255, 209, 102, 0.35); }
.appeal-status-pill.status-review { color: #06d6a0; background: rgba(6, 214, 160, 0.12); border-color: rgba(6, 214, 160, 0.35); }
.appeal-status-pill.status-awaiting { color: #ff922b; background: rgba(255, 146, 43, 0.14); border-color: rgba(255, 146, 43, 0.45); }
.appeal-awaiting-banner {
    background: rgba(255, 146, 43, 0.08);
    border: 1px solid rgba(255, 146, 43, 0.35);
    color: #ffc078;
}
.appeal-history-item.is-awaiting-reply { box-shadow: inset 3px 0 0 #ff922b; }
.staff-ticket-needs-reply {
    border-color: rgba(255, 146, 43, 0.55);
    box-shadow: 0 0 0 1px rgba(255, 146, 43, 0.12);
}
.ticket-status-awaiting { color: #ff922b; font-weight: 700; }
.appeal-status-pill.status-denied { color: #ff6b6b; background: rgba(255, 107, 107, 0.15); border-color: rgba(255, 107, 107, 0.45); }
.appeal-status-pill.status-approved { color: #74c0fc; background: rgba(116, 192, 252, 0.12); border-color: rgba(116, 192, 252, 0.35); }

.appeal-summary-title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.2;
}

.appeal-summary-desc {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.appeal-detail-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.appeal-detail-item {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 10px 12px;
}

.appeal-detail-full { grid-column: 1 / -1; }

.appeal-detail-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.appeal-detail-value {
    font-size: 14px;
    font-weight: 700;
    word-break: break-word;
    line-height: 1.45;
}

.appeal-detail-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--accent);
    letter-spacing: 0.04em;
}

.appeal-ticket-panel {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(184, 255, 0, 0.14);
    border-radius: 8px;
    padding: 20px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.appeal-ticket-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(184, 255, 0, 0.1);
}

.appeal-ticket-title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 800;
}

.appeal-ticket-sub {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.appeal-closed-banner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 14px;
    font-size: 13px;
}

.appeal-closed-banner i { font-size: 1.2rem; margin-top: 2px; }
.appeal-closed-banner strong { display: block; margin-bottom: 2px; }
.appeal-closed-banner p { margin: 0; opacity: 0.9; }

.appeal-closed-denied {
    background: rgba(255, 80, 80, 0.12);
    border: 1px solid rgba(255, 80, 80, 0.35);
    color: #ffb3b3;
}

.appeal-closed-approved {
    background: rgba(6, 214, 160, 0.1);
    border: 1px solid rgba(6, 214, 160, 0.3);
    color: #9ef0d7;
}

.appeal-chat {
    flex: 1;
    min-height: 220px;
    max-height: 420px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 14px;
}

.appeal-chat-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    gap: 8px;
    padding: 24px 12px;
}

.appeal-chat-empty i { font-size: 1.6rem; opacity: 0.45; }
.appeal-chat-empty p { margin: 0; font-size: 13px; max-width: 280px; line-height: 1.5; }

.appeal-msg {
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.appeal-msg-player { border-left: 3px solid #ffd166; }
.appeal-msg-staff { border-left: 3px solid #06d6a0; }
.appeal-msg-admin { border-left: 3px solid #ef476f; }
.appeal-msg-system { border-left: 3px solid #868e96; opacity: 0.92; font-style: italic; }

.appeal-msg-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 11px;
}

.appeal-msg-author { font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.appeal-msg-time { color: var(--text-muted); white-space: nowrap; }
.appeal-msg-body { font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }

.appeal-compose {
    border-top: 1px solid rgba(184, 255, 0, 0.1);
    padding-top: 14px;
}

.appeal-compose-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.appeal-compose-hint {
    margin: -4px 0 10px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
}

.appeal-compose-input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    min-height: 88px;
    resize: vertical;
}

.appeal-compose-btn { width: 100%; justify-content: center; }
.appeal-form-note.visible { margin-top: 8px; color: #ffd166; }

/* Staff ticket UI (yetkili page) */
.ticket-list { display: flex; flex-direction: column; gap: 8px; }
.ticket-row {
    display: grid; grid-template-columns: 1.2fr 1fr 1fr 0.8fr 1fr; gap: 8px;
    width: 100%; text-align: left; padding: 12px 14px; cursor: pointer;
    background: rgba(0,0,0,0.25); border: 1px solid rgba(184,255,0,0.12);
    color: inherit; font: inherit; border-radius: 4px;
}
.ticket-row:hover { border-color: rgba(184,255,0,0.35); }
.ticket-id { font-family: monospace; color: var(--accent); }
.ticket-status-open, .ticket-status-waiting { color: #ffd166; }
.ticket-status-claimed, .ticket-status-review { color: #06d6a0; }
.ticket-status-closed { color: var(--text-muted); }
.ticket-status-denied { color: #ff6b6b; font-weight: 700; }
.ticket-status-approved { color: #74c0fc; }
.ticket-meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 16px 0; }
.ticket-alts { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.ticket-chat {
    max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
    padding: 12px; background: rgba(0,0,0,0.3); border: 1px solid rgba(184,255,0,0.08); border-radius: 4px; margin-bottom: 16px;
}
.chat-msg { padding: 8px 10px; border-radius: 4px; background: rgba(255,255,255,0.03); font-size: 13px; }
.chat-role-player { border-left: 3px solid #ffd166; }
.chat-role-staff { border-left: 3px solid #06d6a0; }
.chat-role-admin { border-left: 3px solid #ef476f; }
.chat-role-system { border-left: 3px solid var(--text-muted); opacity: 0.85; }
.chat-author { font-weight: 700; margin-right: 8px; }
.chat-time { display: block; font-size: 10px; color: var(--text-muted); margin-top: 4px; }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.ticket-extend-input { width: 100px; }
.ticket-compose { display: flex; flex-direction: column; gap: 8px; }
.ticket-compose textarea { width: 100%; box-sizing: border-box; }

@media (max-width: 900px) {
    .appeal-shell { grid-template-columns: 1fr; }
    .appeal-history-panel { position: static; max-height: none; }
    .appeal-layout { grid-template-columns: 1fr; }
}

/* Staff ticket dashboard */
.staff-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.staff-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.staff-filter-tab {
    border: 1px solid rgba(184,255,0,0.15);
    background: rgba(0,0,0,0.25);
    color: inherit;
    font: inherit;
    font-weight: 700;
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
}

.staff-filter-tab.active {
    background: rgba(184,255,0,0.12);
    border-color: rgba(184,255,0,0.45);
}

.staff-ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.staff-ticket-card {
    text-align: left;
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(184,255,0,0.12);
    border-radius: 10px;
    padding: 14px;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
}

.staff-ticket-card:hover {
    border-color: rgba(184,255,0,0.4);
    transform: translateY(-1px);
}

.staff-ticket-card-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.staff-ticket-card-id {
    font-family: ui-monospace, monospace;
    color: var(--accent);
    font-size: 12px;
}

.staff-ticket-card-player {
    font-size: 1.05rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.staff-ticket-card-reason {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 10px;
    min-height: 2.8em;
}

.staff-ticket-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.staff-detail-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
    align-items: start;
}

.staff-player-card,
.staff-chat-card {
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(184,255,0,0.12);
    border-radius: 10px;
    padding: 16px;
}

.staff-player-card h3,
.staff-chat-card h3 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.staff-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.staff-deny-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

@media (max-width: 900px) {
    .staff-detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .ticket-row { grid-template-columns: 1fr; }
}

