* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  background: #fff;   /* light grey looks more premium than pure white */
  line-height: 1.5;
}

/* Main Layout */

.vs-layout {
  display: flex;
  gap: 25px;
  margin: 20px auto;
  padding: 0 20px;
  align-items: flex-start;   /* IMPORTANT for sticky sidebar */
}

/* Sidebar */

.vs-sidebar {
  width: 350px;
  flex-shrink: 0;
}

/* Main Content */

.vs-main {
  flex: 1;
  min-width: 0;
}

/* Content Card Style */

.vs-main > * {
  background: #fff;
  border-radius: 14px;
  box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
}

/* Mobile */

@media (max-width: 991px) {

  .vs-layout {
    flex-direction: column;
  }

  .vs-sidebar {
    width: 100%;
    position: relative;   /* disables sticky on mobile */
    top: 0;
  }

  .vs-main {
    width: 100%;
  }

}


/* =========================
   VS PRELOADER (FINAL)
   - no-conflict (vs- prefix)
   - professional portal style
========================= */

.vs-preloader{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(37, 99, 235, 0.10), transparent 55%),
    radial-gradient(900px 600px at 90% 30%, rgba(16, 185, 129, 0.08), transparent 55%),
    #0b1220;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.vs-preloader-card{
  width: min(420px, calc(100vw - 40px));
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 55px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Top brand row */
.vs-preloader-brand{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.vs-preloader-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34,197,94,0.16);
  animation: vsPreloaderPulse 1.1s ease-in-out infinite;
}

.vs-preloader-text{
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.92);
}

/* Animated progress bar */
.vs-preloader-bar{
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.10);
}

.vs-preloader-bar-fill{
  display: block;
  height: 100%;
  width: 35%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #22c55e);
  animation: vsPreloaderSlide 1.0s ease-in-out infinite;
}

/* Status line */
.vs-preloader-sub{
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

/* Secure icon pulse */
.vs-preloader-secure-icon{
  color: #22c55e;
  font-size: 14px;
  animation: vsSecurePulse 1.4s ease-in-out infinite;
}

/* Dots animation */
.vs-preloader-ellipses::after{
  content: "";
  display: inline-block;
  width: 18px;
  text-align: left;
  animation: vsDots 1s steps(4,end) infinite;
}

/* Hidden state */
.vs-preloader.is-hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Animations */
@keyframes vsPreloaderSlide{
  0%   { transform: translateX(-30%); opacity: 0.85; }
  50%  { transform: translateX(110%); opacity: 1; }
  100% { transform: translateX(-30%); opacity: 0.85; }
}

@keyframes vsPreloaderPulse{
  0%,100% { transform: scale(1); opacity: 0.9; }
  50%     { transform: scale(1.25); opacity: 1; }
}

@keyframes vsDots{
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%  { content: "..."; }
  100% { content: ""; }
}

@keyframes vsSecurePulse{
  0%,100% { opacity: 0.7; transform: scale(1); }
  50%     { opacity: 1;   transform: scale(1.12); }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce){
  .vs-preloader-dot,
  .vs-preloader-bar-fill,
  .vs-preloader-secure-icon,
  .vs-preloader-ellipses::after{
    animation: none !important;
  }
}

