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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: #1a1f2e;
    min-height: 100vh;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.navbar {
    background: #1a1f2e;
    border-bottom: 1px solid #2d3548;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 20px;
    font-weight: 700;
    color: rgb(255, 193, 7);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.navbar nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.navbar nav a {
    padding: 8px 16px;
    text-decoration: none;
    color: #a0a6b1;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar nav a:hover {
    color: #ffffff;
    background: #252b3b;
}

.card {
    background: #252b3b;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid #2d3548;
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffffff;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #2d3548;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #1a1f2e;
    color: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.btn-primary {
    background: #ffc107;
    color: #000000;
}

.btn-primary:hover {
    background: #ffcd38;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.btn-success {
    background: #ffc107;
    color: #000000;
}

.btn-success:hover {
    background: #ffcd38;
}

.btn-danger {
    background: #ef4444;
    color: #ffffff;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-warning {
    background: #ffc107;
    color: #000000;
}

.btn-warning:hover {
    background: #ffcd38;
}

.btn-full {
    width: 100%;
}

.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid;
}

.alert-success {
    background: #1e3a1e;
    border-color: #2d5a2d;
    color: #a7f3d0;
}

.alert-error {
    background: #3a1e1e;
    border-color: #5a2d2d;
    color: #fecaca;
}

.alert-info {
    background: #1e2a3a;
    border-color: #2d3f5a;
    color: #bfdbfe;
}

.wallet-card {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #000000;
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.3);
}

.wallet-card h3 {
    color: rgba(0, 0, 0, 0.8);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.wallet-balance {
    font-size: 48px;
    font-weight: 700;
    margin: 16px 0 24px;
    letter-spacing: -0.02em;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: #252b3b;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #2d3548;
    text-align: left;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #ffc107;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.stat-label {
    color: #a0a6b1;
    font-size: 13px;
    font-weight: 500;
}

.game-card {
    background: #252b3b;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid #2d3548;
    transition: all 0.2s ease;
}

.game-card:hover {
    border-color: #ffc107;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.1);
}

.game-question {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
    line-height: 1.4;
}

.vote-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.vote-btn {
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    border: 2px solid;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.vote-btn.yes {
    background: #ffc107;
    color: #000000;
    border-color: #ffc107;
}

.vote-btn.yes:hover {
    background: #ffcd38;
    border-color: #ffcd38;
    transform: scale(1.02);
}

.vote-btn.no {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.vote-btn.no:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: scale(1.02);
}

.vote-btn.selected {
    border-color: #fbbf24;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
}

.chat-container {
    background: rgb(255, 193, 7);
    border-radius: 12px;
    height: 400px;
    display: flex;
    flex-direction: column;
    border: 1px solid #2d3548;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    border-bottom: 1px solid #2d3548;
}

.chat-message {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 8px;
    background: #1a1f2e;
}

.chat-message .username {
    font-weight: 600;
    color: #ffc107;
    margin-bottom: 4px;
    font-size: 13px;
}

.chat-message .time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

.chat-input {
    display: flex;
    padding: 12px;
    gap: 8px;
}

.chat-input input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #2d3548;
    border-radius: 8px;
    font-size: 14px;
    background: #1a1f2e;
    color: #ffffff;
}

.chat-input button {
    padding: 10px 20px;
}

.user-votes {
    margin-top: 16px;
}

.vote-item {
    background: #1a1f2e;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #2d3548;
}

.vote-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    color: white;
}

.vote-badge.yes {
    background: #ffc107;
    color: #000000;
}

.vote-badge.no {
    background: #ef4444;
}

.winners-list {
    margin-top: 20px;
}

.winner-item {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #000000;
}

.loser-item {
    background: #3a1e1e;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    color: #fecaca;
    border: 1px solid #5a2d2d;
}

.game-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    color: white;
    margin-left: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-status.active {
    background: #077bff;
    color: #000000;
}

.game-status.ended {
    background: #6e7c87;
}

.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    vertical-align: middle;
}

.profile-img-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 20px auto;
    display: block;
    border: 4px solid #2d3548;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .two-column {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 12px;
    }
    
    .navbar nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .vote-buttons {
        grid-template-columns: 1fr;
    }
}

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

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading.show {
    display: block;
}

.spinner {
    border: 3px solid #2d3548;
    border-top: 3px solid #ffc107;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

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

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-method {
    padding: 20px;
    border: 2px solid #2d3548;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    background: #1a1f2e;
}

.payment-method:hover {
    border-color: #ffc107;
    background: #252b3b;
}

.payment-method.active {
    border-color: #ffc107;
    background: #2a2410;
}

.payment-method h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.payment-method p {
    font-size: 13px;
    color: #a0a6b1;
    margin: 0;
}

a {
    color: #ffc107;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #ffcd38;
}

p {
    color: #a0a6b1;
    line-height: 1.6;
}

strong {
    color: #5cd815;
    font-weight: 600;
}

input[readonly],
textarea[readonly] {
    background: #1a1f2e;
    cursor: not-allowed;
    opacity: 0.6;
}
