/**
 * quora.css — Shared stylesheet for the telemedicine module frontend.
 *
 * Owned by the Patient_Frontend worker. The doctor frontend also links this
 * file (../assets/quora.css) — keep selectors generic and stable.
 *
 * Design language: Quora.com — clean, quiet, content-first.
 *  - Page background:  #f1f2f2
 *  - Cards:            white, 1px #dee0e1 border, 8px radius
 *  - Typography:       -apple-system, 'Helvetica Neue', Arial, sans-serif
 *  - Quora red:        #b92b27 — RESTRAINED use: primary CTAs and urgency
 *                      highlights only. Never for decoration.
 *  - Generous whitespace, minimal top-nav bar.
 *
 * Pages may add small page-specific tweaks inline AFTER linking this file.
 */

/* ------------------------------------------------------------------ */
/*  Tokens                                                             */
/* ------------------------------------------------------------------ */
:root {
  --q-bg: #f1f2f2;
  --q-card: #ffffff;
  --q-border: #dee0e1;
  --q-ink: #282829;          /* Quora near-black text */
  --q-muted: #636466;        /* Quora gray secondary text */
  --q-faint: #939598;        /* timestamps, hints */
  --q-red: #b92b27;          /* primary CTA / urgency highlights ONLY */
  --q-red-hover: #a6251f;
  --q-red-soft: #fbeeee;     /* faint red tint for highlighted blocks */
  --q-blue: #2e69ff;         /* informational links (sparingly) */
  --q-radius: 8px;
  --q-font: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

/* ------------------------------------------------------------------ */
/*  Base                                                               */
/* ------------------------------------------------------------------ */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--q-bg);
  color: var(--q-ink);
  font-family: var(--q-font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--q-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0; font-weight: 700; color: var(--q-ink); }

/* ------------------------------------------------------------------ */
/*  Minimal top nav                                                    */
/* ------------------------------------------------------------------ */
.q-nav {
  background: var(--q-card);
  border-bottom: 1px solid var(--q-border);
  padding: 0 20px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
.q-nav .q-nav-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.q-nav .q-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

/* ------------------------------------------------------------------ */
/*  Layout                                                             */
/* ------------------------------------------------------------------ */
.q-main {
  max-width: 700px;               /* Quora's narrow reading column */
  margin: 24px auto;
  padding: 0 16px 56px;
}
.q-main.wide { max-width: 960px; }

/* ------------------------------------------------------------------ */
/*  Cards                                                              */
/* ------------------------------------------------------------------ */
.q-card {
  background: var(--q-card);
  border: 1px solid var(--q-border);
  border-radius: var(--q-radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.q-card.flat { padding: 12px 16px; }

.q-card-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }

.q-muted { color: var(--q-muted); }
.q-faint { color: var(--q-faint); font-size: 13px; }
.q-small { font-size: 13px; }

/* ------------------------------------------------------------------ */
/*  Buttons — Quora red reserved for primary CTAs                      */
/* ------------------------------------------------------------------ */
.q-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 20px;              /* Quora pill buttons */
  border: 1px solid transparent;
  font-family: var(--q-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
  background: transparent;
  color: var(--q-ink);
}
.q-btn:hover { text-decoration: none; }

.q-btn.primary {
  background: var(--q-red);
  color: #fff;
}
.q-btn.primary:hover { background: var(--q-red-hover); }

.q-btn.secondary {
  border-color: var(--q-border);
  color: var(--q-muted);
  background: var(--q-card);
}
.q-btn.secondary:hover { background: #f7f7f8; }

.q-btn.small { padding: 5px 14px; font-size: 13px; }
.q-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Horizontal icon menu for dashboard nav bars (tm- prefix). Icon + text
   turn red on hover; works for <a> and <button> items. */
.tm-menu { display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
    flex: 1; justify-content: center; }
.tm-menu-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
    font-size: 13px; font-weight: 600; color: var(--q-muted); text-decoration: none;
    border-radius: 6px; transition: color .15s ease; white-space: nowrap;
    background: none; border: 0; cursor: pointer; font-family: inherit; line-height: 1.4; }
.tm-menu-link i { font-size: 15px; }
.tm-menu-link:hover { color: var(--q-red); text-decoration: none; }
.tm-menu-link.active { color: var(--q-red); }

/* Centered section row under the header — names the section of the app
   (the logo already carries "Circle Direct", so the nav shows no wordmark). */
.tm-section-row { text-align: center; padding: 12px 16px 0; }
.tm-section-title { display: inline-block; font-size: 15px; font-weight: 700;
    color: var(--q-ink); letter-spacing: .02em; padding-bottom: 4px;
    border-bottom: 2px solid var(--q-red); }

/* Right-aligned action row sitting directly above the wallet card. */
.tm-edit-row { display: flex; justify-content: flex-end; margin: 0 0 8px; }

/* Brand logo inside dashboard nav bars (links home). */
.tm-brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.tm-brand img { height: 28px; width: auto; display: block; }

.q-btn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  gap: 10px;
}

/* ------------------------------------------------------------------ */
/*  Forms — stepped question-form feel                                 */
/* ------------------------------------------------------------------ */
.q-field { display: block; margin-bottom: 20px; }

/* The question itself — bold, like a Quora question headline. */
.q-field .q-label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--q-ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.q-input,
.q-select,
.q-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--q-border);
  border-radius: var(--q-radius);
  background: #fff;
  font-family: var(--q-font);
  font-size: 15px;
  color: var(--q-ink);
}
.q-input:focus,
.q-select:focus,
.q-textarea:focus {
  outline: none;
  border-color: var(--q-faint);
}
.q-textarea { resize: vertical; min-height: 72px; }

.q-radio-row { display: flex; gap: 18px; }
.q-radio-row label {
  font-size: 14px;
  color: var(--q-ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ------------------------------------------------------------------ */
/*  Q&A style blocks — bold question, answer below (brief review)      */
/* ------------------------------------------------------------------ */
.q-qa { padding: 12px 0; border-bottom: 1px solid var(--q-border); }
.q-qa:last-child { border-bottom: none; }
.q-qa .q-question {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.q-qa .q-answer { color: var(--q-muted); font-size: 14px; white-space: pre-wrap; }

/* ------------------------------------------------------------------ */
/*  Badges & pills                                                     */
/* ------------------------------------------------------------------ */
.q-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  background: #eceded;
  color: var(--q-muted);
}

/* Urgency levels — the ONLY places (with CTAs) Quora red may highlight. */
.q-badge.urgency-low       { background: #e7f3e9; color: #2d7a3e; }
.q-badge.urgency-medium    { background: #fdf3e0; color: #9a6b1f; }
.q-badge.urgency-high      { background: var(--q-red-soft); color: var(--q-red); }
.q-badge.urgency-emergency { background: var(--q-red); color: #fff; }

/* Status pills for appointments. */
.q-badge.status-confirmed       { background: #e7f3e9; color: #2d7a3e; }
.q-badge.status-waiting         { background: #fdf3e0; color: #9a6b1f; }
.q-badge.status-in_progress     { background: #e8effb; color: #2e58a8; }
.q-badge.status-completed       { background: #eceded; color: var(--q-muted); }
.q-badge.status-cancelled       { background: var(--q-red-soft); color: var(--q-red); }
.q-badge.status-pending_payment { background: #fdf3e0; color: #9a6b1f; }

/* Subtle AI-source badge ('AI: DeepSeek' / 'AI: offline fallback'). */
.q-badge.ai-source {
  background: transparent;
  border: 1px solid var(--q-border);
  color: var(--q-faint);
  font-weight: 500;
  text-transform: none;
}

.q-tag {
  font-size: 12px;
  color: var(--q-muted);
  border: 1px solid var(--q-border);
  border-radius: 12px;
  padding: 2px 10px;
}

/* ------------------------------------------------------------------ */
/*  Notification bell                                                  */
/* ------------------------------------------------------------------ */
.q-bell { position: relative; cursor: pointer; padding: 6px; border-radius: 50%; }
.q-bell:hover { background: #f1f2f2; }
.q-bell .q-bell-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 17px;
  height: 17px;
  background: var(--q-red);           /* red highlight: unread notifications */
  color: #fff;
  border-radius: 9px;
  font-size: 11px;
  line-height: 17px;
  text-align: center;
  padding: 0 4px;
  display: none;
}
.q-bell .q-bell-count.show { display: block; }

.q-notif-panel {
  position: absolute;
  right: 16px;
  top: 54px;
  width: 340px;
  max-height: 420px;
  overflow-y: auto;
  background: var(--q-card);
  border: 1px solid var(--q-border);
  border-radius: var(--q-radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  display: none;
  z-index: 20;
}
.q-notif-panel.open { display: block; }
.q-notif-item { padding: 12px 16px; border-bottom: 1px solid var(--q-border); }
.q-notif-item:last-child { border-bottom: none; }
.q-notif-item.unread { background: #fafafa; }
.q-notif-item .t { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.q-notif-item .b { font-size: 13px; color: var(--q-muted); white-space: pre-wrap; }
.q-notif-item .d { font-size: 12px; color: var(--q-faint); margin-top: 4px; }
.q-notif-empty { padding: 24px; text-align: center; color: var(--q-faint); font-size: 13px; }

/* ------------------------------------------------------------------ */
/*  Section headers, empty & loading states                            */
/* ------------------------------------------------------------------ */
.q-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--q-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 24px 0 10px;
}
.q-empty {
  background: var(--q-card);
  border: 1px dashed var(--q-border);
  border-radius: var(--q-radius);
  padding: 32px;
  text-align: center;
  color: var(--q-faint);
}
.q-loading { text-align: center; color: var(--q-faint); padding: 28px; }

/* ------------------------------------------------------------------ */
/*  Step indicator (booking wizard)                                    */
/* ------------------------------------------------------------------ */
.q-steps { display: flex; gap: 4px; margin: 4px 0 20px; }
.q-step {
  flex: 1 1 0;
  min-width: 70px;
  text-align: center;
  font-size: 12px;
  color: var(--q-faint);
  padding: 8px 4px 6px;
  border-bottom: 2px solid var(--q-border);
}
.q-step.active { color: var(--q-red); border-color: var(--q-red); font-weight: 700; }
.q-step.done { color: var(--q-ink); border-color: var(--q-ink); }

/* ------------------------------------------------------------------ */
/*  Choice cards (booking type / doctor)                               */
/* ------------------------------------------------------------------ */
.q-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .q-choice-grid { grid-template-columns: 1fr; } }
.q-choice {
  border: 1px solid var(--q-border);
  border-radius: var(--q-radius);
  background: var(--q-card);
  padding: 16px;
  cursor: pointer;
  transition: border-color .15s;
}
.q-choice:hover { border-color: var(--q-faint); }
.q-choice.selected { border-color: var(--q-red); }
.q-choice .c-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.q-choice .c-fee { font-size: 18px; font-weight: 700; color: var(--q-ink); }
.q-choice .c-desc { font-size: 13px; color: var(--q-muted); margin-top: 6px; }

/* ------------------------------------------------------------------ */
/*  AI box — left red accent only for high/emergency urgency           */
/* ------------------------------------------------------------------ */
.q-ai-box {
  border: 1px solid var(--q-border);
  border-radius: var(--q-radius);
  background: var(--q-card);
  padding: 16px 20px;
}
.q-ai-box.urgent { border-left: 3px solid var(--q-red); background: var(--q-red-soft); }
.q-ai-box .ai-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.q-ai-box .ai-title { font-weight: 700; font-size: 15px; }
.q-ai-box .ai-note { font-size: 12px; color: var(--q-faint); margin-top: 12px; }

/* ------------------------------------------------------------------ */
/*  Slot picker                                                        */
/* ------------------------------------------------------------------ */
.q-slot-day { margin-bottom: 16px; }
.q-slot-day .d { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.q-slot-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.q-slot-chip {
  border: 1px solid var(--q-border);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: var(--q-font);
  font-size: 13px;
  cursor: pointer;
  background: var(--q-card);
  color: var(--q-ink);
}
.q-slot-chip:hover { border-color: var(--q-faint); }
.q-slot-chip.selected { border-color: var(--q-red); color: var(--q-red); font-weight: 600; }

/* ------------------------------------------------------------------ */
/*  Summary rows (payment review)                                      */
/* ------------------------------------------------------------------ */
.q-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--q-border);
  font-size: 14px;
}
.q-summary-row:last-child { border-bottom: none; }
.q-summary-row.total { font-weight: 700; font-size: 16px; }
.q-summary-row .k { color: var(--q-muted); }

.q-mock-banner {
  border: 1px solid var(--q-border);
  border-radius: var(--q-radius);
  background: #fdf3e0;
  color: #9a6b1f;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* ------------------------------------------------------------------ */
/*  Waiting room / chat panel                                          */
/* ------------------------------------------------------------------ */
.q-status-hero { text-align: center; padding: 36px 16px; }
.q-status-hero .big { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.q-dot-pulse {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--q-red);
  margin-right: 8px;
  animation: qPulse 1.6s ease-in-out infinite;
}
@keyframes qPulse {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}

.q-chat-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 4px 0 12px;
}
.q-chat-msg { margin-bottom: 10px; max-width: 80%; }
.q-chat-msg .bubble {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 14px;
  background: #f1f2f2;
  color: var(--q-ink);
}
.q-chat-msg.mine { margin-left: auto; text-align: right; }
.q-chat-msg.mine .bubble { background: var(--q-red-soft); color: var(--q-ink); }
.q-chat-msg .meta { font-size: 11px; color: var(--q-faint); margin-top: 2px; }
.q-chat-input-row { display: flex; gap: 8px; border-top: 1px solid var(--q-border); padding-top: 12px; }
.q-chat-input-row .q-input { flex: 1; }

/* Mock video container — replaced by a real provider embed later. */
.q-video-mock {
  border: 1px dashed var(--q-faint);
  border-radius: var(--q-radius);
  background: #1d1e1f;
  color: #eceded;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 20px;
}
.q-video-mock .v-title { font-weight: 700; }
.q-video-mock .v-sub { font-size: 13px; color: #939598; }

/* Utility */
.q-hidden { display: none !important; }

/* ------------------------------------------------------------------ */
/*  Page header band (dashboards)                                      */
/* ------------------------------------------------------------------ */
.q-pagehead {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 4px 0 18px;
}
.q-pagehead .ph-text { flex: 1 1 260px; min-width: 0; }
.q-pagehead .ph-greeting {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.q-pagehead .ph-sub { font-size: 14px; color: var(--q-muted); margin-top: 2px; }
.q-pagehead .ph-actions { flex: 0 0 auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* Greeting-band avatar: photo when set, initials fallback otherwise. */
.q-ph-avatar {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eceded;
  border: 1px solid var(--q-border);
  color: var(--q-muted);
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.q-ph-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------ */
/*  Stat / summary cards                                               */
/* ------------------------------------------------------------------ */
.q-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 640px) { .q-stats { grid-template-columns: 1fr; } }
.q-stat {
  background: var(--q-card);
  border: 1px solid var(--q-border);
  border-radius: var(--q-radius);
  padding: 14px 18px;
}
.q-stat .num { font-size: 24px; font-weight: 700; color: var(--q-ink); }
.q-stat .num.small { font-size: 16px; line-height: 1.35; }
.q-stat .lbl { font-size: 13px; color: var(--q-muted); margin-top: 2px; }
.q-stat .sub { font-size: 13px; color: var(--q-faint); margin-top: 4px; }

/* ------------------------------------------------------------------ */
/*  Appointment cards — colored left accent by status, avatar, CTA     */
/* ------------------------------------------------------------------ */
.q-appt {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-left: 3px solid var(--q-border);
}
.q-appt.accent-confirmed       { border-left-color: #2e58a8; }        /* blue-ish */
.q-appt.accent-waiting         { border-left-color: #d9a441; }        /* amber */
.q-appt.accent-in_progress     { border-left-color: #3d9a50; }        /* green */
.q-appt.accent-completed       { border-left-color: var(--q-faint); } /* gray */
.q-appt.accent-cancelled       { border-left-color: var(--q-red); }   /* red */
.q-appt.accent-pending_payment { border-left-color: var(--q-border); }/* muted */

.q-avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eceded;
  color: var(--q-muted);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.q-appt .a-body { flex: 1 1 auto; min-width: 0; }
.q-appt .a-name { font-weight: 700; font-size: 15px; }
.q-appt .a-spec { font-size: 13px; color: var(--q-muted); margin-top: 1px; }
.q-appt .a-when { font-size: 14px; margin-top: 8px; }
.q-appt .a-date { font-weight: 600; }
.q-appt .a-time { color: var(--q-muted); }
.q-appt .a-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* Clickable appointment rows (e.g. doctor dashboard -> consultation room). */
.q-appt.clickable { cursor: pointer; }
.q-appt.clickable:hover { background: #fafafa; }
.q-appt.clickable:focus-visible { outline: 2px solid var(--q-faint); outline-offset: -2px; }
.q-appt .a-chev {
  flex: 0 0 auto;
  align-self: center;
  color: var(--q-faint);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

/* Muted stand-in for a disabled primary CTA. */
.q-cta-muted {
  font-size: 12px;
  color: var(--q-faint);
  border: 1px dashed var(--q-border);
  border-radius: 20px;
  padding: 5px 14px;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/*  Rich empty states — glyph + message + optional CTA                 */
/* ------------------------------------------------------------------ */
.q-empty-rich {
  background: var(--q-card);
  border: 1px dashed var(--q-border);
  border-radius: var(--q-radius);
  padding: 36px 24px;
  text-align: center;
}
.q-empty-rich .glyph { font-size: 30px; line-height: 1; margin-bottom: 10px; }
.q-empty-rich .msg { color: var(--q-muted); font-size: 14px; margin-bottom: 14px; }
.q-empty-rich .msg:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ */
/*  Loading skeleton — pulsing placeholder blocks (no gradients)       */
/* ------------------------------------------------------------------ */
.q-skel-card {
  background: var(--q-card);
  border: 1px solid var(--q-border);
  border-radius: var(--q-radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.q-skel-row { display: flex; gap: 14px; align-items: center; }
.q-skel-row .grow { flex: 1 1 auto; min-width: 0; }
.q-skel {
  background: #eceded;
  border-radius: 6px;
  animation: qSkelPulse 1.4s ease-in-out infinite;
}
.q-skel.circle { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 40px; }
.q-skel.line { height: 12px; margin-bottom: 8px; }
.q-skel.line:last-child { margin-bottom: 0; }
.q-skel.line.w60 { width: 60%; }
.q-skel.line.w40 { width: 40%; }
.q-skel.line.w30 { width: 30%; }
@keyframes qSkelPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

/* ------------------------------------------------------------------ */
/*  Shared footer (public/partials/footer.php) — mirrors index.php     */
/* ------------------------------------------------------------------ */
.tm-footer {
  border-top: 1px solid var(--q-border);
  background: var(--q-card);
  margin-top: 40px;
}
.tm-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 16px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
}
.tm-foot-logo { height: 26px; display: block; margin-bottom: 8px; }
.tm-social { display: flex; gap: 10px; margin-top: 4px; }
.tm-social a { color: var(--q-muted); display: inline-flex; transition: color .15s; }
.tm-social a:hover { color: var(--q-red); }
.tm-social svg { width: 18px; height: 18px; fill: currentColor; }
.tm-footer h3 { font-size: 14px; margin-bottom: 8px; }
.tm-footer p { margin: 0 0 6px; font-size: 13px; color: var(--q-muted); }
.tm-foot-link { display: block; font-size: 13px; color: var(--q-muted); padding: 2px 0; }
.tm-foot-link:hover { color: var(--q-ink); }
.tm-copy {
  border-top: 1px solid var(--q-border);
  padding: 14px 16px;
  text-align: center;
  color: var(--q-muted);
  font-size: 13px;
}
@media (max-width: 620px) { .tm-footer-inner { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
 * Platform wallet card (migration_038) — shared rules so the card renders
 * correctly on every dashboard (previously these lived only in wallet.php,
 * which left the Fund/History actions touching on dashboards).
 * ------------------------------------------------------------------------ */
.wallet-balance { font-size: 24px; font-weight: 700; }
.wallet-balance-row { margin: 4px 0 10px; }
.wallet-actions { display: flex; gap: 8px; align-items: center; }
