/* **************************************************************************
 * WYREBASE WHMCS ENTERPRISE DESIGN SYSTEM (v1.0)
 * Built strictly on Bootstrap 5 / Twenty-One Core
 * Official Brand Typography: DM Sans (Headings max weight: 500)
 * Official Brand Palette: #0000ee (Primary), #8c85ff (Meteorite), #18181b
 * 100% Legal, Native, Scalable & Zero Debt
 ************************************************************************** */

/* ==========================================================================
   1. TOKENS & CSS VARIABLES
   ========================================================================== */
:root {
  /* Typography */
  --wb-font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Wyrebase Official Palette */
  --wb-primary: #0000ee;
  --wb-primary-hover: #0000cc;
  --wb-primary-active: #0000aa;
  --wb-primary-subtle: #eef2ff;
  --wb-primary-border: #c7d2fe;

  /* Meteorite Accent */
  --wb-meteorite: #8c85ff;
  --wb-meteorite-light: #f5f3ff;
  --wb-meteorite-border: #ddd6fe;

  /* Neutrals & Surfaces */
  --wb-bg-page: #fafafa;
  --wb-bg-surface: #ffffff;
  --wb-bg-subtle: #f4f4f5;
  --wb-bg-muted: #f9fafb;
  
  --wb-border-light: #f4f4f5;
  --wb-border: #e4e4e7;
  --wb-border-focus: #0000ee;

  /* Text Colors */
  --wb-text-primary: #09090b;
  --wb-text-secondary: #52525b;
  --wb-text-muted: #71717a;
  --wb-text-disabled: #a1a1aa;

  /* Semantic Status Colors (Tailwind / SaaS style) */
  --wb-success-bg: #ecfdf5;
  --wb-success-text: #047857;
  --wb-success-border: #a7f3d0;

  --wb-warning-bg: #fffbeb;
  --wb-warning-text: #b45309;
  --wb-warning-border: #fde68a;

  --wb-danger-bg: #fef2f2;
  --wb-danger-text: #b91c1c;
  --wb-danger-border: #fecaca;

  --wb-info-bg: #eff6ff;
  --wb-info-text: #1d4ed8;
  --wb-info-border: #bfdbfe;

  /* Radii */
  --wb-radius-sm: 8px;
  --wb-radius-md: 12px;
  --wb-radius-lg: 16px;
  --wb-radius-pill: 9999px;

  /* Shadows */
  --wb-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --wb-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
  --wb-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  --wb-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --wb-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.07), 0 8px 10px -6px rgba(0, 0, 0, 0.03);

  /* Bootstrap Variable Overrides */
  --bs-font-sans-serif: var(--wb-font-family);
  --bs-primary: var(--wb-primary);
  --bs-body-bg: var(--wb-bg-page);
  --bs-body-color: var(--wb-text-primary);
  --bs-body-font-family: var(--wb-font-family);
}

/* ==========================================================================
   2. GLOBAL RESET & TYPOGRAPHY STANDARDS
   ========================================================================== */
html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--wb-font-family) !important;
  background-color: var(--wb-bg-page) !important;
  color: var(--wb-text-primary) !important;
  line-height: 1.6;
}

/* Strict Rule: Headings font-family DM Sans with max font-weight: 500 */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--wb-font-family) !important;
  font-weight: 500 !important;
  color: var(--wb-text-primary);
  letter-spacing: -0.02em;
}

h1, .h1 { font-size: 1.875rem; margin-bottom: 1.25rem; }
h2, .h2 { font-size: 1.5rem; margin-bottom: 1rem; }
h3, .h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h4, .h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }
h5, .h5 { font-size: 1rem; margin-bottom: 0.5rem; }
h6, .h6 { font-size: 0.875rem; margin-bottom: 0.5rem; }

a {
  color: var(--wb-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--wb-primary-hover);
  text-decoration: none;
}

/* ==========================================================================
   3. HEADER & ENTERPRISE NAVBAR (SaaS SHELL)
   ========================================================================== */
.header,
header#header {
  background-color: var(--wb-bg-surface) !important;
  border-bottom: 1px solid var(--wb-border) !important;
  box-shadow: var(--wb-shadow-xs) !important;
}

.topbar {
  background-color: #fafafa !important;
  border-bottom: 1px solid var(--wb-border-light) !important;
  padding: 6px 0;
  font-size: 0.8125rem;
}

.topbar .btn {
  font-size: 0.8125rem;
  color: var(--wb-text-secondary);
  padding: 4px 10px;
  border-radius: var(--wb-radius-sm);
}

.topbar .btn:hover {
  color: var(--wb-primary);
  background-color: var(--wb-bg-subtle);
}

.navbar-light {
  background-color: var(--wb-bg-surface) !important;
  padding: 0.875rem 0;
}

.navbar-brand {
  font-family: var(--wb-font-family);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--wb-text-primary) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand img,
.navbar-brand .logo-img {
  max-height: 38px;
  width: auto;
  object-fit: contain;
}

/* Main Navigation Menu */
.main-navbar-wrapper {
  background-color: var(--wb-bg-surface) !important;
  border-top: 1px solid var(--wb-border-light);
  padding: 0;
}

.main-navbar-wrapper .navbar-nav .nav-link {
  color: var(--wb-text-secondary) !important;
  font-family: var(--wb-font-family);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.875rem 1rem !important;
  border-radius: var(--wb-radius-sm);
  transition: all 0.15s ease-in-out;
}

.main-navbar-wrapper .navbar-nav .nav-link:hover,
.main-navbar-wrapper .navbar-nav .nav-item.active .nav-link {
  color: var(--wb-primary) !important;
  background-color: var(--wb-primary-subtle);
}

.navbar-nav .toolbar .nav-link {
  color: var(--wb-text-secondary);
  border-radius: var(--wb-radius-sm);
}

.cart-btn {
  position: relative;
}

.cart-btn .badge,
#cartItemCount {
  background-color: var(--wb-primary) !important;
  color: #ffffff !important;
  font-size: 0.7rem;
  border-radius: var(--wb-radius-pill);
  padding: 3px 7px;
  font-weight: 500;
}

/* Floating Dropdowns */
.dropdown-menu {
  background-color: var(--wb-bg-surface);
  border: 1px solid var(--wb-border) !important;
  border-radius: var(--wb-radius-md) !important;
  box-shadow: var(--wb-shadow-xl) !important;
  padding: 6px !important;
  min-width: 210px;
}

.dropdown-item {
  font-family: var(--wb-font-family);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wb-text-secondary);
  border-radius: var(--wb-radius-sm);
  padding: 8px 12px;
  transition: all 0.15s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--wb-primary);
  background-color: var(--wb-primary-subtle);
}

.dropdown-divider {
  border-top: 1px solid var(--wb-border-light);
  margin: 6px 0;
}

/* Breadcrumbs */
.master-breadcrumb {
  background: transparent !important;
  padding: 1.25rem 0 0.5rem 0;
}

.breadcrumb {
  background: transparent !important;
  padding: 0;
  margin: 0;
  font-size: 0.8125rem;
}

.breadcrumb-item a {
  color: var(--wb-text-muted);
}

.breadcrumb-item a:hover {
  color: var(--wb-primary);
}

.breadcrumb-item.active {
  color: var(--wb-text-primary);
  font-weight: 500;
}

/* ==========================================================================
   4. CARDS & PANELS (SaaS DESIGN)
   ========================================================================== */
.card,
.panel {
  background-color: var(--wb-bg-surface) !important;
  border: 1px solid var(--wb-border) !important;
  border-radius: var(--wb-radius-md) !important;
  box-shadow: var(--wb-shadow-sm) !important;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card-header,
.panel-heading {
  background-color: var(--wb-bg-surface) !important;
  border-bottom: 1px solid var(--wb-border-light) !important;
  padding: 1.125rem 1.5rem !important;
  font-family: var(--wb-font-family);
  font-weight: 500 !important;
  color: var(--wb-text-primary);
}

.card-title,
.panel-title {
  font-family: var(--wb-font-family);
  font-weight: 500 !important;
  font-size: 1.125rem;
  color: var(--wb-text-primary);
  margin: 0;
}

.card-body,
.panel-body {
  padding: 1.5rem !important;
}

.card-footer,
.panel-footer {
  background-color: var(--wb-bg-muted) !important;
  border-top: 1px solid var(--wb-border-light) !important;
  padding: 1rem 1.5rem !important;
  border-radius: 0 0 var(--wb-radius-md) var(--wb-radius-md);
  font-size: 0.875rem;
}

/* ==========================================================================
   5. DASHBOARD TILES / METRICS (HOMEPAGE)
   ========================================================================== */
.tiles {
  margin-bottom: 2rem;
}

.tiles .row {
  margin-right: -8px;
  margin-left: -8px;
}

.tiles .col-6,
.tiles .col-xl-3 {
  padding-right: 8px;
  padding-left: 8px;
  margin-bottom: 16px;
}

.tile {
  background: var(--wb-bg-surface);
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius-md);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  box-shadow: var(--wb-shadow-xs);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--wb-shadow-md);
  border-color: #d4d4d8;
  text-decoration: none;
}

.tile i {
  font-size: 1.35rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--wb-radius-sm);
  margin-bottom: 1rem;
}

/* Service tile: Wyrebase Blue */
.tile:has(.fa-cube) i,
.tile a[href*="services"] i {
  background: var(--wb-primary-subtle);
  color: var(--wb-primary);
}

/* Domains tile: Emerald */
.tile:has(.fa-globe) i,
.tile a[href*="domains"] i {
  background: var(--wb-success-bg);
  color: var(--wb-success-text);
}

/* Tickets tile: Danger / Red */
.tile:has(.fa-comments) i,
.tile a[href*="tickets"] i {
  background: var(--wb-danger-bg);
  color: var(--wb-danger-text);
}

/* Invoices tile: Warning / Amber */
.tile:has(.fa-credit-card) i,
.tile a[href*="invoices"] i {
  background: var(--wb-warning-bg);
  color: var(--wb-warning-text);
}

.tile .stat {
  font-family: var(--wb-font-family);
  font-size: 2.15rem;
  font-weight: 500;
  color: var(--wb-text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.tile .title {
  font-family: var(--wb-font-family);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--wb-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tile .highlight {
  display: none !important; /* Hide old ugly horizontal bars */
}

/* ==========================================================================
   6. DATATABLES & ENTERPRISE LISTS (100% TABLES)
   ========================================================================== */
.table-container {
  background: var(--wb-bg-surface);
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius-md);
  overflow: hidden;
  box-shadow: var(--wb-shadow-sm);
  margin-bottom: 2rem;
}

.table {
  width: 100% !important;
  color: var(--wb-text-primary) !important;
  font-family: var(--wb-font-family);
  font-size: 0.875rem;
  margin-bottom: 0 !important;
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  background-color: var(--wb-bg-subtle) !important;
  color: var(--wb-text-secondary) !important;
  font-family: var(--wb-font-family);
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-weight: 500 !important;
  padding: 1rem 1.25rem !important;
  border-bottom: 1px solid var(--wb-border) !important;
  border-top: none !important;
  white-space: nowrap;
}

.table tbody td {
  padding: 1.125rem 1.25rem !important;
  vertical-align: middle !important;
  border-bottom: 1px solid var(--wb-border-light) !important;
  color: var(--wb-text-primary);
  font-size: 0.875rem;
}

.table tbody tr {
  transition: background-color 0.15s ease;
}

.table tbody tr:hover {
  background-color: #fafafa !important;
}

.table tbody tr:last-child td {
  border-bottom: none !important;
}

/* DataTables pagination & filters */
.dataTables_wrapper {
  padding: 1rem;
}

.dataTables_wrapper .dataTables_filter input {
  height: 38px;
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius-sm);
  padding: 6px 12px;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--wb-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 238, 0.12);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: var(--wb-radius-sm) !important;
  padding: 6px 12px !important;
  font-size: 0.8125rem !important;
  font-weight: 500;
  border: 1px solid transparent !important;
  transition: all 0.15s;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--wb-primary) !important;
  color: #ffffff !important;
  border-color: var(--wb-primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--wb-bg-subtle) !important;
  color: var(--wb-text-primary) !important;
}

/* ==========================================================================
   7. STATUS BADGES & PILLS (100% STATUSES)
   ========================================================================== */
.badge,
.label,
.status {
  font-family: var(--wb-font-family) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  padding: 0.3rem 0.75rem !important;
  border-radius: var(--wb-radius-pill) !important;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  line-height: 1.3 !important;
  text-transform: capitalize;
}

/* Active / Paid / Completed */
.status-active,
.status-paid,
.status-completed,
.badge-success,
.label-success,
.badge-active {
  background-color: var(--wb-success-bg) !important;
  color: var(--wb-success-text) !important;
  border: 1px solid var(--wb-success-border) !important;
}

/* Pending / Unpaid / In Progress */
.status-pending,
.status-unpaid,
.status-in-progress,
.badge-warning,
.label-warning,
.badge-pending {
  background-color: var(--wb-warning-bg) !important;
  color: var(--wb-warning-text) !important;
  border: 1px solid var(--wb-warning-border) !important;
}

/* Suspended / Terminated / Cancelled / Overdue / Closed */
.status-suspended,
.status-terminated,
.status-cancelled,
.status-closed,
.status-overdue,
.badge-danger,
.label-danger,
.badge-suspended {
  background-color: var(--wb-danger-bg) !important;
  color: var(--wb-danger-text) !important;
  border: 1px solid var(--wb-danger-border) !important;
}

/* Customer Reply / Answered / Info */
.status-customer-reply,
.status-answered,
.badge-info,
.label-info {
  background-color: var(--wb-info-bg) !important;
  color: var(--wb-info-text) !important;
  border: 1px solid var(--wb-info-border) !important;
}

/* Draft / Collections */
.status-draft,
.badge-secondary,
.label-default {
  background-color: var(--wb-bg-subtle) !important;
  color: var(--wb-text-secondary) !important;
  border: 1px solid var(--wb-border) !important;
}

/* ==========================================================================
   8. BUTTONS & ACTIONS
   ========================================================================== */
.btn {
  font-family: var(--wb-font-family) !important;
  font-weight: 500 !important;
  border-radius: var(--wb-radius-sm) !important;
  padding: 0.625rem 1.25rem !important;
  font-size: 0.875rem !important;
  transition: all 0.15s ease-in-out !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background-color: var(--wb-primary) !important;
  border-color: var(--wb-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--wb-primary-hover) !important;
  border-color: var(--wb-primary-hover) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 238, 0.28) !important;
}

.btn-primary:active {
  background-color: var(--wb-primary-active) !important;
  border-color: var(--wb-primary-active) !important;
  transform: translateY(0);
}

.btn-default,
.btn-secondary {
  background-color: var(--wb-bg-surface) !important;
  border: 1px solid var(--wb-border) !important;
  color: var(--wb-text-primary) !important;
  box-shadow: var(--wb-shadow-xs) !important;
}

.btn-default:hover,
.btn-secondary:hover {
  background-color: var(--wb-bg-subtle) !important;
  border-color: #d4d4d8 !important;
  color: var(--wb-text-primary) !important;
}

.btn-success {
  background-color: #059669 !important;
  border-color: #059669 !important;
  color: #ffffff !important;
}

.btn-success:hover {
  background-color: #047857 !important;
  border-color: #047857 !important;
}

.btn-danger {
  background-color: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
}

.btn-danger:hover {
  background-color: #b91c1c !important;
  border-color: #b91c1c !important;
}

.btn-block {
  width: 100%;
}

.btn-sm, .btn-xs {
  padding: 0.375rem 0.75rem !important;
  font-size: 0.8125rem !important;
  border-radius: var(--wb-radius-sm) !important;
}

.btn-lg {
  padding: 0.75rem 1.5rem !important;
  font-size: 1rem !important;
  border-radius: var(--wb-radius-md) !important;
}

/* ==========================================================================
   9. FORMS, INPUTS & CONTROLS
   ========================================================================== */
.form-group {
  margin-bottom: 1.25rem;
}

label,
.form-control-label {
  font-family: var(--wb-font-family);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--wb-text-secondary);
  margin-bottom: 0.375rem;
  display: block;
}

.form-control {
  height: 44px;
  background-color: var(--wb-bg-surface) !important;
  border: 1px solid var(--wb-border) !important;
  border-radius: var(--wb-radius-sm) !important;
  padding: 0.5rem 0.875rem !important;
  font-family: var(--wb-font-family);
  font-size: 0.875rem !important;
  color: var(--wb-text-primary) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  border-color: var(--wb-primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 238, 0.12) !important;
  outline: none !important;
}

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

.input-group-merge .input-group-text {
  background-color: var(--wb-bg-subtle) !important;
  border: 1px solid var(--wb-border) !important;
  border-radius: var(--wb-radius-sm) 0 0 var(--wb-radius-sm) !important;
  color: var(--wb-text-muted) !important;
}

.input-group-merge .form-control {
  border-left: none !important;
}

/* ==========================================================================
   10. AUTHENTICATION PAGES (LOGIN, REGISTER, PASSWORD RESET)
   ========================================================================== */
.login-form,
.register-form {
  max-width: 480px;
  margin: 2.5rem auto;
}

.login-form .card,
.register-form .card {
  border: 1px solid var(--wb-border) !important;
  border-radius: var(--wb-radius-lg) !important;
  box-shadow: var(--wb-shadow-lg) !important;
  overflow: hidden;
}

.login-brand-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-brand-header img {
  max-height: 44px;
  margin-bottom: 1rem;
}

.login-brand-header h1 {
  font-size: 1.65rem;
  margin-bottom: 0.25rem;
}

.login-brand-header p {
  color: var(--wb-text-muted);
  font-size: 0.875rem;
}

/* ==========================================================================
   11. INVOICE VIEW (VIEWINVOICE.TPL & INVOICE PAYMENT)
   ========================================================================== */
.invoice-container {
  max-width: 860px;
  margin: 3rem auto;
  background: var(--wb-bg-surface);
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius-lg);
  box-shadow: var(--wb-shadow-md);
  padding: 2.5rem !important;
}

.invoice-header {
  border-bottom: 1px solid var(--wb-border-light);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.invoice-header img {
  max-height: 48px;
  margin-bottom: 0.75rem;
}

.invoice-header h3 {
  font-size: 1.5rem;
  color: var(--wb-text-primary);
  margin: 0;
}

.invoice-status-banner {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: var(--wb-radius-pill);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.invoice-container .table-invoice th {
  background: var(--wb-bg-subtle);
  border-bottom: 1px solid var(--wb-border);
  font-size: 0.8125rem;
  text-transform: uppercase;
}

.invoice-container .table-invoice td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--wb-border-light);
}

.invoice-total-card {
  background: var(--wb-bg-muted);
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius-md);
  padding: 1.5rem;
}

/* ==========================================================================
   12. SERVICES & HOSTING (CPANEL INTEGRATION)
   ========================================================================== */
.product-details .product-icon i {
  color: var(--wb-primary);
}

.product-status-active {
  color: var(--wb-success-text);
}

.cpanel-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 1.5rem;
}

.cpanel-shortcut-card {
  background: var(--wb-bg-surface);
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius-sm);
  padding: 1rem 0.75rem;
  text-align: center;
  text-decoration: none;
  color: var(--wb-text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.cpanel-shortcut-card:hover {
  background: var(--wb-primary-subtle);
  border-color: var(--wb-primary-border);
  color: var(--wb-primary);
  transform: translateY(-2px);
  text-decoration: none;
}

.cpanel-shortcut-card i {
  font-size: 1.5rem;
  color: var(--wb-primary);
}

.cpanel-shortcut-card span {
  font-size: 0.8125rem;
  font-weight: 500;
}

.progress {
  height: 10px;
  border-radius: var(--wb-radius-pill);
  background-color: var(--wb-bg-subtle);
  overflow: hidden;
}

.progress-bar {
  background-color: var(--wb-primary);
  border-radius: var(--wb-radius-pill);
}

/* ==========================================================================
   13. SUPPORT TICKETS (CHAT CONVERSATION TIMELINE)
   ========================================================================== */
.ticket-reply-markdown {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.view-ticket-message {
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius-md);
  margin-bottom: 1.5rem;
  background: var(--wb-bg-surface);
  box-shadow: var(--wb-shadow-xs);
  overflow: hidden;
}

.view-ticket-message.staff {
  border-left: 4px solid var(--wb-primary) !important;
}

.view-ticket-message.client {
  border-left: 4px solid var(--wb-meteorite) !important;
}

.view-ticket-message .message-header {
  background: var(--wb-bg-subtle);
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--wb-border-light);
}

.view-ticket-message .user-name {
  font-weight: 500;
  color: var(--wb-text-primary);
}

.view-ticket-message .badge-staff {
  background: var(--wb-primary-subtle);
  color: var(--wb-primary);
  border: 1px solid var(--wb-primary-border);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--wb-radius-pill);
  font-weight: 500;
}

/* ==========================================================================
   14. SIDEBARS & NAVIGATION
   ========================================================================== */
.sidebar .panel {
  border-radius: var(--wb-radius-md);
  margin-bottom: 1.25rem;
}

.sidebar .list-group-item {
  border-color: var(--wb-border-light) !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wb-text-secondary);
  transition: all 0.15s;
}

.sidebar .list-group-item:hover {
  background-color: var(--wb-bg-subtle) !important;
  color: var(--wb-primary) !important;
}

.sidebar .list-group-item.active {
  background-color: var(--wb-primary-subtle) !important;
  color: var(--wb-primary) !important;
  border-color: var(--wb-primary-subtle) !important;
  border-left: 3px solid var(--wb-primary) !important;
}

/* ==========================================================================
   15. FOOTER & LOCALIZATION
   ========================================================================== */
footer#footer,
.footer {
  background-color: var(--wb-bg-surface) !important;
  border-top: 1px solid var(--wb-border) !important;
  padding: 2.5rem 0 1.5rem 0 !important;
  color: var(--wb-text-muted);
  font-size: 0.875rem;
  margin-top: 4rem;
}

.footer a {
  color: var(--wb-text-secondary);
}

.footer a:hover {
  color: var(--wb-primary);
}

.footer .btn {
  border-radius: var(--wb-radius-pill) !important;
  border: 1px solid var(--wb-border) !important;
  background: var(--wb-bg-subtle) !important;
  color: var(--wb-text-secondary) !important;
  padding: 0.375rem 0.875rem !important;
  font-size: 0.8125rem !important;
}

.footer .copyright {
  color: var(--wb-text-muted);
  font-size: 0.8125rem;
}

/* Modals */
.modal-content {
  border: 1px solid var(--wb-border) !important;
  border-radius: var(--wb-radius-lg) !important;
  box-shadow: var(--wb-shadow-xl) !important;
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--wb-border-light) !important;
  padding: 1.25rem 1.5rem !important;
}

.modal-title {
  font-family: var(--wb-font-family);
  font-weight: 500 !important;
  font-size: 1.15rem;
}

.modal-body {
  padding: 1.5rem !important;
}

.modal-footer {
  border-top: 1px solid var(--wb-border-light) !important;
  background-color: var(--wb-bg-muted) !important;
  padding: 1rem 1.5rem !important;
}

/* ==========================================================================
   16. DEPARTMENT CARDS (SUPPORT STEP 1)
   ========================================================================== */
.department-card {
  border: 1px solid var(--wb-border) !important;
  border-radius: var(--wb-radius-md) !important;
  padding: 1.5rem !important;
  text-decoration: none !important;
  background-color: var(--wb-bg-surface);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  box-shadow: var(--wb-shadow-xs);
}

.department-card:hover {
  transform: translateY(-2px);
  border-color: var(--wb-primary-border) !important;
  box-shadow: var(--wb-shadow-md);
  text-decoration: none !important;
}

.dept-icon {
  width: 44px;
  height: 44px;
  background: var(--wb-primary-subtle);
  color: var(--wb-primary);
  border-radius: var(--wb-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-right: 1rem;
}

/* ==========================================================================
   17. TICKET DETAILS & REPLIES (VIEWTICKET.TPL)
   ========================================================================== */
.view-ticket {
  border-radius: var(--wb-radius-lg) !important;
}

.ticket-reply {
  background: var(--wb-bg-surface);
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--wb-shadow-xs);
}

.ticket-reply.staff {
  background: #fbfcff !important;
  border-left: 4px solid var(--wb-primary) !important;
}

.posted-by {
  font-size: 0.8125rem;
  color: var(--wb-text-muted);
  border-bottom: 1px solid var(--wb-border-light);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.posted-by-name {
  font-weight: 500;
  color: var(--wb-text-primary);
}

.requestor-badge {
  font-size: 0.7rem !important;
  padding: 2px 8px !important;
  border-radius: var(--wb-radius-pill) !important;
}

.requestor-type-operator {
  background-color: var(--wb-primary-subtle) !important;
  color: var(--wb-primary) !important;
  border: 1px solid var(--wb-primary-border) !important;
}

.requestor-type-owner {
  background-color: var(--wb-bg-subtle) !important;
  color: var(--wb-text-secondary) !important;
}

/* ==========================================================================
   18. DOMAIN SEARCH & PRICING
   ========================================================================== */
.domain-checker-bg {
  background: linear-gradient(135deg, #0000ee 0%, #4338ca 100%);
  border-radius: var(--wb-radius-lg);
  padding: 3rem 2rem;
  color: #ffffff;
  margin-bottom: 2.5rem;
}

.domain-checker-bg h2 {
  color: #ffffff !important;
  font-weight: 500 !important;
}

.domain-checker-bg .input-group .form-control {
  height: 52px;
  font-size: 1rem;
  border-radius: var(--wb-radius-md) 0 0 var(--wb-radius-md) !important;
  border: none;
}

.domain-checker-bg .input-group .btn {
  height: 52px;
  border-radius: 0 var(--wb-radius-md) var(--wb-radius-md) 0 !important;
  padding: 0 1.75rem !important;
  font-size: 1rem;
}

/* ==========================================================================
   19. SHOPPING CART & CHECKOUT (ORDERFORMS)
   ========================================================================== */
.order-box,
.order-summary {
  background: var(--wb-bg-surface);
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius-md);
  padding: 1.5rem;
  box-shadow: var(--wb-shadow-sm);
}

.order-summary .total-due {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--wb-primary);
  letter-spacing: -0.02em;
}

.order-btn-checkout {
  height: 50px;
  font-size: 1rem !important;
  font-weight: 500 !important;
  border-radius: var(--wb-radius-md) !important;
}

/* ==========================================================================
   20. HOMEPAGE ACTION ICON BUTTONS
   ========================================================================== */
.action-icon-btns a {
  background: var(--wb-bg-surface);
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--wb-text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  box-shadow: var(--wb-shadow-xs);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}

.action-icon-btns a:hover {
  transform: translateY(-3px);
  box-shadow: var(--wb-shadow-md);
  border-color: #d4d4d8;
  color: var(--wb-primary);
  text-decoration: none;
}

.action-icon-btns .ico-container {
  width: 52px;
  height: 52px;
  background: var(--wb-primary-subtle);
  color: var(--wb-primary);
  border-radius: var(--wb-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   21. LOCALISATION MODAL (LANGUAGE & CURRENCY SELECTOR)
   ========================================================================== */
.modal-localisation .modal-content {
  border-radius: var(--wb-radius-lg) !important;
  border: 1px solid var(--wb-border);
  box-shadow: var(--wb-shadow-xl);
  overflow: hidden;
}

.modal-localisation .modal-body {
  padding: 2rem !important;
}

.modal-localisation h5,
.modal-localisation .h5 {
  font-family: var(--wb-font-family);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--wb-text-primary);
  margin-bottom: 1rem;
  padding-top: 0 !important;
}

.modal-localisation .item-selector {
  margin-bottom: 1.5rem;
}

.modal-localisation .item-selector .col-4,
.modal-localisation .item-selector .col-md-4 {
  margin-bottom: 0.75rem;
}

.modal-localisation .item-selector .item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background-color: var(--wb-bg-surface);
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--wb-font-family);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wb-text-secondary);
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

.modal-localisation .item-selector .item:hover {
  background-color: var(--wb-primary-subtle);
  border-color: var(--wb-primary-border);
  color: var(--wb-primary);
  text-decoration: none;
}

.modal-localisation .item-selector .item.active {
  background-color: var(--wb-primary-subtle);
  border-color: var(--wb-primary);
  color: var(--wb-primary);
  box-shadow: 0 0 0 1px var(--wb-primary);
}

/* ==========================================================================
   22. DASHBOARD HOME PANELS & CARD ACCENTS
   ========================================================================== */
.client-home-cards .card {
  border: 1px solid var(--wb-border) !important;
  border-radius: var(--wb-radius-md) !important;
  box-shadow: var(--wb-shadow-xs) !important;
  transition: box-shadow 0.2s ease;
}

.client-home-cards .card:hover {
  box-shadow: var(--wb-shadow-sm) !important;
}

.client-home-cards .card-accent-blue {
  border-top: 3px solid var(--wb-primary) !important;
}

.client-home-cards .card-accent-green {
  border-top: 3px solid #059669 !important;
}

.client-home-cards .card-accent-red {
  border-top: 3px solid #dc2626 !important;
}

.client-home-cards .card-accent-gold,
.client-home-cards .card-accent-warning {
  border-top: 3px solid #d97706 !important;
}

.client-home-cards .card-accent-purple,
.client-home-cards .card-accent-midnight-blue {
  border-top: 3px solid var(--wb-meteorite) !important;
}

.client-home-cards .card-accent-teal {
  border-top: 3px solid #0d9488 !important;
}

.client-home-cards .card-accent-pomegranate {
  border-top: 3px solid #e11d48 !important;
}

.client-home-cards .card-accent-sun-flower {
  border-top: 3px solid #eab308 !important;
}

.client-home-cards .card-accent-asbestos {
  border-top: 3px solid #71717a !important;
}

/* Accent Button Colors inside Panels */
.bg-color-blue {
  background-color: var(--wb-primary-subtle) !important;
  color: var(--wb-primary) !important;
  border-color: var(--wb-primary-border) !important;
}

.bg-color-blue:hover {
  background-color: var(--wb-primary) !important;
  color: #ffffff !important;
}

.bg-color-green {
  background-color: var(--wb-success-bg) !important;
  color: var(--wb-success-text) !important;
  border-color: var(--wb-success-border) !important;
}

.bg-color-green:hover {
  background-color: #059669 !important;
  color: #ffffff !important;
}

.bg-color-red {
  background-color: var(--wb-danger-bg) !important;
  color: var(--wb-danger-text) !important;
  border-color: var(--wb-danger-border) !important;
}

.bg-color-red:hover {
  background-color: #dc2626 !important;
  color: #ffffff !important;
}

.bg-color-gold {
  background-color: var(--wb-warning-bg) !important;
  color: var(--wb-warning-text) !important;
  border-color: var(--wb-warning-border) !important;
}

.bg-color-gold:hover {
  background-color: #d97706 !important;
  color: #ffffff !important;
}

.client-home-cards .list-group-item {
  border-color: var(--wb-border-light) !important;
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wb-text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.client-home-cards .list-group-item:hover {
  background-color: #fafafa !important;
  color: var(--wb-primary);
}

/* ==========================================================================
   23. HOMEPAGE DOMAIN SEARCH HERO & TLD LOGOS
   ========================================================================== */
.home-domain-search {
  background-color: var(--wb-bg-surface) !important;
  border-bottom: 1px solid var(--wb-border);
  padding: 2.5rem 0;
  margin-bottom: 2rem;
}

.home-domain-search h2 {
  font-family: var(--wb-font-family);
  font-weight: 500;
  font-size: 1.75rem;
  color: var(--wb-text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.home-domain-search .input-group-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

.home-domain-search .input-group {
  box-shadow: var(--wb-shadow-md);
  border-radius: var(--wb-radius-md);
  overflow: hidden;
  border: 1px solid var(--wb-border);
  background: var(--wb-bg-surface);
}

.home-domain-search .input-group .form-control {
  height: 54px;
  font-size: 1rem;
  border: none !important;
  padding: 0.75rem 1.25rem !important;
}

.home-domain-search .input-group .form-control:focus {
  box-shadow: none !important;
}

.home-domain-search .input-group .btn {
  height: 54px;
  padding: 0 1.75rem !important;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 0 !important;
}

.tld-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0 0;
}

.tld-logos li {
  background: var(--wb-bg-muted);
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius-sm);
  padding: 0.45rem 0.875rem;
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--wb-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.tld-logos li:hover {
  background: var(--wb-bg-surface);
  border-color: #d4d4d8;
  transform: translateY(-1px);
}

.tld-logos li img {
  max-height: 20px;
  width: auto;
}

/* ==========================================================================
   24. REGISTRATION & CHECKOUT FORM CONTROLS (#registration)
   ========================================================================== */
#registration .card {
  border: 1px solid var(--wb-border) !important;
  border-radius: var(--wb-radius-md) !important;
  box-shadow: var(--wb-shadow-sm) !important;
}

#registration .card-title {
  font-family: var(--wb-font-family);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--wb-text-primary);
  margin-bottom: 1.25rem;
}

#registration .prepend-icon {
  position: relative;
}

#registration .prepend-icon .field-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wb-text-muted);
  z-index: 4;
  margin: 0;
  pointer-events: none;
}

#registration .prepend-icon .field,
#registration .prepend-icon input.form-control {
  padding-left: 44px !important;
  width: 100%;
  height: 44px;
  border-radius: var(--wb-radius-sm) !important;
}

.password-strength-meter .progress {
  height: 6px;
  border-radius: var(--wb-radius-pill);
  background-color: var(--wb-bg-subtle);
  margin-top: 8px;
  margin-bottom: 6px;
}

/* ==========================================================================
   25. SHOPPING CART & ORDER FORMS (#order-standard_cart)
   ========================================================================== */
#order-standard_cart {
  font-family: var(--wb-font-family);
  color: var(--wb-text-primary);
}

#order-standard_cart .header-lined h1 {
  font-weight: 500 !important;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

#order-standard_cart .products .product {
  background: var(--wb-bg-surface);
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius-md);
  box-shadow: var(--wb-shadow-xs);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#order-standard_cart .products .product:hover {
  transform: translateY(-2px);
  box-shadow: var(--wb-shadow-md);
  border-color: var(--wb-primary-border);
}

#order-standard_cart .products .product .product-title {
  font-family: var(--wb-font-family);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--wb-text-primary);
}

#order-standard_cart .order-summary {
  background: var(--wb-bg-surface);
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius-md);
  padding: 1.5rem;
  box-shadow: var(--wb-shadow-sm);
  position: sticky;
  top: 20px;
}

#order-standard_cart .order-summary h2 {
  font-family: var(--wb-font-family);
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

#order-standard_cart .domain-selection-type {
  background: var(--wb-bg-surface);
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

#order-standard_cart .domain-selection-type:hover {
  background: #fafafa;
  border-color: #d4d4d8;
}

#order-standard_cart .domain-selection-type.active {
  border-color: var(--wb-primary);
  background: var(--wb-primary-subtle);
}

/* ==========================================================================
   26. KNOWLEDGEBASE & ANNOUNCEMENTS
   ========================================================================== */
.kb-category {
  border: 1px solid var(--wb-border) !important;
  border-radius: var(--wb-radius-md) !important;
  box-shadow: var(--wb-shadow-xs) !important;
  transition: all 0.15s ease-in-out;
}

.kb-category:hover {
  transform: translateY(-2px);
  border-color: var(--wb-primary-border) !important;
  box-shadow: var(--wb-shadow-md) !important;
}

.kb-category a {
  color: var(--wb-text-primary);
  text-decoration: none;
}

.kb-category i {
  color: var(--wb-primary);
  margin-right: 6px;
}

.kb-article-item {
  border-color: var(--wb-border-light) !important;
  padding: 1rem 1.25rem !important;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--wb-text-primary) !important;
  transition: all 0.15s ease;
}

.kb-article-item:hover {
  background-color: var(--wb-bg-subtle) !important;
  color: var(--wb-primary) !important;
}

.announcements .announcement {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--wb-border-light);
}

.announcements .announcement:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.announcements .announcement h1 {
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.announcements .announcement h1 a {
  color: var(--wb-text-primary);
}

.announcements .announcement h1 a:hover {
  color: var(--wb-primary);
}

/* ==========================================================================
   27. PRINT & INVOICE OPTIMIZATION
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  
  .header,
  .footer,
  .sidebar,
  .master-breadcrumb,
  .d-print-none {
    display: none !important;
  }
  
  .invoice-container {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
}



