* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 80px;
}
.container { max-width: 600px; margin: 0 auto; }
.card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
h1, h2, h3 { color: #333; margin-bottom: 16px; }
button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
    width: 100%;
    margin-top: 8px;
}
button:hover { transform: scale(1.02); }
.btn-secondary { background: #6c757d; }
.btn-small { width: auto; padding: 8px 20px; font-size: 14px; display: inline-block; margin: 0; }
.btn-create { background: #4CAF50; font-weight: 500; white-space: nowrap; }
.btn-invite { background: #2196F3; }
input, select, textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
}
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    background: white;
    border-radius: 60px;
    padding: 8px 16px 8px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.user-info-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-details { overflow: hidden; }
.user-name { font-weight: 600; color: #333; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-id { font-size: 12px; color: #888; }
.admin-badge-small { background: #ff9800; color: white; padding: 2px 8px; border-radius: 20px; font-size: 10px; margin-left: 8px; display: inline-block; }
.create-btn-wrapper { flex-shrink: 0; }
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-top: 1px solid #eee;
    max-width: 600px;
    width: 100%;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.2s;
    flex: 1;
}
.nav-item.active { background: #f0f0f0; }
.nav-icon { font-size: 24px; }
.nav-label { font-size: 12px; color: #666; }
.nav-item.active .nav-label { color: #4CAF50; font-weight: 500; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 2px solid #eee; }
.tab {
    padding: 10px 20px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    transition: all 0.3s;
}
.tab.active { color: #4CAF50; border-bottom: 2px solid #4CAF50; margin-bottom: -2px; }
.prize-item, .sponsor-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid #eee;
}
.sponsor-check { width: 20px; height: 20px; cursor: pointer; margin-right: 12px; }
.check-icon { font-size: 20px; }
.check-icon.success { color: #4CAF50; }
.check-icon.error { color: #f44336; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-card { background: #f8f9fa; border-radius: 12px; padding: 16px; text-align: center; }
.stat-value { font-size: 28px; font-weight: bold; color: #4CAF50; }
.stat-label { font-size: 12px; color: #888; margin-top: 4px; }
.list-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #eee; }
.giveaway-item {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    background: #fafafa;
}
.giveaway-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.giveaway-title { font-size: 18px; font-weight: 600; color: #333; }
.status { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.status-active { background: #4CAF50; color: white; }
.status-completed { background: #2196F3; color: white; }
.giveaway-meta { display: flex; gap: 16px; margin: 8px 0; font-size: 13px; color: #888; flex-wrap: wrap; }
.sponsors-list { margin-top: 8px; padding: 8px; background: #f5f5f5; border-radius: 8px; font-size: 12px; }
.prizes-list { margin: 8px 0; padding: 8px; background: #f9f9f9; border-radius: 8px; }
.qr-code { text-align: center; margin-top: 12px; padding: 12px; background: #f5f5f5; border-radius: 10px; }
.qr-code img { max-width: 150px; margin-top: 8px; }
.empty-state { text-align: center; padding: 40px; color: #999; }
.toast {
    position: fixed;
    bottom: 80px;
    left: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    z-index: 1000;
    animation: slideUp 0.3s ease;
}
.toast.success { background: #4CAF50; }
.toast.error { background: #f44336; }
@keyframes slideUp { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 90%;
    width: 400px;
    max-height: 80%;
    overflow: auto;
    padding: 20px;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.flex-buttons { display: flex; gap: 8px; margin-top: 8px; }
.flex-buttons button { flex: 1; margin-top: 0; }
