/* Custom styles for Minecraft Server Website */

html, body {
    height: 100%;
    margin: 0;
}

body {
    background: linear-gradient(180deg, #0e1018 0%, #181d2c 100%);
    background-attachment: fixed;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/bg.jpg') center/cover no-repeat;
    filter: blur(14px) brightness(0.3) saturate(1.1);
    z-index: -1;
    pointer-events: none;
}

main {
    flex: 1;
}

/* primary color variable */
:root {
    --primary-color: #FF5722;
    --primary-color-dark: #e64a19;
}

.navbar {
    background: rgba(8, 8, 14, 0.82) !important;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1030;
}

.navbar .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    display: flex;
    align-items: center;
}

.server-ip-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 20px;
    background-color: rgba(255, 87, 34, 0.08);
    border: 1px solid rgba(255, 87, 34, 0.3);
    transition: all 0.3s ease;
    font-size: 14px;
    user-select: none;
    margin-left: 5.35rem;
}

.server-ip-wrapper:hover {
    background-color: rgba(255, 87, 34, 0.15);
    border-color: rgba(255, 87, 34, 0.6);
    box-shadow: 0 0 12px rgba(255, 87, 34, 0.2);
    transform: translateY(-2px);
}

.server-ip-wrapper:active {
    transform: translateY(0);
}

.server-ip-text {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.server-ip-icon {
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.server-ip-wrapper:hover .server-ip-icon {
    opacity: 1;
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.login-form {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 0.5rem;
}

.btn-discord {
    margin-left: 0.5rem;
}

@media (min-width: 992px) {
    .navbar .container-fluid {
        max-width: 1360px;
        margin: 0 auto;
    }

    .server-ip-wrapper {
        margin-right: 0 !important;
    }

    .navbar .collapse.navbar-collapse {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        flex-grow: 1;
        position: relative;
    }

    .navbar .navbar-nav.mx-auto {
        position: absolute;
        left: 34%;
        transform: translateX(-50%);
        margin-left: 0 !important;
        margin-right: 0 !important;
        white-space: nowrap;
    }

    .navbar .d-flex.align-items-center {
        margin-left: auto;
    }

    .login-form .form-control {
        width: 98px;
    }

    .navbar-nav .nav-link {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }
}

@media (min-width: 992px) and (max-width: 1280px) {
    .navbar .collapse.navbar-collapse {
        justify-content: space-between;
        position: static;
    }

    .navbar .navbar-nav.mx-auto {
        position: static;
        left: auto;
        transform: none;
        white-space: normal;
        margin-left: 1rem !important;
        margin-right: 1rem !important;
    }
}

/* Navbar dropdown glass effect */
.navbar-nav .dropdown-menu,
.navbar-nav .dropdown-menu-end,
.dropdown-menu-end,
ul.dropdown-menu,
ul.dropdown-menu-end {
    background: rgba(14, 18, 30, 0.76) !important;
    background-color: rgba(14, 18, 30, 0.76) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    margin-top: 8px;
    padding: 0;
    overflow: hidden;
}

.navbar-nav .dropdown-menu .dropdown-item,
.dropdown-menu-end .dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 10px 16px;
    transition: background 0.2s ease;
    background: transparent;
}

.navbar-nav .dropdown-menu .dropdown-item:hover,
.dropdown-menu-end .dropdown-item:hover {
    background: rgba(255, 87, 34, 0.15) !important;
    color: #ffffff !important;
}

.navbar-nav .dropdown-menu .dropdown-divider,
.dropdown-menu-end .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1) !important;
    margin: 0;
}

/* Player card in navbar */
.player-card-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.player-card-btn:hover {
    opacity: 0.8;
}

.player-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 2px solid var(--primary-color);
}

.dropdown-menu .player-card-body,
.dropdown-menu-end .player-card-body {
    padding: 15px !important;
    text-align: center;
    background: rgba(14, 18, 30, 0.76) !important;
    background-color: rgba(14, 18, 30, 0.76) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.player-card-body img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 2px solid rgba(255, 87, 34, 0.5);
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.2);
}

.player-card-body .username {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.player-card-body .realname {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 3px;
}

.player-card-body .rank {
    font-size: 0.85rem;
    color: #ff9800;
    margin-top: 5px;
    padding: 4px 8px;
    background: rgba(255, 152, 0, 0.15);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 6px;
    display: inline-block;
}

.login-form .form-control {
    width: 120px;
    background: rgba(35, 41, 58, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.login-form .form-control:focus {
    background: rgba(35, 41, 58, 0.7);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(255, 87, 34, 0.25);
}

.btn-login {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    border-radius: 20px;
    padding: 6px 16px;
    font-weight: bold;
}

.btn-login:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    color: #ffffff;
}

.btn-discord {
    background-color: #5865F2;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-discord:hover {
    background-color: #4752c4;
    color: white;
    text-decoration: none;
}

/* Player Profile Button */
.player-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 1rem;
    position: relative;
}

.player-btn:hover {
    opacity: 0.8;
}

.player-btn img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.player-btn-name {
    font-weight: bold;
    font-size: 0.9rem;
}

/* Player Card Dropdown */
.player-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(14, 18, 30, 0.85);
    backdrop-filter: blur(12px);
    border: none;
    border-radius: 12px;
    padding: 15px;
    min-width: 340px;
    z-index: 5000;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    margin-top: 8px;
    backdrop-filter: blur(10px);
}

.player-dropdown.show {
    display: block !important;
}

/* Horizontal Player Card in Dropdown */
.player-card {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    gap: 15px;
    width: 100%;
}

.player-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100px;
}

.player-avatar img {
    width: 100px;
    height: auto;
    border-radius: 0;
    border: none !important;
    box-shadow: none;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.player-info {
    flex: 1;
    color: #ffffff;
    padding: 5px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.player-name {
    font-weight: bold;
    font-size: 1rem;
    margin: 0;
    line-height: 1.2;
}

.player-rank {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 3px;
    width: fit-content;
}

.player-rank.staff {
    background-color: #2196F3;
    color: white;
}

.player-rank.moderator {
    background-color: #F44336;
    color: white;
}

.player-rank.builder {
    background-color: var(--primary-color);
    color: white;
}

.player-rank.vip {
    background-color: #FFD700;
    color: #1a1a1a;
}

.player-rank.visitor {
    background-color: #cccccc;
    color: #1a1a1a;
}

.player-rank.default {
    background-color: #cccccc;
    color: #1a1a1a;
}

.player-wallet {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 4px;
}

.player-wallet-label {
    color: #ffffff;
    font-weight: 600;
}

.player-wallet-amount {
    color: var(--primary-color);
    font-weight: bold;
}

.player-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 10px;
    flex-shrink: 0;
}

.player-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    flex-shrink: 0;
}

.btn-profile, .btn-logout {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

.btn-profile {
    background: rgba(255, 87, 34, 0.25);
    color: white;
    border-color: rgba(255, 87, 34, 0.4);
}

.btn-profile:hover {
    background: rgba(255, 87, 34, 0.4);
    border-color: rgba(255, 87, 34, 0.6);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.btn-logout {
    background: rgba(244, 67, 54, 0.25);
    color: white;
    border-color: rgba(244, 67, 54, 0.4);
}

.btn-logout:hover {
    background: rgba(244, 67, 54, 0.4);
    border-color: rgba(244, 67, 54, 0.6);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.card {
    background: rgba(14, 18, 30, 0.76);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.card-header {
    background: rgba(35, 41, 58, 0.5);
    border-bottom: 1px  solid rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    font-weight: bold;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}

.alert {
    background: rgba(35, 41, 58, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.player-avatar img {
    border: 3px solid var(--primary-color);
}

.player-skin img {
    max-width: 100%;
    height: auto;
}

.map-container iframe {
    border: 1px solid #444;
    border-radius: 0.375rem;
}

.map-view {
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(180deg, #0e1018 0%, #181d2c 100%);
    position: relative;
}

.map-view::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url('/images/bg.png');
    background-size: cover;
    background-position: center;
    filter: blur(14px) brightness(0.3) saturate(1.1);
    transform: scale(1.05);
    z-index: -2;
}

.map-view::after {
    content: "";
    position: fixed;
    inset: 0;
    background-color: rgba(14, 16, 24, 0.15);
    z-index: -1;
}

.map-view .navbar {
    background: rgba(8, 8, 14, 0.82) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    backdrop-filter: blur(14px);
}

.map-view footer {
    background: rgba(14, 18, 30, 0.8) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.map-page {
    flex: 1;
    padding: 10px 1.2vw 12px;
    margin-top: -4px;
}

.map-layout {
    width: min(1720px, 96vw);
    margin: 0 auto;
    position: relative;
    background: rgba(14, 18, 30, 0.76);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    max-height: calc(100vh - 76px);
}

.map-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.map-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.map-eyebrow {
    margin: 0;
    color: #ffc4ae;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.13rem;
    font-weight: 700;
}

.map-topbar h1 {
    margin: 0;
    font-size: clamp(1.4rem, 2vw, 1.95rem);
    line-height: 1.1;
    font-weight: 800;
    color: #ffffff;
}

.map-topbar h1 i {
    color: var(--primary-color);
}

.map-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.07rem;
    text-transform: uppercase;
    color: #ffd5c6;
    border: 1px solid rgba(255, 87, 34, 0.42);
    background: rgba(255, 87, 34, 0.12);
}

.map-open-btn {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
}

.map-open-btn:hover {
    background: rgba(255, 87, 34, 0.14);
    border-color: rgba(255, 87, 34, 0.58);
}

.map-stage {
    position: relative;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(145deg, rgba(255, 150, 112, 0.2), rgba(255, 87, 34, 0.06));
}

.map-stage-glow {
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(120deg, rgba(255, 87, 34, 0.26), transparent 40%, rgba(255, 255, 255, 0.08));
    filter: blur(20px);
    opacity: 0.38;
    pointer-events: none;
}

.map-container {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    overflow: hidden;
    background: #0e0e0e;
    height: calc(100vh - 190px);
}

.map-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media (max-width: 991px) {
    .map-page {
        padding: 6px 8px 10px;
        margin-top: 0;
    }

    .map-layout {
        width: 100%;
        padding: 12px;
    }

    .map-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .map-top-actions {
        width: 100%;
        justify-content: space-between;
    }

    .map-container {
        height: calc(100vh - 214px);
    }
}

/* Shop Page Styles */
.shop-view {
    min-height: 100vh;
    background: linear-gradient(180deg, #0e1018 0%, #181d2c 100%);
    position: relative;
}

.shop-view::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url('/images/bg.png');
    background-size: cover;
    background-position: center;
    filter: blur(14px) brightness(0.3) saturate(1.1);
    transform: scale(1.05);
    z-index: -1;
}

.shop-view::after {
    content: "";
    position: fixed;
    inset: 0;
    background-color: rgba(14, 16, 24, 0.2);
    z-index: -1;
}

.shop-view .navbar {
    background: rgba(8, 8, 14, 0.82) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    backdrop-filter: blur(14px);
}

.shop-page {
    padding: 28px 2vw 40px;
}

.shop-hero {
    text-align: center;
    margin-bottom: 36px;
}

.shop-hero-content {
    max-width: 680px;
    margin: 0 auto;
}

.shop-eyebrow {
    margin: 0 0 8px;
    color: #ffc4ae;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14rem;
    font-weight: 700;
}

.shop-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    line-height: 1.1;
    font-weight: 800;
    color: #ffffff;
}

.shop-hero h1 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.shop-tagline {
    margin: 0;
    color: #d8d8d8;
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
}

.shop-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto 36px;
}

.shop-package-card {
    position: relative;
    background: rgba(14, 18, 30, 0.76);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.shop-package-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 87, 34, 0.5);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 87, 34, 0.2);
}

.shop-package-vip {
    border-color: rgba(255, 152, 0, 0.4);
    background: rgba(28, 22, 18, 0.82);
}

.shop-package-vip:hover {
    border-color: rgba(255, 152, 0, 0.6);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 28px rgba(255, 152, 0, 0.3);
}

.shop-package-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    background: rgba(255, 87, 34, 0.18);
    border: 1px solid rgba(255, 87, 34, 0.4);
    color: #ffc4ae;
}

.shop-badge-popular {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.25), rgba(255, 87, 34, 0.22));
    border-color: rgba(255, 152, 0, 0.5);
    color: #ffd89f;
}

.shop-package-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 87, 34, 0.12);
    border: 1px solid rgba(255, 87, 34, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.shop-package-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.shop-package-card h3 {
    margin: 0 0 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
}

.shop-package-price {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-price-amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.shop-price-period {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.shop-package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.shop-package-features li {
    padding: 10px 0;
    color: #e0e0e0;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-package-features li i {
    color: #4caf50;
    font-size: 0.85rem;
}

.shop-package-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-package-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 87, 34, 0.4);
}

.shop-package-btn:active {
    transform: scale(0.98);
}

.shop-info-bar {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.shop-info-item {
    background: rgba(14, 18, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(14px);
}

.shop-info-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.shop-info-item strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.shop-info-item p {
    margin: 0;
    font-size: 0.85rem;
    color: #b8b8b8;
}

@media (max-width: 991px) {
    .shop-page {
        padding: 20px 12px 32px;
    }

    .shop-packages {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .shop-info-bar {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.post-content {
    line-height: 1.6;
}

footer {
    background: rgba(14, 18, 30, 0.8) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #cccccc;
    backdrop-filter: blur(10px);
}

/* Toast notification for IP copy */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Hero section for homepage */
.hero {
    background: rgba(14, 18, 30, 0.76);
    backdrop-filter: blur(14px);
    text-align: center;
    color: #ffffff;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero .container {
    max-width: 800px;
    margin: auto;
}

.hero {
    background-size: cover;
    background-position: center;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

/* Feature cards below hero */
.feature-card {
    background: rgba(14, 18, 30, 0.76);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 14px;
    transition: transform 0.3s ease;
}

.features .container, .container {
    max-width: 960px;
    margin: auto;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card .card-body {
    text-align: center;
}

/* Homepage refresh */
.home-view {
    background: transparent;
    position: relative;
    min-height: 100vh;
    overflow-y: auto;
}

.home-view::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/bg.png') center/cover no-repeat;
    filter: brightness(0.85) saturate(1.2);
    z-index: -1;
}

.home-view::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
    pointer-events: none;
}

.home-page {
    padding: 0;
}

.home-view .navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: rgba(8, 8, 14, 0.82) !important;
    backdrop-filter: blur(14px);
}

.home-hero {
    position: relative;
    min-height: calc(100vh - 180px);
    padding: 132px 16px 56px;
    overflow: hidden;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.home-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto 36px;
}

.home-kicker {
    color: #ffb79f;
    font-size: 0.8rem;
    letter-spacing: 0.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.home-hero-content h1 {
    font-size: clamp(2rem, 4.8vw, 3.6rem);
    line-height: 1.1;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.home-subtitle {
    color: #ececec;
    margin-top: 14px;
    margin-bottom: 0;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.home-hero-actions {
    margin-top: 24px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-player-gallery {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.9), rgba(255, 152, 0, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 87, 34, 0.4);
}

.btn-player-gallery:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(255, 87, 34, 0.6);
    color: #ffffff;
}

.btn-player-gallery i {
    font-size: 1.2rem;
}

.btn-player-gallery .btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: btnGlow 3s linear infinite;
}

@keyframes btnGlow {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.home-center-panel {
    position: relative;
    z-index: 1;
    width: min(1000px, 76vw);
    margin: 0 auto;
    background: rgba(14, 18, 30, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 24px;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.home-top-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 14px;
    align-items: start;
}

.home-leaderboard-card,
.home-server-stats-card {
    background: rgba(14, 18, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 16px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.home-leaderboard-card:hover,
.home-server-stats-card:hover {
    border-color: rgba(255, 87, 34, 0.3);
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.15);
}

.home-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.home-card-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.home-card-header h4 i {
    color: var(--primary-color);
    margin-right: 8px;
}

.home-leaderboard-table-wrap {
    overflow-x: auto;
}

.home-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.home-leaderboard-table th,
.home-leaderboard-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.home-leaderboard-table th {
    color: #b9b9b9;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    font-weight: 700;
    text-align: left;
}

.home-leaderboard-table tbody tr:last-child td {
    border-bottom: none;
}

.home-leaderboard-table td:first-child {
    width: 44px;
    color: var(--primary-color);
    font-weight: 700;
}

.home-stats-list {
    display: grid;
    gap: 10px;
}

.home-stat-item {
    background: rgba(35, 41, 58, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #f4f4f4;
    transition: all 0.3s ease;
}

.home-stat-item:hover {
    background: rgba(35, 41, 58, 0.6);
    border-color: rgba(255, 87, 34, 0.4);
    transform: translateX(3px);
}

.home-devlog-section {
    margin-top: 16px;
    background: rgba(14, 18, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 16px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.home-devlog-section:hover {
    border-color: rgba(255, 87, 34, 0.3);
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.15);
}

.home-devlog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.home-devlog-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.home-devlog-header h4 i {
    color: var(--primary-color);
    margin-right: 8px;
}

.home-devlog-list {
    display: grid;
    gap: 10px;
}

.home-devlog-item {
    background: rgba(35, 41, 58, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    padding: 12px 14px;
    transition: all 0.3s ease;
}

.home-devlog-item:hover {
    background: rgba(35, 41, 58, 0.6);
    border-color: rgba(255, 87, 34, 0.4);
    transform: translateY(-2px);
}

.home-devlog-item h5 {
    margin: 0 0 2px;
    font-size: 0.98rem;
}

.home-devlog-item small {
    color: #b9b9b9;
    font-size: 0.78rem;
}

.home-devlog-item p {
    margin: 8px 0 0;
    color: #ececec;
    font-size: 0.9rem;
    white-space: pre-wrap;
    max-height: 120px;
    overflow: auto;
}

.home-devlog-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.home-devlog-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.home-devlog-actions .btn {
    padding: 4px 10px;
    font-size: 0.8rem;
}

.home-stat-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 12px #4caf50;
}

.status-label {
    margin: 0;
    color: #b9b9b9;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
}

.status-value {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.home-view footer {
    background: rgba(14, 18, 30, 0.8) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.team-view footer {
    background: rgba(14, 18, 30, 0.8) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.shop-view footer {
    background: rgba(14, 18, 30, 0.8) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.players-view footer {
    background: rgba(14, 18, 30, 0.8) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.wiki-view {
    background: transparent;
    position: relative;
    min-height: 100vh;
    overflow-y: auto;
}

.wiki-view::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url('/images/bg.png');
    background-size: cover;
    background-position: center;
    filter: blur(14px) brightness(0.3) saturate(1.1);
    transform: scale(1.05);
    z-index: -1;
}

.wiki-view::after {
    content: "";
    position: fixed;
    inset: 0;
    background-color: rgba(14, 16, 24, 0.2);
    z-index: -1;
}

.wiki-view footer {
    background: rgba(14, 18, 30, 0.8) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.wiki-view .navbar {
    position: relative;
    background: rgba(8, 8, 14, 0.82) !important;
    backdrop-filter: blur(14px);
}

.wiki-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 40px;
}

.wiki-hero {
    text-align: center;
    margin-bottom: 40px;
}

.wiki-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.wiki-hero-subtitle {
    font-size: 1.1rem;
    color: #b8b8b8;
}

.wiki-bookmarks {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.wiki-bookmark {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: rgba(14, 18, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #b8b8b8;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 120px;
}

.wiki-bookmark:hover {
    background: rgba(255, 87, 34, 0.15);
    border-color: rgba(255, 87, 34, 0.4);
    color: #FF5722;
    transform: translateY(-2px);
}

.wiki-bookmark i {
    font-size: 1.5rem;
}

.wiki-bookmark span {
    font-size: 0.9rem;
    font-weight: 500;
}

.wiki-content {
    background: rgba(14, 18, 30, 0.76);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    color: #e0e0e0;
}

.wiki-section {
    margin-bottom: 32px;
}

.wiki-section:last-child {
    margin-bottom: 0;
}

.wiki-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #FF5722;
    margin-bottom: 16px;
    border-bottom: 2px solid rgba(255, 87, 34, 0.3);
    padding-bottom: 8px;
}

.wiki-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 20px;
    margin-bottom: 12px;
}

.wiki-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: #d0d0d0;
    margin-bottom: 12px;
}

.wiki-section ul,
.wiki-section ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

.wiki-section li {
    margin-bottom: 8px;
    color: #d0d0d0;
}

.wiki-code {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 12px;
    font-family: 'Courier New', monospace;
    color: #4CAF50;
    margin: 12px 0;
    overflow-x: auto;
}

.wiki-note {
    background: rgba(33, 150, 243, 0.15);
    border-left: 4px solid #2196F3;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 6px;
}

.wiki-warning {
    background: rgba(255, 152, 0, 0.15);
    border-left: 4px solid #FF9800;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .wiki-page {
        padding: 80px 16px 32px;
    }

    .wiki-hero h1 {
        font-size: 2rem;
    }

    .wiki-content {
        padding: 20px;
    }
}

@media (max-width: 991px) {
    .home-center-panel {
        width: min(960px, 90vw);
    }

    .home-top-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .home-hero {
        padding-top: 110px;
        padding-bottom: 38px;
    }

    .home-center-panel {
        width: 100%;
        padding: 18px;
        border-radius: 14px;
    }

    .home-stat-item {
        padding: 10px 11px;
    }
    
    .home-leaderboard-card,
    .home-server-stats-card,
    .home-devlog-section {
        padding: 14px;
    }
}

/* Player Profile Page Styles */
.player-profile-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.2fr;
    gap: 25px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.profile-column {
    display: flex;
    flex-direction: column;
}

.profile-skin {
    align-items: center;
    background: rgba(200, 200, 200, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.skin-card {
    background: rgba(150, 150, 150, 0.15);
    border: none;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    width: fit-content;
    box-shadow: none;
}

.player-skin-image {
    width: 200px;
    height: auto;
    border-radius: 0;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    box-shadow: none;
}

.skin-info .player-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    margin: 15px 0 5px;
}

.skin-info .username-text {
    font-size: 0.9rem;
    color: #aaa;
    margin: 0;
}

.info-card {
    background: rgba(14, 18, 30, 0.76);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.info-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid rgba(255, 87, 34, 0.3);
    padding-bottom: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #aaa;
    font-weight: 600;
    font-size: 0.9rem;
}

.info-value {
    color: #ffffff;
    font-weight: bold;
    font-size: 1rem;
}

.wallet-amount {
    color: #4CAF50;
}

.rank-badge {
    background-color: rgba(255, 152, 0, 0.2);
    color: #FFB74D;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.rating-value {
    color: #FFB74D;
}

.action-card {
    background: rgba(14, 18, 30, 0.76);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.action-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1rem;
    border-bottom: 2px solid rgba(255, 87, 34, 0.3);
    padding-bottom: 8px;
}

.support-text {
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.btn-action {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-report {
    background-color: #F44336;
    color: white;
}

.btn-report:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.btn-unban, .btn-unmute {
    background-color: #4CAF50;
    color: white;
}

.btn-unban:hover, .btn-unmute:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-apply {
    background-color: #FFA726;
    color: white;
}

.btn-apply:hover {
    background-color: #FB8C00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 167, 38, 0.4);
}

.btn-action:focus {
    outline: none;
}

/* Admin Panel Styles */
.admin-section {
    margin-bottom: 20px;
}

.admin-subtitle {
    color: #FFB74D;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 183, 77, 0.3);
}

.admin-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 87, 34, 0.7) rgba(255, 255, 255, 0.08);
}

.admin-list::-webkit-scrollbar {
    width: 10px;
}

.admin-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.admin-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 152, 0, 0.8), rgba(255, 87, 34, 0.8));
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.admin-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 152, 0, 1), rgba(255, 87, 34, 1));
}

.admin-item {
    background: rgba(35, 41, 58, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.admin-item:hover {
    background: rgba(35, 41, 58, 0.7);
    border-color: rgba(255, 87, 34, 0.5);
}

.report-item {
    cursor: pointer;
}

.admin-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.report-type-badge {
    background-color: #2196F3;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.report-type-badge.player {
    background-color: #F44336;
}

.report-type-badge.bug {
    background-color: #FF9800;
}

.report-type-badge.admin {
    background-color: #9C27B0;
}

.report-status, .app-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.report-status.pending, .app-status.pending {
    background-color: rgba(255, 152, 0, 0.3);
    color: #FFB74D;
}

.report-status.resolved, .app-status.approved {
    background-color: rgba(76, 175, 80, 0.3);
    color: #81C784;
}

.report-status.dismissed, .app-status.rejected {
    background-color: rgba(244, 67, 54, 0.3);
    color: #E57373;
}

.new-pill {
    background: #FF9800;
    color: #111;
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.position-badge {
    background-color: #FFA726;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.admin-item-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.admin-item-text {
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.admin-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.admin-item-footer small {
    color: #888;
    font-size: 0.75rem;
}

.admin-actions {
    display: flex;
    gap: 6px;
}

.btn-admin-action {
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.btn-resolve, .btn-approve {
    background-color: #4CAF50;
}

.btn-resolve:hover, .btn-approve:hover {
    background-color: #45a049;
}

.btn-dismiss, .btn-reject {
    background-color: #F44336;
}

.btn-dismiss:hover, .btn-reject:hover {
    background-color: #d32f2f;
}

.btn-gallery {
    background-color: #9C27B0;
    color: white;
}

.btn-gallery:hover {
    background-color: #7B1FA2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.4);
}

.photo-count {
    text-align: center;
    color: #aaa;
}

.report-detail-text {
    white-space: pre-wrap;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 12px;
    color: #ddd;
    max-height: 300px;
    overflow-y: auto;
}

.info-card .player-rank {
    font-size: 0.8rem;
}

/* Modal Styles */
.modal-content {
    background: rgba(14, 18, 30, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(35, 41, 58, 0.4);
}

.modal-title {
    color: var(--primary-color);
    font-weight: bold;
}

.modal-body {
    color: #ffffff;
}

.form-label {
    color: #aaa;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control, .form-select {
    background: rgba(35, 41, 58, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 8px;
}

.form-control:focus, .form-select:focus {
    background: rgba(35, 41, 58, 0.7);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(255, 87, 34, 0.25);
}

.form-select option {
    background: rgba(14, 18, 30, 0.95);
    color: #ffffff;
}

.btn-danger {
    background-color: #F44336;
    border-color: #F44336;
}

.btn-danger:hover {
    background-color: #d32f2f;
    border-color: #d32f2f;
}

.btn-success {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.btn-success:hover {
    background-color: #45a049;
    border-color: #45a049;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .player-profile-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .profile-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
    }

    .login-form {
        flex-direction: column;
        gap: 5px;
        margin-top: 10px;
    }

    .login-form .form-control {
        width: 100%;
    }

    .server-ip {
        font-size: 14px;
        padding: 6px 8px;
    }

    .player-profile-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }

    .player-skin-image {
        width: 150px;
    }

    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
}
/* ========================================
   Modern Profile Page Styles
   ======================================== */

.profile-view {
    background: linear-gradient(180deg, #0a0a0e 0%, #1a1a24 100%);
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.profile-view::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/bg.png') center/cover no-repeat;
    filter: blur(12px) brightness(0.35) saturate(1.2);
    z-index: -1;
}

.profile-page {
    padding: 0;
    margin: 0;
    flex: 1;
}

/* Profile Hero Section */
.profile-hero {
    position: relative;
    padding: 80px 20px 60px;
    background: linear-gradient(180deg, 
        rgba(255, 87, 34, 0.15) 0%, 
        rgba(255, 87, 34, 0.05) 50%,
        transparent 100%
    );
    overflow: hidden;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.profile-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 14, 0.8) 100%);
    pointer-events: none;
}

.profile-hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.profile-avatar-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.profile-avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

.profile-avatar {
    width: 220px;
    height: 220px;
    border-radius: 20px;
    border: 4px solid rgba(255, 87, 34, 0.5);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(255, 87, 34, 0.1);
    display: block;
    image-rendering: pixelated;
    transition: transform 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05) translateY(-5px);
}

.profile-hero-info {
    z-index: 1;
}

.profile-hero-name {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    text-shadow: 0 4px 20px rgba(255, 87, 34, 0.6);
    letter-spacing: -0.5px;
}

.profile-hero-username {
    font-size: 1.3rem;
    color: #b0b0b0;
    margin: 0 0 20px;
    font-weight: 300;
}

.profile-hero-rank {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.2) 0%, rgba(255, 152, 0, 0.2) 100%);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-hero-rank i {
    margin-right: 8px;
}

/* Profile Content */
.profile-content-wrapper {
    max-width: 1400px;
    margin: -20px auto 0;
    padding: 0 20px 60px;
    position: relative;
    z-index: 2;
}

.profile-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* Stats Section */
.profile-stats-section {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.profile-stat-card {
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 87, 34, 0.5);
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.2);
}

.profile-stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.2) 0%, rgba(255, 152, 0, 0.2) 100%);
    border-radius: 14px;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.stat-info {
    flex: 1;
}

.stat-label {
    margin: 0;
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-value {
    margin: 4px 0 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

/* Actions Section */
.profile-actions-section {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.profile-panel {
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.profile-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, rgba(255, 152, 0, 1) 100%);
}

.panel-header {
    margin-bottom: 24px;
}

.panel-header h3 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
    font-weight: 700;
}

.panel-header h3 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.panel-description {
    color: #999;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    gap: 12px;
}

.profile-action-btn {
    background: rgba(40, 40, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.profile-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 87, 34, 0.2) 50%, transparent 100%);
    transition: left 0.5s ease;
}

.profile-action-btn:hover::before {
    left: 100%;
}

.profile-action-btn:hover {
    transform: translateX(5px);
    border-color: rgba(255, 87, 34, 0.5);
    background: rgba(255, 87, 34, 0.1);
}

.profile-action-btn i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.profile-action-btn span {
    flex: 1;
    text-align: left;
}

/* Admin Section */
.admin-section {
    margin-top: 24px;
}

.admin-section:first-child {
    margin-top: 0;
}

.admin-section-title {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.empty-message {
    color: #666;
    text-align: center;
    padding: 40px 20px;
    font-size: 0.95rem;
}

.photo-count-badge {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(255, 87, 34, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #ddd;
    border: 1px solid rgba(255, 87, 34, 0.3);
}

.photo-count-badge i {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-hero {
        padding: 60px 15px 40px;
    }

    .profile-avatar {
        width: 160px;
        height: 160px;
    }

    .profile-avatar-glow {
        width: 200px;
        height: 200px;
    }

    .profile-hero-name {
        font-size: 2rem;
    }

    .profile-hero-username {
        font-size: 1rem;
    }

    .profile-stats-section {
        grid-template-columns: 1fr;
    }

    .profile-stat-card {
        padding: 20px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
    }

    .stat-icon i {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .profile-panel {
        padding: 20px;
    }

    .panel-header h3 {
        font-size: 1.3rem;
    }
}

/* Compact profile adjustments */
.profile-hero {
    padding: 56px 16px 34px;
}

.profile-avatar {
    width: 170px;
    height: 170px;
}

.profile-avatar-glow {
    width: 210px;
    height: 210px;
}

.profile-hero-name {
    font-size: 2.2rem;
    margin-bottom: 6px;
}

.profile-hero-username {
    margin-bottom: 14px;
}

.profile-hero-rank {
    padding: 9px 20px;
    font-size: 0.9rem;
}

.profile-content-wrapper {
    margin-top: -8px;
    padding: 0 14px 28px;
}

.profile-content-grid {
    gap: 14px;
}

.profile-stats-section {
    gap: 12px;
}

.profile-stat-card {
    padding: 14px;
    border-radius: 12px;
    gap: 12px;
}

.stat-icon {
    width: 46px;
    height: 46px;
}

.stat-icon i {
    font-size: 1.2rem;
}

.stat-label {
    font-size: 0.75rem;
}

.stat-value {
    font-size: 1.1rem;
}

.profile-actions-section {
    gap: 14px;
}

.profile-panel {
    padding: 16px;
    border-radius: 14px;
}

.panel-header {
    margin-bottom: 12px;
}

.panel-header h3 {
    font-size: 1.15rem;
}

.action-buttons {
    gap: 8px;
}

.profile-action-btn {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.92rem;
}

/* One-screen compact profile tuning */
.profile-view {
    overflow-y: auto;
    overflow-x: hidden;
}

.profile-view .navbar {
    background: rgba(8, 8, 14, 0.82) !important;
    backdrop-filter: blur(14px);
}

.profile-page {
    min-height: calc(100vh - 62px);
    height: auto;
    overflow: visible;
}

.profile-hero {
    padding: 28px 14px 14px;
}

.profile-avatar-wrapper {
    margin-bottom: 12px;
}

.profile-avatar {
    width: 122px;
    height: 122px;
    border-radius: 14px;
}

.profile-avatar-glow {
    width: 150px;
    height: 150px;
}

.profile-hero-name {
    font-size: 1.6rem;
    margin-bottom: 2px;
}

.profile-hero-username {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.profile-hero-rank {
    padding: 6px 14px;
    font-size: 0.74rem;
}

.profile-content-wrapper {
    margin-top: 0;
    padding: 0 12px 12px;
    max-height: calc(100vh - 270px);
    overflow: auto;
}

.profile-content-grid {
    gap: 10px;
}

.profile-stats-section {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.profile-stat-card {
    padding: 10px;
    gap: 8px;
    border-radius: 10px;
}

.stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.stat-icon i {
    font-size: 0.95rem;
}

.stat-label {
    font-size: 0.64rem;
}

.stat-value {
    font-size: 0.9rem;
    line-height: 1.2;
}

.profile-actions-section {
    gap: 10px;
}

.profile-panel {
    padding: 12px;
    border-radius: 12px;
}

.panel-header {
    margin-bottom: 8px;
}

.panel-header h3 {
    font-size: 0.98rem;
}

.action-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.profile-action-btn {
    min-height: 42px;
    padding: 8px 10px;
    gap: 8px;
    font-size: 0.78rem;
    border-radius: 9px;
}

.profile-action-btn i {
    font-size: 0.94rem;
}

.compact-subtitle {
    grid-column: 1 / -1;
    margin: 2px 0 4px;
    font-size: 0.72rem;
    color: #a9a9b6;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.compact-subtitle i {
    color: var(--primary-color);
    margin-right: 6px;
}

.profile-view footer {
    background: rgba(14, 18, 30, 0.8) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

@media (max-width: 991px) {
    .profile-view {
        overflow: auto;
    }

    .profile-page {
        height: auto;
        overflow: visible;
    }

    .profile-content-wrapper {
        max-height: none;
        overflow: visible;
        padding-bottom: 22px;
    }

    .profile-stats-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .profile-view footer {
        display: block;
    }
}

/* Profile dashboard v2: left avatar, center stats, right actions */
.profile-view {
    background: linear-gradient(180deg, #0e1018 0%, #181d2c 100%);
}

.profile-view .server-ip-wrapper {
    margin-left: 5.35rem;
}

.profile-page {
    height: auto;
    overflow: visible;
    padding: 18px 18px 30px;
}

.profile-dashboard {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(430px, 1.45fr) minmax(320px, 1.05fr);
    gap: 18px;
    align-items: start;
}

.profile-column {
    min-width: 0;
}

.profile-panel {
    background: rgba(14, 18, 30, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 18px;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.profile-left-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 22px;
    padding-bottom: 20px;
}

.profile-avatar-wrapper {
    margin-bottom: 10px;
}

.profile-avatar {
    width: 172px;
    height: 172px;
    border-radius: 14px;
    border: 3px solid rgba(255, 87, 34, 0.6);
    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.42),
        0 0 24px rgba(255, 87, 34, 0.22);
}

.profile-avatar-glow {
    width: 205px;
    height: 205px;
}

.profile-hero-name {
    font-size: 1.9rem;
    line-height: 1.15;
    margin-bottom: 2px;
}

.profile-hero-username {
    margin-bottom: 8px;
    font-size: 0.98rem;
}

.profile-hero-rank {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.profile-stats-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-stats-expanded {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-stats-compact .profile-stat-card,
.profile-stats-expanded .profile-stat-card {
    padding: 14px;
    gap: 12px;
    min-height: 98px;
}

.profile-stats-compact .stat-icon,
.profile-stats-expanded .stat-icon {
    width: 44px;
    height: 44px;
}

.profile-stats-compact .stat-icon i,
.profile-stats-expanded .stat-icon i {
    font-size: 1.08rem;
}

.profile-stats-compact .stat-label,
.profile-stats-expanded .stat-label {
    font-size: 0.74rem;
}

.profile-stats-compact .stat-value,
.profile-stats-expanded .stat-value {
    font-size: 0.98rem;
    line-height: 1.2;
}

.profile-actions-vertical {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.profile-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.action-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-column-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    margin: 0 0 4px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 87, 34, 0.2);
}

.action-column-title i {
    margin-right: 6px;
    font-size: 0.85rem;
}

.action-column-admin {
    grid-column: 1 / -1;
}

.profile-actions-vertical .profile-action-btn,
.profile-actions-grid .profile-action-btn {
    min-height: 46px;
    padding: 10px 12px;
    font-size: 0.86rem;
    gap: 10px;
    border-radius: 11px;
    background: rgba(35, 41, 58, 0.72);
}

.profile-actions-vertical .profile-action-btn i,
.profile-actions-grid .profile-action-btn i {
    font-size: 1.02rem;
}

.profile-actions-vertical .profile-action-btn:hover,
.profile-actions-grid .profile-action-btn:hover {
    transform: translateX(4px);
}

.admin-jump-btn {
    text-decoration: none;
}

.profile-admin-wrap {
    max-width: 1500px;
    margin: 16px auto 0;
}

.profile-view footer {
    background: rgba(14, 18, 30, 0.8) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-top: 16px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

@media (max-width: 1200px) {
    .profile-dashboard {
        grid-template-columns: minmax(240px, 0.95fr) minmax(360px, 1.3fr) minmax(280px, 1fr);
    }
}

@media (max-width: 991px) {
    .profile-page {
        padding: 12px;
    }

    .profile-dashboard {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .profile-left-panel {
        align-items: flex-start;
        text-align: left;
    }

    .profile-avatar {
        width: 128px;
        height: 128px;
    }

    .profile-stats-compact,
    .profile-stats-expanded {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-actions-vertical {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-actions-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .profile-stats-compact,
    .profile-stats-expanded,
    .profile-actions-vertical {
        grid-template-columns: 1fr;
    }

    .profile-actions-grid {
        grid-template-columns: 1fr;
    }

    .action-column-admin {
        grid-column: 1;
    }
}

/* ========================================
   Team + Banlist Page
   ======================================== */

.team-view {
    background: linear-gradient(180deg, #0e1018 0%, #181d2c 100%);
    min-height: 100vh;
    overflow-y: auto;
    position: relative;
}

.team-view::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/bg.png') center/cover no-repeat;
    filter: blur(12px) brightness(0.35) saturate(1.2);
    z-index: -1;
}

.team-page {
    max-width: 100%;
    margin: 0 auto;
    padding: 24px 18px 40px;
}

.panel-glass {
    background: rgba(14, 18, 30, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.team-hero {
    padding: 20px;
    margin-bottom: 20px;
}

.team-eyebrow {
    margin: 0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.72);
}

.team-hero h1 {
    margin: 8px 0 6px;
    color: #fff;
    font-size: 1.95rem;
}

.team-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.team-section {
    margin-bottom: 20px;
}

.team-section-header h2 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.team-grid {
    display: grid;
    gap: 16px;
}

.team-grid-staff-center {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.team-grid-vertical {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.team-grid-horizontal {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
}

.team-staff-section {
    margin-bottom: 32px;
}

.team-section-header-center {
    text-align: center;
}

.team-combined-section {
    margin-bottom: 24px;
}

.team-combined-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: start;
}

.team-combined-column {
    min-width: 0;
}

.team-divider {
    display: flex;
    align-items: stretch;
    padding: 32px 0;
}

.team-divider-line {
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 87, 34, 0.4) 10%,
        rgba(255, 87, 34, 0.6) 50%,
        rgba(255, 87, 34, 0.4) 90%,
        transparent 100%
    );
    box-shadow: 0 0 12px rgba(255, 87, 34, 0.3);
    border-radius: 2px;
}

.team-member-card {
    background: rgba(20, 24, 38, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    min-height: 265px;
    padding: 16px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-member-card.is-filled:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.team-member-card-staff {
    min-width: 340px;
    min-height: 320px;
    background: rgba(25, 30, 48, 0.85);
    border: 2px solid rgba(255, 87, 34, 0.3);
    box-shadow: 0 8px 24px rgba(255, 87, 34, 0.15);
}

.team-member-card-staff.is-filled:hover {
    border-color: rgba(255, 87, 34, 0.5);
    box-shadow: 0 12px 32px rgba(255, 87, 34, 0.3);
}

.team-member-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.team-member-card.is-empty {
    border-style: dashed;
    background: rgba(20, 24, 38, 0.48);
}

.team-member-avatar {
    width: 130px;
    height: 130px;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease;
}

.team-member-card:hover .team-member-avatar {
    transform: scale(1.05);
}

.team-member-card-staff .team-member-avatar {
    width: 150px;
    height: 150px;
    border: 2px solid rgba(255, 87, 34, 0.3);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}

.team-member-name {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
}

.team-member-username {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.team-member-rank {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid transparent;
    font-weight: 600;
}

.rank-staff {
    background: rgba(255, 87, 34, 0.2);
    color: #ff9f80;
    border-color: rgba(255, 87, 34, 0.4);
}

.rank-moderator {
    background: rgba(76, 175, 80, 0.18);
    color: #9fe9a2;
    border-color: rgba(76, 175, 80, 0.4);
}

.rank-builder {
    background: rgba(33, 150, 243, 0.18);
    color: #90caf9;
    border-color: rgba(33, 150, 243, 0.4);
}

.team-empty-icon {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.45);
}

.team-empty-label {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.9rem;
}

.banlist-section {
    max-width: 100%;
}

.banlist-table-wrap {
    overflow-x: auto;
    width: 100%;
}

.banlist-table {
    color: #fff;
    min-width: 800px;
    width: 100%;
    table-layout: auto;
}

.banlist-table thead th {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.82);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    white-space: nowrap;
    padding: 12px 8px;
}

.banlist-table td {
    border-color: rgba(255, 255, 255, 0.08);
    vertical-align: middle;
    padding: 12px 8px;
}

.banlist-table th:nth-child(1),
.banlist-table td:nth-child(1) {
    min-width: 140px;
}

.banlist-table th:nth-child(3),
.banlist-table td:nth-child(3) {
    min-width: 200px;
    max-width: 300px;
}

.banlist-table th:nth-child(6),
.banlist-table td:nth-child(6) {
    min-width: 100px;
    text-align: center;
}

@media (max-width: 991px) {
    .team-combined-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-divider {
        display: none;
    }

    .team-member-card {
        min-height: 230px;
    }

    .team-member-card-staff {
        min-width: 280px;
    }

    .team-grid-horizontal {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .team-grid-staff-center {
        width: 100%;
    }

    .team-member-card-staff {
        min-width: 100%;
        max-width: 100%;
    }
}

/* ========================================
   Player Gallery Page
   ======================================== */

.players-view {
    background: linear-gradient(180deg, #0e1018 0%, #181d2c 100%);
    min-height: 100vh;
    overflow-y: auto;
    position: relative;
}

.players-view::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/bg.png') center/cover no-repeat;
    filter: blur(12px) brightness(0.35) saturate(1.2);
    z-index: -1;
}

.players-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 18px 40px;
}

.players-hero {
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.players-eyebrow {
    margin: 0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.72);
}

.players-hero h1 {
    margin: 8px 0 6px;
    color: #fff;
    font-size: 1.95rem;
}

.players-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.upload-section {
    padding: 24px;
    margin-bottom: 24px;
}

.upload-toggle-btn {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.9), rgba(255, 152, 0, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 28px;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.upload-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

.upload-form-container {
    display: none;
    animation: slideDown 0.3s ease;
}

.upload-form-container.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upload-section h3 {
    color: #FF5722;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.upload-area {
    margin-bottom: 16px;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-label:hover {
    background: rgba(255, 87, 34, 0.1);
    border-color: rgba(255, 87, 34, 0.4);
}

.upload-label i {
    font-size: 2.5rem;
    color: #FF5722;
}

.upload-label span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.btn-upload {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.9), rgba(255, 152, 0, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 28px;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

.btn-upload:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
} 

.login-prompt {
    padding: 40px;
    text-align: center;
    margin-bottom: 24px;
}

.login-prompt i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 16px;
}

.login-prompt p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.login-prompt a {
    color: #FF5722;
    text-decoration: none;
    font-weight: 600;
}

.login-prompt a:hover {
    color: #FF8A50;
}

.gallery-section {
    margin-top: 24px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    background: rgba(14, 18, 30, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(14px);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 87, 34, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 130%; /* Taller aspect ratio for bigger preview images */
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.gallery-image-wrapper:hover .gallery-expand-hint {
    opacity: 1;
}

.gallery-expand-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-info {
    padding: 16px;
}

.gallery-username {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.gallery-username img {
    width: 16px;
    height: 16px;
}

.gallery-username span {
    color: #FF5722;
    font-weight: 600;
    font-size: 0.95rem;
}

.gallery-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 8px 0;
    line-height: 1.4;
}

.gallery-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.gallery-admin-controls {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 8px;
}

.btn-gallery-delete {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.4);
    color: #f44336;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-gallery-delete:hover {
    background: rgba(244, 67, 54, 0.3);
    border-color: rgba(244, 67, 54, 0.6);
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    .lightbox-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 95%;
        max-height: 95vh;
        cursor: default;
    }

    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox img {
    max-width: 90vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
.lightbox-metadata {
    background: rgba(14, 18, 30, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px 30px;
    margin-top: 20px;
    min-width: 300px;
    max-width: 600px;
}

.lightbox-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.lightbox-user img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.lightbox-user span {
    color: #FF5722;
    font-weight: 600;
    font-size: 1.1rem;
}

.lightbox-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.5;
    margin: 12px 0;
}

.lightbox-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    display: block;
    margin-top: 8px;
}

}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #FF5722;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
