:root {
  /* Status Colors */
  --mtp-status-completed: #10b981;
  /* Green */
  --mtp-status-in-progress: #3b82f6;
  /* Blue */
  --mtp-status-locked: #9ca3af;
  /* Grey */
  --mtp-status-not-started: #f3f4f6;
  /* Light Neutral */

  /* Stage Accent Colors */
  --mtp-stage-1: #2563eb;
  /* Blue */
  --mtp-stage-2: #059669;
  /* Green */
  --mtp-stage-3: #d97706;
  /* Gold / Amber */
  --mtp-stage-4: #dc2626;
  /* Coral / Red */

  /* Text & General Colors */
  --mtp-color-text: #1f2937;
  --mtp-color-heading: #111827;
  --mtp-color-muted: #4b5563;
  --mtp-color-border: #e5e7eb;
  --mtp-color-bg: #f9fafb;
  --mtp-color-card: #ffffff;

  /* Typography for Seniors */
  --mtp-font-size-sm: 18px;
  --mtp-font-size-md: 22px;
  --mtp-font-size-lg: 28px;
  --mtp-font-size-xl: 36px;
  --mtp-font-size-xxl: 48px;

  /* Layout */
  --mtp-radius-sm: 8px;
  --mtp-radius-md: 16px;
  --mtp-radius-lg: 24px;
  --mtp-space-xs: 12px;
  --mtp-space-sm: 20px;
  --mtp-space-md: 32px;
  --mtp-space-lg: 48px;
  --mtp-shadow-sm:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --mtp-shadow-md:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* ======================================= */
  /* Sidebar Specific Variables              */
  /* ======================================= */
  --now-color-primary: #6d3bff;
  --now-color-primary-light: #8a5cff;
  --now-color-bg: #071633;
  --now-color-bg-secondary: #0b1e48;
  --now-color-surface: rgba(255, 255, 255, 0.06);
  --now-color-surface-hover: rgba(255, 255, 255, 0.12);
  --now-color-text: #ffffff;
  --now-color-text-muted: rgba(255, 255, 255, 0.75);
  --now-color-border: rgba(255, 255, 255, 0.08);

  --now-font-family: "Poppins", "Inter", sans-serif;
  --now-font-size-xs: 12px;
  --now-font-size-sm: 14px;
  --now-font-size-base: 16px;
  --now-font-size-md: 18px;
  --now-font-size-lg: 22px;
  --now-font-size-xl: 28px;
  --now-font-weight-normal: 400;
  --now-font-weight-medium: 500;
  --now-font-weight-semibold: 600;
  --now-font-weight-bold: 700;

  --now-space-xs: 4px;
  --now-space-sm: 8px;
  --now-space-md: 16px;
  --now-space-lg: 24px;
  --now-space-xl: 32px;
  --now-space-2xl: 48px;

  --now-radius-sm: 8px;
  --now-radius-md: 12px;
  --now-radius-lg: 16px;
  --now-radius-xl: 20px;
  --now-radius-pill: 999px;

  --now-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --now-shadow-md: 0 6px 20px rgba(0, 0, 0, 0.18);
  --now-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.25);

  --now-sidebar-width: 280px;
  --now-sidebar-collapsed-width: 80px;
  --now-menu-item-height: 52px;
  --now-avatar-size: 72px;
  --now-transition: all 0.3s ease;
}

.mtp-senior-friendly {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--mtp-color-text);
  background-color: var(--mtp-color-bg);
  padding: var(--mtp-space-md);
  border-radius: var(--mtp-radius-lg);
  line-height: 1.6;
}

.mtp-senior-friendly * {
  box-sizing: border-box;
}

/* Base Buttons */
.mtp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--mtp-radius-md);
  transition: all 0.2s;
  box-shadow: var(--mtp-shadow-sm);
  padding: 16px 24px;
  font-size: var(--mtp-font-size-md);
}

.mtp-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--mtp-shadow-md);
}

.mtp-btn-primary {
  background-color: #f7816e !important;
  color: white !important;
}

.mtp-btn-secondary {
  background-color: #f7816e;
  color: white !important;
  border: 2px solid #f7816e;
}

.mtp-btn-large {
  padding: 24px 32px;
  font-size: var(--mtp-font-size-lg);
}

.mtp-btn-disabled,
.mtp-btn:disabled {
  background-color: var(--mtp-color-border) !important;
  color: var(--mtp-color-muted) !important;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Header Sections */
.mtp-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0d1a48;
  padding: var(--mtp-space-md);
  border-radius: var(--mtp-radius-md);
  box-shadow: var(--mtp-shadow-sm);
  margin-bottom: var(--mtp-space-lg);
}

.mtp-app-brand {
  display: flex;
  align-items: center;
  gap: var(--mtp-space-sm);
  font-weight: 800;
  font-size: var(--mtp-font-size-lg);
  color: #fff;
}

.mtp-app-brand svg path {
  fill: #fff;
}

.mtp-app-user {
  font-size: var(--mtp-font-size-md);
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
}

.mtp-progress-badge {
  background: #0d1a48;
  color: white;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: var(--mtp-font-size-sm);
}

/* Matrix Dashboard Grid */
.mtp-matrix-dashboard {
  background: white;
  padding: var(--mtp-space-md);
  border-radius: var(--mtp-radius-lg);
  box-shadow: var(--mtp-shadow-md);
}

.mtp-matrix-header,
.mtp-matrix-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: var(--mtp-space-sm);
  margin-bottom: var(--mtp-space-sm);
}

.mtp-matrix-row,
.mtp-matrix-header {
  min-width: 1000px;
}

.mtp-matrix-rows,
.mtp-matrix-header-scroll {
  overflow: auto;
}

.mtp-matrix-header {
  font-weight: 800;
  font-size: var(--mtp-font-size-md);
  color: var(--mtp-color-heading);
  padding-bottom: var(--mtp-space-xs);
  border-bottom: 3px solid var(--mtp-color-border);
}

.mtp-matrix-header-cell {
  text-align: center;
  padding: 10px;
}

.mtp-matrix-header-cell:first-child {
  text-align: left;
}

.mtp-program-title-cell {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 22px;
  color: var(--mtp-color-heading);
  padding: var(--mtp-space-sm);
}

/* Stage Cards (Matrix Cells) */
.mtp-stage-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--mtp-space-sm);
  border-radius: var(--mtp-radius-md);
  border: 3px solid var(--mtp-color-border);
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  background-color: var(--mtp-color-card);
  position: relative;
  overflow: hidden;
}

.mtp-stage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mtp-shadow-md);
  border-color: var(--mtp-color-muted);
}

.mtp-stage-card-title {
  font-weight: 700;
  font-size: var(--mtp-font-size-md);
  color: var(--mtp-color-heading);
  margin-bottom: 8px;
}

.mtp-stage-card-step {
  font-size: var(--mtp-font-size-sm);
  color: var(--mtp-color-muted);
  margin-bottom: 12px;
}

.mtp-status-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: white;
}

/* Stage Cell Background/Border Accents based on Stage Number */
.mtp-stage-card.stage-col-1 {
  border-top: 6px solid var(--mtp-stage-1);
}

.mtp-stage-card.stage-col-2 {
  border-top: 6px solid var(--mtp-stage-2);
}

.mtp-stage-card.stage-col-3 {
  border-top: 6px solid var(--mtp-stage-3);
}

.mtp-stage-card.stage-col-4 {
  border-top: 6px solid var(--mtp-stage-4);
}

/* Status Styles inside Matrix Cells */
.mtp-stage-card.status-unlocked {
  /* background-color: #eff6ff; */
  border-color: #0d1a48;
}

.mtp-stage-card.status-unlocked .mtp-status-icon {
  background-color: #0d1a48;
}

.mtp-stage-card.status-locked,
.mtp-stage-card.upgrade {
  background-color: var(--mtp-status-not-started);
  border-color: var(--mtp-color-border);
  opacity: 0.7;
  pointer-events: none;
  cursor: not-allowed;
}

.mtp-stage-card.status-locked:hover,
.mtp-stage-card.upgrade:hover {
  transform: none;
  box-shadow: none;
}

.mtp-stage-card.status-locked .mtp-status-icon,
.mtp-stage-card.upgrade .mtp-status-icon {
  background-color: var(--mtp-status-locked);
}

.mtp-stage-card {
  text-decoration: none !important;
}

/* Stage Detail & Step Detail */
.mtp-back-link {
  margin-bottom: var(--mtp-space-md);
}

.mtp-back-btn {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: var(--mtp-font-size-md);
  color: var(--mtp-color-muted);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--mtp-radius-sm);
  border: 2px solid var(--mtp-color-border);
  box-shadow: var(--mtp-shadow-sm);
}

.mtp-page-header-card {
  background: white;
  padding: var(--mtp-space-lg);
  border-radius: var(--mtp-radius-md);
  box-shadow: var(--mtp-shadow-sm);
  margin-bottom: var(--mtp-space-md);
}

.mtp-breadcrumb {
  font-size: var(--mtp-font-size-sm);
  color: var(--mtp-color-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}

.mtp-page-title {
  font-size: var(--mtp-font-size-xxl);
  font-weight: 900;
  margin: 0 0 16px 0;
  color: var(--mtp-color-heading);
}

.mtp-step-progress-count {
  color: var(--mtp-color-text);
}

/* Steps List inside Stage Detail */
.mtp-steps-list {
  display: flex;
  flex-direction: column;
  gap: var(--mtp-space-md);
}

.mtp-step-row {
  display: flex;
  align-items: center;
  background: white;
  padding: 15px;
  border-radius: var(--mtp-radius-md);
  border: 3px solid #f7816e;
  box-shadow: var(--mtp-shadow-sm);
  gap: var(--mtp-space-md);
}

.mtp-step-row.is-active {
  border-color: #f7816e;
  box-shadow: var(--mtp-shadow-md);
  transform: scale(1.02);
}

.mtp-step-row.is-locked {
  opacity: 0.5;
  background: var(--mtp-color-bg);
  pointer-events: none;
  filter: grayscale(100%);
}

.mtp-step-number-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--mtp-font-size-xl);
  font-weight: 900;
  background: var(--mtp-color-bg);
  color: var(--mtp-color-muted);
  flex-shrink: 0;
}

.mtp-step-row.is-active .mtp-step-number-bubble {
  background: #f7816e;
  color: white;
}

.mtp-step-row.is-completed .mtp-step-number-bubble {
  background: #f7816e;
  color: white;
}

.mtp-step-info {
  flex-grow: 1;
}

.mtp-step-title {
  font-size: var(--mtp-font-size-xl);
  font-weight: 800;
  margin: 0 0 8px 0;
}

.mtp-step-meta {
  font-size: var(--mtp-font-size-md);
  color: var(--mtp-color-muted);
}

/* Task Checklists */
.mtp-tasks-list {
  display: flex;
  flex-direction: column;
  gap: var(--mtp-space-md);
}

.mtp-task-card {
  display: flex;
  align-items: center;
  background: white;
  padding: 15px;
  border-radius: var(--mtp-radius-lg);
  border: 4px solid var(--mtp-color-border);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--mtp-shadow-sm);
}

.mtp-task-card:hover {
  border-color: #f7816e;
  box-shadow: var(--mtp-shadow-md);
  transform: translateY(-4px);
}

.mtp-task-card.is-completed {
  background-color: #ecfdf5;
  border-color: var(--mtp-status-completed);
}

.mtp-task-checkbox {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  margin-right: var(--mtp-space-md);
}

.mtp-task-checkbox input {
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  cursor: pointer;
  z-index: 2;
}

.mtp-checkbox-visual {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  border: 4px solid var(--mtp-color-muted);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.mtp-task-checkbox input:checked+.mtp-checkbox-visual {
  background: var(--mtp-status-completed);
  border-color: var(--mtp-status-completed);
}

.mtp-checkbox-visual::after {
  content: "";
  display: none;
  width: 16px;
  height: 28px;
  border: solid white;
  border-width: 0 6px 6px 0;
  transform: rotate(45deg);
  margin-top: -6px;
}

.mtp-task-checkbox input:checked+.mtp-checkbox-visual::after {
  display: block;
}

.mtp-task-content {
  flex-grow: 1;
}

.mtp-task-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--mtp-color-heading);
}

.mtp-task-desc {
  font-size: var(--mtp-font-size-md);
  color: var(--mtp-color-muted);
}

/* Success Panel */
.mtp-success-panel {
  text-align: center;
  padding: var(--mtp-space-lg);
  border: 4px solid #f7816e;
  border-radius: var(--mtp-radius-lg);
  margin-top: var(--mtp-space-lg);
}

.mtp-success-icon {
  color: #f7816e;
  margin-bottom: var(--mtp-space-md);
}

.mtp-success-title {
  font-size: var(--mtp-font-size-xxl);
  font-weight: 900;
  color: #f7816e;
  margin: 0 0 var(--mtp-space-md) 0;
}

/* Mobile Accordion Logic */
.mtp-accordion-btn {
  display: none;
}

@media (max-width: 1024px) {
  .mtp-matrix-header {
    display: none;
  }

  .mtp-matrix-row {
    display: flex;
    flex-direction: column;
    background: white;
    border: 3px solid var(--mtp-color-border);
    border-radius: var(--mtp-radius-md);
    margin-bottom: var(--mtp-space-md);
    padding: var(--mtp-space-sm);
  }

  .mtp-matrix-row,
  .mtp-matrix-header {
    min-width: 100%;
  }


  .mtp-program-title-cell {
    background: var(--mtp-color-bg);
    border-radius: var(--mtp-radius-sm);
    justify-content: space-between;
    cursor: pointer;
  }

  .mtp-accordion-btn {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
    color: var(--mtp-color-muted);
  }

  .mtp-matrix-row:not(.is-expanded) .mtp-stage-card {
    display: none;
  }

  .mtp-matrix-stages {
    display: flex;
    flex-direction: column;
    gap: var(--mtp-space-sm);
    margin-top: var(--mtp-space-sm);
  }

  .mtp-stage-card {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: var(--mtp-space-md);
    padding: 12px 22px;
  }

  .mtp-status-icon {
    margin-bottom: 0;
    width: 38px;
    height: 38px;
  }

  .mtp-stage-card-title {
    margin-bottom: 4px;
  }

  .mtp-step-row {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .mtp-step-number-bubble {
    margin: 0 auto;
  }

  .mtp-step-row-actions .mtp-btn {
    width: 100%;
  }
}

/* ========================================================= */
/* PREMIUM SIDEBAR COMPONENT                                 */
/* ========================================================= */

.now-layout-main {
  display: flex;
  min-height: 100vh;
  background-color: var(--mtp-color-bg);
}

.container:has(.now-layout-main) .entry-title.main_title,
.container:has(.mtp-login-wrap) .entry-title.main_title {
  display: none;
}

.container:has(.now-layout-main),
.container:has(.mtp-login-wrap) {
  width: 100%;
  max-width: 100% !important;
  padding: 0 !important;
}

.mtp-stage-card.Completed {
  border-color: green;
  background: rgb(0 128 0 / 13%);
}

.mtp-stage-card.Completed .mtp-status-icon {
  background: green;
}

.now-layout-content {
  min-width: 0;
  margin: 60px 0 60px 30px;
  transition: var(--now-transition);
  width: 100%;
  max-width: 100%;
}

footer,
header {
  display: none !important;
}

.now-sidebar {
  position: sticky;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--now-sidebar-width);
  background-color: #0d1a48;
  color: var(--now-color-text);
  font-family: var(--now-font-family);
  display: flex;
  flex-direction: column;
  box-shadow: var(--now-shadow-lg);
  z-index: 1000;
  transition: var(--now-transition);
  overflow-y: auto;
  min-width: 280px;
  height: 100vh;
}

.now-sidebar::-webkit-scrollbar {
  width: 6px;
}

.now-sidebar::-webkit-scrollbar-thumb {
  background: var(--now-color-surface-hover);
  border-radius: var(--now-radius-pill);
}

/* BRAND */
.now-sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--now-space-sm);
  padding: var(--now-space-xl) var(--now-space-lg);
  border-bottom: 1px solid var(--now-color-border);
}

.now-sidebar__brand-icon {
  color: #fff;
  flex-shrink: 0;
}

.now-sidebar__brand-text {
  font-size: var(--now-font-size-lg);
  font-weight: var(--now-font-weight-bold);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

/* PROFILE */
.now-sidebar__profile {
  display: flex;
  align-items: center;
  gap: var(--now-space-md);
  margin: var(--now-space-lg);
  padding: var(--now-space-md);
  background-color: var(--now-color-surface);
  border-radius: var(--now-radius-lg);
  box-shadow: var(--now-shadow-sm);
  border: 1px solid var(--now-color-border);
}

.now-sidebar__avatar {
  width: var(--now-avatar-size);
  height: var(--now-avatar-size);
  border-radius: var(--now-radius-pill);
  background-color: var(--now-color-bg-secondary);
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--now-color-surface-hover);
}

.now-sidebar__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.now-sidebar__profile-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.now-sidebar__profile-welcome {
  font-size: var(--now-font-size-xs);
  color: var(--now-color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.now-sidebar__profile-name {
  font-size: var(--now-font-size-base);
  font-weight: var(--now-font-weight-bold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.now-sidebar__profile-type {
  font-size: var(--now-font-size-xs);
  color: #fff;
  font-weight: var(--now-font-weight-semibold);
}

/* MENU */
.now-sidebar__menu {
  display: flex;
  flex-direction: column;
  gap: var(--now-space-xs);
  padding: 0 var(--now-space-lg);
  /* flex: 1; */
}

.now-sidebar__item {
  display: flex;
  align-items: center;
  gap: var(--now-space-md);
  height: var(--now-menu-item-height);
  padding: 0 var(--now-space-md);
  border-radius: var(--now-radius-md);
  color: var(--now-color-text-muted);
  text-decoration: none;
  transition: var(--now-transition);
  font-size: var(--now-font-size-base);
  font-weight: var(--now-font-weight-medium);
  position: relative;
}

.now-sidebar__item:hover {
  background-color: var(--now-color-surface);
  color: var(--now-color-text);
}

.now-sidebar__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  opacity: 0.8;
  transition: var(--now-transition);
}

.now-sidebar__item:hover .now-sidebar__icon {
  opacity: 1;
}

.now-sidebar__item-text {
  flex: 1;
  white-space: nowrap;
}

/* ACTIVE ITEM */
.now-sidebar__item--active {
  background: #4c5687;
  color: #ffffff !important;
  box-shadow: var(--now-shadow-md);
}

.now-sidebar__item--active .now-sidebar__icon {
  opacity: 1;
}

/* BADGE */
.now-sidebar__badge {
  background-color: var(--now-color-primary);
  color: #ffffff;
  font-size: var(--now-font-size-xs);
  font-weight: var(--now-font-weight-bold);
  min-width: 24px;
  height: 24px;
  border-radius: var(--now-radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-shadow: var(--now-shadow-sm);
}

.now-sidebar__item--active .now-sidebar__badge {
  background-color: #ffffff;
  color: var(--now-color-primary);
}

/* FOOTER & MOTIVATION */
.now-sidebar__footer {
  padding: var(--now-space-lg);
  /* margin-top: auto; */
}

.now-sidebar__motivation {
  background: linear-gradient(135deg,
      rgba(109, 59, 255, 0.15) 0%,
      rgba(138, 92, 255, 0.05) 100%);
  border: 1px solid rgba(109, 59, 255, 0.3);
  border-radius: var(--now-radius-lg);
  padding: var(--now-space-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--now-space-sm);
  margin-bottom: var(--now-space-lg);
  box-shadow: inset 0 0 20px rgba(109, 59, 255, 0.05);
}

.now-sidebar__motivation-icon {
  font-size: 24px;
  background-color: rgba(109, 59, 255, 0.2);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--now-radius-pill);
}

.now-sidebar__motivation-title {
  font-size: var(--now-font-size-sm);
  color: var(--now-color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.now-sidebar__motivation-subtitle {
  font-size: var(--now-font-size-lg);
  font-weight: var(--now-font-weight-bold);
  line-height: 1.2;
  color: #fff;
}

.now-sidebar__motivation-desc {
  font-size: var(--now-font-size-sm);
  color: var(--now-color-text-muted);
  margin-top: 4px;
}

/* MOBILE TOGGLE & OVERLAY */
.now-sidebar-toggle {
  display: none;
  position: fixed;
  top: var(--now-space-md);
  left: var(--now-space-md);
  z-index: 1001;
  background: var(--now-color-bg);
  color: var(--now-color-text);
  border: none;
  border-radius: var(--now-radius-md);
  padding: 12px;
  cursor: pointer;
  box-shadow: var(--now-shadow-md);
}

.now-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.now-sidebar-overlay--visible {
  display: block;
  opacity: 1;
}

/* LOGIN SCREENS  */

/* LOGIN SCREENS  */

/* ======================================= */
/* Login Required UI                       */
/* ======================================= */

.mtp-login-wrap {
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--mtp-space-lg);
  background:
    linear-gradient(90deg, #faf9f6 40%, rgba(243, 239, 229, 0.5) 46%),
    url(https://now8.esstemp.net/wp-content/uploads/2026/01/now-or-never-closing-open-sky-quiet-invitation.png) !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

.mtp-login-card {
  width: 100%;
  max-width: 680px;
  background: var(--mtp-color-card);
  border: 1px solid var(--mtp-color-border);
  border-radius: 0;
  box-shadow: var(--mtp-shadow-md);
  padding: var(--mtp-space-lg);
  text-align: center;
}

.mtp-login-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--mtp-space-md);
  border-radius: 50%;
  background: #0d1a48;
  color: var(--now-color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--mtp-font-size-xl);
  box-shadow: var(--mtp-shadow-sm);
}

.mtp-login-title {
  margin: 0 0 var(--mtp-space-sm);
  color: var(--mtp-color-heading);
  font-size: var(--mtp-font-size-xl);
  line-height: 1.2;
  font-weight: var(--now-font-weight-bold);
}

.mtp-login-text {
  max-width: 520px;
  margin: 0 auto var(--mtp-space-md);
  color: var(--mtp-color-muted);
  font-size: var(--mtp-font-size-md);
  line-height: 1.5;
}

.mtp-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 var(--mtp-space-md);
  background: #f7816e;
  color: var(--now-color-text);
  border-radius: var(--now-radius-pill);
  font-size: var(--mtp-font-size-sm);
  font-weight: var(--now-font-weight-semibold);
  text-decoration: none;
  box-shadow: var(--now-shadow-sm);
  transition: var(--now-transition);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.mtp-login-btn:hover,
.mtp-login-btn:focus {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--now-shadow-md);
}

.mtp-login-btn:focus {
  outline: 3px solid var(--mtp-stage-1);
  outline-offset: 4px;
}

.mtp-login-help {
  margin: var(--mtp-space-md) 0 0;
  color: var(--mtp-color-muted);
  font-size: var(--mtp-font-size-sm);
  line-height: 1.5;
}

.mtp-inline-message.mtp-inline-info {
  padding: 10px;
  font-size: 16px;
  font-weight: 600;
  border-left: 4px solid #d97706;
  margin-top: 15px;
  background: rgb(217 119 6 / 8%);
}

body footer,
body header {
  display: block !important;
}




/* RESPONSIVE: TABLET (COLLAPSED) */
@media (max-width: 1024px) {
  :root {
    /* Typography for Seniors */
    --mtp-font-size-sm: 14px;
    --mtp-font-size-md: 16px;
    --mtp-font-size-lg: 20px;
    --mtp-font-size-xl: 32px;
    --mtp-font-size-xxl: 38px;

    /* Layout */
    --mtp-radius-sm: 8px;
    --mtp-radius-md: 16px;
    --mtp-radius-lg: 24px;
    --mtp-space-xs: 12px;
    --mtp-space-sm: 15px;
    --mtp-space-md: 22px;
    --mtp-space-lg: 26px;

    --now-font-size-xs: 12px;
    --now-font-size-sm: 14px;
    --now-font-size-base: 16px;
    --now-font-size-md: 18px;
    --now-font-size-lg: 22px;
    --now-font-size-xl: 28px;
    --now-font-weight-normal: 400;
    --now-font-weight-medium: 500;
    --now-font-weight-semibold: 600;
    --now-font-weight-bold: 700;

    --now-space-xs: 4px;
    --now-space-sm: 8px;
    --now-space-md: 16px;
    --now-space-lg: 24px;
    --now-space-xl: 32px;
    --now-space-2xl: 48px;

    --now-radius-sm: 8px;
    --now-radius-md: 12px;
    --now-radius-lg: 16px;
    --now-radius-xl: 20px;
    --now-radius-pill: 999px;
  }

  .mtp-stage-card-step {
    margin: 0;
  }

  .now-layout-content {
    /* margin-left: var(--now-sidebar-collapsed-width); */
  }

  .now-sidebar {
    width: var(--now-sidebar-collapsed-width);
    min-width: unset;
  }

  .now-sidebar__brand-text,
  .now-sidebar__profile-info,
  .now-sidebar__item-text,
  .now-sidebar__badge,
  .now-sidebar__motivation {
    display: none;
  }

  .now-sidebar__brand {
    padding: var(--now-space-xl) 0;
  }

  .now-sidebar__profile {
    margin: var(--now-space-md);
    padding: var(--now-space-sm);
    justify-content: center;
  }

  .now-sidebar__avatar {
    width: 40px;
    height: 40px;
  }

  .now-sidebar__menu {
    padding: 0 var(--now-space-sm);
  }

  .now-sidebar__item {
    justify-content: center;
    padding: 0;
  }

  .now-sidebar__footer {
    padding: var(--now-space-sm);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .mtp-login-wrap {
    min-height: auto;
    padding: var(--mtp-space-md);
  }

  .mtp-login-card {
    padding: var(--mtp-space-md);
  }

  .mtp-login-icon {
    width: 76px;
    height: 76px;
    font-size: var(--mtp-font-size-lg);
  }

  .mtp-login-title {
    font-size: var(--mtp-font-size-lg);
  }

  .mtp-login-text,
  .mtp-login-help {
    font-size: var(--mtp-font-size-sm);
  }

  .mtp-login-btn {
    width: 100%;
  }
}

/* RESPONSIVE: MOBILE (DRAWER) */
@media (max-width: 768px) {
  .mtp-page-title {
    font-size: 26px;
  }

  .mtp-stage-card-step {
    display: none;
  }

  .mtp-btn-large {
    padding: 10px 22px;
    font-size: 18px;
  }

  a.mtp-stage-card {
    gap: 15px;
  }

  .mtp-status-icon {
    width: 38px;
    height: 38px;
  }

  .mtp-step-title {
    font-size: 22px;
  }

  .now-layout-content {
    margin-left: 30px;
    margin-right: 30px;
    padding-top: 40px;
    /* Space for the toggle button */
  }

  .mtp-task-title {
    font-size: 18px;
  }

  .mtp-task-checkbox {
    width: 44px;
    height: 44px;
  }

  .mtp-checkbox-visual::after {
    width: 7px;
    height: 18px;
    border-width: 0 3px 3px 0;
  }

  .mtp-checkbox-visual {
    border-radius: 6px;
  }

  .mtp-task-desc {
    font-size: 16px;
  }

  .mtp-task-card {
    border-radius: 16px;
    align-items: start;
  }

  .now-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
  }

  .now-sidebar {
    width: var(--now-sidebar-width);
    transform: translateX(-100%);
    position: fixed;
  }

  .now-sidebar--open {
    transform: translateX(0);
    min-width: 290px;
    z-index: 10000;
  }

  .now-sidebar__brand-text,
  .now-sidebar__profile-info,
  .now-sidebar__item-text,
  .now-sidebar__badge,
  .now-sidebar__motivation {
    display: flex;
  }

  .now-sidebar__brand-text {
    display: inline-block;
  }

  .now-sidebar__item-text {
    display: inline-block;
  }

  .now-sidebar__brand {
    padding: var(--now-space-xl) var(--now-space-lg);
  }

  .now-sidebar__profile {
    margin: var(--now-space-lg);
    padding: var(--now-space-md);
    justify-content: flex-start;
  }

  .now-sidebar__avatar {
    width: var(--now-avatar-size);
    height: var(--now-avatar-size);
  }

  .now-sidebar__menu {
    padding: 0 var(--now-space-lg);
  }

  .now-sidebar__item {
    justify-content: flex-start;
    padding: 0 var(--now-space-md);
  }

  .now-sidebar__footer {
    padding: var(--now-space-lg);
  }
}

header#site-header,
.page-header {
  display: none;
}