/*
 * Fair E Web Host Billing Platform v7
 * Unified client/admin UI system inspired by modern hosting control-panel patterns.
 * Backend-neutral: no business logic lives in this file.
 */
:root {
  --fwh-brand: #159447;
  --fwh-brand-600: #117a3b;
  --fwh-brand-700: #0c6230;
  --fwh-brand-soft: #eaf8ef;
  --fwh-ink: #182230;
  --fwh-muted: #65758b;
  --fwh-subtle: #8a99ad;
  --fwh-border: #e2e7ef;
  --fwh-border-strong: #d4dbe6;
  --fwh-bg: #f6f7fb;
  --fwh-surface: #ffffff;
  --fwh-surface-2: #fafbfc;
  --fwh-info: #2563eb;
  --fwh-info-soft: #eef4ff;
  --fwh-warning: #b7791f;
  --fwh-warning-soft: #fff8e8;
  --fwh-danger: #c43838;
  --fwh-danger-soft: #fff0f0;
  --fwh-success: #15803d;
  --fwh-success-soft: #edf9f1;
  --fwh-purple-soft: #f4f0ff;
  --fwh-sidebar: 246px;
  --fwh-topbar: 68px;
  --fwh-radius-sm: 8px;
  --fwh-radius: 12px;
  --fwh-radius-lg: 16px;
  --fwh-shadow-sm: 0 1px 2px rgba(24,34,48,.04), 0 1px 4px rgba(24,34,48,.04);
  --fwh-shadow: 0 8px 30px rgba(24,34,48,.06);
  --fwh-space-1: .25rem;
  --fwh-space-2: .5rem;
  --fwh-space-3: .75rem;
  --fwh-space-4: 1rem;
  --fwh-space-5: 1.25rem;
  --fwh-space-6: 1.5rem;
  --fwh-space-7: 2rem;
  --fwh-space-8: 2.5rem;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body.fwh-shell {
  margin: 0 !important;
  min-width: 320px;
  background: var(--fwh-bg) !important;
  color: var(--fwh-ink) !important;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: var(--fwh-brand-700); }
a:hover { color: var(--fwh-brand); }
img { max-width: 100%; }

/* Shell */
.fwh-app { min-height: 100vh; }
.fwh-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--fwh-topbar);
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--fwh-border);
  display: flex;
  align-items: center;
  z-index: 1040;
  backdrop-filter: blur(14px);
}
.fwh-topbar-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 22px;
  gap: 22px;
}
.fwh-brand-link {
  width: calc(var(--fwh-sidebar) - 22px);
  min-width: calc(var(--fwh-sidebar) - 22px);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.fwh-brand-link img { width: 142px; height: auto; display: block; }
.fwh-brand-context {
  border-left: 1px solid var(--fwh-border);
  padding-left: 10px;
  color: var(--fwh-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.fwh-global-tabs {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 6px;
}
.fwh-global-tabs a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: #455267;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.fwh-global-tabs a:hover { color: var(--fwh-ink); }
.fwh-global-tabs a.active { color: var(--fwh-brand-700); }
.fwh-global-tabs a.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--fwh-brand);
}
.fwh-topbar-spacer { flex: 1; }
.fwh-topbar-actions { display: flex; align-items: center; gap: 8px; }
.fwh-icon-button,
.fwh-menu-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b586c;
  text-decoration: none;
  transition: .15s ease;
}
.fwh-icon-button:hover,
.fwh-menu-button:hover { background: #f1f4f8; border-color: var(--fwh-border); color: var(--fwh-ink); }
.fwh-menu-button { display: none; }
.fwh-user-button {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 7px;
  border-radius: 10px;
  color: var(--fwh-ink);
}
.fwh-user-button:hover { background: #f1f4f8; }
.fwh-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(145deg, var(--fwh-brand), var(--fwh-brand-700));
}
.fwh-user-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.fwh-user-copy strong { font-size: 13px; font-weight: 700; }
.fwh-user-copy span { font-size: 11px; color: var(--fwh-muted); }
.fwh-cart-dot {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--fwh-danger);
  color: white;
  font-size: 9px;
  font-weight: 800;
  border: 2px solid white;
}

.fwh-sidebar {
  position: fixed;
  top: var(--fwh-topbar);
  left: 0;
  bottom: 0;
  width: var(--fwh-sidebar);
  background: var(--fwh-surface);
  border-right: 1px solid var(--fwh-border);
  z-index: 1035;
  overflow-y: auto;
  padding: 18px 12px;
  scrollbar-width: thin;
}
.fwh-admin .fwh-sidebar {
  background: #13251c;
  border-right: 0;
  color: #dce9e2;
}
.fwh-sidebar-section { margin: 18px 10px 7px; color: var(--fwh-subtle); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.fwh-admin .fwh-sidebar-section { color: #829b8d; }
.fwh-side-link {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  margin: 2px 0;
  border-radius: 9px;
  color: #4c596c;
  text-decoration: none;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.fwh-side-link i { width: 20px; text-align: center; font-size: 15px; color: #7d8a9d; }
.fwh-side-link:hover { background: #f2f5f8; color: var(--fwh-ink); }
.fwh-side-link.active { background: var(--fwh-brand-soft); color: var(--fwh-brand-700); }
.fwh-side-link.active i { color: var(--fwh-brand); }
.fwh-admin .fwh-side-link { color: #c7d6ce; }
.fwh-admin .fwh-side-link i { color: #8fa99a; }
.fwh-admin .fwh-side-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.fwh-admin .fwh-side-link.active { background: rgba(56,189,106,.15); color: #fff; }
.fwh-admin .fwh-side-link.active i { color: #65d894; }
.fwh-side-link .badge { margin-left: auto; font-size: 10px; font-weight: 800; border-radius: 999px; }
.fwh-sidebar-footer { margin-top: 20px; padding: 14px 10px 4px; border-top: 1px solid var(--fwh-border); }
.fwh-admin .fwh-sidebar-footer { border-top-color: rgba(255,255,255,.1); }
.fwh-sidebar-help { font-size: 12px; color: var(--fwh-muted); }
.fwh-admin .fwh-sidebar-help { color: #8fa99a; }

.fwh-main {
  min-height: 100vh;
  padding-top: var(--fwh-topbar);
  margin-left: var(--fwh-sidebar);
}
.fwh-content {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 30px 34px 42px;
}
.fwh-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.fwh-page-title { margin: 0; color: var(--fwh-ink); font-size: clamp(24px, 2vw, 32px); font-weight: 760; letter-spacing: -.025em; }
.fwh-page-subtitle { margin: 5px 0 0; color: var(--fwh-muted); font-size: 14px; }
.fwh-breadcrumb { display: flex; gap: 7px; align-items: center; color: var(--fwh-muted); font-size: 12px; margin-bottom: 7px; }

/* Shared cards / components */
.fwh-panel,
body.fwh-shell .card,
body.fwh-shell .dashboard-card,
body.fwh-shell .content-card,
body.fwh-shell .sidebar-card,
body.fwh-shell .details-card,
body.fwh-shell .service-card {
  background: var(--fwh-surface) !important;
  border: 1px solid var(--fwh-border) !important;
  border-radius: var(--fwh-radius) !important;
  box-shadow: var(--fwh-shadow-sm) !important;
  overflow: hidden;
}
body.fwh-shell .card:hover,
body.fwh-shell .dashboard-card:hover,
body.fwh-shell .content-card:hover,
body.fwh-shell .service-card:hover,
body.fwh-shell .stat-card:hover { transform: none !important; box-shadow: var(--fwh-shadow-sm) !important; }
.fwh-panel-head,
body.fwh-shell .card-header,
body.fwh-shell .content-card-header {
  min-height: 58px;
  background: #fff !important;
  border-bottom: 1px solid var(--fwh-border) !important;
  padding: 15px 18px !important;
  color: var(--fwh-ink) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fwh-panel-head h2,
.fwh-panel-head h3,
.fwh-panel-head h4,
body.fwh-shell .card-header h5,
body.fwh-shell .card-header h6 { margin: 0 !important; color: var(--fwh-ink) !important; font-size: 15px !important; font-weight: 720 !important; }
.fwh-panel-body,
body.fwh-shell .card-body,
body.fwh-shell .content-card-body { padding: 18px !important; }
.fwh-panel-muted { background: var(--fwh-surface-2); }

.fwh-grid { display: grid; gap: 16px; }
.fwh-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.fwh-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.fwh-grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.fwh-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .75fr); gap: 18px; align-items: start; }
.fwh-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.fwh-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.fwh-kpi {
  background: #fff;
  border: 1px solid var(--fwh-border);
  border-radius: 11px;
  padding: 15px 16px;
  min-width: 0;
  box-shadow: var(--fwh-shadow-sm);
}
.fwh-kpi-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.fwh-kpi-icon { width: 36px; height: 36px; border-radius: 9px; display:grid; place-items:center; background: var(--fwh-brand-soft); color: var(--fwh-brand-700); }
.fwh-kpi-icon.info { background: var(--fwh-info-soft); color: var(--fwh-info); }
.fwh-kpi-icon.warning { background: var(--fwh-warning-soft); color: var(--fwh-warning); }
.fwh-kpi-icon.danger { background: var(--fwh-danger-soft); color: var(--fwh-danger); }
.fwh-kpi-label { color: var(--fwh-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .045em; }
.fwh-kpi-value { margin-top: 9px; color: var(--fwh-ink); font-size: 24px; font-weight: 780; line-height: 1; letter-spacing: -.025em; overflow-wrap:anywhere; }
.fwh-kpi-meta { margin-top: 7px; color: var(--fwh-muted); font-size: 11px; }

/* Website / service overview */
.fwh-site-card { background:#fff; border:1px solid var(--fwh-border); border-radius: var(--fwh-radius-lg); overflow:hidden; box-shadow:var(--fwh-shadow-sm); }
.fwh-site-hero { padding: 20px; display:flex; align-items:flex-start; justify-content:space-between; gap:18px; border-bottom:1px solid var(--fwh-border); }
.fwh-site-identity { display:flex; gap:14px; min-width:0; }
.fwh-site-icon { width:46px; height:46px; border-radius:12px; display:grid; place-items:center; background:var(--fwh-brand-soft); color:var(--fwh-brand-700); font-size:20px; flex:0 0 auto; }
.fwh-site-name { font-size:18px; line-height:1.3; font-weight:750; color:var(--fwh-ink); overflow-wrap:anywhere; }
.fwh-site-meta { margin-top:4px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; color:var(--fwh-muted); font-size:12px; }
.fwh-status { display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:750; padding:4px 8px; border-radius:999px; white-space:nowrap; }
.fwh-status::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.fwh-status.active, .fwh-status.paid, .fwh-status.completed { color:var(--fwh-success); background:var(--fwh-success-soft); }
.fwh-status.pending, .fwh-status.unpaid, .fwh-status.processing, .fwh-status.answered { color:var(--fwh-warning); background:var(--fwh-warning-soft); }
.fwh-status.suspended, .fwh-status.expired, .fwh-status.failed, .fwh-status.urgent { color:var(--fwh-danger); background:var(--fwh-danger-soft); }
.fwh-status.closed, .fwh-status.cancelled, .fwh-status.terminated { color:#677487; background:#eef1f5; }
.fwh-site-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.fwh-service-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
.fwh-service-strip-item { min-height:82px; padding:15px 18px; border-right:1px solid var(--fwh-border); }
.fwh-service-strip-item:last-child { border-right:0; }
.fwh-service-strip-label { color:var(--fwh-muted); font-size:11px; font-weight:650; }
.fwh-service-strip-value { margin-top:5px; color:var(--fwh-ink); font-size:13px; font-weight:720; overflow-wrap:anywhere; }
.fwh-tool-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.fwh-tool {
  min-height:80px;
  padding:13px;
  display:flex;
  align-items:flex-start;
  gap:10px;
  border:1px solid var(--fwh-border);
  border-radius:10px;
  background:#fff;
  color:var(--fwh-ink);
  text-decoration:none;
  text-align:left;
}
button.fwh-tool { width:100%; }
.fwh-tool:hover { border-color:#b7c4d5; box-shadow:0 4px 14px rgba(24,34,48,.05); color:var(--fwh-ink); }
.fwh-tool-icon { width:33px; height:33px; border-radius:8px; background:var(--fwh-purple-soft); color:#6b48c8; display:grid; place-items:center; flex:0 0 auto; }
.fwh-tool-copy strong { display:block; font-size:12px; font-weight:730; }
.fwh-tool-copy span { display:block; margin-top:2px; color:var(--fwh-muted); font-size:10px; line-height:1.35; }

/* Resource cards */
.fwh-resource-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.fwh-resource { border:1px solid var(--fwh-border); border-radius:10px; padding:14px; background:#fff; }
.fwh-resource-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
.fwh-resource-head strong { font-size:12px; }
.fwh-resource-number { color:var(--fwh-ink); font-size:15px; font-weight:750; }
.fwh-resource-number span { color:var(--fwh-muted); font-size:11px; font-weight:550; }
.fwh-progress { height:7px; border-radius:999px; overflow:hidden; background:#edf0f4; margin-top:9px; }
.fwh-progress > span { display:block; height:100%; min-width:0; border-radius:inherit; background:var(--fwh-brand); }
.fwh-progress > span.warning { background:#d59a2c; }
.fwh-progress > span.critical { background:var(--fwh-danger); }
.fwh-progress-meta { margin-top:6px; font-size:10px; color:var(--fwh-muted); }

/* Attention + activity */
.fwh-attention-list { display:flex; flex-direction:column; }
.fwh-attention-item { display:flex; gap:11px; align-items:flex-start; padding:13px 0; border-bottom:1px solid var(--fwh-border); }
.fwh-attention-item:first-child { padding-top:0; }
.fwh-attention-item:last-child { border-bottom:0; padding-bottom:0; }
.fwh-attention-icon { width:31px; height:31px; flex:0 0 auto; border-radius:8px; display:grid; place-items:center; background:var(--fwh-warning-soft); color:var(--fwh-warning); }
.fwh-attention-icon.danger { background:var(--fwh-danger-soft); color:var(--fwh-danger); }
.fwh-attention-icon.success { background:var(--fwh-success-soft); color:var(--fwh-success); }
.fwh-attention-copy { min-width:0; flex:1; }
.fwh-attention-copy strong { display:block; color:var(--fwh-ink); font-size:12px; }
.fwh-attention-copy span { display:block; color:var(--fwh-muted); font-size:11px; margin-top:2px; }
.fwh-attention-item a { font-size:11px; font-weight:700; text-decoration:none; white-space:nowrap; }
.fwh-empty { padding:28px 20px; text-align:center; color:var(--fwh-muted); }
.fwh-empty i { display:block; font-size:28px; margin-bottom:9px; color:#a6b1bf; }
.fwh-empty strong { display:block; color:var(--fwh-ink); margin-bottom:4px; }

/* Buttons */
body.fwh-shell .btn,
.fwh-btn {
  min-height: 38px;
  border-radius: 8px !important;
  font-weight: 680 !important;
  font-size: 12px !important;
  padding: 8px 13px !important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  box-shadow:none !important;
  transition:background .15s ease,border-color .15s ease,color .15s ease !important;
}
body.fwh-shell .btn:hover { transform:none !important; }
body.fwh-shell .btn-primary,
.fwh-btn-primary { background:var(--fwh-brand) !important; border-color:var(--fwh-brand) !important; color:#fff !important; }
body.fwh-shell .btn-primary:hover,
.fwh-btn-primary:hover { background:var(--fwh-brand-600) !important; border-color:var(--fwh-brand-600) !important; }
body.fwh-shell .btn-success { background:var(--fwh-brand) !important; border-color:var(--fwh-brand) !important; }
body.fwh-shell .btn-outline-primary { color:var(--fwh-brand-700) !important; border-color:#9bcbaa !important; background:#fff !important; }
body.fwh-shell .btn-outline-primary:hover { color:#fff !important; border-color:var(--fwh-brand) !important; background:var(--fwh-brand) !important; }
body.fwh-shell .btn-secondary,
body.fwh-shell .btn-light { background:#fff !important; border:1px solid var(--fwh-border-strong) !important; color:#445165 !important; }
body.fwh-shell .btn-danger { background:var(--fwh-danger) !important; border-color:var(--fwh-danger) !important; }

/* Forms */
body.fwh-shell .form-label { color:#344154; font-size:12px; font-weight:700; margin-bottom:6px; }
body.fwh-shell .form-control,
body.fwh-shell .form-select,
body.fwh-shell input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.fwh-shell textarea,
body.fwh-shell select {
  min-height:42px;
  border:1px solid var(--fwh-border-strong) !important;
  border-radius:8px !important;
  background:#fff !important;
  color:var(--fwh-ink) !important;
  box-shadow:none !important;
  font-size:13px;
}
body.fwh-shell textarea { min-height:110px; }
body.fwh-shell .form-control:focus,
body.fwh-shell .form-select:focus,
body.fwh-shell input:focus,
body.fwh-shell textarea:focus,
body.fwh-shell select:focus { border-color:#6fc58c !important; box-shadow:0 0 0 3px rgba(21,148,71,.1) !important; outline:0; }
body.fwh-shell .form-text { color:var(--fwh-muted); font-size:11px; }

/* Tables */
body.fwh-shell .table-responsive { border-radius:10px; border:1px solid var(--fwh-border); overflow:auto; background:#fff; }
body.fwh-shell table.table { margin:0 !important; color:var(--fwh-ink); min-width:700px; }
body.fwh-shell table.table thead th {
  background:#f8fafc !important;
  color:#66758a !important;
  border-bottom:1px solid var(--fwh-border) !important;
  padding:11px 13px !important;
  font-size:10px !important;
  font-weight:800 !important;
  letter-spacing:.055em;
  text-transform:uppercase;
  white-space:nowrap;
}
body.fwh-shell table.table tbody td { padding:12px 13px !important; border-color:#edf0f4 !important; vertical-align:middle; font-size:12px; }
body.fwh-shell table.table tbody tr:hover { background:#fbfcfd !important; }
body.fwh-shell .table > :not(caption) > * > * { box-shadow:none !important; }

/* Badges / alerts */
body.fwh-shell .badge { border-radius:999px; padding:5px 8px; font-size:10px; font-weight:750; }
body.fwh-shell .alert { border-radius:10px !important; border:1px solid transparent !important; box-shadow:none !important; padding:12px 14px !important; font-size:12px; }
body.fwh-shell .alert-success { color:#196b35 !important; background:var(--fwh-success-soft) !important; border-color:#bce5c9 !important; }
body.fwh-shell .alert-danger { color:#8e2f2f !important; background:var(--fwh-danger-soft) !important; border-color:#efc3c3 !important; }
body.fwh-shell .alert-warning { color:#7b5719 !important; background:var(--fwh-warning-soft) !important; border-color:#edd79f !important; }
body.fwh-shell .alert-info { color:#315f9f !important; background:var(--fwh-info-soft) !important; border-color:#c9dcfb !important; }

/* Dropdowns and modals */
body.fwh-shell .dropdown-menu { border:1px solid var(--fwh-border) !important; border-radius:10px !important; box-shadow:var(--fwh-shadow) !important; padding:6px !important; }
body.fwh-shell .dropdown-item { border-radius:7px; padding:8px 10px; font-size:12px; display:flex; align-items:center; gap:8px; }
body.fwh-shell .dropdown-item:hover { background:#f3f6f8; color:var(--fwh-ink); }
body.fwh-shell .modal-content { border:1px solid var(--fwh-border); border-radius:14px; box-shadow:var(--fwh-shadow); }

/* Admin operations */
.fwh-admin .fwh-kpi-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.fwh-admin-ops { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; }
.fwh-admin-op { padding:13px 11px; min-height:86px; border:1px solid var(--fwh-border); border-radius:10px; background:#fff; color:var(--fwh-ink); text-decoration:none; display:flex; flex-direction:column; justify-content:space-between; gap:9px; }
.fwh-admin-op:hover { color:var(--fwh-ink); border-color:#b6c3d3; box-shadow:0 4px 14px rgba(24,34,48,.05); }
.fwh-admin-op i { color:var(--fwh-brand); font-size:17px; }
.fwh-admin-op strong { font-size:11px; }
.fwh-health-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.fwh-health-card { padding:13px; border:1px solid var(--fwh-border); border-radius:10px; background:#fff; }
.fwh-health-top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.fwh-health-card h4 { margin:0; font-size:12px; font-weight:750; color:var(--fwh-ink); }
.fwh-health-card p { margin:5px 0 0; font-size:10px; color:var(--fwh-muted); }

/* Existing page compatibility */
body.fwh-shell .container-fluid { max-width:100% !important; }
body.fwh-shell main.container-fluid,
body.fwh-shell .content-wrapper > .container-fluid { padding-left:0 !important; padding-right:0 !important; }
body.fwh-shell .row { --bs-gutter-x: 1rem; }
body.fwh-shell h1, body.fwh-shell h2, body.fwh-shell h3, body.fwh-shell h4, body.fwh-shell h5, body.fwh-shell h6 { color:var(--fwh-ink); }
body.fwh-shell .text-primary { color:var(--fwh-brand-700) !important; }
body.fwh-shell .bg-primary { background:var(--fwh-brand) !important; }
body.fwh-shell .border-primary { border-color:#9bcbaa !important; }
body.fwh-shell .service-card .card-header,
body.fwh-shell .stat-card,
body.fwh-shell [class*="gradient"] { background:#fff !important; color:var(--fwh-ink) !important; }
body.fwh-shell .stat-card { border:1px solid var(--fwh-border) !important; border-radius:11px !important; box-shadow:var(--fwh-shadow-sm) !important; }
body.fwh-shell .stat-card::before { display:none !important; }
body.fwh-shell .stat-card h2, body.fwh-shell .stat-card h5 { color:var(--fwh-ink) !important; }
body.fwh-shell .stat-card .stat-icon { opacity:1 !important; transform:none !important; color:var(--fwh-brand) !important; }
body.fwh-shell .welcome-section { background:#fff !important; border:1px solid var(--fwh-border) !important; color:var(--fwh-ink) !important; box-shadow:var(--fwh-shadow-sm) !important; border-radius:var(--fwh-radius) !important; }
body.fwh-shell .welcome-section p { color:var(--fwh-muted) !important; }
body.fwh-shell .filter-tabs, body.fwh-shell .filter-bar, body.fwh-shell .search-section { background:#fff !important; border-color:var(--fwh-border) !important; box-shadow:none !important; }
body.fwh-shell [style*="linear-gradient"] { /* intentionally low specificity; component rules above win where required */ }

/* Search palette */
.fwh-search-wrap { position:relative; width:min(380px, 33vw); }
.fwh-search-input { width:100%; height:38px; padding:0 36px 0 36px; border:1px solid var(--fwh-border); border-radius:9px; background:#f7f9fb; color:var(--fwh-ink); font-size:12px; }
.fwh-search-input:focus { background:#fff; border-color:#9bcbaa; box-shadow:0 0 0 3px rgba(21,148,71,.08); outline:0; }
.fwh-search-icon { position:absolute; left:12px; top:50%; transform:translateY(-50%); color:#8794a6; pointer-events:none; }
.fwh-search-kbd { position:absolute; right:9px; top:50%; transform:translateY(-50%); color:#8b98aa; border:1px solid var(--fwh-border); background:#fff; border-radius:5px; padding:1px 5px; font-size:9px; }
.fwh-search-results { position:absolute; top:44px; left:0; right:0; background:#fff; border:1px solid var(--fwh-border); border-radius:10px; box-shadow:var(--fwh-shadow); padding:6px; display:none; max-height:380px; overflow:auto; z-index:1100; }
.fwh-search-results.show { display:block; }
.fwh-search-result { display:flex; gap:10px; align-items:center; padding:9px 10px; border-radius:7px; color:var(--fwh-ink); text-decoration:none; }
.fwh-search-result:hover, .fwh-search-result.active { background:#f2f6f4; color:var(--fwh-ink); }
.fwh-search-result i { width:18px; text-align:center; color:var(--fwh-brand); }
.fwh-search-result span { display:flex; flex-direction:column; min-width:0; }
.fwh-search-result strong { font-size:11px; }
.fwh-search-result small { color:var(--fwh-muted); font-size:9px; }

.fwh-mobile-backdrop { position:fixed; inset:var(--fwh-topbar) 0 0 0; background:rgba(13,22,32,.42); z-index:1030; opacity:0; visibility:hidden; transition:.18s ease; }
body.fwh-nav-open .fwh-mobile-backdrop { opacity:1; visibility:visible; }
.fwh-footer { margin-top:28px; padding:22px 0 4px; border-top:1px solid var(--fwh-border); color:var(--fwh-muted); font-size:11px; }
.fwh-footer-row { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.fwh-footer-links { display:flex; gap:14px; flex-wrap:wrap; }
.fwh-footer a { color:var(--fwh-muted); text-decoration:none; }
.fwh-footer a:hover { color:var(--fwh-ink); }

/* Responsive */
@media (max-width: 1240px) {
  .fwh-admin-ops { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .fwh-tool-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .fwh-kpi-grid, .fwh-admin .fwh-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .fwh-service-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .fwh-service-strip-item:nth-child(2) { border-right:0; }
  .fwh-service-strip-item:nth-child(-n+2) { border-bottom:1px solid var(--fwh-border); }
}
@media (max-width: 992px) {
  :root { --fwh-sidebar: 260px; }
  .fwh-global-tabs { display:none; }
  .fwh-search-wrap { display:none; }
  .fwh-menu-button { display:inline-flex; }
  .fwh-brand-link { width:auto; min-width:0; }
  .fwh-brand-context { display:none; }
  .fwh-sidebar { transform:translateX(-105%); transition:transform .2s ease; box-shadow:20px 0 45px rgba(16,26,36,.12); }
  body.fwh-nav-open .fwh-sidebar { transform:translateX(0); }
  body.fwh-nav-open { overflow:hidden; }
  .fwh-main { margin-left:0; }
  .fwh-content { padding:24px 22px 36px; }
  .fwh-dashboard-grid { grid-template-columns:1fr; }
  .fwh-health-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 768px) {
  .fwh-topbar-inner { padding:0 14px; gap:10px; }
  .fwh-brand-link img { width:126px; }
  .fwh-user-copy { display:none; }
  .fwh-content { padding:20px 15px 32px; }
  .fwh-page-head { flex-direction:column; align-items:stretch; margin-bottom:18px; }
  .fwh-page-head > .d-flex { width:100%; flex-wrap:wrap; }
  .fwh-site-hero { flex-direction:column; }
  .fwh-site-actions { width:100%; justify-content:flex-start; }
  .fwh-site-actions .btn, .fwh-site-actions form { flex:1 1 auto; }
  .fwh-resource-grid { grid-template-columns:1fr; }
  .fwh-admin-ops { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.fwh-shell .card-body, body.fwh-shell .content-card-body, .fwh-panel-body { padding:15px !important; }
}
@media (max-width: 520px) {
  .fwh-kpi-grid, .fwh-admin .fwh-kpi-grid { grid-template-columns:1fr 1fr; gap:9px; }
  .fwh-kpi { padding:12px; }
  .fwh-kpi-value { font-size:20px; }
  .fwh-service-strip { grid-template-columns:1fr; }
  .fwh-service-strip-item { border-right:0; border-bottom:1px solid var(--fwh-border); min-height:auto; }
  .fwh-service-strip-item:last-child { border-bottom:0; }
  .fwh-tool-grid, .fwh-grid-2, .fwh-grid-3, .fwh-grid-4, .fwh-health-grid { grid-template-columns:1fr; }
  .fwh-admin-ops { grid-template-columns:1fr 1fr; }
  .fwh-page-title { font-size:24px; }
}
@media (max-width: 360px) {
  .fwh-content { padding-left:11px; padding-right:11px; }
  .fwh-kpi-grid { grid-template-columns:1fr; }
  .fwh-admin-ops { grid-template-columns:1fr; }
  .fwh-topbar-actions { gap:2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}

/* v7 hosting workspace */
.fwh-panel-head-wrap { flex-wrap: wrap; gap: 12px; }
.fwh-list-controls { display: flex; align-items: center; gap: 10px; }
.fwh-list-controls .form-select { width: 170px; min-height: 40px; }
.fwh-inline-search { position: relative; width: min(320px, 42vw); }
.fwh-inline-search > i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--fwh-muted); pointer-events: none; }
.fwh-inline-search .form-control { padding-left: 36px; min-height: 40px; }
.fwh-hosting-list { display: grid; gap: 10px; }
.fwh-hosting-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.25fr) minmax(300px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--fwh-border);
  border-radius: 12px;
  background: var(--fwh-surface);
}
.fwh-hosting-row:hover { border-color: #c8d2df; box-shadow: var(--fwh-shadow-sm); }
.fwh-hosting-identity { display:flex; align-items:center; gap:12px; min-width:0; }
.fwh-hosting-identity > div { min-width: 0; }
.fwh-hosting-domain { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; color:var(--fwh-ink); font-size:15px; font-weight:750; text-decoration:none; white-space:nowrap; }
.fwh-hosting-domain:hover { color:var(--fwh-brand-700); }
.fwh-hosting-meta { display:flex; align-items:center; flex-wrap:wrap; gap:6px 9px; margin-top:5px; color:var(--fwh-muted); font-size:11px; }
.fwh-hosting-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.fwh-hosting-facts > div { min-width:0; }
.fwh-hosting-facts span { display:block; color:var(--fwh-muted); font-size:10px; font-weight:650; text-transform:uppercase; letter-spacing:.04em; }
.fwh-hosting-facts strong { display:block; margin-top:3px; color:var(--fwh-ink); font-size:12px; font-weight:720; overflow-wrap:anywhere; }
.fwh-hosting-facts small { display:block; margin-top:2px; font-size:10px; }
.fwh-hosting-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.fwh-hosting-actions form { margin:0; }

.fwh-anchor-tabs { position: sticky; top: var(--fwh-topbar); z-index: 1015; display:flex; gap:4px; margin:0 0 16px; padding:8px; overflow-x:auto; background:rgba(246,247,251,.96); border:1px solid var(--fwh-border); border-radius:12px; backdrop-filter:blur(10px); scrollbar-width:thin; }
.fwh-anchor-tabs a { flex:0 0 auto; padding:8px 12px; border-radius:8px; color:#526177; font-size:12px; font-weight:700; text-decoration:none; white-space:nowrap; }
.fwh-anchor-tabs a:hover, .fwh-anchor-tabs a.active { color:var(--fwh-brand-700); background:var(--fwh-brand-soft); }
.fwh-info-tile { display:flex; align-items:flex-start; gap:12px; min-height:104px; padding:16px; border:1px solid var(--fwh-border); border-radius:12px; background:var(--fwh-surface-2); }
.fwh-info-icon { flex:0 0 36px; width:36px; height:36px; display:grid; place-items:center; border-radius:10px; color:var(--fwh-info); background:var(--fwh-info-soft); }
.fwh-info-icon.success { color:var(--fwh-success); background:var(--fwh-success-soft); }
.fwh-info-tile span:not(.fwh-info-icon) { display:block; color:var(--fwh-muted); font-size:11px; font-weight:650; }
.fwh-info-tile strong { display:block; margin-top:2px; color:var(--fwh-ink); font-size:14px; }
.fwh-info-tile small { display:block; margin-top:4px; color:var(--fwh-muted); line-height:1.4; }
.fwh-detail-list { margin:0; display:grid; gap:0; }
.fwh-detail-list > div { display:grid; grid-template-columns:minmax(0, .8fr) minmax(0, 1.2fr); gap:12px; align-items:start; padding:10px 0; border-bottom:1px solid var(--fwh-border); }
.fwh-detail-list > div:first-child { padding-top:0; }
.fwh-detail-list > div:last-child { padding-bottom:0; border-bottom:0; }
.fwh-detail-list dt { color:var(--fwh-muted); font-size:11px; font-weight:650; }
.fwh-detail-list dd { margin:0; color:var(--fwh-ink); font-size:12px; font-weight:680; text-align:right; overflow-wrap:anywhere; }
.fwh-tool-grid form { display:block; margin:0; min-width:0; }
.fwh-tool-grid form .fwh-tool { width:100%; height:100%; text-align:left; }

@media (max-width: 1100px) {
  .fwh-hosting-row { grid-template-columns:minmax(220px,1fr) minmax(260px,1fr); }
  .fwh-hosting-actions { grid-column:1 / -1; justify-content:flex-start; padding-top:2px; }
}
@media (max-width: 767.98px) {
  .fwh-list-controls { width:100%; align-items:stretch; flex-direction:column; }
  .fwh-inline-search, .fwh-list-controls .form-select { width:100%; }
  .fwh-hosting-row { grid-template-columns:1fr; gap:14px; padding:14px; }
  .fwh-hosting-facts { grid-template-columns:repeat(3,minmax(0,1fr)); padding-top:12px; border-top:1px solid var(--fwh-border); }
  .fwh-hosting-actions { grid-column:auto; padding-top:0; }
  .fwh-anchor-tabs { top: calc(var(--fwh-topbar) + 2px); }
}
@media (max-width: 479.98px) {
  .fwh-hosting-facts { grid-template-columns:1fr 1fr; }
  .fwh-hosting-facts > div:first-child { grid-column:1 / -1; }
  .fwh-hosting-actions { display:grid; grid-template-columns:1fr 1fr; width:100%; }
  .fwh-hosting-actions :is(a,button,form) { width:100%; }
  .fwh-hosting-actions .btn { width:100%; }
  .fwh-detail-list > div { grid-template-columns:1fr; gap:3px; }
  .fwh-detail-list dd { text-align:left; }
}

/* Flatten legacy management-page decoration into the v7 control-panel system. */
body.fwh-shell .fwh-page-scope :is(.billing-hero,.domain-hero,.services-hero) {
  margin-bottom: 18px !important;
  padding: 18px 20px !important;
  background: var(--fwh-surface) !important;
  color: var(--fwh-ink) !important;
  border: 1px solid var(--fwh-border) !important;
  border-radius: var(--fwh-radius) !important;
  box-shadow: var(--fwh-shadow-sm) !important;
}
body.fwh-shell .fwh-page-scope :is(.billing-hero,.domain-hero,.services-hero) :is(h1,h2,h3,h4,p,span) { color: inherit !important; }
body.fwh-shell .fwh-page-scope :is(.stat-card,.stats-card,.billing-stat-card,.pricing-stat-card,.summary-card,.action-card,.info-card,.search-card,.filter-card,.table-card,.accounts-card,.limit-card,.options-card,.quick-add-card,.result-card) {
  background: var(--fwh-surface) !important;
  border: 1px solid var(--fwh-border) !important;
  border-radius: var(--fwh-radius) !important;
  box-shadow: var(--fwh-shadow-sm) !important;
  color: var(--fwh-ink) !important;
  transform: none !important;
}
body.fwh-shell .fwh-page-scope :is(.stat-card,.stats-card,.billing-stat-card,.pricing-stat-card,.summary-card,.action-card,.info-card):hover { transform:none !important; box-shadow:var(--fwh-shadow-sm) !important; }
body.fwh-shell .fwh-page-scope :is(.customers-header,.orders-header,.services-header,.domains-header,.invoices-header,.tickets-header,.payments-header,.packages-header,.servers-header,.logs-header,.settings-header,.announcements-header,.support-header,.docs-header,.changelog-header,.pricing-header,.check-header,.sync-header,.service-header,.ticket-header,.invoice-header,.server-header,.domain-header,.order-create-header,.customer-create-header,.server-edit-header,.domain-details-header,.invoice-details-header,.order-details-header,.ticket-details-header,.server-details-header) {
  margin-bottom: 20px !important;
  gap: 14px !important;
}
body.fwh-shell .fwh-page-scope :is(.customers-header,.orders-header,.services-header,.domains-header,.invoices-header,.tickets-header,.payments-header,.packages-header,.servers-header,.logs-header,.settings-header,.announcements-header,.support-header,.docs-header,.changelog-header,.pricing-header,.check-header,.sync-header,.service-header,.ticket-header,.invoice-header,.server-header,.domain-header,.order-create-header,.customer-create-header,.server-edit-header,.domain-details-header,.invoice-details-header,.order-details-header,.ticket-details-header,.server-details-header) h2 {
  color: var(--fwh-ink) !important;
  font-size: clamp(22px,2vw,28px) !important;
  font-weight: 760 !important;
  letter-spacing: -.02em !important;
}
body.fwh-shell .fwh-page-scope :is(.customers-header,.orders-header,.services-header,.domains-header,.invoices-header,.tickets-header,.payments-header,.packages-header,.servers-header,.logs-header,.settings-header,.announcements-header,.support-header,.docs-header,.changelog-header,.pricing-header,.check-header,.sync-header,.service-header,.ticket-header,.invoice-header,.server-header,.domain-header) p { color:var(--fwh-muted) !important; }
body.fwh-shell .fwh-page-scope :is(.quick-stats,.stats-grid,.stat-grid,.summary-cards,.pricing-stats,.domain-stats) { gap:12px !important; margin-bottom:18px !important; }
body.fwh-shell .fwh-page-scope :is(.services-search,.search-container,.docs-search) { background:#fff !important; border:1px solid var(--fwh-border) !important; box-shadow:none !important; border-radius:10px !important; }
body.fwh-shell .fwh-page-scope :is(.filter-tabs,.status-pill-row) { gap:6px !important; }
body.fwh-shell .fwh-page-scope .filter-tab { border-radius:8px !important; box-shadow:none !important; }
body.fwh-shell .fwh-page-scope .filter-tab.active { background:var(--fwh-brand-soft) !important; color:var(--fwh-brand-700) !important; border-color:#b9dcc5 !important; }
