/* ========================================================================
   INTUITION CLUB — Custom Overrides (artofliving Design System)
   Built on Able Pro Bootstrap 5 design system.
   Enhanced with Modern Clean & Premium Dark/Light theme & micro-interactions.
   ======================================================================== */

/* ==================== Able Pro Theme Overrides ==================== */
:root {
  /* artofliving brand: gold accent */
  --pc-primary: #f6cb62;
  --pc-primary-rgb: 246, 203, 98;
  --bs-primary: #f6cb62;
  --bs-primary-rgb: 246, 203, 98;
  --bs-font-sans-serif: "Plus Jakarta Sans", "Inter", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --pc-sidebar-width: 240px; /* Compact sidebar width reduced from 280px */

  /* App Status Colors (artofliving palette) */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.12);
}

/* ==================== Sidebar Width & Layout Overrides ==================== */
.pc-sidebar,
.pc-sidebar .navbar-wrapper {
  width: var(--pc-sidebar-width, 240px);
}
.pc-sidebar .navbar-wrapper {
  background: #ffffff;
  border-right: 1px solid #edf2f7;
  box-shadow: 1px 0 10px rgba(0, 0, 0, 0.02);
  transition: background-color 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
body[data-pc-theme="dark"] .pc-sidebar .navbar-wrapper {
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  box-shadow: 1px 0 12px rgba(0, 0, 0, 0.05);
}

/* Sidebar Header / Logo area */
.pc-sidebar .m-header,
.pc-header .m-header {
  width: var(--pc-sidebar-width, 240px);
  height: 52px; /* Reduced from 64px */
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
body[data-pc-theme="dark"] .pc-sidebar .m-header {
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
}
.pc-sidebar .m-header .b-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.pc-sidebar .m-header .b-brand:hover {
  transform: scale(1.02);
}

/* Sidebar Scrollable Body */
.pc-sidebar .navbar-content {
  height: calc(100vh - 52px); /* Matched with 52px header */
  padding: 4px 0 16px;
  overflow: hidden;
  overflow-x: hidden;
}

/* Section Caption Headers */
.pc-sidebar .pc-caption {
  padding: 16px 16px 4px !important;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #94a3b8 !important;
}
body[data-pc-theme="dark"] .pc-sidebar .pc-caption {
  color: #64748b !important;
}
.pc-sidebar .pc-caption:first-child {
  padding-top: 6px !important;
}

/* Top-level Menu Items */
.pc-sidebar .pc-navbar > .pc-item {
  margin: 2px 8px;
}
.pc-sidebar .pc-navbar > .pc-item > .pc-link {
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #475569;
  border-radius: 8px;
  display: flex;
  align-items: center;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-decoration: none;
}
.pc-sidebar .pc-navbar > .pc-item > .pc-link::after {
  display: none !important;
}
body[data-pc-theme="dark"] .pc-sidebar .pc-navbar > .pc-item > .pc-link {
  color: #94a3b8;
}

/* Hover State */
.pc-sidebar .pc-navbar > .pc-item:not(.active) > .pc-link:hover {
  background: var(--ip-primary-soft, #fff7ed);
  color: var(--ip-primary, #ea580c);
}
body[data-pc-theme="dark"] .pc-sidebar .pc-navbar > .pc-item:not(.active) > .pc-link:hover {
  background: var(--ip-primary-soft, #fff7ed);
  color: var(--ip-primary, #ea580c);
}

/* Active State */
.pc-sidebar .pc-navbar > .pc-item.active > .pc-link {
  background: var(--ip-primary-soft, #fff7ed) !important;
  color: var(--ip-primary, #ea580c) !important;
  font-weight: 700;
  box-shadow: inset 3.5px 0 0 var(--ip-primary, #ea580c);
}
body[data-pc-theme="dark"] .pc-sidebar .pc-navbar > .pc-item.active > .pc-link {
  background: var(--ip-primary-soft, #fff7ed) !important;
  color: var(--ip-primary, #ea580c) !important;
  box-shadow: inset 3.5px 0 0 var(--ip-primary, #ea580c);
}

/* Icon Container */
.pc-sidebar .pc-micon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 9px;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}
.pc-sidebar .pc-micon svg,
.pc-sidebar .pc-micon i {
  width: 18px;
  height: 18px;
}
.pc-sidebar .pc-navbar > .pc-item > .pc-link:hover .pc-micon {
  transform: scale(1.08);
}
.pc-sidebar .pc-navbar > .pc-item.active > .pc-link .pc-micon {
  color: #b38600;
}
body[data-pc-theme="dark"] .pc-sidebar .pc-navbar > .pc-item.active > .pc-link .pc-micon {
  color: #f6cb62;
}

/* Text Label */
.pc-sidebar .pc-mtext {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dropdown Arrow / Chevron */
.pc-sidebar .pc-arrow {
  margin-left: auto;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease;
  float: none;
}
.pc-sidebar .pc-arrow i {
  width: 14px;
  height: 14px;
}
.pc-sidebar .pc-navbar > .pc-item > .pc-link:hover .pc-arrow {
  opacity: 0.9;
}
.pc-sidebar .pc-hasmenu.pc-trigger > .pc-link > .pc-arrow {
  transform: rotate(90deg);
  opacity: 1;
}

/* Submenu Hierarchy */
.pc-sidebar .pc-submenu {
  list-style: none;
  padding: 3px 0 4px 0;
  margin: 2px 0 4px 18px;
  border-left: 1.5px solid #e2e8f0;
  position: relative;
}
body[data-pc-theme="dark"] .pc-sidebar .pc-submenu {
  border-left-color: #334155;
}
.pc-sidebar .pc-submenu .pc-item {
  margin: 1px 0;
}
.pc-sidebar .pc-submenu .pc-link {
  padding: 5.5px 10px 5.5px 16px;
  font-size: 0.79rem;
  font-weight: 450;
  color: #64748b;
  border-radius: 6px;
  display: flex;
  align-items: center;
  position: relative;
  text-decoration: none;
  transition: all 0.15s ease;
}
.pc-sidebar .pc-submenu .pc-link::before {
  content: '';
  position: absolute;
  left: -1.5px;
  top: 50%;
  width: 6px;
  height: 1.5px;
  background: #cbd5e1;
  transform: translateY(-50%);
  transition: width 0.18s ease, background-color 0.18s ease;
}
body[data-pc-theme="dark"] .pc-sidebar .pc-submenu .pc-link::before {
  background: #475569;
}
.pc-sidebar .pc-submenu .pc-link:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.03);
}
.pc-sidebar .pc-submenu .pc-link:hover::before {
  width: 10px;
  background: #f6cb62;
}
body[data-pc-theme="dark"] .pc-sidebar .pc-submenu .pc-link:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.04);
}
.pc-sidebar .pc-submenu .pc-item.active > .pc-link {
  color: #b38600 !important;
  font-weight: 600;
  background: rgba(246, 203, 98, 0.12) !important;
}
.pc-sidebar .pc-submenu .pc-item.active > .pc-link::before {
  width: 10px;
  background: #f6cb62;
}
body[data-pc-theme="dark"] .pc-sidebar .pc-submenu .pc-item.active > .pc-link {
  color: #f6cb62 !important;
  background: rgba(246, 203, 98, 0.15) !important;
}

/* Badge Micro-Pill */
.pc-sidebar .pc-badge {
  margin-left: auto;
  margin-right: 2px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.2;
  float: none;
  background: #f6cb62 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 4px rgba(246, 203, 98, 0.35);
}

@media (min-width: 1025px) {
  .pc-header {
    left: var(--pc-sidebar-width, 240px);
  }
  .pc-container {
    margin-left: var(--pc-sidebar-width, 240px);
  }
  .pc-footer {
    margin-left: var(--pc-sidebar-width, 240px);
  }
  .page-header {
    left: var(--pc-sidebar-width, 240px);
  }
  .pc-sidebar.pc-sidebar-hide ~ .pc-header {
    left: 0 !important;
  }
  .pc-sidebar.pc-sidebar-hide ~ .pc-footer,
  .pc-sidebar.pc-sidebar-hide ~ .pc-container {
    margin-left: 0 !important;
  }
}

@media (max-width: 1024.98px) {
  .pc-sidebar {
    left: calc(-1 * var(--pc-sidebar-width, 240px));
  }
  .pc-sidebar.mob-sidebar-active {
    left: 0;
  }
}

/* Override Able Pro header background (sleek compact glass) */
.pc-header {
  height: 52px;
  min-height: 52px;
}
.pc-header .header-wrapper {
  min-height: 52px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
body[data-pc-theme="dark"] .pc-header .header-wrapper {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Compact modern footer styling */
.pc-footer {
  padding: 8px 16px !important;
  min-height: 40px;
}
.pc-footer .footer-wrapper {
  padding: 0 !important;
}

/* ==================== Design Tokens (Light Theme Default) ==================== */
:root {
  --primary: #f6cb62;
  --primary-dark: #b38600; /* accessible gold-ink on white */
  --primary-light: #fef5dd;
  --primary-bg: rgba(246, 203, 98, 0.12);
  --primary-glow: rgba(246, 203, 98, 0.35);
  --accent: #f6cb62;
  --accent-dark: #d4a843;
  --accent-light: rgba(246, 203, 98, 0.12);

  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #cbd5e1;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #fafcfd;
  --bg-sidebar: #0f172a;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  --radius-xs: 0.25rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 20px rgba(246, 203, 98, 0.35);
}

/* ==================== Design Tokens (Dark Theme Overrides) ==================== */
body[data-pc-theme="dark"] {
  --text-dark: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #334155;
  --bg-body: #090d16;
  --bg-card: #111827;
  --bg-card-hover: #162032;
  --bg-sidebar: #0f172a;
  --border-color: #1e293b;
  --border-light: #172234;

  --primary-dark: #f6cb62;
  --primary-light: #382d11;
  --primary-bg: rgba(246, 203, 98, 0.15);

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 20px 30px rgba(0, 0, 0, 0.55);
}

/* ==================== Base ==================== */
html {
  font-size: 14px; /* Reduced global UI scale from 16px to 14px for balanced density */
}

body {
  font-family: "Plus Jakarta Sans", "Inter", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global Content Container & Density */
.pc-container .pc-content {
  padding: 18px 24px;
  max-width: 1540px;
  margin: 0 auto;
}

.pc-content .card .card-body {
  padding: 1.15rem 1.25rem;
}

.pc-content .card .card-header {
  padding: 0.85rem 1.25rem;
}

.table > :not(caption) > * > * {
  padding: 0.55rem 0.75rem;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}
a:hover {
  color: #000;
  text-decoration: none;
  opacity: 0.9;
}
body[data-pc-theme="dark"] a:hover {
  color: #fff;
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-md);
  font-family: "Plus Jakarta Sans", "Inter", "Source Sans Pro", sans-serif;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* ==================== Layout: Bottom Bar clearance ==================== */
@media (max-width: 1024.98px) {
  .pc-container {
    padding-bottom: 88px;
  }
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}
.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs) var(--space-sm);
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 64px;
  transition: all 0.2s ease;
  gap: 2px;
  border: none;
  background: none;
}
.bottom-nav .nav-item i {
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}
.bottom-nav .nav-item:hover i {
  transform: translateY(-2px);
}
.bottom-nav .nav-item.active {
  color: var(--primary-dark);
}
.bottom-nav .nav-item.active i {
  color: var(--primary-dark);
}

/* ==================== Responsive: Unified Sidebar ==================== */
@media (min-width: 1025px) {
  .bottom-nav {
    display: none;
  }
}

/* ==================== Components: Header Avatar ==================== */
.pc-header .user-avtar {
  flex-shrink: 0;
  aspect-ratio: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* ==================== Components: Stat Cards ==================== */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(246, 203, 98, 0.4);
}
.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.stat-card:hover .stat-icon {
  transform: scale(1.08);
}
.stat-card .stat-icon.primary { background: var(--primary-bg); color: var(--primary-dark); border: 1px solid rgba(246, 203, 98, 0.2); }
.stat-card .stat-icon.success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }
.stat-card .stat-icon.warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.2); }
.stat-card .stat-icon.danger  { background: var(--danger-bg);  color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.2); }
.stat-card .stat-icon.info    { background: var(--info-bg);    color: var(--info); border: 1px solid rgba(59, 130, 246, 0.2); }
.stat-card .stat-content { flex: 1; }
.stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.stat-card .stat-value {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.stat-card .stat-change {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: var(--space-xs);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.stat-card .stat-change.up { color: var(--success); }
.stat-card .stat-change.down { color: var(--danger); }

/* ==================== Components: Badges ==================== */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.badge-status.pending   { background: var(--warning-bg); color: var(--warning); border-color: rgba(245, 158, 11, 0.25); }
.badge-status.approved  { background: var(--success-bg); color: var(--success); border-color: rgba(16, 185, 129, 0.25); }
.badge-status.rejected  { background: var(--danger-bg);  color: var(--danger); border-color: rgba(239, 68, 68, 0.25); }
.badge-status.active    { background: var(--success-bg); color: var(--success); border-color: rgba(16, 185, 129, 0.25); }
.badge-status.suspended { background: var(--danger-bg);  color: var(--danger); border-color: rgba(239, 68, 68, 0.25); }
.badge-status.flagged   { background: var(--warning-bg); color: var(--warning); border-color: rgba(245, 158, 11, 0.25); }
.badge-status.draft     { background: var(--info-bg);    color: var(--info); border-color: rgba(59, 130, 246, 0.25); }
.badge-status.submitted { background: var(--primary-bg); color: var(--primary-dark); border-color: rgba(246, 203, 98, 0.35); }
.badge-status.reviewed  { background: var(--success-bg); color: var(--success); border-color: rgba(16, 185, 129, 0.25); }

/* ==================== Components: Buttons ==================== */
.btn {
  border-radius: var(--radius-md);
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.55rem 1.15rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn:active {
  transform: scale(0.975);
}

.btn-primary {
  background: linear-gradient(135deg, #f6cb62 0%, #e8b93b 100%) !important;
  color: #1a1a1a !important;
  border: 1px solid rgba(246, 203, 98, 0.6) !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(246, 203, 98, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #f8d374 0%, #ebb22a 100%) !important;
  color: #000000 !important;
  box-shadow: 0 4px 14px rgba(246, 203, 98, 0.45);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-body);
}
.btn-outline:hover {
  background: var(--bg-body);
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}
.btn-ghost {
  background: transparent;
  color: var(--primary-dark);
  border: none;
}
.btn-ghost:hover {
  background: var(--primary-bg);
}
.btn-block {
  display: flex;
  width: 100%;
}

/* Action button variants */
.btn-view {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--primary-dark);
  border-radius: var(--radius-md);
}
.btn-view:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(246, 203, 98, 0.3);
}
.btn-edit {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--info);
  border-radius: var(--radius-md);
}
.btn-edit:hover {
  background: var(--info);
  color: #fff;
  border-color: var(--info);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
.btn-delete {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--danger);
  border-radius: var(--radius-md);
}
.btn-delete:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* ==================== Components: Forms ==================== */
.form-group {
  margin-bottom: var(--space-lg);
}
.form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}
.required {
  color: var(--danger);
  margin-left: 2px;
}
.form-text.error {
  color: var(--danger);
  font-size: 0.75rem;
}

/* jQuery Validate — inline error styling */
form label.error {
  color: var(--danger);
  font-size: 0.75rem;
  margin-top: 4px;
  display: block;
  font-weight: 500;
}
form input.error,
form select.error,
form textarea.error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.form-control, .form-select {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  background-color: var(--bg-card);
  padding: 0.6rem 0.9rem;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  background-color: var(--bg-card);
  color: var(--text-dark);
  box-shadow: 0 0 0 3px rgba(246, 203, 98, 0.25);
}

/* ==================== Components: Cards ==================== */
/* ONE canonical card surface. `.card` is the standard; `.glass-panel` is the
   legacy alias and renders identically, so every page shares one card style.
   The top accent bar is part of the surface (a background layer, so it clips
   cleanly to the rounded outline without needing overflow:hidden). */
.card,
.glass-panel {
  background-color: rgba(255, 255, 255, 0.78);
  background-image: var(--card-accent, linear-gradient(90deg, #f6cb62, #f59e0b));
  background-repeat: no-repeat;
  background-size: 100% 4px;
  background-position: top center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-header {
  background: transparent;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 700;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
}

/* ==================== Components: Tables ==================== */
.table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table th {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem var(--space-md);
  background: rgba(0, 0, 0, 0.015);
}
body[data-pc-theme="dark"] .table th {
  background: rgba(255, 255, 255, 0.02);
}
.table td {
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem var(--space-md);
  color: var(--text-body);
  vertical-align: middle;
}
.table th:first-child,
.table td:first-child {
  padding-left: var(--space-lg);
}
.table th:last-child,
.table td:last-child {
  padding-right: var(--space-lg);
}

/* ==================== Components: Progress ==================== */
.progress-bar-wrapper {
  background: var(--border-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  height: 8px;
  overflow: hidden;
}
.progress-bar-wrapper .fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #e5a812 0%, #f6cb62 100%);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-bar-wrapper .fill.success { background: linear-gradient(90deg, #059669 0%, #10b981 100%); }
.progress-bar-wrapper .fill.accent  { background: var(--accent); }
.progress-circle {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--pct) * 3.6deg), var(--border-light) 0);
  display: flex;
  align-items: center;
  justify-content: center;
}
.progress-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--bg-card);
}
.progress-circle .progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text-dark);
}

/* ==================== Components: Toast ==================== */
.toast-container {
  position: fixed;
  top: var(--space-xl);
  right: var(--space-xl);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  font-size: 0.875rem;
  font-weight: 500;
  min-width: 300px;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.toast i { color: var(--primary-dark); font-size: 1.25rem; flex-shrink: 0; }
.toast.success { background: var(--bg-card); border-left: 4px solid var(--success); }
.toast.success i { color: var(--success); }
.toast.error { background: var(--bg-card); border-left: 4px solid var(--danger); }
.toast.error i { color: var(--danger); }
.toast.warning { background: var(--bg-card); border-left: 4px solid var(--warning); }
.toast.warning i { color: var(--warning); }
.toast .toast-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.125rem;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}
.toast .toast-close:hover {
  color: var(--text-dark);
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

/* ==================== Components: Tabs ==================== */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: var(--space-lg);
}
.tabs .tab {
  padding: var(--space-md) var(--space-lg);
  border: none;
  background: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}
.tabs .tab:hover { color: var(--primary-dark); }
.tabs .tab.active { color: var(--primary-dark); font-weight: 700; }
.tabs .tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
}

/* ==================== Components: Timeline ==================== */
.timeline {
  position: relative;
  padding-left: var(--space-xl);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border-color);
}
.timeline-item {
  position: relative;
  padding-bottom: var(--space-lg);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  border: 2px solid var(--bg-card);
}
.timeline-item.done::before { background: var(--success); }
.timeline-item.current::before { background: var(--primary-dark); box-shadow: 0 0 0 4px var(--primary-bg); }
.timeline-item .timeline-title {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.875rem;
  margin-bottom: 2px;
}
.timeline-item .timeline-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ==================== Components: Modal ==================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: rgba(0,0,0,0.45) 0px 15px 15px -15px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-box .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
}
.modal-box .modal-header h5 {
  margin: 0;
  font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
}
.modal-box .modal-header .modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-muted);
}
.modal-box .modal-body { padding: var(--space-lg); }
.modal-box .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
}

/* ==================== Components: Empty State ==================== */
.empty-state {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-muted);
}
.empty-state i {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  color: var(--text-light);
}
.empty-state h4 {
  color: var(--text-body);
  font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}
.empty-state p {
  font-size: 0.875rem;
  max-width: 320px;
  margin: 0 auto;
}

/* ==================== Components: Stepper ==================== */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
}
.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}
.stepper-step::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}
.stepper-step:last-child::after { display: none; }
.stepper-step .step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  z-index: 1;
  position: relative;
}
.stepper-step.done .step-dot {
  background: var(--success);
  border-color: var(--success);
  color: #FFFFFF;
}
.stepper-step.current .step-dot {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #FFFFFF;
}
.stepper-step .step-label {
  margin-top: var(--space-xs);
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 80px;
}
.stepper-step.done .step-label,
.stepper-step.current .step-label {
  color: var(--text-dark);
  font-weight: 500;
}

/* ==================== Page Content ==================== */
.page-content {
  padding-bottom: var(--space-xl);
}

/* ==================== Breadcrumb ==================== */
.breadcrumb-item a {
  color: var(--text-muted);
}
.breadcrumb-item a:hover {
  color: var(--primary-dark);
}

/* ==================== Dropdowns ==================== */
.dropdown-menu {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.dropdown-item:hover {
  background: var(--primary-bg);
  color: var(--text-dark);
}

/* ==================== Sidebar ==================== */
.pc-sidebar .pc-caption label {
  color: #9a9a9a;
}
.pc-sidebar .pc-navbar .pc-item .pc-link {
  color: #555f6b;
}
.pc-sidebar .pc-navbar .pc-item.active .pc-link {
  color: var(--primary-dark);
}
.pc-sidebar .pc-navbar .pc-item .pc-link:hover {
  color: #1d2630;
}
body[data-pc-theme="dark"] .pc-sidebar .pc-caption label,
body[data-pc-theme="dark"] .pc-sidebar .pc-navbar .pc-item .pc-link {
  color: #a6a6a6;
}
body[data-pc-theme="dark"] .pc-sidebar .pc-navbar .pc-item.active .pc-link {
  color: var(--primary);
}
body[data-pc-theme="dark"] .pc-sidebar .pc-navbar .pc-item .pc-link:hover {
  color: #ffffff;
}

/* ==================== Alerts ==================== */
.alert-primary {
  background: var(--primary-bg);
  border: none;
  color: var(--primary-dark);
}

/* ==================== Utility ==================== */
.d-flex { display: flex; }
.d-none { display: none !important; }
.d-inline-flex { display: inline-flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1; }
.gap-xs  { gap: var(--space-xs); }
.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }
.gap-xl  { gap: var(--space-xl); }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.8125rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.w-100 { width: 100%; }
.rounded { border-radius: var(--radius-md); }
.overflow-auto { overflow: auto; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .page-content { padding-bottom: var(--space-md); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .table-wrapper { overflow-x: auto; }
  .stepper { flex-wrap: wrap; gap: var(--space-md); }
  .stat-card { flex-direction: column; text-align: center; align-items: center; }
}

/* ==================== Header Dropdowns: Notification + Avatar ==================== */
.pc-header .header-wrapper .ms-auto {
  position: relative;
}
.pc-header #notif-dropdown,
.pc-header .header-user-profile {
  position: relative;
}
.pc-header .dropdown-notification {
  min-width: 320px;
  width: 350px;
  max-width: calc(100vw - 30px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.08) !important;
  z-index: 1060 !important;
}
.pc-header .dropdown-user-profile {
  min-width: 280px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.08) !important;
  z-index: 1060 !important;
}
@media (min-width: 576px) {
  .pc-header #notif-dropdown .dropdown-notification,
  .pc-header .header-user-profile .dropdown-user-profile {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
  }
}
@media (max-width: 575.98px) {
  .pc-header #notif-dropdown .dropdown-notification,
  .pc-header .header-user-profile .dropdown-user-profile {
    position: fixed !important;
    top: 60px !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
  }
}
.pc-header .dropdown-notification .dropdown-header,
.pc-header .dropdown-notification .dropdown-body,
.pc-header .dropdown-user-profile .dropdown-header,
.pc-header .dropdown-user-profile .dropdown-body {
  padding: 12px 16px;
}
.pc-header .dropdown-notification .header-notification-scroll,
.pc-header .dropdown-user-profile .profile-notification-scroll {
  max-height: 340px !important;
  overflow-y: auto;
}


/* ==================== Animations ==================== */
@keyframes pulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.1); }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.animate-pulse {
  animation: pulse 3s linear infinite;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

/* ==================== Surface: Browser chrome & Focus ==================== */
::selection {
  background: var(--primary);
  color: #000;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
input, textarea, select {
  caret-color: var(--primary-dark);
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(246, 203, 98, 0.7); border-radius: 8px; border: 2px solid #fff; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }
* { scrollbar-width: thin; scrollbar-color: rgba(246, 203, 98, 0.7) transparent; }

/* ==================== Surface: Authentication ==================== */
.auth-main {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-body);
}
.auth-main::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 203, 98, 0.12) 0%, rgba(246, 203, 98, 0) 70%);
  pointer-events: none;
}
body[data-pc-theme="dark"] .auth-main::before {
  background: radial-gradient(circle, rgba(246, 203, 98, 0.08) 0%, rgba(246, 203, 98, 0) 70%);
}
.auth-main .auth-wrapper.v1 .auth-form .card {
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 0 1px 1px var(--border-color);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  z-index: 1;
}
body[data-pc-theme="dark"] .auth-main .auth-wrapper.v1 .auth-form .card {
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.08);
}

/* ==================== Reduced Motion ==================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==================== DataTables UI (simple-datatables / Able Pro look) ==================== */

/* Container & row layout inside card-body or table-responsive */
.card.table-card .dt-container,
.card.table-card .dataTables_wrapper,
.table-responsive .dt-container,
.table-responsive .dataTables_wrapper {
  padding: 0;
  width: 100%;
}

.dt-container .row,
.dataTables_wrapper .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Ensure top row (length & search) is a single flex row with space-between */
.dt-container > .row:first-child,
.dt-container .dt-layout-row:first-child,
.dt-container .row:has(.dt-length),
.dataTables_wrapper > .row:first-child {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  margin-bottom: 16px !important;
  padding: 8px 10px !important;
  gap: 12px !important;
}

/* Ensure bottom row (info & paging) is a single flex row with space-between */
.dt-container > .row:last-child,
.dt-container .dt-layout-row:last-child,
.dt-container .row:has(.dt-info),
.dataTables_wrapper > .row:last-child {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  margin-top: 16px !important;
  padding: 8px 10px !important;
  gap: 12px !important;
}

/* Prevent layout start/end cells in DT v2 from collapsing or breaking onto new lines */
.dt-container .dt-layout-start,
.dt-container .dt-layout-end {
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
}

.dt-container .dt-layout-start {
  justify-content: flex-start !important;
  margin-right: auto !important;
}

.dt-container .dt-layout-end {
  justify-content: flex-end !important;
  margin-left: auto !important;
}

/* --- Top Toolbar: Page Length Dropdown (Left) --- */
.dt-container .dt-length,
.dataTables_wrapper .dataTables_length {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.dt-container .dt-length label,
.dataTables_wrapper .dataTables_length label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.875rem !important;
  color: #5b6b79 !important;
  font-weight: 400 !important;
  margin: 0 !important;
}

.dt-container .dt-length select,
.dt-container .dt-length select.form-select,
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_length select.form-select {
  display: inline-block !important;
  width: auto !important;
  min-width: 64px !important;
  height: 38px !important;
  padding: 6px 28px 6px 12px !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #131920 !important;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%231d2630' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 14px 10px !important;
  border: 1px solid #bec8d0 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  margin: 0 !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

.dt-container .dt-length select:focus,
.dataTables_wrapper .dataTables_length select:focus {
  border-color: var(--bs-primary, #4680ff) !important;
  box-shadow: 0 0 0 1px var(--bs-primary, #4680ff) !important;
  outline: 0 !important;
}

/* --- Top Toolbar: Search Input (Right) --- */
.dt-container .dt-search,
.dataTables_wrapper .dataTables_filter {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  margin: 0 !important;
}

.dt-container .dt-search label,
.dataTables_wrapper .dataTables_filter label {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  font-size: 0 !important; /* Hide any unwanted label text like "Search:" */
}

.dt-container .dt-search input,
.dt-container .dt-search input.form-control,
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_filter input.form-control {
  display: inline-block !important;
  font-size: 0.875rem !important;
  color: #131920 !important;
  border: 1px solid #bec8d0 !important;
  border-radius: 8px !important;
  padding: 7px 14px !important;
  height: 38px !important;
  min-width: 220px !important;
  background-color: #ffffff !important;
  margin: 0 !important;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.dt-container .dt-search input::placeholder,
.dataTables_wrapper .dataTables_filter input::placeholder {
  color: #bec8d0 !important;
  opacity: 1 !important;
}

.dt-container .dt-search input:focus,
.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--bs-primary, #4680ff) !important;
  box-shadow: 0 0 0 1px var(--bs-primary, #4680ff) !important;
  background-color: #ffffff !important;
  outline: 0 !important;
}

/* --- Table Headers & Sorting --- */
.dt-container table.dataTable,
.dataTables_wrapper table.dataTable {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  margin: 0 !important;
}

.dt-container table.dataTable thead th,
.dataTables_wrapper table.dataTable thead th {
  border-bottom: 1px solid #d9d9d9 !important;
  border-top: none !important;
  padding: 10px 12px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  color: #131920 !important;
  vertical-align: middle !important;
}

.dt-container table.dataTable tbody td,
.dataTables_wrapper table.dataTable tbody td {
  padding: 10px 12px !important;
  border-bottom: 1px solid #f1f3f5 !important;
  border-top: none !important;
  vertical-align: middle !important;
  font-size: 0.875rem !important;
}

/* Restyle DT v2 sorting icons to match simple-datatables */
table.dataTable thead > tr > th span.dt-column-order {
  display: inline-block !important;
  vertical-align: middle !important;
  width: 12px !important;
  height: 16px !important;
  margin-left: 6px !important;
  position: relative !important;
}

table.dataTable thead > tr > th span.dt-column-order:before,
table.dataTable thead > tr > th span.dt-column-order:after {
  content: "" !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 4px solid transparent !important;
  border-right: 4px solid transparent !important;
  position: absolute !important;
  right: 0 !important;
  left: auto !important;
}

table.dataTable thead > tr > th span.dt-column-order:before {
  border-bottom: 4px solid #000 !important;
  border-top: 4px solid transparent !important;
  top: 1px !important;
  bottom: auto !important;
  opacity: 0.25 !important;
}

table.dataTable thead > tr > th span.dt-column-order:after {
  border-top: 4px solid #000 !important;
  border-bottom: none !important;
  bottom: 1px !important;
  top: auto !important;
  opacity: 0.25 !important;
}

table.dataTable thead > tr > th.dt-ordering-asc span.dt-column-order:before {
  opacity: 0.7 !important;
}

table.dataTable thead > tr > th.dt-ordering-desc span.dt-column-order:after {
  opacity: 0.7 !important;
}

/* --- Bottom Toolbar: Info text (Left) --- */
.dt-container .dt-info,
.dataTables_wrapper .dataTables_info {
  margin: 7px 0 !important;
  padding: 0 !important;
  font-size: 0.875rem !important;
  color: #5b6b79 !important;
  font-weight: 400 !important;
}

/* --- Bottom Toolbar: Pagination (Right) matching simple-datatables --- */
.dt-container .dt-paging,
.dataTables_wrapper .dataTables_paginate {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  justify-content: flex-end !important;
}

.dt-container .dt-paging ul.pagination,
.dataTables_wrapper .dataTables_paginate ul.pagination {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  gap: 2px !important;
  list-style: none !important;
}

.dt-container .dt-paging .page-item,
.dataTables_wrapper .dataTables_paginate .page-item {
  list-style: none !important;
  margin: 0 !important;
}

.dt-container .dt-paging .page-link,
.dataTables_wrapper .dataTables_paginate .page-link {
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  padding: 6px 12px !important;
  min-width: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: var(--text-body) !important;
  background-color: var(--bg-card) !important;
  background: var(--bg-card) !important;
  cursor: pointer !important;
  box-shadow: var(--shadow-xs) !important;
  text-decoration: none !important;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dt-container .dt-paging .page-link:hover,
.dataTables_wrapper .dataTables_paginate .page-link:hover {
  background-color: var(--primary-bg) !important;
  border-color: var(--primary) !important;
  color: var(--primary-dark) !important;
  transform: translateY(-1px);
}

/* Active page button: modern gold badge button */
.dt-container .dt-paging .page-item.active .page-link,
.dt-container .dt-paging .page-item.active .page-link:hover,
.dt-container .dt-paging .page-item.active .page-link:focus,
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link,
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link:hover,
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link:focus {
  background: var(--primary) !important;
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #1a1a1a !important;
  font-weight: 700 !important;
  cursor: default !important;
  box-shadow: 0 2px 8px rgba(246, 203, 98, 0.35) !important;
}

/* Disabled buttons (< and > when at bounds) */
.dt-container .dt-paging .page-item.disabled .page-link,
.dt-container .dt-paging .page-item.disabled .page-link:hover,
.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link,
.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link:hover {
  opacity: 0.4 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
  background-color: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  color: var(--text-muted) !important;
}


/* ==================== Components: Registration wizard ==================== */
#registerWizard ~ .mt-3 {
  margin-top: 1.25rem !important;
}
.auth-main .card-body:has(#registerWizard) {
  padding: 2rem 2.5rem;
}
#registerWizard .nav-pills {
  gap: 0.375rem;
}
#registerWizard .nav-pills .nav-link {
  padding: 0.4rem 0.625rem;
  gap: 4px;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}
#registerWizard .nav-pills .nav-link:not(.active):not(.done) {
  background: var(--bs-secondary-bg);
  color: var(--bs-body-color);
}
#registerWizard .nav-pills .nav-link:not(.active):not(.done):hover {
  background: var(--bs-tertiary-bg);
}
#registerWizard .nav-pills .nav-link.done {
  color: var(--bs-success);
  background: rgba(var(--bs-success-rgb), 0.08);
}
#registerWizard .tab-pane.active {
  animation: ic-fade-in 0.3s ease;
}
@keyframes ic-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
#registerWizard .tab-content .progress {
  background: var(--bs-secondary-bg);
}
#registerWizard .brand-review td:last-child {
  text-align: right;
}
#registerWizard .btn-secondary.disabled,
#registerWizard .btn-secondary:disabled {
  opacity: 0.35;
}
#registerWizard .form-check {
  padding-left: 0.5rem;
}
#registerWizard .form-check .form-check-input {
  width: 1.25em;
  height: 1.25em;
  margin-top: 0.1em;
}
#registerWizard .form-check .form-check-label {
  padding-left: 0.5rem;
}
#registerWizard .brand-review [data-jump] {
  opacity: 0.4;
  transition: opacity 0.15s ease;
}
#registerWizard .brand-review [data-jump]:hover {
  opacity: 1;
}
@media (max-width: 575.98px) {
  #registerWizard .wizard {
    flex-direction: column;
  }
  #registerWizard .wizard .btn {
    width: 100%;
  }
}

/* ========================================================================
   MEMBER APP SURFACES — shared components for member dashboards
   Built on the artofliving gold-on-white system (custom.css above).
   ======================================================================== */

/* Gold hero tile — the brand's signature display surface */
.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(246, 203, 98, 0.4);
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, #f6cb62 0%, #fae29c 50%, #fbebc4 100%);
  color: #1a1a1a;
  box-shadow: var(--shadow-md), 0 0 24px rgba(246, 203, 98, 0.2);
}
body[data-pc-theme="dark"] .hero-card {
  background: linear-gradient(135deg, #7c5d08 0%, #3e2d04 100%);
  border-color: rgba(246, 203, 98, 0.3);
  color: #f8fafc;
}
.hero-card::before {
  content: '';
  position: absolute;
  right: -3.5rem;
  top: -3.5rem;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
body[data-pc-theme="dark"] .hero-card::before {
  background: radial-gradient(circle, rgba(246,203,98,0.2) 0%, rgba(246,203,98,0) 70%);
}
.hero-card .card-body { position: relative; z-index: 1; padding: 1.25rem 1.5rem; }
.widget-card .card-body { padding: 1.25rem 1.5rem; }
.hero-card .hero-title { margin: 0; color: inherit; font-size: 1.15rem; letter-spacing: -0.01em; font-weight: 700; }
.hero-card .hero-metric { font-size: 2.35rem; font-weight: 800; line-height: 1.1; color: inherit; letter-spacing: -0.02em; }
.hero-card .hero-day { font-size: 1.75rem; font-weight: 800; line-height: 1; color: inherit; }
.hero-card .hero-sub { font-size: 0.85rem; opacity: 0.8; font-weight: 500; }
.hero-card .hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #111827;
  color: var(--primary);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.65rem 1.35rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}
.hero-card .hero-cta:hover { color: #fff; opacity: 0.95; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); text-decoration: none; }
.hero-card .hero-cta:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 2px; }
.hero-card .hero-stat { text-align: center; }
.hero-card .hero-stat .hero-stat-value { font-size: 1.1rem; font-weight: 800; color: inherit; }
.hero-card .hero-stat .hero-stat-label { font-size: 0.75rem; opacity: 0.8; font-weight: 600; }

/* Colored status notice (saved / completed / streak) */
.notice-card {
  border-radius: var(--radius-xl);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  border: 1px solid var(--border-color);
}
.notice-card.success { background: var(--success-bg); border-color: rgba(16, 185, 129, 0.25); }
.notice-card.gold { background: var(--primary-bg); border-color: rgba(246, 203, 98, 0.3); }
.notice-card .notice-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notice-card .notice-icon i { font-size: 1.35rem; }
.notice-card.success .notice-icon { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.notice-card.gold .notice-icon { background: var(--bg-card); color: var(--primary-dark); box-shadow: var(--shadow-xs); }
.notice-card .notice-title { font-weight: 700; font-size: 0.9rem; color: var(--text-dark); }
.notice-card .notice-sub { font-size: 0.8rem; color: var(--text-muted); }

/* Uniform card list rows */
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  transition: background-color 0.15s ease;
}
.list-row + .list-row { border-top: 1px solid var(--border-light); }
.list-row .list-label { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
.list-row .list-value { font-weight: 700; color: var(--text-dark); text-align: right; }

/* Small circular tinted icon chip */
.chip-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.chip-icon i { font-size: 1.1rem; }
.chip-icon.success { background: var(--success-bg); color: var(--success); }
.chip-icon.warning { background: var(--warning-bg); color: var(--warning); }
.chip-icon.info    { background: var(--info-bg); color: var(--info); }
.chip-icon.gold    { background: var(--primary-bg); color: var(--primary-dark); }
.chip-icon.danger  { background: var(--danger-bg); color: var(--danger); }

/* Large circular icon avatar (practice profiler, streak) */
.icon-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.icon-avatar i { font-size: 1.6rem; }
.icon-avatar.gold { background: var(--primary-bg); color: var(--primary-dark); border: 1.5px solid rgba(246, 203, 98, 0.3); }

/* Segmented choice buttons (daily practice) */
.choice-group { display: flex; gap: var(--space-sm); width: 100%; }
.choice-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.choice-btn:hover { border-color: var(--primary); color: var(--primary-dark); transform: translateY(-1px); }
.choice-btn.selected {
  background: linear-gradient(135deg, #f6cb62 0%, #e8b93b 100%);
  border-color: rgba(246, 203, 98, 0.8);
  color: #1a1a1a;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(246, 203, 98, 0.35);
}
.choice-btn.selected:hover { color: #000; }
.choice-btn:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 2px; }
.choice-btn:disabled { opacity: .5; cursor: default; }

/* Prediction answer options */
.option-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  margin-bottom: 0.65rem;
  cursor: pointer;
  background: var(--bg-card);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.option-card:hover { border-color: var(--primary); transform: translateX(2px); box-shadow: var(--shadow-xs); }
.option-card.selected { border-color: var(--primary); background: var(--primary-bg); box-shadow: 0 2px 10px rgba(246,203,98,0.25); }
.option-card input { width: 1.25rem; height: 1.25rem; accent-color: var(--primary-dark); flex-shrink: 0; }
.option-card label { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--text-dark); cursor: pointer; }

/* Leaderboard */
.rank-pill {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.rank-pill.gold   { background: linear-gradient(135deg, #f6cb62 0%, #e0aa1b 100%); color: #1a1a1a; border: 1.5px solid #f6cb62; }
.rank-pill.silver { background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%); color: #0f172a; border: 1.5px solid #cbd5e1; }
.rank-pill.bronze { background: linear-gradient(135deg, #fdba74 0%, #c2410c 100%); color: #ffffff; border: 1.5px solid #ea580c; }
.rank-pill.plain  { background: var(--bg-body); color: var(--text-muted); border: 1.5px solid var(--border-color); }
.lb-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) var(--space-lg); transition: background-color 0.15s ease; }
.lb-row + .lb-row { border-top: 1px solid var(--border-light); }
.lb-row.me { background: var(--primary-bg); border-left: 3px solid var(--primary); }
.lb-row .lb-rank { width: 32px; font-weight: 800; color: var(--text-muted); flex-shrink: 0; text-align: center; }
.lb-row .lb-rank.top-1 { color: #eab308; }
.lb-row .lb-rank.top-2 { color: #94a3b8; }
.lb-row .lb-rank.top-3 { color: #f97316; }
.lb-row .lb-face { flex-shrink: 0; }

/* Timer (challenge stopwatch) — tabular figures, no monospace costume */
.timer-text {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary-dark);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  text-align: center;
}

/* Loading shimmer */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--border-color);
  border-radius: var(--radius-md);
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: skeleton-shimmer 1.4s infinite;
}
@keyframes skeleton-shimmer { 100% { transform: translateX(100%); } }

/* Bottom nav active pill + safe-area for iOS home indicator */
.bottom-nav {
  height: auto;
  min-height: 64px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav .nav-item { position: relative; }
.bottom-nav .nav-item .nav-ico {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 28px;
  margin-bottom: 2px;
}
.bottom-nav .nav-item .nav-ico i { position: relative; z-index: 1; font-size: 1.3rem; }
.bottom-nav .nav-item.active .nav-ico::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary);
  border-radius: var(--radius-full);
}
.bottom-nav .nav-item.active .nav-ico i { color: #000; }

/* Challenge catalogue cards — lift + gold border on hover */
.chal-card { transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease; }
.chal-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-md); }

/* Page header title — consistent size across app pages */
.pc-content .page-header .page-header-title h2 { font-size: 1.5rem; letter-spacing: -0.01em; }
.pc-content .page-header { padding-bottom: var(--space-lg); }

/* ========================================================================
   RESPONSIVE DIVERGENCE — Desktop vs Mobile
   Mobile (<=1024px): touch-first, thumb-zone actions, tall targets, stacked cards.
   Desktop (>=1025px): pointer-first, persistent sidebar, dense grids, hover.
   Breakpoint matches the shell: bottom nav <1025px, fixed sidebar >=1025px.
   ======================================================================== */

/* --- Mobile: instant tap feedback (<50ms, touch-psychology) --- */
@media (max-width: 1024.98px) {
  .card, .stat-card, .list-row, .lb-row, .option-card, .choice-btn, .chal-card {
    transition: transform 0.1s ease, background-color 0.1s ease, border-color 0.1s ease, box-shadow 0.1s ease;
  }
  .card:active, .stat-card:active, .list-row:active, .lb-row:active,
  .option-card:active, .choice-btn:active, .chal-card:active {
    transform: scale(0.985);
  }
  .list-row:active, .lb-row:active { background: var(--primary-bg); }
  .choice-btn:active:not(.selected) { background: var(--primary-bg); border-color: var(--primary); }
  .option-card:active:not(.selected) { border-color: var(--primary); }

  /* Taller, thumb-friendly rows and targets */
  .list-row, .lb-row { padding-block: 0.875rem; }
  .option-card { min-height: 52px; }
  .choice-btn { min-height: 52px; }
}

/* --- Mobile only: primary actions pinned to the thumb zone --- */
@media (max-width: 1024.98px) {
  .sticky-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    z-index: 999;
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  }
  }

/* --- Desktop: inline actions, dense layouts, pointer hover --- */
@media (min-width: 1025px) {
  .sticky-actions {
    position: static;
    display: flex;
    gap: var(--space-sm);
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
  }
  .sticky-actions > * { flex: initial; }

  /* Stronger desktop typographic hierarchy */
  .pc-content .page-header .page-header-title h2 { font-size: 1.75rem; }

  /* Challenge catalogue: multi-column card grid on desktop (stacked on mobile) */
  .challenge-catalogue {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-md);
    align-items: start;
  }
  .challenge-catalogue .card { margin-bottom: 0; }

  /* Pointer hover affordance on list rows */
  .list-row:hover, .lb-row:hover { background: var(--primary-bg); }
}

@media (prefers-reduced-motion: reduce) {
  .card:active, .stat-card:active, .list-row:active, .lb-row:active,
  .option-card:active, .choice-btn:active, .chal-card:active { transform: none; }
}

/* ========================================================================
   NATIVE DENSITY — Mobile space reduction
   Tighter page + card spacing and 2-across tile grids on phones/tablets so
   surfaces read as a dense native app (multiple cards visible per screen)
   instead of an airy admin dashboard. Desktop untouched.
   ======================================================================== */

@media (max-width: 1024.98px) {
  /* Page shell: slimmer gutters + header rhythm */
  .pc-container .pc-content { padding-top: 10px; padding-left: 12px; padding-right: 12px; }
  .page-header { margin-left: 0; margin-right: 0; padding-top: 6px; }
  .pc-content .page-header { padding-bottom: 0.5rem; }
  .pc-content .page-header .breadcrumb { margin-bottom: 2px; }

  /* Multi-card tiles: keep 2-across instead of collapsing to full-width */
  .pc-content .grid { gap: 0.625rem; }
  .pc-content .grid-2, .pc-content .grid-3, .pc-content .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pc-content .grid.mb-4, .pc-content .card.mb-4, .pc-content .notice-card.mb-4 { margin-bottom: 0.625rem; }
  .pc-content > h5 { margin-bottom: 0.5rem; }

  /* Compact native cards: tighter bodies, smaller inset radius */
  .pc-content .card { border-radius: var(--radius-lg); }
  .pc-content .card .card-body { padding: 0.875rem 1rem; }
  .pc-content .card .card-header { padding: 0.6rem 1rem; }
  .pc-content .notice-card { padding: 0.75rem 1rem; gap: var(--space-sm); }
  .pc-content .list-row { padding: 0.75rem var(--space-md); }

  /* Stat cards: compact horizontal tiles (native dashboard tile) */
  .pc-content .stat-card { padding: 0.75rem 0.875rem; flex-direction: row; align-items: center; text-align: left; gap: var(--space-sm); border-radius: var(--radius-lg); }
  .pc-content .stat-card .stat-icon { width: 40px; height: 40px; font-size: 1.125rem; }
  .pc-content .stat-card .stat-value { font-size: 1.25rem; }
  .pc-content .stat-card .stat-label { font-size: 0.7rem; margin-bottom: 0; }

  /* Hero tile: tighter padding + inset radius → native banner */
  .pc-content .hero-card { border-radius: var(--radius-lg); }

  /* Challenge catalogue: 2-across compact tiles on mobile */
  .challenge-catalogue {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
    align-items: start;
  }
  .challenge-catalogue .card { margin-bottom: 0; }
  .challenge-catalogue .list-row,
  .pc-content .challenge-catalogue .list-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.375rem;
    padding: 0.75rem 0.875rem;
  }
  .challenge-catalogue .list-row .badge { align-self: flex-start; }
  .challenge-catalogue .chal-chevron { display: none; }
  .challenge-catalogue .list-row .text-sm {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Answer options pack into rows (segmented look) — a yes/no pair shares one row */
#qOptions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: stretch;
}
#qOptions .option-card {
  flex: 1 1 0;
  min-width: 0;
  margin-bottom: 0;
}
#qOptions .badge-status { flex-basis: 100%; }

.practice-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: .75rem 0; }
.practice-row + .practice-row { border-top: 1px solid var(--border-light); }
.practice-row .choice-group { flex: 1; min-width: 0; justify-content: flex-end; }
.practice-row .choice-btn { flex: 0 1 auto; min-width: 0; }
.pair-label { display: flex; align-items: center; gap: var(--space-sm); font-size: .8125rem; font-weight: 600; color: var(--text-muted); }
.pair-label i { font-size: 1rem; color: var(--primary-dark); }

/* ========================================================================
   DATA WIDGET SURFACES — widget styling lifted from the Able Pro
   "Data Widgets" reference (ui-ux-designs/widget/w_data.html) and adapted
   to the artofliving gold-on-white brand.
   Patterns: transaction feed rows (icon chip + lead + trailing value),
   widget-task progress cards (count badge + 8px bar + CTA), table-card
   leaderboard, feed rows with colored status dots.
   ======================================================================== */

/* Transaction / activity feed row — icon chip | lead + sub | trailing value */
.txn-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
}
.txn-row + .txn-row { border-top: 1px solid var(--border-light); }
.txn-row .txn-lead { flex: 1; min-width: 0; }
.txn-row .txn-title { font-weight: 600; font-size: 0.875rem; color: var(--text-dark); }
.txn-row .txn-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.txn-row .txn-value {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--success);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.txn-row .txn-value.positive { color: var(--success); }
.txn-row .txn-value.negative { color: var(--danger); }
.txn-row .txn-value.neutral  { color: var(--text-dark); }

/* Feed row variant — icon chip + text + trailing status (chips already exist) */
.feed-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
}
.feed-row + .feed-row { border-top: 1px solid var(--border-light); }

/* Widget-task progress card — count badge + thin 8px bar + CTA (w_data: Add new task) */
.widget-progress { margin-top: var(--space-sm); }
.widget-progress .widget-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
}
.widget-progress .progress-bar-wrapper { height: 8px; }
.widget-progress .progress-bar-wrapper .fill { background: var(--primary-dark); }

/* Table-card leaderboard — rank | member | points with hover (w_data: table-card) */
.lb-table { margin-bottom: 0; }
.lb-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-sm) var(--space-lg);
}
.lb-table tbody tr { transition: background-color 0.15s ease; }
.lb-table tbody tr:hover { background: var(--primary-bg); }
.lb-table tbody tr.me { background: var(--primary-bg); }
.lb-table td {
  padding: var(--space-sm) var(--space-lg);
  vertical-align: middle;
  border-color: var(--border-light);
}
.lb-table .lb-rank { width: 2.5rem; text-align: center; font-weight: 700; color: var(--text-muted); flex-shrink: 0; }
.lb-table .lb-rank.top-1 { color: #D4A927; }
.lb-table .lb-rank.top-2 { color: #9A9A9A; }
.lb-table .lb-rank.top-3 { color: #B5722C; }
.lb-table .lb-face { flex-shrink: 0; }
.lb-table .lb-pts {
  font-weight: 700;
  color: var(--primary-dark);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.lb-table td.lb-pts-cell { text-align: right; }

/* Data-detail row — icon chip + label + value (w_data: Payment History style) */
.data-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0.75rem var(--space-lg);
}
.data-row + .data-row { border-top: 1px solid var(--border-light); }
.data-row .list-label { flex: 1; }
.data-row .chip-icon { width: 2.25rem; height: 2.25rem; }
.data-row .chip-icon i { font-size: 1.125rem; }

/* Challenge catalogue card — count badge + chevron affordance */
.chal-card .chal-chevron { color: var(--text-muted); transition: color 0.15s ease, transform 0.15s ease; }
.chal-card:hover .chal-chevron { color: var(--primary-dark); transform: translateX(2px); }

/* Dense mobile variants (native look) */
@media (max-width: 1024.98px) {
  .txn-row, .feed-row, .data-row { padding: 0.75rem var(--space-md); }
  .lb-table thead th, .lb-table td { padding: 0.5rem var(--space-md); }
}

/* ==================== Social Challenge Arena Enhancements ==================== */
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.animate-pulse {
  animation: pulseBadge 1.8s infinite;
}
@keyframes pulseBadge {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.btn-link-dark.cheered {
  color: var(--primary-dark) !important;
  font-weight: 700;
}
.btn-link-dark.cheered i {
  color: #f59e0b !important;
}

.social-gallery-card {
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.social-gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.profile-tabs .nav-link {
  font-weight: 600;
  padding: 1rem 1.25rem;
  color: var(--text-muted);
  border: none;
  border-bottom: 2px solid transparent;
}
/* ========================================================================
   MODERN GLASSMORPHISM & INTERACTIVE CARDS DESIGN SYSTEM (LIST & ADD PAGES)
   ======================================================================== */

/* Glassmorphism Panel & Cards */
body[data-pc-theme="dark"] .card,
body[data-pc-theme="dark"] .glass-panel {
  background-color: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.card:hover,
.glass-panel:hover {
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

body[data-pc-theme="dark"] .card:hover,
body[data-pc-theme="dark"] .glass-panel:hover {
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

/* Glass Stat Widgets */
.glass-stat-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

body[data-pc-theme="dark"] .glass-stat-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.3);
}

.glass-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.08);
}

.glass-stat-card .stat-icon-orb {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  position: relative;
  flex-shrink: 0;
}

.stat-icon-orb.gold {
  background: linear-gradient(135deg, rgba(246, 203, 98, 0.25), rgba(217, 119, 6, 0.15));
  color: #b45309;
  border: 1px solid rgba(246, 203, 98, 0.4);
}
body[data-pc-theme="dark"] .stat-icon-orb.gold {
  color: #fbbf24;
}

.stat-icon-orb.blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.1));
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
body[data-pc-theme="dark"] .stat-icon-orb.blue {
  color: #60a5fa;
}

.stat-icon-orb.emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
body[data-pc-theme="dark"] .stat-icon-orb.emerald {
  color: #34d399;
}

.stat-icon-orb.purple {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(126, 34, 206, 0.1));
  color: #7e22ce;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
body[data-pc-theme="dark"] .stat-icon-orb.purple {
  color: #c084fc;
}

.stat-icon-orb.rose,
.stat-icon-orb.danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(185, 28, 28, 0.1));
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
body[data-pc-theme="dark"] .stat-icon-orb.rose,
body[data-pc-theme="dark"] .stat-icon-orb.danger {
  color: #f87171;
}

.stat-icon-orb.warning {
  background: linear-gradient(135deg, rgba(246, 203, 98, 0.25), rgba(217, 119, 6, 0.15));
  color: #b45309;
  border: 1px solid rgba(246, 203, 98, 0.4);
}
body[data-pc-theme="dark"] .stat-icon-orb.warning {
  color: #fbbf24;
}

.stat-icon-orb.info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.1));
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
body[data-pc-theme="dark"] .stat-icon-orb.info {
  color: #60a5fa;
}

.stat-icon-orb.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
body[data-pc-theme="dark"] .stat-icon-orb.success {
  color: #34d399;
}

.stat-icon-orb.primary {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(126, 34, 206, 0.1));
  color: #7e22ce;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
body[data-pc-theme="dark"] .stat-icon-orb.primary {
  color: #c084fc;
}

/* Glass Empty State */
.glass-empty-state,
.empty-glass-state {
  padding: 3rem 1.5rem;
  text-align: center;
}

/* Dynamic Interactive Toolbar */
.glass-toolbar {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

body[data-pc-theme="dark"] .glass-toolbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* View Switcher (List / Table <-> Cards Grid) */
.view-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(241, 245, 249, 0.8);
  padding: 2px;
  border-radius: 9px;
  border: 1px solid rgba(203, 213, 225, 0.6);
  height: 32px;
}

body[data-pc-theme="dark"] .view-switcher {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

.view-switcher .btn-view-toggle {
  border: none;
  background: transparent;
  padding: 0 9px;
  height: 26px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  cursor: pointer;
}

body[data-pc-theme="dark"] .view-switcher .btn-view-toggle {
  color: #94a3b8;
}

.view-switcher .btn-view-toggle.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

body[data-pc-theme="dark"] .view-switcher .btn-view-toggle.active {
  background: #334155;
  color: #f8fafc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Filter Pills */
.filter-pills-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
  flex-wrap: nowrap !important;
  -webkit-overflow-scrolling: touch;
}
.filter-pills-scroll::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.6);
  color: #475569;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body[data-pc-theme="dark"] .filter-pill {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(30, 41, 59, 0.4);
  color: #cbd5e1;
}

.filter-pill:hover {
  background: rgba(246, 203, 98, 0.15);
  border-color: rgba(246, 203, 98, 0.5);
  color: #b45309;
}

.filter-pill.active {
  background: #f6cb62;
  border-color: #f6cb62;
  color: #1e293b;
  box-shadow: 0 3px 10px rgba(246, 203, 98, 0.4);
}

.filter-pill .pill-count {
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 6px;
  border-radius: 10px;
}

.filter-pill.active .pill-count {
  background: rgba(0, 0, 0, 0.15);
  color: #0f172a;
}

/* Glass Interactive Search Box */
.glass-search-box {
  position: relative;
  min-width: 240px;
}

.glass-search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  font-size: 1rem;
  z-index: 2;
}

.glass-search-box input,
.glass-search-box .form-control {
  padding-left: 2.35rem !important;
  padding-right: 2.2rem !important;
  border-radius: 10px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.84rem;
  height: 34px !important;
  line-height: 32px !important;
  transition: all 0.2s ease;
}

body[data-pc-theme="dark"] .glass-search-box input {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.glass-search-box input:focus {
  border-color: #f6cb62;
  box-shadow: 0 0 0 3px rgba(246, 203, 98, 0.25);
  background: #ffffff;
}

body[data-pc-theme="dark"] .glass-search-box input:focus {
  background: rgba(15, 23, 42, 0.9);
}

.glass-search-box .search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  cursor: pointer;
  display: none;
  font-size: 0.9rem;
}

/* Interactive Bento / Card Grid */
.interactive-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  padding: 1.25rem;
}

.interactive-grid-card {
  position: relative;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.04);
  padding: 0.9rem 1.05rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

body[data-pc-theme="dark"] .interactive-grid-card {
  background: rgba(30, 41, 59, 0.65);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.3);
}

.interactive-grid-card:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 203, 98, 0.6);
  box-shadow: 0 16px 32px -8px rgba(246, 203, 98, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
}

body[data-pc-theme="dark"] .interactive-grid-card:hover {
  border-color: rgba(246, 203, 98, 0.4);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.6);
}

/* Top accent bar — part of the component, so EVERY grid card carries it.
   Colour comes from --card-accent (set by .accent-* below); gold by default. */
.interactive-grid-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, linear-gradient(90deg, #f6cb62, #f59e0b));
}

.interactive-grid-card.accent-blue    { --card-accent: linear-gradient(90deg, #3b82f6, #60a5fa); }
.interactive-grid-card.accent-emerald { --card-accent: linear-gradient(90deg, #10b981, #34d399); }
.interactive-grid-card.accent-purple  { --card-accent: linear-gradient(90deg, #a855f7, #c084fc); }

/* Serial number stamped on grid cards (see decorateGridSerials in view-helpers.js) */
.card-serial {
  align-self: flex-start;
  display: inline-block;
  margin: 0 0 0.35rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #64748b;
  background: rgba(100, 116, 139, 0.1);
  border-radius: 999px;
}

body[data-pc-theme="dark"] .card-serial {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.15);
}

.interactive-grid-card .card-header-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.interactive-grid-card .card-title-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

body[data-pc-theme="dark"] .interactive-grid-card .card-title-text {
  color: #f1f5f9;
}

.interactive-grid-card .card-body-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 0.65rem;
  flex-grow: 1;
}

body[data-pc-theme="dark"] .interactive-grid-card .card-body-desc {
  color: #94a3b8;
}

.interactive-grid-card .card-metric-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.interactive-grid-card .metric-chip {
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body[data-pc-theme="dark"] .interactive-grid-card .metric-chip {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.interactive-grid-card .card-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  margin-top: auto;
}

body[data-pc-theme="dark"] .interactive-grid-card .card-footer-actions {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* Modern Form Split-Screen Layout (Add / Edit Pages) */
.form-split-workspace {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 991.98px) {
  .form-split-workspace {
    grid-template-columns: 1fr;
  }
}

.form-glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04);
}

body[data-pc-theme="dark"] .form-glass-card {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.5);
}

.form-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

body[data-pc-theme="dark"] .form-section-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.form-section-header .section-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(246, 203, 98, 0.2);
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

body[data-pc-theme="dark"] .form-section-header .section-badge {
  color: #fbbf24;
}

.form-section-header h6 {
  margin: 0;
  font-weight: 700;
  color: #0f172a;
}

body[data-pc-theme="dark"] .form-section-header h6 {
  color: #f8fafc;
}

/* Real-Time Live Preview Panel */
.sticky-preview-wrapper {
  position: sticky;
  top: 84px;
}

.live-preview-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.85));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(246, 203, 98, 0.4);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 16px 40px -10px rgba(246, 203, 98, 0.15), 0 4px 16px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

body[data-pc-theme="dark"] .live-preview-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.75));
  border-color: rgba(246, 203, 98, 0.3);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
}

.live-preview-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(246, 203, 98, 0.2);
  border: 1px solid rgba(246, 203, 98, 0.5);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

body[data-pc-theme="dark"] .live-preview-tag {
  color: #fde68a;
}

.live-preview-tag .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  animation: pulseBadge 1.5s infinite;
}

/* Preset Template Chips */
.preset-templates-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.25rem;
}

.preset-chip {
  background: rgba(241, 245, 249, 0.9);
  border: 1px dashed rgba(203, 213, 225, 0.9);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

body[data-pc-theme="dark"] .preset-chip {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

.preset-chip:hover {
  background: rgba(246, 203, 98, 0.2);
  border-color: #f6cb62;
  color: #92400e;
}

body[data-pc-theme="dark"] .preset-chip:hover {
  color: #fde68a;
}

/* Empty State Illustration Aura */
.empty-glass-state {
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.empty-glass-state .empty-aura-orb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 203, 98, 0.25) 0%, rgba(246, 203, 98, 0) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #f59e0b;
  margin: 0 auto 1.25rem;
  border: 1px solid rgba(246, 203, 98, 0.3);
}

/* Action Floater Buttons */
.btn-action-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.9);
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0;
  transition: all 0.2s ease;
  vertical-align: middle;
  cursor: pointer;
  flex-shrink: 0;
}

body[data-pc-theme="dark"] .btn-action-icon {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.btn-action-icon:hover {
  background: #f6cb62;
  border-color: #f6cb62;
  color: #0f172a;
  transform: scale(1.08);
}

.btn-action-icon.danger {
  color: #ef4444;
}

.btn-action-icon.danger:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

.btn-action-icon.view:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
}

.btn-action-icon:disabled,
.btn-action-icon[disabled] {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
  box-shadow: none !important;
}

.btn-action-icon-sm {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 6px;
  font-size: 0.8rem;
}

.btn-action-icon i,
.btn-action-icon-sm i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Fallback support for .btn-icon buttons to guarantee icon visibility */
.btn.btn-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}
.btn.btn-icon i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

/* =========================================================
   TABLER ICON GLYPH ALIASES (Tabler v1.41.1 Compatibility)
   Ensures commonly used icon names always render valid glyphs.
   ========================================================= */
.ti.ti-coins:before, .ti-coins:before { content: "\eb82"; }
.ti.ti-sparkles:before, .ti-sparkles:before { content: "\ed38"; }
.ti.ti-calendar-check:before, .ti-calendar-check:before { content: "\ea52"; }
.ti.ti-buildings:before, .ti-buildings:before { content: "\ea4f"; }
.ti.ti-broadcast:before, .ti-broadcast:before { content: "\eccb"; }
.ti.ti-user-share:before, .ti-user-share:before { content: "\eb49"; }
.ti.ti-circle-check-filled:before, .ti-circle-check-filled:before { content: "\ea67"; }
.ti.ti-layout-dashboard:before, .ti-layout-dashboard:before { content: "\ea87"; }
.ti.ti-presentation-chart:before, .ti-presentation-chart:before { content: "\eb70"; }
.ti.ti-user-circle:before, .ti-user-circle:before { content: "\eb4d"; }
.ti.ti-help-circle:before, .ti-help-circle:before { content: "\eabf"; }
.ti.ti-network:before, .ti-network:before { content: "\eb9d"; }

/* Defensive Phosphor fallback bridge */
.ph, i[class^="ph-"]:not(.ph-duotone), i[class*=" ph-"]:not(.ph-duotone) {
  font-family: 'Phosphor-Duotone' !important;
  font-style: normal;
  display: inline-flex;
  line-height: 1;
}

/* ==================== Chapter & Date Range Filters ==================== */
.glass-filter-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 32px;
  min-height: 32px;
  padding: 0 1.75rem 0 0.65rem;
  line-height: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #334155;
  background-color: rgba(255, 255, 255, 0.85);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 11px 9px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 8px;
  transition: all 0.2s ease;
  min-width: 125px;
  cursor: pointer;
}

.glass-filter-select::-ms-expand {
  display: none;
}

.glass-filter-select:focus {
  border-color: #f6cb62;
  box-shadow: 0 0 0 3px rgba(246, 203, 98, 0.25);
  background-color: #ffffff;
  outline: 0;
}

body[data-pc-theme="dark"] .glass-filter-select {
  background-color: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

body[data-pc-theme="dark"] .glass-filter-select option {
  background-color: #1e293b;
  color: #f8fafc;
}

.glass-date-range-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 8px;
  padding: 0 6px;
  height: 32px;
  min-height: 32px;
  transition: all 0.2s ease;
}

body[data-pc-theme="dark"] .glass-date-range-wrap {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.12);
}

.glass-date-range-wrap:focus-within {
  border-color: #f6cb62;
  box-shadow: 0 0 0 3px rgba(246, 203, 98, 0.25);
  background: #ffffff;
}

body[data-pc-theme="dark"] .glass-date-range-wrap:focus-within {
  background: rgba(15, 23, 42, 0.9);
}

.glass-date-input {
  border: none !important;
  background: transparent !important;
  padding: 0 2px !important;
  font-size: 0.78rem !important;
  font-weight: 500;
  color: #334155 !important;
  height: auto !important;
  width: 105px;
  box-shadow: none !important;
  outline: none !important;
}

body[data-pc-theme="dark"] .glass-date-input {
  color: #f1f5f9 !important;
  color-scheme: dark;
}

.glass-date-sep {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
  user-select: none;
}

.btn-filter-clear {
  border: none;
  background: transparent;
  color: #94a3b8;
  padding: 2px 4px;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-filter-clear:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Notification & Account Dropdown Solid Background & Enhancements */
.dropdown-notification.pc-h-dropdown,
.dropdown-user-profile.pc-h-dropdown,
.pc-h-dropdown {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid #e2e8f0 !important;
}

body[data-pc-theme="dark"] .dropdown-notification.pc-h-dropdown,
body[data-pc-theme="dark"] .dropdown-user-profile.pc-h-dropdown,
body[data-pc-theme="dark"] .pc-h-dropdown {
  background: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6) !important;
}

.dropdown-notification .transition-all {
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.dropdown-notification .transition-all:hover {
  background: rgba(246, 203, 98, 0.12) !important;
  transform: translateX(2px);
}
body[data-pc-theme="dark"] .dropdown-notification .transition-all:hover {
  background: rgba(246, 203, 98, 0.15) !important;
}
.dropdown-notification .text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================================================
   PREMIUM PROPOSAL REVIEW QUEUE (Social Feed & Editorial Review Experience)
   ======================================================================== */

.proposal-review-card {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 18px;
  padding: 1.5rem 1.65rem;
  margin-bottom: 1.35rem;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

body[data-pc-theme="dark"] .proposal-review-card {
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.proposal-review-card:hover {
  transform: translateY(-3px);
  border-color: rgba(246, 203, 98, 0.55);
  box-shadow: 0 16px 36px -8px rgba(246, 203, 98, 0.12), 0 6px 20px rgba(0, 0, 0, 0.05);
}

body[data-pc-theme="dark"] .proposal-review-card:hover {
  border-color: rgba(246, 203, 98, 0.4);
  box-shadow: 0 18px 40px -8px rgba(0, 0, 0, 0.7);
}

/* Top Accent Line */
.proposal-review-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f6cb62, #f59e0b);
  opacity: 0.9;
}

.proposal-review-card.status-admin::before {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}
.proposal-review-card.status-published::before {
  background: linear-gradient(90deg, #10b981, #34d399);
}
.proposal-review-card.status-rejected::before {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

/* Proposer Avatar with Initials fallback */
.proposer-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(135deg, rgba(246, 203, 98, 0.25), rgba(217, 119, 6, 0.15));
  color: #b45309;
  border: 1px solid rgba(246, 203, 98, 0.4);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(246, 203, 98, 0.15);
}

body[data-pc-theme="dark"] .proposer-avatar-wrap {
  color: #fbbf24;
}

/* Status Chips with glow */
.badge-status-pill {
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
}

.badge-status-pill.submitted {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.3);
}
body[data-pc-theme="dark"] .badge-status-pill.submitted {
  color: #fbbf24;
}

.badge-status-pill.admin-review {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.3);
}
body[data-pc-theme="dark"] .badge-status-pill.admin-review {
  color: #60a5fa;
}

.badge-status-pill.published {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.3);
}
body[data-pc-theme="dark"] .badge-status-pill.published {
  color: #34d399;
}

.badge-status-pill.rejected {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.3);
}
body[data-pc-theme="dark"] .badge-status-pill.rejected {
  color: #f87171;
}

/* Subtle pulse dot in status badge */
.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.status-pulse-dot.pulse-amber {
  background: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: pulseAmber 2s infinite;
}
.status-pulse-dot.pulse-blue {
  background: #3b82f6;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  animation: pulseBlue 2s infinite;
}
.status-pulse-dot.pulse-green {
  background: #10b981;
}
.status-pulse-dot.pulse-red {
  background: #ef4444;
}

@keyframes pulseAmber {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@keyframes pulseBlue {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Editorial Title & Typography */
.proposal-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
body[data-pc-theme="dark"] .proposal-title {
  color: #f8fafc;
}

.proposal-description {
  font-size: 0.885rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 1.15rem;
}
body[data-pc-theme="dark"] .proposal-description {
  color: #94a3b8;
}

/* Feature & Meta Pills */
.proposal-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.85);
  padding: 5px 11px;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  transition: all 0.2s ease;
}
body[data-pc-theme="dark"] .proposal-meta-tag {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.proposal-meta-tag i {
  font-size: 0.95rem;
}

/* Verification Stepper in Card */
.approval-progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(246, 203, 98, 0.12);
  border: 1px solid rgba(246, 203, 98, 0.35);
  font-size: 0.75rem;
  font-weight: 700;
  color: #92400e;
}
body[data-pc-theme="dark"] .approval-progress-pill {
  color: #fde68a;
  background: rgba(246, 203, 98, 0.15);
}

.approval-dots-track {
  display: inline-flex;
  gap: 4px;
}
.approval-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(203, 213, 225, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.5);
  transition: all 0.2s ease;
}
.approval-dot.filled {
  background: #10b981;
  border-color: #059669;
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
}

/* Card Action Bar */
.proposal-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(226, 232, 240, 0.75);
}
body[data-pc-theme="dark"] .proposal-action-bar {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* Premium Buttons */
.btn-editorial {
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-editorial:active {
  transform: scale(0.97);
}

.btn-editorial-approve {
  background: #10b981;
  border: 1px solid #059669;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}
.btn-editorial-approve:hover {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.btn-editorial-reject {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}
.btn-editorial-reject:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: #ef4444;
  color: #dc2626;
}

.btn-editorial-view {
  background: transparent;
  border: 1px solid rgba(203, 213, 225, 0.85);
  color: #475569;
}
body[data-pc-theme="dark"] .btn-editorial-view {
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}
.btn-editorial-view:hover {
  background: rgba(241, 245, 249, 0.8);
  color: #0f172a;
}
body[data-pc-theme="dark"] .btn-editorial-view:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Policy Stepper Guide in Right Column */
.policy-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
  transition: all 0.2s ease;
}
.policy-step-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(3px);
}
.policy-step-badge {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #f6cb62;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ==================== Responsive View Switching (Desktop Table vs Mobile Cards) ==================== */
/* Explicit class-based switcher for pages rendering both DOM nodes (e.g., proposal review) */
.responsive-table-view {
  display: block;
}
.responsive-cards-view {
  display: none;
}

@media (max-width: 991.98px) {
  .responsive-table-view {
    display: none !important;
  }
  .responsive-cards-view {
    display: block !important;
  }
}



/* Glass Table Styling for Desktop Proposal Reviews */
.proposal-desktop-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.proposal-desktop-table thead th {
  background: rgba(248, 250, 252, 0.85);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  white-space: nowrap;
}

body[data-pc-theme="dark"] .proposal-desktop-table thead th {
  background: rgba(15, 23, 42, 0.6);
  color: #94a3b8;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.proposal-desktop-table tbody tr {
  transition: background-color 0.18s ease;
}

.proposal-desktop-table tbody tr:hover {
  background-color: rgba(246, 203, 98, 0.06);
}

body[data-pc-theme="dark"] .proposal-desktop-table tbody tr:hover {
  background-color: rgba(246, 203, 98, 0.08);
}

.proposal-desktop-table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  font-size: 0.85rem;
  color: #334155;
}

body[data-pc-theme="dark"] .proposal-desktop-table tbody td {
  border-bottom-color: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.proposal-desktop-table tbody tr:last-child td {
  border-bottom: none;
}

/* ========================================================================
   GLOBAL EXTRACTIONS: Profile, Prediction Builder, Choices, Register, Map
   ======================================================================== */

/* Profile Page */
.profile-cover-wrap {
  height: 96px;
  background: linear-gradient(135deg, rgba(246, 203, 98, 0.4) 0%, rgba(246, 203, 98, 0.1) 50%, rgba(15, 23, 42, 0.05) 100%);
  border-radius: 16px 16px 0 0;
  position: relative;
}
body[data-pc-theme="dark"] .profile-cover-wrap {
  background: linear-gradient(135deg, rgba(246, 203, 98, 0.25) 0%, rgba(30, 41, 59, 0.8) 100%);
}
.profile-avatar-container {
  margin-top: -48px;
  position: relative;
  display: inline-block;
}
.profile-main-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  object-fit: cover;
  background: var(--pc-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 2rem;
  color: #0f172a;
  transition: transform 0.2s ease;
}
body[data-pc-theme="dark"] .profile-main-avatar {
  border-color: #1e293b;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.avatar-select-item {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}
.avatar-select-item:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.avatar-select-item.active-avatar {
  border-color: var(--pc-primary);
  box-shadow: 0 0 0 3px rgba(246, 203, 98, 0.4);
  transform: scale(1.08);
}
.info-detail-box {
  padding: 12px 16px;
  background: rgba(248, 250, 252, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  transition: all 0.2s ease;
}
body[data-pc-theme="dark"] .info-detail-box {
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(51, 65, 85, 0.6);
}
.info-detail-box:hover {
  border-color: rgba(246, 203, 98, 0.4);
  background: rgba(248, 250, 252, 1);
}
body[data-pc-theme="dark"] .info-detail-box:hover {
  background: rgba(15, 23, 42, 0.7);
}
.security-rule-item {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.8);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 500;
}
body[data-pc-theme="dark"] .security-rule-item {
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(51, 65, 85, 0.6);
}

/* Prediction Builder Studio & Choices */
.builder-hero,
.choices-hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
}
.builder-hero::after,
.choices-hero::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
}
.builder-hero::after {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0) 70%);
}
.choices-hero::after {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0) 70%);
}
.builder-hero .badge-mode {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.q-card,
.q-choice-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}
body[data-pc-theme="dark"] .q-card,
body[data-pc-theme="dark"] .q-choice-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
}
.q-card:hover,
.q-choice-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.06);
}
.q-card.is-active {
  border-color: #4680ff;
  box-shadow: 0 0 0 1px #4680ff, 0 10px 25px -5px rgba(70, 128, 255, 0.15);
}
.q-card-header,
.q-choice-header {
  background: #f8fafc;
  border-bottom: 1px solid #edf2f7;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
body[data-pc-theme="dark"] .q-card-header,
body[data-pc-theme="dark"] .q-choice-header {
  background: #0f172a;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.q-number-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #4680ff;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(70, 128, 255, 0.35);
}
.q-type-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.q-type-badge.type-compound { background: #e0e7ff; color: #4338ca; }
.q-type-badge.type-dropdown { background: #e0f2fe; color: #0284c7; }
.q-type-badge.type-checkbox { background: #fef3c7; color: #d97706; }
.q-type-badge.type-free_text { background: #f3e8ff; color: #9333ea; }

.sub-part-card,
.sub-choice-box {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
  position: relative;
}
body[data-pc-theme="dark"] .sub-part-card,
body[data-pc-theme="dark"] .sub-choice-box {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
}
.sub-part-card:hover,
.sub-choice-box:hover {
  border-color: #cbd5e1;
}
.sub-part-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.type-choice-grid-sm {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}
.type-choice-btn-sm {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  min-width: 0;
  white-space: nowrap;
}
body[data-pc-theme="dark"] .type-choice-btn-sm {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
}
.type-choice-btn-sm:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
body[data-pc-theme="dark"] .type-choice-btn-sm:hover {
  background: #334155;
}
.type-choice-btn-sm.selected {
  border-color: #4680ff;
  background: #eff6ff;
}
body[data-pc-theme="dark"] .type-choice-btn-sm.selected {
  background: rgba(70, 128, 255, 0.2);
}
.type-choice-btn-sm .choice-icon-sm {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.type-choice-btn-sm.selected .choice-icon-sm {
  background: #4680ff;
  color: #fff;
}
.type-choice-btn-sm:not(.selected) .choice-icon-sm {
  background: #f1f5f9;
  color: #64748b;
}

.option-row-item,
.opt-chip-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
body[data-pc-theme="dark"] .option-row-item,
body[data-pc-theme="dark"] .opt-chip-item {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
}
.option-row-item:hover,
.opt-chip-item:hover {
  border-color: #cbd5e1;
}
.option-row-item.is-correct,
.opt-chip-item.is-answer-key {
  border-color: #10b981;
  background: #f0fdf4;
}
body[data-pc-theme="dark"] .option-row-item.is-correct,
body[data-pc-theme="dark"] .opt-chip-item.is-answer-key {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
}
.correct-toggle-wrap {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.correct-toggle-wrap.active {
  background: #d1fae5;
  color: #065f46;
}
.correct-toggle-wrap:not(.active) {
  background: #e2e8f0;
  color: #64748b;
}
.preset-btn-pill {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.preset-btn-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}
body[data-pc-theme="dark"] .preset-btn-pill {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.simulator-card {
  position: sticky;
  top: 90px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
body[data-pc-theme="dark"] .simulator-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
}
.simulator-screen {
  background: #f8fafc;
  min-height: 380px;
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  padding: 16px;
}
body[data-pc-theme="dark"] .simulator-screen {
  background: #0f172a;
}
.sim-q-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}
body[data-pc-theme="dark"] .sim-q-item {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
}
.sim-sub-item {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  padding: 12px;
  margin-top: 10px;
}
body[data-pc-theme="dark"] .sim-sub-item {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.05);
}
.sim-option-pill {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 5px;
  background: #ffffff;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
body[data-pc-theme="dark"] .sim-option-pill {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
}

.sim-option-pill.sim-answer {
  border-color: #34d399;
  background: #ecfdf5;
  color: #065f46;
  font-weight: 600;
}

.preset-toolbar {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 12px;
}
body[data-pc-theme="dark"] .preset-toolbar {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
}
.preset-chip-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}
.preset-chip-btn:hover {
  background: #4680ff;
  border-color: #4680ff;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(70, 128, 255, 0.25);
}
.preset-chip-btn.is-assigned {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}
.preset-chip-btn.is-assigned:hover {
  background: #0369a1 !important;
  border-color: #0369a1 !important;
  color: #ffffff !important;
}
body[data-pc-theme="dark"] .preset-chip-btn {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}
body[data-pc-theme="dark"] .preset-chip-btn.is-assigned {
  background: #0ea5e9 !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
}
#presetEditorOptions {
  resize: vertical !important;
  min-height: 120px;
  max-height: 600px;
  line-height: 1.5;
}
.bulk-paste-drawer {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
}
body[data-pc-theme="dark"] .bulk-paste-drawer {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.1);
}
.empty-builder-state {
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
  background: #f8fafc;
}
body[data-pc-theme="dark"] .empty-builder-state {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
}

/* Side-by-side Registration Layout — Full Page Desktop Experience */
body.auth-register-page {
  overflow-x: hidden;
}

.auth-register-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.auth-register-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-register-card {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 0 1px 1px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

body[data-pc-theme="dark"] .auth-register-card {
  background: #1e293b;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.08);
}

.auth-brand-side {
  background: linear-gradient(150deg, #fbf8f1 0%, #f4ede0 50%, #ede3d1 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body[data-pc-theme="dark"] .auth-brand-side {
  background: linear-gradient(150deg, #1e293b 0%, #0f172a 100%);
  border-right-color: rgba(255, 255, 255, 0.08);
}

.auth-form-side {
  background: #ffffff;
}

body[data-pc-theme="dark"] .auth-form-side {
  background: #1e293b;
}

.brand-logo-img {
  width: 175px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-logo-img:hover {
  transform: scale(1.02);
}

.brand-heading {
  font-size: 1.65rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.02em;
}

body[data-pc-theme="dark"] .brand-heading {
  color: #f8fafc;
}

.brand-subtext {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
}

body[data-pc-theme="dark"] .brand-subtext {
  color: #94a3b8;
}

/* Remove fixed 330px height and inline scroll in desktop mode */
.register-steps-container {
  height: auto;
  max-height: none;
  overflow: visible;
  padding: 0.25rem 0;
}

.register-steps-container .tab-pane {
  min-height: auto;
}

#teacherCheckboxes {
  background-color: #fafbfc;
  transition: border-color 0.2s ease;
}

body[data-pc-theme="dark"] #teacherCheckboxes {
  background-color: rgba(15, 23, 42, 0.4);
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.brand-review {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 10px;
  overflow: hidden;
}

.brand-review td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  vertical-align: middle;
}

.brand-review tr:last-child td {
  border-bottom: none;
}

body[data-pc-theme="dark"] .brand-review {
  border-color: rgba(255, 255, 255, 0.1);
}

body[data-pc-theme="dark"] .brand-review td {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.register-nav-pills {
  background: #f1f5f9;
  padding: 5px;
  border-radius: 12px;
  display: flex;
  gap: 6px;
}

body[data-pc-theme="dark"] .register-nav-pills {
  background: rgba(15, 23, 42, 0.6);
}

.register-nav-pills .nav-item {
  flex: 1 1 0;
}

/* Step tab pill styling & visibility fixes */
#registerWizard .register-nav-pills .nav-link {
  font-size: 0.85rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  font-weight: 500;
  color: #64748b !important;
  border: none;
  background: transparent !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  width: 100%;
}

#registerWizard .register-nav-pills .nav-link i {
  font-size: 1.15rem;
  line-height: 1;
  display: inline-block;
  color: inherit !important;
}

#registerWizard .register-nav-pills .nav-link .step-title {
  color: inherit !important;
  display: inline-block;
}

/* Fix active step tab pill text and icon visibility */
#registerWizard .register-nav-pills .nav-link.active,
.form-wizard .nav-pills#registerWizard .nav-link.active {
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
}

#registerWizard .register-nav-pills .nav-link.active i,
#registerWizard .register-nav-pills .nav-link.active span {
  color: #0f172a !important;
}

body[data-pc-theme="dark"] #registerWizard .register-nav-pills .nav-link.active {
  background-color: #334155 !important;
  color: #f8fafc !important;
}

body[data-pc-theme="dark"] #registerWizard .register-nav-pills .nav-link.active i,
body[data-pc-theme="dark"] #registerWizard .register-nav-pills .nav-link.active span {
  color: #f8fafc !important;
}

#registerWizard .register-nav-pills .nav-link.done {
  color: #16a34a !important;
  background-color: rgba(22, 163, 74, 0.08) !important;
}

#registerWizard .register-nav-pills .nav-link.done i,
#registerWizard .register-nav-pills .nav-link.done span {
  color: #16a34a !important;
}

/* Ensure password input within input-group has consistent padding & clean validation icon placement */
.input-group > .form-control.is-valid {
  padding-right: calc(1.5em + 1.6rem);
}

.input-group > .form-control:focus {
  z-index: 3;
}

/* Year Picker Dropdown & Highlighting */
.year-picker-group #courseYearInput {
  background-color: #ffffff;
  cursor: pointer;
}

body[data-pc-theme="dark"] .year-picker-group #courseYearInput {
  background-color: #1e293b;
}

.year-picker-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 290px;
  max-width: 100vw;
  background: #ffffff;
  z-index: 1050;
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 0 1px 1px rgba(0, 0, 0, 0.05) !important;
}

body[data-pc-theme="dark"] .year-picker-dropdown {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.5) !important;
}

.year-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.year-cell-btn {
  padding: 0.5rem 0.25rem;
  font-weight: 500;
  font-size: 0.85rem;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  transition: all 0.15s ease;
}

.year-cell-btn:hover:not(:disabled) {
  background: #e2e8f0;
  color: #0f172a;
}

/* Highlight Current Year: Distinct border & badge effect */
.year-cell-btn.is-current-year {
  border: 1.5px solid #f6cb62 !important;
  color: #b45309 !important;
  font-weight: 700 !important;
  background-color: #fffbeb !important;
}

body[data-pc-theme="dark"] .year-cell-btn.is-current-year {
  background-color: rgba(246, 203, 98, 0.12) !important;
  color: #f6cb62 !important;
}

/* Highlight Selected Year: Solid vibrant fill */
.year-cell-btn.is-selected-year {
  background: linear-gradient(135deg, #f6cb62 0%, #e8b93b 100%) !important;
  color: #000000 !important;
  border-color: #e8b93b !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(246, 203, 98, 0.4);
}

.btn-subtle-primary {
  background-color: rgba(246, 203, 98, 0.15);
  color: #854d0e;
  border: 1px solid rgba(246, 203, 98, 0.3);
  font-weight: 600;
}

.btn-subtle-primary:hover {
  background-color: #f6cb62;
  color: #000000;
}

body[data-pc-theme="dark"] .btn-subtle-primary {
  background-color: rgba(246, 203, 98, 0.12);
  color: #f6cb62;
  border-color: rgba(246, 203, 98, 0.25);
}

body[data-pc-theme="dark"] .year-cell-btn {
  background: #0f172a;
  border-color: #334155;
  color: #cbd5e1;
}

body[data-pc-theme="dark"] .year-cell-btn:hover:not(:disabled) {
  background: #334155;
  color: #f8fafc;
}

/* Refined wizard control buttons */
.auth-register-card .wizard button {
  min-width: 110px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-register-card #btnPrev {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
  color: #334155;
}

.auth-register-card #btnPrev:hover:not(:disabled) {
  background-color: #e2e8f0;
  color: #0f172a;
}

body[data-pc-theme="dark"] .auth-register-card #btnPrev {
  background-color: #334155;
  border-color: #475569;
  color: #cbd5e1;
}

/* Brand logo card badge styling */
.auth-brand-side .brand-logo-img {
  background-color: #ffffff;
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body[data-pc-theme="dark"] .auth-brand-side .brand-logo-img {
  background-color: #ffffff;
}

/* Desktop Static Alignment: Branding Panel & Bottom Wizard Controls */
@media (min-width: 992px) {
  .auth-register-card {
    min-height: 640px;
    height: auto;
  }
  .auth-register-grid {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 640px;
  }
  .auth-brand-side {
    position: static;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 640px;
    padding: 3rem 2.5rem !important;
  }
  .auth-form-side {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    min-height: 640px;
    padding: 2.5rem 3rem !important;
  }
  .register-wizard-form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
  }
  .register-steps-container {
    flex-grow: 1;
  }
  .wizard-bottom-controls {
    margin-top: auto !important;
    position: static;
  }
}

@media (max-width: 991.98px) {
  .auth-register-main {
    padding: 1rem 0.5rem;
    align-items: flex-start;
  }
  .auth-brand-side {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 2rem 1.5rem !important;
  }
  .auth-form-side {
    padding: 1.5rem 1.25rem !important;
  }
}
.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}
.success-overlay .success-box {
  text-align: center;
}
.success-overlay .success-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #2e7d32;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successPop 0.6s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.success-overlay .success-icon i {
  font-size: 62px;
  color: #fff;
}
@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Chapter Form Vector Map & Cursor */
.cursor-pointer { cursor: pointer; }
.jvm-tooltip { z-index: 1060 !important; }
.btn-xs { padding: 0.2rem 0.5rem; font-size: 0.75rem; border-radius: 0.25rem; }
.quick-tz-btn.active { background-color: var(--bs-primary); color: #fff; border-color: var(--bs-primary); }

/* ========================================================================
   GLOBAL PRINT ISOLATION: HIDE HEADER, FOOTER, SIDEMENU, CHROME
   ======================================================================== */
@media print {
  header,
  footer,
  aside,
  nav,
  .pc-header,
  .nexus-topbar,
  #nexusTopbar,
  .pc-sidebar,
  .nexus-rail,
  #nexusRail,
  .nexus-rail-footer,
  .nexus-mobile-dock,
  .bottom-nav,
  .pc-footer,
  .footer-wrapper,
  .page-header,
  .nexus-workspace-header,
  .nexus-breadcrumbs,
  .breadcrumb,
  .nexus-toolbar,
  .view-switcher,
  .btn,
  .btn-group,
  .loader-bg,
  .toast-container,
  .no-print {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  /* CRITICAL PRINT CONTAINER LIBERATION: Prevent 1-page viewport clipping */
  html,
  body,
  #nexusApp,
  .nexus-app,
  #nexusStage,
  .nexus-stage,
  .nexus-app .nexus-stage,
  #nexusCanvas,
  .nexus-canvas,
  .pc-container,
  .nexus-app .nexus-canvas.pc-container,
  .nexus-app .pc-container,
  .nexus-canvas-inner,
  .pc-content,
  .nexus-app .nexus-canvas-inner.pc-content,
  .nexus-app .pc-container .pc-content {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    position: static !important;
    display: block !important;
    float: none !important;
    flex: none !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
  }
}






