:root {
  --bg: #0f172a;
  --panel: #1e293b;
  --panel-light: #334155;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --muted: #94a3b8;
  --primary: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --secondary: #10b981;
  --secondary-600: #059669;
  --accent: #8b5cf6;
  --accent-600: #7c3aed;
  --border: #334155;
  --border-light: #475569;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow: rgba(0, 0, 0, 0.25);
  --shadow-lg: rgba(0, 0, 0, 0.4);
}

* { 
  box-sizing: border-box; 
}

html, body { 
  height: 100%; 
}

body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  background-attachment: fixed;
  color: var(--text);
  padding-top: 80px;
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* HOOFDTITEL STYLING */
.main-title {
  font-size: 6rem;
  font-weight: 900;
  text-align: center;
  margin: 0 0 2rem 0;
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .main-title {
    font-size: 4.5rem;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 3.5rem;
  }
}

/* LOGO STYLING */
.logo-container {
  text-align: center;
  margin: 32px 0 48px;
}

.logo {
  height: clamp(80px, 12vw, 120px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* POLL PAGE TITLE STYLING */
.poll-page-title {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  text-align: center;
  margin: 0 0 3rem 0;
  background: linear-gradient(120deg, #8b5cf6 40%, #fbbf24 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* CHAT PAGE TITLE STYLING (rood → groen verloop) */
.chat-page-title {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  text-align: center;
  margin: 0 0 3rem 0;
  background: linear-gradient(90deg, #ef4444 0%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

/* TOP PAGE TITLE STYLING (zilver → goud verloop) */
.top-page-title {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  text-align: center;
  margin: 0 0 3rem 0;
  background: linear-gradient(120deg, #C0C0C0 40%, #FFD700 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

/* Behoud oude h1#title styling voor backwards compatibility */
h1#title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  margin: 32px 0 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

/* Nieuwe div#title styling voor logo containers */
div#title {
  text-align: center;
  margin: 32px 0 48px;
}

/* PROFILE PAGE TITLE STYLING (paars → bruin verloop) */
.profile-page-title {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  text-align: center;
  margin: 0 0 3rem 0;
  background: linear-gradient(120deg, #8b5cf6 40%, #8B4513 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 24px 0;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px 0;
}

p {
  color: var(--text-secondary);
  margin: 0 0 16px 0;
}

.card {
  background: linear-gradient(145deg, var(--panel), rgba(30, 41, 59, 0.8));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 40px var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(12px);
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  border-color: var(--border-light);
}

.buttons { 
  display: flex; 
  gap: 16px; 
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.form { 
  display: grid; 
  gap: 20px; 
  margin-bottom: 24px; 
}

.form input, .form textarea, .form select {
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  padding: 16px 20px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
}

.form input:focus, .form textarea:focus, .form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  background: rgba(15, 23, 42, 0.95);
}

.form input::placeholder, .form textarea::placeholder {
  color: var(--muted);
}

/* NAME INPUT GROUP STYLING */
.name-input-section {
  margin-bottom: 20px;
}

.name-input-group {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.name-input-group input {
  flex: 1;
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  padding: 16px 20px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
}

.name-input-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  background: rgba(15, 23, 42, 0.95);
}

.name-input-group input::placeholder {
  color: var(--muted);
}

.name-input-group .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.btn {
  appearance: none;
  border: 2px solid var(--border);
  background: linear-gradient(145deg, var(--panel), var(--panel-light));
  color: var(--text);
  padding: 14px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover { 
  transform: translateY(-2px); 
  border-color: var(--border-light);
  box-shadow: 0 10px 25px var(--shadow);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled { 
  opacity: 0.5; 
  cursor: not-allowed; 
  transform: none;
}

.btn.primary { 
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: white; 
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn.primary:hover { 
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  border-color: var(--primary-600);
}

.btn.secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-600));
  color: white;
  border-color: var(--secondary);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn.secondary:hover {
  background: linear-gradient(135deg, var(--secondary-600), #047857);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-600));
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn.accent:hover {
  background: linear-gradient(135deg, var(--accent-600), #6d28d9);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, var(--error), #dc2626);
  color: white;
  border-color: var(--error);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
  border-color: #dc2626;
}

.note { 
  margin: 16px 0 0; 
  color: var(--muted); 
  font-size: 14px; 
  line-height: 1.5;
}

/* POLLS LIST EN KAARTJES */
.poll-card {
  padding: 20px;
}

.poll-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.poll-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.poll-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
}

.badge-category {
  border-color: var(--accent);
  color: #e9d5ff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(124, 58, 237, 0.1));
}

.badge-type {
  border-color: var(--primary);
  color: #bfdbfe;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
}

/* Badge: Al gestemd */
.badge-voted {
  border-color: #10b981;
  color: #d1fae5;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.20), rgba(16, 185, 129, 0.12));
}

.status-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-light);
}

/* TOP STATISTIEK BALK */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.stat {
  background: linear-gradient(145deg, var(--panel), rgba(30, 41, 59, 0.85));
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 12px;
  box-shadow: 0 6px 12px var(--shadow);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px var(--shadow-lg);
  border-color: var(--primary);
}

.stat .label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.stat .value {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .stats-bar {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat {
    padding: 10px 10px;
    border-radius: 10px;
  }
  .stat .value {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat .value {
    font-size: 1.1rem;
  }
}

.status-chip.open {
  color: #a7f3d0;
  border-color: var(--secondary);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
}

.status-chip.closed {
  color: #fecaca;
  border-color: var(--error);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.1));
}

.poll-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.panel-section {
  display: none;
  margin-top: 12px;
  border-top: 1px dashed var(--border-light);
  padding-top: 12px;
}

.result-row,
.rank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
}

.percent-option {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.percent-input {
  width: 100%;
  accent-color: var(--primary);
}

/* Result bars voor percent-resultaten */
/* Override layout voor resultaat-rijen zodat bars netjes stapelen */
.result-row { 
  display: block; 
  margin: 10px 0 14px; 
  background: rgba(255, 255, 255, 0.10); 
  border: 1px solid var(--border-light); 
  border-radius: 10px; 
  padding: 10px 12px; 
}
.result-title { font-weight: 600; margin-bottom: 8px; color: var(--text); }
.bar-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.result-bar { flex: 1; height: 14px; background: #f3f4f6; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05); }
.result-bar-fill { height: 100%; width: 0; transition: width 240ms ease; }
.result-bar-fill.raw { background: linear-gradient(90deg, var(--primary), var(--primary-600)); }
.result-bar-fill.weighted { background: linear-gradient(90deg, #10b981, #059669); }
.bar-label { min-width: 140px; font-size: 12px; color: var(--text-secondary); text-align: right; }

.rank-controls .btn {
  padding: 6px 10px;
}

.muted {
  color: var(--muted);
}

.muted { 
  color: var(--muted); 
}

.hidden { 
  display: none; 
}

#user-info { 
  margin-bottom: 24px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
}

/* VIP WACHTWOORD BEHEER STYLING */
.vip-password-section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.vip-password-section h3 {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.password-field-group {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.password-field-group input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 14px;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

.password-field-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.password-field-group input[readonly] {
  background: var(--panel-light);
  cursor: default;
}

.toggle-visibility-btn {
  background: var(--panel-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.toggle-visibility-btn:hover {
  background: var(--border);
  border-color: var(--border-light);
}

.password-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.password-actions .button {
  flex: 1;
  min-width: 120px;
}

.password-actions .button.secondary {
  background: var(--panel-light);
  color: var(--text);
  border: 1px solid var(--border);
}

.password-actions .button.secondary:hover {
  background: var(--border);
  border-color: var(--border-light);
}

.password-actions .button.danger {
  background: var(--error);
  color: white;
  border: 1px solid var(--error);
}

.password-actions .button.danger:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.status-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  display: none;
}

.status-message.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

@media (max-width: 768px) {
  .password-field-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .toggle-visibility-btn {
    align-self: flex-start;
  }
  
  .password-actions {
    flex-direction: column;
  }
  
  .password-actions .button {
    flex: none;
  }
}

/* Creator Status Icons */
.creator-status-icon {
  margin-left: 8px;
  font-size: 16px;
  display: inline-block;
  vertical-align: middle;
}
.creator-status-icon.vip-icon {
  color: #e6b800;
  text-shadow: 0 0 4px rgba(230, 184, 0, 0.5);
}

/* Enhanced Poll Cards */
.poll-card {
  transition: all 0.4s ease;
  position: relative;
}

/* Poll Cards - Eenvoudige weergave */
.poll-card.simple-view {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid #e1e5e9;
  transition: all 0.3s ease;
}

.poll-card.simple-view:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.poll-card.simple-view .poll-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.poll-card.simple-view .poll-question {
  margin: 0;
  font-size: 1.2em;
  font-weight: 600;
  color: #2c3e50;
  flex: 1;
  min-width: 200px;
  text-align: left !important;
}

.poll-card.simple-view .poll-type-badge {
  background: #3498db;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 500;
}

.poll-card.simple-view .poll-status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 500;
}

.poll-card.simple-view .poll-status-badge.active {
  background: #27ae60;
  color: white;
}

.poll-card.simple-view .poll-status-badge.closed {
  background: #e74c3c;
  color: white;
}

.poll-card.simple-view .poll-description {
  color: #7f8c8d;
  margin-bottom: 15px;
  font-style: italic;
}

.poll-card.simple-view .poll-options {
  margin-bottom: 15px;
}

.poll-card.simple-view .poll-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  margin-bottom: 8px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.poll-card.simple-view .poll-option:hover {
  background: #e9ecef;
}

.poll-card.simple-view .poll-option.user-voted {
  background: #d4edda;
  border-color: #c3e6cb;
}

.poll-card.simple-view .option-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-right: 15px;
}

.poll-card.simple-view .option-text {
  font-weight: 500;
  color: #2c3e50;
}

.poll-card.simple-view .option-votes {
  color: #7f8c8d;
  font-size: 0.9em;
  margin-left: 15px;
}

.poll-card.simple-view .vote-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.poll-card.simple-view .vote-btn:hover {
  background: #2980b9;
}

.poll-card.simple-view .poll-footer {
  border-top: 1px solid #e9ecef;
  padding-top: 15px;
  margin-top: 15px;
}

.poll-card.simple-view .voted-info {
  color: #27ae60;
  font-weight: 500;
  margin-bottom: 10px;
}

.poll-card.simple-view .delete-vote-btn {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.poll-card.simple-view .delete-vote-btn:hover {
  background: #c0392b;
}

/* Poll Status Styling */
.poll-card.poll-active {
  border-left: 4px solid var(--success);
}

.poll-card.poll-inactive {
  border-left: 4px solid var(--error);
  opacity: 0.7;
}

.poll-card.poll-inactive::before {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(239, 68, 68, 0.1));
}

/* Al gestemd: open poll krijgt een gele accentkleur */
.poll-card.has-voted {
  border-left: 4px solid var(--warning);
}

/* Maak de Undo-knop (Stem intrekken) geel binnen het stempaneel */
.poll-card .panel-section .btn[data-action="undo-vote"] {
  background: var(--warning);
  border-color: var(--warning);
  color: #1f2937;
}
.poll-card .panel-section .btn[data-action="undo-vote"]:hover {
  filter: brightness(0.95);
}

/* Maak de hoofd Undo-knop geel wanneer al gestemd is */
.poll-card.has-voted .poll-actions [data-action="toggle-vote"] {
  background: var(--warning);
  border-color: var(--warning);
  color: #1f2937;
}
.poll-card.has-voted .poll-actions [data-action="toggle-vote"]:hover {
  filter: brightness(0.95);
}

/* Als de stemming gesloten is, wordt de has-voted indicatie blauw */
.poll-card.has-voted.poll-inactive {
  border-left: 4px solid var(--primary);
}

.poll-status-badge {
  position: absolute;
  top: -8px;
  right: 16px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.poll-status-badge.status-expired {
  background: linear-gradient(135deg, var(--warning), #f59e0b);
  color: #1f2937;
}

.poll-status-badge.status-max-votes {
  background: linear-gradient(135deg, var(--error), #dc2626);
  color: white;
}

.poll-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.poll-card:hover::before {
  opacity: 1;
}

.poll-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.poll-header-content {
  flex: 1;
}

.poll-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.poll-creator-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.poll-creator-photo {
  flex-shrink: 0;
}

.creator-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.creator-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  color: white;
  border: 2px solid var(--border);
}

.creator-name {
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
}

.poll-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-direction: row;
}

.like-section {
  display: flex;
  align-items: center;
  gap: 6px;
}

.like-btn {
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 36px;
}

.like-btn:hover {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.like-btn.liked {
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.like-btn.liked:hover {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.like-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 20px;
  text-align: center;
}

.expand-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.expand-btn:hover {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.expand-icon {
  font-size: 16px;
  font-weight: bold;
  color: white;
  transition: transform 0.3s ease;
}

.poll-content {
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.poll-content.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.poll-content.expanded {
  max-height: 2000px;
  opacity: 1;
  margin-top: 20px;
}

/* Enhanced Poll Options */
.poll-options {
  margin: 24px 0;
}

/* User vote indicator styling */
.user-vote-indicator {
  color: #28a745;
  font-weight: bold;
  font-size: 0.9em;
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.user-vote-indicator::before {
  content: "✓";
  color: #28a745;
  font-weight: bold;
}

/* Styling for options the user has voted on */
.poll-option.user-voted {
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid rgba(16, 185, 129, 0.6);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
}

.poll-option.user-voted .poll-option-text {
  font-weight: bold;
  color: #10b981;
}

.poll-option.user-voted label {
  color: #10b981;
  font-weight: bold;
}

.poll-option {
  margin-bottom: 16px;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.6), rgba(30, 41, 59, 0.4));
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.poll-option:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.poll-option-text {
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 16px;
}

.poll-option-bar {
  height: 32px;
  background: rgba(51, 65, 85, 0.6);
  border-radius: 16px;
  position: relative;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.poll-option-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.poll-option-stats {
  position: relative;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 32px;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.vote-btn {
  margin-top: 12px;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 10px;
}

.total-votes {
  font-size: 15px;
  font-weight: 500;
  margin-top: 16px;
  margin-bottom: 20px;
  color: var(--text-secondary);
  padding: 12px 20px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.poll-stats {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.poll-actions {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.poll-actions .btn {
  padding: 8px 16px;
  font-size: 14px;
}

/* Poll List — Compact Styles */
.poll-card {
  margin-bottom: 20px;
}

.poll-card .poll-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.poll-card .poll-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  text-align: left; /* Zorg dat vraag altijd links begint, ook mobiel */
}

.poll-card .poll-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.poll-card .poll-actions {
  margin-top: 8px;
  gap: 10px;
}

.poll-card .panel-section {
  padding: 16px;
}

.poll-card .options {
  display: grid;
  gap: 10px;
}

.poll-card .vote-msg,
.poll-card .results-msg {
  font-size: 14px;
}

/* Mobile compact tuning for polls */
@media (max-width: 768px) {
  .poll-card {
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 16px;
  }
  .poll-card .poll-header {
    gap: 8px;
    margin-bottom: 10px;
  }
  .poll-card .poll-title {
    font-size: 1.05rem;
    text-align: left; /* expliciete linkse uitlijning op smalle schermen */
  }
  .poll-card .poll-meta {
    gap: 6px;
    margin-bottom: 8px;
  }
  .poll-card .poll-actions {
    gap: 8px;
  }
  .poll-card .poll-actions .btn {
    padding: 7px 12px;
    font-size: 13px;
    border-radius: 8px;
  }
  .poll-card .panel-section {
    padding: 12px;
  }
  .poll-card .options {
    gap: 8px;
  }
  .poll-option {
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 10px;
  }
  .poll-option-text {
    font-size: 15px;
    margin-bottom: 8px;
  }
  .poll-option-bar {
    height: 26px;
    border-radius: 12px;
    margin-bottom: 8px;
  }
  .poll-option-stats {
    font-size: 14px;
    line-height: 26px;
    padding: 0 12px;
  }
  .total-votes {
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    margin-top: 12px;
    margin-bottom: 14px;
  }
}

@media (max-width: 480px) {
  .poll-card {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 14px;
  }
  .poll-card .poll-title {
    font-size: 1rem;
    text-align: left; /* expliciete linkse uitlijning voor zeer smalle schermen */
  }
  .poll-card .poll-actions .btn {
    padding: 6px 10px;
    font-size: 12.5px;
  }
  .poll-card .panel-section {
    padding: 10px;
  }
  .poll-card .vote-msg,
  .poll-card .results-msg {
    font-size: 13px;
  }
  .poll-option {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 8px;
  }
  .poll-option-bar {
    height: 22px;
  }
  .poll-option-stats {
    font-size: 13px;
    line-height: 22px;
    padding: 0 10px;
  }
}

/* Poll card — smaller buttons */
.poll-card .poll-actions .btn,
.poll-card .panel-section .btn {
  padding: 6px 11px;
  font-size: 13px;
  border-radius: 8px;
}

/* Specifiek: maak 'Bevestig stem' en 'Boost' knoppen extra compact in het stempaneel */
/* Extra ruimte tussen opties en de knoppen (Bevestig/Boost) in het stempaneel */
.poll-card .panel-section .buttons {
  margin-top: 12px;
}

@media (max-width: 640px) {
  .poll-card .panel-section .buttons {
    margin-top: 10px;
  }
}

/* Invloedregel onder de knoppen in het stempaneel */
.poll-card .panel-section .influence-row {
  margin-top: 8px;
}
.poll-card .panel-section .influence-row .influence-label {
  display: block;
}
.poll-card .panel-section .btn[data-action="submit-vote"],
.poll-card .panel-section .btn[data-action="boost"] {
  padding: 5px 10px;
  font-size: 12.5px;
  border-radius: 7px;
}

@media (max-width: 480px) {
  .poll-card .panel-section .btn[data-action="submit-vote"],
  .poll-card .panel-section .btn[data-action="boost"] {
    padding: 4px 9px;
    font-size: 12px;
    border-radius: 6px;
  }
}

.poll-card .badge,
.poll-card .like-btn {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .poll-card .poll-actions .btn,
  .poll-card .panel-section .btn {
    padding: 5px 10px;
    font-size: 12.5px;
    border-radius: 7px;
  }
  .poll-card .badge,
  .poll-card .like-btn {
    font-size: 11.5px;
    padding: 3px 8px;
  }
}

@media (max-width: 480px) {
  .poll-card .poll-actions .btn,
  .poll-card .panel-section .btn {
    padding: 5px 9px;
    font-size: 12px;
    border-radius: 6px;
  }
  .poll-card .badge,
  .poll-card .like-btn {
    font-size: 11px;
    padding: 3px 7px;
  }
}

/* Profile photo styling */
.profile-photo-section {
  margin-bottom: 30px;
  text-align: center;
}

.photo-container {
  margin: 0 auto 20px auto;
  display: flex;
  justify-content: center;
}

.photo-container img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.photo-placeholder {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 3px dashed #d1d5db;
  color: #6b7280;
  font-size: 16px;
  font-weight: 500;
}

.photo-upload-controls {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin: 0 auto;
  max-width: 400px;
}

.photo-upload-controls label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.photo-upload-controls input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  margin-bottom: 12px;
  cursor: pointer;
}

.photo-upload-controls input[type="file"]::file-selector-button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  margin-right: 12px;
  cursor: pointer;
  font-size: 14px;
}

.photo-upload-controls input[type="file"]::file-selector-button:hover {
  background: var(--primary-dark);
}

.photo-upload-controls input[type="file"]:hover {
  border-color: var(--primary);
}

.photo-upload-controls .btn {
  width: 100%;
  margin: 0;
}

/* Vote actions styling */
.vote-actions {
  margin-top: 16px;
  padding: 16px;
  background: var(--panel);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.vote-actions p {
  margin: 0 0 12px 0;
  font-size: 14px;
}

.vote-actions .btn {
  margin-right: 8px;
  padding: 8px 16px;
  font-size: 14px;
}

/* Back button styling */
.back-button-container {
  margin-bottom: 20px;
}

.back-btn {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  font-size: 14px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--primary);
}

/* Results Page Styling */
.results-chart {
  margin: 24px 0;
}

.poll-result-item {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--panel);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.result-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.option-text {
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
}

.vote-count {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 14px;
}

.result-bar {}
.result-fill {}

.total-votes {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.voter-info {
  margin-top: 12px;
  padding: 12px;
  background: rgba(51, 65, 85, 0.3);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.voter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.voter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.voter-item {
  background: var(--panel-light);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  cursor: help;
  transition: all 0.2s ease;
}

.voter-item:hover {
  background: var(--border-light);
  color: var(--text);
}

.result-item {}
.result-item:hover {}
.result-label {}

.result-bar {}
.result-progress {}
.result-stats {}
.results-btn {}
.results-btn:hover {}

/* Enhanced Top Navigation */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.topbar .tabs { 
  display: flex; 
  gap: 8px; 
  align-items: center; 
}

.topbar .tabs a {
  text-decoration: none;
  color: var(--text-secondary);
  padding: 12px 20px;
  border-radius: 12px;
  border: 2px solid transparent;
  font-weight: 500;
  font-size: 16px;
  /* Disable slow highlight animation on nav tabs */
  transition: none;
  position: relative;
  display: flex;
  align-items: center;
}

/* Logo navigatie styling */
.topbar .tabs a.logo-nav {
  padding: 8px 16px;
}

.nav-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.topbar .tabs a.active {
  color: var(--text);
  /* Simplify: no background highlight or shadow */
  background: none;
  border-color: var(--primary);
  box-shadow: none;
}

.topbar .tabs a:hover:not(.active) { 
  /* Simplify hover: remove background glow */
  color: var(--text);
  background: none;
  border-color: var(--border);
}

.topbar .auth { 
  display: flex; 
  gap: 12px; 
  align-items: center; 
}

.topbar .auth .profile-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
}

.topbar .auth .profile-link:hover {
  background: var(--panel-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* STATUS INDICATOR STYLES */
.status-indicator {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  margin-left: 8px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

/* Gamer Profiel kaart – compacter en mobielvriendelijker */
#gamer-profile-card {
  padding: 14px;
  border-radius: 12px;
}

#gamer-profile-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

#gamer-profile-card .name-input-section {
  margin-top: 8px;
}

#gamer-profile-card .name-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

#gamer-profile-card .name-input-group input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  font-size: 14px;
}

#gamer-profile-card .name-input-group button {
  padding: 8px 10px;
  font-size: 14px;
}

@media (max-width: 768px) {
  #gamer-profile-card {
    padding: 12px;
  }
  #gamer-profile-card .name-input-group {
    gap: 6px;
  }
  #gamer-profile-card .name-input-group input,
  #gamer-profile-card .name-input-group button {
    font-size: 13px;
    padding: 7px 9px;
  }
}

@media (max-width: 480px) {
  #gamer-profile-card {
    padding: 10px;
    border-radius: 10px;
  }
  #gamer-profile-card h3 {
    font-size: 15px;
    margin-bottom: 6px;
  }
  /* Forceer één kolom voor compacte weergave op mobiel */
  #gamer-profile-card .grid.two-columns {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
}
.status-indicator.baas-status {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #ffffff;
  border-color: #8b5cf6;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.status-indicator.ridder-status {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #ffffff;
  border-color: #7c3aed;
  box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
}

.status-indicator.vip-status {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #ffffff;
  border-color: #8b5cf6;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.status-indicator.standard-status {
  background: var(--panel);
  color: var(--muted);
  border-color: var(--border);
}

/* USER INFO SECTION STYLES */
.user-info-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 24px;
}

.user-email {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-email label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.email-display {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 200px;
}

.user-actions {
  display: flex;
  gap: 12px;
}

/* Responsive design voor user info sectie */
@media (max-width: 768px) {
  .user-info-section {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  
  .email-display {
    min-width: auto;
    text-align: center;
  }
  
  .user-actions {
    justify-content: center;
  }
}

.topbar .auth .muted {
  font-size: 14px;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 24px 16px;
  }
  
  .topbar {
    padding: 0 16px;
    height: 70px;
  }
  
  body {
    padding-top: 70px;
  }
  
  .card {
    padding: 24px;
    border-radius: 16px;
  }
  
  .buttons {
    flex-direction: column;
  }
  
  .poll-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .expand-btn {
    align-self: flex-end;
  }
  
  .topbar .tabs {
    gap: 4px;
  }
  
  .topbar .tabs a {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .topbar .tabs a.logo-nav {
    padding: 6px 10px;
  }
  
  .nav-logo {
    height: 45px;
  }
}

@media (max-width: 480px) {
  h1#title, div#title { 
    margin: 24px 0 32px;
  }
  
  .logo {
    height: clamp(60px, 10vw, 80px);
  }
  
  .container {
    padding: 16px 12px;
  }
  
  .card {
    padding: 20px;
  }
  
  .topbar {
    padding: 0 12px;
  }
}

/* Login Page Enhancements */
.login-page {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.login-container {
  width: 100%;
  max-width: 440px;
}

.login-card {
  background: linear-gradient(145deg, var(--panel), rgba(30, 41, 59, 0.9));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 25px 50px var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(20px);
}

.login-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 12px 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

.login-subtitle {
  text-align: center;
  color: var(--muted);
  margin: 0 0 24px 0;
  font-size: 16px;
  line-height: 1.5;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.form-group input {
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  padding: 12px 16px;
  font-size: 16px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  background: rgba(15, 23, 42, 0.95);
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.full-width {
  width: 100%;
}

.btn.google {
  background: white;
  color: #1f2937;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 600;
}

.btn.google:hover {
  background: #f9fafb;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.divider {
  position: relative;
  text-align: center;
  margin: 12px 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.divider span {
  background: var(--panel);
  padding: 0 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.forgot-password {
  text-align: center;
  margin-top: 12px;
}

.forgot-password a {
  color: var(--primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-password a:hover {
  color: var(--primary-600);
  text-decoration: underline;
}

.form-description {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0 0 24px 0;
  line-height: 1.6;
}

.message {
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 15px;
  margin-top: 20px;
  text-align: center;
  font-weight: 500;
  border: 2px solid;
}

.message.success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--success);
}

.message.error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--error);
}

.message.info {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--primary);
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Messages Section Styling */
.messages-section {
  margin-top: 24px;
}

.messages-section h3 {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.messages-list {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 20px;
  padding-right: 8px;
}

.messages-list::-webkit-scrollbar {
  width: 6px;
}

.messages-list::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 3px;
}

.messages-list::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 3px;
}

.messages-list::-webkit-scrollbar-thumb:hover {
  background: var(--text);
}

.message-item {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.message-item:hover {
  background: rgba(15, 23, 42, 0.6);
  border-color: var(--primary);
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.message-author {
  font-weight: 600;
  color: var(--primary);
  font-size: 14px;
}

.message-date {
  color: var(--muted);
  font-size: 12px;
}

.message-content {
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.message-form {
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.message-form textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  transition: all 0.3s ease;
}

.message-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.message-form textarea::placeholder {
  color: var(--muted);
}

.message-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.char-count {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* Poll Messages Styling */
.poll-messages {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.poll-messages h4 {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px 0;
}

.messages-container {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 8px;
}

.messages-container::-webkit-scrollbar {
  width: 4px;
}

.messages-container::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 2px;
}

.messages-container::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 2px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
  background: var(--text);
}

.message {
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.message:hover {
  background: rgba(15, 23, 42, 0.5);
  border-color: var(--primary);
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.message-header strong {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.message-time {
  color: var(--muted);
  font-size: 11px;
}

.message-content {
  color: var(--text);
  line-height: 1.4;
  font-size: 14px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.message-input-container {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.message-input {
  flex: 1;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 40px;
  transition: all 0.2s ease;
}

.message-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* POLL FILTER STYLING */
.poll-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.filter-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.filter-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--primary);
  color: var(--text);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 600;
}

.filter-btn.active:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
}

.message-input::placeholder {
  color: var(--muted);
}

.send-message-btn {
  padding: 8px 16px;
  font-size: 14px;
  white-space: nowrap;
}

.login-prompt {
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.login-prompt p {
  margin: 0 0 16px 0;
  color: var(--muted);
}

/* VIP STATUS STYLING */
.vip-section {
  margin-top: 24px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.vip-status-display {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  border: 2px solid transparent;
}

.vip-status-display.standard {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--muted);
  color: var(--muted);
}

.vip-status-display.vip {
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border: 1px solid #f97316;
  color: #1f2937;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.vip-status-display.ridder {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border-color: #7c3aed;
  color: white;
}

.vip-status-display.baas {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  border-color: #6d28d9;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
  position: relative;
}
.vip-upgrade, .vip-downgrade {
  display: flex;
  gap: 12px;
  align-items: center;
}

.vip-upgrade input {
  flex: 1;
}

.vip-upgrade button {
  white-space: nowrap;
}

.btn.danger {
  background-color: #ef4444;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn.danger:hover {
  background-color: #dc2626;
}


.percent-option {
  background: #0f172a0d;
}

.percent-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(to right, #60a5fa 0%, #60a5fa 0%, #e5e7eb 0%, #e5e7eb 100%);
  outline: none;
}

.percent-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  cursor: pointer;
}

.percent-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  cursor: pointer;
}

.percent-input::-webkit-slider-runnable-track {
  height: 16px;
  border-radius: 8px;
}

.percent-input::-moz-range-track {
  height: 16px;
  border-radius: 8px;
}


/* Poll create form – compacte, nette invoervelden */
#poll-create-card .form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#poll-create-card .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

#poll-create-card .form-row label {
  font-weight: 600;
  color: #e5e7eb;
}

#poll-create-card .form-row input,
#poll-create-card .form-row select,
#poll-create-card .form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
  outline: none;
  transition: all 0.2s ease;
}

#poll-create-card .form-row input:focus,
#poll-create-card .form-row select:focus,
#poll-create-card .form-row textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: rgba(15, 23, 42, 0.95);
}

#options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#options-list .input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
}

#options-list .input-group input.option-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 8px;
  font-size: 16px;
  color: var(--text);
}

#options-list .input-group input.option-input::placeholder {
  color: var(--muted);
}

#poll-create-card .buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Winnaar banner bovenaan de resultaten */
.winner-banner {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px 12px;
  border: 1px solid var(--success);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(16,185,129,0.06));
}
.winner-label {
  font-weight: 700;
  color: var(--success);
}
.winner-name {
  font-weight: 600;
}
.winner-pct {
  margin-left: auto;
  font-weight: 600;
  color: #065f46;
}

/* Top page – ranking item styles */
.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel-light);
}
.rank-num {
  width: 34px;
  text-align: right;
  font-weight: 700;
  color: var(--text);
}

/* Chat — globale scheiding en spacing via styles.css */
.chat-list .chat-item {
  margin-bottom: 20px !important;
  display: grid !important;
  grid-template-columns: 90px 1fr !important;
  column-gap: 10px !important;
  align-items: start !important;
}
.chat-list .chat-item:not(:last-child)::after {
  content: '';
  display: block;
  border-top: 1px dashed #334155;
  margin: 12px 6px 0 6px;
}
@media (max-width: 600px){
  .chat-list .chat-item { grid-template-columns: 96px 1fr !important; column-gap: 6px !important; }
  .chat-list .chat-item:not(:last-child)::after { margin: 10px 4px 0 4px; }
}
.rank-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-level,
.rank-xp {
  display: inline-block;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-secondary);
}
.rank-level { width: 50px; }
.rank-xp { width: 60px; }
.rank-item.is-me .rank-name,
.rank-item.is-me .rank-level,
.rank-item.is-me .rank-xp { color: #86efac; }

/* Top page – mobiele optimalisaties voor smalle schermen */
@media (max-width: 600px) {
  .rank-item { gap: 6px; padding: 8px; }
  .rank-num { width: 26px; font-size: 13px; }
  .rank-name { font-size: 14px; }
  .rank-level { width: 72px; font-size: 12px; }
  .rank-xp { width: 96px; font-size: 12px; }
}

@media (max-width: 380px) {
  .rank-item { gap: 4px; padding: 6px; }
  .rank-num { width: 22px; font-size: 12px; }
  .rank-name { font-size: 13px; }
  .rank-level { width: 64px; font-size: 11px; }
  .rank-xp { width: 88px; font-size: 11px; }
}
/* Poll cards — grotere vraagtekst */
.poll-card .poll-title {
  font-size: 1.3rem !important;
  line-height: 1.25;
}
.poll-card.simple-view .poll-question {
  font-size: 1.3rem !important;
  line-height: 1.25;
}
@media (max-width: 768px) {
  .poll-card .poll-title,
  .poll-card.simple-view .poll-question {
    font-size: 1.2rem !important;
  }
}
@media (max-width: 480px) {
  .poll-card .poll-title,
  .poll-card.simple-view .poll-question {
    font-size: 1.1rem !important;
  }
}

/* Quiz panel binnen stemgedeelte (Boost) */
.quiz-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.35);
}
.quiz-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.quiz-list {
  display: grid;
  gap: 10px;
}
.quiz-item {
  background: rgba(15, 23, 42, 0.25);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}
.quiz-question {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.quiz-options {
  margin: 0;
  padding-left: 0; /* geen inspringing */
  list-style: none; /* geen bullets */
  color: var(--text-secondary);
}
.quiz-options li { list-style: none; }
.quiz-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.quiz-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
/* Feedbackkleuren na controleren */
.quiz-item.correct {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}
.quiz-item.incorrect {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}


