/* ==========================================================================
   SmatBot Official Admin Portal - Unified Modern Design System
   Matches whatsapp.smatbot.com/wa/dashboard design language
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Core Tokens (Matching new SmatBot WhatsApp Platform) */
  --primary-blue: #1877F2;
  --primary-blue-hover: #166FE5;
  --primary-blue-light: #EBF5FF;
  --primary-blue-subtle: #F0F7FF;
  
  --wa-green: #16A34A;
  --wa-green-light: #DCFCE7;
  --wa-green-badge: #22C55E;
  
  --wa-orange: #EA580C;
  --wa-orange-light: #FFEDD5;
  --wa-orange-fill: #F97316;
  
  --wa-purple: #7C3AED;
  --wa-purple-light: #F3E8FF;
  --wa-purple-fill: #8B5CF6;
  
  --wa-rose: #BE123C;
  --wa-rose-light: #FFE4E6;
  
  --wa-cyan: #0E7490;
  --wa-cyan-light: #CFFAFE;

  /* Surfaces & Neutral Grays */
  --bg-main: #F8FAFC;
  --bg-surface: #FFFFFF;
  --text-dark: #1E293B;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border-color: #E2E8F0;
  --border-subtle: #F1F5F9;

  /* Layout Variables */
  --sidebar-width: 240px;
  --header-height: 60px;

  /* Shadows & Radii */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.03);
  --shadow-dropdown: 0 10px 25px -4px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --radius-full: 9999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Sleek Modern Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* ==========================================================================
   1. APP LAYOUT & SIDEBAR
   ========================================================================== */
.app-layout-wrapper {
  display: flex;
  min-height: 100vh;
}

/* SmatBot Left Navigation Sidebar */
.main-sidebar {
  width: var(--sidebar-width);
  background: #FFFFFF;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  transform: translateX(0);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-brand-box {
  height: var(--header-height);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-icon-box {
  width: 34px;
  height: 26px;
  border-radius: 6.5px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-title-group {
  display: flex;
  flex-direction: column;
}

.sidebar-brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1877F2;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.sidebar-brand-sub {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 500;
}

.btn-sidebar-close {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.15s;
}

.btn-sidebar-close:hover {
  background: #F1F5F9;
  color: var(--text-dark);
}

/* Sidebar Admin Profile Switcher */
.sidebar-profile-card {
  padding: 0.65rem 0.85rem;
  margin: 0.5rem 0.75rem 0.25rem 0.75rem;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s;
}

.sidebar-profile-card:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.profile-card-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.profile-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #E0F2FE;
  color: #0284C7;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.status-badge-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wa-green-badge);
  border: 1.5px solid #FFFFFF;
}

.profile-card-text {
  display: flex;
  flex-direction: column;
}

.profile-card-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
}

.profile-card-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Navigation Links */
.sidebar-nav-container {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  padding: 0 0.85rem;
  margin: 0.5rem 0 0.35rem 0;
}

.nav-link-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.nav-link-item:hover {
  background-color: #F1F5F9;
  color: var(--text-dark);
}

.nav-link-item.active {
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
  font-weight: 700;
}

.nav-link-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-link-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

/* Sidebar Footer */
.sidebar-footer-box {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Main Viewport */
.main-viewport {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-main);
}

/* Full Screen Collapsed Sidebar State */
.app-layout-wrapper.sidebar-collapsed .main-sidebar {
  transform: translateX(-100%);
}

.app-layout-wrapper.sidebar-collapsed .main-viewport {
  margin-left: 0 !important;
  width: 100% !important;
}

/* Top Navigation Bar */
.app-header {
  height: var(--header-height);
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-left-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger-btn {
  background: #F1F5F9;
  border: 1px solid var(--border-color);
  color: var(--text-body);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.hamburger-btn:hover {
  background: #E2E8F0;
  color: var(--primary-blue);
}

.header-right-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-sync-address {
  background: #FFFFFF;
  color: var(--primary-blue);
  border: 1.5px solid #93C5FD;
  border-radius: var(--radius-md);
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-sync-address:hover {
  background: var(--primary-blue-light);
  border-color: #3B82F6;
  transform: translateY(-1px);
}

.user-profile-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-md);
  transition: background 0.15s;
}

.user-profile-header:hover {
  background: #F1F5F9;
}

.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0284C7;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-header-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Page Body Container */
.page-body-container {
  padding: 2rem;
  flex: 1;
  max-width: 1440px;
  width: 100%;
}

.section-page-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   2. TOP OVERVIEW METRICS CARDS (Exact Match to New Dashboard Style)
   ========================================================================== */
.overview-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.15fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 1100px) {
  .overview-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.metric-summary-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 135px;
  transition: all 0.2s;
}

.metric-summary-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.metric-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.metric-card-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.metric-icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-icon-circle.purple {
  background: var(--wa-purple-light);
  color: var(--wa-purple);
}

.metric-icon-circle.orange {
  background: var(--wa-orange-light);
  color: var(--wa-orange);
}

.metric-icon-circle.blue {
  background: #DBEAFE;
  color: var(--primary-blue);
}

.metric-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.metric-btn-pill {
  background: var(--primary-blue);
  color: #FFFFFF;
  border: none;
  border-radius: 20px;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.metric-btn-pill:hover {
  background: var(--primary-blue-hover);
  transform: translateY(-1px);
}

.metric-card-big-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.65rem;
}

.metric-card-big-value .metric-sub-limit {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

.metric-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.metric-percent-text {
  font-weight: 700;
  font-size: 0.85rem;
}

.metric-percent-text.orange {
  color: var(--wa-orange);
}

.metric-percent-text.blue {
  color: var(--primary-blue);
}

.metric-progress-track {
  width: 100%;
  height: 6px;
  background: #F1F5F9;
  border-radius: 3px;
  overflow: hidden;
}

.metric-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.metric-progress-fill.orange {
  background: var(--wa-orange-fill);
}

.metric-progress-fill.blue {
  background: var(--primary-blue);
}

.metric-card-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.25rem;
}

/* ==========================================================================
   3. CLIENT DETAILS ADVANCED 15-FILTER CARD
   ========================================================================== */
.client-filter-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.client-filter-card-minimal {
  padding: 1.15rem 1.4rem;
}

.filter-minimal-row {
  display: flex;
  align-items: flex-end;
  gap: 0.85rem;
  width: 100%;
}

.filter-item-search {
  flex: 1.8;
  min-width: 180px;
}

.filter-item-status {
  flex: 1.2;
  min-width: 145px;
}

.filter-item-plan {
  flex: 1.2;
  min-width: 145px;
}

.filter-item-customer {
  flex: 1.2;
  min-width: 140px;
}

.filter-actions-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 38px;
  flex-shrink: 0;
}

.filter-row-1,
.filter-row-2,
.filter-row-3 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  align-items: flex-end;
}

.filter-span-4 {
  grid-column: span 4;
}

/* When sidebar is OPEN (3-lines clicked), provide clean grid layout so labels never collide */
.app-layout-wrapper:not(.sidebar-collapsed) .filter-minimal-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.8fr) minmax(140px, 1.15fr) minmax(140px, 1.15fr) minmax(130px, 1.1fr) auto;
  gap: 0.75rem;
  align-items: flex-end;
}

@media (max-width: 1340px) {
  .app-layout-wrapper:not(.sidebar-collapsed) .filter-minimal-row {
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 0.75rem;
  } 
  .app-layout-wrapper:not(.sidebar-collapsed) .filter-item-search {
    grid-column: span 4;
  }
}

@media (max-width: 1100px) {
  .filter-minimal-row,
  .app-layout-wrapper:not(.sidebar-collapsed) .filter-minimal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .filter-item-search {
    grid-column: span 2;
  }
  .filter-actions-group {
    grid-column: span 2;
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .filter-minimal-row,
  .app-layout-wrapper:not(.sidebar-collapsed) .filter-minimal-row {
    grid-template-columns: 1fr;
  }
  .filter-actions-group {
    grid-column: span 1;
  }
  .filter-row-1, .filter-row-2, .filter-row-3 {
    grid-template-columns: 1fr;
  }
  .filter-span-4 {
    grid-column: span 1;
  }
}

.filter-item-block {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.filter-item-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  height: 20px;
  min-height: 20px;
  max-height: 20px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: none;
  line-height: 1;
}

.info-tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  min-width: 13px;
  border: 1px solid #94A3B8;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
  color: #94A3B8;
  line-height: 1;
  cursor: help;
  flex-shrink: 0;
}

/* Dropdown Trigger Box */
.custom-dropdown-trigger {
  width: 100%;
  height: 38px;
  min-height: 38px;
  box-sizing: border-box;
  padding: 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.custom-dropdown-trigger span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: left;
}

.custom-dropdown-trigger:hover {
  border-color: #93C5FD;
}

.custom-dropdown-trigger.open {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.12);
}

.dropdown-arrow-icon {
  color: var(--text-muted);
  font-size: 0.65rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.custom-dropdown-trigger.open .dropdown-arrow-icon {
  transform: rotate(180deg);
}

.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 175px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dropdown);
  z-index: 100;
  display: none;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px;
}

.custom-dropdown-menu.show {
  display: block;
}

.dropdown-select-item {
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  color: var(--text-dark);
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.12s;
}

.dropdown-select-item:hover, .dropdown-select-item.selected {
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
  font-weight: 600;
}

.dropdown-checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  color: var(--text-dark);
  cursor: pointer;
  border-radius: 4px;
  user-select: none;
  transition: background-color 0.12s;
}

.dropdown-checkbox-item:hover {
  background-color: var(--primary-blue-light);
}

.custom-checkbox-box {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1.5px solid var(--primary-blue);
  background-color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}

.custom-checkbox-box.unchecked {
  background-color: #FFFFFF;
  border-color: #CBD5E1;
}

.custom-checkbox-box.unchecked svg {
  display: none;
}

/* Range Inputs */
.range-inputs-container {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: 38px;
}

.range-box-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  box-sizing: border-box;
  padding: 0 0.5rem;
  font-size: 0.8rem;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
  color: var(--text-dark);
  outline: none;
  transition: all 0.15s ease;
}

.range-box-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.12);
}

.range-separator {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Search Box & Button */
.search-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  height: 38px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  height: 38px;
}

.search-input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.85rem;
  pointer-events: none;
}

.filter-search-box {
  width: 100%;
  height: 38px;
  box-sizing: border-box;
  padding: 0 0.75rem 0 2.25rem;
  font-size: 0.82rem;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  color: var(--text-dark);
  outline: none;
  transition: all 0.15s ease;
}

.filter-search-box:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.12);
}

.btn-filter-search {
  height: 38px;
  padding: 0 1.35rem;
  background-color: var(--primary-blue);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.btn-filter-search:hover {
  background-color: var(--primary-blue-hover);
}

.btn-filter-reset {
  height: 38px;
  padding: 0 0.85rem;
  background-color: #F8FAFC;
  color: var(--text-muted);
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-filter-reset:hover {
  background-color: #F1F5F9;
  color: var(--text-dark);
  border-color: #94A3B8;
}

/* Count Badge Pill */
.client-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  padding: 0 0.75rem;
  background: var(--primary-blue);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 6px;
  margin-bottom: 0.85rem;
  box-shadow: 0 2px 6px rgba(24, 119, 242, 0.25);
}

/* ==========================================================================
   4. DATA TABLES (Client Details, Renewals, Partners)
   ========================================================================== */
.table-card-container {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow-x: auto;
  box-shadow: var(--shadow-subtle);
}

.table-card-container.table-card-with-top-scroll {
  overflow: hidden;
}

/* TOP HORIZONTAL SCROLLBAR */
.table-top-scrollbar-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  height: 12px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  box-sizing: border-box;
}

.table-top-scrollbar-wrapper::-webkit-scrollbar {
  height: 10px;
}

.table-top-scrollbar-wrapper::-webkit-scrollbar-track {
  background: #F1F5F9;
}

.table-top-scrollbar-wrapper::-webkit-scrollbar-thumb {
  background: #94A3B8;
  border-radius: 6px;
}

.table-top-scrollbar-wrapper::-webkit-scrollbar-thumb:hover {
  background: #64748B;
}

.table-top-scrollbar-track {
  height: 1px;
  min-width: 100%;
}

/* TABLE SCROLL CONTAINER (Direct table viewport) */
.table-scroll-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

.table-scroll-container::-webkit-scrollbar {
  height: 10px;
}

.table-scroll-container::-webkit-scrollbar-track {
  background: #F1F5F9;
}

.table-scroll-container::-webkit-scrollbar-thumb {
  background: #94A3B8;
  border-radius: 6px;
}

.table-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #64748B;
}

.client-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.client-data-table thead tr {
  background-color: #F8FAFC;
  border-bottom: 1px solid var(--border-color);
}

.client-data-table th {
  padding: 1rem 1.15rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
}

.client-data-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.15s ease;
}

.client-data-table tbody tr:hover {
  background-color: #F8FAFC;
}

.client-data-table td {
  padding: 1rem 1.15rem;
  color: var(--text-body);
  white-space: nowrap;
  vertical-align: middle;
}

.btn-copy-inline {
  background: none;
  border: none;
  color: #4A6CF7;
  cursor: pointer;
  padding: 2px 4px;
  margin-left: 5px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  transition: all 0.15s;
}

.btn-copy-inline:hover {
  background-color: var(--primary-blue-light);
  transform: scale(1.15);
}

.btn-copy-inline svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.btn-eye-action {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.btn-eye-action:hover {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  transform: scale(1.1);
}

.btn-eye-action svg {
  width: 17px;
  height: 17px;
}

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
}

.status-pill.active {
  background: var(--wa-green-light);
  color: var(--wa-green);
}

.status-pill.trial {
  background: var(--wa-orange-light);
  color: var(--wa-orange);
}

.status-pill.expired {
  background: var(--wa-rose-light);
  color: var(--wa-rose);
}

.status-pill.expiring {
  background: #FFF7ED;
  color: #C2410C;
}

/* White-Label & On-Premise Badges */
.badge-whitelabel {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F3E8FF;
  color: #7E22CE;
  border: 1px solid #E9D5FF;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge-onpremise {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Deployment Segment Tab Switcher */
.deployment-tab-switcher {
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  padding: 4px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  gap: 4px;
  margin-bottom: 1rem;
}

.dep-tab-btn {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748B;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.dep-tab-btn:hover {
  color: #1E293B;
}

.dep-tab-btn.active {
  background: #FFFFFF;
  color: #1877F2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Action Buttons */
.btn-table-action {
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-action-primary {
  background: var(--primary-blue);
  color: #FFFFFF;
}

.btn-action-primary:hover {
  background: var(--primary-blue-hover);
}

.btn-action-secondary {
  background: #F1F5F9;
  color: var(--text-dark);
  border-color: var(--border-color);
}

.btn-action-secondary:hover {
  background: #E2E8F0;
}

/* ==========================================================================
   5. CLIENT DETAILS DEEP-DIVE PROFILE VIEW (Exact Match to Screenshots)
   ========================================================================== */
.details-view-container {
  width: 100%;
}

.details-top-actions-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.btn-header-action {
  background: #FFFFFF;
  color: var(--primary-blue);
  border: 1.5px solid #93C5FD;
  border-radius: var(--radius-md);
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
  height: 34px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.btn-header-action:hover {
  background: var(--primary-blue-light);
  border-color: #3B82F6;
  transform: translateY(-1px);
}

.details-back-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn-back-arrow {
  background: none;
  border: none;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.btn-back-arrow:hover {
  background: #F1F5F9;
  color: var(--primary-blue);
}

.details-page-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
}

.details-accordion-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-subtle);
  margin-bottom: 1rem;
}

.details-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  user-select: none;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  transition: background-color 0.15s ease;
  position: relative;
}

.details-accordion-header:hover {
  background: #F8FAFC;
}

.details-accordion-card.open .details-accordion-header {
  border-bottom: 1px solid var(--border-subtle);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.accordion-arrow-indicator {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.details-accordion-body {
  padding: 1.5rem 1.75rem;
  display: none;
}

.details-accordion-card.open .details-accordion-body {
  display: block;
}

.details-subcard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .details-subcard-grid {
    grid-template-columns: 1fr;
  }
}

.details-subcard {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
}

.details-subcard-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.btn-edit-pencil {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  background: none;
  border: none;
  color: var(--primary-blue);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s;
}

.btn-edit-pencil:hover {
  background: var(--primary-blue-light);
  transform: scale(1.1);
}

.btn-edit-pencil svg {
  width: 15px;
  height: 15px;
}

.details-kv-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 235px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Custom Sleek Scrollbar matching old admin panel */
.details-kv-list::-webkit-scrollbar {
  width: 6px;
}

.details-kv-list::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 4px;
}

.details-kv-list::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.details-kv-list::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

.details-kv-row {
  display: grid;
  grid-template-columns: 230px 1fr;
  font-size: 0.88rem;
  align-items: center;
}

.details-kv-label {
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.details-kv-value {
  color: var(--text-body);
}

.btn-inline-pencil {
  background: none;
  border: none;
  color: var(--primary-blue);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  transition: all 0.15s ease;
}

.btn-inline-pencil:hover {
  background-color: var(--primary-blue-light);
  transform: scale(1.15);
}

.btn-inline-pencil svg {
  width: 14px;
  height: 14px;
}

/* Bots Category Grid & Cards */
.bot-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .bot-category-grid {
    grid-template-columns: 1fr;
  }
}

.bot-category-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  position: relative;
  user-select: none;
}

.bot-category-card:hover {
  border-color: #93C5FD;
  background-color: #F8FAFC;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.08);
  transform: translateY(-1px);
}

/* Dark Tooltip Overlay */
.has-smat-tooltip {
  position: relative;
}

.has-smat-tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -28px;
  right: 20px;
  background: #374151;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

/* ==========================================================================
   6. MODALS & TOASTS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}

.pastel-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2000;
  font-size: 0.88rem;
  font-weight: 600;
  border-left: 4px solid var(--primary-blue);
}

/* ==========================================================================
   7. ADMIN LOGIN SCREEN (Pixel-Perfect Match to admin.smatbot.com Reference)
   ========================================================================== */
.admin-login-page {
  min-height: 100vh;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  position: relative;
}

.login-top-navbar {
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
}

.login-brand-logo-full {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.smatbot-logo-icon-purple {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #4F46E5;
  background: linear-gradient(135deg, #6366F1 0%, #4338CA 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.smatbot-logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1E293B;
  letter-spacing: -0.02em;
}

.admin-login-center-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  margin-top: -3rem;
}

.admin-login-card {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 2.75rem 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #F1F5F9;
}

.login-card-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #1E293B;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.login-form-group {
  margin-bottom: 1.35rem;
}

.login-input-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748B;
  margin-bottom: 0.5rem;
}

.login-text-input {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  padding: 0 1rem;
  font-size: 0.9rem;
  border: 1px solid #DBEAFE;
  border-radius: 4px;
  background-color: #EDF4FE;
  color: #1E293B;
  outline: none;
  font-weight: 500;
  transition: all 0.15s ease;
}

.login-text-input:focus {
  border-color: #1877F2;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.15);
}

.btn-login-submit {
  width: 100%;
  height: 44px;
  background-color: #1877F2;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: background-color 0.15s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-login-submit:hover {
  background-color: #166FE5;
  transform: translateY(-1px);
}

.btn-login-submit:active {
  transform: translateY(0);
}

.demo-login-badges-box {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #F1F5F9;
}

.demo-login-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.65rem;
  text-align: center;
}

.demo-login-pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.55rem;
  background: #F8FAFC;
  color: #334155;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.45rem;
  text-align: center;
  transition: all 0.15s;
}

.demo-login-pill-btn:hover {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1877F2;
}

/* User Profile Dropdown */
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 2rem;
  min-width: 250px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dropdown);
  z-index: 1000;
  padding: 0.5rem;
  display: none;
  animation: dropdownFadeIn 0.15s ease-out;
}

.user-menu-dropdown.show {
  display: block;
}

.user-menu-header-info {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.35rem;
}

.user-menu-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.user-menu-email {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.user-menu-role {
  font-size: 0.72rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin-top: 3px;
  display: inline-block;
  background: var(--primary-blue-light);
  padding: 2px 8px;
  border-radius: 4px;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.user-menu-item:hover {
  background-color: #F1F5F9;
  color: var(--primary-blue);
}


.user-menu-item.danger {
  color: var(--wa-rose);
}

.user-menu-item.danger:hover {
  background-color: var(--wa-rose-light);
}

/* ==========================================================================
   8. BOT MIGRATION ENGINE (4-Step Wizard, Terminal & Rollback)
   ========================================================================== */
.wizard-steps-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.wizard-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
}

.wizard-step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F1F5F9;
  color: var(--text-muted);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.wizard-step-node.active .wizard-step-circle {
  background: var(--primary-blue);
  color: #FFFFFF;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.2);
}

.wizard-step-node.completed .wizard-step-circle {
  background: var(--wa-green);
  color: #FFFFFF;
  border-color: var(--wa-green);
}

.wizard-step-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.wizard-step-node.active .wizard-step-title {
  color: var(--primary-blue);
}

.wizard-step-line {
  flex: 1;
  height: 2px;
  background: #E2E8F0;
  margin: 0 0.5rem;
  margin-bottom: 1.25rem;
}

.wizard-step-line.active {
  background: var(--primary-blue);
}

.migration-mode-card {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #FFFFFF;
  margin-bottom: 0.75rem;
}

.migration-mode-card:hover {
  border-color: #93C5FD;
  background: #F8FAFC;
}

.migration-mode-card.selected {
  border-color: var(--primary-blue);
  background: #EFF6FF;
}

.migration-terminal-box {
  background: #0F172A;
  color: #38BDF8;
  font-family: 'JetBrains Mono', monospace, Consolas;
  font-size: 0.8rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  max-height: 220px;
  overflow-y: auto;
  line-height: 1.7;
  border: 1px solid #1E293B;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.terminal-line {
  display: flex;
  gap: 0.5rem;
}

.terminal-line .term-ok {
  color: #4ADE80;
  font-weight: 700;
}

.terminal-line .term-time {
  color: #64748B;
}

/* ==========================================================================
   9. USERS & ACCESS CONTROL (Team Management & Permissions Matrix)
   ========================================================================== */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.role-badge.super-admin {
  background: #F3E8FF;
  color: #7C3AED;
}

.role-badge.engineer {
  background: #EFF6FF;
  color: #1D4ED8;
}

.role-badge.support {
  background: #DCFCE7;
  color: #15803D;
}

.role-badge.billing {
  background: #FFEDD5;
  color: #C2410C;
}

.permissions-matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}

@media (max-width: 650px) {
  .permissions-matrix-grid {
    grid-template-columns: 1fr;
  }
}

.permission-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Switch Checkbox */
.switch-box {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch-box input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CBD5E1;
  transition: 0.2s;
  border-radius: 20px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

.switch-box input:checked + .switch-slider {
  background-color: var(--primary-blue);
}

.switch-box input:checked + .switch-slider:before {
  transform: translateX(16px);
}

/* ==========================================================================
   10. PLAN ACTIVATION & PRICING TIERS
   ========================================================================== */
.pricing-plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 1200px) {
  .pricing-plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .pricing-plans-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-tier-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-subtle);
  position: relative;
  transition: all 0.2s ease;
}

.pricing-tier-card:hover {
  border-color: #93C5FD;
  box-shadow: var(--shadow-dropdown);
  transform: translateY(-2px);
}

.pricing-tier-card.featured {
  border-color: var(--primary-blue);
  box-shadow: 0 4px 20px rgba(24, 119, 242, 0.15);
}

.pricing-popular-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary-blue);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tier-price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0.75rem 0 1.25rem 0;
}

.tier-price-amount .period {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-body);
}

.pricing-features-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-features-list li .check-icon {
  color: var(--wa-green);
  font-weight: 800;
}

.billing-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.billing-toggle-pill {
  background: #F1F5F9;
  border-radius: var(--radius-full);
  padding: 4px;
  display: inline-flex;
}

.billing-toggle-btn {
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.billing-toggle-btn.active {
  background: #FFFFFF;
  color: var(--primary-blue);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   11. WHATSAPP PLATFORM DASHBOARD & CLIENT SIMULATOR (Reference Match)
   ========================================================================== */
.impersonation-banner-sticky {
  background: #FEF3C7;
  border-bottom: 1.5px solid #FCD34D;
  color: #92400E;
  padding: 0.65rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.btn-exit-impersonation {
  background: #92400E;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-exit-impersonation:hover {
  background: #78350F;
}

/* WhatsApp Platform Layout */
.wa-dashboard-container {
  display: flex;
  min-height: calc(100vh - 42px);
  background-color: #F8FAFC;
}

.wa-slim-sidebar {
  width: 68px;
  background: #FFFFFF;
  border-right: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  z-index: 50;
  flex-shrink: 0;
}

.wa-sidebar-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.wa-icon-logo-btn {
  width: 40px;
  height: 40px;
  background: #1877F2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.wa-icon-logo-btn:hover {
  transform: scale(1.05);
}

.wa-avatar-pill-btn {
  width: 42px;
  height: 42px;
  background: #1877F2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  position: relative;
  cursor: pointer;
}

.wa-avatar-online-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: #22C55E;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
}

.wa-sidebar-nav-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wa-sidebar-nav-icon:hover {
  background: #F1F5F9;
  color: #1877F2;
}

.wa-sidebar-nav-icon.active {
  background: #EFF6FF;
  color: #1877F2;
}

.wa-sidebar-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.wa-user-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1877F2;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

/* WhatsApp Main Viewport */
.wa-dashboard-main {
  flex: 1;
  padding: 24px 32px 48px 32px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  overflow-y: auto;
}

/* 3 Metrics Cards */
.wa-top-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.wa-metric-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 125px;
}

.wa-metric-card.plan-card {
  background: linear-gradient(135deg, #FFFFFF 80%, #FAF5FF 100%);
}

.wa-metric-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.wa-metric-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-metric-icon-square {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.wa-metric-icon-square.purple {
  background: #F5F3FF;
  color: #7C3AED;
}

.wa-metric-icon-square.orange {
  background: #FFF7ED;
  color: #EA580C;
}

.wa-metric-icon-square.blue {
  background: #EFF6FF;
  color: #1877F2;
}

.wa-metric-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748B;
}

.wa-metric-main-value {
  font-size: 22px;
  font-weight: 800;
  color: #1E293B;
  margin-top: 2px;
}

.wa-metric-subtext {
  font-size: 12px;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.wa-btn-upgrade-pill {
  background: #1877F2;
  color: #FFFFFF;
  border: none;
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.wa-btn-upgrade-pill:hover {
  background: #166FE5;
}

.wa-progress-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #64748B;
  margin-top: 14px;
  margin-bottom: 6px;
}

.wa-progress-pct {
  font-weight: 700;
  font-size: 12.5px;
}

.wa-progress-pct.orange {
  color: #EA580C;
}

.wa-progress-pct.blue {
  color: #1877F2;
}

.wa-progress-bar-track {
  width: 100%;
  height: 5px;
  background: #F1F5F9;
  border-radius: 999px;
  overflow: hidden;
}

.wa-progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

.wa-progress-bar-fill.orange {
  background: #F97316;
}

.wa-progress-bar-fill.blue {
  background: #1877F2;
}

/* Filters & Search Row */
.wa-filter-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.wa-search-input-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  height: 40px;
  padding: 0 16px;
  font-size: 13.5px;
  color: #1E293B;
  width: 260px;
  outline: none;
  transition: border-color 0.15s;
}

.wa-search-input-box:focus {
  border-color: #1877F2;
}

.wa-select-dropdown {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  height: 40px;
  padding: 0 32px 0 14px;
  font-size: 13.5px;
  color: #334155;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' 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 12px center;
}

/* Section Header */
.wa-section-heading-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 11.5px;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.wa-section-count-badge {
  background: #E2E8F0;
  color: #475569;
  border-radius: 12px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
}

/* Card List */
.wa-bot-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wa-bot-row-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.wa-bot-row-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.wa-bot-left-col {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 280px;
}

.wa-bot-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #EFF6FF;
  border: 1.5px solid #BFDBFE;
  color: #1877F2;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.wa-bot-avatar-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
}

.wa-bot-avatar-dot.connected {
  background: #22C55E;
}

.wa-bot-avatar-dot.disconnected {
  background: #94A3B8;
}

.wa-bot-info-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wa-bot-name-text {
  font-size: 14px;
  font-weight: 700;
  color: #1E293B;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-bot-phone-subtext {
  font-size: 12px;
  color: #64748B;
}

.wa-bot-status-text {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wa-bot-status-text.connected {
  color: #16A34A;
}

.wa-bot-status-text.disconnected {
  color: #94A3B8;
}

.wa-bot-stats-col {
  display: flex;
  align-items: center;
  gap: 40px;
}

.wa-bot-stat-item {
  text-align: center;
}

.wa-bot-stat-num {
  font-size: 16px;
  font-weight: 800;
  color: #1E293B;
}

.wa-bot-stat-lbl {
  font-size: 11px;
  color: #64748B;
  margin-top: 1px;
}

.wa-bot-actions-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wa-bot-action-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #64748B;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.wa-bot-action-btn:hover {
  color: #1877F2;
  background: #F1F5F9;
}

.wa-bot-action-icon {
  font-size: 16px;
}

.simulator-chat-input-bar {
  padding: 0.85rem 1.25rem;
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.5rem;
}

/* ==========================================================================
   12. SPLIT SAAS LOGIN PAGE (Matches Reference Screenshot Pixel-for-Pixel)
   ========================================================================== */
.smatbot-split-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EDF3F8;
  padding: 2rem 1.5rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
}

.smat-split-login-card {
  width: 100%;
  max-width: 980px;
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 24px 60px -15px rgba(15, 23, 42, 0.16), 0 0 1px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 420px 1fr;
  overflow: hidden;
  min-height: 570px;
  position: relative;
}

/* LEFT: Dark Midnight Indigo Section with SmatBot Branding & Features */
.smat-split-dark-col {
  background: #0B0E23;
  position: relative;
  overflow: hidden;
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FFFFFF;
  box-sizing: border-box;
}

/* Ambient Top-Left Purple Glow */
.smat-dark-ambient-glow {
  position: absolute;
  top: -60px;
  left: -60px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.45) 0%, rgba(11, 14, 35, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.smat-dark-content-box {
  position: relative;
  z-index: 2;
}

/* SmatBot Logo branding */
.smat-dark-center-branding {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.6rem;
}

.smatbot-purple-robot-badge-large {
  background: #4C2277;
  padding: 6px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -2px rgba(88, 37, 158, 0.45);
  transition: transform 0.2s ease;
}

.smatbot-purple-robot-badge-large:hover {
  transform: scale(1.05);
}

.smat-dark-logo-title-large {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  display: inline-flex;
  align-items: center;
}

.smat-dark-logo-title-large .brand-smat {
  color: #FFFFFF;
}

.smat-dark-logo-title-large .brand-bot {
  color: #7A78DF;
}

/* Tagline */
.smat-dark-tagline {
  font-size: 1.2rem;
  font-weight: 600;
  color: #E2E8F0;
  line-height: 1.4;
  margin: 0 0 2.5rem;
  letter-spacing: -0.01em;
}

/* 3 Feature Highlights */
.smat-dark-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.smat-split-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.smat-feature-icon-bubble {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.smat-feature-info {
  display: flex;
  flex-direction: column;
}

.smat-feature-heading {
  font-size: 0.92rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.smat-feature-subheading {
  font-size: 0.78rem;
  font-weight: 400;
  color: #94A3B8;
}

/* Bottom flowing gradient waves */
.smat-dark-waves-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 210px;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.smat-dark-wave-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* RIGHT: White Login Form Area */
.smat-split-white-col {
  background: #FFFFFF;
  padding: 3rem 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
}

.smat-split-form-wrapper {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.smat-split-login-heading {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 6px;
  letter-spacing: -0.025em;
  text-align: left;
}

.smat-split-login-subheading {
  font-size: 0.88rem;
  color: #64748B;
  margin: 0 0 1.85rem;
  text-align: left;
  font-weight: 400;
}

/* Form Groups & Inputs */
.smat-clean-form-group {
  margin-bottom: 1.25rem;
}

.smat-clean-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 7px;
}

.smat-clean-input-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.smat-input-prefix-icon {
  position: absolute;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: #94A3B8;
  z-index: 2;
}

.smat-clean-input {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  padding: 0 16px 0 44px;
  font-size: 0.94rem;
  font-weight: 500;
  color: #0F172A;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.smat-clean-input:focus {
  background-color: #FFFFFF;
  border-color: #1877F2;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.14);
}

.smat-clean-input.smat-input-with-toggle {
  padding-right: 44px;
}

.smat-clean-input.has-error {
  border-color: #EF4444 !important;
  background-color: #FEF2F2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.smat-login-error-alert {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #B91C1C;
  border-radius: 9px;
  padding: 0.75rem 1rem;
  font-size: 0.86rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  line-height: 1.35;
  animation: smatErrorSlideDown 0.25s ease-out;
}

@keyframes smatErrorSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.smat-clean-eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  z-index: 2;
  transition: color 0.15s ease;
}

.smat-clean-eye-btn:hover {
  color: #0F172A;
}

/* Options Row: Remember me + Forgot Password */
.smat-login-options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.85rem;
  margin-bottom: 1.6rem;
  font-size: 0.85rem;
}

.smat-remember-me-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  font-size: 0.85rem;
}

.smat-remember-me-toggle input[type="checkbox"] {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  accent-color: #1877F2;
  cursor: pointer;
  margin: 0;
}

.smat-forgot-pass-anchor {
  color: #1877F2;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
}

.smat-forgot-pass-anchor:hover {
  text-decoration: underline;
}

/* Blue Login button */
.btn-smat-clean-login,
.smat-primary-login-btn {
  width: 100%;
  height: 48px;
  background-color: #1877F2;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.32);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
}

.btn-smat-clean-login:hover,
.smat-primary-login-btn:hover {
  background-color: #166FE5;
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.42);
  transform: translateY(-1px);
}

.btn-smat-clean-login:active,
.smat-primary-login-btn:active {
  transform: translateY(0);
}

/* Secure Login Footer Divider */
.smat-secure-badge-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 2.25rem;
}

.smat-secure-line {
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}

.smat-secure-badge-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748B;
  font-size: 0.78rem;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 880px) {
  .smat-split-login-card {
    grid-template-columns: 1fr;
    max-width: 480px;
    border-radius: 18px;
  }
  .smat-split-dark-col {
    padding: 2.5rem 2rem;
    min-height: 300px;
  }
  .smat-top-welcome-meta {
    position: static;
    margin-bottom: 1.5rem;
    align-items: flex-start;
  }
  .smat-split-white-col {
    padding: 2.5rem 2rem;
  }
}

/* ==========================================================================
   13. SAVED / PREVIOUS LOGINS AUTOFILL POPUP (Chrome Dark Theme Style)
   Pixel-Perfect Match with Previous Logins Screenshot
   ========================================================================== */
.smat-form-group.relative-anchor {
  position: relative;
}

.saved-logins-dark-popup {
  position: absolute;
  background-color: #202124;
  color: #E8EAED;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 1px rgba(0, 0, 0, 0.35);
  width: 320px;
  z-index: 1000;
  overflow: visible;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: none;
  animation: fadeInAutofill 0.14s ease-out;
}

.saved-logins-dark-popup.show {
  display: block;
}

/* Position 1: Email Focus (Anchored to the right of email input) */
.saved-logins-dark-popup.pos-email {
  left: calc(100% + 10px);
  top: 18px;
}

.saved-logins-dark-popup.pos-email::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 18px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid #202124;
}

/* Position 2: Password Focus (Anchored above password input) */
.saved-logins-dark-popup.pos-password {
  left: 20px;
  bottom: calc(100% + 8px);
}

.saved-logins-dark-popup.pos-password::after {
  content: '';
  position: absolute;
  left: 32px;
  bottom: -6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #1F2023;
}

.saved-logins-list-container {
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
}

.saved-login-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background-color 0.12s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.saved-login-item-row:hover {
  background-color: #35363A;
}

.saved-login-icon-box {
  width: 20px;
  height: 20px;
  background: #1A73E8;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 11px;
  flex-shrink: 0;
}

.saved-login-text-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.saved-login-email-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  overflow: hidden;
}

.saved-login-email-txt {
  font-size: 13.5px;
  font-weight: 500;
  color: #E8EAED;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-login-domain-txt {
  font-size: 11.5px;
  color: #9AA0A6;
  white-space: nowrap;
  font-weight: 400;
}

.saved-login-pass-bullets {
  font-size: 12px;
  color: #9AA0A6;
  letter-spacing: 1px;
  line-height: 1;
  margin-top: 2px;
}

.btn-remove-saved-login {
  background: transparent;
  border: none;
  color: #80868B;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.saved-login-item-row:hover .btn-remove-saved-login {
  opacity: 1;
}

.btn-remove-saved-login:hover {
  color: #F87171;
  background: rgba(255, 255, 255, 0.1);
}

.saved-logins-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background-color: #1F2023;
  border-top: 1px solid #3C4043;
  border-radius: 0 0 8px 8px;
  font-size: 12.5px;
  color: #9AA0A6;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.saved-logins-footer-bar:hover {
  background-color: #2D2E31;
  color: #E8EAED;
}

.saved-logins-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.saved-logins-footer-key-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #8AB4F8;
}

@keyframes fadeInAutofill {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive adjustment if screen width is tight */
@media (max-width: 900px) {
  .saved-logins-dark-popup.pos-email {
    left: 0;
    top: calc(100% + 6px);
  }
  .saved-logins-dark-popup.pos-email::before {
    display: none;
  }
}

/* ==========================================================================
   14. CLIENT TABLE PAGINATION & BLUE BADGE (Screenshot Accurate)
   ========================================================================== */
.client-count-blue-badge {
  background: #4B6BFB;
  color: #FFFFFF;
  border-radius: 6px;
  padding: 4px 16px;
  font-size: 14px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(75, 107, 251, 0.25);
}

.client-table-pagination-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  border-radius: 0 0 16px 16px;
  width: 100%;
  box-sizing: border-box;
}

.pagination-left-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pagination-per-page-label {
  font-size: 0.82rem;
  color: #64748B;
  font-weight: 500;
  user-select: none;
}

.pagination-center-info {
  font-size: 0.86rem;
  color: #64748B;
  font-weight: 500;
  text-align: center;
  user-select: none;
}

.pagination-center-info strong {
  color: #0F172A;
  font-weight: 700;
}

.page-size-select {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 6px 28px 6px 12px;
  font-size: 13px;
  color: #334155;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' 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 8px center;
}

.page-size-select:focus {
  border-color: #1877F2;
}

.pagination-numbers-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-pagination-nav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-pagination-nav:hover:not(:disabled) {
  background: #F1F5F9;
  color: #1877F2;
  border-color: #CBD5E1;
}

.btn-pagination-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-pagination-nav.active {
  background: #1877F2;
  color: #FFFFFF;
  border-color: #1877F2;
  box-shadow: 0 2px 6px rgba(24, 119, 242, 0.3);
}

.pagination-ellipsis {
  padding: 0 4px;
  color: #94A3B8;
  font-size: 13px;
  font-weight: 700;
}

/* ==========================================================================
   CLIENT PORTAL & LOGIN CONFIRMATION MODAL STYLES (MATCHING SCREENSHOTS)
   ========================================================================== */

/* 1. Confirmation Modal Popup ("Are you sure you want to Login ?") */
@keyframes smatModalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.confirm-login-modal-box {
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  width: 90%;
  max-width: 440px;
  padding: 36px 28px 28px 28px;
  position: relative;
  text-align: center;
  animation: smatModalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-confirm-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 16px;
  color: #64748B;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 4px;
}

.btn-confirm-modal-close:hover {
  color: #0F172A;
  background: #F1F5F9;
}

.confirm-login-title {
  font-size: 1.12rem;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 24px;
}

.confirm-login-btn-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.btn-confirm-no, .btn-confirm-yes {
  min-width: 86px;
  height: 38px;
  background: #1877F2;
  color: #FFFFFF;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-confirm-no:hover, .btn-confirm-yes:hover {
  background: #1464cc;
}

.btn-confirm-no:active, .btn-confirm-yes:active {
  transform: scale(0.97);
}

/* 2. Client Portal Simulator (app.smatbot.com/dashboard?is_whitelabelled=true) */
.client-portal-root {
  min-height: 100vh;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
}

.portal-sim-browser-bar {
  height: 42px;
  background: #0F172A;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 12.5px;
  border-bottom: 1px solid #1E293B;
  z-index: 100;
}

.portal-sim-url-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1E293B;
  padding: 4px 14px;
  border-radius: 20px;
  font-family: monospace;
  color: #93C5FD;
}

.portal-sim-lock-icon {
  font-size: 11px;
}

.btn-portal-exit-admin {
  background: #2563EB;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-portal-exit-admin:hover {
  background: #1D4ED8;
}

.client-portal-layout {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 42px);
  background: #F8FAFC;
}

.client-portal-sidebar {
  width: 54px;
  background: #FFFFFF;
  border-right: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 16px;
  gap: 14px;
  flex-shrink: 0;
}

.client-sidebar-item {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.client-sidebar-item:hover {
  background: #F1F5F9;
  color: #1877F2;
}

.client-sidebar-item.active {
  color: #1877F2;
  background: #EFF6FF;
}

.client-sidebar-item.active::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: #1877F2;
  border-radius: 0 4px 4px 0;
}

.client-portal-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.client-portal-header {
  height: 56px;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.client-portal-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-portal-create-bot {
  border: 1px dashed #1877F2;
  background: #FFFFFF;
  color: #1877F2;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-portal-create-bot:hover {
  background: #EFF6FF;
  border-style: solid;
}

.client-portal-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.15s;
}

.client-portal-user-pill:hover {
  background: #F8FAFC;
}

.client-portal-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #5B51D8;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-portal-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.client-portal-user-name {
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
}

.client-portal-user-email {
  font-size: 11px;
  color: #64748B;
}

.client-portal-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EAB308;
  display: inline-block;
  margin-left: 2px;
}

.client-portal-caret {
  font-size: 11px;
  color: #64748B;
  margin-left: 2px;
}

.client-portal-body {
  padding: 24px 32px;
  flex: 1;
  position: relative;
}

.client-portal-filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.client-filter-dropdown-pill {
  width: 130px;
  height: 36px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 13px;
  color: #334155;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.client-filter-arrow {
  font-size: 11px;
  color: #64748B;
}

.client-search-input-wrapper {
  position: relative;
  width: 320px;
}

.client-portal-search-input {
  width: 100%;
  height: 36px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 0 36px 0 14px;
  font-size: 13px;
  color: #1E293B;
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: border-color 0.15s;
}

.client-portal-search-input:focus {
  border-color: #1877F2;
}

.client-search-icon {
  position: absolute;
  right: 12px;
  top: 9px;
  font-size: 13px;
  color: #64748B;
  pointer-events: none;
}

/* Bot Card Layout */
.client-bots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 340px));
  gap: 20px;
}

.client-bot-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 18px 16px 14px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.client-bot-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.client-bot-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
}

.client-bot-card-logo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 110px;
  gap: 8px;
}

.client-bot-circle-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1877F2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.25);
}

.client-bot-title-text {
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
  text-align: center;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-bot-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  gap: 8px;
}

.client-bot-tool-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  background: #FFFFFF;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.client-bot-tool-btn:hover {
  border-color: #1877F2;
  color: #1877F2;
  background: #EFF6FF;
}

.client-bot-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
}

.client-toggle-switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
}

.client-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.client-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CBD5E1;
  transition: .2s;
  border-radius: 18px;
}

.client-toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}

.client-toggle-switch input:checked + .client-toggle-slider {
  background-color: #34D399;
}

.client-toggle-switch input:checked + .client-toggle-slider:before {
  transform: translateX(16px);
}

.client-bot-more-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  color: #94A3B8;
  cursor: pointer;
  letter-spacing: 2px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s;
}

.client-bot-more-btn:hover {
  color: #1E293B;
  background: #F1F5F9;
}

.client-floating-widget-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 99;
  cursor: pointer;
}

.client-hey-text {
  background: #0F172A;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}

.client-launcher-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1877F2;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35);
  transition: transform 0.15s;
}

.client-launcher-circle:hover {
  transform: scale(1.05);
}

.client-launcher-online-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22C55E;
  border: 2px solid #FFFFFF;
}

/* ==========================================================================
   DEPLOYMENT SEGMENTS & BADGES (White-Label & On-Premise)
   ========================================================================== */
.deployment-tab-switcher {
  display: inline-flex;
  background: #F1F5F9;
  padding: 4px;
  border-radius: var(--radius-md);
  gap: 4px;
  border: 1px solid #E2E8F0;
}

.dep-tab-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.dep-tab-btn:hover {
  color: #1E293B;
  background: rgba(255, 255, 255, 0.6);
}

.dep-tab-btn.active {
  background: #FFFFFF;
  color: var(--primary-blue);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.badge-whitelabel {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: #F5F3FF;
  color: #7C3AED;
  border: 1px solid #DDD6FE;
}

.badge-onpremise {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.badge-cluster-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.details-deployment-card {
  border-left: 4px solid var(--primary-blue);
}

.details-deployment-card.whitelabel {
  border-left-color: #7C3AED;
}

.details-deployment-card.onpremise {
  border-left-color: #1D4ED8;
}


.metric-monthly-growth-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ECFDF5;
  color: #059669;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid #A7F3D0;
  margin-left: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.metric-monthly-growth-pill.clickable {
  cursor: pointer;
}

.metric-monthly-growth-pill.clickable:hover {
  background: #D1FAE5;
  color: #047857;
  border-color: #6EE7B7;
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.active-filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #ECFDF5 0%, #F0FDF4 100%);
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  animation: slideDownFade 0.25s ease-out;
}

.active-filter-banner-text {
  font-size: 0.88rem;
  color: #065F46;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-banner-action {
  background: #10B981;
  color: #FFFFFF;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-banner-action:hover {
  background: #059669;
}

.btn-banner-clear {
  background: transparent;
  color: #047857;
  border: 1px solid #6EE7B7;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-banner-clear:hover {
  background: #DCFCE7;
  color: #065F46;
}


.cust-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

.cust-type-pill.whitelabel {
  background: #F5F3FF;
  color: #7C3AED;
  border: 1px solid #DDD6FE;
}

.cust-type-pill.onpremise {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.cust-type-pill.direct {
  background: #F8FAFC;
  color: #475569;
  border: 1px solid #E2E8F0;
}

.cust-type-pill.reseller {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

/* ==========================================================================
   Subscription & Billing Management - Modern Component Styles
   ========================================================================== */

/* Downgrade Impact Assessment Modal */
.impact-modal-box {
  background: #FFFFFF;
  border-radius: 14px;
  width: 95%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  border: 1px solid #E2E8F0;
  border-top: 5px solid #EA580C;
  padding: 1.5rem;
  animation: modalSlideIn 0.2s ease-out;
}

.impact-alert-banner {
  background: #FFF7ED;
  border: 1px solid #FDBA74;
  border-left: 4px solid #EA580C;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #9A3412;
  font-size: 0.88rem;
  line-height: 1.5;
}

.impact-comparison-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
}

.impact-plan-pill {
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.impact-plan-pill.current {
  background: #EBF5FF;
  color: #1877F2;
  border: 1px solid #BFDBFE;
}

.impact-plan-pill.target {
  background: #FFF1F2;
  color: #E11D48;
  border: 1px solid #FECDD3;
}

.impact-section-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1E293B;
  margin: 1.2rem 0 0.6rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.impact-item-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.impact-item-box.danger {
  border-left: 3px solid #EF4444;
  background: #FEF2F2;
}

.impact-item-box.warning {
  border-left: 3px solid #F59E0B;
  background: #FFFBEB;
}

.impact-item-box.safe {
  border-left: 3px solid #10B981;
  background: #F0FDF4;
}

.impact-badge-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.impact-badge-tag.blocked {
  background: #FEE2E2;
  color: #991B1B;
}

.impact-badge-tag.exceeded {
  background: #FEF3C7;
  color: #92400E;
}

.impact-badge-tag.safe {
  background: #D1FAE5;
  color: #065F46;
}

.impact-action-list {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.84rem;
  color: #334155;
}

.impact-action-list li {
  margin-bottom: 0.4rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.impact-ack-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem;
  background: #F1F5F9;
  border-radius: 8px;
  margin: 1.25rem 0;
  font-size: 0.85rem;
  color: #1E293B;
  font-weight: 600;
  cursor: pointer;
}

/* Auto-Pay & Cancellation Option Cards */
.billing-choice-card {
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.billing-choice-card:hover {
  border-color: #93C5FD;
  background: #F8FAFC;
}

.billing-choice-card.selected {
  border-color: #1877F2;
  background: #EFF6FF;
}

.billing-choice-radio {
  margin-top: 3px;
  accent-color: #1877F2;
}

.billing-choice-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 0.25rem;
}

.billing-choice-desc {
  font-size: 0.82rem;
  color: #64748B;
  line-height: 1.45;
}

/* Add-on Booster Tag & Expiry Pill */
.addon-expiry-pill {
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  font-weight: 600;
}

.addon-expiry-pill.capped {
  background: #FFF7ED;
  color: #C2410C;
  border-color: #FED7AA;
}

.custom-duration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.duration-pill-btn {
  padding: 0.5rem;
  text-align: center;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.duration-pill-btn:hover {
  border-color: #1877F2;
  color: #1877F2;
}

.duration-pill-btn.active {
  background: #1877F2;
  border-color: #1877F2;
  color: #FFFFFF;
}

.autopay-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.autopay-status-badge.enabled {
  background: #DCFCE7;
  color: #15803D;
}

.autopay-status-badge.disabled {
  background: #F1F5F9;
  color: #64748B;
}

/* ==========================================================================
   Next-Gen Modern UI - KPI Cards, Smart Segment Tabs, Avatars & Side Drawer
   ========================================================================== */

/* 1. Interactive KPI Cards */
.metric-summary-card.clickable {
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-summary-card.clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08);
  border-color: #93C5FD;
}

.metric-summary-card.active-filter {
  border-color: #1877F2 !important;
  background: #F0F7FF !important;
  box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.25) !important;
}

.metric-summary-card.active-filter::after {
  display: none !important;
}

/* 2. Smart Quick Segment Pills Bar */
.quick-segment-tabs-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.quick-segment-tabs-list {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 3px;
  background: #F1F5F9;
  border-radius: 10px;
}

.segment-tab-pill {
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.segment-tab-pill:hover {
  color: #1E293B;
  background: rgba(255, 255, 255, 0.6);
}

.segment-tab-pill.active {
  background: #FFFFFF;
  color: #1877F2;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.segment-tab-counter {
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 10px;
  background: #E2E8F0;
  color: #475569;
}

.segment-tab-pill.active .segment-tab-counter {
  background: #DBEAFE;
  color: #1D4ED8;
}

/* 3. Table Rows & Avatars */
.client-name-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.client-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
  text-transform: uppercase;
}

.client-avatar-circle.purple { background: #EDE9FE; color: #7C3AED; }
.client-avatar-circle.blue   { background: #DBEAFE; color: #1D4ED8; }
.client-avatar-circle.green  { background: #DCFCE7; color: #15803D; }
.client-avatar-circle.orange { background: #FFEDD5; color: #C2410C; }
.client-avatar-circle.pink   { background: #FCE7F3; color: #BE185D; }

.client-name-meta {
  display: flex;
  flex-direction: column;
}

.client-primary-name {
  font-weight: 700;
  color: #1E293B;
  font-size: 0.88rem;
  cursor: pointer;
  transition: color 0.15s;
}

.client-primary-name:hover {
  color: #1877F2;
  text-decoration: underline;
}

.client-sub-domain {
  font-size: 0.73rem;
  color: #64748B;
}

/* Table Hover Action Bar */
.client-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.client-mini-action-btn {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.client-mini-action-btn:hover {
  border-color: #1877F2;
  color: #1877F2;
  background: #F0F7FF;
}

.client-mini-action-btn.login-btn:hover {
  border-color: #16A34A;
  color: #16A34A;
  background: #F0FDF4;
}

/* 4. Slide-Over Inspector Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.client-slide-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 90%;
  max-width: 440px;
  height: 100vh;
  background: #FFFFFF;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 1201;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.client-slide-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
}

.drawer-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.drawer-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #E2E8F0;
  background: #F8FAFC;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* 5. Compact Status Badges for Drawer */
.status-badge-compact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}
.status-badge-compact.active {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}
.status-badge-compact.trial {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}
.status-badge-compact.expired {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

/* ==========================================================================
   Executive Command Center & Next-Gen Operations Hub
   ========================================================================== */

.command-center-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.command-center-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: #FFFFFF;
  padding: 1.25rem 1.75rem;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cc-header-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cc-live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803D;
  background: #DCFCE7;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #BBF7D0;
}

.cc-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* Quick Action Launcher Bar */
.quick-action-launcher-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: #FFFFFF;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.launcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.launcher-btn.primary {
  background: linear-gradient(135deg, #1877F2 0%, #0D5AC4 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(24, 119, 242, 0.3);
}

.launcher-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.launcher-btn.secondary {
  background: #F8FAFC;
  color: #334155;
  border-color: #E2E8F0;
}

.launcher-btn.secondary:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0F172A;
}

.launcher-btn.accent {
  background: #F0FDF4;
  color: #15803D;
  border-color: #BBF7D0;
}

.launcher-btn.accent:hover {
  background: #DCFCE7;
  border-color: #86EFAC;
}

.launcher-btn.purple {
  background: #FAF5FF;
  color: #7E22CE;
  border-color: #E9D5FF;
}

.launcher-btn.purple:hover {
  background: #F3E8FF;
  border-color: #D8B4FE;
}

/* 6 Metrics Grid */
.metrics-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.hub-metric-card {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.hub-metric-card:hover {
  transform: translateY(-2px);
  border-color: #93C5FD;
  box-shadow: 0 8px 16px -4px rgba(15, 23, 42, 0.06);
}

.hub-metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.hub-metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.hub-metric-icon.blue   { background: #EFF6FF; color: #1D4ED8; }
.hub-metric-icon.green  { background: #F0FDF4; color: #15803D; }
.hub-metric-icon.orange { background: #FFF7ED; color: #C2410C; }
.hub-metric-icon.red    { background: #FEF2F2; color: #B91C1C; }
.hub-metric-icon.purple { background: #FAF5FF; color: #7E22CE; }
.hub-metric-icon.teal   { background: #F0FDFA; color: #0F766E; }

.hub-metric-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.hub-metric-badge.green  { background: #DCFCE7; color: #15803D; }
.hub-metric-badge.blue   { background: #DBEAFE; color: #1D4ED8; }
.hub-metric-badge.orange { background: #FFEDD5; color: #C2410C; }
.hub-metric-badge.red    { background: #FEE2E2; color: #B91C1C; }

.hub-metric-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
}

.hub-metric-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748B;
  margin-top: 4px;
}

/* Subscription Cycles Grid */
.cycles-section-container {
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  padding: 1.5rem;
}

.cycles-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.cycle-stat-card {
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 1.25rem;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cycle-stat-card.featured {
  background: #F0F9FF;
  border-color: #BAE6FD;
}

.cycle-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.cycle-stat-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1E293B;
}

.cycle-stat-count {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0F172A;
}

/* Plans Portfolio Grid */
.plans-portfolio-container {
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  padding: 1.5rem;
}

.portfolio-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.plan-item-card {
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 1.25rem;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.plan-item-card:hover {
  transform: translateY(-2px);
  border-color: #93C5FD;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
}

.plan-item-card.popular {
  border-color: #1877F2;
  box-shadow: 0 0 0 1px #1877F2;
}

.plan-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.plan-item-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
}

.plan-item-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 0.75rem;
}

.plan-item-price span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748B;
}

.plan-item-meta {
  font-size: 0.78rem;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 1rem;
}

.plan-item-subscribers {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1877F2;
  background: #EFF6FF;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 1rem;
}

/* ==========================================================================
   OFFICIAL SMATBOT PRICING & PLAN MATRIX STYLES (smatbot-new-pricing)
   ========================================================================== */
.pricing-billing-switch-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.pricing-billing-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(15,23,42,.08);
}

.pricing-billing-switch button {
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: #64748b;
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pricing-billing-switch button.active {
  background: #2563eb;
  color: #ffffff;
}

.pricing-billing-switch .hint {
  font-size: .7rem;
  font-weight: 700;
  color: #16a34a;
  margin-left: 6px;
}

.pricing-billing-switch button.active .hint {
  color: #bbf7d0;
}

/* 4 Plan Summary Cards */
.official-plan-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

@media (max-width: 1024px) {
  .official-plan-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .official-plan-cards { grid-template-columns: 1fr; }
}

.official-plan-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.official-plan-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.official-plan-card.highlight {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  position: relative;
}

.official-plan-badge-popular {
  position: absolute;
  top: -11px;
  right: 18px;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

.official-plan-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.official-plan-price {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #0f172a;
}

.official-plan-price sub {
  font-size: .9rem;
  font-weight: 600;
}

.official-plan-price .per {
  font-size: .78rem;
  color: #64748b;
  font-weight: 500;
}

.official-plan-sub {
  font-size: .78rem;
  color: #64748b;
  margin: 4px 0 8px;
  min-height: 20px;
}

.official-plan-save {
  margin-bottom: 8px;
  min-height: 24px;
}

.official-plan-gst {
  font-size: .72rem;
  color: #64748b;
  margin-bottom: 12px;
}

.official-plan-desc {
  font-size: .82rem;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 18px;
}

.save-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 2px 7px;
}

.nudge-text {
  font-size: .74rem;
  font-weight: 600;
  color: #16a34a;
}

/* Feature Comparison Table */
.pricing-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 36px 0 16px;
}

.pricing-section-header h2 {
  font-size: 1.1rem;
  font-weight: 800;
  white-space: nowrap;
  color: #0f172a;
}

.pricing-section-header .line {
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.pricing-table-wrap {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  overflow-x: auto;
  margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.pricing-matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.pricing-matrix-table thead tr {
  background: #f8fafc;
  border-bottom: 1.5px solid #e2e8f0;
}

.pricing-matrix-table thead th {
  padding: 12px 18px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #64748b;
  text-align: center;
}

.pricing-matrix-table thead th:first-child {
  text-align: left;
  width: 28%;
}

.pricing-matrix-table .group-row td {
  background: #f8fafc;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #475569;
  padding: 10px 18px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.pricing-matrix-table tbody tr:not(.group-row) {
  border-bottom: 1px solid #e2e8f0;
}

.pricing-matrix-table tbody tr:not(.group-row):hover {
  background: #fbfcfe;
}

.pricing-matrix-table td {
  padding: 11px 18px;
  font-size: .84rem;
  text-align: center;
  vertical-align: middle;
}

.pricing-matrix-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: #1e293b;
}

.pricing-matrix-table .tick {
  color: #16a34a;
  font-weight: 800;
  font-size: 1.1rem;
}

.pricing-matrix-table .cross {
  color: #cbd5e1;
  font-weight: 300;
  font-size: 1.1rem;
}

.pricing-matrix-table .val {
  font-weight: 700;
  color: #0f172a;
}

.pricing-matrix-table .note-inline {
  font-size: .74rem;
  color: #64748b;
  font-weight: 400;
}

.pricing-badge-addon {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 2px 7px;
}

/* Notices */
.pricing-notice-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .83rem;
  color: #92400e;
  margin-bottom: 14px;
  line-height: 1.5;
}

.pricing-notice-box b {
  font-weight: 700;
}

.pricing-notice-box.blue {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

/* ==========================================================================
   11. ZOHO BILLING STYLE SUBSCRIPTIONS MODULE
   ========================================================================== */
.zoho-sub-container {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  overflow: hidden;
}

.zoho-sub-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #E2E8F0;
  background: #F8FAFC;
  flex-wrap: wrap;
  gap: 1rem;
}

.zoho-sub-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.zoho-refresh-btn {
  background: none;
  border: none;
  font-size: 1.15rem;
  color: #64748B;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.zoho-refresh-btn:hover {
  background: #E2E8F0;
  color: #1E293B;
}

.zoho-search-input-box {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.85rem;
  color: #64748B;
  width: 260px;
}
.zoho-search-input-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.82rem;
  color: #1E293B;
  margin-left: 6px;
}

.zoho-sub-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.zoho-org-badge {
  font-size: 0.82rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.zoho-icon-btn {
  background: none;
  border: none;
  color: #64748B;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zoho-icon-btn:hover {
  background: #E2E8F0;
  color: #1E293B;
}
.zoho-icon-btn.plus-green {
  background: #16A34A;
  color: #FFFFFF;
  border-radius: 4px;
  padding: 4px 8px;
  font-weight: 700;
}

.zoho-unpaid-card {
  background: #1E293B;
  color: #FFFFFF;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.zoho-unpaid-warning {
  color: #FBBF24;
  font-weight: 600;
}

.zoho-sub-body {
  padding: 2rem 2.5rem;
}

.zoho-form-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1.5rem;
}

.zoho-form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #DC2626;
  padding-top: 6px;
}
.zoho-form-label.neutral {
  color: #475569;
}

.zoho-form-field {
  display: flex;
  flex-direction: column;
}

.zoho-select-combo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.zoho-select-dropdown {
  flex: 1;
  max-width: 440px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
  color: #1E293B;
  outline: none;
}
.zoho-select-dropdown:focus {
  border-color: #16A34A;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.15);
}

.zoho-btn-search {
  background: #16A34A;
  border: 1px solid #16A34A;
  color: #FFFFFF;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoho-currency-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #166534;
  cursor: pointer;
}

.zoho-addresses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 600px;
  margin-top: 0.75rem;
}

.zoho-address-box {
  font-size: 0.84rem;
  color: #334155;
  line-height: 1.5;
}

.zoho-address-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.4rem;
}

.zoho-email-to-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.zoho-btn-new-contact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #2563EB;
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.zoho-checkbox-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #1E293B;
  font-weight: 500;
  cursor: pointer;
}

.zoho-radio-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.zoho-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: #1E293B;
  cursor: pointer;
}

.zoho-actions-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #E2E8F0;
  margin-top: 2rem;
}

.zoho-btn-continue {
  background: #16A34A;
  border: 1px solid #16A34A;
  color: #FFFFFF;
  padding: 0.6rem 1.75rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.zoho-btn-continue:hover {
  background: #15803D;
  border-color: #15803D;
}

.zoho-btn-cancel {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #475569;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.zoho-btn-cancel:hover {
  background: #F1F5F9;
  color: #1E293B;
}

/* Minimalist, No-Color, Simple Zoho Form Fields */
.zoho-form-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748B;
  margin: 1.5rem 0 1rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #F1F5F9;
  letter-spacing: 0.2px;
}

.zoho-input-text {
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  color: #1E293B;
  outline: none;
  width: 100%;
  max-width: 320px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.zoho-input-text:focus {
  border-color: #16A34A;
  box-shadow: 0 0 0 1px #16A34A;
}
.zoho-input-text:disabled {
  background: #F8FAFC;
  color: #94A3B8;
  cursor: not-allowed;
}

.zoho-input-select {
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  color: #1E293B;
  outline: none;
  width: 100%;
  max-width: 320px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.zoho-input-select:focus {
  border-color: #16A34A;
  box-shadow: 0 0 0 1px #16A34A;
}

.zoho-cycles-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #334155;
}

.zoho-cycles-input {
  width: 65px;
  max-width: 65px;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  padding: 0.45rem 0.5rem;
  font-size: 0.85rem;
  color: #1E293B;
  text-align: center;
  outline: none;
}
.zoho-cycles-input:focus {
  border-color: #16A34A;
}

.zoho-plan-table {
  width: 100%;
  max-width: 820px;
  border-collapse: collapse;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
}

.zoho-plan-table th {
  background: #F8FAFC;
  text-align: left;
  padding: 0.55rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  border-bottom: 1px solid #E2E8F0;
}

.zoho-plan-table td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid #F1F5F9;
  color: #1E293B;
  vertical-align: middle;
}

.zoho-payment-gateway-link {
  font-size: 0.82rem;
  color: #64748B;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.zoho-payment-gateway-link a {
  color: #2563EB;
  text-decoration: none;
  font-weight: 500;
}







/* ==========================================================================
   ZOHO BILLING NO-COLOR, MINIMALIST PRODUCT PICKER & CLEAN FORM
   Pixel-Perfect Match with User Screenshots 1 & 2
   ========================================================================== */
.zoho-product-picker-wrap {
  position: relative;
  max-width: 440px;
}

.zoho-product-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid #3B82F6;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #1E293B;
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
  transition: all 0.15s ease;
}

.zoho-product-picker-trigger.unselected {
  border-color: #D1D5DB;
  color: #64748B;
  box-shadow: none;
}

.zoho-product-picker-trigger:hover {
  border-color: #2563EB;
}

.zoho-product-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 100;
  overflow: hidden;
}

.zoho-product-search-input {
  width: calc(100% - 1.2rem);
  margin: 0.6rem;
  padding: 0.45rem 0.6rem 0.45rem 1.8rem;
  background: #FFFFFF;
  border: 1px solid #3B82F6;
  border-radius: 4px;
  font-size: 0.82rem;
  outline: none;
  box-sizing: border-box;
}

.zoho-product-option-list {
  max-height: 180px;
  overflow-y: auto;
}

.zoho-product-option-item {
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  color: #1E293B;
  cursor: pointer;
  transition: background 0.1s;
}

.zoho-product-option-item:hover,
.zoho-product-option-item.selected {
  background: #3B82F6;
  color: #FFFFFF;
}

.zoho-quick-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.45rem;
}

.zoho-quick-pill {
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.zoho-quick-pill:hover {
  border-color: #3B82F6;
  color: #2563EB;
  background: #F8FAFC;
}

.zoho-quick-pill.active {
  background: #EFF6FF;
  border-color: #3B82F6;
  color: #1D4ED8;
  font-weight: 600;
}


/* ==========================================================================
   CLIENT DETAILS COLLAPSIBLE TOGGLE & STICKY HEADER
   ========================================================================== */
.header-toggle-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #334155;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 0.75rem;
  transition: all 0.15s ease;
}

.header-toggle-filters-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
  border-color: #94A3B8;
}

.table-compact-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: 8px 8px 0 0;
  padding: 0.65rem 1rem;
  margin-bottom: -1px;
  gap: 1rem;
  flex-wrap: wrap;
}

.table-compact-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F8FAFC;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  max-width: 380px;
  width: 100%;
}

.table-compact-search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.83rem;
  color: #1E293B;
}

/* Sticky Header for Client Data Table */
.client-data-table th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #F8FAFC;
}


/* ==========================================================================
   MODERN 2x2 MODULAR GRID & CLIENT DETAILS REDESIGN
   Replaces legacy accordions with high-density modular cards & quota meters
   ========================================================================== */

.details-view-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 1480px;
  margin: 0 auto;
  padding-bottom: 2.5rem;
}

/* 1. Profile Hero Header Card */
.profile-hero-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  flex-wrap: wrap;
}

.profile-hero-left {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.btn-back-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #F8FAFC;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-back-circle:hover {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  border-color: #BFDBFE;
  transform: translateX(-2px);
}

.profile-avatar-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1877F2 0%, #6366F1 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.22);
  flex-shrink: 0;
}

.profile-title-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.profile-client-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  text-transform: capitalize;
  letter-spacing: -0.02em;
}

.profile-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-status-chip.trial {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.profile-status-chip.active {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.profile-status-chip.expired {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.profile-type-chip {
  background: #F1F5F9;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.profile-meta-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: #64748B;
  flex-wrap: wrap;
}

.profile-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.profile-meta-sep {
  color: #CBD5E1;
}

.profile-domain-link {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
}

.profile-domain-link:hover {
  text-decoration: underline;
}

.profile-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: var(--primary-blue);
  color: #FFFFFF;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  box-shadow: 0 2px 6px rgba(24, 119, 242, 0.25);
  transition: all 0.15s ease;
}

.btn-hero-primary:hover {
  background: #1565C0;
  transform: translateY(-1px);
}

.btn-hero-secondary {
  background: #F8FAFC;
  color: #1E293B;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  transition: all 0.15s ease;
}

.btn-hero-secondary:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.btn-hero-outline {
  background: #FFFFFF;
  color: #334155;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  transition: all 0.15s ease;
}

.btn-hero-outline:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}

.btn-hero-danger {
  background: #FFF1F2;
  color: #E11D48;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #FECDD3;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.15s ease;
}

.btn-hero-danger:hover {
  background: #FFE4E6;
}

/* 2. Compact 2x2 Modular Grid */
.client-modular-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 1100px) {
  .client-modular-grid {
    grid-template-columns: 1fr;
  }
}

.modular-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.modular-card:hover {
  box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.05);
  border-color: #CBD5E1;
}

.modular-card.modular-card-full {
  grid-column: 1 / -1;
}

.modular-card-header {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #FFFFFF;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.modular-card-header:hover {
  background-color: #F8FAFC;
}

.modular-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modular-card-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modular-card-icon-wrap.icon-blue {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
}

.modular-card-icon-wrap.icon-amber {
  background: #FEF3C7;
  color: #D97706;
}

.modular-card-icon-wrap.icon-emerald {
  background: #DCFCE7;
  color: #059669;
}

.modular-card-icon-wrap.icon-purple {
  background: #F3E8FF;
  color: #7C3AED;
}

.modular-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.01em;
}

.modular-card-subtitle {
  font-size: 0.75rem;
  color: #64748B;
  margin: 2px 0 0;
}

.btn-card-action-icon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-blue);
  background: var(--primary-blue-light);
  border: 1px solid #BFDBFE;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-card-action-icon:hover {
  background: var(--primary-blue);
  color: #FFFFFF;
}

.card-header-badges {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.plan-badge-pill {
  background: #EBF5FF;
  color: #1877F2;
  border: 1px solid #BFDBFE;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}

.days-badge-pill {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.modular-card-body {
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Modern Metadata Tiles (Replaces legacy colons) */
.modern-tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .modern-tiles-grid {
    grid-template-columns: 1fr;
  }
}

.modern-tile {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.15s ease;
}

.modern-tile:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.modern-tile-wide {
  grid-column: 1 / -1;
}

.modern-tile-label {
  font-size: 0.66rem;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.modern-tile-val {
  font-size: 0.86rem;
  color: #1E293B;
  word-break: break-all;
}

.modern-tile-val.font-semibold {
  font-weight: 600;
}

.flex-val {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.truncate-val {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-tile-copy {
  background: none;
  border: none;
  color: #64748B;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-tile-copy:hover {
  color: var(--primary-blue);
  background: var(--primary-blue-light);
}

.badge-customer-type {
  background: #EEF2F6;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.code-val {
  font-family: monospace;
  font-weight: 600;
  color: #1E293B;
}

.tile-domain-link {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
}

.tile-domain-link:hover {
  text-decoration: underline;
}

.test-account-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
}

.test-account-pill.is-test {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.test-account-pill.not-test {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.btn-toggle-switch-inline {
  background: var(--primary-blue-light);
  border: 1px solid #BFDBFE;
  color: var(--primary-blue);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-toggle-switch-inline:hover {
  background: var(--primary-blue);
  color: #FFFFFF;
}

/* Quotas Progress Bars */
.quotas-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.quota-meter-item {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 0.75rem 0.95rem;
  transition: all 0.15s ease;
}

.quota-meter-item:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.quota-meter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.quota-name-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.quota-icon {
  font-size: 0.95rem;
}

.quota-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1E293B;
}

.quota-count-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: #64748B;
}

.quota-count-val strong {
  color: #0F172A;
}

.quota-left-pill {
  color: #059669;
  font-weight: 600;
  font-size: 0.75rem;
}

.quota-pct-pill {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 700;
  font-size: 0.72rem;
  color: #334155;
}

.quota-meter-track {
  width: 100%;
  height: 7px;
  background: #E2E8F0;
  border-radius: 9999px;
  overflow: hidden;
}

.quota-meter-bar {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.quota-meter-bar.bar-indigo {
  background: linear-gradient(90deg, #6366F1, #4F46E5);
}

.quota-meter-bar.bar-blue {
  background: linear-gradient(90deg, #3B82F6, #1877F2);
}

.quota-meter-bar.bar-emerald {
  background: linear-gradient(90deg, #10B981, #059669);
}

.quota-meter-bar.bar-purple {
  background: linear-gradient(90deg, #A855F7, #7C3AED);
}

.btn-quota-pencil {
  background: none;
  border: none;
  color: var(--primary-blue);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  transition: all 0.15s ease;
}

.btn-quota-pencil:hover {
  background: var(--primary-blue-light);
  transform: scale(1.15);
}

/* Subscriptions & Invoices Control */
.billing-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.95rem;
}

@media (max-width: 640px) {
  .billing-kpi-strip {
    grid-template-columns: 1fr 1fr;
  }
}

.kpi-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 2px;
}

.kpi-val {
  font-size: 0.86rem;
  color: #1E293B;
}

.cancellation-alert-banner {
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  color: #BE123C;
  font-size: 0.78rem;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  margin-bottom: 0.85rem;
}

.billing-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}

@media (max-width: 640px) {
  .billing-dual-grid {
    grid-template-columns: 1fr;
  }
}

.billing-feature-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
}

.feature-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
}

.feature-box-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1E293B;
}

.autopay-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.autopay-status-badge.enabled {
  background: #DCFCE7;
  color: #15803D;
}

.autopay-status-badge.disabled {
  background: #F1F5F9;
  color: #64748B;
}

.badge-default-card {
  font-size: 0.7rem;
  font-weight: 700;
  color: #15803D;
  background: #DCFCE7;
  padding: 2px 6px;
  border-radius: 4px;
}

.feature-box-desc {
  font-size: 0.75rem;
  color: #64748B;
  margin: 0 0 0.6rem;
  flex: 1;
}

.btn-box-action {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #334155;
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.15s ease;
}

.btn-box-action:hover {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  border-color: #BFDBFE;
}

/* Add-ons list */
.active-addons-section {
  margin-bottom: 0.95rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
}

.addons-header-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.66rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.addons-sync-tag {
  font-size: 0.68rem;
  color: #64748B;
  font-weight: 500;
  text-transform: none;
}

.addon-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.65rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}

.addon-row-item:last-child {
  margin-bottom: 0;
}

.addon-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.addon-type-badge {
  font-size: 0.7rem;
  color: #64748B;
}

.addon-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.addon-expiry-pill {
  font-size: 0.72rem;
  color: #475569;
  background: #F1F5F9;
  padding: 2px 7px;
  border-radius: 4px;
}

.addon-active-pill {
  font-size: 0.74rem;
  font-weight: 700;
  color: #10B981;
}

.card-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  margin-top: auto;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid #F1F5F9;
}

.btn-cancel-sub {
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  color: #E11D48;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-cancel-sub:hover {
  background: #FFE4E6;
}

.footer-btn-right {
  display: flex;
  gap: 0.45rem;
}

.btn-footer-secondary {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-footer-secondary:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
}

.btn-footer-primary {
  background: var(--primary-blue);
  border: none;
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(24, 119, 242, 0.2);
  transition: all 0.15s ease;
}

.btn-footer-primary:hover {
  background: #1565C0;
}

/* Infrastructure Grid */
.infra-tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .infra-tiles-grid {
    grid-template-columns: 1fr;
  }
}

.infra-tile {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.15s ease;
}

.infra-tile:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.infra-tile-wide {
  grid-column: 1 / -1;
}

.infra-label {
  font-size: 0.66rem;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.infra-val {
  font-size: 0.84rem;
  color: #1E293B;
  word-break: break-all;
}

.badge-cluster-live {
  background: #DCFCE7;
  color: #15803D;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
}

.badge-onpremise {
  background: #EBF5FF;
  color: #1877F2;
  border: 1px solid #BFDBFE;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}

.badge-whitelabel {
  background: #F3E8FF;
  color: #7C3AED;
  border: 1px solid #DDD6FE;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}

/* 3. Operations & Integrations Hub (Bottom Modern Tabbed Console) */
.operations-hub-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.hub-header {
  padding: 1.15rem 1.4rem 0;
  border-bottom: 1px solid #E2E8F0;
  background: #FFFFFF;
}

.hub-main-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.01em;
}

.hub-sub-title {
  font-size: 0.78rem;
  color: #64748B;
  margin: 3px 0 1rem;
}

.hub-nav-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
}

.hub-tab-btn {
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748B;
  padding: 8px 14px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.hub-tab-btn:hover {
  color: var(--primary-blue);
}

.hub-tab-btn.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
}

.hub-body {
  padding: 1.35rem 1.4rem;
}

.hub-tab-pane {
  display: none;
}

.hub-tab-pane.active {
  display: block;
  animation: fadeInPane 0.2s ease-in;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.bot-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

@media (max-width: 768px) {
  .bot-cards-grid {
    grid-template-columns: 1fr;
  }
}

.bot-interactive-card {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.bot-interactive-card:hover {
  border-color: var(--primary-blue);
  background: #FFFFFF;
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.08);
  transform: translateY(-2px);
}

.bot-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bot-card-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.icon-circle-blue {
  background: #EBF5FF;
}

.icon-circle-green {
  background: #DCFCE7;
}

.bot-card-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #15803D;
  background: #DCFCE7;
  padding: 3px 8px;
  border-radius: 9999px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-dot.green {
  background: #22C55E;
}

.bot-card-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 4px;
}

.bot-card-desc {
  font-size: 0.8rem;
  color: #64748B;
  margin: 0;
  line-height: 1.45;
}

.bot-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid #E2E8F0;
}

.bot-channel-tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
  background: #F1F5F9;
  padding: 2px 8px;
  border-radius: 4px;
}

.bot-channel-tag.whatsapp {
  background: #DCFCE7;
  color: #15803D;
}

.bot-open-action {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-blue);
}

/* AI Hub Grid */
.ai-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 860px) {
  .ai-hub-grid {
    grid-template-columns: 1fr;
  }
}

.ai-stat-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 1.15rem;
}

.ai-stat-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.5rem;
}

.ai-stat-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ai-stat-big {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
}

.ai-stat-note {
  font-size: 0.75rem;
  color: #64748B;
  margin-top: 4px;
  line-height: 1.4;
}

/* Keys Grid */
.keys-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .keys-grid {
    grid-template-columns: 1fr;
  }
}

.key-credential-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.key-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.key-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1E293B;
}

.key-env-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: #DCFCE7;
  color: #15803D;
  padding: 2px 6px;
  border-radius: 4px;
}

.key-input-row {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 4px 6px 4px 10px;
  justify-content: space-between;
  gap: 0.5rem;
}

.key-code {
  font-family: monospace;
  font-size: 0.82rem;
  color: #0F172A;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-key-copy {
  background: var(--primary-blue-light);
  border: 1px solid #BFDBFE;
  color: var(--primary-blue);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-key-copy:hover {
  background: var(--primary-blue);
  color: #FFFFFF;
}

.key-hint {
  font-size: 0.74rem;
  color: #64748B;
  line-height: 1.35;
}

/* Agents Hub */
.agents-hub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.agents-chips-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .agents-chips-list {
    grid-template-columns: 1fr;
  }
}

.agent-chip-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.agent-chip-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #15803D;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.agent-chip-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.agent-chip-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1E293B;
}

.agent-chip-email {
  font-size: 0.75rem;
  color: #64748B;
}

.agent-status-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
}

.agent-status-tag.online {
  background: #DCFCE7;
  color: #15803D;
}

.agent-status-tag.away {
  background: #FEF3C7;
  color: #B45309;
}

/* Audit Terminal Console */
.audit-terminal-console {
  background: #0F172A;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #1E293B;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.terminal-header-bar {
  background: #1E293B;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #EF4444; }
.terminal-dot.yellow { background: #F59E0B; }
.terminal-dot.green { background: #10B981; }

.terminal-title {
  color: #94A3B8;
  font-size: 0.72rem;
  margin-left: 6px;
}

.terminal-logs-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.78rem;
  line-height: 1.6;
}

.log-entry {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.log-ts {
  color: #64748B;
  flex-shrink: 0;
}

.log-tag {
  font-weight: 700;
  flex-shrink: 0;
}

.log-tag.info { color: #38BDF8; }
.log-tag.success { color: #4ADE80; }
.log-tag.warn { color: #FBBF24; }

.log-msg {
  color: #E2E8F0;
}



/* ==========================================================================
   PLAN HISTORY & CONFIGURED CLIENT BOTS TABLES
   ========================================================================== */

.plan-history-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #F1F5F9;
}

.plan-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.plan-history-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.plan-history-sub {
  font-size: 0.78rem;
  color: #64748B;
  margin: 2px 0 0;
}

.history-count-badge {
  font-size: 0.74rem;
  font-weight: 600;
  background: #F1F5F9;
  color: #475569;
  padding: 3px 9px;
  border-radius: 9999px;
}

.clean-table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background: #FFFFFF;
}

.plan-history-table,
.client-bots-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.plan-history-table th,
.client-bots-table th {
  background: #F8FAFC;
  color: #475569;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #E2E8F0;
  white-space: nowrap;
}

.plan-history-table td,
.client-bots-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #F1F5F9;
  color: #334155;
  vertical-align: middle;
}

.plan-history-table tr:last-child td,
.client-bots-table tr:last-child td {
  border-bottom: none;
}

.plan-history-table tr:hover,
.client-bots-table tr:hover {
  background: #F8FAFC;
}

.row-current-plan {
  background: #F0F7FF !important;
}

.row-current-plan:hover {
  background: #E6F2FF !important;
}

.current-plan-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #1877F2;
  background: #DBEAFE;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  text-transform: uppercase;
}

.invoice-link-pill {
  font-size: 0.76rem;
  font-family: monospace;
  font-weight: 600;
  color: #1877F2;
  background: #EFF6FF;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.invoice-link-pill:hover {
  background: #1877F2;
  color: #FFFFFF;
}

/* Client Bots Table Identity */
.bot-table-identity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.bot-channel-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.bot-table-name {
  color: #0F172A;
  font-size: 0.86rem;
  display: block;
}

.bot-table-id {
  font-size: 0.72rem;
  color: #64748B;
  display: block;
}

.bot-table-url {
  font-size: 0.78rem;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

/* Switch Slider */
.bot-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.smat-switch-label {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.smat-switch-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.smat-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CBD5E1;
  transition: 0.2s;
  border-radius: 20px;
}

.smat-switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.smat-switch-input:checked + .smat-switch-slider {
  background-color: #10B981;
}

.smat-switch-input:checked + .smat-switch-slider:before {
  transform: translateX(16px);
}

.bot-status-text {
  font-size: 0.76rem;
  font-weight: 700;
}

.bot-status-text.live {
  color: #059669;
}

.bot-status-text.paused {
  color: #94A3B8;
}

.btn-bot-action-secondary {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #1E293B;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-bot-action-secondary:hover {
  background: #E2E8F0;
  border-color: #94A3B8;
}

.btn-bot-action-outline {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-bot-action-outline:hover {
  background: #F8FAFC;
  color: #1E293B;
  border-color: #CBD5E1;
}

.empty-bots-box {
  padding: 3rem 1.5rem;
  text-align: center;
  background: #F8FAFC;
  border-radius: 10px;
  border: 1.5px dashed #CBD5E1;
}



/* Agents Roster List */
.agents-roster-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.agent-roster-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.95rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.agent-roster-item:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.agent-roster-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.agent-role-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  background: #E2E8F0;
  padding: 2px 7px;
  border-radius: 4px;
}

.audit-stream-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803D;
  background: #DCFCE7;
  padding: 2px 7px;
  border-radius: 4px;
}


/* ==========================================================================
   CARD COLLAPSE & EXPAND ARROW CONTROLS
   ========================================================================== */

.btn-collapse-card {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.btn-collapse-card:hover {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  border-color: #BFDBFE;
  transform: scale(1.08);
}

.btn-collapse-card svg {
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Default (Open): Chevron points UP */
.modular-card .btn-collapse-card svg {
  transform: rotate(0deg);
}

/* Collapsed: Chevron rotates 180deg (points DOWN) */
.modular-card.collapsed .btn-collapse-card svg {
  transform: rotate(180deg);
}

.modular-card .modular-card-body {
  transition: opacity 0.2s ease, max-height 0.25s ease;
}

.modular-card.collapsed .modular-card-body {
  display: none !important;
}

.modular-card.collapsed {
  box-shadow: none;
}

.modular-card.collapsed .modular-card-header {
  border-bottom: none;
  border-radius: var(--radius-xl);
}

/* ==========================================================================
   14. ZOHO BILLING - EDIT CUSTOMER FORM (Modern Neat SmatBot Admin UI)
   ========================================================================== */

/* Main Page Container */
.modern-edit-customer-page,
.zoho-reference-edit-customer-page {
  background-color: var(--bg-main, #F8FAFC);
  min-height: calc(100vh - var(--header-height, 65px));
  padding: 0.85rem 1.25rem 2rem;
  max-width: 860px;
  margin: 0 auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1E293B;
  box-sizing: border-box;
}

/* Header Action Row */
.modern-edit-header-bar,
.zoho-edit-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.header-left-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-modern-back,
.btn-zoho-back {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #475569;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  align-self: flex-start;
  margin-bottom: 4px;
}

.btn-modern-back:hover,
.btn-zoho-back:hover {
  background: #F1F5F9;
  color: #0F172A;
  border-color: #CBD5E1;
  transform: translateX(-2px);
}

.header-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.modern-page-title,
.zoho-edit-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.02em;
}

.badge-sync-live {
  background: #DCFCE7;
  color: #15803D;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #BBF7D0;
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.badge-cust-chip {
  background: #F1F5F9;
  color: #64748B;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  font-family: monospace;
}

.modern-header-sub {
  font-size: 13.5px;
  color: #64748B;
  margin: 0;
}

.header-right-col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-gst-quick-prefill {
  background: #FFFFFF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}

.btn-gst-quick-prefill:hover {
  background: #EFF6FF;
  border-color: #93C5FD;
}

/* GST Callout Banner */
.modern-gst-banner-card,
.zoho-gst-banner-row {
  background: linear-gradient(135deg, #EFF6FF 0%, #F0F9FF 100%);
  border: 1px solid #BFDBFE;
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.05);
  box-sizing: border-box;
}

/* Slim Single-Line Reference Banner (Exact match to User Reference Screenshot) */
.modern-gst-banner-card.slim-reference-gst-banner,
.zoho-gst-banner-row.slim-reference-gst-banner {
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  border-radius: 6px;
  padding: 8px 14px;
  margin-bottom: 0.85rem;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.gst-banner-inline-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #1E293B;
  flex-wrap: wrap;
  width: 100%;
}

.gst-banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #2563EB;
}

.gst-banner-message {
  color: #1E293B;
  font-size: 13.5px;
  font-weight: 400;
}

.slim-reference-gst-banner .btn-gst-prefill-link,
.slim-reference-gst-banner .gst-prefill-link {
  background: transparent;
  border: none;
  color: #2563EB;
  padding: 0;
  margin-left: 4px;
  border-radius: 0;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  box-shadow: none;
  transition: all 0.15s ease;
}

.slim-reference-gst-banner .btn-gst-prefill-link:hover,
.slim-reference-gst-banner .gst-prefill-link:hover {
  background: transparent;
  color: #1D4ED8;
  text-decoration: underline;
}

.gst-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gst-banner-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #DBEAFE;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gst-banner-heading {
  font-size: 13.5px;
  font-weight: 600;
  color: #1E3A8A;
}

.gst-banner-subtext {
  font-size: 12.5px;
  color: #3B82F6;
}

.btn-gst-prefill-link,
.gst-prefill-link {
  background: #FFFFFF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-gst-prefill-link:hover,
.gst-prefill-link:hover {
  background: #DBEAFE;
  color: #1E40AF;
}

/* Modern Form Structure */
.modern-customer-form,
.zoho-clean-edit-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Unified Zoho Billing Form Canvas */
.zoho-unified-form-canvas {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  padding: 24px 32px 32px;
  box-sizing: border-box;
  max-width: 980px;
}

/* Modular Card Design (Legacy Support) */
.modern-form-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  overflow: visible;
}

.form-card-header {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.form-card-header.tabs-header {
  padding: 0.4rem 1rem;
  background: #FAFAFA;
}

.card-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header-icon-box {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.card-section-subtitle {
  font-size: 11.5px;
  color: #64748B;
  margin: 1px 0 0 0;
}

/* Inline Radio Groups for Customer Type & Tax Preference */
.zoho-radio-group-inline,
.modern-radio-row,
.modern-segmented-pill-group,
.zoho-radio-group {
  display: flex;
  align-items: center;
  gap: 24px;
}

.zoho-radio-inline,
.radio-label-item,
.segmented-pill-item,
.zoho-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  font-weight: 400;
  user-select: none;
}

.zoho-radio-inline input[type="radio"],
.radio-label-item input[type="radio"],
.segmented-pill-item input[type="radio"],
.zoho-radio-label input[type="radio"] {
  margin: 0;
  cursor: pointer;
  accent-color: #2563EB;
  width: 16px;
  height: 16px;
  display: inline-block;
}

/* Form Card Body */
.form-card-body {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* Zoho Clean Horizontal Form Row (Left Label 190px, Right Control 480px) */
.zoho-form-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 14px;
  min-height: 35px;
  gap: 16px;
}

@media (max-width: 768px) {
  .zoho-form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

.form-field-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.modern-field-label,
.zoho-row-label {
  width: 190px;
  min-width: 190px;
  max-width: 190px;
  font-size: 13px;
  font-weight: 400;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
}

.modern-field-label.required,
.zoho-row-label.required {
  color: #DC2626;
  font-weight: 500;
}

.zoho-row-control {
  width: 480px;
  max-width: 100%;
  position: relative;
}

.modern-field-label.required::after {
  content: '';
}

.info-glyph-chip,
.zoho-info-glyph {
  font-size: 11px;
  color: #94A3B8;
  cursor: help;
  transition: color 0.15s ease;
}

.info-glyph-chip:hover,
.zoho-info-glyph:hover {
  color: #2563EB;
}

/* Email First Field & Auto-fill Badges */
.email-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.badge-auto-filled-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.badge-auto-filled-pill.matched {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.badge-auto-filled-pill.new-pill {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #E2E8F0;
}

/* Inputs & Selects */
.modern-input-field,
.zoho-input-text,
.zoho-input-select {
  width: 100%;
  height: 33px;
  box-sizing: border-box;
  padding: 0 9px;
  border: 1px solid #CBD5E1;
  border-radius: 5px;
  background: #FFFFFF;
  font-size: 12.5px;
  color: #1E293B;
  outline: none;
  font-family: inherit;
  transition: all 0.15s ease;
}

.modern-input-field:focus,
.zoho-input-text:focus,
.zoho-input-select:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 2.5px rgba(37, 99, 235, 0.12);
}

.modern-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' 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 8px center;
  padding-right: 24px;
  appearance: none;
  -webkit-appearance: none;
}

/* Input Prefix Icon */
.input-wrapper-prefix,
.zoho-email-field-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-prefix-icon,
.email-prefix-icon {
  position: absolute;
  left: 9px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.modern-input-field.has-prefix,
.email-input {
  padding-left: 28px;
}

/* 2-Column Responsive Grid */
.modern-form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 0.9rem;
}

@media (max-width: 768px) {
  .modern-form-row-2col {
    grid-template-columns: 1fr;
  }
}

/* Primary Contact 3-Column Grid */
.modern-primary-contact-grid,
.zoho-primary-contact-row {
  display: grid;
  grid-template-columns: 85px 1fr 1fr;
  gap: 6px;
}

@media (max-width: 640px) {
  .modern-primary-contact-grid,
  .zoho-primary-contact-row {
    grid-template-columns: 1fr;
  }
}

/* Phone & Duplicate Warning Anchoring */
.phone-anchor-cell {
  position: relative;
}

.modern-phone-input-row,
.zoho-single-phone-input-row {
  display: flex;
  gap: 6px;
  max-width: 100%;
}

.phone-code-select {
  width: 80px;
  flex-shrink: 0;
}

.modern-phone-wrapper,
.zoho-phone-input-inner-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.phone-input.has-warning-icon {
  padding-right: 32px;
}

/* Orange Warning Triangle inside input */
.phone-input-warning-triangle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Duplicate Phone Alert Line */
.zoho-duplicate-phone-alert {
  margin-top: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #FFF7ED;
  border: 1px solid #FFEDD5;
  border-radius: 6px;
  padding: 6px 12px;
  max-width: fit-content;
}

.alert-orange-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.alert-muted-text {
  color: #C2410C;
  font-weight: 600;
}

.btn-toggle-existing-records {
  background: #FFFFFF;
  border: 1px solid #FED7AA;
  color: #EA580C;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 4px;
  transition: all 0.15s ease;
}

.btn-toggle-existing-records:hover {
  background: #FFEDD5;
}

/* MATCHING CUSTOMER RECORDS FLOATING DROPDOWN CARD */
.matching-customers-card {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 440px;
  max-width: 95vw;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.08);
  border: 1px solid #E2E8F0;
  z-index: 1000;
  display: none;
  overflow: hidden;
  animation: dropdownFadeIn 0.15s ease-out;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.matching-customers-card.show {
  display: block;
}

.matching-card-header {
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  padding: 10px 16px;
}

.matching-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
}

.badge-match-count {
  background: #EFF6FF;
  color: #2563EB;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid #DBEAFE;
}

.matching-records-scroll-list {
  max-height: 340px;
  overflow-y: auto;
}

.matching-customer-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #F1F5F9;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.matching-customer-item:last-child {
  border-bottom: none;
}

.matching-customer-item:hover {
  background: #F8FAFC;
}

.matching-customer-item.active {
  background: #2563EB;
  color: #FFFFFF;
}

.matching-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E2E8F0;
  color: #475569;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.matching-customer-item.active .matching-avatar-circle,
.matching-avatar-circle.active-avatar {
  background: #FFFFFF;
  color: #2563EB;
}

.matching-customer-info {
  flex: 1;
  min-width: 0;
}

.matching-name-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.matching-customer-item.active .matching-name-title {
  color: #FFFFFF;
}

.matching-meta-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-top: 3px;
}

.matching-customer-item.active .matching-meta-line {
  color: rgba(255, 255, 255, 0.95);
}

.matching-customer-item:not(.active) .matching-meta-line {
  color: #64748B;
}

/* Authentic Zoho Underline Tabs Bar */
.zoho-reference-tabs-bar {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid #E2E8F0;
  margin: 24px 0 18px 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  width: 100%;
}

.modern-tab-pill,
.zoho-ref-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 2px;
  font-size: 13.5px;
  font-weight: 500;
  color: #64748B;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  user-select: none;
  margin-bottom: -1px;
  border-radius: 0;
}

.modern-tab-pill:hover,
.zoho-ref-tab-btn:hover {
  color: #1E293B;
}

.modern-tab-pill.active,
.zoho-ref-tab-btn.active {
  color: #2563EB;
  font-weight: 600;
  border-bottom: 2px solid #2563EB;
  background: transparent;
  box-shadow: none;
}

.modern-tab-pill.active::after,
.zoho-ref-tab-btn.active::after {
  display: none;
}

.tab-icon {
  font-size: 15px;
}

/* GSTIN Action Input Group */
.modern-gstin-action-group,
.zoho-gstin-input-group {
  display: flex;
  gap: 10px;
}

.gstin-input {
  border-color: #CBD5E1;
}

.btn-zoho-taxpayer-fetch,
.btn-get-taxpayer {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #1E293B;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-zoho-taxpayer-fetch:hover,
.btn-get-taxpayer:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  color: #0F172A;
}

.zoho-mandatory-warning-text {
  margin-top: 4px;
  font-size: 12px;
  color: #DC2626;
  font-weight: 500;
}

/* Address Dual Grid */
.modern-address-dual-grid,
.zoho-address-dual-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 820px) {
  .modern-address-dual-grid,
  .zoho-address-dual-columns {
    grid-template-columns: 1fr;
  }
}

.modern-address-box,
.zoho-address-column {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 16px 20px;
  box-sizing: border-box;
}

.address-box-header,
.zoho-addr-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #F1F5F9;
}

.addr-box-title,
.addr-title {
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-addr-primary {
  background: #EFF6FF;
  color: #2563EB;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid #DBEAFE;
}

.btn-copy-address-pill,
.link-copy-address {
  background: #FFFFFF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.06);
}

.btn-copy-address-pill:hover,
.link-copy-address:hover {
  background: #EFF6FF;
}

.address-box-fields,
.zoho-addr-fields-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.addr-item,
.addr-field-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 12px;
}

.addr-item label,
.addr-field-item label {
  font-size: 12.5px;
  font-weight: 400;
  color: #475569;
  margin: 0;
}

.addr-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Elevated Clean Non-Overlapping Footer Bar */
.modern-edit-footer-bar,
.zoho-edit-footer-actions {
  position: static;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 8px 14px;
  margin-top: 0.65rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  z-index: 10;
  box-sizing: border-box;
}

.footer-sync-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #64748B;
  font-weight: 500;
}

.sync-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #16A34A;
}

.footer-buttons-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-modern-cancel,
.btn-zoho-cancel-secondary {
  background: #FFFFFF;
  color: #475569;
  border: 1px solid #CBD5E1;
  padding: 6px 14px;
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-modern-cancel:hover,
.btn-zoho-cancel-secondary:hover {
  background: #F1F5F9;
  color: #0F172A;
  border-color: #94A3B8;
}

.btn-modern-save,
.btn-zoho-save-primary {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  border: none;
  padding: 6px 18px;
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-modern-save:hover,
.btn-zoho-save-primary:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

/* Save and Subscribe Button (Screenshot 2, 3, 4 Match) */
.btn-save-subscribe-customer {
  background: #FFFFFF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
  padding: 6px 14px;
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.06);
}

.btn-save-subscribe-customer:hover {
  background: #EFF6FF;
  border-color: #93C5FD;
}

/* Other Details Tab Row Layout - Sleek Enterprise Alignment */
#zoho-tab-pane-other .zoho-form-row,
#cust-more-details-container .zoho-form-row {
  display: grid;
  grid-template-columns: 160px minmax(240px, 450px);
  align-items: center;
  gap: 6px 14px;
  padding: 3px 0;
}

#zoho-tab-pane-other .zoho-row-label,
#cust-more-details-container .zoho-row-label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

#zoho-tab-pane-other .zoho-row-control,
#cust-more-details-container .zoho-row-control {
  width: 100%;
}

@media (max-width: 700px) {
  #zoho-tab-pane-other .zoho-form-row,
  #cust-more-details-container .zoho-form-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Radio Row (Screenshot 1: Tax Preference*) */
.modern-radio-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 4px;
}

.radio-label-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: #1E293B;
  cursor: pointer;
  font-weight: 500;
}

.radio-label-item input[type="radio"] {
  accent-color: #2563EB;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Documents Upload File Button (Screenshot 1 & 4) */
.btn-upload-documents {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #334155;
  padding: 8px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-upload-documents:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  color: #0F172A;
}

.upload-helper-subtext {
  font-size: 12px;
  color: #64748B;
  margin-top: 5px;
}

.uploaded-docs-list-box {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.uploaded-doc-chip {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #DBEAFE;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
}

/* Add More Details Link & Box (Screenshot 1 & 4) */
.more-details-toggle-row {
  margin-top: 1rem;
}

.link-add-more-details {
  color: #2563EB;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.link-add-more-details:hover {
  text-decoration: underline;
  color: #1D4ED8;
}

.more-details-expandable-box {
  animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.field-sub-helper-url {
  font-size: 11.5px;
  color: #64748B;
  margin-top: 3px;
  font-family: monospace;
}

/* Modern Textarea for Addresses & Remarks */
.modern-textarea {
  height: auto !important;
  min-height: 48px;
  padding: 8px 12px !important;
  line-height: 1.4;
  resize: vertical;
}

/* Shipping Address Inline Copy Link (Screenshot 2 Match) */
.link-copy-billing-inline {
  color: #2563EB;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.link-copy-billing-inline:hover {
  text-decoration: underline;
  color: #1D4ED8;
}

/* Future Transaction Callout (Screenshot 3 Match) */
.address-future-callout {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 1.5rem;
  font-size: 13px;
  color: #1E3A8A;
  box-sizing: border-box;
}

.address-future-callout .info-circle-icon {
  background: #2563EB;
  color: #FFFFFF;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.address-future-callout .callout-link {
  color: #2563EB;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* Address Notes Box with Yellow/Amber Border (Screenshot 3 Match) */
.address-notes-callout {
  border-left: 3px solid #F59E0B;
  background: #FFFBEB;
  padding: 10px 16px;
  border-radius: 0 8px 8px 0;
  margin-top: 12px;
  font-size: 12.5px;
  color: #92400E;
  line-height: 1.6;
  box-sizing: border-box;
}

.address-notes-callout strong {
  color: #78350F;
  font-weight: 700;
}



/* GST PREFILL POPOVER CARD (Screenshot Match) */
.gst-prefill-popover-card {
  position: absolute;
  top: calc(100% + 8px);
  left: 20px;
  width: 520px;
  max-width: calc(100vw - 40px);
  background: #FFFFFF;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.16), 0 4px 10px -2px rgba(0, 0, 0, 0.08);
  z-index: 1100;
  animation: popoverFadeIn 0.15s ease-out;
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.gst-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 8px;
  border-bottom: 1px solid #F3F4F6;
}

.gst-popover-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.btn-close-gst-popover {
  background: none;
  border: none;
  color: #EF4444;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  transition: all 0.15s ease;
}

.btn-close-gst-popover:hover {
  background: #FEE2E2;
  color: #DC2626;
}

.gst-popover-body {
  padding: 14px 18px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gst-popover-label {
  color: #DC2626;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.gst-popover-input {
  flex: 1;
  height: 34px;
  box-sizing: border-box;
  padding: 0 10px;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  font-size: 13.5px;
  color: #1F2937;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gst-popover-input:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.btn-popover-fetch {
  background: #2563EB;
  color: #FFFFFF;
  border: none;
  height: 34px;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
  white-space: nowrap;
}

.btn-popover-fetch:hover {
  background: #1D4ED8;
}

/* ==========================================================================
   ZOHO BILLING COUPONS VIEW STYLING
   ========================================================================== */
.coupons-table-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.coupons-table {
  width: 100%;
  border-collapse: collapse;
}

.coupons-table th {
  background: #F8FAFC !important;
  color: #64748B !important;
  font-size: 0.73rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 11px 16px !important;
  border-bottom: 1px solid #E2E8F0 !important;
  white-space: nowrap;
}

.coupons-table td {
  padding: 12px 16px !important;
  font-size: 0.85rem !important;
  color: #1E293B !important;
  border-bottom: 1px solid #F1F5F9 !important;
  vertical-align: middle !important;
  white-space: nowrap;
}

.coupons-table tbody tr {
  cursor: pointer;
  transition: background-color 0.1s ease;
}

.coupons-table tbody tr:hover {
  background: #F8FAFC !important;
}

.btn-coupon-filter-dropdown:hover {
  background: #F1F5F9 !important;
}

.dropdown-popover-menu .dropdown-item:hover {
  background: #F8FAFC;
}

.dropdown-popover-menu .dropdown-item.active {
  background: #EFF6FF;
  font-weight: 600;
}

/* Coupons Table Actions & Detail Eye Modal */
.btn-action-view-coupon {
  background: transparent;
  border: none;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-action-view-coupon:hover {
  background: #EFF6FF;
  color: #1877F2;
  transform: scale(1.08);
}

.coupon-details-modal-box {
  background: #FFFFFF;
  border-radius: 12px;
  max-width: 440px;
  width: 92%;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.18), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  position: relative;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.coupon-details-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  padding-right: 4px;
}

.coupon-details-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background-color 0.15s ease;
}

.coupon-details-row:hover {
  background-color: #F8FAFC;
}

.coupon-details-label {
  font-weight: 700;
  color: #1E293B;
}

.coupon-details-value {
  color: #475569;
  font-weight: 500;
  word-break: break-word;
}

/* ==========================================================================
   New Coupon Modal (Matching Screenshot 1)
   ========================================================================== */
.coupon-create-modal-card {
  background: #FFFFFF;
  border-radius: 8px;
  max-width: 880px;
  width: 95vw;
  padding: 1.75rem 2rem 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.coupon-create-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.coupon-create-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.2px;
}

.coupon-create-modal-close {
  background: none;
  border: none;
  font-size: 1.35rem;
  color: #64748B;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s ease;
}

.coupon-create-modal-close:hover {
  color: #0F172A;
}

.coupon-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2.5rem;
  row-gap: 1.15rem;
}

.coupon-field-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coupon-field-label {
  width: 145px;
  min-width: 145px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.3;
}

.coupon-field-label.required {
  color: #DC2626; /* Crimson Red matching Screenshot 1 */
}

.coupon-field-control {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.coupon-form-control {
  flex: 1;
  width: 100%;
  height: 36px;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.85rem;
  color: #1E293B;
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.coupon-form-control:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.coupon-form-control::placeholder {
  color: #94A3B8;
  font-weight: 400;
}

.coupon-form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' 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 10px center;
  padding-right: 28px !important;
  cursor: pointer;
}

.coupon-discount-group {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  height: 36px;
  overflow: hidden;
  background: #FFFFFF;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.coupon-discount-group:focus-within {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.coupon-discount-input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  padding: 6px 12px;
  font-size: 0.85rem;
  color: #1E293B;
  background: transparent;
  font-family: inherit;
}

.coupon-discount-select {
  height: 100%;
  border: none;
  border-left: 1px solid #E2E8F0;
  outline: none;
  padding: 0 26px 0 10px;
  font-size: 0.85rem;
  color: #334155;
  background-color: #FAFAFA;
  cursor: pointer;
  font-family: inherit;
}

.coupon-info-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  cursor: help;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.coupon-info-tooltip:hover {
  color: #475569;
}

.coupon-section-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0F172A;
  margin: 1.4rem 0 1rem;
  letter-spacing: -0.1px;
}

.coupon-modal-divider {
  border: none;
  border-top: 1px solid #E2E8F0;
  margin: 1.5rem 0 1.25rem;
}

.coupon-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 1.75rem;
}

.coupon-btn-save {
  background: #2563EB;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  padding: 7px 22px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.coupon-btn-save:hover {
  background: #1D4ED8;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
}

.coupon-btn-cancel {
  background: #FFFFFF;
  color: #334155;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  padding: 7px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.coupon-btn-cancel:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  color: #0F172A;
}

@media (max-width: 768px) {
  .coupon-modal-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .coupon-field-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .coupon-field-label {
    width: 100%;
    min-width: unset;
  }
}

/* ==========================================================================
   Custom Searchable Dropdown for Coupon Modal (Matching Screenshots 1 to 4)
   ========================================================================== */
.coupon-searchable-select {
  position: relative;
  flex: 1;
  width: 100%;
}

.coupon-select-trigger {
  width: 100%;
  height: 36px;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.coupon-select-trigger:hover {
  border-color: #94A3B8;
}

.coupon-select-trigger.active {
  border-color: #3B82F6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

.coupon-select-trigger.active .coupon-select-chevron {
  transform: rotate(180deg);
  stroke: #3B82F6;
}

.coupon-select-trigger-text {
  font-size: 0.85rem;
  color: #1E293B;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coupon-select-trigger-text.placeholder {
  color: #64748B;
}

.coupon-select-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease, stroke 0.15s ease;
}

.coupon-select-popover {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  min-width: 220px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  padding: 8px 6px;
  z-index: 1000;
  box-sizing: border-box;
}

.coupon-search-box {
  position: relative;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.coupon-search-icon {
  position: absolute;
  left: 10px;
  pointer-events: none;
  stroke: #94A3B8;
}

.coupon-search-input {
  width: 100%;
  height: 32px;
  border: 1px solid #3B82F6;
  border-radius: 6px;
  padding: 4px 10px 4px 30px;
  font-size: 0.83rem;
  color: #1E293B;
  outline: none;
  background: #FFFFFF;
  font-family: inherit;
  box-sizing: border-box;
}

.coupon-search-input::placeholder {
  color: #94A3B8;
}

.coupon-options-list {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.coupon-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #334155;
  cursor: pointer;
  transition: background-color 0.12s ease;
  user-select: none;
}

.coupon-option-item:hover {
  background-color: #F1F5F9;
  color: #0F172A;
}

.coupon-option-item.selected {
  background-color: #3B82F6;
  color: #FFFFFF;
  font-weight: 500;
}

.coupon-option-item.selected:hover {
  background-color: #2563EB;
}

.coupon-option-check {
  flex-shrink: 0;
  stroke: #FFFFFF;
}

.coupon-action-new-product {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-top: 4px;
  border-top: 1px solid #F1F5F9;
  color: #2563EB;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  user-select: none;
  transition: background-color 0.12s ease;
}

.coupon-action-new-product:hover {
  background-color: #EFF6FF;
}


/* ==========================================================================
   ZOHO SUBSCRIPTIONS EXACT REFERENCE STYLING
   ========================================================================== */
.zoho-sub-fullpage-wrap {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #111827;
}
.sidebar-add-plus-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #1877F2;
  color: #FFFFFF;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.15s ease;
}
.sidebar-add-plus-btn:hover {
  background: #1664D8;
  transform: scale(1.1);
}
.zoho-btn-continue {
  background: #1877F2 !important;
  border-color: #1877F2 !important;
}
.zoho-btn-continue:hover {
  background: #1664D8 !important;
  border-color: #1664D8 !important;
}


/* Zoho Addons Row Hover Actions (Screenshot 1 & 2 Match) */
.zoho-addon-table-row {
  transition: background-color 0.15s ease;
}

.zoho-addon-table-row:hover {
  background-color: #FAFAFA;
}

.zoho-addon-table-row .zoho-addon-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.45rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.zoho-addon-table-row:hover .zoho-addon-row-actions,
.zoho-addon-table-row:focus-within .zoho-addon-row-actions {
  opacity: 1;
  visibility: visible;
}

.zoho-btn-row-more {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #D1D5DB;
  background: #FFFFFF;
  color: #6B7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  padding: 0;
  transition: all 0.15s ease;
}

.zoho-btn-row-more:hover {
  background: #F3F4F6;
  border-color: #9CA3AF;
  color: #1F2937;
}

.zoho-btn-row-delete {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #FCA5A5;
  background: #FFFFFF;
  color: #DC2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  transition: all 0.15s ease;
}

.zoho-btn-row-delete:hover {
  background: #FEF2F2;
  border-color: #EF4444;
  color: #B91C1C;
}


/* Zoho Plan Row Hover Actions (Screenshot 1, 2, 3 Match) */
.zoho-plan-table-row {
  transition: background-color 0.15s ease;
}

.zoho-plan-table-row:hover {
  background-color: #FAFAFA;
}

.zoho-plan-table-row .zoho-plan-row-actions {
  display: inline-flex;
  align-items: center;
  margin-left: 0.45rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.zoho-plan-table-row:hover .zoho-plan-row-actions,
.zoho-plan-table-row:focus-within .zoho-plan-row-actions,
.zoho-plan-table-row .zoho-plan-row-actions.open {
  opacity: 1;
  visibility: visible;
}

.zoho-addon-table-row .zoho-addon-row-actions.open {
  opacity: 1 !important;
  visibility: visible !important;
}

.zoho-btn-row-more.active {
  border-color: #2563EB !important;
  color: #2563EB !important;
  background: #EFF6FF !important;
}


/* Zoho Place of Supply Dropdown Styles (Exact Match to User Reference Screenshot) */
.zoho-supply-option-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 12px;
  font-size: 0.85rem;
  color: #374151;
  cursor: pointer;
  margin: 1px 4px;
  border-radius: 4px;
  transition: all 0.12s ease;
}

.zoho-supply-option-item:hover {
  background: #3B82F6 !important;
  color: #FFFFFF !important;
}

.zoho-supply-option-item:hover span {
  color: #FFFFFF !important;
}

.zoho-supply-option-item.selected {
  background: #EEF2F6;
  color: #1E293B;
  font-weight: 500;
}

.zoho-supply-option-item.selected .zoho-supply-check {
  display: inline-block;
  color: #2563EB;
  font-weight: 700;
  font-size: 0.85rem;
}


/* Zoho Configure Tax Preferences - GST Treatment Dropdown (Screenshots 1 - 5) */
.zoho-treatment-option-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  cursor: pointer;
  margin: 2px 4px;
  border-radius: 4px;
  transition: all 0.12s ease;
}

.zoho-treatment-option-item .treatment-text-col {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.zoho-treatment-option-item .treatment-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: #1E293B;
}

.zoho-treatment-option-item .treatment-desc {
  font-size: 0.74rem;
  color: #64748B;
  margin-top: 2px;
  line-height: 1.25;
}

.zoho-treatment-option-item:hover,
.zoho-treatment-option-item.selected {
  background: #3B82F6 !important;
  color: #FFFFFF !important;
}

.zoho-treatment-option-item:hover .treatment-title,
.zoho-treatment-option-item.selected .treatment-title {
  color: #FFFFFF !important;
}

.zoho-treatment-option-item:hover .treatment-desc,
.zoho-treatment-option-item.selected .treatment-desc {
  color: rgba(255, 255, 255, 0.9) !important;
}

.zoho-treatment-option-item.selected .zoho-treatment-check {
  display: inline-block;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  margin-left: 8px;
}


/* Zoho Place of Supply Popover - Positioned Above / Drop-up (paina vachela) */
.zoho-supply-popover {
  position: absolute;
  bottom: calc(100% + 4px) !important;
  top: auto !important;
  left: 0;
  width: 100%;
  z-index: 99999 !important;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  overflow: hidden;
}


/* Zoho Plan Removal Confirmation Modal Animation (User Screenshot Match) */
@keyframes zohoSlideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -24px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.zoho-plan-remove-modal {
  animation: zohoSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}


/* Zoho Plan Account Drop-up Styles (Screenshots 3 - 7 Match) */
.zoho-account-group-header {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1E293B;
  padding: 8px 12px 3px 12px;
  letter-spacing: 0.2px;
}

.zoho-account-option-item {
  padding: 6px 12px;
  font-size: 0.82rem;
  color: #374151;
  cursor: pointer;
  margin: 1px 4px;
  border-radius: 4px;
  transition: all 0.1s ease;
  line-height: 1.35;
}

.zoho-account-option-item.sub-item {
  padding-left: 24px;
  display: flex;
  align-items: center;
}

.zoho-account-option-item.sub-item .sub-bullet {
  margin-right: 6px;
  font-size: 0.95rem;
  line-height: 1;
}

.zoho-account-option-item:hover,
.zoho-account-option-item.selected {
  background: #3B82F6 !important;
  color: #FFFFFF !important;
}

.zoho-account-option-item:hover .sub-bullet,
.zoho-account-option-item.selected .sub-bullet {
  color: #FFFFFF !important;
}

.zoho-account-option-item.header-only {
  font-weight: 600;
  cursor: default;
  color: #475569;
}
.zoho-account-option-item.header-only:hover {
  background: transparent !important;
  color: #475569 !important;
}


/* Disabled Customer Name in Change Subscription (User Reference Match) */
.zoho-customer-disabled-wrap,
.zoho-customer-disabled-wrap * {
  cursor: not-allowed !important;
}

#zoho-sub-client-select:disabled {
  cursor: not-allowed !important;
  background-color: #F8FAFC !important;
  color: #334155 !important;
  border-color: #CBD5E1 !important;
}

/* ========================================================================= */
/* ZOHO PLAN TAX SEARCHABLE POPOVER (SCREENSHOTS 3 & 4 MATCH)                */
/* ========================================================================= */
.zoho-tax-popover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  background: #FFFFFF;
}

.zoho-tax-item {
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  color: #1E293B;
}

.zoho-tax-item:hover {
  background: #3B82F6 !important;
  color: #FFFFFF !important;
}

.zoho-tax-item:hover .zoho-tax-sub {
  color: #E0E7FF !important;
}

.zoho-tax-item:hover .zoho-tax-check svg {
  stroke: #FFFFFF !important;
}

.zoho-tax-item.selected {
  background: #EEF2F6;
  font-weight: 600;
}

#zoho-plan-tax-list::-webkit-scrollbar {
  width: 6px;
}

#zoho-plan-tax-list::-webkit-scrollbar-track {
  background: #F8FAFC;
}

#zoho-plan-tax-list::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 3px;
}

/* ========================================================================= */
/* ZOHO COUPON SEARCHABLE DROPDOWN (EXACT SCREENSHOT MATCH)                  */
/* ========================================================================= */
.zoho-coupon-option {
  color: #1E293B;
}

.zoho-coupon-option:hover {
  background: #3B82F6 !important;
  color: #FFFFFF !important;
}

.zoho-coupon-option:hover .zoho-coupon-check svg {
  stroke: #FFFFFF !important;
}

.zoho-coupon-option.selected {
  background: #EEF2F6;
  font-weight: 600;
}

#zoho-coupon-results-list::-webkit-scrollbar {
  width: 6px;
}

#zoho-coupon-results-list::-webkit-scrollbar-track {
  background: #F8FAFC;
}

#zoho-coupon-results-list::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 3px;
}

/* ========================================================================= */
/* ZOHO DISCOUNT PREFERENCE SEARCHABLE POPOVER (USER SCREENSHOT MATCH)       */
/* ========================================================================= */
.zoho-discount-popover {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 8px 6px;
  min-width: 200px;
  z-index: 99999;
}

.zoho-discount-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  font-size: 0.84rem;
  color: #334155;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
  user-select: none;
  margin-bottom: 2px;
}

.zoho-discount-option-item:hover {
  background: #2563EB !important;
  color: #FFFFFF !important;
}

.zoho-discount-option-item:hover .zoho-discount-check {
  color: #FFFFFF !important;
}

.zoho-discount-option-item.selected {
  background: #2563EB;
  color: #FFFFFF;
  font-weight: 500;
}

.zoho-discount-option-item.selected .zoho-discount-check {
  display: inline-block;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ========================================================================= */
/* ZOHO CUSTOMER SIDEBAR TAB & SLIDE-OVER DRAWER (SCREENSHOTS 1 & 2 MATCH)   */
/* ========================================================================= */
#zoho-customer-sidebar-tab {
  position: fixed;
  right: 0;
  top: 155px;
  z-index: 9999;
  background: #334155;
  color: #FFFFFF;
  padding: 6px 10px 6px 14px;
  border-radius: 6px 0 0 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: -2px 4px 12px rgba(0, 0, 0, 0.18);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

#zoho-customer-sidebar-tab:hover {
  background: #1E293B;
  padding-right: 14px;
  box-shadow: -4px 6px 16px rgba(0, 0, 0, 0.25);
}

#zoho-customer-sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(1.5px);
  z-index: 99999;
  transition: opacity 0.25s ease;
}

#zoho-customer-sidebar-backdrop.open {
  display: block;
}

#zoho-customer-sidebar-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  max-width: 92vw;
  height: 100vh;
  background: #F8FAFC;
  box-shadow: -6px 0 35px rgba(0, 0, 0, 0.2);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#zoho-customer-sidebar-drawer.open {
  right: 0;
}

.zoho-cust-link-wrapper:hover::after {
  content: "View in Customers module";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 6px;
  background: #1E293B;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 100010;
  pointer-events: none;
}

/* ========================================================================= */
/* ZOHO PLAN SEARCHABLE DROPDOWN POPOVER (EXACT MATCH TO USER SCREENSHOTS)   */
/* ========================================================================= */
.zoho-plan-dropdown-popover {
  border-radius: 6px;
  background: #FFFFFF;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid #CBD5E1;
}

.zoho-plan-option-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #F1F5F9;
  transition: all 0.12s ease;
  user-select: none;
}

.zoho-plan-option-item:last-child {
  border-bottom: none;
}

.zoho-plan-option-item:hover,
.zoho-plan-option-item.active {
  background: #2563EB !important;
}

.zoho-plan-option-item:hover .zoho-plan-opt-name,
.zoho-plan-option-item.active .zoho-plan-opt-name {
  color: #FFFFFF !important;
}

.zoho-plan-option-item:hover .zoho-plan-opt-code,
.zoho-plan-option-item.active .zoho-plan-opt-code {
  color: #DBEAFE !important;
}
