/* ==========================================================================
   AnitaPanel — hosting control panel UI
   ========================================================================== */

:root {
  --bg: #f3f6fa;
  --bg-accent: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --sidebar-bg: #0b1220;
  --sidebar-bg-2: #0f1a2e;
  --sidebar-text: #94a3b8;
  --sidebar-text-strong: #e2e8f0;
  --accent: #14b8a6;
  --accent-strong: #0f766e;
  --accent-soft: #ccfbf1;
  --accent-contrast: #ffffff;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --warning: #d97706;
  --warning-soft: #fef3c7;
  --success: #059669;
  --success-soft: #d1fae5;
  --info: #2563eb;
  --info-soft: #dbeafe;
  --violet: #7c3aed;
  --violet-soft: #ede9fe;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 30px 60px -30px rgba(15, 23, 42, 0.35);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  --sidebar-w: 258px;
}

.shell.area-whm {
  --accent: #14b8a6;
  --accent-strong: #0f766e;
  --accent-soft: #ccfbf1;
  --accent-contrast: #032726;
  --sidebar-bg: #0a1322;
  --sidebar-bg-2: #0e1c31;
}

.shell.area-cpanel {
  --accent: #f97316;
  --accent-strong: #c2410c;
  --accent-soft: #ffedd5;
  --accent-contrast: #ffffff;
  --sidebar-bg: #0f172a;
  --sidebar-bg-2: #172036;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--accent-strong); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
::selection { background: var(--accent-soft); color: var(--accent-strong); }

/* ---------- scrollbars ---------- */
* { scrollbar-width: thin; scrollbar-color: #c3ccd9 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #c3ccd9; border-radius: 8px; }
*::-webkit-scrollbar-track { background: transparent; }

/* ==========================================================================
   Auth / login
   ========================================================================== */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(480px, 0.95fr);
  background: #fff;
}
.auth-brand {
  position: relative;
  overflow: hidden;
  padding: 56px 60px;
  color: #f8fafc;
  background:
    radial-gradient(900px 600px at 10% -10%, rgba(20, 184, 166, 0.35), transparent 55%),
    radial-gradient(700px 500px at 100% 100%, rgba(249, 115, 22, 0.28), transparent 60%),
    linear-gradient(150deg, #07111f 0%, #0b1a2e 55%, #0d2233 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 40% 40%, #000 0%, transparent 78%);
  pointer-events: none;
}
.auth-brand > * { position: relative; z-index: 1; }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #2dd4bf, #0d9488);
  color: #04201d;
  box-shadow: 0 10px 30px -10px rgba(45, 212, 191, 0.65);
  flex: none;
}
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: #f1f5f9; }
.brand-sub { font-size: 10px; text-transform: uppercase; letter-spacing: 0.22em; color: #94a3b8; }
.sidebar-brand .brand-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-hero { max-width: 560px; margin: 64px 0 auto; }
.auth-hero h1 { font-size: clamp(34px, 3.6vw, 50px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 720; color: #f8fafc; }
.auth-hero h1 em { font-style: normal; color: #5eead4; }
.auth-hero p { margin-top: 20px; font-size: 16px; line-height: 1.65; color: #b7c4d6; max-width: 480px; }
.auth-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 540px; margin-top: 40px; }
.auth-feature { display: flex; gap: 11px; align-items: flex-start; padding: 14px; border-radius: 12px; border: 1px solid rgba(148, 163, 184, 0.16); background: rgba(15, 30, 50, 0.55); backdrop-filter: blur(6px); }
.auth-feature .icon-tile { width: 34px; height: 34px; border-radius: 9px; background: rgba(45, 212, 191, 0.14); color: #5eead4; display: grid; place-items: center; flex: none; }
.auth-feature strong { display: block; font-size: 13px; color: #e2e8f0; font-weight: 600; }
.auth-feature span { font-size: 12px; color: #8fa0b6; }
.auth-foot { margin-top: 48px; font-size: 12px; color: #7c8da4; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.auth-foot .dot { width: 4px; height: 4px; border-radius: 50%; background: #475569; }

.auth-panel { display: flex; align-items: center; justify-content: center; padding: 48px 40px; background:
  radial-gradient(500px 300px at 100% 0%, rgba(20, 184, 166, 0.08), transparent 70%), #fbfcfd; }
.auth-card { width: 100%; max-width: 408px; }
.auth-card h2 { font-size: 28px; letter-spacing: -0.025em; }
.auth-card .lead { color: var(--muted); margin-top: 8px; font-size: 14px; }
.auth-form { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.demo-box { margin-top: 26px; padding: 16px; border: 1px dashed var(--border-strong); border-radius: 12px; background: #fff; }
.demo-box-title { display: flex; justify-content: space-between; align-items: center; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 650; }
.demo-list { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.demo-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); transition: 0.15s; text-align: left; width: 100%; }
.demo-item:hover { border-color: var(--accent); background: var(--accent-soft); }
.demo-item .who { font-size: 12px; font-weight: 600; color: var(--text-2); }
.demo-item .creds { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.login-error { padding: 11px 13px; border-radius: 9px; background: var(--danger-soft); color: #991b1b; font-size: 13px; border: 1px solid #fecaca; }

/* ==========================================================================
   Shell / sidebar / topbar
   ========================================================================== */
.shell { display: flex; min-height: 100vh; background: var(--bg); }
.sidebar {
  width: var(--sidebar-w);
  flex: none;
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-2) 100%);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  border-right: 1px solid rgba(148, 163, 184, 0.08);
}
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 20px 20px 18px; border-bottom: 1px solid rgba(148, 163, 184, 0.1); }
.sidebar-brand .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
.sidebar-brand .brand-name { font-size: 16px; }
.sidebar-brand .brand-sub { font-size: 9px; }
.area-badge { margin-left: auto; font-size: 9px; font-weight: 700; letter-spacing: 0.12em; padding: 3px 7px; border-radius: 5px; background: rgba(148, 163, 184, 0.12); color: var(--sidebar-text); }
.nav-scroll { flex: 1; overflow-y: auto; padding: 14px 12px 20px; }
.nav-group { margin-bottom: 6px; }
.nav-label { padding: 12px 12px 6px; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; color: #56677d; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; margin: 1px 0;
  border-radius: 8px; border: 0; background: transparent;
  color: var(--sidebar-text); width: 100%; text-align: left;
  font-size: 13px; font-weight: 500; position: relative;
  transition: background 0.14s, color 0.14s;
}
.nav-item svg { flex: none; opacity: 0.8; }
.nav-item:hover { background: rgba(148, 163, 184, 0.1); color: var(--sidebar-text-strong); }
.nav-item.active { background: rgba(255, 255, 255, 0.07); color: #fff; }
.nav-item.active svg { color: var(--accent); opacity: 1; }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav-item .nav-count { margin-left: auto; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 1px 7px; background: rgba(148, 163, 184, 0.15); color: var(--sidebar-text); }
.sidebar-foot { padding: 14px 16px; border-top: 1px solid rgba(148, 163, 184, 0.1); font-size: 11px; color: #64748b; display: flex; align-items: center; gap: 8px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15); }

.main { margin-left: var(--sidebar-w); flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  height: 64px; flex: none;
  display: flex; align-items: center; gap: 14px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
}
.topbar-title { font-size: 14px; font-weight: 650; color: var(--text); }
.topbar-crumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.topbar-crumb .sep { color: var(--border-strong); }
.topbar-crumb strong { color: var(--text); font-weight: 600; }
.topbar-spacer { flex: 1; }
.icon-btn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid transparent; background: transparent; display: grid; place-items: center; color: var(--muted); transition: 0.14s; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.mobile-toggle { display: none; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 8px 5px 5px; border: 1px solid var(--border); border-radius: 10px; background: #fff; transition: 0.14s; }
.user-chip:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.avatar { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; font-weight: 700; font-size: 12px; letter-spacing: 0.02em; flex: none; }
.avatar.lg { width: 44px; height: 44px; border-radius: 12px; font-size: 15px; }
.avatar.sm { width: 26px; height: 26px; border-radius: 7px; font-size: 10px; }
.user-meta { line-height: 1.2; text-align: left; }
.user-meta strong { display: block; font-size: 12.5px; font-weight: 650; }
.user-meta span { font-size: 10.5px; color: var(--muted); text-transform: capitalize; }
.user-menu { position: relative; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 210px; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 6px; z-index: 60;
}
.menu-head { padding: 10px 11px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.menu-head strong { display: block; font-size: 13px; }
.menu-head span { font-size: 11.5px; color: var(--muted); }
.menu-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border-radius: 7px; border: 0; background: transparent; font-size: 12.5px; color: var(--text-2); text-align: left; }
.menu-item:hover { background: var(--surface-3); }
.menu-item.danger { color: var(--danger); }
.menu-item.danger:hover { background: #fef2f2; }
.menu-sep { height: 1px; background: var(--border); margin: 4px 0; }

.content { padding: 26px 28px 48px; width: 100%; max-width: 1540px; margin: 0 auto; }

.impersonation-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 28px;
  background: linear-gradient(90deg, #fff7ed, #fffbeb);
  border-bottom: 1px solid #fed7aa;
  color: #9a3412; font-size: 12.5px;
}
.impersonation-banner strong { font-weight: 700; }
.impersonation-banner .btn { margin-left: auto; }
.mobile-overlay { display: none; }

/* ==========================================================================
   Page primitives
   ========================================================================== */
.page-head { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; letter-spacing: -0.025em; font-weight: 700; }
.page-head .subtitle { color: var(--muted); font-size: 13px; margin-top: 5px; max-width: 680px; }
.page-head .actions { margin-left: auto; display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }

.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.span-2 { grid-column: span 2; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 26px; }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.mono { font-family: var(--mono); font-size: 12px; }
.strong { font-weight: 650; }
.text-right { text-align: right; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.card-head { display: flex; align-items: flex-start; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--border); }
.card-head.no-border { border-bottom: 0; padding-bottom: 0; }
.card-title { font-size: 14px; font-weight: 650; letter-spacing: -0.01em; }
.card-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.card-head .actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-body { padding: 20px; }
.card-body.flush { padding: 0; }
.card-body.tight { padding: 14px; }
.card-foot { padding: 13px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* stat cards */
.stat-card { position: relative; overflow: hidden; display: flex; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.stat-icon { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); }
.stat-icon.blue { background: var(--info-soft); color: var(--info); }
.stat-icon.violet { background: var(--violet-soft); color: var(--violet); }
.stat-icon.amber { background: var(--warning-soft); color: var(--warning); }
.stat-icon.red { background: var(--danger-soft); color: var(--danger); }
.stat-icon.green { background: var(--success-soft); color: var(--success); }
.stat-meta { min-width: 0; }
.stat-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); text-transform: uppercase; }
.stat-value { font-size: 25px; font-weight: 720; letter-spacing: -0.03em; line-height: 1.15; margin-top: 3px; }
.stat-foot { font-size: 11.5px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 5px; }
.trend-up { color: var(--success); font-weight: 600; }
.trend-down { color: var(--danger); font-weight: 600; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 9px;
  border: 1px solid transparent; font-size: 12.5px; font-weight: 600;
  background: var(--surface-3); color: var(--text-2);
  transition: 0.14s; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: #e9eef5; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: var(--accent-contrast); border-color: transparent; }
.btn.primary:hover { background: var(--accent-strong); color: #fff; }
.area-whm .btn.primary { color: #fff; }
.btn.dark { background: var(--text); color: #fff; }
.btn.dark:hover { background: #1e293b; }
.btn.outline { background: #fff; border-color: var(--border-strong); color: var(--text-2); }
.btn.outline:hover { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-3); color: var(--text); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:hover { background: #b91c1c; }
.btn.danger-soft { background: #fef2f2; color: var(--danger); border-color: #fecaca; }
.btn.danger-soft:hover { background: var(--danger-soft); }
.btn.success-soft { background: #ecfdf5; color: var(--success); border-color: #a7f3d0; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 11.5px; border-radius: 7px; gap: 5px; }
.btn.xs { height: 26px; padding: 0 8px; font-size: 11px; border-radius: 6px; }
.btn.lg { height: 42px; padding: 0 20px; font-size: 13.5px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn-icon { width: 30px; height: 30px; padding: 0; border-radius: 7px; display: inline-grid; place-items: center; border: 1px solid transparent; background: transparent; color: var(--muted); transition: 0.14s; }
.btn-icon:hover { background: var(--surface-3); color: var(--text); }
.btn-icon.danger:hover { background: #fef2f2; color: var(--danger); }
.btn-icon:disabled { opacity: 0.4; cursor: not-allowed; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 650; letter-spacing: 0.015em; background: var(--surface-3); color: var(--muted); white-space: nowrap; line-height: 1.6; }
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.green { background: var(--success-soft); color: #047857; }
.badge.amber { background: var(--warning-soft); color: #b45309; }
.badge.red { background: var(--danger-soft); color: #b91c1c; }
.badge.blue { background: var(--info-soft); color: var(--info); }
.badge.violet { background: var(--violet-soft); color: var(--violet); }
.badge.teal { background: var(--accent-soft); color: var(--accent-strong); }
.badge.orange { background: #ffedd5; color: #c2410c; }
.badge.slate { background: var(--surface-3); color: var(--muted); }
.badge.outline { background: transparent; border: 1px solid var(--border-strong); color: var(--muted); }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 11px; color: var(--muted); }
.field .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; height: 38px; padding: 0 11px;
  border: 1px solid var(--border-strong); border-radius: 8px;
  background: #fff; font-size: 13px; color: var(--text);
  outline: none; transition: 0.14s;
}
.textarea { height: auto; min-height: 92px; padding: 10px 11px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:disabled, .select:disabled { background: var(--surface-2); color: var(--muted); }
.input.mono { font-family: var(--mono); font-size: 12px; }
.select { appearance: none; 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='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 32px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .span-2 { grid-column: span 2; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.search-box { position: relative; min-width: 220px; flex: 0 1 300px; }
.search-box svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.search-box .input { padding-left: 34px; }
.toggle { display: inline-flex; align-items: center; cursor: pointer; gap: 9px; user-select: none; }
.toggle input { display: none; }
.toggle-track { width: 36px; height: 20px; border-radius: 999px; background: var(--border-strong); position: relative; transition: 0.16s; flex: none; }
.toggle-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: 0.16s; }
.toggle input:checked + .toggle-track { background: var(--accent); }
.toggle input:checked + .toggle-track::after { transform: translateX(16px); }
.toggle-label { font-size: 12.5px; color: var(--text-2); }

/* toolbars */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--surface); }
.toolbar .spacer { flex: 1; }
.filter-select { height: 34px; font-size: 12px; border-radius: 8px; min-width: 140px; width: auto; }

/* tables */
.table-wrap { width: 100%; overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.data th { text-align: left; padding: 10px 16px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background 0.1s; }
table.data tbody tr:hover { background: #fafcff; }
table.data td.right, table.data th.right { text-align: right; }
table.data .actions-cell { display: flex; gap: 2px; justify-content: flex-end; }
.cell-title { font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 7px; }
.cell-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.cell-stack { display: flex; flex-direction: column; }
.cell-row { display: flex; align-items: center; gap: 8px; }
.table-empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.table-empty svg { margin: 0 auto 10px; color: var(--border-strong); }
.th-sort { cursor: pointer; }
.actions { display: flex; align-items: center; gap: 6px; }

/* progress */
.progress { height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width 0.4s ease; }
.progress.thin { height: 5px; }
.progress.lg { height: 10px; }
.progress .amber { background: var(--warning); }
.progress .red { background: var(--danger); }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 7px; font-size: 12px; }
.progress-head .lbl { color: var(--muted); font-weight: 500; }
.progress-head .val { font-weight: 650; font-size: 11.5px; white-space: nowrap; }

/* tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); padding: 0 20px; background: var(--surface); overflow-x: auto; }
.tab { border: 0; background: transparent; padding: 12px 14px; font-size: 12.5px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent-strong); border-bottom-color: var(--accent); }
.tab .count { font-size: 10px; padding: 1px 6px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
.tab.active .count { background: var(--accent-soft); color: var(--accent-strong); }

/* modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(8, 15, 30, 0.55); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 7vh 20px 40px; overflow-y: auto; animation: fade 0.15s ease; }
.modal { width: 100%; max-width: 520px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); animation: pop 0.18s cubic-bezier(0.2, 0.9, 0.3, 1.1); }
.modal.wide { max-width: 760px; }
.modal.xwide { max-width: 960px; }
.modal.narrow { max-width: 420px; }
.modal-head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px 0; }
.modal-head h3 { font-size: 17px; letter-spacing: -0.02em; }
.modal-head p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.modal-head .icon-btn { margin-left: auto; margin-top: -4px; }
.modal-body { padding: 20px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 22px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 16px 16px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }

/* toasts */
.toast-host { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 9px; max-width: 380px; }
.toast { display: flex; align-items: flex-start; gap: 10px; background: #0f172a; color: #e2e8f0; padding: 12px 14px; border-radius: 11px; box-shadow: var(--shadow-lg); font-size: 12.5px; animation: toast-in 0.22s ease; border: 1px solid rgba(148, 163, 184, 0.2); }
.toast .t-icon { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex: none; background: rgba(52, 211, 153, 0.16); color: #34d399; }
.toast.error .t-icon { background: rgba(248, 113, 113, 0.16); color: #f87171; }
.toast.info .t-icon { background: rgba(96, 165, 250, 0.16); color: #60a5fa; }
.toast .t-close { margin-left: auto; background: none; border: 0; color: #64748b; cursor: pointer; padding: 0 2px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* empty state */
.empty { padding: 46px 24px; text-align: center; }
.empty .empty-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 14px; background: var(--surface-3); color: var(--muted-2); }
.empty h3 { font-size: 14px; font-weight: 650; }
.empty p { font-size: 12.5px; color: var(--muted); margin-top: 5px; max-width: 380px; margin-left: auto; margin-right: auto; }
.empty .btn { margin-top: 16px; }

/* spinner */
.spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; }
.spinner.lg { width: 30px; height: 30px; border-width: 3px; }
.loading-block { display: grid; place-items: center; padding: 60px; color: var(--muted); gap: 12px; font-size: 12.5px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* alerts */
.alert { display: flex; gap: 11px; padding: 12px 14px; border-radius: 10px; font-size: 12.5px; border: 1px solid; align-items: flex-start; }
.alert svg { flex: none; margin-top: 1px; }
.alert.info { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.alert.warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert.danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert.success { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.alert strong { font-weight: 650; }

/* misc */
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.breadcrumb .sep { color: var(--border-strong); }
.breadcrumb button { border: 0; background: none; padding: 0; color: var(--muted); font-size: 12px; }
.breadcrumb button:hover { color: var(--accent-strong); }
.breadcrumb .current { color: var(--text); font-weight: 600; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 600; text-align: right; }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.code-block { background: #0b1220; color: #cbd5e1; border-radius: 10px; padding: 14px 16px; font-family: var(--mono); font-size: 12px; overflow-x: auto; line-height: 1.7; }
.code-block .cmd { color: #5eead4; }
.code-block .cmd::before { content: "$ "; color: #64748b; }
.code-block .out { color: #94a3b8; }
.fs-item { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 12.5px; transition: background 0.1s; }
.fs-item:hover { background: var(--surface-2); }
.fs-item:last-child { border-bottom: 0; }
.fs-icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); flex: none; }
.fs-icon.dir { background: var(--accent-soft); color: var(--accent-strong); }
.fs-name { font-weight: 550; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-item .fs-actions { display: flex; gap: 2px; opacity: 0; transition: opacity 0.12s; }
.fs-item:hover .fs-actions { opacity: 1; }
.dot-status { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.dot-status.green { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14); }
.dot-status.amber { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14); }
.dot-status.red { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14); }
.service-row { display: flex; align-items: center; gap: 11px; padding: 11px 20px; border-bottom: 1px solid var(--border); }
.service-row:last-child { border-bottom: 0; }
.service-name { font-weight: 600; font-size: 12.5px; }
.service-sub { font-size: 11px; color: var(--muted); }
.segmented { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--surface-3); gap: 2px; }
.segmented button { border: 0; background: transparent; border-radius: 7px; padding: 5px 11px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.segmented button.active { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.quick-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.quick-app { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 15px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; transition: 0.15s; }
.quick-app:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.quick-app .qa-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); }
.quick-app span { font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.hero-band { position: relative; overflow: hidden; background: linear-gradient(120deg, #0b1220, #10263f 70%, #0f3a3a); color: #e2e8f0; border-radius: var(--radius-lg); padding: 26px 28px; border: 1px solid rgba(148,163,184,0.14); }
.hero-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 200px at 90% 0%, rgba(45,212,191,0.25), transparent 60%); pointer-events: none; }
.hero-band h2 { font-size: 22px; letter-spacing: -0.02em; color: #f8fafc; position: relative; }
.hero-band p { color: #94a3b8; font-size: 12.5px; margin-top: 4px; position: relative; }
.hero-band .row { position: relative; }
.area-cpanel .hero-band { background: linear-gradient(120deg, #101828, #1c1917 70%, #3b2413); }
.area-cpanel .hero-band::after { background: radial-gradient(600px 200px at 90% 0%, rgba(249, 115, 22, 0.28), transparent 60%); }
.chart-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); align-items: center; flex-wrap: wrap; }
.chart-legend .lg-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 5px; }
.chart-wrap { width: 100%; }
.chart-wrap svg { width: 100%; height: auto; overflow: visible; }
.chart-axis { font-size: 9.5px; fill: #94a3b8; font-family: var(--font); }
.chart-grid { stroke: #edf1f7; stroke-width: 1; }
.chart-tooltip { fill: #0f172a; }
.donut-wrap { display: flex; align-items: center; gap: 20px; }
.donut-center { font-size: 20px; font-weight: 700; fill: var(--text); }
.big-number { font-size: 32px; font-weight: 720; letter-spacing: -0.03em; }
.login-demo-hint { text-align: center; margin-top: 22px; font-size: 11px; color: var(--muted-2); }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.timeline { display: flex; flex-direction: column; }
.timeline-item { display: flex; gap: 12px; padding: 10px 0; position: relative; }
.timeline-item:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 30px; bottom: -2px; width: 1px; background: var(--border); }
.timeline-dot { width: 15px; height: 15px; border-radius: 50%; border: 3px solid var(--accent-soft); background: var(--accent); flex: none; margin-top: 2px; }
.timeline-body { min-width: 0; }
.timeline-body strong { font-size: 12.5px; display: block; }
.timeline-body span { font-size: 11.5px; color: var(--muted); }
.ticket-message { padding: 14px 16px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); margin-bottom: 10px; }
.ticket-message.staff { background: #f0fdfa; border-color: #99f6e4; }
.ticket-message .tm-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ticket-message .tm-head strong { font-size: 12px; }
.ticket-message .tm-head span { font-size: 11px; color: var(--muted); }
.ticket-message p { font-size: 12.5px; color: var(--text-2); line-height: 1.6; white-space: pre-wrap; }
.ticket-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 5px; }

@media (max-width: 1280px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-panel { min-height: 100vh; }
  .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-104%); transition: transform 0.22s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .mobile-toggle { display: grid; }
  .mobile-overlay { display: block; position: fixed; inset: 0; background: rgba(8, 15, 30, 0.5); z-index: 35; }
  .topbar { padding: 0 18px; }
  .content { padding: 20px 18px 42px; }
}
@media (max-width: 760px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .page-head .actions { width: 100%; margin-left: 0; }
  .user-meta { display: none; }
  .topbar-crumb { display: none; }
  .content { padding: 16px 14px 36px; }
  .card-head, .card-body, .toolbar { padding-left: 15px; padding-right: 15px; }
  .auth-panel { padding: 32px 22px; }
  .toast-host { left: 14px; right: 14px; bottom: 14px; max-width: none; }
  .modal-backdrop { padding: 20px 12px; }
  .impersonation-banner { padding: 9px 14px; }
}

/* print */
@media print {
  .sidebar, .topbar, .page-head .actions, .toast-host { display: none !important; }
  .main { margin-left: 0; }
  .card { box-shadow: none; }
}

/* ==========================================================================
   cPanel & WHM (Jupiter-inspired) theme
   ========================================================================== */

:root {
  --font: "Open Sans", "Segoe UI", Arial, sans-serif;
  --bg: #f2f2f2;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --surface-3: #f2f2f2;
  --border: #dedede;
  --border-strong: #c6c6c6;
  --text: #333333;
  --text-2: #444444;
  --muted: #767676;
  --muted-2: #999999;
  --brand: #ff6c2f;
  --accent: #1f7fb8;
  --accent-strong: #145f8c;
  --accent-soft: #e8f3fa;
  --accent-contrast: #ffffff;
  --danger: #c9302c;
  --danger-soft: #fbe9e7;
  --warning: #b57900;
  --warning-soft: #fdf3d9;
  --success: #1e8b55;
  --success-soft: #e6f5ec;
  --info: #1c6da8;
  --info-soft: #e8f3fa;
  --violet: #5b4b9e;
  --violet-soft: #efecf8;
  --radius: 2px;
  --radius-lg: 2px;
  --radius-sm: 2px;
  --shadow-sm: none;
  --shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.18);
  --sidebar-w: 272px;
}

body {
  font-size: 13px;
  color: #333;
  background: #f2f2f2;
}

h1, h2, h3, h4, h5 { font-weight: 500; letter-spacing: 0; }
a { color: #1c6da8; }
a:hover { text-decoration: underline; }

.shell.area-whm,
.shell.area-cpanel {
  --accent: #1f7fb8;
  --accent-strong: #145f8c;
  --accent-soft: #e8f3fa;
  --accent-contrast: #ffffff;
  --sidebar-bg: #202654;
  --sidebar-bg-2: #202654;
  --brand: #ff6c2f;
}

/* ---------- brand marks ---------- */
.cp-logo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -1.6px;
  line-height: 1;
  color: var(--brand);
  user-select: none;
}
.cp-logo .cp-word { font-size: 26px; }
.cp-logo .cp-bubble {
  width: 1.02em;
  height: 1.02em;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 0.5em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
}
.cp-logo.sm .cp-word { font-size: 22px; }
.cp-logo.lg .cp-word { font-size: 46px; }
.cp-logo.white .cp-word { color: #ffffff; }

.whm-logo {
  display: inline-flex;
  align-items: flex-start;
  gap: 2px;
  font-style: italic;
  font-weight: 900;
  font-size: 29px;
  letter-spacing: -2.2px;
  line-height: 1;
  color: #fff;
  transform: skewX(-5deg);
  user-select: none;
}
.whm-logo sup {
  font-size: 7px;
  font-style: normal;
  font-weight: 400;
  margin-top: 2px;
  letter-spacing: 0;
  transform: skewX(5deg);
}
.whm-logo.sm { font-size: 24px; }
.whm-logo.lg { font-size: 54px; letter-spacing: -4px; }

/* ---------- sidebar ---------- */
.sidebar {
  width: var(--sidebar-w);
  background: #202654;
  border-right: 0;
}
.sidebar-brand {
  height: 64px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  justify-content: flex-start;
  gap: 10px;
}
.sidebar-brand .brand-mark,
.sidebar-brand .brand-name,
.sidebar-brand .brand-sub,
.sidebar-brand .area-badge { display: none; }
.side-logo { display: flex; align-items: center; }

.side-tools {
  display: flex;
  gap: 6px;
  padding: 11px 16px 8px;
}
.side-tools .btn {
  flex: 1;
  height: 27px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: transparent;
  color: #fff;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 400;
}
.side-tools .btn:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.side-search { padding: 0 16px 11px; }
.side-search .input {
  height: 32px;
  background: #eeeef4;
  border: 1px solid #f4f4fa;
  color: #333;
  font-size: 12px;
  border-radius: 3px;
  padding: 0 10px;
}
.side-search .input::placeholder { color: #555; }
.side-search .input:focus { border-color: #fff; box-shadow: 0 0 0 1px #fff inset; outline: none; }

.nav-scroll { padding: 4px 0 16px; }
.nav-group { margin: 0; }
.nav-label {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px 6px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8f8bb6;
  cursor: pointer;
}
.nav-label:hover { color: #bbb8d5; }
.nav-label .chev { margin-left: auto; transition: transform 0.15s; opacity: 0.8; }
.nav-group.collapsed .nav-label .chev { transform: rotate(-90deg); }
.nav-group.collapsed .nav-item { display: none; }
.nav-item {
  width: 100%;
  margin: 0;
  padding: 7px 20px 7px 27px;
  border-radius: 0;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 400;
  color: #d6d4e8;
}
.nav-item svg { color: #9f9bc0; opacity: 1; width: 15px; height: 15px; }
.nav-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.nav-item.active { background: rgba(255, 255, 255, 0.11); color: #fff; }
.nav-item.active svg { color: #fff; opacity: 1; }
.nav-item.active::before {
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 0;
  background: var(--brand);
}
.nav-item .nav-count { background: rgba(255, 255, 255, 0.14); color: #dedcf0; font-size: 9.5px; }
.sidebar-foot {
  padding: 11px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 10.5px;
  color: #8f8bb6;
}

/* ---------- top bars ---------- */
.main { margin-left: var(--sidebar-w); }

.whm-meta {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 39px;
  padding: 5px 26px;
  background: #fff;
  border-bottom: 1px solid #e4e4e4;
  color: #8b8b8b;
  font-size: 10px;
  overflow: hidden;
}
.whm-meta .meta-item { display: flex; flex-direction: column; line-height: 1.3; white-space: nowrap; }
.whm-meta .meta-item b { color: #3a3a3a; font-weight: 500; font-size: 10.5px; }
.whm-meta .meta-right { margin-left: auto; display: flex; gap: 26px; align-items: center; }
.whm-meta .meta-right .meta-item { text-align: right; }

.topbar {
  height: 55px;
  padding: 0 26px;
  background: #fff;
  border-bottom: 1px solid #dedede;
  box-shadow: none;
  backdrop-filter: none;
  position: sticky;
  top: 0;
  z-index: 30;
}
.topbar-crumb { display: none; }
.topbar-title { display: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 13px; }

.global-search { position: relative; width: 370px; max-width: 44vw; }
.global-search .gs-box {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 7px 0 10px;
  background: #fff;
  border: 1px solid #bcbcbc;
  border-radius: 2px;
}
.global-search .gs-box:focus-within { border-color: #1f7fb8; box-shadow: 0 0 0 1px #1f7fb8 inset; }
.global-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 12.5px;
  color: #333;
}
.global-search input::placeholder { color: #8a8a8a; }
.global-search .gs-btn {
  border: 0;
  background: transparent;
  color: #555;
  display: grid;
  place-items: center;
  padding: 3px;
  cursor: pointer;
}
.search-pop {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #c3c3c3;
  border-radius: 2px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  z-index: 90;
  max-height: 330px;
  overflow-y: auto;
}
.search-result {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  background: none;
  text-align: left;
  font-size: 12.5px;
  color: #33678c;
  cursor: pointer;
}
.search-result:hover { background: #f2f8fc; }
.search-result small { margin-left: auto; color: #999; font-size: 10px; }
.search-empty { padding: 14px; font-size: 12px; color: #888; text-align: center; }

.notif-wrap { position: relative; }
.notif-btn { position: relative; }
.notif-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e53935;
  box-shadow: 0 0 0 2px #fff;
}
.notif-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 330px;
  background: #fff;
  border: 1px solid #c9c9c9;
  border-radius: 2px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  z-index: 90;
  overflow: hidden;
}
.notif-pop-head { padding: 11px 14px; border-bottom: 1px solid #e5e5e5; font-size: 12.5px; font-weight: 500; background: #fafafa; }
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid #eee;
  background: none;
  text-align: left;
  font-size: 11.5px;
  color: #555;
  cursor: pointer;
}
.notif-item:hover { background: #f7fafc; }
.notif-item .ni-icon {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: #eef5fb;
  color: #1f7fb8;
  display: grid;
  place-items: center;
}
.notif-item strong { display: block; font-weight: 500; color: #333; font-size: 12px; margin-bottom: 1px; }

.account-orb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #b9b9b9;
  background: #fff;
  color: #666;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}
.account-orb:hover { border-color: #1f7fb8; color: #1f7fb8; }

.user-menu { position: relative; }

/* ---------- content / headings ---------- */
.content { padding: 22px 28px 42px; max-width: 1760px; }
.page-head { margin-bottom: 16px; align-items: flex-end; }
.page-head h1 { font-size: 28px; font-weight: 400; letter-spacing: -0.3px; color: #242424; }
.page-head .subtitle { font-size: 12.5px; color: #777; margin-top: 5px; }
.page-head .actions { gap: 8px; }

.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}
.section-head h2 { font-size: 24px; font-weight: 400; color: #222; letter-spacing: -0.3px; }
.section-head .actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.section-head .link-btn { border: 0; background: none; color: #1c6da8; font-size: 12px; cursor: pointer; padding: 0; }
.section-head .link-btn:hover { text-decoration: underline; }

/* ---------- cards ---------- */
.card {
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  box-shadow: none;
  background: #fff;
}
.card-head {
  padding: 13px 16px;
  background: #fafafa;
  border-bottom: 1px solid #e7e7e7;
  align-items: center;
}
.card-title { font-size: 14px; font-weight: 500; color: #333; }
.card-sub { font-size: 11.5px; color: #777; margin-top: 2px; }
.card-body { padding: 16px; }
.card-body.tight { padding: 12px; }
.card-foot { padding: 11px 16px; background: #fafafa; border-top: 1px solid #e7e7e7; border-radius: 0 0 2px 2px; }

/* ---------- stats ---------- */
.stat-card {
  padding: 15px 17px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  box-shadow: none;
  gap: 12px;
  background: #fff;
}
.stat-icon { width: 36px; height: 36px; border-radius: 50%; }
.stat-label { font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; color: #777; }
.stat-value { font-size: 22px; font-weight: 400; letter-spacing: -0.2px; color: #222; }
.stat-foot { font-size: 10.5px; color: #888; }

/* ---------- buttons / inputs ---------- */
.btn {
  height: 32px;
  padding: 0 13px;
  border-radius: 2px;
  border: 1px solid #c6c6c6;
  background: #f4f4f4;
  color: #333;
  font-size: 12.5px;
  font-weight: 500;
}
.btn:hover { background: #eaeaea; }
.btn.primary { background: #1f7fb8; border-color: #1f7fb8; color: #fff; }
.btn.primary:hover { background: #145f8c; border-color: #145f8c; }
.area-whm .btn.primary { color: #fff; }
.btn.dark { background: #38455a; border-color: #38455a; color: #fff; }
.btn.outline { background: #fff; border-color: #c6c6c6; color: #333; }
.btn.outline:hover { background: #f5f9fc; border-color: #1f7fb8; color: #145f8c; }
.btn.ghost { background: transparent; border-color: transparent; color: #1c6da8; }
.btn.ghost:hover { background: #eef5fa; color: #145f8c; }
.btn.danger { background: #c9302c; border-color: #c9302c; color: #fff; }
.btn.danger:hover { background: #a92623; }
.btn.danger-soft { background: #fbe9e7; border-color: #efc5c1; color: #a92623; }
.btn.success-soft { background: #e6f5ec; border-color: #b8e0c8; color: #1e8b55; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 11.5px; }
.btn.xs { height: 24px; padding: 0 7px; font-size: 10.5px; }
.btn.lg { height: 38px; padding: 0 18px; font-size: 13px; }
.btn-icon { border-radius: 2px; color: #666; }
.btn-icon:hover { background: #f0f0f0; color: #222; }
.btn-icon.danger:hover { background: #fbe9e7; color: #c9302c; }

.badge {
  border-radius: 2px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}
.badge.teal { background: #e8f3fa; color: #145f8c; }
.badge.blue { background: #e8f3fa; color: #1c6da8; }
.badge.violet { background: #efecf8; color: #5b4b9e; }
.badge.orange { background: #fff0e8; color: #d2541e; }

.input, .select, .textarea {
  height: 34px;
  border: 1px solid #c2c2c2;
  border-radius: 2px;
  font-size: 12.5px;
  color: #333;
  background: #fff;
  padding: 0 9px;
}
.textarea { height: auto; padding: 8px 9px; }
.input:focus, .select:focus, .textarea:focus {
  border-color: #1f7fb8;
  box-shadow: 0 0 0 1px #1f7fb8 inset;
  outline: none;
}
.field > label { font-size: 12px; font-weight: 500; color: #555; }
.field .hint { font-size: 10.5px; color: #888; }
.toggle-track { background: #bdbdbd; }
.toggle input:checked + .toggle-track { background: #1f7fb8; }

/* ---------- tables / tabs ---------- */
table.data { font-size: 12.5px; }
table.data th {
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #666;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
}
table.data td { padding: 10px 14px; border-bottom: 1px solid #ededed; }
table.data tbody tr:hover { background: #f8fbfd; }
.cell-title { font-weight: 500; color: #333; }
.cell-sub { font-size: 11px; color: #888; }
.toolbar { padding: 10px 16px; background: #fafafa; border-bottom: 1px solid #e4e4e4; gap: 8px; }
.tabs { padding: 0 16px; border-bottom: 1px solid #ddd; background: #fff; }
.tab { padding: 10px 12px; font-size: 12.5px; font-weight: 400; color: #555; }
.tab:hover { color: #1c6da8; }
.tab.active { color: #1c6da8; border-bottom-color: #1f7fb8; font-weight: 500; }
.tab .count { background: #f0f0f0; color: #777; font-size: 9.5px; padding: 0 5px; border-radius: 2px; }
.tab.active .count { background: #e8f3fa; color: #1c6da8; }

.progress { height: 6px; border-radius: 0; background: #e9e9e9; }
.progress > span { border-radius: 0; background: #1f7fb8; }
.progress.thin { height: 4px; }
.progress-head { font-size: 11.5px; }
.progress-head .lbl { color: #666; }
.progress-head .val { font-weight: 500; color: #444; }

/* ---------- modal ---------- */
.modal { border-radius: 2px; }
.modal-head { padding: 16px 18px 0; }
.modal-head h3 { font-size: 16px; font-weight: 500; }
.modal-head p { font-size: 11.5px; color: #777; }
.modal-body { padding: 16px 18px; }
.modal-foot { padding: 12px 18px; background: #fafafa; border-radius: 0 0 2px 2px; border-top-color: #e3e3e3; }
.toast { border-radius: 2px; }
.empty .empty-icon { border-radius: 2px; background: #f1f1f1; }
.alert { border-radius: 2px; }
.segmented { border-radius: 2px; background: #f0f0f0; padding: 2px; }
.segmented button { border-radius: 2px; font-weight: 400; }
.segmented button.active { background: #fff; color: #1c6da8; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* ---------- cPanel Tools page ---------- */
.cp-tools-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  gap: 20px;
  align-items: start;
}
.cp-tools-left { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cp-tools-right { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cp-tools-title {
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: #252525;
  margin: 2px 0 20px;
}
.cp-feature-card .card-head { cursor: pointer; padding: 11px 16px; }
.cp-feature-card .card-head:hover { background: #f6f6f6; }
.cp-feature-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cp-feature-head .cfh-icon { width: 24px; height: 24px; color: #555; display: grid; place-items: center; flex: none; }
.cp-feature-head .cfh-title { font-size: 14px; font-weight: 500; color: #333; }
.cp-feature-head .cfh-chev { margin-left: auto; color: #888; transition: transform .15s; }
.cp-feature-card.collapsed .cfh-chev { transform: rotate(-90deg); }
.cp-feature-card.collapsed .cp-feature-grid { display: none; }
.cp-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cp-feature-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  background: none;
  text-align: left;
  color: #1c6da8;
  font-size: 12.5px;
  line-height: 1.35;
  cursor: pointer;
}
.cp-feature-link:hover { background: #f6fafd; text-decoration: underline; }
.cp-feature-link .fi { width: 28px; height: 28px; display: grid; place-items: center; color: #4d4d4d; flex: none; }
.cp-feature-link .fi svg { stroke-width: 1.5; }

.cp-info-card .card-title { font-size: 14px; }
.cp-info-value {
  background: #fbfbfb;
  border: 1px solid #d5d5d5;
  border-radius: 2px;
  padding: 6px 9px;
  font-size: 12px;
  color: #333;
  margin: 5px 0 12px;
}
.cp-info-row { padding: 8px 0; border-bottom: 1px solid #eee; }
.cp-info-row:last-child { border-bottom: 0; }
.cp-info-row .cir-label { font-size: 11.5px; color: #777; margin-bottom: 3px; }
.cp-info-row .cir-value { font-size: 12px; color: #333; word-break: break-word; }
.cp-info-row .cir-value a { color: #1c6da8; }
.cp-ssl-btn {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #b9d4e8;
  background: #eaf3fa;
  color: #1c6da8;
  border-radius: 2px;
  padding: 7px 10px;
  font-size: 12px;
  cursor: pointer;
}
.cp-ssl-btn:hover { background: #dcecf7; }
.cp-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #eee;
  font-size: 12px;
}
.cp-stat-row:last-child { border-bottom: 0; }
.cp-stat-row .csr-label { color: #666; }
.cp-stat-row .csr-value { color: #333; font-weight: 500; text-align: right; }
.cp-stat-row.warn .csr-value { color: #b57900; }

/* ---------- WHM Home ---------- */
.whm-home-title { font-size: 28px; font-weight: 400; color: #242424; letter-spacing: -0.3px; }
.next-steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.next-step {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #dadada;
}
.next-step .ns-logo { flex: none; padding-top: 1px; }
.next-step h3 { font-size: 13px; font-weight: 500; color: #222; }
.next-step p { font-size: 11.5px; color: #777; line-height: 1.45; margin-top: 3px; }
.next-step .ns-link { display: inline-flex; align-items: center; gap: 4px; color: #1c6da8; font-size: 11.5px; margin-top: 7px; background: none; border: 0; padding: 0; cursor: pointer; }
.next-step .ns-link:hover { text-decoration: underline; }

.whm-home-split { display: grid; grid-template-columns: minmax(0, 1fr) 304px; gap: 20px; align-items: start; }
.whm-home-left { min-width: 0; }
.whm-home-right { min-width: 0; }
.favorite-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; }
.favorite {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e0e0e0;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.favorite:hover { border-color: #b7d3e7; background: #f7fbfe; }
.favorite .fav-icon { width: 26px; height: 26px; flex: none; color: #4d4d4d; display: grid; place-items: center; }
.favorite h4 { font-size: 12.5px; font-weight: 500; color: #1c6da8; }
.favorite p { font-size: 10.5px; color: #777; line-height: 1.4; margin-top: 3px; }

.monitor-icons { display: flex; align-items: center; gap: 13px; font-size: 10.5px; color: #555; flex-wrap: wrap; }
.monitor-icons .mi { display: flex; align-items: center; gap: 5px; }
.monitor-card .card-body { padding: 0; }
.monitor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.monitor-col { padding: 15px 16px; border-right: 1px solid #e7e7e7; min-width: 0; }
.monitor-col:last-child { border-right: 0; }
.monitor-col h4 { font-size: 11.5px; font-weight: 500; color: #444; margin-bottom: 10px; }
.monitor-big { font-size: 24px; font-weight: 400; color: #222; }
.monitor-sub { font-size: 10.5px; color: #888; margin-top: 3px; }
.monitor-list { display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: #555; }
.monitor-list div { display: flex; justify-content: space-between; gap: 8px; }

.whm-tools-accordion { display: flex; flex-direction: column; gap: 0; }
.tool-group { border: 1px solid #dadada; background: #fff; margin-bottom: 6px; }
.tool-group-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 13px;
  color: #333;
  cursor: pointer;
}
.tool-group-head:hover { background: #fafafa; }
.tool-group-head .tg-icon { width: 22px; height: 22px; display: grid; place-items: center; color: #4d4d4d; flex: none; }
.tool-group-head .chev { margin-left: auto; color: #888; transition: transform .15s; }
.tool-group.open .tool-group-head .chev { transform: rotate(180deg); }
.tool-group-links { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #eee; padding: 6px 0; }
.tool-group.open .tool-group-links { display: grid; }
.tool-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 0;
  background: none;
  color: #1c6da8;
  text-align: left;
  font-size: 11.5px;
  cursor: pointer;
}
.tool-link:hover { background: #f6fafd; text-decoration: underline; }
.tool-link svg { color: #777; flex: none; }

/* ---------- footers ---------- */
.app-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 28px;
  border-top: 1px solid #dedede;
  background: #f4f4f4;
  font-size: 10.5px;
  color: #777;
}
.app-footer .ft-logo { font-style: italic; font-weight: 900; color: #201b4d; letter-spacing: -1px; font-size: 15px; }
.app-footer .ft-links { display: flex; gap: 16px; flex-wrap: wrap; }
.app-footer .ft-links a { color: #1c6da8; }
.app-footer .ft-spacer { flex: 1; }
.app-footer .ft-note { color: #999; }

/* ---------- login ---------- */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 24px;
  background: #f1f1f1;
  color: #333;
  position: relative;
}
.login-page.whm { background: #1f2e43; }
.login-switch {
  position: absolute;
  top: 16px;
  right: 22px;
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.06);
}
.login-switch button {
  border: 0;
  background: transparent;
  border-radius: 2px;
  padding: 5px 10px;
  font-size: 11px;
  color: #777;
  cursor: pointer;
}
.login-switch button.active { background: #fff; color: #222; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16); }
.login-page.whm .login-switch { background: rgba(255, 255, 255, 0.12); }
.login-page.whm .login-switch button { color: #cbd5e1; }
.login-page.whm .login-switch button.active { background: rgba(255, 255, 255, 0.92); color: #1f2e43; }
.login-wrap {
  width: 100%;
  max-width: 356px;
  margin-top: 11vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.login-logo { margin-bottom: 34px; }
.login-form { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.login-form .field { gap: 5px; }
.login-form label { font-size: 13px; font-weight: 500; color: #444; }
.login-page.whm .login-form label { color: #f1f5f9; }
.login-input { position: relative; }
.login-input .input { height: 36px; padding-left: 34px; border-radius: 2px; border-color: #c8c8c8; font-size: 13px; }
.login-input .li-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #999; }
.login-submit {
  height: 36px;
  border: 0;
  border-radius: 2px;
  background: #1e8ac7;
  color: #fff;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  margin-top: 2px;
}
.login-submit:hover { background: #1875aa; }
.login-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.login-error { padding: 8px 10px; border-radius: 2px; background: #fbe9e7; color: #a92623; font-size: 12px; border: 1px solid #efc5c1; }
.login-reset { border: 0; background: none; color: #1c6da8; font-size: 12px; cursor: pointer; padding: 3px; text-align: center; }
.login-reset:hover { text-decoration: underline; }
.login-page.whm .login-reset { color: #9dc9e8; }
.login-demo { margin-top: 26px; width: 100%; text-align: center; font-size: 10.5px; color: #8a8a8a; }
.login-page.whm .login-demo { color: #94a3b8; }
.login-demo-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.login-demo-buttons button {
  border: 1px solid #d0d0d0;
  background: #fff;
  border-radius: 2px;
  padding: 4px 8px;
  font-size: 10px;
  color: #555;
  cursor: pointer;
}
.login-demo-buttons button:hover { border-color: #1f7fb8; color: #1c6da8; }
.login-page.whm .login-demo-buttons button { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); color: #cbd5e1; }
.login-footer { margin-top: auto; padding-top: 40px; text-align: center; font-size: 10.5px; color: #888; }
.login-langs { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.login-copyright { font-size: 9.5px; color: #999; line-height: 1.7; }
.login-page.whm .login-footer { color: #7f93a8; }
.login-page.whm .login-copyright { color: #6f8398; }

/* ---------- responsive overrides ---------- */
@media (max-width: 1280px) {
  .cp-tools-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .whm-home-split { grid-template-columns: minmax(0, 1fr) 280px; }
  .cp-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .main { margin-left: 0; }
  .content { padding: 18px 18px 36px; }
  .whm-meta { display: none; }
  .topbar { padding: 0 18px; }
  .app-footer { padding: 12px 18px; }
  .sidebar { width: 272px; }
}
@media (max-width: 860px) {
  .cp-tools-layout,
  .whm-home-split { grid-template-columns: 1fr; }
  .next-steps-grid { grid-template-columns: 1fr; }
  .favorite-grid { grid-template-columns: 1fr; }
  .monitor-grid { grid-template-columns: 1fr; }
  .monitor-col { border-right: 0; border-bottom: 1px solid #e7e7e7; }
  .monitor-col:last-child { border-bottom: 0; }
  .tool-group-links { grid-template-columns: 1fr 1fr; }
  .global-search { width: 250px; }
}
@media (max-width: 620px) {
  .cp-feature-grid { grid-template-columns: 1fr; }
  .tool-group-links { grid-template-columns: 1fr; }
  .global-search { width: 170px; }
  .top-actions { gap: 7px; }
  .page-head h1 { font-size: 24px; }
  .cp-tools-title { font-size: 28px; }
  .section-head h2 { font-size: 21px; }
  .content { padding: 14px 14px 30px; }
  .login-wrap { margin-top: 7vh; }
  .login-switch { top: 10px; right: 12px; }
  .next-step { padding: 12px; }
}

.link-btn { border: 0; background: none; color: #1c6da8; font-size: 12px; cursor: pointer; padding: 0; }
.link-btn:hover { text-decoration: underline; }
.app-footer .link-btn { font-size: 10.5px; }
.whm-meta .status-dot { width: 6px; height: 6px; }

.ns-wm { font-style: italic; font-weight: 900; color: #201b4d; font-size: 15px; letter-spacing: -1px; line-height: 1; }
.cp-feature-head { width: 100%; border: 0; border-bottom: 1px solid #e7e7e7; background: #fafafa; font: inherit; text-align: left; }
.cp-feature-head:focus { outline: 1px dotted #1f7fb8; outline-offset: -2px; }
.cp-info-row a { display: inline-flex; align-items: center; gap: 4px; }
.app-footer .ft-links { align-items: center; }
.sidebar-brand .side-logo .cp-logo, .sidebar-brand .side-logo .whm-logo { color: #fff; }

.cp-logo.sm .cp-bubble { width: 21px; height: 21px; font-size: 11px; margin-left: 2px; }
.cp-logo.lg .cp-bubble { width: 44px; height: 44px; font-size: 23px; margin-left: 4px; }
.app-footer .whm-logo { color: #201b4d; font-size: 18px; letter-spacing: -1.4px; }

/* closer WHM sidebar categories */
.area-whm .nav-label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #e9e7f3;
  padding: 10px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.area-whm .nav-group:first-child .nav-label { border-top: 0; }
.area-whm .nav-label:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.area-whm .nav-group.collapsed .nav-label .chev { transform: rotate(-90deg); }
.area-whm .nav-item {
  font-size: 12px;
  color: #c8c5da;
  padding: 6px 20px 6px 36px;
}
.area-whm .nav-item > svg { display: none; }
.area-whm .nav-item.active { background: rgba(255, 255, 255, 0.1); color: #fff; }
.area-whm .side-tools .btn {
  border-color: #8d89aa;
  color: #fff;
  font-size: 12px;
  height: 31px;
}
.area-whm .side-tools .btn:hover { background: rgba(255, 255, 255, 0.08); }
.card-head { background: #fff; }
.cp-feature-head { background: #fff; }
.whm-meta { padding-top: 4px; padding-bottom: 4px; }

/* orange accents on tool icons */
.favorite .fav-icon,
.cp-feature-link .fi,
.cp-feature-head .cfh-icon { position: relative; }
.favorite .fav-icon::after,
.cp-feature-link .fi::after,
.cp-feature-head .cfh-icon::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff6c2f;
  border: 1px solid #fff;
}

/* login closer to cPanel/WHM */
.login-page { background: #f0eff0; }
.login-page.whm { background: #293a4a; }
.login-wrap { max-width: 292px; margin-top: 12vh; }
.login-logo { margin-bottom: 34px; }
.login-logo .cp-logo.lg .cp-word { font-size: 50px; letter-spacing: -2px; }
.login-form label { font-size: 14px; font-weight: 600; color: #333; }
.login-page.whm .login-form label { color: #fff; }
.login-input .input { height: 36px; font-size: 13px; }
.login-submit { height: 36px; font-size: 14px; }
.login-footer { margin-top: 54px; padding-top: 0; }
.login-langs { gap: 22px; margin-bottom: 20px; font-size: 12px; font-weight: 500; color: #3f3f3f; }
.login-page.whm .login-langs { color: #d5d5d5; }
.login-copyright { font-size: 10px; color: #777; }
.login-demo-inline { margin-top: 10px; font-size: 9.5px; color: #999; }
.login-page.whm .login-demo-inline { color: #8fa0b1; }
.login-demo-inline button { border: 0; background: none; color: #1c6da8; font-size: 9.5px; padding: 0 2px; cursor: pointer; }
.login-page.whm .login-demo-inline button { color: #b9d9ef; }
.login-demo-inline button:hover { text-decoration: underline; }
.login-license-inline { margin-top: 5px; font-size: 9.5px; color: #999; }
.login-license-inline a { color: #1c6da8; }
.login-license-inline a:hover { text-decoration: underline; }
.login-page.whm .login-license-inline { color: #8fa0b1; }
.login-page.whm .login-license-inline a { color: #b9d9ef; }
.login-page.whm .login-reset { display: none; }
.app-footer .whm-logo { color: #202654; }

/* cPanel main menu style */
.area-cpanel .nav-group-flat { padding-top: 2px; }
.area-cpanel .nav-group-flat .nav-item {
  font-size: 14px;
  color: #e8e6f2;
  padding: 9px 20px;
  gap: 11px;
}
.area-cpanel .nav-group-flat .nav-item svg { width: 18px; height: 18px; color: #cfcce0; }
.area-cpanel .nav-group-flat .nav-item.active { background: rgba(255, 255, 255, 0.12); }

.tabs { scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }

/* ---------- WHM Terminal / EasyApache / Feature Manager ---------- */
.terminal-card { border-radius: 2px; overflow: hidden; }
.terminal {
  background: #0d1a29;
  color: #d6e2ee;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  padding: 16px 18px;
  min-height: 540px;
  max-height: 72vh;
  overflow-y: auto;
}
.terminal-banner { color: #8fa8bd; margin-bottom: 10px; }
.terminal-line { white-space: pre-wrap; }
.terminal-command { margin-top: 6px; }
.t-prompt { color: #5eead4; font-weight: 600; white-space: nowrap; }
.t-cmd { color: #e2e8f0; }
.terminal-output,
.terminal-error {
  margin: 2px 0 10px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--mono);
  font-size: 12.5px;
  color: #c7d5e3;
}
.terminal-error { color: #fca5a5; }
.terminal-form {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #23364a;
  margin-top: 10px;
  padding-top: 10px;
}
.terminal-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e2e8f0;
  font-family: var(--mono);
  font-size: 12.5px;
}
.terminal-busy { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: #8fa8bd; }
.terminal-busy .spinner { width: 14px; height: 14px; border-color: #334155; border-top-color: #5eead4; }

.ea-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px 14px; }
.ea-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid #ececec;
  background: #fcfcfc;
  font-size: 12px;
  cursor: pointer;
}
.ea-option:hover { border-color: #cfe0ee; background: #f8fbfe; }
.ea-option input { margin-top: 2px; }
.ea-option strong { display: block; font-weight: 500; color: #333; }
.ea-option small { display: block; color: #888; font-size: 10.5px; margin-top: 1px; }
.ea-summary { padding: 6px 0; }
.ea-label { font-size: 11px; color: #777; }
.ea-value { font-size: 13px; color: #333; font-weight: 500; margin-top: 2px; }
.feature-group { border: 1px solid #ececec; padding: 10px 12px; margin-bottom: 10px; background: #fcfcfc; }
.feature-group h4 { font-size: 12px; font-weight: 600; color: #444; margin-bottom: 8px; }
.feature-group .ea-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 860px) {
  .ea-options, .feature-group .ea-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .ea-options, .feature-group .ea-options { grid-template-columns: 1fr; }
  .terminal { min-height: 420px; padding: 12px; }
}

/* EasyApache profile cards */
.ea-profiles { display: flex; flex-direction: column; gap: 0; }
.ea-profile { border-bottom: 1px solid #e7e7e7; padding: 14px 16px; }
.ea-profile:last-child { border-bottom: 0; }
.ea-profile-head { display: flex; align-items: center; gap: 9px; }
.ea-profile-head h4 { font-size: 13px; font-weight: 600; color: #333; }
.ea-profile p { font-size: 11.5px; color: #777; margin-top: 3px; }
.ea-profile-meta { font-size: 11px; color: #888; margin-top: 5px; }
.ea-profile-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }

/* File Manager toolbar */
.file-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 8px 10px;
  background: #fafafa;
  border-bottom: 1px solid #e5e5e5;
}
.file-tb-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 56px;
  padding: 6px 7px;
  border: 1px solid transparent;
  background: none;
  color: #555;
  font-size: 9.5px;
  line-height: 1.2;
  cursor: pointer;
}
.file-tb-btn:hover { background: #eef5fa; border-color: #d3e4f1; color: #1c6da8; }
.file-tb-btn svg { color: #4d4d4d; }
.file-pathbar { padding: 8px 16px; }
