.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 */
.password-change-container {
  margin-top: 0;
}

.password-form-card {
background: var(--card-bg, #fff);
border-top-left-radius: 1.5rem;
border-bottom-left-radius: 1.5rem;
padding: 2.5rem;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
height: 100%;
}

[data-bs-theme="dark"] .password-form-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
}

.password-header {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.password-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;
}

.password-icon i {
  font-size: 1.5rem;
  color: var(--primary);
}

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

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

.password-label {
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.password-input-wrapper {
  position: relative;
}

.password-input {
  padding-right: 3rem !important;
  border-radius: 0.75rem !important;
  border: 1.5px solid var(--border-color) !important;
  transition: all 0.2s ease;
  background-position: right 3.5rem center !important;
}

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

.password-input.is-valid {
  background-position: right 3.5rem center !important;
  padding-right: 5rem !important;
}

.password-input.is-invalid {
  background-position: right 3.5rem center !important;
  padding-right: 5rem !important;
}

.password-input.is-warning {
  background-position: right 3.5rem center !important;
  padding-right: 5rem !important;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
}

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

.btn-link-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.btn-link-clear:hover {
  color: var(--primary);
  text-decoration: none;
}

.password-tips {
  background: rgba(0, 102, 204, 0.05);
  border-left: 3px solid var(--primary);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
}

[data-bs-theme="dark"] .password-tips {
  background: rgba(0, 102, 204, 0.1);
}

.tips-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.tips-header i {
  color: var(--primary);
}

.tips-list {
  margin: 0;
  padding-left: 1.5rem;
  list-style: none;
}

.tips-list li {
  position: relative;
  color: var(--body-color);
  font-size: 0.875rem;
  line-height: 1.8;
}

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

.password-actions {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.password-actions .btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}

.password-image-section {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 102, 204, 0.1) 100%);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 1.5rem 1.5rem 0;
  padding: 3rem;
}

[data-bs-theme="dark"] .password-image-section {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 102, 204, 0.15) 100%);
}

.password-illustration {
  text-align: center;
  max-width: 400px;
}

.password-illustration i {
  font-size: 8rem;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 2rem;
}

.password-illustration h4 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 1rem;
}

.password-illustration p {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

@media (max-width: 991.98px) {
  .password-form-card {
    padding: 1.5rem;
  }
  
  .password-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .password-actions {
    flex-direction: column;
  }
  
  .password-actions .btn {
    width: 100%;
  }
}

/* ==================== 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: 0.65rem 1.65rem !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: 0.65rem 1.65rem !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; }
}

#frmCheckout {
  background: var(--card-bg);
  padding: 30px;
  border-radius: var(--custom-radius);
  border: 1px solid var(--border-color);
}

.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: 0.5rem!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: 8px; height: 8px; border-radius: 100%;
  transform: scale(1);
  background-color: var(--danger);
  animation: pulse-red 5s infinite;
  top: 5px; left: 12px;
}

/* 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: -3px; }

/* =========================
   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: 8px; height: 8px; animation: none;
    top: 2px; left: 10px;
  }

  /* 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: 12px;
  padding: 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: 12px;
  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: 1.25rem 1.5rem;
  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: 10px;
  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: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

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

/* 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: center;
}

.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);
  margin: 0 0 1.25rem 0 !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;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  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: 1rem 1.5rem!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;
}

[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: 1rem 1.5rem!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;
  border-bottom: 1px solid var(--border-color);
  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);
}

.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: var(--primary-light);
border-color: var(--primary-light);
font-size: 0.82rem;
}

.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;
}

/* 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: 16px;
  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: 0.5rem !important;
  padding: 0.65rem 1.65rem !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;
  border-radius: 0 8px 8px 0 !important;
  padding: 0.65rem 1.65rem !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: 0.5rem !important;
  padding: 0.65rem 1.65rem !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: 0.5rem !important;
  padding: 0.65rem 1.65rem !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;
}

@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: 80px;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
}

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 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-align: left;
    width: 100%;
  }

  .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;
}
