/* ============================================
   DBE Community App — Design System
   Inspired by Linear: dark-native, Inter Variable,
   semi-transparent borders, single accent color
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Background surfaces (Linear-style dark hierarchy) */
  --bg: #08090a;
  --surface: #0f1011;
  --surface-raised: #191a1b;
  --surface-hover: #1e1f20;

  /* Text hierarchy */
  --text: #f7f8f8;
  --text-secondary: #d0d6e0;
  --muted: #8a8f98;
  --text-dim: #62666d;

  /* DBE Brand accent (warm orange) */
  --accent: #E68D3C;
  --accent-hover: #f0a050;
  --accent-dim: rgba(230, 141, 60, 0.12);
  --accent-border: rgba(230, 141, 60, 0.25);

  /* Status */
  --success: #27a644;
  --success-dim: rgba(39, 166, 68, 0.12);
  --danger: #F85149;
  --danger-dim: rgba(248, 81, 73, 0.12);
  --purple: #A371F7;
  --purple-dim: rgba(163, 113, 247, 0.12);

  /* Borders (Linear-style semi-transparent) */
  --border: rgba(255, 255, 255, 0.06);
  --border-visible: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.15);

  /* Radii */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;

  /* Layout */
  --nav-height: 56px;
  --content-max: 1200px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Satoshi', -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* ---- App Container ---- */
.app {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column; /* mobile: nav bottom */
  overflow: hidden;
}

/* Content area: holds all screens */
.content {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
  order: -1; /* content above nav on mobile */
}

/* ---- Screens ---- */
.screen {
  position: absolute;
  inset: 0;
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  overflow: hidden;
}
.screen.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
}
.screen-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  padding-top: calc(24px + var(--safe-top));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-visible) transparent;
}
.screen-scroll::-webkit-scrollbar { width: 6px; }
.screen-scroll::-webkit-scrollbar-track { background: transparent; }
.screen-scroll::-webkit-scrollbar-thumb { background: var(--border-visible); border-radius: 3px; }

/* ---- Typography (Inter + Fragment Mono headings) ---- */
h1, h2, h3, h4, .page-title, .login-title, .chat-header-title {
  font-family: 'Fragment Mono', 'Berkeley Mono', ui-monospace, monospace;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* ---- Login ---- */
.login-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 48px 32px;
  text-align: center;
}
.bolt { font-size: 48px; color: var(--accent); margin-bottom: 12px; }
.login-title { font-size: 32px; margin-bottom: 6px; letter-spacing: -0.03em; }
.login-title span { color: var(--accent); }
.login-sub { color: var(--muted); margin-bottom: 32px; font-size: 14px; letter-spacing: 0.01em; }

.qr-container { margin-bottom: 28px; text-align: center; }
.qr-box {
  width: 200px; height: 200px;
  background: #fff;
  border-radius: var(--radius);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.qr-box svg { width: 100%; height: 100%; }
.qr-box canvas { width: 100% !important; height: 100% !important; }
.login-scan { color: var(--muted); font-size: 13px; }

.divider {
  display: flex; align-items: center; gap: 16px;
  width: 100%; max-width: 340px; margin-bottom: 24px;
  color: var(--text-dim); font-size: 12px;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border-visible);
}

.magic-link-form {
  display: flex; flex-direction: column; gap: 12px;
  width: 100%; max-width: 340px;
}

.wallets { color: var(--text-dim); font-size: 12px; margin-top: 28px; }
.wallets span { color: var(--muted); }

/* ---- Navigation ---- */

/* Mobile: bottom bar */
.nav {
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex; flex-direction: row; align-items: stretch;
  padding: 4px 0 calc(4px + var(--safe-bottom));
  height: var(--nav-height);
  flex-shrink: 0;
}
.nav-brand { display: none; }
.nav-main { display: contents; }
.nav-extra { display: none; }
.nav-bottom { display: none; }
.nav-divider { display: none; }

.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  cursor: pointer; color: var(--text-dim);
  font-size: 10px; font-weight: 500;
  transition: color 0.15s, background 0.15s;
  position: relative;
  border-radius: 0;
  padding: 4px 0;
  text-decoration: none;
}
.nav-item.active { color: var(--accent); }
.nav-item:hover { color: var(--text-secondary); }
.nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.nav-badge {
  position: absolute; top: 2px; right: calc(50% - 14px);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--danger);
}

/* Desktop: sidebar */
@media (min-width: 768px) {
  .app {
    flex-direction: row;
  }

  .content {
    order: 0; /* reset */
  }

  .nav {
    flex-direction: column; align-items: stretch;
    width: 220px; min-width: 220px;
    height: auto;
    border-top: none; border-right: 1px solid var(--border);
    padding: 0;
    gap: 2px;
  }

  .nav-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 20px 16px 16px;
    font-family: 'Fragment Mono', monospace;
    font-size: 15px; font-weight: 400;
    color: var(--text);
    letter-spacing: -0.02em;
  }
  .nav-brand-icon { color: var(--accent); font-size: 18px; }

  .nav-main {
    display: flex; flex-direction: column; gap: 2px;
    padding: 0 8px;
  }

  .nav-divider {
    display: block; height: 1px;
    background: var(--border); margin: 8px 16px;
  }

  .nav-extra {
    display: flex; flex-direction: column; gap: 2px;
    padding: 0 8px;
    flex: 1;
  }

  .nav-bottom {
    display: flex; flex-direction: column; gap: 2px;
    padding: 0 8px 16px;
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 8px;
  }

  .nav-item {
    flex: none; flex-direction: row;
    justify-content: flex-start; align-items: center;
    gap: 10px; padding: 8px 12px;
    font-size: 13px; font-weight: 500;
    border-radius: var(--radius-sm);
  }
  .nav-item:hover { background: rgba(255,255,255,0.04); color: var(--text); }
  .nav-item.active { background: var(--accent-dim); color: var(--accent); }
  .nav-item svg { width: 18px; height: 18px; }

  .nav-badge { position: static; margin-left: auto; }

  .screen-scroll { padding: 32px 40px; }
}

/* ---- Common Elements ---- */
.input {
  width: 100%; padding: 10px 16px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-visible);
  border-radius: var(--radius); color: var(--text);
  font-size: 14px; font-family: inherit; outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.input::placeholder { color: var(--text-dim); }
.input:focus { border-color: var(--accent); background: rgba(255,255,255,0.05); }
.textarea { resize: vertical; min-height: 80px; }
select.input { appearance: none; }

.btn {
  background: var(--accent); color: #fff;
  border: none; padding: 11px 24px;
  border-radius: 56px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: -0.01em;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-full { width: 100%; }
.btn-sm { padding: 7px 16px; font-size: 12px; }

.btn-outline {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-visible);
  color: var(--text-secondary); padding: 11px 20px;
  border-radius: 56px;
  font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.btn-outline:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.06); }
.btn-outline.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-outline.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-outline.btn-danger:hover { background: var(--danger-dim); }

.btn-back {
  background: none; border: none; color: var(--muted);
  font-size: 14px; font-family: inherit; cursor: pointer;
  padding: 0; margin-bottom: 20px;
  transition: color 0.15s;
}
.btn-back:hover { color: var(--accent); }

.text-muted { color: var(--muted); }

.page-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 20px;
}
.page-title { font-size: 24px; letter-spacing: -0.03em; }
.page-count { color: var(--text-dim); font-size: 13px; }

/* ---- Forms ---- */
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 12px; color: var(--muted); font-weight: 510; letter-spacing: 0.01em; }

/* ---- Search ---- */
.search-bar { margin-bottom: 14px; }

/* ---- Tags ---- */
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tag {
  padding: 5px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 510; cursor: pointer;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  color: var(--muted); transition: all 0.15s;
  white-space: nowrap;
}
.tag.active, .tag:hover {
  background: var(--accent-dim); color: var(--accent); border-color: var(--accent-border);
}

/* ---- Members Grid ---- */
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.member-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  text-align: center; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.member-card:hover { border-color: var(--border-strong); background: var(--surface-raised); }
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 16px;
  margin: 0 auto 10px; color: #fff;
  background-size: cover; background-position: center;
}
.member-name {
  font-family: 'Fragment Mono', monospace;
  font-weight: 400; font-size: 13px;
  margin-bottom: 6px; letter-spacing: -0.01em;
}
.member-tags {
  display: flex; flex-wrap: wrap; gap: 3px;
  justify-content: center; margin-bottom: 6px;
}
.member-tag {
  background: var(--accent-dim); color: var(--accent);
  padding: 2px 7px; border-radius: 8px;
  font-size: 10px; font-weight: 510;
}
.member-ln {
  font-family: 'Fragment Mono', monospace;
  font-size: 10px; color: var(--text-dim);
  display: flex; align-items: center;
  justify-content: center; gap: 4px;
}

/* ---- Profile Detail ---- */
.profile-detail { text-align: center; max-width: 480px; margin: 0 auto; }
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 0 auto 16px; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: #fff;
  background-size: cover; background-position: center;
}
.profile-name {
  font-family: 'Fragment Mono', monospace;
  font-size: 22px; margin-bottom: 4px; letter-spacing: -0.02em;
}
.profile-title { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.profile-bio {
  color: var(--text-secondary); font-size: 14px;
  line-height: 1.6; margin-bottom: 20px;
  text-align: left;
}
.profile-info-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.profile-info-label { color: var(--text-dim); min-width: 36px; }
.profile-info-value { flex: 1; word-break: break-all; color: var(--text-secondary); }
.profile-info-copy {
  background: var(--accent-dim); color: var(--accent);
  border: 1px solid var(--accent-border); padding: 3px 10px; border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 510; cursor: pointer; font-family: inherit;
  transition: background 0.15s;
}
.profile-info-copy:hover { background: var(--accent); color: #fff; }
.profile-tags-list {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin: 16px 0; justify-content: center;
}
.profile-actions {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px 0; max-width: 480px; margin: 0 auto;
}

/* ---- Marketplace ---- */
.market-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 10px;
  transition: border-color 0.15s;
}
.market-item:hover { border-color: var(--border-strong); }
.market-badge {
  display: inline-block; padding: 2px 8px;
  border-radius: var(--radius-sm); font-size: 11px;
  font-weight: 590; margin-bottom: 8px;
}
.badge-dienst { background: var(--accent-dim); color: var(--accent); }
.badge-kennis { background: var(--success-dim); color: var(--success); }
.badge-product { background: var(--purple-dim); color: var(--purple); }
.market-title {
  font-family: 'Fragment Mono', monospace;
  font-size: 15px; font-weight: 400; margin-bottom: 5px; letter-spacing: -0.01em;
}
.market-desc {
  color: var(--muted); font-size: 13px;
  margin-bottom: 12px; line-height: 1.5;
}
.market-footer {
  display: flex; justify-content: space-between; align-items: center;
}
.market-price { font-weight: 590; color: var(--accent); font-size: 14px; font-family: 'Fragment Mono', monospace; }
.market-price.free { color: var(--success); }
.market-author { color: var(--text-dim); font-size: 12px; }

/* ---- Events ---- */
.event-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  margin-bottom: 10px; cursor: pointer;
  transition: border-color 0.15s;
}
.event-card:hover { border-color: var(--border-strong); }
.event-date {
  font-size: 12px; color: var(--accent);
  font-weight: 590; margin-bottom: 5px;
}
.event-title {
  font-family: 'Fragment Mono', monospace;
  font-size: 16px; font-weight: 400; margin-bottom: 8px; letter-spacing: -0.01em;
}
.event-info {
  color: var(--muted); font-size: 13px;
  margin-bottom: 4px; display: flex;
  align-items: center; gap: 6px;
}
.event-bar {
  height: 4px; background: var(--border-visible);
  border-radius: 2px; margin: 12px 0; overflow: hidden;
}
.event-bar-fill {
  height: 100%; background: var(--accent);
  border-radius: 2px; transition: width 0.5s;
}
.btn-registered { background: var(--success); color: #fff; }

/* ---- Chat ---- */
.chat-section-label {
  font-size: 11px; font-weight: 590;
  color: var(--text-dim); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 8px;
}
.channel-item, .dm-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 6px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.channel-item:hover, .dm-item:hover { border-color: var(--border-strong); background: var(--surface-raised); }
.channel-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--accent-dim); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.channel-info { flex: 1; min-width: 0; }
.channel-name {
  font-family: 'Fragment Mono', monospace;
  font-size: 13px; font-weight: 400;
}
.channel-desc {
  color: var(--text-dim); font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Chat View */
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px;
  padding-top: calc(12px + var(--safe-top));
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.chat-header-title { font-size: 15px; }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px 24px;
  display: flex; flex-direction: column; gap: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-visible) transparent;
}
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border-visible); border-radius: 3px; }
.chat-bubble {
  display: flex; gap: 10px;
  max-width: 70%;
}
.chat-bubble.own { margin-left: auto; flex-direction: row-reverse; }
.chat-bubble-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: #fff;
  flex-shrink: 0;
  background-size: cover; background-position: center;
}
.chat-bubble-body {
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 12px;
}
.chat-bubble.own .chat-bubble-body {
  background: var(--accent-dim); border-color: var(--accent-border);
}
.chat-bubble-name {
  font-family: 'Fragment Mono', monospace;
  font-size: 11px; color: var(--accent);
  margin-bottom: 3px; font-weight: 400;
}
.chat-bubble-text { font-size: 14px; line-height: 1.5; }
.chat-bubble-time {
  font-size: 10px; color: var(--text-dim);
  margin-top: 3px;
}

.chat-input-bar {
  display: flex; gap: 8px;
  padding: 10px 24px;
  padding-bottom: calc(10px + var(--safe-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.chat-input { flex: 1; border-radius: 20px; padding: 8px 16px; }
.btn-send {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff;
  border: none; font-size: 16px; font-weight: 600;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background 0.15s;
}
.btn-send:hover { background: var(--accent-hover); }

/* ---- Toast ---- */
.toast {
  position: fixed; bottom: calc(var(--nav-height) + 16px);
  left: 50%; transform: translateX(-50%);
  background: var(--surface-raised); color: var(--text);
  border: 1px solid var(--border-visible); border-radius: var(--radius);
  padding: 10px 20px; font-size: 13px; font-weight: 510;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s; z-index: 200;
  max-width: calc(100% - 48px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast.show { opacity: 1; pointer-events: auto; }
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }

/* ---- Loading / Skeleton ---- */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-raised) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { height: 140px; margin-bottom: 10px; border-radius: var(--radius); }

/* ---- Empty State ---- */
.empty-state { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty-state-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.5; }
.empty-state-text { font-size: 14px; }

/* ---- Bitcoin Ticker ---- */
.ticker-bar {
  position: absolute; top: 0; left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  padding: 6px 20px; z-index: 60;
  font-size: 13px;
}
@media (min-width: 768px) {
  .ticker-bar { padding: 6px 40px; }
}
.ticker-icon { color: var(--accent); font-size: 15px; font-weight: 600; }
.ticker-price { font-family: 'Fragment Mono', monospace; font-weight: 510; }
.ticker-change { font-size: 12px; font-weight: 590; }
.ticker-change.up { color: var(--success); }
.ticker-change.down { color: var(--danger); }
.ticker-toggle {
  margin-left: auto; cursor: pointer; color: var(--text-dim);
  font-size: 10px; transition: transform 0.2s;
}
.ticker-toggle.open { transform: rotate(180deg); }
.ticker-chart {
  position: absolute; top: 32px; left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 8px 24px 12px; z-index: 59;
}
.ticker-chart-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.ticker-chart-tabs .tag { padding: 3px 10px; font-size: 11px; }

/* ---- Meer Menu ---- */
.meer-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px;
}
.meer-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 12px;
  text-align: center; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.meer-item:hover { border-color: var(--border-strong); background: var(--surface-raised); }
.meer-icon { font-size: 24px; margin-bottom: 8px; }
.meer-label { font-size: 13px; font-weight: 510; color: var(--text-secondary); }

/* ---- Polls ---- */
.poll-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 10px;
}
.poll-question {
  font-family: 'Fragment Mono', monospace;
  font-size: 14px; margin-bottom: 12px; letter-spacing: -0.01em;
}
.poll-option {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; margin-bottom: 5px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all 0.15s; position: relative; overflow: hidden;
}
.poll-option:hover { border-color: var(--border-strong); }
.poll-option.voted { border-color: var(--accent-border); background: var(--accent-dim); }
.poll-option-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--accent-dim); transition: width 0.5s;
}
.poll-option-label { position: relative; z-index: 1; flex: 1; font-size: 13px; }
.poll-option-pct {
  position: relative; z-index: 1;
  font-family: 'Fragment Mono', monospace;
  font-size: 12px; color: var(--accent); font-weight: 590;
}
.poll-meta { color: var(--text-dim); font-size: 12px; margin-top: 8px; }

/* ---- Leaderboard ---- */
.lb-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 6px; transition: background 0.15s;
}
.lb-item:hover { background: var(--surface-raised); }
.lb-rank {
  font-family: 'Fragment Mono', monospace;
  font-size: 16px; font-weight: 590; color: var(--accent);
  min-width: 32px; text-align: center;
}
.lb-rank.gold { color: #FFD700; }
.lb-rank.silver { color: #C0C0C0; }
.lb-rank.bronze { color: #CD7F32; }
.lb-info { flex: 1; }
.lb-name { font-size: 13px; font-weight: 510; }
.lb-company { font-size: 12px; color: var(--text-dim); }
.lb-sats {
  font-family: 'Fragment Mono', monospace;
  font-size: 13px; font-weight: 590; color: var(--accent);
}
.badge-card {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 12px; margin: 3px;
  font-size: 12px; font-weight: 510;
  transition: all 0.15s;
}
.badge-card.earned { border-color: var(--accent-border); background: var(--accent-dim); color: var(--accent); }
.badge-icon { font-size: 16px; }

/* ---- Kennisbank ---- */
.kennis-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 10px;
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.kennis-card:hover { border-color: var(--border-strong); background: var(--surface-raised); }
.kennis-cat {
  display: inline-block; padding: 2px 7px;
  border-radius: var(--radius-sm); font-size: 10px; font-weight: 590;
  background: var(--accent-dim); color: var(--accent);
  margin-bottom: 6px;
}
.kennis-title {
  font-family: 'Fragment Mono', monospace;
  font-size: 14px; margin-bottom: 4px; letter-spacing: -0.01em;
}
.kennis-excerpt { color: var(--muted); font-size: 13px; line-height: 1.5; }
.kennis-body { font-size: 14px; line-height: 1.7; white-space: pre-wrap; color: var(--text-secondary); }

/* ---- Vragenbox ---- */
.question-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 10px;
}
.question-text { font-size: 14px; margin-bottom: 8px; font-style: italic; color: var(--text-secondary); }
.question-answer {
  padding-left: 12px; border-left: 2px solid var(--accent);
  font-size: 14px; color: var(--text); margin-top: 8px; line-height: 1.6;
}
.question-meta { font-size: 12px; color: var(--text-dim); margin-top: 6px; }

/* ---- Lightning Tip ---- */
.tip-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--accent-dim); color: var(--accent);
  border: 1px solid var(--accent-border); border-radius: 20px;
  padding: 4px 12px; font-size: 12px; font-weight: 590;
  cursor: pointer; font-family: inherit;
  transition: all 0.15s;
}
.tip-btn:hover { background: var(--accent); color: #fff; }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8);
  display: flex; align-items: center; justify-content: center;
  z-index: 400; opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
  backdrop-filter: blur(4px);
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface-raised); border: 1px solid var(--border-visible);
  border-radius: var(--radius-lg); padding: 28px;
  max-width: 360px; width: 90%; text-align: center;
  box-shadow: 0 16px 64px rgba(0,0,0,0.5);
}
.modal-title {
  font-family: 'Fragment Mono', monospace;
  font-size: 18px; margin-bottom: 16px;
}
.modal-close {
  background: none; border: none; color: var(--text-dim);
  font-size: 20px; cursor: pointer; float: right;
  transition: color 0.15s;
}
.modal-close:hover { color: var(--text); }

/* ---- Match ---- */
.match-score {
  display: inline-block; background: var(--accent);
  color: #fff; border-radius: 8px; padding: 1px 7px;
  font-size: 10px; font-weight: 590; margin-left: 6px;
}

/* ---- Event Photos ---- */
.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 4px;
  margin-top: 16px;
}
.photo-thumb {
  aspect-ratio: 1; border-radius: var(--radius-sm);
  background-size: cover; background-position: center;
  cursor: pointer;
}

/* ---- Chat Image ---- */
.btn-attach {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.04); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; flex-shrink: 0;
  transition: color 0.15s;
}
.btn-attach:hover { color: var(--accent); }
.chat-image-preview {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 24px; background: var(--surface);
  border-top: 1px solid var(--border);
}
.chat-image-preview img {
  height: 60px; border-radius: var(--radius-sm); object-fit: cover;
}
.chat-image-preview button {
  background: var(--danger-dim); color: var(--danger);
  border: none; border-radius: 50%; width: 24px; height: 24px;
  cursor: pointer; font-size: 12px;
}
.chat-bubble-img {
  max-width: 240px; border-radius: var(--radius-sm);
  margin-top: 6px; cursor: pointer;
}

/* ---- Spotlight Banner ---- */
.spotlight-banner {
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px; cursor: pointer;
  transition: background 0.15s;
}
.spotlight-banner:hover { background: rgba(230, 141, 60, 0.18); }
.spotlight-label { font-size: 11px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.spotlight-name { font-size: 14px; font-weight: 500; }
.spotlight-sub { font-size: 12px; color: var(--muted); }

/* ---- Deal Flow ---- */
.deal-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 10px;
  transition: border-color 0.15s;
}
.deal-card:hover { border-color: var(--border-strong); }
.deal-type-badge {
  display: inline-block; padding: 2px 8px;
  border-radius: var(--radius-sm); font-size: 10px; font-weight: 590;
  margin-bottom: 6px;
}
.deal-type-badge.investering { background: var(--accent-dim); color: var(--accent); }
.deal-type-badge.samenwerking { background: var(--success-dim); color: var(--success); }
.deal-type-badge.project { background: var(--purple-dim); color: var(--purple); }
.deal-type-badge.vacature { background: rgba(88,166,255,0.12); color: #58A6FF; }
.deal-status { font-size: 11px; color: var(--text-dim); margin-top: 8px; }

/* ---- Pods ---- */
.pod-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 10px;
}
.pod-goal {
  font-size: 12px; color: var(--accent); font-weight: 590;
  margin-bottom: 4px;
}
.pod-members-row {
  display: flex; gap: -4px; margin-top: 10px;
}
.pod-members-row .avatar {
  width: 28px; height: 28px; font-size: 10px;
  margin: 0 -2px 0 0; border: 2px solid var(--bg);
}
.pod-count { font-size: 12px; color: var(--muted); margin-left: 8px; }

/* ---- Educatie ---- */
.edu-path-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 12px;
  cursor: pointer; transition: border-color 0.15s;
}
.edu-path-card:hover { border-color: var(--border-strong); }
.edu-difficulty {
  display: inline-block; padding: 2px 8px;
  border-radius: var(--radius-sm); font-size: 10px; font-weight: 590;
  margin-bottom: 8px;
}
.edu-difficulty.beginner { background: var(--success-dim); color: var(--success); }
.edu-difficulty.intermediate { background: var(--accent-dim); color: var(--accent); }
.edu-difficulty.advanced { background: var(--purple-dim); color: var(--purple); }
.edu-progress {
  height: 4px; background: var(--border-visible);
  border-radius: 2px; margin-top: 12px; overflow: hidden;
}
.edu-progress-fill {
  height: 100%; background: var(--accent); border-radius: 2px;
  transition: width 0.5s;
}
.edu-lesson {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.edu-lesson-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-raised); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 590; flex-shrink: 0;
}
.edu-lesson-num.done { background: var(--accent); color: #fff; }
.edu-lesson-title { font-size: 14px; }

/* ---- Admin Stats ---- */
.admin-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px;
  margin-bottom: 20px;
}
.admin-stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; text-align: center;
}
.admin-stat-value {
  font-family: 'Fragment Mono', monospace;
  font-size: 28px; font-weight: 400; color: var(--accent);
  letter-spacing: -0.02em;
}
.admin-stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---- Feed ---- */
.feed-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 10px;
}
.feed-meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px; font-size: 12px; color: var(--muted);
}
.feed-type {
  display: inline-block; padding: 2px 6px;
  border-radius: 4px; font-size: 10px; font-weight: 590;
  background: var(--accent-dim); color: var(--accent);
}

/* ---- QR Check-in ---- */
.checkin-qr {
  width: 160px; height: 160px; background: #fff;
  border-radius: var(--radius); margin: 16px auto;
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}

/* ---- Video Cards ---- */
.video-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  margin-bottom: 12px; cursor: pointer;
  transition: border-color 0.15s;
}
.video-card:hover { border-color: var(--border-strong); }
.video-thumb {
  width: 100%; aspect-ratio: 16/9;
  background: var(--surface-raised); background-size: cover;
  background-position: center; position: relative;
}
.video-thumb::after {
  content: '▶'; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,0,0,0.7); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; padding-left: 3px;
}
.video-info { padding: 12px 14px; }
.video-title { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.video-meta { font-size: 12px; color: var(--muted); }
.video-badge {
  display: inline-block; padding: 2px 6px;
  border-radius: 4px; font-size: 9px; font-weight: 590;
  margin-left: 6px;
}
.video-badge.member { background: var(--accent-dim); color: var(--accent); }
.video-badge.curated { background: var(--success-dim); color: var(--success); }
.video-badge.featured { background: var(--purple-dim); color: var(--purple); }

.video-player-embed {
  width: 100%; aspect-ratio: 16/9;
  border-radius: var(--radius); overflow: hidden;
  margin-bottom: 16px; background: #000;
}
.video-player-embed iframe {
  width: 100%; height: 100%; border: none;
}
.video-ai-summary {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
  margin-top: 16px;
}
.video-ai-summary-label {
  font-size: 11px; color: var(--accent); font-weight: 590;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px;
}

/* ---- Chatbot Embed ---- */
#chatbot-container iframe {
  width: 100%; height: 100%; border: none;
}
.chatbot-fallback {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 100%; gap: 16px; padding: 40px;
  text-align: center;
}
.chatbot-fallback-icon { font-size: 48px; opacity: 0.5; }

/* ---- Video Grid (desktop) ---- */
@media (min-width: 768px) {
  .video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
}

/* ---- Confetti ---- */
.confetti-container {
  position: fixed; inset: 0; pointer-events: none; z-index: 500;
  overflow: hidden;
}
.confetti-particle {
  position: absolute; top: -20px;
  animation: confettiFall linear forwards;
  opacity: 0;
}
@keyframes confettiFall {
  0% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translateY(100vh) rotate(720deg) scale(0.3); }
}

/* ---- Page Transitions ---- */
.screen-enter {
  animation: screenSlideIn 0.25s ease-out;
}
@keyframes screenSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---- Dashboard ---- */
.dashboard-greeting { margin-bottom: 24px; }
.dashboard-hello {
  font-size: 26px; letter-spacing: -0.03em;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  overflow: hidden;
}
.dashboard-card-wide { grid-column: span 2; }
.dashboard-card-full { grid-column: 1 / -1; }

@media (max-width: 600px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-card-wide { grid-column: span 1; }
}

.dashboard-stats {
  display: flex; gap: 16px; justify-content: space-around;
  padding: 8px 0;
}
.dash-stat { text-align: center; }
.dash-stat-value {
  font-family: 'Fragment Mono', monospace;
  font-size: 28px; color: var(--accent);
  letter-spacing: -0.02em;
}
.dash-stat-label { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---- Halving Countdown ---- */
.halving-widget { text-align: center; }
.halving-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.halving-label {
  font-size: 11px; font-weight: 590; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.halving-epoch {
  font-size: 11px; color: var(--text-dim);
  background: rgba(255,255,255,0.04); padding: 2px 8px;
  border-radius: 4px;
}
.halving-countdown {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-bottom: 16px;
}
.halving-number {
  font-family: 'Fragment Mono', monospace;
  font-size: 36px; font-weight: 400; color: var(--text);
  letter-spacing: -0.03em;
}
.halving-unit-label { font-size: 11px; color: var(--muted); }
.halving-separator {
  font-family: 'Fragment Mono', monospace;
  font-size: 28px; color: var(--text-dim);
  animation: halvingBlink 1.5s infinite;
}
@keyframes halvingBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.halving-progress { margin-bottom: 8px; }
.halving-progress-bar {
  height: 6px; background: var(--border-visible);
  border-radius: 3px; overflow: hidden;
}
.halving-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), #FFD700);
  animation: halvingShimmer 3s ease-in-out infinite;
  background-size: 200% 100%;
}
@keyframes halvingShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.halving-progress-text { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.halving-date { font-size: 12px; color: var(--muted); }

/* ---- Fear & Greed ---- */
.fg-widget { text-align: center; padding: 8px 0; }
.fg-gauge { width: 120px; height: 70px; margin: 0 auto; }
.fg-svg { width: 100%; height: 100%; }
.fg-needle {
  transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: 60px 65px;
}
.fg-value {
  font-family: 'Fragment Mono', monospace;
  font-size: 32px; font-weight: 400;
  margin-top: -4px;
}
.fg-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---- Blocks Widget ---- */
.blocks-widget {}
.blocks-header {
  font-size: 11px; font-weight: 590; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.block-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.block-item:last-child { border-bottom: none; }
.block-cube {
  width: 32px; height: 32px; border-radius: 6px;
  background: var(--surface-raised);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--accent);
}
.block-cube-pulse { animation: blockPulse 2s ease-in-out infinite; }
@keyframes blockPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230,141,60,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(230,141,60,0); }
}
.block-latest .block-cube { background: var(--accent-dim); }
.block-info { flex: 1; }
.block-height {
  font-family: 'Fragment Mono', monospace;
  font-size: 13px; font-weight: 400;
}
.block-meta { font-size: 11px; color: var(--text-dim); }
.block-time { font-size: 11px; color: var(--muted); }

/* ---- Community Pulse ---- */
.pulse-widget {}
.pulse-header {
  font-size: 11px; font-weight: 590; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.pulse-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; font-size: 13px;
  border-bottom: 1px solid var(--border);
  animation: pulseSlideIn 0.3s ease-out backwards;
}
.pulse-item:nth-child(2) { animation-delay: 0.05s; }
.pulse-item:nth-child(3) { animation-delay: 0.1s; }
.pulse-item:nth-child(4) { animation-delay: 0.15s; }
.pulse-item:nth-child(5) { animation-delay: 0.2s; }
.pulse-item:nth-child(6) { animation-delay: 0.25s; }
.pulse-item:nth-child(7) { animation-delay: 0.3s; }
.pulse-item:last-child { border-bottom: none; }
@keyframes pulseSlideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}
.pulse-icon { font-size: 14px; flex-shrink: 0; }
.pulse-text { flex: 1; color: var(--text-secondary); }
.pulse-time { font-size: 11px; color: var(--text-dim); white-space: nowrap; }

/* ---- Progress Ring ---- */
.progress-ring-bg { stroke: var(--border-visible); }
.progress-ring-fill {
  stroke: var(--accent);
  transition: stroke-dashoffset 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  stroke-linecap: round;
}
.progress-ring-text {
  font-family: 'Fragment Mono', monospace;
  font-size: 14px; fill: var(--accent); font-weight: 590;
}

/* ---- Glassmorphism accent cards ---- */
.glass-card {
  background: rgba(230, 141, 60, 0.06);
  border: 1px solid rgba(230, 141, 60, 0.15);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---- Fee Cards ---- */
.fee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; margin-bottom: 16px; }
.fee-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; text-align: center;
}
.fee-rate { font-family: 'Fragment Mono', monospace; font-size: 24px; font-weight: 400; }
.fee-unit { font-size: 10px; color: var(--muted); }
.fee-label { font-size: 12px; font-weight: 500; margin-top: 6px; }
.fee-time { font-size: 11px; color: var(--text-dim); }
.fee-advice {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
}
.fee-low { background: var(--success-dim); color: var(--success); border: 1px solid rgba(39,166,68,0.2); }
.fee-high { background: var(--danger-dim); color: var(--danger); border: 1px solid rgba(248,81,73,0.2); }

/* ---- Dictionary ---- */
.dict-item {
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.dict-term {
  font-family: 'Fragment Mono', monospace;
  font-size: 14px; font-weight: 500; color: var(--accent);
  margin-bottom: 3px;
}
.dict-def { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ---- Converter ---- */
.converter-grid {
  display: flex; align-items: end; gap: 12px; margin-bottom: 12px;
}
.converter-grid .form-group { flex: 1; }
.converter-arrow {
  font-size: 20px; color: var(--accent); padding-bottom: 12px;
  flex-shrink: 0;
}
.converter-rate {
  font-size: 12px; color: var(--text-dim);
  font-family: 'Fragment Mono', monospace;
  margin-bottom: 16px;
}
.converter-presets {
  display: flex; gap: 6px; flex-wrap: wrap;
}

/* ---- Quick Actions ---- */
.quick-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.quick-action {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 56px; padding: 8px 14px;
  font-size: 12px; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; font-family: inherit;
  transition: all 0.15s;
}
.quick-action:hover { border-color: var(--accent-border); background: var(--accent-dim); color: var(--accent); }
.quick-action-icon { font-size: 14px; }

/* ---- Weekly Digest ---- */
.digest-widget { margin-bottom: 16px; }
.digest-header {
  font-size: 11px; font-weight: 590; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.digest-grid { display: flex; gap: 12px; }
.digest-item { text-align: center; flex: 1; }
.digest-num {
  font-family: 'Fragment Mono', monospace;
  font-size: 22px; color: var(--text);
}
.digest-label { font-size: 10px; color: var(--muted); }

/* ---- Quotes ---- */
.quote-widget {
  background: linear-gradient(135deg, rgba(230,141,60,0.08) 0%, rgba(230,141,60,0.02) 100%);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.quote-widget::before {
  content: '';
  position: absolute; top: -20px; right: -10px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(230,141,60,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.quote-mark {
  font-family: Georgia, serif;
  font-size: 64px; line-height: 0.5;
  color: var(--accent); opacity: 0.3;
  margin-bottom: 8px;
}
.quote-text {
  font-size: 16px; line-height: 1.6;
  color: var(--text); font-style: italic;
  margin-bottom: 16px;
  position: relative;
}
.quote-author { display: flex; align-items: center; gap: 8px; }
.quote-name {
  font-weight: 700; font-size: 13px; color: var(--accent);
}
.quote-role { font-size: 12px; color: var(--text-dim); }

.quote-card {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 16px; margin: 12px 0;
}
.quote-text-sm { font-size: 13px; font-style: italic; color: var(--text-secondary); line-height: 1.5; }
.quote-author-sm { font-size: 11px; color: var(--accent); margin-top: 6px; font-weight: 590; }

/* ---- Offline Banner ---- */
.offline-banner {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--danger); color: #fff;
  text-align: center; padding: 6px;
  font-size: 12px; font-weight: 590;
  z-index: 300; transform: translateY(-100%);
  transition: transform 0.3s;
}
.offline-banner.show { transform: translateY(0); }

/* ---- Desktop enhancements ---- */
@media (min-width: 768px) {
  .members-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .chat-bubble { max-width: 55%; }
  .meer-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .login-content { padding: 48px; max-width: 480px; margin: 0 auto; }

  /* Forms centered on desktop */
  .form-stack { max-width: 520px; }

  /* Profile centered */
  .profile-detail { max-width: 520px; margin: 0 auto; }
  .profile-actions { max-width: 520px; margin: 0 auto; }
}

@media (min-width: 1024px) {
  .nav { width: 240px; min-width: 240px; }
  .members-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
  .screen-scroll { padding: 36px 48px; }
}

@media (min-width: 1400px) {
  .members-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .screen-scroll { padding: 40px 56px; }
}
