/* ==========================================================================
   NIGAMA CONNECT — 22-CHAPTER USER GUIDE PORTAL STYLES (guide.css)
   Governed by 02_SCREEN_DATA_USER_GUIDE.md & Mobile-First Primacy Protocol
   ========================================================================== */

.nc-guide-section {
  padding: 5rem 0;
  position: relative;
  background: transparent !important;
  background-color: transparent !important;
  border-top: none;
}

.nc-guide-header {
  text-align: center;
  max-width: 1040px;
  margin: 0 auto 3rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.nc-guide-header h2 {
  font-size: var(--nc-fs-h1, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  text-align: center;
  width: 100%;
  color: var(--nc-text-primary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.nc-guide-header h2 span {
  color: var(--nc-brand-primary);
  background: linear-gradient(135deg, var(--nc-brand-primary, #0FA3D9), var(--nc-brand-mint, #4FD8A0));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.nc-guide-header p {
  color: var(--nc-text-secondary);
  font-size: var(--nc-fs-body, 1.05rem);
  line-height: 1.7;
}

/* User Guide Search & Filter Bar */
.nc-guide-search-container {
  max-width: 760px;
  margin: 2rem auto 0 auto;
  position: relative;
}

.nc-guide-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.nc-guide-search-wrapper svg {
  position: absolute;
  left: 18px;
  color: var(--nc-brand-primary);
  pointer-events: none;
}

.nc-guide-search-input {
  width: 100%;
  padding: 14px 20px 14px 50px;
  background: var(--nc-surface-card);
  border: 1px solid var(--nc-border-subtle);
  border-radius: var(--nc-radius-pill, 9999px);
  color: var(--nc-text-primary);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: all var(--nc-trans-fast, 0.2s ease);
}

.nc-guide-search-input:focus {
  border-color: var(--nc-brand-primary);
  box-shadow: 0 0 0 3px var(--nc-brand-primary-glow), 0 8px 30px rgba(0, 0, 0, 0.3);
}

.nc-guide-search-meta {
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--nc-fs-small, 0.875rem);
  color: var(--nc-text-secondary);
  padding: 0 1rem;
}

/* --------------------------------------------------------------------------
   USER GUIDE MAIN WORKSPACE (2-COLUMN DESKTOP / STACKED MOBILE)
   -------------------------------------------------------------------------- */
.nc-guide-workspace {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
  position: relative;
  align-items: start;
}

/* Desktop Sticky Table of Contents Sidebar */
.nc-guide-sidebar {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: var(--nc-surface-card);
  border: 1px solid var(--nc-border-subtle);
  border-radius: var(--nc-radius-lg, 16px);
  padding: 1.25rem;
  backdrop-filter: var(--nc-glass-blur);
  box-shadow: var(--nc-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nc-guide-sidebar::-webkit-scrollbar {
  width: 4px;
}
.nc-guide-sidebar::-webkit-scrollbar-thumb {
  background: var(--nc-border-subtle);
  border-radius: 4px;
}

.nc-guide-sidebar-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--nc-brand-primary);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--nc-border-subtle);
}

.nc-guide-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--nc-radius-sm, 8px);
  color: var(--nc-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--nc-trans-fast, 0.2s ease);
  border-left: 2px solid transparent;
}

.nc-guide-nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--nc-text-primary);
}

.nc-guide-nav-link.is-active {
  background: rgba(15, 163, 217, 0.12);
  color: var(--nc-brand-primary);
  font-weight: 700;
  border-left-color: var(--nc-brand-primary);
}

.nc-guide-nav-num {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--nc-text-dim);
}

.nc-guide-nav-link.is-active .nc-guide-nav-num {
  background: var(--nc-brand-primary);
  color: #FFFFFF;
}

/* Mobile Chapter Toggle Floating Button */
.nc-guide-mobile-toggle {
  display: none;
  width: 100%;
  margin-bottom: 1.5rem;
  background: var(--nc-surface-card);
  border: 1px solid var(--nc-brand-primary);
  color: var(--nc-brand-primary);
  padding: 12px 18px;
  border-radius: var(--nc-radius-md, 12px);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   CHAPTER CONTENT CONTAINER
   -------------------------------------------------------------------------- */
.nc-guide-content {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  min-width: 0;
}

/* Stepper Single-Chapter Architecture */
.nc-guide-chapter-card {
  display: none;
  background: var(--nc-surface-card);
  border: 1px solid var(--nc-border-subtle);
  border-radius: var(--nc-radius-xl, 24px);
  padding: 2.5rem;
  box-shadow: var(--nc-shadow-md);
  position: relative;
  overflow: hidden;
  transition: border-color var(--nc-trans-fast, 0.2s ease);
}

.nc-guide-chapter-card.is-active {
  display: block;
  animation: ncFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nc-guide-chapter-card:hover {
  border-color: rgba(15, 163, 217, 0.4);
}

@keyframes ncFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nc-guide-chapter-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--nc-border-subtle);
}

.nc-chapter-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 163, 217, 0.2), rgba(16, 185, 129, 0.15));
  border: 1px solid rgba(15, 163, 217, 0.3);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.nc-chapter-title-group h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: var(--nc-text-primary);
}

.nc-chapter-title-group .nc-chapter-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--nc-brand-secondary);
}

/* Chapter Two-Column Grid: Instructions Left + Live Screen Right */
.nc-chapter-body-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

.nc-chapter-text-col {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--nc-text-secondary);
}

.nc-chapter-text-col h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--nc-text-primary);
  margin: 1.5rem 0 0.75rem 0;
}

.nc-chapter-text-col p {
  margin-bottom: 1rem;
}

.nc-chapter-text-col ul, .nc-chapter-text-col ol {
  padding-left: 1.4rem;
  margin-bottom: 1.25rem;
}

.nc-chapter-text-col li {
  margin-bottom: 0.5rem;
}

.nc-chapter-text-col strong {
  color: var(--nc-text-primary);
}

/* Tip & Security Callout Boxes */
.nc-guide-callout {
  padding: 1.25rem;
  border-radius: var(--nc-radius-md, 12px);
  margin: 1.5rem 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.nc-guide-callout-info {
  background: rgba(15, 163, 217, 0.08);
  border-left: 4px solid var(--nc-brand-primary);
  color: var(--nc-text-primary);
}

.nc-guide-callout-tip {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid var(--nc-brand-secondary);
  color: var(--nc-text-primary);
}

.nc-guide-callout-warning {
  background: rgba(255, 162, 77, 0.08);
  border-left: 4px solid var(--nc-brand-accent);
  color: var(--nc-text-primary);
}

/* 18 Languages Matrix Table */
.nc-guide-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--nc-radius-md, 12px);
  border: 1px solid var(--nc-border-subtle);
}

.nc-guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.nc-guide-table th {
  background: var(--nc-surface-elevated);
  padding: 12px 16px;
  font-weight: 700;
  color: var(--nc-brand-primary);
  border-bottom: 1px solid var(--nc-border-subtle);
}

.nc-guide-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--nc-border-subtle);
  color: var(--nc-text-secondary);
}

.nc-guide-table tr:last-child td {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   EMBEDDED LIVE APP SCREEN PREVIEW COMPONENT
   -------------------------------------------------------------------------- */
.nc-chapter-screen-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nc-chapter-phone-preview {
  width: 320px;
  height: 600px;
  background: #020617;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-radius: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(15, 163, 217, 0.15);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.nc-chapter-phone-notch {
  width: 90px;
  height: 22px;
  background: #000000;
  border-radius: 12px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
}

.nc-chapter-screen-stage {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  font-size: 11.5px;
  position: relative;
}

.nc-chapter-screen-stage::-webkit-scrollbar {
  width: 3px;
}
.nc-chapter-screen-stage::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}

.nc-chapter-preview-badge {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--nc-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nc-chapter-inspect-btn {
  margin-top: 0.5rem;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(15, 163, 217, 0.15);
  border: 1px solid var(--nc-brand-primary);
  color: var(--nc-brand-primary);
  cursor: pointer;
  transition: all var(--nc-trans-fast, 0.2s ease);
}

.nc-chapter-inspect-btn:hover {
  background: var(--nc-brand-primary);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   CHAPTER 22: FAQ ACCORDION
   -------------------------------------------------------------------------- */
.nc-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.nc-faq-item {
  background: var(--nc-surface-elevated);
  border: 1px solid var(--nc-border-subtle);
  border-radius: var(--nc-radius-md, 12px);
  overflow: hidden;
  transition: border-color var(--nc-trans-fast, 0.2s ease);
}

.nc-faq-item.is-open {
  border-color: var(--nc-brand-primary);
}

.nc-faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--nc-text-primary);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.nc-faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  transition: transform var(--nc-trans-fast, 0.2s ease);
  flex-shrink: 0;
  color: var(--nc-brand-primary);
}

.nc-faq-item.is-open .nc-faq-icon {
  transform: rotate(180deg);
  background: var(--nc-brand-primary);
  color: #FFFFFF;
}

.nc-faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--nc-text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
  display: none;
}

.nc-faq-item.is-open .nc-faq-answer {
  display: block;
}

/* --------------------------------------------------------------------------
   RESPONSIVENESS (MOBILE-FIRST PRIMACY PROTOCOL)
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nc-chapter-body-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .nc-chapter-screen-col {
    justify-content: center;
  }
  .nc-chapter-phone-preview {
    width: 320px;
    height: 520px;
  }
}

@media (max-width: 860px) {
  .nc-guide-section {
    padding: 2.5rem 0 !important;
  }
  .nc-guide-header {
    margin-bottom: 2rem !important;
  }
  .nc-guide-header h2 {
    font-size: 1.85rem !important;
  }
  .nc-guide-subtab-bar {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    padding: 6px !important;
  }
  .nc-guide-subtab-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
  }
  .nc-guide-workspace {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    margin-top: 1.25rem !important;
  }
  .nc-guide-sidebar {
    display: none;
    position: fixed;
    top: 64px;
    left: 1rem;
    right: 1rem;
    width: auto;
    height: auto;
    max-height: calc(80vh - 70px);
    z-index: 1000;
    border-radius: var(--nc-radius-lg, 18px);
    background: var(--nc-surface-elevated, #0B1528);
    border: 1.5px solid var(--nc-border-glass-strong, rgba(15, 163, 217, 0.4));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 30px rgba(15, 163, 217, 0.2);
    padding: 1.25rem;
  }
  .nc-guide-sidebar.is-open {
    display: flex !important;
    animation: ncMobileDrawerFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes ncMobileDrawerFade {
    from { opacity: 0; transform: translateY(-10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  .nc-guide-mobile-toggle {
    display: flex !important;
    width: 100% !important;
    min-height: 48px !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 18px !important;
    background: var(--nc-surface-card) !important;
    border: 1.5px solid var(--nc-brand-primary) !important;
    border-radius: var(--nc-radius-md, 12px) !important;
    color: var(--nc-text-primary) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    box-shadow: 0 4px 20px rgba(15, 163, 217, 0.15) !important;
    cursor: pointer !important;
    margin-bottom: 1rem !important;
  }
  .nc-guide-stepper-header {
    padding: 1rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.85rem !important;
  }
  .nc-chapter-dropdown {
    width: 100% !important;
    min-height: 46px !important;
    font-size: 0.92rem !important;
    padding: 10px 14px !important;
  }
  .nc-guide-chapter-card {
    padding: 1.25rem 1rem !important;
    border-radius: var(--nc-radius-lg, 16px) !important;
  }
  .nc-chapter-screen-col {
    width: 100% !important;
  }
  .nc-chapter-phone-preview {
    width: 100% !important;
    max-width: 320px !important;
    height: auto !important;
    min-height: 460px !important;
    margin: 0 auto !important;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   3D ANIMATED LOGO CAD WORKSPACE IN USER GUIDE HEADER
   ────────────────────────────────────────────────────────────────────────── */
.nc-guide-3d-emblem-wrap {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 280px;
  margin-bottom: 1.5rem;
  cursor: grab;
  user-select: none;
}

.nc-guide-3d-emblem-wrap:active {
  cursor: grabbing;
}

.nc-cad-stage {
  position: relative;
  width: 320px;
  height: 260px;
  transform-style: preserve-3d;
  transition: transform 0.12s cubic-bezier(0.2, 0, 0, 1);
  will-change: transform;
  transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
}

.nc-cad-grid-bed {
  display: none !important;
}

[data-theme="light"] .nc-cad-grid-bed {
  display: none !important;
}

.nc-cad-emblem-3d {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 228px;
  height: 228px;
  margin-top: -114px;
  margin-left: -114px;
  transform-style: preserve-3d;
}

.nc-cad-emblem-shadow {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.65) 0%, transparent 70%);
  transform: translateZ(4px);
  filter: blur(14px);
}

.nc-cad-emblem-layer {
  position: absolute;
  inset: 0;
  border-radius: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nc-cad-layer-base {
  background: #0369A1;
  transform: translateZ(12px);
  border: 4px solid #0284C7;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.nc-cad-layer-mid {
  background: #0284C7;
  transform: translateZ(24px);
  border: 3.5px solid #38BDF8;
}

.nc-cad-layer-top {
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
  transform: translateZ(36px);
  border: 3.5px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 45px rgba(14, 165, 233, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.6);
}

.nc-cad-emblem-img {
  width: 156px;
  height: 156px;
  border-radius: 36px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
  transform: translateZ(8px);
}

@media (max-width: 768px) {
  .nc-guide-3d-emblem-wrap {
    height: 240px;
  }
  .nc-cad-stage {
    width: 260px;
    height: 220px;
  }
  .nc-cad-emblem-3d {
    width: 180px;
    height: 180px;
    margin-top: -90px;
    margin-left: -90px;
  }
  .nc-cad-emblem-layer {
    border-radius: 42px;
  }
  .nc-cad-emblem-img {
    width: 124px;
    height: 124px;
    border-radius: 28px;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   CHAPTER STEPPER CONTROLS (HEADER & FOOTER)
   ────────────────────────────────────────────────────────────────────────── */
.nc-guide-stepper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nc-surface-card);
  border: 1px solid var(--nc-border-subtle);
  border-radius: var(--nc-radius-lg, 16px);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--nc-shadow-sm);
  flex-wrap: wrap;
  gap: 1rem;
}

.nc-stepper-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nc-stepper-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--nc-brand-primary);
  letter-spacing: 0.05em;
}

.nc-stepper-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--nc-text-primary);
}

.nc-chapter-dropdown {
  padding: 8px 16px;
  background: var(--nc-surface-elevated, #0B1528);
  border: 1px solid var(--nc-border-glass-strong, rgba(255, 255, 255, 0.2));
  border-radius: 10px;
  color: var(--nc-text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.nc-guide-stepper-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--nc-surface-card);
  border: 1.5px solid var(--nc-border-subtle);
  border-radius: var(--nc-radius-lg, 18px);
  padding: 1.25rem 2rem;
  margin-top: 2.5rem;
  box-shadow: var(--nc-shadow-sm);
  flex-wrap: nowrap;
}

.nc-guide-stepper-footer #nc-guide-prev-btn,
.nc-guide-stepper-footer #nc-guide-next-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  padding: 12px 24px;
  min-height: 48px;
  min-width: 175px;
  border-radius: var(--nc-radius-md, 12px);
  transition: all var(--nc-dur-fast) ease;
  flex-shrink: 0;
  width: auto;
}

.nc-guide-stepper-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  max-width: 320px;
}

.nc-stepper-step-indicator {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--nc-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nc-stepper-step-indicator span {
  color: var(--nc-brand-primary);
  font-weight: 800;
}

/* Unique Dynamic Progress Bar in Stepper Footer */
.nc-guide-progress-bar-wrap {
  width: 100%;
  max-width: 240px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .nc-guide-progress-bar-wrap {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.08);
}

.nc-guide-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--nc-brand-primary) 0%, var(--nc-brand-secondary) 100%);
  border-radius: 999px;
  box-shadow: 0 0 10px var(--nc-brand-primary-glow);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nc-guide-next-teaser {
  font-size: 0.76rem;
  color: var(--nc-text-muted, #94A3B8);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

@media (max-width: 768px) {
  .nc-guide-stepper-footer {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.85rem !important;
    padding: 1.25rem 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .nc-guide-stepper-center {
    grid-column: 1 / -1 !important;
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 0.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  .nc-guide-stepper-footer .nc-stepper-step-indicator {
    font-size: 0.88rem !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
  }

  .nc-guide-progress-bar-wrap {
    width: 100% !important;
    max-width: 220px !important;
  }

  .nc-guide-next-teaser {
    max-width: 100% !important;
    white-space: normal !important;
    text-align: center !important;
    font-size: 0.75rem !important;
  }

  .nc-guide-stepper-footer #nc-guide-prev-btn {
    grid-column: 1 / 2 !important;
    order: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    justify-content: center !important;
    padding: 12px 8px !important;
    font-size: 0.85rem !important;
    box-sizing: border-box !important;
  }

  .nc-guide-stepper-footer #nc-guide-next-btn {
    grid-column: 2 / 3 !important;
    order: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    justify-content: center !important;
    padding: 12px 8px !important;
    font-size: 0.85rem !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .nc-guide-stepper-footer {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    padding: 1.15rem 0.85rem !important;
  }

  .nc-guide-stepper-footer #nc-guide-prev-btn,
  .nc-guide-stepper-footer #nc-guide-next-btn {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-height: 46px !important;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   LIGHT THEME COMPREHENSIVE OVERRIDES FOR USER GUIDE PORTAL
   ────────────────────────────────────────────────────────────────────────── */
[data-theme="light"] .nc-guide-section {
  background: transparent !important;
  background-color: transparent !important;
  border-color: transparent !important;
}

[data-theme="light"] .nc-guide-header h2 {
  color: #0F172A !important;
}

[data-theme="light"] .nc-guide-header p {
  color: #475569 !important;
}

[data-theme="light"] .nc-guide-search-input {
  background: #FFFFFF !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0F172A !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .nc-guide-sidebar {
  background: #FFFFFF !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .nc-guide-nav-link {
  color: #475569 !important;
}

[data-theme="light"] .nc-guide-nav-link:hover {
  background: #F1F5F9 !important;
  color: #0F172A !important;
}

[data-theme="light"] .nc-guide-nav-link.is-active {
  background: rgba(15, 163, 217, 0.12) !important;
  color: #0284C7 !important;
}

[data-theme="light"] .nc-guide-chapter-card {
  background: #FFFFFF !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .nc-guide-chapter-header {
  border-color: rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .nc-chapter-title-group h3 {
  color: #0F172A !important;
}

[data-theme="light"] .nc-chapter-text-col {
  color: #334155 !important;
}

[data-theme="light"] .nc-chapter-text-col h4 {
  color: #0F172A !important;
}

[data-theme="light"] .nc-chapter-text-col strong {
  color: #0F172A !important;
}

[data-theme="light"] .nc-guide-tip-card {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  color: #065F46 !important;
}

[data-theme="light"] .nc-guide-stepper-header,
[data-theme="light"] .nc-guide-stepper-footer {
  background: #FFFFFF !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .nc-chapter-dropdown {
  background: #F8FAFC !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0F172A !important;
}

[data-theme="light"] .nc-chapter-phone-preview {
  background: #FFFFFF !important;
  border: 4px solid #CBD5E1 !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), 0 0 25px rgba(15, 163, 217, 0.12) !important;
}

[data-theme="light"] .nc-chapter-phone-notch {
  background: #0F172A !important;
}

[data-theme="light"] .nc-chapter-screen-stage {
  background: #F8FAFC !important;
  color: #0F172A !important;
}

[data-theme="light"] .nc-chapter-screen-stage * {
  --app-bg: #F8FAFC;
  --app-surface: #FFFFFF;
  --app-surface-elevated: #F1F5F9;
  --app-border: rgba(15, 23, 42, 0.12);
  --app-text: #0F172A;
  --app-text-muted: #475569;
  --app-text-dim: #64748B;
  --app-pill-bg: rgba(15, 163, 217, 0.10);
}

[data-theme="light"] .nc-chapter-screen-stage .nc-auth-container,
[data-theme="light"] .nc-chapter-screen-stage .nc-getstarted-container,
[data-theme="light"] .nc-chapter-screen-stage .nc-dashboard-container,
[data-theme="light"] .nc-chapter-screen-stage [class*="-container"] {
  background: #F8FAFC !important;
  color: #0F172A !important;
}

[data-theme="light"] .nc-chapter-screen-stage h1,
[data-theme="light"] .nc-chapter-screen-stage h2,
[data-theme="light"] .nc-chapter-screen-stage h3,
[data-theme="light"] .nc-chapter-screen-stage h4,
[data-theme="light"] .nc-chapter-screen-stage strong,
[data-theme="light"] .nc-chapter-screen-stage b {
  color: #0F172A !important;
}

[data-theme="light"] .nc-chapter-screen-stage p,
[data-theme="light"] .nc-chapter-screen-stage label,
[data-theme="light"] .nc-chapter-screen-stage .auth-logo-center p {
  color: #475569 !important;
}

[data-theme="light"] .nc-chapter-screen-stage .otp-digit-box {
  background: #FFFFFF !important;
  border: 2px solid #CBD5E1 !important;
  color: #0F172A !important;
}

[data-theme="light"] .nc-chapter-screen-stage .otp-digit-box.filled {
  background: rgba(15, 163, 217, 0.12) !important;
  border-color: #0284C7 !important;
  color: #0284C7 !important;
}

[data-theme="light"] .nc-chapter-screen-stage .otp-digit-box.active {
  background: #FFFFFF !important;
  border-color: #059669 !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3) !important;
  color: #0F172A !important;
}

[data-theme="light"] .nc-chapter-screen-stage .nc-input-box,
[data-theme="light"] .nc-chapter-screen-stage input,
[data-theme="light"] .nc-chapter-screen-stage select,
[data-theme="light"] .nc-chapter-screen-stage textarea {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  color: #0F172A !important;
}

[data-theme="light"] .nc-chapter-screen-stage .nc-card,
[data-theme="light"] .nc-chapter-screen-stage .dash-profile-card,
[data-theme="light"] .nc-chapter-screen-stage .dash-stats-grid > div,
[data-theme="light"] .nc-chapter-screen-stage .app-card,
[data-theme="light"] .nc-chapter-screen-stage .panchang-card,
[data-theme="light"] .nc-chapter-screen-stage .post-card,
[data-theme="light"] .nc-chapter-screen-stage [class*="-card"] {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  color: #0F172A !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .nc-chapter-screen-stage .auth-back-btn {
  background: #E2E8F0 !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}
