* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0c10;
    color: #ffffff;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
}

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.real-balance {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
}

.welcome-section {
    margin-bottom: 24px;
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-subtitle {
    font-size: 14px;
    color: #64748b;
}

.admin-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-input, .admin-select {
    width: 100%;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    color: white;
    margin-bottom: 12px;
}

.admin-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.admin-input-small {
    flex: 1;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    color: white;
}

.action-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.action-button.secondary {
    background: linear-gradient(135deg, #475569, #334155);
    margin-top: 12px;
}

.admin-tournament-item {
    background: rgba(0,0,0,0.2);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-tournament-title {
    font-weight: 600;
}

.admin-tournament-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 20px;
    background: #3b82f6;
}

.admin-btn-small {
    background: #ef4444;
    border: none;
    border-radius: 20px;
    padding: 4px 12px;
    color: white;
    cursor: pointer;
    margin-left: 8px;
}

.access-denied {
    text-align: center;
    padding: 60px 20px;
}

.access-denied-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.access-denied-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.access-denied-text {
    color: #64748b;
    margin-bottom: 24px;
}

.hidden {
    display: none !important;
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 12px;
    color: #94a3b8;
}

/* Список вопросов */
.admin-questions-list {
    margin-top: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.admin-question-item {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    font-size: 14px;
}

.admin-logs-container {
    background: rgba(0,0,0,0.3);
    border-radius: 16px;
    padding: 12px;
    max-height: 400px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 12px;
    margin-top: 12px;
}

.log-line {
    padding: 4px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    white-space: pre-wrap;
    word-break: break-all;
}

.log-line:hover {
    background: rgba(255,255,255,0.05);
}

.form-field {
    margin-bottom: 16px;
}

.form-label {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 6px;
    display: block;
}

.admin-input, .admin-select {
    width: 100%;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    color: white;
    font-size: 16px;
}