:root {
    --bg-dark: #060606;
    --bg-card: #0d0d0d;
    --bg-chat: #0a0a0a;
    --primary: #ffbc00;
    --secondary: #ff9d00;
    --accent: #ff4757;
    --text-main: #ffffff;
    --text-dim: #9499b3;
    --header-height: 80px;
    --chat-width: 320px;
    --trades-width: 320px;
    --border-radius: 12px;
    --glass-bg: rgba(13, 13, 13, 0.7);
    --glass-border: rgba(255, 255, 255, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    background-color: var(--bg-dark);
    font-family: 'Outfit', sans-serif;
    background: url('public/images/background.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-main);
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 188, 0, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 188, 0, 0.3) var(--bg-dark);
}

/* Header */
.main-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: 26px;
    letter-spacing: -1.5px;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(255, 188, 0, 0.3));
}

.logo .lux {
    background: linear-gradient(90deg, #ffffff 0%, #a5a5a5 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logo-shine 4s linear infinite;
    display: inline-block;
    padding-right: 4px;
}

.logo .byt {
    background: linear-gradient(90deg, #ffbc00 0%, #ff9d00 50%, #ffbc00 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logo-shine 3s linear infinite;
    display: inline-block;
    padding-right: 6px;
    margin-left: -4px; /* Adjusting for the padding-right of .lux */
}

@keyframes logo-shine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.logo-img { 
    height: 36px; 
    width: auto; 
    filter: drop-shadow(0 0 12px var(--primary));
    transition: transform 0.5s ease;
}

.logo:hover .logo-img {
    transform: rotate(15deg);
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 15px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.nav-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-marketplace { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 15px; font-style: normal; }
#games-dropdown .dropdown-trigger { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 15px; font-style: normal; }
.nav-affiliates { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 15px; font-style: normal; }

/* Dropdowns */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 10px;
    min-width: 220px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropdown.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background: rgba(255, 188, 0, 0.1);
    color: var(--text-main);
}

.dropdown-content a i,
.dropdown-content a svg {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* Balance Card */
.balance-card {
    background: var(--bg-dark);
    padding: 6px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.balance-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
}

.gem-icon {
    height: 18px;
    width: auto;
}

.balance-amount {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-main);
}

.cashier-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-family: 'Archivo Black', sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 188, 0, 0.3);
}

.cashier-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 188, 0, 0.4);
}

/* Header Right Extras */
.leaderboard-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 188, 0, 0.3);
}

.leaderboard-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.user-meta {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

.level-badge {
    background: rgba(255, 188, 0, 0.15);
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    width: fit-content;
}

/* App Container Layout */
.app-container {
    display: grid;
    grid-template-columns: var(--chat-width) 1fr var(--trades-width);
    height: calc(100vh - var(--header-height));
    transition: all 0.4s ease;
}

.app-container.chat-closed {
    grid-template-columns: 0 1fr var(--trades-width);
}

.app-container.trades-closed {
    grid-template-columns: var(--chat-width) 1fr 0;
}

.app-container.chat-closed.trades-closed {
    grid-template-columns: 0 1fr 0;
}

/* Chat Sidebar */
.chat-sidebar {
    grid-column: 1;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--glass-border);
}

.chat-header h3 {
    font-size: 16px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

.chat-msg {
    font-size: 14px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
}

.msg-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.msg-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.msg-level {
    font-size: 9px;
    font-weight: 800;
    color: var(--primary);
    background: rgba(255, 188, 0, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.msg-user {
    font-weight: 700;
    color: #d1d1d1;
    font-size: 13px;
}

.msg-text {
    color: var(--text-dim);
}

/* Rain Card */
.rain-card {
    margin: 10px 20px;
    background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('public/images/liverain.png');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(255, 188, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 140px;
    z-index: 1;
}

.rain-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        rgba(255, 188, 0, 0.8), 
        transparent 30%
    );
    animation: rotate-border 4s linear infinite;
    z-index: -2;
}

.rain-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: inherit;
    border-radius: 10px;
    z-index: -1;
}

@keyframes rotate-border {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rain-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.rain-title {
    color: var(--primary);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1px;
}

.rain-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rain-timer {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    border: 1px solid rgba(255, 188, 0, 0.3);
}

.rain-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
}

.join-rain-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 188, 0, 0.2);
}

.join-rain-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 188, 0, 0.4);
}
.chat-input-area {
    padding: 15px 20px;
    background: var(--bg-chat);
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-row {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    padding: 12px 15px;
    border-radius: 10px;
    color: white;
    font-family: inherit;
}

.send-btn {
    background: var(--primary);
    color: #000;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.send-btn:hover {
    transform: scale(1.05);
}

.chat-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.room-selector {
    position: relative;
    cursor: pointer;
}

.active-room {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    transition: color 0.3s ease;
}

.active-room:hover {
    color: var(--text-main);
}

.flag-img {
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.room-dropdown {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 8px;
    width: 140px;
    display: none;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 100;
}

.room-dropdown.active {
    display: flex;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    padding: 30px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    animation: modalAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalAppear {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.modal-header h2 {
    font-size: 20px;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rules-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.rules-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-dim);
}

.rules-list li i {
    color: var(--primary);
    font-size: 16px;
}

.room-item {
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.room-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.rules-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.rules-btn:hover {
    color: var(--primary);
}

.open-chat-btn {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 100;
    display: none;
}

.app-container.chat-closed .open-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Content & Carousel */
.content-area {
    grid-column: 2;
    padding: 40px;
    overflow-y: auto;
}

.banner-carousel {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 550px;
    max-width: 1400px;
    margin: 0 auto;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.banner-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 80px;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 188, 0, 0.2) 0%, rgba(10, 11, 16, 0.4) 40%, rgba(10, 11, 16, 0.8) 100%);
    z-index: 2;
}

.banner-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
}

.banner-tag {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 12px;
    margin-bottom: 15px;
    display: block;
}

.banner-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner-subtitle {
    color: var(--text-dim);
    font-size: 18px;
    margin-bottom: 30px;
}

.banner-cta {
    background: white;
    color: black;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.banner-cta:hover {
    transform: scale(1.05);
    background: var(--primary);
    color: white;
}

/* Carousel Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.2);
}

.carousel-control.prev { left: 30px; }
.carousel-control.next { right: 30px; }

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 80px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 30px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
}

.indicator.active {
    background: var(--primary);
    width: 50px;
}

/* Icon Buttons */
.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 18px;
    cursor: pointer;
}

/* Sections */
.section {
    margin: 40px auto 0;
    max-width: 1400px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

.view-all {
    color: var(--text-dim);
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: var(--primary);
}

.skins-carousel-wrapper {
    position: relative;
    margin-top: 20px;
}

.skins-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    scrollbar-width: none; /* Hide scrollbar for clean look */
}

.skins-grid::-webkit-scrollbar {
    display: none;
}

.skin-card {
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: hidden;
}

.skins-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.skins-control:hover {
    background: var(--primary);
    color: black;
    transform: translateY(-50%) scale(1.1);
}

.skins-control.prev { left: -22px; display: none; }
.skins-control.next { right: -22px; }

.skin-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 188, 0, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.skin-card:hover::before {
    opacity: 1;
}

.skin-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 188, 0, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(255, 188, 0, 0.1);
}

.skin-condition {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dim);
}

.skin-img-wrapper {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.skin-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.skin-card:hover .skin-img-wrapper img {
    transform: scale(1.1) rotate(5deg);
}

.skin-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skin-name {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skin-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skin-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 15px;
}

.gem-icon-xs {
    width: 12px;
    height: 12px;
}

.skin-discount {
    background: rgba(255, 188, 0, 0.1);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid rgba(255, 188, 0, 0.1);
}

/* Activity Section */
.activity-section {
    margin: 50px auto;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    max-width: 1400px;
}

.activity-tabs {
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--glass-border);
}

.tab-btn {
    padding: 20px 30px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(255, 188, 0, 0.05);
}

.tab-content {
    display: none;
    padding: 20px;
}

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

.activity-table {
    width: 100%;
    border-collapse: collapse;
}

.activity-table th {
    text-align: left;
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 700;
    padding: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.activity-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.table-user {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.table-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.table-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.table-item-img {
    width: 45px;
    height: auto;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
}

.table-item-name {
    font-weight: 700;
    font-size: 13px;
}

.table-item-cond {
    font-size: 11px;
    color: var(--text-dim);
}

.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
}

.badge-bought {
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.2);
}

.badge-sold {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.2);
}

.table-gem {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.text-win {
    color: #2ed573;
    font-weight: 700;
}

.text-multi {
    color: var(--primary);
    font-weight: 800;
}

/* Rain Animation */
.rain-animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.raindrop {
    position: absolute;
    width: 2px;
    height: 15px;
    background: linear-gradient(to bottom, rgba(255, 188, 0, 0), rgba(255, 188, 0, 0.8));
    box-shadow: 0 0 10px rgba(255, 188, 0, 0.5);
    border-radius: 2px;
    animation: rain-fall linear infinite;
}

@keyframes rain-fall {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    to {
        transform: translateY(160px);
        opacity: 0;
    }
}

/* Payment Strip */
.payment-strip {
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    margin-top: 10px;
    overflow: hidden;
    position: relative;
}

.payment-strip::before,
.payment-strip::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.payment-strip::before {
    left: 0;
    background: linear-gradient(to right, rgba(10,10,12,1), rgba(10,10,12,0));
}

.payment-strip::after {
    right: 0;
    background: linear-gradient(to left, rgba(10,10,12,1), rgba(10,10,12,0));
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: payment-scroll 30s linear infinite;
    padding: 0 30px;
}

.payment-icons img {
    height: 22px;
    width: auto;
    filter: opacity(0.8);
    transition: all 0.3s ease;
}

.payment-icons:hover {
    animation-play-state: paused;
}

.payment-icons img:hover {
    filter: opacity(1);
    transform: scale(1.1);
}

@keyframes payment-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Footer */
.footer {
    background: #0a0a0c;
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-logo-alt {
    cursor: default;
    font-size: 32px;
    margin-bottom: 5px;
}

.footer-desc {
    color: var(--text-dim);
    line-height: 1.8;
    font-size: 15px;
    max-width: 500px;
}

.footer-legal-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.footer-legal-text {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: var(--primary);
    color: black;
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-group h4 {
    color: white;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.link-group a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    color: var(--text-dim);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.age-limit-badge {
    border: 2px solid #555;
    color: #999;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    transform: translateY(4px);
}

.gamble-aware-img {
    height: 24px;
    filter: grayscale(1) brightness(0) invert(0.75);
    transition: all 0.3s ease;
}

.gamble-aware-img:hover {
    filter: grayscale(0) brightness(1) invert(0);
}

/* Games Section */
.games-section {
    margin-bottom: 50px;
}

.games-carousel-wrapper {
    position: relative;
    margin-top: 20px;
}

.games-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 15px;
    scrollbar-width: none;
}

.games-grid::-webkit-scrollbar {
    display: none;
}

.game-card {
    min-width: 200px;
    height: 300px;
    background: transparent;
    border: none;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 16px;
    transition: transform 0.6s ease;
}

.game-card:hover {
    transform: translateY(-8px);
}

.game-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 30px rgba(255, 188, 0, 0.2);
}

.games-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.games-control:hover {
    background: var(--primary);
    color: black;
}

.games-control.prev { left: -22px; }
.games-control.next { right: -22px; }

/* Trades Sidebar */
.trades-sidebar {
    grid-column: 3;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-left: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.trades-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trades-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trades-header-top h3 {
    font-size: 16px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 10px;
}

.trade-tabs {
    display: flex;
    background: var(--bg-dark);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.trade-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 8px 0;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.trade-tab-btn.active {
    background: var(--primary);
    color: #000;
}

.trades-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: none;
}

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

/* Trade Card */
.trade-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
}

.trade-card:hover {
    border-color: rgba(255, 188, 0, 0.2);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.trade-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.trade-card-timer {
    background: rgba(0,0,0,0.5);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(255, 188, 0, 0.3);
    white-space: nowrap;
}

.trade-card-body {
    display: flex;
    gap: 12px;
    align-items: center;
}

.trade-card-img-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.trade-card-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.1));
}

.trade-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trade-card-name {
    font-size: 13px;
    font-weight: 700;
    color: #eee;
    line-height: 1.2;
}

.trade-card-meta {
    font-size: 11px;
    color: var(--text-dim);
}

.trade-card-meta span {
    color: var(--primary);
    font-weight: 600;
}

.trade-card-price {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
}

.trade-card-instruction {
    font-size: 11px;
    color: var(--text-dim);
    background: rgba(0,0,0,0.2);
    padding: 8px;
    border-radius: 8px;
    text-align: center;
}

.trade-action-btn {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-deposit {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
}

.btn-withdraw {
    background: #2ed573;
    color: #000;
}

.trade-action-btn:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.open-trades-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: black;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 100;
    display: none;
}

.app-container.trades-closed .open-trades-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Notification Button */
.notification-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 18px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary);
    transform: translateY(-2px);
    border-color: rgba(255, 188, 0, 0.3);
}

/* Mobile Media Queries */
@media (max-width: 1200px) {
    .app-container {
        grid-template-columns: 0 1fr 0;
    }

    .chat-sidebar, .trades-sidebar {
        position: fixed;
        top: var(--header-height);
        bottom: 0;
        z-index: 1000;
        width: 320px !important;
        height: calc(100vh - var(--header-height));
        transition: transform 0.4s ease;
    }

    .chat-sidebar {
        left: 0;
        transform: translateX(-100%);
    }

    .trades-sidebar {
        right: 0;
        transform: translateX(100%);
        border-left: 1px solid var(--glass-border);
    }

    .app-container:not(.chat-closed) .chat-sidebar {
        transform: translateX(0);
    }

    .app-container:not(.trades-closed) .trades-sidebar {
        transform: translateX(0);
    }

    .content-area {
        grid-column: 1 / span 3;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .main-header {
        height: 60px;
        padding: 0 10px;
        gap: 0;
        justify-content: space-between;
    }

    .header-left {
        flex: 1;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
    }

    .logo {
        display: none !important;
    }

    .main-nav {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: white;
        width: 40px;
        height: 40px;
        font-size: 22px;
        cursor: pointer;
        flex-shrink: 0;
    }

    /* Center: balance + cashier */
    .header-center {
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        min-width: 0;
    }

    .balance-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 5px 8px;
        gap: 8px;
        width: 100%;
        max-width: 200px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--glass-border);
        box-shadow: none;
    }

    .balance-info {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 0;
        min-width: 0;
    }

    .gem-icon {
        height: 14px;
    }

    .balance-amount {
        font-size: 13px;
        font-weight: 700;
        white-space: nowrap;
    }

    .cashier-btn {
        padding: 5px 10px;
        font-size: 9px;
        letter-spacing: 0.5px;
        border-radius: 8px;
        white-space: nowrap;
    }

    /* Right: only avatar */
    .header-right {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 0;
    }

    .leaderboard-btn,
    .notification-btn,
    .user-meta,
    .user-info > i {
        display: none !important;
    }

    .user-info {
        padding: 0;
        background: transparent;
        border: none;
        gap: 0;
    }

    .user-avatar {
        width: 38px;
        height: 38px;
        border: 2px solid var(--primary);
    }

    /* Mobile nav overlay */
    .main-nav.active {
        display: flex !important;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: #0d0d0d;
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--glass-border);
        z-index: 1001;
        gap: 8px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.6);
        animation: slideDown 0.25s ease;
    }

    .main-nav.active .nav-btn {
        width: 100%;
        justify-content: flex-start;
        font-size: 15px;
        padding: 12px 15px;
        background: rgba(255, 255, 255, 0.04);
        border-radius: 8px;
    }

    .main-nav.active .dropdown {
        width: 100%;
    }

    .main-nav.active .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 5px 0 5px 20px;
    }

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

    /* ── Sidebars: full-screen overlays ── */
    .chat-sidebar, .trades-sidebar {
        width: 85vw !important;
        max-width: 300px;
    }

    /* ── Content area ── */
    .content-area {
        padding: 15px;
        overflow-x: hidden;
    }

    /* ── Banner / Slider: horizontal, smaller text ── */
    .banner-carousel {
        height: 220px;
        border-radius: 14px;
        margin-bottom: 20px;
        overflow: hidden;
    }

    .banner-slide {
        padding: 0 20px;
        align-items: flex-end;
        padding-bottom: 20px;
    }

    .banner-bg {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    .banner-overlay {
        background: linear-gradient(
            to top,
            rgba(0,0,0,0.85) 0%,
            rgba(0,0,0,0.3) 60%,
            transparent 100%
        );
    }

    .banner-content {
        position: relative;
        z-index: 3;
        max-width: 100%;
    }

    .banner-tag {
        font-size: 9px;
        letter-spacing: 1px;
        margin-bottom: 5px;
    }

    .banner-title {
        font-size: 16px;
        line-height: 1.2;
        margin-bottom: 8px;
        -webkit-text-fill-color: white;
        background: none;
    }

    .banner-subtitle {
        display: none;
    }

    .banner-cta {
        padding: 7px 14px;
        font-size: 11px;
        border-radius: 8px;
    }

    .carousel-control {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    /* ── Sections ── */
    .section-header {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .section-title {
        font-size: 16px;
    }

    /* ── Footer ── */
    .footer-container {
        padding: 0 15px;
    }

    .footer-top {
        flex-direction: column;
        gap: 35px;
        align-items: center;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 25px;
    }

    .link-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    .footer-socials {
        justify-content: center;
    }

    /* ── Payment strip ── */
    .payment-strip {
        margin-top: 5px;
    }

    .payment-icons {
        gap: 20px;
        justify-content: center;
    }

    .payment-icons img {
        height: 16px;
    }
    .footer-legal {
        justify-content: center;
    }
}


