/* Live PHP bridge for the supplied Hostiva customer-panel design */

body.hostiva_customer_theme,
body.hostiva_auth_theme {
  --bg: #090e15;
  --sidebar: #0b1017;
  --surface: #111821;
  --surface2: #151e29;
  --border: rgba(255, 255, 255, 0.075);
  --text: #f4f7fa;
  --muted: #a8b0bc;
  --green: #62c72f;
  --green2: #45a71f;
  --blue: #53a9d4;
  --yellow: #ffc000;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 55% 18%, rgba(42, 58, 77, 0.14), transparent 34%),
    linear-gradient(135deg, #0b1119, #080c12);
}

body.hostiva_customer_theme .app-shell {
  display: flex;
  min-height: 100vh;
}

body.hostiva_customer_theme .sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 285px;
  height: 100vh;
  padding: 0;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, #0b1017, #091019);
}

body.hostiva_customer_theme .sidebar-brand {
  height: 92px;
  display: flex;
  align-items: center;
  padding: 0 31px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

body.hostiva_customer_theme .sidebar-brand img {
  width: 170px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
  padding: 0;
  border: 0;
  background: transparent;
}

body.hostiva_customer_theme .side-nav {
  display: grid;
  gap: 7px;
  padding: 32px 18px 118px;
}

body.hostiva_customer_theme .side-nav a {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 0 21px;
  border: 0;
  border-radius: 10px;
  color: #cfd5df;
  background: transparent;
  font-size: 17px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.hostiva_customer_theme .side-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  transform: translateX(2px);
}

body.hostiva_customer_theme .side-nav a.active,
body.hostiva_customer_theme .side-nav a.authority-link {
  color: #fff;
  background: linear-gradient(90deg, #55b326, #4cab22);
  box-shadow: 0 12px 30px rgba(52, 156, 25, 0.13);
}

body.hostiva_customer_theme .side-nav svg {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  fill: currentColor;
}

body.hostiva_customer_theme .sidebar-back {
  position: fixed;
  left: 18px;
  bottom: 22px;
  width: 249px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #e7ecf2;
  background: rgba(255, 255, 255, 0.035);
  font-size: 15px;
  font-weight: 700;
}

body.hostiva_customer_theme .panel-main {
  width: calc(100% - 285px);
  min-height: 100vh;
  margin-left: 285px;
  padding: 38px 34px 80px;
  max-width: none;
}

body.hostiva_customer_theme .panel-main > .form-alert {
  max-width: 1500px;
  margin: 0 auto 18px;
}

body.hostiva_customer_theme .panel-header {
  max-width: 1500px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto 42px;
  padding: 0 6px;
  border: 0;
  background: transparent;
}

body.hostiva_customer_theme .panel-header .eyebrow {
  margin: 0 0 9px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

body.hostiva_customer_theme .panel-header h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(32px, 4vw, 42px);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -1.4px;
}

body.hostiva_customer_theme .panel-userline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

body.hostiva_customer_theme .panel-userline span,
body.hostiva_customer_theme .pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #cfd7e2;
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  font-weight: 700;
}

body.hostiva_customer_theme .panel-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

body.hostiva_customer_theme .profile-chip {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
  font-size: 16px;
  font-weight: 800;
}

body.hostiva_customer_theme .button,
body.hostiva_customer_theme .primary-btn,
body.hostiva_auth_theme .button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #071005;
  background: linear-gradient(90deg, #64cb31, #4cae22);
  box-shadow: 0 12px 28px rgba(71, 170, 33, 0.15);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

body.hostiva_customer_theme .button:hover,
body.hostiva_auth_theme .button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

body.hostiva_customer_theme .button-small {
  min-height: 38px;
  padding: 0 13px;
  font-size: 14px;
}

body.hostiva_customer_theme .button-ghost,
body.hostiva_customer_theme .secondary-btn {
  border-color: var(--border);
  color: #e5e9ef;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

body.hostiva_customer_theme .panel-kpis {
  max-width: 1500px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px;
  margin: 0 auto 35px;
}

body.hostiva_customer_theme .kpi-card {
  min-height: 211px;
  display: grid;
  align-content: start;
  gap: 0;
  padding: 34px 32px 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17, 25, 35, 0.97), rgba(13, 20, 29, 0.97));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 18px 55px rgba(0, 0, 0, 0.12);
}

body.hostiva_customer_theme .kpi-card small {
  color: #f4f7fa;
  font-size: 19px;
  font-weight: 600;
}

body.hostiva_customer_theme .kpi-card strong {
  display: block;
  margin-top: 17px;
  color: var(--green);
  font-size: 52px;
  line-height: 1;
  font-weight: 550;
  letter-spacing: -1.5px;
}

body.hostiva_customer_theme .kpi-card span {
  margin-top: 25px;
  color: #aeb5c0;
  font-size: 15px;
  line-height: 1.55;
}

body.hostiva_customer_theme .workspace-grid {
  max-width: 1500px;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(340px, 1fr);
  align-items: start;
  gap: 25px;
  margin: 0 auto;
}

body.hostiva_customer_theme .workspace-large,
body.hostiva_customer_theme .hostiva_card_large,
body.hostiva_customer_theme #urunler,
body.hostiva_customer_theme #faturalar,
body.hostiva_customer_theme .hostiva_services_card {
  grid-column: 1 / -1;
}

body.hostiva_customer_theme .workspace-card,
body.hostiva_customer_theme .service-card,
body.hostiva_customer_theme .table-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17, 25, 35, 0.97), rgba(13, 20, 29, 0.97));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 18px 55px rgba(0, 0, 0, 0.12);
}

body.hostiva_customer_theme .workspace-card {
  padding: 28px;
}

body.hostiva_customer_theme .card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 0;
  border: 0;
}

body.hostiva_customer_theme .card-head .eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

body.hostiva_customer_theme .card-head h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
}

body.hostiva_customer_theme .panel-muted,
body.hostiva_customer_theme .empty-state p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

body.hostiva_customer_theme .large-progress,
body.hostiva_customer_theme .progress {
  height: 8px;
  overflow: hidden;
  border-radius: 20px;
  background: #0a1017;
}

body.hostiva_customer_theme .large-progress span,
body.hostiva_customer_theme .progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

body.hostiva_customer_theme .phase-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

body.hostiva_customer_theme .phase-list div,
body.hostiva_customer_theme .activity-table div,
body.hostiva_customer_theme .invoice-tile,
body.hostiva_customer_theme .ticket-row {
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
}

body.hostiva_customer_theme .phase-list div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 16px;
}

body.hostiva_customer_theme .phase-list span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #45515f;
}

body.hostiva_customer_theme .phase-list .done span,
body.hostiva_customer_theme .phase-list .active span {
  background: var(--green);
}

body.hostiva_customer_theme .phase-list p,
body.hostiva_customer_theme .activity-table span {
  color: #e8edf3;
  font-weight: 700;
}

body.hostiva_customer_theme .phase-list strong,
body.hostiva_customer_theme .activity-table strong,
body.hostiva_customer_theme .activity-table em {
  color: var(--muted);
  font-style: normal;
}

body.hostiva_customer_theme .hostiva_support_summary,
body.hostiva_customer_theme .hostiva_recent_ticket,
body.hostiva_customer_theme .balance-purchase-box,
body.hostiva_customer_theme .hostiva_access_credentials,
body.hostiva_customer_theme .hostiva_access_pending {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
}

body.hostiva_customer_theme .product-grid-panel,
body.hostiva_customer_theme .hostiva_customer_services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

body.hostiva_customer_theme .product-panel-card,
body.hostiva_customer_theme .hostiva_customer_service_card {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17, 25, 35, 0.97), rgba(13, 20, 29, 0.97));
}

body.hostiva_customer_theme .product-panel-card h3,
body.hostiva_customer_theme .hostiva_customer_service_head span {
  margin: 0;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
}

body.hostiva_customer_theme .product-panel-card p,
body.hostiva_customer_theme .product-panel-card li,
body.hostiva_customer_theme .hostiva_customer_service_card small,
body.hostiva_customer_theme .hostiva_access_credentials p {
  color: var(--muted);
  line-height: 1.65;
}

body.hostiva_customer_theme .product-panel-card strong {
  color: var(--green);
  font-size: 25px;
}

body.hostiva_customer_theme .invoice-overview,
body.hostiva_customer_theme .mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

body.hostiva_customer_theme .invoice-overview article,
body.hostiva_customer_theme .mini-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.028);
}

body.hostiva_customer_theme .invoice-overview span,
body.hostiva_customer_theme .mini-card span {
  display: block;
  color: #9ea8b5;
  font-size: 14px;
}

body.hostiva_customer_theme .invoice-overview strong,
body.hostiva_customer_theme .mini-card strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 27px;
}

body.hostiva_customer_theme .invoice-list-panel {
  display: grid;
  gap: 12px;
}

body.hostiva_customer_theme .invoice-tile {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(150px, 0.25fr) minmax(142px, 0.2fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
}

body.hostiva_customer_theme .invoice-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

body.hostiva_customer_theme .invoice-actions a,
body.hostiva_customer_theme .panel-footer-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #e5e9ef;
  background: rgba(255, 255, 255, 0.035);
  font-weight: 700;
}

body.hostiva_customer_theme input,
body.hostiva_customer_theme select,
body.hostiva_customer_theme textarea,
body.hostiva_auth_theme input,
body.hostiva_auth_theme select,
body.hostiva_auth_theme textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #e9edf2;
  background: #0d141d;
  outline: 0;
}

body.hostiva_customer_theme .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.hostiva_customer_theme .auth-form,
body.hostiva_customer_theme .support-form {
  display: grid;
  gap: 18px;
}

body.hostiva_customer_theme .auth-form label,
body.hostiva_customer_theme .support-form label {
  display: grid;
  gap: 9px;
  color: #cfd5dd;
  font-size: 14px;
  font-weight: 700;
}

body.hostiva_customer_theme .auth-form input,
body.hostiva_customer_theme .auth-form select,
body.hostiva_customer_theme .auth-form textarea,
body.hostiva_customer_theme .support-form input,
body.hostiva_customer_theme .support-form select,
body.hostiva_customer_theme .support-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
}

body.hostiva_customer_theme .file-drop {
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
}

body.hostiva_customer_theme .activity-table,
body.hostiva_customer_theme .activity-table-detailed {
  display: grid;
  gap: 12px;
}

body.hostiva_customer_theme .activity-table div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto) minmax(150px, auto);
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 14px 16px;
}

body.hostiva_customer_theme .activity-table small {
  display: block;
  margin-top: 5px;
  color: #8f98a5;
}

body.hostiva_customer_theme .ticket-thread {
  display: grid;
  gap: 16px;
}

body.hostiva_customer_theme .ticket-message {
  max-width: min(760px, 92%);
  border-radius: 18px 18px 18px 6px;
  background: rgba(255, 255, 255, 0.045);
}

body.hostiva_customer_theme .ticket-message.staff {
  margin-left: auto;
  border-radius: 18px 18px 6px 18px;
  background: rgba(98, 199, 47, 0.08);
}

body.hostiva_customer_theme .site-footer {
  width: min(1500px, calc(100% - 68px));
  margin-left: calc(285px + 34px);
  margin-right: 34px;
}

body.hostiva_support_body.hostiva_customer_theme .standalone-panel {
  width: calc(100% - 285px);
  max-width: none;
  margin-left: 285px;
  padding: 38px 34px 80px;
}

body.hostiva_support_body.hostiva_customer_theme .hostiva_support_brand {
  display: none;
}

body.hostiva_auth_theme .auth-page {
  width: min(1150px, calc(100% - 60px));
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  margin: min(7vh, 70px) auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #0b1119;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
}

body.hostiva_auth_theme .auth-page::before {
  content: "Dijital hizmetlerinizi tek panelden yönetin.";
  display: flex;
  align-items: center;
  padding: 70px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(11, 17, 25, 0.92), rgba(9, 15, 22, 0.98)),
    radial-gradient(circle at 30% 30%, rgba(97, 199, 47, 0.18), transparent 35%);
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -2px;
}

body.hostiva_auth_theme .auth-logo {
  position: absolute;
  top: calc(min(7vh, 70px) + 54px);
  left: calc((100% - min(1150px, calc(100% - 60px))) / 2 + 70px);
  z-index: 2;
  width: 180px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.hostiva_auth_theme .auth-logo img {
  width: 180px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
}

body.hostiva_auth_theme .auth-card {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  margin: 0;
  padding: 58px 48px;
  border: 0;
  border-radius: 0;
  background: #101720;
  box-shadow: none;
}

body.hostiva_auth_theme .auth-copy .eyebrow {
  color: var(--green);
}

body.hostiva_auth_theme .auth-copy h1 {
  margin: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.7px;
}

body.hostiva_auth_theme .auth-copy p {
  margin: 12px 0 0;
  color: #9ca6b2;
  line-height: 1.65;
}

body.hostiva_auth_theme .auth-form {
  display: grid;
  gap: 18px;
}

body.hostiva_auth_theme .auth-form label {
  display: grid;
  gap: 9px;
  color: #cfd5dd;
  font-size: 14px;
  font-weight: 700;
}

body.hostiva_auth_theme .auth-form input,
body.hostiva_auth_theme .auth-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
}

body.hostiva_auth_theme .auth-form textarea {
  min-height: 96px;
  padding-block: 13px;
}

body.hostiva_auth_theme .auth-links,
body.hostiva_auth_theme .auth-switch {
  display: flex;
  justify-content: center;
  gap: 18px;
  color: #9fa9b5;
  font-size: 14px;
}

body.hostiva_auth_theme .auth-links a,
body.hostiva_auth_theme .auth-switch a {
  color: var(--green);
  font-weight: 700;
}

body.hostiva_auth_theme .hostiva_captcha {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
}

body.hostiva_auth_theme .hostiva_captcha_code {
  min-height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #fff;
  background: #0d141d;
  font-weight: 800;
  letter-spacing: 5px;
}

@media (max-width: 1220px) {
  body.hostiva_customer_theme .panel-kpis,
  body.hostiva_customer_theme .product-grid-panel,
  body.hostiva_customer_theme .hostiva_customer_services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.hostiva_customer_theme .workspace-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.hostiva_customer_theme .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 30px 0 60px rgba(0, 0, 0, 0.35);
  }

  body.hostiva_customer_theme .sidebar.open {
    transform: translateX(0);
  }

  body.hostiva_customer_theme .panel-main,
  body.hostiva_support_body.hostiva_customer_theme .standalone-panel {
    width: 100%;
    margin-left: 0;
  }

  body.hostiva_customer_theme .site-footer {
    width: min(1500px, calc(100% - 34px));
    margin-left: 17px;
    margin-right: 17px;
  }

  body.hostiva_auth_theme .auth-page {
    grid-template-columns: 1fr;
    max-width: 540px;
  }

  body.hostiva_auth_theme .auth-page::before,
  body.hostiva_auth_theme .auth-logo {
    display: none;
  }
}

@media (max-width: 680px) {
  body.hostiva_customer_theme .panel-main,
  body.hostiva_support_body.hostiva_customer_theme .standalone-panel {
    padding: 28px 17px 50px;
  }

  body.hostiva_customer_theme .panel-header,
  body.hostiva_customer_theme .card-head {
    display: grid;
  }

  body.hostiva_customer_theme .panel-header-actions {
    justify-content: stretch;
  }

  body.hostiva_customer_theme .panel-header-actions > * {
    width: 100%;
  }

  body.hostiva_customer_theme .panel-kpis,
  body.hostiva_customer_theme .product-grid-panel,
  body.hostiva_customer_theme .hostiva_customer_services,
  body.hostiva_customer_theme .invoice-overview,
  body.hostiva_customer_theme .mini-stats,
  body.hostiva_customer_theme .form-grid,
  body.hostiva_customer_theme .invoice-tile,
  body.hostiva_customer_theme .activity-table div {
    grid-template-columns: 1fr;
  }

  body.hostiva_customer_theme .workspace-card {
    padding: 20px;
  }

  body.hostiva_auth_theme .auth-page {
    width: min(100% - 30px, 540px);
    margin-block: 24px;
  }

  body.hostiva_auth_theme .auth-card {
    padding: 42px 25px;
  }

  body.hostiva_auth_theme .hostiva_captcha {
    grid-template-columns: 1fr;
  }
}

/* Local icon fallback and layout sync */
body.hostiva_customer_theme .bi,
body.hostiva_auth_theme .bi {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  font-style: normal;
  font-size: 0;
}

body.hostiva_customer_theme .bi::before,
body.hostiva_auth_theme .bi::before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  border: 2px solid currentColor;
  border-radius: 5px;
}

body.hostiva_customer_theme .bi-list::before,
body.hostiva_auth_theme .bi-list::before {
  width: 21px;
  height: 14px;
  border-width: 2px 0;
  border-radius: 0;
  box-shadow: inset 0 5px 0 transparent, 0 5px 0 currentColor;
}

body.hostiva_auth_theme .bi-shield-check::before {
  border-radius: 9px 9px 12px 12px;
}

body.hostiva_auth_theme .bi-headset::before {
  border-radius: 50% 50% 8px 8px;
  border-bottom-width: 0;
}

body.hostiva_auth_theme .bi-receipt::before {
  border-radius: 3px;
}

body.hostiva_customer_theme .sidebar::after {
  content: "Güvenli müşteri paneli\A Hizmet, fatura ve destek takibi";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 86px;
  white-space: pre-line;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: #a8b0bc;
  background:
    linear-gradient(145deg, rgba(98, 199, 47, 0.1), transparent 56%),
    rgba(255, 255, 255, 0.025);
  font-size: 12px;
  line-height: 1.65;
}

body.hostiva_auth_theme .auth-page::before {
  display: none;
}

body.hostiva_auth_theme .hostiva_auth_intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 110px 70px 70px;
  background:
    linear-gradient(145deg, rgba(11, 17, 25, 0.92), rgba(9, 15, 22, 0.98)),
    radial-gradient(circle at 30% 30%, rgba(97, 199, 47, 0.18), transparent 35%);
}

body.hostiva_auth_theme .hostiva_auth_label {
  width: max-content;
  margin-bottom: 22px;
  padding: 8px 11px;
  border: 1px solid rgba(98, 199, 47, 0.28);
  border-radius: 999px;
  color: var(--green);
  background: rgba(98, 199, 47, 0.08);
  font-size: 12px;
  font-weight: 800;
}

body.hostiva_auth_theme .hostiva_auth_intro h1 {
  max-width: 620px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -2px;
}

body.hostiva_auth_theme .hostiva_auth_intro p {
  max-width: 560px;
  margin: 0;
  color: #aab3bf;
  font-size: 18px;
  line-height: 1.75;
}

body.hostiva_auth_theme .hostiva_auth_features {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 38px;
}

body.hostiva_auth_theme .hostiva_auth_features span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #d7dde4;
  font-weight: 700;
}

body.hostiva_auth_theme .hostiva_auth_features i {
  color: var(--green);
}

@media (max-width: 900px) {
  body.hostiva_customer_theme .sidebar::after,
  body.hostiva_auth_theme .hostiva_auth_intro {
    display: none;
  }
}

/* Customer polish: compact footer, announcements, product detail and support forms */
body.hostiva_customer_theme .site-footer.hostiva_footer,
body.hostiva_auth_theme .site-footer.hostiva_footer {
  min-height: 0;
  padding: 16px 18px;
  gap: 12px;
  align-items: start;
  border-radius: 16px;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.7fr) minmax(240px, 0.9fr) minmax(168px, 0.65fr);
}

body.hostiva_customer_theme .site-footer-brand img,
body.hostiva_auth_theme .site-footer-brand img {
  width: 128px;
  max-height: 44px;
  object-fit: contain;
}

body.hostiva_customer_theme .site-footer p,
body.hostiva_customer_theme .site-footer a,
body.hostiva_customer_theme .site-footer button,
body.hostiva_auth_theme .site-footer p,
body.hostiva_auth_theme .site-footer a,
body.hostiva_auth_theme .site-footer button {
  font-size: 12px;
  line-height: 1.35;
}

body.hostiva_customer_theme .hostiva_footer_legal,
body.hostiva_auth_theme .hostiva_footer_legal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

body.hostiva_customer_theme .hostiva_footer_legal > span,
body.hostiva_auth_theme .hostiva_footer_legal > span,
body.hostiva_customer_theme .hostiva_footer_social > span,
body.hostiva_auth_theme .hostiva_footer_social > span,
body.hostiva_customer_theme .hostiva_footer_contact > span,
body.hostiva_auth_theme .hostiva_footer_contact > span {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: #eef1f4;
  font-size: 11px;
  letter-spacing: 0;
}

body.hostiva_customer_theme .hostiva_announcements_card {
  overflow: hidden;
}

body.hostiva_customer_theme .hostiva_announcement_list {
  display: grid;
  gap: 12px;
}

body.hostiva_customer_theme .hostiva_announcement_item {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(232, 236, 242, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 45%),
    rgba(12, 14, 18, 0.72);
}

body.hostiva_customer_theme .hostiva_announcement_item.is-pinned {
  border-color: rgba(232, 236, 242, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 42%),
    rgba(17, 20, 25, 0.9);
}

body.hostiva_customer_theme .hostiva_announcement_meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: #9fa8b4;
  font-size: 12px;
  font-weight: 800;
}

body.hostiva_customer_theme .hostiva_announcement_meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(232, 236, 242, 0.16);
  border-radius: 999px;
  color: #f4f6f8;
  background: rgba(255, 255, 255, 0.055);
}

body.hostiva_customer_theme .hostiva_announcement_item h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
}

body.hostiva_customer_theme .hostiva_announcement_item p {
  margin: 0;
  color: #b6bec9;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

body.hostiva_customer_theme .hostiva_product_detail_button {
  width: max-content;
  max-width: 100%;
  margin: 2px 0 8px;
}

body.hostiva_customer_theme .hostiva_customer_service_details {
  border: 1px solid rgba(232, 236, 242, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

body.hostiva_customer_theme .hostiva_customer_service_details summary {
  cursor: pointer;
  padding: 14px 16px;
  color: #f3f5f7;
  font-weight: 900;
  list-style: none;
}

body.hostiva_customer_theme .hostiva_customer_service_details summary::-webkit-details-marker {
  display: none;
}

body.hostiva_customer_theme .hostiva_customer_service_details > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

body.hostiva_customer_theme .hostiva_customer_service_details span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(232, 236, 242, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

body.hostiva_customer_theme .hostiva_customer_service_details small {
  color: #9fa8b4;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

body.hostiva_customer_theme .hostiva_customer_service_details strong {
  min-width: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body.hostiva_customer_theme .hostiva_product_detail_dialog {
  width: min(calc(100% - 30px), 720px);
  border: 1px solid rgba(232, 236, 242, 0.16);
  border-radius: 18px;
  background: #101318;
  color: #f4f6f8;
}

body.hostiva_customer_theme .hostiva_product_detail_dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

body.hostiva_customer_theme .hostiva_product_detail_dialog article {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), transparent 46%),
    #101318;
}

body.hostiva_customer_theme .hostiva_product_detail_dialog header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px;
  border-bottom: 1px solid rgba(232, 236, 242, 0.12);
}

body.hostiva_customer_theme .hostiva_product_detail_dialog header span {
  color: #aab3be;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

body.hostiva_customer_theme .hostiva_product_detail_dialog h2 {
  margin: 6px 0 0;
  font-size: 30px;
  line-height: 1.15;
}

body.hostiva_customer_theme .hostiva_product_detail_dialog header button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(232, 236, 242, 0.18);
  border-radius: 50%;
  color: #f4f6f8;
  background: rgba(255, 255, 255, 0.045);
  font-size: 22px;
  cursor: pointer;
}

body.hostiva_customer_theme .hostiva_product_detail_body {
  display: grid;
  gap: 18px;
  padding: 24px 26px 28px;
}

body.hostiva_customer_theme .hostiva_product_detail_body p {
  margin: 0;
  color: #c5ccd5;
  line-height: 1.75;
}

body.hostiva_customer_theme .hostiva_product_detail_price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(232, 236, 242, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

body.hostiva_customer_theme .hostiva_product_detail_price span,
body.hostiva_customer_theme .hostiva_product_scope_grid span {
  color: #aeb7c2;
  font-size: 13px;
  font-weight: 800;
}

body.hostiva_customer_theme .hostiva_product_detail_price strong {
  color: #fff;
  font-size: 24px;
}

body.hostiva_customer_theme .hostiva_product_scope_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.hostiva_customer_theme .hostiva_product_scope_grid span {
  padding: 13px;
  border: 1px solid rgba(232, 236, 242, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

body.hostiva_customer_theme .ticket-detail-card,
body.hostiva_customer_theme .hostiva_support_card {
  min-width: 0;
  overflow: hidden;
}

body.hostiva_customer_theme .ticket-thread {
  display: grid;
  gap: 14px;
}

body.hostiva_customer_theme .ticket-message {
  width: fit-content;
  max-width: min(760px, 92%);
  min-width: 0;
  overflow-wrap: anywhere;
}

body.hostiva_customer_theme .ticket-message.staff {
  justify-self: end;
}

body.hostiva_customer_theme .ticket-reply-form,
body.hostiva_customer_theme .support-form {
  min-width: 0;
}

body.hostiva_customer_theme .ticket-reply-form textarea,
body.hostiva_customer_theme .support-form textarea,
body.hostiva_customer_theme .support-form input,
body.hostiva_customer_theme .support-form select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.hostiva_customer_theme .ticket-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

@media (max-width: 900px) {
  body.hostiva_customer_theme .site-footer.hostiva_footer,
  body.hostiva_auth_theme .site-footer.hostiva_footer {
    grid-template-columns: 1fr 1fr;
    width: min(100% - 34px, 760px);
    margin-left: 17px;
    margin-right: 17px;
  }
}

@media (max-width: 680px) {
  body.hostiva_customer_theme .site-footer.hostiva_footer,
  body.hostiva_auth_theme .site-footer.hostiva_footer,
  body.hostiva_customer_theme .hostiva_product_scope_grid,
  body.hostiva_customer_theme .hostiva_customer_service_details > div,
  body.hostiva_customer_theme .hostiva_product_detail_price {
    grid-template-columns: 1fr;
  }

  body.hostiva_customer_theme .site-footer.hostiva_footer,
  body.hostiva_auth_theme .site-footer.hostiva_footer {
    display: grid;
  }

  body.hostiva_customer_theme .hostiva_footer_legal,
  body.hostiva_auth_theme .hostiva_footer_legal {
    grid-template-columns: 1fr;
  }

  body.hostiva_customer_theme .hostiva_announcement_meta,
  body.hostiva_customer_theme .hostiva_product_detail_price {
    align-items: start;
    flex-direction: column;
  }

  body.hostiva_customer_theme .ticket-message,
  body.hostiva_customer_theme .ticket-message.staff {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
  }
}

/* Profile page */
body.hostiva_customer_theme .hostiva_profile_main {
  min-width: 0;
}

body.hostiva_customer_theme .hostiva_profile_grid {
  display: grid;
  grid-template-columns: minmax(270px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

body.hostiva_customer_theme .hostiva_profile_summary_card {
  display: grid;
  gap: 14px;
  justify-items: start;
}

body.hostiva_customer_theme .hostiva_profile_avatar_large {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 236, 242, 0.18);
  border-radius: 22px;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 52%),
    #171b21;
  font-size: 28px;
  font-weight: 950;
}

body.hostiva_customer_theme .hostiva_profile_summary_card h2 {
  margin: 0;
  color: #fff;
  font-size: 26px;
  line-height: 1.15;
}

body.hostiva_customer_theme .hostiva_profile_summary_card p {
  margin: -5px 0 0;
  color: #aab3be;
  overflow-wrap: anywhere;
}

body.hostiva_customer_theme .hostiva_profile_meta {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

body.hostiva_customer_theme .hostiva_profile_meta span {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid rgba(232, 236, 242, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

body.hostiva_customer_theme .hostiva_profile_meta small {
  color: #8e98a5;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

body.hostiva_customer_theme .hostiva_profile_meta strong {
  color: #fff;
  font-size: 15px;
}

body.hostiva_customer_theme .hostiva_profile_form_card,
body.hostiva_customer_theme .hostiva_profile_security_card {
  min-width: 0;
}

body.hostiva_customer_theme .hostiva_profile_form {
  display: grid;
  gap: 16px;
  min-width: 0;
}

body.hostiva_customer_theme .hostiva_profile_form_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

body.hostiva_customer_theme .hostiva_profile_form .field-label {
  min-width: 0;
}

body.hostiva_customer_theme .hostiva_profile_form input,
body.hostiva_customer_theme .hostiva_profile_form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.hostiva_customer_theme .hostiva_profile_security_card {
  grid-column: 2;
}

@media (max-width: 1100px) {
  body.hostiva_customer_theme .hostiva_profile_grid,
  body.hostiva_customer_theme .hostiva_profile_security_card {
    grid-template-columns: 1fr;
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  body.hostiva_customer_theme .hostiva_profile_form_grid {
    grid-template-columns: 1fr;
  }
}
