/* ── MODALS ── */
.modal-overlay {
  position: fixed; inset:0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  width: 460px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-title { font-family:'Syne',sans-serif; font-size:16px; font-weight:700; margin-bottom:6px; }
.modal-sub { font-size:11px; color:var(--text-muted); margin-bottom:18px; }
.modal-actions { display:flex; gap:8px; justify-content:flex-end; margin-top:16px; }
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 14px;
}
.drop-zone:hover, .drop-zone.drag-over { border-color:var(--accent2); background:rgba(77,168,255,0.04); }
.drop-zone-icon { font-size:30px; margin-bottom:8px; }
.drop-zone-text { color:var(--text-muted); font-size:11px; }
.drop-zone-text strong { color:var(--accent2); }

/* ── PROJ SETTINGS MODAL ── */
.proj-modal-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }

/* ── PROJECT LIST SCREEN ── */
#projectListScreen {
  position: fixed; inset: 0; z-index: 500;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: stretch;
  overflow-y: auto;
}
.dash-header {
  height: 52px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.dash-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 40px;
  flex: 1;
}
.proj-screen-header {
  text-align: center;
  margin-bottom: 36px;
}
.proj-screen-logo {
  font-family: 'Syne', sans-serif;
  font-size: 28px; font-weight: 800;
  margin-bottom: 6px;
}
.proj-screen-logo span { color: var(--accent); }
.proj-screen-sub { font-size: 12px; color: var(--text-muted); }
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 1000px;
}
.proj-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.proj-card:hover { border-color: var(--accent); background: var(--surface2); }
.proj-card-name {
  font-family: 'Syne', sans-serif;
  font-size: 14px; font-weight: 700;
  margin-bottom: 4px;
}
.proj-card-meta { font-size: 11px; color: var(--text-muted); margin-bottom: 10px; }
.proj-card-stats { display: flex; gap: 10px; font-size: 10px; color: var(--text-muted); }
.proj-card-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.proj-card-stat-val { font-size: 14px; font-weight: 600; color: var(--text); font-family: 'Syne', sans-serif; }
.proj-card-del {
  position: absolute; top: 10px; right: 10px;
  background: transparent; border: none; color: var(--text-dim);
  cursor: pointer; font-size: 14px; line-height: 1; padding: 2px 5px;
  border-radius: 4px;
  transition: all 0.1s;
}
.proj-card-del:hover { color: var(--danger); background: rgba(240,80,80,0.1); }
.proj-card-new {
  border: 1px dashed var(--border2);
  background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: var(--text-muted);
  min-height: 120px;
}
.proj-card-new:hover { border-color: var(--accent); color: var(--accent); background: rgba(232,160,32,0.03); }
.proj-new-icon { font-size: 28px; opacity: 0.4; }
.proj-new-label { font-size: 12px; }

/* ── USER SETTINGS ── */
.user-settings-wrap { padding: 0; }

/* ── DIALOG ── */
.dialog-title { font-family:'Syne',sans-serif; font-size:16px; font-weight:700; margin-bottom:6px; }
.dialog-sub { font-size:11px; color:var(--text-muted); margin-bottom:14px; }

/* ── LEGAL PAGE ── */
.legal-content { font-size:13px; color:var(--text-muted); font-family:'DM Mono',monospace; line-height:1.8; }
.legal-content h3 { color:var(--text); }
.legal-content p { margin-bottom:16px; }

/* ── PAYWALL ── */
.paywall-wrap { width:420px; max-width:95vw; text-align:center; }
.paywall-card { background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:32px; }
