/* ─────────────────────────────────────────
   DentalCare — Minimal Mobile CSS
   ───────────────────────────────────────── */

:root {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --border: #EDEEF2;
  --text: #1A1C22;
  --text-muted: #9498A8;
  --primary: #2D6AE0;
  --primary-light: #EBF0FD;
  --primary-dark: #1A4DB8;
  --mint: #1DB6A4;
  --mint-light: #E4F8F6;
  --purple: #7C5AE2;
  --purple-light: #EDE8FC;
  --orange: #F58C2A;
  --orange-light: #FEF3E6;
  --green: #27AE60;
  --green-light: #E8F8EE;
  --red: #E03A3A;
  --red-light: #FDEBEB;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 16px rgba(0,0,0,0.07);
  --shadow-sm: 0 1px 6px rgba(0,0,0,0.05);
  --nav-height: 68px;
  --top-height: 56px;
  --font: 'Inter', sans-serif;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ── SPLASH ── */
.splash {
  position: fixed; inset: 0;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity .5s ease;
}
.splash.fade-out { opacity: 0; pointer-events: none; }
.splash-inner { text-align: center; color: #fff; }
.splash-logo {
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.2);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  margin: 0 auto 16px;
}
.splash-name { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.splash-sub { font-size: 14px; opacity: .75; margin-top: 4px; }

/* ── APP SHELL ── */
.app {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  background: var(--bg);
}
.hidden { display: none !important; }

/* ── TOPBAR ── */
.topbar {
  height: var(--top-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 16px;
  gap: 12px;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}
.topbar-title {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}
.btn-icon {
  width: 36px; height: 36px;
  border: none; background: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 16px;
  transition: background .15s;
  position: relative;
  flex-shrink: 0;
}
.btn-icon:hover { background: var(--bg); }
.badge-dot {
  position: absolute; top: 5px; right: 5px;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  display: none;
}
.badge-dot.visible { display: block; }

/* ── MAIN CONTENT ── */
.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* ── SCREENS ── */
.screen {
  display: none;
  padding: 16px;
  padding-bottom: calc(var(--nav-height) + 16px);
  min-height: 100%;
  animation: fadeSlide .25s ease;
}
.screen.active { display: block; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── BOTTOM NAV ── */
.bottom-nav {
  height: var(--nav-height);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  flex-shrink: 0;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-btn {
  flex: 1;
  border: none; background: none;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 500;
  transition: color .15s;
  position: relative;
}
.nav-btn i { font-size: 20px; }
.nav-btn.active { color: var(--primary); }

/* ── HOME SCREEN ── */
.home-hero {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: #fff;
}
.hero-greeting { font-size: 13px; opacity: .8; }
.hero-name { font-size: 22px; font-weight: 700; letter-spacing: -.5px; }
.hero-clinic { font-size: 12px; opacity: .75; margin-top: 4px; }
.hero-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  flex-shrink: 0;
}

/* ── CARDS ── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.card-appointment { cursor: pointer; }
.card-header-row {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.appt-row {
  display: flex; align-items: center; gap: 12px;
}
.appt-icon { font-size: 22px; color: var(--primary); }
.appt-date { font-size: 15px; font-weight: 600; }
.appt-doc { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.text-muted { color: var(--text-muted); font-size: 14px; }

/* ── CHIPS / LABELS ── */
.label-chip {
  font-size: 11px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.chip-blue   { background: var(--primary-light); color: var(--primary); }
.chip-mint   { background: var(--mint-light); color: var(--mint); }
.chip-purple { background: var(--purple-light); color: var(--purple); }
.chip-orange { background: var(--orange-light); color: var(--orange); }
.chip-green  { background: var(--green-light); color: var(--green); }
.chip-red    { background: var(--red-light); color: var(--red); }
.chip-gray   { background: var(--border); color: var(--text-muted); }

/* ── QUICK GRID ── */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.quick-card {
  background: var(--surface);
  border: none;
  border-radius: var(--radius);
  padding: 16px 12px;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 12px; font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform .12s, box-shadow .12s;
  position: relative;
}
.quick-card:active { transform: scale(.96); }
.quick-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.qc-blue   { background: var(--primary-light); color: var(--primary); }
.qc-mint   { background: var(--mint-light); color: var(--mint); }
.qc-purple { background: var(--purple-light); color: var(--purple); }
.qc-orange { background: var(--orange-light); color: var(--orange); }
.qc-green  { background: var(--green-light); color: var(--green); }
.qc-red    { background: var(--red-light); color: var(--red); }

.badge-count {
  position: absolute; top: 8px; right: 8px;
  background: var(--red);
  color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ── SECTION HEADER ── */
.section-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 15px; font-weight: 600;
}
.link-btn {
  border: none; background: none;
  color: var(--primary); font-size: 13px;
  font-family: var(--font); font-weight: 500;
  cursor: pointer;
}

/* ── RECS PREVIEW ── */
.recs-preview { display: flex; flex-direction: column; gap: 8px; }
.rec-item {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-sm);
}
.rec-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rec-dot.high   { background: var(--red); }
.rec-dot.medium { background: var(--orange); }
.rec-dot.low    { background: var(--green); }
.rec-text { font-size: 13px; font-weight: 500; }

/* ── TABS ── */
.tabs {
  display: flex;
  background: var(--border);
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 16px;
}
.tab {
  flex: 1;
  border: none; background: none;
  padding: 9px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
}
.tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── APPOINTMENT CARDS ── */
.appt-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  display: flex; gap: 14px; align-items: flex-start;
}
.appt-date-block {
  text-align: center;
  background: var(--primary-light);
  border-radius: 12px;
  padding: 8px 10px;
  min-width: 44px;
  flex-shrink: 0;
}
.appt-date-day { font-size: 20px; font-weight: 700; color: var(--primary); line-height:1; }
.appt-date-mon { font-size: 10px; font-weight: 600; color: var(--primary); text-transform: uppercase; }
.appt-info { flex: 1; }
.appt-info-title { font-size: 14px; font-weight: 600; }
.appt-info-doc { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.appt-info-time {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text-muted); margin-top: 6px;
}
.status-pill {
  font-size: 10px; font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}
.status-scheduled { background: var(--primary-light); color: var(--primary); }
.status-completed  { background: var(--green-light); color: var(--green); }
.status-cancelled  { background: var(--red-light); color: var(--red); }
.status-pending    { background: var(--orange-light); color: var(--orange); }

/* ── FAB ── */
.fab {
  position: fixed;
  bottom: calc(var(--nav-height) + 20px);
  right: 20px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(45,106,224,.4);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s;
  z-index: 100;
}
.fab:active { transform: scale(.93); }

/* ── HISTORY ── */
.history-list { display: flex; flex-direction: column; gap: 10px; }
.hist-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex; gap: 14px; align-items: flex-start;
}
.hist-line {
  display: flex; flex-direction: column;
  align-items: center; gap: 0;
  flex-shrink: 0;
}
.hist-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.hist-info { flex: 1; }
.hist-title { font-size: 14px; font-weight: 600; }
.hist-date  { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.hist-tooth {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  background: var(--border); color: var(--text-muted);
  padding: 2px 8px; border-radius: 20px;
  margin-top: 6px;
}

/* ── DOCUMENTS ── */
.doc-tabs {
  display: flex; gap: 8px;
  overflow-x: auto; padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.doc-tabs::-webkit-scrollbar { display: none; }
.doc-tab {
  border: none;
  background: var(--border);
  padding: 7px 14px;
  border-radius: 20px;
  font-family: var(--font);
  font-size: 12px; font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  flex-shrink: 0;
}
.doc-tab.active {
  background: var(--primary);
  color: #fff;
}
.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
  transition: transform .1s;
}
.doc-card:active { transform: scale(.98); }
.doc-type-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.doc-info { flex: 1; min-width: 0; }
.doc-title {
  font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.doc-meta { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* ── COMMUNICATIONS ── */
.comm-list { display: flex; flex-direction: column; gap: 10px; }
.comm-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .1s;
  position: relative;
}
.comm-card:active { transform: scale(.98); }
.comm-card.unread { border-left: 3px solid var(--primary); }
.comm-top {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.comm-badge {
  font-size: 10px; font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.comm-date { font-size: 11px; color: var(--text-muted); }
.comm-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.comm-preview { font-size: 13px; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }

/* ── CHAT LIST ── */
.doctor-chat-list { display: flex; flex-direction: column; gap: 10px; }
.doctor-chat-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .1s;
  position: relative;
}
.doctor-chat-item:active { transform: scale(.98); }
.doc-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  flex-shrink: 0;
}
.doc-chat-info { flex: 1; min-width: 0; }
.doc-chat-name { font-size: 15px; font-weight: 600; }
.doc-chat-spec { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.doc-chat-preview {
  font-size: 13px; color: var(--text-muted);
  margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-unread-badge {
  background: var(--primary);
  color: #fff;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── CHAT ROOM ── */
#screen-chatroom {
  display: none;
  flex-direction: column;
  padding: 0;
  padding-bottom: 0;
}
#screen-chatroom.active { display: flex; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
}
.msg-bubble.sent {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-bubble.received {
  align-self: flex-start;
  background: var(--surface);
  color: var(--text);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.msg-time {
  font-size: 10px;
  opacity: .65;
  margin-top: 4px;
  text-align: right;
}
.chat-input-bar {
  position: fixed;
  bottom: var(--nav-height);
  left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex; gap: 10px; align-items: center;
  z-index: 50;
}
.chat-input-bar input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 10px 16px;
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  background: var(--bg);
}
.send-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── RECOMMENDATIONS ── */
.rec-list { display: flex; flex-direction: column; gap: 10px; }
.rec-full-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex; gap: 14px; align-items: flex-start;
}
.rec-icon-box {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.rec-card-info { flex: 1; }
.rec-card-title { font-size: 14px; font-weight: 600; }
.rec-card-doc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.rec-card-desc { font-size: 13px; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }

/* ── PROFILE ── */
.profile-card {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 24px;
  color: #fff;
  text-align: center;
  margin-bottom: 16px;
}
.profile-avatar-big {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700;
}
.profile-name { font-size: 20px; font-weight: 700; }
.profile-meta { font-size: 13px; opacity: .8; margin-top: 4px; }
.profile-rows {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.profile-row {
  display: flex; align-items: center;
  padding: 14px 16px;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}
.profile-row:last-child { border-bottom: none; }
.profile-row-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.profile-row-label { font-size: 12px; color: var(--text-muted); }
.profile-row-value { font-size: 14px; font-weight: 500; }

.allergy-section-title {
  font-size: 14px; font-weight: 600;
  margin-bottom: 10px; margin-top: 8px;
}
.allergy-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.allergy-chip {
  background: var(--red-light);
  color: var(--red);
  font-size: 13px; font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  display: flex; align-items: flex-end;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-sheet {
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  padding: 16px 20px 32px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp .25s ease;
}
@keyframes slideUp {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.modal-handle {
  width: 40px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 18px;
}
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; }

/* ── FORM ── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.optional { font-weight: 400; }
.form-group input[type="text"],
.form-group input[type="date"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border .15s;
  background: var(--bg);
}
.form-group input:focus { border-color: var(--primary); }

.time-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.doctor-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  border: 1.5px solid var(--border);
  background: none;
  padding: 7px 14px;
  border-radius: 20px;
  font-family: var(--font);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  color: var(--text-muted);
}
.chip-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.modal-actions {
  display: flex; gap: 10px; margin-top: 20px;
}
.btn-primary {
  flex: 1;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary {
  flex: 1;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  width: 100%;
}

/* ── DOC MODAL ── */
.doc-modal-icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}
.doc-modal-title { font-size: 18px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.doc-modal-meta { font-size: 13px; color: var(--text-muted); text-align: center; margin-bottom: 20px; }
.doc-modal-body {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 14px; line-height: 1.7;
  color: var(--text);
}
.doc-modal-amount {
  font-size: 28px; font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin: 16px 0;
}

/* ── COMM MODAL ── */
.comm-modal-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.comm-modal-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.comm-modal-date { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.comm-modal-body { font-size: 14px; line-height: 1.7; color: var(--text); }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
}
.empty-state i { font-size: 48px; margin-bottom: 12px; display: block; opacity: .4; }
.empty-state p { font-size: 14px; }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: calc(var(--nav-height) + 20px);
  left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  font-size: 13px; font-weight: 500;
  padding: 10px 20px;
  border-radius: 24px;
  opacity: 0;
  transition: all .3s;
  pointer-events: none;
  z-index: 300;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── UTILS ── */
.mt-16 { margin-top: 16px; }
.divider { height: 1px; background: var(--border); margin: 12px 0; }

/* ── SUCCESS STATE ── */
.success-state {
  text-align: center; padding: 32px 0 16px;
}
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.success-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.success-sub { font-size: 14px; color: var(--text-muted); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
