        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
            -webkit-user-drag: none;
        }
        
        body {
            background: linear-gradient(135deg, #0c0c1a 0%, #0e142b 100%);
            min-height: 100vh;
            display: flex;
            color: #fff;
            overflow-x: hidden;
            position: relative;
            touch-action: manipulation;
            overflow: hidden;
            cursor: url('img/c.png'), pointer;
        }
        
        /* Loading screen */
        #loadingScreen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            z-index: 10000;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            transition: opacity 0.8s ease, visibility 0.8s ease;
        }
        
        .loader {
            width: 120px;
            height: 120px;
            position: relative;
            margin-bottom: 30px;
        }
        
        .spinner {
            width: 100%;
            height: 100%;
            border: 10px solid rgba(255, 204, 0, 0.2);
            border-top: 10px solid #ffcc00;
            border-radius: 50%;
            animation: spin 1.5s linear infinite;
            position: absolute;
            top: 0;
            left: 0;
        }
        
        .inner-spinner {
            width: 80px;
            height: 80px;
            border: 8px solid rgba(255, 204, 0, 0.1);
            border-bottom: 8px solid #ff9900;
            border-radius: 50%;
            animation: spin-reverse 1.8s linear infinite;
            position: absolute;
            top: 20px;
            left: 20px;
        }
        
        .loading-text {
            color: #ffcc00;
            font-size: 2rem;
            font-weight: bold;
            text-shadow: 0 0 15px rgba(255, 204, 0, 0.7);
            letter-spacing: 2px;
            animation: text-pulse 1.5s infinite alternate;
        }
        
        /* Starry background */
        #starCanvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            pointer-events: none;
        }
        
        /* Falling stars effect */
        #fallingStarsCanvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            pointer-events: none;
            display: none;
        }
        
        /* Left panel */
        .left-panel {
            width: 300px;
            background: rgba(0, 0, 0, 0.9);
            border-right: 3px solid #ffcc00;
            height: 100vh;
            overflow-y: auto;
            padding: 16px;
            transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
            box-shadow: 5px 0 25px rgba(0, 0, 0, 0.7);
            z-index: 100;
            position: fixed;
            left: 0;
            top: 0;
        }
        
        .left-panel h2 {
            color: #ffcc00;
            font-size: 1.8rem;
            margin-bottom: 20px;
            text-align: center;
            margin-left: 35px;
        }
        hr{
                        border-bottom: 2px solid #ffcc00;
                        margin-bottom: 10px;

        }
        .tab-container-leaderboard {
            display: flex;
            background: rgba(0, 0, 0, 0.7);
            border-bottom: 2px solid #ffcc00;
            margin-bottom: 20px;
            border-radius: 10px 10px 0 0;
            overflow: hidden;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .tab-leaderboard {
            flex: 1;
            min-width: 80px;
            padding: 12px 0;
            cursor: url('img/c.png'), pointer;
            font-weight: bold;
            transition: all 0.3s;
            background: rgba(255, 204, 0, 0.15);
            text-align: center;
            font-size: 0.9rem;
            border: 1px solid #ffcc0040;
            border-radius: 5px;
            margin: 2px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.3);
        }
        
        .tab-leaderboard:hover {
            background: rgba(255, 204, 0, 0.25);
            transform: translateY(-2px);
        }
        
        .tab-leaderboard.active {
            background: linear-gradient(135deg, #ff9900, #ffcc00);
            color: #000;
            font-weight: 800;
            box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
            border: 1px solid #ffcc00;
        }
        
        .leaderboard-container {
            max-height: 100vh;
            overflow-y: auto;
            margin-bottom: 20px;
        }
        
        .leaderboard-table {
            width: 100%;
            border-collapse: collapse;
            border-radius: 10px;
            overflow: hidden;
            background: rgba(30, 30, 50, 0.7);
            margin-bottom: 15px;
        }
        
        .leaderboard-table th {
            background: rgba(255, 204, 0, 0.7);
            color: #000;
            padding: 10px;
            text-align: center;
            font-weight: bold;
        }
        
        .leaderboard-table td {
            padding: 8px 10px;
            text-align: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .leaderboard-table tr:nth-child(even) {
            background: rgba(50, 50, 70, 0.5);
        }
        
        .leaderboard-table tr:hover {
            background: rgba(255, 204, 0, 0.2);
        }
        
        .country-flag {
            width: 30px;
            height: 22px;
            margin-right: 5px;
            vertical-align: middle;
            border-radius: 2px;
        }
        
        .registration-panel {
            background: rgba(30, 30, 50, 0.8);
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 20px;
            border: 1px solid #ffcc00;
        }
        
        .registration-panel h3 {
            color: #ffcc00;
            margin-bottom: 15px;
            text-align: center;
        }
        
        .registration-form {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .registration-form input {
            padding: 10px;
            border-radius: 5px;
            border: 1px solid #ffcc00;
            background: rgba(0, 0, 0, 0.5);
            color: #fff;
            text-align: center;
        }
        
        .country-select-btn {
            background: linear-gradient(45deg, #ffcc00, #ff9900);
            border: none;
            color: white;
            padding: 10px;
            border-radius: 5px;
            cursor: url('img/c.png'), pointer;
            font-weight: bold;
            transition: all 0.3s;
        }
        
        .country-select-btn:hover {
            transform: scale(1.05);
        }
        
        .register-btn {
            background: linear-gradient(45deg, #00c853, #00e676);
            border: none;
            color: #000;
            padding: 10px;
            border-radius: 5px;
            cursor: url('img/c.png'), pointer;
            font-weight: bold;
            transition: all 0.3s;
            margin-top: 10px;
        }
        
        .register-btn:hover {
            transform: scale(1.05);
        }
        
        .player-info {
            background: rgba(30, 30, 50, 0.8);
            border-radius: 10px;
            padding: 15px;
            text-align: center;
            border: 1px solid #ffcc00;
            margin-bottom: 20px;
            display: none;
        }
        
        .player-info h4 {
            color: #ffcc00;
            margin-bottom: 10px;
        }
        
        .player-gold {
            font-size: 1.2rem;
            font-weight: bold;
            color: #ffcc00;
        }
        
        .panel-reset-btn {
            background: linear-gradient(45deg, #ff416c, #ff4b2b);
            border: none;
            color: white;
            padding: 12px;
            border-radius: 8px;
            cursor: url('img/c.png'), pointer;
            font-weight: bold;
            transition: all 0.3s;
            width: 100%;
            margin-top: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
        }
        
        .panel-reset-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(255, 0, 0, 0.5);
        }
        
        .refresh-btn {
            background: linear-gradient(45deg, #00c9ff, #0099ff);
            border: none;
            color: white;
            padding: 10px;
            border-radius: 8px;
            cursor: url('img/c.png'), pointer;
            font-weight: bold;
            transition: all 0.3s;
            width: 100%;
            margin-top: 5px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
        }
        
        .refresh-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(0, 200, 255, 0.5);
        }
        
        .refresh-btn:disabled {
            background: #555;
            cursor: not-allowed;
            opacity: 0.7;
        }
        
        /* Right panel */
        .right-panel {
            width: 300px;
            background: rgba(0, 0, 0, 0.9);
            border-left: 3px solid #ffcc00;
            height: 100vh;
            overflow-y: auto;
            transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
            box-shadow: -5px 0 25px rgba(0, 0, 0, 0.7);
            z-index: 100;
            position: fixed;
            right: 0;
            top: 0;
        }
        
        /* Scrollbar styling */
        .left-panel::-webkit-scrollbar, .right-panel::-webkit-scrollbar {
            width: 10px;
        }
        
        .left-panel::-webkit-scrollbar-track, .right-panel::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 10px;
        }
        
        .left-panel::-webkit-scrollbar-thumb, .right-panel::-webkit-scrollbar-thumb {
            background: linear-gradient(to bottom, #ffcc00, #ff9900);
            border-radius: 10px;
            border: 2px solid rgba(0, 0, 0, 0.5);
        }
        
        .left-panel::-webkit-scrollbar-thumb:hover, .right-panel::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(to bottom, #ff9900, #ff6600);
        }
        .volume-slider {
            width: 100vw;
            height: 12px;
            border-radius: 6px;
            outline: none;
            background: linear-gradient(to right, yellow 50%, #eee 50%);
            -webkit-appearance: none; 
            appearance: none;         
            cursor: pointer;
            transition: background-image 0.3s ease; 
        }

        .volume-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 20px;
            height: 20px;
            background: white;
            border: 2px solid #666;
            border-radius: 50%;
        }

        /* Tab styling */
        .tab-container {
            display: flex;
            background: rgba(0, 0, 0, 0.7);
            border-bottom: 2px solid #ffcc00;
            margin-bottom: 20px;
            border-radius: 10px 10px 0 0;
            overflow: hidden;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .tab {
            flex: 1;
            min-width: 80px;
            padding: 12px 0;
            cursor: url('img/c.png'), pointer;
            font-weight: bold;
            transition: all 0.3s;
            background: rgba(255, 204, 0, 0.15);
            text-align: center;
            font-size: 0.9rem;
            border: 1px solid #ffcc0040;
            border-radius: 5px;
            margin: 2px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.3);
        }
        
        .tab:hover {
            background: rgba(255, 204, 0, 0.25);
            transform: translateY(-2px);
        }
        
        .tab.active {
            background: linear-gradient(135deg, #ff9900, #ffcc00);
            color: #000;
            font-weight: 800;
            box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
            border: 1px solid #ffcc00;
        }
        
        .tab-content {
            padding: 0 10px;
            display: none;
        }
        
        .tab-content.active {
            display: block;
        }
        
        /* Main content */
        .main-content {
            flex: 1;
            min-height: 100vh;
            padding: 20px;
            margin: 0 300px;
            position: relative;
            transition: margin 0.5s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            padding-top:20px;
        }
        
        /* Panel toggle buttons for small screens */
        .panel-toggle {
            position: fixed;
            top: 20px;
            background: rgba(0, 0, 0, 0.7);
            color: #ffcc00;
            border: 2px solid #ffcc00;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            display: none;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            cursor: url('img/c.png'), pointer;
            z-index: 150;
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
            animation: pulseToggle 2s infinite;
        }   
        @media (max-width: 1200px) {
            .panel-toggle {
                display: flex;
            }
        }

        .panel-toggle:hover {
            transform: scale(1.1);
            background: #ffcc00;
            color: #000;
        }
        
        .left-toggle {
            left: 20px;
            transition: left 0.4s ease, transform 0.4s ease;
        }
        
        .right-toggle {
            right: 20px;
            transition: right 0.4s ease, transform 0.4s ease;
        }
        
  .game-header {
    position: relative;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 700px;
    z-index: 1;
    overflow: hidden;
}

/* عنصر البوردر المتحرك */
.game-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    padding: 3px;
    background: linear-gradient(270deg, #ff0000, #ff00cc, #0011ff, #3cff00);
    background-size: 600% 600%;
    z-index: -1;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    animation: moveBorder 5s linear infinite;
    box-sizing: border-box;
}
@keyframes moveBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

        h1 {
            font-size: 2.8rem;
            margin-bottom: 15px;
            color: #ffcc00;
            text-shadow: 0 0 15px rgba(255, 204, 0, 0.7);
            animation: glow 2s infinite alternate;
            font-family: 'Arial', sans-serif;
            letter-spacing: 2px;
        }
        
        .stats-container {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .stat-box {
            background: linear-gradient(45deg, #ff416c, #ff4b2b);
            border-radius: 10px;
            padding: 15px;
            min-width: 140px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
            border: 2px solid #fff;
            flex: 1;
            transition: transform 0.3s;
        }

        .gold-box {
            background: linear-gradient(45deg, #FFD700, #DAA520);
        }
        
        .stat-box:hover {
            transform: translateY(-5px);
        }
        
        .stat-label {
            font-size: 1rem;
            margin-bottom: 8px;
            color: #ffd700;
        }

        .gold-label {
            color: #000;
        }
        
        .stat-value {
            font-size: 1.8rem;
            font-weight: bold;
            color: #fff;
            text-shadow: 0 0 5px #000;
        }

        .gold-value {
            color: #000;
        }
        
        .click-container {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin: 0px 0;
            min-height: 40vh;
            width: 100%;
        }
        
        .click-area {
            width: 200px;
            height: 200px;
            position: relative;
            cursor: url('img/c.png'), pointer;
            flex-shrink: 0;
            transition: transform 0.2s;
            margin: auto auto;
        }
        
        .click-area:active {
            transform: scale(0.95);
        }
        
        .main-clicker {
            width: 100%;
            height: 100%;
            background: #ffe600;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 0 40px rgba(255, 204, 0, 0.8);
            border: 8px solid #ff9900;
            position: relative;
            overflow: hidden;
            animation: pulse 2s infinite;
            transition: all 0.2s;
        }
        
        .main-clicker img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            animation: pulse 2s infinite;
            pointer-events: none;
            -webkit-user-drag: none;
            transition: transform 0.3s;
        }
        
        .energy-full {
            box-shadow: 0 0 60px rgba(255, 204, 0, 1), 0 0 100px rgba(255, 204, 0, 0.7) !important;
            animation: energyPulse 0.8s infinite alternate;
        }
        
        .click-effect {
            position: absolute;
            width: 60px;
            height: 60px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 50%;
            pointer-events: none;
            animation: pop 0.5s forwards;
        }
        
        .panel-section {
            margin-bottom: 25px;
        }
        
        .panel-section h3 {
            color: #ffcc00;
            margin-bottom: 15px;
            font-size: 1.5rem;
            padding-bottom: 10px;
            border-bottom: 1px solid #ffcc00;
            text-align: center;
        }
        
        /* Upgrades styling */
        .upgrades-container {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .upgrade-item {
            background: rgba(30, 30, 50, 0.8);
            border-radius: 10px;
            padding: 15px;
            border: 1px solid #444;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .upgrade-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
            border-color: #ffcc00;
            background: rgba(40, 40, 60, 0.9);
        }
        
        .upgrade-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #ff9900, #ffcc00);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 0 auto 15px;
            font-size: 1.8rem;
            color: #000;
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        }

        .gold-upgrade .upgrade-icon {
            background: linear-gradient(135deg, #FFD700, #DAA520);
        }

        .critical-upgrade .upgrade-icon {
            background: linear-gradient(135deg, #ff0000, #ff6600);
        }

        .energy-upgrade .upgrade-icon {
            background: linear-gradient(135deg, #00ccff, #0066ff);
        }
        
        .upgrade-info {
            text-align: center;
            width: 100%;
        }
        
        .upgrade-info h4 {
            color: #ffcc00;
            margin-bottom: 8px;
            font-size: 1.2rem;
            min-height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .gold-upgrade .upgrade-info h4 {
            color: #FFD700;
        }

        .critical-upgrade .upgrade-info h4 {
            color: #ff6600;
        }

        .energy-upgrade .upgrade-info h4 {
            color: #00ccff;
        }
        
        .upgrade-info p {
            font-size: 0.95rem;
            color: #ddd;
            margin-bottom: 10px;
            min-height: 40px;
        }
        
        .upgrade-cost {
            background: linear-gradient(45deg, #ff416c, #ff4b2b);
            padding: 8px 15px;
            border-radius: 20px;
            font-weight: bold;
            display: inline-block;
            margin: 5px 0;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
        }

        .gold-upgrade .upgrade-cost {
            background: linear-gradient(45deg, #FFD700, #DAA520);
            color: #000;
        }

        .critical-upgrade .upgrade-cost {
            background: linear-gradient(45deg, #ff0000, #ff6600);
        }

        .energy-upgrade .upgrade-cost {
            background: linear-gradient(45deg, #00ccff, #0066ff);
        }
        
        .upgrade-quantity {
            background: rgba(0, 200, 83, 0.3);
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 0.9rem;
            margin-top: 5px;
            font-weight: bold;
            color: #fff;
            text-shadow: 0 0 3px rgba(0,0,0,0.5);
        }

        .gold-upgrade .upgrade-quantity {
            background: rgba(255, 215, 0, 0.3);
        }

        .critical-upgrade .upgrade-quantity {
            background: rgba(255, 102, 0, 0.3);
        }

        .energy-upgrade .upgrade-quantity {
            background: rgba(0, 204, 255, 0.3);
        }
        
        .buy-btn {
            background: linear-gradient(45deg, #00c853, #00e676);
            border: none;
            color: white;
            padding: 10px 15px;
            border-radius: 30px;
            cursor: url('img/c.png'), pointer;
            font-weight: bold;
            transition: all 0.3s;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            width: 100%;
            margin-top: 15px;
            font-size: 1rem;
            letter-spacing: 1px;
            border: 2px solid #fff;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .buy-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.2);
            transition: all 0.4s ease;
            z-index: -1;
        }

        .buy-btn:hover::before {
            left: 0;
        }

        .buy-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 7px 20px rgba(0, 200, 83, 0.5);
        }

        .gold-upgrade .buy-btn {
            background: linear-gradient(45deg, #FFD700, #DAA520);
            color: #000;
        }

        .critical-upgrade .buy-btn {
            background: linear-gradient(45deg, #ff0000, #ff6600);
        }

        .energy-upgrade .buy-btn {
            background: linear-gradient(45deg, #00ccff, #0066ff);
        }
        
        .gold-upgrade .buy-btn:hover {
            box-shadow: 0 7px 20px rgba(255, 215, 0, 0.5);
        }

        .critical-upgrade .buy-btn:hover {
            box-shadow: 0 7px 20px rgba(255, 102, 0, 0.5);
        }

        .energy-upgrade .buy-btn:hover {
            box-shadow: 0 7px 20px rgba(0, 204, 255, 0.5);
        }
        
        .buy-btn:disabled {
            background: #555;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
            color: #aaa;
        }
        
        .skins-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 15px;
            margin-top: 15px;
        }
        
        .skin-item {
            background: rgba(30, 30, 50, 0.8);
            border-radius: 10px;
            padding: 15px;
            display: flex;
            flex-direction: column;
            align-items: center;
            border: 2px solid #444;
            transition: all 0.3s;
            cursor: url('img/c.png'), pointer;
            position: relative;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }
        
        .skin-item:hover {
            transform: scale(1.05);
            border-color: #ffcc00;
            box-shadow: 0 8px 20px rgba(255, 204, 0, 0.3);
        }
        
        .skin-item.selected {
            border-color: #00ff00;
            box-shadow: 0 0 20px rgba(0, 255, 0, 0.7);
            transform: scale(1.05);
        }
        
        .skin-item.locked {
            filter: grayscale(100%);
            cursor: not-allowed;
        }
        
        .skin-item.locked:after {
            content: "\f023";
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 2.5rem;
            color: #ff0000;
            text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
        }
        
        .skin-image {
            width: 100px;
            height: 100px;
            background: #222;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 10px;
            overflow: hidden;
            border: 3px solid #ffcc00;
        }
        
        .skin-image img {
            width: 100px;
            height: 100px;
            object-fit: cover;
            border-radius: 50%;
            -webkit-user-drag: none;
            pointer-events: none;
        }
        
        .skin-name {
            font-weight: bold;
            font-size: 1rem;
            color: #ffcc00;
            text-align: center;
        }
        
        .skin-level {
            font-size: 0.85rem;
            color: #ddd;
            margin-top: 5px;
        }
        
        .floating-points {
            position: absolute;
            color: #00ff00;
            font-weight: bold;
            font-size: 1.5rem;
            pointer-events: none;
            animation: float-up 1.5s forwards;
            text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
            z-index: 50;
        }

        .floating-gold {
            color: #fffb00;
        }

        .floating-critical {
            color: #ff0000;
            font-size: 2rem;
            animation: float-up 1.5s forwards, pulseCritical 0.5s infinite alternate;
        }
        
        .notification {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%) translateY(-100px);
            background: linear-gradient(45deg, #ff416c, #ff4b2b);
            color: white;
            padding: 18px 30px;
            border-radius: 15px;
            font-weight: bold;
            font-size: 1.1rem;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
            transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
            z-index: 1000;
            border: 2px solid #fff;
            max-width: 350px;
            text-align: center;
            opacity: 0;
        }

        .gold-notification {
            background: linear-gradient(45deg, #FFD700, #DAA520);
            color: #000;
        }

        .critical-notification {
            background: linear-gradient(45deg, #ff0000, #ff6600);
        }
        
        .notification.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
        
        /* Energy bar - RED GLOW WHEN FULL */
        .energy-container {
            position: fixed;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 600px;
            background: rgba(0, 0, 0, 0.7);
            border: 3px solid #ffae00;
            border-radius: 30px;
            padding: 4px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
            z-index: 90;
        }
        
        .energy-bar-container {
            height: 30px;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 15px;
            overflow: hidden;
            position: relative;
        }
        
        .energy-bar {
            height: 100%;
            background: linear-gradient(90deg, #00c9ff, #92fe9d);
            width: 0%;
            transition: width 0.5s ease-out;
        }
        
        .energy-bar.full {
            background: linear-gradient(90deg, #ff0000, #ff5500, #ffaa00);
            animation: energyGlow 1s infinite alternate;
            box-shadow: 0 0 15px rgba(255, 85, 0, 0.8);
        }
        
        .energy-text {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: #fff;
            text-shadow: 0 0 5px #000;
        }
        
        .energy-multiplier {
            position: absolute;
            top: -40px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            color: #ffcc00;
            padding: 8px 20px;
            border-radius: 20px;
            font-weight: bold;
            font-size: 1.2rem;
            border: 2px solid #ffcc00;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
            display: none;
        }
        
        /* Click particles */
        .click-particle {
            position: absolute;
            width: 15px;
            height: 15px;
            border-radius: 50%;
            pointer-events: none;
            z-index: 20;
            animation: particle-move 1s forwards;
        }
        
        /* Full energy bonus effect */
        .energy-bonus {
            position: absolute;
            top: -70px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 15px;
            opacity: 0;
            transition: opacity 0.3s;
        }
        
        .energy-bonus.visible {
            opacity: 1;
        }
        
        .double-points {
            background: linear-gradient(45deg, #ff416c, #ff4b2b);
            padding: 10px 20px;
            border-radius: 10px;
            font-weight: bold;
            font-size: 1.2rem;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        }
        
        .gold-icon {
            background: linear-gradient(45deg, #FFD700, #DAA520);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            animation: shine 1.5s infinite;
            box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
        }
        
        /* Reset confirmation modal */
        .reset-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
        }
        
        .reset-modal.active {
            opacity: 1;
            pointer-events: all;
        }
        
        .reset-modal-content {
            background: rgba(30, 30, 50, 0.95);
            border: 3px solid #ff0000;
            border-radius: 20px;
            padding: 30px;
            max-width: 500px;
            width: 90%;
            text-align: center;
            box-shadow: 0 15px 35px rgba(255, 0, 0, 0.3);
        }
        
        .reset-modal h2 {
            color: #ff0000;
            margin-bottom: 20px;
            font-size: 1.8rem;
        }
        
        .reset-modal p {
            font-size: 1.1rem;
            margin-bottom: 30px;
            color: #ddd;
            line-height: 1.6;
        }
        
        .reset-modal-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
        }
        
        .reset-confirm {
            background: linear-gradient(45deg, #ff0000, #ff6600);
            border: none;
            color: white;
            padding: 12px 30px;
            border-radius: 30px;
            font-weight: bold;
            cursor: url('img/c.png'), pointer;
            font-size: 1.1rem;
            transition: all 0.3s;
        }
        
        .reset-confirm:hover {
            transform: scale(1.05);
            box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
        }
        
        .reset-cancel {
            background: linear-gradient(45deg, #555, #777);
            border: none;
            color: white;
            padding: 12px 30px;
            border-radius: 30px;
            font-weight: bold;
            cursor: url('img/c.png'), pointer;
            font-size: 1.1rem;
            transition: all 0.3s;
        }
        
        .reset-cancel:hover {
            transform: scale(1.05);
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
        }
        
        /* Country selection modal */
        .country-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
        }
        
        .country-modal.active {
            opacity: 1;
            pointer-events: all;
        }
        
        .country-modal-content {
            background: rgba(30, 30, 50, 0.95);
            border: 3px solid #ffcc00;
            border-radius: 20px;
            padding: 20px;
            max-width: 600px;
            width: 90%;
            max-height: 80vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        
        .country-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid #ffcc00;
        }
        
        .country-modal-header h2 {
            color: #ffcc00;
        }
        
        .close-modal {
            background: none;
            border: none;
            color: #ffcc00;
            font-size: 1.5rem;
            cursor: url('img/c.png'), pointer;
            transition: all 0.3s;
        }
        
        .close-modal:hover {
            transform: scale(1.2);
        }
        
        .country-search {
            padding: 12px 15px;
            border-radius: 30px;
            border: 2px solid #ffcc00;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            font-size: 1rem;
            margin-bottom: 20px;
            text-align: center;
        }
        
        .country-search:focus {
            outline: none;
            box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
        }
        
        .countries-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 15px;
            overflow-y: auto;
            padding: 5px;
        }
        
        .country-item {
            background: rgba(40, 40, 60, 0.7);
            border-radius: 10px;
            padding: 15px 10px;
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: url('img/c.png'), pointer;
            transition: all 0.3s;
            border: 1px solid transparent;
        }
        
        .country-item:hover {
            transform: scale(1.05);
            border-color: #ffcc00;
            background: rgba(50, 50, 70, 0.9);
        }
        
        .country-flag-large {
            width: 60px;
            height: 40px;
            border-radius: 5px;
            margin-bottom: 10px;
            object-fit: cover;
            border: 2px solid #ffcc00;
        }
        
        .country-name {
            font-size: 0.9rem;
            text-align: center;
        }
        
        /* Loading spinner */
        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255,255,255,.3);
            border-radius: 50%;
            border-top-color: #1900ff;
            border-right-color: #ff0000;
            border-left-color: #fbff00;
            border-bottom-color: #ffae00;
            animation: spin 0.3s ease-in-out infinite;
            margin-left: 10px;
            vertical-align: middle;
        }
        
        /* Ad button */
        .ad-button {
            background: linear-gradient(45deg, #ff00cc, #cc00ff);
            border: none;
            color: white;
            padding: 12px 24px;
            border-radius: 30px;
            font-weight: bold;
            font-size: 1rem;
            cursor: url('img/c.png'), pointer;
            transition: all 0.3s;
            margin-top: 1px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
            position: relative;
            overflow: hidden;
            z-index: 1;
            border: 2px solid #fff;
            animation: adButtonGlow 2s infinite alternate;
        }
        
        .ad-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.2);
            transition: all 0.4s ease;
            z-index: -1;
        }

        .ad-button:hover::before {
            left: 0;
        }
        
        .ad-button:hover {
            transform: scale(1.02);
            box-shadow: 0 7px 20px rgba(204, 0, 255, 0.7);
        }
        
        .ad-button:active {
            transform: scale(0.98);
        }
    
        /* Privacy icon */
        #privacy-icon {
            position: fixed;
            font-size: 25px;
            background: #444;
            color: white;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            text-align: center;
            line-height: 40px;
            box-shadow: 0 0 8px rgba(255,255,255,0.2);
            transition: 0.3s;
            z-index: 999;
            margin: 0px;
        }

        #privacy-icon:hover {
            background: #666;
        }

        #privacy-popup {
            position: fixed;
            background: #fff;
            color: #000;
            padding: 20px;
            width: 250px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
            display: none;
            z-index: 1000;
        }

        #privacy-popup h3 {
            margin-top: 0;
            font-size: 16px;
            margin-bottom: 8px;
        }

        #privacy-popup p {
            font-size: 14px;
            line-height: 1.4;
        }
        
        /* CrazyGames SDK Controls */
        .sdk-controls-container {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 15px;
        }
        
        .sdk-btn {
            background: linear-gradient(45deg, #6a11cb, #2575fc);
            border: none;
            color: white;
            padding: 12px;
            border-radius: 8px;
            cursor: url('img/c.png'), pointer;
            font-weight: bold;
            text-align: center;
            font-size: 0.9rem;
            transition: all 0.3s;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        }
        
        .sdk-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
        }
        
        .sdk-btn.orange {
            background: linear-gradient(45deg, #ff8c00, #ff5500);
        }
        
        .sdk-btn.green {
            background: linear-gradient(45deg, #00c853, #009688);
        }
        
        .sdk-btn.purple {
            background: linear-gradient(45deg, #9c27b0, #673ab7);
        }
        
        .sdk-section {
            background: rgba(30, 30, 50, 0.8);
            border-radius: 10px;
            padding: 15px;
            margin-top: 20px;
            border: 1px solid #ffcc00;
        }
        
        .sdk-section h4 {
            color: #ffcc00;
            margin-bottom: 15px;
            text-align: center;
        }
        
        /* Leaderboard highlight */
        .leaderboard-table tr.highlight-player {
            background: linear-gradient(45deg, rgba(255, 204, 0, 0.3), rgba(255, 215, 0, 0.2)) !important;
            animation: playerHighlight 2s ease-in-out;
        }
        
        @keyframes playerHighlight {
            0% { background-color: rgba(255, 204, 0, 0.1); }
            50% { background-color: rgba(255, 204, 0, 0.4); }
            100% { background-color: rgba(255, 204, 0, 0.2); }
        }
        
        .leaderboard-table tr.player-updated td {
            animation: goldUpdate 1.5s ease-in-out;
        }
        
        @keyframes goldUpdate {
            0% { color: #ffcc00; transform: scale(1); }
            50% { color: #fffb00; transform: scale(1.1); }
            100% { color: #fff; transform: scale(1); }
        }
        
        /* Volume control */
        .volume-control-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 20px;
            padding: 15px;
            background: rgba(30, 30, 50, 0.8);
            border-radius: 15px;
            border: 1px solid #ffcc00;
        }
        
        .volume-control-title {
            color: #ffcc00;
            margin-bottom: 10px;
            font-size: 1.2rem;
            text-align: center;
        }
        
        .volume-slider-container {
            display: flex;
            align-items: center;
            width: 100%;
            gap: 10px;
        }
        
        .volume-icon {
            font-size: 1.5rem;
            color: #ffcc00;
            width: 30px;
            text-align: center;
        }
        
        /* Banner ad container */
        .banner-container {
            position: fixed;
            bottom: 70px;
            left: 0;
            width: 100%;
            height: 90px;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 80;
            background: rgba(0, 0, 0, 0.7);
            border-top: 2px solid #ffcc00;
        }
        
        .banner-ad {
            width: 728px;
            height: 90px;
            background: rgba(50, 50, 70, 0.9);
            border: 1px solid #ffcc00;
            border-radius: 8px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #ffcc00;
            font-weight: bold;
            font-size: 1.2rem;
        }
        
        /* Animations */
        @keyframes pulse {
            0% { transform: scale(1); box-shadow: 0 0 40px rgba(255, 204, 0, 0.8); }
            50% { transform: scale(1.05); box-shadow: 0 0 60px rgba(255, 204, 0, 1); }
            100% { transform: scale(1); box-shadow: 0 0 40px rgba(255, 204, 0, 0.8); }
        }
        
        @keyframes energyPulse {
            0% { box-shadow: 0 0 40px rgba(255, 204, 0, 0.8); }
            100% { box-shadow: 0 0 70px rgba(255, 204, 0, 1); }
        }
        
        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-20px); }
        }
        
        @keyframes glow {
            0% { text-shadow: 0 0 10px rgba(255, 204, 0, 0.5); }
            100% { text-shadow: 0 0 25px rgba(255, 204, 0, 0.9), 0 0 40px rgba(255, 204, 0, 0.7); }
        }
        
        @keyframes pop {
            0% { transform: scale(0.5); opacity: 1; }
            100% { transform: scale(3); opacity: 0; }
        }
        
        @keyframes float-up {
            0% { transform: translateY(0); opacity: 1; }
            100% { transform: translateY(-150px); opacity: 0; }
        }
        
        @keyframes pulseToggle {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(255, 204, 0, 0.8); }
            100% { transform: scale(1); }
        }
        
        @keyframes unlock {
            0% { transform: scale(1); box-shadow: 0 0 0 rgba(0, 255, 0, 0.5); }
            50% { transform: scale(1.2); box-shadow: 0 0 30px rgba(0, 255, 0, 1); }
            100% { transform: scale(1); box-shadow: 0 0 0 rgba(0, 255, 0, 0.5); }
        }
        
        @keyframes pulseCritical {
            0% { text-shadow: 0 0 5px rgba(255, 0, 0, 0.5); }
            100% { text-shadow: 0 0 15px rgba(255, 0, 0, 0.9); }
        }
        
        @keyframes particle-move {
            0% { 
                transform: translate(0, 0) scale(1);
                opacity: 1;
            }
            100% { 
                transform: translate(var(--tx), var(--ty)) scale(0);
                opacity: 0;
            }
        }
        
        @keyframes energyGlow {
            0% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.5); }
            100% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.9), 0 0 30px rgba(255, 85, 0, 0.7); }
        }
        
        @keyframes shine {
            0% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
            50% { transform: scale(1.1); box-shadow: 0 0 25px rgba(255, 215, 0, 0.9); }
            100% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        @keyframes spin-reverse {
            to { transform: rotate(-360deg); }
        }
        
        @keyframes text-pulse {
            0% { opacity: 0.7; transform: scale(0.95); }
            100% { opacity: 1; transform: scale(1.05); }
        }
        
        @keyframes falling-star {
            0% {
                transform: translateY(-10px) translateX(0);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                transform: translateY(100vh) translateX(20px);
                opacity: 0;
            }
        }
        
        @keyframes adButtonGlow {
            0% { box-shadow: 0 0 10px rgba(204, 0, 255, 0.5); }
            100% { box-shadow: 0 0 20px rgba(204, 0, 255, 0.9), 0 0 30px rgba(255, 0, 255, 0.7); }
        }
        
        /* Responsive Design */
        @media (max-width: 1200px) {
            .left-panel, .right-panel {
                transform: translateX(-100%);
            }
            
            .right-panel {
                transform: translateX(100%);
            }
            
            .left-panel.active {
                transform: translateX(0);
            }
            
            .right-panel.active {
                transform: translateX(0);
            }
            
            .main-content {
                margin: 0 20px;
            }
            
            /* Adjusted toggle button positions */
            .left-toggle {
                left: 10px;
            }
            
            .right-toggle {
                right: 10px;
            }
            
            .left-toggle.active {
                left: 310px;
            }
            
            .right-toggle.active {
                right: 310px;
            }
        }
        
        @media (min-width: 1201px) {
            .panel-toggle {
                display: none !important;
            }
        }
        
        @media (max-width: 768px) {
            .main-content {
                padding: 80px 10px 100px;
                justify-content: flex-start;
                padding-top: 15vh;
            }
            
            h1 {
                font-size: 2.2rem;
            }
            
            .click-area {
                width: 250px;
                height: 250px;
            }
            
            .stat-box {
                min-width: 120px;
                padding: 12px;
            }
            
            .stat-value {
                font-size: 1.5rem;
            }
            
            .skins-container {
                grid-template-columns: repeat(2, 1fr);
            }
            
            /* حل مشكلة دائرة النقر على الهاتف */
            .click-area {
                touch-action: manipulation;
                -webkit-tap-highlight-color: rgba(0,0,0,0);
                z-index: 0;
            }
            .main-clicker {
                pointer-events: auto;
            }
            
            .banner-container {
                height: 50px;
                bottom: 60px;
            }
            
            .banner-ad {
                width: 320px;
                height: 50px;
                font-size: 0.9rem;
            }
        }
        
        @media (max-width: 480px) {
            h1 {
                font-size: 1.8rem;
            }
            
            .click-area {
                width: 220px;
                height: 220px;
            }
            
            .left-panel, .right-panel {
                width: 280px;
            }
            
            .stat-box {
                min-width: 100px;
                padding: 10px;
            }
            
            .stat-label {
                font-size: 0.9rem;
            }
            
            .stat-value {
                font-size: 1.4rem;
            }
            
            /* Adjusted toggle button positions */
            .left-toggle {
                left: 5px;
            }
            
            .right-toggle {
                right: 5px;
            }
            
            .left-toggle.active {
                left: 285px;
            }
            
            .right-toggle.active {
                right: 285px;
            }
        }
.current-player {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    font-weight: bold;
}

.current-player td {
    border-bottom: 2px solid rgb(255, 0, 0);
    border-top: 2px solid rgb(255, 0, 0);

}

.current-country {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(17, 153, 142, 0.5);
}

.current-country td {
    border: 2px solid #38ef7d;
}