        * {
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        :root {
            --neon-blue: #00d2ff;
            --neon-pink: #ff0055;
            --neon-purple: #a200ff;
            --neon-green: #00ff99;
            --neon-yellow: #f1c40f;
            --neon-orange: #ff9900;
            --dark-bg: #050510;
        }

        html {
            height: 100%;
            background-color: var(--dark-bg);
        }

        body {
            margin: 0;
            padding: 0;
            min-height: 100vh;
            min-height: -webkit-fill-available;
            background-color: transparent;
            font-family: 'Segoe UI', sans-serif;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            overflow-x: hidden;
            overflow-y: auto;
        }

        .bg-layer {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -2;
            pointer-events: none;
        }

        .stadium-lights {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 20% 0%, rgba(0, 210, 255, 0.2) 0%, transparent 50%), radial-gradient(circle at 80% 0%, rgba(255, 0, 85, 0.2) 0%, transparent 50%);
        }

        .grid-floor {
            position: absolute;
            bottom: -50%;
            left: -50%;
            width: 200%;
            height: 100%;
            background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 50px 50px;
            transform: perspective(500px) rotateX(60deg);
            animation: gridMove 20s linear infinite;
        }

        .particles span {
            position: absolute;
            bottom: -10px;
            width: 5px;
            height: 5px;
            background: var(--neon-blue);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--neon-blue);
            animation: fly 10s linear infinite;
            opacity: 0;
        }

        .particles span:nth-child(even) {
            background: var(--neon-pink);
            box-shadow: 0 0 10px var(--neon-pink);
        }

        .particles span:nth-child(1) {
            left: 10%;
            animation-duration: 7s;
        }

        .particles span:nth-child(2) {
            left: 30%;
            animation-delay: 2s;
            animation-duration: 10s;
        }

        .particles span:nth-child(3) {
            left: 70%;
            animation-delay: 4s;
            animation-duration: 6s;
        }

        .particles span:nth-child(4) {
            left: 90%;
            animation-delay: 1s;
            animation-duration: 9s;
        }

        @keyframes gridMove {
            0% {
                transform: perspective(500px) rotateX(60deg) translateY(0);
            }

            100% {
                transform: perspective(500px) rotateX(60deg) translateY(50px);
            }
        }

        @keyframes fly {
            0% {
                bottom: -10px;
                opacity: 0;
            }

            50% {
                opacity: 1;
            }

            100% {
                bottom: 100vh;
                opacity: 0;
            }
        }

        @keyframes float {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-10px);
            }
        }

        .content-wrapper {
            z-index: 10;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100%;
            max-width: 400px;
            margin: auto;
            padding: 80px 20px 40px 20px;
        }

        .logo-container {
            text-align: center;
            margin-bottom: clamp(5px, 2vh, 15px);
            animation: float 4s ease-in-out infinite;
            width: 100%;
        }

        .main-logo {
            width: 100%;
            max-width: clamp(140px, 50vw, 280px);
            height: auto;
            filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.4));
        }

        .menu-grid {
            display: flex;
            flex-direction: column;
            gap: clamp(15px, 2.5vh, 20px);
            width: 100%;
            margin-bottom: 20px;
        }

        .menu-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: clamp(15px, 3vh, 20px);
            border-radius: 15px;
            text-decoration: none;
            color: white;
            font-size: clamp(1rem, 4vw, 1.2rem);
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: 0.3s;
            backdrop-filter: blur(5px);
            position: relative;
            overflow: hidden;
        }

        .menu-btn i {
            font-size: clamp(1.4rem, 6vw, 1.6rem);
            transition: 0.3s;
            position: relative;
            z-index: 1;
        }

        .btn-single:hover {
            background: linear-gradient(90deg, rgba(0, 210, 255, 0.1), transparent);
            border-color: var(--neon-blue);
            box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
            transform: translateX(5px);
        }

        .btn-single:hover i {
            color: var(--neon-blue);
        }

        .btn-career:hover {
            background: linear-gradient(90deg, rgba(0, 255, 153, 0.1), transparent);
            border-color: var(--neon-green);
            box-shadow: 0 0 20px rgba(0, 255, 153, 0.3);
            transform: translateX(5px);
        }

        .btn-career:hover i {
            color: var(--neon-green);
        }

        .btn-online i {
            font-size: clamp(1.8rem, 6vw, 2.2rem) !important;
        }
        
        .online-icon-wrapper {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .online-pill {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: #ff0044;
            color: #fff;
            font-size: 0.45rem;
            font-weight: 900;
            padding: 1px 3px;
            border-radius: 4px;
            letter-spacing: 0.5px;
            z-index: 2;
            box-shadow: 0 0 10px rgba(255, 0, 68, 0.6);
        }

        .btn-online:hover {
            background: linear-gradient(90deg, rgba(255, 0, 85, 0.1), transparent);
            border-color: var(--neon-pink);
            box-shadow: 0 0 20px rgba(255, 0, 85, 0.3);
            transform: translateX(5px);
        }

        .btn-online:hover i {
            color: var(--neon-pink);
        }



        .btn-fun:hover {
            background: linear-gradient(90deg, rgba(255, 170, 0, 0.1), transparent);
            border-color: var(--neon-gold);
            box-shadow: 0 0 20px rgba(255, 170, 0, 0.3);
            transform: translateX(5px);
        }

        .btn-fun:hover i {
            color: var(--neon-gold);
        }


        .ribbon-new {
            position: absolute;
            top: 10px;
            right: -25px;
            background: #ff003c;
            color: #fff;
            padding: 3px 25px;
            font-size: 0.65rem;
            font-weight: 900;
            letter-spacing: 1px;
            transform: rotate(45deg);
            box-shadow: 0 0 10px rgba(255, 0, 60, 0.6);
            z-index: 10;
            text-align: center;
        }

        .top-hud {
            position: fixed;
            top: 15px;
            right: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
            z-index: 100;
        }

        .points-hud {
            display: flex;
            align-items: center;
            gap: 6px;
            background: rgba(5, 5, 16, 0.8);
            border: 1px solid var(--neon-green);
            padding: 5px 12px;
            border-radius: 50px;
            backdrop-filter: blur(5px);
            box-shadow: 0 0 15px rgba(0, 255, 153, 0.1);
            color: var(--neon-green);
            font-weight: 900;
            font-size: 1rem;
        }

        .points-hud img {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            border: 1px solid var(--neon-yellow);
            box-shadow: 0 0 5px var(--neon-yellow);
            object-fit: cover;
        }

        .profile-badge {
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(5, 5, 16, 0.8);
            border: 1px solid rgba(0, 240, 255, 0.3);
            padding: 5px 15px 5px 5px;
            border-radius: 50px;
            backdrop-filter: blur(5px);
            box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
            cursor: pointer;
            transition: 0.3s;
            position: relative;
        }

        .profile-badge:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--neon-blue);
        }

        .profile-badge img {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            border: 2px solid var(--neon-blue);
            object-fit: cover;
        }

        .profile-badge span {
            color: white;
            font-weight: 800;
            font-size: 0.9rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            font-family: 'Segoe UI', sans-serif;
        }

        @media (max-width: 400px) {
            .top-hud {
                top: 10px;
                right: 10px;
                gap: 6px;
            }

            .profile-badge {
                padding: 4px 10px 4px 4px;
            }

            .profile-badge img {
                width: 32px;
                height: 32px;
            }

            .profile-badge span {
                font-size: 0.75rem;
            }

            .points-hud {
                padding: 4px 10px;
                font-size: 0.85rem;
            }

            .points-hud img {
                width: 20px;
                height: 20px;
            }
        }

        .profile-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(5, 5, 16, 0.85);
            backdrop-filter: blur(10px);
            z-index: 9999;
            display: none;
            justify-content: center;
            align-items: flex-start;
            padding: 40px 15px 15px;
            animation: fadeIn 0.3s ease;
            overflow-y: auto;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .profile-modal {
            background: #0d0d1a;
            border: 2px solid var(--neon-blue);
            border-radius: 20px;
            padding: 25px;
            width: 100%;
            max-width: 380px;
            text-align: center;
            box-shadow: 0 0 40px rgba(0, 210, 255, 0.2);
            position: relative;
            max-height: none;
            margin: auto;
        }

        .profile-modal::-webkit-scrollbar {
            width: 4px;
        }

        .profile-modal::-webkit-scrollbar-thumb {
            background: var(--neon-blue);
            border-radius: 10px;
        }

        .profile-modal h2 {
            color: white;
            margin-top: 0;
            font-size: 1.6rem;
            text-shadow: 0 0 10px var(--neon-blue);
            letter-spacing: 1px;
            margin-bottom: 5px;
        }

        .profile-modal h3 {
            color: #aaa;
            font-size: 0.9rem;
            margin-bottom: 20px;
            letter-spacing: 1px;
            font-weight: normal;
        }

        .username-input {
            width: 100%;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            color: white;
            font-size: 16px;
            text-align: center;
            margin-bottom: 20px;
            outline: none;
            font-family: inherit;
            font-weight: bold;
            transition: 0.3s;
        }

        .username-input:focus {
            border-color: var(--neon-blue);
            box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
            background: rgba(255, 255, 255, 0.1);
        }

        /* YENİ ALT 2'LÜ KÜÇÜK BUTONLAR */
        .bottom-small-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            width: 100%;
            margin-top: 5px;
        }

        .small-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 12px 5px;
            border-radius: 12px;
            text-decoration: none;
            color: white;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: 0.3s;
            backdrop-filter: blur(5px);
            position: relative;
            overflow: hidden;
        }

        .small-btn i {
            font-size: 1.4rem;
            transition: 0.3s;
        }

        .small-btn span {
            font-size: 0.75rem;
            font-weight: 800;
            letter-spacing: 0.5px;
        }

        .btn-friends:hover {
            background: linear-gradient(180deg, rgba(0, 210, 255, 0.1), transparent);
            border-color: var(--neon-blue);
            box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
            transform: translateY(-3px);
        }
        .btn-friends:hover i { color: var(--neon-blue); }

        .btn-market:hover {
            background: linear-gradient(180deg, rgba(255, 0, 85, 0.1), transparent);
            border-color: var(--neon-pink);
            box-shadow: 0 0 15px rgba(255, 0, 85, 0.3);
            transform: translateY(-3px);
        }
        .btn-market:hover i { color: var(--neon-pink); }

        .avatar-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-bottom: 15px;
        }

        .avatar-option {
            width: 100%;
            aspect-ratio: 1/1;
            border-radius: 50%;
            border: 3px solid transparent;
            cursor: pointer;
            transition: 0.3s;
            object-fit: cover;
            opacity: 0.4;
        }

        .avatar-option:hover {
            opacity: 1;
            transform: scale(1.05);
        }

        .avatar-option.selected {
            border-color: var(--neon-green);
            opacity: 1;
            transform: scale(1.1);
            box-shadow: 0 0 20px rgba(0, 255, 153, 0.4);
        }

        .trophies-section {
            margin-top: 10px;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            margin-bottom: 25px;
        }

        .trophies-section h3 {
            color: var(--neon-yellow);
            font-size: 1.1rem;
            margin-bottom: 15px;
            text-shadow: 0 0 10px rgba(241, 196, 15, 0.3);
            font-weight: 900;
        }

        .trophies-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px 10px;
        }

        .trophy-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
            transition: 0.3s;
        }

        .trophy-item i {
            font-size: 2.2rem;
            filter: drop-shadow(0 0 15px currentColor);
        }

        .trophy-item span {
            font-size: 0.65rem;
            color: #fff;
            font-weight: 900;
            text-align: center;
            line-height: 1.2;
            letter-spacing: 0.5px;
        }

        .trophy-item.locked {
            opacity: 0.7;
        }

        .trophy-item.locked i {
            color: transparent !important;
            -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.2);
            filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.8));
        }

        .trophy-item.locked span {
            color: #555;
        }

        .save-profile-btn {
            background: linear-gradient(90deg, var(--neon-blue), #0088ff);
            color: #000;
            border: none;
            padding: 15px 20px;
            border-radius: 30px;
            font-weight: 800;
            font-size: 1.1rem;
            cursor: pointer;
            transition: 0.3s;
            width: 100%;
            font-family: inherit;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
        }

        .save-profile-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 0 30px rgba(0, 210, 255, 0.5);
        }

        .btn-group {
            display: flex;
            gap: 10px;
            width: 100%;
        }

        #rotate-warning {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #000;
            z-index: 99999;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: white;
            text-align: center;
        }

        #rotate-warning i {
            font-size: 50px;
            margin-bottom: 20px;
            animation: rotateIcon 2s infinite;
            color: var(--neon-blue);
        }

        @media only screen and (min-aspect-ratio: 13/9) and (max-height: 600px) {
            #rotate-warning {
                display: flex;
            }

            .content-wrapper,
            .bg-layer,
            .profile-overlay,
            .top-hud {
                display: none !important;
            }
        }


        .gold-hud {
            display: flex;
            align-items: center;
            gap: 6px;
            background: rgba(5, 5, 16, 0.8);
            border: 1px solid var(--neon-yellow);
            padding: 5px 12px;
            border-radius: 50px;
            backdrop-filter: blur(5px);
            box-shadow: 0 0 15px rgba(241, 196, 15, 0.2);
            color: var(--neon-yellow);
            font-weight: 900;
            font-size: 1rem;
            transition: 0.3s;
        }

        .gold-hud:hover {
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 0 0 20px rgba(241, 196, 15, 0.4);
        }

        .gold-hud i {
            font-size: 1.1rem;
            color: var(--neon-yellow);
            text-shadow: 0 0 8px rgba(241, 196, 15, 0.6);
        }



        #toastNotification {
            position: fixed;
            top: -100px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(5, 5, 16, 0.95);
            border: 2px solid var(--neon-yellow);
            color: var(--neon-yellow);
            padding: 15px 25px;
            border-radius: 30px;
            font-weight: 900;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 0 30px rgba(241, 196, 15, 0.4);
            z-index: 99998;
            transition: top 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            backdrop-filter: blur(10px);
            pointer-events: none;
            white-space: nowrap;
        }

        #toastNotification.show {
            top: 20px;
        }

        #toastNotification i {
            font-size: 1.5rem;
            color: var(--neon-yellow);
        }

        .guest-warning-dot {
            width: 12px;
            height: 12px;
            background-color: var(--neon-pink);
            border-radius: 50%;
            position: absolute;
            top: 0px;
            right: 0px;
            box-shadow: 0 0 10px var(--neon-pink);
            animation: pulseRed 1.5s infinite;
            z-index: 10;
        }

        @keyframes pulseRed {
            0% {
                transform: scale(1);
                opacity: 1;
            }

            50% {
                transform: scale(1.3);
                opacity: 0.7;
            }

            100% {
                transform: scale(1);
                opacity: 1;
            }
        }




        /* --- MIGRATED FROM ONLINE.CSS --- */

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(5, 5, 10, 0.85);
            backdrop-filter: blur(15px);
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 999;
            padding: 15px 15px 90px 15px;
            box-sizing: border-box;
        }

        .lb-modal {
            border-top: 2px solid var(--neon-yellow);
            padding: 25px 20px;
        }

        .lb-title {
            color: var(--neon-yellow);
            margin: 0 0 20px 0;
            font-size: 2.2rem;
            font-weight: 900;
            text-align: center;
            letter-spacing: 1px;
            text-shadow: 0 0 15px rgba(241, 196, 15, 0.5);
        }

        .lb-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            overflow-y: auto;
            overflow-x: hidden;
            padding-right: 5px;
            touch-action: pan-y;
            width: 100%;
            box-sizing: border-box;
        }

        .lb-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            background: rgba(255, 255, 255, 0.03);
            padding: 12px 18px;
            border-radius: 16px;
            border: 1px solid transparent;
            cursor: pointer;
            transition: 0.3s;
            width: 100%;
            box-sizing: border-box;
        }

        .lb-item.top-1 {
            border-color: var(--neon-yellow);
            background: rgba(241, 196, 15, 0.1);
            box-shadow: inset 0 0 10px rgba(241, 196, 15, 0.1);
        }

        .lb-item.top-2 {
            border-color: #c0c0c0;
            background: rgba(192, 192, 192, 0.08);
        }

        .lb-item.top-3 {
            border-color: #cd7f32;
            background: rgba(205, 127, 50, 0.08);
        }

        .lb-left {
            display: flex;
            align-items: center;
            gap: 15px;
            flex: 1;
            min-width: 0;
        }

        .lb-rank {
            font-weight: 900;
            font-size: 1.4rem;
            width: 30px;
            text-align: left;
            color: #888;
            flex-shrink: 0;
        }

        .top-1 .lb-rank {
            color: var(--neon-yellow);
        }

        .top-2 .lb-rank {
            color: #c0c0c0;
        }

        .top-3 .lb-rank {
            color: #cd7f32;
        }

        .lb-avatar {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #555;
            flex-shrink: 0;
        }

        .top-1 .lb-avatar {
            border-color: var(--neon-yellow);
        }

        .lb-name {
            font-weight: 800;
            color: white;
            text-transform: uppercase;
            font-size: 1.1rem;
            font-family: 'Segoe UI', sans-serif;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .lb-points {
            font-weight: 900;
            color: var(--neon-green);
            font-size: 1.3rem;
            font-family: 'Segoe UI', sans-serif;
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
            white-space: nowrap;
        }

        .lb-points img {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 1px solid var(--neon-yellow);
            object-fit: cover;
        }

        @media (max-width: 400px) {
            .lb-item {
                padding: 10px 12px;
                gap: 8px;
            }

            .lb-left {
                gap: 10px;
            }

            .lb-avatar {
                width: 36px;
                height: 36px;
            }

            .lb-rank {
                font-size: 1.1rem;
                width: 22px;
            }

            .lb-points {
                font-size: 1.1rem;
            }

            .lb-name {
                font-size: 0.95rem;
            }

            .lb-arena-badge {
                font-size: 0.65rem;
            }
        }

        #playerProfileOverlay {
            z-index: 10050 !important;
        }

        .player-profile-modal {
            border-top: 2px solid var(--neon-blue);
            text-align: center;
            padding: 30px 20px;
        }

        .trophies-section {
            margin-top: 15px;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .trophies-section h3 {
            color: var(--neon-yellow);
            font-size: 1.1rem;
            margin-bottom: 15px;
            text-shadow: 0 0 10px rgba(241, 196, 15, 0.3);
            font-weight: 900;
        }

        .trophies-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px 10px;
        }

        .trophy-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            transition: 0.3s;
            background: rgba(255, 255, 255, 0.02);
            padding: 15px 5px;
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.03);
        }

        .trophy-item i {
            font-size: 2.2rem;
            filter: drop-shadow(0 0 15px currentColor);
        }

        .trophy-item span {
            font-size: 0.65rem;
            color: #fff;
            font-weight: 900;
            text-align: center;
            line-height: 1.2;
            letter-spacing: 0.5px;
        }

        .trophy-item.locked {
            opacity: 0.7;
        }

        .trophy-item.locked i {
            color: transparent !important;
            -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.2);
            filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.8));
        }


        .friends-close-btn {
            position: absolute;
            top: 8px;
            right: 12px;
            background: none;
            border: none;
            color: #888;
            font-size: 1.5rem;
            cursor: pointer;
            transition: 0.3s;
            z-index: 10;
        }

        .my-code-box {
            background: rgba(162, 0, 255, 0.08);
            border: 1px solid rgba(162, 0, 255, 0.4);
            border-radius: 16px;
            padding: 15px;
            margin-bottom: 20px;
            text-align: center;
            width: 100%;
            box-sizing: border-box;
        }

        .my-code-label {
            color: #888;
            font-size: 0.8rem;
            font-weight: 700;
            letter-spacing: 2px;
            margin-bottom: 5px;
        }

        .my-code-value {
            color: var(--neon-purple);
            font-size: clamp(1.5rem, 6vw, 2rem);
            font-weight: 900;
            letter-spacing: 2px;
            text-shadow: 0 0 10px rgba(162, 0, 255, 0.5);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            word-break: break-all;
        }

        .my-code-copy {
            font-size: 0.8rem;
            color: #555;
            margin-top: 5px;
            font-weight: 600;
        }

        .add-friend-row {
            display: flex;
            gap: 8px;
            margin-bottom: 20px;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }

        .add-friend-input {
            flex: 1;
            min-width: 0;
            padding: 12px 15px;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            color: white;
            font-size: 1rem;
            font-weight: 700;
            letter-spacing: 1px;
            outline: none;
            text-transform: uppercase;
            box-sizing: border-box;
        }

        .add-friend-send-btn {
            background: var(--neon-purple);
            border: none;
            color: #fff;
            padding: 0 15px;
            border-radius: 12px;
            font-weight: 800;
            cursor: pointer;
            font-family: 'Segoe UI', system-ui, sans-serif;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .friends-tabs {
            display: flex;
            gap: 4px;
            margin-bottom: 15px;
            background: rgba(0, 0, 0, 0.3);
            padding: 5px;
            border-radius: 12px;
            width: 100%;
            box-sizing: border-box;
            overflow-x: auto;
        }

        .ftab {
            flex: 1;
            padding: 8px 2px;
            border-radius: 8px;
            border: none;
            background: transparent;
            color: #888;
            font-weight: 800;
            font-size: clamp(0.7rem, 2.5vw, 0.85rem);
            cursor: pointer;
            font-family: 'Segoe UI', system-ui, sans-serif;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            white-space: nowrap;
        }

        .ftab.active {
            background: rgba(162, 0, 255, 0.2);
            color: #fff;
            box-shadow: inset 0 0 10px rgba(162, 0, 255, 0.5);
        }

        .ftab-badge {
            background: var(--neon-pink);
            color: #fff;
            border-radius: 50%;
            width: 16px;
            height: 16px;
            font-size: 0.7rem;
            display: none;
            align-items: center;
            justify-content: center;
            font-weight: 900;
        }

        .ftab-badge.show {
            display: flex;
        }

        .friends-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            overflow-y: auto;
            overflow-x: hidden;
            max-height: 250px;
            width: 100%;
            box-sizing: border-box;
            padding-right: 5px;
        }

        .friend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.03);
            padding: 10px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            width: 100%;
            box-sizing: border-box;
            overflow: hidden;
            flex-shrink: 0;
        }


        .friend-avatar {
            width: 40px !important;
            height: 40px !important;
            min-width: 40px !important;
            min-height: 40px !important;
            max-width: 40px !important;
            max-height: 40px !important;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #444;
            flex-shrink: 0;
        }

        .frp-avatar {
            width: 55px !important;
            height: 55px !important;
            min-width: 55px !important;
            min-height: 55px !important;
            max-width: 55px !important;
            max-height: 55px !important;
            border-radius: 50%;
            border: 2px solid var(--neon-purple);
            object-fit: cover;
            flex-shrink: 0;
        }

        .clickable-profile {
            cursor: pointer;
            transition: 0.2s;
        }

        .clickable-profile:hover {
            opacity: 0.8;
            transform: scale(1.02);
        }

        .friend-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .friend-name {
            font-weight: 800;
            color: white;
            font-size: 0.9rem;
            text-transform: uppercase;
            font-family: 'Segoe UI', sans-serif;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .friend-sub {
            color: #888;
            font-size: 0.7rem;
            font-weight: 600;
            margin-top: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .friend-actions {
            display: flex;
            gap: 4px;
            flex-shrink: 0;
        }

        .faction-btn {
            border: none;
            border-radius: 10px;
            padding: 8px 10px;
            font-weight: 800;
            font-size: 0.75rem;
            cursor: pointer;
            font-family: 'Rajdhani';
            flex-shrink: 0;
        }

        .faction-btn.accept {
            background: rgba(5, 255, 0, 0.15);
            color: var(--neon-green);
            border: 1px solid rgba(5, 255, 0, 0.3);
        }

        .faction-btn.reject {
            background: rgba(255, 0, 60, 0.12);
            color: var(--neon-pink);
            border: 1px solid rgba(255, 0, 60, 0.3);
        }

        .faction-btn.remove {
            background: rgba(255, 255, 255, 0.07);
            color: #888;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .empty-msg {
            color: #555;
            font-weight: 700;
            font-size: 0.95rem;
            text-align: center;
            padding: 30px 0;
            width: 100%;
        }

        .market-modal {
            width: 95%;
            max-width: 550px;
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            border: 3px solid rgba(255, 215, 0, 0.4);
            border-radius: 35px;
            box-shadow: 0 0 50px rgba(255, 215, 0, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.05);
            padding: 25px 20px;
        }

        .market-title {
            font-size: 2.8rem;
            font-weight: 900;
            text-align: center;
            background: -webkit-linear-gradient(#ffd700, #ff8c00);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin: 0 0 25px 0;
            letter-spacing: 2px;
            filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
        }

        .market-grid-new {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 20px;
            padding: 10px;
            max-height: 55vh;
            overflow-y: auto;
            overflow-x: hidden;
        }

        .market-grid-new::-webkit-scrollbar {
            width: 6px;
        }

        .market-grid-new::-webkit-scrollbar-thumb {
            background: rgba(255, 215, 0, 0.5);
            border-radius: 10px;
        }

        .power-card {
            background: rgba(30, 30, 45, 0.6);
            border: 2px solid rgba(255, 255, 255, 0.05);
            border-radius: 28px;
            padding: 25px 15px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            position: relative;
            transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(10px);
        }

        .power-card:hover {
            transform: translateY(-10px);
            border-color: rgba(255, 215, 0, 0.5);
            box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.05);
            background: rgba(40, 40, 60, 0.8);
        }

        .power-card-icon {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 80%);
            border: 2px dashed var(--pc-color);
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 2.5rem;
            color: var(--pc-color);
            margin-bottom: 15px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), inset 0 0 15px var(--pc-color);
            animation: floatIcon 3s ease-in-out infinite;
        }

        @keyframes floatIcon {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-8px);
            }
        }

        .power-card-title {
            font-size: 1.2rem;
            font-weight: 900;
            color: #fff;
            margin-bottom: 6px;
            letter-spacing: 0.5px;
        }

        .power-card-desc {
            font-size: 0.8rem;
            color: #aaa;
            margin-bottom: 15px;
            line-height: 1.3;
            min-height: 32px;
        }

        .power-card-stock {
            background: rgba(0, 0, 0, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 5px 15px;
            font-size: 0.8rem;
            font-weight: 800;
            color: #00d2ff;
            margin-bottom: 25px;
            box-shadow: inset 0 0 10px rgba(0, 210, 255, 0.2);
        }

        .power-card-btn {
            width: 90%;
            padding: 14px 0;
            border-radius: 30px;
            border: none;
            background: linear-gradient(90deg, #ff8a00, #e52e71);
            color: white;
            font-size: 1.3rem;
            font-weight: 900;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            box-shadow: 0 8px 20px rgba(229, 46, 113, 0.4);
            transition: 0.3s;
            font-family: 'Rajdhani', sans-serif;
        }

        .power-card-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 12px 30px rgba(229, 46, 113, 0.7);
            filter: brightness(1.1);
        }

        .friend-request-popup,
        .custom-confirm-popup {
            position: fixed;
            top: 85px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(18, 18, 28, 0.95);
            backdrop-filter: blur(25px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-top: 2px solid var(--neon-purple);
            border-radius: 28px;
            padding: 20px 25px;
            z-index: 100000;
            display: none;
            flex-direction: column;
            gap: 15px;
            width: 92%;
            max-width: 360px;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
            animation: slideUpPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        @keyframes slideUpPop {
            from {
                transform: translateX(-50%) translateY(30px) scale(0.9);
                opacity: 0;
            }

            to {
                transform: translateX(-50%) translateY(0) scale(1);
                opacity: 1;
            }
        }

        .frp-top {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .frp-info {
            flex: 1;
            overflow: hidden;
        }

        .frp-title {
            color: var(--neon-purple);
            font-size: 0.8rem;
            font-weight: 900;
            letter-spacing: 1px;
        }

        .frp-name {
            color: white;
            font-weight: 900;
            font-size: 1.2rem;
            text-transform: uppercase;
            font-family: 'Segoe UI', sans-serif;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .frp-btns {
            display: flex;
            gap: 10px;
            width: 100%;
        }

        .frp-btn {
            flex: 1;
            padding: 12px;
            border-radius: 30px;
            border: none;
            font-weight: 900;
            font-size: 0.95rem;
            cursor: pointer;
            font-family: 'Rajdhani';
            transition: 0.2s;
        }

        .frp-btn.yes {
            background: var(--neon-green);
            color: #000;
        }

        .frp-btn.no {
            background: rgba(255, 0, 60, 0.1);
            color: var(--neon-pink);
            border: 1px solid var(--neon-pink);
        }

        .custom-confirm-popup {
            position: fixed;
            top: 85px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(18, 18, 28, 0.95);
            backdrop-filter: blur(25px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 28px;
            padding: 25px;
            z-index: 100000;
            display: none;
            flex-direction: column;
            width: 92%;
            max-width: 400px;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
            animation: slideUpPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .custom-confirm-title {
            color: #fff;
            font-size: 1.3rem;
            font-weight: 900;
            letter-spacing: 1px;
            text-transform: uppercase;
            margin-bottom: 12px;
            text-align: center;
        }

        .custom-confirm-text {
            color: #ccc;
            font-size: 1.05rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: 22px;
            line-height: 1.4;
        }

        .custom-confirm-btns {
            display: flex;
            gap: 12px;
            width: 100%;
        }

        .custom-confirm-btn {
            flex: 1;
            padding: 14px;
            border-radius: 30px;
            border: none;
            font-weight: 900;
            font-size: 1rem;
            cursor: pointer;
            font-family: 'Rajdhani';
            transition: 0.2s;
        }

        .custom-confirm-btn.yes {
            background: rgba(5, 255, 0, 0.15);
            color: var(--neon-green);
            border: 1px solid rgba(5, 255, 0, 0.4);
        }

        .custom-confirm-btn.no {
            background: rgba(255, 0, 60, 0.15);
            color: var(--neon-pink);
            border: 1px solid rgba(255, 0, 60, 0.4);
        }

        .custom-confirm-popup.friend-remove {
            border-top: 2px solid var(--neon-orange);
        }

        .custom-confirm-popup.friend-remove .custom-confirm-title {
            color: var(--neon-orange);
            text-shadow: 0 0 15px rgba(255, 153, 0, 0.3);
        }

        .custom-confirm-popup.friend-remove .custom-confirm-btn.yes {
            background: rgba(255, 153, 0, 0.15);
            color: var(--neon-orange);
            border-color: rgba(255, 153, 0, 0.4);
        }

        .custom-confirm-popup.match-invite {
            border-top: 2px solid var(--neon-blue);
        }

        .custom-confirm-popup.match-invite .custom-confirm-title {
            color: var(--neon-blue);
            text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
        }

        .custom-confirm-popup.match-invite .custom-confirm-btn.yes {
            background: rgba(0, 240, 255, 0.15);
            color: var(--neon-blue);
            border-color: rgba(0, 240, 255, 0.4);
        }

        .game-container {
            display: none;
            padding: 45px 15px 15px 15px;
            border-top: 4px solid var(--neon-blue);
            margin-top: 90px;
            margin-bottom: 20px;
            width: 95%;
            max-width: 480px;
            box-sizing: border-box;
        }
.modern-modal {
    background: rgba(15, 15, 25, 0.85);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 30px 20px;
    width: 92%;
    max-width: 420px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    position: relative;
    box-sizing: border-box;
    touch-action: pan-y;
    overscroll-behavior: contain;
}

.modern-modal::-webkit-scrollbar {
    width: 4px;
}

.modern-modal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.friends-modal {
    border-top: 2px solid var(--neon-blue);
}

.friends-modal-title {
    color: var(--neon-blue);
    margin: 0 0 20px 0;
    font-size: 1.8rem;
    font-weight: 900;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}

.modal-close-btn, .friends-close-btn {
    position: absolute;
    top: -15px;
    right: -10px;
    width: 38px;
    height: 38px;
    background: #1a1a2e;
    border: 2px solid #555;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    z-index: 200;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.modal-close-btn:hover, .friends-close-btn:hover {
    background: #2a2a4e;
    border-color: #fff;
    transform: scale(1.1);
}

.my-code-box {
    background: rgba(162, 0, 255, 0.08);
    border: 1px solid rgba(162, 0, 255, 0.4);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.my-code-label {
    color: #888;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.my-code-value {
    color: var(--neon-purple);
    font-size: clamp(1.5rem, 6vw, 2rem);
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(162, 0, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    word-break: break-all;
}

.my-code-copy {
    font-size: 0.8rem;
    color: #555;
    margin-top: 5px;
    font-weight: 600;
}

.add-friend-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.add-friend-input {
    flex: 1;
    min-width: 0;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    outline: none;
    text-transform: uppercase;
    box-sizing: border-box;
}

.add-friend-send-btn {
    background: var(--neon-purple);
    border: none;
    color: #fff;
    padding: 0 15px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    font-family: 'Segoe UI', system-ui, sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.friends-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}

.ftab {
    flex: 1;
    padding: 8px 2px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #888;
    font-weight: 800;
    font-size: clamp(0.7rem, 2.5vw, 0.85rem);
    cursor: pointer;
    font-family: 'Segoe UI', system-ui, sans-serif;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

.ftab.active {
    background: rgba(162, 0, 255, 0.2);
    color: #fff;
    box-shadow: inset 0 0 10px rgba(162, 0, 255, 0.5);
}

.ftab-badge {
    background: var(--neon-pink);
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 0.7rem;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.ftab-badge.show {
    display: flex;
}

.friends-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 250px;
    width: 100%;
    box-sizing: border-box;
    padding-right: 5px;
}

.friend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    flex-shrink: 0;
}


.friend-avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #444;
    flex-shrink: 0;
}

.frp-avatar {
    width: 55px !important;
    height: 55px !important;
    min-width: 55px !important;
    min-height: 55px !important;
    max-width: 55px !important;
    max-height: 55px !important;
    border-radius: 50%;
    border: 2px solid var(--neon-purple);
    object-fit: cover;
    flex-shrink: 0;
}

.clickable-profile {
    cursor: pointer;
    transition: 0.2s;
}

.clickable-profile:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.friend-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.friend-name {
    font-weight: 800;
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-family: 'Segoe UI', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-sub {
    color: #888;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.faction-btn {
    border: none;
    border-radius: 10px;
    padding: 8px 10px;
    font-weight: 800;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: 'Rajdhani';
    flex-shrink: 0;
}

.faction-btn.accept {
    background: rgba(5, 255, 0, 0.15);
    color: var(--neon-green);
    border: 1px solid rgba(5, 255, 0, 0.3);
}

.faction-btn.reject {
    background: rgba(255, 0, 60, 0.12);
    color: var(--neon-pink);
    border: 1px solid rgba(255, 0, 60, 0.3);
}

.faction-btn.remove {
    background: rgba(255, 255, 255, 0.07);
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.empty-msg {
    color: #555;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    padding: 30px 0;
    width: 100%;
}

.market-modal {
    width: 95%;
    max-width: 550px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid rgba(255, 215, 0, 0.4);
    border-radius: 35px;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.05);
    padding: 25px 20px;
}

.market-title {
    font-size: 2.8rem;
    font-weight: 900;
    text-align: center;
    background: -webkit-linear-gradient(#ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 25px 0;
    letter-spacing: 2px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
}

.market-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    padding: 10px;
    max-height: 55vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.market-grid-new::-webkit-scrollbar {
    width: 6px;
}

.market-grid-new::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 10px;
}

.power-card {
    background: rgba(30, 30, 45, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.power-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.05);
    background: rgba(40, 40, 60, 0.8);
}

.power-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 80%);
    border: 2px dashed var(--pc-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--pc-color);
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), inset 0 0 15px var(--pc-color);
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.power-card-title {
    font-size: 1rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.power-card-desc {
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 10px;
    line-height: 1.3;
    min-height: 32px;
}

.power-card-stock {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #00d2ff;
    margin-bottom: 15px;
    box-shadow: inset 0 0 10px rgba(0, 210, 255, 0.2);
}

.power-card-btn {
    width: 90%;
    padding: 10px 0;
    border-radius: 20px;
    border: none;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    color: white;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(229, 46, 113, 0.4);
    transition: 0.3s;
    font-family: 'Rajdhani', sans-serif;
}

.power-card-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(229, 46, 113, 0.7);
    filter: brightness(1.1);
}

.friend-request-popup,
.custom-confirm-popup {
    position: fixed;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 18, 28, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid var(--neon-purple);
    border-radius: 28px;
    padding: 20px 25px;
    z-index: 100000;
    display: none;
    flex-direction: column;
    gap: 15px;
    width: 92%;
    max-width: 360px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    animation: slideUpPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUpPop {
    from {
        transform: translateX(-50%) translateY(30px) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
    }
}

.frp-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

.frp-info {
    flex: 1;
    overflow: hidden;
}

.frp-title {
    color: var(--neon-purple);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.frp-name {
    color: white;
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-family: 'Segoe UI', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

