:root {
  --wabiss-page-bg: #f5f8fa;
  --wabiss-card-bg: #ffffff;
  --wabiss-border: #eff2f5;
  --wabiss-border-strong: #e4e6ef;
  --wabiss-text: #181c32;
  --wabiss-text-2: #3f4254;
  --wabiss-text-3: #7e8299;
  --wabiss-muted: #a1a5b7;
  --wabiss-primary: #00C48C;
  --wabiss-success: #50cd89;
  --wabiss-warning: #ffc700;
  --wabiss-danger: #f1416c;
  --wabiss-radius: 10px;
  --wabiss-shadow: 0 0 20px 0 rgba(76,87,125,0.02);
  --bg: var(--wabiss-page-bg);
  --bg-alt: #eef3f8;
  --bg-card: var(--wabiss-card-bg);
  --surface: var(--wabiss-card-bg);
  --surface-elev: var(--wabiss-card-bg);
  --surface-elevated: var(--wabiss-card-bg);
  --panel-bg: var(--wabiss-card-bg);
  --border: var(--wabiss-border);
  --border-dashed: var(--wabiss-border-strong);
  --text-primary: var(--wabiss-text);
  --text-secondary: var(--wabiss-text-3);
  --primary: var(--wabiss-primary);
  --primary-light: rgba(0, 196, 140, 0.12);
  --danger: var(--wabiss-danger);
  --warning: var(--wabiss-warning);
  --accent: var(--wabiss-success);
  --radius: 10px;
  --radius-lg: 12px;
  --shadow: var(--wabiss-shadow);
  --shadow-lg: 0 10px 30px rgba(82,63,105,0.08);
}
html.dark {
  --wabiss-page-bg: #151521;
  --wabiss-card-bg: #1e1e2d;
  --wabiss-border: #2b2b40;
  --wabiss-border-strong: #323248;
  --wabiss-text: #ffffff;
  --wabiss-text-2: #ced4da;
  --wabiss-text-3: #a1a5b7;
  --wabiss-muted: #565674;
  --wabiss-primary: #00C48C;
  --wabiss-shadow: 0 0 20px 0 rgba(0,0,0,0.2);
  --bg: var(--wabiss-page-bg);
  --bg-alt: #1b1b2a;
  --bg-card: var(--wabiss-card-bg);
  --surface: var(--wabiss-card-bg);
  --surface-elev: var(--wabiss-card-bg);
  --surface-elevated: var(--wabiss-card-bg);
  --panel-bg: var(--wabiss-card-bg);
  --border: var(--wabiss-border);
  --border-dashed: var(--wabiss-border-strong);
  --text-primary: var(--wabiss-text);
  --text-secondary: var(--wabiss-text-3);
  --primary: var(--wabiss-primary);
  --primary-light: rgba(0, 196, 140, 0.12);
  --danger: var(--wabiss-danger);
  --warning: var(--wabiss-warning);
  --accent: var(--wabiss-success);
  --radius: 10px;
  --radius-lg: 12px;
  --shadow: var(--wabiss-shadow);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.16);
}

html, body {
  font-family: 'Poppins', sans-serif;
  background: var(--wabiss-page-bg);
  color: var(--wabiss-text);
}

body {
  font-size: 14px;
  line-height: 1.5;
}

#kt_body {
  background: var(--wabiss-page-bg);
}

#kt_content_container {
  width: 100%;
  max-width: 100%;
}

.content,
#kt_content,
#kt_post {
  min-width: 0;
}

body {
  font-size: 15px;
  line-height: 1.55;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--wabiss-text);
  letter-spacing: -0.01em;
}

h1 { font-size: 26px; line-height: 1.2; font-weight: 700; }
h2 { font-size: 20px; line-height: 1.25; font-weight: 700; }
h3 { font-size: 17px; line-height: 1.3; font-weight: 700; }
h4 { font-size: 15px; line-height: 1.35; font-weight: 700; }

p, li, td, th, label, input, select, textarea, button {
  font-size: 14px;
}

label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--wabiss-text-3);
}

input,
select,
textarea,
.input,
.form-control,
.form-select,
.form-control-solid,
.country-picker-trigger {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--wabiss-border);
  border-radius: 8px;
  background: var(--wabiss-card-bg);
  color: var(--wabiss-text);
  box-shadow: none;
  outline: none;
  font-size: 14px !important;
  line-height: 1.4;
}

textarea,
textarea.input,
textarea.form-control {
  min-height: 108px;
  padding-top: 10px;
  padding-bottom: 10px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--wabiss-muted);
}

input:focus,
select:focus,
textarea:focus,
.input:focus,
.form-control:focus,
.form-select:focus,
.form-control-solid:focus,
.country-picker-trigger:focus {
  border-color: var(--wabiss-primary);
  box-shadow: 0 0 0 3px rgba(0, 158, 247, 0.12);
}

.card,
.glass-card,
.plan-card,
.kt-card,
.section-card,
.billing-page .glass-card,
.send-page-card {
  background: var(--wabiss-card-bg);
  border: 1px solid var(--wabiss-border);
  border-radius: 10px;
  box-shadow: var(--wabiss-shadow);
  color: var(--wabiss-text-2);
}

.card,
.glass-card,
.kt-card {
  margin-bottom: 18px;
}

.card-head,
.kt-card-header,
.page-header,
.meta-rates-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 0;
}

.card-body,
.kt-card-body,
.glass-card,
.section-card,
.send-page-card,
.billing-page .glass-card {
  padding: 20px;
}

.page-header h1,
.kt-page-title h1,
.card-head h2,
.card-head h3,
.kt-card-title,
.page-header h2,
.page-header h3 {
  margin: 0;
  color: var(--wabiss-text);
}

.muted,
.text-muted,
small,
.kt-pagination-info,
.breadcrumb,
label,
.text-gray-400,
.text-gray-500,
.text-gray-600,
.text-gray-700 {
  color: var(--wabiss-text-3) !important;
}

.btn-primary,
.btn.btn-primary,
button.btn-primary,
a.btn-primary {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--wabiss-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary:hover,
.btn.btn-primary:hover,
button.btn-primary:hover,
a.btn-primary:hover {
  background: #00ab7a;
  color: #fff;
}

.btn-ghost,
.btn.btn-light,
.btn-light,
a.btn-ghost {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--wabiss-border);
  border-radius: 8px;
  background: var(--wabiss-card-bg);
  color: var(--wabiss-text-2);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-ghost:hover,
.btn.btn-light:hover,
.btn-light:hover,
a.btn-ghost:hover {
  background: #f9fbff;
  color: var(--wabiss-text);
}

.btn-sm {
  min-height: 34px !important;
  padding: 0 12px !important;
  font-size: 13px !important;
}

.form-grid,
.filter-grid,
.send-form-grid,
.billing-grid-2,
.meta-rate-filters,
.form-stack,
.meta-template-send-panel,
#bulkFields,
#templateFields,
#mediaFields,
#locationFields,
#buttonsFields,
#listFields,
#singleFields,
.send-section {
  display: grid;
  gap: 12px;
}

.form-grid.horizontal,
.filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: end;
}

.form-grid.horizontal > div {
  min-width: 0;
}

.form-grid.horizontal label,
.filter-grid label {
  margin-bottom: 6px;
}

.send-section,
.billing-page .glass-card,
.send-page-card {
  padding: 16px;
}

.send-section {
  border: 1px solid var(--wabiss-border);
  border-radius: 10px;
  background: var(--wabiss-page-bg);
}

.send-page-card .card-head {
  padding: 0 0 14px;
}

.copy-inline,
.icon-actions,
.kt-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.table-wrap,
.kt-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
}

.table-wrap table,
.kt-table,
table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

table thead th,
.kt-table thead th {
  padding: 13px 14px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wabiss-muted) !important;
  border-bottom: 1px solid var(--wabiss-border) !important;
  white-space: nowrap;
}

table tbody td,
.kt-table tbody td {
  padding: 13px 14px !important;
  font-size: 14px !important;
  color: var(--wabiss-text-2) !important;
  vertical-align: middle;
  border-bottom: 1px solid var(--wabiss-border) !important;
}

table tbody tr:hover td,
.kt-table tbody tr:hover td {
  background: #f9fbff;
}

.status,
.kt-status,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.pagination-wrapper,
.kt-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--wabiss-border);
  flex-wrap: wrap;
}

.page-link,
.kt-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--wabiss-border);
  background: var(--wabiss-card-bg);
  color: var(--wabiss-text-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.page-link.active,
.kt-page-btn.active {
  background: var(--wabiss-primary);
  color: #fff;
  border-color: var(--wabiss-primary);
}

.pagination,
.kt-pagination-btns {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.app-footer {
  border-top: 1px solid var(--wabiss-border);
  background: var(--wabiss-card-bg);
}

.billing-page .page-header,
.billing-page .meta-rates-head,
.send-page-card .card-head {
  padding-left: 0;
  padding-right: 0;
}

.billing-page .meta-rates-chip,
.meta-rates-chip,
.instanceTypeBadge,
#instanceTypeBadge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--wabiss-border);
  border-radius: 999px;
  background: var(--wabiss-page-bg);
  color: var(--wabiss-text-3);
  font-size: 12px;
  font-weight: 600;
}

.plan-name-large,
.wallet-balance,
.usage-numbers .used {
  font-size: 20px;
  font-weight: 700;
  color: var(--wabiss-text);
}

.plan-status,
.plan-renewal,
.wallet-label,
.usage-remaining,
.numbers-label,
.meta-rates-subtitle,
.meta-tip,
.template-preview-title,
.template-preview-name,
.template-preview-body,
.text-sm {
  font-size: 13px;
  color: var(--wabiss-text-3);
  line-height: 1.5;
}

.rate-pill,
.badge-gray,
.scope-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--wabiss-border);
  border-radius: 999px;
  background: var(--wabiss-card-bg);
  color: var(--wabiss-text-2);
  font-size: 12px;
  font-weight: 600;
}

.meta-rate-counts,
.topup-btns,
.usage-bar,
.numbers-info,
.card-actions,
.meta-rate-filters,
.form-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.usage-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--wabiss-border);
  overflow: hidden;
}

.usage-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--wabiss-primary);
}

.payments-table td,
.payments-table th {
  white-space: nowrap;
}

html.dark .card,
html.dark .stat-card,
html.dark .plan-card,
html.dark .kt-card,
html.dark .header,
html.dark .menu-link,
html.dark .kt-search-box,
html.dark .kt-filter-select,
html.dark .table-select,
html.dark .kt-inline-select,
html.dark .page-link,
html.dark .kt-page-btn,
html.dark .icon-btn,
html.dark .kt-btn-icon,
html.dark .btn-ghost,
html.dark .btn.btn-light,
html.dark .btn-light,
html.dark .glass-card,
html.dark .send-section,
html.dark .app-footer {
  background: var(--wabiss-card-bg);
}

.page, .wrapper, .content, #kt_content_container {
  min-width: 0;
}

.header {
  background: var(--wabiss-card-bg);
  border-bottom: 1px solid var(--wabiss-border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.header .container-xxl {
  padding-left: 24px;
  padding-right: 24px;
}

.aside-dark {
  background: #1e1e2d;
}

.wabiss-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wabiss-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(180deg, #2d8cff 0%, #0f62ff 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(15, 98, 255, 0.28);
  flex-shrink: 0;
}

.wabiss-brand-mark-lg {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 23px;
}

.wabiss-brand-text {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.wabiss-brand-text-lg {
  font-size: 22px;
}

.wabiss-login-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.aside-logo {
  min-height: 72px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.aside-footer {
  border-top: 1px solid rgba(255,255,255,0.07);
}

.menu-section {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #4b5675;
}

.menu-link {
  margin: 1px 8px;
  border-radius: 8px;
  min-height: 40px;
  color: #9899ac;
  font-size: 13px;
  font-weight: 500;
}

.menu-link .menu-icon i,
.menu-link .menu-icon .svg-icon,
.menu-link .menu-icon .ti {
  color: inherit;
  font-size: 16px;
}

.menu-link:hover {
  background: rgba(255,255,255,0.06);
  color: #d0d3e5;
}

.menu-link.active {
  background: rgba(0,158,247,0.15);
  color: #009ef7;
}

.menu-link.active .menu-title,
.menu-link.active .menu-icon i,
.menu-link.active .menu-icon .ti {
  color: #009ef7;
}

.card,
.glass-card,
.stat-card,
.plan-card,
.kt-card {
  background: var(--wabiss-card-bg);
  border: 1px solid var(--wabiss-border);
  border-radius: var(--wabiss-radius);
  box-shadow: var(--wabiss-shadow);
  color: var(--wabiss-text-2);
}

.card-head,
.kt-card-header,
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px 0;
}

.card-head h2,
.card-head h3,
.kt-card-title,
.page-header h1,
.page-header h2,
.page-header h3 {
  color: var(--wabiss-text);
  font-weight: 700;
  margin: 0;
}

.muted,
.text-muted,
small,
.kt-pagination-info,
.breadcrumb,
label {
  color: var(--wabiss-text-3) !important;
}

.stats-grid,
.kt-stat-grid {
  display: grid;
  gap: 16px;
}

.four-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  padding: 18px 20px;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-card i,
.admin-stat i,
.kt-stat-card i {
  font-size: 20px;
  color: var(--wabiss-primary);
  opacity: 0.9;
}

.stat-card h3,
.admin-stat h3,
.kt-stat-value {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  margin: 0;
  color: var(--wabiss-text);
}

.stat-card p,
.admin-stat p,
.kt-stat-label {
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wabiss-muted);
  font-weight: 600;
}

.stat-card small,
.admin-stat small {
  color: var(--wabiss-text-3) !important;
}

.chart-wrap {
  min-height: 320px;
  padding: 0 20px 20px;
}

.chart-wrap-compact {
  min-height: 260px;
}

.dashboard-summary-list {
  display: grid;
  gap: 10px;
  padding: 0 20px 20px;
}

.dashboard-summary-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--wabiss-border);
  border-radius: 8px;
  background: var(--wabiss-page-bg);
}

.dashboard-summary-list span {
  color: var(--wabiss-text-3);
  font-size: 12px;
  font-weight: 500;
}

.dashboard-summary-list strong {
  color: var(--wabiss-text);
  font-size: 13px;
  font-weight: 600;
}

.status-breakdown {
  display: grid;
  gap: 8px;
  padding: 0 20px 20px;
}

.status-breakdown-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--wabiss-border);
  border-radius: 8px;
  background: var(--wabiss-page-bg);
}

.status-breakdown-empty {
  padding: 0 20px 20px;
}

.table-wrap,
.kt-table-wrap {
  overflow-x: auto;
}

.table-wrap table,
.kt-table,
table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

table thead th,
.kt-table thead th {
  padding: 12px 14px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wabiss-muted) !important;
  border-bottom: 1px solid var(--wabiss-border) !important;
  white-space: nowrap;
}

table tbody td,
.kt-table tbody td {
  padding: 12px 14px !important;
  font-size: 13px !important;
  color: var(--wabiss-text-2) !important;
  vertical-align: middle;
  border-bottom: 1px solid var(--wabiss-border) !important;
}

table tbody tr:hover td,
.kt-table tbody tr:hover td {
  background: #f9fbff;
}

html.dark table tbody tr:hover td,
html.dark .kt-table tbody tr:hover td {
  background: rgba(255,255,255,0.03);
}

.status,
.kt-status,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status.connected,
.status.success {
  background: rgba(80, 205, 137, 0.12);
  color: #50cd89;
}

.status.pending,
.status.warning {
  background: rgba(255, 199, 0, 0.14);
  color: #c58a00;
}

.status.failed,
.status.error,
.status.disconnected {
  background: rgba(241, 65, 108, 0.12);
  color: #f1416c;
}

.status.ready,
.status.info {
  background: rgba(114, 57, 234, 0.12);
  color: #7239ea;
}

.status-dot::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a1a5b7;
}

.status-dot.connected::before,
.status-dot.success::before {
  background: #50cd89;
}

.status-dot.pending::before,
.status-dot.warning::before {
  background: #ffc700;
}

.status-dot.failed::before,
.status-dot.disconnected::before {
  background: #f1416c;
}

.status-dot.ready::before,
.status-dot.info::before {
  background: #009ef7;
}

input,
select,
textarea,
.form-control,
.form-select,
.form-control-solid,
.country-picker-trigger {
  font-size: 13px !important;
}

.kt-page-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.kt-page-title h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--wabiss-text);
}

.kt-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--wabiss-text-3);
}

.kt-breadcrumb a {
  color: var(--wabiss-text-3);
  text-decoration: none;
}

.kt-breadcrumb .current {
  color: var(--wabiss-text);
  font-weight: 600;
}

.kt-card {
  margin-bottom: 20px;
}

.kt-table-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  flex-wrap: wrap;
}

.kt-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  min-width: 240px;
  padding: 0 12px;
  background: var(--wabiss-card-bg);
  border: 1px solid var(--wabiss-border);
  border-radius: 8px;
}

.kt-search-box input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
}

.kt-filter-select,
.table-select,
.kt-inline-select {
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--wabiss-border);
  background: var(--wabiss-card-bg);
  color: var(--wabiss-text-2);
}

.kt-toolbar-right {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.instance-id,
.kt-id-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.instance-id code,
.kt-id-text,
.mono {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  background-color: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  letter-spacing: 0.1px !important;
}

html.dark .instance-id code,
html.dark .kt-id-text,
html.dark .mono {
  color: #f1f5f9 !important;
  background-color: #1e293b !important;
  border: 1px solid #334155 !important;
}

.copy-inline,
.icon-actions,
.kt-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-btn,
.kt-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--wabiss-border);
  background: var(--wabiss-card-bg);
  color: var(--wabiss-text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover,
.kt-btn-icon:hover {
  background: #f9fbff;
}

.btn-outline {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--wabiss-border);
  border-radius: 8px;
  background: var(--wabiss-card-bg);
  color: var(--wabiss-text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.btn-outline:hover {
  background: #f9fbff;
  color: var(--wabiss-text);
}

.icon-btn.danger:hover,
.kt-btn-light-danger:hover {
  background: rgba(241, 65, 108, 0.1);
  border-color: rgba(241, 65, 108, 0.2);
  color: #f1416c;
}

.icon-btn.warn:hover,
.kt-btn-light-warning:hover {
  background: rgba(255, 199, 0, 0.12);
  border-color: rgba(255, 199, 0, 0.22);
  color: #c58a00;
}

.icon-btn.info:hover,
.kt-btn-light-primary:hover {
  background: rgba(0, 158, 247, 0.12);
  border-color: rgba(0, 158, 247, 0.22);
  color: #009ef7;
}

.pagination-wrapper,
.kt-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--wabiss-border);
  flex-wrap: wrap;
}

.pagination,
.kt-pagination-btns {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.page-link,
.kt-page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--wabiss-border);
  background: var(--wabiss-card-bg);
  color: var(--wabiss-text-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.page-link.active,
.kt-page-btn.active {
  background: #009ef7;
  color: #fff;
  border-color: #009ef7;
}

.badge-light-success {
  background: rgba(80, 205, 137, 0.12) !important;
  color: #50cd89 !important;
}

.badge-light-primary {
  background: rgba(0, 158, 247, 0.12) !important;
  color: #009ef7 !important;
}

.badge-light-warning {
  background: rgba(255, 199, 0, 0.14) !important;
  color: #c58a00 !important;
}

.btn-light {
  border-color: var(--wabiss-border) !important;
}

.btn-light:hover {
  background: #f9fbff !important;
}

.kt-user-theme .menu-link.active,
.kt-user-theme .menu-link.active .menu-title,
.kt-user-theme .menu-link.active .menu-icon i,
.kt-user-theme .menu-link.active .menu-icon .ti {
  color: #17c964;
}

.kt-user-theme .menu-link.active {
  background: rgba(23, 201, 100, 0.14);
}

html.dark .card,
html.dark .stat-card,
html.dark .plan-card,
html.dark .kt-card,
html.dark .header,
html.dark .menu-link,
html.dark .kt-search-box,
html.dark .kt-filter-select,
html.dark .table-select,
html.dark .kt-inline-select,
html.dark .page-link,
html.dark .kt-page-btn,
html.dark .icon-btn,
html.dark .kt-btn-icon {
  background: var(--wabiss-card-bg);
}

html.dark .table-wrap table,
html.dark .kt-table,
html.dark table {
  color: var(--wabiss-text-2);
}

html.dark .btn-light,
html.dark .btn.btn-light,
html.dark .btn-outline {
  color: #ced4da !important;
}

html.dark .btn-outline {
  background: var(--wabiss-card-bg);
  border-color: var(--wabiss-border);
}

html.dark .btn-light:hover,
html.dark .btn.btn-light:hover,
html.dark .btn-outline:hover,
html.dark .icon-btn:hover,
html.dark .kt-btn-icon:hover {
  background: rgba(255,255,255,0.04) !important;
}

html.dark .page-link,
html.dark .kt-page-btn,
html.dark .kt-pagination,
html.dark .pagination-wrapper {
  border-color: var(--wabiss-border);
}

html.dark table tbody tr:hover td,
html.dark .kt-table tbody tr:hover td {
  background: rgba(255,255,255,0.03);
}

@media (max-width: 1399.98px) {
  .four-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .header .container-xxl {
    padding-left: 16px;
    padding-right: 16px;
  }

  .kt-table-toolbar,
  .pagination-wrapper,
  .kt-pagination,
  .card-head,
  .kt-card-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .kt-page-title {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767.98px) {
  .four-col,
  .stats-grid,
  .kt-stat-grid {
    grid-template-columns: 1fr;
  }

  .kt-search-box,
  .kt-filter-select {
    width: 100%;
    min-width: 0;
  }

  .kt-toolbar-right {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}



/* Wabiss final app polish: this block intentionally lives last so legacy page styles cannot win. */
body {
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: var(--wabiss-text) !important;
}

#kt_wrapper {
  background: var(--wabiss-page-bg) !important;
}

#kt_content {
  background: var(--wabiss-page-bg) !important;
}

#kt_post {
  padding: 60px 0 40px !important;
}

#kt_content_container.container-xxl {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
}

.app-footer {
  display: none !important;
}

.header {
  height: 70px !important;
  min-height: 70px !important;
  background: #ffffff !important;
  border-bottom: 1px solid var(--wabiss-border) !important;
  box-shadow: none !important;
}

.header .container-xxl {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
}

.header h1,
.header .fs-3 {
  font-size: 18px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: var(--wabiss-text) !important;
}

.header .form-control,
.header .input-group,
.header .input-group-text {
  height: 42px !important;
  min-height: 42px !important;
  border-radius: 8px !important;
  background: #f5f8fa !important;
}

.header .badge,
.header .btn {
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  display: inline-flex;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

.card,
.glass-card,
.kt-card,
.plan-card,
.section-card,
.inner-card,
.meta-panel,
.send-page-card,
.billing-page .glass-card {
  background: #ffffff !important;
  border: 1px solid var(--wabiss-border) !important;
  border-radius: 8px !important;
  box-shadow: 0 0 20px rgba(76, 87, 125, 0.03) !important;
  color: var(--wabiss-text-2) !important;
  margin-bottom: 20px !important;
  padding: 22px !important;
}

.card > h1:first-child,
.card > h2:first-child,
.card > h3:first-child,
.glass-card > h1:first-child,
.glass-card > h2:first-child,
.glass-card > h3:first-child {
  margin-top: 0 !important;
}

.card-head,
.kt-card-header,
.page-header,
.meta-rates-head {
  padding: 0 0 18px !important;
  margin: 0 0 18px !important;
  border-bottom: 1px solid var(--wabiss-border) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

.card-head p,
.page-header p,
.meta-rates-head p,
.card > p.muted,
.card > .muted,
.glass-card > p,
.text-muted,
.muted {
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: var(--wabiss-text-3) !important;
}

h1,
h2,
h3,
h4,
.card-head h2,
.page-header h1,
.page-header h2,
.kt-page-title h1 {
  color: var(--wabiss-text) !important;
  letter-spacing: 0 !important;
  margin-bottom: 8px !important;
}

h1,
.page-header h1,
.kt-page-title h1 {
  font-size: 24px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}

h2,
.card-head h2 {
  font-size: 20px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
}

h3 {
  font-size: 17px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

.form-grid,
.filter-grid,
.form-stack,
.meta-rate-filters,
.send-form-grid,
.meta-template-send-panel {
  display: grid !important;
  gap: 16px !important;
}

.form-grid.horizontal,
.filter-grid,
.meta-rate-filters {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  align-items: end !important;
}

.form-grid.horizontal > button,
.filter-grid > button,
.meta-rate-filters > button,
.form-grid.horizontal > .btn-primary,
.filter-grid > .btn-primary,
.meta-rate-filters > .btn-primary,
.form-grid.horizontal > .btn-outline,
.filter-grid > .btn-outline,
.meta-rate-filters > .btn-outline {
  width: 100% !important;
}

label,
.form-label {
  display: block !important;
  margin-bottom: 8px !important;
  color: var(--wabiss-text-3) !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
}

input,
select,
textarea,
.input,
.form-control,
.form-select,
.form-control-solid,
.country-picker-trigger {
  width: 100% !important;
  min-height: 42px !important;
  height: auto !important;
  padding: 10px 13px !important;
  border: 1px solid var(--wabiss-border) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: var(--wabiss-text) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  box-shadow: none !important;
  outline: none !important;
}

textarea,
textarea.input,
textarea.form-control {
  min-height: 116px !important;
  resize: vertical !important;
}

input:focus,
select:focus,
textarea:focus,
.input:focus,
.form-control:focus,
.form-select:focus {
  border-color: var(--wabiss-primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 158, 247, 0.12) !important;
}

.btn,
.btn-primary,
.btn-ghost,
.btn-outline,
.btn-danger,
button.btn-primary,
button.btn-ghost,
button.btn-outline,
a.btn-primary,
a.btn-ghost,
a.btn-outline {
  min-height: 40px !important;
  padding: 0 16px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.btn-primary,
button.btn-primary,
a.btn-primary,
.btn.btn-primary {
  border: 1px solid var(--wabiss-primary) !important;
  background: var(--wabiss-primary) !important;
  color: #ffffff !important;
}

.btn-outline,
.btn-ghost,
.btn.btn-light,
button.btn-outline,
button.btn-ghost,
a.btn-outline,
a.btn-ghost {
  border: 1px solid var(--wabiss-border) !important;
  background: #ffffff !important;
  color: var(--wabiss-text-2) !important;
}

.btn-danger,
button.btn-danger,
a.btn-danger {
  border: 1px solid var(--wabiss-danger) !important;
  background: var(--wabiss-danger) !important;
  color: #ffffff !important;
}

.btn-sm,
.sm {
  min-height: 34px !important;
  padding: 0 12px !important;
  font-size: 13px !important;
}

.table-wrap,
.kt-table-wrap {
  width: 100% !important;
  overflow-x: auto !important;
  border: 1px solid var(--wabiss-border) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}

.table-wrap table,
.kt-table,
table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: #ffffff !important;
}

thead th,
.kt-table thead th {
  height: 48px !important;
  padding: 0 16px !important;
  background: #ffffff !important;
  border-bottom: 1px solid var(--wabiss-border) !important;
  color: var(--wabiss-muted) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

tbody td,
.kt-table tbody td {
  min-height: 56px !important;
  padding: 14px 16px !important;
  border-bottom: 1px solid var(--wabiss-border) !important;
  color: var(--wabiss-text-2) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  vertical-align: middle !important;
}

tbody tr:last-child td {
  border-bottom: 0 !important;
}

tbody tr:hover td {
  background: #f9fbff !important;
}

code,
pre,
.one-time-key-value {
  font-family: Consolas, 'Courier New', monospace !important;
  font-size: 13px !important;
  color: #d63384 !important;
  background: #f7f8fb !important;
  border-radius: 6px !important;
  padding: 3px 6px !important;
}

pre {
  padding: 14px !important;
  overflow-x: auto !important;
}

.badge,
.status,
.kt-status,
.rate-pill,
.scope-badge,
.meta-rates-chip,
#instanceTypeBadge {
  min-height: 28px !important;
  padding: 0 10px !important;
  border-radius: 7px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.status.connected,
.status.success,
.badge-success,
.badge-light-success {
  background: #e8fff3 !important;
  color: #1fa463 !important;
}

.status.failed,
.status.error,
.status.disconnected,
.badge-danger {
  background: #fff5f8 !important;
  color: #d9214e !important;
}

.status.pending,
.status.warning,
.badge-warning {
  background: #fff8dd !important;
  color: #b68200 !important;
}

.badge-gray,
.badge,
.rate-pill,
.scope-badge {
  background: #f5f8fa !important;
  color: var(--wabiss-text-3) !important;
  border: 1px solid var(--wabiss-border) !important;
}

.copy-inline,
.action-row,
.icon-actions,
.kt-actions,
.card-actions,
.topup-btns,
.meta-rate-counts {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.billing-grid-2 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

.billing-page .glass-card {
  min-height: 116px !important;
}

.wallet-balance,
.plan-name-large,
.usage-numbers .used {
  font-size: 22px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: var(--wabiss-text) !important;
}

.send-section,
.inner-card,
.category-card,
.template-preview-box,
.one-time-key-alert {
  border: 1px solid var(--wabiss-border) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  padding: 16px !important;
}

.htab,
.api-tab,
.send-tab,
.step-indicator {
  min-height: 36px !important;
  padding: 0 14px !important;
  border: 1px solid var(--wabiss-border) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: var(--wabiss-text-2) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 600 !important;
}

.htab.active,
.api-tab.active,
.send-tab.active,
.step-indicator.active,
.category-card.active,
.category-card.selected {
  border-color: var(--wabiss-primary) !important;
  background: #e8f4ff !important;
  color: var(--wabiss-primary) !important;
}

.pricing-grid,
.plan-grid,
.plans-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 20px !important;
}

.pricing-grid > .card,
.plan-grid > .card,
.plans-grid > .card,
.pricing-card,
.plan-card {
  min-height: 280px !important;
}

.pagination-wrapper,
.kt-pagination {
  margin-top: 0 !important;
  padding: 16px !important;
  border-top: 1px solid var(--wabiss-border) !important;
}

.page-link,
.kt-page-btn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
}

.page-link.active,
.kt-page-btn.active {
  border-color: var(--wabiss-primary) !important;
  background: var(--wabiss-primary) !important;
  color: #ffffff !important;
}

html.dark .header,
html.dark .card,
html.dark .glass-card,
html.dark .kt-card,
html.dark .plan-card,
html.dark .section-card,
html.dark .inner-card,
html.dark .send-section,
html.dark .table-wrap,
html.dark table,
html.dark input,
html.dark select,
html.dark textarea,
html.dark .input,
html.dark .form-control,
html.dark .form-select,
html.dark .btn-outline,
html.dark .btn-ghost,
html.dark .btn.btn-light {
  background: var(--wabiss-card-bg) !important;
  border-color: var(--wabiss-border) !important;
  color: var(--wabiss-text-2) !important;
}

html.dark tbody tr:hover td {
  background: rgba(255,255,255,0.04) !important;
}

@media (max-width: 991.98px) {
  #kt_content_container.container-xxl,
  .header .container-xxl {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .billing-grid-2 {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 767.98px) {
  #kt_post {
    padding-top: 18px !important;
  }

  .card,
  .glass-card,
  .kt-card,
  .plan-card,
  .section-card {
    padding: 16px !important;
  }

  .form-grid.horizontal,
  .filter-grid,
  .meta-rate-filters {
    grid-template-columns: 1fr !important;
  }

  .header .input-group {
    display: none !important;
  }
}

/* Semantic badge colors must remain after the generic badge rule. */
.badge-success,
.badge-light-success,
.status.connected,
.status.success {
  background: #e8fff3 !important;
  border-color: #b8f5d5 !important;
  color: #1fa463 !important;
}

.badge-primary,
.badge-light-primary,
.status.ready,
.status.info {
  background: #e8f4ff !important;
  border-color: #b9defc !important;
  color: #009ef7 !important;
}

.badge-warning,
.badge-light-warning,
.status.pending,
.status.warning {
  background: #fff8dd !important;
  border-color: #ffe891 !important;
  color: #b68200 !important;
}

.badge-danger,
.badge-light-danger,
.status.failed,
.status.error,
.status.disconnected {
  background: #fff5f8 !important;
  border-color: #ffc4d3 !important;
  color: #d9214e !important;
}

/* Dashboard and auth polish */
.header .input-group {
  display: none !important;
}

.header .container-xxl > .d-flex:last-child {
  gap: 10px !important;
}

/* Dynamic SVG Logo styles */
.wabiss-logo-svg {
  height: 32px;
  width: auto;
  color: #ffffff !important;
}
.auth-bg .wabiss-logo-svg {
  height: 48px !important;
}

/* Dynamic Sidebar User/Admin name default color */
.aside-user-name {
  color: #ffffff;
}

/* Theme-aware Sidebar overrides for Light mode */
html:not(.dark) .aside-dark {
  background: #ffffff !important;
  border-right: 1px solid #eff2f5 !important;
}
html:not(.dark) .aside-logo {
  background: #ffffff !important;
  border-bottom: 1px solid #eff2f5 !important;
}
html:not(.dark) .aside-footer {
  background: #ffffff !important;
  border-top: 1px solid #eff2f5 !important;
}
html:not(.dark) .aside-dark .wabiss-logo-svg {
  color: #0d1117 !important;
}
html:not(.dark) .menu-link {
  color: #4b5675 !important;
}
html:not(.dark) .menu-link:hover {
  background: rgba(0, 158, 247, 0.05) !important;
  color: #009ef7 !important;
}
html:not(.dark) .menu-link:hover .menu-title,
html:not(.dark) .menu-link:hover .menu-icon i,
html:not(.dark) .menu-link:hover .menu-icon .ti {
  color: #009ef7 !important;
}
html:not(.dark) .menu-section {
  color: #a1a5b7 !important;
}
html:not(.dark) .aside-user-name {
  color: #181c32 !important;
}
html:not(.dark) .aside-dark .btn-active-color-primary i {
  color: #4b5675 !important;
}
html:not(.dark) .aside-dark .btn-active-color-primary:hover i {
  color: #009ef7 !important;
}

/* Highly visible active menu items overrides - Dark Mode default */
.aside-dark .menu-item .menu-link.active {
  background: rgba(0, 158, 247, 0.15) !important;
}
.aside-dark .menu-item .menu-link.active .menu-title,
.aside-dark .menu-item .menu-link.active .menu-icon i,
.aside-dark .menu-item .menu-link.active .menu-icon .ti {
  color: #009ef7 !important;
  font-weight: 600 !important;
}

/* Highly visible active menu items overrides - Light Mode */
html:not(.dark) .aside-dark .menu-item .menu-link.active {
  background: rgba(0, 158, 247, 0.08) !important;
}
html:not(.dark) .aside-dark .menu-item .menu-link.active .menu-title,
html:not(.dark) .aside-dark .menu-item .menu-link.active .menu-icon i,
html:not(.dark) .aside-dark .menu-item .menu-link.active .menu-icon .ti {
  color: #009ef7 !important;
  font-weight: 600 !important;
}

/* Dark mode dashboard panel background fixes */
html.dark .dashboard-stat-card {
  background: var(--wabiss-card-bg) !important;
}
html.dark .dashboard-panel {
  background: var(--wabiss-card-bg) !important;
}
html.dark .dashboard-summary-list > div {
  background: rgba(255, 255, 255, 0.02) !important;
}
html.dark .status-breakdown-row {
  background: rgba(255, 255, 255, 0.02) !important;
}

.dashboard-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin-bottom: 20px !important;
}

.dashboard-stat-card {
  min-height: 118px !important;
  padding: 22px !important;
  border: 1px solid var(--wabiss-border) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 0 20px rgba(76, 87, 125, 0.03) !important;
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
}

.dashboard-stat-icon {
  width: 46px !important;
  height: 46px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 46px !important;
}

.dashboard-stat-icon svg {
  width: 22px !important;
  height: 22px !important;
  stroke-width: 2 !important;
}

.dashboard-stat-icon-primary { background: #e8f4ff !important; color: #009ef7 !important; }
.dashboard-stat-icon-success { background: #e8fff3 !important; color: #50cd89 !important; }
.dashboard-stat-icon-info { background: #f1f4ff !important; color: #7239ea !important; }
.dashboard-stat-icon-warning { background: #fff8dd !important; color: #ffc700 !important; }

.dashboard-stat-body {
  display: grid !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.dashboard-stat-label {
  color: var(--wabiss-muted) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

.dashboard-stat-body strong {
  color: var(--wabiss-text) !important;
  font-size: 28px !important;
  line-height: 1.05 !important;
  font-weight: 700 !important;
}

.dashboard-chart-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.8fr) !important;
  gap: 20px !important;
  margin-bottom: 20px !important;
}

.dashboard-panel {
  background: #ffffff !important;
  border: 1px solid var(--wabiss-border) !important;
  border-radius: 8px !important;
  box-shadow: 0 0 20px rgba(76, 87, 125, 0.03) !important;
  padding: 22px !important;
  min-width: 0 !important;
}

.dashboard-panel-wide {
  grid-column: 1 / -1 !important;
}

.dashboard-panel .card-head {
  padding: 0 0 16px !important;
  margin: 0 0 16px !important;
  border-bottom: 1px solid var(--wabiss-border) !important;
}

.dashboard-panel .card-head h2 {
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
}

.dashboard-panel .chart-wrap {
  height: 310px !important;
  min-height: 310px !important;
  padding: 6px 0 0 !important;
}

.dashboard-panel-wide .chart-wrap {
  height: 330px !important;
  min-height: 330px !important;
}

.dashboard-panel canvas {
  max-width: 100% !important;
}

.dashboard-summary-list {
  padding: 0 !important;
  display: grid !important;
  gap: 12px !important;
}

.dashboard-summary-list > div {
  min-height: 54px !important;
  padding: 14px 16px !important;
  background: #f9fbff !important;
  border: 1px solid var(--wabiss-border) !important;
  border-radius: 8px !important;
}

.status-breakdown {
  padding: 0 !important;
  margin-top: 14px !important;
}

.status-breakdown-row {
  background: #f9fbff !important;
}

.recent-messages-panel {
  margin-top: 0 !important;
}

.wabiss-login-brand .wabiss-brand-text,
.wabiss-login-brand .wabiss-brand-text-lg {
  color: var(--wabiss-text) !important;
  text-shadow: none !important;
}

.auth-bg .wabiss-login-brand {
  padding: 8px 10px !important;
  border-radius: 12px !important;
}

@media (max-width: 1199.98px) {
  .dashboard-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .dashboard-chart-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 767.98px) {
  .dashboard-stats-grid {
    grid-template-columns: 1fr !important;
  }

  .dashboard-stat-card,
  .dashboard-panel {
    padding: 16px !important;
  }

  .dashboard-panel .chart-wrap,
  .dashboard-panel-wide .chart-wrap {
    height: 260px !important;
    min-height: 260px !important;
  }
}

/* Popup + toast system (replaces native alert/confirm) */
.toast-stack {
  position: fixed;
  top: 1.05rem;
  right: 1.05rem;
  z-index: 99999;
  display: grid;
  gap: 0.7rem;
  width: min(390px, calc(100vw - 1.5rem));
}

.toast {
  display: block !important;
  position: relative;
  border: 1px solid var(--wabiss-border);
  border-radius: 8px;
  background: var(--wabiss-card-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 0.82rem 0.9rem 0.82rem 2.95rem;
  cursor: pointer;
  animation: toast-enter 0.24s ease;
  overflow: hidden;
  color: var(--wabiss-text);
}

.toast::before {
  position: absolute;
  left: 0.86rem;
  top: 50%;
  width: 1.35rem;
  height: 1.35rem;
  transform: translateY(-50%);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.toast::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  opacity: 0.95;
}

.toast.hide {
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  transition: all 0.2s ease;
}

.toast-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.18rem;
  letter-spacing: 0.2px;
}

.toast-message {
  font-size: 0.86rem;
  color: var(--wabiss-text-3);
  line-height: 1.45;
}

.toast-success {
  border-color: rgba(80, 205, 137, 0.36) !important;
}

.toast-success .toast-title {
  color: #50cd89 !important;
}

.toast-success::before {
  content: '✓';
  background: #e8fff3;
  color: #50cd89;
}

.toast-success::after {
  background: #50cd89;
}

.toast-error {
  border-color: rgba(241, 65, 108, 0.38) !important;
}

.toast-error .toast-title {
  color: #f1416c !important;
}

.toast-error::before {
  content: '!';
  background: #fff5f8;
  color: #f1416c;
}

.toast-error::after {
  background: #f1416c;
}

.toast-info {
  border-color: rgba(0, 158, 247, 0.35) !important;
}

.toast-info .toast-title {
  color: #009ef7 !important;
}

.toast-info::before {
  content: 'i';
  background: #e8f4ff;
  color: #009ef7;
}

.toast-info::after {
  background: #009ef7;
}

.toast-warning {
  border-color: rgba(255, 199, 0, 0.35) !important;
}

.toast-warning .toast-title {
  color: #ffc700 !important;
}

.toast-warning::before {
  content: '!';
  background: #fff8dd;
  color: #ffc700;
}

.toast-warning::after {
  background: #ffc700;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(9, 9, 14, 0.42) !important;
  backdrop-filter: blur(5px) !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.popup-overlay.open {
  display: flex;
}

.popup-modal {
  width: min(440px, 100%);
  border: 1px solid var(--wabiss-border);
  border-radius: 12px !important;
  background: var(--wabiss-card-bg);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12) !important;
  padding: 1.75rem !important;
  animation: modal-enter 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--wabiss-text);
}

.popup-modal h3 {
  margin: 0;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--wabiss-text);
}

.popup-message {
  margin: 14px 0 0 !important;
  color: var(--wabiss-text-3) !important;
  line-height: 1.6 !important;
  font-size: 14.5px !important;
}

.popup-actions {
  margin-top: 1.75rem !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .toast-stack {
    left: 0.72rem;
    right: 0.72rem;
    width: auto;
  }

  .popup-actions {
    flex-direction: column-reverse;
  }

  .popup-actions .btn-outline,
  .popup-actions .btn-danger,
  .popup-actions .btn-primary {
    width: 100%;
    margin-top: 5px;
  }
}

/* Padding for content clearance below fixed top header */
#kt_content {
  padding-top: 32px !important;
  padding-bottom: 32px !important;
}

@media (max-width: 991.98px) {
  #kt_content {
    padding-top: 26px !important;
    padding-bottom: 26px !important;
  }

  .header-tablet-and-mobile-fixed .wrapper {
    padding-top: 76px !important;
  }

  .header {
    height: 76px !important;
    min-height: 76px !important;
  }

  .header .container-xxl {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }
}

/* Hide mobile aside burger menu toggle on desktop screen sizes */
@media (min-width: 992px) {
  #kt_aside_mobile_toggle {
    display: none !important;
  }
}

/* Custom Pricing Redesign Styling Overrides */
.pricing-toggle-monthly .toggle-btn {
  background: transparent !important;
  color: var(--wabiss-text-2) !important;
  border: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  outline: none !important;
}

.pricing-toggle-monthly .toggle-btn.active {
  background: var(--wabiss-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 6px rgba(0, 158, 247, 0.2) !important;
}

.btn-check:checked + label.btn-outline-dashed.btn-outline-default {
  border-color: var(--wabiss-primary) !important;
  background-color: rgba(0, 158, 247, 0.04) !important;
  color: var(--wabiss-primary) !important;
  box-shadow: 0 0 0 1px var(--wabiss-primary) !important;
}

.accordion-item {
  border-color: var(--wabiss-border) !important;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(0, 158, 247, 0.02) !important;
  color: var(--wabiss-primary) !important;
}

.accordion-button:focus {
  box-shadow: none !important;
}

.accordion-button::after {
  background-size: 1.1rem !important;
  transition: transform 0.2s ease-in-out !important;
}

/* Meta Template Builder Wizard Overrides */
.wizard-progress .step-indicator {
  min-height: 40px !important;
  padding: 0 20px !important;
  border-radius: 99px !important;
  font-size: 13.5px !important;
}

.wizard-progress .step-indicator.active {
  background: var(--wabiss-primary) !important;
  color: #ffffff !important;
  border-color: var(--wabiss-primary) !important;
}

.wizard-progress .step-indicator.current {
  box-shadow: 0 3px 8px rgba(0, 158, 247, 0.2) !important;
  font-weight: 700 !important;
}

/* Custom Segmented Control (iOS-Style Toggle Bar) */
.header-tabs-container {
  display: flex !important;
  background-color: rgba(0, 0, 0, 0.04) !important;
  padding: 3px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  width: 100% !important;
}
.header-tabs-container .htab {
  flex: 1 !important;
  text-align: center !important;
  border: none !important;
  background: transparent !important;
  color: #5e6278 !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  padding: 6px 4px !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
}
.header-tabs-container .htab.active {
  background-color: #ffffff !important;
  color: var(--wabiss-primary) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

/* Stepper Wizard Styling */
.stepper-container {
  width: 100%;
}
.stepper-circle {
  transition: all 0.3s ease;
  border-width: 2px !important;
}
.stepper-title {
  font-size: 14px;
}
.stepper-line {
  transition: all 0.3s ease;
}

/* Premium Mobile Phone Mockup Bezel */
.phone-device {
  max-width: 310px;
  height: 560px;
  border: 10px solid #1e1e1e !important;
  border-radius: 36px !important;
  overflow: hidden !important;
  position: relative !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
  background: #efeae2 !important;
  margin: 0 auto !important;
}
.phone-notch {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 110px !important;
  height: 16px !important;
  background: #1e1e1e !important;
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
  z-index: 20 !important;
}
.phone-screen {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  z-index: 10 !important;
}

@media (min-width: 992px) {
  .preview-card {
    position: sticky !important;
    top: 1.5rem !important;
  }
  .chat-main-card {
    height: calc(100vh - 170px) !important;
    min-height: 620px !important;
  }
  .chat-thread-list {
    height: calc(100vh - 410px) !important;
  }
}

/* Chat Overrides and Enhancements */
.chat-thread {
  width: 100% !important;
  text-align: left !important;
  padding: 12px 16px !important;
  border: 1px solid var(--bs-gray-200) !important;
  border-radius: 8px !important;
  margin-bottom: 8px !important;
  cursor: pointer !important;
  background: #ffffff !important;
  color: inherit !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}
.chat-thread:hover {
  background: var(--bs-light) !important;
  border-color: var(--bs-gray-300) !important;
}
.chat-thread.active {
  border-color: var(--bs-primary) !important;
  background-color: rgba(0, 158, 247, 0.04) !important;
  box-shadow: 0 1px 3px rgba(0, 158, 247, 0.08) !important;
}
.chat-thread-top {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 8px !important;
}
.chat-thread-top strong {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--bs-gray-800) !important;
}
.chat-thread-top span {
  font-size: 10px !important;
}
.chat-thread-preview {
  color: #7e8299 !important;
  font-size: 12px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.chat-messages {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}
.chat-bubble {
  max-width: 75% !important;
  padding: 8px 12px !important;
  border-radius: 12px !important;
  position: relative !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}
.chat-bubble.in {
  align-self: flex-start !important;
  background-color: #ffffff !important;
  color: #181c32 !important;
  border-top-left-radius: 4px !important;
  border: 1px solid var(--bs-gray-100) !important;
}
.chat-bubble.out {
  align-self: flex-end !important;
  background-color: #d9fdd3 !important;
  color: #181c32 !important;
  border-top-right-radius: 4px !important;
  border: 1px solid rgba(0, 196, 140, 0.1) !important;
}
.chat-bubble-text {
  white-space: pre-wrap !important;
  word-break: break-word !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}
.chat-bubble-meta {
  align-self: flex-end !important;
  font-size: 10px !important;
  color: #7e8299 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-top: 1px !important;
}
.chat-ticks {
  font-size: 11px !important;
  line-height: 1 !important;
}
.chat-ticks.read {
  color: #53bdeb !important;
}

@media (max-width: 991px) {
  .chat-main-card {
    height: auto !important;
  }
  .chat-sidebar {
    width: 100% !important;
    border-end: none !important;
    border-bottom: 1px solid var(--bs-gray-200) !important;
  }
  .chat-thread-list {
    max-height: 250px !important;
    min-height: 150px !important;
    height: auto !important;
  }
}

/* Fix checkboxes & radio buttons layout distortion by generic inputs */
input[type="checkbox"].form-check-input,
input[type="radio"].form-check-input {
  width: 1.25rem !important;
  height: 1.25rem !important;
  min-height: auto !important;
  padding: 0 !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border: 1px solid #d8d8d8 !important;
  border-radius: 4px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-block !important;
  vertical-align: middle !important;
  position: relative !important;
  cursor: pointer !important;
}

input[type="checkbox"].form-check-input:checked {
  background-color: #009ef7 !important;
  border-color: #009ef7 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
  background-size: 70% 70% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Fix switches formatting and sliding knobs */
.form-switch .form-check-input[type="checkbox"] {
  width: 2.5rem !important;
  height: 1.25rem !important;
  border-radius: 1.25rem !important;
  background-color: #e4e6ef !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23a1a5b7' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8z'/%3e%3c/svg%3e") !important;
  background-position: left center !important;
  background-repeat: no-repeat !important;
  transition: background-position 0.15s ease-in-out, background-color 0.15s ease-in-out !important;
}

.form-switch .form-check-input[type="checkbox"]:checked {
  background-color: #009ef7 !important;
  background-position: right center !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8z'/%3e%3c/svg%3e") !important;
}

/* --- Dark Mode Visual Fixes --- */
html.dark {
  background-color: var(--wabiss-page-bg) !important;
  color: var(--wabiss-text) !important;
}

html.dark body {
  background-color: var(--wabiss-page-bg) !important;
}

/* Background utilities in dark mode */
html.dark .bg-light,
html.dark .bg-light-lighten,
html.dark .bg-light-secondary {
  background-color: #1b1b2a !important;
}

html.dark .bg-white,
html.dark .bg-body {
  background-color: var(--wabiss-card-bg) !important;
}

/* Border utilities in dark mode */
html.dark .border-gray-100,
html.dark .border-gray-200,
html.dark .border-gray-300,
html.dark .border-gray-400 {
  border-color: var(--wabiss-border) !important;
}

/* Text utility classes in dark mode */
html.dark .text-gray-900 {
  color: var(--wabiss-text) !important;
}

html.dark .text-gray-800 {
  color: var(--wabiss-text-2) !important;
}

html.dark .text-gray-700,
html.dark .text-gray-600 {
  color: var(--wabiss-text-3) !important;
}

/* Tables and headers */
html.dark table.table thead th,
html.dark table th,
html.dark thead th,
html.dark .kt-table thead th {
  color: var(--wabiss-text-3) !important;
  border-bottom-color: var(--wabiss-border) !important;
  background-color: var(--wabiss-card-bg) !important;
  background: var(--wabiss-card-bg) !important;
}

html.dark table.table tbody tr td,
html.dark table td {
  border-bottom-color: var(--wabiss-border) !important;
}

/* Form inputs & solid selections */
html.dark .form-control-solid,
html.dark .form-select-solid {
  background-color: #1b1b2a !important;
  border-color: var(--wabiss-border) !important;
  color: var(--wabiss-text) !important;
}

html.dark .form-control-solid:focus,
html.dark .form-select-solid:focus {
  background-color: var(--wabiss-card-bg) !important;
  border-color: var(--wabiss-primary) !important;
  color: var(--wabiss-text) !important;
}

/* Badges readability in dark mode */
html.dark .badge-light-primary {
  background-color: rgba(0, 158, 247, 0.15) !important;
  color: #009ef7 !important;
}

html.dark .badge-light-success {
  background-color: rgba(80, 205, 137, 0.15) !important;
  color: #50cd89 !important;
}

html.dark .badge-light-danger {
  background-color: rgba(241, 65, 108, 0.15) !important;
  color: #f1416c !important;
}

html.dark .badge-light-warning {
  background-color: rgba(255, 199, 0, 0.15) !important;
  color: #ffc700 !important;
}

html.dark .badge-light-info {
  background-color: rgba(114, 57, 234, 0.15) !important;
  color: #7239ea !important;
}

html.dark .badge-light-secondary {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #ced4da !important;
}

/* Inline code markup */
html.dark code,
html.dark .one-time-key-value {
  background-color: #151521 !important;
  background: #151521 !important;
  color: #f1416c !important;
}

html.dark pre {
  background-color: #151521 !important;
  background: #151521 !important;
  border: 1px solid var(--wabiss-border) !important;
  color: var(--wabiss-text-2) !important;
}

html.dark pre code {
  background-color: transparent !important;
  background: transparent !important;
  color: inherit !important;
}

/* Buttons outline dash */
html.dark .btn-outline.btn-outline-dashed.btn-outline-primary {
  border-color: var(--wabiss-primary) !important;
  color: var(--wabiss-primary) !important;
}

html.dark .btn-outline.btn-outline-dashed.btn-outline-primary:hover {
  background-color: rgba(0, 158, 247, 0.12) !important;
}

/* Override dark mode general .menu-link selector background to enable visible hover effect */
html.dark .menu-link:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}
html.dark .menu-link:hover .menu-title,
html.dark .menu-link:hover .menu-icon i,
html.dark .menu-link:hover .menu-icon .ti {
  color: #ffffff !important;
}

/* --- Sleek Premium Dark Mode Visual Polish --- */
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6 {
  color: #ffffff !important;
}

html.dark .text-dark {
  color: #ffffff !important;
}

html.dark .text-muted {
  color: var(--wabiss-text-3) !important;
}

html.dark .text-gray-900 {
  color: #ffffff !important;
}

html.dark .text-gray-800 {
  color: #f1f1f4 !important;
}

html.dark .text-gray-700 {
  color: #ced4da !important;
}

html.dark .text-gray-600 {
  color: #a1a5b7 !important;
}

html.dark .text-gray-500 {
  color: #7e8299 !important;
}

html.dark .text-gray-400 {
  color: #565674 !important;
}

/* Modals and popups styling */
html.dark .modal-content {
  background-color: #1e1e2d !important;
  border-color: #2b2b40 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
}

html.dark .modal-header,
html.dark .modal-footer {
  border-color: #2b2b40 !important;
  background-color: transparent !important;
}

/* Card Header/Footer Borders */
html.dark .card-header,
html.dark .card-footer {
  border-color: #2b2b40 !important;
  background-color: transparent !important;
}

/* Form input styling and placeholder contrast */
html.dark input::placeholder,
html.dark textarea::placeholder,
html.dark .form-control::placeholder {
  color: #565674 !important;
  opacity: 1 !important;
}

html.dark .input-group-text {
  background-color: #2b2b40 !important;
  border-color: #2b2b40 !important;
  color: #ced4da !important;
}

/* Select option background fix */
html.dark select option {
  background-color: #1e1e2d !important;
  color: #ffffff !important;
}

/* Breadcrumbs color fix */
html.dark .breadcrumb-item,
html.dark .breadcrumb-item a {
  color: #a1a5b7 !important;
}

html.dark .breadcrumb-item + .breadcrumb-item::before {
  color: #565674 !important;
}

/* Alert boxes visual polish (glassmorphism/low opacity) */
html.dark .alert.bg-light-success,
html.dark .alert.alert-success {
  background-color: rgba(80, 205, 137, 0.08) !important;
  border: 1px solid rgba(80, 205, 137, 0.2) !important;
  color: #50cd89 !important;
}

html.dark .alert.bg-light-danger,
html.dark .alert.alert-danger {
  background-color: rgba(241, 65, 108, 0.08) !important;
  border: 1px solid rgba(241, 65, 108, 0.2) !important;
  color: #f1416c !important;
}

html.dark .alert.bg-light-warning,
html.dark .alert.alert-warning {
  background-color: rgba(255, 199, 0, 0.08) !important;
  border: 1px solid rgba(255, 199, 0, 0.2) !important;
  color: #ffc700 !important;
}

html.dark .alert.bg-light-info,
html.dark .alert.alert-info {
  background-color: rgba(114, 57, 234, 0.08) !important;
  border: 1px solid rgba(114, 57, 234, 0.2) !important;
  color: #7239ea !important;
}

/* Dropdowns menu */
html.dark .dropdown-menu {
  background-color: #1e1e2d !important;
  border-color: #2b2b40 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

html.dark .dropdown-item {
  color: #ced4da !important;
}

html.dark .dropdown-item:hover,
html.dark .dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
}

/* Badge secondary */
html.dark .badge-secondary,
html.dark .badge-light {
  background-color: #2b2b40 !important;
  color: #ced4da !important;
}

/* --- Premium Dark Mode Chat Polish --- */
html.dark #chatThreadList,
html.dark .chat-thread-list {
  background-color: var(--wabiss-page-bg) !important;
  background: var(--wabiss-page-bg) !important;
}

html.dark #chatMessages,
html.dark #chatWelcomeScreen {
  background-color: var(--wabiss-page-bg) !important;
  background-image: radial-gradient(#212130 1px, transparent 0), radial-gradient(#212130 1px, var(--wabiss-page-bg) 0) !important;
  background-size: 20px 20px !important;
  background-position: 0 0, 10px 10px !important;
  border-color: var(--wabiss-border) !important;
}

html.dark .chat-thread {
  background-color: var(--wabiss-card-bg) !important;
  background: var(--wabiss-card-bg) !important;
  border-color: var(--wabiss-border) !important;
}

html.dark .chat-thread:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--wabiss-border-strong) !important;
}

html.dark .chat-thread.active {
  background-color: rgba(0, 196, 140, 0.1) !important;
  background: rgba(0, 196, 140, 0.1) !important;
  border-color: var(--wabiss-primary) !important;
}

html.dark .chat-thread-top strong {
  color: #ffffff !important;
}

html.dark .chat-bubble.in {
  background-color: var(--wabiss-card-bg) !important;
  background: var(--wabiss-card-bg) !important;
  color: #ffffff !important;
  border-color: var(--wabiss-border) !important;
}

html.dark .chat-bubble.out {
  background-color: #005c4b !important;
  background: #005c4b !important;
  color: #ffffff !important;
  border-color: rgba(0, 196, 140, 0.15) !important;
}

/* --- Premium Radio Checked Selection & Choice Cards Brand Polish --- */
/* Global / Light Mode: Selected choice cards style (green theme instead of default blue) */
.btn-check:checked + label.btn,
.btn-check:checked + label.btn-outline,
.btn-check:checked + label.btn-active-light-primary,
.btn-check:checked + label.btn-active-light-success,
.btn-check:checked + label.btn-outline-dashed.btn-outline-default {
  background-color: rgba(0, 196, 140, 0.08) !important;
  background: rgba(0, 196, 140, 0.08) !important;
  border-color: #00c48c !important;
  color: #00c48c !important;
  box-shadow: 0 0 0 1px #00c48c !important;
}

.btn-check:checked + label.btn i,
.btn-check:checked + label.btn .ti {
  color: #00c48c !important;
}

/* Light Mode hover on checked */
.btn-check:checked + label.btn:hover,
.btn-check:checked + label.btn-outline:hover,
.btn-check:checked + label.btn-active-light-primary:hover,
.btn-check:checked + label.btn-outline-dashed.btn-outline-default:hover {
  background-color: rgba(0, 196, 140, 0.12) !important;
  background: rgba(0, 196, 140, 0.12) !important;
  border-color: #00c48c !important;
}

/* Dark Mode overrides: Selected choice cards style (deep dark green and white contrast) */
html.dark .btn-check:checked + label.btn,
html.dark .btn-check:checked + label.btn-outline,
html.dark .btn-check:checked + label.btn-active-light-primary,
html.dark .btn-check:checked + label.btn-active-light-success,
html.dark .btn-check:checked + label.btn-outline-dashed.btn-outline-default,
html.dark #sendModeWrap .btn-check:checked + label,
html.dark #sendModeWrap .btn-check:checked + label.btn-active-light-primary {
  background-color: #1a2c27 !important;
  background: #1a2c27 !important;
  border-color: #00c48c !important;
  color: #00c48c !important;
  box-shadow: 0 0 0 1px #00c48c !important;
}

html.dark .btn-check:checked + label.btn i,
html.dark .btn-check:checked + label.btn .ti {
  color: #00c48c !important;
}

html.dark .btn-check:checked + label.btn strong,
html.dark .btn-check:checked + label.btn .text-gray-900 {
  color: #ffffff !important;
}

html.dark .btn-check:checked + label.btn span,
html.dark .btn-check:checked + label.btn .text-muted {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Dark Mode hover on checked */
html.dark .btn-check:checked + label.btn:hover,
html.dark .btn-check:checked + label.btn-outline:hover,
html.dark .btn-check:checked + label.btn-active-light-primary:hover,
html.dark .btn-check:checked + label.btn-active-light-success:hover,
html.dark .btn-check:checked + label.btn-outline-dashed.btn-outline-default:hover,
html.dark #sendModeWrap .btn-check:checked + label:hover,
html.dark #sendModeWrap .btn-check:checked + label.btn-active-light-primary:hover {
  background-color: #1e352e !important;
  background: #1e352e !important;
  border-color: #00c48c !important;
  color: #00c48c !important;
}

/* Unchecked cards hover state in dark mode (prevent turning white/light blue) */
html.dark label.btn-outline-dashed.btn-outline-default:hover,
html.dark label.btn-active-light-primary:hover,
html.dark label.btn-active-light-success:hover,
html.dark #sendModeWrap label:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--wabiss-border-strong) !important;
}

html.dark label.btn-outline-dashed.btn-outline-default:hover strong,
html.dark label.btn-outline-dashed.btn-outline-default:hover .text-gray-900 {
  color: #ffffff !important;
}

html.dark label.btn-outline-dashed.btn-outline-default:hover span,
html.dark label.btn-outline-dashed.btn-outline-default:hover .text-muted {
  color: var(--wabiss-text-3) !important;
}



html.dark .phone-screen > div[style*="background-image"] {
  background-color: #0b141a !important;
  background-image: radial-gradient(#212130 1px, transparent 0), radial-gradient(#212130 1px, #0b141a 0) !important;
  background-size: 20px 20px !important;
  background-position: 0 0, 10px 10px !important;
}

html.dark .phone-screen .symbol-circle {
  background-color: rgba(80, 205, 137, 0.15) !important;
}

html.dark #previewBubble {
  background-color: #005c4b !important;
  background: #005c4b !important;
  color: #ffffff !important;
  border: none !important;
}

html.dark #previewBubble .wa-body-text {
  color: #ffffff !important;
}

html.dark #previewBubble .wa-footer-text {
  color: #a1a5b7 !important;
}

/* ==========================================================================
   GLOBAL BRAND THEME OVERRIDES (WhatsApp Green Theme Overrides)
   Replaces default Metronic blue with WhatsApp green (#00C48C)
   ========================================================================== */

/* Standard text & links primary overrides */
.text-primary,
html.dark .text-primary,
.text-hover-primary:hover,
html.dark .text-hover-primary:hover {
  color: #00C48C !important;
}

.link-primary,
html.dark .link-primary,
a.link-primary,
html.dark a.link-primary {
  color: #00C48C !important;
  transition: color 0.15s ease;
}

.link-primary:hover,
html.dark .link-primary:hover,
a.link-primary:hover,
html.dark a.link-primary:hover {
  color: #00ab7a !important;
}

/* Primary buttons overrides */
.btn-primary,
.btn.btn-primary,
button.btn-primary,
a.btn-primary,
html.dark .btn-primary,
html.dark .btn.btn-primary,
html.dark button.btn-primary,
html.dark a.btn-primary {
  background-color: #00C48C !important;
  background: #00C48C !important;
  border-color: #00C48C !important;
  color: #ffffff !important;
  transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn.btn-primary:hover,
button.btn-primary:hover,
a.btn-primary:hover,
html.dark .btn-primary:hover,
html.dark .btn.btn-primary:hover,
html.dark button.btn-primary:hover,
html.dark a.btn-primary:hover {
  background-color: #00ab7a !important;
  background: #00ab7a !important;
  border-color: #00ab7a !important;
  color: #ffffff !important;
}

/* Secondary outline primary buttons */
.btn-outline-primary,
.btn.btn-outline-primary,
html.dark .btn-outline-primary,
html.dark .btn.btn-outline-primary {
  color: #00C48C !important;
  border-color: #00C48C !important;
  background: transparent !important;
}

.btn-outline-primary:hover,
.btn.btn-outline-primary:hover,
html.dark .btn-outline-primary:hover,
html.dark .btn.btn-outline-primary:hover {
  color: #ffffff !important;
  background-color: #00C48C !important;
  background: #00C48C !important;
  border-color: #00C48C !important;
}

/* Active primary states (menu links, sidebar active states) */
.menu-item.here > .menu-link,
.menu-item.show > .menu-link,
.menu-link.active,
.menu-link:hover,
html.dark .menu-link.active,
html.dark .menu-link:hover {
  color: #00C48C !important;
}

.menu-link.active .menu-icon i,
.menu-link:hover .menu-icon i {
  color: #00C48C !important;
}

/* Checkboxes & Radios form controls focus */
.form-check-input:checked {
  background-color: #00C48C !important;
  border-color: #00C48C !important;
}

.form-control:focus,
.form-control-solid:focus,
.form-select:focus,
.form-select-solid:focus,
html.dark .form-control:focus,
html.dark .form-control-solid:focus,
html.dark .form-select:focus,
html.dark .form-select-solid:focus {
  border-color: #00C48C !important;
  box-shadow: 0 0 0 0.25rem rgba(0, 196, 140, 0.25) !important;
}

/* Pagination active state */
.page-item.active .page-link,
html.dark .page-item.active .page-link {
  background-color: #00C48C !important;
  border-color: #00C48C !important;
  color: #ffffff !important;
}

/* Badges readability in dark mode */
.badge-light-primary,
html.dark .badge-light-primary {
  background-color: rgba(0, 196, 140, 0.12) !important;
  color: #00C48C !important;
}

/* Bulletproof mobile header view: show only toggle sidebar, title, and theme toggler */
@media (max-width: 991.98px) {
  .header .badge,
  .header form,
  .header .btn:not(#kt_aside_mobile_toggle):not([data-theme-toggle]),
  .header a.btn:not([data-theme-toggle]) {
    display: none !important;
  }
}

/* Sidebar Footer Minimized State (Hide name, text & form; center profile badge) */
[data-kt-aside-minimize="on"] .aside:not(.aside-hoverable) #kt_aside_footer,
[data-kt-aside-minimize="on"] .aside:not(:hover) #kt_aside_footer {
  padding: 16px 0 !important;
}

[data-kt-aside-minimize="on"] .aside:not(.aside-hoverable) #kt_aside_footer .d-flex,
[data-kt-aside-minimize="on"] .aside:not(:hover) #kt_aside_footer .d-flex {
  justify-content: center !important;
  gap: 0 !important;
  width: 100% !important;
}

[data-kt-aside-minimize="on"] .aside:not(.aside-hoverable) #kt_aside_footer .flex-grow-1,
[data-kt-aside-minimize="on"] .aside:not(:hover) #kt_aside_footer .flex-grow-1,
[data-kt-aside-minimize="on"] .aside:not(.aside-hoverable) #kt_aside_footer form,
[data-kt-aside-minimize="on"] .aside:not(:hover) #kt_aside_footer form {
  display: none !important;
}

/* Hide minimized logo by default in expanded sidebar */
.aside .aside-logo .logo-minimize {
  display: none;
}

/* Show aside logo in mobile view drawer */
@media (max-width: 991.98px) {
  .aside .aside-logo {
    display: flex !important;
    height: 64px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  
  /* Hide sidebar toggle button on mobile drawer */
  .aside .aside-logo .aside-toggle {
    display: none !important;  
  }
  
  html:not(.dark) .aside-logo {
    border-bottom: 1px solid #eff2f5 !important;
  }
}





