/* App shell tweaks for phone + tablet */
@media (max-width: 991px) {
  .sidebar {
    z-index: 1050;
  }

  .content-body {
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-bottom: 88px !important;
  }

  .page-title-content p {
    font-size: 14px;
  }

  .mt5-stat-grid .card {
    margin-bottom: 12px;
  }

  .mt5-stat-grid h3,
  .mt5-stat-grid h4 {
    font-size: 1.15rem;
  }

  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    background: #0c1528;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1100;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-bottom-nav a {
    color: #7a849c;
    text-align: center;
    font-size: 11px;
    text-decoration: none;
    flex: 1;
  }

  .mobile-bottom-nav a.active,
  .mobile-bottom-nav a:hover {
    color: #ffde02;
  }

  .mobile-bottom-nav i {
    display: block;
    font-size: 20px;
    margin-bottom: 2px;
  }
}

@media (min-width: 992px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

.mt5-mock-badge {
  display: inline-block;
  background: #1b3a5f;
  color: #7ec8ff;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  margin-left: 8px;
}

/* Demo / production polish */
.mt5-demo-banner {
  background: linear-gradient(90deg, #0a1628, #13284a);
  border-bottom: 1px solid rgba(255, 222, 2, 0.25);
  color: #e8ecf4;
  font-size: 13px;
}
.mt5-demo-banner__inner {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  flex-wrap: wrap;
}
.mt5-demo-banner__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  white-space: nowrap;
}
.mt5-demo-banner a {
  color: #ffde02;
}
.mt5-demo-banner button {
  background: transparent;
  border: 0;
  color: #9aa6bf;
  cursor: pointer;
}

.mt5-toast-host {
  position: fixed;
  right: 16px;
  bottom: 80px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}
@media (min-width: 992px) {
  .mt5-toast-host { bottom: 24px; }
}
.mt5-toast {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #121c30;
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.mt5-toast--success { border-color: rgba(40, 167, 69, 0.5); }
.mt5-toast--error { border-color: rgba(220, 53, 69, 0.5); }
.mt5-toast button {
  background: transparent;
  border: 0;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
}

.mt5-avatar {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffde02;
  color: #070e20;
  font-weight: 700;
  font-size: 14px;
}
.mt5-avatar img { display: none; }

.mt5-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.mt5-modal {
  width: 100%;
  max-width: 420px;
  margin: 0;
}

.mt5-hero {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255,222,2,0.12), transparent 45%),
    linear-gradient(160deg, #070e20 0%, #101c36 55%, #0a1428 100%);
  color: #f4f7fb;
  min-height: 72vh;
}
.mt5-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: #ffde02;
  margin-bottom: 12px;
}
.mt5-hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.mt5-hero__title span { color: #ffde02; }
.mt5-hero__lead {
  font-size: 1.1rem;
  max-width: 34rem;
  color: #c5cddd;
  margin-bottom: 24px;
}
.mt5-hero__bullets {
  margin-top: 28px;
  padding-left: 1.1rem;
  color: #b7c0d4;
}
.mt5-hero__bullets li { margin-bottom: 8px; }
.mt5-hero__card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px;
}
.mt5-hero__card h3 { margin-bottom: 16px; }
.mt5-hero__card ol { padding-left: 1.2rem; color: #c5cddd; }
.mt5-hero__card li { margin-bottom: 10px; }

.mt5-features { background: #0b1324; color: #e8ecf4; }
.mt5-feature-tile {
  display: block;
  height: 100%;
  padding: 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.mt5-feature-tile:hover {
  border-color: rgba(255,222,2,0.45);
  color: inherit;
  transform: translateY(-2px);
}
.mt5-feature-tile p {
  margin: 0;
  color: #9aa6bf;
  font-size: 14px;
}

.mt5-landing-header .ex-brand,
.mt5-landing-footer .ex-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}
.mt5-landing-header .ex-brand span,
.mt5-landing-footer .ex-brand span,
.ex-brand span {
  color: #ffde02;
}

body:not(.dashboard) .mt5-landing-header.header.landing {
  background: #070e20;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar .sidebar-brand{font-size:13px;font-weight:700;color:#fff;letter-spacing:0.02em;}
.sidebar .sidebar-brand span{color:#ffde02;}

/* Dashboard extras */
.mt5-dash-stat h3 {
  font-size: 1.25rem;
  margin: 4px 0 0;
}
.mt5-dash-stat sub {
  font-size: 0.65em;
  opacity: 0.7;
}
.mt5-tone {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.mt5-tone--ok { background: rgba(40,167,69,0.15); color: #3ddc84; }
.mt5-tone--warn { background: rgba(255,193,7,0.15); color: #ffc107; }
.mt5-tone--danger { background: rgba(220,53,69,0.15); color: #ff6b7a; }
.mt5-tone--idle { background: rgba(255,255,255,0.06); color: #9aa6bf; }

.mt5-metric-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mt5-metric-chips span {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #c5cddd;
}

.mt5-activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mt5-activity-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mt5-activity-list li small {
  grid-column: 1 / -1;
}
.mt5-activity-list li:last-child {
  border-bottom: 0;
}
