/* ==========================================================================
   Debuff Template - Cobalt-inspired theme
   Primary accent: blue (#0099FF) - change --p-color to rebrand
   ========================================================================== */

:root {
    --p-color: #0099FF;
    --p-color-rgb: 0, 153, 255;
    --header-url: url('https://i.imgur.com/ReDHwX9.jpeg');
    --header-height: 475px;
    --bg-dark: #101010;
    --bg-card: #1d1d1d;
    --bg-card-2: #191919;
    --bg-nav: #0f0f0f;
    --text-main: #ffffff;
    --text-muted: #ababab;
    --border: rgba(255, 255, 255, 0.06);
}

/* ---------- BASE ---------- */

html {
    background: var(--bg-dark) !important;
    font-family: 'Montserrat', sans-serif !important;
    color: var(--text-main) !important;
}

body {
    background: var(--bg-dark) !important;
    color: var(--text-main) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: visible !important;
}

a, a:hover, a:focus {
    color: var(--p-color);
    text-decoration: none;
}

p, span, h1, h2, h3, h4, h5, li, label {
    color: var(--text-main);
}

img {
    max-width: 100%;
}

.clearfix {
    clear: both;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--p-color);
    border-radius: 5px;
}
::-webkit-scrollbar-track {
    background: #191919;
}
::selection {
    background-color: var(--p-color);
    color: #fff;
}

.copy-toast {
    position: fixed;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%) translateY(30px) scale(0.9);
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #141423, #1f1f33);
    color: #fff;
    padding: 14px 26px 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(var(--p-color-rgb), 0.35);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55), 0 0 22px rgba(var(--p-color-rgb), 0.3);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    opacity: 0;
    pointer-events: none;
    z-index: 99999;
    overflow: hidden;
}

.copy-toast::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--p-color), #0066cc);
    color: #fff;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 0 14px rgba(var(--p-color-rgb), 0.6);
}

.copy-toast::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: var(--p-color);
    transform-origin: left;
    transform: scaleX(0);
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

#copyToast.copy-toast.show {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) scale(1) !important;
    visibility: visible !important;
}

.copy-toast.show::after {
    animation: copyToastBar 2s linear forwards;
}

@keyframes copyToastBar {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* ---------- GRID / LAYOUT ---------- */

.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.row > [class*="col-"] {
    position: relative;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 992px) {
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
}

.d-flex {
    display: flex;
}
.float-right {
    float: right;
}
.mb-2 {
    margin-bottom: 0.5rem !important;
}
.mb-3 {
    margin-bottom: 1rem !important;
}
.mb-4 {
    margin-bottom: 1.5rem !important;
}
.mt-4 {
    margin-top: 1.5rem !important;
}

/* ---------- TOP NAVBAR ---------- */

@keyframes navFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.navbar {
    position: relative;
    z-index: 900;
    animation: navFadeIn 0.4s ease both;
}

.navbar-top {
    background: rgba(10, 10, 12, 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 60px;
    transition: background 0.35s ease, box-shadow 0.35s ease, min-height 0.35s ease, backdrop-filter 0.35s ease;
    box-shadow: 0 1px 24px rgba(0, 0, 0, 0.25);
}

.navbar-top.navbar-scrolled {
    background: rgba(8, 8, 10, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    min-height: 48px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(var(--p-color-rgb), 0.08);
}

.navbar-top::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--p-color-rgb), 0.35), transparent);
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.navbar-top.navbar-scrolled::after {
    opacity: 0.5;
}

.navbar-container {
    display: flex;
    align-items: center;
    min-height: 60px;
    flex-wrap: wrap;
    transition: min-height 0.35s ease;
}

.navbar-scrolled .navbar-container {
    min-height: 48px;
}

.navbar-toggler {
    display: none;
    background: rgba(var(--p-color-rgb), 0.1);
    border: 1px solid rgba(var(--p-color-rgb), 0.25);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 20px;
    transition: all 0.25s ease;
}

.navbar-toggler:hover {
    background: rgba(var(--p-color-rgb), 0.2);
    border-color: rgba(var(--p-color-rgb), 0.4);
}

.navbar-toggler i {
    margin-right: 8px;
    color: var(--p-color);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-right: 20px;
}

.navbar-left .status-icon,
.navbar-left .discord-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar-left .status-icon {
    background: var(--p-color);
}

.navbar-left .status-icon svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.navbar-left .discord-icon svg {
    width: 22px;
    height: 22px;
    fill: #fff;
    transition: all 0.2s ease;
}

.navbar-left .discord-icon:hover svg {
    fill: var(--p-color);
}

.navbar-nav-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
}

.navbar-nav .nav-item {
    position: relative;
    margin: 0;
}

.navbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 20px;
    transition: all 0.25s ease;
    position: relative;
}

.navbar-nav .nav-link i {
    margin-right: 7px;
    color: var(--p-color);
    font-size: 0.82rem;
    transition: transform 0.25s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff;
    background: rgba(var(--p-color-rgb), 0.12);
    transform: translateY(-1px);
}

.navbar-nav .nav-link:hover i {
    transform: scale(1.15);
}

.navbar-nav .nav-link.active {
    color: #fff;
    background: var(--p-color);
    box-shadow: 0 0 16px rgba(var(--p-color-rgb), 0.4);
}

.navbar-nav .nav-link.active i {
    color: #fff;
}

.navbar-nav .store-link {
    background: var(--p-color);
    color: #fff !important;
    box-shadow: 0 0 16px rgba(var(--p-color-rgb), 0.5);
    padding: 8px 20px;
}

.navbar-nav .store-link:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(var(--p-color-rgb), 0.6);
}

.navbar-nav .store-link:after {
    display: none;
}

.navbar-user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-user .nav-item {
    display: flex;
    align-items: center;
}

.navbar-user .nav-link {
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    transition: all 0.25s ease;
}

.navbar-user .nav-login {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    background: rgba(var(--p-color-rgb), 0.1);
    border: 1px solid rgba(var(--p-color-rgb), 0.2);
}

.navbar-user .nav-login:hover {
    background: rgba(var(--p-color-rgb), 0.2);
    color: #fff;
    transform: translateY(-1px);
}

.navbar-user .nav-register {
    color: #fff;
    font-weight: 700;
    background: var(--p-color);
    box-shadow: 0 0 12px rgba(var(--p-color-rgb), 0.35);
}

.navbar-user .nav-register:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(var(--p-color-rgb), 0.5);
}

.navbar-user .user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--p-color);
    transition: all 0.25s ease;
}

.navbar-user .user-avatar-link:hover .user-avatar img {
    box-shadow: 0 0 14px rgba(var(--p-color-rgb), 0.6);
    transform: scale(1.08);
}

.navbar-user .user-avatar-link {
    padding: 8px 10px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.navbar-user .user-avatar-link:hover {
    background: rgba(var(--p-color-rgb), 0.1);
}

/* ---------- DROPDOWNS ---------- */

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: rgba(20, 20, 24, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(var(--p-color-rgb), 0.2);
    border-top: 3px solid var(--p-color);
    border-radius: 12px;
    padding: 6px 0;
    z-index: 2000;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.dropdown.show .dropdown-menu {
    display: block;
    animation: dropdownIn 0.25s ease;
    transform-origin: top center;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu-right {
    left: auto;
    right: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 9px 18px;
    color: #cfcfcf;
    font-size: 0.9rem;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.dropdown-item i {
    margin-right: 9px;
    color: var(--p-color);
    width: 16px;
    text-align: center;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(var(--p-color-rgb), 0.12);
    color: #fff;
}

.dropdown-item.d-header {
    font-weight: 700;
    color: var(--p-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    padding: 10px 18px 6px;
}

.dropdown-menu .item {
    display: flex;
    align-items: center;
    padding: 9px 18px;
    color: #cfcfcf;
    font-size: 0.9rem;
    transition: all 0.15s ease;
    white-space: nowrap;
    border-radius: 0;
    background: transparent;
}

.dropdown-menu .item:hover {
    background: rgba(var(--p-color-rgb), 0.12);
    color: #fff;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 5px 0;
}

.dropdown-toggle:after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.6rem;
    margin-left: 8px;
    opacity: 0.7;
}

/* ---------- HEADER ---------- */

.color-overlay {
    position: relative;
    z-index: 3;
    overflow: hidden;
}

.hero-header {
    height: var(--header-height);
    background: var(--header-url) no-repeat center top;
    background-size: cover;
    position: relative;
}

.hero-header:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 227.5px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), transparent);
}

.hero-header:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), var(--bg-dark));
}

#header-pjs {
    overflow: hidden;
}

#particles-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-ds-flex {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    z-index: 10;
    padding: 0 2rem;
}

.logo-container {
    flex: 0 0 auto;
    text-align: center;
}

.logo {
    height: 200px;
    width: auto;
    margin-top: 120px;
    filter: drop-shadow(0 0 20px rgba(var(--p-color-rgb), 0.35));
    transition: filter 0.25s ease;
}

.logo:hover {
    filter: drop-shadow(0 0 20px rgba(var(--p-color-rgb), 0.35)) brightness(90%);
}

.animated-logo {
    animation: pulse 3s infinite;
}

@-webkit-keyframes pulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}
@keyframes pulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@-webkit-keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Status & Discord boxes */
.status-box-container {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    margin-right: 70px;
}

.discord-box-container {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-start;
    margin-left: 70px;
}

.status-text,
.discord-text {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-top: 200px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.status-text:hover,
.discord-text:hover {
    transform: scale(1.06);
    opacity: 0.92;
}

.status-text .text {
    text-align: right;
}

.discord-text .text {
    text-align: left;
}

.status-text .top-text,
.discord-text .top-text {
    font-weight: 600;
    color: var(--p-color);
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 4px;
}

.status-text .bottom-text,
.discord-text .bottom-text {
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    line-height: 1.6;
    overflow: hidden;
}

.status-text .icon,
.discord-text .icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-text .icon-wrapper svg,
.discord-text .icon-wrapper svg {
    width: 52px;
    height: 52px;
    fill: var(--p-color);
    filter: drop-shadow(0 0 30px rgba(var(--p-color-rgb), 0.8));
}

.status-text .icon {
    order: 2;
    margin-left: 14px;
}

.discord-text .icon {
    order: 1;
    margin-right: 14px;
}

.status-text .text {
    order: 1;
}

.discord-text .text {
    order: 2;
}

/* ---------- MOBILE MENU ---------- */

.coldfire-navbar-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: rgba(8, 8, 10, 0.88);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    z-index: 4000;
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 0.4s;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    visibility: hidden;
}

.coldfire-navbar-menu.active {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition: clip-path 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 0s;
}

.coldfire-navbar-menu .nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 22px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.coldfire-navbar-menu .nav-header-text {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--p-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-shadow: 0 0 24px rgba(var(--p-color-rgb), 0.4);
}

.coldfire-navbar-menu .nav-header-close {
    cursor: pointer;
    color: #fff;
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}

.coldfire-navbar-menu .nav-header-close:hover {
    background: rgba(255, 82, 82, 0.2);
    border-color: rgba(255, 82, 82, 0.4);
    color: #ff6b6b;
    transform: rotate(90deg);
}

.coldfire-navbar-menu ul {
    list-style: none;
    margin: 0;
    padding: 20px 24px;
    width: 100%;
    max-width: 400px;
    flex: 1;
}

.coldfire-navbar-menu .nav-item {
    position: relative;
    margin-bottom: 6px;
}

.coldfire-navbar-menu .nav-link {
    display: flex;
    align-items: center;
    padding: 14px 22px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 16px;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}

.coldfire-navbar-menu .nav-link i {
    margin-right: 16px;
    color: var(--p-color);
    width: 22px;
    text-align: center;
    font-size: 1rem;
    transition: transform 0.25s ease;
}

.coldfire-navbar-menu .nav-link:hover,
.coldfire-navbar-menu .nav-link.active {
    background: rgba(var(--p-color-rgb), 0.12);
    color: #fff;
    transform: translateX(4px);
}

.coldfire-navbar-menu .nav-link:hover i,
.coldfire-navbar-menu .nav-link.active i {
    transform: scale(1.2);
}

.coldfire-navbar-menu .nav-link.active {
    background: rgba(var(--p-color-rgb), 0.18);
    border-left: 3px solid var(--p-color);
    color: var(--p-color);
}

.coldfire-navbar-menu .divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--p-color-rgb), 0.3), transparent);
    margin: 12px 0;
}

.coldfire-navbar-menu .mobile-user-section {
    width: 100%;
    max-width: 400px;
    padding: 0 24px 30px;
    flex-shrink: 0;
}

.coldfire-navbar-menu .mobile-user-section .mobile-user-links {
    display: flex;
    gap: 10px;
}

.coldfire-navbar-menu .mobile-user-section .mobile-user-links a {
    flex: 1;
    text-align: center;
    padding: 14px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.25s ease;
    text-decoration: none;
}

.coldfire-navbar-menu .mobile-user-section .mobile-login-link {
    background: rgba(var(--p-color-rgb), 0.12);
    border: 1px solid rgba(var(--p-color-rgb), 0.25);
    color: #fff;
}

.coldfire-navbar-menu .mobile-user-section .mobile-login-link:hover {
    background: rgba(var(--p-color-rgb), 0.22);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(var(--p-color-rgb), 0.3);
}

.coldfire-navbar-menu .mobile-user-section .mobile-register-link {
    background: var(--p-color);
    color: #fff;
    box-shadow: 0 4px 20px rgba(var(--p-color-rgb), 0.45);
}

.coldfire-navbar-menu .mobile-user-section .mobile-register-link:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(var(--p-color-rgb), 0.55);
}

.coldfire-navbar-menu .mobile-play-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--p-color), #0066cc);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(var(--p-color-rgb), 0.5);
    transition: all 0.25s ease;
}

.coldfire-navbar-menu .mobile-play-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(var(--p-color-rgb), 0.6);
}

.coldfire-navbar-menu .mobile-play-btn i {
    margin-left: 8px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .navbar-toggler {
        display: inline-flex;
        align-items: center;
    }

    .navbar-nav-wrap {
        justify-content: flex-end;
    }

    .navbar-nav.mx-auto {
        display: none;
    }

    .navbar-user {
        display: none;
    }
}

/* ---------- BUTTONS ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #fff;
}

.btn i {
    margin-left: 8px;
}

.btn-theme {
    background: var(--p-color);
    color: #fff !important;
    box-shadow: 0 0 14px rgba(var(--p-color-rgb), 0.35);
}

.btn-theme:hover {
    background: var(--p-color);
    filter: brightness(0.85);
    color: #fff !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    color: #d5d5d5 !important;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
}

.btn-read-more-news {
    margin-top: 14px;
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* ---------- CARDS ---------- */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.card-body {
    padding: 1.2rem 1.5rem;
}

.card-header {
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

/* Welcome card */
.welcome-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    animation: fadeInUp 0.7s ease both;
}

.welcome-card .card-body {
    padding: 1rem 1.5rem;
}

.welcome-card-flex {
    display: flex;
    align-items: center;
    gap: 22px;
}

.welcome-av-col {
    flex: 0 0 auto;
}

.welcome-avatar {
    height: 150px;
    width: auto;
    border-radius: 10px;
    filter: drop-shadow(0 0 12px rgba(var(--p-color-rgb), 0.4));
}

.welcome-text-col {
    flex: 1 1 auto;
    line-height: 1.6;
}

.welcome-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--p-color);
}

.welcome-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.welcome-lr-col {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Store box */
.store-box {
    border: 3px solid var(--p-color);
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(var(--p-color-rgb), 0.5);
    background: linear-gradient(to bottom, rgba(var(--p-color-rgb), 0.7), rgba(var(--p-color-rgb), 0.7));
    padding: 22px 18px;
    text-align: center;
    color: #fff;
    transition: all 0.25s ease;
}

.store-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(var(--p-color-rgb), 0.6);
}

.store-title {
    font-weight: 700;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.store-icon {
    font-size: 3rem;
    margin: 10px 0;
}

.store-icon i {
    color: #fff;
}

.store-subtitle {
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* News cards */
.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--p-color-rgb), 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.news-header {
    background: rgba(255, 255, 255, 0.02);
}

.news-flex {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.news-flex .news-text {
    flex: 1 1 auto;
    min-width: 200px;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--p-color) !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.news-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.news-info .author .username {
    font-weight: 600;
}

.news-info .time {
    color: var(--text-muted);
    font-size: 0.8rem;
    white-space: nowrap;
}

.news-flex .avatar img.full-body {
    height: 70px;
    width: auto;
}

.news-card .forum_post {
    color: #d3d3d3;
    line-height: 1.7;
}

/* ---------- WIDGETS ---------- */

.widget-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.widget-card .widget-header {
    padding: 14px 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-card .widget-header .number {
    background: var(--p-color);
    color: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    padding: 2px 10px;
}

.widget-card .card-body {
    padding: 14px 18px;
}

.widget-post-flex {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.widget-post-flex:last-child {
    margin-bottom: 0;
}

.widget-post-flex .post-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.widget-post-flex .post-info {
    line-height: 1.5;
    font-size: 0.85rem;
}

.widget-post-flex .post-info a.white-link {
    color: #e8e8e8 !important;
}

.widget-post-flex .post-info .username {
    color: var(--p-color);
    font-weight: 600;
}

/* ---------- FOMANTIC OVERRIDES (dark theme) ---------- */

.ui.segment {
    background: var(--bg-card) !important;
    border-radius: 10px;
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
    color: var(--text-main) !important;
}

.ui.header {
    color: var(--text-main);
}

.ui.header .sub.header {
    color: var(--text-muted);
}

.ui.card {
    background: var(--bg-card);
    color: var(--text-main) !important;
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
    border-radius: 12px;
}

.ui.card > .content > .description,
.ui.card > .content,
.ui.card > .content > .header {
    color: var(--text-main) !important;
}

.ui.image.label {
    background: var(--p-color);
    color: #fff;
}

.ui.list .list>.item .description, .ui.list>.item .description {
    color: var(--text-muted);
}

.ui.list .list>.item .header, .ui.list>.item .header {
    color: var(--text-main) !important;
}

.ui.list .list>a.item>i.icon, .ui.list>a.item>i.icon,
.ui.list .list>.item>i.icon, .ui.list>.item>i.icon {
    color: var(--p-color);
}

.ui.list .list>.item > .content, .ui.list>.item > .content {
    color: var(--text-muted);
}

.ui.relaxed.list .item {
    margin-bottom: 8px;
}

#widget-online-staff .ui.list .item {
    align-items: center;
}

#widget-online-staff .ui.list .item > .content {
    line-height: 1.3;
}

.ui.circular.image {
    border: 2px solid var(--p-color);
}

.ui.image img, img.ui.image, .ui.image {
    background: transparent;
}

/* ============================================================
   Modern message boxes (Debuff)
   Red = errors, Green = success, Amber = warning, Blue = info
   ============================================================ */
.ui.message {
    position: relative;
    margin: 20px 0;
    padding: 16px 20px;
    border-radius: 12px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    color: var(--text-main);
    text-align: left;
    font-size: 13px;
    line-height: 1.6;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Colour-coded backgrounds */
.ui.attached.error.message, .ui.error.message,
.ui.attached.negative.message, .ui.negative.message {
    background: rgba(255, 82, 82, 0.08);
    border: 1px solid rgba(255, 82, 82, 0.35);
    color: #ffd9d9;
}

.ui.attached.success.message, .ui.success.message,
.ui.attached.positive.message, .ui.positive.message {
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.35);
    color: #d2f5e0;
}

.ui.attached.warning.message, .ui.warning.message {
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid rgba(245, 166, 35, 0.35);
    color: #ffe7bd;
}

.ui.attached.info.message, .ui.info.message {
    background: rgba(0, 153, 255, 0.08);
    border: 1px solid rgba(0, 153, 255, 0.35);
    color: #d1ecff;
}

/* Icon messages: icon badge on the left */
.ui.message.icon {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ui.message.icon > .content {
    flex: 1;
    min-width: 0;
}

.ui.message > .icon:first-child {
    position: relative;
    top: auto;
    transform: none;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    margin: 0;
    float: none;
    opacity: 1;
    font-size: 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
}

.ui.error.message > .icon:first-child,
.ui.negative.message > .icon:first-child {
    background: rgba(255, 82, 82, 0.16);
    color: #ff6b6b;
    box-shadow: 0 0 14px rgba(255, 82, 82, 0.25);
}

.ui.success.message > .icon:first-child,
.ui.positive.message > .icon:first-child {
    background: rgba(46, 204, 113, 0.16);
    color: #2ecc71;
    box-shadow: 0 0 14px rgba(46, 204, 113, 0.25);
}

.ui.warning.message > .icon:first-child {
    background: rgba(245, 166, 35, 0.16);
    color: #f5a623;
    box-shadow: 0 0 14px rgba(245, 166, 35, 0.25);
}

.ui.info.message > .icon:first-child {
    background: rgba(0, 153, 255, 0.16);
    color: #0099ff;
    box-shadow: 0 0 14px rgba(0, 153, 255, 0.25);
}

/* Header */
.ui.message .header:not(.ui) {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 3px;
}

.ui.error.message .header,
.ui.negative.message .header {
    color: #ff8a8a;
}

.ui.success.message .header,
.ui.positive.message .header {
    color: #5eea9a;
}

.ui.warning.message .header {
    color: #ffc96b;
}

.ui.info.message .header {
    color: #66c4ff;
}

/* Lists inside messages */
.ui.message .list:not(.ui) {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    opacity: 1;
}

.ui.message .list:not(.ui) li {
    position: relative;
    margin: 4px 0;
    padding: 0 0 0 16px;
    list-style-type: none;
    line-height: 1.55;
}

.ui.message .list:not(.ui) li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.65;
}

/* Close button */
.ui.message > .close.icon {
    position: absolute;
    top: 12px;
    right: 14px;
    margin: 0;
    opacity: 0.55;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ui.message > .close.icon:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* Fomantic tiny/mini hints stay compact but on-theme */
.ui.mini.message,
.ui.tiny.message {
    padding: 10px 14px;
    font-size: 12px;
    border-radius: 10px;
    box-shadow: none;
}

/* Forms & inputs */
.ui.form input:not([type]),
.ui.form input[type=date],
.ui.form input[type=datetime-local],
.ui.form input[type=email],
.ui.form input[type=file],
.ui.form input[type=number],
.ui.form input[type=password],
.ui.form input[type=search],
.ui.form input[type=tel],
.ui.form input[type=text],
.ui.form input[type=time],
.ui.form input[type=url] {
    background: var(--bg-card-2);
    border: 1px solid var(--border) !important;
    color: #fff;
    border-radius: 8px;
    box-shadow: none;
    outline: none;
}

.ui.form input:focus {
    border-color: var(--p-color) !important;
    color: #fff !important;
    background: var(--bg-card-2) !important;
    box-shadow: none !important;
}

.ui.form textarea {
    background: var(--bg-card-2);
    border: 1px solid var(--border) !important;
    color: #fff;
    border-radius: 8px;
}

.ui.form textarea:focus {
    color: #fff;
    border-color: var(--p-color) !important;
    background: var(--bg-card-2);
    box-shadow: none;
}

.ui.form .field>label {
    color: #fff !important;
}

.ui.selection.dropdown {
    background: var(--bg-card-2);
    color: #fff;
    border: 1px solid var(--border) !important;
}

.ui.selection.visible.dropdown>.text:not(.default) {
    color: #fff;
}

.ui.dropdown .menu {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.ui.dropdown .menu>.item {
    color: #cfcfcf;
}

.ui.selection.dropdown .menu {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.ui.selection.dropdown .menu>.item {
    color: var(--text-muted) !important;
}

.ui.selection.dropdown .menu>.item:hover {
    background: rgba(var(--p-color-rgb), 0.15);
    color: #fff !important;
}

.ui.selection.dropdown>.default.text {
    color: var(--text-muted);
}

.ui.selection.dropdown>.dropdown.icon {
    color: var(--text-muted);
}

.ui.dropdown .menu>.item:hover {
    background: rgba(var(--p-color-rgb), 0.15);
    color: #fff !important;
}

.ui.dropdown .menu>.header {
    color: var(--text-muted);
}

.ui.checkbox label, .ui.checkbox+label {
    color: var(--text-muted) !important;
}

.ui.checkbox input:checked ~ label,
.ui.checkbox input:checked ~ .box {
    color: var(--text-muted) !important;
}

/* Buttons (fomantic) */
.ui.button {
    background: var(--p-color) none;
    color: #fff;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
}

.ui.button:hover {
    filter: brightness(0.9);
    color: #fff;
}

.ui.primary.button, .ui.primary.buttons .button {
    background-color: var(--p-color);
    color: #fff;
}

.ui.primary.button:hover, .ui.primary.buttons .button:hover {
    background-color: var(--p-color);
    filter: brightness(0.9);
    color: #fff;
}

.ui.positive.button {
    background-color: #28a745;
    color: #fff;
}

.ui.negative.button, .ui.red.button {
    background-color: #dc3545;
    color: #fff;
}

.ui.basic.button {
    background: transparent !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
}

.ui.basic.button:hover {
    background: rgba(var(--p-color-rgb), 0.08) !important;
    color: #fff !important;
    border-color: var(--p-color) !important;
}

/* Menu */
.ui.menu {
    background: var(--bg-card-2);
    border: 1px solid var(--border);
}

.ui.menu .item {
    color: var(--text-muted);
}

.ui.menu .active.item {
    background: var(--p-color);
    color: #fff;
}

.ui.secondary.menu {
    background: transparent !important;
}

/* Tabular menu */
.ui.tabular.menu .item {
    color: var(--text-muted) !important;
    border: none !important;
}

.ui.tabular.menu .active.item {
    background: var(--p-color);
    color: #fff;
    font-weight: 700;
    border: none;
}

/* Table */
.ui.table {
    background: transparent;
    border: 1px solid var(--border);
    box-shadow: none;
    border-radius: 10px;
    color: var(--text-muted);
}

.ui.table thead th {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border-bottom: 1px solid var(--border);
}

.ui.table td {
    border-top: 1px solid var(--border);
}

/* Pagination */
.ui.pagination.menu .active.item {
    background-color: var(--p-color);
    color: #fff;
    box-shadow: none;
    font-weight: 600;
}

.ui.pagination.menu .item {
    color: var(--text-muted);
}

/* Modals */
.ui.modal {
    background: var(--bg-card) !important;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.ui.modal>.header {
    background: var(--bg-card) !important;
    color: #fff !important;
    border-bottom: 1px solid var(--border);
}

.ui.modal>.content {
    background: var(--bg-card) !important;
    color: var(--text-main);
}

.ui.modal>.actions {
    background: var(--bg-card-2) !important;
    border-top: 1px solid var(--border);
}

/* Popups */
.ui.popup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 10px;
}

.ui.popup .header {
    color: #fff;
}

.ui.popup:before {
    background: var(--bg-card);
    box-shadow: 1px 1px 0 0 var(--p-color);
}

/* Breadcrumb */
.ui.breadcrumb {
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    color: #fff;
}

.ui.breadcrumb a {
    color: var(--text-muted);
}

/* ---------- AUTH PAGES (login / register / forgot password) ---------- */

.auth-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px;
}

.auth-wrap .ui.padded.segment {
    width: 100%;
    max-width: 460px;
    margin: 0;
    padding: 34px 36px;
    border-radius: 14px;
    border: 1px solid var(--border) !important;
    border-top: 3px solid var(--p-color);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5) !important;
    animation: fadeInUp 0.5s ease both;
}

.auth-wrap .ui.header {
    text-align: center;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0 0 22px;
}

.auth-wrap .ui.header .sub.header {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 6px;
}

.auth-wrap .ui.message {
    width: 100%;
    max-width: 460px;
    margin-bottom: 20px;
}

.auth-wrap .ui.form .field {
    margin-bottom: 18px;
}

.auth-wrap .ui.form .field>label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff !important;
    margin-bottom: 6px;
}

.auth-wrap .ui.form input:not([type]),
.auth-wrap .ui.form input[type=date],
.auth-wrap .ui.form input[type=datetime-local],
.auth-wrap .ui.form input[type=email],
.auth-wrap .ui.form input[type=file],
.auth-wrap .ui.form input[type=number],
.auth-wrap .ui.form input[type=password],
.auth-wrap .ui.form input[type=search],
.auth-wrap .ui.form input[type=tel],
.auth-wrap .ui.form input[type=text],
.auth-wrap .ui.form input[type=time],
.auth-wrap .ui.form input[type=url] {
    padding: 13px 15px;
    font-size: 0.95rem;
    background: var(--bg-card-2);
}

.auth-wrap .ui.form input:focus {
    background: var(--bg-card-2);
    color: #fff !important;
}

.auth-wrap .ui.form input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.auth-wrap .ui.checkbox label,
.auth-wrap .ui.checkbox+label {
    color: var(--text-muted) !important;
}

.auth-wrap .auth-submit {
    width: 100%;
    padding: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    background: var(--p-color);
    color: #fff;
    box-shadow: 0 0 20px rgba(var(--p-color-rgb), 0.35);
    margin-bottom: 10px;
}

.auth-wrap .auth-submit:hover {
    filter: brightness(0.9);
    color: #fff;
}

.auth-wrap .auth-link-btn {
    width: 100%;
    padding: 13px;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: #cfcfcf;
    box-shadow: none;
}

.auth-wrap .auth-link-btn:hover {
    background: rgba(var(--p-color-rgb), 0.15);
    border-color: rgba(var(--p-color-rgb), 0.5);
    color: #fff;
}

.auth-wrap .ui.fluid.button {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: #d5d5d5;
}

.auth-wrap .ui.fluid.button:hover {
    background: rgba(var(--p-color-rgb), 0.15);
    border-color: rgba(var(--p-color-rgb), 0.4);
    color: #fff;
}

.auth-wrap .ui.horizontal.divider {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 24px 0 18px;
}

.auth-wrap .ui.horizontal.divider:before,
.auth-wrap .ui.horizontal.divider:after {
    border-bottom: 1px solid var(--border);
}

@media (max-width: 576px) {
    .auth-wrap {
        padding: 0 12px 40px;
    }

    .auth-wrap .ui.padded.segment {
        padding: 26px 24px;
    }
}

/* Labels */
.ui.label {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.ui.label.large.green {
    background: #28a745;
}

.ui.label.large.red {
    background: #dc3545;
}

.ui.red.ribbon.label {
    background: #dc3545 !important;
}

/* Divider */
.ui.divider {
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* Comments */
.ui.comments .comment .text {
    color: var(--text-muted);
}

.ui.comments .comment .actions a {
    color: var(--text-muted);
}

/* Vertical menu */
.ui.vertical.menu {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
}

/* ---------- FORUM ---------- */

.forumIndex {
    margin: 15px 0 !important;
}

.mainTitle {
    margin: 0 0 20px !important;
    padding: 14px 18px !important;
    border-radius: 10px;
    font-weight: 700;
    background: var(--bg-card);
    border-left: 4px solid var(--p-color) !important;
}

.mainTitle a {
    color: #fff;
}

.mainTitle-widget {
    padding: 14px 18px !important;
    border-radius: 10px;
    font-weight: 700;
    background: var(--bg-card);
    border-left: 4px solid var(--p-color) !important;
    margin: 0 !important;
}

.block-container {
    padding-bottom: 20px;
    background: transparent;
}

.forumNode {
    padding: 1.5rem !important;
    border: 1px solid var(--border);
    background: var(--bg-card-2);
    border-radius: 12px;
    margin: 8px 0;
}

.forumTitle {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: #fff;
}

.forumDesc {
    color: var(--text-muted);
    line-height: 1.5rem;
}

.forumIcon {
    color: var(--p-color);
}

.silkyTView {
    box-shadow: none;
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
}

.silkyField {
    background-color: var(--p-color);
    height: 50px;
    position: relative;
    margin: 0 auto;
    margin-top: 5px;
    line-height: 50px !important;
    border-radius: 4px;
    padding: 0 20px;
}

#topic-post #post-sidebar .ui.small.image {
    width: 150px;
    border-radius: 0;
}

#topic-post .badges .label {
    background: rgba(255, 255, 255, 0.08) !important;
}

.rowz {
    padding: 0;
    list-style: none;
    margin: 5px 0;
}

.gridz {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    font-size: 12px;
    gap: 6px;
}

.gridz a {
    color: var(--text-muted) !important;
}

/* ---------- FORUM VIEW (thread list) ---------- */

.forum-page {
    padding: 0 0 60px;
    animation: fadeInUp 0.5s ease both;
}

.forum-header-action {
    margin-left: auto;
}

.forum-header-action .ui.button {
    background: var(--p-color);
    color: #fff;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.forum-header-action .ui.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(var(--p-color-rgb), 0.35);
    filter: brightness(1.1);
}

.forum-breadcrumb {
    margin-bottom: 14px !important;
}

.forum-search-bar {
    margin-bottom: 18px;
}

.forum-search-bar .ui.fluid.action.input input {
    background: var(--bg-card);
    border: 1px solid var(--border) !important;
    color: #fff;
    border-radius: 10px 0 0 10px;
    box-shadow: none;
}

.forum-search-bar .ui.fluid.action.input input:focus {
    border-color: var(--p-color) !important;
}

.forum-search-bar .ui.primary.icon.button {
    background: var(--p-color);
    color: #fff;
    border-radius: 0 10px 10px 0;
}

.forum-pagination {
    margin: 0 0 18px;
    text-align: center;
}

.forum-pagination:last-child {
    margin-top: 18px;
    margin-bottom: 0;
}

.forum-table-card {
    margin-bottom: 18px;
    padding: 0;
    overflow: hidden;
    min-height: 0;
    animation: fadeInUp 0.5s ease both;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.forum-table-card:nth-child(2) { animation-delay: 0.08s; }
.forum-table-card:nth-child(3) { animation-delay: 0.16s; }
.forum-table-card:nth-child(4) { animation-delay: 0.24s; }
.forum-table-card:nth-child(5) { animation-delay: 0.32s; }

.forum-table-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(var(--p-color-rgb), 0.25);
    border-color: rgba(var(--p-color-rgb), 0.35);
}

.forum-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--bg-card-2);
    border-bottom: 1px solid var(--border);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    position: relative;
    overflow: hidden;
}

.forum-card-title::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--p-color);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.forum-card-title:hover::after {
    transform: scaleY(1);
}

.forum-card-title i {
    color: var(--p-color);
    transition: transform 0.3s ease;
}

.forum-card-title:hover i {
    transform: scale(1.2) rotate(-8deg);
}

.forum-card-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forum-card-title a:hover {
    color: var(--p-color);
}

.forum-table-card .ui.table {
    background: var(--bg-card);
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: var(--text-muted);
}

.forum-table-card .ui.table thead th {
    background: transparent;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 14px 20px;
}

.forum-table-card .ui.table td {
    border-top: 1px solid var(--border);
    padding: 16px 20px;
    vertical-align: middle;
}

.forum-table-card .ui.table tbody tr {
    transition: background 0.2s ease, transform 0.2s ease;
    animation: fadeInUp 0.4s ease both;
}

.forum-table-card .ui.table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.forum-table-card .ui.table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.forum-table-card .ui.table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.forum-table-card .ui.table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.forum-table-card .ui.table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.forum-table-card .ui.table tbody tr:nth-child(6) { animation-delay: 0.3s; }

.forum-table-card .ui.table tbody tr:hover {
    background: rgba(var(--p-color-rgb), 0.06);
}

.forum-table-card .ui.table tbody tr:hover .ui.header .content > a {
    color: var(--p-color);
}

.forum-table-card .ui.table .ui.header {
    color: #fff;
}

.forum-table-card .ui.table .ui.header .sub.header {
    color: var(--text-muted);
}

.forum-table-card .ui.table .ui.header a {
    color: #fff;
    font-weight: 600;
}

.forum-table-card .ui.table .ui.header a:hover {
    color: var(--p-color);
}

.forum-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
}

.forum-stats span {
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 6px;
}

.forum-stats b {
    color: #fff;
    background: rgba(var(--p-color-rgb), 0.12);
    border: 1px solid rgba(var(--p-color-rgb), 0.25);
    border-radius: 8px;
    padding: 1px 8px;
    font-weight: 700;
    display: inline-block;
    min-width: 30px;
    text-align: center;
}

.forum-table-card .ui.table .ui.header .icon {
    color: var(--p-color);
    opacity: 0.9;
}

/* ---------- STATIC PAGES (terms / privacy) ---------- */

.page-content {
    min-height: 0;
    color: var(--text-main);
    line-height: 1.7;
}

.page-content p {
    margin: 1em 0;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
    color: #fff;
}

/* ---------- FORUM TOPIC (thread view) ---------- */

.forum-topic-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: -14px 0 16px 60px;
}

.topic-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    position: relative;
    z-index: 200;
}

.topic-toolbar .forum-pagination {
    margin: 0;
}

.topic-toolbar .res {
    display: flex;
    gap: 8px;
}

.topic-toolbar .ui.dropdown.button,
.topic-toolbar .ui.button {
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 600;
}

.topic-toolbar .ui.dropdown.button:hover {
    background: var(--p-color);
    border-color: var(--p-color);
    color: #fff;
}

.topic-toolbar .ui.dropdown .menu {
    z-index: 1000;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
}

.topic-toolbar .ui.dropdown .menu .item {
    color: var(--text-muted);
    font-weight: 500;
}

.topic-toolbar .ui.dropdown .menu .item:hover {
    background: rgba(var(--p-color-rgb), 0.12);
    color: #fff;
}

.topic-toolbar .ui.dropdown .menu .header {
    color: #fff;
    border-bottom: 1px solid var(--border);
}

#topic-post .ui.segments {
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0 0 18px;
    border-radius: 14px;
    overflow: hidden;
}

#topic-post .ui.attached.segment.silkyTView {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-top: 3px solid var(--p-color);
    border-radius: 14px 14px 0 0 !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
    padding: 20px 24px !important;
}

#post-sidebar {
    border-right: 1px solid var(--border);
}

.post-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4px 0;
}

.post-avatar {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    border: 4px solid var(--bg-card-2);
    background: var(--bg-card-2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transition: 0.25s;
}

.post-avatar:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--p-color-rgb), 0.5);
}

.post-username {
    display: block;
    margin-top: 14px;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.post-username:hover {
    filter: brightness(90%);
}

.post-usertitle {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.post-groups {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.post-groups span {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
}

.post-groups .badge-danger {
    background-color: rgba(255, 77, 77, 0.22);
    border: 1px solid rgba(255, 77, 77, 0.55);
}

.post-groups .badge-success {
    background-color: rgba(82, 196, 111, 0.22);
    border: 1px solid rgba(82, 196, 111, 0.55);
}

.post-groups .badge-primary {
    background-color: rgba(82, 155, 232, 0.22);
    border: 1px solid rgba(82, 155, 232, 0.55);
}

.post-groups .badge-warning {
    background-color: rgba(232, 168, 79, 0.22);
    border: 1px solid rgba(232, 168, 79, 0.55);
}

.post-groups .badge-info {
    background-color: rgba(66, 184, 212, 0.22);
    border: 1px solid rgba(66, 184, 212, 0.55);
}

.post-groups .badge-secondary {
    background-color: rgba(180, 180, 180, 0.18);
    border: 1px solid rgba(180, 180, 180, 0.45);
}

.post-groups .badge-dark {
    background-color: rgba(130, 130, 130, 0.25);
    border: 1px solid rgba(130, 130, 130, 0.5);
}

.post-groups .badge-light {
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: #1d1d1d;
}

#topic-post .ui.bottom.attached.segment#post-meta {
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 14px 14px !important;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 12px 20px;
}

#post-meta a {
    color: #fff;
    font-weight: 600;
}

#post-meta .ui.mini.button {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

#post-meta .ui.mini.button:hover {
    background: var(--p-color);
    color: #fff;
}

#post-content .forum_post {
    color: var(--text-main);
    line-height: 1.7;
}

#topic-reply {
    background: var(--bg-card);
    border: 1px solid var(--border) !important;
    border-radius: 14px;
    margin-top: 18px;
    padding: 18px 20px !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

.reply-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.reply-head .ui.avatar.image {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.reply-head-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.reply-head-name a {
    color: #fff;
}

.reply-head-name a:hover {
    color: var(--p-color);
}

.reply-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

#topic-reply .ui.form textarea {
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: #fff;
    padding: 14px;
    min-height: 130px;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#topic-reply .ui.form textarea:focus {
    border-color: var(--p-color);
    box-shadow: 0 0 0 3px rgba(var(--p-color-rgb), 0.15);
}

#topic-reply .ui.button.primary {
    background: var(--p-color);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
}

#topic-reply .ui.button.warning {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 500;
    border-radius: 8px;
}

#topic-reply .ui.button.warning:hover {
    color: #fff;
    border-color: var(--p-color);
}

/* ---------- PROFILE ---------- */

#profile-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: none !important;
    margin-bottom: 1rem;
}

.profile-feed,
.profile-feed-active {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
    border-radius: 12px;
    margin: 10px 0 !important;
}

.profile-btns {
    color: #fff !important;
    background: var(--bg-card-2) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px;
    margin: 0.75rem 1rem;
    font-weight: 600 !important;
}

.profileIcon {
    color: var(--p-color);
    font-size: 20px;
}

.profileFields {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    text-align: center;
}

/* ---------- TINYMCE ---------- */

.tox-tinymce {
    border: none !important;
}

.tox .tox-toolbar,
.tox .tox-menubar,
.tox .tox-statusbar,
.tox .tox-dialog,
.tox .tox-dialog__header,
.tox .tox-dialog__footer,
.tox .tox-menu,
.tox .tox-textfield,
.tox .tox-textarea,
.tox .tox-toolbar-textfield {
    background-color: var(--bg-card-2) !important;
    border: none !important;
}

.tox .tox-tbtn {
    color: #fff !important;
}

.tox .tox-tbtn svg {
    fill: #fff !important;
}

.tox .tox-dialog-wrap__backdrop {
    background-color: rgba(0, 0, 0, 0.7) !important;
}

/* ---------- FOOTER ---------- */

.footer {
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--border);
}

.footer .footer-spacer {
    display: none;
}

.f-large {
    border-bottom: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 30px;
    padding: 45px 0 40px;
}

.footer-col {
    color: rgba(255, 255, 255, 0.6);
}

.footer-text-header {
    position: relative;
    display: inline-block;
    margin-bottom: 18px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-text-header:after {
    content: '';
    position: absolute;
    top: calc(50% - 2px);
    left: calc(100% + 1rem);
    width: 20px;
    height: 4px;
    border-radius: 10px;
    background: var(--p-color);
    box-shadow: 0 0 10px 0 var(--p-color);
}

.footer-col p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.92rem;
    line-height: 1.7;
}

.footer-link {
    position: relative;
    display: block;
    width: fit-content;
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s ease, padding-left 0.25s ease, filter 0.2s ease;
}

.footer-link:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 3px;
    width: 100%;
    height: 2px;
    background: var(--p-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    box-shadow: 0 0 8px var(--p-color);
}

.footer-link:hover {
    color: #fff;
    padding-left: 6px;
    filter: brightness(100%);
}

.footer-link:hover:after {
    transform: scaleX(1);
}

.btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.01);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 26px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-play i {
    color: rgba(255, 255, 255, 0.9);
    transition: margin-left 0.25s;
}

.btn-play:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-play:hover i {
    margin-left: 12px;
}

.f-small {
    background: rgba(255, 255, 255, 0.01);
    padding: 26px 0;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.f-copyright {
    flex: 1;
}

.f-top-copy {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.f-top-copy span {
    color: rgba(255, 255, 255, 0.7);
}

.f-bottom-copy {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

.f-icons {
    display: flex;
    gap: 8px;
    margin-left: 1.5rem;
}

.f-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.2s ease;
}

.f-icons i {
    font-size: 1.1rem;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 0.5rem;
}

.f-icons a:hover {
    color: var(--p-color);
}

.f-icon-col {
    display: flex;
    align-items: center;
    margin-left: 1.5rem;
}

.f-icon-col img {
    max-height: 40px;
    filter: grayscale(1) brightness(30%);
    transition: 0.5s;
}

.f-icon-col a:hover img {
    filter: grayscale(0) brightness(50%);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }
    .f-copyright {
        flex: none;
    }
    .f-icons {
        margin-left: 0;
    }
    .f-icon-col {
        margin-left: 0;
    }
}

/* ---------- TOP CONTENT AREA ---------- */

.top-container {
    margin-top: -100px;
    padding-top: 30px;
    position: relative;
    z-index: 101;
}

#ie-message {
    display: none;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 992px) {
    .navbar-top {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .navbar-toggler {
        display: block;
    }

    .navbar-nav-wrap {
        display: none;
    }

    .navbar-left {
        margin-left: auto;
    }

    .hero-header {
        height: 340px;
    }

    .logo-ds-flex {
        padding: 0 1rem;
    }

    .logo {
        margin-top: 100px;
        height: 130px;
    }

    .status-text,
    .discord-text {
        margin-top: 160px;
    }

    .status-text .bottom-text,
    .discord-text .bottom-text {
        font-size: 0.7rem;
    }

    .status-text .icon-wrapper svg,
    .discord-text .icon-wrapper svg {
        width: 40px;
        height: 40px;
    }

    .welcome-card-flex {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .welcome-lr-col {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 1050px) {
    .status-text .text,
    .discord-text .text {
        display: none;
    }
}

/* ---------- LOADER ---------- */

.loader-wrapper {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #101010;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000000;
}

.loader img {
    display: inline-block;
    width: 100px;
    position: relative;
    animation: loader 2s infinite ease;
}

@keyframes loader {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.9); opacity: 0.7; }
}

/* ---------- PROFILE PAGE ---------- */

.profile-page {
    padding: 0 0 60px;
    animation: fadeInUp 0.5s ease both;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
}

.profile-header {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid var(--p-color);
}

.profile-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.profile-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(16, 16, 16, 0.65);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: 0.2s;
}

.profile-action-btn:hover {
    background: var(--p-color);
    color: #fff;
}

.profile-body {
    padding: 0 2.75rem 2.5rem;
}

.profile-user-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: -46px;
    padding: 0 1.5rem;
}

.profile-avatar {
    width: 92px;
    height: 92px;
    border-radius: 14px;
    border: 4px solid var(--bg-card);
    background: var(--bg-card-2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.profile-user-info {
    padding-top: 2.4rem;
    display: flex;
    flex-direction: column;
}

.profile-header-username {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.profile-usertitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 2px;
}

.profile-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.profile-groups span {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
}

.profile-groups .badge-danger {
    background-color: rgba(255, 77, 77, 0.22);
    border: 1px solid rgba(255, 77, 77, 0.55);
}

.profile-groups .badge-success {
    background-color: rgba(82, 196, 111, 0.22);
    border: 1px solid rgba(82, 196, 111, 0.55);
}

.profile-groups .badge-primary {
    background-color: rgba(82, 155, 232, 0.22);
    border: 1px solid rgba(82, 155, 232, 0.55);
}

.profile-groups .badge-warning {
    background-color: rgba(232, 168, 79, 0.22);
    border: 1px solid rgba(232, 168, 79, 0.55);
}

.profile-groups .badge-info {
    background-color: rgba(66, 184, 212, 0.22);
    border: 1px solid rgba(66, 184, 212, 0.55);
}

.profile-groups .badge-secondary {
    background-color: rgba(180, 180, 180, 0.18);
    border: 1px solid rgba(180, 180, 180, 0.45);
}

.profile-groups .badge-dark {
    background-color: rgba(130, 130, 130, 0.25);
    border: 1px solid rgba(130, 130, 130, 0.5);
}

.profile-groups .badge-light {
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: #1d1d1d;
}

.profile-tabs {
    display: flex;
    gap: 6px;
    margin: 26px 0 0;
    border-bottom: 1px solid var(--border);
}

.profile-tab {
    position: relative;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    transition: 0.2s;
}

.profile-tab:hover {
    color: #fff;
}

.profile-tab.active {
    color: #fff;
    border-bottom-color: var(--p-color);
}

.profile-tab-content {
    display: none;
    padding-top: 26px;
}

.profile-tab-content.active {
    display: block;
    animation: fadeInUp 0.35s ease both;
}

.profile-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
    border: 1px dashed var(--border);
    border-radius: 12px;
}

.profile-post-form .field textarea {
    min-height: 90px;
    background: var(--bg-card-2);
    color: #fff;
}

.profile-post-form .field textarea:focus {
    background: var(--bg-card-2);
    color: #fff;
}

.profile-posts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.profile-post {
    display: flex;
    gap: 14px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.profile-post-avatar img {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    flex-shrink: 0;
}

.profile-post-body {
    flex: 1;
    min-width: 0;
}

.profile-post-author {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

.profile-post-author:hover {
    color: var(--p-color);
}

.profile-post-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 10px;
}

.profile-post-text {
    margin-top: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
    word-wrap: break-word;
}

.profile-post-text.forum_post {
    margin-top: 8px;
}

.profile-post-actions {
    margin-top: 10px;
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
}

.profile-post-actions a,
.profile-post-actions form {
    display: inline-block;
}

.profile-post-actions a {
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
}

.profile-post-actions a:hover {
    color: var(--p-color);
}

.profile-post-replies {
    margin-top: 14px;
    padding-left: 14px;
    border-left: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-pagination {
    margin-top: 26px;
    text-align: center;
}

.about-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 26px;
    text-align: center;
}

.about-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    padding: 24px 18px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: 0.2s;
}

.about-box:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--p-color-rgb), 0.5);
}

.about-box-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--p-color-rgb), 0.15);
    color: var(--p-color);
    font-size: 1.35rem;
}

.about-box-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.about-box-value {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.about-integrations {
    margin-top: 32px;
    text-align: center;
}

.about-integrations-header {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.about-integrations-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 460px;
    margin: 0 auto;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
}

.integration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 18px;
    min-width: 240px;
}

.integration-icon {
    color: var(--p-color);
}

.integration-title {
    color: var(--text-muted);
    font-weight: 600;
}

.integration-value {
    color: #fff;
    font-weight: 600;
}

/* ---------- STAFF CARD ---------- */

.staff-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--p-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.staff-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(var(--p-color-rgb), 0.06);
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--p-color);
}

.staff-header i {
    font-size: 1.1rem;
}

.staff-body {
    padding: 16px 20px;
}

.staff-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.staff-info-item {
    flex: 1 1 auto;
    min-width: 140px;
    padding: 10px 16px;
    border-right: 1px solid var(--border);
}

.staff-info-item:last-child {
    border-right: none;
}

.staff-info-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 600;
}

.staff-info-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.staff-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 20px 0;
}

/* ---------- CHANGE BANNER MODAL ---------- */

.banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.banner-option {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    border: 2px solid var(--border);
    overflow: hidden;
    background: var(--bg-card-2);
    transition: 0.2s;
}

.banner-option:hover {
    border-color: rgba(var(--p-color-rgb), 0.6);
    transform: translateY(-2px);
}

.banner-option.active {
    border-color: var(--p-color);
    box-shadow: 0 0 0 3px rgba(var(--p-color-rgb), 0.25);
}

.banner-preview {
    height: 130px;
    background-size: cover;
    background-position: center;
}

.banner-name {
    padding: 10px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

.banner-check {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.4rem;
    color: var(--p-color);
    background: rgba(16, 16, 16, 0.75);
    border-radius: 50%;
    display: none;
}

.banner-option.active .banner-check {
    display: block;
}

/* ---------- MEMBERS PAGE ---------- */

.members-page {
    padding: 0 0 60px;
    animation: fadeInUp 0.5s ease both;
}

.members-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.members-header-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--p-color-rgb), 0.15);
    color: var(--p-color);
    font-size: 1.15rem;
    box-shadow: 0 0 20px rgba(var(--p-color-rgb), 0.2);
}

.members-header h1 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.members-layout {
    display: flex;
    align-items: flex-start;
    gap: 22px;
}

.members-sidebar {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.members-main {
    flex: 1;
    min-width: 0;
}

.members-card,
.members-main-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--p-color);
    border-radius: 14px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

.members-card {
    padding: 18px;
}

.members-main-card {
    padding: 24px;
}

.members-main-card.forum-table-card {
    padding: 0;
    min-height: 0;
}

.members-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #fff;
    margin-bottom: 14px;
}

.members-card-head i {
    color: var(--p-color);
}

.members-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.members-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: 0.2s;
}

.members-nav-link i.icon {
    color: var(--text-muted);
    font-size: 1rem;
    width: 18px;
    text-align: center;
    margin: 0;
}

.members-nav-link:hover {
    background: rgba(var(--p-color-rgb), 0.1);
    color: #fff;
    transform: translateX(2px);
}

.members-nav-link.active {
    background: var(--p-color);
    color: #fff;
    box-shadow: 0 0 18px rgba(var(--p-color-rgb), 0.35);
}

.members-nav-link.active i.icon {
    color: #fff;
}

/* Search */
.members-card .ui.input input {
    background: var(--bg-card-2);
    border: 1px solid var(--border) !important;
    color: #fff;
    border-radius: 10px;
    box-shadow: none;
}

.members-card .ui.input input:focus {
    border-color: var(--p-color) !important;
    color: #fff;
}

.members-card .ui.input input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.members-card .ui.search .results {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    max-height: 320px;
    overflow-y: auto;
}

.members-card .ui.search .results .result {
    background: transparent;
    color: #fff;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    display: flex !important;
    align-items: center;
    gap: 12px;
    border-left: 3px solid transparent;
    transition: 0.15s;
}

.members-card .ui.search .results .result:last-child {
    border-bottom: none;
}

.members-card .ui.search .results .result .image {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
    margin: 0;
    border: 1px solid rgba(var(--p-color-rgb), 0.35);
}

.members-card .ui.search .results .result .content {
    flex: 1;
    min-width: 0;
    text-align: left !important;
}

.members-card .ui.search .results .result .title {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.members-card .ui.search .results .result .description {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    margin-top: 2px;
}

.members-card .ui.search .results .result:hover,
.members-card .ui.search .results .result.active {
    background: rgba(var(--p-color-rgb), 0.12);
    color: #fff;
    border-left-color: var(--p-color);
}

.members-card .ui.search .results .result:hover .title,
.members-card .ui.search .results .result.active .title {
    color: #fff;
}

.members-card .ui.search .results .message.empty {
    box-shadow: none;
    background: transparent;
    color: #fff;
}

.members-card .ui.search .results .message.empty .header {
    color: #fff;
    font-weight: 600;
}

.members-card .ui.search .results .message.empty .description {
    color: rgba(255, 255, 255, 0.55);
}

/* New members */
.new-members-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.new-members-grid a {
    display: block;
}

.new-members-grid img {
    width: 100%;
    border-radius: 50%;
    transition: 0.2s;
}

.new-members-grid a:hover img {
    transform: scale(1.08);
    box-shadow: 0 0 0 2px var(--p-color);
}

/* Overview lists */
.members-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.members-list-column.members-single-list {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
}

.members-list-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.members-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.members-list .item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.members-list .item:hover {
    border-color: rgba(var(--p-color-rgb), 0.5);
    transform: translateX(2px);
}

.members-list .item .content {
    flex: 1;
    min-width: 0;
}

.members-list .item .right.floated.content {
    float: none;
    margin-left: auto;
    flex-shrink: 0;
}

.members-list .item .right.floated.content .ui.header {
    color: var(--p-color);
    margin: 0;
    font-size: 1.1rem;
}

.members-list .item .ui.avatar.image {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    flex-shrink: 0;
}

.members-list .item .description {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 2px;
}

.members-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(var(--p-color-rgb), 0.12);
    border: 1px solid rgba(var(--p-color-rgb), 0.35);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.2s;
}

.members-view-all:hover {
    background: var(--p-color);
    color: #fff;
}

.members-pagination {
    margin-top: 18px;
    text-align: center;
}

.members-pagination ul {
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
}

.members-pagination .ui.pagination.menu {
    margin: 0 auto;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: none;
    padding: 4px;
}

.members-pagination .ui.pagination.menu .item {
    background: transparent;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
    min-width: 34px;
    justify-content: center;
    text-align: center;
    border-radius: 8px;
    margin: 0;
    box-shadow: none;
    transition: 0.2s;
}

.members-pagination .ui.pagination.menu .item:hover {
    background: rgba(var(--p-color-rgb), 0.15);
    color: #fff;
}

.members-pagination .ui.pagination.menu .item.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.members-pagination .ui.pagination.menu .active.item {
    background: var(--p-color);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(var(--p-color-rgb), 0.45);
}

@media (max-width: 992px) {
    .members-layout {
        flex-direction: column;
    }

    .members-sidebar {
        flex: 1 1 auto;
        width: 100%;
    }

    .members-overview-grid {
        grid-template-columns: 1fr;
    }
}

/* Members skeleton loader */
.members-skeleton {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.members-skeleton-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.members-skeleton-avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    flex-shrink: 0;
}

.members-skeleton-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.members-skeleton-line {
    height: 12px;
    width: 60%;
    border-radius: 6px;
}

.members-skeleton-line.short {
    width: 40%;
    height: 9px;
}

.members-skeleton-avatar,
.members-skeleton-line {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(var(--p-color-rgb), 0.2) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: members-shimmer 1.4s infinite linear;
}

@keyframes members-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ==========================================================================
   STORE
   ========================================================================== */

.store-page {
    padding-bottom: 60px;
    animation: fadeInUp 0.5s ease both;
}

/* Sidebar: player / cart card */
.members-sidebar > .members-card {
    animation: fadeInUp 0.45s ease both;
}

.members-sidebar > .members-card:nth-child(1) { animation-delay: 0.06s; }
.members-sidebar > .members-card:nth-child(2) { animation-delay: 0.14s; }
.members-sidebar > .members-card:nth-child(3) { animation-delay: 0.22s; }
.members-sidebar > .members-card:nth-child(n+4) { animation-delay: 0.28s; }

.store-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.store-user-row:hover {
    border-color: rgba(var(--p-color-rgb), 0.4);
    box-shadow: 0 0 18px -6px rgba(var(--p-color-rgb), 0.4);
}

.store-user-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(var(--p-color-rgb), 0.25), rgba(var(--p-color-rgb), 0.08));
    color: var(--p-color);
    font-size: 1.1rem;
}

.store-user-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    word-break: break-word;
}

.store-user-sub {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.store-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    transition: 0.2s;
}

.store-cart-btn.active {
    background: linear-gradient(135deg, var(--p-color), rgba(var(--p-color-rgb), 0.65));
    color: #fff;
    box-shadow: 0 0 18px rgba(var(--p-color-rgb), 0.4);
    animation: badgePulse 2.4s ease-in-out infinite;
}

.store-cart-btn.active:hover {
    filter: brightness(0.92);
    color: #fff;
    animation: none;
}

.store-cart-btn.disabled {
    background: var(--bg-card-2);
    color: var(--text-muted);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    cursor: not-allowed;
}

.store-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid rgba(220, 53, 69, 0.4);
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: 0.2s;
}

.store-logout-btn:hover {
    background: #dc3545;
    color: #fff;
}

/* Sidebar: categories */
.store-nav-dropdown summary {
    list-style: none;
    cursor: pointer;
}

.store-nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.store-nav-dropdown summary .fa-chevron-down {
    margin-left: auto;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.store-nav-dropdown[open] summary .fa-chevron-down {
    transform: rotate(180deg);
}

.store-nav-sub {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 4px 0 8px 18px;
    padding-left: 12px;
    border-left: 2px solid rgba(var(--p-color-rgb), 0.4);
}

.store-nav-sub a {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    transition: 0.2s;
}

.store-nav-sub a:hover {
    background: rgba(var(--p-color-rgb), 0.1);
    color: #fff;
}

.store-nav-sub a.active {
    background: var(--p-color);
    color: #fff;
}

/* Sidebar: account / credits */
.store-account-head {
    margin-bottom: 12px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.store-credits-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.store-credits-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.store-credits-value {
    color: var(--p-color);
    font-weight: 700;
}

.store-divider {
    height: 1px;
    background: var(--border);
    margin: 14px 0;
}

.store-widgets {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Main content headings */
.store-main-card h2 {
    margin: 0 0 2px;
    font-size: 1.3rem;
    font-weight: 700;
}

.store-main-card h3 {
    margin: 0 0 2px;
    font-size: 1.1rem;
    font-weight: 700;
}

.store-content.forum_post {
    color: var(--text-main);
    line-height: 1.7;
}

.store-content p {
    margin: 1em 0;
}

/* Product grid (with image) */
.store-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.store-product {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    animation: fadeInUp 0.45s ease both;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.store-product:nth-child(1) { animation-delay: 0.06s; }
.store-product:nth-child(2) { animation-delay: 0.12s; }
.store-product:nth-child(3) { animation-delay: 0.18s; }
.store-product:nth-child(4) { animation-delay: 0.24s; }
.store-product:nth-child(5) { animation-delay: 0.30s; }
.store-product:nth-child(6) { animation-delay: 0.36s; }
.store-product:nth-child(n+7) { animation-delay: 0.40s; }

.store-product::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    opacity: 0;
}

.store-product:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--p-color-rgb), 0.5);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.5), 0 0 24px -8px rgba(var(--p-color-rgb), 0.45);
}

.store-product:hover::after {
    animation: boltSheen 0.7s ease 0.05s both;
    opacity: 1;
}

.store-product-image {
    position: relative;
    display: block;
    height: 170px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(var(--p-color-rgb), 0.14), rgba(var(--p-color-rgb), 0.03));
    border-bottom: 1px solid var(--border);
}

.store-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.store-product:hover .store-product-image img {
    transform: scale(1.04);
}

.store-product-image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(var(--p-color-rgb), 0.5);
    font-size: 2.6rem;
}

.store-sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    padding: 5px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #dc3545, #ff5d73);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 6px 18px rgba(220, 53, 69, 0.55);
    animation: badgePulse 1.8s ease-in-out infinite;
}

.store-product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
}

.store-product-name {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
}

.store-product-foot {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.store-product-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.store-product-old-price {
    color: #dc3545;
    font-size: 0.82rem;
    text-decoration: line-through;
}

.store-product-price {
    color: var(--p-color);
    font-size: 1.1rem;
    font-weight: 800;
}

.store-product-buttons {
    display: flex;
    gap: 8px;
}

.store-product-buttons .ui.button {
    flex: 1;
    margin: 0;
    padding: 10px 12px;
}

.store-product-buttons .store-buy-btn {
    background: linear-gradient(135deg, var(--p-color), rgba(var(--p-color-rgb), 0.65)) !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    box-shadow: 0 6px 18px rgba(var(--p-color-rgb), 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.store-product-buttons .store-buy-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 10px 26px rgba(var(--p-color-rgb), 0.55);
}

.store-info-btn {
    background: rgba(var(--p-color-rgb), 0.12) none !important;
    border: 1px solid rgba(var(--p-color-rgb), 0.35) !important;
    box-shadow: none !important;
}

.store-info-btn:hover {
    background: var(--p-color) !important;
    border-color: var(--p-color) !important;
    filter: none !important;
}

/* Product list (no image) */
.store-product-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
}

.store-product-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    animation: fadeInUp 0.45s ease both;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.store-product-row:nth-child(1) { animation-delay: 0.06s; }
.store-product-row:nth-child(2) { animation-delay: 0.12s; }
.store-product-row:nth-child(3) { animation-delay: 0.18s; }
.store-product-row:nth-child(4) { animation-delay: 0.24s; }
.store-product-row:nth-child(5) { animation-delay: 0.30s; }
.store-product-row:nth-child(n+6) { animation-delay: 0.36s; }

.store-product-row:hover {
    transform: translateX(4px);
    border-color: rgba(var(--p-color-rgb), 0.45);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.store-product-row-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(var(--p-color-rgb), 0.12);
    color: var(--p-color);
    font-size: 1.2rem;
}

.store-product-row .store-product-name {
    margin: 0;
}

.store-product-row .store-product-price-row {
    margin: 6px 0 0;
}

.store-product-row .store-product-buttons {
    flex-shrink: 0;
    margin-top: 0;
    margin-left: auto;
}

.store-product-modal-image {
    display: block;
    max-width: 220px;
    margin: 0 auto 14px;
    border-radius: 10px;
}

/* Checkout */
.store-checkout-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 22px;
    margin-top: 22px;
    align-items: start;
}

.store-checkout-grid > .members-main-card,
.store-checkout-grid > .members-card {
    animation: fadeInUp 0.45s ease both;
}

.store-checkout-grid > .members-main-card { animation-delay: 0.06s; }
.store-checkout-grid > .members-card { animation-delay: 0.16s; }

@media (min-width: 993px) {
    .store-checkout-grid > .members-card {
        position: sticky;
        top: 96px;
    }
}

.store-pay-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.store-pay-card {
    position: relative;
}

.store-pay-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.store-pay-card label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 16px 12px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.88rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.store-pay-card label:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--p-color-rgb), 0.5);
}

.store-pay-card input:checked + label {
    border-color: var(--p-color);
    background: rgba(var(--p-color-rgb), 0.1);
    box-shadow: 0 0 0 1px var(--p-color), 0 0 20px rgba(var(--p-color-rgb), 0.3);
}

.store-pay-card label .store-pay-check {
    color: var(--p-color);
    font-size: 1.1rem;
    transform: scale(0.6);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-pay-card input:checked + label .store-pay-check {
    transform: scale(1);
    opacity: 1;
}

.store-cart-list {
    display: flex;
    flex-direction: column;
}

.store-cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 10px;
    margin: 0 -10px;
    border-bottom: 1px solid var(--border);
    border-radius: 10px;
    transition: background 0.2s ease;
}

.store-cart-item:hover {
    background: rgba(var(--p-color-rgb), 0.05);
}

.store-cart-item:first-child {
    padding-top: 10px;
}

.store-cart-item:last-child {
    border-bottom: none;
}

.store-cart-item-body {
    flex: 1;
    min-width: 0;
}

.store-cart-item-name {
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
}

.store-cart-item-fields {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.store-cart-item-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
}

.store-cart-item-old-price {
    color: #dc3545;
    font-size: 0.8rem;
    text-decoration: line-through;
}

.store-cart-item-price {
    color: var(--p-color);
    font-weight: 800;
    font-size: 0.92rem;
}

.store-cart-item-qty {
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.store-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 9px;
    border: 1px solid rgba(220, 53, 69, 0.35);
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
    transition: 0.2s;
}

.store-remove-btn:hover {
    background: #dc3545;
    color: #fff;
}

.store-totals {
    display: flex;
    flex-direction: column;
}

.store-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.88rem;
}

.store-total-row:first-child {
    padding-top: 0;
}

.store-total-row .store-total-value {
    color: #fff;
    font-weight: 600;
}

.store-total-row.discount .store-total-value {
    color: #dc3545;
}

.store-total-row.grand {
    padding-bottom: 0;
    border-bottom: none;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
}

.store-total-row.grand .store-total-value {
    color: var(--p-color);
    text-shadow: 0 0 16px rgba(var(--p-color-rgb), 0.4);
}

.store-coupon-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.store-coupon-row .ui.input {
    flex: 1;
}

.store-coupon-row .ui.input input {
    background: var(--bg-card-2);
    border: 1px solid var(--border) !important;
    border-radius: 10px;
    color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.store-coupon-row .ui.input input:focus {
    border-color: var(--p-color) !important;
    box-shadow: 0 0 0 1px var(--p-color), 0 0 16px rgba(var(--p-color-rgb), 0.25) !important;
}

.store-coupon-row .ui.input input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.store-coupon-row .ui.button {
    background: linear-gradient(135deg, var(--p-color), rgba(var(--p-color-rgb), 0.65));
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(var(--p-color-rgb), 0.3);
}

/* Product fields (checkout_add) */
.store-fields-card {
    animation: fadeInUp 0.45s ease both;
}

.store-fields-card .ui.form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.store-fields-card .field {
    margin: 0;
    padding: 16px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.store-fields-card .field:focus-within {
    border-color: rgba(var(--p-color-rgb), 0.55);
    box-shadow: 0 0 20px -8px rgba(var(--p-color-rgb), 0.5);
}

.store-fields-card .field > label {
    color: #fff !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px !important;
}

.store-fields-card .grouped.fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.store-fields-card .ui.input input,
.store-fields-card textarea {
    background: var(--bg-dark) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    color: #fff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.store-fields-card .ui.input input:focus,
.store-fields-card textarea:focus {
    border-color: var(--p-color) !important;
    box-shadow: 0 0 0 1px rgba(var(--p-color-rgb), 0.35), 0 0 16px rgba(var(--p-color-rgb), 0.2) !important;
    color: #fff !important;
}

.store-fields-card .ui.input input::placeholder,
.store-fields-card textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.store-fields-card .ui.selection.dropdown {
    background: var(--bg-dark) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    color: #fff !important;
}

.store-fields-card .ui.selection.dropdown .text,
.store-fields-card .ui.selection.dropdown .menu > .item {
    color: #fff !important;
}

.store-fields-card .ui.selection.dropdown .menu {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
}

.store-fields-card .ui.selection.dropdown .menu > .item:hover,
.store-fields-card .ui.selection.dropdown .menu > .item.selected {
    background: rgba(var(--p-color-rgb), 0.12) !important;
}

.store-fields-card .ui.button[type="submit"],
.store-fields-card button[type="submit"] {
    background: linear-gradient(135deg, var(--p-color), rgba(var(--p-color-rgb), 0.65)) !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 22px rgba(var(--p-color-rgb), 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.store-fields-card .ui.button[type="submit"]:hover,
.store-fields-card button[type="submit"]:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 12px 30px rgba(var(--p-color-rgb), 0.55);
}

/* Checkout complete */
.store-complete {
    padding: 20px 0;
    text-align: center;
    animation: fadeInUp 0.45s ease 0.06s both;
}

.store-complete-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    font-size: 1.8rem;
    animation: pulse 2s ease-in-out infinite;
}

/* Widgets (store sidebar) */
.store-widget-purchases {
    display: flex;
    flex-direction: column;
}

.store-widget-purchase {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 8px;
    margin: 0 -8px;
    border-radius: 10px;
    animation: fadeInUp 0.45s ease both;
    transition: background 0.2s ease;
}

.store-widget-purchase:nth-child(1) { animation-delay: 0.05s; }
.store-widget-purchase:nth-child(2) { animation-delay: 0.10s; }
.store-widget-purchase:nth-child(3) { animation-delay: 0.15s; }
.store-widget-purchase:nth-child(4) { animation-delay: 0.20s; }
.store-widget-purchase:nth-child(n+5) { animation-delay: 0.24s; }

.store-widget-purchase:hover {
    background: rgba(var(--p-color-rgb), 0.06);
}

.store-widget-purchase img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.store-widget-purchase-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.store-widget-purchase-price {
    color: var(--p-color);
    font-size: 0.8rem;
    font-weight: 700;
}

.store-widget-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.store-widget-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 9px;
    border: 1px solid rgba(var(--p-color-rgb), 0.35);
    background: rgba(var(--p-color-rgb), 0.12);
    color: var(--p-color);
    transition: 0.2s;
}

.store-widget-buy:hover {
    background: var(--p-color);
    color: #fff;
}

/* Player login */
.store-login-card {
    animation: fadeInUp 0.45s ease both;
}

.store-login-card .ui.form .field > label {
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.store-login-card .ui.input input {
    background: var(--bg-card-2) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    color: #fff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.store-login-card .ui.input input:focus {
    border-color: var(--p-color) !important;
    box-shadow: 0 0 0 1px rgba(var(--p-color-rgb), 0.35), 0 0 16px rgba(var(--p-color-rgb), 0.2) !important;
}

.store-login-card .ui.input input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.store-login-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.store-login-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 193, 7, 0.07);
    border: 1px solid rgba(255, 193, 7, 0.22);
    color: #ddd;
    font-size: 0.85rem;
    line-height: 1.5;
    animation: fadeInUp 0.45s ease both;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.store-login-info-item:nth-child(1) { animation-delay: 0.08s; }
.store-login-info-item:nth-child(2) { animation-delay: 0.18s; }

.store-login-info-item:hover {
    border-color: rgba(var(--p-color-rgb), 0.4);
    box-shadow: 0 0 18px -8px rgba(var(--p-color-rgb), 0.45);
}

.store-login-info-item i {
    margin-top: 3px;
    flex-shrink: 0;
    color: #ffc107;
}

.store-login-info-item.danger {
    background: rgba(220, 53, 69, 0.07);
    border-color: rgba(220, 53, 69, 0.22);
}

.store-login-info-item.danger i {
    color: #dc3545;
}

/* Responsive */
@media (max-width: 992px) {
    .store-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .store-checkout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .store-products-grid {
        grid-template-columns: 1fr;
    }

    .store-product-row {
        flex-wrap: wrap;
    }

    .store-product-row .store-product-buttons {
        width: 100%;
        margin-left: 0;
    }
}

/* ---------- STORE EXTRAS (credits / faq / discord) ---------- */
.store-credits-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    padding: 18px 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(var(--p-color-rgb), 0.14), rgba(var(--p-color-rgb), 0.05));
    border: 1px solid rgba(var(--p-color-rgb), 0.28);
    animation: fadeInUp 0.5s ease both;
}

.store-credits-banner-icon {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--p-color), rgba(var(--p-color-rgb), 0.65));
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 8px 22px rgba(var(--p-color-rgb), 0.4);
}

.store-credits-banner-info {
    flex: 1 1 auto;
    min-width: 0;
}

.store-credits-banner-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.store-credits-banner-amount {
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
}

.store-credits-banner-currency {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.store-credits-banner-value {
    flex: 0 0 auto;
    text-align: right;
    padding-left: 18px;
    border-left: 1px solid rgba(var(--p-color-rgb), 0.25);
}

.store-credits-banner-approx {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--p-color);
}

.store-credits-banner-hint {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.store-section {
    animation: fadeInUp 0.5s ease both;
}

.store-faq-section {
    margin-top: 44px;
}

.store-section-header {
    text-align: center;
    margin-bottom: 24px;
}

.store-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.store-discord-section {
    margin-top: 44px;
    padding-bottom: 60px;
}

@media (max-width: 600px) {
    .store-credits-banner {
        flex-wrap: wrap;
        gap: 14px;
    }

    .store-credits-banner-value {
        width: 100%;
        padding-left: 0;
        padding-top: 12px;
        border-left: none;
        border-top: 1px solid rgba(var(--p-color-rgb), 0.25);
        text-align: left;
    }
}

/* ---------- USER PANEL (UserCP) ---------- */

/* Sidebar nav icons (FontAwesome) */
.members-nav-link i {
    color: var(--text-muted);
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
    margin: 0;
    transition: color 0.2s;
}

.members-nav-link:hover i {
    color: var(--p-color);
}

.members-nav-link.active i {
    color: #fff;
}

/* User panel cards */
.members-main-card.user-card {
    min-height: 0;
    margin-bottom: 14px;
    padding: 18px;
    animation: fadeInUp 0.5s ease both;
}

.members-main-card.user-card:nth-child(2) {
    animation-delay: 0.08s;
}

.members-main-card.user-card:nth-child(3) {
    animation-delay: 0.16s;
}

.members-main-card.user-card:last-child {
    margin-bottom: 0;
}

.user-card-title {
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.forum-card-action {
    margin-left: auto;
}

.new-message-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, var(--p-color), rgba(var(--p-color-rgb), 0.7)) !important;
    border-radius: 50px !important;
    box-shadow: 0 0 16px rgba(var(--p-color-rgb), 0.35);
    transition: 0.2s;
}

.new-message-btn i {
    color: #fff;
}

.new-message-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 0 26px rgba(var(--p-color-rgb), 0.55);
}

.user-card-title .ui.button {
    text-transform: none;
    letter-spacing: 0;
}

/* Tables inside user panel cards */
.members-main-card .ui.table {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: var(--text-muted);
}

.members-main-card .ui.table thead th {
    background: transparent;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 10px 0;
}

.members-main-card .ui.table td {
    border-top: 1px solid var(--border);
    padding: 11px 0;
    vertical-align: middle;
}

.members-main-card .ui.table tbody tr {
    transition: background 0.2s ease;
}

.members-main-card .ui.table tbody tr:hover {
    background: rgba(var(--p-color-rgb), 0.06);
}

.members-main-card .ui.table .ui.header {
    color: #fff;
}

.members-main-card .ui.table .ui.header .sub.header {
    color: var(--text-muted);
}

.members-main-card .ui.table .ui.header a {
    color: #fff;
    font-weight: 600;
}

.members-main-card .ui.table .ui.header a:hover {
    color: var(--p-color);
}

/* Overview */
.user-overview-stats {
    gap: 18px;
    padding-top: 6px;
}

.user-overview-stats .about-box {
    flex: 1;
    min-width: 150px;
    gap: 10px;
    padding: 22px 14px;
}

.user-overview-stats .about-box:hover {
    border-color: rgba(var(--p-color-rgb), 0.6);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(var(--p-color-rgb), 0.15);
}

.user-overview-stats .about-box-icon {
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
}

#chartWrapper canvas {
    width: 100% !important;
    max-height: 220px;
}

/* Sessions */
.session-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    border-radius: 12px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    margin-bottom: 14px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.session-card:last-child {
    margin-bottom: 0;
}

.session-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--p-color-rgb), 0.4);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

.session-card.current {
    border-color: rgba(var(--p-color-rgb), 0.55);
    background: linear-gradient(180deg, rgba(var(--p-color-rgb), 0.09), var(--bg-card-2));
    box-shadow: 0 0 18px rgba(var(--p-color-rgb), 0.12);
}

.session-icon {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--p-color-rgb), 0.12);
    color: var(--p-color);
    font-size: 1.6rem;
    border: 1px solid var(--border);
}

.session-info {
    flex: 1;
    min-width: 0;
}

.session-device {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
}

.session-sep {
    color: var(--text-muted);
    margin: 0 2px;
}

.session-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.session-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.session-location i {
    color: var(--p-color);
}

.session-ip {
    filter: blur(5px);
    cursor: pointer;
    transition: filter 0.25s ease;
    user-select: none;
}

.session-ip:hover {
    filter: none;
}

.session-country {
    color: var(--text-muted);
}

.session-this {
    color: #52c46f;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.session-last-active {
    color: var(--text-muted);
}

.session-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(var(--p-color-rgb), 0.12);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 0.75rem;
}

.session-badge i {
    color: var(--p-color);
}

.session-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.session-actions .ui.mini.button {
    margin: 0;
}

.session-actions .session-logout i {
    margin: 0;
}

/* Connections */
.connection-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    margin-bottom: 10px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.connection-card:last-child {
    margin-bottom: 0;
}

.connection-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--p-color-rgb), 0.4);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

.connection-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--p-color-rgb), 0.12);
    color: var(--p-color);
    font-size: 1.3rem;
    border: 1px solid var(--border);
}

.connection-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.connection-status.connected {
    background: #52c46f;
    box-shadow: 0 0 10px rgba(82, 196, 111, 0.6);
}

.connection-status.pending {
    background: #e8a84f;
    box-shadow: 0 0 10px rgba(232, 168, 79, 0.6);
}

.connection-status.disconnected {
    background: #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.6);
}

.connection-info {
    flex: 1;
    min-width: 0;
}

.connection-name {
    color: #fff;
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.connection-user {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 3px;
}

.connection-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.connection-actions .ui.mini.button {
    margin: 0;
}

/* Alerts */
.alerts-list {
    display: flex;
    flex-direction: column;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-radius: 10px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    margin-bottom: 10px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.alert-item:last-child {
    margin-bottom: 0;
}

.alert-item:hover {
    border-color: rgba(var(--p-color-rgb), 0.5);
    transform: translateX(2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.alert-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: transparent;
}

.alert-item.unread .alert-dot {
    background: var(--p-color);
    box-shadow: 0 0 8px rgba(var(--p-color-rgb), 0.7);
    animation: alertPulse 2s infinite;
}

@keyframes alertPulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--p-color-rgb), 0.5); }
    70% { box-shadow: 0 0 0 7px rgba(var(--p-color-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--p-color-rgb), 0); }
}

.alert-content {
    flex: 1;
    min-width: 0;
}

.alert-text {
    color: #fff;
    font-size: 0.92rem;
}

.alert-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 3px;
}

.alert-arrow {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.alert-item:hover .alert-arrow {
    color: var(--p-color);
}

/* Notification settings */
.notif-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notif-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.2s ease;
}

.notif-row:hover {
    border-color: rgba(var(--p-color-rgb), 0.35);
}

.notif-label {
    color: #fff;
    font-weight: 600;
    font-size: 0.92rem;
}

.notif-toggles {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-shrink: 0;
}

.notif-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.notif-toggle i {
    color: var(--p-color);
}

.notif-toggle .ui.toggle.checkbox {
    margin: 0;
}

.ui.celled.table th,
.ui.celled.table td {
    border-right: 1px solid var(--border);
}

.ui.toggle.checkbox input:checked ~ .box:before,
.ui.toggle.checkbox input:checked ~ label:before {
    background-color: var(--p-color) !important;
}

/* User panel forms: force white labels above inputs */
.members-main .ui.form .field > label {
    color: #fff !important;
}

.members-main .ui.form .field label {
    color: #fff !important;
}

/* Notification toggle labels (Alert / Email) stay muted, never black */
.notif-toggle .ui.checkbox label {
    color: var(--text-muted) !important;
}

.screenreader-only {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
}

/* Multiple user search dropdown chips */
.ui.multiple.dropdown > .label {
    background: rgba(var(--p-color-rgb), 0.15) !important;
    color: #fff !important;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
}

.ui.multiple.dropdown > .label > .delete.icon {
    color: rgba(255, 255, 255, 0.6);
}

.ui.multiple.dropdown > .label > .delete.icon:hover {
    color: #fff;
}

.ui.search.dropdown > input.search {
    color: #fff !important;
}

.ui.search.dropdown > input.search:focus {
    color: #fff !important;
}

/* New message form */
.message-form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
}

/* Message view page */
.message-view-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.message-view-card {
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
}

.message-view-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.message-view-meta img {
    border: 2px solid var(--p-color);
}

.message-view-author a {
    color: #fff;
    font-weight: 600;
}

.message-view-author a:hover {
    color: var(--p-color);
}

.message-view-author .sub {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 2px;
}

.message-view-content {
    color: var(--text-main);
    line-height: 1.6;
}

.message-reply-box {
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    margin-top: 20px;
}

.message-reply-box .members-card-head {
    margin-bottom: 12px;
}

.message-reply-box .ui.form .field {
    margin-bottom: 12px;
}

/* Store credits inside user panel */
.members-main .store-credits-row {
    margin-top: 16px;
}

/* 2FA */
.user-2fa .ui.button {
    margin-right: 8px;
}

.tfa-flow {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 460px;
}

.tfa-text {
    color: var(--text-main);
    line-height: 1.6;
}

.tfa-qr {
    display: flex;
    justify-content: center;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.tfa-qr img {
    width: 220px;
    height: 220px;
    image-rendering: pixelated;
}

.tfa-step p {
    color: var(--text-main);
    line-height: 1.6;
}

.tfa-secret {
    font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
    font-size: 1.05rem;
    letter-spacing: 2px;
    color: #fff;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
    text-align: center;
    user-select: all;
}

.tfa-flow .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 600px) {
    .session-card,
    .connection-card {
        flex-wrap: wrap;
    }

    .session-actions,
    .connection-actions {
        width: 100%;
    }
}


/* ---------- PAGE TRANSITIONS ---------- */

html {
    color-scheme: dark;
}

body {
    transition: opacity .32s ease, transform .32s ease;
    will-change: opacity, transform;
}

body.pg-exit {
    opacity: 0;
    transform: translateY(-30px);
}

body.pg-enter {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: reduce) {
    body,
    body.pg-exit,
    body.pg-enter {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* ---------- PAGE LOADER / INTRO OVERLAY ---------- */

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity .5s ease;
    will-change: opacity;
}

.loader-overlay.finished {
    opacity: 0;
    pointer-events: none;
}

.loader-overlay.hidden {
    display: none;
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
}

.loader-logo-row {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    white-space: nowrap;
}

.loader-logo {
    height: 64px;
    width: auto;
    opacity: 0;
    animation: loaderLogoIn .55s ease .15s forwards;
}

.loader-brand {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 2px;
    color: #fff;
    background: #fff;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform-origin: left center;
    animation: loaderBrandReveal .75s cubic-bezier(.22, .8, .3, 1) .25s both;
}

.loader-progress {
    width: clamp(220px, 34vw, 340px);
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .15);
    overflow: hidden;
    opacity: 0;
    animation: loaderFadeIn .4s ease .55s forwards;
}

.loader-progress-bar {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background: #4fc3f7;
    transform-origin: center;
    transform: scaleX(0);
    animation: loaderProgress 1.3s cubic-bezier(.4, 0, .2, 1) .55s forwards;
}

@keyframes loaderLogoIn {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes loaderBrandReveal {
    from {
        clip-path: inset(0 100% 0 0);
        letter-spacing: 6px;
        opacity: 0.25;
    }
    to {
        clip-path: inset(0 0 0 0);
        letter-spacing: 2px;
        opacity: 1;
    }
}

@keyframes loaderProgress {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes loaderFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .loader-overlay {
        transition: none;
    }
    .loader-logo {
        animation: none;
        opacity: 1;
    }
    .loader-brand {
        animation: none;
        clip-path: none;
        opacity: 1;
    }
    .loader-progress,
    .loader-progress-bar {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ---------- LEADERBOARDS ---------- */

.lb-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease both;
}

.lb-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.lb-title i {
    color: #f5c842;
    margin-right: 0.4rem;
}

.lb-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.lb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    padding-bottom: 3rem;
}

@media (max-width: 1100px) {
    .lb-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .lb-grid { grid-template-columns: 1fr; }
}

/* Card */
.lb-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    animation: lbCardIn 0.5s ease both;
    transition: transform .25s ease, box-shadow .25s ease;
}

.lb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

@keyframes lbCardIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Card header */
.lb-card-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card-2);
}

.lb-card-icon {
    font-size: 1rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 153, 255, 0.12);
    color: #0099FF;
    flex-shrink: 0;
}

.lb-card-title {
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-main);
}

/* Card body */
.lb-card-body {
    padding: 0.4rem 0;
}

/* Row */
.lb-row {
    display: flex;
    align-items: center;
    padding: 0.5rem 1.1rem;
    gap: 0.65rem;
    transition: background .15s ease, transform .15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.025);
    animation: lbRowIn 0.4s ease both;
}

.lb-row:last-child {
    border-bottom: none;
}

.lb-row:hover {
    background: rgba(0, 153, 255, 0.06);
    transform: translateX(3px);
}

/* Staggered row entrance (per position) */
.lb-card-body .lb-row:nth-child(1) { animation-delay: 0.02s; }
.lb-card-body .lb-row:nth-child(2) { animation-delay: 0.06s; }
.lb-card-body .lb-row:nth-child(3) { animation-delay: 0.10s; }
.lb-card-body .lb-row:nth-child(4) { animation-delay: 0.14s; }
.lb-card-body .lb-row:nth-child(5) { animation-delay: 0.18s; }
.lb-card-body .lb-row:nth-child(6) { animation-delay: 0.22s; }
.lb-card-body .lb-row:nth-child(7) { animation-delay: 0.26s; }
.lb-card-body .lb-row:nth-child(8) { animation-delay: 0.30s; }
.lb-card-body .lb-row:nth-child(9) { animation-delay: 0.34s; }
.lb-card-body .lb-row:nth-child(10) { animation-delay: 0.38s; }

@keyframes lbRowIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Rank - uniform light blue */
.lb-rank {
    width: 34px;
    text-align: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: #4FC3FF;
    flex-shrink: 0;
}

/* Player */
.lb-player {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    cursor: default;
}

.lb-avatar {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    flex-shrink: 0;
    image-rendering: pixelated;
    transition: transform .2s ease, box-shadow .2s ease;
}

.lb-player:hover .lb-avatar {
    transform: scale(1.18);
    box-shadow: 0 0 10px rgba(79, 195, 255, 0.55);
}

.lb-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Score - light blue */
.lb-score {
    font-size: 0.82rem;
    font-weight: 700;
    color: #4FC3FF;
    white-space: nowrap;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 12px rgba(79, 195, 255, 0.35);
}

/* Empty */
.lb-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 0;
    font-size: 0.85rem;
}

.lb-empty-slot {
    flex: 1;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.7;
}

/* ---------- COOKIE CONSENT ---------- */

.cc-revoke {
    display: none !important;
}

.cc-window {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    right: auto !important;
    top: auto !important;
    max-width: 340px !important;
    width: auto !important;
    border-radius: 12px !important;
    background: rgba(20, 20, 20, 0.85) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4) !important;
    padding: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    z-index: 99999 !important;
    animation: ccSlideUp 0.4s ease-out !important;
}

@keyframes ccSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.cc-window .cc-message {
    font-size: 0.78rem !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 16px 18px 0 !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

.cc-window .cc-compliance {
    display: flex !important;
    gap: 8px !important;
    padding: 12px 18px 16px !important;
}

.cc-window .cc-btn {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    padding: 7px 14px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    font-family: 'Montserrat', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.2s ease !important;
}

.cc-window .cc-btn.cc-allow {
    background: var(--p-color) !important;
    color: #fff !important;
}

.cc-window .cc-btn.cc-allow:hover {
    filter: brightness(1.2) !important;
    transform: translateY(-1px) !important;
}

.cc-window .cc-btn.cc-deny {
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

.cc-window .cc-btn.cc-deny:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

.cc-window .cc-link {
    display: none !important;
}

.cc-window .cc-dismiss {
    position: absolute !important;
    top: 8px !important;
    right: 10px !important;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.3) !important;
    cursor: pointer !important;
    background: none !important;
    border: none !important;
    padding: 4px !important;
    line-height: 1 !important;
    transition: color 0.2s !important;
}

.cc-window .cc-dismiss:hover {
    color: rgba(255, 255, 255, 0.7) !important;
}

@media (max-width: 480px) {
    .cc-window {
        left: 10px !important;
        right: 10px !important;
        max-width: none !important;
        bottom: 12px !important;
        border-radius: 10px !important;
    }
}

/* ---------- PUNISHMENT GRID ---------- */

.punishment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.punishment-column {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.punishment-column-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
}

.punishment-column-header i {
    font-size: 0.9rem;
}

.punishment-column-ban {
    background: rgba(220,53,69,0.08);
    color: #dc3545;
}

.punishment-column-mute {
    background: rgba(255,193,7,0.08);
    color: #ffc107;
}

.punishment-column-warn {
    background: rgba(23,162,184,0.08);
    color: #17a2b8;
}

.punishment-column-kick {
    background: rgba(108,117,125,0.08);
    color: #6c757d;
}

.punishment-count-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.punishment-count-badge.active {
    background: rgba(220,53,69,0.2);
    color: #dc3545;
}

.punishment-column-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.punishment-column-body::-webkit-scrollbar {
    width: 4px;
}

.punishment-column-body::-webkit-scrollbar-track {
    background: transparent;
}

.punishment-column-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

/* Individual punishment item inside column */
.punishment-item {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 12px;
    border-left: 3px solid transparent;
    transition: background 0.2s;
}

.punishment-item:hover {
    background: rgba(255,255,255,0.06);
}

.punishment-item-active {
    border-left-color: #dc3545;
}

.punishment-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.punishment-type-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.punishment-type-badge.badge-ban {
    background: rgba(220,53,69,0.15);
    color: #dc3545;
}

.punishment-type-badge.badge-mute {
    background: rgba(255,193,7,0.15);
    color: #ffc107;
}

.punishment-type-badge.badge-warn {
    background: rgba(23,162,184,0.15);
    color: #17a2b8;
}

.punishment-type-badge.badge-kick {
    background: rgba(108,117,125,0.15);
    color: #6c757d;
}

.punishment-type-badge.badge-blacklist {
    background: rgba(52,58,64,0.3);
    color: #adb5bd;
}

.punishment-item-status {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.punishment-item-status.status-active {
    color: #28a745;
}

.punishment-item-status.status-removed {
    color: #dc3545;
}

.punishment-item-reason {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.4;
    word-break: break-word;
}

.punishment-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
}

.punishment-item-meta i {
    margin-right: 3px;
}

.punishment-item-removed,
.punishment-item-by {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.punishment-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 24px 12px;
    font-size: 0.85rem;
    opacity: 0.6;
}

.punishment-empty i {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #28a745;
}

/* Responsive: stack columns on mobile */
@media (max-width: 992px) {
    .punishment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .punishment-grid {
        grid-template-columns: 1fr;
    }

    .staff-info-grid {
        flex-direction: column;
    }

    .staff-info-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .staff-info-item:last-child {
        border-bottom: none;
    }
}

/* ---------- BOLT STATS ---------- */

.bolt-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Global card */
.bolt-global-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    animation: fadeInUp 0.45s ease both;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.bolt-global-card:hover {
    border-color: rgba(var(--p-color-rgb), 0.4);
    box-shadow: 0 0 28px -6px rgba(var(--p-color-rgb), 0.35);
}

.bolt-global-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -45%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    transform: skewX(-20deg);
    animation: boltSheen 1s ease 0.4s both;
    pointer-events: none;
}

@keyframes boltSheen {
    to { left: 130%; }
}

.bolt-global-head {
    position: relative;
    animation: fadeInUp 0.45s ease 0.06s both;
}

@keyframes boltEloGlow {
    0%, 100% { text-shadow: 0 0 0 transparent; }
    50% { text-shadow: 0 0 16px rgba(var(--p-color-rgb), 0.5); }
}

.bolt-global-stats .bolt-stat {
    animation: fadeInUp 0.45s ease both;
}

.bolt-global-stats .bolt-stat:nth-child(1) { animation-delay: 0.14s; }
.bolt-global-stats .bolt-stat:nth-child(2) { animation-delay: 0.22s; }
.bolt-global-stats .bolt-stat:nth-child(3) { animation-delay: 0.30s; }
.bolt-global-stats .bolt-stat:nth-child(4) { animation-delay: 0.38s; }

.bolt-global-extra .bolt-stat {
    animation: fadeInUp 0.45s ease both;
}

.bolt-global-extra .bolt-stat:nth-child(1) { animation-delay: 0.46s; }
.bolt-global-extra .bolt-stat:nth-child(2) { animation-delay: 0.54s; }

.bolt-global-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.bolt-global-elo {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.bolt-global-elo-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--p-color);
    line-height: 1;
    animation: boltEloGlow 3s ease-in-out 0.9s infinite;
}

.bolt-global-elo-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bolt-global-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.bolt-division {
    background: rgba(var(--p-color-rgb), 0.12);
    border: 1px solid rgba(var(--p-color-rgb), 0.25);
    color: var(--p-color);
    border-radius: 8px;
    padding: 4px 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.bolt-level {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.bolt-global-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.bolt-stat {
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.bolt-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.bolt-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bolt-global-extra {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.bolt-global-extra .bolt-stat {
    flex: 1;
}

/* Kits */
.bolt-kits-title {
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--p-color);
    margin-bottom: 12px;
}

.bolt-kits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.bolt-kit-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    min-height: 146px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease,
                opacity 0.3s ease, visibility 0.3s ease;
}

.bolt-kit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: radial-gradient(120% 70% at 50% -10%, rgba(var(--p-color-rgb), 0.18), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.bolt-kits-grid .bolt-kit-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(var(--p-color-rgb), 0.55);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42), 0 0 18px rgba(var(--p-color-rgb), 0.16);
}

.bolt-kits-grid .bolt-kit-card:hover::before {
    opacity: 1;
}

.bolt-kit-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.bolt-kit-elo {
    margin-left: auto;
    background: rgba(var(--p-color-rgb), 0.14);
    color: var(--p-color);
    font-weight: 700;
    font-size: 0.78rem;
    border-radius: 6px;
    padding: 3px 8px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.bolt-kit-card:hover .bolt-kit-elo {
    background: var(--p-color);
    color: #fff;
    box-shadow: 0 0 10px rgba(var(--p-color-rgb), 0.45);
}

.bolt-kit-name {
    flex: 1;
    min-width: 0;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.bolt-kit-subtitle {
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: -4px;
}

/* Icon frame (items: plain texture) */
.bolt-kit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    flex-shrink: 0;
    image-rendering: pixelated;
    padding: 7px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.bolt-kit-icon img {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.bolt-kit-card:hover .bolt-kit-icon {
    border-color: rgba(var(--p-color-rgb), 0.6);
    background: rgba(var(--p-color-rgb), 0.1);
    box-shadow: 0 0 12px rgba(var(--p-color-rgb), 0.35);
}

.bolt-kit-card:hover .bolt-kit-icon:not(.bolt-kit-icon-block) img {
    transform: scale(1.18);
}

/* Blocks: 3D cube (top + front + left faces) in a flat, un-rotated frame */
.bolt-kit-icon-block {
    position: relative;
    padding: 3px;
}

.bolt-kit-icon-lg {
    padding: 3px;
}

.bolt-kit-cube {
    position: relative;
    width: 17px;
    height: 17px;
    transform-style: preserve-3d;
    transform: rotateX(-35.264deg) rotateY(45deg);
}

.bolt-kit-cube img,
.bolt-kit-cube::before,
.bolt-kit-cube::after {
    content: '';
    position: absolute;
    width: 17px;
    height: 17px;
    left: 0;
    top: 0;
    background-color: #222;
    background-image: var(--kit-icon-url);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    image-rendering: pixelated;
}

.bolt-kit-cube img {
    transform: translateZ(8.5px);
    filter: brightness(0.98) contrast(1.08);
}

.bolt-kit-cube::before {
    transform: rotateX(90deg) translateZ(8.5px);
    filter: brightness(1.15) contrast(1.08);
}

.bolt-kit-cube::after {
    transform: rotateY(-90deg) translateZ(8.5px);
    filter: brightness(0.82) saturate(1.1) contrast(1.08);
}

/* Splash potion: empty splash bottle + red liquid overlay (in-game layering) */
.bolt-kit-icon-splash {
    position: relative;
}

.bolt-kit-splash-bottle {
    filter: none;
}

.bolt-kit-splash-liquid {
    position: absolute;
    top: 9px;
    right: 7px;
    bottom: 6px;
    left: 7px;
    background: #e64034;
    -webkit-mask-image: url('https://cdn.jsdelivr.net/gh/PrismarineJS/minecraft-assets@master/data/1.8.8/items/potion_overlay.png');
    mask-image: url('https://cdn.jsdelivr.net/gh/PrismarineJS/minecraft-assets@master/data/1.8.8/items/potion_overlay.png');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    pointer-events: none;
}

.bolt-kit-tint-green {
    filter: sepia(1) saturate(3.4) hue-rotate(80deg) brightness(0.82) contrast(1.05);
}

.bolt-kit-card:hover .bolt-kit-icon-block {
    background: rgba(var(--p-color-rgb), 0.1);
}

/* Stats grid */
.bolt-kit-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: auto;
}

.bolt-kit-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 7px 2px;
    border-radius: 8px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    line-height: 1;
}

.bolt-kit-stat b {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
}

.bolt-kit-stat span {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Blur overlay (used on the teaser row while collapsed) */
.bolt-kit-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(to bottom, transparent 40%, var(--bg-card) 100%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: opacity 0.4s ease;
    pointer-events: none;
    opacity: 0;
    z-index: 5;
}

/* Collapsed: 1 full row + 1 blurred row, the rest hidden (desktop 4-col:
   rows 1-2 = cards 1-8, cards 5-8 are the blurred teaser) */
.bolt-kits-collapsed .bolt-kit-card:nth-child(n+9) {
    display: none;
}

.bolt-kits-collapsed .bolt-kit-card:nth-child(n+5):nth-child(-n+8)::after {
    opacity: 1;
}

/* Expanded: reveal everything, extra cards slide in staggered */
.bolt-kits-expanded .bolt-kit-card {
    display: flex;
    transition-delay: calc(min(var(--kit-delay, 0), 8) * 35ms);
}

.bolt-kits-expanded .bolt-kit-card:nth-child(n+9) {
    animation: kitSlideIn 0.45s ease backwards;
    animation-delay: calc(min(var(--kit-delay, 0), 8) * 35ms);
}

.bolt-kits-expanded .bolt-kit-card::after {
    opacity: 0;
}

/* Entrance animation */
.bolt-kit-card {
    animation: kitSlideIn 0.4s ease backwards;
    animation-delay: calc(min(var(--kit-delay, 0), 8) * 35ms);
}

@keyframes kitSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Expand button */
.bolt-kits-expand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 0;
    margin-top: 12px;
    background: rgba(var(--p-color-rgb), 0.08);
    border: 1px solid rgba(var(--p-color-rgb), 0.25);
    border-radius: 10px;
    color: var(--p-color);
    font-size: 0.92rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: 0.2s ease;
    letter-spacing: 0.02em;
}

.bolt-kits-expand:hover {
    color: #fff;
    background: rgba(var(--p-color-rgb), 0.18);
    border-color: rgba(var(--p-color-rgb), 0.5);
}

.bolt-kits-arrow {
    transition: transform 0.3s ease;
    font-size: 0.85rem;
}

/* Stats sub-tabs: Practice | Free For All | Duels */
.bolt-sub-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 16px;
    width: fit-content;
}

.bolt-sub-tab {
    border: none;
    background: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s ease;
}

.bolt-sub-tab:hover {
    color: #fff;
    background: rgba(var(--p-color-rgb), 0.1);
}

.bolt-sub-tab.active {
    color: #fff;
    background: var(--p-color);
    box-shadow: 0 4px 12px rgba(var(--p-color-rgb), 0.35);
}

.bolt-sub-panel {
    display: none;
}

.bolt-sub-panel.active {
    display: block;
    animation: boltPanelIn 0.25s ease;
}

@keyframes boltPanelIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Coming soon panel */
.bolt-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 48px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    text-align: center;
}

.bolt-coming-soon-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--p-color);
    background: rgba(var(--p-color-rgb), 0.12);
}

.bolt-coming-soon-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bolt-coming-soon-text {
    font-size: 0.9rem;
}

/* ELO chart placeholder (stage 2) */
.bolt-elo-chart {
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.bolt-elo-chart-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.bolt-elo-chart-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 24px 0;
}

.bolt-elo-chart-placeholder i {
    font-size: 1.6rem;
    color: rgba(var(--p-color-rgb), 0.4);
}

@media (max-width: 600px) {
    .bolt-global-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .bolt-kits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 2-col: 1 full row (1-2) + blurred row (3-4), hide 5+ */
    .bolt-kits-collapsed .bolt-kit-card:nth-child(n+5):nth-child(-n+8)::after {
        opacity: 0;
    }

    .bolt-kits-collapsed .bolt-kit-card:nth-child(n+3):nth-child(-n+4)::after {
        opacity: 1;
    }

    .bolt-kits-collapsed .bolt-kit-card:nth-child(n+3):nth-child(-n+4) {
        display: flex;
    }

    .bolt-kits-collapsed .bolt-kit-card:nth-child(n+5) {
        display: none;
    }

    .bolt-sub-tabs {
        width: 100%;
    }

    .bolt-sub-tab {
        flex: 1;
        padding: 8px 10px;
        font-size: 0.82rem;
    }
}

@media (max-width: 420px) {
    .bolt-kits-grid {
        grid-template-columns: 1fr;
    }

    /* 1-col: 1 full row (1) + blurred row (2), hide 3+ */
    .bolt-kits-collapsed .bolt-kit-card:nth-child(n+3):nth-child(-n+4)::after {
        opacity: 0;
    }

    .bolt-kits-collapsed .bolt-kit-card:nth-child(2)::after {
        opacity: 1;
    }

    .bolt-kits-collapsed .bolt-kit-card:nth-child(n+3) {
        display: none;
    }
}

/* ---------- NAVBAR (DESKTOP) ---------- */

.navbar-desktop {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

.navbar-brand-logo {
    height: 34px;
    width: auto;
    display: block;
}

.navbar-brand-text {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.navbar-desktop-sep {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 16px;
    flex-shrink: 0;
}

.navbar-links {
    flex: 1;
    justify-content: center;
    gap: 4px;
}

.navbar-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(var(--p-color-rgb), 0.25);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.25s ease;
}

.navbar-search-btn i {
    font-size: 0.95rem;
    color: var(--p-color);
}

.navbar-search-btn:hover {
    background: var(--p-color);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(var(--p-color-rgb), 0.45);
}

.navbar-search-btn:hover i {
    color: #fff;
}

/* ---------- PLAYER LIST DRAWER ---------- */

.playerlist-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 8999;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.playerlist-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.playerlist-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9000;
    width: min(400px, 94vw);
    height: 100%;
    background: #0b0b0b;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
    transform: translateX(105%);
    transition: transform 0.35s cubic-bezier(.22, .8, .3, 1);
    display: flex;
    flex-direction: column;
}

.playerlist-drawer.open {
    transform: translateX(0);
}

.playerlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.playerlist-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.playerlist-close {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
}

.playerlist-close:hover {
    background: var(--p-color);
    color: #fff;
}

.playerlist-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 20px 8px;
    padding: 0 14px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.playerlist-search i {
    color: var(--p-color);
    font-size: 0.9rem;
}

.playerlist-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 0.9rem;
}

.playerlist-search input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.playerlist-count {
    padding: 0 22px 8px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.playerlist-results {
    flex: 1;
    overflow-y: auto;
    padding: 4px 12px 12px;
    min-height: 0;
}

.playerlist-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    margin: 2px 0;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: background 0.2s ease;
}

.playerlist-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.playerlist-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(var(--p-color-rgb), 0.5);
    flex-shrink: 0;
}

.playerlist-row-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.playerlist-row-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playerlist-row-sub {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playerlist-empty,
.playerlist-loading {
    padding: 24px 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.playerlist-footer {
    padding: 10px 20px 16px;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 991.98px) {
    .navbar-desktop {
        display: none !important;
    }

    .navbar-toggler {
        display: inline-flex;
        align-items: center;
    }
}

/* ---------- FLOATING PILL NAVBAR (DESKTOP) ---------- */

@media (min-width: 992px) {
    .navbar {
        animation: none;
    }

    .navbar-top {
        display: flex;
        justify-content: center;
        background: transparent !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: none;
        box-shadow: none;
        min-height: 0;
        padding: 10px 0 0;
    }

    .navbar-top.navbar-scrolled {
        background: transparent !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        min-height: 0;
    }

    .navbar-top::after {
        display: none;
    }

    .navbar-top .navbar-container {
        position: relative;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        flex: none;
        width: auto;
        max-width: calc(100% - 28px);
        margin: 0;
        min-height: 0;
        padding: 5px 16px 5px 26px;
        background: rgba(10, 10, 12, 0.5);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 999px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        transition: border-color 0.35s ease, box-shadow 0.35s ease;
    }

    .navbar-top .navbar-container::before {
        content: '';
        position: absolute;
        inset: -1px;
        border-radius: inherit;
        padding: 1px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.02) 35%, rgba(var(--p-color-rgb), 0.05) 65%, rgba(var(--p-color-rgb), 0.35));
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        mask-composite: exclude;
        pointer-events: none;
    }

    .navbar-top.navbar-scrolled .navbar-container {
        min-height: 0;
        background: rgba(10, 10, 12, 0.7);
        border-color: rgba(var(--p-color-rgb), 0.15);
        box-shadow: 0 12px 50px rgba(0, 0, 0, 0.6), 0 0 18px rgba(var(--p-color-rgb), 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .navbar-desktop {
        flex: none;
        width: auto;
        min-width: 0;
    }

    .navbar-top .navbar-nav .nav-link {
        padding: 6px 14px;
    }

    .navbar-top .navbar-user .nav-login,
    .navbar-top .navbar-user .nav-register,
    .navbar-top .navbar-user .user-avatar-link {
        padding: 6px 14px;
    }

    .navbar-top .navbar-search-btn {
        width: 33px;
        height: 33px;
    }

    .navbar-top .navbar-brand-logo {
        height: 27px;
    }

    .navbar-top .navbar-brand-text {
        font-size: 1rem;
    }

    .navbar-top .navbar-user .user-avatar img {
        width: 27px;
        height: 27px;
    }

    .navbar-top .navbar-container .navbar-nav .nav-link.store-link:not(.active) {
        background: transparent;
        color: rgba(255, 255, 255, 0.7) !important;
        box-shadow: none;
    }

    .navbar-top .navbar-container .navbar-nav .nav-link.store-link:not(.active):hover {
        background: rgba(var(--p-color-rgb), 0.12);
        color: #fff !important;
        box-shadow: none;
        transform: translateY(-1px);
    }

    .color-overlay {
        margin-top: -58px;
    }
}

/* ---------- USER MENU (ACCOUNT DROPDOWN) ---------- */

.user-avatar-link {
    position: relative;
}

.user-icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 14px 5px 5px !important;
    border-radius: 999px;
    background: rgba(var(--p-color-rgb), 0.1);
    border: 1px solid rgba(var(--p-color-rgb), 0.25);
    transition: all 0.25s ease;
}

.user-icon-link:hover {
    background: rgba(var(--p-color-rgb), 0.18);
    border-color: rgba(var(--p-color-rgb), 0.45);
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(var(--p-color-rgb), 0.25);
}

.user-pill-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1;
    text-transform: none;
    letter-spacing: 0.01em;
}

.user-icon-link:hover .user-pill-name {
    color: #fff;
}

.user-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--p-color-rgb), 0.1);
    border: 1px solid rgba(var(--p-color-rgb), 0.25);
    color: var(--p-color);
    font-size: 0.85rem;
    line-height: 1;
    transition: all 0.25s ease;
}

.user-icon i {
    line-height: 1;
    margin: 0 !important;
    font-size: 0.85rem;
}

.user-icon-link:hover .user-icon {
    background: var(--p-color);
    color: #fff;
    box-shadow: 0 0 14px rgba(var(--p-color-rgb), 0.45);
}

.user-icon-link:hover .user-icon i {
    color: #fff;
}

.user-menu-badge {
    position: absolute;
    top: 1px;
    right: -2px;
    min-width: 17px;
    padding: 3px 5px;
    border-radius: 20px;
    background: #dc3545;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    z-index: 3;
}

.user-menu-dropdown {
    min-width: 0;
    width: 280px;
    max-width: calc(100vw - 24px);
    padding: 0;
    overflow: hidden;
}

.user-menu-grid {
    display: flex;
    min-height: 0;
}

.user-menu-main {
    flex: 1 1 auto;
    width: 280px;
    padding: 16px 14px 14px;
    background: rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.user-menu-avatar {
    flex-shrink: 0;
}

.user-menu-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--p-color);
    box-shadow: 0 0 14px rgba(var(--p-color-rgb), 0.4);
    display: block;
}

.user-menu-identity {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-menu-name {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-rank-pill {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--rank-color, var(--p-color));
    background: rgba(var(--rank-rgb, var(--p-color-rgb)), 0.14);
    border: 1px solid rgba(var(--rank-rgb, var(--p-color-rgb)), 0.35);
    margin-top: 4px;
}

.user-menu-connected {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 4px;
}

.dot-online {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3bcf6a;
    box-shadow: 0 0 8px rgba(59, 207, 106, 0.8);
    flex: 0 0 auto;
}

.user-menu-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #cfcfcf;
    font-size: 0.88rem;
    transition: all 0.15s ease;
}

.user-menu-link i {
    width: 16px;
    text-align: center;
    color: var(--p-color);
}

.user-menu-link:hover,
.user-menu-link:focus {
    background: rgba(var(--p-color-rgb), 0.12);
    color: #fff;
}

.user-menu-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: auto;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.35);
    color: #ff6d75;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.user-menu-logout i {
    color: #ff6d75;
    transition: transform 0.2s ease;
}

.user-menu-logout:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.user-menu-logout:hover i {
    color: #fff;
    transform: translateX(3px);
}

.user-menu-notifs {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    max-height: 380px;
}

.user-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px 10px;
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
}

.user-notif-header i {
    color: var(--p-color);
    margin-right: 7px;
}

.user-notif-count {
    background: var(--p-color);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 20px;
    padding: 2px 8px;
}

.user-notif-list {
    flex: 1;
    overflow-y: auto;
    padding: 2px 10px 12px;
}

.user-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 10px;
    margin-bottom: 2px;
    border-radius: 9px;
    color: #d3d3d3;
    transition: background 0.15s ease;
}

.user-notif-item:hover,
.user-notif-item:focus {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.user-notif-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--p-color-rgb), 0.12);
    color: var(--p-color);
    font-size: 0.75rem;
}

.user-notif-icon.is-pm {
    background: rgba(23, 162, 184, 0.14);
    color: #17a2b8;
}

.user-notif-icon.is-alert {
    background: rgba(var(--p-color-rgb), 0.12);
    color: var(--p-color);
}

.user-notif-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-top: 2px;
}

.user-notif-title {
    display: block;
    font-size: 0.82rem;
    color: #ededed;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-notif-time {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.35);
}

.user-notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 44px 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
}

.user-notif-empty i {
    font-size: 1.7rem;
    opacity: 0.7;
}

.user-notif-loading {
    padding: 40px 24px;
}

.dropdown.closing .dropdown-menu {
    display: block;
    animation: dropdownOut 0.2s ease forwards;
}

@keyframes dropdownOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-8px); }
}

.user-notif-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-notif-clear {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-notif-clear i {
    font-size: 0.62rem;
    color: var(--p-color);
    margin: 0;
}

.user-notif-clear:hover {
    background: rgba(var(--p-color-rgb), 0.14);
    border-color: rgba(var(--p-color-rgb), 0.4);
    color: #fff;
}

/* ---------- BELL NOTIFICATION BUTTON (navbar) ---------- */

.notif-bell {
    position: relative;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    border-radius: 50%;
    border: 1px solid rgba(var(--p-color-rgb), 0.25);
    background: rgba(var(--p-color-rgb), 0.1);
    color: var(--p-color);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.notif-bell:hover,
.notif-dropdown.show .notif-bell {
    color: #fff;
    background: var(--p-color);
    border-color: var(--p-color);
    box-shadow: 0 0 14px rgba(var(--p-color-rgb), 0.45);
}

.notif-bell i {
    margin: 0 !important;
    line-height: 1;
    color: inherit;
    font-size: 0.95rem;
    transition: transform 0.25s ease;
}

.notif-bell:hover i,
.notif-dropdown.show .notif-bell i {
    color: #fff;
}

.notif-bell:hover i,
.notif-dropdown.show .notif-bell i {
    animation: bellSwing 0.55s ease;
}

.notif-bell .user-menu-badge {
    top: -4px;
    right: -4px;
}

.notif-bell .user-menu-badge:not([hidden]) {
    animation: badgePulse 2s ease-out infinite;
}

@keyframes bellSwing {
    0%   { transform: rotate(0); }
    20%  { transform: rotate(16deg); }
    40%  { transform: rotate(-12deg); }
    60%  { transform: rotate(8deg); }
    80%  { transform: rotate(-4deg); }
    100% { transform: rotate(0); }
}

@keyframes badgePulse {
    0%   { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.notif-dropdown-menu {
    width: 360px;
    max-width: calc(100vw - 24px);
    padding: 0;
    overflow: hidden;
    max-height: 62vh;
    flex-direction: column;
}

.dropdown.show .notif-dropdown-menu {
    display: flex;
}

.notif-dropdown-menu .user-notif-header {
    flex: 0 0 auto;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}

.notif-dropdown-menu .user-notif-list {
    flex: 1;
    min-height: 0;
    max-height: 52vh;
}

/* ==========================================================================
    HOME PAGE REDESIGN (v4) - turkishpvp-inspired
    ========================================================================== */

/* ---------- PAGE BAND (non-home pages) ---------- */

.page-band {
    height: 260px;
    background: var(--header-url) no-repeat center top;
    background-size: cover;
    position: relative;
}

.page-band:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 160px;
    background: linear-gradient(rgba(0, 0, 0, 0.45), transparent);
}

.page-band:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), var(--bg-dark));
}

/* ---------- HOME HERO ---------- */

.hero-header.hero-home {
    height: 100vh;
    min-height: 640px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-home:after {
    height: 180px;
}

#header-pjs canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-home-inner {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    width: 100%;
    padding-top: 60px;
}

.hero-home-logo {
    width: clamp(260px, 52vw, 720px);
    height: auto;
    filter: drop-shadow(0 0 70px rgba(var(--p-color-rgb), 0.45));
    animation: fadeInUp 0.7s ease both;
}

.hero-home-tagline {
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 820px;
    margin: 0;
    animation: fadeInUp 0.7s ease 0.15s both;
}

.hero-home-highlight {
    position: relative;
    display: inline-block;
    color: var(--p-color);
    font-weight: 600;
    white-space: nowrap;
}

.hero-home-wave {
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 100%;
    height: 6px;
    overflow: visible;
}

.hero-home-wave path {
    fill: none;
    stroke: var(--p-color);
    stroke-width: 2.5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 8px rgba(var(--p-color-rgb), 0.55));
    animation: heroWavePulse 3s ease-in-out infinite;
}

@keyframes heroWavePulse {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 6px rgba(var(--p-color-rgb), 0.45)); }
    50% { opacity: 0.85; filter: drop-shadow(0 0 14px rgba(var(--p-color-rgb), 0.8)); }
}

.hero-home-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 42px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--p-color), #0066cc);
    color: #fff !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: none;
    cursor: pointer;
    box-shadow: 0 6px 30px rgba(var(--p-color-rgb), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    position: relative;
    overflow: hidden;
}

.hero-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.hero-btn:hover::after {
    transform: translateX(100%);
}

.hero-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 46px rgba(var(--p-color-rgb), 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    filter: brightness(1.1);
}

.hero-btn:active {
    transform: translateY(0) scale(0.98);
}

.hero-btn i {
    margin: 0;
    position: relative;
    transition: transform 0.25s ease;
}

.hero-btn:hover i {
    transform: translateX(3px);
}

.hero-btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 42px;
    border-radius: 999px;
    border: 1px solid rgba(88, 101, 242, 0.55);
    background: rgba(88, 101, 242, 0.15);
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-btn-discord:hover {
    background: rgba(88, 101, 242, 0.3);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 36px rgba(88, 101, 242, 0.45);
    color: #fff !important;
}

.hero-btn-discord:active {
    transform: translateY(0) scale(0.98);
}

.hero-btn-discord i {
    font-size: 1.4rem;
    color: #5865F2;
    margin: 0;
    transition: transform 0.25s ease;
}

.hero-btn-discord:hover i {
    transform: scale(1.15);
}

.hero-home-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.6);
    animation: heroScrollBounce 2s ease-in-out infinite;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.hero-home-scroll:hover {
    color: var(--p-color);
    border-color: rgba(var(--p-color-rgb), 0.5);
}

@keyframes heroScrollBounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

/* ---------- HOME SECTIONS (base) ---------- */

.home-flash {
    padding: 40px 0 0;
}

.home-section {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    padding: 104px 0;
}

.home-section.in-view {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .home-section {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-home-scroll {
        animation: none;
    }
}

.home-section-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 44px;
}

.home-section-header.left {
    text-align: left;
}

.home-section-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(var(--p-color-rgb), 0.12);
    border: 1px solid rgba(var(--p-color-rgb), 0.3);
    color: var(--p-color);
    font-size: 1.4rem;
    box-shadow: 0 0 24px rgba(var(--p-color-rgb), 0.2);
}

.home-section-title {
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    font-weight: 700;
    margin: 0 0 10px;
    color: #fff;
}

.home-section-subtitle {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin: 0;
}

.btn-theme-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 999px;
    border: 1px solid rgba(var(--p-color-rgb), 0.45);
    background: rgba(var(--p-color-rgb), 0.08);
    color: var(--p-color) !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-theme-outline:hover {
    background: rgba(var(--p-color-rgb), 0.16);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(var(--p-color-rgb), 0.3);
    text-decoration: none;
}

.btn-theme-outline i {
    margin: 0;
}

/* ---------- GAME MODES ---------- */

.home-gms .home-section-title {
    font-size: clamp(2.6rem, 5.5vw, 4rem);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.home-gms-sub {
    margin: 0 0 44px;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.45;
    background-image:
        linear-gradient(110deg, transparent 38%, #ffffff 50%, transparent 62%),
        linear-gradient(0deg, var(--text-muted), var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-position: 130% 0, 0 0;
    background-size: 250% 100%, 100% 100%;
    animation: metalShine 7s linear infinite;
}

@keyframes metalShine {
    0% { background-position: 130% 0, 0 0; }
    100% { background-position: -40% 0, 0 0; }
}

.home-gms-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 1150px;
    margin: 0 auto;
}

.home-gm {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-gm:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--p-color-rgb), 0.5);
    text-decoration: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 26px rgba(var(--p-color-rgb), 0.12);
}

.home-gm-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 24px 0;
}

.home-gm-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    image-rendering: auto;
    filter: drop-shadow(0 0 10px rgba(var(--p-color-rgb), 0.35));
}

.home-gm-name {
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.01em;
}

.home-gm-foot {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 0 24px 24px;
}

.home-gm-desc {
    font-size: 1.12rem;
    line-height: 1.55;
    color: #c9c9c9;
    text-align: left;
    margin: 0;
}

.home-gm-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--p-color) !important;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.25s ease;
}

.home-gm-btn i {
    margin: 0;
    transition: transform 0.25s ease;
}

.home-gm:hover .home-gm-btn i {
    transform: translateX(4px);
}

/* ---------- LEADERBOARD (2-column: text + panel) ---------- */

.home-lb-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}

.home-lb-text {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.home-lb-text .btn-theme-outline {
    align-self: flex-start;
}

.home-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    padding: 9px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--p-color), #0066cc);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(var(--p-color-rgb), 0.35);
}

.home-pill i {
    margin: 0;
    font-size: 1.05rem;
}

.home-shine {
    display: block;
    background-image:
        linear-gradient(110deg, transparent 38%, #ffffff 50%, transparent 62%),
        linear-gradient(0deg, var(--text-muted), var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-position: 130% 0, 0 0;
    background-size: 250% 100%, 100% 100%;
    animation: metalShine 7s linear infinite;
}

.home-lb-text .home-section-title,
.home-stats-text .home-section-title {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    line-height: 1.3;
    margin-bottom: 0;
}

.home-lb-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0;
}

.home-stats-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0;
}

.home-lb-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.home-lb-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px;
    background: rgba(0, 0, 0, 0.22);
    border-bottom: 1px solid var(--border);
}

.home-lb-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

a.home-lb-tab:hover {
    text-decoration: none;
}

.home-lb-tab img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.home-lb-tab.is-active {
    background: var(--p-color);
    color: #fff;
    box-shadow: 0 4px 18px rgba(var(--p-color-rgb), 0.35);
}

.home-lb-tab.is-disabled {
    opacity: 0.85;
    cursor: default;
}

.home-lb-tab.is-disabled img {
    filter: grayscale(1);
    opacity: 0.55;
}

.home-lb-soon {
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.home-lb-head {
    padding: 16px 20px 4px;
}

.home-lb-caption {
    margin: 0;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.home-lb-sub {
    margin: 3px 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.home-lb-list {
    list-style: none;
    margin: 0;
    padding: 8px 16px 14px;
}

.home-lb-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.home-lb-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.home-lb-rank {
    flex: 0 0 22px;
    width: 22px;
    text-align: right;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    font-variant-numeric: tabular-nums;
}

.home-lb-rank-1,
.home-lb-rank-2,
.home-lb-rank-3 {
    color: var(--p-color);
}

.home-lb-avatar {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
}

.home-lb-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-lb-value {
    flex: 0 0 auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    font-variant-numeric: tabular-nums;
}

.home-lb-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    list-style: none;
}

.home-lb-all {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 18px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-lb-all:hover {
    color: #fff;
    text-decoration: none;
}

.home-lb-all i {
    margin: 0;
    transition: transform 0.2s ease;
}

.home-lb-all:hover i {
    transform: translateX(3px);
}

/* ---------- NEWS ---------- */

.home-news-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.home-news-head .home-section-title {
    margin-bottom: 6px;
}

.home-news-head .home-section-subtitle {
    margin: 0;
}

.home-news-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.home-news-feature {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px 26px 22px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 85% -10%, rgba(var(--p-color-rgb), 0.18), transparent 55%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.035), transparent 45%),
        var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-news-feature::before {
    content: "\f0a1";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -18px;
    right: -10px;
    font-size: 7rem;
    color: rgba(var(--p-color-rgb), 0.09);
    pointer-events: none;
}

.home-news-feature:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--p-color-rgb), 0.45);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 26px rgba(var(--p-color-rgb), 0.12);
    text-decoration: none;
}

.home-news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 20px;
    position: relative;
    z-index: 1;
}

.home-news-badge {
    display: inline-flex;
    padding: 3px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #60a5fa;
}

.home-news-time {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.home-news-time:not(:first-child) {
    margin-left: auto;
}

.home-news-feature-title {
    font-size: clamp(1.3rem, 2vw, 1.55rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #fff;
    position: relative;
    z-index: 1;
}

.home-news-feature-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.home-news-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    margin-top: auto;
    border-top: 1px solid var(--border);
    font-size: 0.84rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.home-news-author a {
    color: #e9e9e9;
}

.home-news-author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.home-news-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-news-mini {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 20px 20px 18px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.home-news-mini:hover {
    border-color: rgba(var(--p-color-rgb), 0.45);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

.home-news-mini .home-news-badge {
    align-self: flex-start;
}

.home-news-mini-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-news-mini-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.home-news-mini-meta img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.home-news-mini-meta i.fa-circle {
    font-size: 0.22rem;
    color: rgba(255, 255, 255, 0.3);
}

.home-news-empty {
    margin: 20px 0;
    color: var(--text-muted);
}

/* ---------- LIVE STATS ---------- */

.home-stats-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}

.home-stats-text {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.home-stats-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.home-stats-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.home-stats-title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
}

.home-stats-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
}

.home-stats-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: flagPulse 2s ease-in-out infinite;
}

@keyframes flagPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.8); }
}

.home-stats-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.home-stat + .home-stat {
    border-left: 1px solid var(--border);
}

.home-stat {
    padding: 24px 20px;
}

.home-stat-value {
    display: block;
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.15;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.home-stat-label {
    display: block;
    margin-top: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ---------- FAQ ---------- */

.home-faq-container {
    max-width: 780px;
}

.home-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-faq-item {
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.home-faq-item.open {
    border-color: rgba(var(--p-color-rgb), 0.45);
}

.home-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 18px 22px;
    background: none;
    border: none;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.home-faq-icon {
    flex: 0 0 auto;
    color: var(--p-color);
    transition: transform 0.3s ease;
}

.home-faq-item.open .home-faq-icon {
    transform: rotate(180deg);
}

.home-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 22px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.home-faq-item.open .home-faq-a {
    padding-bottom: 20px;
}

/* ---------- DISCORD CTA ---------- */

.home-discord-cta {
    padding-bottom: 88px;
}

.home-cta-banner {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 34px 40px;
    border-radius: 20px;
    background: linear-gradient(120deg, rgba(88, 101, 242, 0.35), rgba(var(--p-color-rgb), 0.18) 55%, rgba(0, 0, 0, 0.2));
    border: 1px solid rgba(88, 101, 242, 0.4);
    box-shadow: 0 18px 60px rgba(88, 101, 242, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-cta-banner:hover {
    transform: translateY(-4px);
    border-color: rgba(88, 101, 242, 0.7);
    box-shadow: 0 24px 70px rgba(88, 101, 242, 0.2);
    text-decoration: none;
}

.home-cta-icon {
    flex: 0 0 auto;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(88, 101, 242, 0.22);
    border: 1px solid rgba(88, 101, 242, 0.5);
    color: #fff;
    font-size: 1.8rem;
}

.home-cta-text {
    flex: 1 1 auto;
}

.home-cta-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.home-cta-sub {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
    line-height: 1.55;
}

.home-cta-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 999px;
    background: #5865F2;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 6px 26px rgba(88, 101, 242, 0.5);
    transition: transform 0.25s ease, filter 0.25s ease;
}

.home-cta-btn i {
    margin: 0;
}

.home-cta-banner:hover .home-cta-btn {
    transform: translateX(3px);
    filter: brightness(1.1);
}

/* ---------- GAME MODE SUBPAGE ---------- */

.gamemode-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding: 80px 20px 100px;
}

.gamemode-title {
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.gamemode-desc {
    font-size: 0.98rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0;
}

.gamemode-soon {
    display: inline-flex;
    padding: 12px 36px;
    border-radius: 999px;
    background: rgba(var(--p-color-rgb), 0.15);
    border: 1px solid rgba(var(--p-color-rgb), 0.45);
    color: var(--p-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 10px;
    letter-spacing: 0.04em;
}

/* ---------- SECTION CONNECTORS (gray line filling with color) ---------- */

.home-connector {
    display: none;
    width: 100%;
    height: 210px;
    margin: 14px 0;
    overflow: visible;
}

.home-connector path {
    fill: none;
    stroke-linecap: round;
}

.home-connector .home-connector-track {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2px;
}

.home-connector .home-connector-fill {
    stroke: var(--p-color);
    stroke-width: 3.5px;
    filter: drop-shadow(0 0 8px rgba(var(--p-color-rgb), 0.6));
}

@media (min-width: 1024px) {
    .home-connector {
        display: block;
    }
}

/* ---------- HOME RWD ---------- */

@media (max-width: 1023px) {
    .hero-header.hero-home {
        height: auto;
        min-height: 100vh;
    }

    .hero-home-inner {
        padding-bottom: 40px;
    }

    .hero-home-scroll {
        display: none;
    }

    .home-connector {
        display: none;
    }

    .home-gms-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 640px;
    }

    .home-lb-layout {
        grid-template-columns: 1fr;
    }

    .home-stats-layout {
        grid-template-columns: 1fr;
    }

    .home-news-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .home-section {
        padding: 64px 0;
    }

    .home-gms-grid {
        grid-template-columns: 1fr;
    }

    .home-gm {
        aspect-ratio: auto;
        min-height: 230px;
    }

    .home-stats-band {
        grid-template-columns: 1fr;
    }

    .home-stat + .home-stat {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .home-cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 26px 22px;
    }

    .home-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- AUTH PAGES REDESIGN (login / register / forgot password) ---------- */

body#page-login,
body#page-forgot_password,
body#page-register {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.auth-page {
    display: flex;
    height: 100vh;
    min-height: 0;
    overflow: hidden;
    background: #0a0a0a;
    animation: none;
}

/* Left: full-bleed hero copy */
.auth-side {
    position: relative;
    flex: 1 1 auto;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 64px 72px;
    background-color: #0d0d12;
    overflow: hidden;
}

.auth-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--header-url) no-repeat center;
    background-size: cover;
}

.auth-side::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.42) 45%, rgba(8, 8, 10, 0.9) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.45), transparent 55%),
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
    animation: authOverlayBreath 7s ease-in-out infinite;
}

.auth-side-inner {
    position: relative;
    z-index: 3;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.auth-side-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    margin-bottom: 48px;
    animation: authFloat 6s ease-in-out infinite, fadeInUp 0.9s ease both;
}

.auth-side-badge:hover {
    opacity: 0.92;
}

.auth-side-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: drop-shadow(0 0 26px rgba(var(--p-color-rgb), 0.55));
}

.auth-side-logotype {
    font-size: clamp(1.5rem, 2.2vw, 1.9rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #fff;
}

.auth-side-copy {
    max-width: 560px;
    margin: auto 0;
    text-align: left;
    animation: fadeInUp 0.9s ease 0.12s both;
}

.auth-side-title {
    margin: 0 0 26px;
    font-size: clamp(2.2rem, 4.2vw, 3.5rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: #fff;
    text-align: left;
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.9)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}

.auth-side-brand {
    position: relative;
    display: block;
    color: var(--p-color);
    font-weight: 800;
}

.auth-side-wave {
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 100%;
    height: 6px;
    overflow: visible;
}

.auth-side-wave path {
    fill: none;
    stroke: var(--p-color);
    stroke-width: 2.5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 8px rgba(var(--p-color-rgb), 0.55));
    animation: authGlow 3.5s ease-in-out infinite;
}

.auth-side-desc {
    max-width: 520px;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.62);
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.85));
}

.auth-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.9;
}

.auth-particles canvas {
    position: absolute;
    top: 0;
    left: 0;
}

.auth-side-footer {
    width: 100%;
    align-self: stretch;
    margin-top: 40px;
    animation: fadeInUp 0.9s ease 0.24s both;
}

.auth-side-footer-line {
    height: 1px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.12);
}

.auth-side-footer-text {
    line-height: 1.7;
    font-size: 0.9rem;
    color: #8a8f99 !important;
}

.auth-side-footer-brand {
    display: block;
    color: rgba(255, 255, 255, 0.72) !important;
    font-weight: 600;
    font-size: 1rem;
}

.auth-side-footer-copy {
    font-size: 0.7rem;
    color: #6f747d !important;
}

.auth-side-footer-copy i {
    margin-right: 6px;
    color: #6f747d !important;
}

/* Right: dark sign-in panel */
.auth-panel {
    flex: 0 0 500px;
    height: 100%;
    box-sizing: border-box;
    min-height: 0;
    display: flex;
    align-items: center;
    padding: 36px 48px;
    background: #0a0a0a;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    overflow-y: auto;
}

.auth-panel-inner {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    animation: fadeInUp 0.9s ease 0.2s both;
}

.auth-panel-title {
    margin: 0 0 6px;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
}

.auth-panel-sub {
    margin: 0 0 24px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.auth-field {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.auth-field > i {
    position: absolute;
    left: 18px;
    z-index: 1;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.38);
    pointer-events: none;
    transition: color 0.2s ease;
}

.auth-field.is-focus > i {
    color: var(--p-color);
}

.auth-page .auth-field input[type=text],
.auth-page .auth-field input[type=email],
.auth-page .auth-field input[type=password] {
    width: 100%;
    padding: 14px 48px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    box-shadow: none !important;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-page .auth-field input[type=password].has-eye {
    padding-right: 52px !important;
}

.auth-page .auth-field input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.auth-page .auth-field input[type=text]:focus,
.auth-page .auth-field input[type=email]:focus,
.auth-page .auth-field input[type=password]:focus {
    border-color: rgba(var(--p-color-rgb), 0.7) !important;
    background: rgba(var(--p-color-rgb), 0.06) !important;
    box-shadow: 0 0 0 3px rgba(var(--p-color-rgb), 0.14) !important;
}

.auth-eye {
    position: absolute;
    right: 6px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.auth-eye:hover {
    color: var(--p-color);
    background: rgba(var(--p-color-rgb), 0.12);
}

.auth-eye i {
    margin: 0;
}

.auth-captcha {
    margin-bottom: 16px;
}

.auth-submit {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    margin-top: 0;
    background: linear-gradient(135deg, var(--p-color), #0066cc);
    border: none;
    border-radius: 10px;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.97rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(var(--p-color-rgb), 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-20deg);
    animation: authSweep 3.5s ease-in-out infinite;
}

.auth-submit i {
    margin: 0;
    transition: transform 0.2s ease;
}

.auth-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 12px 38px rgba(var(--p-color-rgb), 0.5);
}

.auth-submit:hover i {
    transform: translateX(3px);
}

.auth-submit:active {
    transform: translateY(0) scale(0.99);
}

.auth-terms {
    margin: 18px 0 14px;
    font-size: 0.76rem;
    line-height: 1.7;
    text-align: center;
    color: rgba(255, 255, 255, 0.38);
}

.auth-terms a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.auth-terms a:hover {
    color: var(--p-color);
}

.auth-alt {
    margin: 0 0 20px;
    font-size: 0.92rem;
    text-align: center;
    color: #9a9a9a;
}

.auth-alt a {
    color: #fff;
    font-weight: 700;
}

.auth-alt a:hover {
    color: var(--p-color);
}

.auth-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.auth-remember input {
    width: 16px;
    height: 16px;
    padding: 0;
    border-radius: 4px;
    accent-color: var(--p-color);
}

.auth-forgot {
    font-size: 0.9rem;
    color: #9a9a9a;
}

.auth-forgot:hover {
    color: var(--p-color);
}

.auth-error {
    margin-bottom: 24px;
}

.auth-divider {
    margin: 8px 0 18px !important;
}

.auth-oauth {
    display: grid;
    gap: 10px;
}

.auth-oauth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e2e2 !important;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.auth-oauth-btn:hover {
    background: rgba(var(--p-color-rgb), 0.1);
    border-color: rgba(var(--p-color-rgb), 0.4);
    transform: translateY(-2px);
}

@keyframes authFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes authGlow {
    0%, 100% {
        opacity: 0.75;
    }
    50% {
        opacity: 1;
    }
}

@keyframes authOverlayBreath {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.88;
    }
}

@keyframes authSweep {
    0% {
        left: -150%;
    }
    60% {
        left: 160%;
    }
    100% {
        left: 160%;
    }
}

@media (max-width: 1023px) {
    .auth-side {
        display: none;
    }

    .auth-panel {
        flex: 1 1 100%;
        height: 100%;
        padding: 40px 24px;
        border-left: none;
    }
}

/* ---------- AUTH: registration guide / announcement ---------- */

.auth-notice {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(0, 153, 255, 0.06);
    border: 1px solid rgba(0, 153, 255, 0.25);
    font-size: 0.87rem;
    line-height: 1.65;
    color: var(--text-main);
}

.auth-notice strong {
    color: #66c4ff;
    font-weight: 600;
}

.auth-steps {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.auth-step {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: authStepIn 0.65s cubic-bezier(0.22, 1.2, 0.36, 1) backwards;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.auth-step:nth-child(1) {
    animation-delay: 0.2s;
}

.auth-step:nth-child(2) {
    animation-delay: 0.5s;
}

.auth-step:nth-child(3) {
    animation-delay: 0.8s;
}

.auth-step::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 55%;
    height: 100%;
    transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
    pointer-events: none;
    transition: left 0.5s ease;
}

.auth-step-num {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    margin-top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--p-color), #0066cc);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 0 12px rgba(var(--p-color-rgb), 0.45);
}

.auth-step-title {
    margin: 0 0 3px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
}

.auth-step-title i {
    color: var(--p-color);
    font-size: 0.85rem;
}

.auth-step-desc {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.auth-step-desc code {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #66c4ff;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.8rem;
}

.auth-step:hover {
    transform: translateY(-3px);
    background: rgba(var(--p-color-rgb), 0.07);
    border-color: rgba(var(--p-color-rgb), 0.5);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 20px rgba(var(--p-color-rgb), 0.18);
}

.auth-step:hover::after {
    left: 140%;
}

.auth-step-num {
    transition: transform 0.25s ease, box-shadow 0.35s ease;
}

.auth-step:hover .auth-step-num {
    transform: scale(1.15);
    box-shadow: 0 0 18px rgba(var(--p-color-rgb), 0.75);
}

.auth-step-title i {
    transition: transform 0.3s ease;
}

.auth-step:hover .auth-step-title i {
    transform: scale(1.2) rotate(-6deg);
}

@keyframes authStepIn {
    0% {
        opacity: 0;
        transform: translateY(18px) scaleY(0.4) scaleX(0.94);
        filter: blur(3px);
    }
    55% {
        opacity: 1;
        transform: translateY(-2px) scaleY(1.05) scaleX(1.02);
        filter: blur(0);
    }
    75% {
        transform: translateY(1px) scaleY(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scaleY(1) scaleX(1);
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-step {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .auth-step::after {
        display: none;
    }

    .auth-panel-inner {
        animation: none;
    }
}

/* ============================================================
   DEBUFT TOAST SYSTEM
   Global bottom-right notifications, shown without page reload.
   Error = red, Success = green, Warning = amber, Info = blue.
   ============================================================ */
#debuftoasts {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    max-width: 380px;
    pointer-events: none;
}

.debuftoast {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px 12px;
    border-radius: 12px;
    background: #16171b;
    color: var(--text-main, #e8eaed);
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    overflow: hidden;
    animation: debuftoastIn 0.35s cubic-bezier(0.21, 1.02, 0.73, 1) both;
    will-change: transform, opacity;
}

.debuftoast[data-type="error"] {
    border: 1px solid rgba(255, 82, 82, 0.55);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 18px rgba(255, 82, 82, 0.22);
}

.debuftoast[data-type="success"] {
    border: 1px solid rgba(46, 204, 113, 0.55);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 18px rgba(46, 204, 113, 0.22);
}

.debuftoast[data-type="warning"] {
    border: 1px solid rgba(245, 166, 35, 0.55);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 18px rgba(245, 166, 35, 0.22);
}

.debuftoast[data-type="info"] {
    border: 1px solid rgba(0, 153, 255, 0.55);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 18px rgba(0, 153, 255, 0.22);
}

.debuftoast-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-top: 1px;
    border-radius: 50%;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main, #e8eaed);
}

.debuftoast[data-type="error"] .debuftoast-icon {
    color: #ff6b6b;
    background: rgba(255, 82, 82, 0.16);
    box-shadow: 0 0 12px rgba(255, 82, 82, 0.35);
}

.debuftoast[data-type="success"] .debuftoast-icon {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.16);
    box-shadow: 0 0 12px rgba(46, 204, 113, 0.35);
}

.debuftoast[data-type="warning"] .debuftoast-icon {
    color: #ffc96b;
    background: rgba(245, 166, 35, 0.16);
    box-shadow: 0 0 12px rgba(245, 166, 35, 0.35);
}

.debuftoast[data-type="info"] .debuftoast-icon {
    color: #66c4ff;
    background: rgba(0, 153, 255, 0.16);
    box-shadow: 0 0 12px rgba(0, 153, 255, 0.35);
}

.debuftoast-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.debuftoast-msg {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    white-space: pre-line;
}

.debuftoast-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.debuftoast-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    font-family: inherit;
    color: var(--text-muted, #a8adb8);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.debuftoast-copy:hover {
    color: #e8eaed;
    background: rgba(255, 255, 255, 0.1);
}

.debuftoast-copy.copied {
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.5);
}

.debuftoast-timer {
    flex: 0 0 auto;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    font-variant-numeric: tabular-nums;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.28);
}

.debuftoast-timer.danger {
    color: #ff8a8a;
}

.debuftoast.leaving {
    pointer-events: none;
    animation: debuftoastOut 0.45s ease forwards;
}

@keyframes debuftoastIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes debuftoastOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        max-height: 200px;
        margin-bottom: 0;
        padding-top: 14px;
        padding-bottom: 12px;
        border-width: 1px;
    }
    30% {
        opacity: 0;
        transform: translateX(24px) scale(0.96);
    }
    60% {
        transform: translateX(36px) scale(0.94);
    }
    100% {
        opacity: 0;
        transform: translateX(48px) scale(0.92);
        max-height: 0;
        margin-bottom: -12px;
        padding-top: 0;
        padding-bottom: 0;
        border-width: 0;
    }
}

@media (max-width: 640px) {
    #debuftoasts {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
}

/* ================= PROFILE REDESIGN (split layout) ================= */

.profile-header {
    height: 120px;
    background-position: center 22%;
}

.profile-header-shade {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(to bottom, rgba(8, 8, 14, 0.18) 0%, rgba(8, 8, 14, 0.5) 100%);
}

.profile-actions {
    z-index: 2;
    top: 14px;
    right: 14px;
}

.profile-action-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(10, 10, 16, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 1rem;
}

.profile-action-btn:hover {
    background: var(--p-color);
    transform: translateY(-2px);
}

.profile-split {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
}

.profile-ident {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 26px 30px;
    border-right: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 55%);
    min-width: 0;
}

.profile-ident-art {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    margin-top: -84px;
}

.profile-skin {
    width: 190px;
    height: auto;
    image-rendering: pixelated;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.55));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.profile-skin:hover {
    transform: translateY(-5px) scale(1.03);
    filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.6));
}

.profile-skin.is-avatar {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 18px;
    border: 4px solid var(--bg-card);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}

.profile-ident-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-header-username {
    display: inline-block;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.profile-rank-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.profile-rank-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(var(--p-color-rgb), 0.2), rgba(var(--p-color-rgb), 0.06));
    border: 1px solid rgba(var(--p-color-rgb), 0.4);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.profile-rank-pill i {
    color: var(--p-color);
}

.profile-rank-pill span {
    white-space: nowrap;
}

.profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.profile-chip i {
    color: var(--p-color);
    font-size: 0.8rem;
}

.profile-ident-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.profile-ident-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-muted);
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    transition: 0.2s ease;
}

.profile-ident-btn i {
    font-size: 0.9rem;
}

.profile-ident-btn.is-primary {
    background: var(--p-color);
    border-color: var(--p-color);
    color: #fff;
    box-shadow: 0 6px 18px rgba(var(--p-color-rgb), 0.35);
}

.profile-ident-btn.is-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.profile-ident-btn.is-ghost:hover {
    color: #fff;
    border-color: rgba(var(--p-color-rgb), 0.5);
    transform: translateY(-2px);
}

.profile-ident-meta {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 4px;
}

.profile-ident-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    min-width: 0;
}

.profile-ident-meta-icon {
    color: var(--p-color);
    font-size: 0.95rem;
}

.profile-ident-meta-num {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.15;
    word-break: break-word;
}

.profile-ident-meta-label {
    color: var(--text-muted);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.profile-content {
    padding: 22px 28px 34px;
    min-width: 0;
}

.profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.profile-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s ease;
}

.profile-tab i {
    font-size: 0.85rem;
}

.profile-tab:hover {
    color: #fff;
    background: var(--bg-card-2);
    border-color: var(--border);
}

.profile-tab.active {
    color: #fff;
    background: rgba(var(--p-color-rgb), 0.14);
    border-color: rgba(var(--p-color-rgb), 0.4);
    box-shadow: 0 4px 14px rgba(var(--p-color-rgb), 0.18);
}

.profile-tab-content.active {
    animation: fadeInUp 0.35s ease both;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 20px;
}

.about-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.about-card-head i {
    color: var(--p-color);
    font-size: 1.05rem;
}

.about-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.about-card-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    min-width: 0;
    transition: 0.2s ease;
}

.about-card-item:hover {
    border-color: rgba(var(--p-color-rgb), 0.4);
    transform: translateY(-2px);
}

.about-card-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(var(--p-color-rgb), 0.12);
    color: var(--p-color);
    font-size: 1rem;
}

.about-card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.about-card-title {
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.about-card-value {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    word-break: break-word;
}

.profile-content .about-integrations-box {
    margin-top: 18px;
    max-width: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.profile-post-form {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 24px;
}

.profile-post-form-box {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    transition: border-color 0.2s ease;
}

.profile-post-form-box:focus-within {
    border-color: rgba(var(--p-color-rgb), 0.5);
}

.profile-post-form-box textarea {
    flex: 1;
    min-height: 84px;
    resize: vertical;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: #fff;
    padding: 12px 14px;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

.profile-post-form-box textarea::placeholder {
    color: var(--text-muted);
}

.profile-post-form-box textarea:focus {
    border-color: rgba(var(--p-color-rgb), 0.5);
}

.profile-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    background: var(--p-color);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    position: absolute;
    right: 16px;
    bottom: 0;
    box-shadow: 0 6px 18px rgba(var(--p-color-rgb), 0.35);
    transition: 0.2s ease;
}

.profile-submit-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.profile-post {
    transition: border-color 0.2s ease;
}

.profile-post:hover {
    border-color: rgba(var(--p-color-rgb), 0.3);
}

.profile-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 44px 20px;
    text-align: center;
}

.profile-empty i {
    font-size: 1.5rem;
    color: rgba(var(--p-color-rgb), 0.5);
}

.forum-profile-posts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.forum-profile-posts-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.forum-profile-posts-head i {
    color: var(--p-color);
}

.forum-post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    transition: 0.2s ease;
}

.forum-post-card:hover {
    border-color: rgba(var(--p-color-rgb), 0.4);
    transform: translateY(-2px);
}

.forum-post-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.forum-post-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 0;
}

.forum-post-card-title a {
    color: #fff;
    transition: color 0.2s ease;
}

.forum-post-card-title a:hover {
    color: var(--p-color);
}

.forum-post-card-date {
    color: var(--text-muted);
    font-size: 0.78rem;
    flex-shrink: 0;
}

.forum-post-card-content {
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.6;
    word-wrap: break-word;
}

@media (max-width: 1200px) {
    .profile-split {
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 992px) {
    .profile-split {
        grid-template-columns: 1fr;
    }

    .profile-ident {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 640px) {
    .profile-content {
        padding: 18px 16px 26px;
    }

    .profile-ident {
        padding: 0 18px 24px;
    }

    .profile-ident-meta {
        grid-template-columns: repeat(3, 1fr);
    }

    .profile-post-form-box {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-submit-btn {
        position: static;
        width: 100%;
        justify-content: center;
    }

    .profile-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .profile-tab {
        white-space: nowrap;
    }

    .forum-post-card-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-skin,
    .profile-ident-btn,
    .profile-action-btn,
    .forum-post-card,
    .about-card-item,
    .profile-post {
        transition: none;
        transform: none;
    }
}

/* ================= PROFILE MAST (turkishpvp-style vertical) ================= */

.profile-mast {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 24px 26px;
}

.profile-mast-render {
    position: relative;
    z-index: 3;
    margin-top: -90px;
}

.profile-mast-skin {
    width: 200px;
    height: auto;
    image-rendering: pixelated;
    filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.55));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.profile-mast-skin:hover {
    transform: translateY(-5px) scale(1.03);
    filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.6));
}

.profile-mast-skin.is-avatar {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid var(--bg-card);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}

.profile-mast-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 12px;
}

.profile-mast-name {
    display: inline-block;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    margin: 0;
}

.profile-mast-usertitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 2px;
}

.profile-mast-groups {
    margin-top: 8px;
}

.profile-mast-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.profile-mast-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.profile-mast-btns .profile-ident-btn {
    padding: 10px 22px;
    font-size: 0.9rem;
}

.profile-mast-mini {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.profile-mast-mini i {
    color: var(--p-color);
    margin-right: 5px;
}

.profile-content {
    padding: 6px 34px 40px;
}

@media (max-width: 640px) {
    .profile-mast-render {
        margin-top: -64px;
    }

    .profile-mast-skin {
        width: 165px;
    }

    .profile-mast-skin.is-avatar {
        width: 130px;
        height: 130px;
    }

    .profile-mast-name {
        font-size: 1.7rem;
    }

    .profile-content {
        padding: 6px 16px 30px;
    }
}

/* ================= PROFILE HERO (turkishpvp-style, home page look) ================= */

.mc-font {
    font-family: 'Minecraft', 'Montserrat', sans-serif;
}

.hero-header.hero-home.profile-hero {
    height: auto;
    min-height: 620px;
    padding: 70px 0 50px;
    align-items: center;
}

.profile-hero-inner {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 56px;
    text-align: left;
}

.profile-skin-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.7s ease both;
}

.profile-skin-canvas {
    width: clamp(220px, 26vw, 320px);
    height: auto;
    background: radial-gradient(ellipse at 50% 30%, rgba(var(--p-color-rgb), 0.08), transparent 70%);
    cursor: grab;
    touch-action: none;
}

.profile-skin-canvas:active {
    cursor: grabbing;
}

.profile-skin-fallback {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 18px;
    border: 4px solid var(--bg-card);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}

.profile-skin-hint {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.profile-skin-hint i {
    color: var(--p-color);
    margin-right: 5px;
}

.profile-skin-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.profile-skin-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-card-2);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.profile-skin-btn:hover {
    color: #fff;
    border-color: rgba(var(--p-color-rgb), 0.5);
}

.profile-skin-btn.active {
    background: rgba(var(--p-color-rgb), 0.16);
    border-color: rgba(var(--p-color-rgb), 0.5);
    color: var(--p-color);
}

.profile-hero-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: 560px;
    animation: fadeInUp 0.7s ease 0.1s both;
}

.profile-hero-name {
    display: inline-block;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.05;
    margin: 0;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
    word-break: break-word;
}

.profile-hero-usertitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.profile-hero-groups {
    margin-top: 2px;
}

.profile-hero-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.profile-hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.profile-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(16, 16, 22, 0.6);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.profile-hero-btn i {
    font-size: 0.9rem;
}

.profile-hero-btn.is-primary {
    background: linear-gradient(135deg, var(--p-color), #0066cc);
    border: none;
    color: #fff !important;
    box-shadow: 0 8px 30px rgba(var(--p-color-rgb), 0.5);
}

.profile-hero-btn.is-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.profile-hero-btn.is-ghost:hover {
    color: #fff;
    border-color: rgba(var(--p-color-rgb), 0.5);
    transform: translateY(-2px);
}

.profile-hero-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.profile-hero-mini i {
    color: var(--p-color);
    margin-right: 5px;
}

.profile-area {
    padding: 48px 0 70px;
    animation: fadeInUp 0.6s ease 0.15s both;
}

.profile-tabs {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 26px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.profile-message {
    margin-bottom: 20px;
}

.profile-private {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text-muted);
    text-align: center;
}

.profile-private i {
    font-size: 2rem;
    color: var(--p-color);
}

@media (max-width: 900px) {
    .hero-header.hero-home.profile-hero {
        min-height: auto;
        padding: 48px 0 30px;
    }

    .profile-hero-inner {
        flex-direction: column;
        gap: 26px;
        text-align: center;
    }

    .profile-hero-info {
        align-items: center;
    }

    .profile-hero-stats,
    .profile-hero-btns,
    .profile-hero-mini {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .profile-skin-canvas {
        width: 200px;
    }

    .profile-skin-fallback {
        width: 190px;
        height: 190px;
    }

    .profile-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 12px;
    }

    .profile-tab {
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-skin-canvas,
    .profile-hero-btn,
    .profile-skin-btn,
    .about-card-item,
    .forum-post-card,
    .profile-post {
        transition: none;
        transform: none;
    }
}

/* ==================================================================================
    PROFILE v4.1 - turkishpvp-aligned fixes (self-hosted Minecraft font, single hero
    backdrop, gray/normal-case name, segmented tabs, flat tinted content cards)
    ================================================================================== */

@font-face {
    font-family: 'Minecraft';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/minecraft/minecraft-regular.woff') format('woff');
}

@font-face {
    font-family: 'Minecraft';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/minecraft/minecraft-italic.woff') format('woff');
}

@font-face {
    font-family: 'Minecraft';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/minecraft/minecraft-bold.woff') format('woff');
}

/* drop the generic page-band so the profile hero is the only backdrop */
#page-profile .page-color-overlay {
    display: none;
}

/* name: gray, normal case with real lowercase glyphs */
.profile-hero-name {
    color: #aaaaaa;
    font-weight: 400;
    text-transform: none !important;
    letter-spacing: 0;
}

.profile-hero-usertitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 400;
}

/* hero meta line */
.profile-hero-mini {
    font-size: 0.86rem;
    gap: 16px;
}

.profile-hero-mini i {
    color: var(--p-color);
}

/* segmented tab bar (turkishpvp-style) */
#page-profile .profile-tabs {
    justify-content: flex-start;
    gap: 5px;
    padding: 6px;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

#page-profile .profile-tab {
    border-radius: 9px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    gap: 7px;
    color: rgba(255, 255, 255, 0.55);
    border-color: transparent;
}

#page-profile .profile-tab i {
    font-size: 0.72rem;
}

#page-profile .profile-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

#page-profile .profile-tab.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: none;
}

/* flat, tinted cards (turkishpvp surface tokens) */
#page-profile .about-card,
#page-profile .profile-post-form-box,
#page-profile .forum-post-card {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
}

#page-profile .about-card-head,
#page-profile .forum-profile-posts-head,
#page-profile .bolt-kits-title,
#page-profile .bolt-elo-chart-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

#page-profile .about-card-head {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 12px;
    border-bottom-color: rgba(255, 255, 255, 0.07);
}

#page-profile .about-card-head i {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* wall posts: one flat card around the list, rows separated by hairline */
#page-profile .profile-posts {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 4px 22px;
}

#page-profile .profile-post {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 16px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

#page-profile .profile-post:last-child {
    border-bottom: none;
}

#page-profile .profile-post:hover {
    border-bottom-color: rgba(255, 255, 255, 0.07);
}

#page-profile .profile-pagination {
    margin-top: 18px;
}

/* ==================================================================================
    PROFILE v4.2 - wall-only General tab, staff tab restyled to theme, forum "view" CTA
    ================================================================================== */

/* section header (Wall) */
.profile-section-head {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

/* full-body fallback render instead of a head avatar */
.profile-skin-fallback {
    width: 250px;
    height: 340px;
    object-fit: contain;
    border-radius: 16px;
}

/* staff tab: flat cards, muted headers */
#page-profile .staff-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
}

#page-profile .staff-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 16px;
}

#page-profile .staff-header i {
    color: var(--text-muted);
}

#page-profile .staff-info-item {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 18px;
}

#page-profile .staff-info-label {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#page-profile .punishment-column {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
}

#page-profile .punishment-column-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 16px;
}

#page-profile .punishment-column-header i {
    color: var(--text-muted);
}

#page-profile .punishment-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* forum tab: "Click to view" CTA per post */
#page-profile .forum-post-card-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    text-align: right;
}

#page-profile .forum-post-card-view {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    transition: 0.2s ease;
}

#page-profile .forum-post-card-view:hover {
    background: rgba(var(--p-color-rgb), 0.16);
    border-color: rgba(var(--p-color-rgb), 0.5);
    color: var(--p-color);
}
