/* ═══════════════════════════════════════════
   HOSTINGOL — Dashboard / Client Area (hPanel)
   ═══════════════════════════════════════════ */
:root {
  --hpanel-bg: #f5f5f9;
  --hpanel-white: #ffffff;
  --hpanel-brand: #673de6;
  --hpanel-brand-light: #f0ebff;
  --hpanel-text: #1d1e20;
  --hpanel-muted: #6d7081;
  --hpanel-border: #e6e7ea;
  --hpanel-sidebar-width: 260px;
  --hpanel-radius: 8px;
  --hpanel-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* ── Full-width override ── */
.clientareahome .master-breadcrumb,
.clientareahome .sidebar { display: none !important; }
.clientareahome .primary-content { flex: 0 0 100% !important; max-width: 100% !important; }
.clientareahome #main-body > div { max-width: 100% !important; padding: 0 !important; }
.clientareahome #main-body .row { margin: 0 !important; }

/* ── LAYOUT ── */
.hpanel-layout {
  display: flex;
  min-height: calc(100vh - 56px);
  margin: -1rem -15px;
  background: var(--hpanel-bg);
}

/* ═══════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════ */
.hpanel-sidebar {
  position: fixed;
  top: 56px;
  left: 0;
  width: var(--hpanel-sidebar-width);
  height: calc(100vh - 56px);
  background: var(--hpanel-white);
  border-right: 1px solid var(--hpanel-border);
  padding: 20px 16px;
  overflow-y: auto;
  z-index: 999;
}

.hpanel-sidebar::-webkit-scrollbar { width: 0; }

.hpanel-nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  margin: 0;
}

.hpanel-nav-section {
  font-size: 11px;
  font-weight: 700;
  color: #9b9dab;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 16px 12px 8px;
}

.hpanel-nav-item a {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  color: var(--hpanel-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--hpanel-radius);
  transition: all 0.25s ease-out;
}

.hpanel-nav-item a i:first-child {
  font-size: 20px;
  margin-right: 12px;
  color: var(--hpanel-muted);
  width: 20px;
  text-align: center;
}

.hpanel-nav-item a .hpanel-chevron {
  margin-left: auto;
  font-size: 14px;
  color: #9b9dab;
  transition: transform 0.2s;
}

.hpanel-nav-item.active a {
  background-color: var(--hpanel-brand-light);
  font-weight: 600;
  color: var(--hpanel-brand);
}

.hpanel-nav-item.active a i:first-child {
  color: var(--hpanel-brand);
}

.hpanel-nav-item a:hover {
  background-color: var(--hpanel-bg);
}

/* ═══════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════ */
.hpanel-main {
  margin-left: var(--hpanel-sidebar-width);
  flex: 1;
  padding: 32px 36px;
  overflow-y: auto;
  min-width: 0;
}

.hpanel-page-title {
  font-size: 24px;
  font-weight: 700;
  color: #1d1e20;
  margin-bottom: 20px;
}

/* ── TO-DOS ── */
.hpanel-todo-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.hpanel-todo-count {
  background: #e8335a;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

/* ── ALERT CARDS ── */
.hpanel-alert-card {
  background: #fff;
  border: 1px solid var(--hpanel-border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}

.hpanel-alert-icon-wrap {
  width: 36px;
  height: 36px;
  background: #f5f5f7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 16px;
  color: #888;
}

.hpanel-alert-icon-wrap.purple { background: var(--hpanel-brand-light); color: var(--hpanel-text); }

.hpanel-alert-body { flex: 1; min-width: 0; }
.hpanel-alert-title { font-size: 14px; font-weight: 600; color: #18181A; margin-bottom: 3px; }
.hpanel-alert-desc { font-size: 12.5px; color: var(--hpanel-muted); line-height: 1.5; }

.hpanel-alert-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-top: 2px;
}

.hpanel-alert-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--hpanel-text);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.hpanel-alert-link:hover { text-decoration: underline; }

.hpanel-alert-close {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  color: #aaa;
  font-size: 18px;
  line-height: 1;
  transition: background .12s;
}
.hpanel-alert-close:hover { background: #f5f5f5; color: #555; }

/* ═══════════════════════════════════════════
   HOSTING CARD (Website List)
   ═══════════════════════════════════════════ */
.hpanel-hosting-card {
  background: var(--hpanel-white);
  border: 1px solid var(--hpanel-border);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  margin: 24px 0;
}

.hpanel-hosting-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.hpanel-hosting-card-title h2 {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  margin-bottom: 6px;
}

.hpanel-owner-row {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--hpanel-muted);
}

.hpanel-avatar-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e6f4ea;
  color: #137333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 11px;
  margin-right: 8px;
}

.hpanel-hosting-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Buttons ── */
.hpanel-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.hpanel-btn-link {
  background: transparent;
  color: #4f46e5;
}
.hpanel-btn-link:hover { text-decoration: underline; color: #4338ca; }

.hpanel-btn-primary {
  background: #6366f1;
  color: #fff;
}
.hpanel-btn-primary:hover { background: #4f46e5; color: #fff; text-decoration: none; }

.hpanel-btn-outline {
  background: #fff;
  border: 1px solid #ddd;
  color: #333;
}
.hpanel-btn-outline:hover { background: #f9f9f9; text-decoration: none; }

/* ── Site Row ── */
.hpanel-site-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid #f0f0f0;
}

.hpanel-site-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hpanel-site-icon {
  font-size: 20px;
  color: #333;
  display: flex;
  align-items: center;
  width: 24px;
  justify-content: center;
}

.hpanel-site-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--hpanel-text);
}

.hpanel-site-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ═══════════════════════════════════════════
   DOMAIN SEARCH
   ═══════════════════════════════════════════ */
.hpanel-domain-section {
  background: linear-gradient(135deg, #ece9ff 0%, #d8d3ff 50%, #e8e5ff 100%);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  margin: 28px 0;
}
.hpanel-domain-section h2 {
  font-size: 20px;
  font-weight: 500;
  color: #2d2060;
  margin-bottom: 20px;
}

.hpanel-domain-search-row {
  display: flex;
  gap: 0;
  max-width: 580px;
  margin: 0 auto 16px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ddd;
  overflow: hidden;
}

.hpanel-domain-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-size: 14px;
  color: #18181A;
  background: transparent;
}
.hpanel-domain-input::placeholder { color: #bbb; }

.hpanel-domain-search-icon {
  padding: 0 14px;
  display: flex;
  align-items: center;
  color: #bbb;
  font-size: 16px;
}

.hpanel-domain-btn {
  padding: 12px 22px;
  background: #ddd;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #888;
  transition: all .15s;
}
.hpanel-domain-btn:hover { background: var(--hpanel-brand); color: #fff; }

.hpanel-domain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.hpanel-domain-tag {
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #e0ddf8;
  border-radius: 50px;
  font-size: 12.5px;
  color: #444;
  cursor: pointer;
  transition: all .15s;
}
.hpanel-domain-tag:hover { border-color: var(--hpanel-text); color: var(--hpanel-text); }

/* ═══════════════════════════════════════════
   FEATURE CARDS
   ═══════════════════════════════════════════ */
.hpanel-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.hpanel-feature-card {
  background: #fff;
  border: 1px solid var(--hpanel-border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .15s;
}
.hpanel-feature-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }

.hpanel-feature-img {
  height: 180px;
  background: linear-gradient(135deg, #ece9ff, #c8c0ff);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hpanel-feature-img.hpanel-email-bg { background: linear-gradient(135deg, #e8f0ff, #c0d0ff); }

.hpanel-feature-img-content { position: relative; z-index: 1; }

.hpanel-mock-browser {
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  width: 200px;
}
.hpanel-mock-browser-bar {
  height: 6px;
  background: var(--hpanel-brand-light);
  border-radius: 3px;
  margin-bottom: 6px;
}
.hpanel-mock-browser-body {
  height: 60px;
  background: #f8f8fb;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #aaa;
}

.hpanel-mock-email {
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  width: 200px;
  font-size: 10px;
}
.hpanel-mock-email-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.hpanel-mock-email-title { font-size: 11px; font-weight: 600; color: #111; }
.hpanel-mock-email-row { height: 6px; background: #f0f0f0; border-radius: 3px; margin-bottom: 4px; }
.hpanel-mock-email-row.short { width: 60%; }

.hpanel-feat-purple-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: var(--hpanel-brand);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.hpanel-feature-body { padding: 18px 20px; }
.hpanel-feature-title { font-size: 15px; font-weight: 600; color: #111; margin-bottom: 5px; }
.hpanel-feature-desc { font-size: 12.5px; color: #777; line-height: 1.5; margin-bottom: 14px; }

.hpanel-feature-action {
  display: inline-block;
  padding: 8px 18px;
  border: 1.5px solid #ddd;
  border-radius: 7px;
  font-size: 12.5px;
  color: #444;
  cursor: pointer;
  transition: all .15s;
  background: none;
}
.hpanel-feature-action:hover { border-color: var(--hpanel-text); color: var(--hpanel-text); }

/* ═══════════════════════════════════════════
   SUPPORT BANNER
   ═══════════════════════════════════════════ */
.hpanel-support-banner {
  background: #fff;
  border: 1px solid var(--hpanel-border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hpanel-support-icon {
  width: 40px;
  height: 40px;
  background: var(--hpanel-brand-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  color: var(--hpanel-text);
}
.hpanel-support-text { flex: 1; }
.hpanel-support-title { font-size: 14px; font-weight: 600; color: #111; margin-bottom: 3px; }
.hpanel-support-desc { font-size: 12.5px; color: #777; }
.hpanel-support-btn {
  padding: 9px 18px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  color: #444;
  cursor: pointer;
  background: none;
  transition: all .15s;
  white-space: nowrap;
  text-decoration: none;
}
.hpanel-support-btn:hover { border-color: var(--hpanel-text); color: var(--hpanel-text); text-decoration: none; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .hpanel-sidebar { display: none; }
  .hpanel-main { margin-left: 0; padding: 20px 16px; }
  .hpanel-feature-grid { grid-template-columns: 1fr; }
  .hpanel-hosting-card-header { flex-direction: column; gap: 16px; }
  .hpanel-hosting-card-actions { width: 100%; }
  .hpanel-site-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hpanel-site-actions { width: 100%; justify-content: flex-end; }
}

@media (max-width: 600px) {
  .hpanel-domain-section { padding: 24px 16px; }
}
