/* =====================================================
   VEREINIGD DEMO - Matches real app styling
   Brown/orange theme with warm beige background
   ===================================================== */

:root {
  --brown: #5D4037;
  --brown-dark: #3E2723;
  --brown-light: #8D6E63;
  --orange: #E65100;
  --orange-light: #FF8F00;
  --orange-bg: #FFF3E0;
  --green: #2E7D32;
  --green-light: #4CAF50;
  --red: #C62828;
  --red-light: #EF5350;
  --yellow: #F9A825;
  --blue: #1565C0;
  --bg: #FFF8F0;
  --bg-card: #FFFFFF;
  --text: #3E2723;
  --text-light: #6D4C41;
  --text-muted: #A1887F;
  --border: #EFEBE9;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 16px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: var(--font);
  color: var(--text);
  background: #0f0f1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================== BACKGROUND ===================== */
.demo-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(93,64,55,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(230,81,0,0.08) 0%, transparent 50%),
    #0f0f1a;
  z-index: 0;
}

/* ===================== BACK LINK ===================== */
.back-link {
  position: fixed;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  z-index: 100;
}
.back-link:hover { color: white; }

/* ===================== PHONE CONTAINER ===================== */
.phone-container {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.phone-device {
  width: 320px;
  height: 660px;
  background: #111;
  border-radius: 48px;
  padding: 8px;
  position: relative;
  box-shadow:
    0 0 0 2px #333,
    0 20px 80px rgba(0,0,0,0.5),
    0 0 120px rgba(93,64,55,0.1);
  overflow: hidden;
}

/* ===================== STATUS BAR ===================== */
.status-bar {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 50;
  pointer-events: none;
}
.status-time { font-size: 0.8rem; font-weight: 700; color: white; }
.status-icons { display: flex; gap: 6px; align-items: center; }

.home-indicator {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
  z-index: 50;
}

/* ===================== SCREENS ===================== */
.screen {
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border-radius: 40px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.screen.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}

/* ===================== HOMESCREEN ===================== */
.homescreen {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  position: relative;
}

.home-wallpaper {
  position: absolute; inset: 0;
  background: linear-gradient(145deg, #1a1a3e 0%, #0d1b2a 40%, #1b2838 100%);
  z-index: 0;
}
.home-wallpaper::before {
  content: '';
  position: absolute; top: 20%; left: 30%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(93,64,55,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.home-date {
  position: relative; z-index: 1;
  text-align: center;
  padding-top: 70px; margin-bottom: 40px;
}
.home-day { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.7); font-weight: 500; margin-bottom: 4px; }
.home-date-num { display: block; font-size: 1.8rem; font-weight: 700; color: white; }

.home-apps {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 24px;
  padding: 0 24px;
}
.app-row { display: flex; justify-content: space-around; }

.home-app {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  cursor: pointer; position: relative;
}
.home-app span { font-size: 0.65rem; color: rgba(255,255,255,0.8); font-weight: 500; }
.home-app-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
.home-app:active .home-app-icon { transform: scale(0.9); }

.vereinigd-icon {
  background: linear-gradient(135deg, var(--brown), var(--orange)) !important;
  font-weight: 800; font-size: 1.4rem; color: white;
}
.vereinigd-icon span { color: white !important; font-size: 1.4rem !important; font-weight: 800 !important; }

.app-notification {
  position: absolute; top: -4px; right: 4px;
  width: 20px; height: 20px;
  background: #FF3B30; color: white;
  border-radius: 50%; font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #1a1a3e;
}

.home-dock {
  position: absolute; bottom: 40px; left: 0; right: 0;
  z-index: 1; text-align: center;
}
.dock-hint {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  animation: pulse-hint 2s ease-in-out infinite;
}
@keyframes pulse-hint {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* ===================== SPLASH ===================== */
.splash-screen {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--brown), var(--brown-dark));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 32px;
}
.splash-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.splash-icon {
  width: 80px; height: 80px;
  background: white; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; font-weight: 800; color: var(--brown);
  animation: splash-bounce 0.6s ease-out;
}
@keyframes splash-bounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.splash-name { font-size: 1.5rem; font-weight: 800; color: white; }
.splash-loader { width: 120px; height: 3px; background: rgba(255,255,255,0.2); border-radius: 3px; overflow: hidden; }
.splash-loader-bar {
  width: 0%; height: 100%; background: white; border-radius: 3px;
  animation: load-bar 1.5s ease-in-out forwards;
}
@keyframes load-bar { 0% { width: 0%; } 50% { width: 60%; } 100% { width: 100%; } }

/* ===================== LOGIN ===================== */
.login-screen {
  width: 100%; height: 100%;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: 60px 24px 24px;
}
.login-header { text-align: center; margin-bottom: 40px; }
.login-logo {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--brown), var(--orange));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800; color: white;
  margin: 0 auto 16px;
}
.login-header h2 { color: var(--text); font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.login-header p { color: var(--text-muted); font-size: 0.85rem; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-field label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--text-light); margin-bottom: 6px; }
.login-input {
  width: 100%; height: 44px;
  border: 2px solid var(--border); border-radius: 10px;
  padding: 0 12px;
  display: flex; align-items: center;
  font-size: 0.9rem; color: var(--text);
  transition: border-color 0.3s; overflow: hidden;
}
.login-input.typing { border-color: var(--orange); }
.login-input.filled { border-color: var(--green); }
.login-cursor {
  display: inline-block; width: 2px; height: 18px;
  background: var(--orange); animation: blink 0.8s infinite; margin-left: 2px;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
.login-input.filled .login-cursor { display: none; }
.password-field .typed-text { font-family: monospace; letter-spacing: 3px; }
.login-btn {
  width: 100%; height: 48px;
  background: var(--orange); color: white;
  border: none; border-radius: 12px;
  font-size: 1rem; font-weight: 700;
  font-family: var(--font); cursor: pointer;
  transition: var(--transition); opacity: 0.5; margin-top: 8px;
}
.login-btn.ready { opacity: 1; }
.login-btn.loading { background: var(--green); }
.login-forgot { text-align: center; font-size: 0.8rem; color: var(--orange); cursor: pointer; }

/* ===================== APP SCREEN ===================== */
#screenApp {
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* App Header - brown like real app */
.app-header {
  background: var(--brown);
  padding: 50px 16px 12px;
  display: flex; align-items: center;
  justify-content: space-between;
}
.app-header-left { display: flex; align-items: center; gap: 10px; }
.app-header-logo {
  width: 32px; height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.2);
  font-weight: 800; font-size: 0.8rem; color: white;
}
.app-header-title { font-weight: 800; font-size: 1rem; display: block; color: white; }
.app-header-club { font-size: 0.7rem; opacity: 0.85; display: block; color: rgba(255,255,255,0.85); }
.app-header-right { display: flex; align-items: center; gap: 8px; }
.app-header-btn {
  width: 32px; height: 32px;
  background: none; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; color: white;
}
.notif-dot {
  position: absolute; top: 4px; right: 4px;
  width: 6px; height: 6px; background: #FF3B30; border-radius: 50%;
}
.app-avatar {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 700; color: white;
}

/* App Content */
.app-content {
  flex: 1;
  overflow-y: auto;
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
}
.app-content::-webkit-scrollbar { display: none; }

/* Bottom Nav - matches real app */
.app-bottom-nav {
  display: flex;
  background: white;
  padding: 4px 0 18px;
  border-top: 1px solid var(--border);
}
.nav-tab {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 2px;
  padding: 6px 4px;
  background: none; border: none;
  cursor: pointer; color: var(--text-muted);
  font-family: var(--font); transition: color 0.2s;
  position: relative;
}
.nav-tab.active { color: var(--orange); }
.nav-tab span { font-size: 0.6rem; font-weight: 600; }
.tab-badge {
  position: absolute; top: 2px;
  right: 50%; transform: translateX(12px);
  min-width: 16px; height: 16px;
  background: #FF3B30; color: white !important;
  border-radius: 100px; font-size: 0.55rem !important;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ===================== CONTENT ELEMENTS ===================== */

/* Welcome card */
.welcome-card {
  display: flex; align-items: center; gap: 12px;
  background: white; margin: 12px; padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.welcome-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: var(--brown);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.8rem;
}
.welcome-text h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.welcome-text p { font-size: 0.75rem; color: var(--text-muted); }

/* Countdown */
.countdown-card {
  margin: 0 12px 12px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 100px;
  background: linear-gradient(135deg, var(--brown-dark), var(--brown));
  display: flex; flex-direction: column;
  justify-content: center; padding: 16px;
  color: white;
}
.countdown-label { font-size: 0.65rem; opacity: 0.8; display: flex; align-items: center; gap: 4px; }
.countdown-title { font-size: 1rem; font-weight: 700; }
.countdown-time { font-size: 1.3rem; font-weight: 800; }
.countdown-date { font-size: 0.6rem; opacity: 0.7; }

/* Feature grid - like real app */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 12px;
  margin-bottom: 8px;
}
.feature-btn {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  padding: 14px 8px;
  background: white; border: 1px solid var(--border);
  border-radius: 12px; cursor: pointer;
  transition: var(--transition);
}
.feature-btn:active { transform: scale(0.95); background: var(--orange-bg); }
.feature-btn svg { color: var(--orange); }
.feature-btn span { font-size: 0.7rem; font-weight: 600; color: var(--text); }

.meer-tonen {
  text-align: center; padding: 8px;
  font-size: 0.75rem; color: var(--text-muted);
  cursor: pointer;
}

/* News section */
.news-section {
  background: white;
  margin: 12px; border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.news-header {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 14px 0;
  font-size: 0.95rem; font-weight: 700; color: var(--text);
}
.news-tabs {
  display: flex; margin: 10px 14px; gap: 0;
  background: #f5f0eb; border-radius: 8px; padding: 3px;
}
.news-tab {
  flex: 1; padding: 8px; text-align: center;
  font-size: 0.75rem; font-weight: 600;
  border-radius: 6px; cursor: pointer;
  color: var(--text-muted); transition: var(--transition);
  border: none; background: none; font-family: var(--font);
}
.news-tab.active { background: white; color: var(--orange); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.news-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  cursor: pointer;
}
.news-item:active { background: var(--orange-bg); }
.news-thumb {
  width: 48px; height: 48px; border-radius: 8px;
  background: var(--brown-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.news-info { flex: 1; }
.news-info strong { display: block; font-size: 0.78rem; color: var(--text); line-height: 1.3; }
.news-info small { font-size: 0.65rem; color: var(--text-muted); }
.news-link { color: var(--text-muted); flex-shrink: 0; }

/* Werkdagen / Activities section */
.section-card {
  background: white;
  margin: 12px; border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 14px;
}
.section-card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.section-card-header h3 {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.9rem; font-weight: 700; color: var(--text);
}
.section-link { font-size: 0.75rem; color: var(--orange); font-weight: 600; cursor: pointer; }

/* Calendar specific */
.calendar-grid {
  background: white; margin: 12px;
  border-radius: var(--radius); border: 1px solid var(--border);
  padding: 14px;
}
.cal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.cal-header h3 { font-size: 0.95rem; font-weight: 700; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange-bg); border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--orange); font-size: 0.9rem;
}
.cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center; margin-bottom: 4px;
}
.cal-weekdays span { font-size: 0.65rem; font-weight: 600; color: var(--text-muted); padding: 4px 0; }
.cal-days {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center;
}
.cal-day {
  padding: 6px 0; font-size: 0.75rem; color: var(--text);
  position: relative; cursor: pointer; border-radius: 8px;
}
.cal-day:hover { background: var(--orange-bg); }
.cal-day.today { background: var(--orange-bg); font-weight: 700; color: var(--orange); }
.cal-day.has-event::after {
  content: ''; position: absolute;
  bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--blue);
}
.cal-day.empty { color: transparent; pointer-events: none; }

/* Activity card - matches real app */
.activity-card {
  background: white; margin: 0 12px 10px;
  border-radius: 14px; border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  padding: 14px;
  cursor: pointer; transition: var(--transition);
}
.activity-card:active { transform: scale(0.98); }
.activity-top {
  display: flex; align-items: flex-start; gap: 10px;
}
.activity-date {
  text-align: center; min-width: 32px;
}
.activity-date .day-name { font-size: 0.6rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }
.activity-date .day-num { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.activity-info { flex: 1; }
.activity-info strong { font-size: 0.85rem; color: var(--text); display: flex; align-items: center; gap: 6px; }
.activity-meta {
  display: flex; align-items: center; gap: 8px;
  margin-top: 4px; flex-wrap: wrap;
}
.activity-badge {
  font-size: 0.6rem; font-weight: 600; padding: 2px 8px;
  border-radius: 4px;
}
.badge-werkdag { background: var(--orange-bg); color: var(--orange); }
.badge-ingeschreven { background: rgba(46,125,50,0.1); color: var(--green); }
.activity-detail { font-size: 0.65rem; color: var(--text-muted); }
.activity-progress {
  margin-top: 8px; display: flex; align-items: center; gap: 8px;
}
.progress-bar { flex: 1; height: 4px; background: #eee; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--orange); border-radius: 4px; }
.progress-count { font-size: 0.7rem; color: var(--orange); font-weight: 600; }

/* Poef - matches real app */
.poef-header-card {
  margin: 12px; padding: 16px;
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
}
.poef-header-card .label { font-size: 0.75rem; color: var(--text-muted); }
.poef-header-card .amount {
  font-size: 2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: space-between;
}
.poef-header-card .amount .value { color: var(--red); }
.poef-header-card .amount .icon { color: var(--orange); font-size: 1.5rem; }

.poef-tabs {
  display: flex; margin: 0 12px; gap: 0;
  background: #f5f0eb; border-radius: 8px; padding: 3px;
  margin-bottom: 8px;
}
.poef-tab {
  flex: 1; padding: 8px; text-align: center;
  font-size: 0.7rem; font-weight: 600;
  border-radius: 6px; cursor: pointer;
  color: var(--text-muted); transition: var(--transition);
  border: none; background: none; font-family: var(--font);
}
.poef-tab.active { background: white; color: var(--orange); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.poef-submit-btn {
  display: block; margin: 8px 12px;
  padding: 12px; text-align: center;
  background: var(--orange); color: white;
  border-radius: 10px; font-weight: 700;
  font-size: 0.85rem; cursor: pointer;
}

.poef-stats {
  display: flex; gap: 8px; margin: 8px 12px;
}
.poef-stat {
  flex: 1; text-align: center;
  padding: 10px; background: white;
  border-radius: 10px; border: 1px solid var(--border);
}
.poef-stat .stat-label { font-size: 0.6rem; color: var(--text-muted); display: block; }
.poef-stat .stat-value { font-size: 0.9rem; font-weight: 700; }
.stat-pending { color: var(--orange); }
.stat-approved { color: var(--green); }
.stat-rejected { color: var(--red); }

.poef-item {
  background: white; margin: 0 12px 8px;
  border-radius: 12px; border: 1px solid var(--border);
  padding: 14px;
}
.poef-item-top {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.poef-item-name { font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.poef-item-amount { font-size: 1rem; font-weight: 800; }
.poef-item-meta { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }
.poef-status {
  font-size: 0.6rem; font-weight: 600; padding: 2px 8px;
  border-radius: 4px; display: inline-flex; align-items: center; gap: 3px;
}
.status-approved { background: rgba(46,125,50,0.1); color: var(--green); }
.status-pending { background: var(--orange-bg); color: var(--orange); }
.poef-bon { font-size: 0.65rem; color: var(--orange); margin-top: 6px; cursor: pointer; display: flex; align-items: center; gap: 3px; }

.poef-actions {
  display: flex; gap: 8px; margin-top: 10px;
}
.poef-action-btn {
  flex: 1; padding: 8px; text-align: center;
  border-radius: 8px; font-size: 0.75rem; font-weight: 600;
  cursor: pointer; border: none; font-family: var(--font);
}
.btn-approve { background: var(--orange-bg); color: var(--orange); }
.btn-reject { background: rgba(198,40,40,0.08); color: var(--red); }

/* Polls - matches real app */
.poll-card {
  background: white; margin: 0 12px 10px;
  border-radius: var(--radius); border: 1px solid var(--border);
  padding: 14px;
}
.poll-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 4px;
}
.poll-question { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.poll-meta { font-size: 0.65rem; color: var(--text-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.poll-public { color: var(--green); font-weight: 600; display: flex; align-items: center; gap: 3px; }

.poll-option {
  margin-bottom: 8px; border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden; position: relative;
  padding: 10px 14px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; transition: var(--transition);
}
.poll-option:active { border-color: var(--orange); }
.poll-option.selected { border-color: var(--orange); background: var(--orange-bg); }
.poll-option .poll-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--orange-bg); transition: width 0.5s ease;
  z-index: 0;
}
.poll-option-text {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 500; color: var(--text);
  position: relative; z-index: 1;
}
.poll-check { color: var(--orange); }
.poll-result {
  font-size: 0.75rem; color: var(--text-muted);
  position: relative; z-index: 1;
}
.poll-voters {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin-top: 2px; padding-left: 24px;
}
.poll-voter {
  font-size: 0.55rem; padding: 1px 6px;
  background: #f5f0eb; border-radius: 4px;
  color: var(--text-muted);
}

/* Music - matches real app */
.music-tabs {
  display: flex; margin: 12px; gap: 0;
  background: #f5f0eb; border-radius: 8px; padding: 3px;
}
.music-tab {
  flex: 1; padding: 8px; text-align: center;
  font-size: 0.7rem; font-weight: 600;
  border-radius: 6px; cursor: pointer;
  color: var(--text-muted); transition: var(--transition);
  border: none; background: none; font-family: var(--font);
}
.music-tab.active { background: white; color: var(--orange); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.song-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.song-item:last-child { border-bottom: none; }
.song-number {
  width: 24px; text-align: center;
  font-size: 0.75rem; font-weight: 700; color: var(--text-muted);
}
.song-info { flex: 1; }
.song-info strong { display: block; font-size: 0.8rem; color: var(--text); }
.song-info small { font-size: 0.65rem; color: var(--text-muted); }
.song-play {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--orange-bg); border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* Generic content card */
.content-card {
  background: white;
  margin: 0 12px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 14px;
}

/* Sub-page header */
.sub-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px;
}
.sub-header-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.95rem; font-weight: 700; color: var(--text);
}
.sub-back {
  width: 32px; height: 32px; border-radius: 50%;
  background: #f5f0eb; border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.sub-add-btn {
  margin-left: auto;
  padding: 6px 14px;
  background: var(--orange); color: white;
  border: none; border-radius: 8px;
  font-size: 0.7rem; font-weight: 700;
  font-family: var(--font); cursor: pointer;
}

/* Members */
.member-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.member-item:last-child { border-bottom: none; }
.member-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: white; flex-shrink: 0;
}
.member-info { flex: 1; }
.member-info strong { display: block; font-size: 0.8rem; color: var(--text); }
.member-info small { font-size: 0.65rem; color: var(--text-muted); }
.member-role {
  font-size: 0.6rem; padding: 3px 8px;
  border-radius: 100px; font-weight: 600;
}
.role-bestuur { background: var(--orange-bg); color: var(--orange); }
.role-lid { background: rgba(46,125,50,0.1); color: var(--green); }

/* Chat */
.chat-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.chat-item:last-child { border-bottom: none; }
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: white; flex-shrink: 0;
}
.chat-info { flex: 1; min-width: 0; }
.chat-name { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.chat-name strong { font-size: 0.8rem; color: var(--text); }
.chat-name small { font-size: 0.65rem; color: var(--text-muted); }
.chat-preview { font-size: 0.75rem; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-unread {
  width: 18px; height: 18px;
  background: var(--orange); color: white;
  border-radius: 50%; font-size: 0.6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; align-self: center;
}

/* Aanwezigheid */
.attendance-bar-track {
  width: 100%; height: 6px;
  background: #eee; border-radius: 6px;
  overflow: hidden; margin: 6px 0;
}
.attendance-bar-fill { height: 100%; background: var(--orange); border-radius: 6px; }
.attendance-dots { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.attendance-dot {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.45rem; font-weight: 700; color: white;
}
.dot-yes { background: var(--green); }
.dot-no { background: var(--red-light); }

/* Photos */
.foto-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 3px; border-radius: 10px; overflow: hidden;
}
.foto-thumb {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; cursor: pointer; transition: opacity 0.2s;
}
.foto-thumb:active { opacity: 0.7; }

/* Shop */
.shop-item {
  display: flex; gap: 12px; align-items: center;
}
.shop-img {
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.shop-info { flex: 1; }
.shop-info strong { display: block; font-size: 0.8rem; color: var(--text); margin-bottom: 2px; }
.shop-info small { font-size: 0.65rem; color: var(--text-muted); }
.shop-price { font-size: 0.85rem; font-weight: 800; color: var(--orange); }

/* ===================== DEMO INFO PANEL ===================== */
.demo-info { max-width: 320px; }
.demo-info h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; color: white; }
.demo-info p { color: rgba(255,255,255,0.6); font-size: 0.95rem; line-height: 1.6; margin-bottom: 24px; }
.demo-features-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.demo-feature-tag {
  padding: 6px 14px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 100px;
  font-size: 0.8rem; color: rgba(255,255,255,0.7);
  cursor: pointer; transition: var(--transition);
}
.demo-feature-tag:hover, .demo-feature-tag.active {
  background: rgba(230,81,0,0.15); border-color: var(--orange); color: var(--orange);
}
.demo-download-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; background: var(--orange);
  color: white; border-radius: 100px;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; transition: var(--transition);
}
.demo-download-btn:hover {
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(230,81,0,0.3);
}

/* ===================== SCOREBOARD PODIUM ===================== */
.scoreboard-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 8px 0 0;
}
.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  position: relative;
}
.podium-crown {
  font-size: 1.2rem;
  margin-bottom: -4px;
}
.podium-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: white;
}
.podium-name { font-size: 0.7rem; font-weight: 600; color: var(--text); }
.podium-score { font-size: 0.65rem; color: var(--orange); font-weight: 600; }
.podium-bar {
  width: 100%;
  background: var(--orange);
  border-radius: 8px 8px 0 0;
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}
.podium-bar.tall { height: 56px; background: var(--orange); }
.podium-bar.short { height: 28px; background: var(--orange); opacity: 0.7; }

/* ===================== COUNTDOWN TREASURE BG ===================== */
.countdown-card.treasure-bg {
  height: 120px;
  background: url('https://images.unsplash.com/photo-1529699211952-734e80c4d42b?w=600&q=80') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.countdown-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(62,39,35,0.85), rgba(93,64,55,0.7));
}
.countdown-content {
  position: relative;
  z-index: 1;
  padding: 16px;
  color: white;
}
.countdown-card.treasure-bg .countdown-label { font-size: 0.65rem; opacity: 0.9; }
.countdown-card.treasure-bg .countdown-title { font-size: 1.1rem; font-weight: 700; }
.countdown-card.treasure-bg .countdown-time { font-size: 1.4rem; font-weight: 800; }
.countdown-card.treasure-bg .countdown-date { font-size: 0.6rem; opacity: 0.7; }

/* ===================== INSCHRIJF KNOP ===================== */
.inschrij-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: var(--orange-bg);
  color: var(--orange);
  border: 2px solid var(--orange);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.3s;
}
.inschrij-btn:active,
.inschrij-btn.ingeschreven {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

/* ===================== THEMING BUTTON ===================== */
.theming-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px;
  padding: 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.theming-btn:active { transform: scale(0.98); }
.theming-icon { font-size: 1.5rem; }
.theming-text { flex: 1; }
.theming-text strong { display: block; font-size: 0.85rem; color: var(--text); }
.theming-text small { font-size: 0.7rem; color: var(--text-muted); }
.theming-arrow { font-size: 1.5rem; color: var(--text-muted); }

/* ===================== THEMING SETTINGS ===================== */
.theming-field { margin-bottom: 14px; }
.theming-field label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--text-light); margin-bottom: 6px; }
.theming-input {
  padding: 10px 12px;
  background: #f5f0eb;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
}
.theming-color-row { display: flex; align-items: center; gap: 10px; }
.theming-color-swatch {
  width: 32px; height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}
.theming-color-row .theming-input { flex: 1; }
.theming-change-btn {
  padding: 6px 14px;
  background: #f5f0eb;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
}
.theming-save-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
}

/* ===================== WERKDAGEN OVERFLOW ===================== */
.werkdagen-section {
  margin-bottom: 0 !important;
  border-radius: var(--radius) var(--radius) 0 0 !important;
  padding-bottom: 0 !important;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .demo-info { display: none; }
  .phone-container { justify-content: center; }
}
@media (max-width: 400px) {
  .phone-device { width: 100vw; height: 100vh; border-radius: 0; padding: 0; }
  .screen { top: 0; left: 0; right: 0; bottom: 0; border-radius: 0; }
  .home-indicator { bottom: 8px; }
  .back-link { display: none; }
}
