/* ===================================
       CSS CUSTOM PROPERTIES
       Prefix convention: --mh-*
       Prevents collisions with any host-
       page CSS variables.
    =================================== */
:root {
  --mh-primary: #0d0e42;
  --mh-secondary: #f26720;
  --tblr-primary: #0d0e42;
  --tblr-primary-rgb: 13, 14, 66;
  --tblr-btn-hover-bg: #0d0e42;

  /* --- Green palette --- */
  --mh-green-lightest: #edfaf0;
  --mh-green-light: #c8f0d4;
  --mh-green-mid: #82d4a0;
  --mh-green-deep: #2e9b5f;
  --mh-green-text: #1a5c3a;

  /* --- Brand accent --- */
  --mh-blue: #4361ee;
  --mh-purple: #7c3aed;
  --mh-gradient-cta: linear-gradient(135deg, #4361ee 0%, #7c3aed 100%);

  /* --- Neutral surfaces --- */
  --mh-gray-bg: #f4f5f7;
  --mh-card-bg: #ffffff;
  --mh-border: #e2e5ec;
  --mh-border-focus: #4361ee;

  /* --- Red accent --- */
  --mh-red: #e53e3e;
  --mh-red-light: #fff5f5;
  --mh-red-border: #fc8181;

  /* --- Typography colors --- */
  --mh-text-primary: #1a1d27;
  --mh-text-secondary: #5a607a;
  --mh-text-muted: #9198b0;

  /* --- Alert -- */
  --card-bg: #ffffff;

  --shadow-sm: 0 1px 2px rgba(13, 14, 66, 0.05);
  --shadow-md:
    0 4px 24px rgba(13, 14, 66, 0.09), 0 1px 3px rgba(13, 14, 66, 0.05);
  --shadow-lg:
    0 8px 40px rgba(13, 14, 66, 0.13), 0 2px 6px rgba(13, 14, 66, 0.06);
  --shadow-btn: 0 3px 12px rgba(242, 103, 32, 0.38);

  /* --- Shape tokens --- */
  --mh-radius-card: 4px;
  --mh-radius-input: 10px;
  --mh-radius-btn: 50px;

  /* --- Shadows --- */
  --mh-shadow-card:
    0 8px 40px rgba(60, 70, 120, 0.1), 0 2px 8px rgba(60, 70, 120, 0.06);
  --mh-shadow-btn: 0 4px 18px rgba(67, 97, 238, 0.35);

  /* --- Font stacks --- */
  --mh-font-display:
    "Inter Var", -apple-system, BlinkMacSystemFont, San Francisco, Segoe UI,
    Roboto, Helvetica Neue, sans-serif;
  --mh-font-body:
    "Inter Var", -apple-system, BlinkMacSystemFont, San Francisco, Segoe UI,
    Roboto, Helvetica Neue, sans-serif;
  /* --- Motion --- */
  --mh-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
       SCOPED BOX-SIZING RESET
       Scoped to .mh-auth-page-wrapper so the
       reset doesn't bleed to host page.
    =================================== */
.mh-auth-page-wrapper *,
.mh-auth-page-wrapper *::before,
.mh-auth-page-wrapper *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===================================
       PAGE WRAPPER — TWO-COLUMN SPLIT
    =================================== */
.mh-auth-page-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  font-family: var(--mh-font-body);
  color: var(--mh-text-primary);
  -webkit-font-smoothing: antialiased;
}

/* Scoped link styles */
.mh-auth-page-wrapper a {
  color: var(--mh-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--mh-transition);
}
.mh-auth-page-wrapper a:hover {
  color: var(--mh-purple);
}

/* ===================================
       LEFT — MARKETING PANEL
    =================================== */
.mh-marketing-panel {
  background: linear-gradient(
    145deg,
    var(--mh-primary) 0%,
    var(--mh-primary) 40%,
    var(--mh-primary) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}

/* Decorative blobs */
.mh-marketing-panel::before,
.mh-marketing-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
}
.mh-marketing-panel::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--mh-secondary) 0%, transparent 70%);
  top: -120px;
  right: -100px;
}
.mh-marketing-panel::after {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--mh-secondary) 0%, transparent 70%);
  bottom: -80px;
  left: -60px;
}

.mh-marketing-inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
  text-align: center;
}

/* --- Dashboard Illustration --- */
.mh-illustration-wrap {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.mh-illustration-svg {
  width: 100%;
  max-width: 360px;
  filter: drop-shadow(0 12px 32px rgba(30, 120, 70, 0.18));
  border-radius: 16px;
  animation: mh-float 5s ease-in-out infinite; /* namespaced keyframe */
}

/* Keyframe: namespaced with mh- prefix */
@keyframes mh-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* --- Marketing copy --- */
.mh-marketing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mh-secondary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.mh-marketing-badge svg {
  flex-shrink: 0;
}

.mh-marketing-heading {
  font-family: var(--mh-font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 16px;
}

.mh-marketing-desc {
  font-size: 0.95rem;
  color: var(--mh-text-muted);
  line-height: 1.7;
}

/* --- Feature pills --- */
.mh-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
  list-style: none;
}
.mh-feature-list li {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  color: var(--mh-green-text);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===================================
       RIGHT — LOGIN PANEL
    =================================== */
.mh-login-panel {
  background: var(--mh-gray-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

/* --- Card --- */
.mh-login-card {
  background: var(--mh-card-bg);
  padding: 44px 40px 36px;
  width: 100%;
  max-width: 480px;
  animation: mh-slide-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; /* namespaced */
}

/* Keyframe: namespaced with mh- prefix */
@keyframes mh-slide-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Logo --- */
.mh-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 28px;
}
.mh-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--mh-gradient-cta);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mh-logo-text {
  font-family: var(--mh-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--mh-text-primary);
  letter-spacing: -0.02em;
}
.mh-logo-text span {
  color: var(--mh-blue);
}

/* --- Card heading --- */
.mh-card-title {
  font-family: var(--mh-font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--mh-text-primary);
  margin-bottom: 6px;
}
.mh-card-subtitle {
  font-size: 0.875rem;
  color: var(--mh-text-muted);
  margin-bottom: 28px;
}

/* --- Form group --- */
.mh-form-group {
  margin-bottom: 18px;
}

.mh-form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mh-text-secondary);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}

/* Input wrapper with icon */
.mh-input-wrapper {
  position: relative;
}

.mh-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mh-text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.mh-form-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-family: var(--mh-font-body);
  font-size: 0.9rem;
  color: var(--mh-text-primary);
  background: #f8f9fb;
  border: 1.5px solid var(--mh-border);
  border-radius: var(--mh-radius-input);
  outline: none;
  transition:
    border-color var(--mh-transition),
    box-shadow var(--mh-transition),
    background var(--mh-transition);
}
.mh-form-input::placeholder {
  color: var(--mh-text-muted);
}
.mh-form-input:focus {
  border-color: var(--mh-border-focus);
  background: #fff;
  box-shadow: 0 0 0 3.5px rgba(67, 97, 238, 0.12);
}

/* --- Password strength meter --- */
.mh-strength-wrap {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mh-strength-bars {
  display: flex;
  gap: 4px;
  flex: 1;
}
.mh-strength-bar {
  height: 4px;
  flex: 1;
  border-radius: 4px;
  background: var(--mh-border);
  transition: background 0.3s ease;
}
/* Strength states via sibling data-strength on .mh-strength-wrap */
.mh-strength-wrap[data-strength="1"] .mh-strength-bar:nth-child(1) {
  background: var(--mh-red);
}
.mh-strength-wrap[data-strength="2"] .mh-strength-bar:nth-child(-n + 2) {
  background: #f6ad55;
}
.mh-strength-wrap[data-strength="3"] .mh-strength-bar:nth-child(-n + 3) {
  background: #68d391;
}
.mh-strength-wrap[data-strength="4"] .mh-strength-bar {
  background: var(--mh-green-deep);
}

.mh-strength-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mh-text-muted);
  white-space: nowrap;
  min-width: 44px;
  text-align: right;
}

/* Confirm password match indicator */
.mh-confirm-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.mh-confirm-hint.visible {
  opacity: 1;
}
.mh-confirm-hint.match {
  color: var(--mh-green-deep, #38a169);
}
.mh-confirm-hint.no-match {
  color: var(--mh-red, #e53e3e);
}
.mh-confirm-hint svg {
  flex-shrink: 0;
}

/* --- Row: checkbox + forgot link --- */
.mh-form-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 8px;
}

.mh-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--mh-text-secondary);
  cursor: pointer;
  user-select: none;
}

/* Custom checkbox */
.mh-checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--mh-border);
  border-radius: 5px;
  background: #f8f9fb;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition:
    border-color var(--mh-transition),
    background var(--mh-transition);
}
.mh-checkbox-label input[type="checkbox"]:checked {
  background: var(--mh-blue);
  border-color: var(--mh-blue);
}
.mh-checkbox-label input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.5px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.mh-forgot-link {
  font-size: 0.83rem;
  white-space: nowrap;
}

/* --- Primary CTA button --- */
.mh-btn-primary {
  display: block;
  width: 100%;
  padding: 13px 24px;
  font-family: var(--mh-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--mh-gradient-cta);
  border: none;
  border-radius: var(--mh-radius-btn);
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: var(--mh-shadow-btn);
  transition:
    filter var(--mh-transition),
    box-shadow var(--mh-transition),
    transform var(--mh-transition);
}
.mh-btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 24px rgba(67, 97, 238, 0.45);
  transform: translateY(-1px);
}
.mh-btn-primary:active {
  filter: brightness(0.96);
  transform: translateY(0);
}

/* --- Divider --- */
.mh-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--mh-text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mh-divider::before,
.mh-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--mh-border);
}

/* --- Google button --- */
.mh-btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 24px;
  font-family: var(--mh-font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mh-text-primary);
  background: #fff;
  border: 1.5px solid var(--mh-border);
  border-radius: var(--mh-radius-btn);
  cursor: pointer;
  transition:
    background var(--mh-transition),
    border-color var(--mh-transition),
    box-shadow var(--mh-transition),
    transform var(--mh-transition);
}
.mh-btn-google:hover {
  background: #f8f9ff;
  border-color: #c5cadc;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}
.mh-btn-google:active {
  transform: translateY(0);
}

/* --- Sign up prompt --- */
.mh-signup-prompt {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--mh-text-muted);
}

/* --- Footer footnote --- */
.mh-card-footnote {
  margin-top: 28px;
  font-size: 0.76rem;
  color: var(--mh-text-muted);
  text-align: center;
  max-width: 360px;
  line-height: 1.6;
}
.mh-card-footnote a {
  font-size: inherit;
  font-weight: 400;
}

/* ===================================
       RESPONSIVE — MOBILE (stacked)
    =================================== */
@media (max-width: 768px) {
  .mh-auth-page-wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  /* Form first on mobile, marketing panel below */
  .mh-login-panel {
    order: 1;
    padding: 40px 16px;
  }
  .mh-marketing-panel {
    order: 2;
    padding: 48px 24px;
  }

  .mh-login-card {
    padding: 36px 24px 28px;
  }
  .mh-marketing-inner {
    max-width: 100%;
  }
  .mh-illustration-svg {
    max-width: 280px;
  }
}

@media (max-width: 400px) {
  .mh-login-card {
    padding: 28px 18px 22px;
  }
  .mh-form-footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ===================================
       SIGNUP FORM
    =================================== */

/* Form Sections
      Visual grouping with labelled heading
      and a top divider between sections.
    */

.mh-form-section + .mh-form-section {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1.5px solid var(--mh-border);
}

.mh-form-section-title {
  font-family: var(--mh-font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mh-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 14px;
}

/* ===================================
   TWO-COLUMN NAME ROW
   Grid wrapper for First Name +
   Last Name fields side by side.
=================================== */
.mh-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ===================================
   REQUIRED ASTERISK
   Red star appended to required labels.
=================================== */
.mh-required {
  color: var(--mh-red);
  font-size: 0.75rem;
  line-height: 1;
}

/* ===================================
   INPUT ACTION ICON (eye / reveal)
   Positioned at the right edge of
   password inputs.
=================================== */
.mh-input-action {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mh-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 4px;
  transition: color var(--mh-transition);
}
.mh-input-action:hover {
  color: var(--mh-blue);
}

/* ===================================
   INPUT MODIFIERS
   Extend .mh-form-input from login.css.
=================================== */

/* Extra right padding when an action icon is present */
.mh-form-input--has-action {
  padding-right: 42px;
}

/* Remove left padding when there is no leading icon
   (used for First Name and Last Name fields) */
.mh-form-input--no-icon {
  padding-left: 14px;
}

/* ===================================
       SELECT BOX
       Hides native arrow; uses custom SVG
       chevron via .mh-select-arrow.
    =================================== */
.mh-form-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 36px;
}
.mh-form-select:invalid,
.mh-form-select option[value=""] {
  color: var(--mh-text-muted);
}
.mh-form-select option {
  color: var(--mh-text-primary);
}

.mh-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  color: var(--mh-text-muted);
}

/* ===================================
       DATE INPUT
    =================================== */
.mh-form-input--date {
  color-scheme: light;
}
.mh-form-input--date::-webkit-calendar-picker-indicator {
  opacity: 0.5;
  cursor: pointer;
}

/* ===================================
   PASSWORD STRENGTH METER
=================================== */
.mh-strength-wrap {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mh-strength-bars {
  display: flex;
  gap: 4px;
  flex: 1;
}

.mh-strength-bar {
  height: 4px;
  flex: 1;
  border-radius: 4px;
  background: var(--mh-border);
  transition: background 0.3s ease;
}

/* Strength level states — driven by data-strength attribute
   set by JS: <div class="mh-strength-wrap" data-strength="2"> */
.mh-strength-wrap[data-strength="1"] .mh-strength-bar:nth-child(1) {
  background: var(--mh-red);
}
.mh-strength-wrap[data-strength="2"] .mh-strength-bar:nth-child(-n + 2) {
  background: #f6ad55;
}
.mh-strength-wrap[data-strength="3"] .mh-strength-bar:nth-child(-n + 3) {
  background: #68d391;
}
.mh-strength-wrap[data-strength="4"] .mh-strength-bar {
  background: var(--mh-green-deep);
}

.mh-strength-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mh-text-muted);
  white-space: nowrap;
  min-width: 44px;
  text-align: right;
}

/* ===================================
      PAGE STYLES
  =================================== */
/* ════════════════════════════════════════════
   PAGE HEADER
════════════════════════════════════════════ */
.cart-count-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 18px;
  height: 18px;
  background-color: var(--mh-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 13px;
  border-radius: 50%;
}

.navbar .navbar-nav .nav-link {
  font-weight: 600;
}

.nav-link-icon {
  color: #202326;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:hover .nav-link-icon,
.navbar .navbar-nav li.nav-item.active .nav-link,
.navbar .navbar-nav li.nav-item.active .nav-link .nav-link-icon {
  color: var(--mh-secondary);
}

.navbar .navbar-nav li.nav-item.active:after {
  border-color: var(--mh-secondary);
}

.nav-item .avatar {
  border-radius: 50%;
}

.mh-page-header {
  margin: 32px 0 20px;
  animation: fadeUp 0.4s ease both;
}

.mh-page-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 5px;
}

.mh-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
}
.mh-breadcrumb a {
  color: var(--mh-secondary);
  font-weight: 700;
  transition: opacity var(--transition);
}
.mh-breadcrumb a:hover {
  opacity: 0.75;
}
.mh-breadcrumb .sep {
  font-size: 9px;
  color: var(--text-lighter);
}

/* ── Welcome Hero ── */
.hero-banner {
  background: var(--mh-primary);
  border-radius: var(--mh-radius-card);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
}
.hero-banner::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(
    circle,
    rgba(67, 97, 238, 0.35) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.hero-banner::after {
  content: "";
  position: absolute;
  right: 160px;
  bottom: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.25) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.hero-left {
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(67, 97, 238, 0.25);
  border: 1px solid rgba(67, 97, 238, 0.4);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}
.hero-tag svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}
.hero-title {
  font-size: 24px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.hero-title span {
  color: var(--mh-secondary);
}
.hero-sub {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  max-width: 420px;
}
.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: var(--mh-radius-btn);
  font-family: var(--mh-font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--mh-transition);
}
.hero-btn-primary {
  background: var(--mh-gradient-cta);
  color: white;
  box-shadow: 0 4px 18px rgba(67, 97, 238, 0.45);
}
.hero-btn-primary:hover {
  transform: translateY(-2px);
}
.hero-btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}
.hero-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

.hero-stats {
  display: flex;
  gap: 24px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.hero-stat {
  text-align: center;
}
.hero-stat-val {
  font-size: 28px;
  font-weight: 800;
  color: white;
  letter-spacing: -1px;
}
.hero-stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  margin-top: 2px;
}
.hero-stat-div {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  align-self: stretch;
}

.mh-page-banner h2 {
  font-size: 36px;
  line-height: 1.2;
}

/* ════════════════════════════════════════════
   ALERTS
════════════════════════════════════════════ */
.alerts-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alert-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--mh-radius-card);
  animation: fadeUp 0.4s ease both;
}

.alert-warning {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  box-shadow: 0 2px 12px rgba(217, 119, 6, 0.1);
}
.alert-danger {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  box-shadow: 0 2px 12px rgba(242, 103, 32, 0.12);
}

.alert-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.alert-warning .alert-icon-wrap {
  background: rgba(217, 119, 6, 0.14);
  color: var(--mh-text-primary);
}
.alert-danger .alert-icon-wrap {
  background: rgba(242, 103, 32, 0.14);
  color: var(--mh-secondary);
}
.alert-icon-wrap i {
  font-size: 14px;
}

.alert-body {
  flex: 1;
}
.alert-title {
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 2px;
}
.alert-msg {
  color: var(--mh-text-primary);
  font-size: 12.5px;
  line-height: 1.45;
}
.alert-msg a {
  color: var(--secondary);
  font-weight: 700;
}

.alert-close {
  background: none;
  color: var(--mh-text-primary);
  border: none;
  font-size: 14px;
  padding: 3px 5px;
  border-radius: 6px;
  transition: all var(--transition);
  flex-shrink: 0;
  margin-top: 1px;
}
.alert-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-muted);
}

/* ════════════════════════════════════════════
   STATS GRID
════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
  background: var(--tblr-bg-surface);
  border-radius: var(--mh-radius-card);
  padding: 20px 22px 18px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  animation: fadeUp 0.45s ease both;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--mh-radius-card) var(--mh-radius-card) 0 0;
  transition: height 0.25s ease;
}

/* Expand the top border on hover */
.stat-card:hover::before {
  height: 5px;
}

.stat-blue::before {
  background: linear-gradient(90deg, #4361ee, var(--mh-purple));
}
.stat-green::before {
  background: linear-gradient(90deg, var(--mh-green-deep), #4ade80);
}
.stat-red::before {
  background: linear-gradient(90deg, var(--mh-red), #f87171);
}
.stat-orange::before {
  background: linear-gradient(90deg, var(--mh-secondary), #f9a55a);
}

.stat-icon {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-blue .stat-icon {
  background: rgba(67, 97, 238, 0.1);
  color: #4361ee;
}
.stat-green .stat-icon {
  background: var(--mh-green-light);
  color: var(--mh-green-deep);
}
.stat-red .stat-icon {
  background: var(--mh-red-light);
  color: var(--mh-red);
}
.stat-orange .stat-icon {
  background: #fff3eb;
  color: var(--mh-secondary);
}

.stat-number {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1;
  color: var(--text-dark);
  margin-bottom: 5px;
  margin-top: 4px;
}
.stat-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
}
.stat-sub {
  font-size: 11px;
  color: var(--text-lighter);
  margin-top: 3px;
}

.stat-red .stat-number {
  color: var(--red);
}

/* ════════════════════════════════════════════
   SECTION HEADER
════════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 0;
  padding: 0;
}

.section-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mh-secondary);
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-link:hover {
  opacity: 0.72;
}

/* ════════════════════════════════════════════
   SERVICES CARD
════════════════════════════════════════════ */
.services-card {
  background: var(--tblr-bg-surface);
  border-radius: var(--mh-radius-card);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  animation: fadeUp 0.45s 0.12s ease both;
}

.services-card-header {
  padding: 17px 22px 15px;
  border-bottom: 1px solid var(--tblr-border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.services-table-head {
  display: grid;
  grid-template-columns: 2.2fr 1.8fr 1fr 1fr 100px;
  padding: 9px 22px;
  background: var(--tblr-bg-surface);
  border-bottom: 1px solid var(--tblr-border-color);
}

.table-head-cell {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.service-row {
  display: grid;
  grid-template-columns: 2.2fr 1.8fr 1fr 1fr 100px;
  align-items: center;
  padding: 13px 22px;
  gap: 12px;
  border-bottom: 1px solid var(--tblr-border-color);
  transition: background var(--transition);
}
.service-row:last-child {
  border-bottom: none;
}

.service-name-wrap {
  display: flex;
  align-items: center;
  gap: 11px;
}

.service-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.service-name {
  font-size: 13.5px;
  font-weight: 700;
}
.service-plan {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

.service-domain {
  font-size: 12.5px;
  color: #4361ee;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-due {
  font-size: 12.5px;
  color: var(--text-muted);
}
.service-due.soon {
  color: var(--mh-secondary);
  font-weight: 700;
}

/* ════════════════════════════════════════════
   MANAGE DROPDOWN
════════════════════════════════════════════ */
.manage-wrap {
  position: relative;
}

.manage-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--mh-radius-card);
  color: #fff;
  background: var(--mh-primary);
  border: 1.5px solid var(--mh-primary);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.manage-btn:hover {
  background: var(--tblr-bg-surface);
  border-color: var(--mh-primary);
  color: var(--mh-primary);
}
.manage-btn .chevron {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform var(--transition);
}
.manage-btn.open .chevron {
  transform: rotate(180deg);
}

.manage-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: 175px;
  background: var(--tblr-bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--mh-radius-card);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  overflow: hidden;
  display: none;
  animation: dropDown 0.17s ease both;
}
.manage-dropdown.open {
  display: block;
}

@keyframes dropDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.manage-dropdown a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-dark);
  font-weight: 500;
  transition: background var(--transition);
}
.manage-dropdown a:hover {
  background: var(--bg-light);
}
.manage-dropdown a i {
  width: 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}
.manage-dropdown .dd-div {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* Footer */
.mh-footer-payment-gateway {
  display: flex;
  gap: 8px;
}

/* ════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-d1 {
  animation-delay: 0.06s;
}
.anim-d2 {
  animation-delay: 0.12s;
}
.anim-d3 {
  animation-delay: 0.18s;
}
.anim-d4 {
  animation-delay: 0.24s;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

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

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-table-head {
    display: none;
  }
  .service-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 6px;
  }
  .service-domain {
    grid-column: 1;
    font-size: 12px;
  }
  .service-due {
    display: none;
  }
  .manage-wrap {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
  }
}
