footer.footer{
    display:none;
}



.j-billing-layout {
  display: flex;
  height: calc(100vh - 64px);;
  background-color: #f8fafc;
  font-family: sans-serif;
  overflow: hidden;
}
.j-billing-sidebar {
  width: 300px;
  background-color: #0a0a2d;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0px 10px rgba(0, 0, 0, 0.1);
  z-index: 20;
}
.j-billing-sidebar-logo {
  height: 64px;
    width: 100%;
  display: flex;
  align-items: center;
  padding: 0px 24px;
  background-color: white;
  border-bottom: 1px solid #1e293b;
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1px;
  text-decoration: none;
}
.j-billing-sidebar-logo img {
    width: 100%;
}
.j-billing-sidebar-menu {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px 16px;
}
.j-billing-sidebar .navbar-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0px;
  padding: 0px;
  list-style: none;
}
.j-billing-sidebar .nav-item {
  margin-bottom: 4px;
  width: 100%;
  list-style: none;
}
.j-billing-sidebar .nav-link {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.j-billing-sidebar .nav-link:hover,
.j-billing-sidebar .nav-item.active > .nav-link {
  background-color: #1e293b;
  color: #ffffff;
}
.j-billing-sidebar .nav-link i {
  font-size: 20px;
  margin-right: 12px;
  width: 24px;
  text-align: center;
}
.j-billing-sidebar .dropdown-menu {
  position: static !important;
  transform: none !important;
  float: none;
  background-color: transparent;
  border: none;
  padding: 5px !important;
  margin: 4px 0px 0px 0px;
  border-left: 1px solid #334155;
  border-radius: 0px;
  box-shadow: none;
  display: none;
}
.j-billing-sidebar .dropdown-menu.show,
.j-billing-sidebar .dropdown.show .dropdown-menu {
  display: block !important;
}
.j-billing-sidebar .nav-link.dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.j-billing-sidebar .nav-link.dropdown-toggle::after {
  margin-left: auto; 
}
.j-billing-sidebar .dropdown-item {
  padding: 8px 12px;
  color: white;
  font-size: 15px;
  border-radius: 6px;
  display: block;
  text-decoration: none;
}
.j-billing-sidebar .dropdown-item:hover {
  background-color: #1e293b;
  color: #ffffff;
}
.j-billing-sidebar-footer {
  padding: 16px;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.j-billing-sidebar-footer a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s;
}
.j-billing-sidebar-footer a:hover {
  background-color: #1e293b;
  color: #ffffff;
}
.j-billing-sidebar-footer a.j-billing-text-red {
  color: #f87171;
}
.j-billing-sidebar-footer a.j-billing-text-red:hover {
  background-color: #1e293b;
  color: #fca5a5;
}
.j-billing-sidebar-footer a i {
  font-size: 18px;
  margin-right: 12px;
}
.j-billing-main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  width: calc(100% - 256px);
}
.j-billing-header {
  height: 64px;
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 24px;
  z-index: 10;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
}
.j-billing-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.j-billing-header-title {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  display: none;
  margin: 0px;
}
.j-billing-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.j-billing-icon-btn {
  color: #6b7280;
  background: none;
  border: none;
  position: relative;
  padding: 4px;
  cursor: pointer;
  border-radius: 50%;
  transition:
    color 0.2s,
    background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.j-billing-icon-btn:hover {
  color: #c50707;
    text-decoration: none;
}
.j-billing-icon-btn i {
  font-size: 22px;
}
.j-billing-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  border-radius: 50%;
  height: 16px;
  min-width: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff;
  padding: 0px 4px;
}
.j-billing-badge-blue {
  background-color: #6366f1;
}
.j-billing-divider {
  height: 24px;
  width: 1px;
  background-color: #e5e7eb;
}
.j-billing-account-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4b5563;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 6px;
  transition:
    color 0.2s,
    background-color 0.2s;
}
.j-billing-account-switch:hover {
  color: #4f46e5;
  background-color: #eef2ff;
}
.j-billing-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid transparent;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s;
  text-decoration: none;
}
.j-billing-profile-btn:hover {
  background-color: #f9fafb;
  border-color: #e5e7eb;
}
.j-billing-profile-img {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #d1d5db;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
}
.j-billing-profile-info {
  text-align: left;
}
.j-billing-profile-name {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0px;
  line-height: 1.2;
}
.j-billing-profile-role {
  font-size: 12px;
  color: #6b7280;
  margin: 0px;
  line-height: 1.2;
}
.j-billing-content-area {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #f8fafc;
}
.j-billing-container {
  max-width: 1200px;
  margin: 0px auto;
}
@media (max-width: 768px) {
  .j-billing-sidebar {
    display: none;
  }
  .j-billing-main-wrapper {
    width: 100%;
  }
  .j-billing-header-title {
    display: block;
  }
  .j-billing-hide-mobile {
    display: none !important;
  }
}
.j-billing-sidebar .dropdown-menu {
  position: static !important;
  transform: none !important;
  float: none;
  background-color: transparent;
  border: none;
  padding: 0px 0px 0px 32px;
  margin: 0px;
  border-left: 1px solid #334155;
  border-radius: 0px;
  box-shadow: none;

  /* Smooth Transition Setup */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s ease-in-out,
    opacity 0.3s ease-in-out,
    margin-top 0.3s ease;
  display: block !important; 
}

.j-billing-sidebar .dropdown.show .dropdown-menu,
.j-billing-sidebar .dropdown-menu.show {
  max-height: 1000px; 
  opacity: 1;
  margin-top: 4px;
  padding-bottom: 8px;
  border: none;
}

.j-billing-sidebar .nav-link i {
  font-size: 18px;
  margin-right: 12px;
  width: 24px;
  text-align: center;
  color: #94a3b8;
  transition: color 0.3s ease;
}

.j-billing-sidebar .nav-link:hover i,
.j-billing-sidebar .dropdown.show > .nav-link i {
  color: #c50707;
}

/* Dropdown Arrow Smooth Rotate */
.j-billing-sidebar .nav-link.dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.j-billing-sidebar .nav-link.dropdown-toggle::after {
  margin-left: auto;
  transition: transform 0.3s ease;
}
.j-billing-sidebar .dropdown.show > .nav-link.dropdown-toggle::after {
  transform: rotate(180deg); 
}
/* New Profile Design */
.j-billing-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.j-billing-profile-btn:hover {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
}

.j-billing-profile-img {
    height: 36px;
    width: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0px 2px 4px rgba(0,0,0,0.1);
}

.j-billing-profile-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.j-billing-profile-name {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin: 0;
}

.j-billing-profile-role {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.j-billing-header-right .dropdown-menu {
    border: none;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 8px;
    margin-top: 12px !important;
    min-width: 200px;
}

.j-billing-header-right .dropdown-item {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #262626;
    display: flex;
    align-items: center;
    gap: 10px;
}

.j-billing-header-right .dropdown-item:hover {
    background-color: #f9fafb;
    color: #c50707;
}

.j-billing-header-right .dropdown-item i {
    font-size: 16px;
    width: 20px;
    color: #4b5563;
    text-align: center;
}
/* Mobile Header Logo & Toggle Button */
.j-billing-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 22px;
    color: #1f2937;
    cursor: pointer;
    padding: 0;
    margin-right: 12px;
}

.j-billing-header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.j-billing-header-logo img {
    height: 32px; /* Logo Height for Mobile */
}

@media (max-width: 568px) {
    .j-billing-header-logo img { height: 25px; }
}

.j-billing-header-logo span {
    font-size: 18px;
    font-weight: bold;
    color: #1f2937;
}

/* Overlay for Sidebar in Mobile */
.j-billing-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 15;
}
.j-billing-sidebar-overlay.show {
    display: block;
}

/* --- Mobile Responsive Adjustments (REPLACE THIS BLOCK) --- */
@media (max-width: 768px) {
    .j-billing-mobile-toggle { display: block; }
    .j-billing-header-title { display: none !important; }
    .j-billing-header-logo { display: flex; }
    
    .j-billing-header {
        padding: 0px 16px; 
    }
    
    .j-billing-header-right {
        gap: 12px; 
    }

    /* Sidebar Full Screen Mobile Fix */
    .j-billing-sidebar {
        position: fixed;
        left: -100%; 
        width: 100% !important; 
        top: 0; bottom: 0;
        transition: left 0.3s ease;
        z-index: 50; 
        display: flex !important;
    }
    .j-billing-sidebar.open {
        left: 0; 
    }
    
    .j-billing-sidebar-close {
        display: block; 
    }
}
.j-billing-sidebar-header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 24px;
    background-color: white;
    border-bottom: 1px solid #1e293b;
}

.j-billing-sidebar-logo {
    display: flex;
    align-items: center;
    color: #0a0a2d;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 0;
    border-bottom: none;
    background-color: transparent;
    height: auto;
}

.j-billing-sidebar-close {
    display: none; 
    background: transparent;
    border: none;
    color: #0a0a2d;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s;
}

.j-billing-sidebar-close:hover {
    color: #c50707;
}

.j-billing-sidebar-close {
    display: none;
}

@media (max-width: 768px) {
    .j-billing-sidebar-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
        background: #ffffff; 
        border-bottom: 1px solid #eee;
    }

    .j-billing-sidebar-close {
        display: block !important;
        background: transparent !important;
        border: none !important;
        color: #333 !important; 
        font-size: 28px !important;
        cursor: pointer;
        padding: 5px;
        line-height: 1;
        z-index: 100;
    }

    .j-billing-sidebar-close i {
        color: #c50707 !important;
        font-style: normal;
    }
    .j-billing-sidebar-logo {
      width: 70%;
    }
}
.j-billing-header-breadcrumb {
    display: flex;
    align-items: center;
}

.j-billing-header-breadcrumb .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    display: flex;
    align-items: center;
}

.j-billing-header-breadcrumb .breadcrumb-item {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    color: #64748b;
}

.j-billing-header-breadcrumb .breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.j-billing-header-breadcrumb .breadcrumb-item a:hover {
    color: #c50707;
}

.j-billing-header-breadcrumb .breadcrumb-item.active {
    color: #c50707;
    font-weight: 600;
}

.j-billing-header-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 16px;
    color: #94a3b8;
    padding: 0 8px;
    line-height: 1;
}

@media (max-width: 768px) {
    .j-billing-header-breadcrumb {
        display: none;
    }
}

/* clientareahome.tpl */
/* Stretch homepage content to full width */
.page-clientareahome .j-billing-container,
.page-clientareahome .j-welcome-header,
.page-clientareahome .j-stat-tiles-container {
    max-width: 100%;
}

.page-clientareahome #main-body .container {
    max-width: 100%;
}

/* ==========================================================================
   Premium SaaS Client Area Dashboard CSS (Matches Host Asia Design)
   ========================================================================== */

.c-home-wrapper {
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    padding-top: 24px;
    padding-bottom: 60px;
    max-width: 1500px;
    margin: 0 auto;
}

/* Hide default WHMCS sidebar if it leaks through */
.c-home-wrapper .cart-sidebar { display: none !important; }
.c-home-wrapper .primary-content { width: 100% !important; max-width: 100% !important; padding: 0 !important; }

/* Welcome Header */
.c-welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}
.c-welcome-text h1 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
}
.c-welcome-text h1 span.dot {
    color: #c50808; /* Theme Red */
}
.c-welcome-text p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}
.c-welcome-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
.c-btn-outline {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s;
}
.c-btn-outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
    text-decoration: none;
}
.c-btn-primary {
    background: #c50808;
    border: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(197, 8, 8, 0.2);
}
.c-btn-primary:hover {
    background: #a30606;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -2px rgba(197, 8, 8, 0.3);
    text-decoration: none;
}

/* Floating Stats Grid */
.c-overview-heading {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 10px 0 16px 0;
}

.c-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.c-stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 170px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.c-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

.c-stat-watermark {
    position: absolute;
    right: -15px;
    bottom: -15px;
    font-size: 110px;
    opacity: 0.03;
    color: #0f172a;
    z-index: 0;
    transition: transform 0.3s ease;
}
.c-stat-card:hover .c-stat-watermark {
    transform: scale(1.05);
}

.c-stat-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    position: relative;
    z-index: 1;
}

.c-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.bg-gray-soft { background: #f8fafc; }
.c-text-gray { color: #94a3b8; }

.bg-yellow-soft { background: #fefce8; }
.c-text-yellow { color: #d97706; }

.bg-dark-soft { background: #1e293b; }
.c-text-red { color: #ef4444; }

.c-stat-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    transition: all 0.2s;
}
.c-badge-light {
    background: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.c-stat-card:hover .c-badge-light {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.c-badge-red {
    background: #dc2626;
    color: #ffffff;
    border: 1px solid #dc2626;
}
.c-stat-card:hover .c-badge-red {
    background: #b91c1c;
}

.c-stat-bottom {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    margin-top: 24px;
}

.c-stat-lbl {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.c-stat-val {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.c-stat-card-dark {
    background: #0f172a;
    border-color: #0f172a;
}
.c-stat-card-dark .c-stat-lbl {
    color: #94a3b8;
}
.c-stat-card-dark .c-stat-val {
    color: #ffffff;
}
.c-stat-card-dark .c-stat-watermark {
    color: #ffffff;
    opacity: 0.03;
}
.c-stat-card-dark:hover {
    border-color: #0f172a;
    box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.4);
}

@media (max-width: 1200px) {
    .c-stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .c-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .c-stats-grid { grid-template-columns: 1fr; }
}

/* 2-Column Dashboard Layout */
.c-dashboard-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.c-dashboard-layout-special {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 20px;
}
.c-dash-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    height: 100%;
}
.c-dash-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    height: 100%;
}

/* General Panel Card */
.c-panel {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

/* Todos & Setup Panel */
.c-panel-title {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.c-panel-title a {
    color: #c50808;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.c-panel-title a:hover { text-decoration: underline; }

.c-setup-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    gap: 4px;
    margin-bottom: 24px;
}
.c-setup-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.c-setup-tab.active {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.c-setup-tab-badge {
    background: #e2e8f0;
    color: #0f172a;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}
.c-setup-tab.active .c-setup-tab-badge {
    background: #334155;
    color: #ffffff;
}
.c-setup-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.c-setup-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none !important;
    transition: all 0.2s;
    background: #ffffff;
}
.c-setup-item:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.c-setup-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.c-setup-content { flex: 1; }
.c-setup-content h4 { font-size: 16px; font-weight: 700; color: #0f172a; margin: 0 0 4px 0; }
.c-setup-content p { font-size: 14px; color: #64748b; margin: 0; }
.c-setup-action {
    color: #64748b;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.c-setup-item:hover .c-setup-action {
    background: #c50808;
    color: #ffffff;
    border-color: #c50808;
}

/* Dark Banners (Products & Domains) */
.c-dark-banner {
    background: #0f172a; /* Dark Slate Theme Color */
    border-radius: 16px;
    padding: 32px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    gap: 35px;
    height: 100%;
}
.c-dark-banner-col { display: flex; flex-direction: column; gap: 20px; align-items: stretch;}
.c-dark-content h3 { font-size: 26px; font-weight: 700; margin: 0 0 8px 0; color: #ffffff; }
.c-dark-content p { font-size: 16px; color: #cbd5e1; margin: 0; line-height: 1.5; }

.c-domain-search {
    width: 100%;
    display: flex;
    background: #ffffff;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid #1e293b;
    transition: all 0.2s;
}
.c-domain-search:focus-within { border-color: #c50808; }
.c-domain-search input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 16px;
    color: #000000;
    font-size: 14px;
    outline: none;
    min-width: 100px;
}
.c-domain-search input::placeholder { color: #64748b; }
.c-domain-search button {
    background: #c50808;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0 24px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}
.c-domain-search button:hover { background: #a30606; }

/* Right Sidebar Panels */
.c-side-panel {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    padding: 24px;
    height: 100%;
}

.c-empty-state {
    text-align: center;
    padding: 24px 16px;
}
.c-empty-icon {
    font-size: 32px;
    color: #0f172a;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    background: #f8fafc;
    border-radius: 50%;
    margin: 0 auto 16px auto;
    border: 1px solid #e2e8f0;
}
.c-empty-state h4 { font-size: 14px; font-weight: 700; color: #0f172a; margin: 0 0 8px 0; }
.c-empty-state p { font-size: 12px; color: #64748b; margin: 0 0 20px 0; line-height: 1.5; }

/* Active Products List Row */
.c-product-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none !important;
    transition: background 0.2s;
}
.c-product-row:last-child { border-bottom: none; padding-bottom: 0; }
.c-product-row:first-child { padding-top: 0; }
.c-product-row-icon { font-size: 18px; color: #0f172a; opacity: 0.7; display: none;}
.c-product-row-info { flex: 1; min-width: 0; }
.c-product-row-info h4 { margin: 0 0 8px 0; font-size: 14px; font-weight: 700; color: #0f172a; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Dynamic Status Badges Safely Overriding WHMCS Defaults */
.c-product-row-status .label, 
.c-product-row-status .badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none !important;
}
.c-product-row-status .status-active, .c-product-row-status .label-success { color: #166534 !important; background-color: #dcfce7 !important; }
.c-product-row-status .status-pending, .c-product-row-status .label-warning { color: #b45309 !important; background-color: #fef3c7 !important; }
.c-product-row-status .status-suspended, .c-product-row-status .label-danger { color: #991b1b !important; background-color: #fee2e2 !important; }
.c-product-row-status .status-terminated,
.c-product-row-status .status-cancelled, .c-product-row-status .label-default { color: #475569 !important; background-color: #f1f5f9 !important; }
.c-product-row-status .status-fraud { color: #ffffff !important; background-color: #dc2626 !important; }


/* View Details Action */
.c-product-row-view {
    font-size: 12px;
    font-weight: 600;
    color: #c50808;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    opacity: 0.8;
    white-space: nowrap;
}
.c-product-row:hover .c-product-row-view { 
    opacity: 1;
    transform: translateX(4px); 
}
/* Responsive Rules */
@media (max-width: 1024px) {
    .c-dashboard-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .c-welcome-header { flex-direction: column; align-items: flex-start; }
    .c-dark-banner { flex-direction: column; align-items: stretch; text-align: center;}
}

/* clientareahome.tpl */

.page-clientareadomains .sidebar,
.page-clientareadomains .col-lg-4,
.page-clientareadomains .col-xl-3 {
    display: none !important;
}

.page-clientareadomains .primary-content {
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 100px !important; /* Update edge padding to be consistent */
}

/* Force the main containers to be full width on this specific page */
.page-clientareadomains .j-billing-container,
.page-clientareadomains #main-body .container {
    max-width: 100% !important;
}
/* clientareadomains.tpl */
/* =========================================
   Domains Page Overrides (Full Width)
   ========================================= */


/* =========================================
   Domain Filters & Bulk Actions Dropdown
   ========================================= */
.j-domain-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

/* The Gray Container holding the Pill Tabs */
.j-domain-filters {
    display: flex;
    background-color: #e2e8f0;
    border-radius: 8px;
    padding: 4px;
}

.j-domain-filters .btn {
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 6px;
    box-shadow: none;
    transition: all 0.3s ease;
}

.j-domain-filters .btn.active,
.j-domain-filters .btn:hover {
    background-color: #0f172a; /* Your dark theme color */
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Custom Bulk Action Dropdown */
.j-bulk-actions-btn {
    background-color: #0f172a; /* Theme Dark Slate */
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.j-bulk-actions-btn:hover,
.j-bulk-actions-btn:focus,
.dropdown.show .j-bulk-actions-btn {
    background-color: #c50808; /* Theme Red */
    color: #ffffff;
    box-shadow: 0 6px 10px -2px rgba(197, 8, 8, 0.3);
}

.j-domain-controls .dropdown-menu {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 8px;
    margin-top: 8px !important;
}

.j-domain-controls .dropdown-item {
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s;
}

.j-domain-controls .dropdown-item:hover {
    background-color: #fff5f5;
    color: #c50808; /* Theme Red on Hover */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .j-domain-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .j-domain-filters {
        flex-direction: column;
    }
}

/* =========================================
   My Domains Page Specific Styles
   ========================================= */

/* Header Area */
.j-domain-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.j-domain-page-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
.j-btn-dark {
  background-color: #111827;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.j-btn-dark:hover {
  background-color: #374151;
  color: #ffffff;
  text-decoration: none;
}

/* Modern Table Overrides */
.table-container {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid #e5e7eb;
  padding: 0;
  overflow: hidden;
}
.table-list {
  margin: 0 !important;
  border: none !important;
}
.table-list thead th {
  background-color: #f9fafb !important;
  color: #6b7280 !important;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 20px !important;
  border-bottom: 1px solid #e5e7eb !important;
  border-top: none !important;
}
.table-list tbody td {
  padding: 16px 20px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #e5e7eb !important;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
}
.table-list tbody tr:last-child td {
  border-bottom: none !important;
}
.table-list tbody tr:hover td {
  background-color: #f8fafc !important;
}

/* Domain Name Column */
.j-domain-name-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.j-domain-name-text {
  font-weight: 700;
  color: #111827;
  text-decoration: none;
}
.j-domain-name-text:hover {
  color: #c50808;
}

/* Soft Status Badges */
.j-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  text-align: center;
}
.j-badge-active { background-color: #def7ec; color: #03543f; }
.j-badge-expired { background-color: #fde8e8; color: #9b1c1c; }
.j-badge-pending { background-color: #fef4fc; color: #9d174d; }
.j-badge-cancelled, .j-badge-fraud { background-color: #f3f4f6; color: #374151; }

/* Auto Renew Toggle Switch */
.j-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  margin: 0;
}
.j-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.j-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #e5e7eb;
  transition: .3s;
  border-radius: 34px;
}
.j-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.j-switch input:checked + .j-slider {
  background-color: #10b981; /* Green for active */
}
.j-switch input:checked + .j-slider:before {
  transform: translateX(18px);
}
.j-switch input:disabled + .j-slider {
  cursor: not-allowed;
  opacity: 0.8;
}

/* Action Dots Dropdown */
.j-action-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 18px;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}
.j-action-btn:hover {
  background-color: #f3f4f6;
  color: #111827;
}

/* Search Box DataTables override */
.dataTables_filter input {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
}
.dataTables_filter input:focus {
  border-color: #111827;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.1);
}

/* =========================================
   MODERN DOMAINS PAGE DESIGN (TARGET MATCH)
   ========================================= */

.j-modern-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.j-modern-title {
    font-size: 28px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.5px;
}

.j-modern-actions {
    display: flex;
    gap: 12px;
}

.btn-modern {
    padding: 10px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-modern:hover {
    text-decoration: none;
    color: #ffffff;
}

.btn-buy {
    background-color: #c50808;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(197, 8, 8, 0.2);
}

.btn-buy:hover {
    background-color: #a30606;
    transform: translateY(-1px);
}

.btn-transfer {
    background-color: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.2);
}

.btn-transfer:hover {
    background-color: #000000;
    transform: translateY(-1px);
}

.j-modern-toolbar {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.search-wrapper {
    flex: 1;
    position: relative;
    min-width: 250px;
}

.search-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 14px;
}

.search-input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 44px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.search-input:focus {
    border-color: #c50808;
    box-shadow: 0 0 0 3px rgba(197, 8, 8, 0.1);
}

.btn-outline {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
}

.btn-outline:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.j-modern-tabs {
    display: flex;
    background-color: #f1f5f9;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 24px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.j-modern-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.j-modern-tab.active {
    background-color: #0f172a;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
}

.j-modern-list-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

/* =========================================
   Override WHMCS DataTables Native Styling
   ========================================= */
.j-modern-list-container .dataTables_wrapper {
    padding: 0;
}

/* Keep default search filter hidden since we built a beautiful custom one */
.j-modern-list-container .dataTables_wrapper .dataTables_filter {
    display: none !important; 
}

/* Modernize the Length Dropdown */
.j-modern-list-container .dataTables_wrapper .dataTables_length {
    display: block !important;
    padding: 16px 24px;
    background-color: #ffffff;
    color: #64748b;
    font-size: 14px;
}

.j-modern-list-container .dataTables_wrapper .dataTables_length label {
    display: flex;
    align-items: center;
    margin: 0;
}

.j-modern-list-container .dataTables_wrapper .dataTables_length select {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 25px 6px 12px;
    margin: 0 8px;
    color: #0f172a;
    background-color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    cursor: pointer;
}

.j-modern-list-container .dataTables_wrapper .dataTables_length select:focus {
    border-color: #c50808;
    box-shadow: 0 0 0 3px rgba(197, 8, 8, 0.1);
}

/* Base Table Styling */
.j-modern-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
}

/* Beautiful Table Headers */
.j-modern-table thead {
    display: table-header-group !important; 
}

.j-modern-table thead th {
    display: table-cell !important;
    padding: 16px 24px !important;
    background-color: #0f172a !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
}

/* Custom DataTables Sorting Arrows */
.j-modern-table thead th.sorting, 
.j-modern-table thead th.sorting_asc, 
.j-modern-table thead th.sorting_desc {
    padding-right: 30px !important;
}

.j-modern-table thead th.sorting:after, 
.j-modern-table thead th.sorting_asc:after, 
.j-modern-table thead th.sorting_desc:after {
    opacity: 0.4;
    font-size: 10px;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    color: #64748b;
}

.j-modern-table thead th.sorting_asc:after, 
.j-modern-table thead th.sorting_desc:after {
    opacity: 1;
    color: #c50808; /* Theme Red for active sort */
}

/* Table Rows */
.j-modern-table tbody td {
    padding: 20px 24px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-top: none !important;
    vertical-align: middle !important;
    font-size: 14px;
}

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

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

/* Clean Pagination at the Bottom */
.j-modern-list-container .dataTables_wrapper .dataTables_info {
    display: block !important;
    padding: 16px 24px;
    color: #64748b;
    font-size: 14px;
    float: left;
}

.j-modern-list-container .dataTables_wrapper .dataTables_paginate {
    display: block !important;
    padding: 12px 24px;
    float: right;
}

.j-modern-list-container .dataTables_wrapper .paginate_button {
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    margin-left: 4px;
    color: #0f172a !important;
    background: #ffffff !important;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.j-modern-list-container .dataTables_wrapper .paginate_button:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.j-modern-list-container .dataTables_wrapper .paginate_button.current {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
}

.domain-name {
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    font-size: 15px;
}

.domain-name:hover {
    color: #c50808;
}

.domain-dates {
    color: #64748b;
    font-size: 13px;
}

.action-dots {
    color: #64748b;
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.action-dots:hover, .action-dots[aria-expanded="true"] {
    background: #f1f5f9;
    color: #0f172a;
}

@media (max-width: 768px) {
    .j-modern-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .j-modern-actions { width: 100%; flex-direction: column; }
    .btn-modern { width: 100%; justify-content: center; }
    .j-modern-toolbar { flex-direction: column; align-items: stretch; }
    .j-modern-tabs { flex-direction: column; }
}


.clientareadomains-bulk-dropdown .dropdown-menu{
    border: none;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 8px;
    margin-top: 12px !important;
    min-width: 200px;
}

.clientareadomains-bulk-dropdown .dropdown-item {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 15px;
    color: #262626;
    display: flex;
    align-items: center;
    gap: 10px;
}

.clientareadomains-bulk-dropdown .dropdown-divider {
    border-top: 1px solid #c50707;
    margin: 4px 0;
}

/* =========================================
   Mobile Adjustments (Client Area Emails)
   ========================================= */
@media (max-width: 991px) {
    /* Top Account Navigation Wrap */
    .j-account-nav { flex-wrap: wrap !important; }
    .j-account-nav-item { flex: 1 1 45%; }

    /* Toolbar overrides */
    .j-modern-toolbar { flex-direction: column; align-items: stretch; }
    .j-modern-toolbar .search-wrapper { max-width: 100%; margin-bottom: 16px; }
    
    /* Remove outer container styling so cards float cleanly */
    .page-clientareaemails .j-modern-list-container {
        background: transparent;
        border: none;
        box-shadow: none;
        overflow-x: visible;
    }
    
    .page-clientareaemails table.dataTable { border: none !important; }
    .page-clientareaemails table.dataTable thead { display: none !important; /* Hide standard column headers */ }
    
    /* Turn each row into a gorgeous SaaS card */
    .page-clientareaemails table.dataTable tbody tr {
        display: block;
        background: #ffffff;
        border: 1px solid #e2e8f0 !important;
        border-radius: 16px;
        margin-bottom: 20px;
        padding: 16px 24px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    }
    
    /* Make each cell a flex row */
    .page-clientareaemails table.dataTable tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 0 !important;
        border-bottom: 1px solid #f1f5f9 !important;
        text-align: right;
        gap: 12px;
    }
    
    .page-clientareaemails table.dataTable tbody td:last-child {
        border-bottom: none !important;
        justify-content: center;
        padding-top: 20px !important;
        padding-bottom: 4px !important;
    }
    
    /* Inject Mobile Headers dynamically using nth-child */
    .page-clientareaemails table.dataTable tbody td:nth-child(1)::before { content: "Date"; font-weight: 700; color: #64748b; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
    .page-clientareaemails table.dataTable tbody td:nth-child(2)::before { content: "Subject"; font-weight: 700; color: #64748b; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
    
    /* Subject text wrapping adjustment */
    .page-clientareaemails table.dataTable tbody td:nth-child(2) { flex-wrap: wrap; justify-content: flex-end; }
    .page-clientareaemails table.dataTable tbody td:nth-child(2)::before { width: 100%; text-align: left; margin-bottom: 4px; }
    
    /* Make the View Message button full width */
    .page-clientareaemails table.dataTable tbody td:last-child button { width: 100%; justify-content: center; height: 44px !important; font-size: 14px !important; }
    
    /* Style the pagination wrapper */
    .page-clientareaemails .dataTables_wrapper .row:last-child { 
        flex-direction: column; 
        justify-content: center; 
        text-align: center; 
        border-radius: 16px; 
        margin-top: 16px; 
        background: #ffffff; 
        border: 1px solid #e2e8f0; 
        position: relative; 
        padding: 16px;
    }
    .page-clientareaemails .dataTables_info { position: static; transform: none; margin: 10px auto !important; }
}


/* clientareadomains.tpl */

/* clientareainvoices.tpl */
/* =========================================
   Pages Overrides (Full Width)
   Updated to include all previous pages AND Email History
   ========================================= */
.page-clientareadomains .sidebar,
.page-clientareainvoices .sidebar,
.page-clientareaquotes .sidebar,
.page-supportticketslist .sidebar,
.page-clientareaproducts .sidebar,
.page-supportticketsubmit-stepone .sidebar,
.page-supportticketsubmit-steptwo .sidebar,
.page-announcements .sidebar,
.page-viewannouncement .sidebar,
.page-knowledgebase .sidebar,
.page-downloads .sidebar,
.page-serverstatus .sidebar,
.page-clientareadetails .sidebar,
.page-account-contacts-new .sidebar,
.page-clientareaemails .sidebar,
.page-user-password .sidebar,
.page-user-profile .sidebar,
.page-user-security .sidebar,
.page-clientareadomaindetails .sidebar,
.page-products .sidebar,
.page-clientregister .sidebar,
.page-bulkdomainmanagement .sidebar,
.page-clientareaproductdetails .sidebar,
.page-viewticket .sidebar,
.page-masspay .sidebar,
.page-account-user-management .sidebar,
.page-clientareaaddfunds .sidebar,
.page-configureproductdomain .cart-sidebar,
.page-configureproduct .cart-sidebar,
.page-viewcart .cart-sidebar,
.page-domain-renewals .cart-sidebar,
.page-domaintransfer .cart-sidebar,
.page-addons .cart-sidebar,
.page-domainregister .cart-sidebar,
.page-configuredomains .cart-sidebar,
.page-clientareadomains .col-lg-4,
.page-clientareainvoices .col-lg-4,
.page-clientareaquotes .col-lg-4,
.page-supportticketslist .col-lg-4,
.page-clientareaproducts .col-lg-4,
.page-supportticketsubmit-stepone .col-lg-4,
.page-supportticketsubmit-steptwo .col-lg-4,
.page-announcements .col-lg-4,
.page-viewannouncement .col-lg-4,
.page-knowledgebase .col-lg-4,
.page-downloads .col-lg-4,
.page-serverstatus .col-lg-4,
.page-clientareadetails .col-lg-4,
.page-account-contacts-new .col-lg-4,
.page-clientareaemails .col-lg-4,
.page-clientareadomains .col-xl-3,
.page-clientareainvoices .col-xl-3,
.page-clientareaquotes .col-xl-3,
.page-supportticketslist .col-xl-3,
.page-clientareaproducts .col-xl-3,
.page-supportticketsubmit-stepone .col-xl-3,
.page-supportticketsubmit-steptwo .col-xl-3,
.page-announcements .col-xl-3,
.page-viewannouncement .col-xl-3,
.page-knowledgebase .col-xl-3,
.page-downloads .col-xl-3,
.page-serverstatus .col-xl-3,
.page-clientareadetails .col-xl-3,
.page-account-contacts-new .col-xl-3,
.page-clientareaemails .col-xl-3,
.page-user-security .col-xl-3, 
.page-clientareadomaindetails .col-xl-3,
.page-configureproduct .col-xl-3,
.page-viewcart .col-xl-3,
.page-domain-renewals .col-xl-3,
.page-domaintransfer .col-xl-3,
.page-clientregister .col-xl-3,
.page-bulkdomainmanagement .col-xl-3,
.page-clientareaproductdetails .col-xl-3,
.page-domainregister .col-xl-3,
.page-configuredomains .col-xl-3,
.page-viewticket .col-xl-3,
.page-masspay .col-xl-3,
.page-account-user-management .col-xl-3,
.page-clientareaaddfunds .col-xl-3,
.page-addons .col-xl-3  {
    display: none !important;
}

.page-clientareadomains .primary-content,
.page-clientareainvoices .primary-content,
.page-clientareaquotes .primary-content,
.page-supportticketslist .primary-content,
.page-clientareaproducts .primary-content,
.page-supportticketsubmit-stepone .primary-content,
.page-supportticketsubmit-steptwo .primary-content,
.page-announcements .primary-content,
.page-viewannouncement .primary-content,
.page-knowledgebase .primary-content,
.page-downloads .primary-content,
.page-serverstatus .primary-content,
.page-clientareadetails .primary-content,
.page-account-contacts-new .primary-content,
.page-clientareaemails .primary-content,
.page-user-password .primary-content,
.page-user-profile .primary-content,
.page-user-security .primary-content,
.page-clientareadomaindetails .primary-content,
.page-products .primary-content, 
.page-configuredomains .primary-content, 
.page-clientregister .primary-content, 
.page-bulkdomainmanagement .primary-content, 
.page-clientareaproductdetails .primary-content, 
.page-viewticket .primary-content, 
.page-masspay .primary-content, 
.page-account-user-management .primary-content, 
.page-clientareaaddfunds .primary-content, 
.page-configureproductdomain .cart-body,
.page-configureproduct .cart-body,
.page-viewcart .cart-body,
.page-domain-renewals .cart-body,
.page-domaintransfer .cart-body,
.page-configuredomains .cart-body,
.page-masspay .cart-body,
.page-addons .cart-body {
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 32px !important; /* Standardized Edge padding */
}

/* Force the main containers to be full width on these specific pages */
.page-clientareadomains .j-billing-container,
.page-clientareainvoices .j-billing-container,
.page-clientareaquotes .j-billing-container,
.page-supportticketslist .j-billing-container,
.page-clientareaproducts .j-billing-container,
.page-supportticketsubmit-stepone .j-billing-container,
.page-supportticketsubmit-steptwo .j-billing-container,
.page-announcements .j-billing-container,
.page-viewannouncement .j-billing-container,
.page-knowledgebase .j-billing-container,
.page-downloads .j-billing-container,
.page-serverstatus .j-billing-container,
.page-clientareadetails .j-billing-container,
.page-account-contacts-new .j-billing-container,
.page-clientareaemails .j-billing-container,
.page-user-password .j-billing-container,
.page-user-profile .j-billing-container,
.page-user-security .j-billing-container,
.page-products .j-billing-container,
.page-configureproductdomain .j-billing-container,
.page-clientareadomaindetails .j-billing-container,
.page-configureproduct .j-billing-container,
.page-viewcart .j-billing-container,
.page-domain-renewals .j-billing-container,
.page-domaintransfer .j-billing-container,
.page-clientregister .j-billing-container,
.page-addons .j-billing-container,
.page-bulkdomainmanagement .j-billing-container,
.page-clientareaproductdetails .j-billing-container,
.page-domainregister .j-billing-container,
.page-configuredomains .j-billing-container,
.page-viewticket .j-billing-container,
.page-masspay .j-billing-container,
.page-clientareaaddfunds .j-billing-container,
.page-account-user-management .j-billing-container,
.page-clientareadomains #main-body .container,
.page-clientareainvoices #main-body .container,
.page-clientareaquotes #main-body .container,
.page-supportticketslist #main-body .container,
.page-clientareaproducts #main-body .container,
.page-supportticketsubmit-stepone #main-body .container,
.page-supportticketsubmit-steptwo #main-body .container,
.page-announcements #main-body .container,
.page-viewannouncement #main-body .container,
.page-knowledgebase #main-body .container,
.page-downloads #main-body .container,
.page-serverstatus #main-body .container,
.page-clientareadetails #main-body .container,
.page-account-contacts-new #main-body .container,
.page-clientareaemails #main-body .container,
.page-user-password #main-body .container,
.page-user-profile #main-body .container,
.page-user-security #main-body .container,
.page-products #main-body .container,
.page-clientareadomaindetails #main-body .container ,
.page-configureproductdomain #main-body .container,
.page-configureproduct #main-body .container,
.page-viewcart #main-body .container,
.page-domain-renewals #main-body .container,
.page-domaintransfer #main-body .container,
.page-clientregister #main-body .container,
.page-bulkdomainmanagement #main-body .container,
.page-clientareaproductdetails #main-body .container,
.page-domainregister #main-body .container,
.page-configuredomains #main-body .container,
.page-viewticket #main-body .container,
.page-masspay #main-body .container,
.page-clientareaaddfunds #main-body .container,
.page-account-user-management #main-body .container,
.page-addons #main-body .container {
    max-width: 100% !important;
}

/* =========================================
   Invoice Specific Formatting
   ========================================= */
.inv-number {
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    font-size: 15px;
}

.inv-number:hover {
    color: #c50808;
    text-decoration: none;
}

.inv-dates {
    color: #64748b;
    font-size: 13px;
}

/* Invoice Status Badges */
.j-badge-paid { background-color: #def7ec !important; color: #03543f !important; }
.j-badge-unpaid { background-color: #fde8e8 !important; color: #c50808 !important; }
.j-badge-cancelled { background-color: #f3f4f6 !important; color: #374151 !important; }
.j-badge-refunded { background-color: #fef4fc !important; color: #9d174d !important; }
.j-badge-collections { background-color: #fffbeb !important; color: #d97706 !important; }
/* clientareainvoices.tpl */

/* clientareaquotes.tpl */


/* =========================================
   Quotes Specific Formatting
   ========================================= */
.quote-number {
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    font-size: 15px;
}

.quote-number:hover {
    color: #c50808;
    text-decoration: none;
}

.quote-dates {
    color: #64748b;
    font-size: 13px;
}

/* Quotes Specific Status Badges */
.j-badge-delivered { background-color: #e0e7ff !important; color: #1d4ed8 !important; }
.j-badge-accepted { background-color: #def7ec !important; color: #03543f !important; }
.j-badge-dead, .j-badge-lost { background-color: #fde8e8 !important; color: #c50808 !important; }
/* clientareaquotes.tpl */

/* supportticketslist.tpl */
/* =========================================
   Unified Stats Row (Overlapping)
   ========================================= */
.j-stat-tiles-container {
    max-width: 1200px;
    margin: -35px auto 32px auto; /* Negative margin overlaps the dark header */
    position: relative;
    z-index: 10;
}

.j-stat-tiles {
    display: flex;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.j-stat-item {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 20px 24px;
    text-decoration: none !important;
    color: #4b5563;
    transition: background-color 0.2s;
}

.j-stat-item:hover {
    background-color: #f9fafb;
    color: #111827;
}

.j-stat-item-holder{
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: flex-start;
    margin-left: 14px;
}

.j-stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 7px;
    font-size: 22px;
    margin-right: 12px;
}

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

.j-stat-item:nth-child(1) .j-stat-icon { background: #eff6ff; color: #2563eb; }
.j-stat-item:nth-child(3) .j-stat-icon { background: #f0fdf4; color: #059669; }
.j-stat-item:nth-child(5) .j-stat-icon { background: #fffbeb; color: #d97706; }
.j-stat-item:nth-child(7) .j-stat-icon { background: #fef2f2; color: #dc2626; }
.j-stat-item:nth-child(9) .j-stat-icon { background: #f5f3ff; color: #7c3aed; }

.j-stat-label {
    font-size: 15px;
    font-weight: 400;
    flex-grow: 1;
    color: #64748b;
}

.j-stat-value {
    font-size: 35px;
    font-weight: 800;
    color: #111827;
}

.j-stat-divider {
    width: 1px;
    background-color: #e5e7eb;
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .j-stat-tiles {
        flex-wrap: wrap;
    }

    .j-stat-item {
        flex: 1 1 45%;
    }

    .j-stat-divider {
        display: none; /* Hide dividers when wrapping */
    }
}

/* =========================================
   Support Tickets Specific Formatting
   ========================================= */
.ticket-dept {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.ticket-number {
    font-weight: 600;
    color: #64748b;
    margin-right: 8px;
}

.ticket-subject {
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.ticket-subject:hover {
    color: #c50808;
    text-decoration: none;
}

.ticket-subject.unread {
    color: #c50808;
    font-weight: 700;
}

/* Status Badges for Support Tickets */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    border: none;
}

.j-badge-open { background-color: #def7ec !important; color: #03543f !important; }
.j-badge-answered { background-color: #e0e7ff !important; color: #1d4ed8 !important; }
.j-badge-customer-reply { background-color: #fde8e8 !important; color: #c50808 !important; }
.j-badge-closed { background-color: #f3f4f6 !important; color: #374151 !important; }
.j-badge-on-hold { background-color: #fffbeb !important; color: #d97706 !important; }
/* supportticketslist.tpl */

/* clientareaproducts.tpl */


/* =========================================
   Products & Services Specific Formatting
   ========================================= */
.product-name {
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    display: block;
    margin-bottom: 18px;
    transition: color 0.2s;
}

.product-name:hover {
    color: #c50808;
    text-decoration: none;
}

.product-domain {
    font-size: 13px;
    color: #1d4ed8;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.product-domain a {
    color: inherit;
    text-decoration: none;
}

.product-domain:hover {
    background: #e0e7ff;
}

.product-pricing {
    font-weight: 700;
    color: #0f172a;
    font-size: 15px;
}

.product-billing {
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-dates {
    color: #64748b;
    font-size: 13px;
}

/* Status Badges for Products */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    border: none;
}

.j-badge-active { background-color: #def7ec !important; color: #03543f !important; }
.j-badge-pending { background-color: #e0e7ff !important; color: #1d4ed8 !important; }
.j-badge-suspended { background-color: #fef4fc !important; color: #9d174d !important; }
.j-badge-terminated { background-color: #f3f4f6 !important; color: #374151 !important; }
.j-badge-cancelled { background-color: #fde8e8 !important; color: #c50808 !important; }
.j-badge-fraud { background-color: #000000 !important; color: #ffffff !important; }
/* clientareaproducts.tpl */

/* supportticketsubmit-stepone.tpl */
/* =========================================
   Submit Ticket Departments Grid
   ========================================= */
.j-modern-header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 32px 0px 0px;
    border-radius: 16px;
}

.j-modern-header-box .j-modern-actions .btn-outline{
    background-color: #c50707;
    border: 1px solid #e2e8f0;
    color: #ffffff;
}

.j-modern-header-text {
    max-width: 1100px;
}

.j-modern-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 8px 0 0 0;
    line-height: 1.5;
}

.j-dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.j-dept-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none !important;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.j-dept-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08);
}

.j-dept-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.j-dept-card:hover .j-dept-icon {
    transform: scale(1.05);
}

/* Beautiful Curated Pastel Colors */
.dept-color-0 { background: #fff5f5; color: #c50808; } /* Theme Red */
.dept-color-1 { background: #eff6ff; color: #2563eb; } /* Soft Blue */
.dept-color-2 { background: #f0fdf4; color: #16a34a; } /* Soft Green */
.dept-color-3 { background: #fdf4ff; color: #d946ef; } /* Soft Fuchsia */
.dept-color-4 { background: #fffbeb; color: #d97706; } /* Soft Orange */
.dept-color-5 { background: #f1f5f9; color: #0f172a; } /* Theme Slate */

.j-dept-content { flex: 1; }

.j-dept-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    transition: color 0.3s ease;
}

.j-dept-card:hover .j-dept-title {
    color: #c50808;
}

.j-dept-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.j-dept-arrow {
    color: #cbd5e1;
    font-size: 18px;
    align-self: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.j-dept-card:hover .j-dept-arrow {
    color: #c50808;
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .j-modern-header-box { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px; }
    .j-dept-grid { grid-template-columns: 1fr; }
}
/* supportticketsubmit-stepone.tpl */

/* supportticketsubmit-steptwo.tpl */
/* =========================================
   Modern Ticket Form Styling
   ========================================= */
.j-ticket-form-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    padding: 40px;
    margin-bottom: 32px;
}

.j-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px 24px;
}

.j-form-col {
    padding: 0 12px;
    box-sizing: border-box;
    width: 100%;
}

@media (min-width: 768px) {
    .j-col-12 { width: 100%; }
    .j-col-6 { width: 50%; }
    .j-col-4 { width: 33.333%; }
}

.j-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.j-form-label i { font-size: 14px; }
.icon-blue { color: #2563eb; }
.icon-green { color: #16a34a; }
.icon-purple { color: #9333ea; }
.icon-orange { color: #d97706; }
.icon-red { color: #dc2626; }
.icon-slate { color: #475569; }

.j-ticket-form-card .form-control {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    color: #0f172a;
    background: #ffffff;
    transition: all 0.2s;
    box-sizing: border-box;
    height: auto;
}

.j-ticket-form-card .form-control:focus {
    border-color: #c50808;
    outline: none;
    box-shadow: 0 0 0 3px rgba(197, 8, 8, 0.1);
}

.j-ticket-form-card .form-control:disabled {
    background-color: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

.j-ticket-form-card select.form-control {
    cursor: pointer;
}

/* Attachment Zone */
.j-attachment-zone {
    background-color: #fffcfc;
    border: 2px dashed #fca5a5;
    border-radius: 12px;
    padding: 32px 24px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.j-attachment-zone:hover {
    border-color: #c50808;
    background-color: #fff5f5;
}

.j-attachment-icon {
    font-size: 32px;
    color: #f87171;
}

.j-btn-add {
    background: #e2e8f0;
    color: #0f172a;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    height: 100%;
}

.j-btn-add:hover { background: #cbd5e1; }

.j-form-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-start;
    gap: 12px;
}

@media (max-width: 768px) {
    .j-ticket-form-card { padding: 24px; }
    .j-form-row { margin-bottom: 0; }
    .j-form-col { margin-bottom: 24px; }
    .j-form-footer { flex-direction: column-reverse; }
    .j-form-footer button, .j-form-footer a { width: 100%; justify-content: center; }
}
/* supportticketsubmit-steptwo.tpl */

/* announcements.tpl */
/* =========================================
   Announcements Specific Formatting
   ========================================= */
.j-announcement-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 32px;
    margin-bottom: 24px;
    display: flex;
    gap: 32px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    text-decoration: none !important;
    color: inherit;
}

.j-announcement-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 20px -5px rgba(0,0,0,0.08);
}

.j-announcement-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    min-width: 80px;
    height: 80px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.j-announcement-day {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.j-announcement-month {
    font-size: 13px;
    font-weight: 600;
    color: #c50808;
    text-transform: uppercase;
    margin-top: 4px;
}

.j-announcement-year {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    margin-top: 2px;
}

.j-announcement-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.j-announcement-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
    transition: color 0.2s;
}

.j-announcement-title a {
    color: inherit;
    text-decoration: none;
}

.j-announcement-card:hover .j-announcement-title {
    color: #c50808;
}

.j-announcement-summary {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.j-announcement-readmore {
    font-size: 14px;
    font-weight: 600;
    color: #c50808;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.j-announcement-card:hover .j-announcement-readmore i {
    transform: translateX(4px);
}

.j-announcement-readmore i {
    transition: transform 0.2s;
}

/* Modern Pagination for Announcements */
.j-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.j-page-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.2s;
}

.j-page-item:hover:not(.disabled) {
    background: #f1f5f9;
}

.j-page-item.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.j-page-item.disabled {
    color: #cbd5e1;
    cursor: not-allowed;
    background: #f8fafc;
}

@media (max-width: 768px) {
    .j-announcement-card {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }
    .j-announcement-date {
        flex-direction: row;
        height: auto;
        min-width: auto;
        padding: 12px 16px;
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
        box-sizing: border-box;
    }
    .j-announcement-day { font-size: 18px; }
    .j-announcement-month { margin-top: 0; font-size: 15px; color: #c50808; }
    .j-announcement-year { margin-top: 0; font-size: 15px; color: #64748b; }
}
/* announcements.tpl */

/* viewannouncement.tpl */
/* =========================================
   View Announcement Specific Formatting
   ========================================= */
.j-modern-header-box .j-modern-title {
    flex: 1;
    margin-bottom: 0;
    line-height: 1.3;
}

.j-modern-header-box .j-modern-actions .btn-outline i{
    color: #ffffff !important; 
}

.j-modern-actions .dropdown-menu {
    border: none;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 8px;
    margin-top: 8px !important;
    min-width: 220px;
    border: 1px solid #e2e8f0;
}

.j-modern-actions .dropdown-item {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    font-weight: 500;
    display: block;
    transition: all 0.2s;
}

.j-modern-actions .dropdown-item:hover {
    background-color: #f1f5f9;
    color: #c50808;
}

.j-modern-actions .dropdown-divider {
    border-top: 1px solid #e2e8f0;
    margin: 6px 0;
}

/* Article Card Design */
.j-article-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    padding: 40px;
    margin-bottom: 40px;
}

.j-article-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.j-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.j-meta-date { background-color: #eff6ff; color: #1d4ed8; }
.j-meta-time { background-color: #fff5f5; color: #c50808; }

.j-article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
}

.j-article-body h1, .j-article-body h2, .j-article-body h3 {
    color: #0f172a;
    margin-top: 32px;
    margin-bottom: 16px;
}

.j-article-body p {
    margin-top: 0;
    margin-bottom: 20px;
}

.j-article-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
}

.share-label {
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
}

.j-comments-card {
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    padding: 40px;
    text-align: center;
    margin-top: 32px;
}

@media (max-width: 768px) {
    .j-article-card { padding: 24px; }
    .j-article-footer { flex-direction: column; align-items: flex-start; gap: 16px; }
}
/* viewannouncement.tpl */

/* knowledgebase.tpl */
/* =========================================
   Knowledgebase Specific Formatting
   ========================================= */
/* KB Search Hero */
.j-kb-search-hero {
    background: linear-gradient(135deg, #0f172a 0%, #000000 100%);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.j-kb-search-title {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.j-kb-search-subtitle {
    color: #cbd5e1;
    font-size: 16px;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.j-kb-search-form {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.j-kb-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
}

.j-kb-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 16px 14px 48px;
    font-size: 16px;
    color: #0f172a;
    outline: none;
    border-radius: 8px;
}

.j-kb-search-input::placeholder { color: #94a3b8; }

.j-kb-search-btn {
    background-color: #c50808;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 24px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.j-kb-search-btn:hover { background-color: #a30606; }

/* Abstract geometric decoration */
.j-kb-decoration {
    position: absolute;
    right: -100px;
    top: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(197, 8, 8, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

/* Category Badge (Overrides existing submit ticket category card) */
.j-dept-badge {
    font-size: 11px;
    background: #e2e8f0;
    color: #475569;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

/* Popular Articles List */
.j-kb-popular-header {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
}

.j-kb-article-list {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.j-kb-article-item {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    text-decoration: none !important;
    transition: background 0.2s;
    color: inherit;
}

.j-kb-article-item:last-child { border-bottom: none; }
.j-kb-article-item:hover { background: #f8fafc; }

.j-kb-article-icon {
    font-size: 20px;
    color: #94a3b8;
    margin-right: 20px;
    transition: color 0.2s;
}

.j-kb-article-item:hover .j-kb-article-icon { color: #c50808; }

.j-kb-article-content { flex: 1; }

.j-kb-article-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 4px 0;
    transition: color 0.2s;
}

.j-kb-article-item:hover .j-kb-article-title { color: #c50808; }

.j-kb-article-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.j-kb-article-arrow {
    color: #cbd5e1;
    font-size: 16px;
    transition: transform 0.2s;
}

.j-kb-article-item:hover .j-kb-article-arrow {
    transform: translateX(4px);
    color: #0f172a;
}

@media (max-width: 768px) {
    .j-kb-search-hero { padding: 40px 24px; }
    .j-kb-search-title { font-size: 24px; }
    .j-kb-search-form { flex-direction: column; background: transparent; box-shadow: none; gap: 12px; padding: 0; }
    .j-kb-search-input { background: #ffffff; width: 100%; border-radius: 8px; padding: 14px 16px 14px 44px; }
    .j-kb-search-btn { width: 100%; padding: 14px; }
    .j-kb-search-icon { top: 22px; }
}
/* knowledgebase.tpl */

/* serverstatus.tpl */

/* Status Banners */
.j-status-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 32px;
    border-radius: 12px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.j-status-banner .icon { font-size: 32px; }
.j-status-banner .content { flex: 1; }
.j-status-banner .title { font-size: 18px; font-weight: 700; margin: 0 0 4px 0; }
.j-status-banner .desc { font-size: 14px; margin: 0; opacity: 0.9; }

.status-all-good { background-color: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.status-all-good .icon { color: #22c55e; }

.status-issues { background-color: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.status-issues .icon { color: #ef4444; }

.status-scheduled { background-color: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.status-scheduled .icon { color: #3b82f6; }

/* Table Overrides */
.server-name { font-weight: 700; color: #0f172a; font-size: 15px; }
.port-status { color: #10b981; font-size: 18px; }

/* Incident Cards */
.j-issue-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.j-issue-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}

.j-issue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.j-issue-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.j-issue-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid #f1f5f9;
}

.j-issue-meta-item {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.j-issue-meta-item i { color: #0f172a; opacity: 0.6; }

.j-issue-body {
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
    margin: 0;
}

.j-badge-critical { background: #fef2f2 !important; color: #dc2626 !important; }
.j-badge-high { background: #fff7ed !important; color: #d97706 !important; }
.j-badge-low { background: #f0fdf4 !important; color: #16a34a !important; }
.j-badge-info { background: #eff6ff !important; color: #2563eb !important; }

.j-badge-status-open { border: 1px solid #dc2626; background: transparent; color: #dc2626; padding: 2px 8px; border-radius: 12px; font-size: 11px; vertical-align: middle; font-weight: 600;}
.j-badge-status-resolved { border: 1px solid #16a34a; background: transparent; color: #16a34a; padding: 2px 8px; border-radius: 12px; font-size: 11px; vertical-align: middle; font-weight: 600;}
.j-badge-status-scheduled { border: 1px solid #3b82f6; background: transparent; color: #3b82f6; padding: 2px 8px; border-radius: 12px; font-size: 11px; vertical-align: middle; font-weight: 600;}

@media (max-width: 768px) {
    .j-status-banner { flex-direction: column; text-align: center; }
    .j-issue-meta { flex-direction: column; gap: 12px; }
}

/* =========================================
   Modern Dropdown (Used in Header Actions)
   ========================================= */
.j-modern-actions .dropdown-menu {
    border: none;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 8px;
    margin-top: 8px !important;
    min-width: 220px;
    border: 1px solid #e2e8f0;
}

.j-modern-actions .dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    font-weight: 500;
    transition: all 0.2s;
}

.j-modern-actions .dropdown-item:hover {
    background-color: #f1f5f9;
    color: #c50808;
}

.j-modern-actions .dropdown-divider {
    border-top: 1px solid #e2e8f0;
    margin: 6px 0;
}

/* Category / Count Badge */
.j-dept-badge {
    font-size: 11px;
    background: #e2e8f0;
    color: #475569;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

.page-serverstatus .j-modern-header .j-modern-actions .btn-modern {
    background-color: #c50707;
    border: 1px solid #e2e8f0;
    color: #ffffff;
}

.page-serverstatus .j-modern-header .j-modern-actions .btn-modern i{
    color: #ffffff !important;
}
/* serverstatus.tpl */

/* serverstatus.tpl */
/* =========================================
   Account Details Specific Formatting
   ========================================= */
/* Top Horizontal Nav (Replaces Sidebar) */
.j-account-nav {
    display: flex;
    background-color: #0f172a;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 32px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: wrap !important;
}

.j-account-nav-item {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.j-account-nav-item:hover { color: #ffffff;}
.j-account-nav-item.active {
    background-color: #ffffff;
    color: #0f172a;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
}

/* Form Cards */
.j-form-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    padding: 32px;
    margin-bottom: 24px;
}

.j-form-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}
.j-form-card-header h3 { margin: 0; font-size: 18px; color: #0f172a; font-weight: 700; }
.j-form-card-header i { font-size: 20px; }

/* Grid Layout */
.j-form-row { display: flex; flex-wrap: wrap; margin: 0 -12px 16px; }
.j-form-col { padding: 0 12px; box-sizing: border-box; width: 100%; margin-bottom: 16px; }
@media (min-width: 768px) { .j-col-6 { width: 50%; } }

/* Inputs */
.j-form-label { display: block; font-size: 13px; font-weight: 600; color: #64748b; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.j-form-control {
    width: 100%; padding: 12px 16px; border-radius: 8px; border: 1px solid #cbd5e1;
    font-size: 15px; color: #0f172a; background: #ffffff; transition: all 0.2s; box-sizing: border-box; font-family: inherit; height: auto;
}
.j-form-control:focus { border-color: #c50808; outline: none; box-shadow: 0 0 0 3px rgba(197, 8, 8, 0.1); }
.page-clientareadetails select.j-form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; }

/* Checkboxes */
.j-checkbox-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; padding: 12px; border-radius: 8px; border: 1px solid transparent; transition: background 0.2s; cursor: pointer; }
.j-checkbox-row:hover { background: #f8fafc; border-color: #e2e8f0; }
.j-checkbox-row input[type="checkbox"] { margin-top: 4px; accent-color: #c50808; width: 16px; height: 16px; cursor: pointer;}
.j-checkbox-label { font-size: 14px; font-weight: 500; color: #0f172a; cursor: pointer; margin:0; line-height: 1.5; }

/* Actions */
.j-form-actions { display: flex; justify-content: flex-end; gap: 16px; margin-top: 32px; margin-bottom: 40px; }
.btn-save { background-color: #c50808; color: #ffffff; box-shadow: 0 4px 6px -1px rgba(197, 8, 8, 0.2); }
.btn-save:hover { background-color: #a30606; transform: translateY(-1px); }
.btn-cancel { background-color: #ffffff; border: 1px solid #e2e8f0; color: #0f172a; }
.btn-cancel:hover { background-color: #f1f5f9; }

@media (max-width: 768px) {
    .j-form-card { padding: 24px; }
    .j-form-actions { flex-direction: column-reverse; }
    .j-form-actions .btn-modern { width: 100%; justify-content: center; }
}
/* serverstatus.tpl */

/* account-contacts-new.tpl */
/* =========================================
   Contacts Specific Formatting
   ========================================= */
.j-contact-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 6px 6px 6px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.j-contact-selector span {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.j-contact-selector select {
    border: none;
    background: transparent;
    font-size: 15px;
    font-family: inherit;
    color: #0f172a;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    padding-right: 32px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 16px;
}

.j-contact-selector button {
    background: #c50808;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.j-contact-selector button:hover {
    background: #a30606;
}

@media (max-width: 768px) {
    .j-contact-selector { width: 100%; box-sizing: border-box; justify-content: space-between; }
    .j-contact-selector select { width: 100%; text-overflow: ellipsis; }
}
/* account-contacts-new.tpl */

/* user-security.tpl */

.page-user-security .j-security-alert {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.page-user-security .j-security-alert.alert-danger {
    background-color: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.page-user-security .btn-enable { background-color: #16a34a !important; color: white !important; box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.2); }
.page-user-security .btn-enable:hover { background-color: #15803d !important; transform: translateY(-1px); }

.page-user-security .btn-disable { background-color: #fef2f2 !important; border: 1px solid #fca5a5 !important; color: #dc2626 !important; }
.page-user-security .btn-disable:hover { background-color: #fee2e2 !important; }

/* Override WHMCS Default Linked Accounts Tables */
.page-user-security .page-user-security .table-linked-accounts {
    width: 100%;
    margin-top: 16px;
    border-collapse: collapse;
}
.page-user-security .page-user-security .table-linked-accounts td {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}
.page-user-security .page-user-security .btn-link-provider {
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    margin: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.page-user-security .w-hidden{
    display: none;
}
/* user-security.tpl */

/* clientareadomaindetails.tpl */
/* =========================================
   Domain Details Specific Formatting
   ========================================= */
.j-domain-nav {
    display: flex;
    background-color: #0f172a;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 32px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
    overflow-x: auto;
    white-space: nowrap;
    list-style: none;
    border: none;
}
.j-domain-nav .nav-item { flex: 1; margin:0; }
.j-domain-nav .nav-link {
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    display: block;
}
.j-domain-nav .nav-link.active {
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
}

.j-domain-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.j-stat-box { display: flex; flex-direction: column; gap: 4px; }
.j-stat-box label { font-size: 12px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin:0; }
.j-stat-box .value { font-size: 15px; font-weight: 600; color: #0f172a; }
.j-stat-box .value a { color: #c50808; text-decoration: none; }
.j-stat-box .value a:hover { text-decoration: underline; }

.j-ssl-banner { margin-top: 24px; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 12px; }
.j-ssl-banner.ssl-active { background-color: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.j-ssl-banner.ssl-inactive { background-color: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.j-ssl-banner .ssl-details { flex: 1; }
.j-ssl-banner h4 { margin: 0 0 4px 0; font-size: 15px; font-weight: 600; }
.j-ssl-banner p { margin: 0; font-size: 13px; opacity: 0.9; }

.j-domain-addon-card { display: flex; align-items: center; gap: 20px; padding: 24px; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 16px; background: #f8fafc;}
.j-domain-addon-card i { font-size: 32px; color: #0f172a; opacity: 0.8;}
.j-domain-addon-content { flex: 1; }
.j-domain-addon-content strong { display: block; font-size: 16px; color: #0f172a; margin-bottom: 4px; }
.j-domain-addon-content p { margin: 0; font-size: 13px; color: #64748b; }
.j-domain-addon-action form { margin: 0; display:flex; gap: 8px;}

/* Support Overriding WHMCS default styles inside our j-form-card */
.j-form-card .form-check-input {
    margin-top: 4px;
}
.j-form-card .alert { margin-bottom: 0; margin-top: 16px;}

@media (max-width: 768px) {
    .j-domain-stats-grid { grid-template-columns: 1fr; }
    .j-domain-addon-card { flex-direction: column; text-align: center; }
}
/* clientareadomaindetails.tpl */

/* products.tpl */
/* Hide Sidebar container on Shopping Cart */

/* Light Store Wrapper */
.j-store-wrapper {
    background-color: transparent;
    border-radius: 24px;
    padding: 20px 0 60px 0;
}

/* Store Header */
.j-store-header { text-align: center; margin-bottom: 40px; margin-top: 10px;}
.j-store-title { font-size: 36px; font-weight: 800; color: #0f172a; margin: 0 0 12px 0; letter-spacing: -1px; }
.j-store-subtitle { font-size: 16px; color: #64748b; margin: 0; font-weight: 500; }

/* Horizontal Category Pills Grouping */
.j-store-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 50px;
    width: 100%;
}

.j-store-categories .j-cat-pill {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    width: auto !important;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    display: inline-flex;
    align-items: center;
}

.j-store-categories .j-cat-pill:hover,
.j-store-categories .j-cat-pill[aria-expanded="true"] {
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    background-color: #f8fafc !important;
    text-decoration: none !important;
}

.j-store-categories .j-cat-pill.active {
    background-color: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.j-store-categories .j-cat-pill.active:hover {
    color: #ffffff !important;
}

/* Category Dropdown Overrides */
.j-store-categories .dropdown-menu {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    padding: 8px;
    margin-top: 8px;
    min-width: 260px;
}

.j-store-categories .dropdown-item {
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    transition: all 0.2s;
    white-space: normal; /* Allows long location names to wrap nicely */
}

.j-store-categories .dropdown-item:hover,
.j-store-categories .dropdown-item.active {
    background-color: #fff5f5;
    color: #c50808;
}

/* Premium Pricing Grid */
.j-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    justify-content: center;
    max-width: 1500px;
    margin: 0 auto;
}

/* Light Card Styling */
.j-product-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    position: relative;
}

.j-product-card:hover {
    transform: translateY(-8px);
    border-color: #c50808;
    box-shadow: 0 20px 40px -10px rgba(197, 8, 8, 0.15);
}

.j-product-header { text-align: center; margin-bottom: 24px; width: 100%;}
.j-product-header h3 { font-size: 20px; font-weight: 700; margin: 0; color: #0f172a; line-height: 1.4; }

.j-product-pricing {
    text-align: center;
    margin-bottom: 24px;
    width: 100%;
}

.j-price-amount {
    font-size: 38px;
    font-weight: 800;
    color: #c50808; 
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 8px 0;
}

/* Custom Currency Sizing */
.j-currency {
    font-size: 18px; /* Much smaller than the 38px numbers */
    font-weight: 700;
    margin-left: 4px;
    opacity: 0.85; /* Slightly fades the LKR so the numbers pop more */
    letter-spacing: 0.5px;
}

.j-price-cycle {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Order Button */
.j-btn-order {
    background-color: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 32px;
    box-sizing: border-box;
    display: inline-block;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1);
}

.j-product-card:hover .j-btn-order,
.j-btn-order:hover {
    background-color: #c50808;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 8px 15px -3px rgba(197, 8, 8, 0.3);
}

.j-product-features { width: 100%; }

.j-product-features p {
    font-size: 14px;
    color: #64748b;
    text-align: center;
    margin-bottom: 24px;
}

.j-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
}

.j-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #475569;
    margin-bottom: 16px;
    line-height: 1.5;
}

.j-features-list li i {
    color: #c50808; /* Theme Checkmark */
    font-size: 14px;
    margin-top: 3px;
}

.j-features-list li strong {
    color: #0f172a;
    font-weight: 600;
}



@media (max-width: 768px) {
    .j-store-wrapper { padding: 20px 0; }
}

.j-desc-line{
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    color: #000000;
    margin-bottom: 10px;
    line-height: 1.5;
}

  .j-desc-line::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cc0000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0; 
  }

  .j-desc-line strong {
    color: #002244;
    font-weight: 700;
    margin-right: 4px; 
  }

/* products.tpl */

/* configureproduct.tpl */
.j-config-page .cart-sidebar {
    display: none !important; /* Hide sidebar to maximize space for the new 2-column layout */
}

.j-page-header { margin-bottom: 32px; }
.j-page-title { font-size: 32px; font-weight: 700; color: #0f172a; margin: 0 0 8px 0; letter-spacing: -0.5px; }
.j-page-subtitle { font-size: 16px; color: #64748b; margin: 0; }

.j-config-wrapper { display: flex; gap: 32px; align-items: flex-start; }
.j-config-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.j-config-sidebar { width: 360px; flex-shrink: 0; position: sticky; top: 24px; z-index: 10; }

/* Modern Card Styling */
.j-card { background: #ffffff; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02), 0 2px 4px -1px rgba(0,0,0,0.02); padding: 28px; position: relative; overflow: hidden; }
.j-card:hover::before { background: #c50808; }

.j-card-title { font-size: 18px; font-weight: 700; color: #0f172a; margin: 0 0 20px 0; display: flex; align-items: center; gap: 10px; border-bottom: none; padding-bottom: 0;}
.j-card-title i { color: #c50808; }

/* Product Info Specific */
.j-product-info h3 { font-size: 20px; margin: 0 0 8px 0; color: #0f172a; font-weight: 600; }
.j-product-info p { margin: 0; color: #64748b; font-size: 14px; line-height: 1.6; }

/* Form Controls */
.j-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.j-form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 0;}
.j-form-label { font-size: 13px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin:0; }

.j-select { 
    width: 100%; height: 48px; border: 2px solid #e2e8f0; border-radius: 8px; color: #0f172a; font-size: 15px; padding: 0 16px; outline: none; transition: all 0.2s; box-sizing: border-box; font-family: inherit; font-weight: 500;
    background-color: #f8fafc; box-shadow: none !important;
}
select.j-select {
    appearance: none; 
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); 
    background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; cursor: pointer;
}
.j-select:hover { border-color: #cbd5e1; }
.j-select:focus { border-color: #c50808; background-color: #ffffff; box-shadow: 0 0 0 4px rgba(197, 8, 8, 0.1) !important; }

/* Range Slider Override for WHMCS */
.j-form-group .input-group { display: flex; width: 100%; }
.j-form-group .input-group .j-select { border-radius: 8px 0 0 8px; border-right: none; }
.j-form-group .input-group-addon { background: #f8fafc; border: 2px solid #e2e8f0; border-left: none; border-radius: 0 8px 8px 0; color: #64748b; font-size: 15px; font-weight: 600; padding: 0 16px; display: flex; align-items: center;}

/* Radio & Checkbox styling */
.j-radio-label { display: flex; align-items: center; gap: 10px; font-weight: 500; color: #0f172a; margin-top: 8px; text-transform: none; cursor: pointer; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 8px; transition: background 0.2s; }
.j-radio-label:hover { background: #f8fafc; }
.j-radio-label input { width: 18px; height: 18px; accent-color: #c50808; margin: 0; cursor: pointer;}

/* Help Banner */
.j-help-banner { background: #f1f5f9; border-radius: 8px; padding: 16px 20px; display: flex; align-items: center; gap: 12px; color: #0f172a; font-size: 14px; font-weight: 500; margin-bottom: 24px; border: 1px solid #e2e8f0;}
.j-help-banner i.fa-headset { color: #c50808; font-size: 20px; }
.j-help-banner a { color: #c50808; font-weight: 700; text-decoration: none; margin-left: auto; }
.j-help-banner a:hover { text-decoration: underline; }

/* Order Summary Widget */
.j-summary-widget { background: #ffffff; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); overflow: hidden; margin-bottom: 16px;}
.j-summary-head { background: #0f172a; color: #ffffff; padding: 20px; text-align: center; font-size: 18px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0;}
.j-summary-body { padding: 24px; background-color: #0f172a; color: white;}

/* Targeting WHMCS dynamic HTML inside the summary */
#producttotal { margin: 0; padding: 0; border: none; box-shadow: none; background: transparent; }
#producttotal .summary-product { font-weight: 700; color: #0f172a; font-size: 15px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px dashed #cbd5e1; display: block; line-height: 1.4; }
#producttotal .summary-product span { font-weight: 500; font-size: 13px; color: #64748b; font-style: normal; display: block; margin-top: 6px; }
#producttotal .summary-item { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; line-height: 1.4; font-size: 13px; color: #0f172a; }
#producttotal .summary-item span:first-child { color: #64748b; padding-right: 16px; }
#producttotal .summary-item span:last-child { font-weight: 600; text-align: right; }

#producttotal .summary-totals { background: #0f172a; margin: 20px -24px -24px -24px; padding: 24px; border-top: 1px solid #e2e8f0; text-align: center; display: block; }
#producttotal .summary-totals .summary-item { margin-bottom: 12px;}
#producttotal .summary-totals .summary-item span:first-child { color: #0f172a; font-weight: 600;}
#producttotal .total-due-today .amt { font-size: 32px; font-weight: 800; color: #ffffff; margin: 12px 0 4px 0; display: block; line-height: 1; letter-spacing: -1px;}
#producttotal .total-due-today-label { font-size: 12px; font-weight: 600; color: #64748b; display: block; text-transform: uppercase; letter-spacing: 0.5px;}

#orderSummaryLoader { color: #c50808; font-size: 24px; margin-bottom: 16px;}

/* Continue Checkout Button */
.j-btn-checkout { background: linear-gradient(135deg, #c50808 0%, #a30606 100%); color: #ffffff; border: none; border-radius: 8px; padding: 16px 24px; font-size: 16px; font-weight: 700; width: 100%; margin-top: 24px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(197, 8, 8, 0.2); display: flex; justify-content: center; align-items: center; gap: 8px; }
.j-btn-checkout:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(197, 8, 8, 0.3); color: #ffffff;}

#order-standard_cart .cart-body{
    padding-bottom: 50px !important;
}
/* Hide default cart artifacts */
#order-standard_cart .cart-body .header-lined,
#order-standard_cart .secondary-cart-body > p:first-of-type { display: none; }

/* Responsive Layout */
@media (max-width: 992px) {
    .j-config-wrapper { flex-direction: column; }
    .j-config-sidebar { width: 100%; position: relative; top: 0; }
}
@media (max-width: 768px) {
    .j-form-grid { grid-template-columns: 1fr; }
    .j-help-banner { flex-direction: column; text-align: center; }
    .j-help-banner a { margin-left: 0; margin-top: 8px;}
}
/* configureproduct.tpl */

/* viewcart.tpl */

.j-cart-page {
    font-family: 'Inter', sans-serif;
    color: #0f172a;
}

/* Hide default sidebar to maximize space for the 2-column layout */
.j-cart-page .cart-sidebar { display: none !important; }
.j-cart-page .cart-body { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; padding: 0 !important; }

/* Hide WHMCS defaults */
.header-lined, .view-cart-items-header { display: none !important; }

.j-cart-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-top: 24px;
}
.j-cart-main {
    flex: 1;
    min-width: 0;
    width: 100%;
}
.j-cart-sidebar-wrapper {
    width: 360px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
    z-index: 10;
}

/* Modern Table Container */
.j-cart-table-container {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
    background: #ffffff;
}

/* Table Header */
.j-cart-table-header {
    background-color: #0f172a; /* Theme Dark Slate */
    color: #ffffff;
    display: flex;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 14px;
}
.j-col-product { flex: 1; }
.j-col-price { width: 160px; text-align: right; padding-right: 40px; }

/* Table Rows */
.j-cart-table-row {
    display: flex;
    padding: 24px;
    background-color: #f8fafc; /* Light gray background like screenshot */
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    transition: background-color 0.2s;
}
.j-cart-table-row:last-child { border-bottom: none; }
.j-cart-table-row:hover { background-color: #f1f5f9; }

.j-row-left { flex: 1; padding-right: 20px;}
.j-row-title-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.j-row-title {
    font-size: 18px;
    color: #0f172a;
    font-weight: 600;
    margin: 0;
}
.j-row-edit {
    font-size: 12px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}
.j-row-edit:hover { text-decoration: underline; color: #1d4ed8; }

.j-row-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
}
.j-row-desc strong { color: #0f172a; }

.j-row-qty-box {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.j-row-qty-box input {
    width: 60px;
    height: 32px;
    text-align: center;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}
.j-row-qty-box button {
    background: #e2e8f0;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
}
.j-row-qty-box button:hover { background: #cbd5e1; }

.j-row-right {
    width: 160px;
    text-align: right;
    padding-right: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.j-price-val {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 2px;
}
.j-price-cyc {
    font-size: 12px;
    color: #64748b;
}

.j-row-remove {
    position: absolute;
    right: 24px;
    top: 24px;
    color: #0f172a;
    font-size: 16px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    opacity: 0.7;
    transition: all 0.2s;
}
.j-row-remove:hover {
    opacity: 1;
    color: #c50808; /* Theme Red */
    transform: scale(1.1);
}

/* Actions Bar */
.j-cart-actions-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}
.j-btn-empty {
    background-color: #0f172a; /* Dark theme color */
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}
.j-btn-empty:hover { background-color: #000000; color: #ffffff; text-decoration: none; }

/* Promo & Taxes Tabs */
.j-promo-container {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}
.j-promo-container .nav-tabs {
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
}
.j-promo-container .nav-tabs > li { margin: 0; }
.j-promo-container .nav-tabs > li > a {
    border: none;
    margin: 0;
    border-radius: 0;
    padding: 14px 24px;
    font-weight: 600;
    color: #64748b;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.j-promo-container .nav-tabs > li.active > a, 
.j-promo-container .nav-tabs > li.active > a:focus, 
.j-promo-container .nav-tabs > li.active > a:hover {
    background: #ffffff;
    color: #0f172a;
    border-bottom: 2px solid #c50808;
}
.j-promo-container .tab-content { padding: 24px; }

.j-promo-input-group { display: flex; align-items: stretch; gap: 12px; }
.j-promo-input-group .field-icon { display: none; }
.j-promo-input-group input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
    color: #0f172a;
}
.j-promo-input-group input:focus { border-color: #c50808; }
.j-promo-input-group button {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    padding: 0 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.j-promo-input-group button:hover { background-color: #f8fafc; border-color: #94a3b8; }

/* Order Summary Sticky Widget */
.j-summary-box {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.j-summary-title {
    background-color: #0f172a; /* Gray to match the screenshot */
    color: #ffffff;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin: 0;
}
.j-summary-content { padding: 24px; background-color: #0f172a;}

.j-summary-content .summary-container {
    font-size: 14px;
    color: #475569;
}
.j-summary-content .clearfix {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}
.j-summary-content .clearfix span:last-child { font-weight: 600; color: #0f172a; }

.bordered-totals {
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
    margin: 16px 0;
}

.recurring-charges span { display: block; text-align: right; margin-bottom: 4px;}

.total-due-today {
    text-align: center;
    margin-top: 32px;
}
.total-due-today .amt {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    display: block;
    line-height: 1.1;
    margin-bottom: 8px;
}
.total-due-today span:last-child {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
}

.j-btn-checkout {
    background-color: #c50808; /* Theme Red */
    color: #ffffff;
    padding: 16px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: none;
    margin-top: 24px;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}
.j-btn-checkout:hover { background-color: #a30606; color: white; text-decoration: none; }

.j-link-continue {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    text-decoration: none;
}
.j-link-continue:hover { color: #0f172a; text-decoration: underline; }

#orderSummaryLoader { color: #c50808; font-size: 20px; float: right; }

#order-standard_cart .summary-container{ background-color: #0f172a !important; color: #ffffff; font-size: 16px !important;}
#order-standard_cart .j-sum-divider{
    height: 1px;
    background: white;
    margin: 15px 0px;
}

/* Modals Overrides */
.modal-content { border-radius: 12px; border: none; overflow: hidden; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.modal-title { font-weight: 700; color: #0f172a; }
.modal-title i { color: #c50808; margin-bottom: 16px; }
.modal-footer { border-top: 1px solid #e2e8f0; background: #f8fafc; padding: 16px; }
.modal-footer .btn-primary { background: #c50808; border: none; border-radius: 6px; padding: 10px 24px; font-weight: 600;}
.modal-footer .btn-primary:hover { background: #a30606; }
.modal-footer .btn-default { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 6px; padding: 10px 24px; font-weight: 600; color: #0f172a;}

/* Empty Cart State */
.j-empty-state { text-align: center; padding: 60px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; }
.j-empty-state i { font-size: 48px; color: #cbd5e1; margin-bottom: 20px; }
.j-empty-state h3 { margin: 0 0 12px 0; font-size: 20px; color: #0f172a; font-weight: 700; }

@media (max-width: 991px) {
    .j-cart-layout { flex-direction: column; }
    .j-cart-sidebar-wrapper { width: 100%; position: relative; top: 0; }
    .j-col-price, .j-row-right { width: auto; padding-right: 0; text-align: left; }
    .j-cart-table-row { flex-direction: column; gap: 16px; }
    .j-row-remove { top: 16px; right: 16px; }
    .j-cart-table-header .j-col-price { display: none; }
}

/* =========================================
   Mobile Adjustments (Cart Items to Cards)
   ========================================= */
@media (max-width: 991px) {
    .j-cart-layout { flex-direction: column; }
    .j-cart-sidebar-wrapper { width: 100%; position: relative; top: 0; }
    
    /* Remove outer border to let cards float */
    .j-cart-table-container { background: transparent; border: none; margin-bottom: 0; }
    
    /* Hide the desktop header */
    .j-cart-table-header { display: none; }
    
    /* Convert rows into floating cards */
    .j-cart-table-row { 
        flex-direction: column; 
        gap: 0; 
        padding: 24px; 
        background: #ffffff !important; 
        border: 1px solid #e2e8f0 !important; 
        border-radius: 16px; 
        margin-bottom: 16px; 
        box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    }
    
    .j-row-left { 
        padding-right: 40px; /* Leave space for trash icon */ 
        margin-bottom: 20px; 
    }
    
    /* Transform Price area into a beautiful card footer */
    .j-row-right { 
        width: 100%; 
        padding-right: 0; 
        text-align: left; 
        flex-direction: row; 
        flex-wrap: wrap;
        justify-content: space-between; 
        align-items: center; 
        border-top: 1px dashed #cbd5e1; 
        padding-top: 16px;
    }
    
    .j-price-val { font-size: 20px; color: #c50808; margin: 0; }
    .j-price-cyc { font-size: 13px; font-weight: 500; }
    
    /* Make the remove button a clear, touch-friendly target */
    .j-row-remove { 
        top: 20px; 
        right: 20px; 
        background: #fff5f5; 
        color: #dc2626; 
        border-radius: 8px; 
        width: 36px; 
        height: 36px; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        padding: 0;
        opacity: 1;
        border: 1px solid #fecaca;
    }
    
    /* Promo & Taxes adjustments for small screens */
    .j-promo-container .nav-tabs { flex-wrap: wrap; }
    .j-promo-container .nav-tabs > li { flex: 1 1 50%; text-align: center; }
    .j-promo-container .nav-tabs > li > a { padding: 12px; }
    .j-promo-input-group { flex-direction: column; }
    .j-promo-input-group button { height: 48px; width: 100%; }
    
    /* Tax Form Stacking */
    #calcTaxes form { flex-direction: column; }
    #calcTaxes form > div { width: 100%; min-width: 100% !important; }
}
/* viewcart.tpl */

/* checkout.tpl */
/* =========================================
   Ultra-Modern SaaS Checkout CSS
   (Move to your style.css)
   ========================================= */

/* Main Container Constraints */
.c-checkout-wrapper {
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    max-width: 1500px; /* Tighter width for better reading length */
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 80px;
}

#order-standard_cart label .iradio_square-blue{
    display: none;
}

/* Hide WHMCS defaults */
.c-checkout-wrapper .cart-sidebar { display: none !important; }
.c-checkout-wrapper .cart-body { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; padding: 0 !important; }
.c-checkout-wrapper .header-lined { display: none !important; }

/* The Unified "Sheet" */
.c-paper {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

/* Page Header */
.c-header {
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}
.c-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}
.c-header p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

/* Step Sections */
.c-section {
    margin-bottom: 48px;
}
.c-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.c-step-num {
    background: #0f172a;
    color: #ffffff;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}

/* Custom Interactive Tiles (Account Selection) */
.c-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.c-tile {
    position: relative;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #ffffff;
    margin: 0;
}
.c-tile:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}
/* Hide actual radio */
.c-tile input[type="radio"] { position: absolute; opacity: 0; }

/* Custom Radio Indicator */
.c-radio-ind {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s;
}

/* Active State (using :has or WHMCS .active class) */
.c-tile:has(input[type="radio"]:checked),
.c-tile.active {
    border: 2px solid #c50808;
    background: #fffcfc;
    padding: 19px; /* Offset the 2px border */
}
.c-tile:has(input[type="radio"]:checked) .c-radio-ind,
.c-tile.active .c-radio-ind {
    border-color: #c50808;
}
.c-tile:has(input[type="radio"]:checked) .c-radio-ind::after,
.c-tile.active .c-radio-ind::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #c50808;
    border-radius: 50%;
}

.c-tile-content { flex: 1; }
.c-tile-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.c-tile-badge {
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}
.c-tile-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* Forms & Inputs */
.c-form-row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.c-form-col { padding: 0 10px; width: 100%; margin-bottom: 20px; box-sizing: border-box; }
@media (min-width: 768px) { .c-col-6 { width: 50%; } }

.c-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}
.c-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.c-input:focus {
    background: #ffffff;
    border-color: #c50808;
    outline: none;
    box-shadow: 0 0 0 4px rgba(197, 8, 8, 0.1);
}
select.c-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}
.c-textarea { min-height: 100px; resize: vertical; }

/* Payment Gateways (Pill Style) */
.c-gateway-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.c-gateway-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s;
    margin: 0;
}
.c-gateway-pill input[type="radio"] { position: absolute; opacity: 0; }
.c-gateway-pill:hover { background: #f8fafc; border-color: #94a3b8; }
.c-gateway-pill:has(input[type="radio"]:checked) {
    background: #0f172a;
    border-color: #0f172a;
}
.c-gateway-name {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}
.c-gateway-pill:has(input[type="radio"]:checked) .c-gateway-name {
    color: #ffffff;
}

/* Beautiful Total & Complete Box */
.c-checkout-footer {
    background: #f8fafc;
    border-radius: 20px;
    padding: 40px;
    margin-top: 48px;
    border: 1px dashed #cbd5e1;
    text-align: center;
}
.c-total-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 12px;
}
.c-total-amount {
    font-size: 48px;
    font-weight: 800;
    color: #c50808;
    line-height: 1;
    margin: 0 0 32px 0;
    letter-spacing: -1px;
}

.c-btn-submit {
    background: #c50808;
    color: #ffffff;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 25px -5px rgba(197, 8, 8, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.c-btn-submit:hover {
    background: #a30606;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(197, 8, 8, 0.4);
}

.c-tos-check {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    cursor: pointer;
    color: #475569;
    font-size: 14px;
}
.c-tos-check input { width: 18px; height: 18px; accent-color: #c50808; cursor: pointer; }
.c-tos-check a { color: #c50808; font-weight: 600; text-decoration: none; }
.c-tos-check a:hover { text-decoration: underline; }

/* Existing user & Credit specific tweaks */
.c-auth-toggle { text-align: right; margin-bottom: 24px; }
.c-auth-toggle button { background: transparent; border: 1px solid #cbd5e1; color: #0f172a; padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; transition: 0.2s; }
.c-auth-toggle button:hover { background: #f8fafc; border-color: #94a3b8; }
.c-credit-box { background: #eff6ff; border: 1px solid #bfdbfe; padding: 20px; border-radius: 12px; margin-bottom: 32px; }

/* Custom Overrides for WHMCS elements inside paper */
#existingCardInfo, #newCardInfo, #newCardSaveSettings { background: #ffffff; padding: 24px; border-radius: 12px; border: 1px solid #e2e8f0; margin-top: 16px; }

/* Responsive */
@media (max-width: 768px) {
    .c-paper { padding: 24px; border-radius: 16px; }
    .c-checkout-footer { padding: 24px; }
    .c-total-amount { font-size: 36px; }
}
/* checkout.tpl */

/* domain-renewals.tpl */
/* ==========================================================================
   Premium Light SaaS Domain Renewals CSS (Matches image_1a74bd.png)
   ========================================================================== */



/* Page Header & Search Filter Alignment */
.j-renew-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 16px;
}
.j-renew-title-group h1 {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    letter-spacing: -1px;
}
.j-renew-title-group p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* Custom Search Filter */
.j-renew-search-box {
    position: relative;
    width: 100%;
    max-width: 320px;
}
.j-renew-search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}
.j-renew-search-input {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 44px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}
.j-renew-search-input:focus {
    border-color: #c50808;
    box-shadow: 0 0 0 3px rgba(197, 8, 8, 0.1);
}

/* 2-Column Responsive Layout */
.j-renew-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.j-renew-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.j-renew-sidebar-wrapper {
    width: 360px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
    z-index: 10;
}

/* Premium Renewal Cards */
.j-renewal-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.j-renewal-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}
.j-renewal-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: background 0.3s ease;
}
.j-renewal-card:hover::before {
    background: #c50808;
}

.j-renewal-info {
    flex: 1;
    padding-right: 24px;
}
.j-renewal-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.j-domain-name {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    border: none;
}
.badge-success { background-color: #def7ec; color: #03543f; } /* Active */
.badge-warning { background-color: #fffbeb; color: #b45309; } /* Expiring soon */
.badge-danger { background-color: #fde8e8; color: #9b1c1c; } /* Expired */
.badge-info { background-color: #eff6ff; color: #1e40af; } /* Grace Period */

.j-expiry-text {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}
.j-expiry-text strong {
    color: #0f172a;
    font-weight: 600;
}

/* Action Area (Select Option + Button) */
.j-renewal-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    min-width: 280px;
}

/* Select Periods Wrapper */
.j-period-select-wrapper {
    position: relative;
    width: 100%;
}
.j-period-select {
    width: 100%;
    height: 48px;
    padding: 0 40px 0 16px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    background-color: #f8fafc;
    outline: none;
    transition: all 0.2s;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}
.j-period-select:focus {
    border-color: #c50808;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(197, 8, 8, 0.1);
}

/* Add/Remove Action Button */
.btn-add-renewal-to-cart {
    background-color: #cbd5e1;
    color: #0f172a;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
}
.btn-add-renewal-to-cart:hover {
    background-color: #94a3b8;
}

/* Active Added State */
.btn-add-renewal-to-cart.added {
    background-color: #c50808; /* Brand Accent */
    color: #ffffff;
}
.btn-add-renewal-to-cart.added:hover {
    background-color: #a30606;
}

/* Cart Order Summary Card */
.j-summary-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.j-summary-title {
    background-color: #0f172a; /* Slate theme matches index.html */
    color: #ffffff;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin: 0;
}
.j-summary-content {
    padding: 24px;
    background-color: #0f172a; /* Flat solid slate wrapper */
}
.j-summary-content .summary-container {
    color: #cbd5e1;
}

/* Dynamic WHMCS Elements Alignment inside Summary */
#producttotal { margin: 0; padding: 0; border: none; background: transparent; }
#producttotal .summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}
#producttotal .summary-totals {
    border-top: 1px dashed rgba(255,255,255,0.15);
    padding-top: 16px;
    margin-top: 16px;
}
#producttotal .total-due-today {
    text-align: center;
    margin-top: 24px;
}
#producttotal .total-due-today .amt {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}
#producttotal .total-due-today-label {
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.j-btn-cart {
    background-color: #c50808;
    color: #ffffff;
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    box-shadow: 0 4px 10px rgba(197, 8, 8, 0.3);
    text-decoration: none;
}
.j-btn-cart:hover {
    background-color: #a30606;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(197, 8, 8, 0.4);
    color: #ffffff;
    text-decoration: none;
}

#orderSummaryLoader { color: #c50808; font-size: 20px; float: right; display: none; }

/* Modals Override */
.modal-content { border-radius: 12px; border: none; overflow: hidden; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.modal-title { font-weight: 700; color: #0f172a; }
.modal-title i { color: #c50808; margin-bottom: 16px; }
.modal-footer { border-top: 1px solid #e2e8f0; background: #f8fafc; padding: 16px; }
.modal-footer .btn-primary { background: #c50808; border: none; border-radius: 6px; padding: 10px 24px; font-weight: 600;}
.modal-footer .btn-primary:hover { background: #a30606; }
.modal-footer .btn-default { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 6px; padding: 10px 24px; font-weight: 600; color: #0f172a;}

@media (max-width: 1130px) {
    .j-renewal-card { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 991px) {
    .j-renew-layout { flex-direction: column; }
    .j-renew-sidebar-wrapper { width: 100%; position: relative; top: 0; }
    .j-renewal-actions { width: 100%; align-items: stretch; }
    .j-renew-header-bar { flex-direction: column; align-items: stretch; }
    .j-renew-search-box { max-width: 100%; }
}
/* domain-renewals.tpl */

/* clientregister.tpl */
/* ==========================================================================
   Premium Light SaaS Client Registration CSS (Matches Host Asia Design)
   ========================================================================== */

.j-register-page {
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 40px;
}

/* Hide default cart sidebars and old headers */
.j-register-page .cart-sidebar { display: none !important; }
.j-register-page .cart-body { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; padding: 0 !important; }
.j-register-page .header-lined { display: none !important; }

/* The Unified "Sheet" Card */
.j-register-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

/* Page Header & Intro styling */
.j-register-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}
.j-register-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}
.j-register-header p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

/* Form Sections */
.j-register-section {
    margin-bottom: 40px;
}
.j-register-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}
.j-register-section-title i {
    color: #c50808; /* Brand Red Accent */
    font-size: 16px;
}

/* Grid Layout */
.j-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}
.j-form-col {
    padding: 0 10px;
    width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
}
@media (min-width: 768px) {
    .j-col-6 { width: 50%; }
    .j-col-4 { width: 33.333%; }
    .j-col-5 { width: 41.666%; }
    .j-col-3 { width: 25%; }
    .j-col-8 { width: 66.666%; }
}

/* Premium Inputs */
.j-field-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.j-input-wrapper {
    display: flex;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    border-radius: 12px;
    border: 2px solid #cbd5e1;
    overflow: hidden;
    transition: all 0.2s ease;
    background: #f8fafc;
    align-items: center;
    height: 48px;
}
.j-input-wrapper:focus-within {
    border-color: #c50808; /* Highlight Brand Red */
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(197, 8, 8, 0.1);
}
.j-input-icon {
    background: #f1f5f9;
    color: #64748b;
    padding: 0 18px;
    display: flex;
    align-items: center;
    font-size: 16px;
    border-right: 1px solid #cbd5e1;
    height: 100%;
    flex-shrink: 0;
}
.j-input-wrapper:focus-within .j-input-icon {
    border-color: #cbd5e1;
}
.j-input-field {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 0 16px !important;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    outline: none !important;
    box-shadow: none !important;
    height: 100% !important;
    margin: 0 !important;
}

.j-phone-input-field{
    padding-left: 84px !important;
}

.j-input-field::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Dropdown override */
select.j-input-field {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px !important;
}

/* Password strength feedback box override */
#passwdFeedback {
    margin-bottom: 16px;
    border-radius: 8px;
    padding: 12px;
    font-weight: 500;
}

/* Password Strength Meter */
.password-strength-meter {
    margin-top: 12px;
}
.password-strength-meter .progress {
    height: 6px;
    border-radius: 4px;
    background: #e2e8f0;
    box-shadow: none;
    margin-bottom: 8px;
}
.password-strength-meter .progress-bar {
    border-radius: 4px;
    box-shadow: none;
}

/* Generate Password Button */
.btn-generate-password {
    background-color: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.btn-generate-password:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Marketing Switch / Checklist */
.j-marketing-optin {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.j-marketing-text h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}
.j-marketing-text p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* Custom Checkboxes / Switches */
.j-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    user-select: none;
}
.j-checkbox-label input[type="checkbox"] {
    accent-color: #c50808;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Submit Actions styling */
.j-register-actions {
    text-align: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 32px;
    margin-top: 24px;
}
.btn-register-submit {
    background-color: #c50808; /* Brand Red */
    color: #ffffff;
    width: 100%;
    max-width: 340px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 25px -5px rgba(197, 8, 8, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.btn-register-submit:hover {
    background-color: #a30606;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(197, 8, 8, 0.4);
    color: #ffffff;
}

@media (max-width: 768px) {
    .j-register-card { padding: 32px 20px; }
    .j-register-header h1 { font-size: 26px; }
    .btn-register-submit { max-width: 100%; }
    .j-marketing-optin { flex-direction: column; align-items: flex-start; }
}
/* clientregister.tpl */



