/* Spin The Bottle - Modern CSS */

:root {
    --primary: #ff6b9d;
    --primary-dark: #e91e63;
    --secondary: #9c27b0;
    --accent: #ffd700;
    --bg-dark: #1a1a2e;
    --bg-darker: #16213e;
    --bg-card: #0f3460;
    --text-light: #ffffff;
    --text-muted: #b8b8b8;
    --success: #4caf50;
    --danger: #f44336;
    --warning: #ff9800;
    --info: #2196f3;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(255, 107, 157, 0.5);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-dark);
    overflow: hidden;
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,107,157,0.1) 0%, transparent 50%),
                radial-gradient(circle, rgba(156,39,176,0.1) 25%, transparent 50%);
    animation: bgRotate 30s linear infinite;
}

@keyframes bgRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating Hearts Animation */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 20px;
    animation: floatUp 4s ease-in infinite;
    opacity: 0.6;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Header Styles */
.game-header {
    background: linear-gradient(180deg, var(--bg-darker) 0%, transparent 100%);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo i {
    font-size: 28px;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* User Profile Header */
.user-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-container {
    position: relative;
    width: 50px;
    height: 50px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.avatar:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.avatar-frame {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 60px;
    height: 60px;
    pointer-events: none;
}

.vip-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: var(--gradient-gold);
    color: #000;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    animation: vipPulse 2s ease-in-out infinite;
}

@keyframes vipPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hearts-display {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 107, 157, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--primary);
}

.hearts-display i {
    color: var(--danger);
    animation: heartBeat 1s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.hearts-count {
    font-weight: bold;
    color: var(--primary);
}

.logout-btn {
    background: var(--danger);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(244, 67, 54, 0.4);
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: rgba(15, 52, 96, 0.5);
    backdrop-filter: blur(10px);
}

.nav-tab {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
}

.nav-tab:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.1);
}

.nav-tab.active {
    background: var(--gradient-2);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Room Cards */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.room-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.room-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-2);
}

.room-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.room-card.vip-room::before {
    background: var(--gradient-gold);
}

.room-card.vip-room {
    border-color: var(--accent);
}

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

.room-name {
    font-size: 20px;
    font-weight: bold;
}

.room-badge {
    background: var(--gradient-gold);
    color: #000;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.room-description {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 14px;
}

.room-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.players-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.players-count i {
    color: var(--info);
}

.players-count.full {
    color: var(--danger);
}

.room-status {
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.status-open {
    background: var(--success);
    color: white;
}

.status-full {
    background: var(--danger);
    color: white;
}

.join-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    background: var(--gradient-2);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.join-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.join-btn:disabled {
    background: #555;
    cursor: not-allowed;
}

/* Game Board */
.game-board {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    gap: 20px;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-card);
    border-radius: 15px;
}

.board-title {
    font-size: 24px;
    font-weight: bold;
}

.board-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.music-btn {
    background: var(--info);
    color: white;
}

.bottle-btn {
    background: var(--gradient-2);
    color: white;
}

.leave-btn {
    background: var(--danger);
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Table Layout */
.table-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 400px;
}

.game-table {
    width: 500px;
    height: 500px;
    position: relative;
}

.table-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--bg-card) 0%, var(--bg-darker) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid var(--primary);
    box-shadow: var(--shadow-glow);
}

.bottle {
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bottle.spinning {
    animation: bottleSpin 3s ease-out;
}

@keyframes bottleSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(1800deg); }
}

/* Player Seats */
.player-seat {
    position: absolute;
    width: 100px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.player-seat.empty {
    opacity: 0.5;
}

.player-seat.position-0 { top: 0; left: 50%; transform: translateX(-50%); }
.player-seat.position-1 { top: 15%; right: 5%; }
.player-seat.position-2 { top: 50%; right: 0; transform: translateY(-50%); }
.player-seat.position-3 { bottom: 15%; right: 5%; }
.player-seat.position-4 { bottom: 0; left: 50%; transform: translateX(-50%); }
.player-seat.position-5 { bottom: 15%; left: 5%; }
.player-seat.position-6 { top: 50%; left: 0; transform: translateY(-50%); }
.player-seat.position-7 { top: 15%; left: 5%; }

.seat-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.seat-avatar:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.seat-avatar.male {
    border-color: var(--info);
}

.seat-avatar.female {
    border-color: var(--primary);
}

.seat-avatar.selected {
    box-shadow: 0 0 20px var(--accent);
    border-color: var(--accent);
}

.seat-name {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seat-kisses {
    font-size: 11px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 3px;
}

.seat-kisses i {
    font-size: 10px;
}

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

.kiss-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-glow);
}

.kiss-title {
    font-size: 28px;
    margin-bottom: 20px;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.kiss-players {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 30px 0;
}

.kiss-player {
    text-align: center;
}

.kiss-player img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    margin-bottom: 10px;
}

.kiss-vs {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent);
}

.countdown {
    font-size: 48px;
    font-weight: bold;
    color: var(--accent);
    margin: 20px 0;
    animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.kiss-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.kiss-yes-btn, .kiss-no-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kiss-yes-btn {
    background: var(--success);
    color: white;
}

.kiss-yes-btn:hover {
    background: #45a049;
    transform: scale(1.05);
}

.kiss-no-btn {
    background: var(--danger);
    color: white;
}

.kiss-no-btn:hover {
    background: #d32f2f;
    transform: scale(1.05);
}

/* Chat Section */
.chat-section {
    height: 250px;
    background: var(--bg-card);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.chat-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 70%;
}

.chat-username {
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 3px;
}

.chat-text {
    font-size: 14px;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-actions {
    display: flex;
    gap: 10px;
}

.chat-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* Gift Panel */
.gift-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: 30px 30px 0 0;
    padding: 20px;
    z-index: 1500;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 50vh;
    overflow-y: auto;
}

.gift-panel.active {
    transform: translateY(0);
}

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

.gift-panel-title {
    font-size: 20px;
    font-weight: bold;
}

.close-gift-panel {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.gifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.gift-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gift-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: scale(1.05);
}

.gift-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
}

.gift-name {
    font-size: 12px;
    margin-bottom: 5px;
}

.gift-price {
    font-size: 11px;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.gift-vip-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--gradient-gold);
    color: #000;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
}

/* Rating Page */
.rating-container {
    padding: 20px;
}

.rating-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.rating-tab {
    padding: 12px 25px;
    border-radius: 25px;
    background: var(--bg-card);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.rating-tab:hover {
    color: var(--text-light);
}

.rating-tab.active {
    background: var(--gradient-2);
    color: white;
    border-color: var(--primary);
}

.rating-list {
    max-width: 800px;
    margin: 0 auto;
}

.rating-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.rating-item:hover {
    transform: translateX(5px);
    border-left: 4px solid var(--primary);
}

.rating-rank {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
}

.rating-rank.gold {
    background: var(--gradient-gold);
    color: #000;
}

.rating-rank.silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #808080 100%);
    color: #000;
}

.rating-rank.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #8b4513 100%);
    color: #000;
}

.rating-rank.normal {
    background: var(--bg-darker);
    color: var(--text-muted);
}

.rating-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.rating-info {
    flex: 1;
}

.rating-username {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.rating-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.rating-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent);
}

/* Shop Page */
.shop-container {
    padding: 20px;
}

.shop-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.shop-category {
    padding: 15px 30px;
    border-radius: 25px;
    background: var(--bg-card);
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-category:hover {
    color: var(--text-light);
}

.shop-category.active {
    background: var(--gradient-2);
    color: white;
}

.shop-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.shop-item {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.shop-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.shop-item-image {
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
}

.shop-item-image img {
    max-height: 120px;
    max-width: 80%;
}

.shop-item-info {
    padding: 20px;
}

.shop-item-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.shop-item-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

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

.shop-item-price {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 18px;
    font-weight: bold;
    color: var(--accent);
}

.buy-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 20px;
    background: var(--gradient-2);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.buy-btn:disabled {
    background: #555;
    cursor: not-allowed;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-box {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 30px;
    width: 100%;
    max-width: 450px;
    border: 2px solid rgba(255, 107, 157, 0.3);
    box-shadow: var(--shadow);
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo i {
    font-size: 60px;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.3);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.gender-select {
    display: flex;
    gap: 15px;
}

.gender-option {
    flex: 1;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gender-option:hover {
    border-color: var(--primary);
}

.gender-option.selected {
    border-color: var(--primary);
    background: rgba(255, 107, 157, 0.2);
}

.gender-option i {
    font-size: 24px;
    margin-bottom: 5px;
    display: block;
}

.auth-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 15px;
    background: var(--gradient-2);
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Admin Panel */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background: var(--bg-darker);
    padding: 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-menu {
    list-style: none;
}

.admin-menu-item {
    margin-bottom: 5px;
}

.admin-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.admin-menu-link:hover,
.admin-menu-link.active {
    background: var(--gradient-2);
    color: white;
}

.admin-content {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
}

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

.admin-title {
    font-size: 28px;
    font-weight: bold;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
}

.stat-icon.blue { background: rgba(33, 150, 243, 0.2); color: var(--info); }
.stat-icon.green { background: rgba(76, 175, 80, 0.2); color: var(--success); }
.stat-icon.pink { background: rgba(255, 107, 157, 0.2); color: var(--primary); }
.stat-icon.gold { background: rgba(255, 215, 0, 0.2); color: var(--accent); }

.stat-info h3 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
}

/* Data Tables */
.data-table {
    width: 100%;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
}

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

.data-table th,
.data-table td {
    padding: 15px 20px;
    text-align: left;
}

.data-table th {
    background: var(--bg-darker);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 14px;
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.data-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-cell img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.action-btns {
    display: flex;
    gap: 8px;
}

.action-btn-small {
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-ban { background: var(--danger); color: white; }
.btn-mod { background: var(--info); color: white; }
.btn-vip { background: var(--gradient-gold); color: #000; }
.btn-frame { background: var(--primary); color: white; }
.btn-edit { background: var(--success); color: white; }
.btn-delete { background: var(--danger); color: white; }

.action-btn-small:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

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

.modal-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

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

.modal-title {
    font-size: 22px;
    font-weight: bold;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

/* Profile Modal */
.profile-modal-content {
    text-align: center;
    max-width: 400px;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    margin-bottom: 15px;
}

.profile-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.profile-stats-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent);
}

.profile-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

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

.profile-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Settings Panel */
.settings-section {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.settings-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-label {
    font-weight: 600;
}

.setting-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #555;
    border-radius: 26px;
    transition: 0.3s;
}

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

input:checked + .toggle-slider {
    background: var(--primary);
}

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

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 15px 25px;
    border-radius: 15px;
    color: white;
    font-weight: 600;
    animation: toastSlide 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}

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

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--info); }
.toast.warning { background: var(--warning); }

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .admin-content {
        margin-left: 0;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .game-table {
        width: 350px;
        height: 350px;
    }
    
    .table-center {
        width: 140px;
        height: 140px;
    }
    
    .seat-avatar {
        width: 50px;
        height: 50px;
    }
    
    .player-seat {
        width: 70px;
        height: 90px;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.loading span {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    animation: loadingBounce 0.6s ease infinite;
}

.loading span:nth-child(2) { animation-delay: 0.1s; }
.loading span:nth-child(3) { animation-delay: 0.2s; }

@keyframes loadingBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Emoji Picker */
.emoji-picker {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    padding: 15px;
    background: var(--bg-darker);
    border-radius: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.emoji-item {
    font-size: 24px;
    cursor: pointer;
    text-align: center;
    padding: 5px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.emoji-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.2);
}

/* Voice Message */
.voice-message {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 107, 157, 0.2);
    padding: 10px 15px;
    border-radius: 20px;
}

.voice-play-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.voice-wave {
    display: flex;
    align-items: center;
    gap: 3px;
}

.voice-wave span {
    width: 3px;
    background: var(--primary);
    border-radius: 2px;
    animation: voiceWave 0.5s ease infinite;
}

@keyframes voiceWave {
    0%, 100% { height: 10px; }
    50% { height: 25px; }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

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

/* Footer */
.game-footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

/* Hidden */
.hidden {
    display: none !important;
}

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

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.5s ease;
}

/* Combo Animation */
.combo-text {
    position: fixed;
    font-size: 48px;
    font-weight: bold;
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent);
    animation: comboAnim 1s ease forwards;
    z-index: 2500;
    pointer-events: none;
}

@keyframes comboAnim {
    0% {
        transform: scale(0) rotate(-20deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.5) rotate(10deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg) translateY(-50px);
        opacity: 0;
    }
}

/* Gift Animation */
.gift-animation {
    position: fixed;
    z-index: 2000;
    animation: giftFly 1s ease forwards;
    pointer-events: none;
}

@keyframes giftFly {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}
