/* app/site/static/css/tweaks.css */
/* Example: reduce preloader annoyance while developing */
.preloader { display: none !important; }

/* Nav logo sizing (keeps any logo file from blowing up) */
.nk-header-logo .logo-img{
  height: 34px;        /* try 32–38 */
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

/* Footer logo sizing (same idea as header, but tuned for footer layout) */
.nk-footer-logo .logo-wrap{
  max-width: 180px;    /* prevents the wrap expanding */
}

.nk-footer-logo .logo-img{
  height: 34px;        /* try 28–36 */
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

/* Why: Nioland demo uses hardcoded left offsets for mega menus which clip on smaller screens.
   This re-anchors mega menus to the header, centers them, and clamps width to the viewport. */

@media (min-width: 992px) {
  /* Ensure the header is the positioning context */
  .nk-header-main {
    position: relative;
  }

  /* Mark mega-parent items as static so the submenu positions against the header, not the <li> */
  .nk-nav-item.sb-mega {
    position: static !important;
  }

  /* Mega menu: centered + clamped */
  .nk-nav-item.sb-mega > .nk-nav-sub.nk-nav-mega {
    left: 50% !important;
    right: auto !important;

    width: min(920px, calc(100vw - 2rem)) !important;
    max-width: calc(100vw - 2rem) !important;

    transform: translate(-50%, 5px) !important;

    /* Never run off-screen vertically either */
    max-height: calc(100vh - 140px);
    overflow: auto;

    box-sizing: border-box;
  }

  /* Keep Nioland hover animation but preserve centering */
  .nk-nav-item.sb-mega:hover > .nk-nav-sub.nk-nav-mega {
    transform: translate(-50%, 0) !important;
  }
}

/* Brand logos: reduce mobile by 45%, keep desktop as-is */
.nk-brand-section .nk-brand img{
  display:block;
  width:auto !important;
  height:48px !important;        /* 88px * 0.55 ≈ 48px */
  max-height:48px !important;
  max-width:100% !important;
  object-fit:contain;
}

@media (min-width: 576px){
  .nk-brand-section .nk-brand img{
    height:40px !important;      /* 72px * 0.55 ≈ 40px */
    max-height:40px !important;
  }
}

@media (min-width: 992px){
  .nk-brand-section .nk-brand img{
    height:50px !important;      /* desktop unchanged */
    max-height:50px !important;
  }
}

@media (min-width: 1200px){
  .nk-brand-section .nk-brand img{
    height:46px !important;      /* large desktop unchanged */
    max-height:46px !important;
  }
}

/* Center the brand/logo row + each logo inside its column */
.nk-brand-section .row{
  justify-content:center !important;
}

.nk-brand-section .nk-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
}

.nk-brand-section .nk-brand a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
}

/* Hero tiles: round + clip the floating thumbs (matches model-picker feel) */
.nk-banner-img-s1 .thumb{
  border-radius: 22px;      /* tweak 18–28px to taste */
  overflow: hidden;          /* ensures the image corners actually clip */
  display: block;
}

/* Feature tile media: keep it tidy + premium */
.sb-feature-media{
  margin-top:14px;
  padding:0 22px 22px;           /* replaces ps-* spacing */
}

.sb-feature-shot{
  display:block;
  width:min(420px, 100%);        /* smaller on desktop */
  max-width:420px;
  height:auto;
  border-radius:18px;            /* rounded like your model picker */
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 14px 32px rgba(15,23,42,.10);
}

/* Mobile: still clean, not huge */
@media (max-width: 575.98px){
  .sb-feature-media{ padding:0 16px 18px; }
  .sb-feature-shot{
    width:min(360px, 100%);
    max-width:360px;
    border-radius:16px;
  }
}

/* ============================
   Overview video (clean + rounded)
   ============================ */

/* Kill any theme overlays/frames in this block */
#overview .nk-video .nk-mask,
#overview .nk-video-logo,
#overview .nk-video-btn {
  display: none !important;
}

/* Remove the card-like background/frame from the video wrapper */
#overview .nk-video {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Make the media area a clean landscape “embed” and slightly smaller on big screens */
#overview .nk-video-media {
  width: 100% !important;
  max-width: 880px;              /* reduce size on wide screens */
  margin: 0 auto !important;
  padding: 0 !important;

  aspect-ratio: 16 / 9;
  overflow: hidden !important;

  border-radius: 18px !important; /* rounded corners */
  background: transparent !important;

  /* helps Safari actually clip the video */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  clip-path: inset(0 round 18px);
}

/* Stop negative margin utility classes from doing weird overlap */
#overview .nk-overview-video {
  margin: 0 !important;
  display: block !important;

  width: 100% !important;
  height: 100% !important;

  /* show full frame (no zoom crop) */
  object-fit: contain !important;

  border-radius: 18px !important;
  background: transparent !important;
}

/* Overview: premium avatar strip under video */
#overview .sb-overview-meta{
  max-width: 920px;
  margin: 14px auto 0;
  text-align: center;
}

#overview .sb-overview-tag{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(20, 30, 60, .55);
  margin-bottom: 10px;
}

#overview .sb-avatar-strip{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 8px;
  flex-wrap: wrap;
}

#overview .sb-avatar-strip img{
  width: 54px;
  height: 54px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.95);
  box-shadow: 0 10px 26px rgba(18, 28, 58, .12);
}

#overview .sb-avatar-strip img:hover{
  transform: translateY(-1px);
}

#overview .sb-overview-caption{
  font-size: 14px;
  color: rgba(20, 30, 60, .60);
}

@media (max-width: 575.98px){
  #overview .sb-avatar-strip img{ width: 46px; height: 46px; }
  #overview .sb-avatar-desktop-only{ display: none; }
}

/* Default */
#overview .nk-video-media{
  max-width: 880px !important;
  margin: 0 auto !important;
}

/* Only on proper desktop/wide screens */
@media (min-width: 1200px){
  #overview .nk-video-media{
    max-width: 720px !important; /* noticeable shrink */
  }
  #overview .sb-overview-meta{
    max-width: 720px !important;
  }
}
/* =========================================================
   OVERVIEW OVERLAP FIX
   Why: the theme’s video components can use absolute/negative
   positioning which collapses the block height, so the next
   content row slides up underneath. This hard-forces normal
   document flow + proper spacing, with clean rounded video.
   ========================================================= */

   #overview .nk-video {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;     /* let the card size naturally */
  }
  
  /* Kill any absolute/inset/transform tricks inside the video card */
  #overview .nk-video-inner,
  #overview .nk-video-content,
  #overview .nk-video-media,
  #overview .sb-overview-meta {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    height: auto !important;
  }
  
  /* Remove any negative margin utilities that could pull things over each other */
  #overview .nk-overview-video {
    margin: 0 !important;
  }
  
  /* The video box (this is where rounding actually works) */
  #overview .nk-video-media {
    width: 100% !important;
    max-width: 920px;                 /* keeps it premium on large screens */
    margin: 0 auto !important;
    border-radius: 18px !important;
    overflow: hidden !important;      /* REQUIRED for rounded corners on <video> */
    background: transparent !important;
    padding: 0 !important;
  }
  
  /* Video: show full frame (no crop) */
  #overview .nk-video-media video,
  #overview video.nk-overview-video {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;   /* no zoom/crop */
    border-radius: 18px !important;   /* harmless backup */
  }
  
  /* Meta block sits UNDER video, not overlaying anything */
  #overview .sb-overview-meta {
    max-width: 920px;
    margin: 14px auto 0 !important;
    text-align: center;
    padding: 0 0 14px 0 !important;
    z-index: 2 !important;
  }
  
  /* Extra safety: ensure the whole card has bottom padding so following rows can’t collide */
  #overview .nk-video {
    padding-bottom: 18px !important;
  }
  
  /* Avatar strip styling */
  #overview .sb-avatar-strip {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;                 /* prevents squeeze/overlap on narrower widths */
    margin: 10px 0 8px 0;
  }
  
  #overview .sb-avatar-strip img {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
  }
  
  /* If you still see the “shape-1” overlay/frame doing weird spacing, hide just that one */
  #overview .nk-mask.shape-1 {
    display: none !important;
  }

  /* Feature tile media: keep it tidy + premium (NO frame) */
#features .card.border-0.bg-primary-100{
  height: 100%;
  display: flex;
  flex-direction: column;
}

#features .card.border-0.bg-primary-100 > .card-body{
  flex: 1 1 auto;
}

/* media area sits at the bottom of the card */
.sb-feature-media{
  margin-top: auto;
  padding: 0 22px 22px;  /* same spacing as before, but stable */
}

/* clean image: just rounded corners, no border/shadow frame */
.sb-feature-shot{
  display: block;
  width: min(420px, 100%);
  max-width: 420px;
  height: auto;
  border-radius: 18px;
  overflow: hidden;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Mobile: slightly smaller */
@media (max-width: 575.98px){
  .sb-feature-media{ padding: 0 16px 18px; }
  .sb-feature-shot{
    width: min(360px, 100%);
    max-width: 360px;
    border-radius: 16px;
  }
}

/* =========================================================
   FEATURES: Big-card media alignment + bigger left image
   Targets ONLY the first two (big) cards in #features
   ========================================================= */

   #features .row.gy-5 > .col-lg-6:nth-child(-n+2) > .card{
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
  }
  
  #features .row.gy-5 > .col-lg-6:nth-child(-n+2) > .card > .card-body{
    flex: 1 1 auto !important;
  }
  
  /* Media wrappers (bottom align + same padding) */
  #features .row.gy-5 > .col-lg-6:nth-child(1) > .card > .text-start,
  #features .row.gy-5 > .col-lg-6:nth-child(2) > .card > .sb-feature-media{
    margin-top: auto !important;
    padding: 0 26px 26px !important;
    display: flex !important;
    align-items: flex-end !important;
  }
  
  #features .row.gy-5 > .col-lg-6:nth-child(1) > .card > .text-start{
    justify-content: flex-start !important;
  }
  
  #features .row.gy-5 > .col-lg-6:nth-child(2) > .card > .sb-feature-media{
    justify-content: flex-end !important;
  }
  
  /* LEFT big-card image: bigger + lower */
  #features .row.gy-5 > .col-lg-6:nth-child(1) > .card > .text-start img{
    width: min(680px, 100%) !important;
    max-width: 680px !important;
    height: auto !important;
    display: block !important;
  
    /* kill Bootstrap padding utility on the img (pe-3 / pe-md-7) */
    padding-right: 0 !important;
  
    /* make it feel bigger even if the PNG has whitespace */
    transform: translateY(16px) scale(1.12) !important;
    transform-origin: left bottom !important;
  }
  
  /* RIGHT big-card image: keep consistent */
  #features .row.gy-5 > .col-lg-6:nth-child(2) > .card > .sb-feature-media img{
    width: min(520px, 100%) !important;
    max-width: 520px !important;
    height: auto !important;
    display: block !important;
  }
  
  @media (max-width: 575.98px){
    #features .row.gy-5 > .col-lg-6:nth-child(-n+2) > .card > .text-start,
    #features .row.gy-5 > .col-lg-6:nth-child(-n+2) > .card > .sb-feature-media{
      padding: 0 16px 18px !important;
    }
  
    #features .row.gy-5 > .col-lg-6:nth-child(1) > .card > .text-start img{
      width: 100% !important;
      max-width: 520px !important;
      transform: translateY(10px) scale(1.10) !important;
    }
  }
  
  
  /* =========================================================
     FINAL CTA IMAGE: rounded + responsive, NO frame
     (keep ONLY this CTA block)
     ========================================================= */
  
  .nk-cta-card .nk-cta-img-wrap{
    padding: 0 !important;              /* overrides ps-5/pt-7 etc */
    margin: 0 !important;
    background: transparent !important;  /* removes “white chunky frame” */
    box-shadow: none !important;
    border: 0 !important;
  
    border-radius: 22px !important;
    overflow: hidden !important;         /* REQUIRED to clip corners */
  }
  
  .nk-cta-card .nk-cta-img-wrap img{
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: inherit !important;
    border: 0 !important;
  }
  
  /* Kill negative margin utility if present */
  .nk-cta-card .nk-cta-img-wrap img.me-n1{
    margin: 0 !important;
  }
  
  /* Medium + down: center + clamp + stop AOS slide transforms */
  @media (max-width: 991.98px){
    .nk-cta-card .nk-cta-img-wrap{
      margin: 0 auto 14px !important;
      text-align: center !important;
      max-width: 560px !important;
    }
  
    .nk-cta-card .nk-cta-img-wrap [data-aos]{
      transform: none !important;
      opacity: 1 !important;
    }
  }
  
  @media (max-width: 575.98px){
    .nk-cta-card .nk-cta-img-wrap{
      max-width: 360px !important;
      border-radius: 16px !important;
    }
  }

  /* =========================================================
   FINAL CTA image: centered + safe padding on small screens
   Drop at END of tweaks.css
   ========================================================= */

@media (max-width: 991.98px){
  .nk-cta-card .nk-cta-img-wrap{
    padding: 12px !important;              /* ~4–5mm safe padding */
    margin: 0 auto 14px !important;
    text-align: center !important;
    max-width: 520px !important;           /* clamp on md */
    box-sizing: border-box !important;
  }

  .nk-cta-card .nk-cta-img-wrap img{
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  /* stop AOS slide/scale on md/sm */
  .nk-cta-card .nk-cta-img-wrap [data-aos]{
    transform: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 575.98px){
  .nk-cta-card .nk-cta-img-wrap{
    padding: 14px !important;              /* a touch more on phones */
    max-width: 360px !important;           /* smaller on phones */
  }
}

/* =========================================
   Pricing page refinements (Nioland)
   Scope: pricing page (#plans)
   Accent color uses Bootstrap primary var.
   ========================================= */

   :root{
    --sb-primary: var(--bs-primary, #0d6efd);
    --sb-card-radius: 1.25rem;
    --sb-card-border: rgba(15, 23, 42, 0.10);
    --sb-card-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
    --sb-card-shadow-hover: 0 14px 38px rgba(15, 23, 42, 0.14);
  }
  
  /* Base card polish */
  #plans .nk-pricing.nk-pricing-s3{
    border-radius: var(--sb-card-radius);
    border: 1px solid var(--sb-card-border);
    background: #fff;
    box-shadow: none;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }
  
  #plans .nk-pricing.nk-pricing-s3:hover{
    transform: translateY(-2px);
    box-shadow: var(--sb-card-shadow-hover);
  }
  
  /* Make button sizing/padding consistent across all plans */
  #plans .nk-pricing .btn.btn-block{
    width: 100%;
    padding: .85rem 1.05rem;
    border-radius: .95rem;
    font-weight: 600;
    letter-spacing: .2px;
  }
  
  /* List readability (premium spacing, less busy) */
  #plans .nk-pricing .nk-list-link{
    margin: 0;
    padding: 0;
  }
  
  #plans .nk-pricing .nk-list-link > li{
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding: .42rem 0;
    line-height: 1.45;
  }
  
  #plans .nk-pricing .nk-list-link > li .icon{
    margin-top: .15rem;
    opacity: .85;
    transform: translateY(1px);
  }
  
  #plans .nk-pricing .nk-list-link > li span{
    opacity: .98;
  }
  
  /* Subtle spacing inside card */
  #plans .nk-pricing .nk-pricing-head{
    padding-bottom: .25rem;
  }
  
  #plans .nk-pricing .nk-pricing-body{
    gap: .25rem;
  }
  
  /* Tooltip "i" button consistency */
  #plans .nk-pricing button.btn.btn-xs.btn-outline-primary{
    border-radius: .6rem;
    font-weight: 700;
    padding: .05rem .45rem;
  }
  
  /* =========================================================
     DIRECTION A
     Keep the blue filled "most popular" card, but soften it.
     ========================================================= */
  
  /* Active card background softened with a quiet gradient */
  #plans .nk-pricing.nk-pricing-s3.active{
    border-color: rgba(13, 110, 253, 0.28);
    box-shadow: var(--sb-card-shadow);
    background:
      radial-gradient(1200px 600px at 20% 0%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 60%),
      linear-gradient(180deg, rgba(13, 110, 253, 0.92), rgba(13, 110, 253, 0.82));
    color: rgba(255,255,255,0.94);
  }
  
  /* Ensure text elements inherit nicely on the active card */
  #plans .nk-pricing.nk-pricing-s3.active .title,
  #plans .nk-pricing.nk-pricing-s3.active .text,
  #plans .nk-pricing.nk-pricing-s3.active p,
  #plans .nk-pricing.nk-pricing-s3.active .amount,
  #plans .nk-pricing.nk-pricing-s3.active .amount-text,
  #plans .nk-pricing.nk-pricing-s3.active .small{
    color: rgba(255,255,255,0.94) !important;
  }
  
  /* Reduce list icon emphasis on the blue card */
  #plans .nk-pricing.nk-pricing-s3.active .nk-list-link > li .icon{
    opacity: .70;
  }
  
  /* Make the active plan CTA look truly primary (white button, strong contrast) */
  #plans .nk-pricing.nk-pricing-s3.active .btn.btn-outline-primary{
    background: #fff;
    border-color: rgba(255,255,255,0.92);
    color: var(--sb-primary);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  }
  
  #plans .nk-pricing.nk-pricing-s3.active .btn.btn-outline-primary:hover{
    background: rgba(255,255,255,0.96);
    border-color: #fff;
    transform: translateY(-1px);
  }
  
  /* Badge on active card should stay readable */
  #plans .nk-pricing.nk-pricing-s3.active .badge{
    background: rgba(255,255,255,0.92) !important;
    color: var(--sb-primary) !important;
    border: 1px solid rgba(255,255,255,0.65);
  }
  
  /* =========================================================
     DIRECTION B
     Premium SaaS look: all cards white, highlight via border/shadow/scale.
     To use B, COMMENT OUT the "DIRECTION A" block above.
     ========================================================= */
  
  /*
  #plans .nk-pricing.nk-pricing-s3.active{
    background: #fff !important;
    color: inherit !important;
    border-color: rgba(13, 110, 253, 0.45);
    box-shadow: var(--sb-card-shadow);
    transform: translateY(-3px);
  }
  
  #plans .nk-pricing.nk-pricing-s3.active:hover{
    transform: translateY(-4px);
    box-shadow: var(--sb-card-shadow-hover);
  }
  
  #plans .nk-pricing.nk-pricing-s3.active .title,
  #plans .nk-pricing.nk-pricing-s3.active .text,
  #plans .nk-pricing.nk-pricing-s3.active p,
  #plans .nk-pricing.nk-pricing-s3.active .amount,
  #plans .nk-pricing.nk-pricing-s3.active .amount-text,
  #plans .nk-pricing.nk-pricing-s3.active .small{
    color: inherit !important;
  }
  
  #plans .nk-pricing.nk-pricing-s3.active .btn.btn-outline-primary{
    background: var(--sb-primary);
    border-color: var(--sb-primary);
    color: #fff;
    box-shadow: 0 10px 22px rgba(13, 110, 253, 0.25);
  }
  
  #plans .nk-pricing.nk-pricing-s3.active .btn.btn-outline-primary:hover{
    filter: brightness(0.97);
    transform: translateY(-1px);
  }
  
  #plans .nk-pricing.nk-pricing-s3.active .badge{
    background: rgba(13, 110, 253, 0.10) !important;
    color: var(--sb-primary) !important;
    border: 1px solid rgba(13, 110, 253, 0.18);
  }
  */
  
  /* Focus states (keyboard users) */
  #plans .nk-pricing a.btn:focus-visible,
  #plans .nk-pricing button:focus-visible,
  #plans .price-toggle-input:focus-visible{
    outline: 3px solid rgba(13, 110, 253, 0.25);
    outline-offset: 2px;
    box-shadow: none;
  }

/* =========================================================
   Login (sb-auth-login) – premium polish (desktop unchanged)
   Fix ONLY mobile: ensure full card is visible below nav
   ========================================================= */

/* Leave desktop exactly as-is (no extra drop). */
.sb-auth-login .nk-pages{
  padding-top: 0; /* desktop: don’t push content down */
}

/* ---- Right panel: readability + nicer hierarchy ---- */
.sb-auth-login .nk-auth-col-content{
  position: relative;
  overflow: hidden;
}

.sb-auth-login .nk-auth-col-content::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 800px at 18% 18%, rgba(0,0,0,.22), rgba(0,0,0,0) 55%),
    linear-gradient(180deg, rgba(0,0,0,.14), rgba(0,0,0,.28));
  pointer-events:none;
  z-index: 0;
}

.sb-auth-login .nk-auth-col-content .nk-auth-content{
  position: relative;
  z-index: 1;
}

.sb-auth-login .nk-auth-col-content .nk-auth-content-inner{
  max-width: 560px;
}

.sb-auth-login .nk-auth-col-content h1{
  color: rgba(255,255,255,.98);
  text-shadow: 0 14px 34px rgba(0,0,0,.24);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: .85rem !important;
}

.sb-auth-login .nk-auth-col-content p{
  color: rgba(255,255,255,.90);
  text-shadow: 0 10px 22px rgba(0,0,0,.18);
  line-height: 1.6;
}

.sb-auth-login .nk-auth-col-content .nk-auth-points{
  margin-top: 1.1rem;
}

.sb-auth-login .nk-auth-col-content .nk-auth-points li{
  gap: .85rem;
  margin: .8rem 0;
}

.sb-auth-login .nk-auth-col-content .nk-auth-points li > div{
  color: rgba(255,255,255,.92);
  text-shadow: 0 10px 18px rgba(0,0,0,.16);
  line-height: 1.35;
}

.sb-auth-login .nk-auth-col-content .nk-auth-points em{
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  box-shadow: 0 14px 26px rgba(0,0,0,.18);
}

.sb-auth-login .nk-auth-col-content .sb-auth-kicker{
  opacity: 1 !important;
  color: rgba(255,255,255,.92) !important;
  text-shadow: 0 10px 20px rgba(0,0,0,.18);
}

/* ---- Left card: premium + compact ---- */
.sb-auth-login .nk-auth-form-card{
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px !important;
  box-shadow:
    0 22px 60px rgba(15, 23, 42, .10),
    0 6px 18px rgba(15, 23, 42, .06);
  backdrop-filter: blur(6px);
}

.sb-auth-login .nk-auth-form-card .card-body{
  padding: 1.9rem !important;
}

.sb-auth-login .nk-auth-form-card .title{
  letter-spacing: -0.02em;
  margin-bottom: .35rem !important;
}

.sb-auth-login .sb-auth-top-actions{
  display: flex;
  justify-content: center;
  margin-bottom: .85rem;
}

.sb-auth-login .nk-auth-form-card .form-control{
  border-radius: 12px;
  border-color: rgba(15, 23, 42, .10);
  background: rgba(255,255,255,.98);
  box-shadow: 0 1px 0 rgba(15,23,42,.03);
}

.sb-auth-login .nk-auth-form-card .form-control:focus{
  border-color: rgba(59, 130, 246, .55);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .18);
}

.sb-auth-login .nk-auth-form-card .btn.btn-primary{
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow:
    0 16px 34px rgba(37, 99, 235, .25),
    0 2px 0 rgba(0,0,0,.06);
}

.sb-auth-login .nk-auth-form-card .btn.btn-primary:hover{ transform: translateY(-1px); }
.sb-auth-login .nk-auth-form-card .btn.btn-primary:active{ transform: translateY(0); }

.sb-auth-login .sb-auth-legal{
  color: rgba(15, 23, 42, .55);
}

.sb-auth-login .nk-header-logo .logo-img{
  max-height: 40px;
  width: auto;
  height: auto;
}

/* Center left column on large screens (unchanged) */
@media (min-width: 1200px){
  .sb-auth-login .nk-auth-col{
    display: flex;
    align-items: center;
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }
}

/* Mobile-only fixes (this is the only place we add “drop down”) */
@media (max-width: 991.98px){
  /* Hide the right panel on mobile so the full card fits */
  .sb-auth-login .nk-auth-col-content{
    display: none !important;
  }

  /*
    The nav/header height varies with the Nioland header (and can become sticky).
    Give the page a safe top gap ONLY on mobile so the card isn't clipped.
  */
  .sb-auth-login .nk-pages{
    padding-top: 1.25rem; /* tweak 1.0–1.75rem if needed */
  }

  /*
    If your header is sticky on mobile, add a touch more space.
    This selector is harmless even if header isn’t sticky.
  */
  .sb-auth-login .nk-header.is-sticky + .nk-pages,
  .sb-auth-login .nk-header.is-fixed + .nk-pages{
    padding-top: 1.75rem;
  }

  /* Make the form column breathe and ensure it scrolls naturally */
  .sb-auth-login .nk-auth-col{
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    min-height: calc(100dvh - 72px); /* prevents “card cut off” feel */
  }

  /* Compact card padding on mobile */
  .sb-auth-login .nk-auth-form-card .card-body{
    padding: 1.35rem !important;
  }

  /* If your nav is overlapping due to negative margins somewhere, force a clean start */
  .sb-auth-login .nk-split-page{
    margin-top: 0 !important;
  }
}

/* Make the typed email (and placeholders) darker + clearer on the login card */
.sb-auth-login .nk-auth-form-card .form-control{
  color: #0f172a !important;           /* typed text */
  caret-color: #0f172a !important;
}

.sb-auth-login .nk-auth-form-card .form-control::placeholder{
  color: rgba(15, 23, 42, .55) !important;  /* placeholder text */
  opacity: 1 !important;
}

/* Some themes dim autofill text — force it readable */
.sb-auth-login .nk-auth-form-card input:-webkit-autofill{
  -webkit-text-fill-color: #0f172a !important;
  transition: background-color 999999s ease-in-out 0s; /* prevents yellow flash */
}

/* Optional: make labels a touch stronger */
.sb-auth-login .nk-auth-form-card .form-label{
  color: rgba(15, 23, 42, .85) !important;
}

/* Auth pages: prevent fixed header from covering the top of the form on mobile */
:root {
  --sb-auth-header-offset: 84px; /* tweak if your header is taller/shorter */
}

@media (max-width: 991.98px) {
  body.sb-auth-login .nk-pages {
    padding-top: var(--sb-auth-header-offset);
  }

  /* extra safety: ensure split page doesn't creep under the header */
  body.sb-auth-login .nk-split-page {
    min-height: calc(100vh - var(--sb-auth-header-offset));
  }
}

/* Round corners but keep the hero image centered */
.nk-banner-features-base{
  border-radius: 16px;   /* tweak: 12px–24px */
  display: block;        /* keeps it clean */
  margin: 0 auto;        /* re-centers it */
}

/* Optional: if you see a tiny baseline gap under the image */
.nk-banner-features-base{
  vertical-align: middle;
}

/* Why: your bottom-left “tile” image is absolutely-positioned, so rounding the IMG itself
   (and hiding overflow) guarantees the corners stay rounded no matter the transform/animation. */

/* Most themes use .nk-banner-features-children.three for the bottom-left tile */
.nk-banner-features .nk-banner-features-children.three {
  border-radius: 18px;
  overflow: hidden;
}

/* If the element is an <img>, this ensures the bitmap corners actually clip */
.nk-banner-features .nk-banner-features-children.three img,
.nk-banner-features .nk-banner-features-children.three {
  border-radius: 18px;
}

/* Optional: add a subtle edge so it looks “card-like” */
.nk-banner-features .nk-banner-features-children.three {
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Testimonial slider — readability + less “electric blue” background
   Drop this AFTER the theme CSS so it overrides Nioland defaults. */

/* 1) Soften the section background (less contrast, more premium) */
.nk-section.bg-primary-gradient.is-theme {
  position: relative;
  /* Override the default gradient with a calmer one */
  background: linear-gradient(135deg,
    rgba(16, 55, 170, 1) 0%,
    rgba(39, 92, 215, 1) 45%,
    rgba(14, 44, 145, 1) 100%
  ) !important;
}

/* Add a subtle “wash” to reduce glare + help text pop */
.nk-section.bg-primary-gradient.is-theme::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(0, 0, 0, 0.16) 100%
  );
}

/* Keep content above the overlay */
.nk-section.bg-primary-gradient.is-theme > .container {
  position: relative;
  z-index: 1;
}

/* 2) Card styling (more readable “review card”, less faint glass) */
.nk-testimonial-card-s4 {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 3) Spacing */
.nk-testimonial-card-s4 .nk-testimonial-content {
  padding: 2.25rem 1.75rem;
  text-align: center;
}
@media (min-width: 768px) {
  .nk-testimonial-card-s4 .nk-testimonial-content {
    padding: 3rem 3.25rem;
  }
}

/* 4) Review text (force bright, readable type) */
.nk-testimonial-card-s4 p.h3,
.nk-testimonial-card-s4 p.h4 {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 60ch;
  margin: 0 auto;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
}

/* 5) Meta line (platform + date) */
.nk-testimonial-card-s4 .small,
.nk-testimonial-card-s4 .opacity-50,
.nk-testimonial-card-s4 .opacity-75 {
  color: rgba(255, 255, 255, 0.74) !important;
}

/* Name / role */
.nk-testimonial-card-s4 .title,
.nk-testimonial-card-s4 h5,
.nk-testimonial-card-s4 .fw-semibold {
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
}

/* 6) Stars (real “review” yellow) */
.nk-testimonial-card-s4 .nk-stars,
.nk-testimonial-card-s4 .nk-stars .icon,
.nk-testimonial-card-s4 .text-warning,
.nk-testimonial-card-s4 .text-warning .icon {
  color: #fbbf24 !important;
}
.nk-testimonial-card-s4 .nk-stars .icon {
  font-size: 1.05rem;
}

/* 7) Nav buttons: clearer but not shouty */
.nk-section.bg-primary-gradient.is-theme
.swiper-button-group-s1.has-bg
.swiper-button-prev,
.nk-section.bg-primary-gradient.is-theme
.swiper-button-group-s1.has-bg
.swiper-button-next {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Curve the image edges (and keep it clean) */
.nk-responsive-img img {
  border-radius: 18px;
  overflow: hidden;
  display: block; /* avoids weird inline gaps */
}

/* Optional: if you want a subtle border + soft lift */
.nk-responsive-img img {
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

/* Center the stats block on mobile */
@media (max-width: 575.98px) {
  .nk-section-head { text-align: center !important; }

  .nk-section-head .nk-section-title { margin-left: auto; margin-right: auto; }

  .d-flex.flex-wrap.justify-content-between.text-xxl-end{
    justify-content: center !important;
    text-align: center !important;
    gap: 1rem;
  }

  .d-flex.flex-wrap.justify-content-between.text-xxl-end > div{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* =========================================================
   HERO: Audio Waveform Underline (Stable + Premium)
   ---------------------------------------------------------
   What this does:
   - Replaces Nioland “title-shape” underline on the HERO H1 only
   - Draws a subtle audio waveform underline under the highlighted words
   - Uses an SVG mask so the wave inherits your theme primary color
   - Positions the wave reliably (no translate drift / no crossing text)
   ========================================================= */

   .nk-banner-content h1 .title-shape-1{
    background: none !important;          /* remove Nioland paint */
    text-decoration: none !important;
    position: relative !important;
    display: inline-block !important;
    padding-bottom: 0.34em;              /* reserve space for the wave */
  }
  
  /* Disable Nioland pseudo shapes if present */
  .nk-banner-content h1 .title-shape-1::before{
    content: none !important;
    display: none !important;
  }
  
  /* Waveform underline */
  .nk-banner-content h1 .title-shape-1::after{
    content: "" !important;
    position: absolute !important;
  
    /* Stable placement: inset controls “move right” + length (no translate) */
    left: 18% !important;                /* increase = more to the right */
    right: 0% !important;                /* increase = shorter wave */
  
    bottom: 0.05em !important;
    height: 0.26em !important;
  
    /* Theme-aware color */
    background: color-mix(in srgb, var(--bs-primary, #2f6bff) 75%, transparent) !important;
  
    /* Mask = waveform shape (color stays theme-controlled) */
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='24' viewBox='0 0 240 24'%3E%3Cpath d='M6 12 C18 4 30 20 42 12 S66 4 78 12 S102 20 114 12 S138 4 150 12 S174 20 186 12 S210 4 222 12' fill='none' stroke='white' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='24' viewBox='0 0 240 24'%3E%3Cpath d='M6 12 C18 4 30 20 42 12 S66 4 78 12 S102 20 114 12 S138 4 150 12 S174 20 186 12 S210 4 222 12' fill='none' stroke='white' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat !important;
  
    opacity: 0.78 !important;
    pointer-events: none !important;
  }
  
  /* Mobile tuning */
  @media (max-width: 576px){
    .nk-banner-content h1 .title-shape-1{
      padding-bottom: 0.38em;
    }
    .nk-banner-content h1 .title-shape-1::after{
      left: 24% !important;              /* a bit more right on mobile */
      height: 0.28em !important;
      bottom: 0.05em !important;
    }
  }