/* ═══════════════════════════════════════════════
   COMERCIAL HOST — WHMCS Template Custom CSS
   Integrates dark theme from the main site
   ═══════════════════════════════════════════════ */

/* ── CSS Variables (match main site exactly) ── */
:root {
  --blue:#3b82f6; --blue2:#2563eb;
  --orange:#f97316; --orange2:#ea580c;
  --green:#22c55e; --green2:#16a34a;
  --muted:#64748b; --text:#e2e8f0;
  --border:#1e2530; --card:#161c24;
  --navy:#1a1e24; --navy2:#1e2530; --navy3:#252c38;
  --radius:10px; --radius-lg:16px;
}

/* ── Reset WHMCS defaults completely ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background: var(--navy) !important;
  color: var(--text) !important;
  font-family: 'Plus Jakarta Sans', 'Open Sans', Arial, sans-serif !important;
  margin: 0; padding: 0;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: #60a5fa; text-decoration: none; }

/* ── Hide WHMCS original header/nav/footer sections ── */
#header, #main-menu, #footer,
section#header, section#main-menu, section#footer { display: none !important; }

/* ── CH TopBar ── */
.ch-topbar {
  background: #0d1117;
  border-bottom: 1px solid var(--border);
  height: 36px;
  display: flex;
  align-items: center;
}
.ch-topbar .ch-tb-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  width: 100%; display: flex; justify-content: space-between; align-items: center;
}
.ch-topbar .ch-tb-left { display: flex; gap: 20px; }
.ch-topbar .ch-tb-left a, .ch-topbar .ch-tb-right a {
  color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 5px;
  transition: color .2s;
}
.ch-topbar .ch-tb-left a:hover, .ch-topbar .ch-tb-right a:hover { color: var(--text); }
.ch-topbar .ch-tb-right .wa-btn {
  background: #22c55e; color: #fff !important; border-radius: 20px;
  padding: 3px 12px; font-size: 11.5px; font-weight: 700;
}
.ch-topbar .ch-tb-right .wa-btn:hover { background: #16a34a; }

/* ── CH Header ── */
.ch-header {
  background: rgba(26,30,36,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
}
.ch-header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 32px; height: 64px;
}
.ch-logo img { height: 44px; width: auto; }
.ch-header-title {
  flex: 1; color: var(--muted); font-size: 13px;
  display: flex; align-items: center; gap: 8px;
}
.ch-header-title strong { color: var(--text); font-weight: 700; }
.ch-header-nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.ch-nav-link {
  color: var(--muted); font-size: 13px; padding: 6px 12px;
  border-radius: 7px; transition: all .2s; font-weight: 500;
}
.ch-nav-link:hover { color: var(--text); background: var(--navy2); }
.ch-btn-orange {
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--orange), var(--orange2));
  border-radius: 8px; font-size: 13px; font-weight: 700; color: #fff !important;
  transition: all .2s; box-shadow: 0 3px 12px rgba(249,115,22,.3);
  display: flex; align-items: center; gap: 6px;
}
.ch-btn-orange:hover { transform: translateY(-1px); box-shadow: 0 5px 20px rgba(249,115,22,.45); color: #fff !important; }
.ch-btn-outline {
  padding: 7px 16px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted) !important;
  transition: all .2s;
}
.ch-btn-outline:hover { border-color: var(--blue); color: var(--blue) !important; }

/* ── Main content area ── */
#main-body {
  background: var(--navy) !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}
#main-body > .row { margin: 0 !important; }
#main-body .main-content {
  max-width: 1100px;
  margin: 0 auto !important;
  padding: 40px 24px 60px !important;
  width: 100% !important;
  float: none !important;
}

/* ── Hide WHMCS sidebar (Categories panel in cart) ── */
#main-body .sidebar,
.col-md-3.pull-md-left.sidebar,
.categories-collapsed { display: none !important; }

/* When sidebar is hidden, main content takes full width */
#main-body .col-md-9.pull-md-right,
#main-body .col-xs-12 { width: 100% !important; float: none !important; }

/* ── Page header (breadcrumb/title area) ── */
.header-lined { border-bottom: 1px solid var(--border); margin-bottom: 28px; padding-bottom: 16px; }
.header-lined h1 {
  color: #fff; font-size: 26px; font-weight: 800; margin: 0 0 4px;
  letter-spacing: -.3px;
}
.header-lined h1 small { color: var(--muted); font-size: 14px; font-weight: 400; }
.breadcrumb { background: transparent !important; padding: 0 !important; margin: 0 0 8px !important; }
.breadcrumb > li + li::before { color: var(--muted) !important; }
.breadcrumb a { color: var(--blue) !important; }
.breadcrumb li.active { color: var(--muted) !important; }

/* ── Cards / Panels ── */
.panel {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.2) !important;
  margin-bottom: 20px;
}
.panel-heading {
  background: rgba(255,255,255,.03) !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
  padding: 14px 18px !important;
}
.panel-heading h3, .panel-title { color: var(--text) !important; font-size: 14px !important; font-weight: 700 !important; }
.panel-body { padding: 18px !important; color: var(--text); }
.panel-footer {
  background: rgba(255,255,255,.02) !important;
  border-top: 1px solid var(--border) !important;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
}

/* ── Forms ── */
.form-control {
  background: var(--navy2) !important;
  border: 1px solid var(--border) !important;
  border-radius: 9px !important;
  color: var(--text) !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  transition: border-color .2s, box-shadow .2s !important;
  height: auto !important;
}
.form-control:focus {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,.12) !important;
  outline: none !important;
  background: var(--navy3) !important;
}
.form-control::placeholder { color: var(--muted) !important; }
.form-group { margin-bottom: 18px; }
.control-label, label { color: var(--text) !important; font-size: 13.5px !important; font-weight: 600 !important; margin-bottom: 7px !important; }
.input-group-addon {
  background: var(--navy3) !important;
  border: 1px solid var(--border) !important;
  color: var(--muted) !important;
  border-radius: 9px 0 0 9px !important;
}
select.form-control { appearance: auto !important; }

/* ── Buttons ── */
.btn {
  border-radius: 9px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  font-size: 13.5px !important;
  padding: 9px 18px !important;
  transition: all .2s !important;
  border: none !important;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue2)) !important;
  color: #fff !important;
  box-shadow: 0 3px 12px rgba(59,130,246,.3) !important;
}
.btn-primary:hover { transform: translateY(-1px) !important; box-shadow: 0 5px 20px rgba(59,130,246,.45) !important; background: linear-gradient(135deg,#4f8ef7,var(--blue)) !important; color:#fff !important; }
.btn-default {
  background: var(--navy3) !important;
  border: 1px solid var(--border) !important;
  color: var(--muted) !important;
}
.btn-default:hover { border-color: var(--blue) !important; color: var(--blue) !important; background: var(--navy3) !important; }
.btn-success { background: linear-gradient(135deg,var(--green),var(--green2)) !important; color:#fff !important; }
.btn-danger { background: linear-gradient(135deg,#ef4444,#dc2626) !important; color:#fff !important; }
.btn-warning { background: linear-gradient(135deg,#f59e0b,#d97706) !important; color:#fff !important; }
.btn-info { background: linear-gradient(135deg,#06b6d4,#0891b2) !important; color:#fff !important; }
.btn-lg { padding: 12px 24px !important; font-size: 15px !important; }
.btn-block { width: 100% !important; }

/* ── Alerts ── */
.alert {
  border-radius: var(--radius) !important;
  border: 1px solid !important;
  padding: 14px 18px !important;
  font-size: 13.5px !important;
}
.alert-success { background: rgba(34,197,94,.1) !important; border-color: rgba(34,197,94,.3) !important; color: #4ade80 !important; }
.alert-danger, .alert-error { background: rgba(239,68,68,.1) !important; border-color: rgba(239,68,68,.3) !important; color: #f87171 !important; }
.alert-warning { background: rgba(245,158,11,.1) !important; border-color: rgba(245,158,11,.3) !important; color: #fbbf24 !important; }
.alert-info { background: rgba(59,130,246,.1) !important; border-color: rgba(59,130,246,.3) !important; color: #60a5fa !important; }

/* ── Tables ── */
.table { color: var(--text) !important; }
.table > thead > tr > th {
  background: var(--navy3) !important;
  border-bottom: 1px solid var(--border) !important;
  color: var(--muted) !important;
  font-size: 12px !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .04em;
  padding: 12px 14px !important;
}
.table > tbody > tr > td {
  border-top: 1px solid var(--border) !important;
  color: var(--text) !important;
  padding: 12px 14px !important;
  vertical-align: middle !important;
}
.table-striped > tbody > tr:nth-of-type(odd) { background: rgba(255,255,255,.02) !important; }
.table-hover > tbody > tr:hover { background: rgba(59,130,246,.05) !important; }
.table-bordered { border: 1px solid var(--border) !important; }
.table-bordered > tbody > tr > td, .table-bordered > thead > tr > th { border: 1px solid var(--border) !important; }

/* ── Tabs ── */
.nav-tabs { border-bottom: 1px solid var(--border) !important; }
.nav-tabs > li > a {
  color: var(--muted) !important;
  border: 1px solid transparent !important;
  border-radius: 9px 9px 0 0 !important;
  background: transparent !important;
  font-weight: 600 !important; font-size: 13.5px !important;
}
.nav-tabs > li > a:hover { border-color: var(--border) !important; color: var(--text) !important; background: var(--navy2) !important; }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:focus, .nav-tabs > li.active > a:hover {
  color: var(--blue) !important;
  border-color: var(--border) var(--border) var(--navy) !important;
  background: var(--navy) !important;
}
.tab-content { padding: 20px 0 !important; }

/* ── List groups ── */
.list-group-item {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  transition: background .2s !important;
}
.list-group-item:first-child { border-radius: var(--radius) var(--radius) 0 0 !important; }
.list-group-item:last-child { border-radius: 0 0 var(--radius) var(--radius) !important; }
.list-group-item:hover { background: var(--navy3) !important; color: var(--blue) !important; }
.list-group-item.active { background: var(--blue) !important; border-color: var(--blue) !important; color: #fff !important; }
.list-group-item + .list-group-item { border-top: 1px solid var(--border) !important; }

/* ── Login box ── */
.logincontainer {
  max-width: 460px;
  margin: 20px auto !important;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 36px 32px;
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
}
.logincontainer .header-lined h1 { font-size: 22px; }
.logincontainer .btn-primary { width: 100%; padding: 12px !important; font-size: 15px !important; }

/* ── Registration form ── */
.using-password-strength .panel { margin-bottom: 0; }
.pwstrength-wrapper { margin-top: 4px; }
.progress { background: var(--navy3) !important; border-radius: 4px !important; height: 6px !important; }
.progress-bar { border-radius: 4px !important; }

/* ── Shopping cart / order form ── */
#order-standard_cart { color: var(--text); }
#order-standard_cart .panel { margin-bottom: 16px; }
#order-standard_cart .domain-selection-options .option {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 10px;
}
#order-standard_cart .domain-selection-options .option label {
  color: var(--text) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
}
#order-standard_cart .spotlight-tld {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  padding: 14px 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  transition: border-color .2s;
}
#order-standard_cart .spotlight-tld:hover { border-color: var(--blue); }
#order-standard_cart .spotlight-tld-hot { border-color: rgba(59,130,246,.4) !important; }
#order-standard_cart .spotlight-tld .price { color: var(--green); font-size: 13px; font-weight: 700; }
#order-standard_cart .domain-checker-available { color: var(--green) !important; font-weight: 700; font-size: 16px; }
#order-standard_cart .domain-checker-unavailable { color: #f87171 !important; font-weight: 700; }
.domain-input-group { margin-top: 12px; }

/* ── Invoice / Quote ── */
.invoice-box { background: var(--card); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--border); }
.invoice-header { border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 20px; }

/* ── Modal ── */
.modal-content { background: var(--card) !important; border: 1px solid var(--border) !important; border-radius: var(--radius-lg) !important; }
.modal-header { background: var(--navy2) !important; border-bottom: 1px solid var(--border) !important; border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important; }
.modal-title { color: var(--text) !important; }
.modal-footer { background: var(--navy2) !important; border-top: 1px solid var(--border) !important; border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important; }
.close { color: var(--muted) !important; opacity: 1 !important; }
.close:hover { color: var(--text) !important; }

/* ── CH Footer ── */
.ch-footer {
  background: #0d1117;
  border-top: 1px solid var(--border);
  padding: 48px 24px 0;
}
.ch-footer-inner { max-width: 1280px; margin: 0 auto; }
.ch-ft-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.ch-fb p { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin-top: 12px; }
.ch-fcol h5 { color: var(--text); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.ch-fcol ul { list-style: none; padding: 0; margin: 0; }
.ch-fcol ul li { margin-bottom: 8px; }
.ch-fcol ul li a { color: var(--muted); font-size: 13px; transition: color .2s; }
.ch-fcol ul li a:hover { color: var(--blue); }
.ch-footer-bot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; flex-wrap: wrap; gap: 12px;
}
.ch-footer-bot p { color: var(--muted); font-size: 12px; margin: 0; }
.ch-footer-seals { display: flex; gap: 12px; }
.ch-seal {
  background: var(--navy2); border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 10px; font-size: 11px; color: var(--muted);
  display: flex; align-items: center; gap: 5px;
}
.ch-seal i { color: var(--green); }

/* ── Powered by line ── */
p[style*="text-align:center"] { color: var(--muted); font-size: 11px; margin-top: 20px; }
p[style*="text-align:center"] a { color: var(--muted); }

/* ── Checkbox / Radio ── */
input[type="checkbox"], input[type="radio"] { accent-color: var(--blue); }
.checkbox label, .radio label { color: var(--text) !important; font-weight: 400 !important; }

/* ── Dropdown ── */
.dropdown-menu {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.3) !important;
  padding: 6px !important;
}
.dropdown-menu > li > a { color: var(--text) !important; border-radius: 6px !important; padding: 8px 12px !important; transition: background .15s !important; }
.dropdown-menu > li > a:hover { background: var(--navy2) !important; color: var(--blue) !important; }
.nav-divider { background: var(--border) !important; }

/* ── Password strength ── */
#passwordStrengthBar .progress { margin-top: 6px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .ch-ft-grid { grid-template-columns: 1fr 1fr !important; gap: 24px; }
  .ch-fb { grid-column: 1 / -1; }
  .logincontainer { padding: 24px 18px; }
  .ch-header-nav .ch-nav-link { display: none; }
  #main-body .main-content { padding: 24px 16px 40px !important; }
}
@media (max-width: 480px) {
  .ch-ft-grid { grid-template-columns: 1fr !important; }
  .ch-footer-bot { flex-direction: column; text-align: center; }
}
