/* HypeGrade current app compatibility layer for the 2026 skin.
   This maps the new visual language onto the live app's existing markup. */

:root {
  --hg-bg: #0f1535;
  --hg-bg-2: #181f4a;
  --hg-panel: rgba(6, 11, 40, 0.94);
  --hg-panel-soft: rgba(10, 14, 35, 0.68);
  --hg-border: rgba(255, 255, 255, 0.15);
  --hg-text: #d3d7dc;
  --hg-heading: #e6ecf0;
  --hg-muted: #9aa4b2;
  --hg-orange: #ff8000;
  --hg-orange-2: #ffb347;
  --hg-blue: #38bdf8;
}

html[data-bs-theme="blue-theme"] body,
body {
  min-height: 100vh;
  background-color: var(--hg-bg-2) !important;
  background-image: url("../assets/images/bg-themes/body-background-1.webp") !important;
  background-attachment: fixed !important;
  background-size: cover !important;
  color: var(--hg-text) !important;
  font-family: "Noto Sans", "Blender Pro", Arial, sans-serif !important;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: rgba(6, 11, 40, 0.35);
  z-index: -1;
}

a {
  color: var(--hg-orange-2);
}

a:hover,
a:focus {
  color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--hg-heading);
}

.container-fluid.position-relative.d-flex.p-0 {
  min-height: 100vh;
  background: transparent !important;
}

#spinner {
  background: rgba(6, 11, 40, 0.9) !important;
}

.sidebar {
  width: 300px;
  background: var(--hg-panel) !important;
  border-right: 1px solid var(--hg-border);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.sidebar .navbar {
  background: transparent !important;
  align-items: stretch;
}

.sidebar .hg-logo {
  width: 210px;
  max-width: calc(100% - 24px);
  margin: 18px 12px 22px;
}

.sidebar .navbar-nav {
  gap: 4px;
  padding-bottom: 20px;
}

.sidebar .navbar .navbar-nav .nav-link,
.sidebar .nav-link {
  min-height: 46px;
  margin: 2px 12px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--hg-text);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.sidebar .navbar .navbar-nav .nav-link i,
.sidebar .nav-link i {
  color: var(--hg-orange-2);
  width: 22px;
  text-align: center;
}

.sidebar .navbar .navbar-nav .nav-link:hover,
.sidebar .navbar .navbar-nav .nav-link.active,
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  color: #fff;
  background: rgba(255, 128, 0, 0.14);
  border-color: rgba(255, 128, 0, 0.28);
}

.sidebar .dropdown-menu {
  margin: 4px 12px 10px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--hg-border);
  background: rgba(15, 21, 53, 0.98) !important;
}

.sidebar .dropdown-item {
  color: var(--hg-text);
  border-radius: 9px;
  padding: 9px 12px;
}

.sidebar .dropdown-item:hover,
.sidebar .dropdown-item:focus,
.sidebar .dropdown-item.active {
  color: #fff;
  background: rgba(255, 128, 0, 0.16);
}

.content {
  background: transparent !important;
  min-height: 100vh;
}

.content > .navbar {
  min-height: 70px;
  background: rgba(6, 11, 40, 0.72) !important;
  border-bottom: 1px solid var(--hg-border);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.content .navbar .nav-link,
.content .navbar .dropdown-toggle {
  color: var(--hg-text) !important;
}

.content .navbar .nav-link:hover,
.content .navbar .dropdown-toggle:hover,
.sidebar-toggler:hover {
  color: #fff !important;
}

.sidebar-toggler {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hg-text) !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--hg-border);
}

.content .navbar .dropdown-menu,
.dropdown-menu.bg-secondary,
.notification-area {
  background: var(--hg-bg-2) !important;
  border: 1px solid var(--hg-border) !important;
  border-radius: 14px !important;
  color: var(--hg-text);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.content .navbar .dropdown-item,
.dropdown-menu .dropdown-item {
  color: var(--hg-text);
  border-radius: 10px;
}

.content .navbar .dropdown-item:hover,
.dropdown-menu .dropdown-item:hover {
  color: #fff !important;
  background: rgba(255, 128, 0, 0.16) !important;
}

.bg-secondary,
.bg-dark {
  background: var(--hg-panel) !important;
  color: var(--hg-text) !important;
}

.card,
.comments-form-card,
.info-card,
.gradient-panel,
.table-responsive,
.form-card,
.service-card,
.wallet-payment-card,
.article-container,
.pricing_block,
.accordion-item,
.bg-secondary.rounded {
  background-image: linear-gradient(127.09deg, var(--hg-panel) 19.41%, var(--hg-panel-soft) 76.65%) !important;
  border: 1px solid var(--hg-border) !important;
  border-radius: 18px !important;
  color: var(--hg-text) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.card-header,
.card-footer {
  background: transparent !important;
  border-color: var(--hg-border) !important;
}

.text-muted,
.text-secondary,
small,
.article-description {
  color: var(--hg-muted) !important;
}

.container-fluid.pt-4,
.container-fluid.px-4 {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.bg-secondary.rounded.d-flex,
.bg-secondary.rounded.h-100,
.bg-secondary.text-center.rounded,
.bg-secondary.rounded.p-4,
.bg-secondary.rounded.p-1 {
  overflow: hidden;
}

.bg-secondary.rounded.d-flex > i,
.text-primary,
.fas,
.fab,
.fa {
  color: var(--hg-orange-2) !important;
}

.article-container {
  padding: 18px !important;
  margin-left: 0;
  margin-right: 0;
}

.article-container img,
.card img {
  border-radius: 14px;
}

.article-title,
.section-heading,
.des_ h4,
.pricing_block h3,
.pricing_block .price {
  color: var(--hg-heading) !important;
}

.strick,
del,
s {
  color: #ef4444 !important;
}

.discount,
.card_note,
.pricing_block .price span {
  color: var(--hg-orange-2) !important;
}

.accordion-button,
.accordison-button {
  color: var(--hg-heading) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--hg-border);
  border-radius: 12px !important;
  padding: 12px 16px;
}

.accordion-button:not(.collapsed),
.accordion-button:focus,
.accordison-button:not(.collapsed),
.accordison-button:focus {
  color: #fff !important;
  background: rgba(255, 128, 0, 0.16) !important;
  border-color: rgba(255, 128, 0, 0.38) !important;
  box-shadow: none !important;
}

.accordion-body {
  color: var(--hg-text);
}

.tox.tox-tinymce,
.tox .tox-edit-area__iframe,
.tox .tox-toolbar,
.tox .tox-toolbar__primary,
.tox .tox-menubar {
  background: rgba(15, 21, 53, 0.96) !important;
  border-color: var(--hg-border) !important;
}

.tox.tox-tinymce {
  border-radius: 14px !important;
  overflow: hidden;
}

.tox .tox-tbtn svg,
.tox .tox-tbtn,
.tox .tox-mbtn {
  color: var(--hg-text) !important;
  fill: var(--hg-text) !important;
}

.pricing_block {
  padding: 24px !important;
  height: 100%;
}

.pricing_block ul,
.pricing_block li {
  color: var(--hg-text) !important;
}

.glow-btn {
  box-shadow: 0 10px 24px rgba(255, 128, 0, 0.3) !important;
}

/* Customer service pages: portal-style description/discount hero treatment. */
.hg-description-screen {
  padding-top: 1.5rem;
}

.hg-description-screen > .bg-secondary,
.hg-description-screen .hg-description-panel {
  background-image: linear-gradient(127.09deg, var(--hg-panel) 19.41%, var(--hg-panel-soft) 76.65%) !important;
  border: 1px solid var(--hg-border) !important;
  border-radius: 22px !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.des_ {
  align-items: flex-start !important;
  gap: 18px;
  flex-wrap: wrap;
}

.des_ > h4,
.des_ > h5,
.des_ > h6 {
  margin-bottom: 0 !important;
  font-weight: 700;
}

.des_ .accordion {
  width: 100%;
  max-width: 760px;
}

.des_ .accordion-item {
  background: transparent !important;
  border: 0 !important;
}

.des_ .accordion-header {
  margin: 0;
}

.des_ .accordion-button,
.des_ .accordison-button {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  padding: 14px 48px 14px 18px !important;
  color: var(--hg-heading) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--hg-border) !important;
  border-radius: 16px !important;
}

.des_ .accordion-button h4,
.des_ .accordion-button h5,
.des_ .accordion-button h6 {
  margin: 0;
  font-size: inherit;
}

.des_ .accordion-collapse {
  position: static !important;
  width: 100% !important;
  z-index: auto !important;
}

.des_ .accordion-body {
  margin-top: 14px;
  padding: 20px !important;
  background-image: linear-gradient(127.09deg, rgba(6, 11, 40, 0.96) 19.41%, rgba(10, 14, 35, 0.78) 76.65%) !important;
  border: 1px solid var(--hg-border);
  border-radius: 18px;
  color: var(--hg-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-description,
.des_ .accordion-body p,
.des_ .accordion-body li {
  color: var(--hg-text) !important;
  font-size: 15px !important;
  line-height: 1.7;
}

.des_ .accordion-body strong,
.des_ .accordion-body b {
  color: var(--hg-heading);
}

.des_ .accordion-body ul {
  margin: 0 0 1rem;
}

.des_ .accordion-body .discount,
.des_ .discount {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: var(--hg-text) !important;
}

.des_ .discount[hidden] {
  display: flex !important;
}

.stat-pill,
.discount-pill,
.des_ .discount h5,
.des_ .discount p,
.des_ .accordion-body span[style*="orange"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  margin: 0 !important;
  padding: 7px 11px;
  border-radius: 999px;
  color: #ffd9a8 !important;
  background: rgba(255, 128, 0, 0.12);
  border: 1px solid rgba(255, 128, 0, 0.28);
  font-size: 13px !important;
  line-height: 1.35 !important;
}

.stat-pill .label,
.discount-pill .label {
  color: var(--hg-muted);
}

.stat-pill .value,
.discount-pill .value {
  color: #fff;
  font-weight: 700;
}

.comments-screen,
.comment-main-container {
  width: 100%;
}

.comments-hero,
.gradient-panel {
  padding: 24px;
  border-radius: 22px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.eyebrow-label {
  color: var(--hg-orange-2) !important;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.form-field {
  min-width: 0;
}

.field-note {
  color: var(--hg-muted);
  font-size: 12px;
  margin: 6px 0 0;
}

@media (max-width: 767.98px) {
  .des_ .accordion {
    max-width: 100%;
  }

  .des_ .accordion-button,
  .des_ .accordison-button {
    font-size: 17px;
    padding-right: 42px !important;
  }

  .comments-hero,
  .gradient-panel {
    padding: 18px;
  }
}

.form-control,
.form-select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="date"],
select {
  color: #fff !important;
  background-color: rgba(15, 21, 53, 0.86) !important;
  border: 1px solid var(--hg-border) !important;
  border-radius: 12px !important;
}

.form-control:focus,
.form-select:focus,
textarea:focus,
input:focus,
select:focus {
  color: #fff !important;
  background-color: rgba(15, 21, 53, 0.96) !important;
  border-color: rgba(255, 128, 0, 0.72) !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 128, 0, 0.18) !important;
}

.form-floating > label,
label {
  color: var(--hg-muted) !important;
}

.btn {
  border-radius: 12px;
}

.btn-primary,
.page-item.active .page-link {
  background: var(--hg-orange) !important;
  border-color: var(--hg-orange) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #ff9b2f !important;
  border-color: #ff9b2f !important;
}

.btn-outline-light,
.btn-outline-primary {
  color: var(--hg-text) !important;
  border-color: var(--hg-border) !important;
}

.btn-outline-light:hover,
.btn-outline-primary:hover {
  color: #fff !important;
  background: rgba(255, 128, 0, 0.16) !important;
  border-color: rgba(255, 128, 0, 0.45) !important;
}

.table,
table.dataTable {
  color: var(--hg-text) !important;
  border-color: var(--hg-border) !important;
}

.table > :not(caption) > * > *,
table.dataTable tbody th,
table.dataTable tbody td {
  color: var(--hg-text) !important;
  background: transparent !important;
  border-color: var(--hg-border) !important;
}

.table thead th,
table.dataTable thead th {
  color: var(--hg-heading) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: var(--hg-border) !important;
}

.dataTables_wrapper,
.dataTables_wrapper label,
.dataTables_info,
.dataTables_length,
.dataTables_filter {
  color: var(--hg-text) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  color: var(--hg-text) !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  color: #fff !important;
  background: var(--hg-orange) !important;
  border-color: var(--hg-orange) !important;
}

.badge.bg-danger,
.badge.bg-primary {
  background: var(--hg-orange) !important;
}

.modal-content {
  background: var(--hg-bg-2) !important;
  color: var(--hg-text) !important;
  border: 1px solid var(--hg-border) !important;
  border-radius: 18px !important;
}

.modal-header,
.modal-footer {
  border-color: var(--hg-border) !important;
}

.alert {
  border-radius: 14px;
  border-color: var(--hg-border);
}

hr,
.dropdown-divider {
  border-color: var(--hg-border) !important;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(6, 11, 40, 0.85);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 128, 0, 0.75);
  border-radius: 20px;
}

@media (min-width: 992px) {
  .content {
    margin-left: 300px;
    width: calc(100% - 300px);
  }
}

@media (max-width: 991.98px) {
  .sidebar {
    background: var(--hg-panel) !important;
  }

  .content {
    width: 100%;
  }
}

/* Premium layout polish for the live app shell. Keep this late so it wins
   against legacy inline page styles without changing old views. */
:root {
  --hg-sidebar-width: 286px;
  --hg-page-gutter: clamp(14px, 2vw, 30px);
  --hg-card-radius: 16px;
  --hg-control-radius: 10px;
  --hg-shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.24);
  --hg-shadow-strong: 0 26px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

.container-fluid.position-relative.d-flex.p-0 {
  align-items: stretch;
}

.sidebar {
  width: var(--hg-sidebar-width) !important;
  padding: 0 12px 18px !important;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(10, 16, 48, 0.98), rgba(5, 9, 32, 0.97)) !important;
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.26);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 128, 0, 0.6) rgba(255, 255, 255, 0.05);
}

.sidebar .navbar {
  display: block;
  width: 100%;
  min-height: 100%;
  padding: 0 !important;
}

.sidebar .navbar > a:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  margin: 0 0 8px;
  padding: 14px 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar .hg-logo,
.sidebar img.hg-logo {
  width: min(205px, 88%) !important;
  max-height: 58px;
  object-fit: contain;
  margin: 0 !important;
}

.sidebar .navbar-nav {
  gap: 5px;
  padding: 4px 0 18px;
}

.sidebar .navbar .navbar-nav .nav-link,
.sidebar .nav-link {
  position: relative;
  min-height: 44px;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  color: rgba(230, 236, 240, 0.82) !important;
  font-size: 14px;
  line-height: 1.25;
  white-space: normal;
}

.sidebar .navbar .navbar-nav .nav-link i,
.sidebar .nav-link i {
  flex: 0 0 34px;
  width: 34px !important;
  height: 34px !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 10px !important;
  color: #ffb45a !important;
  background: rgba(255, 128, 0, 0.11) !important;
}

.sidebar .navbar .navbar-nav .nav-link:hover,
.sidebar .navbar .navbar-nav .nav-link.active,
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.075) !important;
  border-color: rgba(255, 128, 0, 0.34) !important;
  box-shadow: inset 3px 0 0 rgba(255, 128, 0, 0.95);
}

.sidebar .navbar .dropdown-toggle::after {
  top: 50% !important;
  right: 12px !important;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.56);
}

.sidebar .navbar .dropdown-toggle[aria-expanded=true]::after {
  transform: translateY(-50%) rotate(-180deg) !important;
}

.sidebar .dropdown-menu,
.sidebar .dropdown-menu.show {
  position: static !important;
  width: auto;
  margin: 4px 0 8px 44px !important;
  padding: 5px !important;
  transform: none !important;
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

.sidebar .dropdown-item {
  min-height: 36px;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  color: rgba(230, 236, 240, 0.78) !important;
  font-size: 13px;
  white-space: normal;
}

.content {
  min-width: 0;
  padding-bottom: 28px;
}

.content > .navbar {
  min-height: 66px !important;
  padding: 0 var(--hg-page-gutter) !important;
  background: rgba(6, 11, 40, 0.78) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.content > .navbar .navbar-nav {
  min-width: 0;
}

.content > .navbar .nav-link {
  margin-left: 10px !important;
  padding: 9px 4px !important;
  color: rgba(230, 236, 240, 0.86) !important;
}

.sidebar-toggler {
  width: 42px !important;
  height: 42px !important;
  border-radius: 11px !important;
  background: rgba(255, 255, 255, 0.075) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.sidebar-toggler i {
  color: #ffb45a !important;
}

.content > .container-fluid,
.content > form,
.content > .row,
.content > section {
  max-width: 100%;
}

.content > .container-fluid,
.container-fluid.pt-4,
.container-fluid.px-4 {
  padding-left: var(--hg-page-gutter) !important;
  padding-right: var(--hg-page-gutter) !important;
}

.container-fluid.pt-4,
.content > .container-fluid:first-of-type {
  padding-top: clamp(16px, 2vw, 26px) !important;
}

.row {
  --bs-gutter-x: clamp(14px, 1.8vw, 24px);
  --bs-gutter-y: clamp(14px, 1.8vw, 24px);
}

.card,
.bg-secondary.rounded,
.bg-secondary.rounded.p-4,
.bg-secondary.rounded.p-1,
.table-responsive,
.form-card,
.comments-form-card,
.info-card,
.service-card,
.wallet-payment-card,
.article-container,
.pricing_block,
.accordion-item,
.modal-content {
  border-radius: var(--hg-card-radius) !important;
  box-shadow: var(--hg-shadow-soft);
}

.card,
.bg-secondary.rounded,
.bg-secondary.rounded.p-4,
.comments-form-card,
.info-card,
.service-card,
.wallet-payment-card,
.article-container,
.pricing_block {
  padding: clamp(16px, 1.6vw, 24px) !important;
}

.card .card,
.bg-secondary .bg-secondary {
  box-shadow: none;
}

.card-header,
.card-footer {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.content h1,
.content h2,
.content h3,
.content h4 {
  letter-spacing: 0;
  line-height: 1.18;
}

.content h3 {
  color: var(--hg-heading) !important;
}

.content p,
.content li,
.content td,
.content th,
.content label,
.content span {
  letter-spacing: 0;
}

.form-control,
.form-select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="date"],
select {
  min-height: 42px;
  padding: 9px 12px !important;
  border-radius: var(--hg-control-radius) !important;
}

textarea.form-control,
textarea {
  min-height: 110px;
}

.input-group > .form-control,
.input-group > .form-select {
  min-width: 0;
}

.btn {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: var(--hg-control-radius) !important;
  font-weight: 700;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.btn-sm {
  min-height: 34px;
  padding: 7px 11px;
}

.btn-lg {
  min-height: 46px;
  padding: 11px 18px;
}

.table-responsive {
  padding: 0 !important;
  overflow-x: auto;
}

.table,
table.dataTable {
  width: 100% !important;
  margin-bottom: 0 !important;
}

.table > :not(caption) > * > *,
table.dataTable tbody th,
table.dataTable tbody td,
table.dataTable thead th {
  padding: 12px 14px !important;
  vertical-align: middle;
}

table.dataTable.no-footer {
  border-bottom-color: var(--hg-border) !important;
}

.dataTables_wrapper {
  overflow-x: auto;
  padding: 4px 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  margin: 8px 0;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  margin-left: 8px;
}

.dropdown-menu {
  max-width: min(92vw, 360px);
  overflow-wrap: anywhere;
}

.notification-area {
  max-height: min(70vh, 520px);
  overflow-y: auto;
}

.alert,
.badge,
.page-link {
  border-radius: 10px !important;
}

.page-link {
  color: var(--hg-text) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: var(--hg-border) !important;
}

.des_,
.comments-hero,
.gradient-panel,
.hg-description-screen > .bg-secondary,
.hg-description-screen .hg-description-panel {
  overflow: visible;
}

.des_ {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
}

.des_ .accordion,
.des_ .accordion-body,
.des_ .accordion-collapse {
  max-width: 100% !important;
}

@media (min-width: 992px) {
  .sidebar {
    margin-left: 0 !important;
  }

  .sidebar.open {
    margin-left: calc(var(--hg-sidebar-width) * -1) !important;
  }

  .content {
    width: calc(100% - var(--hg-sidebar-width)) !important;
    margin-left: var(--hg-sidebar-width) !important;
  }

  .content.open {
    width: 100% !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 991.98px) {
  .sidebar {
    width: min(84vw, 300px) !important;
    margin-left: min(-84vw, -300px) !important;
    z-index: 1045;
  }

  .sidebar.open {
    margin-left: 0 !important;
    box-shadow: var(--hg-shadow-strong);
  }

  .content,
  .content.open {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .content > .navbar {
    min-height: 62px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .content > .navbar .navbar-nav .nav-link span,
  .content > .navbar .dropdown-toggle span {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .content > .container-fluid,
  .container-fluid.pt-4,
  .container-fluid.px-4 {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .card,
  .bg-secondary.rounded,
  .bg-secondary.rounded.p-4,
  .comments-form-card,
  .info-card,
  .service-card,
  .wallet-payment-card,
  .article-container,
  .pricing_block {
    padding: 14px !important;
    border-radius: 14px !important;
  }

  .table > :not(caption) > * > *,
  table.dataTable tbody th,
  table.dataTable tbody td,
  table.dataTable thead th {
    padding: 10px 11px !important;
    white-space: nowrap;
  }
}

@media (max-width: 575.98px) {
  .content > .navbar .navbar-nav {
    gap: 2px;
  }

  .content > .navbar .nav-link {
    margin-left: 4px !important;
  }

  .sidebar-toggler {
    width: 38px !important;
    height: 38px !important;
  }

  .btn {
    width: auto;
    max-width: 100%;
    white-space: normal;
  }

  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    float: none !important;
    text-align: left !important;
    width: 100%;
  }

  .dataTables_wrapper .dataTables_filter input {
    display: block;
    width: 100%;
    margin: 8px 0 0;
  }
}

/* Premium refinement pass: reduce the "boxed admin template" look. */
:root {
  --hg-bg: #080d24;
  --hg-bg-2: #0b102b;
  --hg-panel: rgba(8, 12, 34, 0.9);
  --hg-panel-soft: rgba(18, 22, 52, 0.62);
  --hg-border: rgba(255, 255, 255, 0.085);
  --hg-border-soft: rgba(255, 255, 255, 0.055);
  --hg-text: #d8deea;
  --hg-muted: #9aa4b6;
  --hg-sidebar-width: 268px;
  --hg-page-gutter: clamp(12px, 1.4vw, 22px);
  --hg-card-radius: 14px;
}

html[data-bs-theme="blue-theme"] body,
body {
  background-color: #080d24 !important;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(37, 64, 177, 0.18), transparent 30%),
    radial-gradient(circle at 82% 10%, rgba(255, 128, 0, 0.08), transparent 26%),
    linear-gradient(180deg, #080d24 0%, #0a0f2b 48%, #071126 100%) !important;
}

body::before {
  background: linear-gradient(90deg, rgba(255, 128, 0, 0.04), transparent 16%, transparent 84%, rgba(56, 189, 248, 0.05));
}

.sidebar {
  width: var(--hg-sidebar-width) !important;
  padding: 0 14px 18px !important;
  background: rgba(5, 10, 30, 0.92) !important;
  border-right: 1px solid var(--hg-border-soft) !important;
  box-shadow: 18px 0 48px rgba(0, 0, 0, 0.28);
}

.sidebar::after {
  content: "";
  position: fixed;
  top: 0;
  left: calc(var(--hg-sidebar-width) - 1px);
  width: 1px;
  height: 100vh;
  background: linear-gradient(180deg, transparent, rgba(255, 128, 0, 0.58), transparent);
  pointer-events: none;
}

.sidebar .navbar > a:first-child {
  justify-content: flex-start;
  min-height: 92px;
  border-bottom-color: var(--hg-border-soft);
}

.sidebar .hg-logo,
.sidebar img.hg-logo {
  width: min(222px, 94%) !important;
}

.sidebar .d-flex.align-items-center,
.sidebar .navbar .d-flex.align-items-center {
  border-bottom: 1px solid var(--hg-border-soft);
  padding-bottom: 18px;
  margin-bottom: 16px;
}

.sidebar .navbar .navbar-nav .nav-link,
.sidebar .nav-link {
  min-height: 46px;
  padding: 8px 10px !important;
  border-radius: 12px !important;
  color: rgba(222, 229, 241, 0.78) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.sidebar .navbar .navbar-nav .nav-link i,
.sidebar .nav-link i {
  flex-basis: 34px;
  width: 34px !important;
  height: 34px !important;
  color: #ffb357 !important;
  background: rgba(255, 128, 0, 0.09) !important;
  border: 1px solid rgba(255, 128, 0, 0.04);
}

.sidebar .navbar .navbar-nav .nav-link:hover,
.sidebar .navbar .navbar-nav .nav-link.active,
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(255, 128, 0, 0.28) !important;
  box-shadow: inset 2px 0 0 #ff8000 !important;
}

.sidebar .navbar .navbar-nav .nav-link:hover i,
.sidebar .navbar .navbar-nav .nav-link.active i,
.sidebar .nav-link:hover i,
.sidebar .nav-link.active i {
  background: rgba(255, 128, 0, 0.16) !important;
  color: #ffd19b !important;
}

.sidebar .dropdown-menu,
.sidebar .dropdown-menu.show {
  margin-left: 38px !important;
  background: transparent !important;
  border: 0 !important;
  padding: 2px 0 6px !important;
}

.sidebar .dropdown-item {
  padding: 8px 10px !important;
  color: rgba(222, 229, 241, 0.66) !important;
  background: transparent !important;
}

.sidebar .dropdown-item:hover,
.sidebar .dropdown-item.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.055) !important;
}

.content {
  background: transparent !important;
}

.content > .navbar {
  min-height: 68px !important;
  background: rgba(6, 10, 28, 0.82) !important;
  border-bottom: 1px solid var(--hg-border-soft) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.content > .navbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 128, 0, 0.38), transparent 28%, transparent 72%, rgba(56, 189, 248, 0.18));
}

.sidebar-toggler,
.content .navbar .nav-link,
.content .navbar .dropdown-toggle {
  border-radius: 12px !important;
}

.sidebar-toggler {
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: var(--hg-border) !important;
}

.content .navbar .dropdown-toggle img,
.content .navbar img.rounded-circle {
  border: 0 !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.content > .container-fluid,
.container-fluid.pt-4,
.container-fluid.px-4 {
  padding-left: var(--hg-page-gutter) !important;
  padding-right: var(--hg-page-gutter) !important;
}

.card,
.bg-secondary.rounded,
.bg-secondary.rounded.p-4,
.bg-secondary.rounded.p-1,
.comments-form-card,
.info-card,
.service-card,
.wallet-payment-card,
.article-container,
.pricing_block,
.modal-content {
  background:
    linear-gradient(180deg, rgba(14, 18, 44, 0.82), rgba(8, 12, 32, 0.78)) !important;
  border: 1px solid var(--hg-border) !important;
  border-radius: var(--hg-card-radius) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16) !important;
}

.content .bg-secondary.rounded > .bg-secondary.rounded,
.content .bg-secondary.rounded > .card,
.content .card > .bg-secondary.rounded,
.content .card > .card,
.content .bg-secondary.rounded .bg-secondary.rounded,
.content .card .card {
  background: transparent !important;
  border-color: var(--hg-border-soft) !important;
  box-shadow: none !important;
}

.content .bg-secondary.rounded > .accordion,
.content .card > .accordion,
.content .accordion,
.content .accordion-item {
  border-color: var(--hg-border-soft) !important;
  box-shadow: none !important;
}

.content .bg-secondary.rounded > .accordion,
.content .card > .accordion {
  padding: 0 !important;
  border: 0 !important;
}

.accordion-button,
.accordison-button,
.des_ .accordion-button,
.des_ .accordison-button {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.11) !important;
  color: #dde4ef !important;
}

.accordion-button:not(.collapsed),
.accordion-button:focus,
.accordison-button:not(.collapsed),
.accordison-button:focus {
  background: rgba(255, 128, 0, 0.11) !important;
  border-color: rgba(255, 128, 0, 0.28) !important;
}

.hg-description-screen > .bg-secondary,
.hg-description-screen .hg-description-panel {
  background: linear-gradient(180deg, rgba(14, 18, 44, 0.74), rgba(8, 12, 32, 0.68)) !important;
  border-color: var(--hg-border) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14) !important;
}

.des_ {
  gap: 8px !important;
}

.des_ .accordion-button,
.des_ .accordison-button {
  min-width: 158px;
}

.des_ .accordion-body {
  background: rgba(6, 10, 28, 0.96) !important;
  border-color: var(--hg-border) !important;
}

.stat-pill,
.discount-pill,
.des_ .discount h5,
.des_ .discount p,
.des_ .accordion-body span[style*="orange"] {
  background: rgba(255, 128, 0, 0.1) !important;
  border-color: rgba(255, 128, 0, 0.2) !important;
}

.table-responsive,
.content .dataTables_wrapper {
  background: rgba(6, 10, 28, 0.42) !important;
  border: 1px solid var(--hg-border-soft) !important;
  box-shadow: none !important;
}

.table thead th,
table.dataTable thead th {
  background: rgba(255, 255, 255, 0.045) !important;
  color: #dfe6f2 !important;
}

.table > :not(caption) > * > *,
table.dataTable tbody th,
table.dataTable tbody td,
table.dataTable thead th {
  border-color: var(--hg-border-soft) !important;
}

.form-control,
.form-select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="date"],
select {
  background-color: rgba(7, 11, 31, 0.72) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.btn-primary,
.page-item.active .page-link {
  background: linear-gradient(180deg, #ff9a1f, #ff7900) !important;
  border-color: #ff8a12 !important;
  box-shadow: 0 10px 24px rgba(255, 128, 0, 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(180deg, #ffad3d, #ff850a) !important;
  box-shadow: 0 12px 28px rgba(255, 128, 0, 0.28);
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: rgba(8, 13, 36, 0.9);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 128, 0, 0.44);
  border-radius: 20px;
}

@media (min-width: 992px) {
  .content {
    width: calc(100% - var(--hg-sidebar-width)) !important;
    margin-left: var(--hg-sidebar-width) !important;
  }

  .sidebar.open {
    margin-left: calc(var(--hg-sidebar-width) * -1) !important;
  }
}

@media (max-width: 991.98px) {
  .sidebar::after {
    left: min(84vw, 300px);
  }
}

/* HTML-assisted redesign: these classes are now added to the shared views. */
.hg-app-shell {
  background: transparent !important;
}

.hg-app-sidebar {
  isolation: isolate;
}

.hg-sidebar-profile {
  display: none !important;
}

.hg-sidebar-profile .rounded-circle {
  width: 38px !important;
  height: 38px !important;
}

.hg-sidebar-profile h6 {
  max-width: 172px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #edf3ff !important;
  font-size: 14px;
  font-weight: 700;
}

.hg-sidebar-menu {
  padding-top: 2px !important;
}

.hg-topbar {
  gap: 12px;
}

.hg-topbar .navbar-nav {
  gap: 8px;
}

.hg-topbar .nav-item > .nav-link,
.hg-topbar .custom_switcher {
  min-height: 40px;
  padding: 8px 11px !important;
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
}

.hg-topbar .nav-item > .nav-link i {
  color: #ffb45a !important;
}

.hg-topbar .custom_switcher {
  min-width: 42px;
  color: #fff !important;
}

.hg-topbar select.custom_switcher,
.custom_switcher.form-select,
select.custom_switcher,
#languageSwitcher {
  color: #f8fbff !important;
  background-color: rgba(13, 19, 47, 0.98) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
  -moz-appearance: auto !important;
}

.hg-topbar select.custom_switcher option,
.custom_switcher.form-select option,
select.custom_switcher option,
#languageSwitcher option {
  color: #111827 !important;
  background-color: #ffffff !important;
}

/* Sidebar menu and topbar dropdown polish. */
.hg-sidebar-menu .nav-item.dropdown {
  position: relative;
}

.hg-sidebar-menu .nav-link {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  column-gap: 10px !important;
}

.hg-sidebar-menu .nav-link:not(.dropdown-toggle) {
  grid-template-columns: 34px minmax(0, 1fr);
}

.hg-sidebar-menu .nav-link i {
  margin-right: 0 !important;
}

.hg-sidebar-menu .dropdown-toggle::after {
  position: static !important;
  grid-column: 3;
  justify-self: end;
  margin: 0 !important;
  width: 18px;
  height: 18px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: rgba(221, 228, 239, 0.58) !important;
  transform: none !important;
}

.hg-sidebar-menu .dropdown-toggle[aria-expanded=true]::after {
  transform: rotate(-180deg) !important;
}

.hg-sidebar-menu .dropdown-menu,
.hg-sidebar-menu .dropdown-menu.show {
  margin: 5px 0 8px 44px !important;
  padding: 4px 0 4px 12px !important;
  border-left: 1px solid rgba(255, 128, 0, 0.18) !important;
}

.hg-sidebar-menu .dropdown-item {
  min-height: 34px;
  padding: 7px 10px !important;
  border-radius: 9px !important;
  font-size: 13px;
  line-height: 1.25;
}

.hg-topbar .dropdown-menu,
.content .navbar .dropdown-menu,
.dropdown-menu.bg-secondary {
  min-width: 240px;
  padding: 8px !important;
  background: #0c122e !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32) !important;
}

.hg-topbar .dropdown-menu.dropdown-menu-end,
.content .navbar .dropdown-menu.dropdown-menu-end {
  right: 0 !important;
  left: auto !important;
}

.hg-topbar .dropdown-item,
.content .navbar .dropdown-item,
.dropdown-menu.bg-secondary .dropdown-item {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  color: #dbe4f3 !important;
  line-height: 1.3;
}

.hg-topbar .dropdown-item:hover,
.content .navbar .dropdown-item:hover,
.dropdown-menu.bg-secondary .dropdown-item:hover {
  color: #fff !important;
  background: rgba(255, 128, 0, 0.12) !important;
}

.notification-area,
.notification-menu,
.notifications-dropdown,
#notification-list,
.hg-topbar .dropdown-menu:has(.notification-item),
.content .navbar .dropdown-menu:has(.notification-item) {
  width: min(420px, 92vw) !important;
  max-height: min(540px, 76vh) !important;
  overflow-y: auto !important;
  padding: 10px !important;
  background: #0c122e !important;
  border-radius: 16px !important;
}

.notification-area *,
.notification-menu *,
.notifications-dropdown *,
#notification-list * {
  color: #dbe4f3;
}

.notification-area a,
.notification-menu a,
.notifications-dropdown a,
#notification-list a,
.notification-area .dropdown-item,
.notification-menu .dropdown-item,
.notifications-dropdown .dropdown-item,
#notification-list .dropdown-item {
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.notification-area .dropdown-item + .dropdown-item,
.notification-menu .dropdown-item + .dropdown-item,
.notifications-dropdown .dropdown-item + .dropdown-item,
#notification-list .dropdown-item + .dropdown-item {
  margin-top: 4px;
}

.notification-area small,
.notification-menu small,
.notifications-dropdown small,
#notification-list small {
  color: #8f9bb2 !important;
}

.notifications-dropdown .noti-wrapper {
  border-radius: 12px;
  overflow: hidden;
}

.notifications-dropdown .noti-wrapper + .noti-wrapper {
  margin-top: 6px;
}

.notifications-dropdown .noti-item,
.notification-area .noti-item {
  position: relative;
  align-items: flex-start !important;
  padding: 10px 38px 10px 12px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.notifications-dropdown .noti-item.unseen,
.notifications-dropdown .unseen-notification .noti-item {
  background: rgba(255, 128, 0, 0.1) !important;
  border-color: rgba(255, 128, 0, 0.22);
}

.notifications-dropdown .noti-item h6,
.notification-area .noti-item h6 {
  color: #f3f7ff !important;
  font-size: 14px;
  line-height: 1.3;
}

.notifications-dropdown .noti-item p,
.notification-area .noti-item p {
  color: #aeb8ca !important;
  margin-bottom: 4px !important;
  font-size: 13px;
  line-height: 1.45;
}

.notifications-dropdown .delete-icon,
.notification-area .delete-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  float: none !important;
  color: #ff6b6b !important;
  opacity: .78;
}

.notifications-dropdown .delete-icon:hover,
.notification-area .delete-icon:hover {
  opacity: 1;
}

.hg-topbar .hg-lang-item,
.hg-topbar .nav-item.dropdown {
  display: flex;
  align-items: center;
}

.hg-topbar .hg-lang-select,
.hg-topbar #languageSwitcher {
  width: 76px !important;
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 34px 0 18px !important;
  border-radius: 14px !important;
  color: #f7faff !important;
  background-color: rgba(17, 24, 50, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18) !important;
  font-weight: 700;
  cursor: pointer;
}

.hg-topbar .hg-lang-select:hover,
.hg-topbar #languageSwitcher:hover,
.hg-topbar .hg-lang-select:focus,
.hg-topbar #languageSwitcher:focus {
  border-color: rgba(255, 128, 0, 0.34) !important;
  background-color: rgba(20, 28, 58, 0.98) !important;
}

.hg-topbar .nav-item.dropdown > .nav-link {
  min-width: 76px;
  min-height: 50px;
  justify-content: center;
}

.hg-topbar .nav-item.dropdown > .nav-link .badge {
  top: -1px !important;
  right: -2px !important;
  min-width: 34px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 7px 15px rgba(255, 128, 0, 0.28);
}

.notifications-dropdown .noti-header {
  position: sticky !important;
  top: 0 !important;
  width: auto !important;
}

.notifications-dropdown .noti-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 24px;
}

.notifications-dropdown .noti-item h6,
.notifications-dropdown .noti-item p {
  grid-column: 1 / -1;
  padding-right: 18px;
}

.notifications-dropdown .noti-item small {
  grid-column: 1;
  white-space: nowrap;
}

/* Form readability pass: keep labels and values from visually colliding. */
.form-group,
.mb-3,
.mb-4,
.form-field {
  position: relative;
}

.form-group > label,
.mb-3 > label,
.mb-4 > label,
.form-field > label,
.hg-app-content label {
  display: block;
  margin-bottom: 7px !important;
  color: #8f9bb2 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

.hg-app-content .form-control,
.hg-app-content .form-select,
.hg-app-content textarea,
.hg-app-content input[type="text"],
.hg-app-content input[type="email"],
.hg-app-content input[type="password"],
.hg-app-content input[type="number"],
.hg-app-content input[type="url"],
.hg-app-content input[type="date"],
.hg-app-content select {
  min-height: 48px;
  padding-top: 13px !important;
  padding-bottom: 13px !important;
  line-height: 1.45 !important;
}

.hg-app-content .form-floating > .form-control,
.hg-app-content .form-floating > .form-select {
  min-height: 58px;
  padding-top: 24px !important;
  padding-bottom: 8px !important;
}

.hg-app-content .form-floating > label {
  height: auto;
  padding: 9px 12px !important;
  line-height: 1.2 !important;
  opacity: .82;
}

.hg-app-content .form-floating > .form-control:focus ~ label,
.hg-app-content .form-floating > .form-control:not(:placeholder-shown) ~ label,
.hg-app-content .form-floating > .form-select ~ label {
  transform: scale(.86) translateY(-.45rem) translateX(.15rem);
}

/* Country flag dropdowns used on reactions and review order pages. */
.hg-app-content .custom-dropdown {
  width: 100% !important;
  min-width: 220px;
  min-height: 50px;
  display: block !important;
  position: relative;
  color: #f8fafc !important;
  background: rgba(6, 11, 31, .86) !important;
  border: 1px solid rgba(157, 170, 204, .24) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}

.hg-app-content .custom-dropdown::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  width: 9px;
  height: 9px;
  pointer-events: none;
  border-right: 2px solid #ff9900;
  border-bottom: 2px solid #ff9900;
  transform: translateY(-62%) rotate(45deg);
}

.hg-app-content .custom-dropdown .selected-option,
.hg-app-content .custom-dropdown .option {
  min-height: 48px;
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 12px 42px 12px 14px !important;
  color: #f8fafc !important;
  background: transparent !important;
  border-radius: 12px;
}

.hg-app-content .custom-dropdown .selected-option span,
.hg-app-content .custom-dropdown .option span {
  min-width: 0;
  overflow: hidden;
  color: inherit !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hg-app-content .custom-dropdown img {
  width: 22px !important;
  height: 16px !important;
  flex: 0 0 auto;
  margin: 0 !important;
  object-fit: cover;
  border-radius: 3px;
}

.hg-app-content .custom-dropdown .options {
  top: calc(100% + 8px) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1060 !important;
  max-height: 260px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 6px !important;
  background: #080d25 !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .34) !important;
}

.hg-app-content .custom-dropdown .option {
  margin: 2px 0;
}

.hg-app-content .custom-dropdown .option:hover {
  color: #fff !important;
  background: rgba(255, 142, 24, .16) !important;
}

.hg-app-content .custom-dropdown:focus-within {
  border-color: rgba(255, 142, 24, .78) !important;
  box-shadow: 0 0 0 4px rgba(255, 142, 24, .12) !important;
}

/* Readonly/detail fields in several profile pages are rendered as plain blocks
   with a label and value inside the same bordered container. */
.hg-app-content .bg-secondary.rounded label + p,
.hg-app-content .bg-secondary.rounded label + span,
.hg-app-content .card label + p,
.hg-app-content .card label + span {
  display: block;
  margin-top: 4px !important;
  color: #f3f7ff !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
}

.hg-app-content .bg-secondary.rounded .form-control-plaintext,
.hg-app-content .card .form-control-plaintext {
  padding-top: 6px !important;
  color: #f3f7ff !important;
  line-height: 1.45 !important;
}

/* Final customer detail accordion normalization.
   This intentionally wins over all older .des_ styles from individual views. */
.hg-service-details {
  display: block !important;
  width: 100% !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
}

.hg-service-details > h4,
.hg-service-details > h5,
.hg-service-details > h6 {
  display: none !important;
}

.hg-service-details .accordion,
.hg-service-details .accordion-item,
.hg-service-details .accordion-header,
.hg-service-details .accordion-collapse {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.hg-service-details h5 {
  margin: 0 !important;
}

.hg-service-details .hg-description-toggle,
.hg-service-details .accordion-button,
.hg-service-details .accordison-button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 13px 16px !important;
  border-radius: 14px !important;
  color: #f4f7ff !important;
  background: linear-gradient(180deg, rgba(255, 128, 0, 0.105), rgba(255, 128, 0, 0.065)) !important;
  border: 1px solid rgba(255, 128, 0, 0.22) !important;
  box-shadow: none !important;
  text-decoration: none !important;
  overflow: hidden;
}

.hg-service-details .hg-description-toggle::after,
.hg-service-details .accordion-button::after,
.hg-service-details .accordison-button::after {
  display: none !important;
}

.hg-service-details .hg-toggle-title {
  flex: 0 0 auto;
  color: #f4f7ff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.hg-service-details .hg-toggle-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffd19b;
  background: rgba(255, 128, 0, 0.14);
  border: 1px solid rgba(255, 128, 0, 0.22);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.hg-service-details .hg-toggle-arrow {
  margin-left: auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffb45a;
  font-size: 30px;
  line-height: 1;
  transition: transform .16s ease;
}

.hg-service-details .hg-description-toggle[aria-expanded="true"] .hg-toggle-arrow,
.hg-service-details .accordion-button[aria-expanded="true"] .hg-toggle-arrow,
.hg-service-details .accordison-button[aria-expanded="true"] .hg-toggle-arrow {
  transform: rotate(90deg);
}

.hg-service-details .hg-details-body,
.hg-service-details .accordion-body {
  width: 100% !important;
  min-width: 0 !important;
  margin: 10px 0 0 !important;
  padding: 16px 18px !important;
  border-radius: 14px !important;
  color: #dbe4f3 !important;
  background: rgba(7, 11, 31, 0.74) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

.hg-service-details .hg-detail-copy,
.hg-service-details .hero-description {
  display: block !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: #cbd5e1 !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}

.hg-service-details .hg-price-line {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 8px 0 12px !important;
  padding: 9px 12px !important;
  border-radius: 12px !important;
  color: #f6f8ff !important;
  background: rgba(255, 255, 255, 0.048) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

.hg-service-details .hg-price-line::before {
  content: "Prezzo";
  color: #ffb45a;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.hg-service-details .strick,
.hg-service-details s,
.hg-service-details del {
  color: #ff7b7b !important;
  opacity: .88;
}

.hg-service-details .hg-discount-row {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start !important;
  gap: 8px !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  color: #dbe4f3 !important;
  background: transparent !important;
  border: 0 !important;
}

.hg-service-details .hg-discount-label,
.hg-service-details .hg-discount-row h5,
.hg-service-details .hg-discount-row h6 {
  min-height: 34px !important;
  margin: 0 !important;
  padding: 8px 11px !important;
  display: inline-flex !important;
  align-items: center;
  border-radius: 999px !important;
  color: #ffd19b !important;
  background: rgba(255, 128, 0, 0.12) !important;
  border: 1px solid rgba(255, 128, 0, 0.23) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
}

.hg-service-details .hg-discount-items,
.hg-service-details .hg-discount-row p {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px !important;
  color: #dbe4f3 !important;
  background: transparent !important;
  border: 0 !important;
}

.hg-service-details .hg-discount-item,
.hg-service-details .hg-discount-items > span,
.hg-service-details .hg-discount-row p {
  min-height: 34px;
  padding: 8px 11px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  color: #dbe4f3 !important;
  background: rgba(255, 255, 255, 0.048) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  line-height: 1.35 !important;
  font-size: 13px !important;
}

.hg-service-details .hg-discount-row span[style*="orange"],
.hg-service-details .hg-discount-item span[style*="orange"],
.hg-service-details .hg-discount-row p span[style*="orange"] {
  min-height: 0 !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  color: #ffd19b !important;
  background: rgba(255, 128, 0, 0.13) !important;
  border: 1px solid rgba(255, 128, 0, 0.2) !important;
  font-weight: 900;
}

.hg-service-details + .row,
.hg-description-panel > .row {
  margin-top: 14px !important;
}

@media (max-width: 767.98px) {
  .hg-service-details .hg-description-toggle,
  .hg-service-details .accordion-button,
  .hg-service-details .accordison-button {
    flex-wrap: wrap;
    padding: 12px !important;
  }

  .hg-service-details .hg-toggle-title {
    font-size: 16px;
  }

  .hg-service-details .hg-toggle-arrow {
    margin-left: auto;
  }

  .hg-service-details .hg-details-body,
  .hg-service-details .accordion-body {
    padding: 13px !important;
  }

  .hg-service-details .hg-discount-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hg-service-details .hg-discount-label,
  .hg-service-details .hg-discount-row h5,
  .hg-service-details .hg-discount-row h6 {
    width: fit-content;
  }

  .hg-service-details .hg-discount-item,
  .hg-service-details .hg-discount-row p {
    width: 100%;
    border-radius: 12px !important;
  }
}

/* Sidebar dropdown state: visible arrow plus open/highlighted active branch. */
.hg-sidebar-menu .dropdown-toggle::after {
  content: "\f107" !important;
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  border: 0 !important;
  width: 22px !important;
  height: 22px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: #ffb45a !important;
  opacity: .9;
  background: rgba(255, 128, 0, 0.08);
  border-radius: 8px;
}

.hg-sidebar-menu .dropdown-toggle.active::after,
.hg-sidebar-menu .dropdown-toggle[aria-expanded=true]::after {
  color: #fff !important;
  background: rgba(255, 128, 0, 0.18);
}

.hg-sidebar-menu .nav-item.dropdown.hg-open > .dropdown-menu {
  display: block !important;
}

.hg-sidebar-menu .nav-item.dropdown.hg-open > .dropdown-toggle,
.hg-sidebar-menu .nav-item.dropdown:has(.dropdown-item.active) > .dropdown-toggle {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(255, 128, 0, 0.28) !important;
}

.hg-sidebar-menu .dropdown-item.active,
.hg-sidebar-menu .dropdown-item.hg-current {
  color: #fff !important;
  background: rgba(255, 128, 0, 0.14) !important;
  box-shadow: inset 2px 0 0 #ff8a12;
}

/* Premium customer description and pricing panel. */
.hg-description-screen > .bg-secondary,
.hg-description-screen .hg-description-panel,
.hg-order-card {
  padding: 16px !important;
}

.des_ {
  gap: 0 !important;
  margin-bottom: 14px !important;
}

.des_ .accordion,
.des_ .accordion-item,
.des_ .accordion-header,
.des_ h5 {
  width: 100% !important;
  margin: 0 !important;
}

.des_ .hg-description-toggle,
.des_ .accordison-button,
.des_ .accordion-button {
  width: 100% !important;
  min-height: 54px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 10px !important;
  padding: 14px 16px 14px 18px !important;
  border-radius: 14px !important;
  background: rgba(255, 128, 0, 0.10) !important;
  border: 1px solid rgba(255, 128, 0, 0.22) !important;
  color: #f4f7ff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.des_ .hg-description-toggle::after,
.des_ .accordison-button::after,
.des_ .accordion-button::after {
  grid-column: 3;
  justify-self: end;
  color: #ffb45a !important;
  margin: 0 !important;
}

.des_ .hg-description-toggle .discount,
.des_ .accordison-button .discount,
.des_ .accordion-button .discount {
  grid-column: 2;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 5px 10px !important;
  min-height: 28px !important;
  border-radius: 10px !important;
  background: rgba(255, 128, 0, 0.14) !important;
  border: 1px solid rgba(255, 128, 0, 0.22) !important;
  color: #ffd19b !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

.des_ .accordion-collapse {
  width: 100% !important;
}

.des_ .accordion-body {
  width: 100% !important;
  min-width: 0 !important;
  margin-top: 12px !important;
  padding: 18px 20px !important;
  border-radius: 14px !important;
  background: rgba(7, 11, 31, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

.des_ .accordion-body > p:first-child,
.des_ .hero-description {
  margin-bottom: 10px !important;
  color: #cbd5e1 !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}

.des_ .hg-price-line,
.des_ .accordion-body p:has(.strick),
.des_ .accordion-body p:has(s),
.des_ .accordion-body p:has(del) {
  display: inline-flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: auto;
  margin: 8px 0 14px !important;
  padding: 9px 12px !important;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f6f8ff !important;
  font-weight: 800;
}

.des_ .hg-price-line::before,
.des_ .accordion-body p:has(.strick)::before,
.des_ .accordion-body p:has(s)::before,
.des_ .accordion-body p:has(del)::before {
  content: "Prezzo";
  color: #ffb45a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.des_ .hg-discount-row,
.des_ .accordion-body .discount {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap;
  gap: 8px !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.des_ .hg-discount-row h5,
.des_ .accordion-body .discount h5 {
  min-height: 34px;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  color: #ffd19b !important;
  background: rgba(255, 128, 0, 0.12) !important;
  border: 1px solid rgba(255, 128, 0, 0.24) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.des_ .hg-discount-row p,
.des_ .accordion-body .discount p {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #d9e2f1 !important;
  line-height: 1.45 !important;
}

.des_ .accordion-body span[style*="orange"] {
  min-height: 30px;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  background: rgba(255, 128, 0, 0.14) !important;
  border: 1px solid rgba(255, 128, 0, 0.22) !important;
  color: #ffd19b !important;
  font-weight: 900;
}

.hg-order-card .row {
  gap: 12px 0;
}

.hg-order-card .form-control,
.hg-order-card .form-select,
.hg-order-card select {
  min-width: min(100%, 220px);
}

@media (max-width: 767.98px) {
  .des_ .hg-description-toggle,
  .des_ .accordison-button,
  .des_ .accordion-button {
    grid-template-columns: minmax(0, 1fr) 22px;
  }

  .des_ .hg-description-toggle .discount,
  .des_ .accordison-button .discount,
  .des_ .accordion-button .discount {
    grid-column: 1 / -1;
    justify-content: flex-start;
    width: fit-content;
  }

  .des_ .accordion-body {
    padding: 14px !important;
  }

  .des_ .hg-discount-row p,
  .des_ .accordion-body .discount p {
    border-radius: 12px !important;
  }
}

.hg-stat-card {
  min-height: 112px;
  padding: 18px 22px !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075) !important;
}

.hg-stat-card i {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 128, 0, 0.12);
  font-size: 28px !important;
}

.hg-stat-card p {
  margin-bottom: 4px !important;
  color: #ffb45a !important;
  font-size: 14px;
}

.hg-stat-card h6 {
  color: #f3f6ff !important;
  font-size: 20px;
}

.hg-news-shell,
.hg-news-card,
.hg-news-inner {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.hg-news-shell {
  margin-top: 4px !important;
}

.hg-news-accordion {
  background: rgba(8, 12, 32, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.075) !important;
  border-radius: 16px !important;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.hg-news-accordion .accordion-item {
  border: 0 !important;
  background: transparent !important;
}

.hg-news-accordion .accordion-button {
  min-height: 54px;
  padding: 0 18px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.035) !important;
  color: #f1f5ff !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

.hg-news-body {
  padding: 18px !important;
  background: transparent !important;
  border: 0 !important;
}

.hg-news-article {
  margin: 0 0 18px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  align-items: stretch;
}

.hg-news-article:last-child {
  margin-bottom: 0 !important;
}

.hg-news-article > [class*="col"] {
  min-width: 0;
}

.hg-news-article img {
  height: auto !important;
  max-height: 360px;
  border-radius: 14px !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.hg-news-article .article-title {
  margin-bottom: 12px !important;
  color: #f4f7ff !important;
  font-size: clamp(20px, 1.6vw, 28px);
  line-height: 1.15;
}

.hg-news-article .article-content {
  color: #aeb8ca !important;
  line-height: 1.65;
}

.hg-order-card {
  padding: 18px !important;
}

.hg-order-head {
  margin-bottom: 14px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.hg-order-head > h4 {
  margin-right: 12px !important;
  color: #f5f7ff !important;
}

.hg-order-head .hg-order-guide {
  margin-left: 0 !important;
}

.hg-order-head .accordison-button {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

.hg-order-head .accordison-button .discount {
  position: static !important;
  display: inline-flex !important;
  margin: 0 !important;
  padding: 4px 8px !important;
  min-height: 0;
  color: #ffd19b !important;
  background: rgba(255, 128, 0, 0.12) !important;
  border: 1px solid rgba(255, 128, 0, 0.18) !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}

.hg-order-card .form-control,
.hg-order-card .form-select {
  max-width: 240px;
}

@media (max-width: 767.98px) {
  .hg-topbar .navbar-nav {
    gap: 4px;
  }

  .hg-news-body {
    padding: 12px !important;
  }

  .hg-news-article {
    gap: 12px;
  }

  .hg-order-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
  }

  .hg-order-card .form-control,
  .hg-order-card .form-select {
    max-width: 100%;
  }
}

/* Refinement layer: motion, alignment, and premium interaction polish. */
:root {
  --hg-content-max: 1580px;
  --hg-ease: cubic-bezier(.2, .8, .2, 1);
  --hg-focus: 0 0 0 3px rgba(255, 128, 0, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hg-app-content > .container-fluid {
  max-width: var(--hg-content-max);
  margin-left: auto;
  margin-right: auto;
}

.hg-app-content > .container-fluid:first-of-type {
  padding-top: 18px !important;
}

.hg-app-sidebar,
.hg-app-content,
.hg-topbar,
.card,
.bg-secondary.rounded,
.table-responsive,
.form-control,
.form-select,
.btn,
.accordion-button,
.accordison-button,
.dropdown-menu {
  transition:
    background-color .22s var(--hg-ease),
    border-color .22s var(--hg-ease),
    box-shadow .22s var(--hg-ease),
    transform .22s var(--hg-ease),
    color .22s var(--hg-ease);
}

.hg-app-content h1,
.hg-app-content h2,
.hg-app-content h3,
.hg-app-content h4,
.hg-app-content h5 {
  font-weight: 800;
}

.hg-app-content h2,
.hg-app-content h3 {
  margin-bottom: 14px;
}

.hg-app-content .text-center.mb-5 {
  margin-bottom: 22px !important;
}

.hg-sidebar-menu .nav-link {
  overflow: hidden;
}

.hg-sidebar-menu .nav-link::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px 0;
  width: 2px;
  border-radius: 99px;
  background: transparent;
}

.hg-sidebar-menu .nav-link.active::before,
.hg-sidebar-menu .nav-link:hover::before {
  background: #ff8a12;
}

.hg-sidebar-menu .nav-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 128, 0, 0.12), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s var(--hg-ease);
}

.hg-sidebar-menu .nav-link.active::after,
.hg-sidebar-menu .nav-link:hover::after {
  opacity: 1;
}

.hg-sidebar-menu .nav-link > * {
  position: relative;
  z-index: 1;
}

.hg-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
}

.hg-topbar .nav-item > .nav-link:hover,
.hg-topbar .custom_switcher:hover,
.sidebar-toggler:hover {
  background: rgba(255, 255, 255, 0.075) !important;
  border-color: rgba(255, 128, 0, 0.28) !important;
  transform: translateY(-1px);
}

.hg-topbar .nav-item > .nav-link:focus,
.hg-topbar .custom_switcher:focus,
.sidebar-toggler:focus,
.form-control:focus,
.form-select:focus,
.btn:focus {
  box-shadow: var(--hg-focus) !important;
}

.hg-stat-card,
.service-card,
.wallet-payment-card,
.pricing_block,
.comments-form-card,
.info-card,
.article-container,
.bg-secondary.rounded,
.card {
  position: relative;
}

.hg-stat-card::before,
.service-card::before,
.wallet-payment-card::before,
.pricing_block::before,
.comments-form-card::before,
.info-card::before,
.bg-secondary.rounded::before,
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 36%);
  opacity: .38;
}

.hg-stat-card:hover,
.service-card:hover,
.wallet-payment-card:hover,
.pricing_block:hover,
.comments-form-card:hover,
.info-card:hover,
.bg-secondary.rounded:hover,
.card:hover {
  border-color: rgba(255, 128, 0, 0.18) !important;
  transform: translateY(-1px);
}

.hg-stat-card > *,
.service-card > *,
.wallet-payment-card > *,
.pricing_block > *,
.comments-form-card > *,
.info-card > *,
.bg-secondary.rounded > *,
.card > * {
  position: relative;
  z-index: 1;
}

.hg-news-accordion,
.hg-order-card,
.table-responsive,
.content .dataTables_wrapper {
  backdrop-filter: blur(14px);
}

.hg-news-article {
  padding: 14px !important;
  border-radius: 14px;
}

.hg-news-article:hover {
  background: rgba(255, 255, 255, 0.025) !important;
}

.hg-news-article img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-content a,
.hg-news-article a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #ffd19b !important;
  font-weight: 700;
  text-decoration: none;
}

.article-content a:hover,
.hg-news-article a:hover {
  color: #fff !important;
}

.hg-order-card {
  overflow: visible;
}

.hg-order-card > .row,
.hg-order-card form .row,
.hg-order-card .row {
  align-items: end;
}

.hg-order-card label,
.hg-order-card .form-label {
  margin-bottom: 6px;
  font-size: 13px;
}

.hg-order-card .btn-primary {
  min-width: 150px;
}

.table-responsive table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.table-responsive thead th:first-child,
table.dataTable thead th:first-child {
  border-top-left-radius: 10px;
}

.table-responsive thead th:last-child,
table.dataTable thead th:last-child {
  border-top-right-radius: 10px;
}

.table-responsive tbody tr:last-child td:first-child,
table.dataTable tbody tr:last-child td:first-child {
  border-bottom-left-radius: 10px;
}

.table-responsive tbody tr:last-child td:last-child,
table.dataTable tbody tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}

.badge,
.rounded-pill,
.badge.bg-danger,
.badge.bg-primary,
.badge.bg-success,
.badge.bg-warning {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  font-weight: 800;
}

.bg-success {
  background-color: #22c55e !important;
}

.bg-danger {
  background-color: #ef4444 !important;
}

.bg-warning {
  background-color: #f59e0b !important;
}

.modal-backdrop.show {
  opacity: .72;
  backdrop-filter: blur(6px);
}

@media (prefers-reduced-motion: no-preference) {
  .hg-app-content > .container-fluid {
    animation: hgPageIn .34s var(--hg-ease) both;
  }

  .hg-stat-card,
  .hg-news-accordion,
  .hg-order-card,
  .content > .container-fluid > .bg-secondary.rounded,
  .content > .container-fluid > .card {
    animation: hgPanelIn .38s var(--hg-ease) both;
  }

  .hg-stat-card:nth-child(2),
  .content > .container-fluid:nth-of-type(2) {
    animation-delay: .04s;
  }

  .hg-stat-card:nth-child(3),
  .content > .container-fluid:nth-of-type(3) {
    animation-delay: .08s;
  }
}

@keyframes hgPageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hgPanelIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.995);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1199.98px) {
  :root {
    --hg-content-max: 100%;
  }
}

/* ============================================================
   PASS 2026-05-16: comprehensive design polish
   — fixes inline-style pollution, auth pages, wallet, pricing
   ============================================================ */

/* Safety guard: prevent in-page <style> blocks from forcing
   orange on all paragraphs. Specific overrides below win via
   higher specificity + !important where colour must differ.   */
.hg-app-content p,
.content p {
  color: var(--hg-text) !important;
}

/* Exceptions: notification text, muted descriptions, price lines */
.notifications-dropdown .noti-item p,
.notification-area .noti-item p {
  color: #aeb8ca !important;
}

.hg-app-content .article-description,
.content .article-description {
  color: var(--hg-muted) !important;
}

.hg-app-content .article-content,
.content .article-content {
  color: #aeb8ca !important;
}

/* ── Auth pages (signin / signup / forgot-password) ─────────── */
.hg-auth-page {
  min-height: 100vh;
}

.hg-auth-shell {
  background: transparent !important;
}

.hg-auth-row {
  padding: clamp(20px, 4vw, 48px) 0;
}

.hg-auth-col {
  display: flex;
  flex-direction: column;
}

.hg-auth-card {
  background: linear-gradient(150deg, rgba(10, 15, 42, 0.94) 0%, rgba(6, 10, 28, 0.9) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 24px !important;
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 44px) !important;
}

.hg-auth-brand {
  margin-bottom: 28px !important;
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.hg-auth-brand h3 {
  margin: 0 !important;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 900;
  color: #f4f7ff !important;
}

.hg-auth-brand img {
  height: 38px;
  width: auto;
}

.hg-auth-page .form-floating > label {
  color: rgba(180, 195, 220, 0.78) !important;
}

.hg-auth-page .form-control {
  min-height: 54px;
  background: rgba(8, 12, 34, 0.76) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.hg-auth-page .form-control:focus {
  background: rgba(10, 15, 42, 0.92) !important;
  border-color: rgba(255, 128, 0, 0.56) !important;
}

.hg-auth-page .btn-primary {
  min-height: 52px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .02em;
}

.hg-auth-page p.text-center {
  color: var(--hg-muted) !important;
  font-size: 14px;
}

.hg-auth-page .alert-danger {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #fca5a5 !important;
}

/* Language switcher on auth pages */
.hg-auth-lang {
  background-color: rgba(12, 18, 46, 0.94) !important;
  color: #f4f7ff !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  border-radius: 12px !important;
  padding: 6px 28px 6px 12px !important;
}

/* ── Dashboard stat cards ────────────────────────────────────── */
.hg-stat-card {
  min-height: 120px;
  background:
    linear-gradient(135deg, rgba(255, 128, 0, 0.07), transparent 60%),
    linear-gradient(180deg, rgba(14, 18, 44, 0.88), rgba(8, 12, 32, 0.82)) !important;
  border-color: rgba(255, 128, 0, 0.14) !important;
}

.hg-stat-card p {
  margin-bottom: 6px !important;
  font-size: 12px !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #ffb45a !important;
}

.hg-stat-card h6 {
  font-size: clamp(22px, 2vw, 28px) !important;
  font-weight: 900;
  color: #f3f6ff !important;
  letter-spacing: -.01em;
}

.hg-stat-card i {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 26px !important;
  background: rgba(255, 128, 0, 0.14);
  border: 1px solid rgba(255, 128, 0, 0.2);
  box-shadow: 0 8px 20px rgba(255, 128, 0, 0.14);
}

/* ── Dashboard pricing cards ─────────────────────────────────── */
.hg-app-content .container-fluid .card.text-center {
  background:
    linear-gradient(150deg, rgba(12, 16, 40, 0.9), rgba(8, 10, 28, 0.86)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: border-color .2s ease, box-shadow .2s ease, transform .22s ease;
}

.hg-app-content .container-fluid .card.text-center:hover {
  border-color: rgba(255, 128, 0, 0.22) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(255, 128, 0, 0.12) inset !important;
  transform: translateY(-3px);
}

.hg-app-content .card.text-center .card-body p {
  color: var(--hg-text) !important;
  font-size: 15px !important;
  line-height: 1.55;
}

.hg-app-content .card.text-center .card-body h5 {
  color: #e8eeff !important;
  font-weight: 800;
  margin-bottom: 12px;
  font-size: 16px;
}

.hg-app-content .card.text-center .card-body .fas,
.hg-app-content .card.text-center .card-body .fab,
.hg-app-content .card.text-center .card-body .fa {
  color: #ffb45a !important;
  filter: drop-shadow(0 4px 12px rgba(255, 128, 0, 0.32));
}

/* ── Wallet page ─────────────────────────────────────────────── */
.hg-app-content #bank_payment,
.hg-app-content #card_payment,
.hg-app-content #crypto_payment,
.hg-app-content #stripe_payment {
  padding: 20px 0 0 !important;
}

.hg-app-content .bank_title {
  font-size: 12px !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #ffb45a !important;
}

.hg-app-content .bank_value {
  font-size: 15px !important;
  color: #f0f4ff !important;
}

.hg-app-content .copy-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  color: #7eb3f7 !important;
  padding: 4px 8px;
  cursor: pointer;
  transition: background .15s;
}

.hg-app-content .copy-btn:hover {
  background: rgba(56, 189, 248, 0.14) !important;
  color: #bfdbfe !important;
}

.hg-app-content .card_note {
  font-weight: 800;
  font-size: 13px;
  color: #ffb45a !important;
}

/* Payment method buttons row */
.hg-app-content .bg-secondary.text-centeer > .row:first-of-type .btn-primary,
.hg-app-content .bg-secondary > .row:first-of-type .btn-primary {
  width: 100%;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 16px !important;
  border-radius: 14px !important;
  font-size: 14px;
}

/* ── Table rows: zebra shimmer ───────────────────────────────── */
.hg-app-content .table tbody tr:nth-child(even) > *,
.hg-app-content table.dataTable tbody tr:nth-child(even) > * {
  background: rgba(255, 255, 255, 0.018) !important;
}

.hg-app-content .table tbody tr:hover > *,
.hg-app-content table.dataTable tbody tr:hover > * {
  background: rgba(255, 128, 0, 0.06) !important;
}

/* ── Global anchor colour in content ─────────────────────────── */
.hg-app-content a:not(.btn):not(.nav-link):not(.dropdown-item):not(.dropdown-toggle) {
  color: #ffb45a !important;
  text-decoration: none;
}

.hg-app-content a:not(.btn):not(.nav-link):not(.dropdown-item):not(.dropdown-toggle):hover {
  color: #fff !important;
}

/* ── Alert strip at top of page ─────────────────────────────── */
.hg-app-content > .alert,
.hg-app-content > .hg-topbar ~ .alert {
  margin: 0 !important;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  padding: 10px 20px !important;
  font-size: 14px;
  font-weight: 700;
}

/* ── Back-to-top button ─────────────────────────────────────── */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 28px;
  width: 44px;
  height: 44px;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #ff9a1f, #ff7900) !important;
  border: 0 !important;
  box-shadow: 0 8px 20px rgba(255, 128, 0, 0.32);
  z-index: 999;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 128, 0, 0.42) !important;
}

/* ── Inline page-level h3 colour fix ─────────────────────────── */
.hg-app-content h3,
.content h3 {
  color: #f0f4ff !important;
}

/* ── Fix spinner – must always be dark overlay ────────────────── */
#spinner {
  background: rgba(5, 9, 26, 0.94) !important;
}

/* ── Footer ─────────────────────────────────────────────────── */
.hg-app-content > .container-fluid:last-of-type .bg-secondary.rounded-top {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 0 !important;
  margin-top: 8px;
  padding: 16px 20px !important;
  color: var(--hg-muted) !important;
  font-size: 13px;
}

/* ── Snackbar ────────────────────────────────────────────────── */
#snackbar {
  background: rgba(20, 26, 52, 0.98) !important;
  border: 1px solid rgba(255, 128, 0, 0.28);
  border-radius: 14px !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
  color: #f4f7ff;
  font-weight: 700;
}

/* ── hg-table expand button ──────────────────────────────────── */
.hg-table-expand-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 128, 0, 0.1);
  border: 1px solid rgba(255, 128, 0, 0.2);
  color: #ffb45a;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}

.hg-table-expand-btn:hover,
.hg-table-row-open .hg-table-expand-btn {
  background: rgba(255, 128, 0, 0.22);
  border-color: rgba(255, 128, 0, 0.42);
  color: #fff;
}

.hg-table-detail-row > td {
  padding: 0 14px 14px !important;
  background: transparent !important;
  border: 0 !important;
}

.hg-table-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  padding: 14px;
  background: rgba(6, 10, 26, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.hg-table-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hg-table-detail-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--hg-muted) !important;
}

.hg-table-detail-value {
  font-size: 14px;
  color: #f0f4ff !important;
  word-break: break-word;
}

.hg-table-hidden-cell {
  display: none !important;
}

.hg-table-hidden-head {
  display: none !important;
}

/* ── Section headings (h2 "Prezzi" etc.) ────────────────────── */
.hg-app-content .text-center.mb-5 h2,
.hg-app-content h2.text-center {
  position: relative;
  display: inline-block;
  color: #f0f5ff !important;
  padding-bottom: 10px;
}

.hg-app-content .text-center.mb-5 h2::after,
.hg-app-content h2.text-center::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff8000, #ffb347);
}

/* ── Discount modal ──────────────────────────────────────────── */
#discountModal .modal-content {
  background: linear-gradient(150deg, rgba(10, 15, 42, 0.97), rgba(6, 10, 28, 0.96)) !important;
  border-color: rgba(255, 128, 0, 0.3) !important;
}

#discountModal .btn-orange {
  background: linear-gradient(180deg, #ff9a1f, #ff7900) !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 800;
}

/* ── Profile / form pages ────────────────────────────────────── */
.hg-app-content .profile-section,
.hg-app-content .form-section {
  margin-bottom: 20px;
}

/* Avatar / profile image in sidebar and topbar */
.sidebar .hg-sidebar-profile .rounded-circle,
.content .navbar img.rounded-circle {
  box-shadow: 0 0 0 2px rgba(255, 128, 0, 0.34), 0 4px 12px rgba(0, 0, 0, 0.28);
}

/* ── Mobile responsive extras ────────────────────────────────── */
@media (max-width: 767.98px) {
  .hg-auth-card {
    border-radius: 18px !important;
    padding: 22px 18px !important;
  }

  .hg-stat-card {
    min-height: 96px;
    padding: 14px 16px !important;
  }

  .hg-stat-card i {
    width: 46px;
    height: 46px;
    font-size: 22px !important;
  }

  .hg-stat-card h6 {
    font-size: 22px !important;
  }

  .hg-app-content .container-fluid .card.text-center .card-body {
    min-height: auto !important;
    padding: 16px !important;
  }

  .back-to-top {
    right: 12px;
    bottom: 16px;
  }
}

@media (max-width: 575.98px) {
  .hg-auth-row {
    padding: 12px 0;
  }

  .hg-auth-card {
    margin-left: 10px !important;
    margin-right: 10px !important;
  }
}

/* ============================================================
   PASS 2026-05-16b: per-view alignment, spacing & responsive
   ============================================================ */

/* ── Universal order-form card layout ───────────────────────── */
.hg-order-card .row,
.hg-app-content .bg-secondary.rounded .row {
  row-gap: 14px;
}

.hg-order-card label,
.hg-app-content .bg-secondary.rounded > label {
  display: block;
  margin-bottom: 6px !important;
  font-size: 13px !important;
  font-weight: 700;
  color: var(--hg-muted) !important;
  text-transform: uppercase;
  letter-spacing: .045em;
}

.hg-order-card .form-control,
.hg-order-card .form-select,
.hg-order-card select {
  max-width: none !important;
  width: 100% !important;
}

.hg-order-card .btn-primary {
  min-width: 0 !important;
}

/* Make every submit button inside an order form full-width on mobile */
@media (max-width: 575.98px) {
  .hg-order-card .btn-primary,
  .hg-order-card .btn {
    width: 100%;
  }
}

/* ── Alert / flash-message positioning ──────────────────────── */
.hg-app-content .alert {
  border-radius: 14px !important;
}

.hg-app-content .alert-success {
  background: rgba(34, 197, 94, 0.12) !important;
  border-color: rgba(34, 197, 94, 0.28) !important;
  color: #86efac !important;
}

.hg-app-content .alert-danger {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.28) !important;
  color: #fca5a5 !important;
}

.hg-app-content .alert-info {
  background: rgba(56, 189, 248, 0.1) !important;
  border-color: rgba(56, 189, 248, 0.26) !important;
  color: #7dd3fc !important;
}

/* ── Profile page ────────────────────────────────────────────── */
#profile-preview {
  width: 150px !important;
  height: 150px !important;
  display: block !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 3px solid rgba(255, 128, 0, 0.52) !important;
  box-shadow: 0 0 0 5px rgba(255, 128, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.32) !important;
  transition: border-color .2s ease, box-shadow .2s ease;
}

#profile-preview:hover {
  border-color: rgba(255, 128, 0, 0.76) !important;
  box-shadow: 0 0 0 6px rgba(255, 128, 0, 0.18), 0 10px 28px rgba(0, 0, 0, 0.36) !important;
}

/* Zeero / custom modal — keep dark, drop purple */
#zeeroModal {
  background-color: rgba(5, 9, 26, 0.88) !important;
}

.xmodal-content {
  background: linear-gradient(150deg, rgba(10, 15, 42, 0.97), rgba(6, 10, 28, 0.96)) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.44) !important;
}

/* Bonus message — keep accent but modernize */
.bonus-message {
  background: linear-gradient(135deg, rgba(10, 15, 42, 0.88), rgba(255, 128, 0, 0.08)) !important;
  border: 1px solid rgba(255, 128, 0, 0.32) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22) !important;
  width: min(88%, 560px) !important;
}

.bonus-message h1 {
  color: #ffb45a !important;
  font-size: clamp(28px, 4vw, 46px) !important;
}

.bonus-message p {
  color: #d8deea !important;
  font-size: clamp(16px, 2vw, 22px) !important;
}

/* ── Wallet: payment method selector ────────────────────────── */
.hg-app-content .bg-secondary.rounded .row.mt-2 > [class*="col"] > .btn-primary,
.hg-app-content .bg-secondary > .row > [class*="col"] > .btn-primary {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  padding: 13px 18px !important;
  border-radius: 14px !important;
  background: rgba(255, 128, 0, 0.09) !important;
  border: 1px solid rgba(255, 128, 0, 0.22) !important;
  color: #f4f7ff !important;
  box-shadow: none;
  font-size: 14px;
}

.hg-app-content .bg-secondary.rounded .row.mt-2 > [class*="col"] > .btn-primary:hover,
.hg-app-content .bg-secondary > .row > [class*="col"] > .btn-primary:hover {
  background: rgba(255, 128, 0, 0.18) !important;
  border-color: rgba(255, 128, 0, 0.42) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 128, 0, 0.14) !important;
}

.hg-app-content #bank_payment p,
.hg-app-content #bank_payment span:not(.bank_title):not(.bank_value):not(.card_note) {
  color: var(--hg-text) !important;
  font-size: 15px;
  line-height: 1.65;
}

/* ── Slots page ──────────────────────────────────────────────── */
.hg-slots-page .hg-order-card {
  padding: 20px !important;
}

/* ── Comments / reactions form ───────────────────────────────── */
.hg-app-content .bg-secondary.rounded .tox-tinymce,
.hg-app-content .tox-tinymce {
  border-radius: 14px !important;
  overflow: hidden;
  margin-top: 12px;
}

.hg-app-content .reply-container {
  margin-left: 24px;
  padding-left: 14px;
  border-left: 2px solid rgba(255, 128, 0, 0.22);
}

/* ── Accordion header in order pages ────────────────────────── */
.hg-app-content .bg-secondary.rounded .accordion-button {
  font-weight: 800;
}

/* ── Table wrapper: ensure no white leaks through ───────────── */
.hg-app-content .table-responsive {
  background: rgba(6, 10, 28, 0.38) !important;
  border-radius: 14px !important;
  overflow: hidden;
}

/* ── .d-flex sections (stat bar, breadcrumbs, etc.) ──────────── */
.hg-app-content .d-flex.align-items-center.justify-content-between.mb-4 h6 {
  color: #e8eeff !important;
  font-size: 17px;
  font-weight: 800;
}

/* ── DataTable control row ───────────────────────────────────── */
.dataTables_wrapper .dataTables_filter input {
  border-radius: 10px !important;
  min-height: 38px;
}

.dataTables_wrapper .dataTables_length select {
  border-radius: 10px !important;
  min-height: 38px;
  background-color: rgba(7, 11, 31, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f0f4ff !important;
}

/* ── Responsive row gutter ───────────────────────────────────── */
@media (max-width: 767.98px) {
  .hg-app-content .row {
    --bs-gutter-x: 14px;
    --bs-gutter-y: 14px;
  }

  .hg-app-content .container-fluid {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .bonus-message {
    width: 96% !important;
    padding: 18px !important;
  }

  .hg-app-content .d-flex.align-items-center.justify-content-between.mb-4 {
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .hg-app-content .bg-secondary.rounded {
    padding: 14px !important;
  }

  .hg-order-card {
    padding: 14px !important;
  }

  .hg-stat-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px;
  }
}

/* ── Nav tabs used on some pages ─────────────────────────────── */
.hg-app-content .nav-tabs {
  border-color: rgba(255, 255, 255, 0.1) !important;
  gap: 4px;
}

.hg-app-content .nav-tabs .nav-link {
  font-size: 20px !important;
  font-weight: 800;
  padding: 10px 18px !important;
  border-radius: 12px 12px 0 0 !important;
  border: 1px solid transparent !important;
  color: var(--hg-muted) !important;
  transition: color .18s, background .18s;
}

.hg-app-content .nav-tabs .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 128, 0, 0.1) !important;
}

.hg-app-content .nav-tabs .nav-link.active {
  background: rgba(255, 128, 0, 0.14) !important;
  border-color: rgba(255, 128, 0, 0.3) !important;
  border-bottom-color: transparent !important;
  color: #fff !important;
}

/* ── Appointments alert box ──────────────────────────────────── */
.alert-box {
  border: 1px solid rgba(255, 128, 0, 0.36) !important;
  border-radius: 14px !important;
  background: rgba(255, 128, 0, 0.06) !important;
  padding: 18px 20px !important;
}

.alert-box h5 {
  color: #ffb45a !important;
}

.close-btn {
  font-size: 32px !important;
  top: -10px !important;
  right: 12px !important;
  color: var(--hg-muted) !important;
  opacity: .7;
  transition: opacity .15s, color .15s;
}

.close-btn:hover {
  opacity: 1;
  color: #ff6b6b !important;
}

/* ── Wallet payment method active state ──────────────────────── */
.hg-payment-btn.hg-active {
  background: rgba(255, 128, 0, 0.18) !important;
  border-color: rgba(255, 128, 0, 0.45) !important;
  box-shadow: 0 8px 20px rgba(255, 128, 0, 0.18) !important;
  transform: translateY(-1px);
}

/* ── Blinking service notice ─────────────────────────────────── */
.blinking-service-notice {
  font-size: 14px !important;
  font-weight: 700;
}

/* ── Footer copyright ────────────────────────────────────────── */
.content > .container-fluid:last-child .bg-secondary {
  font-size: 13px;
  color: var(--hg-muted) !important;
}

.content > .container-fluid:last-child .bg-secondary a {
  color: #ffb45a !important;
  font-weight: 700;
}

/* ── Generic spacing normalization ──────────────────────────── */
.hg-app-content .container-fluid.pt-4 {
  padding-top: clamp(14px, 1.8vw, 22px) !important;
}

.hg-app-content .container-fluid + .container-fluid {
  padding-top: clamp(10px, 1.4vw, 18px) !important;
}

/* ── Inline reply section (comments) ─────────────────────────── */
.add-reply-btn {
  position: static !important;
  left: auto !important;
  top: auto !important;
  margin: 10px 0 !important;
}

/* ── Prevent images from breaking layout at small screens ────── */
.hg-app-content img {
  max-width: 100%;
  height: auto;
}

/* ── Fix tab content top padding on small screens ─────────────── */
@media (max-width: 575.98px) {
  .hg-app-content .nav-tabs .nav-link {
    font-size: 15px !important;
    padding: 8px 12px !important;
  }

  .hg-app-content .tab-content {
    padding-top: 16px !important;
  }
}

@media (max-width: 767.98px) {
  .hg-app-content > .container-fluid:first-of-type {
    padding-top: 12px !important;
  }

  .hg-stat-card {
    min-height: 96px;
  }

  .hg-topbar .nav-item > .nav-link,
  .hg-topbar .custom_switcher {
    min-height: 38px;
    padding: 7px 9px !important;
  }

  .hg-news-article {
    padding: 10px !important;
  }
}

/* Performance pass: keep the modern theme but avoid expensive repaint effects. */
:root {
  --hg-shadow-soft: 0 8px 22px rgba(0, 0, 0, 0.16);
  --hg-shadow-strong: 0 14px 34px rgba(0, 0, 0, 0.24);
}

html[data-bs-theme="blue-theme"] body,
body {
  background-attachment: scroll !important;
}

.sidebar,
.content > .navbar,
.hg-news-accordion,
.hg-order-card,
.table-responsive,
.content .dataTables_wrapper,
.content .navbar .dropdown-menu,
.dropdown-menu.bg-secondary,
.notification-area {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.card,
.bg-secondary.rounded,
.bg-secondary.rounded.p-4,
.bg-secondary.rounded.p-1,
.comments-form-card,
.info-card,
.service-card,
.wallet-payment-card,
.article-container,
.pricing_block,
.modal-content,
.hg-news-accordion,
.hg-stat-card {
  box-shadow: var(--hg-shadow-soft) !important;
}

.hg-app-sidebar {
  box-shadow: 8px 0 22px rgba(0, 0, 0, 0.2) !important;
}

.hg-news-article img,
.article-container img,
.card img {
  box-shadow: none !important;
}

.hg-stat-card:hover,
.service-card:hover,
.wallet-payment-card:hover,
.pricing_block:hover,
.comments-form-card:hover,
.info-card:hover,
.bg-secondary.rounded:hover,
.card:hover,
.hg-topbar .nav-item > .nav-link:hover,
.hg-topbar .custom_switcher:hover,
.sidebar-toggler:hover {
  transform: none !important;
}

.hg-stat-card::before,
.service-card::before,
.wallet-payment-card::before,
.pricing_block::before,
.comments-form-card::before,
.info-card::before,
.bg-secondary.rounded::before,
.card::before,
.hg-sidebar-menu .nav-link:not(.dropdown-toggle)::after,
.content > .navbar::after,
.sidebar::after {
  display: none !important;
}

.hg-app-sidebar,
.hg-app-content,
.hg-topbar,
.card,
.bg-secondary.rounded,
.table-responsive,
.form-control,
.form-select,
.btn,
.accordion-button,
.accordison-button,
.dropdown-menu {
  transition:
    background-color .12s ease,
    border-color .12s ease,
    color .12s ease !important;
}

.hg-app-content > .container-fluid,
.hg-stat-card,
.hg-news-accordion,
.hg-order-card,
.content > .container-fluid > .bg-secondary.rounded,
.content > .container-fluid > .card {
  animation: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  .hg-app-content > .container-fluid,
  .hg-stat-card,
  .hg-news-accordion,
  .hg-order-card,
  .content > .container-fluid > .bg-secondary.rounded,
  .content > .container-fluid > .card {
    animation: none !important;
  }
}

/* Auth pages: login, register and password recovery. */
body.hg-auth-page {
  min-height: 100vh;
  overflow-x: hidden;
  color: #f6f7fb;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 142, 24, .16), transparent 26rem),
    radial-gradient(circle at 80% 12%, rgba(45, 64, 188, .22), transparent 34rem),
    linear-gradient(135deg, #070b21 0%, #0b1028 46%, #120c28 100%) !important;
  background-attachment: scroll !important;
}

body.hg-auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent 78%);
  opacity: .42;
}

.hg-auth-page .hg-auth-lang {
  position: fixed !important;
  top: 22px !important;
  right: 24px !important;
  z-index: 100000 !important;
  width: 76px !important;
  min-height: 48px !important;
  padding: 0 34px 0 16px !important;
  color: #f8fafc !important;
  background-color: rgba(14, 19, 45, .94) !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .24) !important;
}

.hg-auth-page .hg-auth-lang:focus {
  border-color: rgba(255, 142, 24, .72) !important;
  box-shadow: 0 0 0 4px rgba(255, 142, 24, .14) !important;
}

.hg-auth-shell {
  min-height: 100vh;
  isolation: isolate;
}

.hg-auth-shell > .container-fluid {
  width: 100%;
}

.hg-auth-row {
  min-height: 100vh !important;
  padding: 86px 16px 34px;
}

.hg-auth-col {
  width: 100%;
  max-width: 470px;
}

.hg-auth-register .hg-auth-col {
  max-width: 790px;
}

.hg-auth-card {
  width: 100%;
  margin: 0 !important;
  padding: 34px !important;
  color: #f8fafc;
  background:
    linear-gradient(180deg, rgba(20, 26, 58, .96), rgba(8, 12, 33, .98)) !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 22px !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .42) !important;
}

.hg-auth-brand {
  gap: 18px;
  margin-bottom: 26px !important;
}

.hg-auth-brand a {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.hg-auth-brand img {
  width: 148px !important;
  max-width: 100%;
  height: auto;
}

.hg-auth-brand h3 {
  margin: 0;
  color: #fff;
  font-size: 26px;
  line-height: 1.12;
  font-weight: 800;
  text-align: right;
}

.hg-auth-card form {
  margin: 0;
}

.hg-auth-card .form-floating {
  margin-bottom: 16px !important;
}

.hg-auth-card .form-floating > .form-control,
.hg-auth-card .form-floating > .form-select,
.hg-auth-card .form-control,
.hg-auth-card .form-select {
  min-height: 58px;
  color: #f8fafc;
  background-color: rgba(5, 10, 29, .78) !important;
  border: 1px solid rgba(160, 174, 210, .22) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

.hg-auth-card .form-floating > .form-control {
  padding: 1.7rem 1rem .7rem !important;
}

.hg-auth-card .form-floating > label {
  height: auto;
  padding: .92rem 1rem 0 !important;
  color: #8f9ab7;
  line-height: 1.15;
}

.hg-auth-card .form-floating > .form-control:focus,
.hg-auth-card .form-floating > .form-select:focus,
.hg-auth-card .form-control:focus,
.hg-auth-card .form-select:focus {
  color: #fff;
  border-color: rgba(255, 142, 24, .82) !important;
  box-shadow: 0 0 0 4px rgba(255, 142, 24, .14) !important;
}

.hg-auth-card .btn-primary {
  min-height: 54px;
  border: 0 !important;
  border-radius: 14px !important;
  color: #fff !important;
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(135deg, #ff9a1b, #ff7900) !important;
  box-shadow: 0 14px 28px rgba(255, 123, 0, .24) !important;
}

.hg-auth-card .btn-primary:hover,
.hg-auth-card .btn-primary:focus,
.hg-auth-card .btn-primary:active {
  background: linear-gradient(135deg, #ffad3e, #ff850c) !important;
}

.hg-auth-card a {
  color: #ffad3e !important;
  font-weight: 700;
  text-decoration: none;
}

.hg-auth-card a:hover {
  color: #ffd39a !important;
}

.hg-auth-card p,
.hg-auth-card .text-center,
.hg-auth-card .form-check-label {
  color: #b7bfd5 !important;
}

.hg-auth-card .alert {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
}

.hg-auth-card .custom-error,
.hg-auth-card .required_field {
  color: #ff6b6b !important;
  font-size: 13px;
  margin-top: 6px;
}

.hg-auth-register .hg-auth-card {
  padding: 30px !important;
}

.hg-auth-register #signupForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.hg-auth-register #signupForm .form-floating,
.hg-auth-register #signupForm .mb-3,
.hg-auth-register #signupForm .mb-4 {
  margin-bottom: 0 !important;
}

.hg-auth-register #signupForm > .alert,
.hg-auth-register #signupForm > button,
.hg-auth-register #signupForm > p,
.hg-auth-register #signupForm > .captcha-container,
.hg-auth-register #signupForm > .g-recaptcha,
.hg-auth-register #signupForm > .form-check,
.hg-auth-register #signupForm > .d-flex,
.hg-auth-register #signupForm > .row,
.hg-auth-register #signupForm > input[type="hidden"] {
  grid-column: 1 / -1;
}

.hg-auth-register #signupForm > .row {
  --bs-gutter-x: 12px;
  align-items: stretch;
  margin-left: 0;
  margin-right: 0;
}

.hg-auth-register #signupForm > .row > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

.hg-auth-register #signupForm > .row > .col-3 {
  width: 110px;
  flex: 0 0 110px;
}

.hg-auth-register #signupForm > .row > .col-9 {
  width: calc(100% - 122px);
  flex: 1 1 auto;
  padding-left: 12px;
}

.hg-auth-register .custom-dropdown {
  width: 100% !important;
  min-height: 58px;
  color: #f8fafc !important;
  background-color: rgba(5, 10, 29, .78) !important;
  border: 1px solid rgba(160, 174, 210, .22) !important;
  border-radius: 14px !important;
}

.hg-auth-register .selected-option,
.hg-auth-register .option {
  min-height: 56px;
  padding: 12px !important;
  color: #f8fafc !important;
  background-color: rgba(5, 10, 29, .98) !important;
}

.hg-auth-register .options {
  border-color: rgba(255, 255, 255, .12) !important;
  border-radius: 0 0 14px 14px;
  overflow: auto;
}

.hg-auth-register .option:hover {
  color: #fff !important;
  background-color: rgba(255, 142, 24, .18) !important;
}

.hg-auth-register .captcha-container {
  min-width: 0;
  overflow: hidden;
}

.hg-auth-register .g-recaptcha {
  max-width: 100%;
  transform-origin: left top;
}

.hg-auth-page .select2-container {
  width: 100% !important;
}

.hg-auth-page .select2-container--default .select2-selection--single {
  min-height: 58px;
  display: flex;
  align-items: center;
  color: #f8fafc;
  background-color: rgba(5, 10, 29, .78) !important;
  border: 1px solid rgba(160, 174, 210, .22) !important;
  border-radius: 14px !important;
}

.hg-auth-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #f8fafc;
  padding-left: 16px;
}

.hg-auth-page .select2-dropdown {
  color: #f8fafc;
  background: #0b1028;
  border-color: rgba(255, 255, 255, .12);
}

@media (max-width: 767.98px) {
  .hg-auth-page .hg-auth-lang {
    top: 14px !important;
    right: 14px !important;
    min-height: 42px !important;
    border-radius: 12px !important;
  }

  .hg-auth-row {
    padding: 74px 10px 22px;
  }

  .hg-auth-card,
  .hg-auth-register .hg-auth-card {
    padding: 22px !important;
    border-radius: 18px !important;
  }

  .hg-auth-brand {
    align-items: flex-start !important;
    margin-bottom: 22px !important;
  }

  .hg-auth-brand img {
    width: 132px !important;
  }

  .hg-auth-brand h3 {
    font-size: 22px;
  }

  .hg-auth-register #signupForm {
    grid-template-columns: 1fr;
  }

  .hg-auth-register #signupForm > .row > .col-3,
  .hg-auth-register #signupForm > .row > .col-9 {
    width: 100%;
    flex: 0 0 100%;
    padding-left: 0;
  }

  .hg-auth-register #signupForm > .row > .col-3 {
    margin-bottom: 12px;
  }

  .hg-auth-register .g-recaptcha {
    transform: scale(.88);
  }
}

@media (max-width: 380px) {
  .hg-auth-card,
  .hg-auth-register .hg-auth-card {
    padding: 18px !important;
  }

  .hg-auth-brand {
    display: block !important;
  }

  .hg-auth-brand h3 {
    margin-top: 14px;
    text-align: left;
  }

  .hg-auth-register .g-recaptcha {
    transform: scale(.78);
  }
}

/* Facebook/TikTok account purchase pages. */
.hg-account-order-page {
  padding-top: 18px !important;
}

.hg-account-order-page .hg-account-order-card {
  padding: 22px !important;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(13, 18, 44, .98), rgba(7, 11, 30, .98)) !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28) !important;
}

.hg-account-order-page .hg-service-details,
.hg-account-order-page .des_ {
  margin-bottom: 18px !important;
}

.hg-account-order-page .hg-service-details > h4,
.hg-account-order-page .des_ > h4 {
  display: block !important;
  margin: 0 0 14px !important;
  color: #f7f8ff !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

.hg-account-order-page .hg-service-details .accordion,
.hg-account-order-page .des_ .accordion {
  margin: 0 !important;
}

.hg-account-order-page .hg-service-details .hg-description-toggle,
.hg-account-order-page .hg-service-details .accordion-button,
.hg-account-order-page .hg-service-details .accordison-button,
.hg-account-order-page .des_ .hg-description-toggle,
.hg-account-order-page .des_ .accordion-button,
.hg-account-order-page .des_ .accordison-button {
  min-height: 58px !important;
  padding: 15px 18px !important;
  background: rgba(255, 142, 24, .08) !important;
  border-color: rgba(255, 142, 24, .36) !important;
  border-radius: 16px !important;
}

.hg-account-order-page .hg-service-details .hg-details-body,
.hg-account-order-page .hg-service-details .accordion-body,
.hg-account-order-page .des_ .hg-details-body,
.hg-account-order-page .des_ .accordion-body {
  margin-top: 10px !important;
  padding: 18px !important;
  background: rgba(6, 11, 31, .72) !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 16px !important;
}

.hg-account-order-page .hg-service-details .hg-details-body > p,
.hg-account-order-page .des_ .accordion-body > p {
  margin-bottom: 14px !important;
  color: #c6cce0 !important;
  line-height: 1.7 !important;
}

.hg-account-order-page .hg-service-details .hg-price-line,
.hg-account-order-page .des_ .hg-price-line {
  display: inline-flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: auto !important;
  margin: 8px 0 0 !important;
  padding: 10px 13px !important;
  color: #fff !important;
  background: rgba(255, 142, 24, .10) !important;
  border: 1px solid rgba(255, 142, 24, .28) !important;
  border-radius: 999px !important;
}

.hg-account-order-page .hg-service-details .hg-price-line::before,
.hg-account-order-page .des_ .hg-price-line::before {
  content: "Costo";
  margin: 0;
  color: #ffd39a;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hg-account-order-page .hg-service-details .hg-discount-row,
.hg-account-order-page .des_ .hg-discount-row,
.hg-account-order-page .des_ .accordion-body .discount {
  margin-top: 12px !important;
  padding: 12px !important;
  background: rgba(255, 142, 24, .08) !important;
  border: 1px solid rgba(255, 142, 24, .22) !important;
  border-radius: 16px !important;
}

.hg-account-order-page .hg-service-details .hg-discount-items,
.hg-account-order-page .des_ .hg-discount-items,
.hg-account-order-page .des_ .accordion-body .discount p {
  gap: 8px !important;
}

.hg-account-order-page .hg-service-details .hg-discount-item,
.hg-account-order-page .des_ .hg-discount-item {
  min-height: 34px;
  padding: 8px 11px !important;
  color: #f9d7aa !important;
  background: rgba(6, 11, 31, .72) !important;
  border-color: rgba(255, 142, 24, .22) !important;
}

.hg-account-purchase-form {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(180px, 240px) auto;
  align-items: end;
  gap: 14px 16px;
  margin: 16px 0 0 !important;
  padding: 16px !important;
  background: rgba(6, 11, 31, .58);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
}

.hg-account-purchase-form[hidden] {
  display: none !important;
}

.hg-account-purchase-form > .alert,
.hg-account-purchase-form > input[type="text"][hidden],
.hg-account-purchase-form > input[type="hidden"] {
  grid-column: 1 / -1;
}

.hg-account-purchase-form > .col-12 {
  width: auto;
  grid-column: auto;
  margin: 0 !important;
}

.hg-account-purchase-form > .col-12 span {
  color: #aeb7d0;
  font-size: 14px;
}

.hg-account-purchase-form #order_total {
  color: #fff !important;
  font-size: 22px;
  font-weight: 900;
}

.hg-account-purchase-form > label,
.hg-account-purchase-form .row label {
  margin: 0 0 7px !important;
  color: #9aa6c3 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.hg-account-purchase-form > .form-select,
.hg-account-purchase-form .form-select {
  width: 100% !important;
  min-width: 150px;
}

.hg-account-purchase-form > .btn,
.hg-account-purchase-form .btn-primary {
  width: auto;
  min-height: 50px;
  white-space: nowrap;
}

.hg-account-purchase-form > br {
  display: none !important;
}

.hg-account-purchase-form > .row {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0 !important;
  align-items: end;
  row-gap: 12px;
}

.hg-account-purchase-form > .row > [class*="col-"] {
  padding-left: 0;
  padding-right: 12px;
}

.hg-account-order-page .alert.alert-danger.text-center {
  margin-top: 14px !important;
  padding: 13px 16px !important;
  color: #ffd7d7 !important;
  background: rgba(239, 68, 68, .10) !important;
  border: 1px solid rgba(239, 68, 68, .26) !important;
  border-radius: 14px !important;
}

@media (max-width: 991.98px) {
  .hg-account-purchase-form {
    grid-template-columns: 1fr 180px;
  }

  .hg-account-purchase-form > .col-12 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .hg-account-order-page {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .hg-account-order-page .hg-account-order-card {
    padding: 16px !important;
    border-radius: 16px !important;
  }

  .hg-account-order-page .hg-service-details > h4,
  .hg-account-order-page .des_ > h4 {
    font-size: 21px !important;
  }

  .hg-account-order-page .hg-service-details .hg-description-toggle,
  .hg-account-order-page .hg-service-details .accordion-button,
  .hg-account-order-page .hg-service-details .accordison-button,
  .hg-account-order-page .des_ .hg-description-toggle,
  .hg-account-order-page .des_ .accordion-button,
  .hg-account-order-page .des_ .accordison-button {
    padding: 13px 14px !important;
  }

  .hg-account-order-page .hg-service-details .hg-details-body,
  .hg-account-order-page .hg-service-details .accordion-body,
  .hg-account-order-page .des_ .hg-details-body,
  .hg-account-order-page .des_ .accordion-body {
    padding: 14px !important;
  }

  .hg-account-purchase-form {
    grid-template-columns: 1fr;
    padding: 13px !important;
  }

  .hg-account-purchase-form > .btn,
  .hg-account-purchase-form .btn-primary {
    width: 100%;
  }

  .hg-account-purchase-form > .row > [class*="col-"] {
    width: 100%;
    padding-right: 0;
  }
}

/* Premium table system with expandable wide rows. */
.hg-table-shell,
.table-responsive,
.content .dataTables_wrapper {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  padding: 0 !important;
  background: rgba(7, 11, 30, .82) !important;
  border: 1px solid rgba(255, 255, 255, .09) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24) !important;
}

.content .dataTables_wrapper {
  padding: 18px !important;
}

.hg-smart-table,
.table,
table.dataTable {
  width: 100% !important;
  margin: 0 !important;
  color: #dce3f5 !important;
  background: transparent !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.hg-smart-table thead th,
.table thead th,
table.dataTable thead th {
  position: relative;
  padding: 14px 16px !important;
  color: #dfe6f7 !important;
  background: rgba(255, 255, 255, .055) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .11) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  text-transform: none;
  white-space: nowrap;
}

.hg-smart-table tbody td,
.table tbody td,
table.dataTable tbody td,
table.dataTable tbody th {
  padding: 14px 16px !important;
  color: #c4ccdf !important;
  background: rgba(6, 11, 31, .34) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .075) !important;
  line-height: 1.45 !important;
  vertical-align: middle !important;
}

.hg-smart-table tbody tr:hover td,
.table tbody tr:hover td,
table.dataTable tbody tr:hover td {
  color: #f8fafc !important;
  background: rgba(255, 142, 24, .055) !important;
}

.hg-smart-table td a,
.hg-smart-table td button,
.table td a,
.table td button {
  position: relative;
  z-index: 2;
}

.hg-smart-table .badge,
.table .badge {
  border-radius: 999px;
}

.hg-smart-table .hg-table-hidden-cell {
  display: none !important;
}

.hg-smart-table .hg-table-hidden-head {
  display: none !important;
}

.hg-table-expand-head,
.hg-table-expand-cell {
  padding-left: 12px !important;
}

.hg-table-expand-cell {
  white-space: nowrap;
}

.hg-table-expand-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  color: #fff;
  background: linear-gradient(135deg, #ff9a1b, #ff7900);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(255, 123, 0, .22);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
}

.hg-table-expand-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, .12);
  color: #ffb35c;
  box-shadow: none;
}

.hg-table-detail-row td {
  padding: 0 !important;
  background: rgba(4, 8, 24, .74) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
}

.hg-table-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.hg-table-detail-item {
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 12px;
}

.hg-table-detail-label {
  display: block;
  margin-bottom: 5px;
  color: #8f9bb7;
  font-size: 12px;
  font-weight: 800;
}

.hg-table-detail-value {
  min-width: 0;
  color: #eef3ff;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.hg-table-action-col {
  position: sticky !important;
  right: 0;
  z-index: 3;
  min-width: 116px;
  text-align: right !important;
  background: #0a102b !important;
  box-shadow: -12px 0 18px rgba(0, 0, 0, .18) !important;
}

thead .hg-table-action-col,
table.dataTable thead .hg-table-action-col {
  z-index: 5;
  background: #111735 !important;
}

.hg-smart-table .hg-table-action-col a,
.hg-smart-table .hg-table-action-col button,
.table .hg-table-action-col a,
.table .hg-table-action-col button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  margin: 2px;
  padding: 7px 10px;
  color: #fff !important;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 10px;
  text-decoration: none !important;
}

.hg-smart-table .hg-table-action-col a:hover,
.hg-smart-table .hg-table-action-col button:hover,
.table .hg-table-action-col a:hover,
.table .hg-table-action-col button:hover {
  background: rgba(255, 142, 24, .18);
  border-color: rgba(255, 142, 24, .36);
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  color: #aeb7cf !important;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  min-height: 42px;
  color: #f8fafc !important;
  background: rgba(6, 11, 31, .86) !important;
  border: 1px solid rgba(157, 170, 204, .24) !important;
  border-radius: 12px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  min-width: 38px;
  min-height: 38px;
  margin: 0 3px !important;
  padding: 8px 11px !important;
  color: #cbd5e1 !important;
  background: rgba(255, 255, 255, .055) !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 11px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #ff9a1b, #ff7900) !important;
  border-color: transparent !important;
}

@media (max-width: 991.98px) {
  .hg-table-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .content .dataTables_wrapper {
    padding: 12px !important;
  }

  .hg-smart-table thead th,
  .table thead th,
  table.dataTable thead th,
  .hg-smart-table tbody td,
  .table tbody td,
  table.dataTable tbody td,
  table.dataTable tbody th {
    padding: 12px 11px !important;
    font-size: 13px !important;
  }

  .hg-table-detail-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .hg-table-action-col {
    min-width: 92px;
  }
}

/* Customer Slots and Quality Slots. */
.hg-slots-page {
  padding-top: 18px !important;
}

.hg-slots-order-card,
.hg-slots-table-card,
.hg-slots-guide-card {
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(13, 18, 44, .98), rgba(7, 11, 30, .98)) !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .28) !important;
}

.hg-slots-order-card {
  padding: 22px !important;
}

.hg-quality-slots-page .hg-slots-order-card {
  border-color: rgba(255, 178, 69, .22) !important;
  background:
    linear-gradient(180deg, rgba(36, 25, 48, .98), rgba(8, 12, 31, .98)) !important;
}

.hg-slots-page .hg-order-head,
.hg-slots-page .hg-service-details {
  margin-bottom: 18px !important;
}

.hg-slots-page .hg-service-details > h4,
.hg-slots-page .des_ > h4 {
  display: block !important;
  margin: 0 0 14px !important;
  color: #fff !important;
  font-size: 26px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
}

.hg-slots-page .hg-service-details .hg-description-toggle,
.hg-slots-page .hg-service-details .accordion-button,
.hg-slots-page .hg-service-details .accordison-button {
  min-height: 58px !important;
  padding: 15px 18px !important;
  background: rgba(255, 142, 24, .08) !important;
  border: 1px solid rgba(255, 142, 24, .34) !important;
  border-radius: 16px !important;
}

.hg-slots-page .hg-service-details .hg-details-body,
.hg-slots-page .hg-service-details .accordion-body {
  max-height: min(58vh, 640px);
  overflow: auto;
  margin-top: 10px !important;
  padding: 18px !important;
  background: rgba(6, 11, 31, .72) !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 16px !important;
}

.hg-slots-page .hg-service-details .hg-details-body::-webkit-scrollbar {
  width: 8px;
}

.hg-slots-page .hg-service-details .hg-details-body::-webkit-scrollbar-thumb {
  background: rgba(255, 142, 24, .42);
  border-radius: 999px;
}

.hg-slots-page .hg-service-details b {
  display: inline-flex;
  margin: 6px 0 4px;
  color: #ffd39a !important;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hg-slots-page .hg-service-details .hg-price-line {
  display: inline-flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: auto !important;
  margin-top: 10px !important;
  padding: 10px 13px !important;
  color: #fff !important;
  background: rgba(255, 142, 24, .10) !important;
  border: 1px solid rgba(255, 142, 24, .28) !important;
  border-radius: 999px !important;
}

.hg-slots-page .hg-service-details .hg-price-line::before {
  content: "Prezzo";
  color: #ffd39a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hg-slots-page .hg-service-details .hg-discount-row {
  margin-top: 13px !important;
  padding: 12px !important;
  background: rgba(255, 142, 24, .08) !important;
  border: 1px solid rgba(255, 142, 24, .22) !important;
  border-radius: 16px !important;
}

.hg-slots-purchase-form {
  margin-top: 12px !important;
  padding: 16px !important;
  background: rgba(6, 11, 31, .60);
  border: 1px solid rgba(255, 255, 255, .085);
  border-radius: 18px;
}

.hg-slots-purchase-form > .row {
  align-items: end;
  row-gap: 14px;
}

.hg-slots-purchase-form .col-12.mb-2 {
  margin-bottom: 4px !important;
}

.hg-slots-purchase-form .col-12.mb-2 > span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 13px;
  color: #aeb7cf;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
}

.hg-slots-purchase-form #order_total {
  color: #fff !important;
  font-size: 24px;
  font-weight: 900;
}

.hg-slots-purchase-form label {
  margin-bottom: 7px !important;
  color: #9aa6c3 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.hg-slots-purchase-form .form-control,
.hg-slots-purchase-form .form-select {
  min-height: 52px;
  color: #f8fafc !important;
  background-color: rgba(6, 11, 31, .86) !important;
  border: 1px solid rgba(157, 170, 204, .24) !important;
  border-radius: 14px !important;
}

.hg-slots-purchase-form .btn-primary {
  min-height: 52px;
  padding-inline: 20px !important;
  border-radius: 14px !important;
  font-weight: 900 !important;
}

.hg-slots-table-card {
  padding: 22px !important;
}

.hg-slots-table-head {
  gap: 16px;
  flex-wrap: wrap;
}

.hg-slots-table-head h3 {
  color: #fff !important;
  font-size: 26px;
  font-weight: 900;
}

.hg-slots-table-head .btn-primary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px !important;
  white-space: normal;
  text-align: center;
}

.hg-slots-table-wrap {
  border-radius: 18px !important;
}

.hg-slots-table-wrap .copy-btn2 {
  max-width: 170px;
  justify-content: center;
  overflow: hidden;
  color: #f8fafc !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #050814 !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 12px !important;
}

.hg-slots-table-wrap .nickname-display {
  color: #ffb35c !important;
  font-weight: 900;
}

.hg-slots-table-wrap .edit-btn,
.hg-slots-table-wrap .save-btn {
  margin-left: 6px;
  color: #ffb35c !important;
  text-decoration: none;
}

.hg-slots-table-wrap .form-select {
  min-width: 128px;
  color: #f8fafc !important;
  background-color: rgba(6, 11, 31, .92) !important;
  border-color: rgba(157, 170, 204, .24) !important;
  border-radius: 12px !important;
}

.hg-slots-table-wrap .switch {
  width: 82px !important;
  height: 34px !important;
}

.hg-slots-table-wrap .slider {
  background: rgba(239, 68, 68, .92) !important;
}

.hg-slots-table-wrap input:checked + .slider {
  background: rgba(34, 197, 94, .92) !important;
}

.hg-slots-table-wrap .slider:before {
  width: 26px !important;
  height: 26px !important;
  border: 0 !important;
}

.hg-slots-table-wrap input:checked + .slider:before {
  transform: translateX(48px) !important;
}

.hg-slots-table-wrap .slider-text {
  font-size: 12px !important;
  font-weight: 900;
}

.hg-slots-guide-page {
  padding-bottom: 28px;
}

.hg-slots-guide-card {
  padding: 18px !important;
  text-align: left !important;
}

.hg-slots-guide-card > .col-sm-12,
.hg-slots-guide-card .bg-secondary.rounded {
  width: 100%;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.hg-slots-guide-card .accordion-button {
  min-height: 56px;
  color: #fff !important;
  background: rgba(255, 255, 255, .055) !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  border-radius: 16px !important;
}

.hg-slots-guide-card .accordion-body {
  padding: 14px 0 0 !important;
}

.hg-slots-guide-card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto !important;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: #050814;
}

#slotsTabBlockedOverlay .overlay-box {
  background:
    linear-gradient(180deg, rgba(20, 26, 58, .98), rgba(8, 12, 33, .98)) !important;
  border-color: rgba(255, 142, 24, .28) !important;
  border-radius: 20px !important;
}

@media (max-width: 767.98px) {
  .hg-slots-page {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .hg-slots-order-card,
  .hg-slots-table-card,
  .hg-slots-guide-card {
    padding: 16px !important;
    border-radius: 17px !important;
  }

  .hg-slots-page .hg-service-details > h4,
  .hg-slots-page .des_ > h4,
  .hg-slots-table-head h3 {
    font-size: 22px !important;
  }

  .hg-slots-page .hg-service-details .hg-details-body,
  .hg-slots-page .hg-service-details .accordion-body {
    max-height: 62vh;
    padding: 14px !important;
  }

  .hg-slots-purchase-form {
    padding: 13px !important;
  }

  .hg-slots-purchase-form .btn-primary,
  .hg-slots-table-head .btn-primary {
    width: 100%;
  }

  .hg-slots-table-head {
    align-items: stretch !important;
  }

  .hg-slots-table-wrap .copy-btn2 {
    max-width: 128px;
  }
}

/* Cleanup pass: keep description/discount sections readable and prevent giant price pills. */
.hg-service-details .accordion-body,
.des_ .accordion-body,
.hg-slots-page .hg-service-details .accordion-body {
  text-align: left !important;
}

.hg-service-details .accordion-body > p,
.des_ .accordion-body > p,
.hg-slots-page .hg-service-details .accordion-body > p {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  color: #cbd5e1 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  line-height: 1.72 !important;
  text-align: left !important;
}

.hg-service-details .accordion-body > p::before,
.des_ .accordion-body > p::before,
.hg-slots-page .hg-service-details .accordion-body > p::before {
  content: none !important;
  display: none !important;
}

.hg-service-details .accordion-body > p.hg-price-line,
.des_ .accordion-body > p.hg-price-line,
.hg-slots-page .hg-service-details .accordion-body > p.hg-price-line {
  display: inline-flex !important;
  width: auto !important;
  margin: 8px 0 14px !important;
  padding: 9px 12px !important;
  background: rgba(255, 255, 255, .055) !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  border-radius: 12px !important;
}

.hg-service-details .accordion-body > p.hg-price-line::before,
.des_ .accordion-body > p.hg-price-line::before,
.hg-slots-page .hg-service-details .accordion-body > p.hg-price-line::before {
  content: "Prezzo" !important;
  display: inline-flex !important;
  margin-right: 4px;
  color: #ffbd73;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hg-service-details .accordion-body b,
.des_ .accordion-body b,
.hg-slots-page .hg-service-details b {
  display: block !important;
  margin: 16px 0 8px !important;
  color: #ffbd73 !important;
}

.hg-service-details .hg-discount-row,
.des_ .hg-discount-row,
.des_ .accordion-body .discount,
.hg-slots-page .hg-service-details .hg-discount-row {
  display: flex !important;
  align-items: flex-start !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  padding: 12px !important;
  background: rgba(255, 142, 24, .07) !important;
  border: 1px solid rgba(255, 142, 24, .20) !important;
  border-radius: 14px !important;
}

.hg-slots-table-wrap .hg-table-collapsible .hg-table-hidden-cell,
.hg-slots-table-wrap .hg-table-collapsible .hg-table-hidden-head,
.hg-slots-table-wrap .hg-table-hidden-cell {
  display: table-cell !important;
}

.hg-slots-table-wrap .hg-table-expand-btn,
.hg-slots-table-wrap .hg-table-detail-row {
  display: none !important;
}

/* UGC creator list table. */
.creators-list-page {
  padding-top: 18px !important;
}

.creators-list-card {
  padding: 22px !important;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(13, 18, 44, .98), rgba(7, 11, 30, .98)) !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .28) !important;
}

.creators-list-card > .d-flex {
  gap: 14px;
  flex-wrap: wrap;
}

.creators-list-card > .btn,
.creators-list-card > a.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 16px auto !important;
  border-radius: 14px !important;
  font-weight: 900 !important;
}

.creators-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 18px !important;
}

.creators-table {
  min-width: 920px;
}

.creators-table .description-cell {
  max-width: 320px !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  color: #d4dbea !important;
}

.creators-table td:nth-child(3) {
  min-width: 180px;
  color: #f8fafc !important;
  font-weight: 800;
}

.creators-table td:nth-child(3) a,
.creators-table td:last-child a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 7px;
  padding: 7px 10px;
  color: #fff !important;
  background: rgba(255, 142, 24, .15);
  border: 1px solid rgba(255, 142, 24, .28);
  border-radius: 10px;
  text-decoration: none !important;
}

.creators-table td:last-child {
  text-align: right !important;
}

@media (max-width: 767.98px) {
  .creators-list-page {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .creators-list-card {
    padding: 16px !important;
    border-radius: 17px !important;
  }

  .creators-list-card > a.btn {
    width: 100%;
    margin-left: 0 !important;
  }
}

/* ============================================================
   PASS 2026-05-16c: modal, form, and standalone-page polish
   ============================================================ */

/* ── Bootstrap modal: override purple #351b66 from inline styles ── */
.modal-content {
  background: linear-gradient(150deg, rgba(10, 15, 42, 0.98), rgba(6, 10, 28, 0.97)) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 18px !important;
  color: var(--hg-text, #d8deea) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.44) !important;
}

.modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  padding: 18px 22px !important;
}

.modal-footer {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
  padding: 14px 22px !important;
}

.modal-title {
  color: #f0f4ff !important;
  font-weight: 800;
}

/* Close button inside modals */
.modal-header .btn-close,
.modal-header .close {
  color: #aeb8ca !important;
  opacity: .7;
  filter: invert(1) grayscale(1);
}

/* ── Standalone slots pages: fix bg-dark white override ─────── */
/* (slots_opened*.php have .bg-dark { background:white !important })
   Since compat CSS loads AFTER their inline <style> block,
   this !important wins and restores dark background.          */
.bg-dark {
  background: var(--hg-bg, rgba(3, 6, 22, 0.98)) !important;
  color: var(--hg-text, #d8deea) !important;
}

/* ── Form controls: fix white background in dark slots pages ─── */
/* slots_opened*.php have .form-control { background:white; color:black }
   Compat CSS loads last so our !important wins.               */
.form-control,
.form-select {
  background-color: rgba(7, 11, 31, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--hg-text, #d8deea) !important;
}

.form-control:focus,
.form-select:focus {
  background-color: rgba(10, 15, 42, 0.92) !important;
  border-color: rgba(255, 128, 0, 0.52) !important;
  box-shadow: 0 0 0 3px rgba(255, 128, 0, 0.14) !important;
  color: #f4f7ff !important;
}

.form-floating > label {
  color: rgba(175, 190, 220, 0.74) !important;
}

/* ── Select dropdowns: fix dark background in select elements ── */
select option {
  background-color: #0d1235;
  color: #d8deea;
}

/* ── Slots page: .black_row table rows modern style ─────────── */
/* The old purple border accent is replaced with a subtle dark border */
.black_row {
  border-color: rgba(255, 128, 0, 0.18) !important;
}

.black_row td {
  border-top-color: rgba(255, 128, 0, 0.16) !important;
  border-bottom-color: rgba(255, 128, 0, 0.16) !important;
  border-right-color: rgba(255, 255, 255, 0.06) !important;
}

/* ── Cards page: signature pad border ───────────────────────── */
#signature-pad {
  border-color: rgba(255, 255, 255, 0.18) !important;
  border-radius: 10px !important;
  background: rgba(7, 11, 31, 0.7) !important;
}

/* ── h3 headings: prevent orange from inline styles ─────────── */
/* Targeted: only inside the app content wrapper and modals     */
.modal-content h3,
.modal-content h4,
.modal-content h5 {
  color: #f0f4ff !important;
}

/* ── Wallet: bank transfer panel improvements ────────────────── */
#bank_payment h3 {
  color: var(--hg-orange, #ff8000) !important;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 18px !important;
}

#bank_payment .copy-btn {
  color: rgba(255, 128, 0, 0.72) !important;
  transition: color .15s;
}

#bank_payment .copy-btn:hover {
  color: #ff8000 !important;
}

/* ── Wallet payment content panels: spacing ─────────────────── */
#bank_payment,
#card_payment,
#stripe_payment,
#crypto_payment {
  margin-top: 28px !important;
  padding: 24px !important;
  background: rgba(6, 11, 40, 0.48) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 18px !important;
}

/* ── Campaign safepage: notes editor area ────────────────────── */
.note-editor,
.note-editable {
  background: rgba(7, 11, 31, 0.88) !important;
  color: var(--hg-text, #d8deea) !important;
}

.note-toolbar {
  background: rgba(10, 15, 42, 0.94) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ── Speekly / order pages: collapseOne fixed width on mobile ── */
@media (max-width: 830px) {
  .collapseOne__ {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ── Global: form-group / form-floating spacing ─────────────── */
.form-group {
  margin-bottom: 16px !important;
}

/* ── Speekly: radio-box product cards responsive ─────────────── */
@media (max-width: 600px) {
  .radio-box {
    width: calc(50% - 22px) !important;
    height: 160px !important;
    margin: 6px !important;
  }
}

@media (max-width: 380px) {
  .radio-box {
    width: 100% !important;
    height: 140px !important;
    margin: 6px 0 !important;
  }
}

/* ── Speekly: upload-box consistent sizing on mobile ─────────── */
@media (max-width: 600px) {
  .upload-box {
    width: calc(50% - 22px) !important;
    height: 160px !important;
  }
}

/* ── Responsive: prevent horizontal overflow on all pages ────── */
@media (max-width: 575.98px) {
  .modal-dialog {
    margin: 10px !important;
  }

  .modal-content {
    border-radius: 14px !important;
  }

  table.dataTable {
    font-size: 13px;
  }
}

/* ============================================================
   PASS 2026-05-16d: slots table, profile image, icon colors
   ============================================================ */

/* ── Slots table: match tiktok orders style (remove heavy borders) ─ */
/* Original .black_row has 8px/5px border-top/bottom and black cells.
   Fully flatten those so it renders like a standard Bootstrap dark table. */
.black_row {
  border: none !important;
  border-spacing: 0 !important;
  margin-top: 0 !important;
  padding: 0 !important;
}

.black_row td {
  background-color: transparent !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-bottom: none !important;
  border-right: none !important;
  padding: 10px 14px !important;
  vertical-align: middle !important;
}

.hg-slots-table-wrap table {
  border-collapse: collapse !important;
}

/* ── Icons inside primary (orange) buttons: always white ─────── */
.btn-primary .fas,
.btn-primary .fab,
.btn-primary .fa,
.btn-primary .far,
.btn-primary .fal,
.btn-primary i {
  color: #fff !important;
}

/* ── Slot toggle-off icon: soften the pure red ───────────────── */
.fa-toggle-off {
  color: rgba(248, 113, 113, 0.88) !important;
}

/* ── Notification trash icon: less aggressive red ────────────── */
.noti-item .delete-icon,
.delete-icon {
  color: rgba(248, 113, 113, 0.65) !important;
}
