/* ============================================================
   MH PORTAL — Client Dashboard Stylesheet
   Prefix: mhp- | Dark theme | Poppins font
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: #0d1117;
  color: #e2e8f0;
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --mhp-green:   #39d98a;
  --mhp-green2:  #2ac97a;
  --mhp-dark:    #0d1117;
  --mhp-card:    #161b27;
  --mhp-card2:   #1c2333;
  --mhp-border:  rgba(255,255,255,0.07);
  --mhp-text:    #e2e8f0;
  --mhp-muted:   #8892a4;
  --mhp-sidebar: 260px;
  --mhp-topbar:  56px;
  --mhp-radius:  12px;
  --mhp-blue:    #3b82f6;
  --mhp-orange:  #f59e0b;
  --mhp-purple:  #8b5cf6;
  --mhp-red:     #ef4444;
}

/* ── Layout ──────────────────────────────────────────────── */
.mhp-layout {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
.mhp-sidebar {
  width: var(--mhp-sidebar);
  min-height: 100vh;
  background: var(--mhp-card);
  border-right: 1px solid var(--mhp-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  overflow-x: hidden;
}

.mhp-sidebar__logo {
  padding: 22px 20px 16px;
  border-bottom: 1px solid var(--mhp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mhp-sidebar__logo-text {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.mhp-sidebar__logo-text em {
  font-style: italic;
  color: var(--mhp-green);
  font-family: 'Georgia', serif;
}
.mhp-sidebar__close {
  display: none;
  color: var(--mhp-muted);
  font-size: 18px;
  padding: 4px;
}

/* Nav groups */
.mhp-sidebar__nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mhp-sidebar__nav-group {
  margin-bottom: 12px;
}
.mhp-sidebar__nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mhp-muted);
  padding: 0 10px 6px;
  display: block;
}
.mhp-sidebar__nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--mhp-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.18s;
  position: relative;
}
.mhp-sidebar__nav-item i { width: 18px; text-align: center; font-size: 15px; flex-shrink: 0; }
.mhp-sidebar__nav-item:hover { background: rgba(255,255,255,0.05); color: var(--mhp-text); }
.mhp-sidebar__nav-item.is-active { background: rgba(57,217,138,0.12); color: var(--mhp-green); }
.mhp-sidebar__nav-item.is-active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 20px;
  background: var(--mhp-green);
  border-radius: 0 3px 3px 0;
}

.mhp-sidebar__badge {
  margin-left: auto;
  background: rgba(255,255,255,0.1);
  color: var(--mhp-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
}
.mhp-sidebar__badge--green {
  background: rgba(57,217,138,0.12);
  color: var(--mhp-green);
}

/* User section at bottom */
.mhp-sidebar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--mhp-border);
  margin-top: auto;
}
.mhp-sidebar__avatar-img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--mhp-green); flex-shrink: 0; }
.mhp-sidebar__user-info { flex: 1; min-width: 0; }
.mhp-sidebar__user-name { display: block; font-size: 13px; font-weight: 600; color: var(--mhp-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mhp-sidebar__user-email { display: block; font-size: 11px; color: var(--mhp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mhp-sidebar__logout {
  color: var(--mhp-muted);
  font-size: 16px;
  padding: 6px;
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
  flex-shrink: 0;
}
.mhp-sidebar__logout:hover { color: var(--mhp-red); background: rgba(239,68,68,0.08); }

/* Overlay (mobile) */
.mhp-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
}

/* ── MAIN CONTENT ─────────────────────────────────────────── */
.mhp-main {
  margin-left: var(--mhp-sidebar);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Mobile top bar */
.mhp-topbar {
  height: var(--mhp-topbar);
  background: var(--mhp-card);
  border-bottom: 1px solid var(--mhp-border);
  display: none;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.mhp-topbar__menu { font-size: 20px; color: var(--mhp-text); padding: 6px; }
.mhp-topbar__title { flex: 1; font-weight: 600; font-size: 15px; }
.mhp-topbar__right { display: flex; align-items: center; gap: 10px; }
.mhp-topbar__icon { color: var(--mhp-muted); font-size: 18px; }
.mhp-topbar__avatar { width: 28px; height: 28px; border-radius: 50%; }

.mhp-content {
  padding: 28px 32px;
  flex: 1;
}

/* ── PAGE HEADER ─────────────────────────────────────────── */
.mhp-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.mhp-page-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.mhp-page-title i { color: var(--mhp-green); font-size: 20px; }
.mhp-page-subtitle { font-size: 14px; color: var(--mhp-muted); margin-top: 4px; }
.mhp-page-header__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.mhp-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  font-family: inherit;
}
.mhp-btn--green { background: var(--mhp-green); color: #0d1117; }
.mhp-btn--green:hover { background: var(--mhp-green2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(57,217,138,.3); }
.mhp-btn--outline { background: transparent; color: var(--mhp-text); border: 1px solid var(--mhp-border); }
.mhp-btn--outline:hover { border-color: var(--mhp-green); color: var(--mhp-green); }
.mhp-btn--ghost { background: rgba(255,255,255,0.05); color: var(--mhp-muted); }
.mhp-btn--ghost:hover { background: rgba(255,255,255,0.1); color: var(--mhp-text); }
.mhp-btn--danger { background: rgba(239,68,68,0.12); color: var(--mhp-red); border: 1px solid rgba(239,68,68,0.2); }
.mhp-btn--danger:hover { background: rgba(239,68,68,0.2); }
.mhp-btn--sm { padding: 7px 14px; font-size: 13px; border-radius: 6px; }

/* ── CARDS ────────────────────────────────────────────────── */
.mhp-card {
  background: var(--mhp-card);
  border: 1px solid var(--mhp-border);
  border-radius: var(--mhp-radius);
  padding: 20px 24px;
}
.mhp-card--accent { border-color: rgba(57,217,138,0.2); }
.mhp-card--info { border-color: rgba(59,130,246,0.15); }
.mhp-card--danger { border-color: rgba(239,68,68,0.2); background: rgba(239,68,68,0.04); }
.mhp-card--form { }
.mhp-card--actions { }
.mhp-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 10px;
}
.mhp-card__title { font-size: 15px; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 8px; }
.mhp-card__title i { color: var(--mhp-green); }
.mhp-card__header-link { font-size: 13px; color: var(--mhp-green); opacity: 0.8; transition: opacity 0.15s; }
.mhp-card__header-link:hover { opacity: 1; }
.mhp-card__header-count { font-size: 12px; color: var(--mhp-muted); }
.mhp-card__desc { font-size: 13px; color: var(--mhp-muted); margin-bottom: 16px; }

/* ── STAT CARDS (dashboard row) ───────────────────────────── */
.mhp-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.mhp-stat-card {
  background: var(--mhp-card);
  border: 1px solid var(--mhp-border);
  border-radius: var(--mhp-radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  transition: border-color 0.2s;
}
.mhp-stat-card:hover { border-color: rgba(57,217,138,0.2); }
.mhp-stat-card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.mhp-stat-card__icon--green  { background: rgba(57,217,138,0.12); color: var(--mhp-green); }
.mhp-stat-card__icon--blue   { background: rgba(59,130,246,0.12); color: var(--mhp-blue); }
.mhp-stat-card__icon--orange { background: rgba(245,158,11,0.12); color: var(--mhp-orange); }
.mhp-stat-card__icon--purple { background: rgba(139,92,246,0.12); color: var(--mhp-purple); }
.mhp-stat-card__icon--muted  { background: rgba(255,255,255,0.05); color: var(--mhp-muted); }
.mhp-stat-card__body { flex: 1; }
.mhp-stat-card__num { display: block; font-size: 26px; font-weight: 700; color: #fff; line-height: 1; }
.mhp-stat-card__label { display: block; font-size: 12px; color: var(--mhp-muted); margin-top: 3px; }
.mhp-stat-card__link {
  position: absolute;
  bottom: 14px; right: 16px;
  font-size: 11px;
  color: var(--mhp-green);
  opacity: 0;
  transition: opacity 0.18s;
}
.mhp-stat-card:hover .mhp-stat-card__link { opacity: 1; }

/* ── DASHBOARD GRID ───────────────────────────────────────── */
.mhp-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.mhp-card--hosting { grid-column: 1 / -1; }

/* ── HOSTING SUMMARY (dashboard card) ────────────────────── */
.mhp-hosting-summary__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.mhp-hosting-summary__name { font-size: 18px; font-weight: 700; color: #fff; }
.mhp-hosting-summary__price { font-size: 15px; font-weight: 600; color: var(--mhp-green); }
.mhp-hosting-summary__domain { font-size: 13px; color: var(--mhp-muted); display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.mhp-hosting-summary__btns { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* ── STORAGE BAR ──────────────────────────────────────────── */
.mhp-storage-bar__track {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.mhp-storage-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mhp-green), var(--mhp-blue));
  border-radius: 3px;
  transition: width 1s ease;
}
.mhp-storage-bar__label { font-size: 12px; color: var(--mhp-muted); margin-top: 6px; display: block; }

/* ── TEMPLATE LIST (dashboard) ────────────────────────────── */
.mhp-template-list { display: flex; flex-direction: column; gap: 10px; }
.mhp-template-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--mhp-border);
}
.mhp-template-item:last-child { border-bottom: none; }
.mhp-template-item__icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.mhp-template-item__info { flex: 1; min-width: 0; }
.mhp-template-item__info strong { display: block; font-size: 14px; color: var(--mhp-text); }
.mhp-template-item__info span { font-size: 12px; color: var(--mhp-muted); }

/* ── TICKET LIST ──────────────────────────────────────────── */
.mhp-ticket-list { display: flex; flex-direction: column; gap: 8px; }
.mhp-ticket-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--mhp-border);
}
.mhp-ticket-item:last-child { border-bottom: none; }
.mhp-ticket-item__id { font-size: 11px; color: var(--mhp-muted); font-weight: 600; flex-shrink: 0; min-width: 68px; }
.mhp-ticket-item__body { flex: 1; min-width: 0; }
.mhp-ticket-item__body strong { display: block; font-size: 13px; color: var(--mhp-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mhp-ticket-item__body span { font-size: 11px; color: var(--mhp-muted); }

/* ── QUICK ACTIONS ────────────────────────────────────────── */
.mhp-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mhp-quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--mhp-border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--mhp-muted);
  text-align: center;
  transition: all 0.18s;
}
.mhp-quick-action i { font-size: 20px; color: var(--mhp-green); }
.mhp-quick-action:hover { background: rgba(57,217,138,0.07); border-color: rgba(57,217,138,0.2); color: var(--mhp-text); }
.mhp-quick-action--danger i { color: var(--mhp-red); }
.mhp-quick-action--danger:hover { background: rgba(239,68,68,0.07); border-color: rgba(239,68,68,0.2); }

/* ── BADGES ───────────────────────────────────────────────── */
.mhp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.mhp-badge--green  { background: rgba(57,217,138,0.12); color: var(--mhp-green); }
.mhp-badge--orange { background: rgba(245,158,11,0.12); color: var(--mhp-orange); }
.mhp-badge--muted  { background: rgba(255,255,255,0.06); color: var(--mhp-muted); }
.mhp-badge--lg { font-size: 13px; padding: 5px 12px; }
.mhp-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: mhp-pulse 2s infinite; }
@keyframes mhp-pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ── ALERTS ───────────────────────────────────────────────── */
.mhp-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}
.mhp-alert--success { background: rgba(57,217,138,0.1); color: var(--mhp-green); border: 1px solid rgba(57,217,138,0.2); }
.mhp-alert--error   { background: rgba(239,68,68,0.1); color: var(--mhp-red); border: 1px solid rgba(239,68,68,0.2); }

/* ── FORMS ────────────────────────────────────────────────── */
.mhp-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.mhp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mhp-form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--mhp-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mhp-form-label__link { font-weight: 400; font-size: 12px; color: var(--mhp-green); }
.mhp-form-label__link:hover { text-decoration: underline; }
.mhp-form-optional { font-size: 11px; color: var(--mhp-muted); font-weight: 400; }
.mhp-required { color: var(--mhp-red); }
.mhp-form-input-wrap { position: relative; display: flex; align-items: center; }
.mhp-form-icon { position: absolute; left: 14px; color: var(--mhp-muted); font-size: 14px; pointer-events: none; }
.mhp-form-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--mhp-border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--mhp-text);
  font-family: inherit;
  transition: border-color 0.18s, background 0.18s;
  outline: none;
}
.mhp-form-input-wrap .mhp-form-input { padding-left: 40px; }
.mhp-form-eye {
  position: absolute; right: 12px;
  color: var(--mhp-muted); font-size: 14px;
  padding: 4px; background: none; border: none; cursor: pointer;
}
.mhp-form-eye:hover { color: var(--mhp-text); }
.mhp-form-input:focus { border-color: var(--mhp-green); background: rgba(57,217,138,0.04); }
.mhp-form-input::placeholder { color: rgba(136,146,164,0.6); }
.mhp-form-select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%238892a4'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.mhp-form-textarea { resize: vertical; min-height: 120px; }
.mhp-form-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mhp-muted); margin-bottom: 16px; }
.mhp-form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--mhp-green); cursor: pointer; flex-shrink: 0; }
.mhp-form-check a { color: var(--mhp-green); }
.mhp-form-actions { display: flex; gap: 12px; align-items: center; }
.mhp-password-strength { height: 4px; border-radius: 2px; background: var(--mhp-border); margin-top: 6px; overflow: hidden; }

/* File drop */
.mhp-file-drop {
  border: 2px dashed var(--mhp-border);
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  color: var(--mhp-muted);
  font-size: 13px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.18s;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.mhp-file-drop i { font-size: 28px; color: var(--mhp-muted); }
.mhp-file-drop strong { color: var(--mhp-text); }
.mhp-file-drop:hover { border-color: var(--mhp-green); }

/* ── TEMPLATES GRID ───────────────────────────────────────── */
.mhp-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.mhp-tpl-card {
  background: var(--mhp-card);
  border: 1px solid var(--mhp-border);
  border-radius: var(--mhp-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.mhp-tpl-card:hover { border-color: rgba(57,217,138,0.25); transform: translateY(-3px); }
.mhp-tpl-card__thumb {
  height: 110px;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--mhp-border);
}
.mhp-tpl-card__icon { font-size: 52px; }
.mhp-tpl-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.mhp-tpl-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mhp-tpl-card__name { font-size: 15px; font-weight: 700; color: #fff; }
.mhp-tpl-card__meta { display: flex; gap: 6px; flex-wrap: wrap; }
.mhp-tpl-card__format, .mhp-tpl-card__niche, .mhp-tpl-card__version {
  font-size: 11px; color: var(--mhp-muted);
  background: rgba(255,255,255,0.05);
  padding: 2px 7px; border-radius: 4px;
}
.mhp-tpl-card__license { font-size: 12px; color: var(--mhp-muted); display: flex; align-items: center; gap: 6px; }
.mhp-tpl-card__date { font-size: 12px; color: var(--mhp-muted); display: flex; align-items: center; gap: 6px; }
.mhp-tpl-card__footer { padding: 12px 16px; border-top: 1px solid var(--mhp-border); display: flex; gap: 8px; flex-wrap: wrap; }

/* ── HOSTING CARD (full page) ─────────────────────────────── */
.mhp-hosting-card {
  background: var(--mhp-card);
  border: 1px solid rgba(57,217,138,0.18);
  border-radius: var(--mhp-radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.mhp-hosting-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  background: rgba(57,217,138,0.04);
  border-bottom: 1px solid var(--mhp-border);
}
.mhp-hosting-card__icon {
  width: 52px; height: 52px;
  background: rgba(57,217,138,0.12);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--mhp-green);
  flex-shrink: 0;
}
.mhp-hosting-card__info { flex: 1; }
.mhp-hosting-card__name { font-size: 20px; font-weight: 700; color: #fff; margin: 0 0 3px; }
.mhp-hosting-card__type { font-size: 13px; color: var(--mhp-muted); }
.mhp-hosting-card__right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.mhp-hosting-card__price { font-size: 15px; font-weight: 600; color: var(--mhp-green); }
.mhp-hosting-card__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 24px 28px;
}
.mhp-hosting-stat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 20px 0 0;
  border-right: 1px solid var(--mhp-border);
}
.mhp-hosting-stat:last-child { border-right: none; padding-right: 0; padding-left: 20px; }
.mhp-hosting-stat:first-child { padding-left: 0; }
.mhp-hosting-stat i { font-size: 18px; color: var(--mhp-muted); margin-top: 3px; flex-shrink: 0; }
.mhp-hosting-stat__label { display: block; font-size: 11px; color: var(--mhp-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.mhp-hosting-stat__val { display: block; font-size: 15px; font-weight: 600; color: var(--mhp-text); }
.mhp-hosting-stat__sub { display: block; font-size: 11px; color: var(--mhp-muted); }
.mhp-hosting-stat--storage { grid-column: span 2; }
.mhp-hosting-card__actions {
  display: flex;
  gap: 10px;
  padding: 0 28px 20px;
  flex-wrap: wrap;
}
.mhp-hosting-card__quick-links {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  border-top: 1px solid var(--mhp-border);
  background: rgba(255,255,255,0.02);
  flex-wrap: wrap;
}
.mhp-hosting-card__quick-label { font-size: 12px; color: var(--mhp-muted); font-weight: 600; }
.mhp-hosting-card__quick-links a { font-size: 13px; color: var(--mhp-muted); display: flex; align-items: center; gap: 6px; transition: color 0.15s; }
.mhp-hosting-card__quick-links a:hover { color: var(--mhp-green); }

/* ── UPSELL CARD ──────────────────────────────────────────── */
.mhp-upsell-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(57,217,138,0.08) 0%, rgba(13,17,23,0) 100%);
  border: 1px solid rgba(57,217,138,0.18);
  border-radius: var(--mhp-radius);
  padding: 24px 28px;
  flex-wrap: wrap;
}
.mhp-upsell-card__icon { font-size: 36px; color: var(--mhp-green); }
.mhp-upsell-card__body { flex: 1; }
.mhp-upsell-card__body h3 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.mhp-upsell-card__body p { font-size: 14px; color: var(--mhp-muted); }

/* ── SUPPORT GRID ─────────────────────────────────────────── */
.mhp-support-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.mhp-support-side { display: flex; flex-direction: column; gap: 16px; }
.mhp-contact-options { display: flex; flex-direction: column; gap: 12px; }
.mhp-contact-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--mhp-border); }
.mhp-contact-item:last-child { border-bottom: none; }
.mhp-contact-item__icon { width: 34px; height: 34px; border-radius: 8px; background: rgba(57,217,138,0.1); color: var(--mhp-green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mhp-contact-item strong { display: block; font-size: 13px; font-weight: 600; color: var(--mhp-text); }
.mhp-contact-item span { display: block; font-size: 14px; color: var(--mhp-green); font-weight: 600; }
.mhp-contact-item small { display: block; font-size: 11px; color: var(--mhp-muted); }

/* ── BILLING ──────────────────────────────────────────────── */
.mhp-billing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mhp-plan-summary__main { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mhp-plan-summary__name { font-size: 18px; font-weight: 700; color: #fff; }
.mhp-plan-summary__detail { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 14px; color: var(--mhp-muted); }
.mhp-plan-summary__price { font-size: 16px; font-weight: 700; color: var(--mhp-green); }
.mhp-payment-card {
  background: linear-gradient(135deg, #1c2333 0%, #0d1117 100%);
  border: 1px solid rgba(57,217,138,0.2);
  border-radius: 14px;
  padding: 22px 24px;
  position: relative;
  margin-bottom: 14px;
  min-height: 120px;
}
.mhp-payment-card__chip { width: 36px; height: 28px; background: linear-gradient(135deg, #d4a017, #f5d567); border-radius: 5px; margin-bottom: 18px; }
.mhp-payment-card__number { font-size: 16px; font-weight: 600; letter-spacing: 3px; color: #fff; margin-bottom: 14px; }
.mhp-payment-card__meta { display: flex; gap: 20px; font-size: 12px; color: var(--mhp-muted); }
.mhp-payment-card__logo { position: absolute; top: 18px; right: 18px; }
.mhp-payment-note { font-size: 12px; color: var(--mhp-muted); display: flex; align-items: flex-start; gap: 6px; }
.mhp-billing-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.mhp-billing-summary__item {
  background: var(--mhp-card);
  border: 1px solid var(--mhp-border);
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mhp-billing-summary__item span { font-size: 13px; color: var(--mhp-muted); }
.mhp-billing-summary__item strong { font-size: 16px; font-weight: 700; color: var(--mhp-green); }

/* ── TABLE ────────────────────────────────────────────────── */
.mhp-table-wrap { overflow-x: auto; }
.mhp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mhp-table th { padding: 10px 12px; text-align: left; font-size: 11px; font-weight: 700; color: var(--mhp-muted); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--mhp-border); white-space: nowrap; }
.mhp-table td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--mhp-text); }
.mhp-table tr:last-child td { border-bottom: none; }
.mhp-table tr:hover td { background: rgba(255,255,255,0.02); }
.mhp-table__id { font-family: monospace; font-size: 12px; color: var(--mhp-muted); }
.mhp-table__amount { font-weight: 600; }

/* ── ACCOUNT GRID ─────────────────────────────────────────── */
.mhp-account-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.mhp-avatar-card {
  background: var(--mhp-card);
  border: 1px solid var(--mhp-border);
  border-radius: var(--mhp-radius);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mhp-avatar-card__img { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--mhp-green); margin-bottom: 8px; }
.mhp-avatar-card__name { font-size: 16px; font-weight: 700; color: #fff; }
.mhp-avatar-card__email { font-size: 13px; color: var(--mhp-muted); }
.mhp-avatar-card__note { font-size: 11px; color: var(--mhp-muted); margin-top: 8px; }
.mhp-avatar-card__note a { color: var(--mhp-green); }

/* ── MISC ─────────────────────────────────────────────────── */
.mhp-info-list { display: flex; flex-direction: column; gap: 10px; }
.mhp-info-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--mhp-muted); }
.mhp-info-item i { color: var(--mhp-green); flex-shrink: 0; }
.mhp-icon--red { color: var(--mhp-red) !important; }
.mhp-info-item strong { color: var(--mhp-text); }
.mhp-text-green { color: var(--mhp-green); }
.mhp-empty { color: var(--mhp-muted); font-size: 14px; }
.mhp-empty-state { text-align: center; padding: 60px 20px; }
.mhp-empty-state__icon { font-size: 52px; color: var(--mhp-muted); margin-bottom: 16px; display: block; }
.mhp-empty-state h2 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.mhp-empty-state p { font-size: 14px; color: var(--mhp-muted); margin-bottom: 20px; }

/* ── AUTH PAGES ───────────────────────────────────────────── */
.mhp-auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

/* Background grid + glow */
.mhp-auth-wrap::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(57,217,138,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,217,138,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.mhp-auth-wrap::after {
  content: '';
  position: fixed;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(57,217,138,.07) 0%, transparent 65%);
  pointer-events: none;
}

/* Card */
.mhp-auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: var(--mhp-card);
  border: 1px solid var(--mhp-border);
  border-radius: 20px;
  padding: 40px 40px 32px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(57,217,138,.05);
}

/* Logo */
.mhp-auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.mhp-auth-logo__pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mhp-green);
  background: rgba(57,217,138,.1);
  border: 1px solid rgba(57,217,138,.2);
  border-radius: 20px;
  padding: 3px 10px;
}

/* Headings */
.mhp-auth-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.mhp-auth-desc {
  font-size: 14px;
  color: var(--mhp-muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Form spacing */
.mhp-auth-form { display: flex; flex-direction: column; gap: 0; }

/* Primary button */
.mhp-auth-btn {
  width: 100%;
  background: var(--mhp-green);
  color: #0d1117;
  border: none;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  font-family: inherit;
  margin-top: 4px;
  letter-spacing: 0.2px;
}
.mhp-auth-btn:hover {
  background: var(--mhp-green2);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(57,217,138,.3);
}
.mhp-auth-btn i { transition: transform 0.2s; }
.mhp-auth-btn:hover i { transform: translateX(3px); }

/* Register CTA block */
.mhp-auth-register-cta {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--mhp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mhp-auth-register-cta p {
  font-size: 14px;
  color: var(--mhp-muted);
  flex-shrink: 0;
}
.mhp-auth-register-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  background: rgba(57,217,138,.06);
  border: 1px solid rgba(57,217,138,.2);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mhp-green);
  transition: all 0.2s;
  white-space: nowrap;
}
.mhp-auth-register-btn:hover {
  background: rgba(57,217,138,.12);
  border-color: rgba(57,217,138,.4);
  transform: translateY(-1px);
}

/* Trust strip */
.mhp-auth-trust {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.mhp-auth-trust span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(136,146,164,0.6);
  letter-spacing: 0.2px;
}
.mhp-auth-trust i { color: rgba(57,217,138,.5); font-size: 11px; }

/* Footer */
.mhp-auth-footer {
  text-align: center;
  font-size: 12px;
  color: var(--mhp-muted);
  padding: 20px;
  position: relative;
  z-index: 1;
}
.mhp-auth-footer a { color: var(--mhp-green); }

/* ── MODAL ────────────────────────────────────────────────── */
.mhp-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.mhp-modal[hidden] { display: none; }
.mhp-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.mhp-modal__box { position: relative; background: var(--mhp-card2); border: 1px solid var(--mhp-border); border-radius: 14px; padding: 28px 32px; max-width: 400px; width: 90%; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.mhp-modal__box h3 { font-size: 17px; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; }
.mhp-modal__box h3 i { color: var(--mhp-green); }
.mhp-modal__note { font-size: 12px; color: var(--mhp-muted); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .mhp-stats-row { grid-template-columns: repeat(2, 1fr); }
  .mhp-hosting-card__stats { grid-template-columns: 1fr 1fr; }
  .mhp-hosting-stat--storage { grid-column: span 1; }
  .mhp-hosting-stat:last-child { padding-left: 0; border-right: none; }
  .mhp-hosting-stat:nth-child(2) { border-right: none; }
}

@media (max-width: 900px) {
  .mhp-support-grid { grid-template-columns: 1fr; }
  .mhp-billing-grid { grid-template-columns: 1fr; }
  .mhp-account-grid { grid-template-columns: 1fr; }
  .mhp-dash-grid { grid-template-columns: 1fr; }
  .mhp-card--hosting { grid-column: auto; }
}

@media (max-width: 768px) {
  .mhp-sidebar {
    transform: translateX(-100%);
  }
  .mhp-sidebar.is-open {
    transform: translateX(0);
  }
  .mhp-sidebar__close { display: flex; align-items: center; justify-content: center; }
  .mhp-sidebar-overlay.is-visible { display: block; }
  .mhp-main { margin-left: 0; }
  .mhp-topbar { display: flex; }
  .mhp-content { padding: 20px 16px; }
  .mhp-billing-summary { grid-template-columns: 1fr; }
  .mhp-form-row { grid-template-columns: 1fr; }
  .mhp-hosting-card__stats { grid-template-columns: 1fr 1fr; padding: 16px; }
  .mhp-hosting-card__header { padding: 16px; }
  .mhp-hosting-card__actions { padding: 0 16px 16px; }
  .mhp-stats-row { grid-template-columns: repeat(2, 1fr); }
  .mhp-quick-actions { grid-template-columns: repeat(2, 1fr); }
  .mhp-auth-card { padding: 28px 20px 20px; }
}

/* ============================================================
   MHP CORE — Ticket System, Notifications, Support UI
   ============================================================ */

/* ── Breadcrumb ───────────────────────────────────────────── */
.mhp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mhp-muted);
  margin-bottom: 8px;
}
.mhp-breadcrumb a { color: var(--mhp-green); }
.mhp-breadcrumb i { font-size: 10px; }

/* ── Ticket Thread ────────────────────────────────────────── */
.mhp-ticket-thread { display: flex; flex-direction: column; gap: 16px; margin-bottom: 8px; }

.mhp-reply {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.mhp-reply--staff { flex-direction: row; }
.mhp-reply--client { flex-direction: row-reverse; }
.mhp-reply--client .mhp-reply__body { align-items: flex-end; }
.mhp-reply--client .mhp-reply__meta { flex-direction: row-reverse; }

.mhp-reply__avatar { flex-shrink: 0; }
.mhp-reply__avatar-img { width: 38px; height: 38px; border-radius: 50%; }

.mhp-reply__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 78%;
}
.mhp-reply__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--mhp-muted);
  flex-wrap: wrap;
}
.mhp-reply__author { color: #e2e8f0; font-size: 13px; }
.mhp-reply__staff-tag {
  background: rgba(57,217,138,.12);
  color: var(--mhp-green);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.mhp-reply__time { font-size: 11px; color: var(--mhp-muted); margin-left: auto; }

.mhp-reply__message {
  background: var(--mhp-card);
  border: 1px solid var(--mhp-border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.65;
}
.mhp-reply--staff .mhp-reply__message {
  border-top-left-radius: 4px;
  border-left: 2px solid var(--mhp-green);
}
.mhp-reply--client .mhp-reply__message {
  border-top-right-radius: 4px;
  border-right: 2px solid rgba(100,140,255,.4);
}
.mhp-reply__message p { margin-bottom: 8px; }
.mhp-reply__message p:last-child { margin-bottom: 0; }

.mhp-reply__attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.mhp-attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--mhp-muted);
  padding: 4px 10px;
  border: 1px solid var(--mhp-border);
  border-radius: 6px;
  background: var(--mhp-card2);
  transition: border-color .2s;
}
.mhp-attachment-link:hover { border-color: var(--mhp-green); color: var(--mhp-green); }

/* ── Support Layout (new ticket form + alt contact) ─────── */
.mhp-support-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: flex-start; }
.mhp-support-alt { display: flex; flex-direction: column; gap: 16px; }
.mhp-card--alt {
  padding: 20px;
  text-align: center;
}
.mhp-card--alt i {
  font-size: 24px;
  color: var(--mhp-green);
  margin-bottom: 10px;
  display: block;
}
.mhp-card--alt h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.mhp-card--alt p { font-size: 13px; color: var(--mhp-muted); }

/* ── Textarea ─────────────────────────────────────────────── */
.mhp-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  font-size: 14px;
}

/* ── Priority dots ────────────────────────────────────────── */
.mhp-priority-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.mhp-priority-dot--low    { background: #4b5563; }
.mhp-priority-dot--normal { background: #3b82f6; }
.mhp-priority-dot--high   { background: #f59e0b; }
.mhp-priority-dot--urgent { background: #ef4444; }

/* ── Badge sizes ──────────────────────────────────────────── */
.mhp-badge--lg { font-size: 13px; padding: 5px 14px; }

/* ── Contact strip ────────────────────────────────────────── */
.mhp-contact-strip {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  background: var(--mhp-card);
  border: 1px solid var(--mhp-border);
  border-radius: 12px;
  padding: 20px 24px;
}
.mhp-contact-strip__item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}
.mhp-contact-strip__item i {
  font-size: 20px;
  color: var(--mhp-green);
  flex-shrink: 0;
}
.mhp-contact-strip__item strong { display: block; font-size: 13px; margin-bottom: 2px; }
.mhp-contact-strip__item span { font-size: 12px; color: var(--mhp-muted); }

/* ── Empty state ──────────────────────────────────────────── */
.mhp-empty-state {
  text-align: center;
  padding: 64px 32px;
  background: var(--mhp-card);
  border: 1px solid var(--mhp-border);
  border-radius: 16px;
}
.mhp-empty-state__icon { font-size: 48px; color: var(--mhp-muted); margin-bottom: 16px; display: block; }
.mhp-empty-state h2 { font-size: 20px; margin-bottom: 8px; }
.mhp-empty-state p { color: var(--mhp-muted); font-size: 14px; margin-bottom: 24px; }

/* ── Table extras ─────────────────────────────────────────── */
.mhp-table__mono { font-family: monospace; font-size: 13px; letter-spacing: .3px; color: var(--mhp-muted); }
.mhp-table__muted { color: var(--mhp-muted); font-size: 13px; }
.mhp-ticket-link { color: #e2e8f0; font-size: 14px; font-weight: 500; }
.mhp-ticket-link:hover { color: var(--mhp-green); }
.mhp-ticket-item { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.mhp-ticket-item:hover .mhp-ticket-item__body strong { color: var(--mhp-green); }

/* ── Select input ─────────────────────────────────────────── */
.mhp-select {
  background: var(--mhp-card2);
  border: 1px solid var(--mhp-border);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

/* ── Notification Bell ────────────────────────────────────── */
.mhp-notif-bell { position: relative; }
.mhp-notif-btn { position: relative; }
.mhp-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}
.mhp-notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: var(--mhp-card);
  border: 1px solid var(--mhp-border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  z-index: 9999;
  overflow: hidden;
}
.mhp-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--mhp-border);
  font-size: 13px;
  font-weight: 600;
}
.mhp-notif-read-all {
  font-size: 11px;
  color: var(--mhp-green);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.mhp-notif-list { max-height: 340px; overflow-y: auto; }
.mhp-notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--mhp-border);
  font-size: 13px;
  cursor: pointer;
  transition: background .15s;
}
.mhp-notif-item:hover { background: var(--mhp-card2); }
.mhp-notif-item--unread { background: rgba(57,217,138,.04); }
.mhp-notif-item i { color: var(--mhp-green); flex-shrink: 0; margin-top: 2px; }
.mhp-notif-item__body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.mhp-notif-item__body a,
.mhp-notif-item__body span { color: #e2e8f0; line-height: 1.4; }
.mhp-notif-item__body time { font-size: 11px; color: var(--mhp-muted); }
.mhp-notif-empty { padding: 24px; text-align: center; color: var(--mhp-muted); font-size: 13px; }

/* ── Payment info block ───────────────────────────────────── */
.mhp-payment-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.mhp-payment-info__icon { font-size: 32px; color: var(--mhp-green); }
.mhp-payment-info p { font-size: 14px; color: var(--mhp-muted); line-height: 1.6; }
.mhp-payment-info strong { color: #e2e8f0; }

/* ── Card reply ───────────────────────────────────────────── */
.mhp-card--reply { overflow: visible; }

/* ── Responsive additions ─────────────────────────────────── */
@media (max-width: 768px) {
  .mhp-support-layout { grid-template-columns: 1fr; }
  .mhp-contact-strip { flex-direction: column; }
  .mhp-reply--client { flex-direction: row; }
  .mhp-reply__body { max-width: 90%; }
  .mhp-notif-dropdown { width: 290px; right: -40px; }
}

/* ══ ENVATO SYNC ══════════════════════════════════════════════ */

/* Envato green brand colour */
:root { --mhp-envato: #81b441; --mhp-envato-dark: #6a9535; }

/* ── Envato button ────────────────────────────────────────── */
.mhp-btn--envato {
  background: var(--mhp-envato);
  color: #fff;
  border: none;
}
.mhp-btn--envato:hover { background: var(--mhp-envato-dark); color: #fff; }

/* ── Dashboard nudge banner ───────────────────────────────── */
.mhp-envato-nudge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(129,180,65,.1);
  border: 1px solid rgba(129,180,65,.25);
  border-radius: var(--mhp-radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.mhp-envato-nudge__icon {
  font-size: 28px;
  color: var(--mhp-envato);
  flex-shrink: 0;
}
.mhp-envato-nudge__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mhp-envato-nudge__body strong { font-size: 14px; color: var(--mhp-text); }
.mhp-envato-nudge__body span   { font-size: 13px; color: var(--mhp-muted); }

/* ── Envato section (My Templates page) ───────────────────── */
.mhp-envato-section {
  background: var(--mhp-card);
  border: 1px solid var(--mhp-border);
  border-radius: var(--mhp-radius);
  overflow: hidden;
  margin-bottom: 8px;
}
.mhp-envato-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--mhp-border);
  gap: 12px;
  flex-wrap: wrap;
}
.mhp-envato-section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}
.mhp-envato-section__title > i { color: var(--mhp-envato); font-size: 18px; }
.mhp-envato-section__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

/* connected / disconnected badges */
.mhp-envato-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
}
.mhp-envato-badge--connected {
  background: rgba(57,217,138,.12);
  color: var(--mhp-green);
}
.mhp-envato-badge--connected i { font-size: 8px; color: var(--mhp-green); }
.mhp-envato-badge--disconnected {
  background: rgba(136,146,164,.12);
  color: var(--mhp-muted);
}
.mhp-envato-badge--disconnected i { font-size: 8px; color: var(--mhp-muted); }

/* ── Empty state inside Envato section ────────────────────── */
.mhp-envato-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 32px;
  gap: 12px;
}
.mhp-envato-empty__icon {
  font-size: 48px;
  color: var(--mhp-envato);
  opacity: .6;
}
.mhp-envato-empty h3 { font-size: 18px; font-weight: 600; }
.mhp-envato-empty p  { font-size: 14px; color: var(--mhp-muted); max-width: 440px; }

/* ── Purchases table ──────────────────────────────────────── */
.mhp-envato-table-wrap { overflow-x: auto; }
.mhp-envato-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.mhp-envato-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--mhp-muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--mhp-border);
  white-space: nowrap;
}
.mhp-envato-table th:first-child { padding-left: 24px; }
.mhp-envato-table th:last-child  { padding-right: 24px; }
.mhp-envato-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--mhp-border);
  vertical-align: middle;
  color: var(--mhp-text);
}
.mhp-envato-table td:first-child { padding-left: 24px; }
.mhp-envato-table td:last-child  { padding-right: 24px; }
.mhp-envato-table tr:last-child td { border-bottom: none; }
.mhp-envato-table tr:hover td { background: rgba(255,255,255,.02); }

/* template name cell */
.mhp-et-name__inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mhp-et-icon {
  font-size: 20px;
  color: var(--mhp-envato);
  flex-shrink: 0;
}
.mhp-et-name__inner strong { display: block; font-weight: 600; }
.mhp-et-name__inner .mhp-muted { font-size: 12px; }

/* purchase code cell */
.mhp-et-code {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.mhp-code {
  font-family: monospace;
  font-size: 12px;
  color: var(--mhp-muted);
  background: rgba(255,255,255,.05);
  padding: 3px 8px;
  border-radius: 4px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}
.mhp-code-copy {
  color: var(--mhp-muted);
  font-size: 13px;
  padding: 4px;
  border-radius: 4px;
  transition: color .15s;
}
.mhp-code-copy:hover { color: var(--mhp-green); }

/* icon colours */
.mhp-icon--green { color: var(--mhp-green); }
.mhp-icon--red   { color: var(--mhp-red); }

/* alert bars */
.mhp-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--mhp-radius);
  font-size: 14px;
  margin-bottom: 20px;
}
.mhp-alert--error   { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.25);  color: #fca5a5; }
.mhp-alert--success { background: rgba(57,217,138,.1); border: 1px solid rgba(57,217,138,.25); color: var(--mhp-green); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .mhp-envato-nudge { flex-wrap: wrap; }
  .mhp-envato-section__header { flex-direction: column; align-items: flex-start; }
  .mhp-envato-table th:nth-child(4),
  .mhp-envato-table td:nth-child(4) { display: none; } /* hide Domain column on mobile */
}

/* ══ HOSTING PLANS (empty state) ══════════════════════════════ */

.mhp-hosting-plans-intro {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}
.mhp-hosting-plans-intro > i {
  font-size: 36px;
  color: var(--mhp-green);
  flex-shrink: 0;
}
.mhp-hosting-plans-intro h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.mhp-hosting-plans-intro p {
  font-size: 14px;
  color: var(--mhp-muted);
}

/* 4-column plan grid */
.mhp-hosting-plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

/* Plan card */
.mhp-plan-card {
  background: var(--mhp-card);
  border: 1px solid var(--mhp-border);
  border-radius: var(--mhp-radius);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: border-color .2s;
}
.mhp-plan-card:hover {
  border-color: rgba(255,255,255,.15);
}
.mhp-plan-card--popular {
  border-color: var(--mhp-green);
  background: linear-gradient(160deg, rgba(57,217,138,.06) 0%, var(--mhp-card) 60%);
}

/* Popular badge */
.mhp-plan-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mhp-green);
  color: #0d1117;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Header */
.mhp-plan-card__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mhp-plan-card__name {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--mhp-muted);
}
.mhp-plan-card--popular .mhp-plan-card__name { color: var(--mhp-green); }
.mhp-plan-card__price {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: var(--mhp-text);
}
.mhp-plan-card__price span {
  font-size: 18px;
  font-weight: 600;
  color: var(--mhp-muted);
}
.mhp-plan-card__price span em {
  font-style: normal;
  font-size: 13px;
}

/* Features list */
.mhp-plan-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.mhp-plan-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--mhp-text);
}
.mhp-plan-card__features li i.fa-check { color: var(--mhp-green); font-size: 12px; flex-shrink: 0; }
.mhp-plan-card__features li i.fa-xmark { color: var(--mhp-muted); font-size: 12px; flex-shrink: 0; }
.mhp-plan-card__feature--off { color: var(--mhp-muted) !important; }

/* Full-width button */
.mhp-btn--full { width: 100%; justify-content: center; text-align: center; }

/* Note row */
.mhp-hosting-plans-note {
  text-align: center;
  font-size: 13px;
  color: var(--mhp-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mhp-hosting-plans-note i { color: var(--mhp-green); }

/* Responsive */
@media (max-width: 1100px) {
  .mhp-hosting-plans-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .mhp-hosting-plans-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}
