* {
  box-sizing: border-box;
}

:root {
  /* =====================================
     BIVA CORE BRAND
  ===================================== */

  --biva-black: #070b14;
  --biva-black-soft: #0c1220;
  --biva-black-hover: #121a2b;
  --biva-black-active: #1b263a;

  --biva-blue-700: #1746d1;
  --biva-blue-600: #2457e6;
  --biva-blue-500: #3570f3;
  --biva-blue-400: #6190ff;
  --biva-blue-100: #dfe9ff;
  --biva-blue-50: #f1f5ff;

  --biva-yellow-600: #d99b00;
  --biva-yellow-500: #f2b705;
  --biva-yellow-400: #ffc82e;
  --biva-yellow-100: #fff0b8;
  --biva-yellow-50: #fff9e6;


  /* =====================================
     NEUTRAL SURFACES
  ===================================== */

  --biva-white: #ffffff;
  --biva-page-bg: #f3f6fb;
  --biva-surface: #ffffff;
  --biva-surface-soft: #f8faff;
  --biva-surface-muted: #eef2f8;

  --biva-ink: #090e1a;
  --biva-text: #1d2939;
  --biva-muted: #667085;
  --biva-subtle: #98a2b3;

  --biva-line: rgba(15, 23, 42, 0.1);
  --biva-line-strong: rgba(15, 23, 42, 0.18);


  /* =====================================
     SEMANTIC COLOURS
  ===================================== */

  --biva-success: #079455;
  --biva-success-soft: #e8f8f0;

  --biva-danger: #d92d20;
  --biva-danger-soft: #fff0ee;

  --biva-warning: #dc8a00;
  --biva-warning-soft: #fff6dd;


  /* =====================================
     TYPOGRAPHY
  ===================================== */

  --biva-font:
    Inter,
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;


  /* =====================================
     RADIUS
  ===================================== */

  --biva-radius-xs: 10px;
  --biva-radius-sm: 13px;
  --biva-radius-md: 17px;
  --biva-radius-lg: 23px;
  --biva-radius-xl: 30px;


  /* =====================================
     SHADOWS
  ===================================== */

  --biva-shadow-xs:
    0 4px 12px rgba(15, 23, 42, 0.05);

  --biva-shadow-sm:
    0 10px 28px rgba(15, 23, 42, 0.08);

  --biva-shadow-md:
    0 20px 54px rgba(15, 23, 42, 0.11);

  --biva-shadow-lg:
    0 34px 90px rgba(15, 23, 42, 0.16);


  /* =====================================
     FOCUS
  ===================================== */

  --biva-focus-ring:
    0 0 0 4px rgba(53, 112, 243, 0.18);
}




body {
  margin: 0;

  font-family:
    var(--biva-font);

  font-size: 15px;
  line-height: 1.6;

  color:
    var(--biva-text);

  background:
    radial-gradient(circle at 12% 0%,
      rgba(53, 112, 243, 0.12),
      transparent 30%),
    radial-gradient(circle at 92% 8%,
      rgba(255, 200, 46, 0.1),
      transparent 28%),
    linear-gradient(180deg,
      #fafcff 0%,
      var(--biva-page-bg) 100%);

  -webkit-font-smoothing:
    antialiased;

  text-rendering:
    optimizeLegibility;
}


/* ========================================
   BIVA V2 — RESPONSIVE PORTAL CONTAINER
======================================== */

.portal-shell {
  width: 100%;
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: flex-start;

  padding: 18px;
}

.portal-card {
  width: 100%;
  min-height: calc(100vh - 36px);

  padding: clamp(22px,
      3vw,
      48px);

  border:
    1px solid var(--biva-line);

  border-radius:
    var(--biva-radius-xl);

  background:
    rgba(255, 255, 255, 0.94);

  box-shadow:
    var(--biva-shadow-lg);

  backdrop-filter:
    blur(16px);
}


/* ========================================
   FULL APPLICATION PAGES
======================================== */

body:has(.plans-page) .portal-card,
body:has(.checkout-page) .portal-card,
body:has(.payment-page) .portal-card,
body:has(.dashboard-shell) .portal-card {
  width: 100%;
  max-width: none;
}


/* Success is a true full-screen page */

body:has(.connect-success-page) .portal-shell {
  width: 100%;
  min-height: 100vh;

  display: block;

  padding: 0;
}

body:has(.connect-success-page) .portal-card {
  width: 100%;
  max-width: none;
  min-height: 100vh;

  padding: 0;

  border: 0;
  border-radius: 0;

  background: transparent;

  box-shadow: none;
  backdrop-filter: none;
}



@media (min-width: 1400px) {

  .portal-shell {
    padding:
      22px 28px;
  }

  .portal-card {
    min-height:
      calc(100vh - 44px);
  }


  body:has(.connect-success-page) .portal-shell {
    padding: 0;
  }

  body:has(.connect-success-page) .portal-card {
    min-height: 100vh;
  }

}


/* ========================================
   BIVA V2 — GLOBAL MOBILE CONTAINER
======================================== */

@media (max-width: 760px) {

  html,
  body {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .portal-shell {
    width: 100%;
    min-width: 0;
    min-height: 100dvh;

    padding: 0;

    display: block;
  }

  .portal-card {
    width: 100%;
    max-width: none;
    min-width: 0;

    min-height: 100dvh;

    padding:
      22px 16px 28px;

    border: 0;
    border-radius: 0;

    box-shadow: none;
  }

}



@media (max-width: 420px) {

  .portal-card {
    padding:
      18px 14px 26px;
  }

  h1 {
    overflow-wrap: normal;
    word-break: normal;
  }

}

h1 {
  font-size: 30px;
  line-height: 1.12;
  margin: 10px 0 16px;
  letter-spacing: -0.04em;
}

h2 {
  font-size: 24px;
  margin: 12px 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

p {
  line-height: 1.5;
}

.muted,
.success-row span {
  color: var(--muted);
}




/* Logo */
.logo-container {
  text-align: center;
  margin-bottom: 28px;
}

.logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
  border-radius: 22px;
}

.logo-title {
  margin: 12px 0 4px;
  font-size: 30px;
  font-weight: 900;
}

.logo-subtitle {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}







.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  z-index: 9999;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .25);
}




/* ===========================
   TYPOGRAPHY
=========================== */

body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
  color: #0f172a;
}

h1 {
  font-size: 2.3rem;
  /* 36px */
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin: 0;
}

h2 {
  font-size: 1.65rem;
  /* 26px */
  line-height: 1.2;
  font-weight: 700;
  margin: 0;
}

h3 {
  font-size: 1.2rem;
  /* 19px */
  line-height: 1.3;
  font-weight: 700;
  margin: 0;
}

p {
  font-size: .95rem;
  color: #64748b;
}

small {
  font-size: .82rem;
  color: #94a3b8;
}

.dashboard-container {
  max-width: 1080px;
}

.hero-card h1 {
  font-size: 26px !important;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.product-ui-card h2 {
  font-size: 19px !important;
  line-height: 1.25;
  font-weight: 750;
}

.product-ui-metric {
  font-size: 20px !important;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ui-glass-card {
  background: rgba(255, 255, 255, .82);
}






.nav-menu {
  position: relative;
}

.settings-dropdown {

  position: absolute;

  right: 0;

  top: 52px;

  background: #fff;

  border-radius: 16px;

  min-width: 180px;

  box-shadow:
    0 20px 60px rgba(0, 0, 0, .15);

  display: none;

  overflow: hidden;

  z-index: 1000;

}

.settings-dropdown.show {
  display: block;
}

.settings-dropdown button {

  width: 100%;

  padding: 14px 18px;

  border: none;

  background: white;

  cursor: pointer;

  text-align: left;

  font-size: 14px;

}

.settings-dropdown button:hover {

  background: #f5f7fb;

}






/* =========================================
   BIVA GLOBAL LOADER
========================================= */

#bivaGlobalLoader {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.biva-loader-backdrop {
  position: fixed;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background:
    rgba(10, 20, 40, 0.55);

  backdrop-filter:
    blur(8px);

  -webkit-backdrop-filter:
    blur(8px);
}

.biva-loader-card {
  width: 100%;
  max-width: 360px;

  padding: 34px 28px;

  border-radius: 24px;

  background: #ffffff;

  text-align: center;

  box-shadow:
    0 24px 70px rgba(10, 20, 40, 0.28);
}

.biva-loader-spinner {
  width: 54px;
  height: 54px;

  margin:
    0 auto 22px;

  border: 5px solid rgba(20, 100, 255, 0.15);

  border-top-color:
    #1464ff;

  border-radius: 50%;

  animation:
    bivaLoaderSpin 0.8s linear infinite;
}

.biva-loader-card h2 {
  margin:
    0 0 10px;

  color: #101828;

  font-size: 22px;
  font-weight: 800;
}

.biva-loader-card p {
  margin: 0;

  color: #667085;

  font-size: 14px;
  line-height: 1.6;
}

@keyframes bivaLoaderSpin {

  to {
    transform:
      rotate(360deg);
  }

}

@media (max-width: 520px) {

  .biva-loader-card {
    max-width: 310px;

    padding:
      30px 22px;

    border-radius: 20px;
  }

  .biva-loader-spinner {
    width: 48px;
    height: 48px;
  }

  .biva-loader-card h2 {
    font-size: 20px;
  }

}