:root {
    --bg-page: #f9fafb; --bg-card: #ffffff; --text-main: #1f2937;
    --primary: #4f46e5; --border: #e5e7eb; --shadow: 0 4px 6px rgba(0,0,0,0.1);
}
[data-theme="dark"] {
    --bg-page: #111827; --bg-card: #1f2937; --text-main: #f9fafb; --border: #374151;
}

body { background: var(--bg-page); color: var(--text-main); font-family: sans-serif; margin: 0; padding-bottom: 60px; transition: 0.3s; }
.top-menu { display: flex; justify-content: space-between; padding: 1rem 2rem; background: var(--bg-card); border-bottom: 1px solid var(--border); }
.container { max-width: 800px; margin: 2rem auto; padding: 0 1rem; }
section, aside { background: var(--bg-card); padding: 2rem; border-radius: 1rem; border: 1px solid var(--border); box-shadow: var(--shadow); }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 1000; }
.modal-content { background: var(--bg-card); width: 400px; margin: 10% auto; padding: 2rem; border-radius: 1rem; }

.participants-grid { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0; }
.participant-card { background: var(--bg-page); padding: 1rem; border-radius: 0.5rem; text-align: center; border: 1px solid var(--border); min-width: 100px; }
.vote-badge { font-size: 1.5rem; display: block; margin-top: 0.5rem; }

button { padding: 0.6rem 1.2rem; border-radius: 0.5rem; border: none; cursor: pointer; font-weight: bold; }
.btn-primary { background: var(--primary); color: white; }
input, select, textarea { box-sizing: border-box; width: 100%; padding: 0.8rem; margin: 0.5rem 0 1.2rem; border-radius: 0.5rem; border: 1px solid var(--border); background: var(--bg-page); color: var(--text-main); font-family: inherit; font-size: 1rem; }
textarea { resize: vertical; min-height: 80px; }

.fixed-footer { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--bg-card); border-top: 1px solid var(--border); padding: 0.8rem 1rem; font-size: 0.9rem; z-index: 1000; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; }
.footer-left { flex: 1; }
.footer-center { flex: 1; text-align: center; }
.footer-right { flex: 1; display: flex; justify-content: flex-end; gap: 0.5rem; }
.flag-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 0; transition: transform 0.2s; }
.flag-btn:hover { transform: scale(1.1); }
.flag-btn img { display: block; border-radius: 3px; border: 1px solid rgba(0,0,0,0.1); }