/* ═══════════════════════════════════════════════════════════════
   dashboard.css — ODIV Engage Customer Dashboard
   Mobile-first responsive, dark Framer-style design
   ═══════════════════════════════════════════════════════════════ */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ═══════════════════════════════════════════════════════════════
   PHASE 3.5 SPLIT (2026-05-30) — per-tab CSS extracted to:
     css/dashboard/tabs/overview.css
     css/dashboard/tabs/subscription.css
     css/dashboard/tabs/channels.css
     css/dashboard/tabs/account.css
     css/dashboard/tabs/crm.css
     css/dashboard/tabs/team.css
     css/dashboard/tabs/ecommerce.css
     css/dashboard/tabs/playbooks.css
     css/dashboard/tabs/settings.css  (existed since Phase 2)

   What stays here: shell, chrome, design system (cards, buttons,
   tables, modals, alerts, snapshot hero, stat rail, ch2-pill, empty
   tile, pb-icon utilities, sidebar, mobile bars, More sheet,
   loading/skeletons, banners, forms, login screens, onboarding wizard,
   sub-pending overlay).
   What moves out: selectors that only render inside ONE tab's HTML.
   Multi-tab selectors stay here.
   ═══════════════════════════════════════════════════════════════ */

body.dark-theme {
  background: var(--bg-dark, #0f1117);
  color: var(--text-primary, #e8ecf1);
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Utility Classes ─── */
.dash-text-green { color: var(--color-success); }
.dash-text-red { color: var(--color-error); }
.dash-text-yellow { color: var(--color-warning); }
.dash-text-muted { color: var(--text-muted, #5c6577); }

/* ═══════════════════════════════════════════════════════════════
   LOGIN & TOKEN SETUP SCREENS
   ═══════════════════════════════════════════════════════════════ */

.dash-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.dash-login-brand {
  margin-bottom: 2rem;
}

.dash-login-brand a {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-wa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.dash-auth-card {
  background: var(--bg-card, #181b23);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.dash-auth-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(37, 211, 102, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.dash-auth-card h2 {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dash-auth-card p {
  color: var(--text-secondary, #8b95a5);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.dash-auth-footer {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted, #5c6577);
}

.dash-auth-footer a {
  color: var(--color-success);
  text-decoration: none;
}

/* ─── Phone Input ─── */
.dash-phone-input {
  display: flex;
  align-items: center;
  background: var(--bg-surface, #141720);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.dash-phone-input:focus-within {
  border-color: var(--color-success);
}

.dash-phone-prefix {
  padding: 0.85rem 0 0.85rem 1rem;
  color: var(--text-muted, #5c6577);
  font-size: 0.95rem;
  user-select: none;
}

.dash-phone-input input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary, #e8ecf1);
  font-size: 1rem;
  padding: 0.85rem 1rem 0.85rem 0.25rem;
  outline: none;
}

/* ─── Login method toggle (WA / Email) ─── */
.dash-login-method-toggle {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.dash-login-method-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted, #8b95a5);
  letter-spacing: 0.01em;
}
.dash-login-method-switch {
  font-size: 0.74rem;
  background: transparent;
  border: none;
  color: var(--color-success, var(--accent-green));
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dash-login-method-switch:hover { color: #1dbf5b; }

/* Email-only input (mirror of .dash-phone-input minus the prefix slot) */
.dash-email-input {
  display: block;
  background: var(--bg-surface, #141720);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.dash-email-input:focus-within { border-color: var(--color-success, var(--accent-green)); }
.dash-email-input input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary, #e8ecf1);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  outline: none;
  font-family: inherit;
}

/* "Didn't get the code? Try email instead" nudge below OTP boxes */
.dash-otp-nudge {
  text-align: center;
  padding: 0.5rem 0.75rem;
  background: rgba(37, 211, 102, 0.04);
  border: 1px solid rgba(37, 211, 102, 0.12);
  border-radius: 8px;
}
.dash-otp-nudge .dash-btn-link {
  font-weight: 600;
  color: var(--color-success, var(--accent-green));
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─── OTP Inputs ─── */
.dash-otp-inputs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.dash-otp-box {
  width: 52px;
  height: 58px;
  background: var(--bg-surface, #141720);
  border: 1.5px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 10px;
  color: var(--text-primary, #e8ecf1);
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}

.dash-otp-box:focus {
  border-color: var(--color-success);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.dash-otp-inputs.shake {
  animation: otpShake 0.4s ease;
}

@keyframes otpShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.dash-otp-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.dash-otp-timer {
  font-size: 0.85rem;
  color: var(--color-success);
  font-variant-numeric: tabular-nums;
}

.dash-otp-hint {
  font-size: 0.75rem;
  color: var(--text-muted, #5c6577);
  margin: 0.5rem 0 0;
  text-align: center;
}

/* ─── Setup Steps ─── */
.dash-setup-steps {
  text-align: left;
  margin: 1rem 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.dash-setup-steps li {
  counter-increment: step;
  position: relative;
  padding: 0.5rem 0 0.5rem 2.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary, #8b95a5);
}

.dash-setup-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.15);
  color: var(--color-success);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Buttons ─── */
.dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  width: 100%;
}

.dash-btn-primary {
  background: var(--gradient-primary);
  color: #000;
}

.dash-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.dash-open-app-btn {
  width: 100%;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  gap: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dash-btn-ghost {
  background: transparent;
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  color: var(--text-primary, #e8ecf1);
}

.dash-btn-ghost:hover:not(:disabled) {
  border-color: var(--glass-border-hover, rgba(255,255,255,0.14));
  background: rgba(255,255,255,0.03);
}

.dash-btn-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--color-error);
}

.dash-btn-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.2);
}

.dash-btn-link {
  background: none;
  border: none;
  color: var(--text-secondary, #8b95a5);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s;
}

.dash-btn-link:hover:not(:disabled) { color: var(--color-success); }
.dash-btn-link:disabled { opacity: 0.5; cursor: default; }

.dash-btn:disabled { opacity: 0.6; cursor: default; }
.dash-btn-loading { opacity: 0.7; pointer-events: none; }

/* ─── Input ─── */
.dash-input {
  width: 100%;
  background: var(--bg-surface, #141720);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 10px;
  color: var(--text-primary, #e8ecf1);
  font-size: 0.92rem;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 0.75rem;
}

.dash-input:focus { border-color: var(--color-success); }
.dash-textarea { resize: vertical; min-height: 70px; font-family: inherit; }

select.dash-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b95a5' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.5rem;
}

/* Settings-tab CSS moved to css/dashboard/tabs/settings.css (Phase 2,
 * 2026-05-30). See docs/architecture/dashboard-refactor.md. */

/* ─── Error ─── */
.dash-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--color-error);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  margin-top: 1rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD LAYOUT
   ═══════════════════════════════════════════════════════════════ */

#dashboard-app {
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ─── Sidebar (desktop) ─── */
.dash-sidebar {
  width: 240px;
  min-width: 240px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--bg-surface, #141720);
  border-right: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow-y: auto;
}

.dash-sidebar-header {
  padding: 1.25rem 1.25rem 0.75rem;
}

.dash-sidebar-logo {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  background: var(--gradient-wa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}
.dash-sidebar-logo img,
.dash-login-brand img {
  flex-shrink: 0;
  -webkit-text-fill-color: initial;
}

.dash-sidebar-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  margin-bottom: 0.5rem;
}

.dash-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient-primary);
  color: #000;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-profile-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dash-profile-name {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-profile-plan {
  font-size: 0.75rem;
  color: var(--text-muted, #5c6577);
}

.dash-badge-trial { color: var(--color-warning); }
.dash-badge-active { color: var(--color-success); }

/* ─── Nav Items ─── */
.dash-sidebar-nav {
  flex: 1;
  padding: 0.25rem 0.75rem;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-secondary, #8b95a5);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  margin-bottom: 2px;
}

.dash-nav-item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary, #e8ecf1);
}

.dash-nav-item.active {
  background: rgba(37, 211, 102, 0.1);
  color: var(--color-success);
}

.dash-sidebar-footer {
  padding: 0.5rem 0.75rem 1rem;
  border-top: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  margin-top: auto;
}

.dash-sidebar-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted, #5c6577);
}

.dash-profile-email {
  font-size: 0.72rem;
  color: var(--text-muted, #5c6577);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
  display: block;
}

.dash-nav-external { color: var(--text-muted, #5c6577); }
.dash-nav-logout { color: var(--text-muted, #5c6577); }
.dash-nav-logout:hover { color: var(--color-error); background: rgba(239, 68, 68, 0.08); }

/* ─── Main Content ─── */
.dash-main {
  flex: 1;
  margin-left: 240px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  min-width: 0;
}

.dash-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  background: var(--bg-dark, #0f1117);
  position: sticky;
  top: 0;
  z-index: 50;
}

.dash-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary, #e8ecf1);
  cursor: pointer;
  padding: 0.25rem;
}

.dash-page-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.2rem;
  font-weight: 700;
  flex: 1;
}

.dash-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.dash-spin { animation: spin 1s linear; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.dash-content {
  flex: 1;
  padding: 1.5rem;
  min-width: 0;
}

/* ─── Mobile Bottom Nav ─── */
.dash-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-surface, #141720);
  border-top: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  z-index: 200;
  padding: 0 0.25rem;
  align-items: center;
  justify-content: space-around;
}

/* ─── Mobile top bar (audit 2026-05-09 mobile rebuild) ───────────────
   Visible only on max-width: 768px. Holds hamburger + brand + Open
   Inbox pill. Hidden on desktop. .dash-main gets matching padding-top
   in the same media query. */
.dash-mobile-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 140;
  background: var(--bg-surface, #141720);
  border-bottom: 1px solid var(--glass-border, rgba(255,255,255,0.06));
  padding: 0 0.5rem;
  align-items: center;
  gap: 0.5rem;
  padding-top: env(safe-area-inset-top, 0);
}
.dash-mobile-topbar .dash-mtb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary, #c5cad6);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}
.dash-mobile-topbar .dash-mtb-btn:hover,
.dash-mobile-topbar .dash-mtb-btn:active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary, #e8ecf1);
}
.dash-mobile-topbar .dash-mtb-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--text-primary, #e8ecf1);
  font-weight: 600;
  font-size: 0.95rem;
  flex: 1;
  min-width: 0;
  letter-spacing: -0.01em;
}
.dash-mobile-topbar .dash-mtb-brand img {
  flex-shrink: 0;
}
.dash-mobile-topbar .dash-mtb-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}
/* Open Inbox pill — primary green CTA in the top bar.
   Mirrors the .dash-btn-primary look but compact (pill-shaped). */
.dash-mtb-inbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent-green, var(--accent-green));
  color: #000;
  font-weight: 600;
  font-size: 0.78rem;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
  font-family: inherit;
  white-space: nowrap;
}
.dash-mtb-inbox-pill:hover:not(:disabled) {
  filter: brightness(1.1);
}
.dash-mtb-inbox-pill:active:not(:disabled) {
  transform: scale(0.97);
}
.dash-mtb-inbox-pill:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted, #8b95a5);
  cursor: not-allowed;
}

/* Mobile sidebar drawer backdrop — appears when hamburger opens
   the sidebar. Click anywhere on backdrop to dismiss. */
.dash-mobile-sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 199;
  animation: dashMobBackdropIn 0.18s ease-out;
}
@keyframes dashMobBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.dash-mob-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--text-muted, #5c6577);
  font-size: 0.68rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  transition: color 0.15s;
  min-width: 0;
}

.dash-mob-tab.active { color: var(--color-success); }
.dash-mob-tab:hover { color: var(--text-primary, #e8ecf1); }

/* ═══════════════════════════════════════════════════════════════
   CARDS & COMPONENTS
   ═══════════════════════════════════════════════════════════════ */

.dash-card {
  background: var(--bg-card, #181b23);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.dash-card-lg { padding: 1.15rem; }

.dash-card-danger {
  border-color: rgba(239, 68, 68, 0.1);
  background: rgba(239, 68, 68, 0.02);
}

.dash-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary, #8b95a5);
}

/* ─── Overview Grid ─── */
.dash-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Phase 4.6 — .dash-tag-* retired in favour of .dash-ch2-pill
   (the base .dash-tag chip + 5 status variants previously lived here;
   callers now emit .dash-ch2-pill + .dash-ch2-pill--{success|warning|error|neutral}).
   See getSubStatus()/getPlanStatus() in js/dashboard.js for the mapping. */

/* ─── Progress Bar ─── */
.dash-progress-wrap { margin-top: 0.5rem; }

.dash-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-surface, #141720);
  border-radius: 4px;
  overflow: hidden;
}

.dash-progress-fill {
  height: 100%;
  background: var(--gradient-neon);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.dash-progress-label {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--text-secondary, #8b95a5);
}

/* ─── Stats ─── */
.dash-stat-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.dash-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dash-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-display, 'Outfit', sans-serif);
}

.dash-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted, #5c6577);
}

/* ─── Wallet ─── */
.dash-wallet-amount {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-display, 'Outfit', sans-serif);
}

.dash-wallet-amount-lg {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-display, 'Outfit', sans-serif);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dash-wallet-display { text-align: center; padding: 1rem 0; }

/* ─── Alerts ─── */
.dash-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-top: 0.75rem;
}

.dash-alert-warn {
  background: rgba(245, 158, 11, 0.08);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.dash-alert-error {
  background: rgba(239, 68, 68, 0.08);
  color: var(--color-error);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

/* ─── Addons ─── */
/* Phase 5f: .dash-addon-list + .dash-addon-tag deleted. Last consumer
   (team.js) migrated to the unified .dash-ch2-pill system. account.js
   keeps the .dash-addon-list class as a vestigial hook but supplies its
   own inline flex layout. */
.dash-addon-pending {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted, #6b7280);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  opacity: 0.7;
}
.dash-skip-trial-btn {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

/* ── Skip Trial confirmation modal ─────────────────────────────────────── */
.dash-skip-modal {
  max-width: 480px;
  width: 100%;
}
.dash-skip-intro {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary, #8b95a5);
  margin: 0 0 1.1rem;
}
.dash-skip-summary {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}
.dash-skip-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  font-size: 0.85rem;
  color: var(--text-primary, #e4e7ec);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}
.dash-skip-row:last-child {
  border-bottom: none;
}
.dash-skip-row-strong {
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(37, 211, 102, 0.2);
  margin-bottom: 0.2rem;
}
.dash-skip-row-strong .dash-skip-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary, #e4e7ec);
}
.dash-skip-row-strong .dash-skip-value {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent-green);
}
.dash-skip-row-strong .dash-skip-value small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary, #8b95a5);
  margin-left: 0.2rem;
}
.dash-skip-label {
  color: var(--text-secondary, #a0a8b5);
  flex: 1;
}
.dash-skip-value {
  font-weight: 500;
  white-space: nowrap;
  text-align: right;
}
.dash-skip-muted {
  color: var(--text-muted, #8b95a5);
  font-weight: 400;
  font-size: 0.82rem;
}
.dash-skip-section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #8b95a5);
  margin: 0.7rem 0 0.1rem;
  font-weight: 600;
}
.dash-skip-renewal-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  background: rgba(37, 211, 102, 0.06);
  border: 1px solid rgba(37, 211, 102, 0.18);
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-secondary, #a0a8b5);
  margin-bottom: 1.1rem;
}
.dash-skip-renewal-note strong {
  color: var(--text-primary, #e4e7ec);
}
.dash-skip-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}
.dash-skip-actions .dash-btn {
  min-width: 120px;
}
@media (max-width: 560px) {
  .dash-skip-modal { max-width: calc(100vw - 2rem); }
  .dash-skip-actions { flex-direction: column-reverse; }
  .dash-skip-actions .dash-btn { width: 100%; }
}

/* ─── Quick Actions ─── */
.dash-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dash-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  background: var(--bg-surface, #141720);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 8px;
  color: var(--text-secondary, #8b95a5);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.dash-action-btn:hover {
  border-color: var(--color-success);
  color: var(--color-success);
}

/* ═══════════════════════════════════════════════════════════════
   CHANNELS
   ═══════════════════════════════════════════════════════════════ */

.dash-channel-group { margin-bottom: 1.5rem; }

.dash-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.dash-count {
  background: var(--bg-surface, #141720);
  color: var(--text-muted, #5c6577);
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
}

.dash-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash-status-active { background: var(--color-success); box-shadow: 0 0 6px rgba(37, 211, 102, 0.4); }
.dash-status-inactive { background: var(--color-error); }

.dash-detail {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.dash-detail-label {
  color: var(--text-muted, #5c6577);
}

.dash-detail-value {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}

.dash-detail-copy .dash-detail-value {
  font-family: 'Inter', monospace;
  font-size: 0.8rem;
}

.dash-ch-id {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.dash-ch-id-label {
  font-size: 0.68rem;
  color: var(--text-muted, #5c6577);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-ch-id-value {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'Inter', monospace;
  font-size: 0.78rem;
  color: var(--text-primary, #e2e4e9);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Copy button ── */
.dash-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-muted, #5c6577);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  padding: 0;
}

.dash-copy-btn:hover {
  color: var(--color-success);
  background: rgba(37, 211, 102, 0.08);
}

.dash-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Settings-tab CSS moved to css/dashboard/tabs/settings.css (Phase 2). */

/* ─── Table ─── */
.dash-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.dash-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  color: var(--text-muted, #5c6577);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  white-space: nowrap;
}

.dash-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  white-space: nowrap;
}

/* ─── Transaction Table ─── */
.dash-txn-table { table-layout: auto; }
.dash-txn-date { white-space: nowrap; }
.dash-txn-time { color: var(--text-muted, #5c6577); font-size: 0.78rem; }
.dash-txn-status-col { text-align: center; width: 32px; padding-left: 0.25rem; padding-right: 0.25rem; }

/* Business Profile in channel detail panel */
.dash-biz-profile {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.dash-biz-avatar { flex-shrink: 0; }

.dash-biz-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.08);
}

.dash-biz-details { flex: 1; min-width: 0; }

.dash-biz-about {
  font-size: 0.85rem;
  color: var(--text-muted, #5c6577);
  margin-bottom: 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.dash-biz-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dash-biz-field {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.5;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.dash-biz-field:last-child { border-bottom: none; padding-bottom: 0; }

.dash-biz-label {
  color: var(--text-muted, #5c6577);
  min-width: 80px;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.dash-biz-value {
  color: var(--text-secondary, #d0d5dd);
  word-break: break-word;
  white-space: pre-wrap;
}

/* ─── Empty State ─── */
.dash-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  min-height: 300px;
}

.dash-empty h3 {
  margin: 1rem 0 0.5rem;
  font-family: var(--font-display, 'Outfit', sans-serif);
}

.dash-empty p {
  color: var(--text-secondary, #8b95a5);
  font-size: 0.9rem;
  max-width: 400px;
  margin-bottom: 1rem;
}

.dash-empty-inline {
  text-align: center;
  padding: 1.5rem 0;
  color: var(--text-secondary, #8b95a5);
}

/* ─── Loading ─── */
.dash-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 1rem;
  color: var(--text-secondary, #8b95a5);
  font-size: 0.9rem;
}

.dash-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--glass-border, rgba(255,255,255,0.08));
  border-top-color: var(--color-success);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Small inline spinner for in-button loading state */
.dash-spinner-sm {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════════
   CANCEL MODAL
   ═══════════════════════════════════════════════════════════════ */

.dash-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.dash-modal {
  background: var(--bg-card, #181b23);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
}

.dash-cancel-step { padding: 1.75rem; }

.dash-modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dash-modal-header h3 {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
}

.dash-modal-body {
  margin-bottom: 1.25rem;
}

.dash-modal-body p {
  color: var(--text-secondary, #8b95a5);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.dash-cancel-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}

.dash-cancel-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary, #8b95a5);
}

.dash-cancel-list li::before {
  content: '\2715';
  position: absolute;
  left: 0;
  color: var(--color-error);
  font-size: 0.85rem;
}

.dash-cancel-note {
  font-size: 0.82rem;
  color: var(--text-muted, #5c6577);
  font-style: italic;
}

.dash-modal-actions {
  display: flex;
  gap: 0.75rem;
}

.dash-modal-actions .dash-btn { width: auto; flex: 1; }

/* ═══════════════════════════════════════════════════════════════
   WARNING BANNERS
   ═══════════════════════════════════════════════════════════════ */

.dash-warning-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.dash-warning-banner span { flex: 1; }

.dash-warning-action {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}

.dash-warning-expired {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--color-error);
}

.dash-warning-expiring {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--color-warning);
}

.dash-warning-wallet {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--color-warning);
}

/* ═══════════════════════════════════════════════════════════════
   STATUS PILLS
   ═══════════════════════════════════════════════════════════════ */

.dash-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dash-pill-green { background: rgba(37, 211, 102, 0.12); color: var(--color-success); }
.dash-pill-red { background: rgba(239, 68, 68, 0.1); color: var(--color-error); }
.dash-pill-blue { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }

/* ═══════════════════════════════════════════════════════════════
   BALANCE COLOR CODING
   ═══════════════════════════════════════════════════════════════ */

.dash-bal-good { color: var(--color-success); }
.dash-bal-ok { color: var(--color-warning); }
.dash-bal-low { color: var(--color-error); }

/* ═══════════════════════════════════════════════════════════════
   DONUT CHART & RATE RINGS
   ═══════════════════════════════════════════════════════════════ */

.dash-donut {
  width: 72px;
  height: 72px;
}

.dash-donut-text {
  fill: var(--text-primary, #e8ecf1);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-display, 'Outfit', sans-serif);
}

.dash-rate-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.dash-rate-ring {
  width: 48px;
  height: 48px;
}

.dash-rate-label {
  font-size: 0.7rem;
  color: var(--text-muted, #5c6577);
}

.dash-btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  width: auto;
}

/* ═══════════════════════════════════════════════════════════════
   DATA RETENTION POLICY CARD
   ═══════════════════════════════════════════════════════════════ */

.dash-retention-card {
  background: var(--bg-surface, #141720);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.06));
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.dash-retention-card h4 {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary, #8b95a5);
  margin-bottom: 0.75rem;
}

.dash-retention-card p {
  font-size: 0.82rem;
  color: var(--text-muted, #5c6577);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.dash-retention-card p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════════
   WALLET FLOW INDICATORS
   ═══════════════════════════════════════════════════════════════ */

.dash-wallet-flow {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   INFO CARD (inline banner)
   ═══════════════════════════════════════════════════════════════ */

.dash-card-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary, #8b95a5);
  margin-bottom: 1rem;
}

.dash-card-inline {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: rgba(37, 211, 102, 0.05);
  border: 1px solid rgba(37, 211, 102, 0.12);
  border-radius: 10px;
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════════
   V3: STATUS RIBBON (topbar)
   ═══════════════════════════════════════════════════════════════ */

.dash-status-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dash-ribbon-active {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.2);
  color: var(--color-success);
}

.dash-ribbon-inactive {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--color-error);
}

/* ═══════════════════════════════════════════════════════════════
   V3.1: USER ID PILL (topbar)
   ═══════════════════════════════════════════════════════════════ */

.dash-userid {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem 0.2rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  background: rgba(255,255,255,0.03);
  font-size: 0.7rem;
  max-width: 220px;
  overflow: hidden;
}

.dash-userid-label {
  font-weight: 700;
  color: var(--text-muted, #5c6577);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.dash-userid-value {
  color: var(--text-secondary, #8b95a5);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.65rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.dash-userid-copy {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-muted, #5c6577);
  cursor: pointer;
  padding: 0.15rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}
.dash-userid-copy:hover { color: var(--color-success, var(--accent-green)); }

/* ═══════════════════════════════════════════════════════════════
   V3.1: SYNC GROUP (topbar)
   ═══════════════════════════════════════════════════════════════ */

.dash-sync-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dash-sync-time {
  font-size: 0.72rem;
  color: var(--text-muted, #5c6577);
  white-space: nowrap;
}

.dash-sync-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(37, 211, 102, 0.15);
  background: rgba(37, 211, 102, 0.05);
  color: var(--text-secondary, #8b95a5);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--font-body, 'Inter', sans-serif);
  white-space: nowrap;
}

.dash-sync-btn:hover {
  border-color: var(--color-success);
  color: var(--color-success);
  background: rgba(37, 211, 102, 0.1);
}

.dash-sync-label {
  color: inherit;
}

/* ═══════════════════════════════════════════════════════════════
   V3.1: SECTION DIVIDER & MINI HEADER (inside grouped cards)
   ═══════════════════════════════════════════════════════════════ */

.dash-section-divider {
  border-top: 1px solid var(--glass-border, rgba(255,255,255,0.06));
  margin: 0.65rem 0;
}

.dash-mini-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary, #8b95a5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.dash-txn-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary, #8b95a5);
  cursor: pointer;
  border-top: 1px solid var(--glass-border, rgba(255,255,255,0.04));
  transition: color 0.2s;
  user-select: none;
}

.dash-txn-toggle:hover {
  color: var(--color-success);
}

.dash-txn-toggle i {
  transition: transform 0.2s;
}

/* ═══════════════════════════════════════════════════════════════
   SUBSCRIPTION TAB — Phase 5b (2026-05-30)
   Snapshot hero · Status sentence · 3-card wallet row
   ═══════════════════════════════════════════════════════════════ */

/* ── (1) Billing snapshot hero strip ─────────────────────────────── */
.dash-snapshot-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.08), rgba(16, 185, 129, 0.03));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
}

.dash-snapshot-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.dash-snapshot-kpi-label {
  font-size: 0.7rem;
  color: var(--text-muted, #5c6577);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.dash-snapshot-kpi-value {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary, #e8ecf1);
  line-height: 1.25;
  overflow-wrap: break-word;
}

.dash-snapshot-kpi--hero .dash-snapshot-kpi-value {
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.dash-snapshot-kpi-sub {
  font-size: 0.78rem;
  color: var(--text-secondary, #8b95a5);
  font-weight: 500;
}

.dash-snapshot-kpi-plan {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Phase 5d — Account hero runway sub-label. Slightly tighter weight so
   the "≈ N days at current pace" approximation reads as supporting
   context, not as a primary metric. */
.dash-snapshot-kpi-runway {
  color: var(--text-muted, #5c6577);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.dash-snapshot-tier-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary, #8b95a5);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dash-addon-monthly {
  color: var(--text-secondary, #8b95a5);
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: auto;
  white-space: nowrap;
}

.dash-wallet-amount {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.dash-wallet-card-list {
  margin-top: 0.3rem;
}

/* Mobile: stack the 3 wallets vertically and let the channel-list card
   take its full natural height. */
@media (max-width: 860px) {
  .dash-snapshot-hero {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1rem;
  }
  .dash-snapshot-kpi--hero .dash-snapshot-kpi-value { font-size: 1.4rem; }
  .dash-wallet-row { grid-template-columns: 1fr; }
  .dash-addons-strip .dash-addon-card { flex-basis: 100%; }
}

/* Cards inside col: gap handles spacing, remove bottom margin */
.dash-account-col .dash-card,
.dash-account-col .dash-card-lg { margin-bottom: 0; }

@media (max-width: 900px) {
  .dash-account-grid { grid-template-columns: 1fr; }
}

/* ── Account tab — mobile responsive fixes (Phase 5d.1, 2026-05-30) ──
   The Account page renders three structurally-tricky bits inside its
   1-column stack at ≤860px: the snapshot hero (long email + long plan
   tier + wallet runway), the Plan card (plan name + meta pills +
   skip-trial CTA), and the Channels mini-list (long channel names +
   balance + category pill). Each needs explicit overflow/wrap
   discipline so a 320–414px viewport doesn't get a horizontal
   scrollbar or a clipped email. */
@media (max-width: 860px) {
  /* Snapshot hero — let long emails wrap instead of overflow. The
     kpi already has min-width:0; the sub line was the missing piece. */
  .dash-snapshot-kpi-sub {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  /* Hero plan tier value: allow wrap on mobile (the desktop ellipsis
     is what we want at full width; on a single-column hero we'd
     rather show the full tier name on two lines than cut it off). */
  .dash-snapshot-kpi-plan {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  /* Hero wallet value: very long currency-formatted numbers (e.g.
     "₹1,23,45,678") plus the inline currency code can overflow. */
  .dash-snapshot-kpi-value {
    overflow-wrap: anywhere;
  }

  /* Plan meta row: pills + validity line on mobile must wrap, not
     stay nowrap and push the card width out. */
  .dash-plan-meta { flex-wrap: wrap; gap: 0.5rem; }

  /* Skip-trial card: stack vertically on phone so the CTA gets full
     width rather than getting crushed against a fixed-row layout. */
  .dash-skip-trial-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .dash-skip-trial-btn { width: 100%; }

  /* Wallet inline amount: allow wrapping if the formatted value +
     currency code overflow on a narrow card. */
  .dash-wallet-inline { flex-wrap: wrap; }

  /* Channel mini-list rows: ensure min-width:0 on the row so the
     flex children (name → bal) shrink and ellipsis works. The cat
     pill is small enough to keep inline; only the name needs to give. */
  .dash-ch-row { min-width: 0; }
}

@media (max-width: 480px) {
  /* On true phone widths, push the hero value sizes down a touch
     so a long "Sambit Swarup" / "Growth Annual" doesn't push the
     hero card to two-and-a-half lines per KPI. */
  .dash-snapshot-kpi--hero .dash-snapshot-kpi-value { font-size: 1.25rem; }
  .dash-snapshot-kpi-value { font-size: 1.05rem; }
  .dash-snapshot-hero { padding: 0.85rem; gap: 0.7rem; }

  /* Channel mini-list: on tiny screens the category pill steals
     room from the name. Hide it — the same info is conveyed by the
     name itself in the wider channels tab. */
  .dash-ch-row { font-size: 0.8rem; }
  .dash-ch-cat { display: none; }

  /* Wallet log toggle: a long "Subscription Log (123)" + chevron
     should never wrap onto two lines awkwardly. */
  .dash-txn-toggle { font-size: 0.8rem; }
}

.dash-stats-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  background: transparent;
  color: var(--text-muted, #5c6577);
  cursor: pointer;
  transition: all 0.2s;
}

.dash-stats-btn:hover {
  border-color: var(--color-success);
  color: var(--color-success);
  background: rgba(37, 211, 102, 0.05);
}

/* ═══════════════════════════════════════════════════════════════
   V3: MORE MENU (mobile slide-up sheet)
   ═══════════════════════════════════════════════════════════════ */

.dash-more-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dash-more-sheet {
  background: var(--bg-card, #181b23);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 480px;
  padding: 0.75rem 0 1rem;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.dash-more-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.25rem 0.75rem;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--glass-border, rgba(255,255,255,0.06));
  margin-bottom: 0.25rem;
}

.dash-more-close {
  background: none;
  border: none;
  color: var(--text-muted, #5c6577);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  transition: color 0.15s;
}

.dash-more-close:hover { color: var(--text-primary, #e8ecf1); }

.dash-more-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-secondary, #8b95a5);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.dash-more-item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary, #e8ecf1);
}

.dash-more-logout:hover {
  color: var(--color-error);
  background: rgba(239, 68, 68, 0.06);
}

/* Phone display in the More sheet — mirrors the sidebar-footer phone row.
   Subdued, non-interactive. Hidden when empty so we don't paint an icon
   alone before data hydrates. */
.dash-more-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 0.25rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--glass-border, rgba(255,255,255,0.06));
  font-size: 0.78rem;
  color: var(--text-muted, #5c6577);
}
.dash-more-phone:has(#more-phone-text:empty) {
  display: none;
}

/* Accessibility — keyboard focus rings on mobile primary nav.
   Default browser focus-ring on a borderless button is invisible against the
   dark surface, so make :focus-visible explicit. Doesn't affect touch users
   (focus-visible suppresses on pointer/touch). */
.dash-mob-tab:focus-visible,
.dash-more-item:focus-visible,
.dash-more-close:focus-visible,
.dash-mtb-inbox-pill:focus-visible {
  outline: 2px solid var(--color-success);
  outline-offset: 2px;
  border-radius: 8px;
}
.dash-mob-tab:active {
  /* Tiny tap feedback — premium feel without a full ripple lib */
  transform: scale(0.96);
}
.dash-mob-tab { transition: color 0.15s, transform 0.08s; }

/* ═══════════════════════════════════════════════════════════════
   V3: CAMPAIGN CLICKABLE ROWS
   ═══════════════════════════════════════════════════════════════ */

.dash-campaign-clickable {
  transition: border-color 0.2s, background 0.2s;
  border: 1px solid transparent;
}

/* ═══════════════════════════════════════════════════════════════
   V3: RETENTION POLICY IN MODAL
   ═══════════════════════════════════════════════════════════════ */

.dash-retention-policy {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-surface, #141720);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-muted, #5c6577);
}

.dash-retention-policy strong {
  color: var(--text-secondary, #8b95a5);
  display: block;
  margin-bottom: 0.35rem;
}

.dash-retention-policy p {
  margin: 0;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════ */

.dash-toast-container {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
  pointer-events: none;
  max-width: 90vw;
}

.dash-toast {
  background: var(--bg-card, #181b23);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.1));
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  color: var(--text-primary, #e8ecf1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: toastIn 0.3s ease forwards;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dash-toast-success { border-left: 3px solid var(--color-success); }
.dash-toast-info { border-left: 3px solid #3b82f6; }
.dash-toast-error { border-left: 3px solid var(--color-error); }
.dash-toast-warning { border-left: 3px solid var(--color-warning, #f59e0b); }

.dash-toast-exit { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(20px); }
}

/* Desktop: toast at top-right */
@media (min-width: 769px) {
  .dash-toast-container {
    bottom: auto;
    top: 80px;
    left: auto;
    right: 1.5rem;
    transform: none;
    flex-direction: column;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PULL-TO-REFRESH INDICATOR
   ═══════════════════════════════════════════════════════════════ */

.dash-pull-indicator {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  z-index: 9999;
  background: var(--bg-card, #181b23);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.1));
  border-radius: 0 0 12px 12px;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  color: var(--text-muted, #5c6577);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.2s ease;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dash-pull-indicator.visible {
  transform: translateX(-50%) translateY(0);
}

.dash-pull-indicator.refreshing {
  transform: translateX(-50%) translateY(0);
  color: var(--color-success);
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL TOUCH & MOBILE OPTIMIZATIONS
   ═══════════════════════════════════════════════════════════════ */

/* Prevent iOS zoom on input focus (requires 16px minimum) */
.dash-input, .dash-otp-box, .dash-phone-input input, select.dash-input, .dash-textarea {
  font-size: max(0.92rem, 16px);
}

/* Smooth scrolling for overflowed containers */
.dash-table-wrap, .dash-content {
  -webkit-overflow-scrolling: touch;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — 768px (Tablet)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Audit 2026-05-30 nav consolidation: the slide-in sidebar drawer is
     retired on mobile. Bottom nav + More sheet is now the single secondary
     navigation surface. The sidebar element stays in the DOM (desktop reuses
     the same markup) but is fully hidden + unreachable on mobile. Even if
     legacy code toggles .open, it stays hidden. Belt-and-suspenders: the
     backdrop element is also force-hidden so a stale display:block inline
     style can never paint. */
  .dash-sidebar,
  .dash-sidebar.open {
    display: none !important;
  }
  .dash-mobile-sidebar-backdrop {
    display: none !important;
  }
  .dash-hamburger { display: none !important; }

  /* Show the new mobile top bar */
  .dash-mobile-topbar {
    display: flex;
    /* No hamburger anymore — give the brand a touch of left padding so it
       doesn't kiss the edge. The Inbox pill on the right keeps its 0.5rem
       gutter from the parent padding. */
    padding-left: 0.85rem;
  }

  .dash-mobile-nav {
    display: flex;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .dash-main {
    margin-left: 0;
    /* Top bar (56px) + safe-area; bottom nav (60px) + safe-area */
    padding-top: calc(56px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }

  .dash-content { padding: 1rem; }

  /* Grids → responsive */
  .dash-overview-grid { grid-template-columns: 1fr; }
  .dash-biz-profile { flex-direction: column; align-items: center; text-align: center; }
  .dash-biz-img { width: 48px; height: 48px; }
  .dash-biz-field { flex-direction: column; gap: 0.2rem; }
  .dash-biz-label { min-width: unset; }
  .dash-ch-toggle-bar { flex-wrap: wrap; }
  .dash-ch-toggle-btn { flex: 1; justify-content: center; }
  .dash-sub-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }

  .dash-stat-row { gap: 1rem; flex-wrap: wrap; }

  .dash-plan-name { font-size: 1.2rem; }

  /* Auth card */
  .dash-auth-card { padding: 1.5rem; }
  .dash-otp-box { width: 46px; height: 52px; font-size: 1.2rem; }

  /* Modal */
  .dash-modal { margin: 0.5rem; max-width: 100%; }
  .dash-cancel-step { padding: 1.25rem; }
  .dash-modal-actions { flex-direction: column; }

  /* Settings mobile overrides moved to css/dashboard/tabs/settings.css (Phase 2). */
  .dash-sub-layout { max-width: 100%; }

  /* Wallet */
  .dash-wallet-amount-lg { font-size: 1.8rem; }

  /* Credits grid stays 2-col on tablet */
  .dash-credit-grid { grid-template-columns: repeat(2, 1fr); }

  /* Campaign */
  .dash-campaign-summary { flex-direction: column; align-items: center; }
  .dash-campaign-rates { flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
  .dash-campaign-header { flex-wrap: wrap; gap: 0.5rem; }
  .dash-campaign-right { flex-wrap: wrap; }

  /* Channel cards: compact on mobile */
  .dash-channel-card { padding: 0.85rem; }
  .dash-ch-ids { grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-bottom: 0.45rem; padding-bottom: 0.45rem; }
  .dash-ch-stats { gap: 0.35rem 0.8rem; }
  .dash-ch-stat-label { font-size: 0.62rem; }
  .dash-ch-stat-value { font-size: 0.8rem; }

  /* Health indicators */
  .dash-wa-indicators { gap: 0.25rem 0.5rem; }

  /* Warning banners */
  .dash-warning-banner { font-size: 0.8rem; flex-wrap: wrap; }

  /* Topbar */
  .dash-topbar { padding: 0.75rem 1rem; }
  .dash-page-title { font-size: 1.05rem; }
  .dash-topbar-actions { gap: 0.35rem; }
  .dash-userid-value { max-width: 100px; }
  .dash-sync-time { display: none; }
  .dash-sync-btn { min-height: 38px; padding: 0.3rem 0.65rem; }

  /* More menu touch targets */
  .dash-more-item { min-height: 48px; }

  /* Tables: ensure horizontal scroll + allow text wrapping */
  .dash-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dash-table td { white-space: normal; word-break: break-word; }
  .dash-table th { white-space: normal; }

  /* Funnel label */
  .dash-funnel-label { width: 55px; font-size: 0.68rem; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — 480px (Phone)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
  .dash-content { padding: 0.75rem; }

  /* Cards compact */
  .dash-card { padding: 1rem; border-radius: 12px; }
  .dash-card-lg { padding: 1.15rem; }

  /* OTP boxes smaller */
  .dash-otp-box { width: 42px; height: 48px; font-size: 1.1rem; border-radius: 8px; }
  .dash-otp-inputs { gap: 0.4rem; }

  /* Auth card tighter */
  .dash-auth-card { padding: 1.25rem; max-width: 100%; }
  .dash-auth-card h2 { font-size: 1.15rem; }
  .dash-auth-card p { font-size: 0.85rem; margin-bottom: 1rem; }

  /* Token setup steps smaller */
  .dash-setup-steps li { font-size: 0.82rem; padding: 0.4rem 0 0.4rem 2rem; }
  .dash-setup-steps li::before { width: 20px; height: 20px; font-size: 0.7rem; }

  /* Topbar truncation */
  .dash-page-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
  }
  .dash-userid-value { max-width: 80px; }

  /* Status ribbon smaller */
  .dash-status-ribbon { font-size: 0.62rem; padding: 0.2rem 0.5rem; }

  /* Sync button: larger touch target, hide label */
  .dash-sync-btn { min-width: 44px; min-height: 44px; padding: 0.35rem; border-radius: 10px; }
  .dash-sync-label { display: none; }

  /* Channel cards: even more compact */
  .dash-channel-card { padding: 0.75rem; border-radius: 10px; }
  .dash-channel-top { margin-bottom: 0.4rem; }
  .dash-channel-name { font-size: 0.88rem; }
  .dash-ch-ids { grid-template-columns: 1fr 1fr; gap: 0.3rem; margin-bottom: 0.35rem; padding-bottom: 0.35rem; }
  .dash-ch-id-label { font-size: 0.58rem; }
  .dash-ch-id-value { font-size: 0.72rem; max-width: 100%; }

  /* Channel stats: inline row, not stacked */
  .dash-ch-stats { flex-direction: row; flex-wrap: wrap; gap: 0.25rem 0.65rem; }
  .dash-ch-stat-label { font-size: 0.58rem; }
  .dash-ch-stat-value { font-size: 0.78rem; }

  /* Campaign rate rings: 2×2 grid */
  .dash-campaign-rates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    overflow: hidden;
  }
  .dash-rate-ring { width: 44px; height: 44px; }
  .dash-rate-label { font-size: 0.65rem; }
  .dash-donut { width: 64px; height: 64px; }

  /* Campaign stats sub-grid: 2-col */
  .dash-sub-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .dash-sub-label { font-size: 0.72rem; }
  .dash-sub-value { font-size: 0.88rem; }

  /* Campaign stats row: wrap */
  .dash-stat-row { flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

  /* Funnel bars compact */
  .dash-funnel-label { width: 42px; font-size: 0.62rem; }
  .dash-funnel-count { width: 32px; font-size: 0.7rem; }

  /* Campaign summary: stack + center */
  .dash-campaign-summary { text-align: center; }
  .dash-campaign-chart { margin: 0 auto 0.5rem; }
  .dash-meta-row { justify-content: center; gap: 0.5rem; }
  .dash-meta-label { font-size: 0.72rem; }
  .dash-meta-value { font-size: 0.82rem; }

  /* Poll bars compact */
  .dash-poll-label { width: 50px; font-size: 0.68rem; }

  /* Quick actions stack */
  .dash-quick-actions { flex-direction: column; }
  .dash-quick-actions .dash-action-btn { width: 100%; justify-content: center; }

  /* Tables compact + mobile friendly */
  .dash-table { font-size: 0.78rem; }
  .dash-table th { padding: 0.4rem 0.4rem; font-size: 0.68rem; }
  .dash-table td { padding: 0.45rem 0.4rem; white-space: normal; word-break: break-word; }

  /* Transaction table: hide time, compact */
  .dash-txn-time { display: none; }
  .dash-txn-table { font-size: 0.75rem; }
  .dash-txn-status-col { width: 24px; padding: 0.3rem 0.2rem; }

  /* Template table: hide language column, compact */
  .dash-tpl-lang-col { display: none; }
  .dash-tpl-table { font-size: 0.75rem; }
  .dash-tpl-name { font-size: 0.72rem; }

  /* Credits grid */
  .dash-credit-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .dash-credit-card { padding: 1rem 0.75rem; }
  .dash-credit-amount { font-size: 1.3rem; }

  /* Modal: near full-screen */
  .dash-modal { margin: 0; max-width: 100%; border-radius: 12px 12px 0 0; }
  .dash-modal-overlay { align-items: flex-end; padding: 0; }

  /* Token-steps mobile overrides moved to css/dashboard/tabs/settings.css (Phase 2). */

  /* Plan name */
  .dash-plan-name { font-size: 1.1rem; }

  /* Wallet */
  .dash-wallet-amount-lg { font-size: 1.5rem; }

  /* Timeline compact */
  .dash-timeline-item { padding-left: 0.5rem; }

  /* Bottom nav compact */
  .dash-mob-tab { font-size: 0.62rem; padding: 0.3rem 0.35rem; }

  /* More sheet full-width */
  .dash-more-sheet { max-width: 100%; }

  /* Warning banner */
  .dash-warning-banner { font-size: 0.78rem; padding: 0.6rem 0.75rem; }

  /* Retention card */
  .dash-retention-card { padding: 1rem; }

  /* Account overview grid spacing */
  .dash-overview-grid { gap: 0.75rem; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — 360px (Small Phones: iPhone SE, Galaxy S series)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 360px) {
  .dash-content { padding: 0.5rem; }

  /* OTP even smaller */
  .dash-otp-box { width: 36px; height: 42px; font-size: 1rem; }
  .dash-otp-inputs { gap: 0.3rem; }

  /* Auth card */
  .dash-auth-card { padding: 1rem; }
  .dash-auth-card h2 { font-size: 1.05rem; }

  /* Rate rings: keep 2-col but smaller */
  .dash-campaign-rates { grid-template-columns: 1fr 1fr; gap: 0.35rem; }
  .dash-rate-ring { width: 38px; height: 38px; }

  /* Sub-grid stays 2-col */
  .dash-sub-grid { grid-template-columns: 1fr 1fr; gap: 0.35rem; }
  .dash-sub-value { font-size: 0.82rem; }

  /* Stats: horizontal scroll */
  .dash-stat-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    padding-bottom: 0.25rem;
  }
  .dash-stat { scroll-snap-align: start; min-width: 60px; flex-shrink: 0; }

  /* Funnel labels abbreviated */
  .dash-funnel-label { width: 40px; font-size: 0.6rem; }
  .dash-funnel-count { width: 30px; font-size: 0.68rem; }

  /* Poll bars: tighter on small phones */
  .dash-poll-label { width: 40px; font-size: 0.62rem; }
  .dash-poll-count { width: 28px; font-size: 0.68rem; }

  /* Tables: even more compact */
  .dash-table { font-size: 0.72rem; }
  .dash-table th { font-size: 0.62rem; padding: 0.35rem 0.3rem; }
  .dash-table td { padding: 0.35rem 0.3rem; }

  /* Transaction table: hide status column on tiny screens */
  .dash-txn-table .dash-txn-status-col { display: none; }
  .dash-txn-table { font-size: 0.7rem; }

  /* Bottom nav icons smaller */
  .dash-mob-tab i { width: 18px; height: 18px; }
  .dash-mob-tab { font-size: 0.58rem; }

  /* Cards tighter */
  .dash-card { padding: 0.85rem; }

  /* Channel IDs: stack to 1-col */
  .dash-ch-ids { grid-template-columns: 1fr; }

  /* Credits: single column */
  .dash-credit-grid { grid-template-columns: 1fr; }

  /* Page title even shorter */
  .dash-page-title { max-width: 100px; font-size: 0.95rem; }
  .dash-userid { display: none !important; }

  /* Wallet */
  .dash-wallet-amount-lg { font-size: 1.3rem; }

  /* Plan name */
  .dash-plan-name { font-size: 1rem; }
}

/* ═══════════════════════════════════════════════════════════════
   CHANNEL DETAIL MODAL (Wallet Log + Conversations)
   Mirrors admin/css/dashboard.css channel-modal design
   ═══════════════════════════════════════════════════════════════ */

/* ── Overlay ── */
.ch-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

/* ── Modal shell ── */
.ch-modal {
  background: var(--bg-card, #181b23);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  width: 100%; max-width: 720px;
  max-height: 85vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

/* ── Header ── */
.ch-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ch-modal-header h3 {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.05rem; font-weight: 700; color: var(--text-primary, #e8ecf1);
  margin: 0;
}
.ch-modal-close {
  background: none; border: none; color: var(--text-muted, #5c6577); cursor: pointer;
  padding: 6px; border-radius: 6px; display: flex;
}
.ch-modal-close:hover { background: rgba(255,255,255,0.06); color: var(--text-primary, #e8ecf1); }

/* ── Tabs ── */
.ch-modal-tabs {
  display: flex; gap: 0; border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 1.25rem;
}
.ch-modal-tab {
  padding: 0.65rem 1rem; background: none; border: none;
  color: var(--text-muted, #5c6577); font-size: 0.82rem; font-weight: 600;
  cursor: pointer; border-bottom: 2px solid transparent;
  transition: all 0.15s; font-family: inherit;
}
.ch-modal-tab:hover { color: var(--text-secondary, #c2c8d4); }
.ch-modal-tab.active { color: var(--color-success); border-bottom-color: var(--color-success); }

/* ── Scrollable body ── */
.ch-modal-body {
  padding: 1rem 1.25rem 1.25rem;
  overflow-y: auto; flex: 1;
}

/* ══════════ Wallet Log Tab ══════════ */
.ch-log-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.75rem;
}
.ch-log-title {
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-secondary, #c2c8d4);
}
.ch-log-refresh {
  background: none; border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted, #5c6577); padding: 5px 8px; border-radius: 6px;
  cursor: pointer; display: flex; align-items: center;
  transition: all 0.15s;
}
.ch-log-refresh:hover {
  color: var(--text-secondary, #c2c8d4);
  border-color: rgba(255,255,255,0.15);
}

/* Transaction cards — matches admin .ch-txn-* */
.ch-txn-list { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 0.5rem; }

.ch-txn-card {
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid transparent;
  padding: 0.75rem 1rem;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.ch-txn-card.credit { border-left-color: var(--color-success); }
.ch-txn-card.debit  { border-left-color: var(--color-warning); }

.ch-txn-top {
  display: flex; justify-content: space-between;
  align-items: center; gap: 0.5rem;
}

.ch-txn-icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ch-txn-icon.credit { background: rgba(37,211,102,0.15); color: var(--color-success); }
.ch-txn-icon.debit  { background: rgba(245,158,11,0.15); color: var(--color-warning); }

.ch-txn-amount {
  font-size: 1.05rem; font-weight: 700;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.ch-txn-amount.credit { color: var(--color-success); }
.ch-txn-amount.debit  { color: var(--color-warning); }

.ch-txn-status {
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.02em; text-transform: capitalize;
}

.ch-txn-desc {
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-primary, #e2e8f0);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.ch-txn-meta {
  font-size: 0.75rem;
  color: var(--text-muted, #5c6577);
}

.ch-txn-footer {
  display: flex; justify-content: space-between;
  align-items: center; margin-top: 0.2rem; gap: 0.5rem;
}

.ch-txn-id {
  font-family: monospace; font-size: 0.7rem;
  color: var(--text-muted, #5c6577);
  max-width: 180px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

.ch-txn-type {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.06em; padding: 0.15rem 0.45rem;
  border-radius: 4px; text-transform: uppercase; flex-shrink: 0;
}
.ch-txn-type.recharge { background: rgba(37,211,102,0.12); color: var(--color-success); }
.ch-txn-type.withdraw { background: rgba(245,158,11,0.12); color: var(--color-warning); }

/* ══════════ Conversations Tab ══════════ */

/* Toolbar: date pickers + load button */
.ch-conv-toolbar {
  display: flex; gap: 0.75rem; align-items: flex-end;
  flex-wrap: wrap; padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.ch-conv-date-group { display: flex; flex-direction: column; gap: 0.2rem; }
.ch-conv-date-group label {
  font-size: 0.65rem; font-weight: 700;
  color: var(--text-muted, #5c6577);
  text-transform: uppercase; letter-spacing: 0.07em;
}

.ch-conv-date-input {
  padding: 0.5rem 0.7rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-primary, #e8ecf1);
  font-family: inherit; font-size: 0.85rem;
  outline: none; color-scheme: dark;
  transition: border-color 0.2s;
  -webkit-appearance: none; appearance: none;
  min-width: 130px;
}
.ch-conv-date-input:focus { border-color: rgba(37,211,102,0.5); }
.ch-conv-date-input::-webkit-calendar-picker-indicator {
  filter: invert(0.55) brightness(1.2);
  cursor: pointer; opacity: 0.7; transition: opacity 0.15s;
}
.ch-conv-date-input::-webkit-calendar-picker-indicator:hover { opacity: 1; }

/* Load button — ghost green, NOT full-width primary */
.ch-conv-load-btn {
  padding: 0.55rem 1.25rem;
  background: rgba(37,211,102,0.08);
  border: 1px solid rgba(37,211,102,0.25);
  border-radius: 8px;
  color: var(--color-success); font-weight: 600; font-size: 0.85rem;
  cursor: pointer; font-family: inherit;
  transition: all 0.2s; white-space: nowrap;
}
.ch-conv-load-btn:hover {
  background: rgba(37,211,102,0.15);
  border-color: rgba(37,211,102,0.4);
}

/* Quick chips — pill-shaped like admin */
.ch-conv-chips {
  display: flex; gap: 0.35rem; flex-wrap: wrap;
  padding-top: 0.5rem; padding-bottom: 0.55rem;
}
.ch-conv-chip {
  font-size: 0.68rem; font-weight: 500; font-family: inherit;
  padding: 0.2rem 0.65rem; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent; color: var(--text-muted, #5c6577);
  cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.ch-conv-chip:hover { border-color: var(--color-success); color: var(--color-success); }
.ch-conv-chip.active { background: rgba(37,211,102,0.12); border-color: var(--color-success); color: var(--color-success); }

/* Insights row: stats + donut side by side */
.ch-conv-insights {
  display: flex; gap: 1.25rem; align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 0.65rem;
}
.ch-conv-stats {
  display: flex; flex-direction: column; gap: 0.2rem;
  flex: 1; min-width: 0;
}
.ch-conv-total-label {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-muted, #5c6577);
}
.ch-conv-total-amount {
  font-size: 1.35rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary, #e8ecf1); line-height: 1.1;
}
.ch-conv-total-sub {
  font-size: 0.72rem; color: var(--text-muted, #5c6577);
  margin-bottom: 0.25rem;
}

/* Legend */
.ch-conv-legend { display: flex; flex-direction: column; gap: 0.28rem; margin-top: 0.2rem; }
.ch-conv-legend-item { display: flex; align-items: center; gap: 0.45rem; font-size: 0.75rem; }
.ch-conv-legend-dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.ch-conv-legend-name { color: var(--text-secondary, #8b95a5); flex: 1; }
.ch-conv-legend-rate { font-variant-numeric: tabular-nums; color: var(--text-muted, #5c6577); font-size: 0.7rem; white-space: nowrap; }
.ch-conv-legend-amt { font-variant-numeric: tabular-nums; color: var(--text-primary, #e8ecf1); font-weight: 600; font-size: 0.73rem; white-space: nowrap; }

/* Donut chart */
.ch-conv-donut { flex-shrink: 0; width: 120px; height: 120px; }

/* Category table */
.ch-conv-table-wrap { overflow-x: auto; }
.ch-conv-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.ch-conv-table thead th {
  font-size: 0.63rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted, #5c6577);
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap; text-align: left;
}
th.ch-amt-cell, td.ch-amt-cell { text-align: right; }
.ch-conv-table tbody td {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle; color: var(--text-secondary, #c2c8d4);
}
.ch-conv-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.ch-conv-table tbody tr:last-child td { border-bottom: none; }

/* Category pills */
.ch-cat-pill {
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.12rem 0.42rem; border-radius: 4px;
  white-space: nowrap; display: inline-block;
}
.ch-cat-pill.authentication     { background: rgba(37,211,102,0.12); color: var(--color-success); }
.ch-cat-pill.marketing          { background: rgba(167,139,250,0.12); color: var(--color-purple); }
.ch-cat-pill.marketing_lite     { background: rgba(192,132,252,0.12); color: #c084fc; }
.ch-cat-pill.utility            { background: rgba(245,158,11,0.12); color: var(--color-warning); }
.ch-cat-pill.service            { background: rgba(251,146,60,0.12); color: #fb923c; }
.ch-cat-pill.business_initiated { background: rgba(96,165,250,0.12); color: var(--color-info); }
.ch-cat-pill.user_initiated     { background: rgba(244,114,182,0.12); color: #f472b6; }

.dash-btn-recharge-sm {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.7rem; font-weight: 600;
  padding: 0.3rem 0.6rem; border-radius: 5px; text-decoration: none;
  background: rgba(37,211,102,0.1); color: var(--accent-green); border: 1px solid rgba(37,211,102,0.2);
  cursor: pointer; transition: all 0.12s; white-space: nowrap;
}
.dash-btn-recharge-sm:hover {
  background: #1da650; color: #fff; border-color: #1da650;
}

/* ── Recharge Panel (expandable) ── */
.dash-recharge-panel {
  padding: 0.75rem 0 0.5rem 1.3rem;
  animation: dashSlideDown 0.15s ease-out;
}
@keyframes dashSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.dash-pill-amt {
  padding: 0.3rem 0.7rem; border-radius: 20px;
  font-size: 0.72rem; font-weight: 600; cursor: pointer;
  background: var(--bg-secondary); color: var(--text-secondary);
  border: 1px solid var(--border); transition: all 0.1s;
}
.dash-pill-amt:hover { border-color: var(--accent-green); color: var(--accent-green); }
.dash-pill-amt.active {
  background: rgba(37,211,102,0.12); color: var(--accent-green);
  border-color: var(--accent-green);
}
.dash-recharge-input {
  border: none; background: transparent; color: var(--text-primary);
  padding: 0.45rem 0.5rem; font-size: 0.82rem; font-weight: 600;
  width: 100%; outline: none;
  -webkit-appearance: none; -moz-appearance: textfield;
}
.dash-recharge-input::-webkit-outer-spin-button,
.dash-recharge-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.dash-btn-recharge-go {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.3rem; font-size: 0.78rem; font-weight: 600;
  padding: 0.45rem 0.85rem; border-radius: 6px; text-decoration: none;
  background: #1da650; color: #fff; border: none; white-space: nowrap;
  transition: background 0.12s;
}
.dash-btn-recharge-go:hover { background: #22bf5c; }

@media (max-width: 480px) {
  .dash-ch-wallet-row { flex-wrap: wrap; }
  /* Right cluster: allow LOW + balance + Recharge to wrap softly if the
     row gets too narrow, so the Recharge button never gets pushed off-line
     awkwardly on small phones. */
  .dash-ch-wallet-right { width: 100%; justify-content: flex-start; margin-top: 0.3rem; padding-left: 1.3rem; flex-wrap: wrap; gap: 0.5rem; }
  .dash-recharge-panel { padding-left: 0; }
  .dash-recharge-custom { flex-direction: column; align-items: stretch; }
  .dash-recharge-input-wrap { max-width: 100%; }
}

/* ── Channel Modal Responsive ── */
@media (max-width: 600px) {
  .ch-modal { max-height: 92vh; border-radius: 12px 12px 0 0; }
  .ch-modal-body { padding: 0.85rem; }
  .ch-conv-insights { flex-direction: column; gap: 1rem; }
  .ch-conv-donut { align-self: center; }
  .ch-conv-toolbar { flex-direction: column; align-items: stretch; }
  .ch-conv-date-input { width: 100%; }
  .ch-conv-load-btn { width: 100%; }
  .ch-conv-legend-name { min-width: 60px; }
}

/* ─── Onboarding Wizard ─── */
.dash-onboarding {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-top: 3px solid var(--accent-green);
  border-radius: var(--radius-lg, 14px);
  margin-bottom: 1rem;
  overflow: hidden;
}

.dash-ob-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
}

.dash-ob-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.dash-ob-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.dash-ob-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.dash-ob-progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.dash-ob-progress-fill {
  height: 100%;
  background: var(--accent-green);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.dash-ob-block {
  border-bottom: 1px solid var(--glass-border);
}

.dash-ob-block:last-child {
  border-bottom: none;
}

.dash-ob-block.locked {
  opacity: 0.4;
  pointer-events: none;
}

.dash-ob-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(255,255,255,0.02);
}

.dash-ob-block-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dash-ob-progress-pill {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-green);
  background: rgba(37,211,102,0.1);
  padding: 2px 8px;
  border-radius: 10px;
}

.dash-ob-step {
  border-top: 1px solid rgba(255,255,255,0.04);
}

.dash-ob-step-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  min-height: 48px;
  transition: background 0.15s;
}

.dash-ob-step-row:hover {
  background: rgba(255,255,255,0.02);
}

.dash-ob-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.dash-ob-circle.done {
  background: var(--accent-green);
  border-color: var(--accent-green);
}

.dash-ob-step-title {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.35;
}

.dash-ob-step.done .dash-ob-step-title {
  color: var(--text-muted);
  text-decoration: line-through;
}

.dash-ob-done-btn {
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent-green);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  min-height: 32px;
  min-width: 56px;
  transition: opacity 0.15s;
}

.dash-ob-done-btn:hover {
  opacity: 0.85;
}

.dash-ob-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.dash-ob-detail.open {
  max-height: 200px;
}

.dash-ob-detail p {
  padding: 0 1.25rem 0.85rem 3.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  background: rgba(255,255,255,0.015);
}

.dash-ob-locked-text {
  padding: 0.5rem 1.25rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* Setup Guide sidebar link */
.dash-ob-guide-link {
  color: var(--text-muted) !important;
}

.dash-ob-guide-link:hover {
  color: var(--accent-green) !important;
}

/* Mobile touch targets */
@media (max-width: 768px) {
  .dash-ob-step-row {
    min-height: 52px;
    padding: 0.85rem 1rem;
  }
  .dash-ob-done-btn {
    min-height: 36px;
    min-width: 60px;
    padding: 8px 16px;
    font-size: 0.78rem;
  }
  .dash-ob-detail p {
    padding-left: 2.75rem;
    padding-right: 1rem;
  }
  .dash-ob-header {
    padding: 0.85rem 1rem;
  }
  .dash-ob-block-header {
    padding: 0.75rem 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD TAB — FILTER PILLS, LINK CARDS, PIE LEGEND
   ═══════════════════════════════════════════════════════════════ */

/* Filter pills (date range + stat type tabs) */
.dash-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .ls-summary-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
  .ls-tech-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 640px) {
  .ls-behavior-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  /* Mobile drops mid-axis ticks (6, 18) — keep 0 / 12 only from desktop set, plus the mobile-only 23 tick. */
  .ls-hour-tick:nth-of-type(2),
  .ls-hour-tick:nth-of-type(4) { display: none; }
  .ls-hour-tick-mobile { display: block; }
}
@media (max-width: 720px) {
  /* Mobile drops middle date ticks — keep first/last only. */
  .ls-chart-xtick-desktop { display: none; }
}

/* Mobile: horizontal scroll for filter pills */
@media (max-width: 640px) {
  .dash-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .dash-filter-row::-webkit-scrollbar { display: none; }
  .ls-bar-row { grid-template-columns: minmax(60px, 1fr) 1.5fr auto; }
}
/* Safari/iOS < 16.4 fallback for color-mix. */
@supports not (background: color-mix(in srgb, red, blue)) {
  .camp-type-pill {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.10);
  }
}

/* ═══ Change Plan Modal ═══════════════════════════════════════════════════ */

/* Overlay — hidden by default, shown via .active */
#change-plan-overlay, #manage-addons-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1100;
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
#change-plan-overlay.active, #manage-addons-overlay.active { display: flex; }

/* ═══ Modal shell — shared by Change Plan + Manage Add-ons ═══════════════ */
/* (2026-05-28: Change Plan brought up to Manage Add-ons brand level —
   green accent bar at top, branded Outfit header, current-plan context
   strip, refined period pills with "Save X%" sub-badges, gradient plan
   cards with proper hover lift.) */
.dash-change-plan-modal, .dash-manage-addons-modal {
  background: var(--bg-card, #181b23);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  width: 100%; max-width: 820px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  position: relative;
  padding: 0;            /* accent bar sits flush; sections supply padding */
  overflow: hidden auto; /* hide horizontal overflow from accent bar */
}

/* Brand accent bar — same gradient palette as paywall + Manage Add-ons */
.dash-cp-accent-bar {
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--accent-green-dark) 0%, var(--accent-green) 50%, var(--accent-emerald) 100%);
  margin: 0;
  border-radius: 14px 14px 0 0;
}

/* Auto-apply body padding to every direct child except the accent bar.
   Keeps the HTML clean — no wrapper element needed. */
.dash-change-plan-modal > *:not(.dash-cp-accent-bar) {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}
.dash-change-plan-modal > .dash-cp-header { padding-top: 1.5rem; }
.dash-change-plan-modal > *:last-child { padding-bottom: 1.5rem; }

/* Branded header */
.dash-cp-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.dash-cp-header-titles { flex: 1; min-width: 0; }
.dash-cp-header-titles h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.4rem; font-weight: 700;
  color: var(--text-primary, #e8ecf1);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
/* .dash-cp-header-sub removed 2026-05-30 (audit #6) — subtitle dropped from Change Plan modal */
.dash-cp-close {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted, #8b95a5);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.dash-cp-close:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary, #e8ecf1);
  border-color: rgba(255,255,255,0.18);
  transform: rotate(90deg);
}

/* .dash-cp-plan-context / .dash-cp-plan-pill / .dash-cp-plan-validity removed
   2026-05-30 (audit #6) — Current plan context strip dropped from Change Plan modal */

/* Period pills (refined — chunkier padding, save-X% sub-badge) */
.dash-cp-period-bar {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.dash-cp-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.015);
  color: var(--text-secondary, #8b95a5);
  font-size: 0.86rem; font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}
.dash-cp-pill:hover {
  border-color: rgba(37,211,102,0.35);
  color: var(--text-primary, #e8ecf1);
  background: rgba(37,211,102,0.04);
}
.dash-cp-pill.active {
  background: linear-gradient(135deg, rgba(37,211,102,0.18), rgba(16,185,129,0.08));
  border-color: rgba(37,211,102,0.6);
  color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(37,211,102,0.12), inset 0 1px 0 rgba(255,255,255,0.04);
}
.dash-cp-pill-save {
  font-size: 0.65rem; font-weight: 700;
  padding: 0.12rem 0.45rem;
  background: rgba(37,211,102,0.18);
  color: var(--accent-green);
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.dash-cp-pill.active .dash-cp-pill-save {
  background: rgba(37,211,102,0.3);
}

/* Section labels with status dots */
.dash-cp-section-label {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-secondary, #9aa3b2);
  margin: 0 0 0.85rem;
}
.dash-cp-section-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(37,211,102,0.18);
  flex-shrink: 0;
}
.dash-cp-section-dot-blue {
  background: #4A9EFF;
  box-shadow: 0 0 0 3px rgba(74,158,255,0.18);
}
.dash-cp-toggle { cursor: pointer; list-style: none; }
.dash-cp-toggle::-webkit-details-marker { display: none; }
.dash-cp-toggle::before { content: '\25B8 '; }
details[open] > .dash-cp-toggle::before { content: '\25BE '; }

/* Plan grid */
.dash-cp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem; margin-bottom: 1.5rem;
}

/* Plan card */
.dash-cp-plan-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.1rem 1rem 1rem;
  display: flex; flex-direction: column; gap: 0.55rem;
  position: relative;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.dash-cp-plan-card:hover {
  border-color: rgba(37,211,102,0.28);
  background: linear-gradient(180deg, rgba(37,211,102,0.04), rgba(255,255,255,0.005));
  transform: translateY(-1px);
}
.dash-cp-plan-card h4 {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.05rem; font-weight: 700; margin: 0;
  color: var(--text-primary, #e8ecf1);
  letter-spacing: -0.01em;
}
.dash-cp-current {
  border-color: rgba(37,211,102,0.35) !important;
  background: linear-gradient(180deg, rgba(37,211,102,0.08), rgba(37,211,102,0.02)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.dash-cp-current:hover { transform: none; }
.dash-cp-downgrade:hover { border-color: rgba(245,158,11,0.32); background: linear-gradient(180deg, rgba(245,158,11,0.04), rgba(255,255,255,0.005)); }

/* Badges (chunkier, more brand-aligned) */
.dash-cp-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  padding: 0.25rem 0.6rem; border-radius: 999px;
  width: fit-content;
  border: 1px solid transparent;
}
.dash-cp-badge-current {
  background: rgba(37,211,102,0.15);
  color: var(--accent-green);
  border-color: rgba(37,211,102,0.3);
}
.dash-cp-badge-upgrade {
  background: rgba(37,211,102,0.1);
  color: #4ade80;
  border-color: rgba(37,211,102,0.22);
}
.dash-cp-badge-downgrade {
  background: rgba(245,158,11,0.1);
  color: #F59E0B;
  border-color: rgba(245,158,11,0.25);
}

/* Price */
.dash-cp-price {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.5rem; font-weight: 700;
  color: var(--text-primary, #e8ecf1);
  line-height: 1.1;
  margin-top: 0.1rem;
  letter-spacing: -0.02em;
}
.dash-cp-period {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.78rem; font-weight: 500;
  color: var(--text-secondary, #8b95a5);
  margin-left: 0.2rem;
  letter-spacing: 0;
}
.dash-cp-billed {
  font-size: 0.7rem;
  color: var(--text-secondary, #8b95a5);
  margin-top: 0.15rem;
  line-height: 1.3;
}
/* .dash-cp-addon-billed removed 2026-05-30 (audit #6) — Add-ons grid removed from Change Plan modal */

/* Features list */
.dash-cp-features {
  display: flex; flex-direction: column; gap: 0.4rem;
  font-size: 0.78rem; color: var(--text-secondary, #9aa3b2);
  margin-top: 0.25rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.dash-cp-feat { display: flex; align-items: center; gap: 0.45rem; }
.dash-cp-feat i { color: rgba(37,211,102,0.65); flex-shrink: 0; }

/* Buttons inside plan cards stretch full width for a stronger CTA */
.dash-cp-plan-card .dash-btn {
  width: 100%;
  margin-top: 0.4rem;
}

/* .dash-cp-addon-* rules removed 2026-05-30 (audit #6) — Add-ons section
   was stripped from the Change Plan modal in commit f8681ee. Addons now
   live exclusively in the Manage Add-ons modal (.mna-addon-* classes). */

/* ── Change Plan Warning (inline in subscription card) ── */
.dash-change-warning {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: 10px;
  padding: 1rem;
  display: flex; flex-direction: column; gap: 0.65rem;
}
.dash-change-warning-icon { color: #F59E0B; }
.dash-change-warning-body { font-size: 0.82rem; color: var(--text-secondary, #8b95a5); }
.dash-change-warning-body strong { color: var(--text-primary, #e8ecf1); display: block; margin-bottom: 0.35rem; }
.dash-change-warning-body p { margin: 0 0 0.3rem; }
.dash-change-warning-actions { display: flex; gap: 0.5rem; justify-content: flex-end; }

/* ── Icon button (refresh) ── */
.dash-btn-icon {
  background: transparent; border: none; color: var(--text-secondary, #8b95a5);
  cursor: pointer; padding: 0.25rem; margin-left: auto; border-radius: 4px;
  transition: color 0.15s;
}
.dash-btn-icon:hover { color: var(--text-primary, #e8ecf1); }

/* ── Collapsible ── */
.dash-cp-collapsible { margin-bottom: 1rem; }
.dash-cp-collapsible[open] .dash-cp-grid { margin-top: 0.75rem; }

/* ═══ Manage Add-ons Modal — branded surfaces ═══════════════════════════ */
/* The modal mirrors the paywall + signup aesthetic: dark card with a 5-px
   green accent bar across the top, soft section labels with status dots,
   addon rows that lift on hover, and a green-on-dark "+ Add" primary
   action. Multi-qty addons surface an "Add another" affordance in their
   Active row. Inline expand-to-pay panel reveals the GST chip + total. */

/* Reset shared modal padding so the accent bar sits flush at top.
   Section content gets explicit horizontal + vertical padding via .mna-body. */
.dash-manage-addons-modal {
  position: relative;
  padding: 0;
  /* Inherit the 88vh max-height + overflow:hidden auto from the combined
     `.dash-change-plan-modal, .dash-manage-addons-modal` rule above. The
     previous `overflow: hidden` here was killing vertical scroll, so a
     customer with many available + locked addons couldn't reach the rows
     past the viewport (fixed 2026-05-30). */
  overflow: hidden auto;
}
.dash-manage-addons-modal .mna-accent-bar {
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--accent-green-dark) 0%, var(--accent-green) 50%, var(--accent-emerald) 100%);
  margin: 0;
  /* Match the modal's top border radius so the bar fills the corners */
  border-radius: 14px 14px 0 0;
}

/* Everything below the accent bar lives in a padded body container */
.mna-body { padding: 1.75rem 1.75rem 1.5rem; }
/* Direct children of the modal that aren't .mna-accent-bar get the body
   padding too (avoids the need for an extra wrapper element). */
.dash-manage-addons-modal > *:not(.mna-accent-bar) {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}
.dash-manage-addons-modal > .mna-header { padding-top: 1.5rem; }
.dash-manage-addons-modal > *:last-child { padding-bottom: 1.5rem; }

.mna-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.mna-header-titles { flex: 1; min-width: 0; }
.mna-header-titles h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.4rem; font-weight: 700;
  color: var(--text-primary, #e8ecf1);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.mna-header-sub {
  margin: 0; font-size: 0.86rem; line-height: 1.45;
  color: var(--text-muted, #8b95a5);
  max-width: 48ch;
}
.mna-close {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted, #8b95a5);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.mna-close:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary, #e8ecf1);
  border-color: rgba(255,255,255,0.18);
  transform: rotate(90deg);
}

/* Plan context strip — pill + plan name + cycle */
.mna-plan-context {
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 0.55rem 0.95rem 0.55rem 0.45rem;
  background: linear-gradient(135deg, rgba(37,211,102,0.07), rgba(16,185,129,0.03));
  border: 1px solid rgba(37,211,102,0.22);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary, #e8ecf1);
  margin-bottom: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.mna-plan-pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-green);
  padding: 0.28rem 0.7rem;
  background: rgba(37,211,102,0.14);
  border: 1px solid rgba(37,211,102,0.3);
  border-radius: 999px;
}
.mna-plan-validity { color: var(--text-muted, #8b95a5); font-weight: 500; }

.mna-billing-note {
  display: flex; align-items: flex-start; gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted, #8b95a5);
}
.mna-billing-note i {
  color: rgba(37,211,102,0.75);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Section label — small caps with colored dot */
.mna-section-label {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-secondary, #9aa3b2);
  margin: 0 0 0.85rem;
}
.mna-section-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(37,211,102,0.18);
  flex-shrink: 0;
}
.mna-section-dot.mna-dot-available { background: #4A9EFF; box-shadow: 0 0 0 3px rgba(74,158,255,0.18); }
.mna-section-dot.mna-dot-locked { background: #6b7280; box-shadow: 0 0 0 3px rgba(107,114,128,0.18); }
.mna-section-count {
  font-size: 0.7rem; font-weight: 700;
  padding: 0.12rem 0.5rem;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  color: var(--text-secondary, #9aa3b2);
  letter-spacing: 0;
  margin-left: 0.15rem;
}

.mna-empty {
  padding: 1.1rem 1.2rem;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted, #8b95a5);
  margin: 0;
}

/* Banner — cancelled/paused */
.mna-banner {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(245,158,11,0.04));
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 12px;
  margin: 0.5rem 0 1.25rem;
}
.mna-banner-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 8px;
  background: rgba(245,158,11,0.15);
  color: #f59e0b;
  display: inline-flex; align-items: center; justify-content: center;
}
.mna-banner-body { flex: 1; min-width: 0; }
.mna-banner-body strong {
  display: block; font-size: 0.92rem; color: var(--text-primary, #e8ecf1);
  font-weight: 600; margin-bottom: 0.1rem;
}
.mna-banner-body p {
  margin: 0; font-size: 0.78rem; color: var(--text-muted, #8b95a5);
}
.mna-banner .dash-btn { width: auto; flex-shrink: 0; }

/* Addon grid + card */
.mna-addon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}
.mna-addon-card {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.85rem; flex-wrap: wrap;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.mna-addon-card:hover:not(.mna-locked) {
  border-color: rgba(37,211,102,0.25);
  background: linear-gradient(180deg, rgba(37,211,102,0.04), rgba(255,255,255,0.01));
}
.mna-addon-card.mna-active {
  border-color: rgba(37,211,102,0.28);
  background: linear-gradient(180deg, rgba(37,211,102,0.06), rgba(37,211,102,0.02));
}
.mna-addon-card.mna-locked {
  opacity: 0.55;
  background: rgba(255,255,255,0.01);
}
.mna-addon-info { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; min-width: 0; }
.mna-addon-name {
  font-size: 0.92rem; font-weight: 600;
  color: var(--text-primary, #e8ecf1);
  letter-spacing: -0.005em;
}
.mna-addon-price {
  font-size: 0.78rem; font-weight: 500;
  color: var(--text-secondary, #9aa3b2);
}
.mna-addon-billed {
  font-size: 0.7rem; color: var(--text-muted, #5c6577); margin-left: 0.25rem;
}

/* Active actions cluster (pill + Add another button) */
.mna-active-actions {
  display: inline-flex; align-items: center; gap: 0.45rem; flex-wrap: wrap;
}

/* Pills */
.mna-pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.01em;
}
.mna-pill-active {
  color: var(--accent-green);
  background: rgba(37,211,102,0.12);
  border: 1px solid rgba(37,211,102,0.25);
}
.mna-pill-locked {
  color: var(--text-muted, #8b95a5);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.mna-pill-max {
  color: #f59e0b;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.22);
}

/* Buttons */
.mna-btn-add {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
  padding: 0.45rem 0.95rem;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
  border: none;
  color: #062b16;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  flex-shrink: 0;
}
.mna-btn-add:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}
.mna-btn-add:disabled {
  opacity: 0.45; cursor: not-allowed;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted, #8b95a5);
}

.mna-btn-add-another {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(37,211,102,0.35);
  color: var(--accent-green);
  font-size: 0.74rem; font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.mna-btn-add-another:hover {
  background: rgba(37,211,102,0.1);
  border-color: rgba(37,211,102,0.55);
}

/* Inline expand-to-pay panel */
.mna-pay-panel {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; flex-wrap: wrap;
  padding-top: 0.75rem; margin-top: 0.25rem;
  border-top: 1px dashed rgba(37,211,102,0.2);
}

/* Qty stepper row (only for multi-qty addons: Extra WA, Team Member, etc.) */
.mna-pay-qty-row {
  width: 100%;
  display: flex; align-items: center; gap: 0.6rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
  margin-bottom: 0.15rem;
}
.mna-pay-qty-label {
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-muted, #8b95a5);
}
.mna-qty-stepper {
  display: inline-flex; align-items: stretch;
  border: 1px solid rgba(37,211,102,0.3);
  background: rgba(37,211,102,0.04);
  border-radius: 8px;
  overflow: hidden;
}
.mna-qty-btn {
  width: 30px; height: 28px;
  background: transparent;
  border: none;
  color: var(--accent-green);
  font-size: 1rem; font-weight: 700; line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease;
  display: inline-flex; align-items: center; justify-content: center;
}
.mna-qty-btn:hover:not(:disabled) { background: rgba(37,211,102,0.12); }
.mna-qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.mna-qty-value {
  min-width: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 0.55rem;
  font-size: 0.92rem; font-weight: 700;
  color: var(--text-primary, #e8ecf1);
  border-left: 1px solid rgba(37,211,102,0.18);
  border-right: 1px solid rgba(37,211,102,0.18);
  background: rgba(0,0,0,0.18);
}
.mna-qty-max {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--text-muted, #5c6577);
  font-weight: 500;
}
.mna-pay-breakdown {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-secondary, #9aa3b2);
}
.mna-pay-amt { color: var(--text-primary, #e8ecf1); font-weight: 600; }
.mna-pay-chip {
  display: inline-flex; align-items: center;
  padding: 0.15rem 0.5rem;
  background: rgba(37,211,102,0.12);
  border: 1px solid rgba(37,211,102,0.22);
  color: var(--accent-green);
  font-size: 0.7rem; font-weight: 700;
  border-radius: 999px;
}
.mna-pay-eq { color: var(--text-muted, #5c6577); }
.mna-pay-total {
  color: var(--text-primary, #e8ecf1);
  font-weight: 700; font-size: 0.95rem;
}
/* Phase 6c — prorata context sub-line. Renders below the breakdown
 * inside the mna-pay-panel: "Stays active through 9 Jun · Full cycle ₹999"
 * for prorata addons, or "Flat monthly · Task Credits are not prorated"
 * for the task-pack pay panel. */
.mna-pay-prorata-sub {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(255,255,255,0.08);
  color: var(--text-muted, #8b95a5);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.mna-pay-prorata-sub strong {
  color: var(--text-primary, #e8ecf1);
  font-weight: 600;
}

.mna-pay-actions {
  display: inline-flex; gap: 0.45rem; align-items: center;
}
.mna-btn-cancel {
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted, #8b95a5);
  font-size: 0.78rem; font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mna-btn-cancel:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary, #e8ecf1);
}
.mna-btn-pay {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 1.1rem;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
  border: none;
  color: #062b16;
  font-size: 0.85rem; font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.mna-btn-pay:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  #change-plan-overlay, #manage-addons-overlay { align-items: flex-end; padding: 0; }
  .dash-change-plan-modal, .dash-manage-addons-modal {
    max-width: 100%; max-height: 90vh;
    border-radius: 14px 14px 0 0;
  }
  .dash-cp-grid { grid-template-columns: 1fr; }
  .mna-addon-grid { grid-template-columns: 1fr; }
  .mna-pay-panel { flex-direction: column; align-items: stretch; }
  .mna-pay-actions { justify-content: stretch; }
  .mna-pay-actions .mna-btn-cancel,
  .mna-pay-actions .mna-btn-pay { flex: 1; justify-content: center; }
}
@media (max-width: 560px) {
  .dash-plangate-ribbon { flex-wrap: wrap; }
  .dash-plangate-ribbon-text { flex-basis: 100%; order: 2; }
  .dash-plangate-ribbon-cta { order: 3; margin-left: auto; }
}

@media (max-width: 640px) {
  .dash-hero-card {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4, 1rem);
    padding: var(--space-4, 1rem) var(--space-4, 1rem);
  }
  .dash-hero-value { font-size: 2rem; }
  .dash-hero-btn { width: 100%; }
}

/* ── Compact stat rail — no card wrapper. Scrolls horizontally on mobile. */
.dash-stat-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3, 0.75rem);
  margin-bottom: var(--space-6, 2rem);
}
.dash-stat-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
  border-radius: var(--radius-lg, 0.75rem);
  background: var(--glass-bg, rgba(255,255,255,0.03));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dash-stat-tile:hover {
  border-color: var(--glass-border-hover, rgba(255,255,255,0.14));
  background: rgba(255,255,255,0.04);
}
.dash-stat-tile-value {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary, #e8ecf1);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.dash-stat-tile-suffix {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted, #5c6577);
  margin-left: 0.15rem;
}
.dash-stat-tile-label {
  font-size: 0.75rem;
  color: var(--text-muted, #5c6577);
  letter-spacing: 0.01em;
}
@media (max-width: 860px) {
  .dash-stat-rail {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(140px, 1fr);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }
  .dash-stat-tile { scroll-snap-align: start; }
}

/* ── Unified empty-state tile — icon + label + ghost CTA. */
.dash-empty-tile {
  display: flex;
  align-items: center;
  gap: var(--space-3, 0.75rem);
  padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
  border-radius: var(--radius-lg, 0.75rem);
  background: var(--glass-bg, rgba(255,255,255,0.03));
  border: 1px dashed var(--glass-border, rgba(255,255,255,0.08));
  color: var(--text-secondary, #8b95a5);
  font-size: 0.85rem;
  margin-bottom: var(--space-4, 1rem);
}
.dash-empty-tile-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted, #5c6577);
  flex-shrink: 0;
}
.dash-empty-tile-label {
  flex: 1;
  min-width: 0;
}
.dash-empty-tile-cta {
  white-space: nowrap;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
}
@keyframes dashLinkShelfIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Professional Services section ── */
.dash-service-history {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dash-service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(108, 92, 231, 0.04);
  border: 1px solid rgba(108, 92, 231, 0.12);
  border-radius: 8px;
}
.dash-service-item-main { flex: 1; min-width: 0; }
.dash-service-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}
.dash-service-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.dash-pill-amber { background: rgba(245, 158, 11, 0.12); color: #F59E0B; border: 1px solid rgba(245, 158, 11, 0.2); }

/* ── Services Modal — reuses .dash-modal + .dash-modal-header + .dash-modal-body ── */
.dash-modal.dash-modal-wide { max-width: 620px; padding: 0; display: flex; flex-direction: column; }
.dash-modal.dash-modal-wide .dash-modal-header {
  padding: 1.25rem 1.5rem 0.85rem; margin: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative; flex-wrap: wrap;
}
.dash-modal.dash-modal-wide .dash-modal-header h3 { font-size: 1rem; }
.dash-modal.dash-modal-wide .dash-modal-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,211,102,0.35) 25%, rgba(16,185,129,0.35) 75%, transparent);
}
.dash-modal.dash-modal-wide .dash-modal-header h3 { flex: 0 1 auto; }
.dash-modal.dash-modal-wide .dash-modal-body {
  padding: 1rem 1.5rem 1.25rem; margin: 0; overflow-y: auto; flex: 1 1 auto;
}

/* Currency switcher inside Professional Services modal header — visually
   parallel to the navbar locale picker (small pill, 32px height, brand
   tokens) but uses a native select for keyboard/a11y simplicity. */
.dash-svc-currency-picker {
  height: 32px;
  padding: 0 28px 0 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md, 8px);
  color: var(--text-primary, #fff);
  font-size: 0.8rem;
  font-family: var(--font-body, 'Inter', sans-serif);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b95a5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: all 0.2s;
}
.dash-svc-currency-picker:hover {
  background-color: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.2);
}
.dash-svc-currency-picker option {
  background: var(--bg-card, #181b23);
  color: var(--text-primary, #fff);
}

/* Manual-delivery notice — tiny amber strip inside header */
.dash-svc-notice {
  display: flex; align-items: center; gap: 0.45rem;
  margin-top: 0.8rem; padding: 0.5rem 0.7rem;
  background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.18);
  border-radius: 8px; font-size: 0.74rem; color: var(--text-secondary); line-height: 1.4;
}
.dash-svc-notice i { color: #f59e0b; flex-shrink: 0; }

/* ── Service Card — matches brand .addon-card from pricing page ── */
.dash-service-card {
  background: var(--bg-card, #181b23);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: var(--radius-xl, 1rem);
  padding: 2rem;
  margin-bottom: 0.85rem;
  transition: border-color 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
}
.dash-service-card:last-child { margin-bottom: 0; }
.dash-service-card:hover {
  border-color: rgba(37, 211, 102, 0.3);
  background: rgba(37, 211, 102, 0.03);
}

/* SERVICE label — matches .package-tag style */
.dash-service-card-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-green, var(--accent-green));
  margin-bottom: 0.6rem;
}

/* Title — matches .addon-card h3 */
.dash-service-card-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
}

/* Description — matches .addon-card > p */
.dash-service-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 0.5rem 0;
}

/* Price — matches .addon-price with gradient text */
.dash-service-card-price {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: auto;
  margin-bottom: 0;
  background: var(--gradient-primary, linear-gradient(135deg, var(--accent-green), var(--accent-emerald)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  line-height: 1;
}
.dash-service-card-price span {
  font-size: 0.85rem;
  font-weight: 400;
}

/* Full-width solid green Add button — matches .btn-primary.addon-add-btn */
.dash-service-card-actions {
  margin-top: 0.75rem;
}
.dash-svc-add-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: var(--gradient-primary, linear-gradient(135deg, var(--accent-green), var(--accent-emerald)));
  color: #000;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}
.dash-svc-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}
.dash-svc-add-btn:active {
  transform: scale(0.97);
  opacity: 0.9;
  box-shadow: none;
  transition-duration: 0.08s;
}
.dash-svc-add-btn:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
  box-shadow: none;
}
.dash-svc-add-btn:disabled:hover { transform: none; box-shadow: none; }

/* Mobile */
@media (max-width: 540px) {
  .dash-modal.dash-modal-wide .dash-modal-header { padding: 1rem 1.1rem 0.75rem; }
  .dash-modal.dash-modal-wide .dash-modal-body { padding: 0.85rem 1.1rem 1rem; }
  .dash-service-card { padding: 1.5rem; }
  .dash-service-card-title { font-size: 1rem; }
  .dash-service-card-price { font-size: 1.35rem; }
  .dash-svc-add-btn { font-size: 0.88rem; padding: 0.7rem 0.9rem; }
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .dash-pb-wa-msg {
    max-width: 100%;
    font-size: 14px;
  }
  .dash-pb-wa-text { font-size: 14px; }
  .dash-pb-wa-btn { font-size: 13.5px; padding: 11px 10px; }
}

@media (max-width: 640px) {
  .dash-pb-wa-carousel-card {
    flex: 0 0 148px;
  }
  .dash-pb-wa-carousel-img {
    height: 80px;
  }
  .dash-pb-wa-carousel-body {
    padding: 8px 8px 6px;
  }
  .dash-pb-wa-carousel-title {
    font-size: 12px;
  }
  .dash-pb-wa-carousel-desc {
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .dash-pb-botflow { padding: 0.85rem 0.8rem 1rem; }
  .dash-pb-botflow-node { padding: 9px 10px; gap: 10px; }
  .dash-pb-botflow-node-icon { width: 28px; height: 28px; }
  .dash-pb-botflow-node-text { font-size: 0.84rem; }
  .dash-pb-botflow-opt { font-size: 0.7rem; padding: 2px 7px; }
  /* Stack branches vertically on mobile */
  .dash-pb-botflow-branches {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .dash-pb2-hero .dash-snapshot-kpi--hero .dash-snapshot-kpi-value { font-size: 1.4rem; }
  .dash-pb2-hero--industry { padding: 1.1rem; gap: 0.75rem; }
  .dash-pb2-hero-icon { width: 48px; height: 48px; }
  .dash-pb2-hero--industry .dash-snapshot-kpi-value { font-size: 1.15rem; }
  .dash-pb-scenario { padding: 1.15rem; }
  .dash-pb-clone { flex-direction: column; align-items: stretch; }
  .dash-pb-clone-actions { justify-content: flex-end; }
  .dash-pb-card { padding: 0.95rem 1rem; gap: 0.75rem; }
  .dash-pb-card h4 { font-size: 0.92rem; }
  .dash-pb-table th, .dash-pb-table td { padding: 0.5rem 0.65rem; }
  .dash-pb-code-block { font-size: 0.72rem; padding: 0.75rem 0.85rem; }
  /* Swap market filter pills → dropdown on mobile */
  .dash-pb-market-filter { display: none; }
  .dash-pb-market-dropdown { display: block; }
}

@media (max-width: 640px) {
  .dash-pb-ig-wrap { max-width: 100%; }
}

@media (max-width: 640px) {
  .dash-pb-sms-wrap { max-width: 100%; }
}

@media (max-width: 640px) {
  .dash-pb-email-wrap { max-width: 100%; }
}

@media (max-width: 640px) {
  .dash-pb-rzp-wrap { max-width: 100%; }
  .dash-pb-rzp-amount { font-size: 26px; }
}

/* ── ODIV branded custom checkbox ──
   Shared utility matching the blog subscribe form's tick. Swaps out the
   old .dash-toggle which rendered as a native browser checkbox (ugly on
   dark theme). Used for Notification Preferences in the Settings tab. */
.odiv-check {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}
.odiv-check:hover {
  border-color: rgba(37, 211, 102, 0.5);
  background: rgba(37, 211, 102, 0.06);
}
.odiv-check:active { transform: scale(0.94); }
.odiv-check:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
  border-color: var(--accent-green);
}
.odiv-check:checked {
  border-color: var(--accent-green);
  background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
}
.odiv-check:checked::after {
  content: '';
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-0.5px, -1px);
}
.odiv-check:disabled { opacity: 0.4; cursor: not-allowed; }

/* Section labels inside the "See more" panel */
.dash-perm-section-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--text-muted, #a4adc1);
  margin: 0.7rem 0 0.4rem;
}
.dash-perm-section-label:first-child { margin-top: 0; }

.dash-perm-tier-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.dash-perm-tier-pill-rec {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.dash-perm-tier-pill-mute {
  background: rgba(108, 118, 137, 0.18);
  color: var(--text-muted, #a4adc1);
  border: 1px solid rgba(108, 118, 137, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════
   Subscription-pending blocking overlay
   (Razorpay-Subscription-First architectural fix, incident 2026-05-24)

   Non-dismissible blur overlay rendered when the customer's
   subscription_setup_status is 'pending'. Dashboard underneath is blurred
   + pointer-events disabled via the body class toggle. Card uses a white
   surface for max readability + commanding attention against the dark
   dashboard. Reuses .dash-btn-primary + .dash-btn-ghost — the ghost
   variant gets an inverted color override for the white card background.

   All selectors scoped under .dash-sub-pending-* + the body-class toggle.
   Zero existing dashboard styles are overridden.
   ═══════════════════════════════════════════════════════════════════════ */

/* Dashboard blur (only when overlay is open) */
body.dash-sub-pending-open #dashboard-app {
  filter: blur(6px);
  -webkit-filter: blur(6px);
  pointer-events: none;
  user-select: none;
}
body.dash-sub-pending-open { overflow: hidden; }

.dash-sub-pending-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.dash-sub-pending-card {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  color: #1a2620;
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  font-family: inherit;
}

.dash-sub-pending-headline {
  color: #C92A2A;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

.dash-sub-pending-body {
  color: #1a2620;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 14px;
}
.dash-sub-pending-body strong { color: #0A2F1F; font-weight: 700; }

.dash-sub-pending-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 22px 0 10px;
}
.dash-sub-pending-actions .dash-btn {
  width: 100%;
  justify-content: center;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.7rem 1.2rem;
}
/* Ghost button override — inverted for the white card */
.dash-sub-pending-card .dash-btn-ghost {
  background: transparent;
  border: 1px solid rgba(10, 47, 31, 0.18);
  color: #0A2F1F;
}
.dash-sub-pending-card .dash-btn-ghost:hover:not(:disabled) {
  border-color: rgba(10, 47, 31, 0.35);
  background: rgba(10, 47, 31, 0.04);
}

.dash-sub-pending-error {
  margin: 12px 0 0;
  padding: 10px 14px;
  background: rgba(201, 42, 42, 0.08);
  border-left: 3px solid #C92A2A;
  border-radius: 4px;
  color: #C92A2A;
  font-size: 0.85rem;
  line-height: 1.5;
}

.dash-sub-pending-divider {
  border: 0;
  border-top: 1px solid rgba(10, 47, 31, 0.1);
  margin: 22px 0 18px;
}

.dash-sub-pending-ps-intro,
.dash-sub-pending-ps-close {
  color: #4A5B52;
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0 0 12px;
}
.dash-sub-pending-ps-intro em,
.dash-sub-pending-ps-close em { font-style: italic; }
.dash-sub-pending-ps-close strong { color: #0A2F1F; font-weight: 700; }

.dash-sub-pending-ps-list {
  margin: 0 0 16px;
  padding-left: 20px;
  color: #4A5B52;
  font-size: 0.85rem;
  line-height: 1.6;
}
.dash-sub-pending-ps-list li { margin-bottom: 4px; }

@media (max-width: 560px) {
  .dash-sub-pending-overlay { padding: 12px; }
  .dash-sub-pending-card {
    padding: 24px 22px;
    border-radius: 14px;
    max-height: 96vh;
  }
  .dash-sub-pending-headline { font-size: 1.15rem; }
  .dash-sub-pending-body { font-size: 0.9rem; }
}

/* ═══════════════════════════════════════════════════════════════
   Phase 5c — Channels tab master-detail shell + unified pill
   Selectors: .dash-ch2-* (additive). Uses ONLY tokens from
   css/variables.css. No new color tokens.
   ═══════════════════════════════════════════════════════════════ */

/* ── Unified status pill ─────────────────────────────────────────── */
.dash-ch2-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
  border: 1px solid transparent;
}

.dash-ch2-pill-label { display: inline-block; }

.dash-ch2-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  flex-shrink: 0;
}

.dash-ch2-pill--success {
  color: var(--color-success);
  background: var(--color-success-bg);
  border-color: rgba(37, 211, 102, 0.22);
}
.dash-ch2-pill--warning {
  color: var(--color-warning);
  background: var(--color-warning-bg);
  border-color: rgba(245, 158, 11, 0.22);
}
.dash-ch2-pill--error {
  color: var(--color-error);
  background: var(--color-error-bg);
  border-color: rgba(239, 68, 68, 0.22);
}
.dash-ch2-pill--neutral {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
.dash-ch2-pill--info {
  color: var(--accent-blue);
  background: var(--color-info-bg);
  border-color: rgba(96, 165, 250, 0.22);
}

.dash-ch2-back {
  display: none; /* mobile-only by default */
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  margin-bottom: 0.25rem;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  align-self: flex-start;
}
.dash-ch2-back:hover { color: var(--text-primary); border-color: var(--glass-border-hover); }
.dash-ch2-back i { width: 14px; height: 14px; }

.dash-ch2-detail-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--glass-border);
  border-radius: 12px;
  color: var(--text-secondary);
}
.dash-ch2-detail-placeholder h4 { font-family: var(--font-display); font-size: 1rem; margin: 0.25rem 0 0; }
.dash-ch2-detail-placeholder p { font-size: 0.82rem; color: var(--text-muted); margin: 0; max-width: 320px; }

/* ── Mobile push-detail ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .dash-ch2-shell {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .dash-ch2-detail-col {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  /* Default state on small screens: list visible, detail hidden. */
  .dash-ch2-shell:not(.is-detail-open) .dash-ch2-detail-col { display: none; }

  /* Selected state: list hides, detail fills full width. */
  .dash-ch2-shell.is-detail-open .dash-ch2-list { display: none; }
  .dash-ch2-shell.is-detail-open .dash-ch2-detail-col { display: flex; }

  /* Back button appears on mobile only. */
  .dash-ch2-back { display: inline-flex; }

  .dash-ch2-toolbar {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  /* Meta row: stack tighter on mobile but keep label + swatch on one row. */
  .dash-ch2-meta-row {
    gap: 0.4rem;
    margin: 0.1rem 0 0.5rem;
  }
  .dash-ch2-label-input { width: 100%; }
}

@media (max-width: 480px) {
  .dash-ch2-row { padding: 0.6rem 0.7rem; }
  .dash-ch2-row-name { font-size: 0.84rem; }
  .dash-ch2-row-meta { font-size: 0.7rem; }
  .dash-ch2-detail-placeholder { padding: 2rem 1rem; }
}

/* ── Mobile push-detail (mirrors Phase 5c .dash-ch2-shell) ───────── */
@media (max-width: 1023px) {
  .dash-crm2-shell {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .dash-crm2-detail-col {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  .dash-crm2-shell:not(.is-detail-open) .dash-crm2-detail-col { display: none; }
  .dash-crm2-shell.is-detail-open .dash-crm2-list { display: none; }
  .dash-crm2-shell.is-detail-open .dash-crm2-detail-col { display: flex; }
}

@media (max-width: 480px) {
  .dash-crm2-row { padding: 0.6rem 0.7rem; }
  .dash-crm2-row-name { font-size: 0.84rem; }
  .dash-crm2-row-meta { font-size: 0.68rem; }
  .dash-crm2-row-metric-value { font-size: 0.92rem; }
  .dash-funnel-conv { min-width: 30px; font-size: 0.66rem; }
}

/* ═══════════════════════════════════════════════════════════════
   E-COMMERCE TAB — Phase 5g (2026-05-30)
   Single-column snapshot hero · Segmented pill ribbon · 2-up rail
   ═══════════════════════════════════════════════════════════════ */

/* Single-column variant of the .dash-snapshot-hero shell. The default
   shell is a 1.4fr/1fr/1fr grid (Subscription); for the E-Commerce
   narrative we collapse to one column so the order line + split ribbon
   read as a single statement. */
.dash-snapshot-hero--single {
  grid-template-columns: 1fr;
}
.dash-snapshot-hero--single .dash-snapshot-kpi {
  gap: 0.5rem;
}

/* 2-up variant of .dash-stat-rail (default is 4-up). Keeps the same
   mobile scroll-snap behaviour by inheriting the @media block above. */
.dash-stat-rail--2up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Loading state — inline empty-tile inside the snapshot hero. */
.dash-empty-tile--inline {
  margin: 0;
  background: transparent;
  border: none;
}

/* Larger icon for the onboarding .dash-empty block — replaces the
   prior inline width/height/color attribute on the Lucide icon. */
.dash-empty-tile-icon-lg {
  width: 48px;
  height: 48px;
  color: var(--text-muted, #5c6577);
}

/* ═══════════════════════════════════════════════════════════════
   PLAYBOOKS TAB — Phase 5h (2026-05-30)
   Chrome migration to unified hero shell + .dash-ch2-pill system.
   Additive .dash-pb2-* — content renderers (markdown, bot-flow, WA/IG/SMS
   /Email/Razorpay templates) and their CSS families are UNCHANGED.
   ═══════════════════════════════════════════════════════════════ */

/* ── Icon sizing classes (replace inline width/height on Lucide stamps). */
.dash-pb-icon--xs { width: 11px; height: 11px; }
.dash-pb-icon--sm { width: 16px; height: 16px; }
.dash-pb-icon--md { width: 20px; height: 20px; }
.dash-pb-icon--lg { width: 28px; height: 28px; }

/* ── Hero variant — icon slot before the KPI column.
   Used by Playbook Industry hero (.dash-pb2-hero--industry). Keeps the
   .dash-snapshot-hero--single 1-column grid but tucks the icon on the left
   via flex on the inner wrapper. */
.dash-snapshot-hero--icon {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.dash-snapshot-hero--icon .dash-snapshot-kpi {
  flex: 1;
  min-width: 0;
}
@keyframes dash-pb2-spin {
  to { transform: rotate(360deg); }
}

