/* Century Gothic - brand font for Envi - uses system font with reliable fallbacks */

/* ═══════════════════════════════════════════════════
   VARIABLES — updated for accessibility & contrast
═══════════════════════════════════════════════════ */
:root {
  --navy:      #0D1E39;
  --navy-mid:  #122540;
  --blue:      #3954A5;
  --blue-lt:   #4a67c0;

  /* Text on dark backgrounds — pure white for max contrast */
  --on-dark:        #ffffff;
  --on-dark-muted:  rgba(255,255,255,0.75);  /* was 0.35–0.45, now 0.75 */
  --on-dark-sub:    rgba(255,255,255,0.60);  /* was 0.28–0.42, now 0.60 */

  /* Text on white/light backgrounds — dark navy/charcoal for max contrast */
  --text:       #0D1E39;   /* was #111827, now full navy */
  --text-body:  #1e293b;   /* body text — dark charcoal, not grey */
  --text-sub:   #374151;   /* secondary text — still dark, not light grey */
  --text-label: #0D1E39;   /* labels — full navy */

  --grey:      #374151;    /* was #838885 (too light), now dark charcoal */
  --lgrey:     #6b7280;    /* used only for decorative/minor elements */
  --xlgrey:    #e5e7eb;
  --white:     #ffffff;
  --off:       #f2f4f8;
  --border:    #d1d5db;    /* slightly darker border for better definition */
  --font:      'Century Gothic', CenturyGothic, AppleGothic, 'URW Gothic L', 'Avant Garde', 'Trebuchet MS', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(13,30,57,0.07);
  --shadow-md: 0 6px 24px rgba(13,30,57,0.1);
  --shadow-lg: 0 16px 48px rgba(13,30,57,0.15);

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-mid:  0.25s ease;
  --t-slow: 0.4s ease;
}

/* ═══════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.envi-portal-body {
  font-family: var(--font);
  background: var(--off);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px; /* base font size */
}

/* ═══════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
═══════════════════════════════════════════════════ */
@keyframes enviIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes enviSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes enviSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes enviFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes enviPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(57,84,165,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(57,84,165,0); }
}
@keyframes enviGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}
@keyframes enviShimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
@keyframes enviCardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes enviSpinner {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════
   SCREEN SYSTEM
═══════════════════════════════════════════════════ */
.envi-screen { display: none; }
.envi-screen.envi-active { display: block; animation: enviIn var(--t-slow) both; }
.envi-hidden { display: none !important; }

/* ═══════════════════════════════════════════════════
   LOGIN SCREEN
═══════════════════════════════════════════════════ */
#envi-login-screen {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
#envi-login-screen::before,
#envi-login-screen::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: enviFadeIn 1.2s ease both;
}
#envi-login-screen::before {
  width: 600px; height: 600px;
  top: -200px; right: -150px;
  background: radial-gradient(circle, rgba(57,84,165,0.2) 0%, transparent 70%);
}
#envi-login-screen::after {
  width: 400px; height: 400px;
  bottom: -100px; left: -100px;
  background: radial-gradient(circle, rgba(57,84,165,0.14) 0%, transparent 70%);
}

.envi-login-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 56px 52px;
  width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 1;
  animation: enviSlideUp 0.6s cubic-bezier(0.22,1,0.36,1) both;
}

.envi-login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: enviIn 0.5s 0.2s both;
}

.envi-logo-mark {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(57,84,165,0.22);
  border: 2px solid rgba(57,84,165,0.55);
  display: flex; align-items: center; justify-content: center;
  animation: enviPulse 3s ease-in-out infinite;
}
.envi-logo-mark svg { width: 44px; height: 44px; }

.envi-brand-name {
  font-family: var(--font);
  font-size: 40px;
  font-weight: 600;
  color: var(--on-dark);        /* ✅ pure white */
  letter-spacing: 6px;
  line-height: 1;
}

.envi-brand-sub {
  font-size: 14px;              /* ✅ was 12px */
  font-weight: 600;
  color: var(--on-dark-muted);  /* ✅ was 0.35, now 0.75 */
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.envi-login-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.12);
  animation: enviIn 0.4s 0.3s both;
}

.envi-login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: enviIn 0.5s 0.4s both;
}

.envi-field-group { display: flex; flex-direction: column; gap: 8px; }

/* Labels on dark background — white */
.envi-login-form .envi-field-group label {
  font-size: 14px;              /* ✅ was 12px */
  font-weight: 700;
  color: var(--on-dark-muted);  /* ✅ was 0.45, now 0.75 */
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.envi-login-form input {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 11px;
  padding: 16px 18px;
  font-size: 17px;              /* ✅ was 16px */
  font-family: var(--font);
  font-weight: 400;
  color: var(--on-dark);        /* ✅ pure white text */
  outline: none;
  transition: border-color var(--t-mid), background var(--t-mid), box-shadow var(--t-mid);
}
.envi-login-form input:focus {
  border-color: rgba(57,84,165,0.8);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 4px rgba(57,84,165,0.2);
}
.envi-login-form input::placeholder { color: rgba(255,255,255,0.35); }

.envi-error-msg {
  background: rgba(220,38,38,0.15);
  border: 1px solid rgba(220,38,38,0.4);
  border-radius: 9px;
  padding: 12px 16px;
  font-size: 15px;              /* ✅ increased */
  color: #fecaca;               /* ✅ brighter red-white */
  animation: enviSlideDown 0.3s ease both;
}

.envi-login-note {
  font-size: 14px;              /* ✅ was 12px */
  color: var(--on-dark-sub);    /* ✅ was 0.2, now 0.6 */
  text-align: center;
  line-height: 1.7;
  animation: enviFadeIn 0.6s 0.6s both;
}

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.envi-primary-btn {
  width: 100%;
  background: var(--blue);
  border: none;
  border-radius: 11px;
  padding: 17px 22px;
  font-size: 16px;              /* ✅ was 15px */
  font-weight: 700;
  font-family: var(--font);
  color: var(--on-dark);        /* ✅ pure white */
  cursor: pointer;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background var(--t-mid), transform var(--t-fast), box-shadow var(--t-mid);
  position: relative;
  overflow: hidden;
}
.envi-primary-btn:hover {
  background: var(--blue-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(57,84,165,0.4);
}
.envi-primary-btn:active { transform: translateY(0); box-shadow: none; }
.envi-primary-btn.envi-loading { pointer-events: none; opacity: 0.8; }
.envi-primary-btn.envi-loading .btn-text::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: middle;
  animation: enviSpinner 0.7s linear infinite;
}
.envi-full-btn { width: 100%; }

/* ═══════════════════════════════════════════════════
   TOP NAV — dark background, white text
═══════════════════════════════════════════════════ */
.envi-nav {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  height: 88px;                 /* ✅ slightly taller */
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  animation: enviSlideDown 0.4s ease both;
}

.envi-nav-left { display: flex; align-items: center; gap: 16px; }

.envi-nav-logo {
  font-family: var(--font);
  font-size: 24px;              /* ✅ was 22px */
  font-weight: 700;
  color: var(--on-dark);        /* ✅ pure white */
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.envi-nav-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #22c55e;
  animation: enviGlow 2.5s ease-in-out infinite;
}

.envi-nav-pill {
  background: rgba(57,84,165,0.3);
  border: 1px solid rgba(57,84,165,0.5);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;              /* ✅ was 12px */
  font-weight: 600;
  color: rgba(255,255,255,0.85);/* ✅ was 0.45 */
  letter-spacing: 0.04em;
}

.envi-nav-links { display: flex; gap: 3px; }

.envi-nav-link {
  padding: 9px 18px;
  font-size: 16px;              /* ✅ was 14px */
  font-weight: 600;
  font-family: var(--font);
  color: rgba(255,255,255,0.70);/* ✅ was 0.42 */
  border-radius: 9px;
  cursor: pointer;
  border: none;
  background: transparent;
  transition: color var(--t-mid), background var(--t-mid), transform var(--t-fast);
  letter-spacing: 0.02em;
}
.envi-nav-link:hover {
  color: var(--on-dark);        /* ✅ full white on hover */
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}
.envi-nav-link.envi-active {
  color: var(--on-dark);        /* ✅ pure white when active */
  background: rgba(57,84,165,0.45);
  font-weight: 700;
}

.envi-nav-right { display: flex; align-items: center; gap: 14px; }
.envi-nav-user {
  font-size: 15px;              /* ✅ was 13px */
  color: rgba(255,255,255,0.65);/* ✅ was 0.28 */
  font-weight: 500;
}

.envi-nav-logout {
  font-size: 15px;              /* ✅ was 13px */
  font-family: var(--font);
  font-weight: 600;
  color: rgba(255,255,255,0.80);/* ✅ was 0.38 */
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  background: none;
  transition: all var(--t-mid);
}
.envi-nav-logout:hover {
  background: rgba(255,255,255,0.1);
  color: var(--on-dark);
  border-color: rgba(255,255,255,0.5);
}

/* ═══════════════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════════════ */
.envi-body { background: var(--off); min-height: calc(100vh - 70px); }
.envi-section { display: none; }
.envi-section.envi-section-active { display: block; animation: enviIn 0.35s ease both; }
.envi-section-inner { padding: 36px 44px; }

.envi-section-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}
.envi-section-title {
  font-family: var(--font);
  font-size: 32px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.2px;
  line-height: 1.2;
}
.envi-section-sub {
  font-size: 17px;              /* readability priority */
  color: var(--text-sub);
  margin-top: 6px;
  line-height: 1.5;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   DASHBOARD HERO — dark background, white text
═══════════════════════════════════════════════════ */
.envi-hero {
  background: var(--navy);
  padding: 52px 44px 72px;
  position: relative;
  overflow: hidden;
}
.envi-hero::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(57,84,165,0.16);
  pointer-events: none;
}
.envi-hero::after {
  content: '';
  position: absolute;
  right: 200px; bottom: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(57,84,165,0.09);
  pointer-events: none;
}

.envi-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(57,84,165,0.3);
  border: 1px solid rgba(57,84,165,0.55);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;              /* ✅ was 12px */
  font-weight: 700;
  color: rgba(255,255,255,0.90);/* ✅ was 0.6 */
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
  animation: enviIn 0.5s 0.1s both;
}
.envi-hero-tag::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: enviGlow 2s ease-in-out infinite;
}

.envi-hero-title {
  font-family: var(--font);
  font-size: 44px;
  font-weight: 600;
  color: var(--on-dark);        /* ✅ pure white */
  letter-spacing: 0.3px;
  margin-bottom: 14px;
  line-height: 1.1;
  animation: enviIn 0.5s 0.15s both;
}

.envi-hero-sub {
  font-size: 18px;              /* ✅ was 17px */
  color: var(--on-dark-muted);  /* ✅ was 0.45 — now 0.75 */
  max-width: 520px;
  line-height: 1.7;
  font-weight: 500;
  animation: enviIn 0.5s 0.2s both;
}

/* ═══════════════════════════════════════════════════
   DASHBOARD CARDS — white background, dark text
═══════════════════════════════════════════════════ */
.envi-dash-wrap {
  padding: 0 44px 40px;
  margin-top: -36px;
  position: relative;
  z-index: 10;
}

.envi-dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.envi-dash-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 30px 26px;
  cursor: pointer;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
  position: relative;
  overflow: hidden;
}
.envi-dash-card:nth-child(1) { animation: enviCardIn 0.5s 0.1s both; }
.envi-dash-card:nth-child(2) { animation: enviCardIn 0.5s 0.2s both; }
.envi-dash-card:nth-child(3) { animation: enviCardIn 0.5s 0.3s both; }
.envi-dash-card:nth-child(4) { animation: enviCardIn 0.5s 0.35s both; }
.envi-dash-card:nth-child(5) { animation: enviCardIn 0.5s 0.4s both; }
.envi-dash-card:nth-child(6) { animation: enviCardIn 0.5s 0.45s both; }

.envi-dash-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-lt));
  opacity: 0;
  transition: opacity var(--t-mid);
}
.envi-dash-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(57,84,165,0.2);
}
.envi-dash-card:hover::before { opacity: 1; }
.envi-dash-card:active { transform: translateY(-2px); }

/* Dark info card */
.envi-dash-card-dark {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
  cursor: default !important;
}
.envi-dash-card-dark:hover { transform: none !important; box-shadow: none !important; }
.envi-dash-card-dark::before { display: none !important; }

.envi-dash-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: transform var(--t-mid);
}
.envi-dash-card:hover .envi-dash-icon { transform: scale(1.08) rotate(-3deg); }
.icon-blue  { background: rgba(57,84,165,0.12); }
.icon-navy  { background: rgba(13,30,57,0.09); }
.icon-grey  { background: rgba(55,65,81,0.1); }

.envi-dash-card h3 {
  font-family: var(--font);
  font-size: 20px;              /* ✅ was 17px — matches 20-24px spec */
  font-weight: 700;
  color: var(--navy);           /* ✅ dark navy on white */
  margin-bottom: 10px;
  line-height: 1.3;
  transition: color var(--t-mid);
}
.envi-dash-card:hover h3 { color: var(--blue); }

.envi-dash-card p {
  font-size: 16px;              /* ✅ was 14px — matches 16-18px spec */
  color: var(--text-body);      /* ✅ was grey, now dark charcoal */
  line-height: 1.65;
  margin-bottom: 20px;
  font-weight: 400;
}

.envi-card-link {
  font-size: 14px;              /* ✅ was 13px */
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--t-mid);
}
.envi-dash-card:hover .envi-card-link { gap: 10px; }
.envi-link-blue  { color: var(--blue); }
.envi-link-navy  { color: var(--navy); }
.envi-link-grey  { color: var(--text-sub); }

/* Dark card info — white text */
.envi-quick-info-label {
  font-size: 13px;              /* ✅ was 11px */
  font-weight: 700;
  color: var(--on-dark-sub);    /* ✅ was 0.28 */
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 16px;
}
.envi-quick-info-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px;              /* ✅ was 14px */
  color: var(--on-dark-muted);  /* ✅ was 0.55 */
  margin-bottom: 12px;
  font-weight: 500;
  transition: color var(--t-fast);
}
.envi-quick-info-row:hover { color: var(--on-dark); }
.envi-quick-hours {
  font-size: 14px;              /* ✅ was 12px */
  color: var(--on-dark-sub);    /* ✅ was 0.22 */
  margin-top: 14px;
  font-weight: 500;
}

/* Update bar */
.envi-dash-update-bar {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 18px 24px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: enviIn 0.5s 0.5s both;
}
.envi-update-left {
  display: flex; align-items: center; gap: 12px;
  font-size: 16px;              /* ✅ was 14px */
  color: var(--text-body);      /* ✅ dark charcoal */
  font-weight: 500;
}
.envi-update-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  animation: enviGlow 2s ease-in-out infinite;
  flex-shrink: 0;
}
.envi-update-left strong { font-weight: 700; color: var(--navy); }
.envi-update-version { font-size: 13px; color: var(--lgrey); }

/* ═══════════════════════════════════════════════════
   PRICING TABLE
═══════════════════════════════════════════════════ */
.envi-filter-row { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.envi-filter-btn {
  padding: 11px 22px;
  border-radius: 20px;
  font-size: 16px;              /* ✅ was 13px */
  font-weight: 600;
  font-family: var(--font);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-body);      /* ✅ dark text */
  cursor: pointer;
  transition: all var(--t-mid);
}
.envi-filter-btn:hover { background: rgba(57,84,165,0.08); border-color: var(--blue); color: var(--blue); }
.envi-filter-btn.envi-filter-active {
  background: var(--navy); color: var(--on-dark); border-color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.envi-table-wrap {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.envi-table { width: 100%; border-collapse: collapse; }
.envi-table thead tr { background: var(--navy); }
.envi-table thead th {
  padding: 16px 20px;
  text-align: left;
  font-size: 13px;              /* kept for headers */
  font-weight: 700;
  font-family: var(--font);
  color: rgba(255,255,255,0.85);/* ✅ was 0.5 */
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.envi-table tbody tr {
  border-bottom: 1px solid var(--xlgrey);
  transition: background var(--t-fast);
}
.envi-table tbody tr:last-child { border-bottom: none; }
.envi-table tbody tr:hover { background: rgba(57,84,165,0.04); }
.envi-table tbody td {
  padding: 16px 20px;
  font-size: 16px;              /* ✅ was 15-16px */
  color: var(--text);           /* ✅ dark navy */
  vertical-align: middle;
}

.td-product strong {
  display: block; font-weight: 700;
  color: var(--navy); font-size: 16px;
  font-family: var(--font);
}
.td-product code {
  font-size: 14px; color: var(--lgrey);
  font-family: monospace; margin-top: 3px; display: block;
}
.td-product .td-notes {
  font-size: 15px;
  color: var(--text-sub);       /* ✅ dark not grey */
  margin-top: 4px; font-style: italic;
}
.td-price { font-weight: 700; color: var(--navy); font-size: 17px; font-family: var(--font); }
.td-tier  { color: var(--blue); font-weight: 600; font-size: 16px; }
.envi-qty-negative { color: #dc2626 !important; font-weight: 700; }

.envi-badge {
  display: inline-block; padding: 6px 14px;
  border-radius: 20px; font-size: 14px; font-weight: 700;
  font-family: var(--font); letter-spacing: 0.02em;
}
.badge-green { background: #dcfce7; color: #166534; }   /* ✅ darker green */
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-red   { background: #fee2e2; color: #991b1b; }
.badge-blue  { background: #dbeafe; color: #1e40af; }   /* ✅ darker blue */

/* ═══════════════════════════════════════════════════
   PO FORM — white cards, dark text
═══════════════════════════════════════════════════ */
.envi-po-grid { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }

.envi-form-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.envi-form-card h3 {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 600; color: var(--navy);
  margin-bottom: 24px; padding-bottom: 18px;
  border-bottom: 1.5px solid var(--xlgrey);
}
.envi-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

/* Labels on white cards — dark navy */
.envi-field-group label {
  font-size: 14px;              /* ✅ clear label size */
  font-weight: 700;
  font-family: var(--font);
  color: var(--text-label);     /* ✅ full dark navy */
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.envi-field-group input,
.envi-field-group textarea {
  margin-top: 7px;
  width: 100%;
  background: var(--off);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 16px;              /* ✅ was 15px */
  font-family: var(--font);
  font-weight: 500;
  color: var(--text);           /* ✅ dark navy */
  outline: none;
  transition: border-color var(--t-mid), background var(--t-mid), box-shadow var(--t-mid);
  display: block;
}
.envi-field-group input:focus,
.envi-field-group textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(57,84,165,0.12);
}
.envi-field-group input::placeholder,
.envi-field-group textarea::placeholder {
  color: #9ca3af;               /* ✅ was too light */
  font-weight: 400;
}
.envi-field-group textarea { resize: vertical; min-height: 110px; }
.req { color: #dc2626; }

/* Upload zone */
.envi-upload-zone {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 36px 24px;
  background: var(--off);
  cursor: pointer;
  transition: border-color var(--t-mid), background var(--t-mid), transform var(--t-mid);
  margin-bottom: 18px; margin-top: 16px;
  text-align: center; width: 100%; box-sizing: border-box;
}
.envi-upload-zone:hover {
  border-color: var(--blue);
  background: rgba(57,84,165,0.04);
  transform: scale(1.01);
}
.envi-upload-zone.dragover {
  border-color: var(--blue);
  background: rgba(57,84,165,0.08);
  transform: scale(1.02);
}
.envi-upload-zone input[type=file] {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none; clip: rect(0,0,0,0);
}
.envi-upload-icon {
  width: 60px; height: 60px;
  background: rgba(57,84,165,0.1);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  transition: transform var(--t-mid);
}
.envi-upload-zone:hover .envi-upload-icon { transform: translateY(-3px); }
.envi-upload-main {
  font-size: 16px;              /* ✅ was 15px */
  font-weight: 700; font-family: var(--font);
  color: var(--navy);           /* ✅ dark navy */
  pointer-events: none;
}
.envi-upload-sub { font-size: 15px; color: var(--text-sub); pointer-events: none; }
.envi-upload-browse { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.envi-file-chosen {
  background: rgba(57,84,165,0.08);
  border: 1.5px solid rgba(57,84,165,0.25);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 16px;              /* ✅ increased */
  color: var(--navy);           /* ✅ dark navy */
  font-weight: 600;
  margin-bottom: 16px;
  animation: enviSlideDown 0.3s ease both;
}

.envi-form-message {
  border-radius: 10px; padding: 14px 18px;
  font-size: 16px;              /* ✅ was 14px */
  margin-bottom: 18px;
  animation: enviSlideDown 0.3s ease both;
  line-height: 1.5; font-weight: 500;
}
.envi-form-message.success { background: #dcfce7; border: 1.5px solid #86efac; color: #166534; }
.envi-form-message.error   { background: #fee2e2; border: 1.5px solid #fca5a5; color: #991b1b; }

.envi-po-sidebar { display: flex; flex-direction: column; gap: 18px; }
.envi-info-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px; padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-mid);
}
.envi-info-card:hover { box-shadow: var(--shadow-md); }
.envi-info-card h4 {
  font-size: 17px;              /* ✅ was 15px */
  font-weight: 700; font-family: var(--font);
  color: var(--navy); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.envi-info-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.envi-info-card p {
  font-size: 16px;              /* ✅ was 14px */
  color: var(--text-body);      /* ✅ dark charcoal */
  line-height: 1.7; font-weight: 400;
}
.envi-info-card p strong { color: var(--navy); font-weight: 700; }

/* ═══════════════════════════════════════════════════
   VIDEOS
═══════════════════════════════════════════════════ */
.envi-video-section-label {
  font-size: 14px; font-weight: 700; font-family: var(--font);
  color: var(--text-sub); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 16px;
}
.envi-videos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 10px; }

.envi-video-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 16px; overflow: hidden; cursor: pointer;
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}
.envi-video-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.envi-video-thumb {
  height: 164px; display: flex; align-items: center;
  justify-content: center; position: relative; overflow: hidden;
}
.vt-1 { background: #0D1E39; }
.vt-2 { background: #3954A5; }
.vt-3 { background: #1a3a70; }
.vt-4 { background: #2a3f8a; }
.vt-5 { background: #0D1E39; }
.vt-6 { background: #3954A5; }

.envi-yt-thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.65; transition: opacity var(--t-mid), transform var(--t-slow);
}
.envi-video-card:hover .envi-yt-thumb { opacity: 0.8; transform: scale(1.05); }

.envi-vid-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,0.6);
  border-radius: 5px; padding: 4px 10px;
  font-size: 12px; font-weight: 700; font-family: var(--font);
  color: #ffffff; letter-spacing: 0.07em; text-transform: uppercase; z-index: 2;
}
.envi-play-circle {
  width: 54px; height: 54px;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background var(--t-mid), transform var(--t-mid), border-color var(--t-mid);
  z-index: 2; position: relative;
}
.envi-video-card:hover .envi-play-circle {
  background: rgba(255,255,255,0.32); border-color: rgba(255,255,255,0.8);
  transform: scale(1.12);
}
.envi-play-tri {
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 17px solid #ffffff;
  margin-left: 4px;
}
.envi-video-info { padding: 18px 20px; }
.envi-video-info h4 {
  font-size: 17px;              /* ✅ was 15px */
  font-weight: 700; font-family: var(--font);
  color: var(--navy); margin-bottom: 6px; line-height: 1.4;
  transition: color var(--t-mid);
}
.envi-video-card:hover .envi-video-info h4 { color: var(--blue); }
.envi-video-info p {
  font-size: 15px;              /* ✅ was 13px */
  color: var(--text-sub);       /* ✅ dark charcoal */
  font-weight: 500;
}

/* Video lightbox */
.envi-video-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  animation: enviFadeIn 0.2s ease both;
}
.envi-video-modal {
  position: relative; width: 900px; max-width: 95vw;
  animation: enviSlideUp 0.3s cubic-bezier(0.22,1,0.36,1) both;
}
.envi-video-modal iframe { width: 100%; height: 507px; border: none; border-radius: 14px; }
.envi-video-close {
  position: absolute; top: -48px; right: 0;
  background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff; font-size: 22px; cursor: pointer;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-mid); line-height: 1;
}
.envi-video-close:hover { background: rgba(255,255,255,0.25); }
#envi-video-frame { background: #000; border-radius: 14px; overflow: hidden; }

/* ═══════════════════════════════════════════════════
   MANUALS
═══════════════════════════════════════════════════ */
.envi-manuals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.envi-manual-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
  box-shadow: var(--shadow-sm);
}
.envi-manual-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: rgba(57,84,165,0.2);
}
.envi-manual-icon {
  width: 52px; height: 52px; background: rgba(13,30,57,0.08);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  transition: transform var(--t-mid), background var(--t-mid);
}
.envi-manual-card:hover .envi-manual-icon {
  transform: scale(1.08); background: rgba(57,84,165,0.1);
}
.envi-manual-card h4 {
  font-size: 17px;              /* ✅ was 16px */
  font-weight: 700; font-family: var(--font);
  color: var(--navy); line-height: 1.3; transition: color var(--t-mid);
}
.envi-manual-card:hover h4 { color: var(--blue); }
.envi-manual-card p {
  font-size: 16px;              /* ✅ was 14px */
  color: var(--text-body);      /* ✅ dark charcoal */
  flex: 1; line-height: 1.6; font-weight: 400;
}
.envi-manual-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1.5px solid var(--xlgrey); margin-top: auto;
}
.envi-manual-size {
  font-size: 15px;              /* ✅ was 12px */
  color: var(--text-sub);       /* ✅ darker */
  font-weight: 500;
}
.envi-dl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy); color: var(--on-dark);
  border: none; border-radius: 9px; padding: 11px 22px;
  font-size: 15px;              /* ✅ was 13px */
  font-weight: 700; font-family: var(--font);
  cursor: pointer; text-decoration: none;
  transition: background var(--t-mid), transform var(--t-fast), box-shadow var(--t-mid);
}
.envi-dl-btn:hover {
  background: var(--blue); transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(57,84,165,0.35);
}
.envi-dl-disabled { background: var(--lgrey) !important; cursor: default; pointer-events: none; }

/* ═══════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════ */
.envi-contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-bottom: 32px;
}
.envi-contact-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 18px; padding: 30px 26px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}
.envi-contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.envi-contact-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--t-mid);
}
.envi-contact-card:hover .envi-contact-icon { transform: scale(1.1); }
.ci-blue  { background: rgba(57,84,165,0.12); }
.ci-green { background: rgba(34,197,94,0.12); }
.ci-navy  { background: rgba(13,30,57,0.08); }

.envi-contact-card h3 {
  font-family: var(--font); font-size: 20px; /* ✅ was 18px */
  font-weight: 700; color: var(--navy);
}
.envi-contact-card p {
  font-size: 16px;              /* ✅ was 14px */
  color: var(--text-body);      /* ✅ dark charcoal */
  line-height: 1.7; flex: 1; font-weight: 400;
}

.envi-contact-btn {
  display: inline-block; padding: 14px 24px;
  border-radius: 10px; font-size: 16px; /* ✅ was 14px */
  font-weight: 700; font-family: var(--font);
  cursor: pointer; border: 2px solid;
  transition: all var(--t-mid);
  text-align: center; text-decoration: none; letter-spacing: 0.03em;
}
.cb-blue  { background: rgba(57,84,165,0.08); border-color: var(--blue); color: var(--blue); }
.cb-blue:hover  { background: var(--blue); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(57,84,165,0.3); }
.cb-green { background: rgba(34,197,94,0.08); border-color: #16a34a; color: #15803d; }
.cb-green:hover { background: #22c55e; color: #fff; border-color: #22c55e; transform: translateY(-2px); }
.cb-navy  { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }
.cb-navy:hover  { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }

.envi-contact-form-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 18px; padding: 32px; box-shadow: var(--shadow-sm);
}
.envi-contact-form-card h3 {
  font-family: var(--font); font-size: 22px;
  font-weight: 600; color: var(--navy); margin-bottom: 24px;
}
.envi-contact-form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════════════════ */
.envi-empty-state {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 52px;
  text-align: center; color: var(--text-body);
  font-size: 18px; box-shadow: var(--shadow-sm);
  animation: enviIn 0.4s ease both;
}
.envi-empty-state p { margin-bottom: 12px; }
.envi-empty-state a {
  color: var(--blue); text-decoration: none;
  font-weight: 700; font-size: 16px;
  transition: opacity var(--t-fast);
}
.envi-empty-state a:hover { opacity: 0.75; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .envi-dash-grid { grid-template-columns: repeat(2, 1fr); }
  .envi-videos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .envi-nav { padding: 0 20px; height: 64px; }
  .envi-nav-links { display: none; }
  .envi-section-inner { padding: 24px 20px; }
  .envi-dash-wrap { padding: 0 20px 28px; }
  .envi-hero { padding: 36px 20px 56px; }
  .envi-hero-title { font-size: 36px; }
  .envi-manuals-grid, .envi-contact-grid { grid-template-columns: 1fr 1fr; }
  .envi-po-grid { grid-template-columns: 1fr; }
  .envi-section-title { font-size: 28px; }
}
@media (max-width: 640px) {
  .envi-login-card { width: calc(100% - 32px); margin: 16px; padding: 40px 28px; }
  .envi-dash-grid { grid-template-columns: 1fr; }
  .envi-videos-grid, .envi-manuals-grid, .envi-contact-grid { grid-template-columns: 1fr; }
  .envi-form-row, .envi-contact-form-grid { grid-template-columns: 1fr; }
  .envi-hero-title { font-size: 30px; }
  .envi-section-title { font-size: 26px; }
}

/* ═══════════════════════════════════════════════════
   REDUCED MOTION SUPPORT
═══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════
   v1.1 — Tier Bubble, Updated Headers, Logo Branding
═══════════════════════════════════════════════════ */

/* ── Logo images ──────────────────────────────── */
.envi-login-logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 6px;
  filter: brightness(0) invert(1);
}
.envi-nav-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

/* ── Table header sub-text ────────────────────── */
.envi-th-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.03em;
  text-transform: none;
  margin-top: 3px;
  line-height: 1.4;
}

/* ── Tier Clarification Bubble ────────────────── */
.envi-tier-bubble {
  background: #EEF2FF;
  border: 1.5px solid #C7D2FE;
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 22px;
}
.envi-tier-bubble-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.envi-tier-bubble-header strong {
  font-size: 17px;
  font-weight: 700;
  color: #0D1E39;
  font-family: var(--font);
}
.envi-tier-intro {
  font-size: 16px;
  color: #1e293b;
  line-height: 1.6;
  margin-bottom: 18px;
  font-weight: 400;
}
.envi-tier-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.envi-tier-card {
  background: #fff;
  border: 1.5px solid #C7D2FE;
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.envi-tier-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(57,84,165,0.12);
}
.envi-tier-label {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}
.envi-tier-2 .envi-tier-label { background: #DBEAFE; color: #1e40af; }
.envi-tier-3 .envi-tier-label { background: #EDE9FE; color: #5B21B6; }
.envi-tier-4 .envi-tier-label { background: #0D1E39; color: #ffffff; }
.envi-tier-pct {
  font-size: 22px;
  font-weight: 600;
  color: #0D1E39;
  font-family: var(--font);
  margin-bottom: 6px;
  line-height: 1.2;
}
.envi-tier-qty {
  font-size: 16px;
  color: #374151;
  font-weight: 500;
  line-height: 1.5;
}
.envi-tier-disclaimer {
  background: rgba(57,84,165,0.07);
  border: 1px solid #C7D2FE;
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 16px;
  color: #1e293b;
  line-height: 1.7;
  font-weight: 400;
}
.envi-tier-disclaimer strong {
  color: #0D1E39;
  font-weight: 700;
}
@media (max-width: 700px) {
  .envi-tier-cards { grid-template-columns: 1fr; }
  .envi-tier-bubble { padding: 18px 16px; }
}

/* ═══════════════════════════════════════════════════
   v1.1.1 — Bundled Logo Styles
═══════════════════════════════════════════════════ */

/* Login screen icon — white circle background so icon shows on dark navy */
.envi-login-icon-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  padding: 12px;
  display: block;
  margin-bottom: 4px;
  animation: enviPulse 3s ease-in-out infinite;
}

/* Nav full logo — transparent background, shows clean on dark nav */
.envi-nav-logo-img {
  height: 52px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
  filter: none;
  background: transparent !important;
  mix-blend-mode: screen;
}

/* ═══════════════════════════════════════════════════
   v1.1.6 — HTML/CSS Nav Logo (matches real Envi branding)
═══════════════════════════════════════════════════ */

/* Nav logo — uses settings URL, falls back to bundled icon */
.envi-nav-logo-img {
  height: 56px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block !important;
  background: transparent;
  filter: none;
}

/* Login screen logo — same source, larger */
.envi-login-icon-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  padding: 10px;
  display: block;
  margin-bottom: 8px;
  animation: enviPulse 3s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════
   v1.1.8 — Final override: settings-driven logo
   This MUST come last to win the cascade
═══════════════════════════════════════════════════ */

/* Nav logo — bigger, more prominent */
.envi-nav-logo-img {
  display: block !important;
  height: 72px !important;
  width: auto !important;
  max-width: 320px !important;
  object-fit: contain !important;
  background: transparent !important;
  filter: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* Login screen logo — show the logo as-is, no white background */
.envi-login-icon-img {
  display: block !important;
  width: 160px !important;
  height: 160px !important;
  object-fit: contain !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-bottom: 12px !important;
  filter: none !important;
}

/* ═══════════════════════════════════════════════════
   v1.2.2 — Theme override fix
   Force button colors with !important so the live theme
   cannot override them with its own button styles
═══════════════════════════════════════════════════ */

.envi-portal-body .envi-primary-btn,
.envi-portal-body button.envi-primary-btn,
#envi-login-screen .envi-primary-btn,
#envi-portal-screen .envi-primary-btn {
  background: #3954A5 !important;
  background-color: #3954A5 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 11px !important;
}

.envi-portal-body .envi-primary-btn:hover,
.envi-portal-body button.envi-primary-btn:hover,
#envi-login-screen .envi-primary-btn:hover,
#envi-portal-screen .envi-primary-btn:hover {
  background: #4a67c0 !important;
  background-color: #4a67c0 !important;
  color: #ffffff !important;
}

.envi-portal-body .envi-primary-btn:active,
.envi-portal-body button.envi-primary-btn:active {
  background: #3954A5 !important;
  background-color: #3954A5 !important;
}

.envi-portal-body .envi-primary-btn:focus,
.envi-portal-body button.envi-primary-btn:focus {
  background: #3954A5 !important;
  background-color: #3954A5 !important;
  color: #ffffff !important;
  outline: none !important;
}

/* Ensure button text and arrow are white */
.envi-portal-body .envi-primary-btn .btn-text,
.envi-portal-body .envi-primary-btn .btn-arrow {
  color: #ffffff !important;
}

/* ═══════════════════════════════════════════════════
   v1.2.3 — Back to website links + mobile table scroll
═══════════════════════════════════════════════════ */

/* "Back to Envi Website" link on login screen */
.envi-login-back-link {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 22px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 9px;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font);
  text-decoration: none;
  text-align: center;
  letter-spacing: 0.03em;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.envi-login-back-link:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

/* "Main Website" link in the top nav */
.envi-nav-home {
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  background: rgba(57,84,165,0.18);
  border: 1px solid rgba(57,84,165,0.35);
  margin-right: 10px;
}
.envi-nav-home:hover {
  background: rgba(57,84,165,0.32) !important;
  border-color: rgba(57,84,165,0.55);
  color: #fff !important;
  text-decoration: none !important;
}

/* Mobile pricing table — horizontal scroll */
@media (max-width: 900px) {
  .envi-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Visual hint that table is scrollable */
    background-image:
      linear-gradient(to right, #ffffff 30%, rgba(255,255,255,0)),
      linear-gradient(to right, rgba(13,30,57,0.08), #ffffff 70%) 100% 0;
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%;
    background-attachment: local, scroll;
  }
  .envi-table {
    min-width: 900px;
    width: max-content;
  }
  .envi-table thead th,
  .envi-table tbody td {
    white-space: nowrap;
  }
  .envi-table .td-product {
    white-space: normal;
    min-width: 200px;
  }
}

/* On very small phones — make the nav home link smaller */
@media (max-width: 640px) {
  .envi-nav-home {
    padding: 6px 10px;
    font-size: 13px;
    margin-right: 6px;
  }
  .envi-login-back-link {
    font-size: 14px;
    padding: 9px 18px;
  }
}
