@font-face {
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2)
    format("woff2");
  /* unicode-range:
    U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; */
}

:root {
  --navy: #0d1b2a;
  --navy2: #1a3a5c;
  --blue: #2563eb;
  --bl: #eff6ff;
  --bm: #60a5fa;
  --white: #ffffff;
  --off: #f8fafc;
  --light: #edf2f7;
  --border: rgba(15, 23, 42, 0.1);
  --bd2: rgba(15, 23, 42, 0.18);
  --text: #0f172a;
  --t2: #475569;
  --t3: #94a3b8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif !important;
  background-color: #0a192f !important;
  color: #fff;
  min-height: 100vh;
}

.app-wrapper {
  min-height: 100vh;
}

.app-header,
.screen,
#report-section {
  width: 100%;
}

.nav {
  background: #0d1b2a;
  padding: 0 4rem;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 100;
}

.nav-logo {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.16em;
}

.nav > div {
  display: flex;
  gap: 0.8rem;
}

.rp-client {
  font-size: 14px;
  font-weight: 500;
  color: #60a5fa;
  margin-bottom: 0.5rem;
}

.rp-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.rp-conf {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.rp-accent {
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #60a5fa, #bfdbfe);
  margin: 0;
}

.results-legend {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.leg-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  color: #64748b;
}

.leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.results-col {
  background: #fff;
  padding: 2rem 4rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.results-col.r {
  background: #f8fafc;
  border-left: 0.5px solid rgba(15, 23, 42, 0.18);
}

/* .sec {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 1.5rem;
} */
.sec {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #475569;
  margin-bottom: 1.5rem;
  padding-bottom: 10px;
  border-bottom: 0.5px solid rgba(15, 23, 42, 0.18);
}
.base-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
}

.base-dim {
  font-weight: 500;
  color: #0f172a;
  min-width: 120px;
}

.base-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bar-wrap {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
}

.bar-val {
  font-size: 12px;
  font-weight: 500;
  min-width: 30px;
  text-align: right;
}

.gap-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.5rem;
  padding: 0;
  height: 76px;
  border-bottom: 0.5px solid rgba(15, 23, 42, 0.18);
}

.gap-dim {
  font-weight: 500;
  font-size: 14px;
  color: #0f172a;
  min-width: 120px;
  flex-shrink: 0;
}

.gap-bw {
  flex: 1;
  height: 12px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.gap-b {
  height: 100%;
  border-radius: 6px;
}

.gap-val {
  font-size: 14px;
  font-weight: 600;
  min-width: 50px;
  text-align: right;
}

.nav-link {
  background: none;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  color: #475569;
  font-size: 13px;
  padding: 5px 19px;
  border-radius: 7px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: all 0.15s;
  margin-left: 8px;
}
.hero {
  background: #0d1b2a;
  padding: 6rem 4rem 0;
  position: relative;
  overflow: hidden;
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.15);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.h1 {
  font-size: 41px;
  font-weight: 300;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.strong {
  color: #60a5fa;
  font-weight: 600;
  font-size: 41px;
}
.sub {
  font-size: 17px;
  color: #94a3b8;
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 32px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 5rem;
}
.metric {
  background: #0d1b2a;
  padding: 1.75rem 2.5rem;
}
.metric-val {
  font-size: 2.2rem;
  font-weight: 300;
  color: #fff;
  display: block;
}
.metric-lbl {
  font-size: 11px;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
  display: block;
}
.how {
  padding: 5rem 4rem;
  background: #fff;
}
.how-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #475569;
  margin-bottom: 2rem;
}
.step {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 0.5px solid rgba(15, 23, 42, 0.18);
  align-items: flex-start;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 1px;
}
.step-title {
  font-size: 15px;
  font-weight: 500 !important;
  color: #0f172a;
  margin-bottom: 5px;
}
.step-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  font-family: "Inter", sans-serif !important;
  font-weight: 400;
}
.lp-footer {
  padding: 1.75rem 4rem;
  background: #0d1b2a;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lp-footer-logo {
  font-size: 13px;
  font-weight: 600;
  color: #1e3a5c;
  letter-spacing: 0.16em;
}
.lp-footer-btn {
  background: transparent;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  color: #475569;
  font-size: 13px;
  padding: 9px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}
.screen {
  display: none !important;
  width: 100%;
  position: relative;
  /* min-height: 100vh; */
}

.screen.active {
  display: block !important;
}

.screen.hidden {
  display: none !important;
}

#report-section {
  display: none !important;
}

#report-section.active {
  display: block !important;
}
.sv-hdr {
  background: #0d1b2a;
  padding: 1.25rem 4rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.sv-logo {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.14em;
  flex-shrink: 0;
}
.sv-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 4rem;
  min-height: calc(100vh - 72px);
  background: #fff;
}
.sv-card {
  width: 100%;
  max-width: 620px;
}
.sv-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.sv-next {
  background: #2563eb;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s;
  font-family: "Inter", sans-serif;
  min-width: 130px;
}

.sv-next:disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: not-allowed;
}

.sv-q {
  font-size: 1.4rem;
  font-weight: 400;
  color: #0f172a;
  line-height: 1.45;
  margin-bottom: 2.5rem;
  font-family: "Inter", sans-serif;
}
.sv-text {
  width: 100%;
  padding: 14px 16px;
  border: 0.5px solid rgba(15, 23, 42, 0.18);
  border-radius: 10px;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  color: #0f172a;
  outline: none;
  background: #fff;
  margin-bottom: 2.5rem;
}
.sv-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.5rem;
}
.dept-wrap {
  position: relative;
  width: 100%;
}

.dept-wrap .sv-text:focus {
  border-color: #1e40af;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.dept-clear {
  display: none;
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1e40af;
  color: #fff;
  font-size: 14px;
  text-align: center;
  line-height: 20px;
  cursor: pointer;
  font-weight: 700;
}

.dept-dd {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 0.5px solid rgba(15, 23, 42, 0.18);
  border-top: none;
  border-radius: 0 0 10px 10px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.dept-item {
  padding: 11px 16px;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 0.5px solid rgba(15, 23, 42, 0.18);
  font-family: "Inter", sans-serif;
  color: #0f172a;
}

.dept-item:hover {
  background: #dbeafe;
  color: #2563eb;
}

.sv-back {
  background: transparent;
  border: 0.5px solid rgba(15, 23, 42, 0.18);
  color: #475569;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  min-width: 130px;
}
.sv-scale-wrap {
  margin-bottom: 2.5rem;
}
.sv-scale {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1rem;
}
.sv-scale-btn {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  border: 0.5px solid rgba(15, 23, 42, 0.18);
  background: #fff;
  font-size: 16px;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
  font-family: "Inter", sans-serif;
}

.sv-scale-btn:hover {
  background: #dbeafe; /* light blue */
  border-color: #2563eb; /* dark blue */
  color: #1d4ed8;
}

.sv-scale-btn.selected {
  background: #2563eb;
  border-color: #1e40af;
  color: #fff;
}
.sv-scale-lbl {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
}
.sv-opt {
  font-size: 13px;
  color: #94a3b8;
  font-style: italic;
  margin-bottom: 0.75rem;
}
.sv-ta {
  width: 100%;
  padding: 14px 16px;
  border: 0.5px solid rgba(15, 23, 42, 0.18);
  border-radius: 10px;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  color: #0f172a;
  resize: none;
  outline: none;
  margin-bottom: 2.5rem;
  background: #fff;
  line-height: 1.65;
}
.sv-role-btn {
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  border: 0.5px solid rgba(15, 23, 42, 0.18);
  background: #fff;
  font-size: 15px;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
  font-family: "Inter", sans-serif;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.12s;
  margin-bottom: 10px;
}

.sv-role-btn:hover {
  background: #dbeafe; /* light blue */
  border-color: #2563eb; /* dark blue */
}

.sv-role-btn.sel {
  background: #dbeafe;
  border-color: #2563eb;
}

.sv-role-btn.sel span,
.sv-role-btn.sel > * {
  color: #1d4ed8;
}

.rp-hdr {
  background: #0d1b2a;
  padding: 2.5rem 4rem 1.75rem;
  position: relative;
  overflow: hidden;
  text-align: left;
  color: #fff;
}

.rp-hdr::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.1);
  pointer-events: none;
}
.rp-client {
  font-size: 11px;
  color: #334155;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.rp-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: 0.08em;
}
.rp-conf {
  font-size: 12px;
  color: #1e3a5c;
}
.rp-accent {
  height: 2px;
  background: #2563eb;
}
.rp-tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.rp-tab {
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  padding: 1rem 1.5rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: "Inter", sans-serif;
  transition: all 0.15s;
}
.rp-tabs {
  display: flex;
  justify-content: left;
  background: #f8fafc;
  gap: 0;
  margin: 0;
  width: 100%;
  padding: 0 4rem;
  border-bottom: none;
  margin-bottom: 0 !important;
}
/* Hide Results legend when not active */
#tab-results:not(.active),
#tab-actions:not(.active),
#tab-orgchart:not(.active),
#tab-trend:not(.active),
#tab-share:not(.active) {
  display: none !important;
  visibility: hidden !important;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.rp-panel {
  display: none;
  width: 100%;
  margin: 0;
  padding: 0;
  height: auto;
  overflow: hidden;
}

.rp-panel.active {
  display: block !important;
  visibility: visible !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto;
}

/* Mobile Tab Dropdown Styles */
.rp-tabs-mobile {
  display: none;
  background: #f8fafc;
  padding: 0 1.5rem;
  border-bottom: 0.5px solid rgba(15, 23, 42, 0.18);
  position: relative;
  z-index: 50;
}

.rp-tabs-mobile-btn {
  width: 100%;
  padding: 0.75rem 0;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: #2563eb;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  transition: all 0.15s;
}

.rp-tabs-mobile-btn:active {
  opacity: 0.7;
}

.rp-tabs-mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 0.5px solid rgba(15, 23, 42, 0.18);
  border-top: none;
  border-radius: 0 0 10px 10px;
  z-index: 51;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.rp-tabs-mobile-item {
  display: block;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: #fff;
  border: none;
  border-bottom: 0.5px solid rgba(15, 23, 42, 0.08);
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  text-align: left;
  transition: all 0.12s;
}

.rp-tabs-mobile-item:last-child {
  border-bottom: none;
}

.rp-tabs-mobile-item:active {
  background: #dbeafe;
  color: #2563eb;
}

.rp-tabs-mobile-item.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}

.results-legend {
  padding: 0.9rem 4rem;
  background: #fff;
  border-bottom: 0.5px solid rgba(15, 23, 42, 0.18);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #475569;
}
.leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.sv-pw {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
}

.sv-pb {
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.sv-pf {
  height: 100%;
  width: 0;
  background: #2563eb;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.sv-pl {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.base-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  border-bottom: 0.5px solid rgba(15, 23, 42, 0.18);
  height: 76px;
}
.base-dim {
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  min-width: 120px;
  flex-shrink: 0;
}
.base-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bar-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bar-wrap {
  flex: 1;
  background: #edf2f7;
  border-radius: 3px;
  height: 5px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 3px;
}
.bar-val {
  font-size: 10px;
  width: 26px;
  text-align: right;
  flex-shrink: 0;
  font-weight: 500;
}

.st-badge.s-aln {
  background: #dcfce7;
  color: #166534;
}
.st-badge.s-crit {
  background: #fee2e2;
  color: #991b1b;
}

.st-badge.s-risk {
  background: #fef3c7;
  color: #92400e;
}
.act-card {
  border-left: 3px solid #2563eb;
  border-top: 0.5px solid rgba(15, 23, 42, 0.18);
  border-right: 0.5px solid rgba(15, 23, 42, 0.18);
  border-bottom: 0.5px solid rgba(15, 23, 42, 0.18);
  border-radius: 0 12px 12px 0;
  padding: 1.75rem;
  margin-bottom: 16px;
  background: #fff;
  transition: border-left-color 0.15s;
}
.act-card:nth-child(2) {
  border-left-color: #d97706;
}

.act-hdr {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.act-rank {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #475569;
}

.st-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  min-width: 110px;
  text-align: center;
}

.act-dim {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.act-diag {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  margin-bottom: 10px;
}
.act-why {
  font-size: 12px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 7px;
}
.act-step {
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.6;
  padding: 12px 14px;
  background: #eff6ff;
  border-radius: 9px;
}

.fw-search-wrap {
  position: relative;
  max-width: 520px;
  margin-bottom: 1.5rem;
}
.fw-input {
  width: 100%;
  padding: 12px 16px;
  border: 0.5px solid rgba(15, 23, 42, 0.18);
  border-radius: 9px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  color: #0f172a;
  outline: none;
  background: #fff;
}
.fw-dd {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 0.5px solid rgba(15, 23, 42, 0.18);
  border-top: none;
  border-radius: 0 0 10px 10px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 30;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.fw-detail {
  display: none;
  border: 0.5px solid rgba(15, 23, 42, 0.18);
  border-radius: 12px;
  background: #f8fafc;
  padding: 1.5rem;
  max-width: 680px;
  margin-bottom: 1.5rem;
}
.org-body {
  padding: 2rem 4rem 3rem;
  background: #fff;
}
.url-row {
  display: flex;
  gap: 8px;
  margin-bottom: 0.75rem;
  max-width: 640px;
}
.url-inp {
  flex: 1;
  padding: 10px 14px;
  border: 0.5px solid rgba(15, 23, 42, 0.18);
  border-radius: 8px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  color: #0f172a;
  outline: none;
  background: #fff;
}
.url-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}
.org-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: center;
}
.leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #475569;
}
.leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.org-tree {
  overflow-x: auto;
  padding-bottom: 1rem;
  page-break-inside: avoid;
}
.add-form-wrap {
  margin-top: 1.5rem;
}
.add-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  color: #475569;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}
.add-form {
  display: none;
  margin-top: 1rem;
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 0.5px solid rgba(15, 23, 42, 0.18);
}
.add-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.add-inp {
  flex: 1;
  min-width: 140px;
  padding: 9px 12px;
  border: 0.5px solid rgba(15, 23, 42, 0.18);
  border-radius: 7px;
  font-size: 13px;
  font-family: "Inter", sans-serif;
  color: #0f172a;
  outline: none;
  background: #fff;
}
.add-sel {
  flex: 1;
  min-width: 160px;
  padding: 9px 12px;
  border: 0.5px solid rgba(15, 23, 42, 0.18);
  border-radius: 7px;
  font-size: 13px;
  font-family: "Inter", sans-serif;
  color: #0f172a;
  outline: none;
  background: #fff;
}
.add-save {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}
.add-cancel {
  background: none;
  border: 0.5px solid rgba(15, 23, 42, 0.18);
  color: #0f172a;
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 13px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}
.q-toggle.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.q-toggle {
  padding: 7px 16px;
  border-radius: 20px;
  border: 0.5px solid rgba(15, 23, 42, 0.18);
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: all 0.15s;
}

.share-body {
  padding: 3rem 4rem;
  background: #fff;
}
.share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.share-title {
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.share-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.upload-zone {
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  margin-bottom: 1rem;
  background: #f8fafc;
  transition: all 0.15s;
}
.upload-cta {
  font-size: 13px;
  font-weight: 500;
  color: #2563eb;
  display: block;
  margin-bottom: 3px;
}
.upload-sub {
  font-size: 12px;
  color: #94a3b8;
}
.rcp-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
  min-height: 26px;
}
.email-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.email-inp {
  flex: 1;
  padding: 10px 14px;
  border: 0.5px solid rgba(15, 23, 42, 0.18);
  border-radius: 8px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  color: #0f172a;
  outline: none;
  background: #fff;
}
.email-add {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}
.msg-ta {
  width: 100%;
  padding: 10px 14px;
  border: 0.5px solid rgba(15, 23, 42, 0.18);
  border-radius: 8px;
  font-size: 13px;
  font-family: "Inter", sans-serif;
  color: #0f172a;
  outline: none;
  resize: none;
  margin-top: 1rem;
  background: #fff;
}
.send-btn {
  width: 100%;
  margin-top: 1rem;
  background: #0d1b2a;
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}
.sent-ok {
  color: #15803d;
  font-size: 13px;
  font-weight: 500;
  margin-top: 10px;
}
.share-card {
  padding: 1.75rem;
  border: 0.5px solid rgba(15, 23, 42, 0.18);
  border-radius: 12px;
  background: #fff;
}

.prev-box {
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 0.5px solid rgba(15, 23, 42, 0.18);
}
.prev-h {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.75rem;
}
.prev-l {
  font-size: 12px;
  color: #475569;
  line-height: 2;
}
.sp-r {
  background: #fff7ed;
  color: #c2410c;
}
.sp {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 6px;
}
.sp-a {
  background: #f0fdf4;
  color: #15803d;
}
.sp-c {
  background: #fef2f2;
  color: #dc2626;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet & Medium Screens (1024px and below) */
@media (max-width: 1024px) {
  .nav {
    padding: 0 2.5rem;
  }

  .hero {
    padding: 4rem 2.5rem 0;
  }

  .h1 {
    font-size: 35px;
  }

  .strong {
    font-size: 35px;
  }

  .how {
    padding: 3rem 2.5rem;
  }

  .lp-footer {
    padding: 1.5rem 2.5rem;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .results-col {
    padding: 1.5rem 2.5rem;
    border-left: none;
  }

  .sv-hdr {
    padding: 1rem 2.5rem;
  }

  .sv-body {
    padding: 3rem 2.5rem;
  }

  .rp-hdr {
    padding: 2rem 2.5rem 1.5rem;
  }

  .rp-tabs {
    padding: 0 2.5rem;
  }

  .results-legend {
    padding: 0.75rem 2.5rem;
  }

  .org-body {
    padding: 1.5rem 2.5rem;
  }

  .share-body {
    padding: 2rem 2.5rem;
  }

  .share-grid {
    grid-template-columns: 1fr;
  }
}

/* Small Tablets & Large Phones (768px and below) */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .nav {
    padding: 0 1.5rem;
    height: 56px;
  }

  .nav-logo {
    font-size: 13px;
  }

  .nav-link {
    font-size: 12px;
    padding: 4px 14px;
  }

  .hero {
    padding: 3rem 1.5rem 0;
    min-height: 50vh;
  }

  .h1 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .strong {
    font-size: 28px;
  }

  .tag {
    font-size: 10px;
    padding: 3px 10px;
    margin-bottom: 1rem;
  }

  .sub {
    font-size: 15px;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .cta {
    font-size: 14px;
    padding: 10px 24px;
  }

  .metrics {
    grid-template-columns: 1fr;
    margin-top: 3rem;
  }

  .metric {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .metric-val {
    font-size: 1.8rem;
  }

  .metric-lbl {
    font-size: 10px;
  }

  .how {
    padding: 2.5rem 1.5rem;
  }

  .how-title {
    margin-bottom: 1.5rem;
  }

  .step {
    gap: 1rem;
    padding: 1rem 0;
  }

  .step-num {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .step-title {
    font-size: 14px;
  }

  .step-desc {
    font-size: 13px;
  }

  .lp-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
  }

  .lp-footer-btn {
    width: 100%;
    text-align: center;
    font-size: 13px;
  }

  /* Survey Styles */
  .sv-hdr {
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .sv-logo {
    font-size: 12px;
  }

  .sv-pw {
    width: 100%;
  }

  .sv-body {
    padding: 2rem 1.5rem;
    min-height: auto;
    justify-content: flex-start;
    margin-top: 0px;
  }

  .sv-card {
    max-width: 100%;
  }

  .sv-q {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .sv-badge {
    font-size: 10px;
    padding: 3px 10px;
  }

  .sv-text {
    font-size: 14px;
    padding: 11px 14px;
    margin-bottom: 1.5rem;
  }

  .sv-ta {
    font-size: 14px;
    padding: 11px 14px;
    margin-bottom: 1.5rem;
  }

  .sv-scale {
    gap: 8px;
  }

  .sv-scale-btn {
    width: 48px;
    height: 48px;
    font-size: 14px;
  }

  .sv-scale-lbl {
    font-size: 11px;
  }

  .sv-nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .sv-next,
  .sv-back {
    font-size: 13px;
    padding: 10px 16px;
    min-width: auto;
    flex: 1;
    min-width: 100px;
  }

  /* Results Styles */
  .rp-hdr {
    padding: 1.5rem 1.5rem 1rem;
    overflow: visible;
  }

  .rp-hdr::before {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
    opacity: 0.5;
  }

  .rp-title {
    font-size: 1rem;
  }

  .rp-tabs {
    padding: 0 1.5rem;
    flex-wrap: wrap;
  }

  .rp-tab {
    font-size: 13px;
    padding: 0.75rem 1rem;
  }

  .rp-tabs-mobile {
    display: none !important;
  }

  .results-legend {
    padding: 0.75rem 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .leg-item {
    font-size: 11px;
  }

  .results-col {
    padding: 1.5rem 1.5rem;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.18);
  }

  .results-col.r {
    border-left: none;
    border-bottom: none;
  }

  .base-dim {
    font-size: 13px;
    min-width: 100px;
  }

  .gap-row {
    height: auto;
    padding: 1rem 0;
  }

  .gap-dim {
    font-size: 13px;
    min-width: 100px;
  }

  .gap-val {
    font-size: 13px;
  }

  .act-card {
    padding: 1.25rem;
    margin-bottom: 12px;
  }

  .act-dim {
    font-size: 16px;
  }

  .act-why,
  .act-step {
    font-size: 12px;
    padding: 8px 10px;
  }

  /* Org Body */
  .org-body {
    padding: 1.5rem 1.5rem 2rem;
  }

  /* Share Styles */
  .share-body {
    padding: 1.5rem 1.5rem 2rem;
  }

  .share-title {
    font-size: 14px;
  }

  .share-desc {
    font-size: 12px;
  }

  .add-row {
    flex-direction: column;
  }

  .add-inp,
  .add-sel {
    min-width: unset;
  }

  .email-row {
    flex-direction: column;
  }

  .email-inp {
    width: 100%;
  }

  .email-add {
    width: 100%;
  }

  .fw-search-wrap {
    max-width: 100%;
  }

  .q-toggle {
    font-size: 11px;
    padding: 6px 12px;
  }

  /* Mobile fix for Actions panel strip */
  #tab-actions #act-dim-strip {
    flex-direction: column !important;
    gap: 0.75rem;
    padding: 0.75rem 0.5rem !important;
  }

  #tab-actions #act-dim-strip > div {
    flex: 1 1 auto !important;
    border-right: none !important;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08) !important;
    padding: 0.75rem 0.65rem !important;
  }

  #tab-actions #act-dim-strip > div:last-child {
    border-bottom: none !important;
  }

  /* Action + framework columns stack on tiny screen */
  #tab-actions > div[style*="display:grid"] {
    display: flex !important;
    flex-direction: column;
    gap: 0.75rem;
  }

  #tab-actions > div[style*="display:grid"] > div {
    width: 100% !important;
    border-right: none !important;
    padding: 1rem !important;
  }

  /* Org chart mobile container */
  .org-tree {
    overflow-x: auto;
    min-width: unset !important;
    width: 100% !important;
    padding-bottom: 0.75rem;
  }

  .org-tree > div {
    min-width: unset !important;
    width: 100% !important;
  }

  .org-body .url-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .org-body .url-inp,
  .org-body .url-btn {
    width: 100%;
  }

  /* Trend panel mobile table stacking */
  #trend-table > div {
    display: block !important;
    overflow-x: auto;
    width: 100%;
  }

  #trend-table > div > div {
    width: max-content;
    min-width: 100%;
    display: grid !important;
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 0.5rem;
  }

  #trend-table > div > div > div {
    text-align: left !important;
  }

  #trend-table div[style*="grid-template-columns:130px repeat(4,1fr) 44px"] {
    grid-template-columns: 1fr !important;
  }

  #trend-table div[style*="display:flex;gap:10px"] {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  #trend-table .q-toggle {
    min-width: 115px;
    flex: 1 1 auto;
  }

  #trend-table span#trend-compare-label {
    margin-left: 0 !important;
    width: 100%;
    text-align: left;
  }

  .fw-search-wrap,
  .fw-detail,
  .add-form,
  .org-body,
  .share-body {
    padding: 0.75rem !important;
  }
}

/* Phones (480px and below) */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .nav {
    padding: 0 1rem;
    height: auto;
    min-height: 48px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .nav-logo {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .nav > div {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
  }

  .nav-link {
    font-size: 10px;
    padding: 2px 8px;
    margin-left: 0.25rem;
  }

  .hero {
    padding: 2rem 1rem 0;
    min-height: 45vh;
  }

  .h1 {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }

  .strong {
    font-size: 22px;
  }

  .tag {
    font-size: 9px;
    padding: 2px 8px;
    margin-bottom: 0.75rem;
  }

  .sub {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }

  .cta {
    font-size: 13px;
    padding: 9px 18px;
    gap: 6px;
    width: 100%;
    justify-content: center;
  }

  .metrics {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }

  .metric {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .metric-val {
    font-size: 1.5rem;
  }

  .metric-lbl {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .how {
    padding: 2rem 1rem;
  }

  .how-title {
    font-size: 10px;
    margin-bottom: 1.25rem;
  }

  .step {
    gap: 0.75rem;
    padding: 0.75rem 0;
  }

  .step-num {
    width: 24px;
    height: 24px;
    font-size: 11px;
    flex-shrink: 0;
  }

  .step-title {
    font-size: 13px;
    margin-bottom: 3px;
  }

  .step-desc {
    font-size: 12px;
    line-height: 1.5;
  }

  .lp-footer {
    padding: 1rem;
    flex-direction: column;
    gap: 0.75rem;
  }

  .lp-footer-logo {
    font-size: 12px;
  }

  .lp-footer-btn {
    font-size: 12px;
    width: 100%;
    padding: 8px 12px;
  }

  /* Survey Mobile */
  .sv-hdr {
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .sv-logo {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .sv-pw {
    width: 100%;
  }

  .sv-pb {
    height: 2px;
  }

  .sv-pl {
    font-size: 9px;
    margin-top: 2px;
  }

  .sv-body {
    padding: 1.5rem 1rem;
    min-height: auto;
  }

  .sv-card {
    max-width: 100%;
    width: 100%;
  }

  .sv-badge {
    font-size: 9px;
    padding: 2px 8px;
    margin-bottom: 1rem;
  }

  .sv-q {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 1.25rem;
  }

  .sv-text,
  .sv-ta {
    font-size: 13px;
    padding: 10px 12px;
    margin-bottom: 1.25rem;
  }

  .sv-scale {
    gap: 6px;
    margin-bottom: 0.75rem;
  }

  .sv-scale-btn {
    width: 40px;
    height: 40px;
    font-size: 12px;
    border-radius: 6px;
  }

  .sv-scale-lbl {
    font-size: 10px;
  }

  .sv-opt {
    font-size: 12px;
    margin-bottom: 0.5rem;
  }

  .sv-nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .sv-next,
  .sv-back {
    width: 100%;
    font-size: 12px;
    padding: 10px 12px;
    min-width: unset;
  }

  .dept-wrap {
    width: 100%;
  }

  .dept-dd {
    max-height: 180px;
    font-size: 13px;
  }

  .dept-item {
    padding: 9px 12px;
    font-size: 13px;
  }

  /* Report Mobile */
  .rp-hdr {
    padding: 1rem 1rem 0.5rem;
    overflow: visible;
  }

  .rp-hdr::before {
    display: none;
  }

  .rp-client {
    font-size: 9px;
    margin-bottom: 4px;
    letter-spacing: 0.08em;
  }

  .rp-title {
    font-size: 0.85rem;
    margin-bottom: 2px;
    font-weight: 600;
  }

  .rp-conf {
    font-size: 9px;
    letter-spacing: 0.05em;
  }

  .rp-accent {
    height: 1px;
  }

  .rp-tabs {
    display: none !important;
  }

  .rp-tabs-mobile {
    display: block !important;
    background: #f8fafc;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.15);
    position: relative;
    z-index: 50;
  }

  .rp-tab {
    font-size: 11px;
    padding: 0.4rem 0.5rem;
    min-width: max-content;
  }

  .rp-tabs-mobile-btn {
    padding: 0.5rem 0;
    font-size: 11px;
    font-weight: 500;
    min-height: 32px;
  }

  .rp-tabs-mobile-menu {
    top: 100%;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  }

  .rp-tabs-mobile-item {
    padding: 0.6rem 1rem;
    font-size: 11px;
    font-weight: 500;
  }

  .results-legend {
    padding: 0.65rem 1rem;
    gap: 0.75rem;
  }

  .leg-item {
    font-size: 10px;
    flex-shrink: 0;
  }

  .results-col {
    padding: 1rem 1rem;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.18);
  }

  .results-col.r {
    border-left: none;
    border-bottom: none;
  }

  .sec {
    font-size: 10px;
    margin-bottom: 1rem;
  }

  .base-row {
    gap: 8px;
    padding: 0;
    height: auto;
    margin-bottom: 0.75rem;
  }

  .base-dim {
    font-size: 12px;
    min-width: 80px;
    flex-shrink: 0;
  }

  .gap-row {
    height: auto;
    padding: 0.75rem 0;
    gap: 8px;
  }

  .gap-dim {
    font-size: 12px;
    min-width: 80px;
    flex-shrink: 0;
  }

  .gap-val {
    font-size: 12px;
    font-weight: 600;
  }

  .act-card {
    padding: 1rem;
    margin-bottom: 10px;
    border-radius: 0 8px 8px 0;
  }

  .act-hdr {
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
  }

  .act-rank {
    font-size: 10px;
  }

  .st-badge {
    font-size: 10px;
    padding: 2px 6px;
    min-width: 90px;
  }

  .act-dim {
    font-size: 15px;
  }

  .act-diag {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .act-why,
  .act-step {
    font-size: 11px;
    padding: 8px 10px;
    margin-bottom: 8px;
  }

  /* Org Mobile */
  .org-body {
    padding: 1rem 1rem 1.5rem;
  }

  .fw-search-wrap {
    max-width: 100%;
  }

  .fw-input {
    font-size: 13px;
    padding: 10px 12px;
  }

  .fw-detail {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  /* Share Mobile */
  .share-body {
    padding: 1rem 1rem 1.5rem;
  }

  .share-title {
    font-size: 13px;
    margin-bottom: 0.4rem;
  }

  .share-desc {
    font-size: 11px;
    margin-bottom: 1rem;
  }

  .upload-zone {
    padding: 1rem;
    margin-bottom: 0.75rem;
  }

  .upload-cta {
    font-size: 12px;
  }

  .upload-sub {
    font-size: 11px;
  }

  .add-row {
    flex-direction: column;
    gap: 6px;
  }

  .add-inp,
  .add-sel {
    padding: 8px 10px;
    font-size: 12px;
  }

  .add-save,
  .add-cancel {
    padding: 8px 12px;
    font-size: 12px;
    width: 100%;
  }

  .add-toggle {
    width: 100%;
    font-size: 12px;
    padding: 7px 12px;
  }

  .email-row {
    flex-direction: column;
    gap: 6px;
  }

  .email-inp {
    padding: 10px 12px;
    font-size: 13px;
  }

  .email-add {
    width: 100%;
    padding: 10px;
    font-size: 12px;
  }

  .msg-ta {
    padding: 10px 12px;
    font-size: 12px;
    margin-top: 0.75rem;
  }

  .send-btn {
    padding: 11px;
    font-size: 13px;
    margin-top: 0.75rem;
  }

  .url-row {
    flex-direction: column;
    gap: 6px;
  }

  .url-inp {
    padding: 9px 11px;
    font-size: 12px;
  }

  .url-btn {
    width: 100%;
    padding: 9px;
    font-size: 12px;
  }

  .share-card {
    padding: 1rem;
  }

  .prev-box {
    padding: 1rem;
  }

  .prev-h {
    font-size: 11px;
    margin-bottom: 0.5rem;
  }

  .prev-l {
    font-size: 11px;
    line-height: 1.8;
  }

  .q-toggle {
    font-size: 10px;
    padding: 5px 10px;
  }
}

/* Extra Small Phones (375px and below) */
@media (max-width: 375px) {
  .nav {
    padding: 0 0.75rem;
  }

  .hero {
    padding: 1.5rem 0.75rem 0;
  }

  .h1 {
    font-size: 19px;
  }

  .strong {
    font-size: 19px;
  }

  .sub {
    font-size: 12px;
  }

  .cta {
    font-size: 12px;
    padding: 8px 14px;
  }

  .how {
    padding: 1.5rem 0.75rem;
  }

  .step-title {
    font-size: 12px;
  }

  .step-desc {
    font-size: 11px;
  }

  .sv-body {
    padding: 1rem 0.75rem;
  }

  .sv-q {
    font-size: 0.95rem;
  }

  .sv-scale-btn {
    width: 36px;
    height: 36px;
    font-size: 11px;
  }

  .act-dim {
    font-size: 13px;
  }

  .rp-tab {
    padding: 0.5rem 0.6rem;
    font-size: 11px;
  }
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.modal-overlay.active {
  display: flex !important;
}
.modal-card {
  background: #fff;
  padding: 3rem 2.5rem;
  border-radius: 16px;
  width: 90%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.15s;
}
.modal-close:hover {
  color: #0f172a;
}
.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 2rem;
  font-family: "Inter", sans-serif;
  letter-spacing: -0.01em;
}
.modal-input-wrap {
  margin-bottom: 1.25rem;
  text-align: left;
}
.modal-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.modal-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 8px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  color: #0f172a;
  outline: none;
  transition: all 0.15s;
}
.modal-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.modal-btn {
  width: 100%;
  background: #2563eb;
    width: 100%;
    padding: 10px;
    font-size: 12px;
  }

  .msg-ta {
    padding: 10px 12px;
    font-size: 12px;
    margin-top: 0.75rem;
  }

  .send-btn {
    padding: 11px;
    font-size: 13px;
    margin-top: 0.75rem;
  }

  .url-row {
    flex-direction: column;
    gap: 6px;
  }

  .url-inp {
    padding: 9px 11px;
    font-size: 12px;
  }

  .url-btn {
    width: 100%;
    padding: 9px;
    font-size: 12px;
  }

  .share-card {
    padding: 1rem;
  }

  .prev-box {
    padding: 1rem;
  }

  .prev-h {
    font-size: 11px;
    margin-bottom: 0.5rem;
  }

  .prev-l {
    font-size: 11px;
    line-height: 1.8;
  }

  .q-toggle {
    font-size: 10px;
    padding: 5px 10px;
  }
}

/* Extra Small Phones (375px and below) */
@media (max-width: 375px) {
  .nav {
    padding: 0 0.75rem;
  }

  .hero {
    padding: 1.5rem 0.75rem 0;
  }

  .h1 {
    font-size: 19px;
  }

  .strong {
    font-size: 19px;
  }

  .sub {
    font-size: 12px;
  }

  .cta {
    font-size: 12px;
    padding: 8px 14px;
  }

  .how {
    padding: 1.5rem 0.75rem;
  }

  .step-title {
    font-size: 12px;
  }

  .step-desc {
    font-size: 11px;
  }

  .sv-body {
    padding: 1rem 0.75rem;
  }

  .sv-q {
    font-size: 0.95rem;
  }

  .sv-scale-btn {
    width: 36px;
    height: 36px;
    font-size: 11px;
  }

  .act-dim {
    font-size: 13px;
  }

  .rp-tab {
    padding: 0.5rem 0.6rem;
    font-size: 11px;
  }
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.modal-overlay.active {
  display: flex !important;
}
.modal-card {
  background: #fff;
  padding: 3rem 2.5rem;
  border-radius: 16px;
  width: 90%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.15s;
}
.modal-close:hover {
  color: #0f172a;
}
.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 2rem;
  font-family: "Inter", sans-serif;
  letter-spacing: -0.01em;
}
.modal-input-wrap {
  margin-bottom: 1.25rem;
  text-align: left;
}
.modal-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.modal-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 8px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  color: #0f172a;
  outline: none;
  transition: all 0.15s;
}
.modal-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.modal-btn {
  width: 100%;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  margin-top: 1rem;
  transition: background 0.15s;
}

.modal-btn:hover {
  background: #1d4ed8;
}

/* Company Management Panel */
.companies-body {
  padding: 2.5rem 4rem;
  background: #fff;
  min-height: 600px;
}

.companies-hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.companies-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-wrap svg {
  position: absolute;
  left: 12px;
  color: var(--t3);
  pointer-events: none;
}

.search-inp {
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  width: 240px;
  outline: none;
  transition: all 0.2s;
}

.search-inp:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.add-co-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.add-co-btn:hover {
  background: #1d4ed8;
}

/* Table Styles */
.table-container {
  width: 100%;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

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

.co-table th {
  background: var(--off);
  padding: 14px 20px;
  font-weight: 600;
  color: var(--t2);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

.co-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

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

.co-info .co-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.co-info .co-date {
  font-size: 11px;
  color: var(--t3);
}

/* iOS Toggle Switch */
.ios-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.ios-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e2e8f0;
  transition: 0.3s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

input:checked + .slider {
  background-color: #34c759;
}

input:checked + .slider:before {
  transform: translateX(16px);
}

/* Action Buttons */
.action-btns {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--t2);
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  background: var(--bl);
  border-color: var(--bm);
  color: var(--blue);
}

.action-btn.delete:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-info {
  font-size: 13px;
  color: var(--t2);
}

.page-btns {
  display: flex;
  gap: 6px;
}

.page-btn {
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  font-size: 13px;
  color: var(--t2);
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
  background: var(--off);
  border-color: var(--bd2);
}

.page-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

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

/* Responsive Table */
@media (max-width: 768px) {
  .companies-hdr {
    flex-direction: column;
    gap: 1.5rem;
  }

  .companies-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .search-wrap,
  .search-inp {
    width: 100%;
  }

  .co-table thead {
    display: none;
  }

  .co-table tr {
    display: block;
    border-bottom: 2px solid var(--border);
    padding: 1rem 0;
  }

  .co-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border: none;
  }

  .co-table td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--t2);
  }

  .action-btns {
    width: 100%;
  }
}

/* =====================================================
   TOAST NOTIFICATIONS
   ===================================================== */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  pointer-events: none;
}

.toast-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.07);
  border-left: 4px solid #2563eb;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: all;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #0f172a;
  line-height: 1.45;
  min-width: 280px;
}

.toast-item.toast-show { opacity: 1; transform: translateX(0); }
.toast-success { border-left-color: #22c55e; }
.toast-error   { border-left-color: #ef4444; }
.toast-info    { border-left-color: #3b82f6; }

.toast-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toast-success .toast-icon { background: #dcfce7; color: #16a34a; }
.toast-error   .toast-icon { background: #fee2e2; color: #dc2626; }
.toast-info    .toast-icon { background: #dbeafe; color: #2563eb; }
.toast-msg   { flex: 1; font-weight: 500; }
.toast-close { background: none; border: none; color: #94a3b8; font-size: 18px; cursor: pointer; padding: 0; line-height: 1; flex-shrink: 0; transition: color 0.15s; }
.toast-close:hover { color: #475569; }

/* =====================================================
   ENHANCED MODALS
   ===================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }

.modal-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  animation: modalSlideUp 0.28s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes modalSlideUp {
  from { transform: translateY(24px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.modal-card-danger { border-top: 4px solid #ef4444; }

.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  font-size: 22px; color: #94a3b8;
  cursor: pointer; line-height: 1;
  padding: 4px; border-radius: 6px;
  transition: all 0.15s;
}
.modal-close:hover { background: #f1f5f9; color: #0f172a; }

.modal-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.modal-icon-add    { background: #eff6ff; color: #2563eb; }
.modal-icon-edit   { background: #f0fdf4; color: #16a34a; }
.modal-icon-danger { background: #fee2e2; color: #dc2626; }

.modal-title    { font-size: 18px; font-weight: 700; color: #0f172a; margin-bottom: 6px; font-family: "Inter", sans-serif; }
.modal-subtitle { font-size: 13px; color: #64748b; margin-bottom: 24px; line-height: 1.6; font-family: "Inter", sans-serif; }
.modal-input-wrap { margin-bottom: 16px; }

.modal-label {
  display: block;
  font-size: 12px; font-weight: 600; color: #374151;
  margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.06em;
  font-family: "Inter", sans-serif;
}
.modal-optional { font-weight: 400; color: #9ca3af; text-transform: none; letter-spacing: 0; }
.req { color: #ef4444; }

.modal-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  font-size: 14px; font-family: "Inter", sans-serif;
  color: #0f172a; outline: none;
  background: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  box-sizing: border-box;
}
.modal-input:focus          { border-color: #2563eb; background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.modal-input.input-error    { border-color: #ef4444; background: #fff5f5; box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }

.field-error { font-size: 12px; color: #dc2626; margin-top: 5px; font-family: "Inter", sans-serif; }

.pw-wrap                  { position: relative; }
.pw-wrap .modal-input     { padding-right: 44px; }
.pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #94a3b8; cursor: pointer;
  padding: 2px; display: flex; align-items: center; opacity: 0.7; transition: opacity 0.15s;
}
.pw-toggle:hover { opacity: 1; color: #475569; }

.modal-btn {
  width: 100%; padding: 12px 20px;
  background: #2563eb; color: #fff;
  border: none; border-radius: 9px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: "Inter", sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 8px;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.modal-btn:hover:not(:disabled)  { background: #1d4ed8; box-shadow: 0 4px 16px rgba(37,99,235,0.35); }
.modal-btn:active:not(:disabled) { transform: scale(0.98); }
.modal-btn:disabled              { opacity: 0.6; cursor: not-allowed; }

.modal-btn-danger { background: #ef4444; box-shadow: 0 2px 8px rgba(239,68,68,0.25); }
.modal-btn-danger:hover:not(:disabled) { background: #dc2626; box-shadow: 0 4px 16px rgba(239,68,68,0.35); }

.modal-danger-actions { display: flex; gap: 12px; margin-top: 20px; }

.modal-btn-cancel {
  flex: 1; padding: 12px 20px;
  background: #f1f5f9; color: #475569;
  border: 1.5px solid #e2e8f0; border-radius: 9px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: "Inter", sans-serif;
  transition: background 0.15s;
}
.modal-btn-cancel:hover { background: #e2e8f0; color: #0f172a; }

.delete-name-highlight { color: #dc2626; }

/* =====================================================
   COMPANY TABLE ENHANCEMENTS
   ===================================================== */
.co-row { transition: background 0.12s; }
.co-row:hover { background: #f8fafc; }

.co-info { display: flex; align-items: center; gap: 12px; }

.co-avatar {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #fff;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: "Inter", sans-serif;
}

.co-email { font-size: 13px; color: #475569; font-family: "Inter", sans-serif; }

.status-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; margin-left: 8px; vertical-align: middle; letter-spacing: 0.04em; font-family: "Inter", sans-serif; }
.status-active   { background: #dcfce7; color: #16a34a; }
.status-inactive { background: #fee2e2; color: #dc2626; }

.page-ellipsis { display: inline-flex; align-items: center; padding: 0 4px; color: #94a3b8; font-size: 13px; }

/* =====================================================
   LOADING SPINNER
   ===================================================== */
.co-spinner {
  width: 36px; height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================
   NAV ADD-COMPANY BUTTON
   ===================================================== */
.add-company-nav-btn {
  background: none;
  border: 1px solid #2563eb !important;
  color: #2563eb !important;
  border-radius: 7px; cursor: pointer;
  transition: all 0.15s;
}
.add-company-nav-btn:hover { background: #2563eb !important; color: #fff !important; }
