@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@500&display=swap');

html, body {
    padding: 0;
    margin: 0;
    overflow: hidden;
    overflow-x: hidden;
    -webkit-text-size-adjust: none;
    width: 100%;
    height: 100%;
    position: fixed;
    color: #ffffff;
    font-family: Ubuntu;
}
input[type=checkbox] {
    cursor: pointer;
}


#overlays, #connecting {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 200;
}
#connecting {
    z-index: 100;
}
#connecting-content {
    width: 350px;
    background-color: #fff;
    margin: 100px auto;
    border-radius: 15px;
    padding: 5px 15px;
}
#title {
    padding: 10px;
}
#nick {
    width: 100%;
    background:#333;
    color:#999;
    border:0px solid #333;
    font-family: Ubuntu;
    font-weight:bold;
    height:35px;
    border-radius:7px;
    padding:10px;
}
#skin {
    width: 33%;
    float: right;
}
#nick, #skin {
    display: inline;
}
#gamemode {
    margin-top: 5px;
    width: 100%;
}

#gLogo{
  height:110px;
}

/* Old leftBox style removed - replaced with new layout */

#helloDialog {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Old rightBox style removed - replaced with new layout */

/* Chat Container */
#chat-container {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 1;
    background: rgba(0, 0, 0, .2);
    border-radius: 4px;
    padding: 2px;
    transition: all .5s ease-in-out;
    min-width: 300px;
}

/* Chat Tabs */
.chat-tabs {
    display: flex;
    background: rgba(0, 0, 0, .3);
    border-radius: 4px 4px 0 0;
    margin-bottom: 2px;
}

.chat-tab {
    flex: 1;
    padding: 6px 12px;
    text-align: center;
    cursor: pointer;
    color: #999;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.chat-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.chat-tab.active {
    color: #00ffff;
    border-bottom-color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
}

.chat-tab.disabled {
    color: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Chat Messages Container */
.chat-messages-container {
    background: rgba(0, 0, 0, .3);
    border-radius: 0 0 4px 4px;
    margin-bottom: 2px;
    position: relative;
}

.chat-messages-wrapper {
    max-height: 150px;
    overflow-y: auto;
    direction: rtl; /* Scrollbar'ı sol tarafa taşır */
}

.chat-messages {
    display: none;
    padding: 8px;
    min-height: 25px;
    font-size: 16px;
    color: #fff;
    line-height: 1.4;
    direction: ltr; /* Mesajları normal yönde gösterir */
    text-align: left;
}

.chat-messages.active {
    display: block;
}

.chat-messages .message {
    margin-bottom: 4px;
    word-wrap: break-word;
    font-size: 16px;
}

.chat-messages .message.party {
    color: #00ffff;
}

.chat-messages .message.private {
    color: #ff6b6b;
}

.chat-messages .message.public {
    color: #fff;
}

.chat-messages .message .player-name {
    font-weight: bold;
    font-size: 15px;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.15);
    filter: brightness(1.1);
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.chat-messages .message .player-name .role-icon {
    margin-right: 4px;
    font-size: 16px;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

.chat-messages .message .player-name .role-icon-image {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    display: inline-block;
    vertical-align: middle;
    border-radius: 2px;
}

.chat-messages .message .message-text {
    color: #fff;
    font-size: 15px;
}

/* Custom scrollbar styling - applied to wrapper */
.chat-messages-wrapper::-webkit-scrollbar {
    width: 8px;
}

.chat-messages-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.chat-messages-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.chat-messages-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.6);
}

.chat-messages-wrapper::-webkit-scrollbar-thumb:active {
    background: rgba(0, 255, 255, 0.8);
}

/* Firefox scrollbar styling */
.chat-messages-wrapper {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 255, 0.3) rgba(0, 0, 0, 0.3);
}

/* Chat Input Container */
.chat-input-container {
    display: flex;
    align-items: center;
}

#chat_textbox {
    transition: all .5s ease-in-out;
    position: relative;
    z-index: 1;
    background: transparent;
    border: 0px;
    outline: none;
    color: #fff;
    height: 30px;
    text-indent: 12px;
    width: 375px;
    font-family: "Ubuntu";
    margin-right: 5px;
}
#chat_textbox:focus {
    background: rgba(0, 0, 0, .5);
}

/* Chat container focus state */
#chat-container:focus-within {
    background: rgba(0, 0, 0, .4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Shout Modal - Site Tema Uyumlu */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: rgba(15, 15, 15, 0.7);
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 15px;
    padding: 0;
    width: 500px;
    max-width: 90%;
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.modal-header {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(0, 128, 255, 0.3));
    color: #00ffff;
    padding: 15px 20px;
    border-radius: 13px 13px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

.modal-close-btn {
    background: rgba(255, 68, 68, 0.8);
    border: 1px solid rgba(255, 68, 68, 0.6);
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.modal-close-btn:hover {
    background: rgba(255, 68, 68, 1);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.6);
}

.modal-body {
    padding: 25px;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.mega-message {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-family: "Ubuntu", sans-serif;
    font-size: 16px;
    resize: vertical;
    outline: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    text-align: left;
    display: block;
    margin: 0;
    box-sizing: border-box;
    position: relative;
    left: 0;
    right: 0;
}

.mega-message:focus {
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.6);
}

.mega-message::placeholder {
    color: rgba(0, 255, 255, 0.6);
    font-style: italic;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: "Ubuntu", sans-serif;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.8), rgba(0, 128, 255, 0.8));
    color: #000;
    border: 1px solid rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 1), rgba(0, 128, 255, 1));
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(0, 255, 255, 0.5);
    color: #000;
}

.btn-secondary {
    background: rgba(95, 95, 95, 0.8);
    color: #ffffff;
    border: 1px solid rgba(95, 95, 95, 0.6);
}

.btn-secondary:hover {
    background: rgba(115, 115, 115, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Shout Display - Site Tema Uyumlu */
#shoutHolder {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 998;
}

#shoutDisplay {
    position: fixed;
    top: 20px;
    right: 10px;
    width: 450px;
    background: rgba(25, 25, 25, 0.9);
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 15px;
    padding: 20px;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    pointer-events: auto;
}

.shout-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.shout-player {
    display: flex;
    align-items: center;
    gap: 15px;
}

#shoutCellWidget {
    position: relative;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    overflow: visible; /* Allow wearables and mega-name to render outside the circle */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none; /* Use external ring via box-shadow to avoid shrinking content */
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.35), 0 0 15px rgba(0, 255, 255, 0.25);
    background: var(--cell-color, #ffffff);
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

/* Shout wearable styling (like context menu .ux-player-wear) */
#shoutCellWidget .wear-example {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%; /* Slightly larger like context menu */
    height: 120%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 10;
    display: none; /* Hidden by default */
}

.mega-name {
    font-weight: bold;
    font-size: 16px;
    margin: 0;
    color: #00ffff;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    display: inline-block;
    box-sizing: border-box;
}

#shoutMessage {
    font-size: 15px;
    color: #ffffff;
    margin: 0;
    margin-top: 30px;
    margin-left: 85px;
    line-height: 1.5;
    word-wrap: break-word;
    max-width: 300px;
    overflow-wrap: break-word;
    word-break: break-word;
    display: block;
    box-sizing: border-box;
    overflow: hidden;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

#shoutThumbsBar {
    position: absolute;
    bottom: -25px;
    right: -20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 24px;
    pointer-events: auto;
    border-radius: 0;
}

.thumbBtn {
    cursor: pointer;
    font-size: 20px;
    color: #00ffff;
    user-select: none;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 0;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.thumbBtn:hover {
    transform: scale(1.2);
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.thumbBtn.voted {
    background: rgba(0, 255, 0, 0.3);
    border: 2px solid #00ff00;
}

.thumbBtn.voted.down {
    background: rgba(255, 0, 0, 0.3);
    border: 2px solid #ff0000;
}

.thumbCount {
    margin-left: 5px;
    font-weight: bold;
    font-size: 16px;
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

/* Emoji Button */
#emoji-btn {
    background: rgba(0, 0, 0, .3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    font-size: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
}

#emoji-btn:hover {
    background: rgba(0, 0, 0, .5);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

#emoji-btn:active {
    transform: scale(0.95);
    background: rgba(0, 0, 0, .7);
}

/* Animation Button (same style as emoji button) */
#anim-btn {
    background: rgba(0, 0, 0, .3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    font-size: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
}

#anim-btn:hover {
    background: rgba(0, 0, 0, .5);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

#anim-btn:active {
    transform: scale(0.95);
    background: rgba(0, 0, 0, .7);
}

/* Dropdown Content */
.dropdown-content {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    margin-bottom: 5px;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content span {
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin: 2px;
}

.dropdown-content span:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.unselectable {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
#footer {
    text-align: center;
    margin-bottom: 10px;
    margin-top: -10px;
}
/* Old play-btn and spectate-btn styles removed - replaced with new layout styles */

.tooltip {
    visibility: hidden;
    width: 80px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -40px;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Context Menu */
.ux-menu {
    position: fixed;
    min-width: 220px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    z-index: 1;
}
.ux-menu-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}
.ux-menu hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 6px 0;
}

#uxPlayerInfo {
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 8px;
}

#uxPlayerCell {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
    margin: 0 auto 8px;
    border: 2px solid rgba(0, 255, 255, 0.5);
    overflow: visible; /* Wearable'ın cell dışında gözükmesi için (leaderboard gibi) */
}

#uxPlayerSkin {
    width: 100%;
    height: 100%;
    border-radius: 50%; /* Skin'i circle içinde clip etmek için */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden; /* Skin'i circle içinde tutmak için */
}

.ux-player-wear {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%; /* Slightly larger like leaderboard (cellRadius * 2.4) */
    height: 120%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 10;
}

#uxPlayerName {
    text-align: center;
    margin: 0;
    font-size: 14px;
    color: #e6f7ff;
    font-weight: bold;
}

/* Party Invite Box */
.party-invite-box {
    position: fixed;
    top: 15%;
    left: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 8px;
    padding: 12px;
    z-index: 10;
    min-width: 200px;
    max-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.party-invite-content {
    text-align: center;
}

.party-invite-title {
    color: #e6f7ff;
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 6px 0;
}

.party-invite-message {
    color: #b3d9ff;
    font-size: 12px;
    margin: 0 0 6px 0;
}

.party-invite-timer {
    color: #ff6b6b;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    margin: 0 0 10px 0;
    font-family: 'Courier New', monospace;
}

.party-invite-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.party-invite-buttons .btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.party-invite-buttons .btn-success {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border: 1px solid rgba(0, 255, 0, 0.3);
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: bold;
}

.party-invite-buttons .btn-success:hover {
    transform: scale(1.05);
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
    color: #00ff00;
}

.party-invite-buttons .btn-danger {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    border: 1px solid rgba(255, 0, 0, 0.3);
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: bold;
}

.party-invite-buttons .btn-danger:hover {
    transform: scale(1.05);
    background: rgba(255, 0, 0, 0.2);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
    color: #ff0000;
}

/* Party Panel */
.party-panel {
    position: fixed;
    top: 15%;
    left: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 8px;
    padding: 12px;
    z-index: 10;
    min-width: 200px;
    max-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.party-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.party-title {
    color: #e6f7ff;
    font-size: 15px;
    font-weight: bold;
}

.party-leave-btn {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    border: 1px solid rgba(255, 0, 0, 0.3);
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.party-leave-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 0, 0, 0.2);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
    color: #ff0000;
}

.party-members {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.party-member {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: #b3d9ff;
    font-size: 13px;
}

.party-member.leader {
    background: rgba(255, 255, 255, 0.05);
    border: none;
}

.party-member-name {
    flex: 1;
}

.party-member-actions {
    display: flex;
    gap: 4px;
}

.party-kick-btn {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    border: 1px solid rgba(255, 0, 0, 0.3);
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.party-kick-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 0, 0, 0.2);
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
    color: #ff0000;
}

.party-kick-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.ux-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #e6f7ff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.05s ease;
}
.ux-item p { margin: 0; }
.ux-item .ux-icon { width: 18px; text-align: center; opacity: 0.9; }
.ux-item:hover {
    background: rgba(0, 255, 255, 0.12);
}
.ux-item:active { transform: scale(0.99); }
.ux-item.ux-has-sub::after { content: ''; }
.ux-right { margin-left: auto; opacity: 0.6; }

#play-btn:hover .tooltip,
#spectate-btn:hover .tooltip {
    visibility: visible;
    opacity: 1;
}
#gallery-btn {
    margin-bottom: 5px;
    display: block; /* Visible when skins are loaded */
     background:cyan;
    border:2px solid cyan;
    border-radius:7px;
    height:30px;
}
#touchpad, #touchCircle, #splitBtn, #ejectBtn {
    position: fixed;
}
#touchpad, #splitBtn, #ejectBtn {
    z-index: 2;
}
#touchpad {
    background: #000;
    opacity: 0.3;
    width: 20vw;
    height: 20vh;
    left: 0;
    bottom: 0;
}
#touchCircle {
    width: 4vw;
    height: 4vw;
    border-radius: 2vw;
    background: #f00;
    opacity: 0.3;
    z-index: 3;
}
#splitBtn, #ejectBtn {
    width: 8vw;
    height: 8vw;
    border-radius: 4vw;
    background: #777;
    opacity: 0.5;
}
#splitBtn {
    right: 18vw;
    bottom: 0;
}
#ejectBtn {
    bottom: 18vw;
    right: 0;
}
#playSounds:checked + #soundsVolume {
    display: inline;
}
#soundsVolume {
    display: none;
    width: 100px;
    height: 18px;
    padding: 0; /* IE fix */
    vertical-align: middle;
}
#settings label {
    margin-right: 10px;
    user-select: none;
    width: 90%;

}
 
#settings {
  display:none;
  border-radius:7px;
  height:450px;
}

.newBtn {
  background:#000000;
  border:2px solid #000000;
  border-radius:7px;
  height:30px;
}

#hideSet {
  display: none;
}

.infoUls {
    list-style: none;
    padding: 0;
}

/* New Modern Interface Styles */
.main-layout {
  display: flex;
  gap: 30px;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  z-index: 20;
  position: relative;
}

.left-column {
  flex: 0 0 380px;
  min-width: 380px;
}

.center-column {
  flex: 0 0 500px;
  min-width: 500px;
}

.right-column {
  flex: 0 0 380px;
  min-width: 380px;
}

/* Login/Register Styles */
.login-container {
  background: rgba(25, 25, 25, 0.7);
  border-radius: 15px;
  padding: 25px;
  backdrop-filter: blur(10px);
  height: fit-content;
}

.tab-container {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 2px solid #333;
}

.tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  color: #999;
  transition: all 0.3s;
  border-bottom: 2px solid transparent;
}

.tab.active {
  color: #00ffff;
  border-bottom-color: #00ffff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.input-group {
  margin-bottom: 15px;
}

.form-input {
  width: 100%;
  padding: 12px;
  background: #333;
  border: 1px solid #555;
  border-radius: 8px;
  color: #fff;
  font-family: Ubuntu;
  font-size: 14px;
  display: block;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #00ffff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Ensure login inputs match Login button width exactly */
.tab-content#login-content .input-group { width: 100%; }
.tab-content#login-content .input-group .form-input {
  width: 100% !important;
  display: block;
  box-sizing: border-box;
}
.tab-content#login-content .login-btn {
  width: 100% !important;
  display: block;
}

/* Ensure register inputs match Register button width exactly */
.tab-content#register-content .input-group { width: 100%; }
.tab-content#register-content .input-group .form-input {
  width: 100% !important;
  display: block;
  box-sizing: border-box;
}
.tab-content#register-content .login-btn,
.tab-content#register-content .register-btn {
  width: 100% !important;
  display: block;
}

.login-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(45deg, #00ffff, #0080ff);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: Ubuntu;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

/* Wheel Button */
.wheel-btn {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: linear-gradient(45deg, #ff00ff, #8000ff);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: Ubuntu;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}
.wheel-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 0, 255, 0.4);
}

/* Wheel Modal */
.wheel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
}
.wheel-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(25,25,25,0.85);
  border: 1px solid #333;
  border-radius: 15px;
  width: 90%;
  max-width: 1100px;
  padding: 20px;
}
.wheel-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 10px; 
  border-bottom: 2px solid #00ffff; 
  padding-bottom: 10px; 
}
.wheel-title { color: #00ffff; font-weight: bold; font-size: 18px; }
.wheel-close { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }
.wheel-content { display: flex; gap: 24px; align-items: center; justify-content: center; flex-wrap: nowrap; height: 60vh; }
.wheel-canvas-wrap { position: relative; width: min(60vh, 60vw); height: min(60vh, 60vw); max-width: 100%; max-height: 100%; }
.wheel-canvas-wrap canvas { width: 100%; height: 100%; display: block; }
.wheel-pointer { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); color: #ff0; font-size: 28px; text-shadow: 0 0 8px #000; z-index: 10001; pointer-events: none; }
.wheel-pointer.tick { animation: pointerTick 90ms ease-out; }
@keyframes pointerTick { 0% { transform: translateX(-50%) rotate(0deg); } 50% { transform: translateX(-50%) rotate(-15deg); } 100% { transform: translateX(-50%) rotate(0deg); } }
.wheel-controls { display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 280px; }
.wheel-spin-btn:active { transform: translateY(1px) scale(0.995); filter: brightness(0.95); }
.wheel-spin-btn { padding: 14px 22px; background: linear-gradient(45deg, #00ffff, #0080ff); border: none; color: #00141a; border-radius: 12px; cursor: pointer; font-weight: 800; font-size: 18px; letter-spacing: .5px; box-shadow: 0 10px 25px rgba(0, 255, 255, .25); }
.wheel-spin-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 255, 255, .35); }
.coinflip-btn { width: 100%; padding: 12px 18px; background: linear-gradient(45deg, #ff00ff, #8000ff); border: none; color: #fff; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 16px; letter-spacing: .4px; box-shadow: 0 8px 20px rgba(255, 0, 255, .2); margin-top: 8px; }
.coinflip-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(255, 0, 255, .3); }
.wheel-spins-panel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; background: rgba(0, 0, 0, .35); border: 1px solid #14424b; border-radius: 12px; padding: 10px 12px; width: 100%; }
.wheel-spins-label { color: #80f2ff; font-weight: 700; }
.wheel-spins-value { justify-self: center; font-size: 20px; font-weight: 800; color: #fff; background: linear-gradient(90deg, #00ffff, #00aaff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wheel-add-btn { justify-self: end; padding: 8px 12px; border-radius: 10px; border: 1px solid #0aa; background: rgba(0, 255, 255, .12); color: #bff8ff; cursor: pointer; font-weight: 700; }
.wheel-add-btn:hover { background: rgba(0, 255, 255, .2); }
/* legacy */
.wheel-spins { color: #ccc; display:none; }

/* Wheel Instructions */
.wheel-instructions {
  background: rgba(0,255,255,0.08);
  border: 1px solid rgba(0,255,255,0.3);
  border-radius: 8px;
  padding: 10px;
  margin: 12px 0;
  width: 100%;
}
.wheel-instructions .instruction-title {
  font-size: 12px;
  font-weight: 700;
  color: #00ffff;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}
.wheel-instructions .instruction-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  padding: 4px 6px;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
  transition: all 0.2s;
}
.wheel-instructions .instruction-item:hover {
  background: rgba(0,255,255,0.12);
}
.wheel-instructions .instruction-item:last-child {
  margin-bottom: 0;
}
.wheel-instructions .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #00ffff, #00aaff);
  color: #000;
  font-weight: 800;
  font-size: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wheel-instructions .step-text {
  flex: 1;
  color: #e0e0e0;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 500;
}
.wheel-instructions .step-text strong {
  color: #ffffff;
  font-weight: 700;
}

/* Wheel log */
.wheel-log { width: 100%; max-width: 260px; color: #ddd; }
.wheel-log-title { font-weight: bold; color: #00ffff; margin-top: 8px; margin-bottom: 6px; text-align: center; }
.wheel-log ul, .wheel-log-list { list-style: none; padding: 0; margin: 0; }
#wheel-log-list li { display: flex; align-items: center; gap: 8px; padding: 4px 6px; background: rgba(0,0,0,0.25); border: 1px solid #333; border-radius: 6px; margin-bottom: 6px; transition: all 0.3s; }
#wheel-log-list li.bonus-10x { 
  background: linear-gradient(45deg, rgba(255,215,0,0.3), rgba(255,165,0,0.3)); 
  border-color: #ffd700; 
  box-shadow: 0 0 15px rgba(255,215,0,0.5);
  animation: bonusPulse 1s ease-in-out infinite;
}
@keyframes bonusPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(255,215,0,0.5); }
  50% { box-shadow: 0 0 25px rgba(255,215,0,0.8); }
}
#wheel-log-list img { width: 22px; height: 22px; object-fit: contain; }

/* CoinFlip Modal */
.coinflip-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 1000; overflow-y: auto; padding: 20px 0; }
.coinflip-modal { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(25,25,25,0.95); border: 1px solid #333; border-radius: 15px; width: 90%; max-width: 1100px; max-height: 90vh; overflow: hidden; padding: 20px; }
.coinflip-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; border-bottom: 2px solid #00ffff; padding-bottom: 10px; }
.coinflip-title { color: #00ffff; font-weight: bold; font-size: 18px; }
.coinflip-close { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }
.coinflip-content { display: flex; gap: 20px; align-items: flex-start; justify-content: flex-start; flex-wrap: wrap; padding-left: 30px; }
.coinflip-game { flex: 0 0 auto; width: 420px; display: flex; flex-direction: column; gap: 12px; }
.coin-info-top { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 12px;
  text-align: center; 
  font-size: 14px; 
  font-weight: 700; 
  color: #00ffff; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
}
.coin-info-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.coin-container { width: 320px; height: 320px; margin: 0 auto; perspective: 1500px; }
.coin-labels { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.coin-label { font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; padding: 8px 20px; border-radius: 8px; border: 2px solid; transition: all 0.3s; }
.blue-label { color: #00ffff; border-color: #00ffff; background: linear-gradient(45deg, rgba(0,255,255,0.1), rgba(0,128,255,0.1)); }
.red-label { color: #ff4444; border-color: #ff4444; background: linear-gradient(45deg, rgba(255,68,68,0.1), rgba(255,0,0,0.1)); }
.coin-label.winner-pulse-label {
  animation: labelPulse 0.6s ease-in-out infinite;
  border-width: 3px;
  transform: scale(1.1);
}
.blue-label.winner-pulse-label {
  color: #00ff00 !important;
  border-color: #00ff00 !important;
  background: linear-gradient(45deg, rgba(0,255,0,0.3), rgba(0,200,0,0.3)) !important;
  box-shadow: 0 0 30px rgba(0,255,0,0.8), 0 0 50px rgba(0,255,0,0.5);
}
.red-label.winner-pulse-label {
  color: #00ff00 !important;
  border-color: #00ff00 !important;
  background: linear-gradient(45deg, rgba(0,255,0,0.3), rgba(0,200,0,0.3)) !important;
  box-shadow: 0 0 30px rgba(0,255,0,0.8), 0 0 50px rgba(0,255,0,0.5);
}
@keyframes labelPulse {
  0%, 100% {
    box-shadow: 0 0 30px rgba(0,255,0,0.8), 0 0 50px rgba(0,255,0,0.5);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 50px rgba(0,255,0,1), 0 0 80px rgba(0,255,0,0.7);
    filter: brightness(1.4);
  }
}
.coin-label.loser-pulse-label {
  animation: loserPulse 0.6s ease-in-out infinite;
  border-width: 3px;
  transform: scale(1.1);
}
.blue-label.loser-pulse-label {
  color: #ff0000 !important;
  border-color: #ff0000 !important;
  background: linear-gradient(45deg, rgba(255,0,0,0.3), rgba(200,0,0,0.3)) !important;
  box-shadow: 0 0 30px rgba(255,0,0,0.8), 0 0 50px rgba(255,0,0,0.5);
}
.red-label.loser-pulse-label {
  color: #ff0000 !important;
  border-color: #ff0000 !important;
  background: linear-gradient(45deg, rgba(255,0,0,0.3), rgba(200,0,0,0.3)) !important;
  box-shadow: 0 0 30px rgba(255,0,0,0.8), 0 0 50px rgba(255,0,0,0.5);
}
@keyframes loserPulse {
  0%, 100% {
    box-shadow: 0 0 30px rgba(255,0,0,0.8), 0 0 50px rgba(255,0,0,0.5);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 50px rgba(255,0,0,1), 0 0 80px rgba(255,0,0,0.7);
    filter: brightness(1.4);
  }
}
.coin { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 3s ease-out; }
.coin-side { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 32px; box-shadow: 0 0 30px rgba(0,255,255,0.4); }
.coin-heads { background: linear-gradient(135deg, #00ffff, #0080ff); background-image: url('../img/head.png'); background-size: 125%; background-position: center; color: #000; border: 4px solid #00ffff; }
.coin-tails { background: linear-gradient(135deg, #ff00ff, #8000ff); background-image: url('../img/tails.png'); background-size: 125%; background-position: center; color: #fff; transform: rotateY(180deg); }
.coin.flip-heads { animation: flipHeads 3s ease-out forwards; }
.coin.flip-tails { animation: flipTails 3s ease-out forwards; }
@keyframes flipHeads { 0% { transform: rotateY(0); } 100% { transform: rotateY(1800deg); } }
@keyframes flipTails { 0% { transform: rotateY(0); } 100% { transform: rotateY(1980deg); } }
/* Instructions */
.coinflip-instructions { background: linear-gradient(135deg, rgba(0,255,255,0.08), rgba(0,128,255,0.08)); border: 2px solid rgba(0,255,255,0.25); border-radius: 10px; padding: 15px; margin: 10px 0; }
.instruction-title { font-size: 16px; font-weight: 900; color: #00ffff; margin-bottom: 10px; text-align: center; text-transform: uppercase; letter-spacing: 1px; }
.instruction-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; padding: 6px 8px; background: rgba(0,0,0,0.2); border-radius: 6px; }
.instruction-item:last-child { margin-bottom: 0; }
.step-number { font-size: 14px; font-weight: 900; color: #00ffff; min-width: 20px; }
.step-text { font-size: 13px; color: #ddd; line-height: 1.4; }
.step-text strong { color: #fff; }
.blue-text { color: #00ffff; }
.red-text { color: #ff4444; }
.win-text { color: #00ff00; }

.coinflip-result { text-align: center; margin-top: 15px; font-size: 20px; font-weight: 800; min-height: 30px; opacity: 0; transition: opacity 0.5s; }
.coinflip-result.win { color: #00ff00; }
.coinflip-result.loss { color: #ff0000; }
.coinflip-result.warn { color: #ffaa00; }
.coinflip-controls { flex: 1; min-width: 320px; max-width: 500px; display: flex; flex-direction: column; gap: 12px; }
.bet-section, .bet-amount-section, .choice-section { display: flex; flex-direction: column; gap: 8px; }
.bet-label { color: #80f2ff; font-weight: 700; font-size: 14px; }
.bet-type-buttons, .choice-buttons { display: flex; gap: 10px; }
.bet-type-btn, .choice-btn { flex: 1; padding: 10px 14px; background: rgba(0,0,0,0.3); border: 1px solid #333; color: #ccc; border-radius: 8px; cursor: pointer; font-weight: 700; transition: all 0.3s; }
.choice-btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.choice-btn-icon { width: 24px; height: 24px; object-fit: contain; }
.choice-btn[data-choice="heads"] { border-color: #00ffff; color: #00ffff; }
.choice-btn[data-choice="tails"] { border-color: #ff4444; color: #ff4444; }
.choice-btn[data-choice="heads"]:hover { background: linear-gradient(145deg, rgba(0,255,255,0.2), rgba(0,128,255,0.1)); border-color: #00ffff; }
.choice-btn[data-choice="tails"]:hover { background: linear-gradient(145deg, rgba(255,68,68,0.2), rgba(255,0,0,0.1)); border-color: #ff4444; }
.bet-type-btn.active, .choice-btn.active { background: linear-gradient(45deg, #00ffff, #0080ff); border-color: #00ffff; color: #000; }
.choice-btn[data-choice="heads"].active { background: linear-gradient(45deg, #00ffff, #0080ff); border-color: #00ffff; color: #000; }
.choice-btn[data-choice="tails"].active { background: linear-gradient(45deg, #ff4444, #ff0000); border-color: #ff4444; color: #000; }
.bet-type-btn:hover, .choice-btn:hover { border-color: #00ffff; }
.choice-btn.winner-pulse {
  animation: winnerPulse 0.6s ease-in-out infinite;
  border-color: #00ff00 !important;
  box-shadow: 0 0 30px rgba(0,255,0,0.8), 0 0 50px rgba(0,255,0,0.5) !important;
  background: linear-gradient(45deg, #00ff00, #00aa00) !important;
  color: #000 !important;
  transform: scale(1.05);
}
@keyframes winnerPulse {
  0%, 100% {
    box-shadow: 0 0 30px rgba(0,255,0,0.8), 0 0 50px rgba(0,255,0,0.5);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 50px rgba(0,255,0,1), 0 0 80px rgba(0,255,0,0.7);
    filter: brightness(1.3);
  }
}
.bet-input { width: 100%; padding: 10px; background: #222; border: 1px solid #555; border-radius: 8px; color: #fff; font-size: 16px; font-weight: 700; }
.flip-btn { width: 100%; padding: 14px; background: linear-gradient(45deg, #00ffff, #0080ff); border: none; color: #000; border-radius: 10px; font-weight: 800; font-size: 18px; cursor: pointer; box-shadow: 0 10px 25px rgba(0,255,255,0.25); }
.flip-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,255,255,0.35); }
.coinflip-stats { display: flex; justify-content: space-between; padding: 12px; background: rgba(0,0,0,0.3); border-radius: 8px; border: 1px solid #333; }
.coinflip-stats .stat-item { color: #ccc; font-weight: 700; font-size: 14px; }
.coinflip-stats span { color: #00ffff; }
.coins-info-text { margin-top: 12px; padding: 10px 15px; background: linear-gradient(135deg, rgba(0,255,255,0.1), rgba(0,128,255,0.1)); border: 2px solid rgba(0,255,255,0.3); border-radius: 8px; text-align: center; font-size: 13px; color: #00ffff; font-weight: 700; line-height: 1.5; }
.coins-info-text strong { color: #00ff00; font-size: 14px; }

/* Powerup Inventory Grid */
.powerup-inventory-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0; padding: 10px; background: rgba(0,0,0,0.3); border-radius: 10px; }
.powerup-item { position: relative; background: linear-gradient(135deg, rgba(0,255,255,0.1), rgba(0,128,255,0.1)); border: 2px solid rgba(0,255,255,0.3); border-radius: 8px; padding: 8px; cursor: pointer; transition: all 0.3s; display: flex; flex-direction: column; align-items: center; gap: 4px; user-select: none; }
.powerup-item:hover { border-color: #00ffff; box-shadow: 0 0 15px rgba(0,255,255,0.5); transform: scale(1.05); }
.powerup-item.selected { border-color: #00ff00; box-shadow: 0 0 20px rgba(0,255,0,0.6); background: linear-gradient(135deg, rgba(0,255,0,0.2), rgba(0,200,0,0.2)); }
.powerup-item.disabled { opacity: 0.3; cursor: not-allowed; }
.powerup-item.disabled:hover { transform: none; box-shadow: none; }
.powerup-item img { width: 32px; height: 32px; object-fit: contain; pointer-events: none; }
.powerup-count { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.8); color: #00ffff; font-size: 10px; font-weight: 900; padding: 2px 4px; border-radius: 3px; pointer-events: none; }
.powerup-name { font-size: 8px; color: #fff; text-align: center; font-weight: 700; pointer-events: none; line-height: 1.2; }

/* Selected Powerup Panel */
.selected-powerup-panel { background: linear-gradient(135deg, rgba(0,255,255,0.15), rgba(0,128,255,0.15)); border: 2px solid rgba(0,255,255,0.4); border-radius: 8px; padding: 10px; margin: 10px 0; display: none; flex-direction: column; gap: 8px; }
.selected-powerup-info { display: flex; align-items: center; gap: 10px; padding: 8px; background: rgba(0,0,0,0.3); border-radius: 6px; }
.selected-powerup-info img { width: 35px; height: 35px; object-fit: contain; }
.selected-powerup-info span { font-size: 15px; font-weight: 900; color: #00ffff; }
.bet-amount-controls { display: flex; align-items: center; gap: 8px; justify-content: center; }
.amount-btn { width: 32px; height: 32px; background: linear-gradient(45deg, rgba(0,255,255,0.2), rgba(0,128,255,0.2)); border: 2px solid rgba(0,255,255,0.4); border-radius: 6px; color: #00ffff; font-size: 18px; font-weight: 900; cursor: pointer; transition: all 0.3s; }
.amount-btn:hover { background: linear-gradient(45deg, rgba(0,255,255,0.3), rgba(0,128,255,0.3)); border-color: #00ffff; transform: scale(1.1); }
.bet-amount-input { width: 80px; padding: 8px; background: #222; border: 2px solid rgba(0,255,255,0.4); border-radius: 6px; color: #fff; font-size: 16px; font-weight: 700; text-align: center; }
.quick-bet-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.quick-bet-btn { padding: 8px; background: linear-gradient(45deg, rgba(0,255,255,0.15), rgba(0,128,255,0.15)); border: 2px solid rgba(0,255,255,0.3); border-radius: 6px; color: #00ffff; font-weight: 800; font-size: 12px; cursor: pointer; transition: all 0.3s; }
.quick-bet-btn:hover { background: linear-gradient(45deg, rgba(0,255,255,0.25), rgba(0,128,255,0.25)); border-color: #00ffff; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,255,255,0.3); }

.account-links {
  margin-top: 15px;
  text-align: center;
}

.link-text {
  margin: 5px 0;
  font-size: 12px;
  color: #999;
}

.highlight {
  color: #00ffff;
  cursor: pointer;
  text-decoration: underline;
  transition: all 0.3s;
}

.highlight:hover {
  color: #ffffff;
  text-shadow: 0 0 10px #00ffff;
}

.highlight:hover {
  color: #0080ff;
}

/* Game Interface Styles */
.logo-container {
  text-align: center;
  margin-bottom: 30px;
}

.nebula-logo {
  height: 100px;
  border-radius: 15px;
  max-width: 100%;
}

.game-container {
  background: rgba(25, 25, 25, 0.7);
  border-radius: 15px;
  padding: 25px;
  backdrop-filter: blur(10px);
  height: fit-content;
}

.nickname-section {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.nickname-input {
  flex: 1;
  padding: 12px;
  background: #333;
  border: 1px solid #555;
  border-radius: 8px;
  color: #fff;
  font-family: Ubuntu;
  font-size: 14px;
  min-width: 0;
  transform: translateY(20px);
}

.nickname-input.save {
  transform: translateY(18px);
}

.help-btn {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform: translateY(-8px);
}

.help-btn:hover {
  background: rgba(0, 255, 255, 0.2);
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* Skin Preview in Help Button */
.skin-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-size: cover; /* Fill the circle fully, no letterboxing */
  background-position: center center;
  background-repeat: no-repeat;
  background-clip: border-box; /* Extend under border to avoid halo */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: none; /* Remove border so image isn't reduced by stroke */
  /* Draw cyan ring outside without covering image */
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.35), 0 0 15px rgba(0, 255, 255, 0.25);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box; /* Keep visual size consistent */
  overflow: hidden; /* Perfect circular crop */
}

/* Gallery skin icons - match preview ring/crop */
.skin-item .skin-icon {
  width: 80px; /* bigger icons */
  height: 80px;
  border-radius: 50%;
  overflow: hidden; /* circular crop */
  box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.35), 0 0 8px rgba(0, 255, 255, 0.25);
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

.skin-item .skin-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover; /* fill without letterboxing */
  border-radius: 50%;
  display: block;
}

.skin-preview.has-skin {
  background-color: transparent;
}

.skin-preview.has-skin i {
  display: none;
}

.skin-preview:not(.has-skin) {
  background-color: transparent;
}

.skin-preview:not(.has-skin) i {
  display: none;
}

.skin-preview:not(.has-skin)::after {
  content: "SKINS";
  font-size: 10px;
  font-weight: bold;
  color: #00ffff;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.8);
  letter-spacing: 1px;
  font-family: 'Ubuntu', sans-serif;
}

.action-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.play-btn {
  flex: 2;
  padding: 12px 20px;
  background: linear-gradient(45deg, #00ff00, #008000);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: Ubuntu;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 0, 0.4);
}

.spectate-btn {
  flex: 1;
  padding: 12px 16px;
  background: linear-gradient(45deg, #ff8000, #ff4000);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: Ubuntu;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.spectate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 128, 0, 0.4);
}

.shop-section {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.shop-btn, .gold-member-btn {
  flex: 1;
  padding: 12px;
  background: linear-gradient(45deg, #ff00ff, #8000ff);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: Ubuntu;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.shop-btn:hover, .gold-member-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 0, 255, 0.4);
}

.news-section {
  margin-bottom: 20px;
}

.news-container h4 {
  color: #00ffff;
  margin-bottom: 10px;
  text-align: center;
}

.news-item {
  padding: 8px;
  background: rgba(0, 255, 255, 0.1);
  border-radius: 5px;
  margin-bottom: 5px;
  font-size: 12px;
  color: #ccc;
}

.social-section {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 18px;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-btn.youtube { background: #ff0000; }
.social-btn.discord { background: #7289da; }
.social-btn.facebook { background: #1877f2; }
.social-btn.twitter { background: #1da1f2; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.tiktok { background: #000; }
.social-btn.custom-game { background: #00ffff; }

.footer-links {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.footer-link {
  color: #999;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.3s;
}

.footer-link:hover {
  color: #00ffff;
}

/* Server Selection Styles */
.server-container {
  background: rgba(25, 25, 25, 0.7);
  border-radius: 15px;
  padding: 25px;
  backdrop-filter: blur(10px);
  height: fit-content;
}

.top-tabs {
  display: flex;
  margin-bottom: 15px;
  border-bottom: 2px solid #333;
}

.top-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  color: #999;
  transition: all 0.3s;
  border-bottom: 2px solid transparent;
}

.top-tab.active {
  color: #00ffff;
  border-bottom-color: #00ffff;
}

.region-tabs {
  display: flex;
  margin-bottom: 15px;
  gap: 5px;
}

.region-tab {
  flex: 1;
  padding: 10px 15px;
  text-align: center;
  cursor: pointer;
  color: #999;
  background: rgba(51, 51, 51, 0.8);
  border-radius: 8px;
  transition: all 0.3s;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
}

.region-tab:hover {
  background: rgba(0, 255, 255, 0.1);
  color: #00ffff;
  border-color: rgba(0, 255, 255, 0.3);
}

.region-tab.active {
  color: #000;
  background: #00ffff;
  border-color: #00ffff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.server-table {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.server-header {
  display: flex;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(0, 128, 255, 0.3));
  padding: 12px 15px;
  font-weight: bold;
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

.server-col {
  flex: 1;
  text-align: center;
}

.players-col {
  flex: 1;
  text-align: center;
}

.gamemode-col {
  flex: 1;
  text-align: center;
}

.server-row {
  display: flex;
  padding: 12px 15px;
  cursor: pointer;
  transition: all 0.3s;
  border-bottom: 1px solid rgba(51, 51, 51, 0.5);
  align-items: center;
}

.server-row:hover {
  background: rgba(0, 255, 255, 0.1);
  transform: translateX(5px);
}

.server-row.active {
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.2), rgba(0, 128, 255, 0.1));
  color: #00ffff;
  border-left: 4px solid #00ffff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

/* Profile Panel Styles */
.profile-nickname {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(0, 128, 255, 0.15));
  border-radius: 12px;
  border: 2px solid rgba(0, 255, 255, 0.3);
  transition: all 0.3s;
}

.profile-nickname i {
  font-size: 24px;
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.profile-nickname span {
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 1px;
}

.profile-main-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.profile-stat-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px 20px;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 128, 255, 0.2));
  border: 2px solid rgba(0, 255, 255, 0.4);
  border-radius: 10px;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
  min-height: 80px;
}

.profile-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
  border-color: #00ffff;
}

.profile-stat-card.level-card {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.25), rgba(0, 128, 255, 0.25));
}

.profile-stat-card.rank-card {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 165, 0, 0.25));
  border-color: rgba(255, 215, 0, 0.5);
}

.profile-stat-card.rank-card:hover {
  border-color: #ffd700;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

.stat-card-content {
  text-align: center;
  width: 100%;
}

.stat-card-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 8px;
  font-weight: 700;
}

.stat-card-value {
  font-size: 36px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
  line-height: 1;
}

.profile-stat-card.rank-card .stat-card-value {
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.profile-secondary-stats {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 25px;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(0, 128, 255, 0.15));
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 10px;
  transition: all 0.3s;
  min-height: 70px;
}

.stat-item:hover {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.25), rgba(0, 128, 255, 0.25));
  border-color: rgba(0, 255, 255, 0.5);
  transform: translateX(3px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.stat-item.coin-item {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.15));
  border-color: rgba(255, 215, 0, 0.3);
}

.stat-item.coin-item:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 165, 0, 0.25));
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.stat-item .stat-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 8px;
}

.stat-item .stat-content .progress {
  width: 100%;
}

.stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.stat-value {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.stat-item.coin-item .stat-value {
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.xp-progress {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.xp-bar {
  height: 100%;
  background: linear-gradient(90deg, #00ffff, #0080ff);
  border-radius: 4px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.profile-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile-btn.edit-profile {
  background: linear-gradient(135deg, #00ffff, #0080ff);
  color: #000;
}

.profile-btn.edit-profile:hover {
  background: linear-gradient(135deg, #00ccff, #0066cc);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.profile-btn.logout-btn {
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.3), rgba(204, 0, 0, 0.3));
  border: 1px solid rgba(255, 68, 68, 0.5);
  color: #ffffff;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
  position: relative;
}

.profile-btn.logout-btn i {
  display: none;
}

.profile-btn.logout-btn::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23ff4444' d='M502.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224 192 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l210.7 0-73.4 73.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l128-128zM160 96c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 32C43 32 0 75 0 128L0 384c0 53 43 96 96 96l64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l64 0z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.profile-btn.logout-btn:hover {
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.5), rgba(204, 0, 0, 0.5));
  border-color: #ff4444;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 68, 68, 0.4);
}

/* Settings and Hiscores Styles */
.settings-table {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
}

.hiscores-table {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.settings-header {
  display: flex;
  background: rgba(0, 255, 255, 0.2);
  padding: 10px;
  font-weight: bold;
  color: #00ffff;
}

.hiscores-header {
  display: flex;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(0, 128, 255, 0.3));
  padding: 12px 15px;
  font-weight: bold;
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

.settings-header span {
  flex: 1;
  text-align: center;
}

.hiscores-header .header-rank {
  flex: 1;
  text-align: center;
}

.hiscores-header .header-user {
  flex: 2;
  text-align: left;
  padding-left: 15px;
}

.hiscores-header .header-level {
  flex: 1;
  text-align: center;
}

.setting-row {
  display: flex;
  padding: 10px;
  border-bottom: 1px solid #333;
  align-items: center;
}

.hiscore-row {
  display: flex;
  padding: 12px 15px;
  transition: all 0.3s;
  border-bottom: 1px solid rgba(51, 51, 51, 0.5);
  align-items: center;
}

.hiscore-row:hover {
  background: rgba(0, 255, 255, 0.1);
  transform: translateX(5px);
}

.setting-name {
  flex: 1;
  text-align: left;
}

.setting-toggle {
  flex: 1;
  text-align: center;
}

.toggle-slider {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  background: #333;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.toggle-slider:before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: all 0.3s;
}

.setting-checkbox:checked + .toggle-slider {
  background: #00ffff;
}

.setting-checkbox:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.setting-checkbox {
  display: none;
}

.reset-settings-btn {
  width: 100%;
  padding: 10px;
  background: #ff4444;
  border: none;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  margin-top: 10px;
}

.hiscore-row .rank {
  flex: 1;
  text-align: center;
  font-weight: bold;
  color: #ffffff;
}

.hiscore-row .player-name {
  flex: 2;
  text-align: left;
  color: #ffffff;
  font-weight: 500;
}

.hiscore-row .level {
  flex: 1;
  text-align: center;
  color: #ffffff;
}

/* Friends Panel Styles */
.friends-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  margin-bottom: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.friends-status-toggle {
  display: flex;
  align-items: center;
}

.friends-subtabs {
  display: flex;
  margin-bottom: 15px;
  border-bottom: 2px solid #333;
}

.friends-subtab {
  flex: 1;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  color: #999;
  transition: all 0.3s;
  border-bottom: 2px solid transparent;
}

.friends-subtab.active {
  color: #00ffff;
  border-bottom-color: #00ffff;
}

.friends-subcontent {
  display: none;
}

.friends-subcontent.active {
  display: block;
}

.friends-list-items {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 15px;
}

.friend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  transition: all 0.3s;
}

.friend-item:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.4);
}

.friend-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.friend-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #999;
}

.friend-status-dot.online {
  background: #00ff00;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
}

.friend-name {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

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

.friend-action-btn {
  padding: 5px 10px;
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: 4px;
  color: #ff4444;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s;
}

.friend-action-btn:hover {
  background: rgba(255, 68, 68, 0.2);
  border-color: rgba(255, 68, 68, 0.5);
}

.add-friend-section {
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  box-sizing: border-box;
}

.add-friend-input-group {
  display: flex;
  gap: 10px;
  box-sizing: border-box;
}

.add-friend-input {
  flex: 1;
  padding: 10px 12px;
  background: rgba(51, 51, 51, 0.5);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 6px;
  color: #ffffff;
  font-size: 14px;
  box-sizing: border-box;
  min-width: 0;
}

.add-friend-input:focus {
  outline: none;
  border-color: #00ffff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.add-friend-btn {
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(0, 128, 255, 0.3));
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 6px;
  color: #00ffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  white-space: nowrap;
  min-width: 40px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.add-friend-btn:hover {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.5), rgba(0, 128, 255, 0.5));
  border-color: #00ffff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

/* Friends Icon Button (Game Overlay) */
.friends-icon-btn {
  position: absolute;
  top: 20px;
  right: 220px;
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 255, 0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e6f7ff;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000;
  transition: background 0.2s ease;
  backdrop-filter: blur(10px);
  line-height: 1;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.15);
}

.friends-icon-btn i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.friends-icon-btn:hover {
  background: rgba(0, 255, 255, 0.12);
}

.friends-icon-btn:active {
  transform: scale(0.99);
}

/* Friends Modal Overlay */
.friends-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px 212px 20px 20px;
  animation: fadeIn 0.3s;
  pointer-events: none;
}

.friends-modal-overlay .friends-modal-content {
  pointer-events: auto;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.friends-modal-content {
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 255, 0.25);
  border-radius: 8px;
  padding: 20px;
  max-width: 340px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.15);
  animation: slideInRight 0.3s;
}

@keyframes slideInRight {
  from { 
    transform: translateX(100%);
    opacity: 0;
  }
  to { 
    transform: translateX(0);
    opacity: 1;
  }
}

.friends-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 255, 0.25);
  color: #e6f7ff;
  font-size: 18px;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.friends-modal-close:hover {
  background: rgba(0, 255, 255, 0.12);
}

.friends-modal-close:active {
  transform: scale(0.99);
}

/* Player Profile Modal Styles */
.player-profile-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s;
  pointer-events: none;
}

.player-profile-modal-overlay .player-profile-modal-content {
  pointer-events: auto;
}

.player-profile-modal-content {
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(0, 255, 255, 0.4);
  border-radius: 12px;
  padding: 20px;
  min-width: 560px;
  width: auto;
  backdrop-filter: blur(10px);
  animation: slideInRight 0.3s;
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.15);
}

.profile-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.profile-modal-close:hover {
  background: rgba(255, 0, 0, 0.2);
  color: #ff4444;
  transform: rotate(90deg);
}

.profile-player-info {
  padding: 16px 32px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

#profilePlayerCell {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: relative;
  margin: 0 auto 16px;
  border: 3px solid rgba(0, 255, 255, 0.5);
  overflow: visible;
}

#profilePlayerSkin {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.profile-player-wear {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

#profilePlayerName {
  text-align: center;
  margin: 0 0 8px 0;
  padding: 0;
  color: #00ffff;
  font-size: 22px;
  font-weight: bold;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(51, 51, 51, 0.5);
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #00ffff;
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

/* Shop Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.shop-modal {
  background: rgba(25, 25, 25, 0.8);
  border-radius: 15px;
  width: 90%;
  max-width: 1100px;
  max-height: 85vh;
  overflow: hidden;
  backdrop-filter: blur(20px);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(0, 255, 255, 0.2);
  border-bottom: 2px solid #00ffff;
}

.shop-title {
  background: none;
  border: none;
  color: #00ffff;
  font-size: 24px;
  font-weight: bold;
  cursor: default;
}

.close-btn {
  background: #ff4444;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.close-btn:hover {
  background: #ff6666;
  transform: scale(1.1);
}

.shop-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid #333;
}

.shop-tab {
  flex: 1;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  color: #999;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
}

.shop-tab:hover {
  color: #00ffff;
}

.shop-tab.active {
  color: #00ffff;
  border-bottom-color: #00ffff;
}

.shop-tab-content {
  display: none;
}

.shop-tab-content.active {
  display: block;
}

.shop-content {
  display: flex;
  height: 60vh;
}

.shop-sidebar {
  width: 280px;
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  overflow-y: hidden;
  /* Modern Scrollbar Styling */
  scrollbar-width: thin;
  scrollbar-color: #00ffff rgba(0, 255, 255, 0.2);
}

/* Webkit Scrollbar Styling */
.shop-sidebar::-webkit-scrollbar {
  width: 8px;
}

.shop-sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 255, 0.1);
}

.shop-sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00ffff, #0080ff);
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.shop-sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00ffff, #00ccff);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

.shop-sidebar::-webkit-scrollbar-corner {
  background: rgba(0, 0, 0, 0.3);
}

.sidebar-section {
  margin-bottom: 18px;
}

.sidebar-section h3 {
  color: #00ffff;
  margin-bottom: 10px;
  font-size: 14px;
}

.coins-display {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 0, 0.2);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.coins-display i {
  color: #ffd700;
  font-size: 20px;
}

.coins-display span {
  color: #ffd700;
  font-weight: bold;
  font-size: 18px;
}

.get-coins-btn {
  width: 100%;
  padding: 8px;
  background: linear-gradient(45deg, #ffd700, #ffb700);
  border: none;
  border-radius: 6px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 13px;
}

.get-coins-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.updates-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 255, 255, 0.1);
  padding: 12px;
  border-radius: 8px;
}

.arrow-btn {
  background: #555;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
}

.arrow-btn:hover {
  background: #00ffff;
  color: #000;
}

.updates-icon {
  font-size: 24px;
}

.purchase-options, .free-rewards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.purchase-option, .reward-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 12px;
}

.purchase-option:hover, .reward-option:hover {
  background: rgba(0, 255, 255, 0.2);
  transform: translateX(5px);
}

.purchase-option i, .reward-option i {
  color: #00ffff;
  width: 20px;
}

.empty-circle {
  width: 100px;
  height: 100px;
  border: 2px dashed #555;
  border-radius: 50%;
  margin: 20px auto;
  opacity: 0.3;
}

.shop-main {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  /* Modern Scrollbar Styling */
  scrollbar-width: thin;
  scrollbar-color: #00ffff rgba(0, 255, 255, 0.2);
}

/* Webkit Scrollbar Styling for Shop Main */
.shop-main::-webkit-scrollbar {
  width: 8px;
}

.shop-main::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 255, 0.1);
}

.shop-main::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00ffff, #0080ff);
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.shop-main::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00ffff, #00ccff);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

.shop-main::-webkit-scrollbar-corner {
  background: rgba(0, 255, 255, 0.1);
}

.shop-welcome {
  text-align: center;
  color: #00ffff;
  font-size: 18px;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(0, 255, 255, 0.1);
  border-radius: 10px;
}

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

.shop-item {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
  border: 1px solid #333;
}

.shop-item:hover {
  transform: translateY(-5px);
  border-color: #00ffff;
  box-shadow: 0 10px 25px rgba(0, 255, 255, 0.3);
}

.item-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.item-name {
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
  font-size: 16px;
}

.item-desc {
  color: #999;
  margin-bottom: 15px;
  font-size: 12px;
  line-height: 1.4;
}

.item-price {
  color: #ffd700;
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 18px;
}

.buy-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(45deg, #00ff00, #008000);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 0, 0.4);
}

/* Skins Tab Styles */
.skins-sub-tabs {
  display: flex;
  margin-bottom: 20px;
  gap: 5px;
}

.sub-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  color: #999;
  background: #333;
  border-radius: 5px;
  transition: all 0.3s;
  font-size: 12px;
}

.sub-tab.active {
  color: #00ffff;
  background: #00ffff;
  color: #000;
}

.skins-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* exactly 4 per row */
  gap: 18px;
}

.skin-item {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 18px; /* slightly larger card */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s;
  border: 1px solid #333;
}

.skin-item:hover {
  transform: translateY(-3px);
  border-color: #00ffff;
}

.skin-icon {
  font-size: 30px;
  margin-bottom: 10px;
}

.skin-name {
  color: #fff;
  margin-bottom: 10px;
  font-size: 15px;
}

.use-skin-btn {
  width: 100%;
  padding: 8px;
  background: linear-gradient(45deg, #00ffff, #0080ff);
  border: none;
  border-radius: 5px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 12px;
}

.use-skin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

/* Remove button style (red) */
.use-skin-btn.remove {
  background: linear-gradient(45deg, #ff4444, #cc0000);
  color: #fff;
}

.use-skin-btn.remove:hover {
  box-shadow: 0 5px 15px rgba(255, 68, 68, 0.4);
}

/* Profile OK Button Style */
.profile-ok-btn {
  padding: 12px 50px;
  background: rgba(0, 255, 255, 0.15);
  border: 2px solid rgba(0, 255, 255, 0.5);
  border-radius: 8px;
  color: #00ffff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.profile-ok-btn:hover {
  background: rgba(0, 255, 255, 0.25);
  border-color: #00ffff;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
  transform: scale(1.05);
}

/* Guest Icon Styles */
.guest-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-right: 4px;
  vertical-align: middle;
  background-image: url('https://img001.prntscr.com/file/img001/70OjkzrVQry2MHTw3hreDg.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Settings Sub-tabs Styles */
.settings-tabs {
  display: flex;
  border-bottom: 2px solid #333;
  margin-bottom: 20px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.settings-tab {
  flex: 1;
  padding: 10px;
  background: transparent;
  color: #999;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  user-select: none;
}

.settings-tab:last-child {
  border-right: none;
}

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

.settings-tab.active {
  color: #00ffff;
  border-bottom-color: #00ffff;
  background: transparent;
  box-shadow: none;
}

.settings-tab-content {
  display: none;
  padding: 15px 0;
  min-height: 400px;
}

.settings-tab-content.active {
  display: block;
}

/* Keys Sub-tabs Styles */
.keys-sub-tabs {
  display: flex;
  border-bottom: 2px solid #333;
  margin-bottom: 20px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.keys-sub-tab {
  flex: 1;
  padding: 10px;
  background: transparent;
  color: #999;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  user-select: none;
  font-size: 14px;
}

.keys-sub-tab:last-child {
  border-right: none;
}

.keys-sub-tab:hover {
  color: #fff;
}

.keys-sub-tab.active {
  color: #00ffff;
  border-bottom-color: #00ffff;
  background: transparent;
  box-shadow: none;
}

.keys-sub-tab-content {
  display: none;
  padding: 10px 0;
  min-height: 350px;
}

.keys-sub-tab-content.active {
  display: block;
}

/* Keys Settings Styles */
.keys-settings-container {
  padding: 10px 0;
}

.keys-settings-grid {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.keys-settings-col {
  flex: 1;
  min-width: 0;
}

.keys-settings-col h5 {
  border-bottom: 1px solid #555;
  padding-bottom: 5px;
  margin-bottom: 10px;
  color: #fff;
}

.control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 5px 0;
  color: #fff;
  font-size: 14px;
}

.control-btn {
  background: #333;
  border: 1px solid #555;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  min-width: 40px;
  text-align: center;
  transition: all 0.3s ease;
  user-select: none;
}

.control-btn:hover {
  background: #444;
  border-color: #666;
}

.control-btn:active {
  background: #555;
  transform: scale(0.95);
}

.control-btn.editing {
  background: #00ffff;
  border-color: #00ffff;
  color: #000;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

.mgrowth-slider {
  margin: 10px 0;
  text-align: center;
}

.mgrowth-slider input[type="range"] {
  width: 100%;
  margin: 5px 0;
}

.reset-controls-btn {
  background: linear-gradient(45deg, #00ffff, #0080ff);
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  margin-top: 10px;
  font-weight: bold;
}

.reset-controls-btn:hover {
  background: linear-gradient(45deg, #00ffff, #00ccff);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Background Settings Styles */
.background-settings-container {
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.background-upload-section {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  border: 2px dashed #555;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
}

.upload-btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #00ffff, #0080ff);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.upload-btn:hover {
  background: linear-gradient(135deg, #00cccc, #0066cc);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.background-preview {
  width: 200px;
  height: 120px;
  margin: 15px auto;
  border: 2px solid #555;
  border-radius: 8px;
  background: #222;
  display: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.background-options {
  margin-bottom: 30px;
}

.option-group {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid #333;
}

.option-label, .radio-label {
  display: flex;
  align-items: center;
  color: #fff;
  cursor: pointer;
  margin-bottom: 10px;
  font-size: 14px;
}

.option-label input, .radio-label input {
  margin-right: 10px;
}

.checkmark, .radio-mark {
  width: 18px;
  height: 18px;
  border: 2px solid #555;
  border-radius: 3px;
  margin-right: 10px;
  position: relative;
  background: #222;
}

.radio-mark {
  border-radius: 50%;
}

.option-label input:checked + .checkmark {
  background: #00ffff;
  border-color: #00ffff;
}

.option-label input:checked + .checkmark:after {
  content: '✓';
  position: absolute;
  color: #000;
  font-weight: bold;
  top: -2px;
  left: 2px;
  font-size: 12px;
}

.radio-label input:checked + .radio-mark {
  background: #00ffff;
  border-color: #00ffff;
}

.radio-label input:checked + .radio-mark:after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #000;
  top: 3px;
  left: 3px;
}

.radio-group {
  margin-left: 20px;
}

.slider-label {
  display: block;
  color: #fff;
  margin-bottom: 10px;
}

.opacity-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #333;
  outline: none;
  margin-top: 10px;
}

.opacity-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #00ffff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.color-picker {
  width: 50px;
  height: 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 10px;
}

.background-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.reset-btn, .clear-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.reset-btn {
  background: #ff4444;
  color: white;
}

.reset-btn:hover {
  background: #ff6666;
  transform: translateY(-2px);
}

.clear-btn {
  background: #666;
  color: white;
}

.clear-btn:hover {
  background: #888;
  transform: translateY(-2px);
}

.test-btn {
  background: #00ff00;
  color: white;
}

.test-btn:hover {
  background: #00cc00;
  transform: translateY(-2px);
}

/* Background Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.background-modal-content {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border: 2px solid #00ffff;
  border-radius: 15px;
  width: 85%;
  max-width: 500px;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 2px solid #333;
  background: rgba(0, 255, 255, 0.1);
  border-radius: 13px 13px 0 0;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #00ffff;
  font-size: 30px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  pointer-events: auto;
  z-index: 1001;
  position: relative;
}

.modal-close-btn:hover {
  background: rgba(0, 255, 255, 0.2);
  transform: scale(1.1);
}

.modal-body {
  padding: 12px;
  min-height: 450px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.modal-body .background-upload-section {
  margin-bottom: 12px;
  padding: 12px;
  border: 2px dashed #555;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  text-align: center;
}

.modal-body .background-options {
  margin-bottom: 12px;
}

.modal-body .option-group {
  margin-bottom: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid #333;
}

.modal-body .background-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid #333;
}

/* Responsive design */
@media (max-width: 768px) {
  .background-modal-content {
    width: 95%;
    max-width: 95%;
    max-height: 98vh;
  }

  .keys-settings-grid {
    flex-direction: column;
    gap: 15px;
  }

  .settings-tabs {
    flex-direction: column;
  }

  .settings-tab {
    border-bottom: 2px solid transparent;
  }

  .settings-tab.active {
    border-bottom-color: #00ffff;
  }

  .keys-sub-tabs {
    flex-direction: column;
  }

  .keys-sub-tab {
    border-bottom: 2px solid transparent;
  }

  .keys-sub-tab.active {
    border-bottom-color: #00ffff;
  }
}

/* Nebula Logo Styling */
.nebula-logo {
  width: 175px;
  height: auto;
  transform: scale(3);
  transform-origin: center;
}

/* Settings Tab with Badge */
.top-tab[data-tab="settings"] {
  position: relative;
}

/* Keys Tab with Badge */
.settings-tab[data-settings-tab="keys"],
.settings-tab[data-settings-tab="background"] {
  position: relative;
}

/* Keys Sub-tabs with Badge */
.keys-sub-tab {
  position: relative;
}

/* New Badge Styling */
.new-badge {
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  color: white;
  font-size: 8px;
  font-weight: bold;
  padding: 1px 4px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
  animation: pulse-glow 2s infinite;
  transform: rotate(-5deg);
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 10;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
  }
  50% {
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.6);
  }
  100% {
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
  }
}

/* Password Reset Styles */
.password-reset-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

.password-reset-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(25, 25, 25, 0.8);
  border-radius: 15px;
  padding: 30px;
  width: 400px;
  max-width: 90%;
  z-index: 1001;
  display: none;
  backdrop-filter: blur(20px);
  border: 2px solid #00ffff;
}

.password-reset-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.password-reset-title {
  color: #00ffff;
  font-size: 24px;
  font-weight: bold;
}

.password-reset-close {
  background: #ff4444;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
}

.password-reset-close:hover {
  background: #ff6666;
  transform: scale(1.1);
}

.password-reset-description {
  color: #ccc;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.5;
}

.password-reset-options {
  display: flex;
  margin-bottom: 20px;
  gap: 5px;
}

.password-reset-option {
  flex: 1;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  color: #999;
  background: #333;
  border-radius: 5px;
  transition: all 0.3s;
  font-size: 14px;
}

.password-reset-option.active {
  color: #00ffff;
  background: #00ffff;
  color: #000;
}

.password-reset-option:hover {
  color: #00ffff;
  background: rgba(0, 255, 255, 0.2);
}

.password-reset-input {
  width: 100%;
  padding: 12px;
  background: #333;
  border: 1px solid #555;
  border-radius: 8px;
  color: #fff;
  font-family: Ubuntu;
  font-size: 14px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.password-reset-input:focus {
  outline: none;
  border-color: #00ffff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.password-reset-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(45deg, #00ffff, #0080ff);
  border: none;
  border-radius: 8px;
  color: #000;
  font-family: Ubuntu;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.password-reset-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

/* Game HUD Styles */
.innerBoxDashboard2 {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  padding: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid #00ffff;
}

.innerBoxDashboard2 .user-level {
  background: linear-gradient(45deg, #00ffff, #0080ff);
  color: #000;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.progress {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, #00ffff, #0080ff);
  transition: width 0.3s ease;
}

.progress-bar-coins {
  background: linear-gradient(90deg, #ffd700, #ffb700);
  transition: all 0.3s ease;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}

.stat-label {
  color: #00ffff;
  font-weight: bold;
  font-size: 12px;
}

.stat-value {
  color: #fff;
  font-weight: bold;
  font-size: 12px;
}

/* Responsive Design */
@media (max-width: 1400px) {
  .main-layout {
    gap: 20px;
    padding: 0;
  }
  
  .left-column {
    flex: 0 0 300px;
    min-width: 300px;
  }
  
  .center-column {
    flex: 0 0 450px;
    min-width: 450px;
  }
  
  .right-column {
    flex: 0 0 350px;
    min-width: 350px;
  }
}

@media (max-width: 1200px) {
  .main-layout {
    flex-direction: column;
    gap: 20px;
    padding: 0;
    align-items: center;
  }
  
  .left-column, .center-column, .right-column {
    flex: 0 0 auto;
    min-width: 100%;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .main-layout {
    padding: 0;
    gap: 15px;
  }
  
  .left-column, .center-column, .right-column {
    max-width: 100%;
  }
  
  .shop-content {
    flex-direction: column;
  }
  
  .shop-sidebar {
    width: 100%;
    height: auto;
  }
  
  .shop-items {
    grid-template-columns: 1fr;
  }
  
  .skins-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
  
  .server-container, .login-container, .game-container {
    padding: 15px;
  }
}

/* Hide elements by default */
.top-content {
  display: none;
}

#europe-servers {
  display: block;
}

#northamerica-servers, #asia-servers {
  display: none;
}

/* Inventory System (from fakeagma.css) */
#inventory {
    z-index: 2;
    position: absolute;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
    transform-origin: 50% 100%;
    bottom: 0;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    text-align: center;
    transition: height ease .2s;
}

#inventory2 {
    display: flex;
    position: absolute;
    z-index: 35;
    left: calc(50% + .1px);
    bottom: 45px;
    transform: translateX(-50%);
    margin: 0 auto
}

#inventory1 {
    display: flex;
    position: absolute;
    z-index: 35;
    left: calc(50% + .1px);
    bottom: 8px;
    transform: translateX(-50%);
    margin: 0 auto
}

.inventory-box {
    position: relative;
    transition: 50ms width ease,50ms height ease,50ms background-size ease,50ms opacity ease,50ms margin ease;
    width: 36px;
    height: 36px;
    cursor: pointer;
    background: rgba(76,86,239,.6) center no-repeat;
    background-size: 30px 30px;
    box-sizing: border-box;
    border: 2px solid rgba(26,32,77,.7);
    border-radius: 8px;
    opacity: .8;
    margin: 0;
    z-index: 35
}

.inventory-box.highlight {
    border: 3px solid #4f4;
    border-radius: 5px
}

.inventory-box.highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(68,255,68,.2)
}

.inventory-box>p {
    transition: 50ms padding ease,50ms font-size ease;
    text-align: right;
    padding: 12px 0 0;
    margin: 0;
    color: #ffa;
    font-family: Ubuntu, sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-shadow: -1px -1px #333,1px -1px #333,-1px 1px #333,1px 1px #333
}

.inventory-box.hover,.inventory-box:hover {
    width: 40px;
    height: 40px;
    background-size: 34px 34px;
    opacity: 1;
    margin: -2px;
    z-index: 40
}

.inventory-box.hover>p,.inventory-box:hover>p {
    padding: 14px 0 0;
    font-size: 20px
}

.inventory-box.active,.inventory-box:active {
    opacity: .4
}

.inventory-box.active.hover,.inventory-box:active:hover {
    opacity: .6
}

.inventory-box.large-box {
    width: 50px;
    background-size: 42px 12px
}

.inventory-box.large-box.hover,.inventory-box.large-box:hover {
    width: 54px;
    background-size: 46px 14px
}

.inventory-box.large-box.vertical {
    background-size: 12px 42px
}

.inventory-box.large-box.vertical.hover,.inventory-box.large-box.vertical:hover {
    background-size: 14px 46px
}

/* Inventory Item Background Images */
#invRecombine {
    background-image: url('../img/inv/inv_recombine2.png')
}

#invSpeed {
    background-image: url('../img/inv/inv_speed2.png')
}

#invGrowth {
    background-image: url('../img/inv/inv_growth2.png')
}

#invSpawnVirus {
    background-image: url('../img/inv/inv_virus4.png')
}

#invSpawnMothercell {
    background-image: url('../img/inv/inv_mothercell4.png')
}

#invSpawnPortal {
    background-image: url('../img/inv/shieldbreak.png')
}

#invSpawnGoldOre {
    background-image: url('../img/inv/inv_goldore2.png')
}

#invWall {
    background-image: url('../img/inv/inv_wall2.png')
}

#invWall::before {
    content: '';
    background-image: url('../img/inv/inv_wall_vertical2.png');
    visibility: hidden
}

#invWall.vertical {
    background-image: url('../img/inv/inv_wall_vertical2.png')
}

#invFreeze {
    background-image: url('../img/inv/inv_freeze2.png')
}

#invAntiFreeze {
    background-image: url('../img/inv/inv_anti_freeze2.png')
}

#invAntiRecombine {
    background-image: url('../img/inv/inv_anti_recombine2.png')
}

#invFrozenVirus {
    background-image: url('../img/inv/inv_frozen_virus2.png')
}

#invFrozenPortal {
    background-image: url('../img/inv/frozen-portal.png')
}

#invPortal2 {
    background-image: url('../img/inv/roomportal.png')
}

#invShout {
    background-image: url('../img/inv/shout.png')
}

/* Skin Selection Styles */
.skin-item.selected {
    border: 2px solid #00ffff;
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.skin-item.selected .use-skin-btn:not(.remove) {
    background: #00ffff;
    color: #000;
    font-weight: bold;
}

.skin-item:hover {
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Cursor Message Display */
#curser-msg{
    position: fixed;
    top: 0;
    z-index: 500;
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100vw;
}
#curser-msg div{
    display: none;
    padding: 3px 8rem;
    background-color:rgba(29, 29, 29, 0.9);
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    font-size: 2rem;
    max-width: 63vw;
    color: #a3a3a3db;
}

/* Activated Inventory Items */
.activatedInv {
    border: 3px #feff00 solid;
    border-radius: 5px;
    -webkit-box-shadow: 0 0 30px 0 #f5c807;
    -moz-box-shadow: 0 0 30px 0 #f5c807;
    box-shadow: 0 0 30px 0 #f5c807
}

/* Shout Message Notification Styles from style17.min.css */
#megaholder {
    position: absolute;
    z-index: 160;
    top: 0;
    right: 0;
}

#megaphone {
    float: right;
    width: 342px;
    height: 200px;
    background: url(../img/megaphone_bg2.png);
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
    transition: .5s;
    text-align: center;
    margin-right: -350px;
}

/* Eski mega-message kuralı - modal için geçersiz */
.modal .mega-message {
    width: 100% !important;
    height: auto !important;
    min-height: 120px !important;
    margin-top: 0 !important;
    font-size: 16px !important;
    margin-left: 0 !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    text-align: left !important;
    color: #ffffff !important;
    padding: 15px !important;
    box-shadow: none !important;
    position: relative !important;
    opacity: 1 !important;
    border: 2px solid rgba(0, 255, 255, 0.3) !important;
    border-radius: 10px !important;
    backdrop-filter: blur(10px) !important;
    box-sizing: border-box !important;
}

/* Modal için placeholder stilleri */
.modal .mega-message::-moz-placeholder {
    color: rgba(0, 255, 255, 0.6) !important;
    opacity: 1 !important;
    font-style: italic !important;
}

.modal .mega-message:-ms-input-placeholder {
    color: rgba(0, 255, 255, 0.6) !important;
    font-style: italic !important;
}

.modal .mega-message::-webkit-input-placeholder {
    color: rgba(0, 255, 255, 0.6) !important;
    font-style: italic !important;
}

/* Eski placeholder stilleri - megaphone için */
.mega-message::-moz-placeholder {
    color: #937c57;
    opacity: 1;
}

.mega-message:-ms-input-placeholder {
    color: #937c57;
}

.mega-message::-webkit-input-placeholder {
    color: #937c57;
}

#megaphone_text {
    margin-top: 36px;
    margin-left: 150px;
    height: 150px;
    color: #000;
    width: 146px;
    white-space: pre-wrap;
    word-wrap: break-word;
    position: absolute;
    overflow: hidden;
}

@media all and (max-width: 909px) {
    #megaholder {
        transform-origin: right top;
        transform: scale(.5);
    }
}

#megaholder.touch-device {
    transform-origin: right top;
    transform: scale(.5);
}

#megaphone_input {
    width: 424px;
    height: 245px;
    background: url(../img/megaphone_bg2.png);
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
    transition: .5s;
    text-align: center;
    text-transform: none;
}

.megaphone-btn-shout {
    display: inline-block;
    height: 38px;
    letter-spacing: .13em;
    margin-top: 10px;
    font-size: 19px;
    line-height: 1.42857143;
    color: #fff;
    width: 100%;
    text-transform: uppercase;
    background-color: #5592e3;
    background-image: none;
    border: 0 solid #222328;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    width: 50%;
    box-shadow: inset 0 0 0 4px rgba(255,255,255,.4);
}

/* Enhanced mega-name styles from style17.min.css */
.mega-name {
    width: 140px;
    position: absolute;
    top: 173px;
    left: 50px;
    color: #fff;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    word-wrap: break-word;
    text-align: center;
    white-space: pre-wrap;
    max-height: 60px;
    overflow: hidden;
}

.mega-name.gold {
    color: gold;
}

.mega-name.black {
    color: #000;
    text-shadow: -1px -1px 0 #777, 1px -1px 0 #777, -1px 1px 0 #777, 1px 1px 0 #777;
}

/* Shout Player Name - Cell üstünde görünecek */
#shoutPlayerName {
    position: absolute !important;
    top: -18px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-weight: bold !important;
    font-size: 18px !important;
    color: #00ffff !important;
    text-shadow: 0 0 15px rgba(0, 255, 255, 1) !important;
    white-space: nowrap !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    max-width: 200px !important;
    overflow: visible !important;
    text-overflow: ellipsis !important;
    z-index: 100 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

/* Uzun isimler için küçük font boyutu */
#shoutPlayerName[data-long="true"] {
    font-size: 14px !important;
}

/* Çok uzun isimler için daha küçük font boyutu */
#shoutPlayerName[data-very-long="true"] {
    font-size: 12px !important;
}

/* Cell example styles for shout display */
#cellExampleShop, #cellMegaDialog, #cellMegaWidget {
    position: relative;
    top: 0;
    left: -26px;
    height: 240px;
    width: 240px;
}

#cellExampleShop {
    transform: scale(.85);
    margin-top: -15px;
    margin-bottom: -42px;
}

#cellMegaDialog {
    transform: scale(.85);
}

#cellMegaWidget {
    transform: scale(.85);
    top: -26px;
}

#cellExampleShop .skin-example, #cellMegaDialog .skin-example, #cellMegaWidget .skin-example {
    position: absolute;
    top: 71px;
    left: 71px;
    height: 96px;
    width: 96px;
    box-sizing: content-box;
    border-radius: 50%;
    box-shadow: 0 0 3px #000;
    border: 1px solid rgba(0,0,0,.25);
    background-image: none;
    background-repeat: no-repeat;
    background-position: -1px -1px;
    background-size: 98px 98px;
}

#cellExampleShop .wear-example, #cellMegaDialog .wear-example, #cellMegaWidget .wear-example {
    display: none;
    position: absolute;
    top: 48px;
    left: 48px;
    height: 144px;
    width: 144px;
    background-image: none;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

#cellExampleShop .wear-example.center, #cellMegaDialog .wear-example.center, #cellMegaWidget .wear-example.center {
    top: 48px;
    left: 48px;
}

#cellExampleShop .wear-example.top, #cellMegaDialog .wear-example.top, #cellMegaWidget .wear-example.top {
    top: 0;
    left: 48px;
}

#cellExampleShop .wear-example.bottom, #cellMegaDialog .wear-example.bottom, #cellMegaWidget .wear-example.bottom {
    top: 96px;
    left: 48px;
}

#cellExampleShop .wear-example.left, #cellMegaDialog .wear-example.left, #cellMegaWidget .wear-example.left {
    top: 48px;
    left: 0;
}

#cellExampleShop .wear-example.right, #cellMegaDialog .wear-example.right, #cellMegaWidget .wear-example.right {
    top: 48px;
    left: 96px;
}

#cellExampleShop .wear-example.max, #cellMegaDialog .wear-example.max, #cellMegaWidget .wear-example.max {
    top: 0;
    left: 0;
    height: 240px;
    width: 240px;
}

#cellExampleShop .skin-example.faded, #cellExampleShop .wear-example.faded {
    opacity: .1;
}

#inv360Shot {
    background-image: url('../img/inv/inv_360shot2.png');
    background-size: cover
}

#invCloak {
    background-image: url('../img/inv/inv_cloak2.png');
    background-size: cover
}

#invShield {
    background-image: url('../img/inv/inv_shield4.png')
}

.activatedInv {
    border: 3px #feff00 solid;
    border-radius: 5px;
    -webkit-box-shadow: 0 0 30px 0 #f5c807;
    -moz-box-shadow: 0 0 30px 0 #f5c807;
    box-shadow: 0 0 30px 0 #f5c807
}