.panel {
    position: relative;
    padding: 0;
}

.panel > .container {
    position: relative;
    z-index: 1;
    border-radius: 0;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65);
    width: 100%;
    padding: 48px;
    margin: 0 auto;
    backdrop-filter: blur(16px);
    animation: slideIn 0.5s ease-out;
}

.panel-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.95fr;
    gap: 32px;
    padding: 36px;
    margin-bottom: 34px;
    border-radius: 26px;
    background: linear-gradient(
        145deg,
        rgba(15, 21, 39, 0.95),
        rgba(10, 16, 32, 0.95)
    );
    border: 1px solid rgba(59, 130, 246, 0.25);
    box-shadow: 0 25px 60px rgba(2, 8, 24, 0.7);
    backdrop-filter: blur(16px);
}

.panel-eyebrow {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7dd3ff;
    font-weight: 800;
    margin-bottom: 6px;
}

.panel-hero__title {
    font-size: 42px;
    font-weight: 900;
    color: #f2f6ff;
    margin-bottom: 12px;
    text-shadow: 0 8px 32px rgba(0, 132, 255, 0.28);
}

.panel-hero__lead {
    font-size: 16px;
    color: #c8d2e4;
    line-height: 1.65;
    margin-bottom: 14px;
}

.panel-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #e9f2ff;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-hero__card {
    background: linear-gradient(
        135deg,
        rgba(18, 27, 52, 0.95),
        rgba(9, 16, 32, 0.95)
    );
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 22px 48px rgba(2, 8, 24, 0.6);
}

.panel-hero__card-title {
    font-weight: 800;
    color: #f2f6ff;
    margin-bottom: 12px;
    font-size: 16px;
}

.panel-hero__steps {
    display: grid;
    gap: 12px;
}

.hero-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    background: linear-gradient(
        145deg,
        rgba(10, 15, 28, 0.95),
        rgba(18, 37, 72, 0.45)
    );
    border-radius: 18px;
    padding: 14px 18px;
    border: 1px solid rgba(59, 130, 246, 0.25);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.05),
        0 14px 32px rgba(1, 8, 20, 0.8);
}

.step-dot {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-weight: 900;
    font-size: 18px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
    letter-spacing: 0.02em;
}

.hero-step small {
    display: block;
    color: #a5b2c8;
    font-size: 13px;
    margin-top: 2px;
}

.panel-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 10px auto 32px;
    justify-content: center;
    padding: 16px 22px;
    background: rgba(10, 20, 42, 0.85);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 30px;
    box-shadow: 0 22px 45px rgba(5, 12, 24, 0.6);
}

.panel-tab {
    min-width: 120px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(14, 20, 36, 0.95);
    color: #a5b2c8;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: all 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.panel-tab:hover {
    border-color: rgba(59, 130, 246, 0.6);
    color: #e9f2ff;
}

.panel-tab.is-active {
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.9),
        rgba(37, 99, 235, 0.8)
    );
    border-color: rgba(59, 130, 246, 0.95);
    color: #f2f6ff;
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.45);
}

.gem-bonus-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(6, 12, 26, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.gem-bonus-modal__card {
    width: min(520px, 95vw);
    border-radius: 18px;
    border: 1px solid rgba(162, 222, 255, 0.55);
    background: linear-gradient(
        145deg,
        rgba(23, 43, 84, 0.98),
        rgba(25, 52, 92, 0.96)
    );
    box-shadow: 0 28px 64px rgba(3, 9, 24, 0.65);
    padding: 22px 22px 18px;
    text-align: center;
}

.gem-bonus-modal__emoji {
    font-size: 34px;
    line-height: 1;
    margin-bottom: 8px;
}

.gem-bonus-modal__title {
    font-size: 24px;
    font-weight: 900;
    color: #fff6de;
    margin-bottom: 8px;
}

.gem-bonus-modal__amount {
    font-size: 34px;
    font-weight: 900;
    color: #7ff0b0;
    text-shadow: 0 8px 20px rgba(73, 207, 127, 0.3);
    margin-bottom: 8px;
}

.gem-bonus-modal__desc {
    font-size: 14px;
    color: #d8ebff;
    margin-bottom: 16px;
}

.gem-bonus-modal__btn {
    border: 1px solid rgba(167, 221, 255, 0.74);
    border-radius: 999px;
    padding: 10px 26px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(
        92deg,
        #ff9757 0%,
        #ffc96a 28%,
        #5eb7ff 62%,
        #7368ff 100%
    );
    cursor: pointer;
}

.gem-bonus-modal__btn:hover {
    filter: brightness(1.06);
}

/* Inventory tab is temporarily hidden in player panel. */
.panel-tab[data-player-tab="inventory"] {
    display: none !important;
}

.player-tab-panel[data-player-panel="inventory"] {
    display: none !important;
}

.player-tab-panels {
    margin-top: 10px;
}

.player-tab-panel {
    display: none;
}

.player-tab-panel.is-active {
    display: block;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.panel-card {
    background: linear-gradient(
        145deg,
        rgba(12, 20, 38, 0.95),
        rgba(7, 14, 28, 0.95)
    );
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 32px;
    border-radius: 26px;
    color: #e4e6eb;
    box-shadow: 0 28px 60px rgba(2, 4, 12, 0.6);
    backdrop-filter: blur(14px);
}

.panel-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.panel-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #9ed8ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.panel-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 10px 0 8px;
}

.panel-title-small {
    font-size: 14px;
    font-weight: 800;
    color: #e4e6eb;
    margin-bottom: 8px;
}

.panel-desc {
    color: #b8c2d6;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 14px;
}

.panel-desc-large {
    font-size: 15px;
}

.lkh-promo-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        140deg,
        rgba(12, 21, 43, 0.96) 0%,
        rgba(20, 32, 66, 0.95) 55%,
        rgba(12, 102, 199, 0.28) 100%
    );
    border: 1px solid rgba(56, 189, 248, 0.45);
}

.lkh-promo-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -70px;
    top: -90px;
    background: radial-gradient(
        circle,
        rgba(56, 189, 248, 0.28) 0%,
        rgba(56, 189, 248, 0) 70%
    );
    pointer-events: none;
}

.lkh-promo-card .panel-title {
    max-width: 760px;
}

.lkh-promo-actions {
    margin-top: 14px;
}

.lkh-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(125, 211, 252, 0.65);
    background: linear-gradient(
        135deg,
        rgba(2, 132, 199, 0.92),
        rgba(37, 99, 235, 0.9)
    );
    color: #ffffff;
    text-decoration: none;
}

.lkh-promo-btn:hover {
    border-color: rgba(191, 219, 254, 0.9);
    transform: translateY(-1px);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.action-card {
    background: rgba(7, 14, 28, 0.7);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 18px 40px rgba(4, 6, 18, 0.6);
}

.action-card-accent {
    background: linear-gradient(
        145deg,
        rgba(37, 99, 235, 0.3),
        rgba(9, 26, 55, 0.9)
    );
    border-color: rgba(59, 130, 246, 0.5);
}

.action-card__title {
    font-size: 16px;
    font-weight: 800;
    color: #f2f6ff;
    margin-bottom: 6px;
}

.action-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 6px;
}

.row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.stacked-inputs {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.input {
    flex: 1;
    min-width: 200px;
    background: rgba(11, 16, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px 14px;
    color: #e4e6eb;
    font-size: 15px;
    font-weight: 600;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.input::placeholder {
    color: #8b95a8;
}

.input:focus {
    outline: none;
    border-color: #2aa3ff;
    box-shadow: 0 0 0 4px rgba(42, 163, 255, 0.15);
}

.panel-divider {
    height: 1px;
    background: #273042;
    margin: 18px 0;
}

.form-message {
    margin-top: 6px;
    font-size: 13px;
    color: #b0b3b8;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(42, 163, 255, 0.65);
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:disabled:hover,
.btn[disabled]:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.12);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: rgba(59, 130, 246, 0.9);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: #1d4ed8;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.16);
}

.btn-danger {
    border-color: rgba(255, 85, 85, 0.35);
    background: rgba(255, 85, 85, 0.12);
}

.btn-danger:hover {
    border-color: rgba(255, 85, 85, 0.8);
}

.btn-large {
    padding: 14px 20px;
    font-size: 15px;
}

.code-box {
    width: 100%;
    background: rgba(11, 16, 28, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 14px 16px;
    font-family:
        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    font-size: 18px;
    letter-spacing: 1px;
    color: #fff;
    user-select: all;
}

.link-code-wrap {
    margin-top: 14px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(125, 211, 255, 0.35);
}

.mono {
    font-family:
        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
}

.text-strong {
    color: #fff;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #c0c8d8;
    font-size: 13px;
    font-weight: 700;
}

.pill-strong {
    border-color: rgba(0, 212, 255, 0.28);
    color: #00d4ff;
}

.pill-ok {
    border-color: rgba(0, 212, 255, 0.28);
    color: #00d4ff;
}

.pill-ok-green {
    border-color: rgba(114, 240, 162, 0.28);
    background: rgba(114, 240, 162, 0.08);
    color: #e4e6eb;
}

.pill-warn {
    border-color: rgba(255, 210, 77, 0.25);
    color: #ffd24d;
}

.pill-bad {
    border-color: rgba(255, 85, 85, 0.25);
    color: #ff7575;
}

.market-list {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.market-item {
    background: rgba(11, 16, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.market-item-title {
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.market-item-meta {
    color: #b0b3b8;
    font-size: 13px;
    line-height: 1.4;
}

.market-item-price {
    color: #00d4ff;
    font-weight: 900;
    white-space: nowrap;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.profile-item {
    background: rgba(11, 16, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
}

.profile-label {
    font-size: 12px;
    color: #8a96a5;
}

.profile-value {
    font-size: 13px;
    color: #e4e6eb;
    margin-top: 4px;
    font-weight: 600;
}

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

.profile-list-item {
    font-size: 12px;
    color: #b0b3b8;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(11, 16, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Colorful status view for younger players */
.player-tab-panel[data-player-panel="status"] .panel-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 14% 18%,
            rgba(255, 190, 94, 0.22),
            transparent 34%
        ),
        radial-gradient(
            circle at 84% 14%,
            rgba(121, 214, 255, 0.23),
            transparent 32%
        ),
        radial-gradient(
            circle at 72% 84%,
            rgba(177, 141, 255, 0.2),
            transparent 34%
        ),
        linear-gradient(145deg, rgba(18, 30, 61, 0.96), rgba(17, 41, 76, 0.94));
    border-color: rgba(140, 201, 255, 0.42);
    box-shadow: 0 24px 56px rgba(8, 16, 42, 0.66);
}

.player-tab-panel[data-player-panel="status"] .panel-card::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    top: -120px;
    left: -80px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 220, 130, 0.32),
        transparent 70%
    );
    pointer-events: none;
}

.player-tab-panel[data-player-panel="status"] .panel-card::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -90px;
    bottom: -130px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(116, 191, 255, 0.28),
        transparent 72%
    );
    pointer-events: none;
}

.player-tab-panel[data-player-panel="status"] .panel-title {
    color: #fff9ff;
    text-shadow: 0 6px 18px rgba(79, 145, 255, 0.44);
}

.player-tab-panel[data-player-panel="status"] .panel-desc {
    color: #dce9ff;
}

.player-tab-panel[data-player-panel="status"] .pill {
    border-color: rgba(154, 213, 255, 0.45);
    background: linear-gradient(
        135deg,
        rgba(68, 137, 255, 0.24),
        rgba(95, 84, 203, 0.2)
    );
    color: #f1f8ff;
}

.player-tab-panel[data-player-panel="status"] .pill-ok-green {
    border-color: rgba(120, 245, 170, 0.52);
    background: linear-gradient(
        135deg,
        rgba(84, 217, 158, 0.23),
        rgba(66, 148, 118, 0.19)
    );
    color: #ebfff5;
}

.player-tab-panel[data-player-panel="status"] .login-panel {
    background: linear-gradient(
        140deg,
        rgba(27, 47, 89, 0.74),
        rgba(25, 35, 79, 0.78)
    );
    border-color: rgba(163, 210, 255, 0.35);
}

.player-tab-panel[data-player-panel="status"] .login-panel__headline {
    color: #fff8dc;
    text-shadow: 0 5px 16px rgba(255, 187, 108, 0.28);
}

.player-tab-panel[data-player-panel="status"] .login-panel__description {
    color: #e4edff;
}

.player-tab-panel[data-player-panel="status"] .login-panel__instructions li {
    border: 1px solid rgba(160, 210, 255, 0.3);
    border-radius: 12px;
    padding: 8px 10px;
    background: linear-gradient(
        135deg,
        rgba(60, 96, 175, 0.3),
        rgba(74, 69, 165, 0.2)
    );
}

.player-tab-panel[data-player-panel="status"]
    .login-panel__instructions
    li
    strong {
    color: #fff8ec;
}

.player-tab-panel[data-player-panel="status"] .login-panel__code {
    background: rgba(255, 193, 94, 0.18);
    border: 1px solid rgba(255, 203, 126, 0.45);
    color: #fff5d4;
}

.player-tab-panel[data-player-panel="status"] .login-panel__pill {
    border-color: rgba(160, 211, 255, 0.55);
    background: linear-gradient(
        135deg,
        rgba(63, 164, 255, 0.3),
        rgba(151, 124, 255, 0.28)
    );
    color: #f4f9ff;
}

.player-tab-panel[data-player-panel="status"] .action-card {
    border-color: rgba(149, 205, 255, 0.35);
    background: linear-gradient(
        140deg,
        rgba(24, 39, 80, 0.8),
        rgba(30, 43, 94, 0.78)
    );
}

.player-tab-panel[data-player-panel="status"] .action-card__title {
    color: #fff8e7;
    text-shadow: 0 4px 14px rgba(114, 168, 255, 0.34);
}

.player-tab-panel[data-player-panel="status"] .action-card-accent {
    background: linear-gradient(
        140deg,
        rgba(255, 158, 87, 0.28),
        rgba(85, 123, 255, 0.32)
    );
    border-color: rgba(255, 200, 129, 0.52);
}

.player-tab-panel[data-player-panel="status"] .login-box {
    border-color: rgba(255, 214, 131, 0.58);
    background: linear-gradient(
        145deg,
        rgba(64, 119, 255, 0.24),
        rgba(255, 153, 98, 0.18)
    );
}

.player-tab-panel[data-player-panel="status"] .login-title {
    color: #fff5ce;
}

.player-tab-panel[data-player-panel="status"] .login-desc {
    color: #e3edff;
}

.player-tab-panel[data-player-panel="status"] .login-desc--reward {
    color: #ffdca1;
}

.player-tab-panel[data-player-panel="status"] .input {
    border-color: rgba(148, 208, 255, 0.3);
    background: rgba(20, 31, 63, 0.85);
}

.player-tab-panel[data-player-panel="status"] .input:focus {
    border-color: #7ec5ff;
    box-shadow: 0 0 0 4px rgba(126, 197, 255, 0.18);
}

.player-tab-panel[data-player-panel="status"] .btn {
    border-color: rgba(167, 212, 255, 0.34);
    background: linear-gradient(
        135deg,
        rgba(78, 132, 255, 0.22),
        rgba(124, 91, 255, 0.2)
    );
}

.player-tab-panel[data-player-panel="status"] .panel-divider {
    background: linear-gradient(
        90deg,
        rgba(97, 174, 255, 0.08),
        rgba(255, 194, 100, 0.34),
        rgba(97, 174, 255, 0.08)
    );
}

.player-tab-panel[data-player-panel="status"] .link-code-wrap {
    border-color: rgba(255, 214, 130, 0.48);
    background: linear-gradient(
        135deg,
        rgba(255, 178, 92, 0.14),
        rgba(85, 123, 255, 0.14)
    );
}

.player-tab-panel[data-player-panel="status"] .code-box {
    border-color: rgba(174, 220, 255, 0.52);
    background: linear-gradient(
        140deg,
        rgba(13, 27, 58, 0.95),
        rgba(30, 41, 86, 0.95)
    );
    color: #fff5d8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.player-tab-panel[data-player-panel="status"] #btn-start-link,
.player-tab-panel[data-player-panel="status"] #btn-set-password,
.player-tab-panel[data-player-panel="status"] #btn-save-contact,
.player-tab-panel[data-player-panel="status"] #btn-verify-phone {
    border-color: rgba(172, 218, 255, 0.7);
    background: linear-gradient(
        92deg,
        #ff9757 0%,
        #ffc96a 28%,
        #5eb7ff 62%,
        #7368ff 100%
    );
    box-shadow: 0 14px 32px rgba(59, 105, 211, 0.4);
}

.player-tab-panel[data-player-panel="status"] #btn-start-link:hover,
.player-tab-panel[data-player-panel="status"] #btn-set-password:hover,
.player-tab-panel[data-player-panel="status"] #btn-save-contact:hover,
.player-tab-panel[data-player-panel="status"] #btn-verify-phone:hover {
    filter: brightness(1.08);
}

.player-tab-panel[data-player-panel="status"] #btn-password-login,
.player-tab-panel[data-player-panel="status"] #btn-copy-code {
    border-color: rgba(182, 210, 255, 0.58);
    background: linear-gradient(
        132deg,
        rgba(69, 151, 255, 0.5),
        rgba(118, 109, 255, 0.45)
    );
    color: #f7fbff;
}

.player-tab-panel[data-player-panel="status"] #btn-logout {
    border-color: rgba(255, 171, 142, 0.58);
    background: linear-gradient(
        132deg,
        rgba(255, 125, 103, 0.58),
        rgba(255, 84, 142, 0.52)
    );
    color: #fff6f8;
}

.player-tab-panel[data-player-panel="status"] #mc-username {
    color: #fff5d2;
    text-shadow: 0 4px 12px rgba(255, 194, 103, 0.35);
}

.player-tab-panel[data-player-panel="status"] #mc-uuid {
    color: #cae1ff;
}

.player-tab-panel[data-player-panel="status"]
    #logged-in
    > .panel-desc:nth-child(2) {
    display: inline-block;
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 217, 150, 0.52);
    background: linear-gradient(
        120deg,
        rgba(255, 198, 109, 0.16),
        rgba(110, 128, 255, 0.18)
    );
}

.player-tab-panel[data-player-panel="status"]
    #logged-in
    > .panel-desc:nth-child(3) {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 10px;
    border: 1px solid rgba(149, 209, 255, 0.4);
    background: rgba(36, 62, 111, 0.45);
}

@media (max-width: 600px) {
    .player-tab-panel[data-player-panel="status"] .code-box {
        font-size: 15px;
        letter-spacing: 0.6px;
    }
}

/* Colorful stats view for younger players */
#panel-profile-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 14% 16%,
            rgba(255, 202, 102, 0.22),
            transparent 34%
        ),
        radial-gradient(
            circle at 86% 12%,
            rgba(121, 214, 255, 0.22),
            transparent 32%
        ),
        radial-gradient(
            circle at 80% 86%,
            rgba(175, 144, 255, 0.2),
            transparent 34%
        ),
        linear-gradient(145deg, rgba(20, 34, 68, 0.96), rgba(20, 44, 78, 0.94));
    border-color: rgba(140, 203, 255, 0.45);
}

#panel-profile-card .panel-title {
    color: #fff9ff;
    text-shadow: 0 6px 18px rgba(79, 145, 255, 0.44);
}

#panel-profile-card .panel-desc {
    color: #deebff;
}

#panel-profile-card .panel-divider {
    background: linear-gradient(
        90deg,
        rgba(97, 174, 255, 0.08),
        rgba(255, 194, 100, 0.34),
        rgba(97, 174, 255, 0.08)
    );
}

.stats-kid-hero {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid rgba(160, 214, 255, 0.5);
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        rgba(46, 78, 145, 0.45),
        rgba(89, 64, 141, 0.45)
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stats-kid-hero-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(169, 219, 255, 0.42);
    background: linear-gradient(
        135deg,
        rgba(20, 36, 74, 0.88),
        rgba(38, 31, 72, 0.82)
    );
}

.stats-kid-hero-video,
.stats-kid-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stats-kid-hero-video {
    z-index: 2;
}

.stats-kid-hero-image {
    z-index: 1;
}

.stats-kid-hero-media.is-fallback .stats-kid-hero-video {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .stats-kid-hero-video {
        display: none;
    }
}

.stats-kid-title {
    font-size: 16px;
    font-weight: 900;
    color: #fff6d7;
    margin-bottom: 4px;
}

.stats-kid-meta {
    font-size: 13px;
    color: #eaf4ff;
    margin-bottom: 10px;
}

.stats-kid-bars {
    display: grid;
    gap: 10px;
}

.stats-kid-bar {
    display: grid;
    gap: 6px;
}

.stats-kid-bar-label {
    font-size: 12px;
    color: #d8ebff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.stats-kid-bar-note {
    font-size: 11px;
    font-weight: 700;
    color: #c0dbff;
}

.stats-kid-bar-track {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(141, 205, 255, 0.42);
    background: rgba(11, 26, 53, 0.85);
}

.stats-kid-bar-fill {
    height: 100%;
}

.stats-kid-bar-fill-activity {
    background: linear-gradient(90deg, #ffc36d, #79dd94, #5cb8ff);
}

.stats-kid-bar-fill-kd {
    background: linear-gradient(90deg, #ff915f, #ffd866, #9a8cff);
}

.stats-kid-bar-fill-build {
    background: linear-gradient(90deg, #6fffe5, #63d5ff, #6ca4ff);
}

.stats-kid-badge-group {
    margin-top: 10px;
}

.stats-kid-badges-head {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
    color: #e3efff;
}

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

.stats-kid-badge {
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(174, 219, 255, 0.35);
    background: linear-gradient(
        140deg,
        rgba(27, 45, 87, 0.85),
        rgba(30, 36, 76, 0.85)
    );
}

.stats-kid-badge-name {
    font-size: 13px;
    font-weight: 800;
    color: #f5f9ff;
    margin-bottom: 4px;
}

.stats-kid-badge-rule {
    font-size: 11px;
    color: #c4dcff;
}

.stats-kid-badge-reward {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #9fffd3;
}

.stats-kid-badge-progress-text {
    margin-top: 6px;
    font-size: 11px;
    color: #d8e9ff;
}

.stats-kid-badge-progress-track {
    margin-top: 5px;
    height: 7px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(150, 206, 255, 0.35);
    background: rgba(11, 24, 49, 0.85);
}

.stats-kid-badge-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffaf5f, #ffd979, #73c4ff, #8e7fff);
}

.stats-kid-badge.is-unlocked {
    border-color: rgba(149, 255, 185, 0.6);
    background: linear-gradient(
        140deg,
        rgba(29, 81, 70, 0.75),
        rgba(27, 62, 94, 0.82)
    );
}

.stats-kid-badge.is-unlocked .stats-kid-badge-name {
    color: #d8ffe7;
}

.stats-kid-badge.is-unlocked .stats-kid-badge-rule {
    color: #b9ffd5;
}

.stats-kid-badge.is-locked {
    opacity: 0.92;
}

#panel-profile-card .profile-item {
    border-radius: 14px;
    border-color: rgba(172, 219, 255, 0.34);
}

#panel-profile-card .profile-item:nth-child(6n + 1) {
    background: linear-gradient(
        140deg,
        rgba(64, 165, 255, 0.23),
        rgba(24, 44, 84, 0.9)
    );
}
#panel-profile-card .profile-item:nth-child(6n + 2) {
    background: linear-gradient(
        140deg,
        rgba(82, 220, 198, 0.21),
        rgba(20, 52, 70, 0.9)
    );
}
#panel-profile-card .profile-item:nth-child(6n + 3) {
    background: linear-gradient(
        140deg,
        rgba(145, 170, 255, 0.22),
        rgba(29, 36, 74, 0.9)
    );
}
#panel-profile-card .profile-item:nth-child(6n + 4) {
    background: linear-gradient(
        140deg,
        rgba(255, 165, 110, 0.23),
        rgba(58, 34, 58, 0.9)
    );
}
#panel-profile-card .profile-item:nth-child(6n + 5) {
    background: linear-gradient(
        140deg,
        rgba(175, 155, 255, 0.22),
        rgba(36, 34, 68, 0.9)
    );
}
#panel-profile-card .profile-item:nth-child(6n) {
    background: linear-gradient(
        140deg,
        rgba(255, 197, 98, 0.22),
        rgba(50, 44, 68, 0.9)
    );
}

#panel-profile-card .profile-label {
    color: #d4e8ff;
}

#panel-profile-card .profile-value {
    font-size: 18px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

#panel-profile-card .stats-kid-card .profile-value {
    font-size: 24px;
    font-weight: 900;
}

#panel-profile-card .stats-kid-card-time .profile-value {
    color: #ffd56f;
}
#panel-profile-card .stats-kid-card-kills .profile-value {
    color: #87f4ac;
}
#panel-profile-card .stats-kid-card-deaths .profile-value {
    color: #ff9ea1;
}
#panel-profile-card .stats-kid-card-kd .profile-value {
    color: #9ec3ff;
}
#panel-profile-card .stats-kid-card-build .profile-value {
    color: #8ef0ff;
}
#panel-profile-card .stats-kid-card-ore .profile-value {
    color: #ffd99d;
}
#panel-profile-card .stats-kid-card-badges .profile-value {
    color: #d7b5ff;
}

@media (max-width: 700px) {
    #panel-profile-card .profile-value {
        font-size: 16px;
    }
    #panel-profile-card .stats-kid-card .profile-value {
        font-size: 20px;
    }
}

/* Colorful purchases view for younger players */
#panel-history-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 12% 14%,
            rgba(255, 191, 82, 0.2),
            transparent 32%
        ),
        radial-gradient(
            circle at 86% 16%,
            rgba(120, 199, 255, 0.22),
            transparent 30%
        ),
        radial-gradient(
            circle at 72% 86%,
            rgba(178, 133, 255, 0.2),
            transparent 34%
        ),
        linear-gradient(145deg, rgba(20, 28, 60, 0.97), rgba(20, 46, 80, 0.93));
    border-color: rgba(135, 193, 255, 0.42);
    box-shadow: 0 24px 56px rgba(7, 16, 39, 0.66);
}

#panel-history-card .panel-title {
    color: #fef7ff;
    text-shadow: 0 6px 16px rgba(64, 129, 255, 0.4);
}

#panel-history-card .panel-desc {
    color: #dbe8ff;
}

#panel-history-card .purchase-section-title {
    margin-top: 4px;
    color: #f6f8ff;
}

#panel-history-card .profile-item {
    border-radius: 14px;
    border-color: rgba(174, 215, 255, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#panel-history-card .profile-item:nth-child(6n + 1) {
    background: linear-gradient(
        140deg,
        rgba(64, 165, 255, 0.26),
        rgba(24, 44, 84, 0.9)
    );
}
#panel-history-card .profile-item:nth-child(6n + 2) {
    background: linear-gradient(
        140deg,
        rgba(82, 220, 198, 0.23),
        rgba(20, 52, 70, 0.9)
    );
}
#panel-history-card .profile-item:nth-child(6n + 3) {
    background: linear-gradient(
        140deg,
        rgba(145, 170, 255, 0.25),
        rgba(29, 36, 74, 0.9)
    );
}
#panel-history-card .profile-item:nth-child(6n + 4) {
    background: linear-gradient(
        140deg,
        rgba(255, 165, 110, 0.26),
        rgba(58, 34, 58, 0.9)
    );
}
#panel-history-card .profile-item:nth-child(6n + 5) {
    background: linear-gradient(
        140deg,
        rgba(175, 155, 255, 0.25),
        rgba(36, 34, 68, 0.9)
    );
}
#panel-history-card .profile-item:nth-child(6n) {
    background: linear-gradient(
        140deg,
        rgba(255, 197, 98, 0.25),
        rgba(50, 44, 68, 0.9)
    );
}

#panel-history-card .profile-label {
    color: #d2e4ff;
}

#panel-history-card .profile-value {
    font-size: 22px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

#panel-history-card .discount-progress-card {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid rgba(150, 196, 255, 0.45);
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        rgba(34, 61, 116, 0.55),
        rgba(66, 51, 116, 0.44)
    );
}

#panel-history-card .discount-progress-title {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #cce3ff;
}

#panel-history-card .discount-progress-track {
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(108, 172, 255, 0.35);
    background: rgba(14, 26, 52, 0.92);
}

#panel-history-card .discount-progress-fill {
    height: 100%;
    background: linear-gradient(
        90deg,
        #ff9f4a 0%,
        #ffd66c 32%,
        #4dc1ff 64%,
        #8f7dff 100%
    );
}

#panel-history-card .discount-progress-details {
    margin-top: 8px;
    font-size: 13px;
    color: #e9f1ff;
}

#panel-history-card .purchase-progress-missing {
    margin-top: 6px;
    font-size: 12px;
    color: #ffe08a;
}

#panel-history-card .purchase-highlight-box {
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(130, 196, 255, 0.45);
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        rgba(36, 69, 128, 0.5),
        rgba(90, 54, 135, 0.42)
    );
}

#panel-history-card .purchase-highlight-title {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #bfe0ff;
}

#panel-history-card .purchase-highlight-content {
    font-size: 14px;
    color: #f8fbff;
}

#panel-history-card .purchase-order-card {
    border-radius: 14px;
    border-color: rgba(120, 180, 255, 0.36);
    border-left: 4px solid #5ac5ff;
    background: linear-gradient(
        145deg,
        rgba(13, 24, 45, 0.9),
        rgba(15, 30, 56, 0.95)
    );
}

#panel-history-card .purchase-key-info {
    margin-top: 8px;
    color: #99d2ff;
    font-weight: 700;
}

#panel-history-card .purchase-pending-list {
    margin-top: 8px;
    padding-left: 12px;
    border-left: 2px solid #66b6ff;
}

#panel-history-card .purchase-pending-item {
    padding: 6px;
    margin: 4px 0;
    border-radius: 10px;
    border-left: 2px solid #63b2ff;
    background: linear-gradient(
        135deg,
        rgba(19, 35, 69, 0.94),
        rgba(37, 48, 82, 0.9)
    );
    color: #f0f7ff;
    cursor: grab;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition:
        transform 0.15s ease,
        border-color 0.15s ease;
}

#panel-history-card .purchase-pending-item:hover {
    transform: translateX(2px);
    border-left-color: #ffd163;
}

#panel-history-card .purchase-pending-badge {
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 208, 99, 0.65);
    background: rgba(255, 208, 99, 0.14);
    font-size: 11px;
    color: #ffe294;
}

.currency-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.currency-chip {
    background: rgba(9, 31, 55, 0.8);
    border: 1px solid rgba(125, 211, 255, 0.4);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    color: #7dd3ff;
    font-weight: 600;
}

.user-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 16px;
}

.user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2aa3ff, #00d4ff);
    box-shadow: 0 10px 20px rgba(0, 118, 190, 0.35);
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
}

.user-meta {
    color: #9eb0c7;
    font-size: 13px;
    margin-top: 4px;
    font-family:
        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
}

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

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

@media (max-width: 720px) {
    .panel-hero__title {
        font-size: 32px;
    }

    .panel-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .panel-tabs {
        border-radius: 18px;
    }
}

@media (max-width: 768px) {
    body[data-page="panel"] #page-content {
        padding-top: 56px !important;
    }

    .section-title {
        display: none;
    }

    .panel > .container {
        width: 100%;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        backdrop-filter: none !important;
    }

    .panel-tabs {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: manipulation;
        scroll-snap-type: x proximity;
        gap: 10px;
        margin: 10px 0 15px 0;
        padding: 10px 14px;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0;
        position: relative;
        z-index: 50;
        min-height: 50px;
    }

    .panel-tabs::-webkit-scrollbar {
        height: 6px;
    }

    .panel-tab {
        flex: 0 0 auto;
        min-width: max-content;
        white-space: nowrap;
        scroll-snap-align: start;
        padding: 10px 18px;
    }

    .panel-grid {
        max-width: 100%;
        margin: 0;
        padding: 0 5px;
        gap: 14px;
        grid-template-columns: 1fr;
    }

    .panel-card {
        width: 100%;
        padding: 6px;
        border-radius: 18px;
    }
}

@media (max-width: 600px) {
    .panel-grid {
        grid-template-columns: 1fr;
    }
    .market-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .user-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .user-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .login-panel,
    .action-card {
        padding: 8px !important;
    }
}

/* Friends System Styles */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.friend-card {
    background: rgba(14, 22, 40, 0.85);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.friend-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(18, 28, 50, 0.9);
}

.friend-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.friend-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.friend-status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #0e1628;
}

.friend-status-indicator.is-online {
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.friend-status-indicator.is-offline {
    background: #94a3b8;
}

.friend-info {
    flex: 1;
    min-width: 0;
}

.friend-name {
    font-weight: 800;
    color: #f1f5f9;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.friend-level-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.3);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.friend-details {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.friend-rank-admin {
    color: #ef4444;
    font-weight: 700;
}
.friend-rank-vip {
    color: #facc15;
    font-weight: 700;
}
.friend-rank-svip {
    color: #22d3ee;
    font-weight: 700;
}
.friend-rank-none {
    color: #64748b;
}

.friend-status-text.is-online {
    color: #4ade80;
    font-weight: 600;
}

.friend-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
}

.btn-remove-friend {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-remove-friend:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

.btn-join {
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.btn-join:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
}
