/* FixHubb Portal — App Shell & Navigation Layout */
/* ============================ SHELL ============================ */
.shell { display: flex; min-height: 100vh; position: relative; z-index: 1; }

.sidebar {
  width: 236px; min-width: 236px;
  background: linear-gradient(180deg, var(--navy), var(--navy-2));
  border-right: none;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden;
  z-index: 40;
}

.logo { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #04110f; font-weight: 800; font-size: 15px;
  box-shadow: 0 0 18px rgba(246, 139, 31, 0.3);
}
.logo .word { font-family: var(--mono); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.logo .word .cursor { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.logo .sub { font-family: var(--mono); font-size: 9px; color: var(--dim); letter-spacing: 0.14em; display: block; margin-top: 1px; }

.nav { flex: 1; padding: 4px 10px 16px; }
.nav-group { margin-top: 14px; }
.nav-group > .nav-label {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35); padding: 0 10px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; margin: 1px 0; border-radius: var(--r-sm);
  color: rgba(255, 255, 255, 0.62); cursor: pointer; border-left: 2px solid transparent;
  font-size: 13.5px; user-select: none; position: relative;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; text-decoration: none; }
.nav-item.active { background: rgba(246, 139, 31, 0.18); color: #f9a13c; border-left-color: #f68b1f; }
.nav-item.active svg { color: #f9a13c; }
.nav-item svg { width: 17px; height: 17px; flex: none; }
.nav-item .nbadge {
  margin-left: auto; font-family: var(--mono); font-size: 10px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.75);
  border-radius: 20px; padding: 0 7px; line-height: 17px;
}
.nav-item.active .nbadge { border-color: transparent; background: var(--accent); color: var(--accent-ink); }

.sys-footer {
  padding: 12px 18px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono); font-size: 10px; color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em; display: flex; align-items: center; gap: 8px;
}
.sys-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); animation: pulse 2.4s ease infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.brand-logo { display: block; max-width: 100%; }

/* FixHubb brand lockup (horizontal: mark + name + slogan) */
.brand-lockup { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-lockup .bl-mark { width: 36px; height: 36px; flex: none; object-fit: contain; border-radius: 50%; }
.brand-lockup .bl-name {
  font-family: "Space Grotesk", var(--sans); font-weight: 700; font-size: 20px;
  line-height: 1; color: var(--text); letter-spacing: -0.02em; white-space: nowrap;
}
.brand-lockup .bl-name span { color: var(--accent, #f68b1f); }
.brand-lockup .bl-slogan {
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.16em;
  color: #f68b1f; margin-top: 4px; white-space: nowrap;
}
.sidebar .brand-lockup .bl-name { color: #fff; }
.sidebar .brand-lockup .bl-name span { color: #f68b1f; }

/* complete-logo tile (login / setup) */
.auth-tile {
  display: block; max-width: 100%; height: auto; object-fit: contain;
}

.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 58px; display: flex; align-items: center; gap: 10px; padding: 0 20px;
  border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 30;
}
.topbar .crumb { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.06em; white-space: nowrap; }
.topbar .crumb b { color: var(--text); font-weight: 600; letter-spacing: 0; }

.searchbox { position: relative; flex: 1; max-width: 460px; }
.searchbox input {
  width: 100%; padding: 8px 12px 8px 34px; border-radius: var(--r-md);
  background: var(--panel); border: 1px solid var(--line); color: var(--text); font-size: 13px;
}
.searchbox input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.searchbox > svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--dim); width: 16px; height: 16px; }

.icon-btn {
  width: 36px; height: 36px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--panel); color: var(--muted); display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { color: var(--text); background: var(--hover); }
.icon-btn .dot-alert {
  position: absolute; top: 3px; right: 3px; width: 8px; height: 8px;
  border-radius: 999px; background: var(--bad); border: 2px solid var(--panel); pointer-events: none;
}
.icon-btn .dot-alert.good {
  background: var(--good);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.9);
  animation: pulse-good 2s infinite ease-in-out;
}
@keyframes pulse-good {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); box-shadow: 0 0 12px rgba(16, 185, 129, 1); }
  100% { transform: scale(1); }
}

.userchip {
  display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 6px;
  border: 1px solid var(--line); background: var(--panel); border-radius: var(--r-md); cursor: pointer;
}
.userchip:hover { background: var(--hover); }
.avatar {
  width: 27px; height: 27px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #04110f; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none;
}
.userchip .uname { font-size: 12.5px; font-weight: 600; line-height: 1.15; }
.userchip .urole { font-family: var(--mono); font-size: 9px; color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; }

.content { padding: 20px 24px 60px; max-width: 1320px; width: 100%; margin: 0 auto; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 3px; line-height: 1.5; }

/* ============================================================
   MINIMALIST 5-STAGE CHRONOLOGICAL PIPELINE STEPPER
   Zero-Confusion Workflow Bar (Leads -> Quote -> Pay -> Onboard -> Delivery)
   ============================================================ */
.pipeline-stepper-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 58px;
  z-index: 25;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.pipeline-stepper-bar::-webkit-scrollbar { display: none; }

.pipeline-stepper-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 10px;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  text-decoration: none;
}
.pipeline-stepper-step:hover {
  background: var(--hover);
  color: var(--text);
  border-color: var(--line2);
  transform: translateY(-1px);
}
.pipeline-stepper-step .step-num {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
.pipeline-stepper-step .step-text {
  display: flex;
  flex-direction: column;
}
.pipeline-stepper-step .step-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.pipeline-stepper-step .step-sub {
  font-size: 10px;
  color: var(--dim);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.pipeline-stepper-step.active {
  background: rgba(246, 139, 31, 0.14);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(246, 139, 31, 0.2);
}
.pipeline-stepper-step.active .step-num {
  background: var(--accent);
  color: #070b10;
  font-weight: 900;
}
.pipeline-stepper-step.active .step-title {
  color: var(--accent);
}
.pipeline-stepper-step.completed {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.06);
}
.pipeline-stepper-step.completed .step-num {
  background: rgba(16, 185, 129, 0.2);
  color: var(--good);
  font-weight: 800;
}
.pipeline-stepper-sep {
  color: var(--dim);
  font-size: 13px;
  font-weight: 800;
  opacity: 0.6;
}

/* ============================================================
   STEP GUIDE CARD (Simple Plain Language Guidance)
   Tells any user: "Yahan kya karna hai & Agla step kya hai"
   ============================================================ */
.step-guide-card {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(59, 130, 246, 0.05));
  border: 1.5px solid rgba(249, 115, 22, 0.35);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.step-guide-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #070b10;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.step-guide-heading {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}
.step-guide-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 760px;
}



