/*
 * OHOST v6 – fixes after the first live review (October 2026).
 * Loaded after ohost.css. Uses the same --ohost-* tokens, so the dark theme
 * picks the new pieces up automatically.
 */

/* ------------------------------------------------------------------
   1. Client navigation: one line, no wrapping
------------------------------------------------------------------- */
@media (min-width: 992px) {
  .oh-clientnav-list { flex-wrap: nowrap; }
  .oh-clientnav-list > li > a { white-space: nowrap; padding: 16px 12px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .oh-clientnav-list > li > a { padding: 14px 9px; font-size: 0.88rem; }
}

/* breadcrumb: the separator before the current page was hidden */
.oh-page-hero .breadcrumb > li#active-link::before {
  display: inline !important;
  content: "›";
  position: static !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  background: none !important;
  color: rgba(255, 255, 255, 0.45);
  padding: 0 8px;
}

/* ------------------------------------------------------------------
   2. Login
------------------------------------------------------------------- */
.oh-body.tpl-login section#main-body.oh-main { padding: 56px 0 72px; }

.oh-auth { max-width: 1040px; margin: 0 auto; }

.oh-auth-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  background: var(--ohost-surface);
  border: 1px solid var(--ohost-line);
  border-top: 4px solid var(--ohost-accent);
}

.oh-auth-aside {
  display: flex;
  flex-direction: column;
  padding: 44px 40px;
  background: var(--ohost-ink);
  color: rgba(238, 246, 251, 0.82);
}

.oh-auth-logo img { height: 46px; width: auto; }
.oh-auth-aside h2 {
  margin: 36px 0 10px;
  color: #fff !important;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.oh-auth-aside > p { margin: 0 0 28px; font-size: 0.98rem; line-height: 1.55; }

.oh-auth-points { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.oh-auth-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}
.oh-auth-points i {
  flex: 0 0 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ohost-accent);
  font-size: 14px;
}
.oh-auth-points strong { display: block; color: #fff; font-size: 0.95rem; font-weight: 700; }
.oh-auth-aside-foot { margin-top: auto; padding-top: 28px; font-size: 0.82rem; color: rgba(238, 246, 251, 0.6); }
.oh-auth-aside-foot i { color: var(--ohost-success); margin-right: 6px; }

.oh-auth-main { padding: 44px 48px 36px; }
.oh-auth-head h1 {
  margin: 0 0 6px;
  font-size: 1.75rem !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ohost-ink-2) !important;
  text-transform: none !important;
}
.oh-auth-head p { margin: 0 0 26px; color: var(--ohost-text-soft); font-size: 0.95rem; }

.oh-field { margin-bottom: 20px; }
.oh-field label,
.oh-field-row label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.74rem !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ohost-ink-2);
}
.oh-field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.oh-auth-link { font-size: 0.85rem; font-weight: 600; color: var(--ohost-primary) !important; }
.oh-auth-link:hover { text-decoration: underline; }

.oh-input-icon { position: relative; }
.oh-input-icon > i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  color: var(--ohost-text-soft);
  font-size: 14px;
  pointer-events: none;
}
.oh-body .oh-input-icon .form-control {
  height: 52px;
  padding-left: 44px;
  font-size: 1rem;
  background: var(--ohost-surface);
  border: 1px solid var(--ohost-line-strong);
}
.oh-body .oh-input-icon .form-control:focus {
  border-color: var(--ohost-accent);
  box-shadow: 0 0 0 3px rgba(63, 158, 164, 0.18);
}
.oh-field.has-error .form-control { border-color: var(--ohost-danger) !important; }
.oh-field-error { display: none; margin-top: 6px; color: var(--ohost-danger); font-size: 0.83rem; }
.oh-field.has-error .oh-field-error { display: block; }

.oh-check { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-weight: 500 !important; cursor: pointer; }
.oh-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ohost-accent); }
.oh-check span { font-size: 0.93rem; text-transform: none; letter-spacing: 0; color: var(--ohost-text); }

.oh-auth-captcha { margin: 0 0 18px; }

.oh-body .btn.oh-auth-submit {
  width: 100%;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ohost-action) !important;
  border: 0 !important;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.oh-body .btn.oh-auth-submit:hover { background: var(--ohost-action-hover) !important; }

.oh-auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 18px;
  color: var(--ohost-text-soft);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.oh-auth-divider::before,
.oh-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--ohost-line); }

/* social sign-in buttons (WHMCS linked accounts) */
.oh-auth-providers .social-signin-btns { display: grid; gap: 10px; }
.oh-auth-providers .social-signin-btns > * { width: 100% !important; margin: 0 !important; }
.oh-auth-providers .btn-social {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.oh-auth-foot {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--ohost-line);
  color: var(--ohost-text-soft);
  font-size: 0.93rem;
  text-align: center;
}
.oh-auth-foot a { font-weight: 700; color: var(--ohost-primary) !important; }

@media (max-width: 991px) {
  .oh-auth-card { grid-template-columns: 1fr; }
  .oh-auth-aside { padding: 28px 24px; }
  .oh-auth-aside h2, .oh-auth-aside > p, .oh-auth-points, .oh-auth-aside-foot { display: none; }
  .oh-auth-main { padding: 32px 24px 28px; }
}

/* ------------------------------------------------------------------
   3. Password reveal (login, order form, anywhere with data-oh-reveal)
------------------------------------------------------------------- */
.oh-pw-wrap { position: relative; }
.oh-pw-wrap > .form-control { padding-right: 52px !important; }
.oh-pw-toggle {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  z-index: 3;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--ohost-line);
  background: transparent;
  color: var(--ohost-text-soft);
  cursor: pointer;
}
.oh-pw-toggle:hover,
.oh-pw-toggle[aria-pressed="true"] { color: var(--ohost-primary); background: var(--ohost-fill); }
.oh-pw-toggle:focus-visible { outline: 2px solid var(--ohost-accent); outline-offset: -2px; }

/* ------------------------------------------------------------------
   4. Dashboard: register-domain panel and equal-height panels
------------------------------------------------------------------- */
.oh-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.oh-home-grid > .panel {
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  min-width: 0;
}
.oh-home-grid > .panel > .panel-body,
.oh-home-grid > .panel > .list-group { flex: 1 1 auto; }
.oh-home-grid > .panel > .panel-footer { margin-top: auto; }
@media (max-width: 767px) { .oh-home-grid { grid-template-columns: 1fr; } }

.oh-body .client-home-panels [menuItemName="Register a New Domain"] .panel-body { padding: 22px 24px; }
.oh-body .client-home-panels [menuItemName="Register a New Domain"] .input-group {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin: 0 !important;
}
.oh-body .client-home-panels [menuItemName="Register a New Domain"] .input-group > .form-control {
  flex: 1 1 100%;
  width: 100% !important;
  height: 52px;
  padding: 0 16px 0 44px;
  font-size: 1rem;
  background: var(--ohost-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d7080' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 16px 50% / 17px;
  border: 1px solid var(--ohost-line-strong) !important;
  float: none;
}
.oh-body .client-home-panels [menuItemName="Register a New Domain"] .input-group > .form-control:focus {
  border-color: var(--ohost-accent) !important;
  box-shadow: 0 0 0 3px rgba(63, 158, 164, 0.18);
}
.oh-body .client-home-panels [menuItemName="Register a New Domain"] .input-group-btn {
  display: flex;
  flex: 1 1 100%;
  gap: 10px;
  width: 100%;
  white-space: normal;
}
.oh-body .client-home-panels [menuItemName="Register a New Domain"] .input-group-btn > .btn,
.oh-body .client-home-panels [menuItemName="Register a New Domain"] .input-group-btn > input {
  flex: 1 1 0;
  height: 46px;
  margin: 0 !important;
  border-radius: 0 !important;
}

/* ------------------------------------------------------------------
   5. Sidebar footers: "Pay" / "Add funds" buttons stack, never clip
------------------------------------------------------------------- */
.oh-sidebar .panel-sidebar > .panel-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.oh-sidebar .panel-sidebar > .panel-footer::before,
.oh-sidebar .panel-sidebar > .panel-footer::after { display: none; }
.oh-sidebar .panel-sidebar > .panel-footer [class*="col-"] {
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
}
.oh-sidebar .panel-sidebar > .panel-footer .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  white-space: normal;
  overflow: visible;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.oh-sidebar .panel-sidebar > .panel-footer .btn + .btn,
.oh-sidebar .panel-sidebar > .panel-footer .btn-default:not(:first-child) {
  background: transparent !important;
  border: 1px solid var(--ohost-line-strong) !important;
  color: var(--ohost-ink-2) !important;
}
.oh-sidebar .panel-sidebar > .panel-footer [class*="col-"] + [class*="col-"] .btn {
  background: transparent !important;
  border: 1px solid var(--ohost-line-strong) !important;
  color: var(--ohost-ink-2) !important;
}

/* ------------------------------------------------------------------
   6. Tables: full width, readable rows, square pagination
------------------------------------------------------------------- */
.oh-body.tpl-clientareadomains .tab-content,
.oh-body.tpl-clientareainvoices .tab-content {
  padding: 0;
  border: 0;
  background: transparent;
}
.oh-body .main-content .table-container .dataTables_wrapper { border: 0; }

.oh-body .dataTables_wrapper .listtable { overflow-x: auto; }
.oh-body .dataTables_wrapper table.dataTable,
.oh-body .dataTables_wrapper .listtable > table { width: 100% !important; min-width: 720px; }

.oh-body table.dataTable thead th {
  padding: 16px 18px !important;
  white-space: nowrap;
  vertical-align: middle !important;
}
.oh-body table.dataTable > tbody > tr > td { padding: 18px !important; }

#tableDomainsList > tbody > tr > td,
#tableInvoicesList > tbody > tr > td,
#tableQuotesList > tbody > tr > td { white-space: nowrap; }

#tableDomainsList > tbody > tr > td:nth-child(3) a { font-weight: 600; font-size: 1rem; }
#tableDomainsList .btn-group { width: auto !important; display: inline-flex; }
#tableDomainsList .btn-group > .btn { float: none; height: 38px; min-width: 38px; }
#tableDomainsList .ssl-info img { max-height: 28px; }

.oh-body .dataTables_wrapper .dataTables_filter label .form-control {
  border-radius: 0 !important;
  width: 280px;
  height: 42px;
  padding-left: 14px;
  background-image: none;
}

/* "With selected" bulk button under the domains table */
.oh-body.tpl-clientareadomains #domainForm .btn-group.margin-bottom,
.oh-body.tpl-clientareadomains #domainForm > .btn-group { margin-top: 16px; }

.oh-body .pagination > li > a,
.oh-body .pagination > li > span,
.oh-body .dataTables_wrapper .pagination > li > a,
.oh-body .dataTables_wrapper .pagination > li > span {
  border-radius: 0 !important;
  margin: 0 0 0 -1px !important;
  min-width: 42px;
  height: 42px;
}
.oh-body .pagination > li:first-child > a,
.oh-body .pagination > li:first-child > span { margin-left: 0 !important; }

/* ------------------------------------------------------------------
   7. Invoice payment card
------------------------------------------------------------------- */
.oh-paycard {
  background: var(--ohost-surface);
  border: 1px solid var(--ohost-line);
  border-top: 4px solid var(--ohost-accent);
  margin-bottom: 24px;
}
.oh-paycard-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--ohost-line);
}
.oh-paycard-ic {
  flex: 0 0 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ohost-fill);
  border: 1px solid var(--ohost-line);
  color: var(--ohost-primary);
  font-size: 19px;
}
.oh-paycard-title { flex: 1 1 auto; min-width: 0; }
.oh-paycard-title h3 { margin: 0 0 3px; font-size: 1.15rem !important; font-weight: 800; color: var(--ohost-ink-2) !important; text-transform: none !important; letter-spacing: -0.01em; }
.oh-paycard-title p { margin: 0; color: var(--ohost-text-soft); font-size: 0.88rem; }
.oh-paycard-brands { display: flex; gap: 8px; }
.oh-paycard-brands img { height: 28px; width: auto; border: 1px solid var(--ohost-line); background: #fff; padding: 3px 6px; }

.oh-paycard-body { padding: 26px; }
.oh-paycard-body .form-group { margin-left: 0; margin-right: 0; }
.oh-paycard-body .form-group > .control-label,
.oh-paycard-body .form-group > [class*="col-sm-"] {
  float: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  text-align: left !important;
}
.oh-paycard-body .control-label { margin-bottom: 8px; padding-top: 0 !important; }
.oh-paycard-body .checkbox label,
.oh-paycard-body label.checkbox-inline { text-transform: none !important; letter-spacing: 0 !important; font-weight: 500; }

.oh-paycard-body #btnSubmitContainer { margin: 22px 0 0; }
.oh-paycard-body #btnSubmitContainer .text-center { text-align: left; }
.oh-body .oh-paycard-body #btnSubmit {
  width: 100%;
  height: 54px;
  margin: 0 !important;
  background: var(--ohost-action) !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.oh-body .oh-paycard-body #btnSubmit:hover { background: var(--ohost-action-hover) !important; }
.oh-body .oh-paycard-body #btnSubmit .fa-lock { margin-right: 8px; }

.oh-paycard-foot {
  padding: 14px 26px;
  border-top: 1px solid var(--ohost-line);
  background: var(--ohost-fill);
  color: var(--ohost-text-soft);
  font-size: 0.85rem;
}
.oh-paycard-foot i { color: var(--ohost-success); margin-right: 6px; }

/* ------------------------------------------------------------------
   8. Shared: field hints, validation states, custom select
------------------------------------------------------------------- */
.oh-field-hint {
  display: block;
  margin-top: 7px;
  color: var(--ohost-text-soft);
  font-size: 0.82rem;
  line-height: 1.4;
}
.oh-field-hint.is-error { color: var(--ohost-danger); font-weight: 600; }
.oh-field-hint.is-error::before { content: "\f071"; font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-weight: 900; margin-right: 6px; }

.oh-body .form-group.has-error .form-control,
.oh-body .form-group.has-error .oh-sel-btn { border-color: var(--ohost-danger) !important; box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12) !important; }
.oh-body .form-group.is-valid .form-control { border-color: var(--ohost-success) !important; }
.oh-body .form-group.has-error > label,
.oh-body .form-group.has-error .wdes-main-label { color: var(--ohost-danger) !important; }

/* native selects that were replaced stay in the form, off screen */
select.oh-sel-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
select.oh-sel-native + .select2,
select.oh-sel-native + .select2-container { display: none !important; }

.oh-sel { position: relative; width: 100%; }
.oh-sel-btn {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--ohost-surface);
  border: 1px solid var(--ohost-line-strong);
  color: var(--ohost-text);
  font: inherit;
  font-size: 0.97rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.oh-sel-btn:hover { border-color: var(--ohost-primary); }
.oh-sel-btn:focus-visible,
.oh-sel.is-open .oh-sel-btn { outline: none; border-color: var(--ohost-accent); box-shadow: 0 0 0 3px rgba(63, 158, 164, 0.18); }
.oh-sel-val { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.oh-sel-val .oh-sel-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oh-sel-caret { color: var(--ohost-text-soft); font-size: 12px; transition: transform 160ms ease; }
.oh-sel.is-open .oh-sel-caret { transform: rotate(180deg); }

.oh-sel-price {
  flex: 0 0 auto;
  padding: 3px 8px;
  background: var(--ohost-fill);
  border: 1px solid var(--ohost-line);
  color: var(--ohost-primary);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.oh-sel-list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  display: none;
  max-height: 300px;
  overflow-y: auto;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: var(--ohost-surface);
  border: 1px solid var(--ohost-line-strong);
  border-top: 3px solid var(--ohost-accent);
  box-shadow: 0 14px 34px rgba(7, 20, 29, 0.14);
}
.oh-sel.is-open .oh-sel-list { display: block; }
.oh-sel-list:focus { outline: none; }
.oh-sel-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 12px 40px;
  position: relative;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--ohost-text);
}
.oh-sel-opt + .oh-sel-opt { border-top: 1px solid var(--ohost-line); }
.oh-sel-opt.is-active { background: var(--ohost-fill); }
.oh-sel-opt[aria-selected="true"] { font-weight: 700; color: var(--ohost-ink-2); }
.oh-sel-opt[aria-selected="true"]::before {
  content: "\f00c";
  position: absolute;
  left: 16px;
  font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 12px;
  color: var(--ohost-accent);
}
.oh-sel-opt[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }

html.oh-dark .oh-sel-list { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); }

/* ==================================================================
   v7 – second live review
   ================================================================== */

/* --- Dashboard: the last panel of an odd count spans the full width --- */
.oh-home-grid > .panel:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Sitejet / other home panels: buttons never get clipped */
.client-home-panels .panel-body { overflow: visible; }
.client-home-panels .panel-body form,
.client-home-panels .panel-body .d-flex { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.client-home-panels .panel-body .btn { white-space: nowrap; max-width: 100%; flex: 0 0 auto; }
.client-home-panels .panel-body select.form-control { width: auto; min-width: 200px; flex: 1 1 200px; height: 46px; }

/* --- Active services list: clearer buttons, cPanel logo --- */
.oh-body .div-service-item .div-service-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.oh-body .div-service-item .div-service-buttons > .btn-group { float: none; margin: 0 !important; display: inline-flex; }
.oh-body .div-service-item .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}
.oh-body .div-service-item .btn-group > .btn + .btn-group > .dropdown-toggle,
.oh-body .div-service-item .btn-group > .dropdown-toggle { padding: 0 12px; }
.oh-body .btn-custom-action[data-identifier*="cpanel" i]::before,
.oh-body .btn-custom-action[data-identifier*="whm" i]::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-color: #ff6c2c;
  -webkit-mask: url("../img/ohost/cpanel.svg") center / contain no-repeat;
  mask: url("../img/ohost/cpanel.svg") center / contain no-repeat;
}
.oh-body .btn-custom-action[data-identifier*="webmail" i]::before {
  content: "\f0e0";
  font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--ohost-accent);
}
.oh-body .btn-custom-action[data-identifier*="sitejet" i]::before {
  content: "\f5aa";
  font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
  font-weight: 900;
}
.oh-body .div-service-item .btn-view-details .fa-info-circle { display: none; }

/* --- Registration: currency --- */
.oh-currency-field > label { display: block; }

/* --- Service details page --- */
.oh-svc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  margin-bottom: 24px;
  padding: 22px 24px;
  background: var(--ohost-surface);
  border: 1px solid var(--ohost-line);
  border-top: 4px solid var(--ohost-accent);
}
.oh-svc-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.oh-svc-ic {
  flex: 0 0 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ohost-ink);
  color: #fff;
  font-size: 20px;
}
.oh-svc-name { min-width: 0; }
.oh-svc-name h2 { margin: 0 0 4px; font-size: 1.3rem !important; font-weight: 800; color: var(--ohost-ink-2) !important; text-transform: none !important; letter-spacing: -0.01em; }
.oh-svc-name p { margin: 0; color: var(--ohost-text-soft); font-size: 0.92rem; }
.oh-svc-name a { font-weight: 600; }
.oh-svc-status {
  align-self: flex-start;
  padding: 5px 10px;
  border: 1px solid currentColor;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ohost-text-soft);
}
.oh-svc-status-active { color: var(--ohost-success); background: rgba(40, 167, 69, 0.08); }
.oh-svc-status-suspended, .oh-svc-status-terminated, .oh-svc-status-cancelled { color: var(--ohost-danger); background: rgba(220, 53, 69, 0.06); }
.oh-svc-status-pending { color: #b7791f; background: rgba(240, 173, 78, 0.1); }
.oh-svc-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 0; }
.oh-svc-facts > div { padding: 2px 22px; border-left: 1px solid var(--ohost-line); }
.oh-svc-facts > div:first-child { padding-left: 0; border-left: 0; }
.oh-svc-facts dt { margin-bottom: 4px; color: var(--ohost-text-soft); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.oh-svc-facts dd { margin: 0; color: var(--ohost-ink-2); font-size: 1rem; font-weight: 700; white-space: nowrap; }
.oh-svc-facts dd small { color: var(--ohost-text-soft); font-weight: 500; }
@media (max-width: 767px) {
  .oh-svc-facts > div { padding: 8px 0; border-left: 0; flex: 1 1 50%; }
}

/* module output (cPanel overview) */
.oh-body.tpl-clientareaproductdetails .main-content .wdes-block > .tab-content { padding: 0; border: 0; background: transparent; }
.oh-body.tpl-clientareaproductdetails #tabOverview > .row { display: flex; flex-wrap: wrap; }
.oh-body.tpl-clientareaproductdetails #tabOverview > .row > [class*="col-md-"] { display: flex; flex-direction: column; }
.oh-body.tpl-clientareaproductdetails #tabOverview > .row > [class*="col-md-"] > .panel { flex: 1 1 auto; }

.oh-body.tpl-clientareaproductdetails #tabOverview .panel {
  margin-bottom: 24px;
  background: var(--ohost-surface) !important;
  border: 1px solid var(--ohost-line) !important;
}
.oh-body.tpl-clientareaproductdetails #tabOverview .panel > .panel-heading {
  padding: 16px 22px !important;
  background: var(--ohost-surface) !important;
  border-bottom: 1px solid var(--ohost-line) !important;
}
.oh-body.tpl-clientareaproductdetails #tabOverview .panel > .panel-body {
  padding: 24px 22px !important;
  background: var(--ohost-surface) !important;
}

/* package / Sitejet panel */
.oh-body #tabOverview #cPanelPackagePanel .panel-body > .row { display: flex; flex-wrap: wrap; align-items: center; }
.oh-body #tabOverview #cPanelPackagePanel img#sitejetPublishPreview,
.oh-body #tabOverview #cPanelPackagePanel .panel-body img {
  max-width: 100%;
  border: 1px solid var(--ohost-line);
  background: #fff;
}
.oh-body #tabOverview .cpanel-package-details { justify-content: flex-start; text-align: left; gap: 4px; }
.oh-body #tabOverview .cpanel-package-details::before { display: none !important; }
.oh-body #tabOverview .cpanel-package-details em,
.oh-body #tabOverview .cpanel-package-details h4 { font-family: var(--ohost-font); font-size: 1.15rem; line-height: 1.4; color: var(--ohost-ink-2); }
.oh-body #tabOverview .cpanel-package-details > a { font-weight: 600; }
.oh-body #tabOverview #cPanelPackagePanel .panel-body { text-align: left; }
.oh-body #tabOverview #cPanelPackagePanel p { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.oh-body #tabOverview #cPanelPackagePanel p a,
.oh-body #tabOverview #cPanelPackagePanel p .btn,
.oh-body #tabOverview #cPanelExtrasPurchasePanel form.form-inline .btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  margin: 0 !important;
  padding: 0 20px !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 1px solid var(--ohost-ink-2) !important;
  color: var(--ohost-ink-2) !important;
  font-family: var(--ohost-font) !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
}
.oh-body #tabOverview #cPanelPackagePanel p a:hover,
.oh-body #tabOverview #cPanelPackagePanel p .btn:hover,
.oh-body #tabOverview #cPanelExtrasPurchasePanel form.form-inline .btn:hover { background: var(--ohost-fill) !important; }
.oh-body #tabOverview #cPanelPackagePanel p .btn-primary,
.oh-body #tabOverview #cPanelPackagePanel #sitejetEditBtn,
.oh-body #tabOverview #cPanelExtrasPurchasePanel form.form-inline .btn {
  background: var(--ohost-ink) !important;
  border-color: var(--ohost-ink) !important;
  color: #fff !important;
}
.oh-body #tabOverview #cPanelPackagePanel #sitejetEditBtn:hover,
.oh-body #tabOverview #cPanelExtrasPurchasePanel form.form-inline .btn:hover { background: var(--ohost-primary) !important; border-color: var(--ohost-primary) !important; }
html.oh-dark .oh-body #tabOverview #cPanelPackagePanel #sitejetEditBtn,
html.oh-dark .oh-body #tabOverview #cPanelExtrasPurchasePanel form.form-inline .btn { background: var(--ohost-accent) !important; border-color: var(--ohost-accent) !important; }

/* addons & extras */
.oh-body #tabOverview #cPanelExtrasPurchasePanel .panel-body { text-align: left; width: 100%; }
.oh-body #tabOverview #cPanelExtrasPurchasePanel form.form-inline { display: flex !important; flex-direction: column; align-items: stretch; gap: 10px; }
.oh-body #tabOverview #cPanelExtrasPurchasePanel form.form-inline .form-control,
.oh-body #tabOverview #cPanelExtrasPurchasePanel form.form-inline .btn { width: 100% !important; margin: 0 !important; }
.oh-body #tabOverview #cPanelExtrasPurchasePanel form.form-inline .form-control { height: 46px !important; }

/* usage */
.oh-body #tabOverview .cpanel-usage-stats canvas { background: transparent !important; padding: 0 !important; }
.oh-body #tabOverview input.usage-dial { color: var(--ohost-ink-2) !important; font-weight: 800 !important; }
.oh-body #tabOverview #cPanelUsagePanel #diskUsage > strong,
.oh-body #tabOverview #cPanelUsagePanel #bandwidthUsage > strong { font-family: var(--ohost-font); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ohost-text-soft); }
.oh-body #tabOverview #cPanelUsagePanel #diskUsage,
.oh-body #tabOverview #cPanelUsagePanel #bandwidthUsage { font-family: var(--ohost-font); font-weight: 600; color: var(--ohost-ink-2); }
.oh-body #tabOverview #cPanelUsagePanel .text-info { color: var(--ohost-text-soft); font-size: 0.82rem !important; }

/* quick shortcuts as tiles */
.oh-body #tabOverview .cpanel-feature-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.oh-body #tabOverview .cpanel-feature-row::before,
.oh-body #tabOverview .cpanel-feature-row::after { display: none; }
.oh-body #tabOverview .cpanel-feature-row > div { float: none; width: auto; margin: 0 !important; padding: 0; }
.oh-body #tabOverview .cpanel-feature-row a {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  min-height: 118px;
  margin: 0 !important;
  padding: 16px 10px;
  border: 1px solid var(--ohost-line);
  background: var(--ohost-surface);
  color: var(--ohost-ink-2);
  font-family: var(--ohost-font);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
}
.oh-body #tabOverview .cpanel-feature-row a:hover { border-color: var(--ohost-accent); background: var(--ohost-fill); color: var(--ohost-primary); }
.oh-body #tabOverview .cpanel-feature-row img { width: 40px; height: 40px; margin: 0 !important; object-fit: contain; }

/* "Generate renewal invoice" addon button (inline styles in the hook) */
#s10_geninvbutton, #s10_geninv { padding: 0 0 20px !important; }
#s10_geninvbutton input.button,
#s10_geninv input.button {
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--ohost-ink-2) !important;
  border-radius: 0 !important;
  background: var(--ohost-surface) !important;
  color: var(--ohost-ink-2) !important;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
#s10_geninvbutton input.button:hover,
#s10_geninv input.button:hover { background: var(--ohost-fill) !important; }

/* --- My domains: fit the table into its column --- */
.oh-body .dataTables_wrapper table.dataTable,
.oh-body .dataTables_wrapper .listtable > table { min-width: 0; }
#tableDomainsList > tbody > tr > td { white-space: normal; padding: 16px 12px !important; }
#tableDomainsList > thead > tr > th { padding: 14px 12px !important; letter-spacing: 0.06em; }
#tableDomainsList > tbody > tr > td:nth-child(4),
#tableDomainsList > tbody > tr > td:nth-child(5),
#tableDomainsList > tbody > tr > td:nth-child(6),
#tableDomainsList > tbody > tr > td:nth-child(8) { white-space: nowrap; }
#tableDomainsList .label.status { white-space: normal; line-height: 1.3; text-align: left; max-width: 150px; }
#tableDomainsList > tbody > tr > td:nth-child(2) { width: 40px; padding-left: 0 !important; padding-right: 0 !important; }

/* ==================================================================
   v8 – third live review
   ================================================================== */

/* Active services: status | name | buttons; buttons wrap below the name, never over it */
.oh-body .div-service-item {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.oh-body .div-service-item .div-service-status { flex: 0 0 auto; width: auto !important; margin: 0 !important; }
.oh-body .div-service-item .div-service-status .label-placeholder { display: none !important; }
.oh-body .div-service-item .div-service-name {
  flex: 1 1 240px;
  min-width: 200px;
  width: auto !important;
  margin: 0 !important;
  overflow: hidden;
}
.oh-body .div-service-item .div-service-name > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ohost-ink-2) !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.oh-body .div-service-item .div-service-name .font-weight-bold { font-weight: 700; font-size: 0.97rem; }
.oh-body .div-service-item .div-service-name .text-domain { color: var(--ohost-primary) !important; font-size: 0.88rem; }
.oh-body .div-service-item .div-service-buttons { flex: 0 1 auto; margin-left: auto; width: auto !important; }

/* --- Dark theme: hand-tuned on top of ohost-dark-auto.css --- */
html.oh-dark body.oh-body { background-color: #0a131a !important; }
html.oh-dark .oh-body .main-content > .wdes-block,
html.oh-dark .oh-body .main-content .logincontainer,
html.oh-dark .oh-body #registration,
html.oh-dark .oh-body .main-content > form,
html.oh-dark .oh-body .main-content > div > form { background-color: var(--ohost-surface) !important; border-color: var(--ohost-line) !important; }

/* labels and section headings stay readable */
html.oh-dark .oh-body label,
html.oh-dark .oh-body .control-label,
html.oh-dark .oh-body .sub-heading span,
html.oh-dark .oh-body #registration label,
html.oh-dark .oh-body .main-content .form-group > label { color: var(--ohost-text-soft) !important; }
html.oh-dark .oh-body .sub-heading span { background: transparent !important; color: var(--ohost-text) !important; }

/* form controls */
html.oh-dark .oh-body .form-control,
html.oh-dark .oh-body select,
html.oh-dark .oh-body textarea,
html.oh-dark .oh-body input[type="text"],
html.oh-dark .oh-body input[type="email"],
html.oh-dark .oh-body input[type="password"],
html.oh-dark .oh-body input[type="number"],
html.oh-dark .oh-body input[type="tel"] {
  background-color: #0b151d !important;
  border-color: var(--ohost-line-strong) !important;
  color: var(--ohost-text) !important;
}
html.oh-dark .oh-body .form-control::placeholder,
html.oh-dark .oh-body input::placeholder,
html.oh-dark .oh-body textarea::placeholder { color: #6f8796 !important; }
html.oh-dark .oh-body .form-control:focus { border-color: var(--ohost-accent) !important; }
html.oh-dark .oh-body .form-control[disabled],
html.oh-dark .oh-body .form-control[readonly] { background-color: var(--ohost-fill) !important; color: var(--ohost-text-soft) !important; }

/* markdown editor (tickets) */
html.oh-dark .oh-body .md-editor > .btn-toolbar { background-color: var(--ohost-fill) !important; border-color: var(--ohost-line) !important; }
html.oh-dark .oh-body .md-editor .btn-toolbar .btn { background: transparent !important; border-color: var(--ohost-line) !important; color: var(--ohost-text) !important; }
html.oh-dark .oh-body .md-editor .md-footer,
html.oh-dark .oh-body .markdown-editor-status { background-color: var(--ohost-fill) !important; color: var(--ohost-text-soft) !important; border-color: var(--ohost-line) !important; }

/* tables: every row dark, zebra kept subtle */
html.oh-dark .oh-body .table > tbody > tr,
html.oh-dark .oh-body table.dataTable tbody tr,
html.oh-dark .oh-body .dataTables_wrapper .table-list > tbody > tr { background-color: var(--ohost-surface) !important; }
html.oh-dark .oh-body .table > tbody > tr:nth-of-type(even),
html.oh-dark .oh-body table.dataTable tbody tr:nth-of-type(even),
html.oh-dark .oh-body .dataTables_wrapper .table-list > tbody > tr:nth-of-type(even) { background-color: #12212b !important; }
html.oh-dark .oh-body .table > tbody > tr > td,
html.oh-dark .oh-body .dataTables_wrapper .table-list > tbody > tr > td,
html.oh-dark .oh-body .dataTables_wrapper .table-list > tbody > tr > td > a { color: var(--ohost-text) !important; border-color: var(--ohost-line) !important; }
html.oh-dark .oh-body .table-hover > tbody > tr:hover,
html.oh-dark .oh-body table.dataTable tbody tr:hover { background-color: #173040 !important; }
html.oh-dark .oh-body .dataTables_wrapper .dataTables_filter label .form-control { background-image: none !important; }

/* affiliates & other info boxes */
html.oh-dark .oh-body .affiliate-stat,
html.oh-dark .oh-body .affiliate-referral-link,
html.oh-dark .oh-body .well,
html.oh-dark .oh-body .jumbotron { background-color: var(--ohost-fill) !important; color: var(--ohost-text) !important; border-color: var(--ohost-line) !important; }

/* status labels keep their colour but on a dark tint */
html.oh-dark .oh-body .label.status,
html.oh-dark .oh-body span.status { background-color: rgba(255, 255, 255, 0.06) !important; border: 1px solid currentColor !important; }

/* ==================================================================
   v9 – mobile & touch
   ================================================================== */

/* no full-screen loader: it blocked taps and scrolling until every asset had loaded */
.oh-preloader.wdes-loading { display: none !important; }
html { overflow-x: hidden !important; overflow-y: visible !important; }
body.oh-body { overflow: visible !important; }

/* Bootstrap 3 touch backdrop covered the menus inside the sticky header */
.dropdown-backdrop { display: none !important; }

/* bigger touch targets in menus */
@media (max-width: 991px) {
  .oh-header .oh-nav-collapse { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .oh-header .oh-menu-link { min-height: 48px; }
  .oh-header .oh-mega-link { padding: 12px 10px; }

  /* account / language / alerts menus: full width inside the panel (an absolute menu
     was clipped by the scrolling panel and looked like it did nothing) */
  .oh-header .oh-actions { align-items: center; }
  .oh-header .oh-actions > li.dropdown.open,
  .oh-header .oh-actions > li.oh-cnav-item { flex: 1 1 100%; }
  .oh-header .oh-actions > li.oh-cnav-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
  }
  .oh-header .oh-actions .dropdown-menu,
  .oh-header .oh-actions > .oh-cnav-item .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    min-width: 0;
    margin: 6px 0 0 !important;
    box-shadow: none !important;
    transform: none !important;
  }
  .oh-header .oh-actions .dropdown-menu > li > a { padding: 12px 14px; white-space: normal; }
  .oh-header .oh-login-btn { width: 100%; justify-content: center; min-height: 48px; }

  /* client navigation */
  .oh-clientnav-list > li > a { min-height: 48px; }
  .oh-clientnav .dropdown-menu > li > a { padding: 12px 14px !important; white-space: normal; }

  /* content first, sidebar below it */
  #main-body > .container > .row { display: flex; flex-direction: column; }
  #main-body > .container > .row > .main-content { order: 1; }
  #main-body > .container > .row > [class*="col-"]:has(> .oh-sidebar) { order: 2; margin-top: 24px; }
  #main-body > .container > .row > [class*="col-"] { width: 100%; float: none; }
}

@media (max-width: 767px) {
  section#main-body.oh-main { padding: 22px 0 40px; }
  .oh-page-hero { padding: 28px 0 26px; }
  .oh-page-hero h1 { font-size: 1.7rem !important; }
  .oh-page-hero ol.breadcrumb { display: none; }

  /* tables scroll sideways inside their box instead of breaking the page */
  .oh-body .dataTables_wrapper .listtable,
  .oh-body .table-container,
  .oh-body .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .oh-body .dataTables_wrapper .dataTables_filter label .form-control { width: 100% !important; }
  .oh-body .dataTables_wrapper .listtable > .dataTables_filter,
  .oh-body .dataTables_wrapper .listtable > .dataTables_info { flex: 1 1 100%; text-align: left; }

  /* panels and buttons */
  .oh-body .main-content .panel > .panel-heading .panel-title { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .oh-body .main-content .panel > .panel-heading .pull-right { order: 2; float: none !important; }
  .oh-body .div-service-item .div-service-buttons { flex: 1 1 100%; justify-content: flex-start; margin-left: 0; }
  .oh-body .div-service-item .div-service-buttons > .btn-group,
  .oh-body .div-service-item .div-service-buttons > .btn { flex: 1 1 auto; }
  .oh-svc-head { padding: 18px; }
  .oh-svc-facts { width: 100%; }

  /* forms: 16px text so iOS does not zoom into the field */
  .oh-body input.form-control,
  .oh-body select.form-control,
  .oh-body textarea.form-control,
  .oh-body .oh-sel-btn { font-size: 16px !important; }

  .oh-body .modal-dialog { margin: 10px; }
  .oh-footer .row > [class*="col-"] { margin-bottom: 18px; }
}

/* ==================================================================
   v9 – domain management
   ================================================================== */
.oh-dom-head {
  margin-bottom: 24px;
  background: var(--ohost-surface);
  border: 1px solid var(--ohost-line);
  border-top: 4px solid var(--ohost-accent);
}
.oh-dom-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; }
.oh-dom-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.oh-dom-ic { flex: 0 0 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: var(--ohost-ink); color: #fff; font-size: 21px; }
.oh-dom-name { min-width: 0; }
.oh-dom-name h2 { margin: 0 0 8px; font-size: 1.45rem !important; font-weight: 800; letter-spacing: -0.02em; color: var(--ohost-ink-2) !important; text-transform: none !important; word-break: break-all; }
.oh-dom-chips { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 0.85rem; color: var(--ohost-text); }
.oh-dom-chips li span { color: var(--ohost-text-soft); margin-right: 4px; }
.oh-dom-chips .oh-chip { padding: 3px 9px; border: 1px solid currentColor; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ohost-text-soft); }
.oh-dom-chips .oh-chip-active { color: var(--ohost-success); }
.oh-dom-chips .oh-chip-expired, .oh-dom-chips .oh-chip-cancelled, .oh-dom-chips .oh-chip-fraud { color: var(--ohost-danger); }
.oh-dom-chips .oh-chip-pending, .oh-dom-chips .oh-chip-pending-transfer { color: #b7791f; }
.oh-on { color: var(--ohost-success); font-weight: 700; }
.oh-off { color: var(--ohost-danger); font-weight: 700; }
.oh-body .btn.oh-dom-visit { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1px solid var(--ohost-line-strong) !important; background: transparent !important; color: var(--ohost-ink-2) !important; font-size: 0.76rem; letter-spacing: 0.08em; }

.oh-dnav-wrap { border-top: 1px solid var(--ohost-line); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.oh-body .nav.oh-dnav { display: flex; flex-wrap: nowrap; margin: 0; padding: 0 8px; border: 0; }
.oh-body .nav.oh-dnav::before, .oh-body .nav.oh-dnav::after { display: none; }
.oh-body .nav.oh-dnav > li { float: none; flex: 0 0 auto; }
.oh-body .nav.oh-dnav > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent !important;
  color: var(--ohost-text-soft);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}
.oh-body .nav.oh-dnav > li > a i { color: var(--ohost-text-soft); }
.oh-body .nav.oh-dnav > li > a:hover { color: var(--ohost-ink-2); background: var(--ohost-fill) !important; }
.oh-body .nav.oh-dnav > li.active > a { color: var(--ohost-primary); border-bottom-color: var(--ohost-accent); }
.oh-body .nav.oh-dnav > li.active > a i { color: var(--ohost-accent); }

.oh-body .tab-content.oh-dom-tabs { padding: 0; border: 0; background: transparent; }
.oh-dom-card {
  display: block;
  margin-bottom: 24px;
  padding: 26px 28px;
  background: var(--ohost-surface);
  border: 1px solid var(--ohost-line);
}
.oh-body .oh-dom-card-title { margin: 0 0 6px; font-size: 1.15rem !important; font-weight: 800; letter-spacing: -0.01em; color: var(--ohost-ink-2) !important; text-transform: none !important; }
.oh-dom-lead { margin: 0 0 22px; max-width: 760px; color: var(--ohost-text-soft); font-size: 0.93rem; line-height: 1.6; }
.oh-dom-card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; }
.oh-dom-formbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ohost-line); }
.oh-dom-narrow { max-width: 420px; }

.oh-body .btn.oh-btn-solid,
.oh-body .btn.oh-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 0 !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.oh-body .btn.oh-btn-solid { background: var(--ohost-ink) !important; border: 1px solid var(--ohost-ink) !important; color: #fff !important; }
.oh-body .btn.oh-btn-solid:hover { background: var(--ohost-primary) !important; border-color: var(--ohost-primary) !important; }
.oh-body .btn.oh-btn-outline { background: transparent !important; border: 1px solid var(--ohost-line-strong) !important; color: var(--ohost-ink-2) !important; }
.oh-body .btn.oh-btn-outline:hover { background: var(--ohost-fill) !important; }
html.oh-dark .oh-body .btn.oh-btn-solid { background: var(--ohost-accent) !important; border-color: var(--ohost-accent) !important; }

/* overview facts */
.oh-dom-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0; margin: 18px 0 0; border-top: 1px solid var(--ohost-line); border-left: 1px solid var(--ohost-line); }
.oh-dom-facts > div { padding: 16px 18px; border-right: 1px solid var(--ohost-line); border-bottom: 1px solid var(--ohost-line); }
.oh-dom-facts dt { margin-bottom: 6px; color: var(--ohost-text-soft); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.oh-dom-facts dd { margin: 0; color: var(--ohost-ink-2); font-size: 1rem; font-weight: 700; word-break: break-word; }
.oh-dom-facts dd small { color: var(--ohost-text-soft); font-weight: 500; }
.oh-dom-facts dd img { vertical-align: -2px; margin-right: 4px; }

.oh-dom-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 16px; }
.oh-dom-action {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid var(--ohost-line);
  background: var(--ohost-surface);
  color: var(--ohost-ink-2) !important;
  font-weight: 600;
  text-decoration: none !important;
}
.oh-dom-action i { flex: 0 0 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--ohost-fill); color: var(--ohost-primary); }
.oh-dom-action:hover { border-color: var(--ohost-accent); background: var(--ohost-fill); }

/* status cards (auto renew, registrar lock) */
.oh-dom-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; }
.oh-dom-switch-ic { flex: 0 0 64px; height: 64px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.oh-dom-switch-ic.is-on { background: rgba(40, 167, 69, 0.1); color: var(--ohost-success); }
.oh-dom-switch-ic.is-off { background: rgba(220, 53, 69, 0.08); color: var(--ohost-danger); }
.oh-dom-switch-text { flex: 1 1 320px; min-width: 0; }
.oh-dom-switch-text p { margin: 0 0 8px; color: var(--ohost-text-soft); font-size: 0.92rem; line-height: 1.55; }
.oh-dom-switch-text .oh-dom-state { margin: 10px 0 0; color: var(--ohost-text); font-size: 0.95rem; }
.oh-dom-switch-form { flex: 0 0 auto; }

/* nameservers */
.oh-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.oh-choice { position: relative; display: block; margin: 0; cursor: pointer; font-weight: 500 !important; text-transform: none !important; letter-spacing: 0 !important; }
.oh-choice > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.oh-choice > .iradio_square-blue { position: absolute !important; opacity: 0 !important; inset: 0; width: 100% !important; height: 100% !important; margin: 0 !important; z-index: 2; }
.oh-choice-box { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px 18px; border: 1px solid var(--ohost-line-strong); background: var(--ohost-surface); color: var(--ohost-text); font-size: 0.95rem; }
.oh-choice-box i { color: var(--ohost-line-strong); font-size: 18px; }
.oh-choice:hover .oh-choice-box { border-color: var(--ohost-primary); }
.oh-choice > input:checked + .oh-choice-box,
.oh-choice:has(.iradio_square-blue.checked) .oh-choice-box,
.oh-choice:has(input:checked) .oh-choice-box { border: 2px solid var(--ohost-accent); padding: 13px 17px; background: rgba(63, 158, 164, 0.06); }
.oh-choice:has(input:checked) .oh-choice-box i { color: var(--ohost-accent); }
.oh-choice > input:focus-visible + .oh-choice-box { outline: 2px solid var(--ohost-accent); outline-offset: 2px; }
.oh-ns-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.oh-ns-grid .form-group { margin-bottom: 16px; }
.oh-ns-grid label,
.oh-pns label,
.oh-dom-narrow label { display: block; margin-bottom: 7px; font-size: 0.74rem !important; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ohost-ink-2); }
.oh-body .oh-ns-grid .form-control,
.oh-body .oh-pns .form-control,
.oh-body .oh-dom-narrow .form-control,
.oh-body .oh-fwd-row .form-control,
.oh-body .oh-dns .form-control { height: 48px; border: 1px solid var(--ohost-line-strong); border-radius: 0; background-color: var(--ohost-surface); box-shadow: none; font-size: 0.97rem; }
.oh-body .oh-ns-grid .form-control { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
#ohNsForm.is-default .oh-ns-grid { opacity: 0.55; }
.oh-body .oh-ns-grid .form-control:disabled { background-color: var(--ohost-fill); cursor: not-allowed; }

/* DNS */
.oh-dns-head,
.oh-dns-row { display: grid; grid-template-columns: minmax(180px, 1.4fr) 150px minmax(200px, 2fr) 96px 48px; gap: 10px; align-items: start; }
.oh-dns-head { margin-top: 8px; padding: 0 0 8px; border-bottom: 1px solid var(--ohost-line); color: var(--ohost-text-soft); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.oh-dns-list { display: flex; flex-direction: column; }
.oh-dns-row { padding: 12px 0; border-bottom: 1px solid var(--ohost-line); }
.oh-dns-row.oh-dns-new { background: linear-gradient(90deg, rgba(63, 158, 164, 0.05), transparent); }
.oh-dns-row.is-removed { display: none; }
.oh-dns-lbl { display: none; }
.oh-dns-hostbox { display: flex; align-items: stretch; }
.oh-dns-hostbox .form-control { flex: 1 1 auto; min-width: 0; }
.oh-dns-suffix { display: flex; align-items: center; max-width: 55%; padding: 0 10px; border: 1px solid var(--ohost-line-strong); border-left: 0; background: var(--ohost-fill); color: var(--ohost-text-soft); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oh-body .oh-dns .oh-dns-value .form-control,
.oh-body .oh-dns .oh-dns-host .form-control { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.9rem; }
.oh-body .oh-dns .oh-dns-type select.form-control { font-weight: 700; border-left: 4px solid var(--oh-dns-c, var(--ohost-line-strong)); }
.oh-dns-row[data-type="A"] { --oh-dns-c: #3f9ea4; }
.oh-dns-row[data-type="AAAA"] { --oh-dns-c: #1f5f7a; }
.oh-dns-row[data-type="MX"], .oh-dns-row[data-type="MXE"] { --oh-dns-c: #d27d4b; }
.oh-dns-row[data-type="CNAME"] { --oh-dns-c: #7a5cc4; }
.oh-dns-row[data-type="TXT"] { --oh-dns-c: #6b7c88; }
.oh-dns-row[data-type="URL"], .oh-dns-row[data-type="FRAME"] { --oh-dns-c: #c9a227; }
.oh-dns-prio .oh-dns-na { display: none; align-items: center; height: 48px; color: var(--ohost-text-soft); font-size: 0.82rem; }
.oh-dns-row:not([data-type="MX"]) .oh-dns-prio .form-control { display: none; }
.oh-dns-row:not([data-type="MX"]) .oh-dns-prio .oh-dns-na { display: flex; }
.oh-dns-remove { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--ohost-line-strong); background: transparent; color: var(--ohost-text-soft); cursor: pointer; }
.oh-dns-remove:hover { border-color: var(--ohost-danger); color: var(--ohost-danger); background: rgba(220, 53, 69, 0.06); }
.oh-dns-note { margin: 14px 0 0; color: var(--ohost-text-soft); font-size: 0.84rem; }
.oh-dns-note i { color: var(--ohost-accent); margin-right: 4px; }
.oh-dns-cell .oh-field-hint.is-error { font-size: 0.78rem; }
@media (max-width: 991px) {
  .oh-dns-head { display: none; }
  .oh-dns-row { grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 16px 0; }
  .oh-dns-host, .oh-dns-value { grid-column: 1 / -1; }
  .oh-dns-lbl { display: block; margin-bottom: 5px; font-size: 0.7rem !important; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ohost-text-soft); }
  .oh-dns-del { grid-column: 1 / -1; }
  .oh-dns-remove { width: 100%; }
}

/* private nameservers */
.oh-pns-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.oh-pns { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--ohost-line); background: var(--ohost-surface); }
.oh-pns > .btn { margin-top: auto; width: 100%; }
.oh-pns .form-group { margin-bottom: 16px; }
.oh-pns-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.oh-pns-head h4 { margin: 0; font-size: 1rem !important; font-weight: 800; color: var(--ohost-ink-2) !important; text-transform: none !important; letter-spacing: 0; }
.oh-pns-ic { flex: 0 0 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--ohost-fill); color: var(--ohost-primary); }
.oh-pns-danger .oh-pns-ic { color: var(--ohost-danger); background: rgba(220, 53, 69, 0.08); }
.oh-pns-host { display: flex; align-items: stretch; }
.oh-pns-host .form-control { flex: 1 1 auto; min-width: 0; }
.oh-pns-host span { display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--ohost-line-strong); border-left: 0; background: var(--ohost-fill); color: var(--ohost-text-soft); font-size: 0.85rem; white-space: nowrap; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 991px) { .oh-pns-grid { grid-template-columns: 1fr; } }

/* email forwarding */
.oh-fwd-list { display: flex; flex-direction: column; gap: 10px; }
.oh-fwd-row { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); gap: 10px; align-items: center; }
.oh-fwd-from { display: flex; align-items: stretch; }
.oh-fwd-from .form-control { flex: 1 1 auto; min-width: 0; }
.oh-fwd-from span { display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--ohost-line-strong); border-left: 0; background: var(--ohost-fill); color: var(--ohost-text-soft); font-size: 0.85rem; white-space: nowrap; }
.oh-fwd-arrow { color: var(--ohost-accent); text-align: center; }
.oh-fwd-new .form-control { border-style: dashed !important; }
@media (max-width: 767px) { .oh-fwd-row { grid-template-columns: 1fr; } .oh-fwd-arrow { transform: rotate(90deg); } }

/* EPP code */
.oh-epp-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px 20px; border: 1px dashed var(--ohost-line-strong); background: var(--ohost-fill); }
.oh-epp-label { color: var(--ohost-text-soft); font-size: 0.85rem; }
.oh-epp-code { flex: 1 1 auto; padding: 0; background: none; color: var(--ohost-ink-2); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.06em; word-break: break-all; }

/* addons */
.oh-addon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.oh-addon { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--ohost-line); background: var(--ohost-surface); }
.oh-addon-ic { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; background: var(--ohost-fill); color: var(--ohost-primary); font-size: 18px; }
.oh-addon h4 { margin: 0 0 8px; font-size: 1rem !important; font-weight: 800; color: var(--ohost-ink-2) !important; text-transform: none !important; letter-spacing: 0; }
.oh-addon p { margin: 0 0 18px; color: var(--ohost-text-soft); font-size: 0.9rem; line-height: 1.55; }
.oh-addon form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

/* contact details page: each contact as a card */
.oh-body.tpl-clientareadomaincontactinfo .main-content > h3 { display: none; }
.oh-body.tpl-clientareadomaincontactinfo #frmDomainContactModification { padding: 24px; background: var(--ohost-surface); border: 1px solid var(--ohost-line); }
.oh-body.tpl-clientareadomaincontactinfo #frmDomainContactModification > .row { display: flex; flex-wrap: wrap; }
.oh-body.tpl-clientareadomaincontactinfo #frmDomainContactModification > .row > .col-md-6 { margin-bottom: 20px; }
.oh-body.tpl-clientareadomaincontactinfo #frmDomainContactModification h4 { padding-bottom: 10px; margin: 0 0 14px; border-bottom: 2px solid var(--ohost-accent); font-size: 1rem !important; font-weight: 800; text-transform: none !important; color: var(--ohost-ink-2) !important; }

@media (max-width: 767px) {
  .oh-dom-top, .oh-dom-card { padding: 18px; }
  .oh-choice-grid, .oh-ns-grid { grid-template-columns: 1fr; }
  .oh-dom-switch-form, .oh-dom-switch-form .btn { width: 100%; }
}

/* ==================================================================
   v10 – My domains: the table fits its column, no side scroll,
   the actions menu is never clipped
   ================================================================== */
@media (min-width: 992px) {
  .oh-body.tpl-clientareadomains .dataTables_wrapper .listtable,
  .oh-body.tpl-clientareadomains .table-container,
  .oh-body.tpl-clientareadomains .main-content .dataTables_wrapper { overflow: visible !important; }
}
#tableDomainsList { width: 100% !important; min-width: 0 !important; }
#tableDomainsList > thead > tr > th {
  position: relative;
  padding: 14px 28px 14px 12px !important;
  white-space: normal !important;
  line-height: 1.3;
  font-size: 0.66rem !important;
  letter-spacing: 0.08em !important;
  vertical-align: middle !important;
}
#tableDomainsList > thead > tr > th.sorting::after,
#tableDomainsList > thead > tr > th.sorting_asc::after,
#tableDomainsList > thead > tr > th.sorting_desc::after { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); bottom: auto; }
#tableDomainsList > thead > tr > th:nth-child(1),
#tableDomainsList > thead > tr > th:nth-child(2),
#tableDomainsList > thead > tr > th:last-child { padding-right: 8px !important; }
#tableDomainsList > tbody > tr > td { padding: 14px 12px !important; font-size: 0.92rem; vertical-align: middle !important; }
#tableDomainsList > tbody > tr > td:nth-child(1) { width: 36px; }
#tableDomainsList > tbody > tr > td:nth-child(2) { width: 40px; padding-left: 0 !important; padding-right: 0 !important; text-align: center; }
#tableDomainsList > tbody > tr > td:nth-child(4),
#tableDomainsList > tbody > tr > td:nth-child(5) { white-space: nowrap; color: var(--ohost-text); }
#tableDomainsList .oh-dom-cell a { font-weight: 700; font-size: 0.98rem; color: var(--ohost-ink-2); word-break: break-all; }
#tableDomainsList .oh-dom-cell a:hover { color: var(--ohost-primary); }
#tableDomainsList .label.status { white-space: nowrap !important; max-width: none !important; padding: 5px 9px; font-size: 0.62rem; }
#tableDomainsList > tbody > tr > td:last-child { width: 1%; white-space: nowrap; text-align: right; }

.oh-ar { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid currentColor; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.oh-ar i { font-size: 0.65rem; }
.oh-ar-on { color: var(--ohost-success); background: rgba(40, 167, 69, 0.06); }
.oh-ar-off { color: var(--ohost-text-soft); }

#tableDomainsList .oh-dom-act { display: inline-flex !important; width: auto !important; }
#tableDomainsList .oh-dom-act > .btn { float: none; height: 38px; min-width: 38px; padding: 0 12px !important; display: inline-flex; align-items: center; justify-content: center; }
#tableDomainsList .oh-dom-act > .dropdown-menu { right: 0; left: auto; min-width: 230px; z-index: 50; }

@media (max-width: 1199px) and (min-width: 992px) {
  #tableDomainsList > tbody > tr > td:nth-child(2),
  #tableDomainsList > thead > tr > th:nth-child(2) { display: none; }
}

/* ===== v11: service details (VPS / module services) ===== */
/* wider page: the module panel (Virtualizor) needs the room */
@media (min-width: 1200px) {
  .oh-body.tpl-clientareaproductdetails #main-body > .container { width: auto; max-width: 1360px; }
  .oh-body.tpl-clientareaproductdetails #main-body > .container > .row { display: flex; align-items: flex-start; }
  .oh-body.tpl-clientareaproductdetails #main-body > .container > .row::before,
  .oh-body.tpl-clientareaproductdetails #main-body > .container > .row::after { display: none; }
  .oh-body.tpl-clientareaproductdetails #main-body > .container > .row > .col-md-3 { flex: 0 0 270px; width: 270px; }
  .oh-body.tpl-clientareaproductdetails #main-body > .container > .row > .main-content { flex: 1 1 auto; width: auto; min-width: 0; }
}

.oh-body .product-details > .oh-svc-head-std { margin-bottom: 16px; }
.oh-svc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.oh-svc-actions .btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; }
.oh-svc-actions .oh-svc-cancel { background: transparent !important; border: 1px solid var(--ohost-line) !important; color: var(--ohost-text-soft) !important; }
.oh-svc-actions .oh-svc-cancel:hover { border-color: var(--ohost-danger) !important; color: var(--ohost-danger) !important; }
.oh-svc-host { color: var(--ohost-ink-2); font-weight: 600; }

/* billing facts as tiles */
.oh-svc-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}
.oh-svc-tiles > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: var(--ohost-surface);
  border: 1px solid var(--ohost-line);
  border-radius: 8px;
}
.oh-svc-tiles > div > i {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  line-height: 38px;
  border-radius: 8px;
  background: rgba(63, 158, 164, 0.14);
  color: var(--ohost-accent);
  text-align: center;
  font-size: 15px;
}
.oh-svc-tiles dt { margin: 0 0 2px; color: var(--ohost-text-soft); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3; }
.oh-svc-tiles dd { margin: 0; color: var(--ohost-ink-2); font-size: 0.98rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.oh-svc-tiles dd small { color: var(--ohost-text-soft); font-weight: 500; }
.oh-svc-suspend { margin-bottom: 24px; }

/* module panel on the full width */
.oh-svc-module { margin: 0 0 28px; text-align: left; }
.oh-svc-module > :first-child { margin-top: 0; }

/* info tabs: label / value rows instead of centred columns */
.oh-body .product-details-tab-container .tab-pane.text-center { text-align: left; }
.oh-body .product-details-tab-container .tab-pane > .row {
  display: grid;
  grid-template-columns: minmax(150px, 240px) 1fr;
  gap: 4px 20px;
  margin: 0;
  padding: 12px 4px;
  border-bottom: 1px solid var(--ohost-line);
}
.oh-body .product-details-tab-container .tab-pane > .row:last-of-type { border-bottom: 0; }
.oh-body .product-details-tab-container .tab-pane > .row::before,
.oh-body .product-details-tab-container .tab-pane > .row::after { display: none; }
.oh-body .product-details-tab-container .tab-pane > .row > [class*="col-"] { float: none; width: auto; padding: 0; text-align: left !important; }
.oh-body .product-details-tab-container .tab-pane > .row strong { color: var(--ohost-text-soft); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.oh-body .product-details-tab-container .tab-pane > .row > [class*="col-"]:last-child { color: var(--ohost-ink-2); font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 575px) {
  .oh-body .product-details-tab-container .tab-pane > .row { grid-template-columns: 1fr; }
}

html.oh-dark .oh-svc-tiles > div { background: var(--ohost-surface) !important; border-color: var(--ohost-line) !important; }
html.oh-dark .oh-svc-tiles > div > i { background: rgba(63, 158, 164, 0.2); }
html.oh-dark .oh-svc-tiles dd,
html.oh-dark .oh-svc-host,
html.oh-dark .oh-body .product-details-tab-container .tab-pane > .row > [class*="col-"]:last-child { color: var(--ohost-text) !important; }
html.oh-dark .oh-body .nav-tabs > li.active > a { color: var(--ohost-accent) !important; }

/* v11b: tiles always fill their rows - one row on wide screens, stretched rows below */
.oh-svc-tiles { display: flex; flex-wrap: wrap; }
.oh-svc-tiles > div { flex: 1 1 210px; }
@media (min-width: 1200px) {
  .oh-svc-tiles[class*="oh-svc-tiles-"] { display: grid; }
  .oh-svc-tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .oh-svc-tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .oh-svc-tiles-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .oh-svc-tiles-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .oh-svc-tiles-5 > div, .oh-svc-tiles-6 > div { padding: 14px 14px; column-gap: 10px; }
}

/* module panel (Virtualizor puts its iframe into #tab1) as one card on the full width */
.oh-svc-module {
  overflow: hidden;
  border: 1px solid var(--ohost-line);
  border-radius: 10px;
  background: var(--ohost-surface);
}
.oh-svc-module:empty { display: none; }
.oh-svc-module > iframe { display: block; width: 100% !important; min-height: 420px; border: 0 !important; background: transparent !important; }
html.oh-dark .oh-svc-module { border-color: var(--ohost-line) !important; background: var(--ohost-surface) !important; }

/* v11c: service actions bar (replaces the sidebar on pages with a module panel) */
.oh-svc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin: 0 0 20px;
  padding: 12px 14px;
  background: var(--ohost-surface);
  border: 1px solid var(--ohost-line);
  border-radius: 10px;
}
.oh-svc-nav-group { display: flex; flex-wrap: wrap; gap: 8px; }
.oh-svc-nav-group + .oh-svc-nav-group { padding-left: 18px; border-left: 1px solid var(--ohost-line); }
.oh-body a.oh-svc-act {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--ohost-line);
  border-radius: 8px;
  background: var(--ohost-fill);
  color: var(--ohost-ink-2);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 140ms ease, color 140ms ease;
}
.oh-body a.oh-svc-act i { color: var(--ohost-accent); }
.oh-body a.oh-svc-act:hover, .oh-body a.oh-svc-act:focus { border-color: var(--ohost-accent); color: var(--ohost-accent); text-decoration: none; }
.oh-body a.oh-svc-act.disabled { opacity: 0.45; pointer-events: none; }
html.oh-dark .oh-svc-nav { background: var(--ohost-surface) !important; border-color: var(--ohost-line) !important; }
html.oh-dark .oh-body a.oh-svc-act { background: var(--ohost-fill) !important; border-color: var(--ohost-line) !important; color: var(--ohost-text) !important; }
html.oh-dark .oh-body a.oh-svc-act:hover { border-color: var(--ohost-accent) !important; color: var(--ohost-accent) !important; }
@media (max-width: 767px) {
  .oh-svc-nav-group + .oh-svc-nav-group { padding-left: 0; border-left: 0; }
}

/* v11d: info tabs on the service page - clean underline tabs, readable label / value rows */
.oh-body.tpl-clientareaproductdetails .wdes-nav-tabs.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  border-bottom: 1px solid var(--ohost-line) !important;
}
.oh-body.tpl-clientareaproductdetails .wdes-nav-tabs.nav-tabs::before,
.oh-body.tpl-clientareaproductdetails .wdes-nav-tabs.nav-tabs::after { display: none; }
.oh-body.tpl-clientareaproductdetails .wdes-nav-tabs.nav-tabs > li { float: none; margin: 0 0 -1px; }
.oh-body.tpl-clientareaproductdetails .wdes-nav-tabs.nav-tabs > li > a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 13px 18px;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0;
  background: transparent !important;
  color: var(--ohost-text-soft) !important;
  font-size: 0.92rem;
  font-weight: 600;
}
.oh-body.tpl-clientareaproductdetails .wdes-nav-tabs.nav-tabs > li > a::after { display: none; }
.oh-body.tpl-clientareaproductdetails .wdes-nav-tabs.nav-tabs > li > a i { color: inherit; font-size: 0.95em; opacity: 0.8; }
.oh-body.tpl-clientareaproductdetails .wdes-nav-tabs.nav-tabs > li > a:hover { color: var(--ohost-ink-2) !important; }
.oh-body.tpl-clientareaproductdetails .wdes-nav-tabs.nav-tabs > li.active > a {
  color: var(--ohost-accent) !important;
  border-bottom-color: var(--ohost-accent) !important;
}
html.oh-dark .oh-body.tpl-clientareaproductdetails .wdes-nav-tabs.nav-tabs > li > a { background: transparent !important; color: var(--ohost-text-soft) !important; }
html.oh-dark .oh-body.tpl-clientareaproductdetails .wdes-nav-tabs.nav-tabs > li > a:hover { color: var(--ohost-text) !important; }
html.oh-dark .oh-body.tpl-clientareaproductdetails .wdes-nav-tabs.nav-tabs > li.active > a { color: var(--ohost-accent) !important; }

.oh-body.tpl-clientareaproductdetails .product-details-tab-container {
  margin-top: 0;
  padding: 6px 22px !important;
  border: 1px solid var(--ohost-line) !important;
  border-top: 0 !important;
  border-radius: 0 0 10px 10px;
}
.oh-body .product-details-tab-container .tab-pane > .row {
  grid-template-columns: minmax(160px, 320px) 1fr;
  align-items: baseline;
  padding: 14px 0;
}
.oh-body .product-details-tab-container .tab-pane > .row strong {
  color: var(--ohost-text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.45;
}
.oh-body .product-details-tab-container .tab-pane > .row > [class*="col-"]:last-child { font-size: 0.95rem; line-height: 1.45; }
/* v11e: groups separated by space only - a divider looks broken when a group wraps to a new line */
.oh-svc-nav { column-gap: 26px; }
.oh-svc-nav-group + .oh-svc-nav-group { padding-left: 0; border-left: 0; }
.oh-svc-nav:not(:has(.oh-svc-act)) { display: none; }
.oh-svc-nav-group:not(:has(.oh-svc-act)) { display: none; }

/* v12: table sort indicator - a small arrow right after the column title instead of a big icon at the edge */
.oh-body table.dataTable thead th.sorting,
.oh-body table.dataTable thead th.sorting_asc,
.oh-body table.dataTable thead th.sorting_desc { cursor: pointer; padding-right: 16px !important; background-image: none !important; }
.oh-body table.dataTable thead th.sorting::before,
.oh-body table.dataTable thead th.sorting_asc::before,
.oh-body table.dataTable thead th.sorting_desc::before { display: none !important; }
.oh-body table.dataTable thead th.sorting::after,
.oh-body table.dataTable thead th.sorting_asc::after,
.oh-body table.dataTable thead th.sorting_desc::after,
#tableDomainsList > thead > tr > th.sorting::after,
#tableDomainsList > thead > tr > th.sorting_asc::after,
#tableDomainsList > thead > tr > th.sorting_desc::after {
  position: static !important;
  display: inline-block;
  margin-left: 7px;
  transform: none !important;
  vertical-align: 1px;
  font-family: "Font Awesome 5 Pro" !important;
  font-weight: 900;
  font-size: 10px;
  line-height: 1;
  content: "\f0dc" !important;
  color: rgba(255, 255, 255, 0.35) !important;
  opacity: 1 !important;
}
.oh-body table.dataTable thead th.sorting_asc::after,
#tableDomainsList > thead > tr > th.sorting_asc::after { content: "\f0de" !important; color: var(--ohost-accent) !important; vertical-align: -2px; }
.oh-body table.dataTable thead th.sorting_desc::after,
#tableDomainsList > thead > tr > th.sorting_desc::after { content: "\f0dd" !important; color: var(--ohost-accent) !important; vertical-align: 3px; }
.oh-body table.dataTable thead th.sorting:hover::after { color: rgba(255, 255, 255, 0.7) !important; }
/* the sorted column keeps the same header colour as the others */
.oh-body table.dataTable thead th.sorting_asc,
.oh-body table.dataTable thead th.sorting_desc,
html.oh-dark .dataTables_wrapper table.table-list thead th.sorting_asc,
html.oh-dark .dataTables_wrapper table.table-list thead th.sorting_desc,
html.oh-dark .oh-body table.dataTable thead th { background-color: var(--ohost-ink) !important; }

/* ===== v13: domain management - section menu on the left, content on the right ===== */
.oh-dnav-side { margin: -8px 0 20px; border-top: 0; overflow: visible; }
.oh-body .oh-dnav-side .nav.oh-dnav {
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
}
.oh-body .oh-dnav-side .nav.oh-dnav > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid var(--ohost-line) !important;
  border-radius: 8px;
  background: var(--ohost-surface) !important;
  color: var(--ohost-ink-2);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}
.oh-body .oh-dnav-side .nav.oh-dnav > li > a i { color: var(--ohost-accent); }
.oh-body .oh-dnav-side .nav.oh-dnav > li > a:hover { border-color: var(--ohost-accent) !important; color: var(--ohost-accent); }
.oh-body .oh-dnav-side .nav.oh-dnav > li.active > a { border-color: var(--ohost-accent) !important; background: rgba(63, 158, 164, 0.1) !important; color: var(--ohost-accent); }
.oh-body .oh-dnav-side .nav.oh-dnav > li.active > a i { color: var(--ohost-accent); }

@media (min-width: 1200px) {
  .oh-body .main-content.oh-dom-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    column-gap: 24px;
    align-items: start;
  }
  .oh-body .main-content.oh-dom-layout > * { grid-column: 2; min-width: 0; }
  .oh-body .main-content.oh-dom-layout > .oh-dom-head { grid-column: 1 / -1; }
  .oh-body .main-content.oh-dom-layout > .oh-dnav-side {
    grid-column: 1;
    grid-row: 2 / span 40;
    position: sticky;
    top: 104px;
    margin: 0;
    padding: 10px;
    background: var(--ohost-surface);
    border: 1px solid var(--ohost-line);
    border-radius: 10px;
  }
  .oh-body .oh-dnav-side .nav.oh-dnav { flex-direction: column; gap: 2px; }
  .oh-body .oh-dnav-side .nav.oh-dnav > li > a { border-color: transparent !important; background: transparent !important; white-space: normal; }
  .oh-body .oh-dnav-side .nav.oh-dnav > li > a:hover { background: var(--ohost-fill) !important; border-color: transparent !important; }
  .oh-body .oh-dnav-side .nav.oh-dnav > li.active > a { background: rgba(63, 158, 164, 0.12) !important; border-color: transparent !important; }
}
html.oh-dark .oh-body .main-content.oh-dom-layout > .oh-dnav-side { background: var(--ohost-surface) !important; border-color: var(--ohost-line) !important; }
html.oh-dark .oh-body .oh-dnav-side .nav.oh-dnav > li > a { color: var(--ohost-text) !important; }
html.oh-dark .oh-body .oh-dnav-side .nav.oh-dnav > li.active > a,
html.oh-dark .oh-body .oh-dnav-side .nav.oh-dnav > li > a:hover { color: var(--ohost-accent) !important; }

/* overview tiles: same look as the service page */
.oh-dom-tiles { margin-bottom: 20px; }
.oh-dom-tiles dd img { vertical-align: -2px; margin-right: 4px; }

/* quick actions: icon, title and one line of explanation */
.oh-dom-actions.oh-dom-actions-v2 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.oh-dom-actions-v2 .oh-dom-action { align-items: flex-start; gap: 14px; padding: 16px; border-radius: 10px; }
.oh-dom-actions-v2 .oh-dom-action i { flex: 0 0 40px; height: 40px; border-radius: 9px; background: rgba(63, 158, 164, 0.14); color: var(--ohost-accent); font-size: 16px; }
.oh-dom-actions-v2 .oh-dom-action span { display: flex; flex-direction: column; gap: 3px; min-width: 0; color: var(--ohost-text-soft); font-size: 0.84rem; font-weight: 500; line-height: 1.4; }
.oh-dom-actions-v2 .oh-dom-action span b { color: var(--ohost-ink-2); font-size: 0.95rem; font-weight: 700; }
.oh-dom-actions-v2 .oh-dom-action:hover span b { color: var(--ohost-accent); }
html.oh-dark .oh-dom-actions-v2 .oh-dom-action span b { color: var(--ohost-text) !important; }
html.oh-dark .oh-dom-actions-v2 .oh-dom-action i { background: rgba(63, 158, 164, 0.2); }

/* ===== v14: credit balance ===== */
/* header: small wallet chip next to the cart (only when the client has credit) */
.oh-header a.oh-credit-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(63, 158, 164, 0.55);
  background: rgba(63, 158, 164, 0.14);
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 140ms ease, border-color 140ms ease;
}
.oh-header a.oh-credit-chip:hover { background: rgba(63, 158, 164, 0.28); border-color: var(--ohost-accent); }
.oh-header a.oh-credit-chip > i { color: #7fd3d7; font-size: 15px; }
.oh-header a.oh-credit-chip > span { display: flex; flex-direction: column; line-height: 1.1; font-size: 0.86rem; font-weight: 800; }
.oh-header a.oh-credit-chip small { color: rgba(238, 246, 251, 0.7); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 1199px) {
  .oh-header a.oh-credit-chip > span small { display: none; }
}

/* client area home: balance card under the tiles */
.oh-credit-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin: 20px 0 24px;
  padding: 18px 22px;
  background: var(--ohost-surface);
  border: 1px solid var(--ohost-line);
  border-left: 4px solid var(--ohost-line-strong);
  border-radius: 10px;
}
.oh-credit-card.has-credit { border-left-color: var(--ohost-accent); }
.oh-credit-ic {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(63, 158, 164, 0.14);
  color: var(--ohost-accent);
  font-size: 20px;
}
.oh-credit-text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.oh-credit-label { color: var(--ohost-text-soft); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.oh-credit-amount { color: var(--ohost-ink-2); font-family: var(--ohost-font-head); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.oh-credit-card.has-credit .oh-credit-amount { color: var(--ohost-accent); }
.oh-credit-note { color: var(--ohost-text-soft); font-size: 0.88rem; }
.oh-credit-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; }
html.oh-dark .oh-credit-card { background: var(--ohost-surface) !important; border-color: var(--ohost-line) !important; }
html.oh-dark .oh-credit-card.has-credit { border-left-color: var(--ohost-accent) !important; }
html.oh-dark .oh-credit-amount { color: var(--ohost-text) !important; }
html.oh-dark .oh-credit-card.has-credit .oh-credit-amount { color: var(--ohost-accent) !important; }
@media (max-width: 575px) {
  .oh-credit-btn { width: 100%; justify-content: center; }
}

/* ===== v15: add funds (clientarea.php?action=addfunds) ===== */
.oh-addfunds { max-width: 760px; margin: 0 auto; }
.oh-af-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 18px; }
.oh-af-balance { display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: var(--ohost-surface); border: 1px solid var(--ohost-line); border-left: 4px solid var(--ohost-accent); border-radius: 10px; }
.oh-af-balance > div { display: flex; flex-direction: column; gap: 2px; }
.oh-af-limits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.oh-af-limits > div { padding: 12px 14px; background: var(--ohost-fill); border: 1px solid var(--ohost-line); border-radius: 8px; }
.oh-af-limits dt { margin: 0 0 2px; color: var(--ohost-text-soft); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.oh-af-limits dd { margin: 0; color: var(--ohost-ink-2); font-size: 0.98rem; font-weight: 700; }

.oh-af-form { padding: 24px; background: var(--ohost-surface); border: 1px solid var(--ohost-line); border-radius: 12px; }
.oh-af-step + .oh-af-step { margin-top: 24px; }
.oh-body .oh-af-label { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--ohost-ink-2); font-size: 0.95rem !important; font-weight: 700; letter-spacing: 0 !important; text-transform: none !important; }
.oh-af-label > span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ohost-ink); color: #fff; font-size: 0.75rem; font-weight: 800; }
.oh-body .oh-af-amount .form-control { height: 52px; font-size: 1.25rem; font-weight: 700; }
.oh-af-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.oh-af-quick:empty { display: none; }
.oh-af-chip { padding: 7px 14px; border: 1px solid var(--ohost-line); border-radius: 999px; background: var(--ohost-surface); color: var(--ohost-text); font-size: 0.86rem; font-weight: 700; cursor: pointer; transition: border-color 140ms ease, color 140ms ease, background 140ms ease; }
.oh-af-chip:hover { border-color: var(--ohost-accent); color: var(--ohost-accent); }
.oh-af-chip.is-on { border-color: var(--ohost-accent); background: var(--ohost-accent); color: #fff; }

.oh-af-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.oh-af-method { position: relative; margin: 0; cursor: pointer; font-weight: 500; }
.oh-af-method input { position: absolute; opacity: 0; pointer-events: none; }
.oh-af-method-box { display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px; border: 1px solid var(--ohost-line); border-radius: 10px; background: var(--ohost-surface); transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease; }
.oh-af-method:hover .oh-af-method-box { border-color: var(--ohost-accent); }
.oh-af-method input:checked + .oh-af-method-box { border-color: var(--ohost-accent); background: rgba(63, 158, 164, 0.07); box-shadow: 0 0 0 1px var(--ohost-accent) inset; }
.oh-af-method input:focus-visible + .oh-af-method-box { outline: 2px solid var(--ohost-accent); outline-offset: 2px; }
.oh-af-ic { flex: 0 0 42px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--ohost-fill); color: var(--ohost-ink-2); font-size: 19px; }
.oh-af-ic-paypal { background: #eaf1fb; color: #003087; font-size: 21px; }
.oh-af-ic-card { background: rgba(63, 158, 164, 0.14); color: var(--ohost-accent); }
.oh-af-ic-bank { background: #eef2f6; color: #34495e; }
.oh-af-ic-crypto { background: #fff4e5; color: #f7931a; font-size: 21px; }
.oh-af-ic-revolut { background: #111; color: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 20px; font-weight: 800; }
.oh-af-method-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; color: var(--ohost-ink-2); font-size: 0.93rem; font-weight: 700; line-height: 1.3; }
.oh-af-brands { display: flex; gap: 6px; color: var(--ohost-text-soft); font-size: 1.15rem; line-height: 1; }
.oh-af-tick { flex: 0 0 auto; color: var(--ohost-line-strong); font-size: 18px; transition: color 140ms ease; }
.oh-af-method input:checked + .oh-af-method-box .oh-af-tick { color: var(--ohost-accent); }

.oh-body .btn.oh-af-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px; margin-top: 26px; font-size: 0.9rem; letter-spacing: 0.08em; }
.oh-af-note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--ohost-text-soft); font-size: 0.85rem; }

html.oh-dark .oh-af-balance, html.oh-dark .oh-af-form, html.oh-dark .oh-af-method-box, html.oh-dark .oh-af-chip { background: var(--ohost-surface) !important; border-color: var(--ohost-line) !important; }
html.oh-dark .oh-af-limits > div { background: var(--ohost-fill) !important; border-color: var(--ohost-line) !important; }
html.oh-dark .oh-af-balance { border-left-color: var(--ohost-accent) !important; }
html.oh-dark .oh-af-limits dd, html.oh-dark .oh-af-method-name, html.oh-dark .oh-body .oh-af-label { color: var(--ohost-text) !important; }
html.oh-dark .oh-af-method input:checked + .oh-af-method-box { border-color: var(--ohost-accent) !important; background: rgba(63, 158, 164, 0.12) !important; }
html.oh-dark .oh-af-chip.is-on { background: var(--ohost-accent) !important; border-color: var(--ohost-accent) !important; color: #fff !important; }
html.oh-dark .oh-af-ic { background: var(--ohost-fill); color: var(--ohost-text); }
html.oh-dark .oh-af-ic-paypal { background: #0f2a4d; color: #7fb2ff; }
html.oh-dark .oh-af-ic-bank { background: var(--ohost-fill); color: var(--ohost-text); }
html.oh-dark .oh-af-ic-crypto { background: #3a2a10; color: #f7b24a; }
html.oh-dark .oh-af-ic-revolut { background: #fff; color: #111; }
html.oh-dark .oh-af-label > span { background: var(--ohost-accent); }
@media (max-width: 575px) {
  .oh-af-limits { grid-template-columns: 1fr; }
  .oh-af-form { padding: 18px; }
}

/* ===== v16: mass payment (clientarea.php?action=masspay) ===== */
.oh-mp { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
@media (max-width: 991px) { .oh-mp { grid-template-columns: 1fr; } }
.oh-mp-intro { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding: 18px 22px; background: var(--ohost-surface); border: 1px solid var(--ohost-line); border-left: 4px solid var(--ohost-accent); border-radius: 10px; }
.oh-body .oh-mp-title { margin: 0 0 4px; color: var(--ohost-ink-2) !important; font-size: 1.15rem !important; font-weight: 800; text-transform: none !important; letter-spacing: -0.01em; }
.oh-mp-lead { margin: 0; color: var(--ohost-text-soft); font-size: 0.9rem; }
.oh-mp-inv { margin-bottom: 14px; overflow: hidden; background: var(--ohost-surface); border: 1px solid var(--ohost-line); border-radius: 10px; }
.oh-mp-inv-head { display: flex; align-items: center; gap: 10px; padding: 13px 18px; background: var(--ohost-fill); border-bottom: 1px solid var(--ohost-line); }
.oh-mp-inv-head > i { color: var(--ohost-accent); font-size: 16px; }
.oh-mp-inv-head strong { color: var(--ohost-ink-2); font-size: 0.98rem; font-weight: 800; }
.oh-mp-inv-link { margin-left: auto; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.oh-mp-items { margin: 0; padding: 0; list-style: none; }
.oh-mp-items li { display: flex; align-items: flex-start; gap: 20px; padding: 14px 18px; }
.oh-mp-items li + li { border-top: 1px dashed var(--ohost-line); }
.oh-mp-desc { flex: 1 1 auto; min-width: 0; color: var(--ohost-text); font-size: 0.9rem; line-height: 1.55; overflow-wrap: anywhere; }
.oh-mp-amt { flex: 0 0 auto; color: var(--ohost-ink-2); font-size: 0.95rem; font-weight: 800; white-space: nowrap; }
.oh-mp-empty { padding: 30px; text-align: center; color: var(--ohost-text-soft); background: var(--ohost-surface); border: 1px dashed var(--ohost-line-strong); border-radius: 10px; }
.oh-mp-empty i { color: var(--ohost-success); margin-right: 6px; }

.oh-mp-side { position: sticky; top: 104px; }
@media (max-width: 991px) { .oh-mp-side { position: static; } }
.oh-mp-card { padding: 22px; background: var(--ohost-surface); border: 1px solid var(--ohost-line); border-radius: 12px; }
.oh-mp-totals { margin: 0 0 22px; }
.oh-mp-totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; color: var(--ohost-text-soft); font-size: 0.92rem; }
.oh-mp-totals dt { font-weight: 500; }
.oh-mp-totals dd { margin: 0; color: var(--ohost-text); font-weight: 700; white-space: nowrap; }
.oh-mp-totals .oh-mp-total { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--ohost-line); }
.oh-mp-totals .oh-mp-total dt { color: var(--ohost-ink-2); font-weight: 700; }
.oh-mp-totals .oh-mp-total dd { color: var(--ohost-accent); font-family: var(--ohost-font-head); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.oh-mp-card .oh-af-methods { grid-template-columns: 1fr; }
.oh-mp-card .oh-af-submit { margin-top: 20px; }

html.oh-dark .oh-mp-intro, html.oh-dark .oh-mp-inv, html.oh-dark .oh-mp-card { background: var(--ohost-surface) !important; border-color: var(--ohost-line) !important; }
html.oh-dark .oh-mp-intro { border-left-color: var(--ohost-accent) !important; }
html.oh-dark .oh-mp-inv-head { background: var(--ohost-fill) !important; border-color: var(--ohost-line) !important; }
html.oh-dark .oh-mp-inv-head strong, html.oh-dark .oh-mp-amt, html.oh-dark .oh-mp-desc, html.oh-dark .oh-mp-totals dd, html.oh-dark .oh-body .oh-mp-title { color: var(--ohost-text) !important; }
html.oh-dark .oh-mp-totals .oh-mp-total dd { color: var(--ohost-accent) !important; }

/* ===== v17: open a ticket - department cards ===== */
.oh-tk-intro { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding: 20px 22px; background: var(--ohost-surface); border: 1px solid var(--ohost-line); border-left: 4px solid var(--ohost-accent); border-radius: 10px; }
.oh-body .oh-tk-title { margin: 0 0 4px; color: var(--ohost-ink-2) !important; font-size: 1.2rem !important; font-weight: 800; letter-spacing: -0.01em; text-transform: none !important; }
.oh-tk-lead { margin: 0; color: var(--ohost-text-soft); font-size: 0.9rem; line-height: 1.55; }
.oh-tk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.oh-body a.oh-tk-dept { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--ohost-surface); border: 1px solid var(--ohost-line); border-radius: 12px; color: var(--ohost-text); text-decoration: none !important; transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease; }
.oh-body a.oh-tk-dept:hover { border-color: var(--ohost-accent); box-shadow: 0 12px 28px rgba(11, 26, 36, 0.08); transform: translateY(-2px); }
.oh-tk-ic { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 10px; background: rgba(63, 158, 164, 0.14); color: var(--ohost-accent); font-size: 20px; }
.oh-tk-text { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.oh-tk-text strong { color: var(--ohost-ink-2); font-size: 1.05rem; font-weight: 800; }
.oh-tk-text span { color: var(--ohost-text-soft); font-size: 0.88rem; line-height: 1.55; }
.oh-tk-go { color: var(--ohost-accent); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.oh-tk-go i { margin-left: 4px; transition: transform 140ms ease; }
.oh-body a.oh-tk-dept:hover .oh-tk-go i { transform: translateX(3px); }
.oh-tk-help { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ohost-line); }
.oh-tk-help a { color: var(--ohost-text-soft); font-size: 0.88rem; font-weight: 600; }
.oh-tk-help a i { margin-right: 6px; color: var(--ohost-accent); }
.oh-tk-help a:hover { color: var(--ohost-accent); }
html.oh-dark .oh-tk-intro, html.oh-dark .oh-body a.oh-tk-dept { background: var(--ohost-surface) !important; border-color: var(--ohost-line) !important; }
html.oh-dark .oh-tk-intro { border-left-color: var(--ohost-accent) !important; }
html.oh-dark .oh-body a.oh-tk-dept:hover { border-color: var(--ohost-accent) !important; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35); }
html.oh-dark .oh-tk-text strong, html.oh-dark .oh-body .oh-tk-title { color: var(--ohost-text) !important; }

/* ===== v17: affiliate signup ===== */
.oh-aff-hero { padding: 38px 28px 32px; text-align: center; background: linear-gradient(135deg, rgba(63, 158, 164, 0.12), rgba(210, 125, 75, 0.08)); border: 1px solid var(--ohost-line); border-radius: 14px; }
.oh-aff-hero-ic { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 16px; background: var(--ohost-accent); color: #fff; font-size: 28px; box-shadow: 0 10px 24px rgba(63, 158, 164, 0.35); }
.oh-body .oh-aff-hero h2 { margin: 0 0 8px; color: var(--ohost-ink-2) !important; font-family: var(--ohost-font-head); font-size: 1.9rem !important; font-weight: 800; letter-spacing: -0.02em; text-transform: none !important; }
.oh-aff-hero p { margin: 0 auto; max-width: 560px; color: var(--ohost-text-soft); font-size: 1rem; }
.oh-aff-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 0; }
@media (max-width: 767px) { .oh-aff-points { grid-template-columns: 1fr; } }
.oh-aff-point { padding: 22px; background: var(--ohost-surface); border: 1px solid var(--ohost-line); border-radius: 12px; }
.oh-aff-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 10px; background: rgba(63, 158, 164, 0.14); color: var(--ohost-accent); font-size: 18px; }
.oh-body .oh-aff-point h3 { margin: 0 0 6px; color: var(--ohost-ink-2) !important; font-size: 1rem !important; font-weight: 800; text-transform: none !important; letter-spacing: 0; }
.oh-aff-point p { margin: 0; color: var(--ohost-text-soft); font-size: 0.88rem; line-height: 1.6; }
.oh-aff-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 26px; }
.oh-body .btn.oh-aff-btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 30px; background: var(--ohost-action) !important; border-color: var(--ohost-action) !important; font-size: 0.9rem; letter-spacing: 0.08em; }
.oh-body .btn.oh-aff-btn:hover { filter: brightness(1.05); }
.oh-aff-cta span { color: var(--ohost-text-soft); font-size: 0.85rem; }
html.oh-dark .oh-aff-hero { background: linear-gradient(135deg, rgba(63, 158, 164, 0.16), rgba(210, 125, 75, 0.1)) !important; border-color: var(--ohost-line) !important; }
html.oh-dark .oh-aff-point { background: var(--ohost-surface) !important; border-color: var(--ohost-line) !important; }
html.oh-dark .oh-body .oh-aff-hero h2, html.oh-dark .oh-body .oh-aff-point h3 { color: var(--ohost-text) !important; }

/* ===== v18: email not verified - warning card ===== */
.oh-body .verification-banner.oh-verify { padding: 18px 0 0; background: transparent !important; border: 0 !important; }
.oh-verify-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 56px 18px 20px;
  background: linear-gradient(90deg, rgba(240, 173, 78, 0.18), rgba(240, 173, 78, 0.06));
  border: 1px solid rgba(240, 173, 78, 0.55);
  border-left: 5px solid #f0ad4e;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(176, 108, 0, 0.12);
  animation: ohVerifyIn 420ms ease-out both;
}
@keyframes ohVerifyIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.oh-verify-ic { position: relative; flex: 0 0 52px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #f0ad4e; color: #fff; font-size: 22px; }
.oh-verify-ic b { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #d9534f; color: #fff; font-size: 11px; box-shadow: 0 0 0 3px var(--ohost-bg, #fff); animation: ohVerifyPulse 1.8s ease-in-out infinite; }
@keyframes ohVerifyPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.oh-verify-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.oh-verify-text strong { color: #7a4a00; font-size: 1.05rem; font-weight: 800; }
.oh-verify-text .text { color: #5c4210; font-size: 0.92rem; line-height: 1.5; }
.oh-body .btn.oh-verify-btn {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 20px;
  border: 0 !important;
  border-radius: 8px;
  background: #d27d4b !important;
  color: #fff !important;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(210, 125, 75, 0.35);
}
.oh-body .btn.oh-verify-btn:hover { filter: brightness(1.06); }
.oh-body .btn.oh-verify-btn[disabled] { opacity: 1; background: var(--ohost-success) !important; box-shadow: none; }
.oh-body .btn.close.oh-verify-close { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); width: 32px; height: 32px; padding: 0; border-radius: 50%; background: transparent; color: #7a4a00; opacity: 0.6; font-size: 22px; line-height: 1; text-shadow: none; float: none; }
.oh-body .btn.close.oh-verify-close:hover { opacity: 1; background: rgba(240, 173, 78, 0.2); }
html.oh-dark .oh-body .verification-banner.oh-verify { background: transparent !important; border: 0 !important; }
html.oh-dark .oh-verify-box { background: linear-gradient(90deg, rgba(240, 173, 78, 0.2), rgba(240, 173, 78, 0.06)); border-color: rgba(240, 173, 78, 0.45); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35); }
html.oh-dark .oh-verify-text strong { color: #ffc46b !important; }
html.oh-dark .oh-verify-text .text { color: #f3dcb2 !important; }
html.oh-dark .oh-verify-ic, html.oh-dark .oh-verify-ic .fas { color: #fff !important; }
html.oh-dark .oh-verify-ic b { box-shadow: 0 0 0 3px var(--ohost-surface); }
html.oh-dark .oh-body .btn.close.oh-verify-close { color: #ffc46b !important; }
@media (prefers-reduced-motion: reduce) { .oh-verify-box, .oh-verify-ic b { animation: none; } }
@media (max-width: 767px) {
  .oh-verify-box { flex-wrap: wrap; padding: 16px 48px 16px 16px; }
  .oh-verify-ic { flex-basis: 44px; width: 44px; height: 44px; font-size: 19px; }
  .oh-verify-text { flex-basis: calc(100% - 64px); }
  .oh-body .btn.oh-verify-btn { width: 100%; }
  .oh-body .btn.close.oh-verify-close { top: 14px; transform: none; }
}

/* ===== Mobile review (phone screenshots, October 2026) ===== */
@media (max-width: 767px) {
  /* nothing may push the page wider than the phone */
  body.oh-body { overflow-x: clip; }
  /* back-to-top: smaller and a little transparent so it does not hide fields and select arrows */
  section#footer .oh-back-top { right: 12px; bottom: 14px; width: 38px; height: 38px; font-size: 15px; }
  section#footer .oh-back-top.oh-show { opacity: 0.85; }
  /* client area: wide tables scroll inside their card instead of stretching the page */
  .oh-body .main-content .table-responsive,
  .oh-body .main-content .dataTables_wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .oh-body .main-content img { max-width: 100%; height: auto; }
  .oh-svc-head, .oh-dom-top { gap: 14px; }
  .oh-svc-actions { width: 100%; }
  .oh-svc-actions .btn { flex: 1 1 auto; justify-content: center; }
  .oh-svc-nav { padding: 10px; }
  .oh-body a.oh-svc-act { flex: 1 1 calc(50% - 8px); justify-content: center; padding: 9px 10px; font-size: 0.82rem; }
  .oh-svc-tiles > div { flex-basis: 100%; }
  .oh-mp-items li { flex-direction: column; gap: 4px; }
  .oh-tk-grid { grid-template-columns: 1fr; }
  .oh-credit-card { padding: 16px; }
}

/* ===== v19: promotion banner (hook ohost_promo_banner.php, includes/ohost-promo.tpl) ===== */
.oh-promo-bar-wrap { padding-top: 18px; }
.oh-promo-bar-wrap + .container { margin-top: 0; }
.oh-promo-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  padding: 14px 16px 14px 18px;
  border-radius: 12px;
  background: linear-gradient(100deg, #0b1a24 0%, #12303b 55%, #1d4f57 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(11, 26, 36, 0.18);
  position: relative;
  overflow: hidden;
}
.oh-promo-bar::after { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(210, 125, 75, 0.35), transparent 70%); pointer-events: none; }
.oh-promo-bar[hidden] { display: none; }
.oh-promo-ic { flex: 0 0 46px; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--ohost-action); color: #fff; font-size: 20px; box-shadow: 0 6px 16px rgba(210, 125, 75, 0.4); }
.oh-promo-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; position: relative; z-index: 1; }
.oh-promo-text strong { font-size: 1rem; font-weight: 800; line-height: 1.35; color: #fff; }
.oh-promo-text span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.oh-promo-off { padding: 2px 9px; border-radius: 999px; background: #3ecf8e; color: #0b1a24; font-size: 0.8rem; font-style: normal; font-weight: 800; }
.oh-promo-text small { color: rgba(255, 255, 255, 0.72); font-size: 0.8rem; }
.oh-promo-code { position: relative; z-index: 1; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 2px dashed rgba(255, 255, 255, 0.55); border-radius: 10px; background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; transition: background 140ms ease, border-color 140ms ease; }
.oh-promo-code:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }
.oh-promo-code-l { color: rgba(255, 255, 255, 0.7); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.oh-promo-code b { font-family: "SFMono-Regular", Consolas, Menlo, monospace; font-size: 1.05rem; letter-spacing: 0.08em; }
.oh-promo-code.is-copied { border-color: #3ecf8e; background: rgba(62, 207, 142, 0.18); }
.oh-body .btn.oh-promo-use { position: relative; z-index: 1; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 0 !important; border-radius: 8px; background: var(--ohost-action) !important; color: #fff !important; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.oh-body .btn.oh-promo-use:hover { filter: brightness(1.06); }
.oh-promo-close { position: relative; z-index: 1; flex: 0 0 auto; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: rgba(255, 255, 255, 0.7); font-size: 22px; line-height: 1; cursor: pointer; }
.oh-promo-close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
/* cart: promo field filled from the banner */
#order-digit-of #inputPromotionCode.oh-promo-prefilled { border-color: var(--ohost-action) !important; box-shadow: 0 0 0 3px rgba(210, 125, 75, 0.25) !important; }
@media (max-width: 767px) {
  .oh-promo-bar { flex-wrap: wrap; padding: 14px 44px 14px 14px; gap: 12px; }
  .oh-promo-ic { flex-basis: 40px; width: 40px; height: 40px; font-size: 17px; }
  .oh-promo-text { flex-basis: calc(100% - 56px); }
  .oh-promo-code { flex: 1 1 auto; justify-content: center; }
  .oh-body .btn.oh-promo-use { flex: 1 1 auto; justify-content: center; }
  .oh-promo-close { position: absolute; top: 8px; right: 8px; }
}

/* v19b: promotion banner polish - stands out on both themes, no muddy glow, coupon-like code */
.oh-promo-bar {
  border-radius: 12px !important;
  border: 1px solid rgba(63, 158, 164, 0.35);
  border-left: 5px solid var(--ohost-action);
  background:
    linear-gradient(100deg, rgba(210, 125, 75, 0.16) 0%, rgba(210, 125, 75, 0) 38%),
    linear-gradient(100deg, #0b1a24 0%, #133640 60%, #1b4d55 100%) !important;
}
.oh-promo-bar::after { display: none; }
.oh-promo-ic { border-radius: 12px !important; }
.oh-promo-off { border-radius: 999px !important; }
.oh-promo-code { border-radius: 10px !important; border: 2px dashed rgba(255, 255, 255, 0.6) !important; background: rgba(255, 255, 255, 0.1) !important; }
.oh-promo-code:hover { border-color: #fff !important; background: rgba(255, 255, 255, 0.18) !important; }
.oh-promo-code b { color: #fff; }
.oh-body .btn.oh-promo-use { border-radius: 8px !important; }
/* dark theme: a lighter teal card with a glowing edge, so it does not melt into the page */
html.oh-dark .oh-promo-bar {
  border-color: rgba(63, 158, 164, 0.55);
  border-left-color: var(--ohost-action);
  background:
    linear-gradient(100deg, rgba(210, 125, 75, 0.2) 0%, rgba(210, 125, 75, 0) 40%),
    linear-gradient(100deg, #17323d 0%, #1d4651 60%, #23606a 100%) !important;
  box-shadow: 0 0 0 1px rgba(63, 158, 164, 0.15), 0 14px 34px rgba(0, 0, 0, 0.45);
}
html.oh-dark .oh-promo-code { border-color: rgba(255, 255, 255, 0.7) !important; background: rgba(0, 0, 0, 0.18) !important; color: #fff !important; }
html.oh-dark .oh-promo-text strong, html.oh-dark .oh-promo-code b { color: #fff !important; }
html.oh-dark .oh-promo-text small, html.oh-dark .oh-promo-code-l { color: rgba(255, 255, 255, 0.75) !important; }
/* stronger than the generated dark twins (ohost-dark-auto.css) */
html.oh-dark .oh-promo-bar .oh-promo-off { color: #0b1a24 !important; background: #3ecf8e !important; }
html.oh-dark .oh-promo-bar .oh-promo-code { border: 2px dashed rgba(255, 255, 255, 0.7) !important; }
html.oh-dark .oh-promo-bar .oh-promo-code:hover { border-color: #fff !important; }
html.oh-dark .oh-promo-bar .oh-promo-code.is-copied { border-color: #3ecf8e !important; }
/* v19c: no orange left stripe - the gift icon and the button carry the accent */
.oh-promo-bar { border-left: 1px solid rgba(63, 158, 164, 0.35) !important; }
html.oh-dark .oh-promo-bar { border-left-color: rgba(63, 158, 164, 0.55) !important; }
/* v19d: promotion banner on phones - long codes and titles stay inside, comfortable touch targets */
@media (max-width: 767px) {
  .oh-promo-bar-wrap { padding-top: 12px; }
  .oh-promo-bar { gap: 10px 12px; padding: 14px 42px 14px 14px; }
  .oh-promo-text strong { font-size: 0.95rem; line-height: 1.3; }
  .oh-promo-text small { font-size: 0.76rem; }
  .oh-promo-code { flex: 1 1 100%; min-width: 0; min-height: 46px; justify-content: center; }
  .oh-promo-code b { min-width: 0; overflow-wrap: anywhere; font-size: 1rem; letter-spacing: 0.05em; }
  .oh-body .btn.oh-promo-use { flex: 1 1 100%; height: 46px; justify-content: center; }
  .oh-promo-close { top: 6px; right: 6px; width: 34px; height: 34px; }
}
@media (max-width: 360px) {
  .oh-promo-code-l { display: none; }
}
/* emoji from the promotion short codes (:ghost: …) - bigger than the text, sitting on the same line */
.oh-promo-text .oh-emoji { display: inline-block; margin: 0 0.06em; font-size: 1.6em; font-weight: 400; line-height: 1; vertical-align: -0.18em; }
@media (max-width: 767px) { .oh-promo-text .oh-emoji { font-size: 1.4em; } }
.oh-promo-text .oh-emoji.oh-emoji-big { font-size: 2.4em; vertical-align: -0.3em; }
@media (max-width: 767px) { .oh-promo-text .oh-emoji.oh-emoji-big { font-size: 2em; } }

/* v20: cPanel one-click login in the service header */
.oh-svc-login { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.oh-body .btn.oh-cp-btn,
.oh-body .btn.oh-cp-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.oh-body .btn.oh-cp-btn { border: 0 !important; background: #ff6c2c !important; color: #fff !important; box-shadow: 0 6px 16px rgba(255, 108, 44, 0.3); }
.oh-body .btn.oh-cp-btn:hover { filter: brightness(1.06); }
.oh-body .btn.oh-cp-btn img { height: 14px; width: auto; filter: brightness(0) invert(1); }
.oh-body .btn.oh-cp-btn > i { font-size: 0.75em; opacity: 0.85; }
.oh-body .btn.oh-cp-mail { border: 1px solid var(--ohost-line-strong) !important; background: transparent !important; color: var(--ohost-ink-2) !important; }
.oh-body .btn.oh-cp-mail:hover { border-color: var(--ohost-accent) !important; color: var(--ohost-accent) !important; }
.oh-body .btn.oh-cp-mail i { color: var(--ohost-accent); }
html.oh-dark .oh-body .btn.oh-cp-mail { color: var(--ohost-text) !important; border-color: var(--ohost-line) !important; }
@media (max-width: 767px) {
  .oh-svc-login { width: 100%; }
  .oh-body .btn.oh-cp-btn, .oh-body .btn.oh-cp-mail { flex: 1 1 100%; justify-content: center; }
}

/* v21: client area menu sticks under the main header while scrolling (not on phones, to keep the screen free) */
@media (min-width: 992px) {
  .oh-clientnav { position: sticky; top: var(--oh-header-h, 86px); z-index: 1025; }
}
/* everything else that sticks goes below both bars (values measured in ohost-ui.js) */
@media (min-width: 1200px) {
  .oh-body .main-content.oh-dom-layout > .oh-dnav-side { top: var(--oh-sticky-top, 104px); }
}
.oh-mp-side { top: var(--oh-sticky-top, 104px); }

/* v22: client area menu - icons, current section underlined, a little more air */
.oh-clientnav-list { gap: 4px; }
.oh-clientnav-list > li > a { gap: 8px; }
.oh-clientnav-list > li > a .oh-cnav-ic { color: var(--ohost-accent); font-size: 0.95em; opacity: 0.85; transition: opacity 140ms ease, transform 140ms ease; }
.oh-clientnav-list > li > a:hover .oh-cnav-ic,
.oh-clientnav-list > li.open > a .oh-cnav-ic { opacity: 1; transform: translateY(-1px); }
.oh-clientnav-list > li.oh-is-current > a { color: var(--ohost-accent) !important; }
.oh-clientnav-list > li.oh-is-current > a .oh-cnav-ic { opacity: 1; }
.oh-clientnav-list > li.oh-is-current > a::after { transform: scaleX(1); background: var(--ohost-accent); }
html.oh-dark .oh-body .oh-clientnav-list > li.oh-is-current > a { color: var(--ohost-accent) !important; }
@media (min-width: 992px) and (max-width: 1199px) {
  .oh-clientnav-list { gap: 0; }
  .oh-clientnav-list > li > a { gap: 6px; }
}

/* v22b: light theme - the client menu bar stands apart from the page, icons in the brand colour */
html:not(.oh-dark) .oh-clientnav {
  background: #fff;
  border-bottom: 1px solid var(--ohost-line-strong);
  box-shadow: 0 8px 22px rgba(11, 26, 36, 0.07);
}
html:not(.oh-dark) .oh-clientnav-list > li > a { color: var(--ohost-ink) !important; }
.oh-clientnav-list > li > a .oh-cnav-ic { color: var(--ohost-accent) !important; opacity: 1; }
html:not(.oh-dark) .oh-clientnav-list > li > a:hover,
html:not(.oh-dark) .oh-clientnav-list > li.open > a,
html:not(.oh-dark) .oh-clientnav-list > li.oh-is-current > a { color: var(--ohost-accent) !important; }

/* v22c: client menu dropdowns - hovered and current row tinted, with a teal edge */
.oh-clientnav .dropdown-menu > li > a { transition: background 120ms ease, border-color 120ms ease, color 120ms ease; }
.oh-clientnav .dropdown-menu > li > a:hover,
.oh-clientnav .dropdown-menu > li > a:focus,
.oh-clientnav .dropdown-menu > li.oh-is-current-row > a {
  border-left-color: var(--ohost-accent) !important;
  background: rgba(63, 158, 164, 0.1) !important;
  color: var(--ohost-accent) !important;
}
.oh-clientnav .dropdown-menu > li.oh-is-current-row > a { font-weight: 700; }
html.oh-dark .oh-clientnav .dropdown-menu > li > a:hover,
html.oh-dark .oh-clientnav .dropdown-menu > li > a:focus,
html.oh-dark .oh-clientnav .dropdown-menu > li.oh-is-current-row > a { background: rgba(63, 158, 164, 0.16) !important; color: var(--ohost-accent) !important; }

/* ===== v23: view ticket - conversation cards and reply box ===== */
.oh-tk-thread { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.oh-body .ticket-reply.oh-tk-msg {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: var(--ohost-surface) !important;
  border: 1px solid var(--ohost-line) !important;
  border-left: 4px solid var(--ohost-line-strong) !important;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(11, 26, 36, 0.04);
}
.oh-body .ticket-reply.oh-tk-msg.oh-tk-msg-staff { border-left-color: var(--ohost-accent) !important; background: linear-gradient(180deg, rgba(63, 158, 164, 0.06), rgba(63, 158, 164, 0) 120px), var(--ohost-surface) !important; }
.oh-tk-msg-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--ohost-line); background: transparent !important; }
.oh-tk-avatar { flex: 0 0 42px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; background: var(--ohost-fill); color: var(--ohost-text-soft); font-size: 17px; }
.oh-tk-avatar img { width: 42px; height: 42px; border-radius: 50%; }
.oh-tk-msg-staff .oh-tk-avatar { background: var(--ohost-accent); color: #fff; }
.oh-tk-who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.oh-body .oh-tk-who .name { color: var(--ohost-ink-2) !important; font-size: 0.98rem; font-weight: 800; }
.oh-tk-role { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.oh-body .oh-tk-badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(40, 167, 69, 0.14) !important; color: #1e7e34 !important; }
.oh-body .oh-tk-badge.oh-tk-badge-staff { background: rgba(63, 158, 164, 0.16) !important; color: var(--ohost-accent) !important; }
.oh-tk-mail { color: var(--ohost-text-soft); font-size: 0.8rem; overflow-wrap: anywhere; }
.oh-body .oh-tk-date { flex: 0 0 auto; color: var(--ohost-text-soft) !important; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.oh-tk-date i { margin-right: 4px; }
.oh-body .oh-tk-body { padding: 18px 20px 20px; color: var(--ohost-text) !important; font-size: 0.97rem; line-height: 1.7; overflow-wrap: anywhere; }
.oh-body .oh-tk-body p { margin: 0 0 10px; }
.oh-body .oh-tk-body p:last-child { margin-bottom: 0; }
.oh-body .oh-tk-body pre, .oh-body .oh-tk-body code { border-radius: 6px; background: var(--ohost-fill); }
.oh-body .oh-tk-body a { font-weight: 600; text-decoration: underline; }
.oh-tk-rate { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--ohost-line); }
.oh-body .oh-tk-files { margin: 0; padding: 12px 20px 16px; border-top: 1px dashed var(--ohost-line) !important; background: transparent !important; }
.oh-tk-files-t { display: block; margin-bottom: 8px; color: var(--ohost-text-soft); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.oh-tk-files ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.oh-tk-files li a, .oh-tk-files li.is-removed { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--ohost-line); border-radius: 8px; background: var(--ohost-fill); color: var(--ohost-ink-2); font-size: 0.85rem; font-weight: 600; text-decoration: none !important; }
.oh-tk-files li a:hover { border-color: var(--ohost-accent); color: var(--ohost-accent); }
.oh-tk-files li.is-removed { opacity: 0.6; }
.oh-tk-files li i { color: var(--ohost-accent); }
.oh-tk-ip { padding: 8px 20px 12px; color: var(--ohost-text-soft); font-size: 0.75rem; opacity: 0.8; }

/* reply box: a clear bar that opens the form */
.oh-body .wdes-client-ticket { overflow: hidden; margin-bottom: 4px; border: 1px solid var(--ohost-line) !important; border-radius: 12px; background: var(--ohost-surface) !important; }
.oh-body .wdes-client-ticket > .panel-heading { cursor: pointer; padding: 16px 20px !important; border: 0 !important; background: linear-gradient(90deg, rgba(63, 158, 164, 0.14), rgba(63, 158, 164, 0.04)) !important; }
.oh-body .wdes-client-ticket > .panel-heading .panel-title { display: flex; align-items: center; gap: 4px; color: var(--ohost-ink-2) !important; font-size: 0.95rem !important; font-weight: 800; letter-spacing: 0.02em; }
.oh-body .wdes-client-ticket > .panel-heading .panel-title i { color: var(--ohost-accent); }
.oh-body .wdes-client-ticket > .panel-heading .collapse-icon { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ohost-accent); color: #fff; }
.oh-body .wdes-client-ticket > .panel-heading:hover { background: linear-gradient(90deg, rgba(63, 158, 164, 0.22), rgba(63, 158, 164, 0.06)) !important; }
.oh-body .wdes-client-ticket .panel-body { padding: 20px !important; }
.oh-body .wdes-client-ticket textarea.form-control { min-height: 180px; border-radius: 8px; font-size: 0.95rem; line-height: 1.6; }

html.oh-dark .oh-body .ticket-reply.oh-tk-msg { background: var(--ohost-surface) !important; border-color: var(--ohost-line) !important; border-left-color: var(--ohost-line-strong) !important; }
html.oh-dark .oh-body .ticket-reply.oh-tk-msg.oh-tk-msg-staff { border-left-color: var(--ohost-accent) !important; background: linear-gradient(180deg, rgba(63, 158, 164, 0.1), rgba(63, 158, 164, 0) 120px), var(--ohost-surface) !important; }
html.oh-dark .oh-tk-msg-head { border-color: var(--ohost-line) !important; }
html.oh-dark .oh-body .oh-tk-who .name, html.oh-dark .oh-body .oh-tk-body, html.oh-dark .oh-body .wdes-client-ticket > .panel-heading .panel-title { color: var(--ohost-text) !important; }
html.oh-dark .oh-body .oh-tk-badge { color: #6fdc8c !important; }
html.oh-dark .oh-body .oh-tk-badge.oh-tk-badge-staff { color: var(--ohost-accent) !important; }
html.oh-dark .oh-tk-files li a, html.oh-dark .oh-tk-files li.is-removed { background: var(--ohost-fill) !important; border-color: var(--ohost-line) !important; color: var(--ohost-text) !important; }
html.oh-dark .oh-body .wdes-client-ticket { background: var(--ohost-surface) !important; border-color: var(--ohost-line) !important; }
@media (max-width: 767px) {
  .oh-tk-msg-head { flex-wrap: wrap; padding: 14px 16px; }
  .oh-body .oh-tk-date { flex-basis: 100%; padding-left: 56px; }
  .oh-body .oh-tk-body { padding: 14px 16px 16px; }
}
/* the base theme floats/positions .date and colours .user/.name white on a light card */
.oh-body .ticket-reply.oh-tk-msg .date { position: static !important; float: none !important; margin: 0 !important; padding: 0 !important; background: none !important; }
.oh-body .ticket-reply.oh-tk-msg .name { color: var(--ohost-ink-2) !important; }
html.oh-dark .oh-body .ticket-reply.oh-tk-msg .name { color: var(--ohost-text) !important; }

/* ===== v23b: view ticket, second pass ===== */
/* no box around the boxes */
.oh-body.tpl-viewticket .main-content > .wdes-block { padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
html.oh-dark .oh-body.tpl-viewticket .main-content > .wdes-block { background: transparent !important; border: 0 !important; }

/* summary card */
.oh-tk-summary { margin-bottom: 16px; overflow: hidden; background: var(--ohost-surface); border: 1px solid var(--ohost-line); border-radius: 14px; box-shadow: 0 10px 28px rgba(11, 26, 36, 0.06); }
.oh-tk-summary-main { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-top: 4px solid var(--ohost-accent); }
.oh-tk-summary-ic { flex: 0 0 50px; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(135deg, var(--ohost-accent), #2c7a80); color: #fff; font-size: 20px; box-shadow: 0 6px 16px rgba(63, 158, 164, 0.35); }
.oh-tk-summary-t { flex: 1 1 auto; min-width: 0; }
.oh-tk-summary-id { color: var(--ohost-text-soft); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; }
.oh-body .oh-tk-summary-t h2 { margin: 2px 0 0; color: var(--ohost-ink-2) !important; font-family: var(--ohost-font-head); font-size: 1.35rem !important; font-weight: 800; letter-spacing: -0.01em; text-transform: none !important; overflow-wrap: anywhere; }
.oh-tk-summary-status > span, .oh-tk-summary-status { font-size: 0.72rem !important; font-weight: 800 !important; letter-spacing: 0.1em; text-transform: uppercase; }
.oh-tk-summary-status > span { display: inline-block; padding: 6px 12px; border: 1px solid currentColor; border-radius: 999px; background: transparent; }
.oh-tk-summary-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 0; border-top: 1px solid var(--ohost-line); background: var(--ohost-fill); }
.oh-tk-summary-facts > div { padding: 12px 22px; border-right: 1px solid var(--ohost-line); }
.oh-tk-summary-facts > div:last-child { border-right: 0; }
.oh-tk-summary-facts dt { color: var(--ohost-text-soft); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.oh-tk-summary-facts dd { margin: 2px 0 0; color: var(--ohost-ink-2); font-size: 0.92rem; font-weight: 700; }

/* reply bar: looks like an input with a real button */
.oh-body .wdes-client-ticket { border-radius: 14px !important; box-shadow: 0 6px 18px rgba(11, 26, 36, 0.05); }
.oh-body .wdes-client-ticket > .panel-heading { display: flex !important; flex-direction: row-reverse; align-items: center; gap: 12px; padding: 12px 12px 12px 16px !important; background: var(--ohost-surface) !important; }
.oh-body .wdes-client-ticket > .panel-heading:hover { background: var(--ohost-surface) !important; }
.oh-body .wdes-client-ticket > .panel-heading .panel-title { flex: 1 1 auto; margin: 0; gap: 12px; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; }
.oh-tk-reply-ic { flex: 0 0 38px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(63, 158, 164, 0.14); color: var(--ohost-accent); font-size: 15px; }
.oh-tk-reply-ph { flex: 1 1 auto; padding: 11px 14px; border: 1px solid var(--ohost-line); border-radius: 10px; background: var(--ohost-fill); color: var(--ohost-text-soft); font-size: 0.95rem; }
.oh-body .wdes-client-ticket > .panel-heading:hover .oh-tk-reply-ph { border-color: var(--ohost-accent); }
.oh-body .wdes-client-ticket > .panel-heading .collapse-icon { float: none !important; width: auto !important; height: 44px !important; display: inline-flex !important; gap: 8px; padding: 0 18px; border-radius: 10px !important; background: var(--ohost-action) !important; color: #fff !important; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; box-shadow: 0 6px 16px rgba(210, 125, 75, 0.3); }
.oh-body .wdes-client-ticket:not(.panel-collapsed) .oh-tk-reply-ph { display: none; }

/* messages: readable text whatever the base theme says */
.oh-body .oh-tk-msg { box-shadow: 0 8px 24px rgba(11, 26, 36, 0.06) !important; border-radius: 14px !important; }
.oh-body .oh-tk-body,
.oh-body .oh-tk-body p,
.oh-body .oh-tk-body li,
.oh-body .oh-tk-body div,
.oh-body .oh-tk-body span:not(.star) { color: var(--ohost-text) !important; font-family: var(--ohost-font) !important; font-size: 1rem !important; letter-spacing: 0 !important; line-height: 1.7 !important; }
.oh-body .oh-tk-body { padding: 20px 22px 22px !important; }
.oh-tk-avatar { flex-basis: 44px; width: 44px; height: 44px; font-size: 16px; }
.oh-tk-initial { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(135deg, #2d4a5a, #1b2f3b); color: #fff; font-size: 0.9rem; font-weight: 800; letter-spacing: 0.02em; }
.oh-tk-msg-staff .oh-tk-avatar { background: linear-gradient(135deg, var(--ohost-accent), #2c7a80); box-shadow: 0 4px 12px rgba(63, 158, 164, 0.35); }

/* dark theme: cards a step lighter than the page so they read as cards */
html.oh-dark .oh-tk-summary,
html.oh-dark .oh-body .wdes-client-ticket,
html.oh-dark .oh-body .ticket-reply.oh-tk-msg { background-color: #142530 !important; border-color: #233b49 !important; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important; }
html.oh-dark .oh-body .ticket-reply.oh-tk-msg.oh-tk-msg-staff { background: linear-gradient(180deg, rgba(63, 158, 164, 0.14), rgba(63, 158, 164, 0) 140px), #142530 !important; border-left-color: var(--ohost-accent) !important; }
html.oh-dark .oh-tk-summary-facts { background: #10202a !important; border-color: #233b49 !important; }
html.oh-dark .oh-tk-summary-facts > div { border-color: #233b49 !important; }
html.oh-dark .oh-body .oh-tk-summary-t h2, html.oh-dark .oh-tk-summary-facts dd { color: var(--ohost-text) !important; }
html.oh-dark .oh-body .wdes-client-ticket > .panel-heading { background: #142530 !important; }
html.oh-dark .oh-tk-reply-ph { background: #0f1c25 !important; border-color: #233b49 !important; color: var(--ohost-text-soft) !important; }
html.oh-dark .oh-body .oh-tk-body, html.oh-dark .oh-body .oh-tk-body p, html.oh-dark .oh-body .oh-tk-body li, html.oh-dark .oh-body .oh-tk-body div, html.oh-dark .oh-body .oh-tk-body span:not(.star) { color: #e3ebf0 !important; }
html.oh-dark .oh-tk-msg-head { border-color: #233b49 !important; }
@media (max-width: 767px) {
  .oh-tk-summary-main { flex-wrap: wrap; padding: 16px; }
  .oh-tk-summary-status { flex-basis: 100%; }
  .oh-tk-summary-facts > div { padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--ohost-line); }
  .oh-tk-reply-ph { display: none; }
}

/* ===== v23c: ticket polish after review ===== */
/* the heading font has no Cyrillic - use the body font for the ticket subject */
.oh-body .oh-tk-summary-t h2 { font-family: var(--ohost-font) !important; font-size: 1.3rem !important; letter-spacing: -0.01em; }
/* status: one readable colour (WHMCS gives some statuses black) */
.oh-tk-summary-status > span,
.oh-tk-summary-status > span[style] { color: var(--ohost-accent) !important; border-color: rgba(63, 158, 164, 0.6) !important; background: rgba(63, 158, 164, 0.1) !important; }
/* round shapes (the base theme squares them) */
.oh-tk-avatar, .oh-tk-avatar img, .oh-tk-initial, .oh-tk-reply-ic { border-radius: 50% !important; }
.oh-tk-summary-ic { border-radius: 12px !important; }
.oh-tk-summary, .oh-body .wdes-client-ticket, .oh-body .ticket-reply.oh-tk-msg { border-radius: 14px !important; }
.oh-tk-reply-ph, .oh-body .wdes-client-ticket > .panel-heading .collapse-icon { border-radius: 10px !important; }
/* rating row: no big gap under the stars */
.oh-tk-rate { display: flex; align-items: center; justify-content: flex-end; min-height: 0; margin-top: 12px; padding-top: 10px; }
.oh-tk-rate .rating, .oh-tk-rate .rating-done { float: none !important; padding: 0 !important; font-size: 20px !important; }
.oh-body .oh-tk-body { padding-bottom: 16px !important; }
/* rating: given stars solid gold, empty ones grey outlines; hovering fills them before you click */
.oh-body .oh-tk-rate .rating span.star:before,
.oh-body .oh-tk-rate .rating-done span.star:before { content: "\f005"; color: #b7c3cc; font-weight: 400; }
.oh-body .oh-tk-rate .rating span.star:hover:before,
.oh-body .oh-tk-rate .rating span.star:hover ~ span.star:before,
.oh-body .oh-tk-rate .rating-done span.star.active:before { color: #f5b301; font-weight: 900; }
.oh-body .oh-tk-rate .rating span.star { margin: 0 1px; transition: transform 120ms ease; }
.oh-body .oh-tk-rate .rating span.star:hover { transform: scale(1.15); }
.oh-body .oh-tk-rate .rating-done .rated { margin-right: 8px; color: var(--ohost-text-soft) !important; font-family: var(--ohost-font) !important; font-size: 0.82rem !important; direction: ltr; }
html.oh-dark .oh-body .oh-tk-rate .rating span.star:before,
html.oh-dark .oh-body .oh-tk-rate .rating-done span.star:before { color: #4a6272; }
html.oh-dark .oh-body .oh-tk-rate .rating span.star:hover:before,
html.oh-dark .oh-body .oh-tk-rate .rating span.star:hover ~ span.star:before,
html.oh-dark .oh-body .oh-tk-rate .rating-done span.star.active:before { color: #ffc531; }

/* ===== v24: open-ticket page - full width, departments + recent tickets ===== */
.oh-body.tpl-supportticketsubmit-stepone .main-content > .wdes-block { padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
.oh-tk .oh-tk-intro { border-radius: 14px; box-shadow: 0 8px 24px rgba(11, 26, 36, 0.05); }
.oh-tk .oh-tk-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.oh-body .oh-tk a.oh-tk-dept { border-radius: 14px !important; box-shadow: 0 6px 18px rgba(11, 26, 36, 0.04); }
.oh-tk .oh-tk-ic { border-radius: 12px !important; }

.oh-tk-recent { margin-top: 24px; overflow: hidden; background: var(--ohost-surface); border: 1px solid var(--ohost-line); border-radius: 14px; box-shadow: 0 8px 24px rgba(11, 26, 36, 0.05); }
.oh-tk-recent-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--ohost-line); }
.oh-body .oh-tk-recent-head h3 { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ohost-ink-2) !important; font-family: var(--ohost-font) !important; font-size: 1rem !important; font-weight: 800; letter-spacing: 0; text-transform: none !important; }
.oh-tk-recent-head h3 i { color: var(--ohost-accent); }
.oh-tk-recent-all { color: var(--ohost-accent); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.oh-tk-recent-list { margin: 0; padding: 0; list-style: none; }
.oh-tk-recent-list li + li { border-top: 1px solid var(--ohost-line); }
.oh-body a.oh-tk-recent-item { display: flex; align-items: center; gap: 14px; padding: 14px 20px; color: var(--ohost-text); text-decoration: none !important; transition: background 120ms ease; }
.oh-body a.oh-tk-recent-item:hover { background: rgba(63, 158, 164, 0.06); }
.oh-tk-recent-ic { flex: 0 0 38px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(63, 158, 164, 0.14); color: var(--ohost-accent); font-size: 15px; }
.oh-tk-recent-item.is-closed .oh-tk-recent-ic { background: var(--ohost-fill); color: var(--ohost-text-soft); }
.oh-tk-recent-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.oh-tk-recent-main strong { overflow: hidden; color: var(--ohost-ink-2); font-size: 0.97rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.oh-tk-recent-main strong em { margin-right: 6px; color: var(--ohost-text-soft); font-style: normal; font-weight: 800; }
.oh-tk-recent-main small { color: var(--ohost-text-soft); font-size: 0.8rem; }
.oh-tk-recent-main small i { margin-right: 4px; }
.oh-tk-recent-status { flex: 0 0 auto; padding: 5px 11px; border: 1px solid currentColor; border-radius: 999px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; color: var(--ohost-text-soft); }
.oh-st-open { color: #1f9d55; background: rgba(31, 157, 85, 0.1); }
.oh-st-answered { color: var(--ohost-accent); background: rgba(63, 158, 164, 0.1); }
.oh-st-customer-reply { color: #d97706; background: rgba(217, 119, 6, 0.1); }
.oh-st-in-progress { color: #2563eb; background: rgba(37, 99, 235, 0.1); }
.oh-st-on-hold { color: #7c3aed; background: rgba(124, 58, 237, 0.1); }
.oh-st-closed { color: var(--ohost-text-soft); background: transparent; opacity: 0.85; }
.oh-tk-recent-go { flex: 0 0 auto; color: var(--ohost-text-soft); font-size: 0.8rem; transition: transform 120ms ease, color 120ms ease; }
.oh-body a.oh-tk-recent-item:hover .oh-tk-recent-go { color: var(--ohost-accent); transform: translateX(3px); }

.oh-tk .oh-tk-help { gap: 10px 26px; }
html.oh-dark .oh-tk-recent { background: #142530 !important; border-color: #233b49 !important; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
html.oh-dark .oh-tk-recent-head, html.oh-dark .oh-tk-recent-list li + li { border-color: #233b49 !important; }
html.oh-dark .oh-body .oh-tk-recent-head h3, html.oh-dark .oh-tk-recent-main strong { color: var(--ohost-text) !important; }
html.oh-dark .oh-st-open { color: #4ade80; }
html.oh-dark .oh-st-customer-reply { color: #fbbf24; }
html.oh-dark .oh-st-in-progress { color: #60a5fa; }
html.oh-dark .oh-st-on-hold { color: #a78bfa; }
html.oh-dark .oh-tk .oh-tk-intro, html.oh-dark .oh-body .oh-tk a.oh-tk-dept { background: #142530 !important; border-color: #233b49 !important; }
@media (max-width: 575px) {
  .oh-body a.oh-tk-recent-item { flex-wrap: wrap; padding: 12px 14px; }
  .oh-tk-recent-main { flex-basis: calc(100% - 52px); }
  .oh-tk-recent-main strong { white-space: normal; }
  .oh-tk-recent-status { margin-left: 52px; }
  .oh-tk-recent-go { display: none; }
}

/* v24b: dark sidebar - rows were a shade lighter than their card with rounded corners, which showed as small
   notches at every row edge; now flat rows on the card colour, divided by a thin line */
html.oh-dark .oh-sidebar .list-group .list-group-item {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ohost-line) !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
html.oh-dark .oh-sidebar .list-group .list-group-item:last-child { border-bottom: 0 !important; }
html.oh-dark .oh-sidebar .list-group a.list-group-item:hover { background: rgba(63, 158, 164, 0.1) !important; }
html.oh-dark .oh-sidebar .panel-sidebar a.list-group-item.active { background: rgba(63, 158, 164, 0.16) !important; box-shadow: inset 3px 0 0 var(--ohost-accent); }
html.oh-dark .oh-sidebar .panel-body,
html.oh-dark .oh-sidebar .list-group { background: transparent !important; }

/* ===== v25: news (announcements.tpl, viewannouncement.tpl) ===== */
.oh-news { display: flex; flex-direction: column; gap: 16px; }
.oh-news .oh-news-intro { margin-bottom: 2px; border-radius: 14px; box-shadow: 0 8px 24px rgba(11, 26, 36, 0.05); }
.oh-news-list { display: flex; flex-direction: column; gap: 14px; }

/* list card: date badge + text */
.oh-news-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 20px; align-items: start; padding: 22px 24px; background: var(--ohost-surface); border: 1px solid var(--ohost-line); border-radius: 14px; box-shadow: 0 8px 24px rgba(11, 26, 36, 0.05); transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.oh-news-card:hover { border-color: rgba(63, 158, 164, 0.55); box-shadow: 0 14px 32px rgba(11, 26, 36, 0.09); transform: translateY(-1px); }
.oh-body a.oh-news-date { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 84px; padding: 10px 4px; border-radius: 12px; background: rgba(63, 158, 164, 0.1); color: var(--ohost-accent) !important; text-align: center; text-decoration: none !important; }
.oh-news-day { font-family: var(--ohost-font); font-size: 1.75rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.oh-news-mon { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.oh-news-year { color: var(--ohost-text-soft); font-size: 0.72rem; font-weight: 600; }
.oh-body .oh-news-maint a.oh-news-date { background: rgba(210, 125, 75, 0.12); color: var(--ohost-action) !important; }
.oh-news-featured { border-left: 4px solid var(--ohost-accent); padding: 26px 28px; }
.oh-news-featured.oh-news-maint { border-left-color: var(--ohost-action); }
.oh-body .oh-news-featured a.oh-news-date { background: var(--ohost-accent); color: #fff !important; box-shadow: 0 8px 18px rgba(63, 158, 164, 0.3); }
.oh-body .oh-news-featured.oh-news-maint a.oh-news-date { background: var(--ohost-action); box-shadow: 0 8px 18px rgba(210, 125, 75, 0.3); }
.oh-news-featured a.oh-news-date .oh-news-year { color: rgba(255, 255, 255, 0.85); }

.oh-news-main { min-width: 0; }
.oh-news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; color: var(--ohost-text-soft); font-size: 0.8rem; font-weight: 600; }
.oh-news-meta i { margin-right: 3px; }
.oh-news-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: rgba(63, 158, 164, 0.1); color: var(--ohost-accent); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.oh-news-tag i { margin: 0; }
.oh-news-tag-maint { background: rgba(210, 125, 75, 0.12); color: var(--ohost-action); }
.oh-news-tag-new { background: var(--ohost-accent); color: #fff; }
.oh-body .oh-news-title { margin: 0 0 8px; font-family: var(--ohost-font) !important; font-size: 1.15rem !important; font-weight: 800; line-height: 1.35; letter-spacing: -0.01em; text-transform: none !important; }
.oh-body .oh-news-featured .oh-news-title { font-size: 1.35rem !important; }
.oh-body .oh-news-title a { color: var(--ohost-ink-2) !important; text-decoration: none !important; }
.oh-body .oh-news-title a:hover { color: var(--ohost-accent) !important; }
.oh-body .oh-news-excerpt { margin: 0 0 12px; color: var(--ohost-text-soft) !important; font-size: 0.93rem !important; line-height: 1.65 !important; overflow-wrap: anywhere; }
.oh-body a.oh-news-more { display: inline-flex; align-items: center; gap: 6px; color: var(--ohost-accent) !important; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none !important; }
.oh-body a.oh-news-more i { transition: transform 140ms ease; }
.oh-news-card:hover a.oh-news-more i { transform: translateX(3px); }

.oh-news-empty { padding: 40px 20px; background: var(--ohost-surface); border: 1px dashed var(--ohost-line); border-radius: 14px; color: var(--ohost-text-soft); text-align: center; }
.oh-news-empty i { margin-bottom: 10px; color: var(--ohost-accent); font-size: 28px; }
.oh-news-empty p { margin: 0; }

.oh-news-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.oh-body a.oh-news-page { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--ohost-line); border-radius: 10px; background: var(--ohost-surface); color: var(--ohost-ink-2) !important; font-weight: 700; text-decoration: none !important; }
.oh-body a.oh-news-page:hover { border-color: var(--ohost-accent); color: var(--ohost-accent) !important; }
.oh-body a.oh-news-page.is-active { border-color: var(--ohost-accent); background: var(--ohost-accent); color: #fff !important; }
.oh-body a.oh-news-page.is-disabled { opacity: 0.45; pointer-events: none; }

/* single news item */
.oh-body a.oh-news-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; color: var(--ohost-text-soft) !important; font-size: 0.85rem; font-weight: 700; text-decoration: none !important; }
.oh-body a.oh-news-back:hover { color: var(--ohost-accent) !important; }
.oh-body a.oh-news-back i { transition: transform 140ms ease; }
.oh-body a.oh-news-back:hover i { transform: translateX(-3px); }
.oh-news-article { padding: 30px 34px 32px; background: var(--ohost-surface); border: 1px solid var(--ohost-line); border-top: 4px solid var(--ohost-accent); border-radius: 14px; box-shadow: 0 10px 30px rgba(11, 26, 36, 0.06); }
.oh-news-article.oh-news-maint { border-top-color: var(--ohost-action); }
.oh-news-head { margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--ohost-line); }
.oh-news-head .oh-news-meta { margin-bottom: 12px; }
.oh-body .oh-news-h1 { margin: 0; color: var(--ohost-ink-2) !important; font-family: var(--ohost-font) !important; font-size: clamp(1.45rem, 2.4vw, 2rem) !important; font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; text-transform: none !important; overflow-wrap: anywhere; }
.oh-news-share { margin-top: 12px; }

/* body text from the editor: one readable style whatever it was typed with */
.oh-body .oh-news-body { max-width: 78ch; color: var(--ohost-text) !important; font-family: var(--ohost-font) !important; font-size: 1rem !important; line-height: 1.75 !important; overflow-wrap: anywhere; }
.oh-body .oh-news-body p,
.oh-body .oh-news-body li,
.oh-body .oh-news-body div,
.oh-body .oh-news-body span,
.oh-body .oh-news-body font { color: inherit !important; font-family: inherit !important; font-size: inherit !important; line-height: inherit !important; }
.oh-body .oh-news-body p { margin: 0 0 14px; }
.oh-body .oh-news-body > :last-child { margin-bottom: 0; }
.oh-body .oh-news-body strong, .oh-body .oh-news-body b { color: var(--ohost-ink-2) !important; font-weight: 700; }
.oh-body .oh-news-body h1, .oh-body .oh-news-body h2, .oh-body .oh-news-body h3, .oh-body .oh-news-body h4 { margin: 24px 0 10px; color: var(--ohost-ink-2) !important; font-family: var(--ohost-font) !important; font-size: 1.15rem !important; font-weight: 800; line-height: 1.35; }
.oh-body .oh-news-body a { color: var(--ohost-accent) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.oh-body .oh-news-body ul, .oh-body .oh-news-body ol { margin: 0 0 14px; padding-left: 22px; }
.oh-body .oh-news-body li { margin-bottom: 4px; }
.oh-body .oh-news-body img { max-width: 100%; height: auto; border-radius: 10px; }
.oh-body .oh-news-body blockquote { margin: 0 0 14px; padding: 12px 16px; border-left: 3px solid var(--ohost-accent); border-radius: 0 10px 10px 0; background: var(--ohost-fill); }
.oh-body .oh-news-body table { width: 100%; margin-bottom: 14px; border-collapse: collapse; }
.oh-body .oh-news-body td, .oh-body .oh-news-body th { padding: 8px 10px; border: 1px solid var(--ohost-line); }

.oh-news-help { display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: var(--ohost-surface); border: 1px dashed rgba(63, 158, 164, 0.5); border-radius: 14px; }
.oh-news-help-ic { flex: 0 0 44px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(63, 158, 164, 0.12); color: var(--ohost-accent); font-size: 18px; }
.oh-news-help-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.oh-news-help-t strong { color: var(--ohost-ink-2); font-size: 0.98rem; font-weight: 800; }
.oh-news-help-t span { color: var(--ohost-text-soft); font-size: 0.88rem; line-height: 1.5; }
.oh-body a.oh-news-help-b { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; background: var(--ohost-action); color: #fff !important; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none !important; box-shadow: 0 6px 16px rgba(210, 125, 75, 0.3); white-space: nowrap; }
.oh-body a.oh-news-help-b:hover { filter: brightness(1.06); }

/* dark theme: cards a step lighter than the page (as on the ticket pages) */
html.oh-dark .oh-news-card,
html.oh-dark .oh-news-article,
html.oh-dark .oh-news-help,
html.oh-dark .oh-news-empty,
html.oh-dark .oh-news .oh-news-intro,
html.oh-dark .oh-body a.oh-news-page:not(.is-active) { background: #142530 !important; border-color: #233b49 !important; }
html.oh-dark .oh-news-card { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important; }
html.oh-dark .oh-news-card:hover { border-color: rgba(63, 158, 164, 0.6) !important; }
html.oh-dark .oh-news-featured { border-left-color: var(--ohost-accent) !important; }
html.oh-dark .oh-news-featured.oh-news-maint { border-left-color: var(--ohost-action) !important; }
html.oh-dark .oh-news .oh-news-intro { border-left-color: var(--ohost-accent) !important; }
html.oh-dark .oh-news-article { border-top-color: var(--ohost-accent) !important; }
html.oh-dark .oh-news-article.oh-news-maint { border-top-color: var(--ohost-action) !important; }
html.oh-dark .oh-news-help { border-color: rgba(63, 158, 164, 0.45) !important; }
html.oh-dark .oh-news-head { border-color: #233b49 !important; }
html.oh-dark .oh-body .oh-news-title a,
html.oh-dark .oh-body .oh-news-h1,
html.oh-dark .oh-news-help-t strong,
html.oh-dark .oh-body .oh-news-body strong,
html.oh-dark .oh-body .oh-news-body b,
html.oh-dark .oh-body .oh-news-body h1, html.oh-dark .oh-body .oh-news-body h2, html.oh-dark .oh-body .oh-news-body h3, html.oh-dark .oh-body .oh-news-body h4,
html.oh-dark .oh-body a.oh-news-page:not(.is-active) { color: var(--ohost-text) !important; }
html.oh-dark .oh-body .oh-news-title a:hover { color: var(--ohost-accent) !important; }
html.oh-dark .oh-body .oh-news-body { color: #d6e1e8 !important; }
html.oh-dark .oh-body .oh-news-excerpt { color: #a9bac6 !important; }
html.oh-dark .oh-body .oh-news-body blockquote { background: #0f1c25 !important; }
html.oh-dark .oh-body .oh-news-body td, html.oh-dark .oh-body .oh-news-body th { border-color: #233b49 !important; }

@media (max-width: 767px) {
  .oh-news-card, .oh-news-featured { grid-template-columns: 60px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .oh-body a.oh-news-date { min-height: 64px; padding: 8px 2px; }
  .oh-news-day { font-size: 1.35rem; }
  .oh-news-mon, .oh-news-year { font-size: 0.62rem; }
  .oh-news-article { padding: 20px 18px 22px; }
  .oh-news-help { flex-wrap: wrap; }
  .oh-news-help-t { flex-basis: calc(100% - 60px); }
  .oh-body a.oh-news-help-b { width: 100%; justify-content: center; }
}

/* ===== v26: maintenance / important news bar (hook ohost_announcement_banner.php, includes/ohost-announce.tpl) ===== */
.oh-ann-wrap { padding-top: 18px; }
.oh-ann-wrap + .oh-promo-bar-wrap { padding-top: 0; }
.oh-ann-bar { position: relative; display: flex; align-items: center; gap: 16px; margin-bottom: 10px; padding: 14px 16px 14px 18px; background: var(--ohost-surface); border: 1px solid rgba(63, 158, 164, 0.4); border-left: 5px solid var(--ohost-accent); border-radius: 12px; box-shadow: 0 10px 26px rgba(11, 26, 36, 0.08); animation: ohAnnIn 280ms ease-out 1; }
.oh-ann-bar[hidden] { display: none; }
.oh-ann-maint { background: linear-gradient(100deg, rgba(210, 125, 75, 0.12), rgba(210, 125, 75, 0.02) 60%), var(--ohost-surface); border-color: rgba(210, 125, 75, 0.45); border-left-color: var(--ohost-action); }
.oh-ann-ic { flex: 0 0 46px; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--ohost-accent); color: #fff; font-size: 19px; box-shadow: 0 6px 16px rgba(63, 158, 164, 0.35); }
.oh-ann-maint .oh-ann-ic { background: var(--ohost-action); box-shadow: 0 6px 16px rgba(210, 125, 75, 0.4); }
.oh-ann-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.oh-ann-kind { color: var(--ohost-accent); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.oh-ann-maint .oh-ann-kind { color: var(--ohost-action); }
.oh-ann-text strong { color: var(--ohost-ink-2); font-size: 1rem; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.oh-ann-text small { color: var(--ohost-text-soft); font-size: 0.8rem; }
.oh-body .btn.oh-ann-more { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 0 !important; border-radius: 8px; background: var(--ohost-accent) !important; color: #fff !important; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.oh-body .oh-ann-maint .btn.oh-ann-more { background: var(--ohost-action) !important; }
.oh-body .btn.oh-ann-more:hover { filter: brightness(1.06); }
.oh-ann-close { flex: 0 0 auto; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--ohost-text-soft); font-size: 22px; line-height: 1; cursor: pointer; }
.oh-ann-close:hover { background: rgba(127, 140, 150, 0.15); color: var(--ohost-ink-2); }
@keyframes ohAnnIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
html.oh-dark .oh-ann-bar { background: #142530 !important; border-color: rgba(63, 158, 164, 0.45) !important; border-left-color: var(--ohost-accent) !important; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important; }
html.oh-dark .oh-ann-bar.oh-ann-maint { background: linear-gradient(100deg, rgba(210, 125, 75, 0.2), rgba(210, 125, 75, 0.03) 60%), #142530 !important; border-color: rgba(210, 125, 75, 0.5) !important; border-left-color: var(--ohost-action) !important; }
html.oh-dark .oh-ann-text strong { color: var(--ohost-text) !important; }
html.oh-dark .oh-ann-close:hover { color: #fff; }
@media (max-width: 767px) {
  .oh-ann-bar { flex-wrap: wrap; padding: 14px 44px 14px 14px; gap: 12px; }
  .oh-ann-ic { flex-basis: 40px; width: 40px; height: 40px; font-size: 16px; }
  .oh-ann-text { flex-basis: calc(100% - 56px); }
  .oh-body .btn.oh-ann-more { flex: 1 1 auto; justify-content: center; }
  .oh-ann-close { position: absolute; top: 8px; right: 8px; }
}

/* v27: payment tiles (add funds, mass pay) - card payments via PayPal get a small PayPal mark */
.oh-af-ic-cardpp { position: relative; overflow: visible !important; }
.oh-af-ic-cardpp .oh-pay-via { position: absolute; right: -6px; bottom: -6px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--ohost-surface); border-radius: 50% !important; background: #003087; color: #fff; font-size: 10px; }
html.oh-dark .oh-af-ic-cardpp .oh-pay-via { border-color: #142530; }

/* v28: section headings ("Choose account", "Order notes", registration) on the dark theme - the generated dark CSS
   gave the title a lighter box and an extra line on top; as on the light theme: transparent title, one line under it */
html.oh-dark .oh-body #order-digit-of .sub-heading,
html.oh-dark .oh-body #order-digit-of .sub-heading-borderless,
html.oh-dark .oh-body #registration .sub-heading,
html.oh-dark .oh-body .sub-heading { border-top: 0 !important; border-bottom-color: var(--ohost-line) !important; }
html.oh-dark .oh-body #order-digit-of .sub-heading span,
html.oh-dark .oh-body #order-digit-of .sub-heading .primary-bg-color,
html.oh-dark .oh-body #order-digit-of .sub-heading-borderless span,
html.oh-dark .oh-body #registration .sub-heading span,
html.oh-dark .oh-body .sub-heading span,
html.oh-dark .oh-body .sub-heading .primary-bg-color { background: transparent !important; background-color: transparent !important; }

/* v29: 404 page (error/page-not-found.tpl) - a floating ghost as the "0" */
.oh-body:has(.oh-404) .oh-page-hero { display: none; }
.oh-body .error-container.oh-404 { max-width: 760px; margin: 30px auto 50px; padding: 40px 24px 46px; background: transparent !important; border: 0 !important; box-shadow: none !important; text-align: center; }
.oh-404-art { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 26px; }
.oh-404-d { color: var(--ohost-accent); font-family: var(--ohost-font-head, var(--ohost-font)); font-size: clamp(6rem, 16vw, 10rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; text-shadow: 0 10px 30px rgba(63, 158, 164, 0.25); }
.oh-404-ghost { position: relative; display: inline-block; width: clamp(96px, 15vw, 140px); margin: 0 4px; }
.oh-404-ghost svg { display: block; width: 100%; height: auto; overflow: visible; animation: ohGhostFloat 3.2s ease-in-out infinite; }
.oh-404-body { fill: #ffffff; stroke: #10202d; stroke-width: 4; stroke-linejoin: round; }
.oh-404-eyes ellipse { fill: #10202d; transform-box: fill-box; transform-origin: center; animation: ohGhostBlink 4.6s infinite; }
.oh-404-glint { fill: #ffffff; }
.oh-404-cheek { fill: #f28b8b; opacity: 0.45; }
.oh-404-mouth { fill: #10202d; transform-box: fill-box; transform-origin: center; animation: ohGhostBoo 3.2s ease-in-out infinite; }
.oh-404-shadow { position: absolute; left: 50%; bottom: -18px; width: 70%; height: 12px; border-radius: 50%; background: rgba(16, 32, 45, 0.18); transform: translateX(-50%); animation: ohGhostShadow 3.2s ease-in-out infinite; }
.oh-body .oh-404-title { margin: 0 0 10px; color: var(--ohost-ink-2) !important; font-family: var(--ohost-font) !important; font-size: clamp(1.4rem, 2.6vw, 1.9rem) !important; font-weight: 800; letter-spacing: -0.01em; text-transform: none !important; }
.oh-body .oh-404-text { max-width: 560px; margin: 0 auto 26px; color: var(--ohost-text-soft) !important; font-size: 1rem; line-height: 1.6; }
.oh-404-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.oh-body .btn.oh-404-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border: 1px solid var(--ohost-line-strong, var(--ohost-line)) !important; background: var(--ohost-surface) !important; color: var(--ohost-ink-2) !important; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.oh-body .btn.oh-404-btn:hover { border-color: var(--ohost-accent) !important; color: var(--ohost-accent) !important; }
.oh-body .btn.oh-404-btn-main { border-color: var(--ohost-action) !important; background: var(--ohost-action) !important; color: #fff !important; }
.oh-body .btn.oh-404-btn-main:hover { filter: brightness(1.06); color: #fff !important; }
@keyframes ohGhostFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes ohGhostShadow { 0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; } 50% { transform: translateX(-50%) scale(0.75); opacity: 0.55; } }
@keyframes ohGhostBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes ohGhostBoo { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15, 1.25); } }
html.oh-dark .oh-404-body { fill: #e9f3f5; stroke: none; }
html.oh-dark .oh-404-ghost svg { filter: drop-shadow(0 0 22px rgba(63, 158, 164, 0.45)); }
html.oh-dark .oh-404-shadow { background: rgba(0, 0, 0, 0.45); }
html.oh-dark .oh-body .oh-404-title { color: var(--ohost-text) !important; }
html.oh-dark .oh-body .btn.oh-404-btn:not(.oh-404-btn-main) { background: #142530 !important; border-color: #233b49 !important; color: var(--ohost-text) !important; }
@media (prefers-reduced-motion: reduce) {
  .oh-404-ghost svg, .oh-404-eyes ellipse, .oh-404-mouth, .oh-404-shadow { animation: none; }
}
@media (max-width: 575px) { .oh-body .btn.oh-404-btn { width: 100%; justify-content: center; } }
/* v29b: 404 - oval shadow (the theme squares corners), the three buttons on one row on desktop */
.oh-body .oh-404-shadow { border-radius: 50% !important; filter: blur(2px); }
.oh-body .error-container.oh-404 { max-width: 900px; }
.oh-body .oh-404-buttons { flex-wrap: wrap; }
@media (min-width: 768px) { .oh-body .oh-404-buttons { flex-wrap: nowrap; } }
/* v29c: 404 - eyes, catch-the-ghost game, costumes */
.oh-body .oh-404-ghost { cursor: pointer; transition: transform 450ms cubic-bezier(0.34, 1.56, 0.64, 1); outline: none; -webkit-tap-highlight-color: transparent; z-index: 2; }
.oh-body .oh-404-ghost:focus-visible svg { outline: 2px dashed var(--ohost-accent); outline-offset: 6px; }
.oh-404-eyes { transition: transform 120ms ease-out; }
.oh-404-bubble { position: absolute; left: 50%; bottom: 100%; margin-bottom: 10px; padding: 7px 12px; border-radius: 14px !important; background: var(--ohost-surface); border: 2px solid var(--ohost-ink-2); color: var(--ohost-ink-2); font-size: 0.9rem; font-weight: 800; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, 6px) scale(0.9); transition: opacity 160ms ease, transform 200ms ease; }
.oh-404-bubble::after { content: ""; position: absolute; left: 50%; top: 100%; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: inherit; border-right: 2px solid var(--ohost-ink-2); border-bottom: 2px solid var(--ohost-ink-2); transform: rotate(45deg); }
.oh-404-bubble.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.oh-404-c { display: none; }
.oh-404-wear-xmas .oh-404-c-xmas,
.oh-404-wear-halloween .oh-404-c-halloween,
.oh-404-wear-easter .oh-404-c-easter,
.oh-404-wear-summer .oh-404-c-summer { display: inline; }
.oh-404-wear-summer .oh-404-eyes { display: none; }
.oh-404-game { margin-top: 26px; }
.oh-body .oh-404-hint { margin: 0; color: var(--ohost-text-soft) !important; font-size: 0.88rem; }
.oh-404-hint i { margin-right: 4px; color: var(--ohost-accent); }
.oh-404-win { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 22px; border: 2px dashed var(--ohost-action); background: rgba(210, 125, 75, 0.08); animation: ohDoneIn 300ms ease-out 1; }
.oh-404-win[hidden] { display: none; }
.oh-404-win strong { color: var(--ohost-ink-2); font-size: 1rem; }
.oh-404-win strong i { margin-right: 6px; color: #f5b301; }
.oh-404-prize { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.oh-404-code { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border: 2px dashed var(--ohost-accent); background: var(--ohost-surface); color: var(--ohost-ink-2); cursor: pointer; }
.oh-404-code b { font-family: "SFMono-Regular", Consolas, Menlo, monospace; font-size: 1.05rem; letter-spacing: 0.08em; }
.oh-404-won .oh-404-ghost svg { animation: ohGhostFloat 1.2s ease-in-out infinite; }
html.oh-dark .oh-404-bubble { background: #142530; border-color: #e9f3f5; color: #e9f3f5; }
html.oh-dark .oh-404-bubble::after { border-color: #e9f3f5; }
html.oh-dark .oh-404-win strong { color: var(--ohost-text); }
html.oh-dark .oh-404-code { background: #142530; color: var(--ohost-text); }
@keyframes ohDoneIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* v29d: 404 bubble - beside the ghost's head (above it, it went under the sticky menu when the ghost jumped),
   orange with white text so it is clearly seen on both themes; room above the art */
.oh-body .oh-404-art { padding-top: 46px; }
.oh-body .oh-404-bubble { left: 72%; right: auto; bottom: 78%; top: auto; margin: 0; z-index: 20; padding: 8px 14px; border: 0 !important; border-radius: 16px 16px 16px 4px !important; background: var(--ohost-action) !important; color: #ffffff !important; font-family: var(--ohost-font) !important; font-size: 0.95rem; box-shadow: 0 8px 20px rgba(210, 125, 75, 0.35) !important; transform: translate(0, 8px) scale(0.85); transform-origin: left bottom; }
.oh-body .oh-404-bubble::after { display: none; }
.oh-body .oh-404-bubble.is-on { opacity: 1 !important; visibility: visible !important; transform: translate(0, 0) scale(1); }
html.oh-dark .oh-body .oh-404-bubble { background: var(--ohost-action) !important; color: #ffffff !important; }
/* v29e: the costumes added later (autumn scarf, winter beanie, martenitsa, spring flower) were never switched on */
.oh-404-wear-autumn .oh-404-c-autumn,
.oh-404-wear-winter .oh-404-c-winter,
.oh-404-wear-martenitsa .oh-404-c-martenitsa,
.oh-404-wear-spring .oh-404-c-spring { display: inline; }

/* v30: ghost games (includes/ohost-ghost.tpl, js/ohost-ghost.js) - the peeking ghost, its prize, "wait, don't go" */
.oh-gpeek { position: fixed; z-index: 1060; width: 92px; padding: 0; border: 0; background: transparent; cursor: pointer; transition: transform 550ms cubic-bezier(0.34, 1.56, 0.64, 1); -webkit-tap-highlight-color: transparent; }
.oh-gpeek[hidden] { display: none; }
.oh-gpeek svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 18px rgba(11, 26, 36, 0.25)); }
.oh-gpeek-left { left: 0; top: var(--oh-gpos, 50%); transform: translateX(-100%) rotate(90deg); }
.oh-gpeek-left.is-out { transform: translateX(-38%) rotate(90deg); }
.oh-gpeek-right { right: 0; top: var(--oh-gpos, 50%); transform: translateX(100%) rotate(-90deg); }
.oh-gpeek-right.is-out { transform: translateX(38%) rotate(-90deg); }
.oh-gpeek-bottom { bottom: 0; left: var(--oh-gpos, 50%); transform: translateY(100%); }
.oh-gpeek-bottom.is-out { transform: translateY(45%); }
.oh-gpeek.is-out svg { animation: ohGhostWiggle 0.9s ease-in-out infinite; }
.oh-gpeek.is-caught { transform: translate(0, 0) scale(1.25) rotate(0deg) !important; transition: transform 300ms ease; }
.oh-gpeek-say { position: absolute; top: -6px; left: 50%; padding: 4px 10px; border-radius: 12px !important; background: var(--ohost-action); color: #fff; font-size: 0.8rem; font-weight: 800; white-space: nowrap; opacity: 0; transform: translateX(-50%); transition: opacity 200ms ease; pointer-events: none; }
.oh-gpeek.is-caught .oh-gpeek-say { opacity: 1; }
@keyframes ohGhostWiggle { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

.oh-gprize, .oh-gstay { position: fixed; right: 20px; bottom: 20px; z-index: 1070; width: min(360px, calc(100vw - 32px)); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 22px 20px; background: var(--ohost-surface); border: 2px solid var(--ohost-action); border-radius: 18px !important; box-shadow: 0 20px 50px rgba(11, 26, 36, 0.3) !important; text-align: center; animation: ohGhostCardIn 380ms cubic-bezier(0.34, 1.56, 0.64, 1) 1; }
.oh-gprize[hidden], .oh-gstay[hidden] { display: none; }
.oh-gart { display: block; width: 72px; margin-top: -58px; }
.oh-gart svg { display: block; width: 100%; height: auto; animation: ohGhostFloat 3.2s ease-in-out infinite; filter: drop-shadow(0 8px 14px rgba(11, 26, 36, 0.25)); }
.oh-gprize strong, .oh-gstay strong { color: var(--ohost-ink-2); font-family: var(--ohost-font); font-size: 1.1rem; font-weight: 800; }
.oh-gprize p, .oh-gstay p { margin: 0; color: var(--ohost-text-soft); font-size: 0.9rem; line-height: 1.5; }
.oh-gprize-ok { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.oh-gprize-ok[hidden], .oh-gmsg[hidden] { display: none; }
.oh-gcode { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border: 2px dashed var(--ohost-accent); border-radius: 10px !important; background: var(--ohost-surface); color: var(--ohost-ink-2); cursor: pointer; }
.oh-gcode b { font-family: "SFMono-Regular", Consolas, Menlo, monospace; font-size: 1.05rem; letter-spacing: 0.08em; }
.oh-body .btn.oh-gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; margin-top: 4px; border: 0 !important; border-radius: 10px !important; background: var(--ohost-action) !important; color: #fff !important; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.oh-body .btn.oh-gbtn:hover { filter: brightness(1.06); }
.oh-body .btn.oh-gbtn[disabled] { opacity: 0.7; }
.oh-gclose { position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; border: 0; border-radius: 50% !important; background: transparent; color: var(--ohost-text-soft); font-size: 22px; line-height: 1; cursor: pointer; }
.oh-gclose:hover { background: rgba(127, 140, 150, 0.15); color: var(--ohost-ink-2); }
@keyframes ohGhostCardIn { from { opacity: 0; transform: translateY(30px) scale(0.9); } to { opacity: 1; transform: none; } }
html.oh-dark .oh-gprize, html.oh-dark .oh-gstay { background: #142530; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55) !important; }
html.oh-dark .oh-gprize strong, html.oh-dark .oh-gstay strong { color: var(--ohost-text); }
html.oh-dark .oh-gcode { background: #0f1c25; color: var(--ohost-text); }
html.oh-dark .oh-gpeek .oh-404-body, html.oh-dark .oh-gart .oh-404-body { fill: #e9f3f5; stroke: none; }
@media (max-width: 575px) {
  .oh-gprize, .oh-gstay { right: 16px; left: 16px; width: auto; bottom: 16px; }
  .oh-gpeek { width: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .oh-gpeek, .oh-gpeek svg, .oh-gart svg, .oh-gprize, .oh-gstay { animation: none !important; transition: none !important; }
}
.oh-body .oh-gpeek, html.oh-dark .oh-body .oh-gpeek { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.oh-body .oh-gclose { background: transparent !important; border: 0 !important; }
/* v29f: 404 on phones - the bubble sits centred above the ghost (beside it, it went off the screen),
   the prize box draws the eye when it appears */
@media (max-width: 767px) {
  .oh-body .oh-404-art { padding-top: 58px; }
  .oh-body .oh-404-bubble { left: 50%; bottom: 100%; margin-bottom: 6px; border-radius: 16px !important; transform: translate(-50%, 8px) scale(0.85); transform-origin: center bottom; }
  .oh-body .oh-404-bubble.is-on { transform: translate(-50%, 0) scale(1); }
}
.oh-404-win:not([hidden]) { animation: ohDoneIn 300ms ease-out 1, ohWinPulse 1.6s ease-out 0.3s 2; }
@keyframes ohWinPulse { 0% { box-shadow: 0 0 0 0 rgba(210, 125, 75, 0.45); } 100% { box-shadow: 0 0 0 18px rgba(210, 125, 75, 0); } }
.oh-body .oh-404-win:not([hidden]) { box-shadow: 0 0 0 0 rgba(210, 125, 75, 0); }
/* v30b: the peeking ghost is easier to notice - comes further out with a bounce, glows and pulses, says
   "Catch me!" while it is out. The button only moves; the ghost inside is turned with the "rotate" property,
   so the wiggle animation (transform) does not undo the turn. */
.oh-body .oh-gpeek { width: 110px; transition: transform 750ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.oh-body .oh-gpeek svg { position: relative; z-index: 1; transition: scale 200ms ease; }
.oh-body .oh-gpeek:hover svg, .oh-body .oh-gpeek:focus-visible svg { scale: 1.08; }
.oh-body .oh-gpeek-left { left: 0; right: auto; top: var(--oh-gpos, 50%); bottom: auto; transform: translate(-115%, -50%) !important; }
.oh-body .oh-gpeek-left.is-out { transform: translate(-20%, -50%) !important; }
.oh-body .oh-gpeek-left svg { rotate: 90deg; }
.oh-body .oh-gpeek-right { right: 0; left: auto; top: var(--oh-gpos, 50%); bottom: auto; transform: translate(115%, -50%) !important; }
.oh-body .oh-gpeek-right.is-out { transform: translate(20%, -50%) !important; }
.oh-body .oh-gpeek-right svg { rotate: -90deg; }
.oh-body .oh-gpeek-bottom { bottom: 0; top: auto; left: var(--oh-gpos, 50%); right: auto; transform: translate(-50%, 115%) !important; }
.oh-body .oh-gpeek-bottom.is-out { transform: translate(-50%, 28%) !important; }
.oh-body .oh-gpeek.is-caught svg { scale: 1.3; }
/* glow behind it */
.oh-gpeek-glow { position: absolute; left: 50%; top: 50%; width: 150%; height: 150%; border-radius: 50% !important; background: radial-gradient(circle, rgba(210, 125, 75, 0.55) 0%, rgba(63, 158, 164, 0.25) 45%, transparent 70%); transform: translate(-50%, -50%); pointer-events: none; animation: ohGhostGlow 1.4s ease-in-out infinite; }
@keyframes ohGhostGlow { 0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.85); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } }
/* "Catch me!" / "Boo!" bubble, beside the ghost on the screen side */
.oh-body .oh-gpeek-say { z-index: 2; top: 12%; left: auto; right: auto; bottom: auto; padding: 6px 12px; border-radius: 14px !important; background: var(--ohost-action); color: #fff; font-family: var(--ohost-font); font-size: 0.85rem; font-weight: 800; white-space: nowrap; box-shadow: 0 6px 16px rgba(210, 125, 75, 0.4) !important; opacity: 0; transform: none; transition: opacity 250ms ease 400ms; }
.oh-body .oh-gpeek-left .oh-gpeek-say { left: 82%; }
.oh-body .oh-gpeek-right .oh-gpeek-say { right: 82%; }
.oh-body .oh-gpeek-bottom .oh-gpeek-say { top: auto; bottom: 74%; left: 50%; transform: translateX(-50%); }
.oh-body .oh-gpeek.is-out .oh-gpeek-say, .oh-body .oh-gpeek.is-caught .oh-gpeek-say { opacity: 1; animation: ohSayBounce 1.2s ease-in-out infinite; }
.oh-body .oh-gpeek-bottom.is-out .oh-gpeek-say { animation: none; }
@keyframes ohSayBounce { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@media (max-width: 575px) { .oh-body .oh-gpeek { width: 86px; } }
@media (prefers-reduced-motion: reduce) { .oh-gpeek-glow, .oh-body .oh-gpeek-say { animation: none !important; } }
/* v29g: 404 prize - when it is off the screen (phones) it pops up as a card at the bottom; × puts it back */
.oh-404-win { position: relative; }
.oh-404-win-x { display: none; position: absolute; top: 6px; right: 8px; width: 30px; height: 30px; border: 0 !important; border-radius: 50% !important; background: transparent !important; color: var(--ohost-text-soft); font-size: 22px; line-height: 1; cursor: pointer; }
.oh-body .oh-404-win.is-float { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1080; display: flex; max-width: 460px; margin: 0 auto; padding: 22px 18px 18px; background: var(--ohost-surface) !important; border: 2px solid var(--ohost-action); border-radius: 16px !important; box-shadow: 0 18px 46px rgba(11, 26, 36, 0.35) !important; animation: ohGhostCardIn 380ms cubic-bezier(0.34, 1.56, 0.64, 1) 1; }
.oh-body .oh-404-win.is-float .oh-404-win-x { display: block; }
html.oh-dark .oh-body .oh-404-win.is-float { background: #142530 !important; box-shadow: 0 18px 46px rgba(0, 0, 0, 0.6) !important; }
