/* Hide Alpine-managed elements before init */
[x-cloak] {
  display: none !important;
}

:root {
  --dash-bg: #ffffff;
  --dash-surface: #ffffff;
  --bg-secondary: #ffffff;
}

/* ── Dashboard layout ──────────────────────────────────────────────────────── */
.dash-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #ffffff;
}

/* Top navigation bar - clean, modern white canvas header */
.dash-topnav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light, #efeae3);
  box-shadow: none;
}

.dash-topnav-logo {
  font-family: var(--font-serif);
  font-style: bold;
  font-size: 32px;
  font-weight: 700;
  color: #131b17;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 4px;
  transition: opacity 140ms ease;
}

.dash-topnav-logo:hover {
  opacity: 0.85;
}

.dash-topnav-divider {
  width: 1px;
  height: 22px;
  background: rgba(19, 27, 23, 0.12);
  flex-shrink: 0;
}

/* Org switcher - refined pill aesthetic */
.org-switcher {
  position: relative;
  flex-shrink: 0;
}

.org-switcher-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid rgba(19, 27, 23, 0.14);
  border-radius: 9999px;
  background: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #131b17;
  transition: all 0.15s ease;
  max-width: 220px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.org-switcher-btn:hover {
  border-color: rgba(19, 27, 23, 0.28);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.org-switcher-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #131b17;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.org-switcher-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.org-switcher-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-switcher-chevron {
  margin-left: auto;
  flex-shrink: 0;
  color: #6b7280;
  transition: transform 0.15s;
}

.org-switcher-chevron.open {
  transform: rotate(180deg);
}

.org-switcher-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--border-light, #efeae3);
  border-radius: 14px;
  box-shadow:
    0 14px 36px rgba(19, 27, 23, 0.12),
    0 2px 8px rgba(19, 27, 23, 0.04);
  padding: 6px;
  overflow: hidden;
  z-index: 100;
}

.org-switcher-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.14s ease;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 13.5px;
}

.org-switcher-item:hover {
  background: var(--bg-secondary, #faf7f2);
}

.org-switcher-item.active {
  background: rgba(232, 89, 56, 0.08);
  font-weight: 600;
}

.org-switcher-item-role {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: capitalize;
}

/* Contextual menu tabs (same styling as site-nav links) */
.dash-topnav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 1;
  min-width: 0;
}

.dash-topnav-links::-webkit-scrollbar {
  display: none;
}

.dash-topnav-link {
  font-size: 13.5px;
  color: rgba(19, 27, 23, 0.75);
  font-weight: 500;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background 140ms ease,
    color 140ms ease;
}

.dash-topnav-link:hover {
  background: rgba(19, 27, 23, 0.06);
  color: #131b17;
}

.dash-topnav-link.active {
  background: #131b17;
  color: #ffffff;
  font-weight: 600;
}

/* Dashboard CTA button (New event / Host an event) */
.dash-topnav-cta {
  font-size: 13px;
  font-weight: 700;
  background: #131b17;
  color: #ffffff !important;
  padding: 7px 16px;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background 140ms ease,
    transform 80ms ease,
    box-shadow 140ms ease;
  margin-right: 6px;
}

.dash-topnav-cta:hover {
  background: #2a3630;
  box-shadow: 0 4px 14px rgba(19, 27, 23, 0.22);
}

.dash-topnav-cta:active {
  transform: scale(0.97);
}

.dash-topnav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.topnav-icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition:
    background 0.12s,
    color 0.12s;
  position: relative;
}

.mobile-sidebar-toggle {
  display: none;
}

.mobile-sidebar-header {
  display: none;
}

.dash-sidebar-overlay {
  display: none;
}

.topnav-icon-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.topnav-notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  border-radius: 100px;
  background: var(--magenta);
  border: 2px solid #fff;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* ── Notification dropdown ────────────────────────────────────────────────── */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  background: #ffffff;
  border: 1px solid var(--border-light, #efeae3);
  border-radius: 14px;
  box-shadow:
    0 14px 36px rgba(19, 27, 23, 0.12),
    0 2px 8px rgba(19, 27, 23, 0.04);
  z-index: 200;
  overflow: hidden;
}
.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}
.notif-mark-read {
  font-size: 11px;
  font-weight: 500;
  color: var(--cyan-dark, #00bfb8);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.notif-mark-read:hover {
  text-decoration: underline;
}
.notif-loading {
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 18px;
}
.notif-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.notif-empty i {
  font-size: 28px;
  margin-bottom: 8px;
  opacity: 0.5;
  display: block;
}
.notif-empty p {
  margin: 0;
}
.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-item:hover {
  background: var(--bg-light);
}
.notif-item.unread {
  background: #f0fffe;
}
.notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--cyan-dark, #00bfb8);
  flex-shrink: 0;
}
.notif-body {
  flex: 1;
  min-width: 0;
}
.notif-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-sub {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.notif-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 3px;
}

.user-avatar-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--text-primary);
  border: none;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: opacity 0.15s;
}

.user-avatar-btn:hover {
  opacity: 0.85;
}
.user-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* User menu dropdown */
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--border-light, #efeae3);
  border-radius: 14px;
  box-shadow:
    0 14px 36px rgba(19, 27, 23, 0.12),
    0 2px 8px rgba(19, 27, 23, 0.04);
  padding: 6px;
  overflow: hidden;
  z-index: 100;
}

.user-menu-header {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--border-light, #efeae3);
  margin-bottom: 4px;
}

.user-menu-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary, #131b17);
}
.user-menu-email {
  font-size: 12px;
  color: var(--text-muted, #56625c);
  margin-top: 2px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: all 0.14s ease;
  box-sizing: border-box;
}

.user-menu-item:hover {
  background: var(--bg-secondary, #faf7f2);
}
.user-menu-item.danger {
  color: #d0021b;
}

/* ── Sidebar ───────────────────────────────────────────────────────────────── */
.dash-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - 64px);
}

.dash-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #ffffff;
  border-right: 1px solid var(--border-light, #efeae3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: width 0.18s var(--ease, ease);
}

/* Scrollable nav-links region - separate from the sidebar container so the
   collapse toggle below can stay pinned and always reachable, even when
   there are enough links to overflow the available height. */
.sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-sidebar.collapsed {
  width: 68px;
}

.dash-sidebar.collapsed .sidebar-nav {
  padding: 16px 10px;
}

.dash-sidebar.collapsed .sidebar-link {
  justify-content: center;
  padding: 10px;
}

.dash-sidebar.collapsed .sidebar-label,
.dash-sidebar.collapsed .sidebar-section,
.dash-sidebar.collapsed .sidebar-badge {
  display: none;
}

.dash-sidebar.collapsed .sidebar-collapse-btn {
  justify-content: center;
  padding: 10px;
}

.dash-sidebar.collapsed .sidebar-collapse-btn svg {
  transform: rotate(180deg);
}

.sidebar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-collapse-btn {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-top: 1px solid var(--border-light);
  border-radius: 0;
  cursor: pointer;
  text-align: left;
}

.sidebar-collapse-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
}

.sidebar-collapse-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.sidebar-section {
  padding: 16px 8px 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Gmail / MD3 Style Big Action Button at top of sidebar ──────── */
.sidebar-fab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  height: 56px;
  min-height: 56px;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  padding: 0 24px 0 16px;
  margin: 6px 0 16px 2px;
  background-color: #FFE7DC;
  color: #8D2D16;
  font-family: 'Bricolage Grotesque', 'Google Sans', 'Roboto', var(--font-body, system-ui), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.1px;
  text-decoration: none;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: none !important;
  transition: background-color 150ms cubic-bezier(0.2, 0, 0, 1), transform 150ms cubic-bezier(0.2, 0, 0, 1);
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.sidebar-fab-btn:hover {
  background-color: #FFD5C2;
  color: #8D2D16;
  box-shadow: none !important;
  transform: translateY(-1px);
}

.sidebar-fab-btn:active {
  background-color: #FFC4AC;
  color: #8D2D16;
  box-shadow: none !important;
  transform: translateY(0);
}

.sidebar-fab-btn:focus-visible {
  outline: 2px solid #8D2D16;
  outline-offset: 2px;
  box-shadow: none !important;
}

.sidebar-fab-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #8D2D16;
  fill: currentColor;
  display: block;
}

.sidebar-fab-label {
  font-family: 'Bricolage Grotesque', var(--font-sans, sans-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.1px;
  color: #8D2D16;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-sidebar.collapsed .sidebar-fab-btn {
  width: 48px;
  height: 48px;
  min-height: 48px;
  min-width: 48px;
  padding: 0;
  margin: 4px auto 16px;
  justify-content: center;
  align-self: center;
  border-radius: 14px;
}

.dash-sidebar.collapsed .sidebar-fab-btn .sidebar-fab-label {
  display: none;
}

.dash-sidebar.collapsed .sidebar-fab-icon {
  width: 20px;
  height: 20px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition:
    background 0.12s,
    color 0.12s;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.sidebar-link:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: rgba(232, 89, 56, 0.1);
  color: var(--text-primary);
  font-weight: 600;
}

.sidebar-link.active svg {
  color: var(--cyan);
}

.sidebar-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  background: #FFD5C2;
  color: #8D2D16;
  padding: 1px 6px;
  border-radius: 100px;
  line-height: 18px;
}

/* ── Dashboard main ────────────────────────────────────────────────────────── */
.dash-main {
  flex: 1;
  overflow-y: auto;
  min-width: 0;
}

.dash-content {
  padding: 32px;
  max-width: 1100px;
}

.dash-page-header {
  margin-bottom: 28px;
}

.dash-page-header h1,
.dash-content h1,
.dash-greeting,
.dash-greeting > div,
.dash-greeting > h1,
#dash-greeting,
[class*="dash-greeting"] {
  font-size: 24px;
  font-weight: 500;
  font-family: var(--font-serif, Georgia, serif);
  color: var(--text-primary);
  margin-bottom: 4px;
}

.dash-greeting .material-symbols-outlined {
  font-family: "Material Symbols Outlined" !important;
  font-weight: normal !important;
}

.dash-subheading {
  font-size: 14px;
  color: var(--text-muted);
}

/* ── Modern Flat Metric Ribbon (Replacing separated box cards) ───────────── */
.metric-ribbon,
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  background: #ffffff;
  border-top: 1px solid var(--border-light, #efeae3);
  border-bottom: 1px solid var(--border-light, #efeae3);
  margin-bottom: 28px;
  border-radius: 0;
  gap: 0;
}

.metric-ribbon-item,
.metric-card {
  padding: 16px 20px;
  background: #ffffff;
  border: none;
  border-radius: 0;
  border-right: 1px solid var(--border-light, #efeae3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
}

.metric-ribbon-item:last-child,
.metric-card:last-child {
  border-right: none;
}

.metric-ribbon-item.interactive:hover {
  background: #fafafa;
}

.metric-ribbon-lbl,
.metric-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted, #71717a);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-ribbon-val,
.metric-value {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--text-primary, #131b17);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.metric-ribbon-meta,
.metric-change {
  font-size: 12px;
  color: var(--text-muted, #71717a);
  margin-top: 4px;
}

/* ── Modern Flat Open Surfaces (Replacing card-in-a-card boxes) ───────────── */
.section-card,
.open-panel {
  background: #ffffff;
  border: 1px solid var(--border-light, #efeae3);
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
}

.section-card-header,
.open-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light, #efeae3);
  background: #ffffff;
}

.section-card-title,
.open-panel-title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary, #131b17);
  margin: 0;
}

/* ── Modern High-Density Table System ────────────────────────────────────── */
.modern-table-wrap {
  background: #ffffff;
  border: 1px solid var(--border-light, #efeae3);
  border-radius: 12px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.modern-table thead tr {
  background: #ffffff;
  border-bottom: 1.5px solid var(--border-light, #efeae3);
}

.modern-table th {
  padding: 12px 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted, #71717a);
  white-space: nowrap;
}

.modern-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light, #efeae3);
  vertical-align: middle;
}

.modern-table tbody tr:last-child td {
  border-bottom: none;
}

.modern-table tbody tr:hover {
  background: #fafafa;
}

.cell-primary {
  font-weight: 600;
  color: var(--text-primary, #131b17);
}

.cell-sub {
  font-size: 12px;
  color: var(--text-muted, #71717a);
  margin-top: 2px;
}

.cell-numeric {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}

/* ── Modern Filter Toolbar & Controls ────────────────────────────────────── */
.filter-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-pill-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-light, #efeae3);
  border-radius: 8px;
  padding: 0 12px;
  height: 38px;
  flex: 1;
  min-width: 200px;
  transition: border-color 0.15s ease;
}

.search-pill-input-wrap:focus-within {
  border-color: var(--cyan, #e85938);
}

.search-pill-input-wrap input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  color: var(--text-primary, #131b17);
  width: 100%;
}

.segmented-control {
  display: inline-flex;
  background: #f4f4f5;
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}

.segmented-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--text-muted, #71717a);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.12s ease;
  text-decoration: none;
  white-space: nowrap;
}

.segmented-btn.active {
  background: #ffffff;
  color: #131b17;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.metric-change.positive {
  color: #007a33;
}
.metric-change.negative {
  color: #d0021b;
}

/* ── Empty state ───────────────────────────────────────────────────────────── */
.empty-state-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.empty-state-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-secondary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.empty-state-title {
  font-size: 20px;
  font-weight: 500;
  font-family: var(--font-serif);
  margin-bottom: 10px;
}

.empty-state-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ── Recent events table ───────────────────────────────────────────────────── */
.section-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}

.section-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
}

.section-card-title {
  font-size: 15px;
  font-weight: 600;
}

.event-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.event-list-item:last-child {
  border-bottom: none;
}
.event-list-item:hover {
  background: var(--bg-secondary);
}

.event-list-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg-secondary);
  flex-shrink: 0;
  overflow: hidden;
}

.event-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-list-info {
  flex: 1;
  min-width: 0;
}
.event-list-title {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-list-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.event-list-regs {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: right;
  flex-shrink: 0;
}

.event-list-regs small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

/* ── Onboarding checklist widget ───────────────────────────────────────────── */
.onboarding-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 320px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.14);
  z-index: 50;
  overflow: hidden;
}

.onboarding-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  user-select: none;
}

.onboarding-widget-title {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.onboarding-progress-pill {
  font-size: 11px;
  font-weight: 600;
  background: rgba(232, 89, 56, 0.12);
  color: var(--text-primary);
  padding: 2px 8px;
  border-radius: 100px;
}

.onboarding-widget-body {
  padding: 8px;
}

.onboarding-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.12s;
  cursor: pointer;
}

.onboarding-item:hover {
  background: var(--bg-secondary);
}

.onboarding-item-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.onboarding-item.done .onboarding-item-check {
  background: var(--success-bg);
  border-color: #007a33;
}

.onboarding-item-text {
  flex: 1;
}
.onboarding-item-title {
  font-size: 13px;
  font-weight: 500;
}
.onboarding-item-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}
.onboarding-item.done .onboarding-item-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.onboarding-progress-bar {
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  margin: 8px 8px 4px;
  overflow: hidden;
}

.onboarding-progress-fill {
  height: 100%;
  background: var(--cyan);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ── Org picker ────────────────────────────────────────────────────────────── */
.org-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.org-picker-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-primary);
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
  cursor: pointer;
}

.org-picker-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 4px 20px rgba(232, 89, 56, 0.15);
  transform: translateY(-1px);
}

.org-picker-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.org-picker-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.org-picker-info {
  flex: 1;
  min-width: 0;
}
.org-picker-name {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.org-picker-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}

.org-picker-role {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  flex-shrink: 0;
  text-transform: capitalize;
}

.org-picker-new-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: transparent;
  border: 2px dashed var(--border-color);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition:
    border-color 0.15s,
    color 0.15s;
  cursor: pointer;
}

.org-picker-new-card:hover {
  border-color: var(--cyan);
  color: var(--text-primary);
}

/* ── Org create form ───────────────────────────────────────────────────────── */
.org-create-wrap {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--bg-secondary);
}

.org-create-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 48px;
  width: 100%;
  max-width: 480px;
}

.org-create-step {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.org-slug-preview {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  font-family: var(--font-mono);
}

.org-slug-preview span {
  color: var(--text-primary);
  font-weight: 500;
}

/* ── Event Console Tab Bar System ────────────────────────────────────────── */
.event-tabs-bar {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border-light, #efeae3);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.event-tabs-bar::-webkit-scrollbar {
  display: none;
}
.event-tab-btn {
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 500;
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  color: var(--text-muted, #71717a);
  transition:
    color 0.14s ease,
    border-color 0.14s ease,
    background 0.14s ease;
  white-space: nowrap;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px 6px 0 0;
  outline: none;
  user-select: none;
  text-decoration: none;
}
.event-tab-btn:hover {
  color: var(--text-primary, #131b17);
  background: rgba(19, 27, 23, 0.04);
}
.event-tab-btn.active {
  border-bottom-color: var(--cyan, #e85938);
  color: var(--text-primary, #131b17);
  font-weight: 700;
  background: transparent;
}

/* ── Status badges ─────────────────────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill, 9999px);
  line-height: 1;
  white-space: nowrap;
  text-transform: capitalize;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  box-sizing: border-box;
}

.status-badge.pending,
.status-badge.awaiting,
.status-badge.in_review {
  background: #fef3c7;
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.18);
}
.status-badge.approved,
.status-badge.accepted {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: rgba(29, 78, 216, 0.18);
}
.status-badge.paid,
.status-badge.settled,
.status-badge.confirmed,
.status-badge.completed,
.status-badge.delivered {
  background: #dcfce7;
  color: #15803d;
  border-color: rgba(21, 128, 61, 0.18);
}
.status-badge.rejected,
.status-badge.cancelled,
.status-badge.declined,
.status-badge.failed {
  background: #fee2e2;
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.18);
}
.status-badge.live,
.status-badge.active {
  background: rgba(232, 89, 56, 0.12);
  color: #c84729;
  border-color: rgba(232, 89, 56, 0.22);
}
.status-badge.published {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.2);
}
.status-badge.draft,
.status-badge.ended,
.status-badge.inactive,
.status-badge.archived {
  background: #f3f4f6;
  color: #4b5563;
  border-color: rgba(75, 85, 99, 0.18);
}
.status-badge.upcoming {
  background: #f0fdf4;
  color: #166534;
  border-color: rgba(22, 101, 52, 0.18);
}
.status-badge.warning {
  background: rgba(255, 179, 0, 0.12);
  color: #7a5100;
  border-color: rgba(122, 81, 0, 0.18);
}

/* ── Mobile menu bar & responsive sidebar rules ────────────────────────────── */
@media (max-width: 768px) {
  .dash-topnav {
    height: 56px;
    padding: 0 12px;
    gap: 8px;
  }

  .dash-body {
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
  }

  .mobile-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .dash-topnav-logo {
    font-size: 24px;
    margin-right: 0;
  }

  .dash-topnav-links {
    display: none !important;
  }

  .dash-topnav-divider {
    height: 18px;
    margin: 0 2px;
  }

  /* Org switcher compact sizing on mobile */
  .org-switcher {
    flex-shrink: 1;
    min-width: 0;
  }

  .org-switcher-btn {
    max-width: 140px;
    padding: 4px 8px;
    font-size: 12px;
    gap: 6px;
  }

  .org-switcher-logo {
    width: 20px;
    height: 20px;
    font-size: 9px;
  }

  .org-switcher-dropdown {
    max-width: calc(100vw - 24px);
    width: 240px;
    left: 0;
  }

  /* Compact CTA: icon-only pill */
  .dash-topnav-cta {
    padding: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    margin-right: 0;
    box-shadow: 0 2px 6px rgba(19, 27, 23, 0.15);
  }

  .dash-topnav-cta svg {
    margin: 0 !important;
  }

  .dash-topnav-cta-label {
    display: none !important;
  }

  .dash-topnav-actions {
    gap: 4px;
  }

  .topnav-icon-btn {
    width: 34px;
    height: 34px;
  }

  .user-avatar-btn {
    width: 32px;
    height: 32px;
  }

  /* Notification dropdown centered on mobile */
  .notif-dropdown {
    position: fixed;
    top: 60px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  }

  /* User menu dropdown within screen */
  .user-menu-dropdown {
    right: 0;
    max-width: calc(100vw - 24px);
  }

  /* Sidebar drawer */
  .dash-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 45;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .dash-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 270px;
    max-width: 82vw;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    background: #ffffff;
    box-shadow: 6px 0 28px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
  }

  .dash-sidebar.open {
    transform: translateX(0);
  }

  .mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 16px;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
  }

  .mobile-sidebar-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    font-style: bold;
    color: #131b17;
    letter-spacing: -0.02em;
  }

  .mobile-sidebar-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(19, 27, 23, 0.06);
    color: #131b17;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
  }

  .mobile-sidebar-close:active {
    background: rgba(19, 27, 23, 0.14);
  }

  /* Collapse-to-rail is a desktop affordance only - mobile always uses the
     full-width slide-in overlay above. */
  .dash-sidebar.collapsed {
    width: 270px;
  }
  .dash-sidebar.collapsed .sidebar-nav {
    padding: 16px 12px;
  }
  .dash-sidebar.collapsed .sidebar-link {
    justify-content: flex-start;
    padding: 8px 10px;
  }
  .dash-sidebar.collapsed .sidebar-label,
  .dash-sidebar.collapsed .sidebar-section,
  .dash-sidebar.collapsed .sidebar-badge {
    display: block;
  }
  .dash-sidebar.collapsed .sidebar-label {
    display: inline;
  }
  .sidebar-collapse-btn {
    display: none;
  }

  .dash-content {
    padding: 16px 14px;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .onboarding-widget {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 12px;
  }
  .org-create-card {
    padding: 24px 16px;
  }
}

@media (max-width: 480px) {
  .dash-topnav {
    padding: 0 8px;
    gap: 6px;
  }

  .dash-topnav-divider {
    display: none;
  }

  .dash-topnav-logo {
    font-size: 24px;
  }

  .org-switcher-btn {
    max-width: 110px;
    padding: 3px 6px;
    font-size: 11.5px;
  }

  .dash-topnav-actions {
    gap: 3px;
  }

  .topnav-icon-btn {
    width: 32px;
    height: 32px;
  }

  .user-avatar-btn {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .dash-topnav {
    padding: 0 6px;
    gap: 4px;
  }

  .dash-topnav-logo {
    font-size: 24px;
  }

  .org-switcher-btn {
    max-width: 82px;
  }
}

/* ── Centered Modal Design System (matching Vendor Command Center style) ── */
.vd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(19, 27, 23, 0.65);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.vd-modal {
  background: #ffffff;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.24);
  position: relative;
  box-sizing: border-box;
  animation: vdModalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes vdModalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.vd-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.vd-modal-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  color: var(--text-primary, #131b17);
  letter-spacing: -0.3px;
}
.vd-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted, #71717a);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 6px;
  transition: all 140ms ease;
}
.vd-modal-close:hover {
  color: var(--text-primary, #131b17);
  background: var(--bg-secondary, #faf7f2);
}
.vd-form-group {
  margin-bottom: 18px;
}
.vd-form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #131b17);
  margin-bottom: 7px;
}
.vd-form-input,
.vd-form-textarea {
  width: 100%;
  border-radius: 10px;
  border: 1.5px solid var(--border-light, #efeae3);
  background: #ffffff;
  padding: 11px 14px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text-primary, #131b17);
  outline: none;
  box-sizing: border-box;
  transition: all 160ms ease;
}
.vd-form-input:focus,
.vd-form-textarea:focus {
  border-color: var(--cyan, #e85938);
  box-shadow: 0 0 0 3px rgba(232, 89, 56, 0.12);
}

/* ── Select Dropdown Menu & Select Event Field Bar ── */
select,
.form-select,
.vd-form-select,
.vd-event-select,
.aff-event-select,
.filter-select,
.ev-filter-select,
.vm-filter-select,
.goal-select,
.plan-select,
.bc-select {
  height: 44px;
  min-height: 44px;
  font-size: 13.5px;
  font-weight: 500;
  padding: 0 42px 0 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border-light, #efeae3);
  background: #ffffff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2356625C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E")
    no-repeat right 14px center;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  color: var(--text-primary, #131b17);
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(19, 27, 23, 0.03);
  transition: all 160ms ease;
}
.form-select,
.vd-form-select,
.vd-event-select {
  width: 100%;
}
.ev-filter-select,
.vm-filter-select,
.filter-select {
  width: auto;
  max-width: 100%;
}
select::-ms-expand,
.form-select::-ms-expand {
  display: none;
}
select:hover,
.form-select:hover,
.vd-form-select:hover,
.vd-event-select:hover,
.aff-event-select:hover,
.filter-select:hover,
.ev-filter-select:hover,
.vm-filter-select:hover {
  border-color: rgba(19, 27, 23, 0.28);
  background-color: var(--bg-secondary, #faf7f2);
}
select:focus,
.form-select:focus,
.vd-form-select:focus,
.vd-event-select:focus,
.aff-event-select:focus,
.filter-select:focus,
.ev-filter-select:focus,
.vm-filter-select:focus {
  border-color: var(--cyan, #e85938);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(232, 89, 56, 0.12);
}
.vd-event-select {
  font-weight: 600;
}
select option,
.form-select option,
.vd-form-select option,
.vd-event-select option,
.aff-event-select option,
.filter-select option,
.ev-filter-select option,
.vm-filter-select option {
  font-size: 13.5px;
  color: var(--text-primary, #131b17);
  background: #ffffff;
  padding: 8px 12px;
}

/* ── Page-Level Event Filter Toolbar ── */
.aff-event-filter-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.aff-filter-label {
  font-size: 12.5px;
  color: var(--text-muted, #56625c);
  font-weight: 600;
  white-space: nowrap;
}
.aff-event-select {
  height: 38px;
  font-size: 13px;
  font-weight: 600;
  padding: 0 36px 0 14px;
  border-radius: 9px;
  border: 1.5px solid var(--border-light, #efeae3);
  background: var(--bg-secondary, #faf7f2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2356625C' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  color: var(--text-primary, #131b17);
  min-width: 190px;
  max-width: 290px;
  text-overflow: ellipsis;
  box-sizing: border-box;
  font-family: inherit;
  outline: none;
  transition: all 160ms ease;
}
.aff-event-select:hover {
  border-color: rgba(19, 27, 23, 0.25);
  background-color: #ffffff;
}
.aff-event-select:focus {
  border-color: var(--cyan, #e85938);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(232, 89, 56, 0.12);
}
.aff-event-select.active {
  border-color: var(--cyan, #e85938);
  background-color: rgba(232, 89, 56, 0.06);
  color: var(--cyan-dark, #c84729);
  font-weight: 700;
}
.vd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill, 9999px);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all 160ms cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  white-space: nowrap;
  user-select: none;
  position: relative;
  box-sizing: border-box;
}
.vd-btn:hover {
  transform: translateY(-1px);
}
.vd-btn:active {
  transform: scale(0.98);
}
.vd-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 89, 56, 0.25);
}
.vd-btn:disabled,
.vd-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}
.vd-btn-accent {
  background: var(--primary, #e85938);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(232, 89, 56, 0.2);
}
.vd-btn-accent:hover {
  background: var(--primary-hover, #d44727);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(232, 89, 56, 0.28);
}
.vd-btn-accent:active {
  background: #c84729;
}
.vd-btn-primary {
  background: var(--primary-dark, #131b17);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(19, 27, 23, 0.12);
}
.vd-btn-primary:hover {
  background: #233029;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(19, 27, 23, 0.2);
}
.vd-btn-primary:active {
  background: #0e1411;
}
.vd-btn-outline,
.vd-btn-secondary {
  background: #ffffff;
  border: 1.5px solid var(--border-light, #efeae3);
  color: var(--text-primary, #131b17);
}
.vd-btn-outline:hover,
.vd-btn-secondary:hover {
  background: var(--bg-secondary, #faf7f2);
  border-color: rgba(19, 27, 23, 0.25);
  box-shadow: 0 2px 8px rgba(19, 27, 23, 0.05);
}
.vd-btn-outline:active,
.vd-btn-secondary:active {
  background: #efeae3;
}
.vd-btn-ghost {
  background: transparent;
  color: var(--text-secondary, #56625c);
  border: 1.5px solid transparent;
}
.vd-btn-ghost:hover {
  background: rgba(19, 27, 23, 0.05);
  color: var(--text-primary, #131b17);
}
.vd-btn-ghost:active {
  background: rgba(19, 27, 23, 0.09);
}
.vd-btn-danger {
  background: var(--danger, #c92a2a);
  color: #ffffff;
  border-color: transparent;
}
.vd-btn-danger:hover {
  background: #b02525;
  box-shadow: 0 4px 14px rgba(201, 42, 42, 0.25);
}
.vd-btn-danger:active {
  background: #961f1f;
}
.vd-btn-xs {
  height: 28px;
  padding: 0 10px;
  font-size: 11.5px;
  gap: 4px;
}
.vd-btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 12.5px;
  gap: 6px;
}
.vd-btn-lg {
  height: 52px;
  padding: 0 28px;
  font-size: 15px;
  gap: 10px;
}
.vd-btn-full {
  width: 100%;
}

/* ── Modern Progressive Form System (WordPress.com Inspired) ─────────────── */
.prog-wizard {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  background: #ffffff;
}

.prog-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.prog-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted, #71717a);
  text-decoration: none;
  cursor: default;
  transition: color 0.15s ease;
  user-select: none;
}

.prog-step.clickable {
  cursor: pointer;
}

.prog-step.clickable:hover {
  color: #131b17;
}

.prog-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #d1d5db;
  color: #71717a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  transition: all 0.15s ease;
}

.prog-step.active {
  color: #131b17;
  font-weight: 600;
}

.prog-step.active .prog-step-num {
  background: #131b17;
  border-color: #131b17;
  color: #ffffff;
  font-weight: 700;
}

.prog-step.completed {
  color: #131b17;
}

.prog-step.completed .prog-step-num {
  background: #131b17;
  border-color: #131b17;
  color: #ffffff;
}

.prog-step-divider {
  display: none !important;
}

.prog-header {
  text-align: center;
  margin-bottom: 32px;
}

.prog-title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 500;
  color: #131b17;
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}

.prog-subtitle {
  font-size: 15px;
  color: var(--text-muted, #71717a);
  margin: 0 auto;
  max-width: 500px;
  line-height: 1.6;
}

.prog-body {
  max-width: 500px;
  margin: 0 auto;
}

.prog-field {
  margin-bottom: 22px;
}

.prog-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #131b17;
  margin-bottom: 7px;
}

.prog-label .prog-optional {
  font-weight: normal;
  color: var(--text-muted, #71717a);
  font-size: 12.5px;
}

.prog-input,
.prog-select,
.prog-textarea {
  width: 100%;
  height: 48px;
  border: 1.5px solid #e4e4e7;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 15px;
  font-family: inherit;
  background: #ffffff;
  color: #131b17;
  outline: none;
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.prog-textarea {
  height: auto;
  min-height: 110px;
  padding: 12px 16px;
  line-height: 1.5;
  resize: vertical;
}

.prog-input:focus,
.prog-select:focus,
.prog-textarea:focus {
  border-color: var(--cyan, #e85938);
  box-shadow: 0 0 0 3px rgba(232, 89, 56, 0.15);
}

.prog-hint {
  font-size: 12.5px;
  color: var(--text-muted, #71717a);
  margin-top: 5px;
  line-height: 1.4;
}

.prog-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.prog-btn-primary {
  width: 100%;
  height: 48px;
  background: var(--cyan, #e85938);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-sizing: border-box;
}

.prog-btn-primary:hover {
  background: var(--cyan-hover, #d44727);
}

.prog-btn-primary:active {
  transform: translateY(1px);
}

.prog-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.prog-btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted, #71717a);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  text-decoration: none;
  transition: color 0.15s ease;
}

.prog-btn-back:hover {
  color: #131b17;
}

.prog-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1.5px solid #e4e4e7;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
  text-decoration: none;
  color: inherit;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.prog-option-card:hover {
  border-color: #131b17;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.prog-option-card.selected {
  border-color: var(--cyan, #e85938);
  background: rgba(232, 89, 56, 0.04);
}

.prog-option-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f4f4f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #131b17;
  flex-shrink: 0;
  margin-right: 14px;
}

.prog-option-body {
  flex: 1;
  min-width: 0;
}

.prog-option-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #131b17;
  margin: 0 0 2px;
}

.prog-option-sub {
  font-size: 13px;
  color: var(--text-muted, #71717a);
  margin: 0;
  line-height: 1.4;
}

.prog-option-arrow {
  color: #a1a1aa;
  flex-shrink: 0;
  margin-left: 12px;
}

/* -- Responsive Plan Feature Comparison Table ----------------- */
.compare-mobile-hint {
  display: none;
}
@media (max-width: 768px) {
  .compare-mobile-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 10px;
    background: rgba(19, 27, 23, 0.04);
    border-radius: 9999px;
    font-weight: 500;
  }
  .compare-mobile-hint .material-symbols-outlined {
    font-size: 15px;
    color: var(--cyan);
  }
}

.plan-compare-table {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(19, 27, 23, 0.04);
  scrollbar-width: thin;
  scrollbar-color: rgba(19, 27, 23, 0.16) transparent;
}
.plan-compare-table::-webkit-scrollbar {
  height: 6px;
}
.plan-compare-table::-webkit-scrollbar-track {
  background: transparent;
}
.plan-compare-table::-webkit-scrollbar-thumb {
  background: rgba(19, 27, 23, 0.16);
  border-radius: 9999px;
}
.plan-compare-table::-webkit-scrollbar-thumb:hover {
  background: rgba(19, 27, 23, 0.28);
}

.compare-head {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(95px, 1fr) minmax(95px, 1fr) minmax(95px, 1fr) minmax(105px, 1fr);
  min-width: 620px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  align-items: center;
}
.compare-head > div {
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.compare-head > div:first-child {
  justify-content: flex-start;
  position: sticky;
  left: 0;
  z-index: 4;
  background: var(--bg-secondary);
  padding-left: 20px;
}
.compare-head > div:first-child::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-light);
  box-shadow: 3px 0 6px rgba(19, 27, 23, 0.04);
}

.compare-row {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(95px, 1fr) minmax(95px, 1fr) minmax(95px, 1fr) minmax(105px, 1fr);
  min-width: 620px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  align-items: center;
  transition: background 0.12s ease;
}
.compare-row:last-child {
  border-bottom: none;
}
.compare-row:hover {
  background: var(--bg-secondary);
}
.compare-row > div {
  padding: 12px 14px;
}
.compare-row .feature-label {
  color: var(--text-secondary);
  font-weight: 500;
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  padding-left: 20px;
  padding-right: 14px;
  line-height: 1.4;
  transition: background 0.12s ease, color 0.12s ease;
}
.compare-row:hover .feature-label {
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.compare-row .feature-label::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-light);
  box-shadow: 3px 0 6px rgba(19, 27, 23, 0.04);
}

.compare-val {
  text-align: center;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}
.compare-val.yes {
  color: #22c55e;
}
.compare-val.no {
  color: var(--border-color);
}
.compare-val .material-symbols-outlined {
  font-size: 20px;
}

@media (max-width: 580px) {
  .compare-head {
    font-size: 12px;
  }
  .compare-head > div {
    padding: 10px 10px;
  }
  .compare-head > div:first-child {
    padding-left: 14px;
  }
  .compare-row {
    font-size: 12px;
  }
  .compare-row > div {
    padding: 10px 10px;
  }
  .compare-row .feature-label {
    padding-left: 14px;
    font-size: 12px;
  }
  .compare-val .material-symbols-outlined {
    font-size: 18px;
  }
}
