.submit-ticket-page {
  padding-top: 2rem;
}

.contacts-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-switcher {
  padding: 1.5rem;
  background: var(--card-bg, #fff);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

.contact-switcher-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.contact-switcher-label {
  font-weight: 600;
  color: var(--heading-color);
  margin: 0;
}

.contact-switcher-select {
  flex: 1 1 250px;
}

.contact-card .card-body {
  padding: 2rem;
}

.contact-form-grid .form-group label {
  font-weight: 500;
  color: var(--heading-color);
}

.email-preferences-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem 1.5rem;
}

.email-pref-option .form-check-label {
  font-weight: 500;
  color: var(--body-color);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-actions .btn-primary {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

.contact-actions .btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: -1;
}

.contact-actions .btn-primary:hover,
.contact-actions .btn-primary:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 102, 204, 0.25);
  border-color: #000 !important;
  color: #fff !important;
}

.contact-actions .btn-primary:hover::after,
.contact-actions .btn-primary:focus::after {
  transform: translateX(0);
}

.contact-actions .btn-outline-secondary {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-actions .btn-outline-secondary:hover,
.contact-actions .btn-outline-secondary:focus {
  background: #000;
  border-color: #000 !important;
  color: #fff !important;
}

@media (max-width: 767.98px) {
  .contact-switcher-form {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-card .card-body {
    padding: 1.25rem;
  }
}

/* Password Change Page Styling */
/* ==================== CHANGE PASSWORD PAGE ==================== */

.kn-pw-wrap {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.kn-pw-form {
  flex: 1;
  min-width: 0;
  max-width: 560px;
}

/* ---- Header ---- */
.kn-pw-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--kn-border);
}

.kn-pw-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--kn-primary) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kn-pw-icon i {
  font-size: 1.375rem;
  color: var(--kn-primary);
}

.kn-pw-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--kn-text);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.kn-pw-subtitle {
  color: var(--kn-text-muted);
  margin: 0;
  font-size: 0.9rem;
}

/* ---- Labels & inputs ---- */
.kn-pw-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--kn-text);
  margin-bottom: 0.5rem;
}

.kn-pw-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.kn-pw-clear {
  background: none;
  border: none;
  color: var(--kn-text-muted);
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.kn-pw-clear:hover { color: var(--kn-primary); }

.kn-pw-input-wrap { position: relative; }

.kn-pw-input {
  padding-right: 3rem !important;
  border-radius: 8px !important;
  border: 1.5px solid var(--kn-border) !important;
  background: var(--kn-card-bg) !important;
  transition: border-color 0.15s, box-shadow 0.15s;
  background-position: right 3.5rem center !important;
}

.kn-pw-input:focus {
  border-color: var(--kn-primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--kn-primary) 12%, transparent) !important;
}

.kn-pw-input.is-valid,
.kn-pw-input.is-invalid,
.kn-pw-input.is-warning {
  background-position: right 3.5rem center !important;
  padding-right: 5rem !important;
}

.kn-pw-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--kn-text-muted);
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  line-height: 1;
  transition: color 0.15s;
}

.kn-pw-toggle:hover { color: var(--kn-primary); }

/* ---- Tips box ---- */
.kn-pw-tips {
  background: color-mix(in srgb, var(--kn-primary) 6%, transparent);
  border-left: 3px solid var(--kn-primary);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.kn-pw-tips-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--kn-text);
  margin-bottom: 0.625rem;
}

.kn-pw-tips-title i { color: var(--kn-primary); }

.kn-pw-tips-list {
  margin: 0;
  padding-left: 1.25rem;
  list-style: none;
}

.kn-pw-tips-list li {
  position: relative;
  font-size: 0.875rem;
  color: var(--kn-text-muted);
  line-height: 1.9;
}

.kn-pw-tips-list li::before {
  content: "\2022";
  position: absolute;
  left: -1rem;
  color: var(--kn-primary);
}

/* ---- Action buttons ---- */
.kn-pw-actions {
  display: flex;
  gap: 0.75rem;
}

.kn-pw-actions .btn {
  flex: 1;
  font-weight: 600;
}

/* ---- Right-hand illustration panel ---- */
.kn-pw-aside {
  flex: 0 0 280px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--kn-primary) 8%, transparent) 0%, color-mix(in srgb, var(--kn-primary) 14%, transparent) 100%);
  border: 1px solid var(--kn-border);
  border-radius: var(--kn-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.kn-pw-aside-icon {
  font-size: 4rem;
  color: var(--kn-primary);
  opacity: 0.35;
  margin-bottom: 0.5rem;
}

.kn-pw-aside-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--kn-text);
  margin: 0;
}

.kn-pw-aside-text {
  font-size: 0.875rem;
  color: var(--kn-text-muted);
  line-height: 1.6;
  margin: 0;
}

.kn-pw-aside-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  text-align: left;
  width: 100%;
}

.kn-pw-aside-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--kn-text-muted);
  padding: 0.3rem 0;
}

.kn-pw-aside-list li i {
  color: var(--kn-primary);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Hide aside on small screens */
@media (max-width: 767.98px) {
  .kn-pw-wrap { flex-direction: column; }
  .kn-pw-aside { display: none; }
  .kn-pw-form { max-width: 100%; }
  .kn-pw-actions { flex-direction: column; }
}

/* ==================== AFFILIATE PAGE STYLING ==================== */

/* Hero Section */
.affiliate-hero {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.affiliate-hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}

.affiliate-hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
}

.affiliate-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.affiliate-hero-badge i {
  font-size: 1rem;
}

/* Stat Cards */
.affiliate-stat-card {
  background: var(--card-bg, #fff);
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  height: 100%;
}

[data-bs-theme="dark"] .affiliate-stat-card {
  background: rgba(255, 255, 255, 0.03);
}

.affiliate-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 70px;
  height: 70px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.75rem;
}

.stat-icon-danger {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.stat-icon-primary {
  background: rgba(0, 102, 204, 0.1);
  color: var(--primary);
}

.stat-icon-success {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Affiliate Link Card */
.affiliate-link-card {
  background: var(--card-bg, #fff);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .affiliate-link-card {
  background: rgba(255, 255, 255, 0.03);
}

.affiliate-link-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.link-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 102, 204, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
  color: var(--primary);
}

.link-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0;
}

.link-subtitle {
  color: var(--text-muted);
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
}

.affiliate-link-input-group {
  display: flex;
  gap: 1rem;
}

.affiliate-link-input {
  flex: 1;
  border-radius: 0.75rem !important;
  border: 1.5px solid var(--border-color) !important;
  padding: 0.875rem 1.25rem !important;
  font-family: monospace;
  font-size: 0.9375rem;
}

.affiliate-link-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1) !important;
}

.affiliate-link-input-group .btn {
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Commission Cards */
.commission-card {
  background: var(--card-bg, #fff);
  border-radius: 1.25rem;
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  height: 100%;
}

[data-bs-theme="dark"] .commission-card {
  background: rgba(255, 255, 255, 0.03);
}

.commission-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.commission-icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}

.commission-pending .commission-icon {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.commission-available .commission-icon {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.commission-withdrawn .commission-icon {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
}

.commission-content {
  flex: 1;
}

.commission-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.commission-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1;
}

/* Withdrawal Section */
.affiliate-withdrawal-section {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.03) 0%, rgba(0, 102, 204, 0.01) 100%);
  border-radius: 1.25rem;
  border: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .affiliate-withdrawal-section {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.08) 0%, rgba(0, 102, 204, 0.04) 100%);
}

.btn-withdrawal {
  padding: 1rem 3rem;
  font-size: 1.125rem;
  border-radius: 0.75rem;
  font-weight: 600;
}

.withdrawal-note {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.withdrawal-note i {
  color: var(--primary);
  margin-right: 0.5rem;
}

/* Referrals Section */
.affiliate-referrals-section {
  margin-top: 3rem;
}

.section-header {
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0;
}

.status-badge {
  padding: 0.375rem 0.875rem;
  border-radius: 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-badge.status-active {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.status-badge.status-pending {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.status-badge.status-cancelled {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.alert-modern {
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  border: none;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 991.98px) {
  .affiliate-hero-title {
    font-size: 1.5rem;
  }
  
  .affiliate-hero-subtitle {
    font-size: 0.9375rem;
  }
  
  .affiliate-hero-badge {
    margin-top: 1rem;
  }
  
  .stat-value {
    font-size: 1.75rem;
  }
  
  .commission-value {
    font-size: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .affiliate-link-input-group {
    flex-direction: column;
  }
  
  .affiliate-link-input-group .btn {
    width: 100%;
  }
  
  .affiliate-stat-card,
  .commission-card {
    flex-direction: column;
    text-align: center;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}

/* Register Form Adjustments */
.tt-registration-form {
  max-width: 100%;
  max-width: 800px;
  margin-left: auto!important;
  margin-right: auto!important;
}

@media (max-width: 991.98px) {
  .tt-registration-form {
    width: 100%;
  }
}

/* ==================== WHOIS PAGE ==================== */
.whois-page {
  padding: 0 0 4rem;
}

.whois-hero {
  padding: 4rem 0 3rem;
}

.whois-eyebrow {
  font-size: clamp(2.25rem, 1.8rem + 1.5vw, 3.25rem);
  font-weight: 600;
  color: #1b1635;
  margin-bottom: 0.75rem;
}

.whois-title {
  font-size: 1.125rem;
  color: #6d6a86;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.whois-search-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.whois-search-form {
  margin-bottom: 1.5rem;
}

.whois-input-group {
  background: #fff;
  border-radius: 12px;
  padding: 0.25rem;
  border: 1px solid #dbeafe;
  box-shadow: 0 24px 55px rgba(37, 99, 235, 0.2);
  align-items: center;
}

.whois-input-group .input-group-text {
  background: transparent;
  border: none;
  color: #6f84b6;
  font-size: 1.25rem;
  padding-left: 1.5rem;
}

.whois-input-group .form-control {
  border: none;
  box-shadow: none;
  font-size: 1.05rem;
  padding: 0.85rem 1rem;
}

.whois-input-group .form-control:focus {
  box-shadow: none;
}

.whois-input-group .btn {
  border-radius: 999px;
  padding: 0.9rem 2.75rem;
  font-weight: 600;
  border: none;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.whois-secondary-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-weight: 600;
}

.whois-secondary-links a {
  color: #2563eb;
  text-decoration: none;
}

.whois-secondary-links a i {
  font-size: 0.9rem;
  margin-left: 0.35rem;
}

.redirect-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.3);
  align-items: center;
  justify-content: center;
  margin-left: 0.4rem;
  font-size: 0.75rem;
}

.whois-feature-grid {
  max-width: 1140px;
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.whois-feature {
  padding: 1rem 1.25rem;
}

.whois-feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.whois-feature h5 {
  font-weight: 500;
  color: #1b1635;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.whois-feature p {
  color: #6d6a86;
  margin-bottom: 0;
  font-size: 0.85rem;
  line-height: normal;
}

.whois-feature p a {
  color: #2563eb;
  text-decoration: underline;
}

.whois-results .container {
  max-width: 1140px;
}

.whois-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 18px 45px rgba(23, 18, 73, 0.08);
  margin-bottom: 1.5rem;
}

.whois-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 2rem 0;
}

.whois-card-meta h2 {
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
  margin-bottom: 0;
}

.whois-card-panel {
  padding: 0 2rem 1.5rem;
}

.whois-card + .whois-card {
  margin-top: 1.5rem;
}

.whois-card-toggle {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  padding-top: 1.5rem;
  font-size: 1.05rem;
}

.whois-card-toggle i {
  transition: transform 0.2s ease;
}

.whois-card-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.whois-card-body {
  border-top: 1px solid #dbe4ff;
  padding-top: 1.5rem;
}

.whois-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.whois-field-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #8c9abf;
  display: block;
  margin-bottom: 0.3rem;
}

.whois-field-value {
  font-weight: 600;
  color: #1f1c33;
}

.whois-field-stack {
  grid-column: 1 / -1;
}

.whois-registrant-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.whois-registrant-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.whois-registrant-label {
  font-weight: 600;
  color: #1f1c33;
  min-width: 120px;
  flex-shrink: 0;
}

.whois-registrant-value {
  font-weight: 400;
  color: #1f1c33;
  flex: 1;
}

.whois-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.whois-list li + li {
  margin-top: 0.25rem;
}

.whois-status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.whois-status-pill {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.whois-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.whois-pill.is-available {
  background: rgba(42, 194, 113, 0.15);
  color: #1c8d53;
}

.whois-pill.is-registered {
  background: rgba(250, 176, 5, 0.18);
  color: #b07900;
}

.whois-raw-output {
  background: #0f0b32;
  color: #f8f8ff;
  padding: 1.25rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'Courier New', Courier, monospace;
  max-height: 500px;
  overflow-y: auto;
}

.whois-suggestions-card {
  background: #fff;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 18px 45px rgba(23, 18, 73, 0.08);
}

.whois-suggestion-list {
  margin: 0;
  padding: 0;
}

.whois-suggestion-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #dbe4ff;
}

.whois-suggestion-item:last-child {
  border-bottom: none;
}

.whois-suggestion-meta h6 {
  font-weight: 600;
  color: #1f1c33;
}

.whois-suggestion-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.whois-suggestion-price .old-price {
  text-decoration: line-through;
  color: #9aa5c8;
  font-size: 0.85rem;
}

.whois-save-badge {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 600;
}

.whois-cart-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #c7dbff;
  background: transparent;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.whois-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  padding: 0;
  margin-top: 1rem;
}

.whois-view-all::after {
  content: '\f061';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 0.85rem;
}

@media (max-width: 991.98px) {
  .whois-card-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .whois-secondary-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .whois-feature-grid {
    margin-top: 2rem;
  }
}

@media (max-width: 575.98px) {
  .whois-input-group {
    flex-direction: column;
    border-radius: 1.5rem;
  }

  .whois-input-group .btn,
  .whois-input-group .form-control,
  .whois-input-group .input-group-text {
    width: 100%;
    border-radius: 1rem !important;
  }

  .whois-input-group .input-group-text {
    justify-content: flex-start;
    padding-left: 1.25rem;
  }

  .whois-input-group .btn {
    margin-top: 0.75rem;
  }

  .whois-card-panel {
    padding: 0 1.25rem 1.5rem;
  }
}

/* Hero Section */
.hero-support {
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  min-height: 60vh;
  display: flex;
  align-items: center;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 2rem;
}

.support-illustration {
  position: relative;
  padding: 2rem;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.element {
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  animation: float 3s ease-in-out infinite;
}

.element-1 {
  top: 20%;
  right: 20%;
  animation-delay: 0s;
}

.element-2 {
  bottom: 30%;
  left: 15%;
  animation-delay: 1s;
}

.element-3 {
  top: 60%;
  right: 40%;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Support Options Section */
.support-options {
  background-color: #f8f9fa;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.support-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.support-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.support-card-header h5 {
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.support-card-body p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.support-card-footer {
  margin-top: auto;
}

/* Custom button colors */
.btn-outline-primary { 
  border-color: var(--primary);
  color: var(--primary); 
  padding: 6px 16px!important;
}
.btn-outline-primary:hover { background-color: var(--primary); border-color: var(--primary); }

.btn-outline-danger { border-color: #dc3545; color: #dc3545; }
.btn-outline-danger:hover { background-color: #dc3545; border-color: #dc3545; }

.btn-outline-success { border-color: #28a745; color: #28a745; }
.btn-outline-success:hover { background-color: #28a745; border-color: #28a745; }

.btn-outline-info { border-color: #17a2b8; color: #17a2b8; }
.btn-outline-info:hover { background-color: #17a2b8; border-color: #17a2b8; }

.btn-outline-warning { border-color: #ffc107; color: #ffc107; }
.btn-outline-warning:hover { background-color: #ffc107; border-color: #ffc107; color: #212529; }

.btn-outline-purple { border-color: #6f42c1; color: #6f42c1; }
.btn-outline-purple:hover { background-color: #6f42c1; border-color: #6f42c1; color: white; }

.text-purple { color: #6f42c1 !important; }

/* Contact Form Section */
.contact-form-section {
  background: #ffffff;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.contact-form-wrapper {
  border-radius: 1.5rem !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
}

.modern-contact-form .form-group {
  position: relative;
}

.modern-contact-form .form-control {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 16px;
  height: auto;
  font-size: 14px;
  line-height: 1.5;
  background-color: #f8f9fa;
  transition: all 0.2s ease;
}

.modern-contact-form .form-control:focus {
  border-color: var(--primary);
  background-color: #fff;
  box-shadow: none;
}

.modern-contact-form .form-control::placeholder {
  color: #6c757d;
  font-size: 14px;
}

.modern-contact-form textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.modern-contact-form small {
  font-size: 12px;
  color: #6c757d;
}

.modern-contact-form small i {
  font-size: 11px;
  opacity: 0.8;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0056b3 100%);
    border: none;
    padding: 6px 16px !important;
    font-weight: 400;
    font-size: 14px;
    align-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.cf-turnstile {
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .support-card {
    padding: 1.5rem;
  }
  
  .contact-form-wrapper {
    padding: 2rem !important;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .support-card {
    padding: 1rem;
  }
}

/* =========================
   GLOBAL / BASE
========================= */

/* Ensure the font is loaded somewhere in your layout:
<link href="https://fonts.googleapis.com/icon?family=Material+Icons+Outlined" rel="stylesheet">
*/

.btn-outline-light {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-light:hover {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--blue);
}

.table-sm td, .table-sm th {
  padding: 8px 20px!important;
}

.host-ft { font-size:.95rem; }
.host-ft .ft-title { color: var(--footer-text)!important; text-transform:uppercase; font-weight:700; letter-spacing:.02em; }
.host-ft .ft-list { list-style:none; margin:.75rem 0 0; padding:0; }
.host-ft .ft-list li { margin:.35rem 0; }
.host-ft .ft-list a, .host-ft .ft-legal a { color: var(--footer-text)!important; text-decoration:none; }
.host-ft .ft-list a:hover, .host-ft .ft-legal a:hover { color: var(--primary)!important; text-decoration:none; }
.host-ft .ft-divider { border-color: var(--primary-light);}
.host-ft .ft-legal .list-inline-item + .list-inline-item { margin-left:1rem; }
.host-ft .ft-langcur {
  border-color: var(--primary);
  color: var(--primary) !important;
}

#header {
  position: relative;
  z-index: 1200;
  background-color: transparent !important;
  overflow: visible;
}

#header.tt-header.affix {
  position: fixed;
}

#header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  pointer-events: none;
  z-index: -1;
}

footer.footer .copyright {
  margin: 30px 0;
    margin-bottom: 30px;
  font-size: .85rem;
  text-align: left;
  color: var(--footer-text);
}

/* Base: show the light logo, hide the dark one */
.host-ft .ft-logo { height:70px; width:auto; margin-right: 20px; }
.host-ft .ft-logo-light { display:inline-block; }
.host-ft .ft-logo-dark  { display:none; }

/* Dark-mode ON — support Bootstrap 5.3, generic data-theme, and any class containing "dark" */
[data-bs-theme="dark"] .host-ft .ft-logo-light {
  display: none;
}

[data-bs-theme="dark"] .host-ft .ft-logo-dark {
  display: inline-block;
}

/* Payment icons */
.host-ft .ft-payments { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem .75rem; list-style:none; padding:0; margin:0!important; }
.host-ft .ft-payments img {
  height: 35px;
  width: auto;
  display: block;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}
@media (max-width: 991.98px){
  .host-ft .ft-legal { float:none !important; }
}

.view-cart-items.tt-view-cart-items {
  padding: 30px;
}

.tt-main-header #Primary_Navbar-Store .dropdown-menu li a:before {
    display: none;
}

.tt-main-header #Primary_Navbar-Store .dropdown-menu li a:hover {
  margin:0!important;
}

/* Keep desktop dropdowns above hero content */
.tt-header .tt-main-header .dropdown-menu {
  position: absolute;
  z-index: 1300;
}

.sidebar .card-footer {
  border-top: none;
  background-color: var(--card-bg);
}

.card-body {
  padding: 20px!important;
  background-color: var(--card-bg) !important;
  border-radius: var(--custom-radius);
}

.client-area-card {
  background-color: aliceblue;
}

.card-body:nth-child(even) {
  border-radius: 0 0 16px 16px;
}

/* Apply this class only to tables you want rounded */
.table-rounded {
  background: #fff;               /* white background for the whole table */
  border: 1px solid #e6e6e6;      /* subtle border */
  border-radius: 16px;            /* all 4 corners rounded */
  overflow: hidden;               /* makes header/body respect radius */
}

.table-striped tbody tr:nth-of-type(2n+1) {
  background-color: var(--card-bg);
}

/* Optional: simplify table-bordered inner borders */
.table-rounded.table-bordered > :not(caption) > * > * {
  border-width: 0 0 1px 0;          /* only horizontal lines */
}
.table-rounded.table-bordered > :not(caption) > *:last-child > * {
  border-bottom-width: 0;
}

/* Cell padding/background only for body cells */
.table-rounded tbody td {
  background: #fff;
  padding: 30px;
}

.table-bordered {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color)!important;
}

[data-bs-theme="dark"] .table-bordered th > tr {
  border: 1px solid #ff6900!important;
}

[data-bs-theme="dark"] .table-list > tbody > tr > td {
  background-color: var(--card-bg) !important;
}

[data-bs-theme="dark"] .form-control {
  border-color: var(--border-color) !important;
  background-color: var(--dark) !important;
}

/* --- Corners: only the very last row gets rounded --- */
.table-rounded tbody tr:last-child > td:first-child {
  border-bottom-left-radius: 16px;
}
.table-rounded tbody tr:last-child > td:last-child {
  border-bottom-right-radius: 16px;
}

/* Single-colspan “empty state” row: round both bottom corners */
.table-rounded tbody tr:last-child > td[colspan],
.table-rounded tbody tr:last-child > td:only-child {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

/* Actions column: wider, no wrap, and nice layout */
.table-rounded thead th:last-child,
.table-rounded tbody td:last-child {
  min-width: 280px;                 /* adjust as needed */
  white-space: nowrap;
}

.table-rounded tbody td:last-child {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.sidebar .list-group-item {
  border-left: 0 !important;
  background: var(--card-bg) !important;
  border-radius: 0; /* default */
  padding: 10px 26px!important;
}

/* Override when there's only one item */
.sidebar .list-group-item:only-child {
  border-radius: 0!important; 
}

.sidebar .list-group-item:last-child {
  border-radius: 0 0 16px 16px; /* rounded bottom */
}

.list-group-item:last-child {
  border-bottom-right-radius: 16px;
  border-bottom-left-radius: 16px;
}

.btn-success {
  color: #fff;
  background-color: #007AFF;
  border-color: #007AFF;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.active,
.show > .btn-success.dropdown-toggle {
  color: #fff;
  background-color: #005CC0;
  border-color: #005CC0;
  box-shadow: none; /* optional: remove bootstrap's default focus shadow */
}

[data-bs-theme="dark"] body {
    height: auto;
}

.card {
    border-radius: var(--custom-radius);
    border-color: var(--border-color) !important;
}
.home-domain-search .input-group .form-control {
  border-radius: 8px 0 0 8px !important;
  font-size: 14px;
  height: 42px;
  line-height: 42px;
}

.home-domain-search .input-group .btn-primary {
  border-radius: 0 8px 8px 0 !important;
  font-size: 14px;
  font-weight: 400;
  height: 42px;
}

/* Override any Bootstrap input group styles */
.home-domain-search .input-group > .form-control:not(:last-child) {
  border-radius: 8px 0 0 8px !important;
}

.home-domain-search .input-group > .input-group-append > .btn {
  border-radius: 0 8px 8px 0 !important;
}

.card-header:first-child {
  padding: 15px 20px;
}

.card-sidebar {
  border: 1px solid var(--border-color);
  box-shadow: none;
  background-color: var(--card-bg)!important;
}

[data-bs-theme="dark"] .panel .card-header {
  background-color: var(--primary-light)!important;
}

[data-bs-theme="dark"] .client-home-cards .card-header {background-color: var(--primary-light)!important;}

[data-bs-theme="dark"] .tt-client-home-cards .card-header h3, .panel .panel-heading h3 {
  color: var(--primary-dark);
}

[data-bs-theme="dark"] .landing-page .pricing-item {
  border: 1px solid var(--primary)!important;
  border-radius: var(--custom-radius);
  background: var(--card-bg)!important;
}

.landing-page .pricing-item .price {
  color: var(--body-color)!important;
}

.landing-page .trusted-by {
  display: none!important;
}

.card-header {
  display: flex;
  align-items: center;      /* vertically centers children */
  gap: 15px;                /* space between button and title */
  border-radius: 15px 15px 0 0!important;
}

.card-header .btn {
  flex-shrink: 0;           /* keep button size fixed */
}

.card-header .card-title {
  display: flex;
  align-items: center;      /* icon + text inside title aligned */
  margin: 0;
  font-weight: 600;
}

.card-header .card-title i {
  margin-left: 8px;         /* spacing between icon and text */
}

body {background-color: var(--light) !important; height: auto!important;}

section#main-body {
  padding: 0!important;
}

/* Light theme */
.tiles .tile {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
}

.tiles .tile:hover .title,
.tiles .tile:hover .title a {
  color: var(--primary);
}


[data-bs-theme="dark"] .tiles .tile .stat {
  color: var(--primary);
}

[data-bs-theme="dark"] .tiles .tile .title,
[data-bs-theme="dark"] .tiles .tile .title a {
  color: var(--primary-light);
  transition: color .15s ease; /* smooth hover */
}

/* Hover effects in dark theme */
[data-bs-theme="dark"] .tiles .tile:hover {
  background: var(--card-bg);
  border: 1px solid var(--primary)!important;
}

[data-bs-theme="dark"] .tiles .tile:hover .title,
[data-bs-theme="dark"] .tiles .tile:hover .title a {
  color: var(--primary);
}

/* Icons */
[data-bs-theme="dark"] .fad::before,
[data-bs-theme="dark"] .fad::after {
  color: var(--primary);
}


/* Website Builder (Weebly) submenu icon */
#Primary_Navbar-Services-WebsiteBuilderLink > a::before,
li[menuitemname="WebsiteBuilderLink"] > a::before {
  font-family: "Material Icons Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  display: inline-block;
  vertical-align: text-bottom;
  margin-right: 6px;

  /* Material Icons use ligatures — the text below becomes the glyph */
  content: "web";
  /* (Optional) improve ligature rendering */
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
}

.dropdown-menu-right {
  right: -60px;
}

.modal-content {
  background-color: var(--primary-darker)!important;
  border-radius: 16px;
}

.primary-content {padding-top: 2rem!important;}

.tt-breadcrumb {
  position: initial;
  background: none;
  border-radius: 0;
}

.tt-breadcrumb ol {
  padding: 0.5rem 0;
}

.btn-group, .btn-group-vertical {
  gap: 20px;
}

/* Hide MarketConnect's duplicate top-level Website Security tab */
#Primary_Navbar-Website_Security { display: none !important; }

.cart-btn {margin-bottom: 4px;}

.list-group-item .list-group-item-action .active .list-group-item-action:hover {
    color: #fff;
}

.header-text {
 color: var(--header-text);
}

.tt-page-header-info p {
  color: var(--heading-color);
}

.truncate {
    white-space: wrap !important;
}

/* Trim default navbar padding */
.navbar { padding: 0rem 1rem; }

/* Remove extra header padding from theme */
.tt-header:not(.tt-double-header) { padding: 0 !important; }

/* Hero title scale */
.hero-title {
  font-size: clamp(2rem, 1.6415rem + 1.5094vw, 3rem);
  line-height: 1.15;
}

.nav-tabs .nav-link.active {
  color: var(--primary);
}

#order-standard_cart .cart-body {
  gap: 20px;
  display: flex!important;
  flex-direction: column!important;
}

.tt-single-product {
  text-align: left !important;
  padding: 30px;
  border: 1px solid #e6e6e6;
  background: var(--card-bg);
  margin-bottom: 40px;
}

[data-bs-theme="dark"] .tt-single-product {
  border-color: var(--primary);
}



.tt-single-product:has(.tt-featured-badge) {
  position: relative;
  border-color: transparent !important;
}

.tt-single-product:has(.tt-featured-badge)::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid var(--primary);
  border-radius: var(--custom-radius);
  pointer-events: none;
  z-index: 2;
}

.badge-corner {
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  background-color: var(--card-bg);
  padding-block-start: 2rem;
  border-inline-start: 4px solid var(--primary);
  border-inline-end: 4px solid var(--primary);
  width: 100%;
  position: absolute;
  top: 0;
  margin-bottom: 50px;
  z-index: 10;
  left: 0;
}

.btn {
  border-radius: 6px!important;
  position: relative;
  overflow: hidden;
  z-index: 1;
  white-space: nowrap;
  width: auto;
align-content: center;
}

.btn.btn-primary,
body .btn-primary,
.home-domain-search .btn-primary,
.input-group .btn-primary {
    position: relative;
    transition: all 0.3s ease;
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn.btn-primary::before,
body .btn-primary::before,
.home-domain-search .btn-primary::before,
.input-group .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #000;
    transition: all 0.3s ease;
    z-index: -1;
}

.btn.btn-primary:hover::before,
body .btn-primary:hover::before,
.home-domain-search .btn-primary:hover::before,
.input-group .btn-primary:hover::before,
.btn.btn-primary:focus::before,
body .btn-primary:focus::before,
.home-domain-search .btn-primary:focus::before,
.input-group .btn-primary:focus::before {
    right: 0;
}

.btn.btn-primary:hover,
body .btn-primary:hover,
.home-domain-search .btn-primary:hover,
.input-group .btn-primary:hover,
.btn.btn-primary:focus,
body .btn-primary:focus,
.home-domain-search .btn-primary:focus,
.input-group .btn-primary:focus {
    border-color: #000 !important;
    color: #fff !important;
    box-shadow: none !important;
}

.btn-outline-primary:hover, .btn-outline-primary:active, .btn-outline-primary:focus {
  background-color: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}

.btn-order-now {
    width:100%!important;
    background: var(--primary-btn-bg) !important;
    border-color: var(--primary) !important;
}

.btn-order-now:hover, .btn-order-now:active, .btn-order-now:focus {
  background-color: #000 !important;
  border-color: #000 !important;
}

.hosting-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hosting-features li {
    display: flex;
    align-items: center;
    margin-bottom: 8px; /* adjust spacing between items */
}
.hosting-features i.material-icons {
    font-size: 20px;
    color: #007bff; /* blue to match theme */
    margin-right: 10px;
}

/* Containers and desktop spacing */
@media (min-width: 1200px) {
  .tt-container,
  .theme-container,
  .container,
  .container-lg,
  .container-xl,
  .container-xxl { max-width: 1536px; }
  .tt-hero { margin-top: -130px; }
  .navbar-expand-xl .navbar-nav { gap: 20px; }
  .navbar-nav { align-items: center; }
}

/* Pull the “domain hero” search block upward with styling */
.domain-hero-bar { margin-top: -90px; position: relative; z-index: 5; }
.domain-hero-bar .container,
.domain-hero-bar .domain-search-wrap,
.domain-hero-bar .card,
.domain-hero-bar .tt-domain-card {
  border-radius: var(--custom-radius);
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}
.domain-hero-bar [class*="ptb-"], .domain-hero-bar .ptb-60 {
  padding-top: 28px !important;
  padding-bottom: 28px !important;
}
@media (min-width: 992px) {
  .domain-hero-bar { margin-top: -340px; }
  .tt-color-switch { top: 15px; }
}
.bg-domain-hero { background-color: #1c40f2f0 !important; }
.container { box-shadow: none !important; }

/* Kill theme’s full-page loader completely */
#fullpage-overlay,
#fullpage-overlay.show,
#fullpage-overlay.active,
#fullpage-overlay[style]{
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/* Header overlay for mobile drawer */
.tt-header .overlay { display: none; opacity: 0; transition: opacity .2s ease; }
.tt-header .tt-main-header ul li a {font-size: 14px!important;}
.offcanvas-active .tt-header .overlay { display: block; opacity: .6; }

/* Desktop header toolbar search icon – size and nudge */
#dropdownMenuButton .material-icons-outlined {
  font-size: 24px !important;
  position: relative;
  top: 5px;
}

/* Notification red dot */
.tt-notification .tt-circle {
  position: absolute;
  width: 10px; height: 10px; border-radius: 100%;
  transform: scale(1);
  background-color: var(--danger);
  animation: pulse-red 5s infinite;
  top: 1px; left: 11px;
}

/* Material Symbols (outlined, round-friendly) */
.mi, .material-icons-outlined {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  vertical-align: middle;
  /* Outline style and crisp look */
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.mi { font-size: 18px; margin-right: 6px; }
.material-icons-outlined { font-size: 20px !important; vertical-align: -5px !important; }

/* Fill icon on hover/focus/active */
.navbar-nav .nav-item > a:hover .mi,
.offcanvas-collapse .navbar-nav .nav-item > a:hover .mi,
.navbar-nav .nav-item > a:focus .mi,
.navbar-nav .nav-item.active > a .mi,
.navbar-nav .nav-item > a.active .mi {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  color: #000;
}

/* Align icons with labels neatly */
.navbar-nav .nav-item > a { display: inline-flex; align-items: center; gap: 8px; }
.offcanvas-collapse .navbar-nav .nav-item > a { display: flex; align-items: center; gap: 12px; }

/* Make Announcements icon slightly larger */
.mi-campaign-big { font-size: 24px !important; vertical-align: -7px !important; }

/* Cart badge position */
.tt-cart-badge { left: 17px; top: 5px; }

/* =========================
   DESKTOP MENUS (≥1200px)
   - Hover bridge (no gap close)
   - Chevron
========================= */
@media (min-width: 1200px) {

  /* Place menu right under toggle & remove transform gaps */
  .navbar-nav > .dropdown { position: relative; }
  .navbar-nav > .dropdown > .dropdown-menu {
    margin-top: 16px !important;
    top: 100% !important;
    transform: none !important;
    position: absolute !important;
    z-index: 1300 !important;
  }

  /* Invisible hover “bridge” to keep menu open while moving cursor down */
  .navbar-nav > .dropdown::after {
    content: "";
    position: absolute;
    left: -8px; right: -8px;
    top: 100%;
    height: 28px;
    background: transparent;
  }

  /* Show menu on hover (theme-safe) */
  .navbar-nav > .dropdown:hover > .dropdown-menu {
    display: block;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  /* Remove Bootstrap caret; add Material chevron */
  .navbar-expand-xl .navbar-nav > .dropdown > .dropdown-toggle::after { display: none !important; }
  .navbar-expand-xl .navbar-nav > .dropdown > .dropdown-toggle {
    position: relative; padding-right: 18px;
  }
  .navbar-expand-xl .navbar-nav > .dropdown > .dropdown-toggle::before {
    content: "expand_more";
    font-family: 'Material Symbols Outlined';
    font-size: 18px; line-height: 1;
    position: absolute; right: 0; top: 60%;
    transform: translateY(-50%);
    pointer-events: none;
    color: inherit;
    transition: transform .25s ease;
  }
  .navbar-expand-xl .navbar-nav > .dropdown.show > .dropdown-toggle::before,
  .navbar-expand-xl .navbar-nav > .dropdown:hover > .dropdown-toggle::before {
    transform: translateY(-50%) rotate(180deg);
  }
}

/* =========================
   MOBILE / OFF-CANVAS (≤1199.98px)
   - Left aligned
   - Icons visible
   - Material chevrons
   - Account shows: [icon] Hello ▾
========================= */
@media (max-width: 1199.98px) {

  /* general header tweaks */
  .dropdown-toggle { display: flex; align-items: center; }
  .tt-toolbar-wrap:not(.tt-double-header .tt-toolbar-wrap) {
    justify-content: flex-end !important;
    margin-right: -2px;
  }

.cart-btn {margin-bottom: 0;}

  /* Add spacing between menu items in the off-canvas drawer */
.offcanvas-collapse ul > li {
  margin-bottom: 20px;   /* adjust value */
}

  .offcanvas-collapse #nav{
    display:flex;
    flex-direction:column;
    min-height:calc(100vh - 120px); /* tweak for your header height */
  }
  .offcanvas-collapse #nav .tt-logout-li{ margin-top:auto; }

/* Don’t add extra space after the last item */
.offcanvas-collapse ul > li:last-child {
  margin-bottom: 0;
}

  /* bell dot (smaller, no animation) */
  .tt-notification .tt-circle {
    width: 10px; height: 10px; animation: none;
    top: 1px; left: 11px;
  }

  /* Hide "switch account" control in mobile top bar (it appears as a black bar artifact) */
  header.header .topbar li.active-client {
    display: none !important;
  }

  /* ----- Account (logged-in) label: [icon] Hello ----- */
  #Secondary_Navbar-Account { display: flex !important; }
  #Secondary_Navbar-Account > a {
    font-size: 0 !important;   /* hide original text node */
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    position: relative;
  }

  /* render a clean mobile label with chevron */
  #Secondary_Navbar-Account > a::before {
    content: "Hello \25BE";
    font-size: 14px;
    line-height: 1;
    vertical-align: middle;
  }

  /* Hide Bootstrap/theme carets on account link in mobile */
  #Secondary_Navbar-Account > a::after,
  #Secondary_Navbar-Account > a.dropdown-toggle::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
    margin: 0 !important;
  }

  /* Remove legacy active-client span underline/bar artifact on mobile */
  header.header .topbar .active-client .btn.btn-active-client span {
    border-bottom: 0 !important;
  }

  #Secondary_Navbar-Account > a > span {
    border: 0 !important;
    display: none !important;
    text-decoration: none !important;
  }

  /* ----- Off-canvas list alignment & spacing ----- */
  .offcanvas-collapse .navbar-nav > li > a,
  .offcanvas-collapse .navbar-nav .nav-link {
    display: flex; align-items: center; justify-content: flex-start;
    text-align: left; gap: 10px; padding-left: .5rem;
  }

  /* Material icons in drawer */
  .offcanvas-collapse .navbar-nav .material-icons,
  .offcanvas-collapse .navbar-nav .material-icons-outlined {
    display: inline-block; line-height: 1; vertical-align: middle;
    font-size: 20px; margin-right: 6px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  }

  /* Drawer submenus: hidden until .show */
  .offcanvas-collapse .dropdown-menu { display: none; }
  .offcanvas-collapse .dropdown.show > .dropdown-menu,
  .offcanvas-collapse .dropdown-menu.show { display: block; }

  /* Replace Bootstrap caret with Material chevron on mobile too */
  .offcanvas-collapse .dropdown-toggle::after { display: none !important; }
  .offcanvas-collapse .dropdown-toggle::after {border: none!important; margin-left: -15px; margin-right: 5px;}
  .offcanvas-collapse .dropdown > .dropdown-toggle {
    position: relative; padding-right: 18px;
  }
  .offcanvas-collapse .dropdown > .dropdown-toggle::before {
    content: "expand_more";
    font-family: 'Material Symbols Outlined';
    font-size: 18px; line-height: 1;
    position: absolute; right: 2px; top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: inherit;
    transition: transform .25s ease;
  }
  .offcanvas-collapse .dropdown.show > .dropdown-toggle::before {
    transform: translateY(-50%) rotate(180deg);
  }
}
/* desktop automatically keeps the original “Hello, Jeff!” */

/* =========================
   LOGO: light/dark handling
========================= */
.logo-dark { display: none; }
html[data-theme="dark"] .logo-light,
body.dark .logo-light,
body.theme-dark .logo-light { display: none; }
html[data-theme="dark"] .logo-dark,
body.dark .logo-dark,
body.theme-dark .logo-dark { display: inline; }
.logo-img { height: 60px; width: auto; }
html[data-bs-theme="dark"] .logo-light { display: none !important; }
html[data-bs-theme="dark"] .logo-dark  { display: inline-block !important; }


/* ================================
   Cross-browser compat layer
   (add at the very end of custom.css)
   ================================ */

/* 1) Normalize text size adjust (fixes -webkit-text-size-adjust value) */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Helpful default bg so RDM dark-mode emulation doesn't render pure black */
  background: #fff;
}

/* 2) Standard placeholder styling (instead of ::-ms-input-placeholder) */
::placeholder { color: #8a8a8a; opacity: 1; }

/* 3) Modern select styling (instead of :-ms-expand / :-ms-value) */
select {
  -webkit-appearance: none;
  appearance: none;
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 1rem auto;
  padding-right: 2rem; /* room for arrow */
}
/* Simple inline SVG chevron (light theme); adjust color as needed */
select {
  background-image:
    url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M7 10l5 5 5-5' fill='none' stroke='%23888' stroke-width='2'/>\
</svg>");
}

/* 4) Range inputs (standards-based; replaces ::-ms-thumb/track etc.) */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
}
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: #e5e7eb; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%; background: #0d1529; margin-top: -6px;
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 999px; background: #e5e7eb; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #0d1529; border: 0; }

/* 5) Standard border-radius props (instead of -moz-border-radius-*) */
.border-bl { border-bottom-left-radius: 16px !important; }
.border-br { border-bottom-right-radius: 16px !important; }

/* 6) Standard multi-column (instead of -moz-column-*) */
.multicol-2 { column-count: 2; column-gap: 2rem; }
.multicol-3 { column-count: 3; column-gap: 2rem; }

/* 7) Retina/HiDPI media queries (replace -o-/device-pixel-ratio) */
/* Use these for any high-res tweaks you need */
@media (min-resolution: 2dppx) {
  .hidpi-upscale img { image-rendering: -webkit-optimize-contrast; }
}

/* 8) Replace jQuery :visible usage in CSS with a class (CSS cannot parse :visible) */
/* Have JS toggle .is-visible (or [data-visible="true"]) instead of relying on :visible in CSS */
.is-visible { display: block !important; }
[data-visible="true"] { display: block !important; }

/* 9) Desktop hover dropdowns (safe, standards-based — keeps theme behavior consistent) */
@media (min-width: 1200px) {
  .navbar .dropdown:hover > .dropdown-menu { display: block; visibility: visible; opacity: 1; }
}

/* 10) Guard against horizontal overflow from inflexible nav rows on mobile */
@media (max-width: 1199.98px) {
  .navbar .container { flex-wrap: nowrap !important; }
  .navbar .container > * { min-width: 0; }
}

/* =========================
   MODERN CLIENT AREA HOMEPAGE
   Hostinger-inspired design
========================= */

/* Welcome Section */
.client-area-welcome {
  padding: 2rem 0 1rem;
}

.welcome-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--heading-color);
  margin: 0;
}

/* Stats Cards Grid */
.client-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
  text-decoration: none;
}

.stat-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, #0056b3 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.stat-card-icon i {
  font-size: 24px;
}

.stat-card-content {
  flex: 1;
  min-width: 0;
}

.stat-card-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.stat-card-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1;
}

.stat-card-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.2s ease;
}

.stat-card:hover .stat-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Section Heading */
.section-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 1.5rem;
}

/* Widgets Section */
.widgets-section {
  margin-bottom: 3rem;
}

.widgets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.widget-full-width {
  grid-column: 1 / -1;
}

.widget-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.widget-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 8px 8px 0 0;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.2s ease;
}

.widget-header:hover {
  background: rgba(0, 0, 0, 0.02);
}

[data-bs-theme="dark"] .widget-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.widget-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.widget-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--heading-color);
  margin: 0;
  line-height: 1.3;
  min-width: 0;
}

.widget-badge {
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 12px;
  line-height: 1;
}

.widget-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.widget-actions .btn {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collapse-icon {
  color: var(--text-muted);
  transition: transform 0.3s ease;
  font-size: 24px;
}

.widget-header[aria-expanded="false"] .collapse-icon {
  transform: rotate(-90deg);
}

.widget-collapse-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-color);
  background: transparent;
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.widget-collapse-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-bs-theme="dark"] .widget-collapse-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

.widget-collapse-toggle[aria-expanded="false"] .collapse-icon {
  transform: rotate(-90deg);
}

.widget-body {
  padding: 1.5rem;
}

.widget-list {
  display: flex;
  flex-direction: column;
}

.widget-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--body-color);
  transition: all 0.2s ease;
}

.widget-list-item:last-child {
  border-bottom: none;
}

.widget-list-item:hover {
  background: rgba(0, 0, 0, 0.02);
  text-decoration: none;
}

[data-bs-theme="dark"] .widget-list-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.widget-list-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.widget-list-content i {
  color: var(--text-muted);
  font-size: 20px;
}

.widget-list-content span {
  font-size: 0.9375rem;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.widget-list-badge {
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  margin-left: 0.5rem;
}

.widget-list-item > i {
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
}

.widget-list-item:hover > i {
  opacity: 1;
  transform: translateX(0);
}

.widget-footer {
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .widget-footer {
  background: rgba(255, 255, 255, 0.02);
}

/* Responsive Design */
@media (min-width: 768px) {
  .client-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .client-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .client-stats-grid .stat-card {
    min-height: 100%;
  }
}

@media (min-width: 1200px) {
  .client-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .widgets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .welcome-title {
    font-size: 1.75rem;
  }
  
  .stat-card {
    padding: 1.25rem;
  }
  
  .stat-card-icon {
    width: 40px;
    height: 40px;
  }
  
  .stat-card-icon i {
    font-size: 20px;
  }
  
  .stat-card-value {
    font-size: 1.5rem;
  }
  
  .widget-header {
    padding: 1rem 1.25rem;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  
  .widget-title {
    font-size: 1rem;
  }

  .widget-title-wrapper {
    width: 100%;
  }

  .widget-title-wrapper i {
    flex-shrink: 0;
  }
  
  .widget-actions .btn {
    font-size: 0.8125rem;
    padding: 0.4rem 0.75rem !important;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }

  .widget-actions {
    width: 100%;
    gap: 0.5rem;
  }

  .widget-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  .widget-actions .collapse-icon {
    margin-left: auto;
    flex-shrink: 0;
  }

  .widget-body,
  .widget-footer,
  .widget-list-item {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* =========================
   UNIFIED MODERN SIDEBAR
   Single card navigation
========================= */

/* Main Unified Sidebar Container */
.unified-sidebar {
  margin-bottom: 2rem;
  max-width: 310px;
}

.unified-sidebar-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.unified-sidebar-nav {
  display: flex;
  flex-direction: column;
}

.promo-banner-rounded {
border-radius: 12px;
}

/* Sidebar Sections */
.sidebar-section {
  border-bottom: 1px solid var(--border-color);
}

.sidebar-section:last-child {
  border-bottom: none;
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  background: var(--card-bg);
}

.sidebar-section-header:hover {
  background: rgba(0, 0, 0, 0.02);
}

[data-bs-theme="dark"] .sidebar-section-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.sidebar-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.sidebar-section-icon {
  color: var(--text-muted);
  font-size: 18px;
}

.sidebar-section-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--heading-color);
}

.sidebar-section-badge {
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  margin-left: 0.5rem;
}

.sidebar-section-chevron {
  color: var(--text-muted);
  font-size: 20px;
  transition: transform 0.3s ease;
}

.sidebar-section-header[aria-expanded="false"] .sidebar-section-chevron {
  transform: rotate(-90deg);
}

/* Section Content */
.sidebar-section-content {
  background: var(--card-bg);
}

.sidebar-section-body {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-menu-items {
  display: flex;
  flex-direction: column;
}

/* Menu Items */
.sidebar-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem 0.875rem 1.75rem;
  text-decoration: none;
  color: var(--body-color);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  position: relative;
}

[data-bs-theme="dark"] .sidebar-menu-item {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.sidebar-menu-item:last-child {
  border-bottom: none;
}

.sidebar-menu-item:hover {
  background: rgba(0, 0, 0, 0.02);
  text-decoration: none;
  color: var(--primary);
}

[data-bs-theme="dark"] .sidebar-menu-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.sidebar-menu-item.active {
  background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.1) 0%, transparent 100%);
  color: var(--primary);
  border-left: 3px solid var(--primary);
  padding-left: calc(1.25rem - 3px);
}

.sidebar-menu-item.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.sidebar-menu-item-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.sidebar-menu-item-icon-wrapper {
  position: relative;
  flex-shrink: 0;
}

.sidebar-menu-item-icon {
  color: var(--text-muted);
  font-size: 16px;
  transition: color 0.2s ease;
}

.sidebar-menu-item:hover .sidebar-menu-item-icon,
.sidebar-menu-item.active .sidebar-menu-item-icon {
  color: var(--primary);
}

.sidebar-menu-item-label {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-menu-item-badge {
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  width: 50px;
  height: 25px;
  padding: 0;              /* not needed if we center with flex */
  border-radius: 5px;
  display: flex;           /* make the badge a flex container */
  align-items: center;     /* vertical center */
  justify-content: center; /* horizontal center */
  text-align: center;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.sidebar-menu-item-arrow {
  color: var(--text-muted);
  font-size: 16px;
  display: none;
}

/* MarketConnect promo blocks (e.g., Weebly) */
.sidebar .promo-container,
.sidebar .mc-promo-login,
.sidebar .mc-promo-manage {
  text-align: center;
}

.sidebar .sidebar-single-item-body {
  text-align: left;
}

.sidebar .sidebar-single-item-body img {
  max-width: 140px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 0.75rem;
  object-fit: contain;
}

.sidebar .promo-container .logo,
.sidebar .mc-promo-login .logo,
.sidebar .mc-promo-manage .logo {
  width: 100%;
  max-width: 150px;
  margin: 0 auto 1rem;
}

.sidebar .promo-container img,
.sidebar .mc-promo-login .logo img,
.sidebar .mc-promo-manage .logo img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* Static Menu Items (non-clickable) */
.sidebar-menu-item-static {
  cursor: default;
}

.sidebar-menu-item-static:hover {
  background: transparent;
  color: var(--body-color);
}

/* Section Footer */
.sidebar-section-footer {
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .sidebar-section-footer {
  background: rgba(255, 255, 255, 0.02);
}

/* Single Items (without children) */
.sidebar-single-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-single-item:last-child {
  border-bottom: none;
}

.sidebar-single-item-body {
  margin-bottom: 1rem;
}

.sidebar-single-item-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* Mobile Sidebar */
.unified-sidebar-mobile {
  margin-bottom: 1rem;
}

.unified-sidebar-mobile .card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
}

.unified-sidebar-mobile .card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.unified-sidebar-mobile .material-icons-outlined {
  font-size: 20px;
  color: var(--text-muted);
}

.unified-sidebar-mobile .nav-mobile-card {
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}

.unified-sidebar-mobile .nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 1rem 1rem 0.95rem;
  background: linear-gradient(135deg, #d9e3ff 0%, #eef2ff 100%);
  border-bottom: 1px solid rgba(37, 99, 235, 0.14);
}

.unified-sidebar-mobile .nav-mobile-title {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2a44;
}

.unified-sidebar-mobile .nav-mobile-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.14);
}

.unified-sidebar-mobile .nav-mobile-icon-wrap .material-icons-outlined {
  color: #1d4ed8;
  font-size: 18px;
}

.unified-sidebar-mobile .nav-mobile-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  white-space: nowrap;
}

.unified-sidebar-mobile .nav-mobile-body {
  padding: 0.9rem 0.95rem 1rem;
}

.unified-sidebar-mobile .nav-mobile-label {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.unified-sidebar-mobile .nav-mobile-select-wrap {
  position: relative;
}

.unified-sidebar-mobile .nav-mobile-select-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.unified-sidebar-mobile .nav-mobile-select {
  height: 50px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding-left: 2.35rem;
  padding-right: 2.5rem;
  font-weight: 500;
  background-color: var(--card-bg);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: none;
}

.unified-sidebar-mobile .nav-mobile-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.unified-sidebar-mobile .nav-mobile-select-wrap::after {
  content: "";
  position: absolute;
  right: 0.95rem;
  top: 50%;
  transform: translateY(-35%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--text-muted);
  pointer-events: none;
}

/* Hide desktop sidebar on mobile, show mobile version */
@media (max-width: 767px) {
  .unified-sidebar-card {
    display: none;
  }
}

/* Hide mobile sidebar on desktop, show desktop version */
@media (min-width: 768px) {
  .unified-sidebar-mobile {
    display: none !important;
  }
}

/* Loading States */
.sidebar-menu-item .loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sidebar-menu-item .loading i {
  color: var(--primary);
}

/* Responsive Adjustments */
@media (max-width: 1199px) {
  .sidebar-section-header {
    padding: 0.875rem 1rem;
  }
  
  .sidebar-menu-item {
    padding: 0.75rem 1rem;
  }
  
  .sidebar-section-body,
  .sidebar-section-footer,
  .sidebar-single-item {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Override existing sidebar styles */
.sidebar .mb-3 {
  margin-bottom: 0 !important;
}

/* Hide old sidebar cards ONLY when unified sidebar is present */
.sidebar:has(.unified-sidebar) .card-sidebar,
.sidebar:has(.unified-sidebar) .mb-3.card,
.sidebar:has(.unified-sidebar) .card.card-sidebar {
  display: none !important;
}

/* When unified sidebar exists, only show it inside .sidebar */
.sidebar:has(.unified-sidebar) > *:not(.unified-sidebar) {
  display: none !important;
}

.sidebar:has(.unified-sidebar) > .unified-sidebar {
  display: block !important;
}

/* Ensure no margin/padding issues for unified sidebar container */
.sidebar:has(.unified-sidebar) {
  padding: 0;
}

/* Debug: Make unified sidebar visible above any legacy elements */
.unified-sidebar {
  position: relative !important;
  z-index: 10 !important;
}

/* =========================
   HIDE PAGE TITLE & BREADCRUMBS
   Clean modern look
========================= */

/* Hide the entire page header section for client area pages */
.tt-page-header {
  display: none !important;
}

/* Alternative: Hide specific elements if needed */
.tt-page-header-info h1,
.tt-breadcrumb,
.breadcrumb {
  display: none !important;
}

/* Adjust main body padding since header is removed */
#main-body {
  padding-top: 2rem !important;
}

/* =========================
   RECOMMENDED FOR YOU SECTION
   Modern card styling
========================= */

/* Style the recommended section container */
.client-home-panels .panel,
.home-shortcuts,
div[class*="recommended"],
.panel.panel-default {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 1rem;
}

/* Recommended section heading */
.client-home-panels .panel-heading,
.home-shortcuts .panel-heading {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  border-radius: 0;
}

.client-home-panels .panel-heading h3,
.home-shortcuts .panel-heading h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--heading-color);
  margin: 0;
}

/* Recommended section body */
.client-home-panels .panel-body,
.home-shortcuts .panel-body {
  padding: 1.5rem;
}

/* Style the recommended items */
.home-shortcuts .shortcut {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.home-shortcuts .shortcut:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

/* Hide View More link if not needed */
.widget-footer a[href*="viewmore"],
.panel-footer a[href*="viewmore"],
a.view-more,
.view-more-link,
.widget-footer a:contains("View More"),
.panel-footer a:contains("View More"),
.text-right a[href*="services"],
.widget-footer .text-right,
.panel-footer .text-right {
  display: none !important;
}

/* Alternative: Style View More link if we want to keep it */
.widget-footer a,
.panel-footer a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.widget-footer a:hover,
.panel-footer a:hover {
  color: var(--heading-color);
  text-decoration: none;
}

/* Specific handling for widget footer View More links */
.widget-footer {
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .widget-footer {
  background: rgba(255, 255, 255, 0.02);
}

/* Hide the entire footer if it only contains View More */
.widget-footer:has(a[href*="services"]),
.widget-footer:has(.text-right) {
  display: none !important;
}

/* More aggressive View More hiding */
.widget-footer a[href$="services"],
.widget-footer a[href$="domains"],
.widget-footer .pull-right,
.widget-footer .float-right,
.widget-footer .text-end {
  display: none !important;
}

/* Additional styling for addon/recommended sections */
.client-home-panels,
.home-shortcuts-container {
  margin-bottom: 2rem;
}

/* Ensure 'Recommended for you' style section titles match widget title size */
.client-home-panels h2,
.home-shortcuts h2,
.client-home-panels .panel-title,
.home-shortcuts .panel-title {
  font-size: 1.125rem !important; /* same as .widget-title */
  line-height: 1.4 !important;
  font-weight: 600;
  color: var(--heading-color);
  margin: 0 0 1.25rem 0 !important; /* remove default h3 margins */
}

/* Specifically target the "Recommended for you" heading that appears
   directly after the stats grid on the client area home */
.client-stats-grid + div h3 {
  font-size: 1.125rem !important; /* same as .widget-title */
  line-height: 1.4 !important;
  font-weight: 600;
  color: var(--heading-color);
}

/* =========================
   HIDE "RECOMMENDED FOR YOU" EVERYWHERE
   Homepage, product details, and all other pages
========================= */

/* Hide MarketConnect/Weebly promo blocks by common class names */
.mc-promo-login,
.mc-promo-manage,
.promo-container,
[id*="recommended"],
[class*="mc-promo"],
[class*="promo-banner"] {
  display: none !important;
}

/* Hide panels/sections that contain the "Recommended for you" heading */
.panel-heading h3,
.panel-title,
.widget-title,
h2,
h3 {
  display: inherit;
}

/* Hide parent containers when they contain specific text patterns
   Using visibility for parents that may have child elements we need to assess */
.client-home-panels:has(.mc-promo-login),
.client-home-panels:has(.mc-promo-manage),
.client-home-panels:has(.promo-container),
.home-shortcuts:has(.mc-promo-login),
.home-shortcuts:has(.mc-promo-manage),
.home-shortcuts:has(.promo-container) {
  display: none !important;
}

/* Hide the specific "Recommended for you" section using sibling selectors
   since the section appears after the stats grid on the homepage */
.client-stats-grid ~ .panel,
.client-stats-grid ~ div[class*="recommended"],
.client-stats-grid ~ section,
.client-stats-grid ~ .panel-default {
  display: none !important;
}

/* Also catch when Recommended section is inside home-shortcuts or similar wrappers */
.home-shortcuts-container,
div:has(> .mc-promo-login),
div:has(> .mc-promo-manage),
div:has(> .promo-container) {
  display: none !important;
}

/* =========================
   PRODUCT DETAILS PAGE - SPECIFIC
   Hide "Recommended for you" on product details pages
========================= */

/* Hide any panel/section that comes after the product details tabs
   or contains MarketConnect/Weebly promo imagery */
.product-details ~ .panel,
.product-details ~ .card,
.product-details ~ div[class*="panel"],
.product-details ~ div[class*="card"],
.product-details-tab-container ~ .panel,
.product-details-tab-container ~ .card,
.product-details-tab-container ~ div[class*="panel"],
.product-details-tab-container ~ div[class*="card"] {
  display: none !important;
}

/* Hide sections that contain Weebly/MarketConnect images */
div:has(> img[src*="weebly"]),
div:has(> img[src*="marketconnect"]),
div:has(> img[src*="site-builder"]),
div:has(> img[src*="website-builder"]) {
  display: none !important;
}

/* Hide by common heading patterns on product pages */
.panel-heading:has(h3),
.card-header:has(h3) {
  display: inherit;
}

/* Extra aggressive - hide all panels after the main product info
   that aren't the standard tabs (downloads, addons, changepw) */
#tabOverview ~ div:not(#tabDownloads):not(#tabAddons):not(#tabChangepw):not(#tabAutorenew):not(#tabNameservers):not(#tabReglock):not(#tabRelease),
#tabOverview ~ section:not(#tabDownloads):not(#tabAddons):not(#tabChangepw):not(#tabAutorenew):not(#tabNameservers):not(#tabReglock):not(#tabRelease) {
  display: none !important;
}

/* Style buttons in recommended section */
.home-shortcuts .btn,
.client-home-panels .btn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* Ensure proper spacing in addon sections */
.client-home-panels .row,
.home-shortcuts .row {
  margin-left: 0;
  margin-right: 0;
}

.client-home-panels .col,
.home-shortcuts .col {
  padding-left: 0;
  padding-right: 0;
}

/* =========================
   MODERN MINIMALIST TABLES
   Clean design for Invoices, Quotes, etc.
========================= */

/* Table Container */
.table-container {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
}

/* DataTables Wrapper */
.dataTables_wrapper {
  padding: 0;
}

/* Main Table Styling */
.table-list {
  width: 100%;
  margin-bottom: 10px;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}

/* Table Header */
.table-list thead {
  background: #f8f9fa;
  border-bottom: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .table-list thead {
  background: rgba(255, 255, 255, 0.03);
}

.table-list thead th {
  padding: 10px 20px !important;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  white-space: nowrap;
  background: transparent;
  text-align: left!important;
}

/* Sortable column headers */
.table-list thead th.sorting,
.table-list thead th.sorting_asc,
.table-list thead th.sorting_desc {
  cursor: pointer;
  position: relative;
  padding-right: 2rem;
}

.table-list thead th.sorting:hover,
.table-list thead th.sorting_asc:hover,
.table-list thead th.sorting_desc:hover {
  color: var(--primary);
}

/* Table Body */
.table-list tbody {
  background: var(--card-bg);
}

.table-list tbody tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  cursor: pointer;
}

.text-muted {
  font-size: 12px!important;
}

.btn-info {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-info:hover {
  border-color: #000 !important;
  color: #fff !important;
  box-shadow: none !important;
  transition: all 0.3s ease;
}

[data-bs-theme="dark"] .table-list tbody tr {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.table-list tbody tr:last-child {
  border-bottom: none;
}

.table-list tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

[data-bs-theme="dark"] .table-list tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.table-list tbody td {
padding: 10px 20px !important;
border: none;
background: transparent !important;
text-align: left!important;
}

/* First column (ID/Number) - Bold */
.table-list tbody td:first-child {
  font-weight: 600;
  color: var(--heading-color);
}

/* Status Badges - Modern Pills */
.label.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 5px;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  border: none;
  min-width: 80px;
}

/* Status Colors */
.status-paid,
.status-active,
.status-accepted {
  background: #d4edda;
  color: #155724;
}

[data-bs-theme="dark"] .status-paid,
[data-bs-theme="dark"] .status-active,
[data-bs-theme="dark"] .status-accepted {
  background: rgba(40, 167, 69, 0.2);
  color: #5cb85c;
}

.status-unpaid,
.status-pending,
.status-draft {
  background: #fff3cd;
  color: #856404;
}

[data-bs-theme="dark"] .status-unpaid,
[data-bs-theme="dark"] .status-pending,
[data-bs-theme="dark"] .status-draft {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.status-cancelled,
.status-overdue,
.status-expired {
  background: #f8d7da;
  color: #721c24;
}

[data-bs-theme="dark"] .status-cancelled,
[data-bs-theme="dark"] .status-overdue,
[data-bs-theme="dark"] .status-expired {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.status-refunded,
.status-collections {
  background: #d1ecf1;
  color: #0c5460;
}

[data-bs-theme="dark"] .status-refunded,
[data-bs-theme="dark"] .status-collections {
  background: rgba(23, 162, 184, 0.2);
  color: #17a2b8;
}

.status-sent,
.status-delivered {
  background: #e7e7ff;
  color: #4a4aff;
}

[data-bs-theme="dark"] .status-sent,
[data-bs-theme="dark"] .status-delivered {
  background: rgba(74, 74, 255, 0.2);
  color: #8080ff;
}

/* Action Buttons in Tables */
.table-list tbody td .btn {
  padding: 0.5rem 1rem;
  font-size: 12px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.table-list tbody td .btn-default {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--body-color);
}

.table-list tbody td .btn-default:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.table-list tbody td .btn i {
  margin-right: 0.375rem;
  font-size: 0.875rem;
}

/* Download/Action Buttons */
.table-list tbody td form {
  margin: 0;
  display: inline-block;
}

.table-list tbody td .btn-sm {
  padding: 0.4rem 0.875rem;
  font-size: 0.8125rem;
}

/* DataTables Controls */
.dataTables_length,
.dataTables_filter {
  padding: 1rem 1.5rem;
  background: var(--card-bg);
}

/* Hide the "Show entries" dropdown completely */
.dataTables_length {
  display: none !important;
}

/* Top section with title and search */
.dataTables_filter {
  float: none !important;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
}

/* Add table title before search */
.dataTables_filter::before {
  content: attr(data-table-title);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--heading-color);
}

/* Style the search wrapper */
.dataTables_filter label {
  margin: 0;
}

.dataTables_length label,
.dataTables_filter label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--body-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.dataTables_length select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--body-color);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dataTables_length select:focus {
  outline: none;
  border-color: var(--primary);
}

.dataTables_filter input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--body-color);
  font-size: 0.875rem;
  transition: all 0.2s ease;
  margin-left: 0.5rem;
}

.dataTables_filter input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/* DataTables Info & Pagination */
.dataTables_info,
.dataTables_paginate {
  padding: 1rem 1.5rem;
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
}

/* Hide bottom info text */
.dataTables_info {
  display: none !important;
}

/* Pagination - Clean Minimalist Design */
.dataTables_paginate {
  float: none !important;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border-top: none !important;
}

/* Hide ellipsis and only show Previous, page numbers, and Next */
.dataTables_paginate .paginate_button {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
}

/* Hover state for pagination buttons */
.dataTables_paginate .paginate_button:hover:not(.disabled):not(.current) {
  background: rgba(0, 0, 0, 0.05);
  color: var(--heading-color);
  text-decoration: none;
}

.page-item.active .page-link, .pagination>.active>a {
background-color: var(--primary);
border-color: var(--primary);
border-radius: 5px;
}

.page-link {
  border-radius: 5px;
}

.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary);
  font-size: 14px;
  padding: 6px 16px;
}

.bootstrap-switch .bootstrap-switch-handle-off, .bootstrap-switch .bootstrap-switch-label {
  font-size: 14px;
  padding: 6px 16px;
}

.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success:hover {
  color: #fff;
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-secondary:hover {
  color: #292b2c;
  background-color: #d0d0d0;
  border-color: #d0d0d0;
}

.alert-success {
color: var(--primary);
background-color: #0643ff0f;
border: 1px solid #e0e6ff;
font-size: 14px;
border-radius: 8px;
}

.pagination>.active>a:hover {
background-color: #000;
border-color: #000;
}

[data-bs-theme="dark"] .dataTables_paginate .paginate_button:hover:not(.disabled):not(.current) {
  background: rgba(255, 255, 255, 0.05);
}

/* Current/Active page - Dark background */
.dataTables_paginate .paginate_button.current {
  background: #2c3e50;
  color: white;
  font-weight: 600;
}

[data-bs-theme="dark"] .dataTables_paginate .paginate_button.current {
  background: #34495e;
}

/* Disabled state (Previous/Next when not available) */
.dataTables_paginate .paginate_button.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
  color: var(--text-muted);
}

/* Previous and Next buttons - lighter text */
.dataTables_paginate .paginate_button.previous,
.dataTables_paginate .paginate_button.next {
  color: var(--text-muted);
  font-weight: 500;
}

.dataTables_paginate .paginate_button.previous:hover:not(.disabled),
.dataTables_paginate .paginate_button.next:hover:not(.disabled) {
  color: var(--heading-color);
}

/* Empty State */
.dataTables_empty {
  padding: 3rem 1.5rem !important;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Loading State */
#tableLoading {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

#tableLoading i {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

/* Responsive Table */
@media (max-width: 991px) {
  .table-list thead th,
  .table-list tbody td {
    padding: 0.875rem 1rem;
  }
  
  .dataTables_filter,
  .dataTables_info,
  .dataTables_paginate {
    padding: 1rem;
  }
}

@media (max-width: 767px) {
  .table-list thead th,
  .table-list tbody td {
    padding: 0.75rem 0.875rem;
    font-size: 0.875rem;
  }
  
  .table-list thead th {
    font-size: 0.75rem;
  }
  
  .dataTables_filter {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .dataTables_filter label {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  
  .dataTables_filter input {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
  }
  
  .dataTables_info,
  .dataTables_paginate {
    padding: 0.875rem;
  }
  
  .dataTables_paginate {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  /* Smaller pagination buttons on mobile */
  .dataTables_paginate .paginate_button {
    min-width: 32px;
    height: 32px;
    font-size: 0.8125rem;
  }
}

/* Fix for DataTables responsive mode */
.table-list.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
.table-list.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
  background-color: var(--primary);
  border: none;
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

/* Child row details in responsive mode */
.table-list.dataTable > tbody > tr.child ul.dtr-details {
  padding-left: 0;
}

.table-list.dataTable > tbody > tr.child ul.dtr-details > li {
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
}

.table-list.dataTable > tbody > tr.child ul.dtr-details > li:last-child {
  border-bottom: none;
}

/* View Filter Buttons (Status Filters) */
.view-filter-btns {
  margin-bottom: 1.5rem;
}

.view-filter-btns .list-group-item {
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.view-filter-btns .list-group-item:hover {
  background: rgba(0, 0, 0, 0.02);
  border-color: var(--primary);
}

[data-bs-theme="dark"] .view-filter-btns .list-group-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.view-filter-btns .list-group-item.active {
  background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.1) 0%, transparent 100%);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.view-filter-btns .badge {
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
}

/* Specific Table Adjustments */

/* Quotes Table - Download Button Column */
#tableQuotesList tbody td:last-child {
  text-align: right;
}

#tableQuotesList tbody td form {
  display: inline-block;
}

/* Invoices Table - Better spacing */
#tableInvoicesList tbody td {
  white-space: nowrap;
}

/* Domain Table */
#tableDomainsList tbody td:first-child {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Products/Services Table */
#tableServicesList tbody td {
  vertical-align: middle;
}

#tableServicesList tbody td:first-child > img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Tickets Table */
#tableTicketsList tbody td {
  vertical-align: middle;
}

/* Email History Table */
#tableEmailsList tbody td {
  vertical-align: middle;
}

/* Remove old table styles that conflict */
.table-list > tbody > tr > td {
  background-color: transparent !important;
}

/* Ensure proper border radius on table container */
.table-container.clearfix {
  border-radius: 16px;
  overflow: hidden;
}

/* Fix for tables without container */
.table-list:not(.table-container .table-list) {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

/* DataTables Processing Indicator */
.dataTables_processing {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

/* Better alignment for action columns */
.table-list tbody td.text-center {
  text-align: center;
}

.table-list tbody td.text-right {
  text-align: right;
}

/* Input group button gap */
.input-group-btn.input-group-append {
  gap: 10px;
}

/* Domain Registration Card Button Fixes */
/* Target domain registration buttons specifically */
.card .btn-default,
.widget-card .btn-default,
.panel .btn-default,
.domain-registration .btn-default,
[data-widget-id*="domain"] .btn-default,
[data-widget-name*="domain"] .btn-default,
[class*="domain-registration"] .btn-default,
[class*="domain-search"] .btn-default {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background: transparent !important;
  border-radius: 6px !important;
  padding: 6px 16px!important;
  font-weight: 400 !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid var(--primary) !important;
}

.card .btn-default:hover,
.widget-card .btn-default:hover,
.panel .btn-default:hover,
.domain-registration .btn-default:hover,
[data-widget-id*="domain"] .btn-default:hover,
[data-widget-name*="domain"] .btn-default:hover,
[class*="domain-registration"] .btn-default:hover,
[class*="domain-search"] .btn-default:hover,
.card .btn-default:focus,
.widget-card .btn-default:focus,
.panel .btn-default:focus,
.domain-registration .btn-default:focus,
[data-widget-id*="domain"] .btn-default:focus,
[data-widget-name*="domain"] .btn-default:focus,
[class*="domain-registration"] .btn-default:focus,
[class*="domain-search"] .btn-default:focus {
  background-color: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}
.card .btn-success,
.widget-card .btn-success,
.panel .btn-success,
.domain-registration .btn-success,
[data-widget-id*="domain"] .btn-success,
[data-widget-name*="domain"] .btn-success,
[class*="domain-registration"] .btn-success,
[class*="domain-search"] .btn-success {
  background: linear-gradient(135deg, var(--primary) 0%, #0056b3 100%) !important;
  border: none !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  align-content: center;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3) !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
  color: #fff !important;
}

.card .btn-success::before,
.widget-card .btn-success::before,
.panel .btn-success::before,
.domain-registration .btn-success::before,
[data-widget-id*="domain"] .btn-success::before,
[data-widget-name*="domain"] .btn-success::before,
[class*="domain-registration"] .btn-success::before,
[class*="domain-search"] .btn-success::before {
  content: '';
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: #000;
  transition: all 0.3s ease;
  z-index: -1;
}

.card .btn-success:hover::before,
.widget-card .btn-success:hover::before,
.panel .btn-success:hover::before,
.domain-registration .btn-success:hover::before,
[data-widget-id*="domain"] .btn-success:hover::before,
[data-widget-name*="domain"] .btn-success:hover::before,
[class*="domain-registration"] .btn-success:hover::before,
[class*="domain-search"] .btn-success:hover::before,
.card .btn-success:focus::before,
.widget-card .btn-success:focus::before,
.panel .btn-success:focus::before,
.domain-registration .btn-success:focus::before,
[data-widget-id*="domain"] .btn-success:focus::before,
[data-widget-name*="domain"] .btn-success:focus::before,
[class*="domain-registration"] .btn-success:focus::before,
[class*="domain-search"] .btn-success:focus::before {
  right: 0;
}

.card .btn-success:hover,
.widget-card .btn-success:hover,
.panel .btn-success:hover,
.domain-registration .btn-success:hover,
[data-widget-id*="domain"] .btn-success:hover,
[data-widget-name*="domain"] .btn-success:hover,
[class*="domain-registration"] .btn-success:hover,
[class*="domain-search"] .btn-success:hover,
.card .btn-success:focus,
.widget-card .btn-success:focus,
.panel .btn-success:focus,
.domain-registration .btn-success:focus,
[data-widget-id*="domain"] .btn-success:focus,
[data-widget-name*="domain"] .btn-success:focus,
[class*="domain-registration"] .btn-success:focus,
[class*="domain-search"] .btn-success:focus {
  border-color: #000 !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Primary buttons in domain registration card */
.card .btn-primary,
.widget-card .btn-primary,
.panel .btn-primary,
.domain-registration .btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #0056b3 100%) !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 6px 16px !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  align-content: center;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3) !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.card .btn-primary::before,
.widget-card .btn-primary::before,
.panel .btn-primary::before,
.domain-registration .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: #000;
  transition: all 0.3s ease;
  z-index: -1;
}

.card .btn-primary:hover::before,
.widget-card .btn-primary:hover::before,
.panel .btn-primary:hover::before,
.domain-registration .btn-primary:hover::before,
.card .btn-primary:focus::before,
.widget-card .btn-primary:focus::before,
.panel .btn-primary:focus::before,
.domain-registration .btn-primary:focus::before {
  right: 0;
}

.card .btn-primary:hover,
.widget-card .btn-primary:hover,
.panel .btn-primary:hover,
.domain-registration .btn-primary:hover,
.card .btn-primary:focus,
.widget-card .btn-primary:focus,
.panel .btn-primary:focus,
.domain-registration .btn-primary:focus {
  border-color: #000 !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Secondary buttons in domain registration card */
.card .btn-outline-primary,
.widget-card .btn-outline-primary,
.panel .btn-outline-primary,
.domain-registration .btn-outline-primary {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background: transparent !important;
  border-radius: 6px !important;
  padding: 6px 16px !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.card .btn-outline-primary:hover,
.widget-card .btn-outline-primary:hover,
.panel .btn-outline-primary:hover,
.domain-registration .btn-outline-primary:hover,
.card .btn-outline-primary:focus,
.widget-card .btn-outline-primary:focus,
.panel .btn-outline-primary:focus,
.domain-registration .btn-outline-primary:focus {
  background-color: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}

/* Ensure buttons in domain cards don't inherit unwanted styles */
.card .btn,
.widget-card .btn,
.panel .btn {
  text-decoration: none !important;
}

/* Specific targeting for domain registration card */
[data-widget-id*="domain"],
[data-widget-name*="domain"],
[class*="domain-registration"] .btn-success,
[class*="domain-search"] .btn-success {
  background: linear-gradient(135deg, var(--primary) 0%, #0056b3 100%) !important;
  border: none !important;
  border-radius: 0.5rem !important;
  padding: 0.65rem 1.65rem !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3) !important;
}

[data-widget-id*="domain"] .btn-outline-primary,
[data-widget-name*="domain"] .btn-outline-primary,
[class*="domain-registration"] .btn-outline-primary,
[class*="domain-search"] .btn-outline-primary {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background: transparent !important;
  border-radius: 0.5rem !important;
  padding: 0.65rem 1.65rem !important;
}

.tt-policy-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0056b3 100%);
  color: #fff;
  padding: 80px 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.tt-policy-hero .tt-policy-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0;
  color: #fff !important;
}

.tt-policy-hero .tt-policy-subtitle {
  margin-top: 12px;
  font-size: 0.95rem;
  opacity: 0.9;
  color: #fff !important;
}

.tt-policy-wrap {
  margin-top: -45px;
}

.tt-policy-nav-card .card-body {
  padding: 18px !important;
}

.tt-policy-content-card .card-body {
  padding: 30px !important;
}

.tt-policy-nav .list-group-item {
  border: 0;
  padding: 10px 14px;
  color: var(--text-color, #1f2937);
  background: transparent;
}

.tt-policy-nav .list-group-item:hover {
  color: var(--primary);
  background: rgba(0, 123, 255, 0.08);
}

.tt-policy-nav .list-group-item.active {
  color: var(--primary);
  font-weight: 600;
  background: rgba(0, 123, 255, 0.12);
}

.tt-policy-panel {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--custom-radius);
  padding: 16px 18px;
}

@media (max-width: 991.98px) {
  .tt-policy-hero {
    padding: 60px 0;
  }
  .tt-policy-wrap {
    margin-top: -30px;
  }
}

@media (max-width: 575.98px) {
  .tt-policy-wrap .row {
    margin-left: 0;
    margin-right: 0;
  }

  .tt-policy-wrap .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }

  .tt-policy-nav-card .card-body {
    padding: 16px !important;
  }

  .tt-policy-content-card .card-body {
    padding: 20px !important;
  }

  .tt-policy-panel {
    padding: 12px 14px;
  }
}

.tt-custom-card {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tt-custom-card table {
  max-width: 100%;
}

.tt-custom-card table td,
.tt-custom-card table th {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

/* Payment method name/icon cell — applies at every width, not just mobile.
   The mobile-only .method-info rule under the 767.98px query used to shadow
   this (never took effect there either, since a more specific selector with
   its own gap already won), and there was no base rule at all, so on desktop
   this class did nothing. */
.method-info {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  width: 100%;
}

/* Status cell: the status pill (.label.status, inline-flex, ~32px tall) and
   the "Default" badge (Bootstrap .badge, inline-block, ~18px tall) are too
   different in height for vertical-align tricks to line them up with each
   other — align-middle centers each one against the line box independently,
   not against its sibling. A flex row centers them against each other
   directly regardless of their own height. */
.status-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 575.98px) {
  .tt-custom-card table.payment-methods-table {
    min-width: 0 !important;
  }

  .tt-custom-card table.payment-methods-table thead {
    display: none;
  }

  .tt-custom-card table.table-list {
    min-width: 520px;
  }

  .tt-custom-card table.table-list td,
  .tt-custom-card table.table-list th {
    white-space: nowrap;
  }

  .tt-custom-card table.payment-methods-table,
  .tt-custom-card table.payment-methods-table tbody,
  .tt-custom-card table.payment-methods-table tr,
  .tt-custom-card table.payment-methods-table td {
    display: block;
    width: 100%;
  }

  .tt-custom-card table.payment-methods-table tr {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--custom-radius);
    overflow: hidden;
    margin: 0 0 16px 0;
  }

  .tt-custom-card table.payment-methods-table td {
    white-space: normal;
    padding: 14px 16px;
    border-top: 1px solid var(--border-color);
  }

  .tt-custom-card table.payment-methods-table td:first-child {
    border-top: 0;
  }

  .tt-custom-card table.payment-methods-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: rgba(0, 0, 0, 0.55);
    margin-bottom: 8px;
  }

  [data-bs-theme="dark"] .tt-custom-card table.payment-methods-table td::before {
    color: rgba(255, 255, 255, 0.65);
  }

  .tt-custom-card table.payment-methods-table .payment-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .tt-custom-card table.payment-methods-table .payment-actions > .btn,
  .tt-custom-card table.payment-methods-table .payment-actions > a.btn,
  .tt-custom-card table.payment-methods-table .payment-actions > button.btn {
    width: 100%;
  }

  .tt-custom-card table.table-list th[width] {
    width: auto !important;
  }

  .tt-custom-card table.table-list .btn-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .tt-custom-card table.table-list .btn-group > .btn,
  .tt-custom-card table.table-list .btn-group > a.btn,
  .tt-custom-card table.table-list .btn-group > button.btn,
  .tt-custom-card table.table-list .btn-group > form {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  #main-body .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Client home panel overflow fixes */
.widget-card .btn {
  max-width: 100%;
}

.widget-card .btn,
.widget-card .btn .caret {
  vertical-align: middle;
}

div[menuitemname="Active Products/Services"] .div-service-item {
  gap: 0.5rem;
}

div[menuitemname="Active Products/Services"] .div-service-buttons {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
  min-width: 0;
}

div[menuitemname="Active Products/Services"] .div-service-buttons .btn {
  min-width: 2.2rem;
  padding: 0.4rem 0.55rem !important;
}

div[menuitemname="Active Products/Services"] .div-service-buttons .btn-view-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .unified-sidebar {
    max-width: 100%;
  }

  .unified-sidebar-mobile .nav-mobile-header {
    padding: 0.9rem 0.9rem 0.85rem;
  }

  .unified-sidebar-mobile .nav-mobile-chip {
    font-size: 0.64rem;
  }

  .unified-sidebar-mobile .nav-mobile-body {
    padding: 0.8rem 0.85rem 0.9rem;
  }

  .unified-sidebar-mobile .nav-mobile-select {
    height: 46px;
  }

  div[menuitemname="Active Products/Services"] .div-service-item {
    align-items: flex-start;
  }

  div[menuitemname="Active Products/Services"] .div-service-name > span:first-child {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  div[menuitemname="Active Products/Services"] .div-service-name .text-domain {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 575.98px) {
  .table-container {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-container.clearfix {
    overflow-x: auto !important;
    overflow-y: visible !important;
  }

  .table-container > .table {
    min-width: 520px;
  }

  .tt-email-history-table {
    overflow-x: hidden !important;
  }

  .tt-email-history-table .dataTables_scrollBody {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* =========================
   Dashboard Responsive Hotfix
========================= */

/* Prevent header action buttons from forcing horizontal overflow */
.widget-card .widget-header .btn,
.widget-card .widget-header .btn-outline-primary,
.widget-card .widget-header .btn-primary,
.widget-card .widget-header .btn-default {
  padding: 0.45rem 0.85rem !important;
  font-size: 0.92rem !important;
  line-height: 1.2;
  max-width: 100%;
  white-space: nowrap;
}

.widget-card .widget-header {
  overflow: hidden;
}

.widget-card .widget-title-wrapper {
  min-width: 0;
}

.widget-card .widget-actions {
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Active Products row: keep controls inside card at intermediate widths */
div[menuitemname="Active Products/Services"] .div-service-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.75rem;
}

div[menuitemname="Active Products/Services"] .div-service-name {
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
}

div[menuitemname="Active Products/Services"] .div-service-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0;
}

div[menuitemname="Active Products/Services"] .div-service-buttons .btn {
  width: auto;
  max-width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

div[menuitemname="Active Products/Services"] .div-service-buttons .btn-group-primary {
  display: inline-flex;
}

div[menuitemname="Active Products/Services"] .div-service-buttons .dropdown-toggle {
  background: transparent !important;
  border: 1px solid var(--primary) !important;
  color: var(--primary) !important;
}

div[menuitemname="Active Products/Services"] .div-service-buttons .dropdown-toggle::after {
  display: inline-block !important;
  border-top: 0.34em solid currentColor;
  border-right: 0.3em solid transparent;
  border-left: 0.3em solid transparent;
  border-bottom: 0;
  margin-left: 0.35rem !important;
  margin-right: 0 !important;
  transform: none !important;
  vertical-align: middle;
}

/* Let service dropdown menus escape card bounds on mobile */
div[menuitemname="Active Products/Services"].widget-card,
div[menuitemname="Active Products/Services"] .widget-list,
div[menuitemname="Active Products/Services"] .widget-list-item,
div[menuitemname="Active Products/Services"] .div-service-buttons,
div[menuitemname="Active Products/Services"] .btn-group {
  overflow: visible;
}

div[menuitemname="Active Products/Services"] .dropdown-menu {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0;
  right: auto;
  min-width: 12rem;
  z-index: 2000;
}

div[menuitemname="Active Products/Services"] .dropdown-menu-right {
  right: 0;
  left: auto;
}

div[menuitemname="Active Products/Services"] .div-service-buttons .btn-group {
  position: relative;
}

div[menuitemname="Active Products/Services"] .div-service-status .label:not(.label-placeholder) {
  width: auto !important;
  min-width: 90px;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  background: var(--primary);
}

div[menuitemname="Active Products/Services"] .div-service-buttons .btn-view-details {
  min-width: 56px;
  padding: 0.38rem 0.55rem !important;
}

div[menuitemname="Active Products/Services"] .div-service-buttons .btn-view-details i {
  font-size: 1.55rem;
  line-height: 1;
  margin: 0;
}

/* Card headers with CTA buttons stack cleanly on smaller desktops/tablets */
@media (max-width: 1399.98px) {
  .widget-card .widget-header {
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 0.65rem;
  }

  .widget-card .widget-title-wrapper {
    width: 100%;
  }

  .widget-card .widget-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 0.5rem;
  }
}

/* At tablet width, move service actions below product name */
@media (max-width: 1199.98px) {
  div[menuitemname="Active Products/Services"] .div-service-item {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 0.6rem;
  }

  div[menuitemname="Active Products/Services"] .div-service-buttons {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  div[menuitemname="Active Products/Services"] .div-service-buttons .btn {
    padding: 0.42rem 0.72rem !important;
    font-size: 0.88rem !important;
  }
}

/* Keep everything readable on phone sizes */
@media (max-width: 767.98px) {
  .widget-card .widget-header .btn,
  .widget-card .widget-header .btn-outline-primary,
  .widget-card .widget-header .btn-primary,
  .widget-card .widget-header .btn-default {
    padding: 0.4rem 0.65rem !important;
    font-size: 0.82rem !important;
  }

  div[menuitemname="Active Products/Services"] .div-service-buttons {
    gap: 0.35rem;
  }

  .widget-card .widget-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    width: 100%;
    gap: 0.55rem;
  }

  .widget-card .widget-actions > .btn {
    grid-column: 1;
  }

  .widget-card .widget-actions > .widget-collapse-toggle {
    grid-column: 2;
    justify-self: end;
    align-self: center;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .widget-card .widget-actions > .widget-collapse-toggle .collapse-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    line-height: 1;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center;
    transform-origin: center center;
    position: static;
    left: auto;
    right: auto;
  }

  div[menuitemname="Active Products/Services"] .div-service-item {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "status name"
      "actions actions";
    align-items: start;
    row-gap: 0.7rem;
  }

  div[menuitemname="Active Products/Services"] .div-service-status {
    grid-area: status;
  }

  div[menuitemname="Active Products/Services"] .div-service-name {
    grid-area: name;
  }

  div[menuitemname="Active Products/Services"] .div-service-buttons {
    grid-area: actions;
    justify-content: flex-start;
    width: 100%;
  }

  div[menuitemname="Active Products/Services"] .div-service-buttons .btn-view-details {
    margin-left: 0;
  }

  div[menuitemname="Active Products/Services"] .div-service-buttons .btn-group-primary {
    display: none !important;
  }

  div[menuitemname="Active Products/Services"] .div-service-buttons .btn-group-secondary {
    display: inline-flex !important;
  }
}

/* Ensure collapse icon centering wins over earlier generic icon rules */
.widget-card .widget-actions .widget-collapse-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.widget-card .widget-actions .widget-collapse-toggle .collapse-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: center;
  line-height: 1;
  transform-origin: center center;
}

/* Register Domain card header alignment (mobile only) */
@media (max-width: 767.98px) {
  div[menuitemname="Register a New Domain"] .widget-header {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between;
    gap: 0.75rem;
  }

  div[menuitemname="Register a New Domain"] .widget-title-wrapper {
    width: auto !important;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
  }

  div[menuitemname="Register a New Domain"] .widget-actions {
    width: auto !important;
    margin-left: auto;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
    flex-wrap: nowrap !important;
    gap: 0;
  }

  div[menuitemname="Register a New Domain"] .widget-actions > .widget-collapse-toggle {
    margin: 0;
    align-self: center;
    justify-self: auto;
  }
}

@media (min-width: 768px) {
  div[menuitemname="Active Products/Services"] .div-service-buttons .btn-group-primary {
    display: none !important;
  }

  div[menuitemname="Active Products/Services"] .div-service-buttons .btn-group-secondary {
    display: inline-flex !important;
  }
}

/* Keep widget header actions inline on desktop */
@media (min-width: 992px) {
  .widget-card .widget-header {
    align-items: center !important;
    flex-wrap: nowrap !important;
    row-gap: 0 !important;
  }

  .widget-card .widget-title-wrapper {
    width: auto !important;
    flex: 1 1 auto;
  }

  .widget-card .widget-actions {
    width: auto !important;
    margin-left: auto;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 0.6rem;
  }

  .widget-card .widget-actions > .btn {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .widget-card .widget-actions > .widget-collapse-toggle {
    flex: 0 0 auto;
  }
}

/* =========================
   Dashboard Final Polish
========================= */

.widget-collapse-toggle .collapse-icon {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  margin: 0;
  line-height: 1;
}

/* Keep active-products dropdowns outside the row/card clipping context */
div[menuitemname*="Active Products"].widget-card {
  overflow: visible !important;
}

div[menuitemname*="Active Products"] .widget-list,
div[menuitemname*="Active Products"] .widget-list-item,
div[menuitemname*="Active Products"] .div-service-buttons,
div[menuitemname*="Active Products"] .btn-group {
  overflow: visible !important;
}

div[menuitemname*="Active Products"] .div-service-buttons .btn-group-primary .dropdown-toggle {
  min-width: 44px;
  width: 44px;
  height: 40px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

div[menuitemname*="Active Products"] .div-service-buttons .btn-group-primary .dropdown-toggle::after {
  content: "";
  display: inline-block !important;
  border-top: 0.34em solid currentColor !important;
  border-right: 0.3em solid transparent !important;
  border-left: 0.3em solid transparent !important;
  border-bottom: 0 !important;
  margin: 0 !important;
  transform: none !important;
}

div[menuitemname*="Active Products"] .div-service-buttons .dropdown-menu {
  position: absolute !important;
  z-index: 3000 !important;
}

div[menuitemname*="Active Products"] .div-service-status .label:not(.label-placeholder) {
  min-width: 82px;
  width: auto !important;
  text-overflow: clip;
}

/* Register domain card on mobile: clean stacked input + actions */
@media (max-width: 767.98px) {
  .client-area-welcome {
    padding-top: 0 !important;
  }

  div[menuitemname*="Domain"] .home-domain-search .input-group,
  div[menuitemname*="Domain"] .domainchecker-homepage-captcha .input-group,
  div[menuitemname*="Domain"] .widget-body .input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
  }

  div[menuitemname*="Domain"] .home-domain-search .input-group > .form-control,
  div[menuitemname*="Domain"] .domainchecker-homepage-captcha .input-group > .form-control,
  div[menuitemname*="Domain"] .widget-body .input-group > .form-control {
    flex: 1 1 100%;
    width: 100% !important;
    border-radius: 12px !important;
  }

  div[menuitemname*="Domain"] .home-domain-search .input-group-btn,
  div[menuitemname*="Domain"] .home-domain-search .input-group-append,
  div[menuitemname*="Domain"] .domainchecker-homepage-captcha .input-group-btn,
  div[menuitemname*="Domain"] .domainchecker-homepage-captcha .input-group-append,
  div[menuitemname*="Domain"] .widget-body .input-group-btn,
  div[menuitemname*="Domain"] .widget-body .input-group-append {
    display: flex;
    gap: 0.7rem;
    width: 100%;
    flex: 1 1 100%;
  }

  div[menuitemname*="Domain"] .home-domain-search .input-group .btn,
  div[menuitemname*="Domain"] .domainchecker-homepage-captcha .input-group .btn,
  div[menuitemname*="Domain"] .widget-body .input-group .btn {
    flex: 1 1 0;
    min-width: 0;
    border-radius: 12px !important;
    height: 44px;
    padding: 0.45rem 0.7rem !important;
  }
}

/* Mobile stacked table layout (labels on the left, values on the right) */
@media (max-width: 767.98px) {
  .dataTables_wrapper .dataTables_filter {
    margin-top: 0 !important;
  }

  table.table.mobile-vertical-table thead {
    display: none !important;
  }

  table.table.mobile-vertical-table,
  table.table.mobile-vertical-table tbody,
  table.table.mobile-vertical-table tr,
  table.table.mobile-vertical-table td {
    display: block;
    padding: 5px;
  }

  table.table.mobile-vertical-table {
    border: 0;
    background: #ffffff;
  }

  table.table.mobile-vertical-table tbody tr {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg);
    margin-bottom: 15px;
  }

  table.table.mobile-vertical-table tbody tr:last-child {
    margin-bottom: 0;
  }

  table.table.mobile-vertical-table tbody td {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0.72rem 0.95rem !important;
    border-top: 0 !important;
    border-bottom: 1px solid var(--border-color);
    text-align: left !important;
    overflow: visible !important;
  }

  table.table.mobile-vertical-table tbody td:last-child {
    border-bottom: 0;
  }

  table.table.mobile-vertical-table tbody td::before {
    content: attr(data-label);
    display: block;
    flex: 0 0 35%;
    max-width: 35%;
    min-width: 95px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.35;
  }

  table.table.mobile-vertical-table tbody td > * {
    min-width: 0;
  }

  table.table.mobile-vertical-table tbody td > :not(style):not(script) {
    max-width: 58%;
    overflow-wrap: anywhere;
  }

  table.table.mobile-vertical-table tbody td .label,
  table.table.mobile-vertical-table tbody td .status {
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: auto;
    white-space: nowrap;
  }

  table.table.mobile-vertical-table tbody td.mobile-table-full-row {
    display: block;
    text-align: left !important;
  }

  table.table.mobile-vertical-table tbody td.mobile-table-full-row::before {
    display: none;
    content: none;
  }
}

/* Client area: Billing Overview card content should be left-aligned */
div[menuitemname="Billing Overview"] .widget-body,
div[menuitemname="Billing Overview"] .widget-list-item,
div[menuitemname="Billing Overview"] .widget-list-content,
div[menuitemname="Billing Overview"] .widget-list-content span,
div[menuitemname*="Billing"] .widget-body,
div[menuitemname*="Billing"] .widget-list-item,
div[menuitemname*="Billing"] .widget-list-content,
div[menuitemname*="Billing"] .widget-list-content span {
  text-align: left !important;
  justify-content: flex-start !important;
}

div[menuitemname="Billing Overview"] .widget-body table,
div[menuitemname*="Billing"] .widget-body table {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

div[menuitemname="Billing Overview"] .widget-body table th,
div[menuitemname="Billing Overview"] .widget-body table td,
div[menuitemname*="Billing"] .widget-body table th,
div[menuitemname*="Billing"] .widget-body table td,
div[menuitemname="Billing Overview"] .widget-body table td:first-child,
div[menuitemname*="Billing"] .widget-body table td:first-child {
  text-align: left !important;
}

/* Payment Methods table: mobile arrangement fix */
@media (max-width: 767.98px) {
  .tt-custom-card table.payment-methods-table.mobile-vertical-table tbody td::before {
    flex: 0 0 30%;
    max-width: 30%;
    min-width: 90px;
  }

  .tt-custom-card table.payment-methods-table.mobile-vertical-table tbody td > :not(style):not(script) {
    max-width: none;
    overflow-wrap: normal;
    word-break: normal;
  }

  .tt-custom-card table.payment-methods-table.mobile-vertical-table .method-info {
    gap: 0.4rem;
  }

  .tt-custom-card table.payment-methods-table.mobile-vertical-table .method-name,
  .tt-custom-card table.payment-methods-table.mobile-vertical-table .method-meta {
    text-align: left !important;
    word-break: break-word;
  }

  .tt-custom-card table.payment-methods-table.mobile-vertical-table tbody td:nth-child(3) {
    align-items: center;
    max-width: 100% !important;
  }

  .tt-custom-card table.payment-methods-table.mobile-vertical-table tbody td:nth-child(3) .label,
  .tt-custom-card table.payment-methods-table.mobile-vertical-table tbody td:nth-child(3) .status {
    display: inline-flex;
    align-items: center;
    margin-left: 0;
    margin-right: 0.5rem;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }

  .tt-custom-card table.payment-methods-table.mobile-vertical-table tbody td:nth-child(4) .payment-actions {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.55rem;
    align-items: stretch;
  }

  .tt-custom-card table.payment-methods-table.mobile-vertical-table tbody td:nth-child(4) .payment-actions > .btn,
  .tt-custom-card table.payment-methods-table.mobile-vertical-table tbody td:nth-child(4) .payment-actions > a.btn,
  .tt-custom-card table.payment-methods-table.mobile-vertical-table tbody td:nth-child(4) .payment-actions > button.btn {
    width: auto !important;
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    white-space: nowrap;
    font-size: 12px;
    padding: 0.5rem 0.75rem !important;
  }

  .tt-custom-card table.payment-methods-table.mobile-vertical-table tbody td:nth-child(4) .payment-actions > .btn-set-default {
    flex: 1 1 0;
    min-width: 0;
  }

  .tt-custom-card table.payment-methods-table.mobile-vertical-table tbody td:nth-child(4) .payment-actions > [data-role="edit-payment-method"] {
    flex: 0 0 auto !important;
    width: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .tt-custom-card table.payment-methods-table.mobile-vertical-table tbody td:nth-child(4) .payment-actions > .btn-delete {
    flex: 1 1 100% !important;
    width: 100% !important;
  }

  .tt-custom-card table.payment-methods-table.mobile-vertical-table tbody td:nth-child(4) .payment-actions > :only-child {
    flex: 1 1 100%;
    width: 100% !important;
  }
  #payMethodList tr td:nth-child(2){
    max-width: 100% !important;
  }
}

/* Domains page bulk action buttons: 2 columns on mobile */
@media (max-width: 767.98px) {
  #domainForm .btn-group.tt-button-group {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    width: 100%;
  }

  #domainForm .btn-group.tt-button-group > .btn,
  #domainForm .btn-group.tt-button-group > .btn-group {
    width: 100%;
    margin: 0 !important;
  }

  #domainForm .btn-group.tt-button-group > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #domainForm .btn-group.tt-button-group > .btn-group > .btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
  }

  #domainForm .btn-group.tt-button-group .btn > i {
    margin-right: 0.1rem;
  }
}

/* Support ticket submit form spacing + markdown primary button contrast */
.support-ticket-submit-form {
  margin-top: 0.75rem;
  margin-bottom: 0.9rem;
}

.support-ticket-submit-form .tt-turnstile-wrap {
  margin-top: 0.85rem;
  margin-bottom: 0.85rem;
}

.support-ticket-submit-form .tt-submit-btns {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.support-ticket-submit-form .md-editor .btn.btn-primary,
.support-ticket-submit-form .md-editor .btn.btn-primary span,
.support-ticket-submit-form .md-editor .btn.btn-primary i {
  color: #fff !important;
}

/* =========================================================
   HOSTINGER-STYLE APP SHELL (client area, logged-in)
   Adds persistent left rail, slim topbar, content card.
========================================================= */
:root {
  --kn-bg:           #f3f4f7;
  --kn-card-bg:      #ffffff;
  --kn-border:       #ececec;
  --kn-text:         #18181A;
  --kn-text-muted:   #6b6f76;
  --kn-primary:      #1C40F2;
  --kn-primary-hover: #007aff;
  --kn-primary-soft: #e8eef5;
  --kn-active-bg:    #005cc00f;
  --kn-hover-bg:     #f7f8fa;
  --kn-radius:       12px;
  --kn-sidebar-w:        260px;
  --kn-domain-panel-w:  260px;
  --kn-topbar-h:         64px;
}

body.kn-app-body {
  background: var(--kn-bg) !important;
  color: var(--kn-text);
}

/* Suppress legacy chrome inside the shell */
body.kn-app-body > #header,
body.kn-app-body > .tt-header,
body.kn-app-body > #main-body,
body.kn-app-body > section > .tt-footer,
body.kn-app-body > section > #footer {
  display: none !important;
}

.kn-app {
  display: flex;
  min-height: 100vh;
  width: 100%;
  padding-top: var(--kn-topbar-h);
}

/* ---------- Sidebar ---------- */
.kn-sidebar {
  width: var(--kn-sidebar-w);
  flex-shrink: 0;
  background: var(--kn-card-bg);
  border-right: 1px solid var(--kn-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--kn-topbar-h);
  left: 0;
  height: calc(100vh - var(--kn-topbar-h));
  overflow-y: auto;
  padding: 1rem 0.75rem;
  z-index: 1020;
}

.kn-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }

.kn-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  color: var(--kn-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
}
.kn-nav-item:hover {
  background: var(--kn-hover-bg);
  color: var(--kn-text);
  text-decoration: none;
}
.kn-nav-item.active {
  background: var(--kn-active-bg);
  color: var(--kn-primary);
}
.kn-nav-item.active .kn-nav-icon i { color: var(--kn-primary); }

.kn-nav-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.kn-nav-icon i {
  font-size: 22px;
  color: var(--kn-text-muted);
}
.kn-nav-label { flex: 1; }
.kn-nav-badge {
  background: var(--kn-primary-soft);
  color: var(--kn-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
}

.kn-sidebar-footer {
  border-top: 1px solid var(--kn-border);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ---------- Main column ---------- */
.kn-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-left: var(--kn-sidebar-w);
}

.kn-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--kn-topbar-h);
  background: var(--kn-card-bg);
  border-bottom: 1px solid var(--kn-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.5rem;
  z-index: 1030;
}
.kn-topbar-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.kn-topbar-brand img {
  max-height: 64px;
  width: auto;
}
.kn-topbar-brand-text {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--kn-text);
}
.kn-topbar-spacer { flex: 1; }
.kn-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.kn-topbar-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--kn-text);
  cursor: pointer;
  text-decoration: none;
  outline: none!important;
}
.kn-topbar-icon:hover {
  background: var(--kn-hover-bg);
  color: var(--kn-text);
}
.kn-topbar-icon i { font-size: 22px; }
.kn-topbar-icon .tt-circle,
.kn-topbar-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ff000094;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 12px;
  height: 12px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.kn-topbar-user .dropdown-menu {
  border: 1px solid var(--kn-border);
  border-radius: 10px;
  padding: 0.25rem;
  box-shadow: 0 10px 30px rgba(20, 20, 50, 0.08);
}
.kn-topbar-user .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9375rem;
}
.kn-topbar-user .dropdown-item i { font-size: 18px; color: var(--kn-text-muted); }

.kn-sidebar-toggle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--kn-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Content ---------- */
.kn-content {
  padding: 1.5rem 1.5rem 2rem;
  width: 100%;
  max-width: 1460px;
  margin: 0 auto;
}
.kn-content-card {
  padding: 2rem 2.25rem;
  min-height: calc(100vh - var(--kn-topbar-h) - 3.5rem);
  gap: 20px;
  display: flex;
  flex-direction: column;
}

/* ---------- Breadcrumb + page header ---------- */
.kn-page-head { margin-bottom: 1.5rem; }
.kn-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--kn-text-muted);
  margin-bottom: 0.75rem;
}
.kn-breadcrumb-home {
  color: var(--kn-text-muted);
  display: inline-flex;
  align-items: center;
}
.kn-breadcrumb-home i { font-size: 18px; }
.kn-breadcrumb-sep { font-size: 16px !important; opacity: 0.6; }
.kn-breadcrumb-link {
  color: var(--kn-text-muted);
  text-decoration: none;
}
.kn-breadcrumb-link:hover { color: var(--kn-primary); }
.kn-breadcrumb-current { color: var(--kn-text); font-weight: 500; }

.kn-page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.kn-page-title {
  font-size: clamp(1.5rem, 1.3656rem + 0.566vw, 1.875rem);
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--kn-text);
}
.kn-page-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--kn-primary);
  color: #fff;
  padding: 6px 16px;
  border-radius: 6px;
  font-weight: 400;
  font-size: 14px;
  text-decoration: none;
  border: 0;
  transition: background 0.15s ease;
}
.kn-page-action:hover {
  background: var(--kn-primary-hover);
  color: #fff;
  text-decoration: none;
}
.kn-page-action i { font-size: 20px; }

/* ---------- Refit stat cards inside the shell ---------- */
.kn-app .client-stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.kn-app .stat-card {
  background: var(--kn-card-bg);
  border: 1px solid var(--kn-border);
  border-radius: 10px;
  padding: 1.25rem;
}
.kn-app .stat-card:hover {
  border-color: #cdd9e6;
  box-shadow: 0 6px 18px rgba(51, 102, 153, 0.08);
}
.kn-app .stat-card-icon {
  background: var(--kn-primary-soft);
  color: var(--kn-primary);
  border-radius: 10px;
  width: 44px;
  height: 44px;
}
.kn-app .stat-card-icon i { color: var(--kn-primary); font-size: 22px; }
.kn-app .stat-card-label { color: var(--kn-text-muted); font-size: 0.8125rem; }
.kn-app .stat-card-value { font-size: 1.5rem; color: var(--kn-text); }

/* ---------- Widget cards inside the shell ---------- */
.kn-app .widget-card {
  border-radius: 10px;
  border-color: var(--kn-border);
}

/* ---------- Mobile ---------- */
@media (max-width: 991.98px) {
  .kn-sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
  }
  body.kn-sidebar-open .kn-sidebar { transform: translateX(0); }
  body.kn-sidebar-open::after {
    content: "";
    position: fixed;
    inset: var(--kn-topbar-h) 0 0 0;
    background: rgba(0,0,0,0.35);
    z-index: 1010;
  }
  .kn-main { margin-left: 0; }
  .kn-content { padding: 1rem 1rem 1.5rem; }
  .kn-content-card { padding: 1.25rem; border-radius: 10px; }
}

/* =========================================================
   APP-SHELL TABLE POLISH (domains, services, invoices, etc.)
========================================================= */
.kn-app .table-container {
  background: var(--kn-card-bg);
  border: 1px solid var(--kn-border);
  border-radius: var(--kn-radius);
  padding: 0;
  overflow: hidden;
}

.kn-app .table-list,
.kn-app table.table.table-list {
  margin: 0!important;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  background: var(--kn-card-bg);
}

.kn-app .table-list thead th {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--kn-border);
  color: var(--kn-text-muted);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: none;
  letter-spacing: 0;
  padding: 1rem 1.25rem;
  vertical-align: middle;
}

.kn-app .table-list tbody td {
  border: 0;
  border-bottom: 1px solid var(--kn-border);
  padding: 1rem 1.25rem;
  vertical-align: middle;
  color: var(--kn-text);
  font-size: 14px;
  background: transparent;
}
.kn-app .table-list tbody tr:last-child td { border-bottom: 0; }

.kn-app .table-list tbody tr {
  cursor: pointer;
  transition: background 0.12s ease;
}
.kn-app .table-list tbody tr:hover td { background: var(--kn-hover-bg); }

.kn-app .table-list tbody td a {
  color: var(--kn-text);
  font-weight: 500;
  text-decoration: none;
}
.kn-app .table-list tbody td a:hover { color: var(--kn-primary); }

/* Status pill */
.kn-app .label.status,
.kn-app .table-list .label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--kn-hover-bg);
  color: var(--kn-text);
}
.kn-app .label.status-active,
.kn-app .label.status-completed,
.kn-app .label.status-paid {
  background: #e7f6ee;
  color: #1f7a3a;
}
.kn-app .label.status-active::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1f7a3a;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='white' d='M6.5 11.2 3.8 8.5l-1.1 1.1 3.8 3.8 8-8L13.4 4z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='white' d='M6.5 11.2 3.8 8.5l-1.1 1.1 3.8 3.8 8-8L13.4 4z'/></svg>") center/contain no-repeat;
}
.kn-app .label.status-pending,
.kn-app .label.status-unpaid {
  background: #fff5e0;
  color: #946100;
}
.kn-app .label.status-suspended,
.kn-app .label.status-cancelled,
.kn-app .label.status-terminated,
.kn-app .label.status-fraud {
  background: #fde7e7;
  color: #a8252c;
}
.kn-app .label.status-expired {
  background: #fde7e7;
  color: #a8252c;
}

/* DataTable search + length controls */
.kn-app .dataTables_wrapper .dataTables_filter {
  width: 100%;
  margin: 0 0 1rem;
}
.kn-app .dataTables_wrapper .dataTables_filter label {
  width: 100%;
  margin: 0;
  position: relative;
}
.kn-app .dataTables_wrapper .dataTables_filter input {
  width: 100%;
  background: var(--kn-card-bg);
  border: 1px solid var(--kn-border);
  border-radius: 10px;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  font-size: 0.9375rem;
  margin: 0;
}
.kn-app .dataTables_wrapper .dataTables_filter input:focus {
  outline: 0;
  border-color: var(--kn-primary);
  box-shadow: 0 0 0 3px rgba(51, 102, 153, 0.15);
}
.kn-app .dataTables_wrapper .dataTables_filter label::before {
  content: "search";
  font-family: "Material Icons Outlined";
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--kn-text-muted);
  font-size: 20px;
}
.kn-app .dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--kn-border);
  border-radius: 8px;
  padding: 0.375rem 0.5rem;
  background: var(--kn-card-bg);
}

/* Sort icons — replace DataTables default arrows with Material Icons */
.kn-app .table-list thead th.sorting,
.kn-app .table-list thead th.sorting_asc,
.kn-app .table-list thead th.sorting_desc {
  cursor: pointer;
  padding-right: 2rem;
  position: relative;
  user-select: none;
}
/* Hide the native DataTables ::after pseudo-element arrows */
.kn-app .table-list thead th.sorting::after,
.kn-app .table-list thead th.sorting::before,
.kn-app .table-list thead th.sorting_asc::after,
.kn-app .table-list thead th.sorting_asc::before,
.kn-app .table-list thead th.sorting_desc::after,
.kn-app .table-list thead th.sorting_desc::before {
  display: none !important;
  content: none !important;
}
/* Inject a Material Icon via a span we add with JS */
.kn-app .table-list thead th .kn-sort-icon {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  vertical-align: middle;
  font-family: "Material Icons Outlined";
  font-size: 18px;
  color: var(--kn-text-muted);
  opacity: 0.5;
  line-height: 1;
  transition: opacity 0.15s ease, color 0.15s ease;
  font-weight: normal;
  font-style: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.kn-app .table-list thead th.sorting_asc  .kn-sort-icon,
.kn-app .table-list thead th.sorting_desc .kn-sort-icon {
  opacity: 1;
  color: var(--kn-primary);
}

/* Bulk action toolbar */
.kn-app .tt-button-group .btn,
.kn-app .btn-group-sm .btn {
  background: var(--kn-card-bg);
  border: 1px solid var(--kn-border);
  color: var(--kn-text);
  font-weight: 500;
  border-radius: 8px;
  padding: 0.5rem 0.875rem;
}
.kn-app .tt-button-group .btn:hover {
  background: var(--kn-hover-bg);
  border-color: var(--kn-border);
  color: var(--kn-primary);
}
.kn-app .tt-button-group { gap: 0.5rem; }
.kn-app .tt-button-group .btn + .btn,
.kn-app .tt-button-group .btn-group + .btn,
.kn-app .tt-button-group .btn + .btn-group {
  margin-left: 0;
}

/* Row action buttons (Renew / Manage) — for any existing button cells */
.kn-app .table-list .btn-outline-primary,
.kn-app .table-list .btn-primary,
.kn-app .table-list .btn.btn-default {
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.875rem;
}
.kn-app .table-list .btn-outline-primary,
.kn-app .table-list .btn.btn-default {
  background: transparent;
  color: var(--kn-primary);
  border: 1px solid var(--kn-border);
}
.kn-app .table-list .btn-outline-primary:hover,
.kn-app .table-list .btn.btn-default:hover {
  background: var(--kn-active-bg);
  color: var(--kn-primary);
  border-color: var(--kn-primary);
}

/* Pagination */
.kn-app .dataTables_wrapper .dataTables_paginate {
  padding: 1rem 1.25rem;
}
.kn-app .dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 8px !important;
  color: var(--kn-text) !important;
  background: var(--kn-card-bg) !important;
  margin: 0 2px;
}
.kn-app .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.kn-app .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--kn-primary) !important;
  border-color: var(--kn-primary) !important;
  color: #fff !important;
}
.kn-app .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--kn-hover-bg) !important;
  color: var(--kn-primary) !important;
}

/* Domain SSL/checkbox column tightening */
.kn-app .table-list td.ssl-info,
.kn-app .table-list .ssl-info {
  width: 40px;
}
.kn-app .table-list .width-fixed-20 {
  width: 40px;
}

/* =========================================================
   DOMAINS TABLE — Hostinger-style columns
========================================================= */

/* Column sizing */
.kn-app .kn-col-check   { width: 40px; padding: 12px 5px 5px 5px!important; text-align:center!important; }
.kn-app .kn-col-ssl     { width: 60px; text-align: center !important; padding-right: 0; white-space: nowrap; font-size: 0.75rem; letter-spacing: 0.03em; }
.kn-app .kn-col-domain  { width: 22%; min-width: 160px; }
.kn-app .kn-col-actions { width: 170px; min-width: 170px; white-space: nowrap; }

/* SSL column body cells centered */
.kn-app .kn-col-ssl.ssl-info,
.kn-app td.kn-col-ssl { text-align: center !important; }

/* Domain name link */
.kn-app .kn-domain-link {
  font-weight: 600;
  color: var(--kn-text);
  text-decoration: none;
}
.kn-app .kn-domain-link:hover { color: var(--kn-primary); }

/* Status icon inside pill — hide our injected icon, let WHMCS native icon show */
.kn-app .label.status .kn-status-icon { display: none; }

/* Read-only toggle */
.kn-toggle {
  display: inline-flex;
  align-items: center;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--kn-border);
  padding: 2px;
  cursor: default;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.kn-toggle.kn-toggle-on {
  background: var(--kn-primary);
}
.kn-toggle-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}
.kn-toggle.kn-toggle-on .kn-toggle-thumb {
  transform: translateX(22px);
}

/* Row action buttons */
.kn-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
  flex-wrap: nowrap;
}
.kn-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: 6px;
  border: 1px solid var(--kn-border);
  background: var(--kn-card-bg);
  color: var(--kn-text);
  font-weight: 400;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.kn-btn-action:hover {
  border-color: var(--kn-primary);
  color: var(--kn-primary);
  background: var(--kn-active-bg);
  text-decoration: none;
}
.kn-btn-manage {
  color: var(--kn-primary);
  border-color: var(--kn-border);
}
.kn-btn-manage:hover {
  background: var(--kn-active-bg);
}

/* Custom checkbox */
.kn-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  cursor: pointer;
  accent-color: var(--kn-primary);
}

/* iCheck plugin skin — CSS shapes instead of the blue.png/blue@2x.png sprite.
   Same class names/states as the vendor skin in all.css (icheckbox_square-blue,
   iradio_square-blue, .hover/.checked/.disabled), so iCheck's JS (init calls
   and ifChecked/ifUnchecked handlers across payment method, billing contact,
   and card/bank forms) needs no changes — only how the state is drawn changes. */
.icheckbox_square-blue,
.iradio_square-blue {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  padding: 0;
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  background: var(--kn-card-bg);
  border: 2px solid var(--kn-border);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.icheckbox_square-blue { border-radius: 6px; }
.iradio_square-blue { border-radius: 50%; }

.icheckbox_square-blue::after,
.iradio_square-blue::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transition: transform 0.12s ease;
}
.icheckbox_square-blue::after {
  width: 11px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -65%) rotate(-45deg) scale(0);
}
.iradio_square-blue::after {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--kn-primary);
  transform: translate(-50%, -50%) scale(0);
}

.icheckbox_square-blue.hover,
.iradio_square-blue.hover {
  border-color: var(--kn-primary);
}

.icheckbox_square-blue.checked {
  background: var(--kn-primary);
  border-color: var(--kn-primary);
}
.icheckbox_square-blue.checked::after { transform: translate(-50%, -65%) rotate(-45deg) scale(1); }
.iradio_square-blue.checked { border-color: var(--kn-primary); }
.iradio_square-blue.checked::after { transform: translate(-50%, -50%) scale(1); }

.icheckbox_square-blue.disabled,
.iradio_square-blue.disabled {
  opacity: 0.5;
  cursor: default;
}
.icheckbox_square-blue.checked.disabled,
.iradio_square-blue.checked.disabled {
  background: var(--kn-text-muted);
  border-color: var(--kn-text-muted);
}
.icheckbox_square-blue.checked.disabled::after { border-color: #fff; }
.iradio_square-blue.checked.disabled::after { background: #fff; }

/* Bulk action toolbar */
.kn-domain-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.kn-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--kn-border);
  background: var(--kn-card-bg);
  color: var(--kn-text);
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.kn-toolbar-btn:hover {
  background: var(--kn-hover-bg);
  color: var(--kn-primary);
  border-color: var(--kn-border);
}
.kn-toolbar-btn .material-icons-outlined { font-size: 18px; }

/* Domains table card wrapper */
.kn-domains-table-wrap,
.kn-invoices-table-wrap,
.kn-table-wrap {
  border-radius: var(--kn-radius);
  border: 1px solid var(--kn-border);
  overflow: hidden;
}

/* Remove Bootstrap's auto-caret from the More dropdown — we supply our own icon */
.kn-toolbar-more .dropdown-toggle::after { display: none; }

/* Search bar detached from DataTables wrapper and rendered as its own card */
.kn-search-standalone {
  background: var(--kn-card-bg);
  border: 1px solid var(--kn-border);
  border-radius: 8px;
  padding: 0.375rem 1rem;
  margin-bottom: 0.75rem;
  width: 100%;
}
.kn-search-standalone label {
  display: block;
  width: 100%;
  margin: 0;
  position: relative;
}
.kn-search-standalone label::before {
  content: "search";
  font-family: "Material Icons Outlined";
  position: absolute;
  left: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--kn-text-muted);
  font-size: 20px;
  pointer-events: none;
}
.kn-search-standalone input {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.15rem 0.15rem 0.15rem 2rem;
  font-size: 0.9375rem;
  margin: 0;
  color: var(--kn-text);
}
.kn-search-standalone input:focus {
  outline: 0;
  box-shadow: none;
}
.kn-search-standalone input::placeholder {
  color: var(--kn-text-muted);
}

/* =========================================================
   SIDEBAR SUBMENUS
========================================================= */
.kn-nav-group { display: flex; flex-direction: column; }

.kn-nav-parent {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.kn-nav-chevron {
  font-size: 18px !important;
  color: var(--kn-text-muted);
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.28s ease;
}
.kn-nav-group.open .kn-nav-chevron { transform: rotate(180deg); }

/* Submenu container — collapsed by default */
.kn-nav-sub {
  display: flex;
  flex-direction: column;
  padding: 2px 0 4px 0;
  position: relative;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.32s ease, opacity 0.3s ease;
}
.kn-nav-sub::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--kn-border);
}
.kn-nav-group.open .kn-nav-sub {
  max-height: 900px;
  opacity: 1;
  transition: max-height 0.36s ease, opacity 0.22s ease 0.04s;
}

.kn-nav-sub-item {
  display: flex;
  padding: 8px 12px 8px 18px;
  margin-left: 28px;
  border-radius: 6px;
  color: var(--kn-text-muted);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
  position: relative;
  align-items: center;
  gap: 5px;
}
.kn-nav-sub-item:hover {
  background: var(--kn-hover-bg);
  color: var(--kn-text);
  text-decoration: none;
}
.kn-nav-sub-item.active {
  color: var(--kn-primary);
  font-weight: 500;
  background: var(--kn-active-bg);
}

/* Remove badge styles — no longer used */
.kn-nav-badge { display: none; }

/* =========================================================
   AUTO-RENEWAL CONFIRMATION MODAL
========================================================= */
.kn-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 30, 0.45);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.kn-modal {
  background: var(--kn-card-bg);
  border-radius: 16px;
  padding: 2rem 2.25rem 1.75rem;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}
.kn-modal-title {
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--kn-text);
  margin: 0 0 1rem;
}
.kn-modal-body p {
  color: var(--kn-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}
.kn-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}
.kn-modal-btn-cancel {
  padding: 6px 16px;
  border-radius: 6px;
  border: 1px solid var(--kn-border);
  background: transparent;
  color: inherit;
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.kn-modal-btn-cancel:hover { background: var(--kn-active-bg); }

.kn-modal-btn-confirm {
  padding: 6px 16px;
  border-radius: 6px;
  border: 0;
  background: var(--kn-primary);
  color: #fff;
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.kn-modal-btn-confirm:hover { background: var(--kn-primary-hover); }
.kn-modal-btn-confirm.danger { background: #c0392b; }
.kn-modal-btn-confirm.danger:hover { background: #a93226; }

/* Toggle button reset (was a <span>, now a <button>) */
.kn-toggle[type=button] {
  padding: 0;
  border: 0;
  cursor: pointer;
}

/* ==================== DOMAIN MANAGE PANEL ==================== */
.kn-domain-panel {
  position: fixed;
  top: var(--kn-topbar-h);
  left: var(--kn-sidebar-w);
  width: var(--kn-domain-panel-w);
  height: calc(100vh - var(--kn-topbar-h));
  background: var(--kn-card-bg);
  border-right: 1px solid var(--kn-border);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 1019;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.kn-domain-panel.open {
  transform: translateX(0);
  box-shadow: 2px 0 12px rgba(0,0,0,0.07);
}

body.kn-domain-panel-open .kn-main {
  margin-left: calc(var(--kn-sidebar-w) + var(--kn-domain-panel-w));
  transition: margin-left 0.25s ease;
}

.kn-dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.75rem 0.75rem;
  border-bottom: 1px solid var(--kn-border);
  gap: 0.5rem;
  flex-shrink: 0;
}
.kn-dp-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--kn-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kn-dp-close {
  background: none;
  border: none;
  color: var(--kn-text-muted);
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.kn-dp-close:hover { background: var(--kn-hover-bg); color: var(--kn-text); }
.kn-dp-close i { font-size: 18px; }

.kn-dp-nav {
  padding: 0.5rem 0;
  flex: 1;
}
.kn-dp-group { margin-bottom: 0.25rem; }

.kn-dp-group-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: none;
  border: none;
  color: var(--kn-text-muted);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
  text-align: left;
}
.kn-dp-group-header i { font-size: 16px; }

.kn-dp-chevron {
  margin-left: auto;
  font-size: 16px !important;
  transition: transform 0.2s ease;
}
.kn-dp-group-header.collapsed .kn-dp-chevron { transform: rotate(-90deg); }

.kn-dp-group-body { display: none; }
.kn-dp-group-body.open { display: block; }

.kn-dp-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem 0.45rem 1rem;
  margin: 1px 0.4rem;
  color: var(--kn-text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.kn-dp-item:hover { background: var(--kn-hover-bg); color: var(--kn-text); text-decoration: none; }
.kn-dp-item i { font-size: 16px; color: var(--kn-text-muted); flex-shrink: 0; }

@media (max-width: 991.98px) {
  .kn-domain-panel { display: none; }
  body.kn-domain-panel-open .kn-main { margin-left: 0; }
}

/* ═══════════════════════════════════════════════
   Domain-specific sidebar (kn-domain-sidebar.tpl)
   ═══════════════════════════════════════════════ */

/* Back button */
.kn-ds-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  margin: 0.5rem;
  color: var(--kn-text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--kn-radius);
  transition: background 0.15s, color 0.15s;
}
.kn-ds-back:hover { background: var(--kn-hover-bg); color: var(--kn-text); text-decoration: none; }
.kn-ds-back i { font-size: 18px; }

/* Domain name badge */
.kn-ds-domain-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem 1rem;
  margin: 0 0.5rem;
  border-bottom: 1px solid var(--kn-border);
  overflow: hidden;
}
.kn-ds-domain-name i { font-size: 18px; color: var(--kn-primary); flex-shrink: 0; }
.kn-ds-domain-name span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--kn-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Group labels (Manage / Actions) */
.kn-ds-group-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem 0.25rem;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--kn-text-muted);
}
.kn-ds-group-label i { font-size: 15px; }
.kn-ds-group-label--actions { margin-top: 0.5rem; }

/* Items inside domain sidebar groups */
.kn-ds-group-body { padding-bottom: 0.25rem; }
.kn-ds-item-icon { font-size: 15px !important; vertical-align: middle; margin-right: 2px; color: var(--kn-text-muted); }

/* ═══════════════════════════════════════════════
   DNS Management page  (clientareadomaindns.tpl)
   ═══════════════════════════════════════════════ */

.kn-dns-card {
  background: var(--kn-card-bg);
  border: 1px solid var(--kn-border);
  border-radius: var(--kn-radius);
  overflow: hidden;
}

.kn-dns-card-header {
  padding: 1.25rem 1.5rem 0;
}
.kn-dns-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--kn-text);
  margin: 0;
}

.kn-dns-info {
  padding: 0.5rem 1.5rem 1rem;
  font-size: 0.875rem;
  color: var(--kn-text-muted);
}

.kn-dns-table-wrap {
  overflow-x: auto;
}

.kn-dns-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.kn-dns-table thead th {
  padding: 0.65rem 0.75rem;
  background: var(--kn-hover-bg);
  border-bottom: 1px solid var(--kn-border);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--kn-text-muted);
  white-space: nowrap;
}
.kn-dns-table tbody tr { border-bottom: 1px solid var(--kn-border); }
.kn-dns-table tbody tr:last-child { border-bottom: none; }
.kn-dns-table tbody td { padding: 0.55rem 0.75rem; vertical-align: middle; }

/* Inputs inside DNS table */
.kn-dns-input {
  width: 100%;
  padding: 0.375rem 0.5rem;
  border: 1px solid var(--kn-border);
  border-radius: 6px;
  font-size: 0.8125rem;
  color: var(--kn-text);
  background: var(--kn-card-bg);
  transition: border-color 0.15s;
}
.kn-dns-input:focus { outline: none; border-color: var(--kn-primary); box-shadow: 0 0 0 3px rgba(28,64,242,0.08); }

.kn-dns-select {
  padding: 0.375rem 0.5rem;
  border: 1px solid var(--kn-border);
  border-radius: 6px;
  font-size: 0.8125rem;
  color: var(--kn-text);
  background: var(--kn-card-bg);
  cursor: pointer;
  transition: border-color 0.15s;
  min-width: 160px;
}
.kn-dns-select:focus { outline: none; border-color: var(--kn-primary); box-shadow: 0 0 0 3px rgba(28,64,242,0.08); }

.kn-dns-priority { max-width: 80px; }
.kn-dns-na { font-size: 0.8125rem; color: var(--kn-text-muted); }

/* Delete button per row */
.kn-dns-delete-cell { width: 44px; text-align: center; }
.kn-dns-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 6px;
  color: var(--kn-text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.kn-dns-delete-btn:hover { background: #fff1f1; color: #dc3545; }
.kn-dns-delete-btn i { font-size: 18px; }

/* Add Record row */
.kn-dns-add-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--kn-border);
}

.kn-dns-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.875rem;
  border: 1px dashed var(--kn-primary);
  border-radius: 8px;
  background: transparent;
  color: var(--kn-primary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.kn-dns-add-btn:hover { background: var(--kn-primary-soft); }
.kn-dns-add-btn i { font-size: 18px; }

.kn-dns-mx-note {
  font-size: 0.75rem;
  color: var(--kn-text-muted);
}

/* Save / Cancel */
.kn-dns-form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--kn-border);
}

.kn-btn-primary-solid {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: var(--kn-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.15s;
}
.kn-btn-primary-solid:hover { background: var(--kn-primary-hover); }

.kn-btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: transparent;
  color: var(--kn-text);
  border: 1px solid var(--kn-border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.kn-btn-outline:hover { background: var(--kn-hover-bg); border-color: #c9cdd6; }

/* =========================================================
   DOMAIN OVERVIEW — two-column dashboard
========================================================= */
.kn-do-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  align-items: start;
}
@media (max-width: 960px) {
  .kn-do-grid { grid-template-columns: 1fr; }
  .kn-do-right { order: -1; }
}

.kn-do-left,
.kn-do-right { display: flex; flex-direction: column; gap: 16px; }

/* Card shell */
.kn-do-card {
  background: var(--kn-card-bg);
  border: 1px solid var(--kn-border);
  border-radius: 12px;
  padding: 20px;
}

/* Card heading row (title + optional link) */
.kn-do-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.kn-do-heading-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--kn-text);
}
.kn-do-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--kn-primary);
  text-decoration: none;
  cursor: pointer;
}
.kn-do-link:hover { text-decoration: underline; color: var(--kn-primary); }

/* ── Status card (top-right) ── */
.kn-do-domain-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.kn-do-domain-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--kn-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kn-do-domain-name i { font-size: 14px; color: var(--kn-text-muted); flex-shrink: 0; }
.kn-do-domain-name:hover { color: var(--kn-primary); text-decoration: none; }
.kn-do-domain-name:hover i { color: var(--kn-primary); }

.kn-do-status-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.kn-do-status-active    { background: #e6f4ea; color: #1e7e34; }
.kn-do-status-expired   { background: #fce8e6; color: #c5221f; }
.kn-do-status-pending,
.kn-do-status-grace     { background: #fff3cd; color: #856404; }
.kn-do-status-suspended,
.kn-do-status-cancelled { background: #fce8e6; color: #c5221f; }

/* Expiry row */
.kn-do-expiry-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.kn-do-expiry-ring {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--kn-primary);
}
.kn-do-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.kn-do-ring-bg {
  fill: none;
  stroke: var(--kn-border, #e5e7eb);
  stroke-width: 2.5;
}
.kn-do-ring-prog {
  fill: none;
  stroke: var(--kn-primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 138.23;
  stroke-dashoffset: 138.23;
  transition: stroke-dashoffset 0.6s ease, stroke 0.3s ease;
}
.kn-do-ring-prog.kn-do-ring--warn { stroke: #f59e0b; }
.kn-do-ring-prog.kn-do-ring--crit { stroke: #ef4444; }
.kn-do-expiry-ring i { font-size: 22px; position: relative; z-index: 1; }
.kn-do-expiry-info { display: flex; flex-direction: column; gap: 1px; }
.kn-do-expiry-label { font-size: 12px; color: var(--kn-text-muted); }
.kn-do-expiry-date  { font-size: 18px; font-weight: 700; color: var(--kn-text); line-height: 1.25; }
.kn-do-renew-link   { font-size: 13px; font-weight: 500; color: var(--kn-primary); text-decoration: none; margin-top: 1px; }
.kn-do-renew-link:hover { text-decoration: underline; }

/* Divider inside card */
.kn-do-divider { height: 1px; background: var(--kn-border); margin: 4px 0 10px; }

/* Toggle row */
.kn-do-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  gap: 10px;
}
.kn-do-toggle-row-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--kn-text);
}
.kn-do-toggle-row > span { font-size: 14px; color: var(--kn-text); }
.kn-do-info-icon { font-size: 14px !important; color: var(--kn-text-muted); cursor: help; vertical-align: middle; }

/* iOS-style toggle */
.kn-do-toggle {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.2s ease;
}
.kn-do-toggle--on  { background: var(--kn-primary); }
.kn-do-toggle--off { background: #ccc; }
.kn-do-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
  pointer-events: none;
}
.kn-do-toggle--on .kn-do-toggle-thumb { transform: translateX(20px); }

/* Action row (label + text link) */
.kn-do-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  gap: 10px;
}
.kn-do-action-row > span { font-size: 14px; color: var(--kn-text); }

/* ── Domain Details list (left card) ── */
.kn-do-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--kn-border);
  gap: 12px;
}
.kn-do-detail-row:last-child { border-bottom: none; }
.kn-do-detail-label { font-size: 14px; color: var(--kn-text-muted); flex-shrink: 0; }
.kn-do-detail-value { font-size: 14px; font-weight: 500; color: var(--kn-text); text-align: right; }
.kn-do-detail-ssl   { display: flex; align-items: center; gap: 5px; }

/* ── Connected Services list ── */
.kn-do-service-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--kn-border);
}
.kn-do-service-row:last-child { border-bottom: none; }
.kn-do-service-row--dim { opacity: 0.55; }

.kn-do-service-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--kn-hover-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--kn-text-muted);
}
.kn-do-service-icon i { font-size: 20px; }

.kn-do-service-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.kn-do-service-info strong { font-size: 14px; color: var(--kn-text); font-weight: 600; }
.kn-do-service-info span   { font-size: 12px; color: var(--kn-text-muted); }

.kn-do-service-btn {
  font-size: 14px;
  font-weight: 400;
  padding: 6px 16px;
  border-radius: 6px;
  border: 1px solid var(--kn-border);
  color: var(--kn-text);
  background: var(--kn-card-bg);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.kn-do-service-btn:hover { background: var(--kn-hover-bg); color: var(--kn-text); text-decoration: none; }
.kn-do-service-btn--primary {
  background: var(--kn-primary);
  color: #fff;
  border-color: var(--kn-primary);
}
.kn-do-service-btn--primary:hover { background: var(--kn-primary-hover); color: #fff; border-color: var(--kn-primary-hover); }

/* ── Nameserver list ── */
.kn-do-ns-item {
  font-size: 13px;
  color: var(--kn-text-muted);
  padding: 4px 0;
}

/* =========================================================
   CLIENT AREA HOME DASHBOARD
========================================================= */
.kn-app .kn-content:has(.kn-home) { max-width: 1180px; }

.kn-app .kn-content-card:has(.kn-home) {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 2rem 0 2.75rem;
}

.kn-home {
  --kn-home-accent: #1C40F2;
  --kn-home-line: #0000001a;
  --kn-home-muted: #697083;
  --kn-home-shadow: 0 12px 34px rgba(24, 31, 56, 0.06);
  color: #141824;
}

.kn-home a { text-decoration: none; }

.kn-home-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.kn-home-hero h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
  color: #111421;
}

.kn-home-hero p {
  margin: 0.75rem 0 0;
  color: var(--kn-home-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.kn-home-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 34px;
  padding: 6px 16px;
  border-radius: 6px;
  background: var(--kn-home-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

.kn-home-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(57, 47, 255, 0.28);
}

.kn-home-primary i,
.kn-home-stat-link i,
.kn-home-section-head a i,
.kn-home-centered-link i {
  font-size: 18px;
  line-height: 1;
}

.kn-home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.55rem;
}

.kn-home-stat,
.kn-home-panel {
  background: #fff;
  border: 1px solid var(--kn-home-line);
  border-radius: 12px;
}

.kn-home-stat {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  min-height: 110px;
  padding: 16px;
  color: #171b27;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.kn-home-stat:hover,
.kn-home-action:hover,
.kn-home-outline:hover,
.kn-home-wide-button:hover {
  text-decoration: none;
}

.kn-home-stat:hover {
  border-color: rgba(79, 70, 246, 0.28);
  box-shadow: 0 16px 36px rgba(24, 31, 56, 0.09);
  color: #171b27;
}

.kn-home-icon,
.kn-home-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  flex: 0 0 auto;
}

.kn-home-icon i,
.kn-home-row-icon i { font-size: 28px; }

.kn-home-stat-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kn-home-stat-label {
  color: #555e72;
  font-size: 14px;
  font-weight: 400;
}

.kn-home-stat-value {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: 0.3rem;
}

.kn-home-stat-value strong {
  font-size: 22px;
  line-height: 1.05;
  font-weight: 500;
}

.kn-home-stat-note {
  color: #6e7485;
  font-size: 14px;
  font-weight: 500;
}

.kn-home-stat-link {
  grid-column: 1 / -1;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--kn-home-accent);
  font-size: 14px;
  font-weight: 500;
  margin-top: 16px;
  padding-left: 2px;
}

.kn-home-stat--violet .kn-home-icon,
.kn-home-stat--violet.kn-home-row-icon,
.kn-home-stat--violet .kn-home-row-icon { background: #3c66ff12; color: #005cc0; }

.kn-home-stat--green .kn-home-icon,
.kn-home-stat--green.kn-home-row-icon,
.kn-home-stat--green .kn-home-row-icon { background: #eaf8ef; color: #2fbd68; }

.kn-home-stat--blue .kn-home-icon,
.kn-home-stat--blue.kn-home-row-icon,
.kn-home-stat--blue .kn-home-row-icon { background: #eef5ff; color: #2b6cff; }

.kn-home-stat--orange .kn-home-icon,
.kn-home-stat--orange.kn-home-row-icon,
.kn-home-stat--orange .kn-home-row-icon { background: #fff3e6; color: #ff9d27; }

.kn-home-stat--emerald .kn-home-icon,
.kn-home-stat--emerald.kn-home-row-icon,
.kn-home-stat--emerald .kn-home-row-icon { background: #eaf8ef; color: #28a963; }

.kn-home-panel {
  padding: 1.35rem;
  margin-bottom: 1.55rem;
}

.kn-home-panel h2 {
  margin: 0;
  color: #171b27;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
}

.kn-home-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.35rem;
}

.kn-home-action {
  min-height: 44px;
  display: grid;
  grid-template-columns: 50px 1fr 22px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  border: 1px solid var(--kn-home-line);
  border-radius: 10px;
  color: #1c2230;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.kn-home-action:hover {
  color: #1c2230;
  border-color: rgba(79, 70, 246, 0.28);
  background: #fcfcff;
}

.kn-home-action > i {
  justify-self: end;
  color: #6d7485;
  font-size: 20px;
}

.kn-home-action strong {
  font-size: 14px;
  font-weight: 500;
}

.kn-home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.kn-home-section-head a,
.kn-home-centered-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--kn-home-accent);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.kn-home-list {
  border-radius: 12px;
  overflow: hidden;
}

.kn-home-service-row,
.kn-home-domain-row,
.kn-home-empty {
  display: grid;
  align-items: center;
  gap: 1.15rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #5f5f5f1a;
}

.kn-home-service-row:last-child,
.kn-home-domain-row:last-child,
.kn-home-empty:last-child { border-bottom: 0; }

.kn-home-service-row {
  grid-template-columns: 58px minmax(210px, 1.7fr) minmax(120px, 0.8fr) minmax(125px, 0.8fr) 102px;
}

.kn-home-domain-row {
  grid-template-columns: 48px minmax(180px, 1fr) 90px minmax(130px, 0.8fr) 102px;
  min-height: 60px;
}

.kn-home-empty { grid-template-columns: 58px 1fr auto; }

.kn-home-main-cell {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kn-home-main-cell strong,
.kn-home-domain-row > strong,
.kn-home-empty strong {
  color: #202533;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.kn-home-main-cell span,
.kn-home-empty span,
.kn-home-meta span,
.kn-home-muted,
.kn-home-rec span {
  color: var(--kn-home-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.kn-home-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
  color: #26b864;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.kn-home-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.kn-home-status--suspended,
.kn-home-status--expired,
.kn-home-status--cancelled,
.kn-home-status--terminated { color: #dc3d4d; }

.kn-home-status--pending,
.kn-home-status--grace,
.kn-home-status--redemption { color: #d48708; }

.kn-home-pill {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 2px 16px;
  border-radius: 6px;
  background: #e9f8ef;
  color: #2ebd69;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.kn-home-meta {
  display: flex;
  flex-direction: column;
}

.kn-home-meta strong,
.kn-home-mini > strong,
.kn-home-support-metric strong {
  color: #1d2230;
  font-size: 14px;
  font-weight: 600;
}

.kn-home-outline,
.kn-home-wide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: #fff;
  color: var(--kn-home-accent);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.kn-home-outline:hover,
.kn-home-wide-button:hover {
  border-color: var(--kn-primary);
  color: var(--kn-primary);
  background: var(--kn-active-bg);
  text-decoration: none;
}

.kn-home-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #141824;
  cursor: default;
}

.kn-home-more i { font-size: 22px; }

.kn-home-centered-link {
  display: flex;
  justify-content: center;
  margin-top: 1.05rem;
}

.kn-home-bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.kn-home-bottom-grid .kn-home-panel { margin-bottom: 0; }

.kn-home-mini {
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.kn-home-balance {
  display: block;
  margin-top: 0.35rem;
  font-size: 20px !important;
  line-height: 1.1;
}

.kn-home-mini p {
  margin: 0.3rem 0 0;
  color: var(--kn-home-muted);
  font-size: 0.82rem;
}

.kn-home-divider {
  height: 1px;
  background: var(--kn-home-line);
  margin: 1.35rem 0;
}

.kn-home-wide-button {
  width: 100%;
  margin-top: auto;
}

.kn-home-support-metric {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  column-gap: 1rem;
  margin-bottom: 1.2rem;
}

.kn-home-support-metric .kn-home-icon { grid-row: span 2; }

.kn-home-support-metric span:not(.kn-home-icon) {
  color: var(--kn-home-muted);
  font-size: 0.82rem;
}

.kn-home-support-metric strong { font-size: 18px; }

.kn-home-recs h2 {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--kn-home-line);
}

.kn-home-rec {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--kn-home-line);
  align-items: start;
}

.kn-home-rec:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.kn-home-rec-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kn-home-rec-body .kn-home-outline {
  align-self: flex-start;
  margin-top: 0.85rem;
}

.kn-home-rec strong {
  color: #202533;
  font-size: 14px;
  font-weight: 600;
}

.kn-home-rec b {
  margin-top: 0.85rem;
  color: #151a26;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 600;
}

.kn-home-rec small {
  color: #333948;
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 1199.98px) {
  .kn-home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kn-home-service-row { grid-template-columns: 58px minmax(190px, 1.5fr) minmax(120px, 0.8fr) 102px; }
  .kn-home-service-row .kn-home-meta:nth-of-type(2) { display: none; }
  .kn-home-bottom-grid { grid-template-columns: 1fr; }
}

@media (max-width: 991.98px) {
  .kn-app .kn-content-card:has(.kn-home) { padding: 1rem 0 1.75rem; }
  .kn-home-hero {
    flex-direction: column;
    margin-bottom: 1.4rem;
  }
  .kn-home-primary { width: 100%; }
  .kn-home-stats,
  .kn-home-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kn-home-stat { min-height: 180px; }
  .kn-home-service-row,
  .kn-home-domain-row,
  .kn-home-empty {
    grid-template-columns: 48px 1fr auto;
    gap: 0.8rem;
  }
  .kn-home-service-row .kn-home-meta,
  .kn-home-domain-row .kn-home-meta,
  .kn-home-more { display: none; }
  .kn-home-domain-row .kn-home-pill { grid-column: 2; }
  .kn-home-domain-row .kn-home-outline,
  .kn-home-service-row .kn-home-outline {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 575.98px) {
  .kn-home-hero h1 { font-size: 1.65rem; }
  .kn-home-stats,
  .kn-home-quick-grid { grid-template-columns: 1fr; }
  .kn-home-panel { padding: 1.1rem; }
  .kn-home-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .kn-home-stat { min-height: 160px; }
  .kn-home-rec { grid-template-columns: 50px 1fr; }
  .kn-home-rec-body .kn-home-outline {
    align-self: stretch;
    width: 100%;
  }
}

.kn-apphosting-full .koda-dashboard {
  min-height: 720px;
}

.kn-apphosting-dashboard {
  max-width: 1180px;
  margin: 0 auto;
  color: #1f2937;
}

.kn-apphosting-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.kn-apphosting-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.kn-apphosting-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #ecf4ff;
  color: #2563eb;
  font-size: 1.35rem;
  flex: 0 0 auto;
}

.kn-apphosting-eyebrow {
  display: block;
  margin-bottom: 0.15rem;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kn-apphosting-hero h1 {
  margin: 0;
  color: #111827;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0;
}

.kn-apphosting-hero p {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.95rem;
}

.kn-apphosting-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 36px;
  padding: 0 0.9rem;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.kn-apphosting-status span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.kn-apphosting-status-active {
  background: #ecfdf5;
  color: #059669;
  border-color: #bbf7d0;
}

.kn-apphosting-status-pending,
.kn-apphosting-status-suspended {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.kn-apphosting-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.25rem;
  align-items: start;
}

.kn-apphosting-main,
.kn-apphosting-side {
  display: grid;
  gap: 1rem;
}

.kn-apphosting-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.kn-apphosting-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.kn-apphosting-panel h2,
.kn-apphosting-panel-head h2 {
  margin: 0 0 0.85rem;
  color: #111827;
  font-size: 1rem;
  font-weight: 800;
}

.kn-apphosting-panel-head h2 { margin-bottom: 0; }

.kn-apphosting-panel-head a {
  color: #2563eb;
  font-size: 0.85rem;
  font-weight: 700;
}

.kn-apphosting-plan-name {
  margin: 1rem 0;
  padding: 0.85rem;
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
  font-weight: 800;
}

.kn-apphosting-meta,
.kn-apphosting-addon-list {
  display: grid;
  gap: 0.75rem;
}

.kn-apphosting-meta div,
.kn-apphosting-addon-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.kn-apphosting-meta div:last-child,
.kn-apphosting-addon-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.kn-apphosting-meta span,
.kn-apphosting-addon-list span {
  color: #64748b;
  font-size: 0.84rem;
}

.kn-apphosting-meta strong,
.kn-apphosting-addon-list strong {
  color: #111827;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: right;
}

.kn-apphosting-actions {
  display: grid;
  gap: 0.65rem;
}

.kn-apphosting-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 800;
}

.kn-apphosting-action-primary {
  background: #2563eb;
  color: #fff;
}

.kn-apphosting-action-primary:hover {
  background: #1d4ed8;
  color: #fff;
  text-decoration: none;
}

.kn-apphosting-action-danger {
  background: #fff;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.kn-apphosting-action-danger:hover {
  background: #fef2f2;
  color: #b91c1c;
  text-decoration: none;
}

.kn-apphosting-dashboard .module-client-area,
.kn-apphosting-dashboard .text-center {
  text-align: left !important;
}

.kn-apphosting-dashboard .koda-dashboard {
  background: transparent;
  border: 0;
  box-shadow: none;
}

@media (max-width: 991.98px) {
  .kn-apphosting-grid { grid-template-columns: 1fr; }
  .kn-apphosting-hero { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 575.98px) {
  .kn-apphosting-title { align-items: flex-start; }
  .kn-apphosting-hero h1 { font-size: 1.45rem; }
  .kn-apphosting-meta div,
  .kn-apphosting-addon-list div {
    flex-direction: column;
    gap: 0.2rem;
  }
  .kn-apphosting-meta strong,
  .kn-apphosting-addon-list strong {
    text-align: left;
  }
}
