/* ================================
   landing.css (LANDING ONLY)
   Loaded only when body_class is landing/auth
   ================================ */

/* Premium navbar (only matters on landing/auth) */
body.landing .sg-nav,
body.auth .sg-nav{
  background: rgba(255,255,255,.72) !important;
  border-bottom: 1px solid rgba(15,23,42,.10);
  backdrop-filter: blur(14px);
}
body.landing .sg-brand,
body.auth .sg-brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
body.landing .sg-brandmark,
body.auth .sg-brandmark{
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(37,99,235,.10);
  border: 1px solid rgba(37,99,235,.16);
  color: #2563eb;
}
body.landing .sg-nav .nav-link,
body.auth .sg-nav .nav-link{
  font-weight: 800;
  color: rgba(15,23,42,.74) !important;
}
body.landing .sg-nav .nav-link:hover,
body.auth .sg-nav .nav-link:hover{
  color: rgba(15,23,42,.95) !important;
}
body.landing .sg-navbtn,
body.auth .sg-navbtn{
  border-radius: 12px !important;
  min-height: 40px;
  display:inline-flex;
  align-items:center;
  gap: 8px;
}

/* ================================
   LANDING — sg-* classes
   ================================ */

body.landing .sg-hero{ padding-top: 18px; }
body.landing .sg-section{ padding: 70px 0; }

body.landing .sg-label{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
  color: rgba(15,23,42,.55);
}
body.landing .sg-label .pill{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(37,99,235,.10);
}

body.landing .sg-title{
  max-width: 22ch;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.06;
  font-size: clamp(2.4rem, 3.6vw, 3.7rem);
  margin: 0;
  text-wrap: balance;
}
body.landing .sg-sub{
  max-width: 58ch;
  font-size: 1.08rem;
  color: rgba(15,23,42,.62);
  line-height: 1.75;
}

/* CTA */
body.landing .sg-cta{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  margin-top: 22px;
}
body.landing .sg-cta .btn{
  min-height: 52px;
  padding: 12px 18px;
  display:inline-flex;
  align-items:center;
  gap: 10px;
  border-radius: 14px;
}
body.landing .sg-demo{
  background: rgba(255,255,255,.78) !important;
  border: 1px solid rgba(15,23,42,.14) !important;
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
}
body.landing .sg-demo:hover{
  border-color: rgba(37,99,235,.22) !important;
  box-shadow: 0 18px 44px rgba(15,23,42,.10);
}

/* Proof pills */
body.landing .sg-proof{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
@media (max-width: 991.98px){
  body.landing .sg-proof{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px){
  body.landing .sg-proof{ grid-template-columns: 1fr; }
}
body.landing .sg-proof .p{
  width: 100%;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 26px rgba(15,23,42,.08);
  font-weight: 850;
  color: rgba(15,23,42,.70);
  display:inline-flex;
  align-items:center;
  gap: 10px;
  font-size: .92rem;
}
body.landing .sg-proof .p i{ color: var(--accent); }

/* Preview card */
body.landing .sg-preview{
  max-width: 640px;
  margin-left: auto;
  border-radius: 28px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  overflow:hidden;
}
body.landing .sg-preview-top{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15,23,42,.08);
}
body.landing .sg-dots{ display:flex; gap: 7px; }
body.landing .sg-dots span{ width: 10px; height: 10px; border-radius: 999px; opacity:.9; }
body.landing .sg-dots .r{ background: rgba(239,68,68,.85); }
body.landing .sg-dots .y{ background: rgba(245,158,11,.85); }
body.landing .sg-dots .g{ background: rgba(34,197,94,.85); }
body.landing .sg-preview-title{ font-weight: 900; color: rgba(15,23,42,.72); }
body.landing .sg-badge{
  margin-left:auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(37,99,235,.10);
  border: 1px solid rgba(37,99,235,.16);
  color: var(--accent);
  font-weight: 900;
}
body.landing .sg-preview-body{ padding: 14px; }
body.landing .sg-video{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 14px 40px rgba(15,23,42,.10);
}
body.landing .sg-video video{ width: 100%; display:block; }

body.landing .sg-h2{
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

/* Mini highlights */
body.landing .sg-mini{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  justify-content:center;
  margin-top: 18px;
}
body.landing .sg-mini .m{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 26px rgba(15,23,42,.08);
  font-weight: 850;
  color: rgba(15,23,42,.70);
}
body.landing .sg-mini .m i{ color: var(--accent); }

/* Feature cards */
body.landing .sg-card{
  height: 100%;
  border-radius: 22px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 12px 32px rgba(15,23,42,.08);
  backdrop-filter: blur(14px);
  padding: 22px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.landing .sg-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(15,23,42,.12);
  border-color: rgba(37,99,235,.22);
}
body.landing .sg-ic{
  width: 54px; height: 54px;
  border-radius: 18px;
  display:grid;
  place-items:center;
  background: rgba(37,99,235,.10);
  border: 1px solid rgba(37,99,235,.16);
  color: var(--accent);
  margin-bottom: 14px;
}
body.landing .sg-ic i{ font-size: 1.45rem; }
body.landing .sg-card h3{ font-weight: 750; letter-spacing: -0.02em; margin-bottom: 8px; }
body.landing .sg-card p{ color: rgba(15,23,42,.62); line-height: 1.75; margin: 0; }

body.landing .sg-card .sg-points{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
body.landing .sg-card .sg-point{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  color: rgba(15,23,42,.62);
  line-height: 1.65;
  font-weight: 650;
}
body.landing .sg-card .sg-point i{ margin-top: 2px; color: var(--accent); }

/* Strip */
body.landing .sg-strip{
  margin-top: 22px;
  border-radius: 22px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 12px 32px rgba(15,23,42,.08);
  backdrop-filter: blur(14px);
  overflow:hidden;
}
body.landing .sg-strip .row{ margin:0; }
body.landing .sg-strip .col-md-4{
  padding: 18px;
  border-right: 1px solid rgba(15,23,42,.08);
}
body.landing .sg-strip .col-md-4:last-child{ border-right: 0; }
body.landing .sg-strip .k{ font-weight: 950; letter-spacing: -0.02em; }
body.landing .sg-strip .v{ color: rgba(15,23,42,.62); line-height: 1.7; margin-top: 4px; }

/* Split */
body.landing .sg-split{
  border-radius: 30px;
  overflow:hidden;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
body.landing .sg-split-left{ background: rgba(37,99,235,.06); padding: 28px; }
body.landing .sg-split-right{ padding: 28px; }

body.landing .sg-faq{
  border-radius: 18px;
  overflow:hidden;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(15,23,42,.10);
  margin-bottom: 14px;
}
body.landing .sg-faq button{
  width: 100%;
  border: 0;
  background: transparent;
  padding: 16px;
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 12px;
  font-weight: 950;
  color: rgba(15,23,42,.82);
}
body.landing .sg-faq .ic{
  width: 38px; height: 38px;
  border-radius: 999px;
  display:grid; place-items:center;
  background: rgba(37,99,235,.10);
  border: 1px solid rgba(37,99,235,.16);
  color: var(--accent);
}
body.landing .sg-faq .body{
  padding: 0 16px 16px;
  color: rgba(15,23,42,.62);
  line-height: 1.75;
  font-weight: 650;
}

/* Ready section helper */
body.landing .sg-quote-ready{
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: 18px;
}
/* ================================
   DASHBOARD LAYOUT (match ref)
   ================================ */

.dash-stats .stat-card-eq{
  min-height: 110px;          /* same height for all 4 */
  border-radius: 22px;
}

.stat-bar{
  height: 4px;
  border-radius: 999px;
  background: rgba(15,23,42,.10);
  overflow: hidden;
}
.stat-bar::after{
  content:"";
  display:block;
  height: 100%;
  width: 55%;
  border-radius: 999px;
  background: rgba(37,99,235,.45);
}

/* Panels (2 cards left + 2 cards right, balanced) */
.dash-panels .dash-panel{
  border-radius: 22px;
}

/* control heights like the reference */
.dash-panel-tall{ min-height: 320px; }
.dash-panel-short{ min-height: 210px; }

/* keep tables from breaking card height */
.dash-table-scroll{
  max-height: 260px;
  overflow: auto;
}

/* Make sure columns stack nicely on smaller screens */
@media (max-width: 991.98px){
  .dash-panel-tall, .dash-panel-short{ min-height: auto; }
  .dash-table-scroll{ max-height: none; }
}
/* ===== 4 DASHBOARD PANELS: same sized like ref ===== */
.dash-panel{
  border-radius: 24px;
}

/* make panel content able to scroll inside fixed height */
.dash-panel-body{
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.dash-table-scroll{
  flex: 1;
  min-height: 0;
  overflow: auto;
}

/* desktop sizes (top row equal, bottom row equal) */
@media (min-width: 992px){
  .dash-panel-top{    min-height: 300px; }
  .dash-panel-bottom{ min-height: 300px; }
}

/* optional: smoother scrolling table look */
.dash-table-scroll::-webkit-scrollbar{ width: 10px; }
.dash-table-scroll::-webkit-scrollbar-thumb{
  background: rgba(15,23,42,.12);
  border-radius: 999px;
}
.dash-share-fill{
  flex: 1;
  min-height: 0;
  width: 100%;
  border-radius: 18px;
  border: 1px dashed rgba(15,23,42,.14);
  background: rgba(255,255,255,.40);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 16px;
  cursor: pointer;

  /* reset button look */
  appearance: none;
  -webkit-appearance: none;
  border-width: 1px;
  text-align: inherit;
}

.dash-share-fill:hover{
  border-color: rgba(37,99,235,.22);
  box-shadow: 0 14px 36px rgba(15,23,42,.10);
  transform: translateY(-1px);
}

.dash-share-fill:active{
  transform: translateY(0);
}

.dash-share-fill:focus{
  outline: none;
  box-shadow: 0 0 0 .25rem rgba(37,99,235,.12);
}

.dash-share-fill-inner{ text-align:center; max-width:340px; }

.dash-share-icon{
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  background: rgba(37,99,235,.10);
  border: 1px solid rgba(37,99,235,.16);
  color: var(--accent);
  font-size: 1.25rem;
}

.dash-panel-bottom-taller{
  min-height: 250px;
}
.dash-account-link{
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.dash-account-link:hover{
  border-color: rgba(37,99,235,.22);
  box-shadow: 0 14px 34px rgba(15,23,42,.10);
  transform: translateY(-1px);
  transition: .15s ease;
}

  
 
  .clients-table{
    table-layout: fixed;
    width: 100%;
  }
  .clients-table th,
  .clients-table td{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
  }


  .clients-table td:first-child{
    white-space: normal;
  }

.dash-panel {
  overflow: hidden;        
}

.dash-panel-body {
  flex: 1 1 auto;
  min-height: 0;          
}


.dash-table-scroll {
  flex: 1 1 auto;
  min-height: 0;            
  overflow: auto;          
}

.dash-table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(0,0,0,0.0);
  backdrop-filter: blur(8px);
}

.addclient-md{
  max-width: 640px;   /* more space */
  width: calc(100% - 24px);
  margin: 0 auto;
}
.addclient-card{
  border-radius: 18px;
}
 /* Tighten ONLY the top of the first section (features) */
body.landing #features.sg-section--top-tight{
  padding-top: 0.75rem !important;   /* try 0 / 0.5rem / 1rem */
}

/* Reduce the gap between heading and the cards */
body.landing #features .sg-feat-wrap{
  margin-top: 0.75rem !important;    /* if still big, set to 0 */
}
/* Remove top gap above READY card */
body.landing .sg-section--no-top-gap{
  padding-top: 0 !important;
}

/* If there is still a gap, kill any top margin on wrappers */
body.landing .sg-section--no-top-gap .container,
body.landing .sg-section--no-top-gap .row{
  margin-top: 0 !important;
}

/* Safety: ensure card itself isn’t pushing down */
body.landing .sg-section--no-top-gap .ready-card{
  margin-top: 0 !important;
}
.modal { z-index: 3000 !important; }
.modal-backdrop { z-index: 2990 !important; }
