/* ==========================================================================
   Concept E3 – Modern Dashboard Theme (Navigation in Top Bar)
   --------------------------------------------------------------------------
   - Based on styles_e2.css with navigation moved to white top bar
   - Navigation labels changed from white to teal
   - Dark teal gradient background (light upper-left to dark lower-right at 45°)
   - Light blue gradient for accounts section with drop shadow
   - Free-floating Quick Actions and Help & Learning sections over dark background
   - Scoped to body.modern-dashboard-page.modern-dashboard-e3
   ========================================================================== */

/* Modal surface token (warm gray) -------------------------------- */
:root {
  /* Neutral cool gray (less creamy) to help white cards pop */
  --modal-surface-warm: #f0f2f5;
}

/* Base tokens ---------------------------------------------------- */
body.modern-dashboard-page.modern-dashboard-e3 {
  /* Brand anchors */
  --brand-teal: #1b6875;
  --brand-teal-hover: #137f8b;
  --brand-apple: #a9c23f;

  /* Neutrals */
  --md-ink-primary: #0b1620;
  --md-ink-muted: #3f5261;
  --md-ink-soft: #627381;

  /* Status */
  --md-positive: #1f9a59;
  --md-negative: #d43b2a;
  --md-border-subtle: rgba(15, 23, 42, 0.10);

  /* Layout */
  --md-radius-card: 18px;
  --md-radius-chip: 999px;
  --md-shadow-soft: 0 18px 46px rgba(2, 6, 23, 0.14);
  --md-shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  /* New soft lift shadows */
  --md-shadow-lift: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  --md-shadow-lift-hover: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --md-spacing-unit: 8px;

  /* E2 surfaces */
  --md-surface-strong: #ffffff;
  --md-surface-soft: #f4f6f8;
  --md-surface-subtle: #eef2f6;
  
  /* E2 specific colors */
  --e2-teal-light: #3a8a96;
  --e2-teal-dark: #0d3d44;
  --e2-blue-gradient-start: #e8f4f8;
  --e2-blue-gradient-end: #d4eaf2;
}

/* Page background ------------------------------------------------- */
body.modern-dashboard-page.modern-dashboard-e3 {
  /* Dark teal gradient - light upper left to dark lower right at 45 degrees */
  background: linear-gradient(
    135deg,
    #3a8a96 0%,
    #287a86 15%,
    #1b6875 35%,
    #145560 55%,
    #0d4650 75%,
    #0a3940 100%
  );
  background-attachment: fixed;
  color: var(--md-ink-primary);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Top bar shadow adjustment for E3 - Fixed, hides on scroll down */
body.modern-dashboard-page.modern-dashboard-e3 .top-bar {
  box-shadow: var(--md-shadow-lift);
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin-top: 0;
  display: flex;
  align-items: center;
  padding: 0;
  min-height: 64px;
  transition: transform 0.3s ease-in-out;
}

body.modern-dashboard-page.modern-dashboard-e3 .top-bar.nav-hidden {
  transform: translateY(-100%);
}

/* Top bar left section - Logo pinned to left edge */
body.modern-dashboard-page.modern-dashboard-e3 .top-left {
  display: flex;
  align-items: center;
  z-index: 1;
  padding-left: 20px; /* Small padding from browser edge */
  pointer-events: auto;
  flex-shrink: 0;
}

/* Logo sizing */
body.modern-dashboard-page.modern-dashboard-e3 .top-left img {
  height: 32px;
  max-height: 32px;
}

/* Top Navigation Menu - Aligned with content container */
body.modern-dashboard-page.modern-dashboard-e3 .top-nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding-left: 40px; /* Match content left padding */
  padding-right: 40px; /* Match content right padding */
  z-index: 10;
  pointer-events: auto;
  flex: 1;
}

/* Top bar right section */
body.modern-dashboard-page.modern-dashboard-e3 .top-right {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-right: 40px; /* Match content right padding */
  z-index: 15;
  pointer-events: auto;
  flex-shrink: 0;
}

/* Top-right icon buttons with small labels */
body.modern-dashboard-page.modern-dashboard-e3 .top-bar .top-right > .top-icon-btn {
  /* Override base `styles.css` which lays these out horizontally */
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  gap: 2px !important;
  min-width: 54px;
}

body.modern-dashboard-page.modern-dashboard-e3 .top-bar .top-right > .top-icon-btn i {
  line-height: 1;
  font-size: 1.25rem;
}

body.modern-dashboard-page.modern-dashboard-e3 .top-bar .top-right > .top-icon-btn .top-icon-label {
  display: block;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(27, 104, 117, 0.85);
  line-height: 1;
  user-select: none;
}

/* Notification dot on bell icon */
body.modern-dashboard-page.modern-dashboard-e3 #messagesTrigger {
  position: relative;
}

body.modern-dashboard-page.modern-dashboard-e3 #messagesTrigger::after {
  /* Anchor the dot to the bell icon instead (see rules below). */
  display: none;
}

body.modern-dashboard-page.modern-dashboard-e3 #messagesTrigger i {
  position: relative;
  display: inline-block;
}

body.modern-dashboard-page.modern-dashboard-e3 #messagesTrigger i::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -5px;
  width: 9px;
  height: 9px;
  background: #be0123;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  box-sizing: border-box;
}

body.modern-dashboard-page.modern-dashboard-e3 .top-nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.modern-dashboard-page.modern-dashboard-e3 .top-nav-list > li {
  position: relative;
  display: block;
}

body.modern-dashboard-page.modern-dashboard-e3 .top-nav-list > li > a {
  display: flex;
  align-items: center;
  padding: 22px 24px;
  font-size: 1rem;
  font-weight: 450;
  color: #1b6875;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

body.modern-dashboard-page.modern-dashboard-e3 .top-nav-list > li > a:hover {
  background: rgba(27, 104, 117, 0.08);
  color: #137f8b;
}

/* Submenu styling for top nav */
body.modern-dashboard-page.modern-dashboard-e3 .top-nav-list .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

body.modern-dashboard-page.modern-dashboard-e3 .top-nav-list > li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

body.modern-dashboard-page.modern-dashboard-e3 .top-nav-list > li.open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

body.modern-dashboard-page.modern-dashboard-e3 .top-nav-list .submenu li {
  margin: 0;
}

body.modern-dashboard-page.modern-dashboard-e3 .top-nav-list .submenu a {
  display: block;
  padding: 12px 20px;
  font-size: 0.9rem;
  color: #374151;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

body.modern-dashboard-page.modern-dashboard-e3 .top-nav-list .submenu a:hover {
  background: rgba(27, 104, 117, 0.05);
  color: #1b6875;
}

/* Hide top nav on mobile */
@media (max-width: 991px) {
  body.modern-dashboard-page.modern-dashboard-e3 .top-nav-menu {
    display: none;
  }
  
  body.modern-dashboard-page.modern-dashboard-e3 .top-bar {
    justify-content: space-between;
  }
  
  body.modern-dashboard-page.modern-dashboard-e3 .top-left {
    padding-left: 20px;
  }
  
  body.modern-dashboard-page.modern-dashboard-e3 .top-right {
    padding-right: 20px;
  }
}

/* Main content area */
body.modern-dashboard-page.modern-dashboard-e3 .modern-dashboard {
  min-height: calc(100vh - 120px);
  padding: 80px calc(var(--md-spacing-unit) * 5) calc(var(--md-spacing-unit) * 6);
  position: relative;
  background: transparent;
}

.modern-dashboard-e3 .md-shell {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  overflow: visible;
}

/* Remove the original shell background effect */
body.modern-dashboard-page.modern-dashboard-e3 .modern-dashboard .md-shell-background {
  display: none;
}

/* Typography */
.modern-dashboard-e3 h1,
.modern-dashboard-e3 h2,
.modern-dashboard-e3 h3,
.modern-dashboard-e3 h4 {
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.modern-dashboard-page.modern-dashboard-e3 .modern-dashboard p {
  color: var(--md-ink-muted);
}

/* Hero section - text on dark background - now inside left column */
body.modern-dashboard-e3 .md-hero-section {
  margin-bottom: calc(var(--md-spacing-unit) * 4);
  padding-left: 0;
}

body.modern-dashboard-e3 .md-hero-title {
  font-size: 2.1rem;
  margin: 0 0 calc(var(--md-spacing-unit) * 1.5);
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
}

body.modern-dashboard-e3 .md-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--md-spacing-unit) * 1.5);
  align-items: center;
  font-size: 0.85rem;
}

body.modern-dashboard-e3 .md-meta-item {
  color: rgba(255, 255, 255, 0.75);
}

/* Main grid */
body.modern-dashboard-e3 .md-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 3fr);
  gap: calc(var(--md-spacing-unit) * 6);
  align-items: start;
}

body.modern-dashboard-e3 .md-column {
  display: flex;
  flex-direction: column;
  gap: calc(var(--md-spacing-unit) * 2.5);
  overflow: visible;
}

body.modern-dashboard-e3 .md-column-wide {
  gap: 0;
}

body.modern-dashboard-e3 .md-column-narrow {
  margin-top: -5px;
}

/* ==========================================================================
   Accounts Section - Light Blue Gradient Background pinned to left
   ========================================================================== */

body.modern-dashboard-e3 .md-card-accounts.md-card-accounts-v2 {
  /* Light blue gradient - 45 degrees, extended beyond component boundaries */
  background: linear-gradient(
    135deg,
    #f5feff 0%,
    #E7FBFF 10%,
    #d0f0f8 25%,
    #b8e5f1 40%,
    #8cc7d8 60%,
    #4d95a8 80%,
    #0B5B6D 100%
  );
  border: none;
  /* Top-right and bottom-right corners have radius */
  border-radius: 0 18px 18px 0;
  padding: calc(var(--md-spacing-unit) * 2.5);
  margin-top: 2px;
  /* Drop shadow ONLY to the right and bottom */
  box-shadow: 
    8px 8px 24px rgba(0, 0, 0, 0.10),
    4px 4px 12px rgba(0, 0, 0, 0.06);
  
  /* Extend background to left edge using negative margin and padding */
  margin-left: calc(-100vw + 100%);
  padding-left: calc(100vw - 100%);
  position: relative;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

body.modern-dashboard-e3 .md-card-accounts.md-card-accounts-v2.md-accounts-bg-logo {
  background: linear-gradient(
    135deg,
    #c7dd65 0%,
    #a9c23f 35%,
    #319b4c 70%,
    #1b6875 100%
  );
}

body.modern-dashboard-e3 .md-card-accounts.md-card-accounts-v2.md-accounts-bg-muted {
  background: linear-gradient(
    135deg,
    #dad9d6 0%,
    #b1b1b1 45%,
    #73757f 75%,
    #3f3f43 100%
  );
}


/* Card header styling */
body.modern-dashboard-e3 .md-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: calc(var(--md-spacing-unit) * 2);
  margin-bottom: calc(var(--md-spacing-unit) * 2);
}

body.modern-dashboard-e3 .md-card-title {
  margin: 0 0 4px;
  font-size: 1.35rem;
  color: var(--brand-teal);
}

body.modern-dashboard-e3 .md-card-title.md-accounts-title {
  cursor: pointer;
  user-select: none;
}

body.modern-dashboard-e3 .md-card-title.md-accounts-title:focus-visible {
  outline: 2px solid rgba(27, 104, 117, 0.35);
  outline-offset: 3px;
  border-radius: 6px;
}

body.modern-dashboard-e3 .md-card-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: var(--md-ink-muted);
}

/* Link button */
body.modern-dashboard-e3 .md-link-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: var(--md-radius-chip);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: var(--md-ink-primary);
  cursor: pointer;
}

body.modern-dashboard-e3 .md-link-button i {
  font-size: 0.8rem;
}

body.modern-dashboard-e3 .md-link-button:hover {
  border-color: rgba(15, 23, 42, 0.22);
  background: rgba(255, 255, 255, 1);
}

/* Account Sections */
body.modern-dashboard-e3 .md-card-accounts-v2 .md-accounts-sections {
  display: flex;
  flex-direction: column;
  gap: calc(var(--md-spacing-unit) * 2.5);
}

body.modern-dashboard-e3 .md-accounts-section {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

body.modern-dashboard-e3 .md-accounts-section-header {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
  /* Make the top-level section card feel more "primary" (darker surface) */
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(27, 104, 117, 0.26);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  margin-bottom: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.06);
}

body.modern-dashboard-e3 .md-accounts-section-header:hover {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(27, 104, 117, 0.34);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

body.modern-dashboard-e3 .md-accounts-section-icon {
  display: none;
}

body.modern-dashboard-e3 .md-accounts-section-name {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  /* Compeer DS: Dark Teal - meets WCAG AA on light backgrounds */
  color: #1b6875;
  line-height: 1.2;
}

body.modern-dashboard-e3 .md-accounts-section-meta {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  /* Compeer DS: Almost Black (#3f3f43) - meets WCAG AA 4.5:1 contrast */
  color: #3f3f43;
  font-weight: 500;
}

body.modern-dashboard-e3 .md-accounts-section-chevron {
  /* Compeer DS: Almost Black for sufficient contrast */
  color: #3f3f43;
  transition: transform 0.2s ease;
  font-size: 0.9rem;
  opacity: 1;
}

body.modern-dashboard-e3 .md-accounts-section-header:hover .md-accounts-section-chevron {
  color: #1b6875;
}

body.modern-dashboard-e3 .md-accounts-section-header.is-collapsed .md-accounts-section-chevron {
  transform: rotate(180deg);
}

body.modern-dashboard-e3 .md-accounts-section-content {
  padding: 12px 0 8px 0;
}

/* Account Card List */
body.modern-dashboard-e3 .md-account-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.modern-dashboard-e3 .md-account-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  background: #ffffff;
  border: none;
  border-radius: 10px;
  box-shadow: var(--md-shadow-lift);
  overflow: visible;
  /* Slightly more vertical breathing room for text */
  padding: 9px 18px;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

body.modern-dashboard-e3 .md-account-card:hover {
  box-shadow: var(--md-shadow-lift-hover);
  transform: translateY(-1px);
}

body.modern-dashboard-e3 .md-account-card-primary {
  padding: 0;
}

body.modern-dashboard-e3 .md-account-card-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--brand-teal);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

body.modern-dashboard-e3 .md-account-card-balance {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--md-ink-primary);
}

body.modern-dashboard-e3 .md-account-card-due {
  padding: 0 8px;
  text-align: right;
}

body.modern-dashboard-e3 .md-account-due-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
}

body.modern-dashboard-e3 .md-account-due-label {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--md-ink-soft);
  font-weight: 500;
}

body.modern-dashboard-e3 .md-account-due-value {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--md-ink-primary);
}

/* Due soon (next 2 weeks) ---------------------------------------- */
body.modern-dashboard-e3 .md-account-due-pill.is-due-soon .md-account-due-label,
body.modern-dashboard-e3 .md-account-due-pill.is-due-soon .md-account-due-value {
  color: var(--md-negative);
}

body.modern-dashboard-e3 .md-account-card-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  /* Make the action stack feel integrated with the card */
  height: auto;
  align-self: stretch;
  margin: -9px -18px -9px 0; /* match .md-account-card padding (9px 18px) */
  overflow: hidden;
  border-radius: 0 10px 10px 0; /* match card corner rounding on the right */
  border-left: none;
}

body.modern-dashboard-e3 .md-mini-action {
  min-width: 72px;
  /* Reduce button height (PAY/VIEW) */
  padding: 0 16px;
  flex: 1; /* fill the available height when actions stretch */
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(240, 243, 247, 0.9);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--md-ink-primary);
  border-radius: 0;
  transition: all 0.15s ease;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.modern-dashboard-e3 .md-mini-action:first-child {
  border-radius: 0 10px 0 0;
}

body.modern-dashboard-e3 .md-mini-action:last-child {
  border-radius: 0 0 10px 0;
}

body.modern-dashboard-e3 .md-mini-action + .md-mini-action {
  border-top: none;
}

body.modern-dashboard-e3 .md-mini-action-primary {
  color: var(--brand-teal);
  background: rgba(27, 104, 117, 0.08);
  font-weight: 700;
}

body.modern-dashboard-e3 .md-mini-action:hover {
  background: rgba(248, 250, 252, 0.8);
}

body.modern-dashboard-e3 .md-mini-action-primary:hover {
  background: rgba(248, 250, 252, 0.9);
}

/* ==========================================================================
   Right Column - Floating Sections Over Dark Background
   ========================================================================== */

body.modern-dashboard-e3 .md-floating-section {
  padding: calc(var(--md-spacing-unit) * 2) 0;
}

body.modern-dashboard-e3 .md-floating-section:first-child {
  padding-top: 15px;
}

body.modern-dashboard-e3 .md-floating-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 calc(var(--md-spacing-unit) * 2);
  padding: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

body.modern-dashboard-e3 .md-floating-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.modern-dashboard-e3 .md-floating-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.95);
  color: var(--md-ink-primary);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  box-shadow: var(--md-shadow-lift);
}

body.modern-dashboard-e3 .md-floating-row:hover {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: var(--md-shadow-lift-hover);
  transform: translateY(-1px);
}

body.modern-dashboard-e3 .md-floating-row:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

body.modern-dashboard-e3 .md-floating-row-icon-left {
  color: #A18F5E;
  font-size: 1.1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}

body.modern-dashboard-e3 .md-floating-row-text {
  font-size: 0.9rem;
  font-weight: 600;
  flex: 1;
}

body.modern-dashboard-e3 .md-floating-row-icon {
  display: none;
}

body.modern-dashboard-e3 .md-floating-row-link {
  text-decoration: none;
}

/* ==========================================================================
   Marketing Component (Crop Insurance) - Floating Over Dark Background
   ========================================================================== */

body.modern-dashboard-e3 .md-floating-section.md-marketing-card {
  padding: 0;
}

body.modern-dashboard-e3 .md-marketing-card {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--md-shadow-lift);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

body.modern-dashboard-e3 .md-marketing-card:hover {
  box-shadow: var(--md-shadow-lift-hover);
  transform: translateY(-2px);
}

body.modern-dashboard-e3 .md-marketing-image {
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  line-height: 0;
  border-radius: 12px 12px 0 0;
}

body.modern-dashboard-e3 .md-marketing-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

body.modern-dashboard-e3 .md-marketing-card:hover .md-marketing-image img {
  transform: scale(1.05);
}

body.modern-dashboard-e3 .md-marketing-content {
  padding: 20px 18px;
}

body.modern-dashboard-e3 .md-marketing-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--md-ink-primary);
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}

body.modern-dashboard-e3 .md-marketing-description {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--md-ink-muted);
  margin: 0 0 16px;
}

body.modern-dashboard-e3 .md-marketing-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-teal);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(27, 104, 117, 0.05);
  transition: background 0.15s ease, color 0.15s ease;
}

body.modern-dashboard-e3 .md-marketing-cta:hover {
  background: rgba(27, 104, 117, 0.10);
  color: var(--brand-teal-hover);
}

body.modern-dashboard-e3 .md-marketing-cta i {
  font-size: 0.75rem;
  transition: transform 0.15s ease;
}

body.modern-dashboard-e3 .md-marketing-cta:hover i {
  transform: translateX(2px);
}

/* ==========================================================================
   Footer Styling for Dark Background
   ========================================================================== */

body.modern-dashboard-e3 .contact-footer {
  background: linear-gradient(
    135deg,
    #287a86 0%,
    #1b6875 30%,
    #145560 60%,
    #0a3940 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 991px) {
  body.modern-dashboard-page.modern-dashboard-e3 .modern-dashboard {
    padding: 80px calc(var(--md-spacing-unit) * 2.5) calc(var(--md-spacing-unit) * 5);
  }

  body.modern-dashboard-e3 .md-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.modern-dashboard-e3 .md-column-wide {
    gap: calc(var(--md-spacing-unit) * 2.5);
  }

  body.modern-dashboard-e3 .md-card-accounts.md-card-accounts-v2 {
    margin-top: 0;
  }

  body.modern-dashboard-e3 .md-account-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 12px 16px;
    /* Slightly more vertical breathing room for text */
    padding: 11px 18px;
  }

  body.modern-dashboard-e3 .md-account-card-primary {
    padding: 0;
  }

  body.modern-dashboard-e3 .md-account-card-due {
    padding: 0;
    text-align: right;
    grid-row: 1;
    grid-column: 2;
  }

  body.modern-dashboard-e3 .md-account-due-pill {
    align-items: flex-end;
  }

  body.modern-dashboard-e3 .md-account-card-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    border-left: none;
    border-top: none;
    gap: 8px;
    margin: 0; /* don't bleed into padding when stacked as a row */
    overflow: visible;
    border-radius: 0;
  }

  body.modern-dashboard-e3 .md-mini-action + .md-mini-action {
    border-top: none;
    border-left: none;
  }

  /* Stack floating sections nicely on mobile */
  body.modern-dashboard-e3 .md-floating-section {
    padding: calc(var(--md-spacing-unit) * 2.5) 0;
  }
}

@media (max-width: 720px) {
  body.modern-dashboard-e3 .md-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  body.modern-dashboard-e3 .md-floating-row {
    padding: 14px 16px;
  }

  body.modern-dashboard-e3 .md-floating-row-text {
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   Message Center Dropdown (same as E)
   ========================================================================== */

.message-center-dropdown {
  position: fixed;
  top: 70px;
  right: 20px;
  width: 400px;
  max-height: calc(100vh - 100px);
  background: var(--modal-surface-warm);
  border-radius: 12px;
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 12px 48px rgba(0, 0, 0, 0.25),
    0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}

.message-center-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Removed incorrect ::before backdrop */

.mc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mc-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1b6875;
  margin: 0;
  letter-spacing: 0.01em;
}

.mc-close {
  background: #f1f5f9;
  border: none;
  font-size: 1rem;
  color: #64748b;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.mc-close:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* Tabs */
.mc-tabs {
  display: flex;
  background: transparent;
  padding: 8px 16px;
  gap: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mc-tab {
  position: relative;
  background: transparent;
  border: none;
  padding: 10px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
}

.mc-tab:hover {
  background: #e2e8f0;
  color: #475569;
}

.mc-tab.active {
  background: #1b6875;
  color: #ffffff;
}

.mc-tab.active::after {
  display: none;
}

.mc-tab-indicator {
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  flex-shrink: 0;
}

.mc-tab.active .mc-tab-indicator {
  background: #fbbf24;
}

/* Tab Content */
.mc-content {
  flex: 1;
  overflow-y: auto;
  min-height: 280px;
  background: var(--modal-surface-warm);
}

.mc-tab-panel {
  display: none;
  padding: 0;
  height: 100%;
  flex-direction: column;
}

.mc-tab-panel.active {
  display: flex;
}

/* Alert Items */
.mc-alert-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  margin: 12px 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  border-left: 4px solid #f59e0b;
}

.mc-alert-content {
  flex: 1;
}

.mc-alert-text {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #1e293b;
  margin: 0 0 12px;
}

.mc-alert-text strong {
  font-weight: 700;
  color: #92400e;
}

.mc-alert-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1b6875;
  text-decoration: none;
  padding: 6px 12px;
  background: rgba(27, 104, 117, 0.1);
  border-radius: 6px;
  transition: background 0.15s ease;
}

.mc-alert-link:hover {
  background: rgba(27, 104, 117, 0.18);
  color: #137f8b;
}

.mc-unread-dot {
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Inbox */
.mc-inbox-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 200px;
  padding: 40px 24px;
  text-align: center;
}

.mc-inbox-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1b6875;
  text-decoration: none;
  padding: 12px 20px;
  background: rgba(27, 104, 117, 0.08);
  border-radius: 8px;
  transition: background 0.15s ease;
}

.mc-inbox-link:hover {
  background: rgba(27, 104, 117, 0.15);
  color: #137f8b;
}

/* Notice Items */
.mc-notice-item {
  padding: 16px 20px;
  margin: 12px 16px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  border-left: 4px solid #22c55e;
}

.mc-notice-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #1e293b;
  margin: 0 0 12px;
}

.mc-notice-highlight {
  color: #15803d;
  font-weight: 700;
}

.mc-notice-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1b6875;
  text-decoration: none;
  padding: 6px 12px;
  background: rgba(27, 104, 117, 0.1);
  border-radius: 6px;
  transition: background 0.15s ease;
}

.mc-notice-link:hover {
  background: rgba(27, 104, 117, 0.18);
  color: #137f8b;
}

/* Footer */
.mc-footer {
  padding: 16px 24px;
  text-align: center;
  background: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: auto;
}

.mc-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1b6875;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #1b6875;
  transition: background 0.15s ease, color 0.15s ease;
}

.mc-footer-link:hover {
  background: #1b6875;
  color: #ffffff;
}

/* ==========================================================================
   Help & Support Dropdown (same as E)
   ========================================================================== */

.help-support-dropdown {
  position: fixed;
  top: 70px;
  right: 20px;
  width: 400px;
  max-height: calc(100vh - 100px);
  background: var(--modal-surface-warm);
  border-radius: 12px;
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 12px 48px rgba(0, 0, 0, 0.25),
    0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}

.help-support-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Removed incorrect ::before backdrop */

.hs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hs-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1b6875;
  margin: 0;
  letter-spacing: 0.01em;
}

.hs-close {
  background: #f1f5f9;
  border: none;
  font-size: 1rem;
  color: #64748b;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.hs-close:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.hs-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  background: var(--modal-surface-warm);
}

.hs-section {
  padding: 20px 24px;
}

.hs-section + .hs-section {
  border-top: 1px solid #eef2f6;
}

.hs-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1b6875;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hs-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #e0e6ec 0%, transparent 100%);
}

/* Support navigation rows (Communication / Help & Learning) */
.hs-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hs-nav-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px;
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  text-decoration: none;
  color: #1e293b;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.hs-nav-link:hover {
  background: #ffffff;
  border-color: #e2e8f0;
  transform: translateY(-1px);
  box-shadow: var(--md-shadow-lift);
}

.hs-nav-link:focus {
  outline: none;
}

.hs-nav-link:focus-visible {
  outline: 3px solid rgba(27, 104, 117, 0.25);
  outline-offset: 2px;
}

.hs-nav-icon {
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1b6875;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.hs-nav-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hs-nav-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
}

.hs-nav-subtext {
  font-size: 0.78rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.35;
}

.hs-nav-chevron {
  color: #94a3b8;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.hs-nav-link:hover .hs-nav-title {
  color: #1b6875;
}

.hs-nav-list-compact {
  margin-top: 14px;
}

.hs-nav-link-compact {
  align-items: center;
  padding: 12px 14px;
}

.hs-nav-link-compact .hs-nav-icon {
  margin-top: 0;
}

.hs-nav-link-compact .hs-nav-title {
  font-size: 0.85rem;
  font-weight: 600;
}

.hs-nav-link-compact .hs-nav-chevron {
  margin-top: 0;
}

/* Team Member */
.hs-team-member {
  display: flex;
  gap: 16px;
  padding: 16px;
  margin-bottom: 12px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #eef2f6;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.hs-team-member:hover {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: var(--md-shadow-lift);
  transform: translateY(-1px);
}

.hs-team-member:last-child {
  margin-bottom: 0;
}

.hs-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1b6875 0%, #137f8b 100%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hs-avatar i {
  font-size: 1.2rem;
  color: #ffffff;
}

.hs-member-info {
  flex: 1;
  min-width: 0;
}

.hs-member-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.hs-member-role {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 10px;
}

.hs-member-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hs-contact-item {
  font-size: 0.78rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.hs-contact-item i {
  color: #1b6875;
  font-size: 0.7rem;
}

.hs-contact-link {
  font-size: 0.78rem;
  color: #1b6875;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: rgba(27, 104, 117, 0.08);
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.15s ease;
}

.hs-contact-link i {
  color: #1b6875;
  font-size: 0.7rem;
}

.hs-contact-link:hover {
  background: rgba(27, 104, 117, 0.15);
  color: #137f8b;
}

/* Support Info */
.hs-support-info {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #f0f9fa 0%, #e6f3f5 100%);
  border-radius: 10px;
  border: 1px solid #d4ebee;
}

.hs-support-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1b6875 0%, #137f8b 100%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hs-support-icon i {
  font-size: 1.2rem;
  color: #ffffff;
}

.hs-support-details {
  flex: 1;
}

.hs-support-hours {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 10px;
}

.hs-support-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Footer */
.hs-footer {
  padding: 16px 24px;
  text-align: center;
  background: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.hs-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1b6875;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #1b6875;
  transition: background 0.15s ease, color 0.15s ease;
}

.hs-footer-link:hover {
  background: #1b6875;
  color: #ffffff;
}

/* ==========================================================================
   Dropdown Overlay / Backdrop
   ========================================================================== */

.dropdown-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 40, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050; /* Below dropdowns (1100) but above everything else */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.dropdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: none;
}

.dropdown-overlay.active {
  display: block;
}

/* ==========================================================================
   Responsive Adjustments for Dropdowns
   ========================================================================== */

@media (max-width: 480px) {
  .message-center-dropdown,
  .help-support-dropdown {
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100vh - 80px);
  }
}

/* ==========================================================================
   Emergency Modal (same as E)
   ========================================================================== */

.emergency-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 35, 45, 0.85);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.emergency-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.emergency-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(165deg, #1b4a52 0%, #0f2d33 100%);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s ease;
}

.emergency-modal-overlay.active .emergency-modal {
  transform: scale(1) translateY(0);
}

.emergency-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6b6b, #ffa06b, #ff6b6b);
  animation: emergencyPulse 2s ease-in-out infinite;
}

@keyframes emergencyPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.emergency-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
  z-index: 1;
}

.emergency-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.emergency-modal-content {
  padding: 48px 32px 36px;
  text-align: center;
}

.emergency-modal-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 160, 107, 0.15));
  border: 2px solid rgba(255, 107, 107, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.emergency-modal-icon i {
  font-size: 1.75rem;
  color: #ff8a6b;
  animation: phoneRing 1.5s ease-in-out infinite;
}

@keyframes phoneRing {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(-12deg); }
  20% { transform: rotate(12deg); }
  30% { transform: rotate(-10deg); }
  40% { transform: rotate(10deg); }
  50% { transform: rotate(0deg); }
}

.emergency-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}

.emergency-modal-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 28px;
}

.emergency-phone-display {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.emergency-phone-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.emergency-phone-number {
  display: block;
  font-size: 1.85rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

.emergency-phone-number:hover {
  color: #ff8a6b;
}

.emergency-call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 220px;
  padding: 16px 28px;
  margin-bottom: 20px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8a6b 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.emergency-call-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 107, 107, 0.45);
}

.emergency-call-btn:active {
  transform: translateY(0);
}

.emergency-call-btn i {
  font-size: 0.95rem;
}

.emergency-modal-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.emergency-modal-note i {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Emergency Modal Responsive */
@media (max-width: 480px) {
  .emergency-modal {
    max-width: none;
    margin: 10px;
    border-radius: 12px;
  }

  .emergency-modal-content {
    padding: 40px 24px 28px;
  }

  .emergency-modal-icon {
    width: 64px;
    height: 64px;
  }

  .emergency-modal-icon i {
    font-size: 1.5rem;
  }

  .emergency-modal-title {
    font-size: 1.3rem;
  }

  .emergency-phone-number {
    font-size: 1.5rem;
  }

  .emergency-call-btn {
    padding: 14px 24px;
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   Find Your Local Office Modal (same as E)
   ========================================================================== */

.location-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 35, 45, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.location-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.location-modal {
  position: relative;
  width: 100%;
  max-width: 720px;
  background: var(--modal-surface-warm);
  border-radius: 4px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s ease;
}

.location-modal-overlay.active .location-modal {
  transform: scale(1) translateY(0);
}

.location-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
  z-index: 1;
}

.location-modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
}

.location-modal-content {
  padding: 40px 48px 48px;
}

.location-modal-header {
  margin-bottom: 32px;
}

.location-modal-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1b6875;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.location-modal-title {
  font-size: 1.75rem;
  font-weight: 400;
  color: #2c3e50;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.location-modal-description {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* Location Form */
.location-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.location-select-group {
  position: relative;
}

.location-select {
  width: 100%;
  padding: 18px 48px 18px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: #1b6875;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.location-select:hover:not(:disabled) {
  border-color: #bbb;
}

.location-select:focus {
  outline: none;
  border-color: #1b6875;
  box-shadow: 0 0 0 3px rgba(27, 104, 117, 0.1);
}

.location-select:disabled {
  background: #f8f8f8;
  color: #999;
  cursor: not-allowed;
}

.location-select option {
  color: #333;
  padding: 12px;
}

.location-select-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 0.85rem;
  pointer-events: none;
}

/* Location Form Actions */
.location-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.location-btn {
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.location-btn-browse {
  background: #1b6875;
  color: #ffffff;
  border: 2px solid #1b6875;
}

.location-btn-browse:hover {
  background: #137f8b;
  color: #ffffff;
}

.location-btn-go {
  background: #f5f5f5;
  color: #999;
  border: 1px solid #ddd;
  min-width: 120px;
}

.location-btn-go:not(:disabled) {
  background: #ffffff;
  color: #2c3e50;
  border-color: #ddd;
}

.location-btn-go:not(:disabled):hover {
  background: #f8f8f8;
  border-color: #ccc;
}

.location-btn-go:disabled {
  cursor: not-allowed;
}

/* Location Modal Responsive */
@media (max-width: 600px) {
  .location-modal-content {
    padding: 32px 24px 36px;
  }

  .location-modal-title {
    font-size: 1.4rem;
  }

  .location-form-actions {
    flex-direction: column;
    gap: 12px;
  }

  .location-btn {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   Browse All Offices Full Page Modal (same as E)
   ========================================================================== */

.all-offices-modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--modal-surface-warm);
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow: hidden;
}

.all-offices-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.all-offices-modal {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.all-offices-header {
  background: linear-gradient(135deg, #1b6875 0%, #0f4a54 100%);
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 140px;
  flex-shrink: 0;
}

.all-offices-header-content {
  flex: 1;
}

.all-offices-breadcrumb {
  margin-bottom: 8px;
}

.all-offices-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.all-offices-breadcrumb a:hover {
  color: #ffffff;
}

.all-offices-breadcrumb i {
  font-size: 0.75rem;
}

.all-offices-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.08em;
}

.all-offices-close {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.all-offices-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.all-offices-content {
  flex: 1;
  overflow-y: auto;
  padding: 40px;
  background: var(--modal-surface-warm);
}

.all-offices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Individual Office Card */
.office-card {
  background: #ffffff;
  padding: 24px;
  border: 1px solid #e5e5e5;
  border-radius: 0;
}

.office-card-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: #888;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.office-card-city {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1b6875;
  margin: 0 0 16px;
}

.office-card-section {
  margin-bottom: 16px;
}

.office-card-section:last-child {
  margin-bottom: 0;
}

.office-card-section-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: #1b6875;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.office-card-address {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.5;
  margin: 0 0 6px;
}

.office-card-link {
  font-size: 0.8rem;
  color: #1b6875;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.office-card-link:hover {
  color: #137f8b;
}

.office-card-contact {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.7;
}

.office-card-contact a {
  color: #1b6875;
  text-decoration: none;
}

.office-card-contact a:hover {
  text-decoration: underline;
}

.office-card-contact-label {
  color: #888;
}

/* All Offices Modal Responsive */
@media (max-width: 1200px) {
  .all-offices-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .all-offices-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .all-offices-header {
    padding: 0 24px;
    min-height: 120px;
  }

  .all-offices-title {
    font-size: 1.8rem;
  }

  .all-offices-content {
    padding: 24px;
  }
}

@media (max-width: 600px) {
  .all-offices-grid {
    grid-template-columns: 1fr;
  }

  .all-offices-header {
    padding: 0 16px;
    min-height: 100px;
  }

  .all-offices-title {
    font-size: 1.4rem;
    letter-spacing: 0.04em;
  }

  .all-offices-content {
    padding: 16px;
  }

  .all-offices-close {
    width: 40px;
    height: 40px;
  }
}

/* ========================================================================
   CALCULATOR MODAL STYLES
   ======================================================================== */

/* Calculator Modal Overlay */
.calculator-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  overflow-y: auto;
}

.calculator-modal-overlay.active {
  display: flex;
}

/* Calculator Modal Container */
.calculator-modal {
  background: var(--modal-surface-warm);
  border-radius: 12px;
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideUp 0.3s ease-out;
  overflow: hidden;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Calculator Modal Header */
.calculator-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  background-color: #1b6875;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.calculator-modal-header h2 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.calculator-modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.calculator-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.calculator-modal-close:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Calculator Modal Content */
.calculator-modal-content {
  flex: 1;
  overflow-y: auto;
  background-color: var(--modal-surface-warm);
}

/* Calculator Tabs */
.calculator-tabs {
  display: flex;
  gap: 8px;
  padding: 20px 20px 0;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  flex-wrap: wrap;
}

.calculator-tab-btn {
  background: none;
  border: none;
  color: #1b6875;
  padding: 12px 20px;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  opacity: 0.7;
  min-height: 44px;
}

.calculator-tab-btn:hover {
  background-color: #f4f6f8;
  opacity: 1;
}

.calculator-tab-btn.active {
  background-color: #1b6875;
  color: #ffffff;
  opacity: 1;
}

.calculator-tab-btn:focus {
  outline: 2px solid #1b6875;
  outline-offset: -2px;
}

/* Calculator Body */
.calculator-body {
  padding: 24px;
}

.calculator-panel {
  display: none;
}

.calculator-panel.active {
  display: block;
}

/* Override calculator grid for modal context */
.calculator-modal .calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.calculator-modal .input-section,
.calculator-modal .results-section {
  padding: 24px;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.calculator-modal .input-section h3,
.calculator-modal .results-section h3 {
  color: #1b6875;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 20px 0;
}

.calculator-modal .input-section h4,
.calculator-modal .results-section h4 {
  color: #3f5261;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 16px 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.calculator-modal .input-group {
  margin-bottom: 18px;
}

.calculator-modal .input-group label {
  display: block;
  margin-bottom: 6px;
  color: #3f5261;
  font-weight: 500;
  font-size: 0.9rem;
}

.calculator-modal .input-group input,
.calculator-modal .input-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #d0d0d0;
  border-radius: 6px;
  background-color: #ffffff;
  color: #1F1F23;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.calculator-modal .input-group input:hover,
.calculator-modal .input-group select:hover {
  border-color: #a0a0a0;
}

.calculator-modal .input-group input:focus,
.calculator-modal .input-group select:focus {
  border-color: #1b6875;
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 104, 117, 0.1);
}

.calculator-modal .calculate-btn {
  width: 100%;
  padding: 14px;
  background-color: #1b6875;
  color: #ffffff;
  border: 2px solid #1b6875;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  min-height: 48px;
  margin-top: 8px;
}

.calculator-modal .calculate-btn:hover {
  background-color: #137f8b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 104, 117, 0.2);
}

.calculator-modal .calculate-btn:active {
  transform: translateY(0);
}

.calculator-modal .calculate-btn:focus {
  outline: 2px solid #1b6875;
  outline-offset: 2px;
}

.calculator-modal .summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.calculator-modal .summary-item {
  text-align: center;
  padding: 16px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.calculator-modal .summary-item h4 {
  color: #627381;
  font-size: 0.8rem;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.calculator-modal .summary-item p {
  color: #1b6875;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  word-break: break-word;
}

.calculator-modal .chart-container {
  margin-top: 24px;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  height: 280px;
  border: 1px solid #e0e0e0;
}

.calculator-modal .risk-indicators {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 10px;
}

.calculator-modal .risk-indicator {
  flex: 1;
  padding: 12px;
  text-align: center;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

.calculator-modal .risk-indicator.good {
  background-color: #2e834a;
}

.calculator-modal .risk-indicator.caution {
  background-color: #dc9503;
}

.calculator-modal .risk-indicator.high-risk {
  background-color: #be0123;
}

.calculator-modal .amortization-table {
  margin-top: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
}

.calculator-modal table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  background-color: #ffffff;
}

.calculator-modal th,
.calculator-modal td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.9rem;
}

.calculator-modal th {
  background-color: #f8f9fa;
  color: #1F1F23;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
}

.calculator-modal tbody tr:hover {
  background-color: #f8f9fa;
}

.calculator-modal tbody tr:last-child td {
  border-bottom: none;
}

/* Responsive Styles for Calculator Modal */
@media (max-width: 992px) {
  .calculator-modal {
    max-width: 95%;
  }

  .calculator-modal .calculator-grid {
    gap: 20px;
  }

  .calculator-modal-header h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .calculator-modal-overlay {
    padding: 10px;
  }

  .calculator-modal {
    max-height: 95vh;
  }

  .calculator-modal-header {
    padding: 20px;
  }

  .calculator-modal-header h2 {
    font-size: 1.2rem;
  }

  .calculator-modal .calculator-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .calculator-tabs {
    padding: 15px 15px 0;
    gap: 6px;
  }

  .calculator-tab-btn {
    flex: 1;
    min-width: 100px;
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .calculator-body {
    padding: 20px;
  }

  .calculator-modal .input-section,
  .calculator-modal .results-section {
    padding: 20px;
  }

  .calculator-modal .summary-grid {
    grid-template-columns: 1fr;
  }

  .calculator-modal .chart-container {
    height: 240px;
  }

  .calculator-modal .risk-indicators {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .calculator-modal-overlay {
    padding: 0;
    align-items: stretch;
  }

  .calculator-modal {
    max-height: 100vh;
    border-radius: 0;
  }

  .calculator-modal-header {
    padding: 16px;
  }

  .calculator-modal-header h2 {
    font-size: 1.1rem;
  }

  .calculator-modal-close {
    font-size: 24px;
    width: 40px;
    height: 40px;
  }

  .calculator-tabs {
    padding: 12px 12px 0;
    gap: 5px;
  }

  .calculator-tab-btn {
    min-width: 75px;
    padding: 10px 10px;
    font-size: 0.8rem;
  }

  .calculator-body {
    padding: 16px;
  }

  .calculator-modal .input-section,
  .calculator-modal .results-section {
    padding: 16px;
  }

  .calculator-modal .input-section h3,
  .calculator-modal .results-section h3 {
    font-size: 1.1rem;
  }

  .calculator-modal .summary-item p {
    font-size: 1.3rem;
  }

  .calculator-modal .chart-container {
    height: 200px;
    padding: 16px;
  }

  .calculator-modal th,
  .calculator-modal td {
    padding: 8px;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   Mobile Bottom Tab Navigation (BMO-style)
   - Visible on tablet and below (991px and under)
   - Fixed to bottom of screen
   - Four tabs: Home, Move Money, Transactions, More
   ========================================================================== */

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
}

/* Show bottom nav on tablet and below */
@media (max-width: 991px) {
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
  }

  /* Add padding to body/footer to account for bottom nav */
  body.modern-dashboard-page.modern-dashboard-e3 {
    padding-bottom: 80px;
  }

  body.modern-dashboard-page.modern-dashboard-e3 .contact-footer {
    padding-bottom: 80px;
  }

  /* Hide the hamburger button in top bar when bottom nav is visible */
  body.modern-dashboard-page.modern-dashboard-e3 .hamburger,
  body.modern-dashboard-page.modern-dashboard-e3 .top-bar .hamburger,
  body.modern-dashboard-page.modern-dashboard-e3 #hamburgerBtn {
    display: none !important;
  }
}

.mobile-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 8px;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
  min-height: 60px;
}

.mobile-bottom-nav-item:hover {
  background: rgba(27, 104, 117, 0.05);
}

.mobile-bottom-nav-item:focus {
  outline: none;
}

.mobile-bottom-nav-item:focus-visible {
  outline: 2px solid #1b6875;
  outline-offset: -2px;
  border-radius: 4px;
}

/* Icon styling - default gray color */
.mobile-bottom-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #b1b1b1;
  transition: color 0.15s ease, transform 0.15s ease;
}

.mobile-bottom-nav-item:hover .mobile-bottom-nav-icon {
  transform: translateY(-1px);
}

.mobile-bottom-nav-item.active .mobile-bottom-nav-icon {
  color: #1b6875;
}

/* Label styling */
.mobile-bottom-nav-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #627381;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.2;
}

.mobile-bottom-nav-item.active .mobile-bottom-nav-label {
  color: #1b6875;
}

/* Active state indicator */
.mobile-bottom-nav-item.active {
  position: relative;
}

.mobile-bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: #1b6875;
  border-radius: 0 0 3px 3px;
}

/* More button specific styling */
.mobile-bottom-nav-more {
  font-family: inherit;
}

/* Ensure mobile nav panel doesn't get hidden behind bottom nav */
@media (max-width: 991px) {
  body.modern-dashboard-page.modern-dashboard-e3 .mobile-nav {
    padding-bottom: 100px;
  }

  /* Additional hamburger hiding - catch any remaining instances */
  .hamburger {
    display: none !important;
  }
  
  #hamburgerBtn {
    display: none !important;
  }
}

/* Responsive adjustments for smaller phones */
@media (max-width: 380px) {
  .mobile-bottom-nav-icon {
    font-size: 1.2rem;
  }

  .mobile-bottom-nav-label {
    font-size: 0.65rem;
  }

  .mobile-bottom-nav-item {
    padding: 8px 4px;
    min-height: 54px;
  }
}
