/* ═══════════════════════════════════════════════════
   BLEPLUS CRM – Custom Styles
   ═══════════════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
    --crm-bg:           #051a14;
    --crm-bg-2:         #072119;
    --crm-bg-card:      #0b2d20;
    --crm-bg-card-2:    #0d3324;
    --crm-border:       #1a4a32;
    --crm-primary:      oklch(0.704 0.14 182.503);
    --crm-primary-dark: oklch(0.704 0.14 182.503);
    --crm-primary-glow: rgba(0,200,150,0.15);
    --crm-text:         #e8f5f0;
    --crm-text-muted:   #7aada0;
    --crm-text-dim:     #4a8070;
    --crm-orange:       #f97316;
    --crm-modal-bg:     #082b1e;
    --crm-input-bg:     #0d3324;
    --radius-card:      14px;
    --radius-input:     10px;
    --transition:       0.25s ease;
  }
  
  /* ─── Base ─── */
  *, *::before, *::after { box-sizing: border-box; }
  
  html { scroll-behavior: smooth; }
  
  body {
    font-family: 'Inter', sans-serif;
    background-color: var(--crm-bg);
    color: var(--crm-text);
    min-height: 100vh;
    overflow-x: hidden;
  }
  
  /* ─── Typography Helpers ─── */
  .text-crm-primary { color: var(--crm-primary) !important; }
  
  /* ═══════════════════════════════════════════════════
     NAVBAR
     ═══════════════════════════════════════════════════ */
  .crm-navbar {
    background-color: rgba(5, 26, 20, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--crm-border);
    padding: 14px 0;
    transition: background-color var(--transition);
    z-index: 1050;
  }
  
  .crm-brand {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--crm-text) !important;
    letter-spacing: -0.3px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .crm-brand i {
    color: var(--crm-primary);
    font-size: 1.2rem;
  }
  
  .crm-navbar .nav-link {
    color: var(--crm-text-muted) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 6px 12px !important;
    transition: color var(--transition);
  }
  
  .crm-navbar .nav-link:hover { color: var(--crm-text) !important; }
  
  /* Sign In btn */
  .btn-signin {
    border-color: rgba(255,255,255,0.2);
    color: #000 !important;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 7px 20px;
    border-radius: 8px;
    transition: all var(--transition);
    background-color: rgb(255, 255, 255);
  }
  .btn-signin:hover {
    border-color: var(--crm-primary);
    color: var(--crm-primary) !important;
    background: transparent;
  }
  
  /* Get Started btn */
  .btn-crm-primary {
    background: var(--crm-primary);
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 7px 22px;
    border: 2px solid var(--crm-primary);
    border-radius: 8px;
    transition: all var(--transition);
    text-decoration: none;
  }
  .btn-crm-primary:hover {
    background: var(--crm-primary-dark);
    border-color: var(--crm-primary-dark);
    color: #051a14 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,200,150,0.3);
  }
  
  /* ─── Custom Hamburger ─── */
  .crm-toggler {
    border: none;
    background: none;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }
  .crm-toggler:focus { box-shadow: none; outline: none; }
  .toggler-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--crm-text);
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  .crm-toggler[aria-expanded="true"] .toggler-icon:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .crm-toggler[aria-expanded="true"] .toggler-icon:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .crm-toggler[aria-expanded="true"] .toggler-icon:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  
  /* Mobile nav */
  @media (max-width: 991.98px) {
    #mainNav {
      background: var(--crm-bg-2);
      border-radius: var(--radius-card);
      margin-top: 10px;
      padding: 16px;
      border: 1px solid var(--crm-border);
    }
    #mainNav .nav-item { margin-bottom: 4px; }
    #mainNav .ms-lg-3, #mainNav .ms-lg-2 { margin-top: 8px; }
    #mainNav .btn-signin, #mainNav .btn-crm-primary { width: 100%; text-align: center; }
  }
  
  /* ═══════════════════════════════════════════════════
     HERO
     ═══════════════════════════════════════════════════ */
  .crm-hero {
    min-height: 100vh;
    padding: 120px 0 80px;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0,200,150,0.1) 0%, transparent 70%),
                var(--crm-bg);
    position: relative;
    overflow: hidden;
  }
  
  .crm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0,200,150,0.04) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0,200,150,0.04) 0%, transparent 50%);
    pointer-events: none;
  }
  
  .hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    color: var(--crm-text);
    line-height: 1.1;
    margin-bottom: 12px;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    color: var(--crm-text-muted);
    font-weight: 400;
    margin-bottom: 16px;
  }
  
  .hero-desc {
    font-size: 0.95rem;
    color: var(--crm-text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
  }
  
  .btn-outline-hero {
    background: transparent;
    color: var(--crm-text) !important;
    border: 2px solid rgba(255,255,255,0.2);
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 28px;
    transition: all var(--transition);
  }
  .btn-outline-hero:hover {
    border-color: var(--crm-text);
    background: rgba(255,255,255,0.05);
  }
  
  /* Hero Stats */
  .hero-stats { margin-top: 56px; }
  
  .stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--crm-text);
    letter-spacing: -0.5px;
  }
  
  .stat-label {
    font-size: 0.8rem;
    color: var(--crm-text-muted);
    font-weight: 500;
  }
  
  /* ═══════════════════════════════════════════════════
     SECTION SHARED
     ═══════════════════════════════════════════════════ */
  .section-pad { padding: 80px 0; }
  
  .section-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--crm-text);
    letter-spacing: -0.5px;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
    color: var(--crm-text-muted);
    margin-top: 8px;
  }
  
  /* ═══════════════════════════════════════════════════
     FEATURES
     ═══════════════════════════════════════════════════ */
  .crm-features { background: var(--crm-bg); }
  
  .feature-card {
    background: var(--crm-bg-card);
    border: 1px solid var(--crm-border);
    border-radius: var(--radius-card);
    padding: 28px 24px;
    height: 100%;
    transition: all var(--transition);
  }
  
  .feature-card:hover {
    border-color: var(--crm-primary);
    background: var(--crm-bg-card-2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  }
  
  .feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 16px;
  }
  
  .feature-icon--blue    { background: #1a4cff22; color: #4c7fff; }
  .feature-icon--green   { background: #22c55e22; color: #4ade80; }
  .feature-icon--purple  { background: #a855f722; color: #c084fc; }
  .feature-icon--orange  { background: #f9731622; color: #fb923c; }
  .feature-icon--cyan    { background: #06b6d422; color: #22d3ee; }
  .feature-icon--yellow  { background: #eab30822; color: #fcd34d; }
  .feature-icon--red     { background: #ef444422; color: #f87171; }
  .feature-icon--pink    { background: #ec489922; color: #f472b6; }
  
  .feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--crm-text);
    margin-bottom: 8px;
  }
  
  .feature-desc {
    font-size: 0.82rem;
    color: var(--crm-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
  }
  
  .feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .feature-list li {
    font-size: 0.8rem;
    color: var(--crm-text-muted);
    padding: 3px 0;
    padding-left: 16px;
    position: relative;
  }
  
  .feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--crm-primary);
  }
  
  /* ═══════════════════════════════════════════════════
     PRICING
     ═══════════════════════════════════════════════════ */
  .crm-pricing { background: var(--crm-bg-2); }
  
  /* Toggle */
  .pricing-toggle { padding: 12px 20px; background: var(--crm-bg-card); border: 1px solid var(--crm-border); border-radius: 50px; }
  .toggle-label { font-size: 0.85rem; font-weight: 600; color: var(--crm-text-muted); }
  
  .pricing-switch .form-check-input {
    width: 44px;
    height: 24px;
    background-color: var(--crm-bg);
    border-color: var(--crm-border);
    cursor: pointer;
  }
  .pricing-switch .form-check-input:checked { background-color: var(--crm-primary); border-color: var(--crm-primary); }
  .pricing-switch .form-check-input:focus { box-shadow: 0 0 0 3px var(--crm-primary-glow); }
  
  .badge-save {
    background: rgba(0,200,150,0.15);
    color: var(--crm-primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    border: 1px solid rgba(0,200,150,0.3);
  }
  
  /* Pricing Cards */
  .pricing-card {
    background: var(--crm-bg-card);
    border: 1px solid var(--crm-border);
    border-radius: var(--radius-card);
    padding: 32px 28px;
    height: 100%;
    position: relative;
    transition: all var(--transition);
  }
  
  .pricing-card:hover {
    border-color: rgba(0,200,150,0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
  }
  
  .pricing-card--popular {
    border-color: var(--crm-primary);
    background: var(--crm-bg-card-2);
  }
  
  .popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--crm-primary);
    color: #051a14;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: 50px;
    letter-spacing: 0.5px;
  }
  
  .plan-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--crm-text);
    margin-bottom: 6px;
  }
  
  .plan-tagline {
    font-size: 0.8rem;
    color: var(--crm-text-muted);
    margin-bottom: 20px;
  }
  
  .plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 20px;
  }
  
  .plan-currency { font-size: 0.75rem; color: var(--crm-text-muted); font-weight: 500; }
  
  .plan-amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--crm-text);
    letter-spacing: -1px;
    line-height: 1;
  }
  
  .plan-period { font-size: 0.85rem; color: var(--crm-text-muted); font-weight: 500; }
  
  .plan-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .plan-meta li {
    font-size: 0.82rem;
    color: var(--crm-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .plan-meta li i { color: var(--crm-primary); }
  
  .plan-includes-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--crm-text);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
  
  .plan-features li {
    font-size: 0.82rem;
    color: var(--crm-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .plan-features li i { color: var(--crm-primary); font-size: 0.9rem; }
  
  .btn-plan-outline {
    background: transparent;
    border: 1px solid var(--crm-border);
    color: var(--crm-text) !important;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 8px;
    padding: 10px;
    transition: all var(--transition);
  }
  
  .btn-plan-outline:hover {
    border-color: var(--crm-primary);
    color: var(--crm-primary) !important;
  }
  
  /* ═══════════════════════════════════════════════════
     WHY US
     ═══════════════════════════════════════════════════ */
  .crm-why { background: var(--crm-bg); }
  
  .why-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: var(--crm-primary-glow);
    border: 1px solid rgba(0,200,150,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--crm-primary);
    font-size: 1rem;
  }
  
  .why-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--crm-text);
    margin-bottom: 4px;
  }
  
  .why-desc {
    font-size: 0.82rem;
    color: var(--crm-text-muted);
    line-height: 1.6;
    margin: 0;
  }
  
  /* Stats grid */
  .why-stat-card {
    background: var(--crm-bg-card);
    border: 1px solid var(--crm-border);
    border-radius: var(--radius-card);
    padding: 28px 24px;
    text-align: center;
    transition: all var(--transition);
  }
  
  .why-stat-card:hover {
    border-color: rgba(0,200,150,0.3);
    transform: translateY(-3px);
  }
  
  .why-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 14px;
  }
  
  .why-stat-icon--blue   { background: #1a4cff22; color: #4c7fff; }
  .why-stat-icon--green  { background: #22c55e22; color: #4ade80; }
  .why-stat-icon--yellow { background: #eab30822; color: #fcd34d; }
  .why-stat-icon--purple { background: #a855f722; color: #c084fc; }
  
  .why-stat-number {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--crm-text);
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 6px;
  }
  
  .why-stat-label {
    font-size: 0.78rem;
    color: var(--crm-text-muted);
    font-weight: 500;
  }
  
  /* ═══════════════════════════════════════════════════
     CTA
     ═══════════════════════════════════════════════════ */
  .crm-cta { background: var(--crm-bg-2); }
  
  .cta-box {
    background: linear-gradient(135deg, #0d3d2a 0%, #1a5c3f 50%, #0a3324 100%);
    border: 1px solid rgba(0,200,150,0.2);
    border-radius: 20px;
    padding: 60px 40px;
  }
  
  .cta-title {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--crm-text);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
  }
  
  .cta-desc {
    font-size: 0.95rem;
    color: var(--crm-text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
  }
  
  .btn-outline-cta {
    background: transparent;
    color: var(--crm-text) !important;
    border: 2px solid rgba(255,255,255,0.2);
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 28px;
    transition: all var(--transition);
  }
  .btn-outline-cta:hover { border-color: var(--crm-text); background: rgba(255,255,255,0.05); }
  
  /* ═══════════════════════════════════════════════════
     FOOTER
     ═══════════════════════════════════════════════════ */
  .crm-footer {
    background: var(--crm-bg);
    border-top: 1px solid var(--crm-border);
    padding: 28px 0;
  }
  
  .footer-copy {
    color: var(--crm-text-dim);
    font-size: 0.85rem;
    margin: 0;
  }
  
  /* ═══════════════════════════════════════════════════
     MODAL SHARED
     ═══════════════════════════════════════════════════ */
  .crm-modal .modal-backdrop { background: rgba(0,0,0,0.7); }
  
  .crm-modal-content {
    background: var(--crm-modal-bg);
    border: 1px solid var(--crm-border);
    border-radius: 18px;
    color: var(--crm-text);
    position: relative;
  }
  
  .crm-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--crm-border);
    color: var(--crm-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all var(--transition);
    padding: 0;
    z-index: 5;
  }
  .crm-modal-close:hover { background: rgba(255,255,255,0.1); color: var(--crm-text); }
  .btn-close.crm-modal-close { opacity: 1; filter: none; }
  
  /* ─── Auth Select Modal ─── */
  .modal-main-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--crm-text);
    letter-spacing: -0.3px;
  }
  
  .modal-main-sub {
    font-size: 0.875rem;
    color: var(--crm-text-muted);
  }
  
  .auth-type-card {
    background: var(--crm-bg-card);
    border: 1px solid var(--crm-border);
    border-radius: var(--radius-card);
    padding: 24px 16px;
    cursor: pointer;
    transition: all var(--transition);
    height: 100%;
  }
  
  .auth-type-card:hover {
    border-color: var(--crm-primary);
    background: var(--crm-bg-card-2);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  }
  
  .auth-type-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 14px;
  }
  
  .auth-type-icon--purple  { background: #a855f733; color: #c084fc; }
  .auth-type-icon--cyan    { background: #06b6d433; color: #22d3ee; }
  .auth-type-icon--teal    { background: #00c89633; color: var(--crm-primary); }
  .auth-type-icon--orange  { background: #f9731633; color: #fb923c; }
  
  .auth-type-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--crm-text);
    margin-bottom: 6px;
  }
  
  .auth-type-desc {
    font-size: 0.78rem;
    color: var(--crm-text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
  }
  
  .auth-type-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .auth-type-list li {
    font-size: 0.74rem;
    color: var(--crm-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
  }
  
  .auth-type-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--crm-primary);
    flex-shrink: 0;
  }
  
  /* ─── Login Modal (Admin / Customer) ─── */
  .login-modal-content { max-width: 420px; }
  .customer-modal-content { max-width: 420px; }
  
  .login-modal-icon {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto;
  }
  .login-modal-icon--purple {background:linear-gradient(to right bottom, #AD45FF 0%, #C800DD 100%); color: #fff; }
  .login-modal-icon--orange { background: #f9731633; color: #fb923c; }
  
  .login-modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--crm-text);
  }
  .login-modal-title span { color: var(--crm-primary); }
  #adminModal .login-modal-title span { color:oklch(0.627 0.265 303.9); }
  #adminModal .login-recover {color:rgba(173, 70, 255, 0.7) !important}
  #adminModal .crm-modal-content {
    background: rgb(1, 21, 22);
    border: 1px solid rgba(173, 70, 255, 0.2);
    border-radius: 18px;
    color: var(--crm-text);
    position: relative;
  }
  #adminModal  .crm-modal-close {
    background:transparent;
    border:none;
    color:#5C7282;
  }
  .login-modal-sub {
    font-size: 0.82rem;
    color: var(--crm-text-muted);
  }
  
  .login-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--crm-text-muted);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
  }
  
  .login-recover {
    font-size: 0.78rem;
    color: var(--crm-orange);
    text-decoration: none;
    font-weight: 600;
  }
  .login-recover:hover { text-decoration: underline; }
  
  .login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
  }
  
  .login-input-icon {
    position: absolute;
    left: 14px;
    color: var(--crm-text-muted);
    font-size: 0.9rem;
    z-index: 2;
    pointer-events: none;
  }
  
  .crm-input {
    background: var(--crm-input-bg) !important;
    border: 1px solid var(--crm-border) !important;
    color: var(--crm-text) !important;
    border-radius: var(--radius-input) !important;
    padding: 12px 44px 12px 40px !important;
    font-size: 0.875rem !important;
    width: 100%;
    transition: border-color var(--transition), box-shadow var(--transition);
  }
  .crm-input:focus {
    border-color: var(--crm-primary) !important;
    box-shadow: 0 0 0 3px var(--crm-primary-glow) !important;
    outline: none !important;
  }
  .crm-input::placeholder { color: var(--crm-text-dim) !important; }
  
  .login-eye-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--crm-text-muted);
    padding: 0;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color var(--transition);
    z-index: 2;
  }
  .login-eye-btn:hover { color: var(--crm-text); }
  
  .btn-login-submit {
    padding: 13px;
    font-size: 0.875rem;
    font-weight: 700;
    background: linear-gradient(to right, oklch(0.627 0.265 303.9) 0%, oklch(0.591 0.293 322.896) 100%);
    border-radius: var(--radius-input);
    letter-spacing: 0.3px;
    border:none;
  }
  
  .btn-login-orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff !important;
    border: none;
    transition: all var(--transition);
  }
  .btn-login-orange:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(249,115,22,0.35);
  }
  
  .woo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--crm-text-muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--crm-border);
    border-radius: 50px;
    padding: 6px 14px;
    letter-spacing: 0.3px;
  }
  
  .login-register-txt {
    font-size: 0.8rem;
    color: var(--crm-text-muted);
    margin: 0;
  }
  .login-register-link { color: var(--crm-primary); font-weight: 600; text-decoration: none; }
  .login-register-link:hover { text-decoration: underline; }
  
  /* ─── Employee Modal ─── */
  .employee-modal-content { background: var(--crm-modal-bg); border-radius: 18px; }
  
  .employee-modal-header {
    background: var(--crm-modal-bg);
    border-bottom: 1px solid var(--crm-border);
    border-radius: 18px 18px 0 0;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .employee-header-icon {
    width: 42px;
    height: 42px;
    background: rgba(6,182,212,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22d3ee;
    font-size: 1.1rem;
  }
  
  .employee-modal-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--crm-text);
  }
  .employee-modal-sub { font-size: 0.8rem; color: var(--crm-text-muted); }
  
  /* Admin strip */
  .employee-admin-card {
    background: linear-gradient(135deg, #3b1f6a 0%, #5e27ab 100%);
    border: 1px solid rgba(168,85,247,0.3);
    border-radius: var(--radius-card);
    padding: 20px;
  }
  
  .emp-admin-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(168,85,247,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c084fc;
    font-size: 1.1rem;
  }
  
  .emp-admin-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
  }
  .emp-admin-sub { font-size: 0.78rem; color: rgba(255,255,255,0.6); }
  
  .btn-full-access {
    background: rgba(168,85,247,0.2);
    border: 1px solid rgba(168,85,247,0.4);
    color: #c084fc;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    transition: all var(--transition);
    white-space: nowrap;
  }
  .btn-full-access:hover { background: rgba(168,85,247,0.35); }
  
  .employee-list-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--crm-text-muted);
    margin-bottom: 12px;
  }
  
  .employee-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--crm-bg-card);
    border: 1px solid var(--crm-border);
    border-radius: var(--radius-card);
    padding: 14px;
    cursor: pointer;
    transition: all var(--transition);
  }
  .employee-card:hover {
    border-color: rgba(0,200,150,0.3);
    background: var(--crm-bg-card-2);
  }
  
  .emp-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
  }
  
  .emp-info { flex: 1; }
  .emp-name { font-size: 0.875rem; font-weight: 700; color: var(--crm-text); }
  .emp-role { font-size: 0.76rem; color: var(--crm-text-muted); }
  
  .emp-modules {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--crm-primary);
    font-weight: 600;
  }
  .emp-modules i { font-size: 0.4rem; }
  
  .emp-login-btn {
    background: none;
    border: none;
    color: var(--crm-text-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    transition: color var(--transition);
    flex-shrink: 0;
  }
  .emp-login-btn:hover { color: var(--crm-primary); }
  
  /* ─── Business Modal ─── */
  .business-modal-content { background: var(--crm-modal-bg); border-radius: 18px; }
  
  .business-modal-header {
    background: var(--crm-modal-bg);
    border-bottom: 1px solid var(--crm-border);
    border-radius: 18px 18px 0 0;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .business-header-icon {
    width: 40px;
    height: 40px;
    background: rgba(74,144,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4c7fff;
    font-size: 1rem;
  }
  
  .business-modal-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--crm-text);
  }
  .business-modal-sub { font-size: 0.8rem; color: var(--crm-text-muted); }
  
  .secure-checkout-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--crm-text-muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--crm-border);
    border-radius: 50px;
    padding: 5px 12px;
  }
  
  .business-plan-card {
    background: var(--crm-bg-card);
    border: 1px solid var(--crm-border);
    border-radius: var(--radius-card);
    padding: 28px 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all var(--transition);
    height: 100%;
  }
  .business-plan-card:hover {
    border-color: rgba(0,200,150,0.3);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  }
  
  .business-plan-card--popular {
    border-color: var(--crm-primary);
    background: var(--crm-bg-card-2);
  }
  
  .business-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--crm-primary);
    color: #051a14;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 50px;
    letter-spacing: 0.5px;
  }
  
  .business-plan-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
  }
  .business-plan-icon--blue   { background: #1a4cff22; color: #4c7fff; }
  .business-plan-icon--teal   { background: #00c89622; color: var(--crm-primary); }
  .business-plan-icon--purple { background: #a855f722; color: #c084fc; }
  
  .business-plan-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--crm-text);
    margin-bottom: 4px;
  }
  
  .business-plan-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--crm-text);
    letter-spacing: -1px;
    margin-bottom: 6px;
  }
  .business-plan-price span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--crm-text-muted);
  }
  
  .business-plan-desc {
    font-size: 0.78rem;
    color: var(--crm-text-muted);
    margin-bottom: 16px;
  }
  
  .business-plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
  }
  .business-plan-features li {
    font-size: 0.78rem;
    color: var(--crm-text-muted);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
  }
  .business-plan-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--crm-primary);
  }
  
  /* ═══════════════════════════════════════════════════
     CHATBOT
     ═══════════════════════════════════════════════════ */
  .chat-toggle-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    color: #fff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37,99,235,0.5);
    z-index: 1100;
    transition: all var(--transition);
  }
  .chat-toggle-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 28px rgba(37,99,235,0.6);
  }
  
  /* Widget */
  .chat-widget {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: #071a12;
    border: 1px solid var(--crm-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    z-index: 1099;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  .chat-widget.is-open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  /* Chat header */
  .chat-header {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .chat-hamburger {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    padding: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color var(--transition);
  }
  .chat-hamburger:hover { color: #fff; }
  
  .chat-agent { flex: 1; }
  
  .chat-agent-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
  }
  
  .chat-agent-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
  }
  
  .chat-agent-status {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
  }
  .chat-agent-status i { color: #4ade80; font-size: 0.45rem; }
  
  .chat-header-actions { margin-left: auto; }
  
  .chat-action-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    padding: 4px 6px;
    cursor: pointer;
    transition: color var(--transition);
    display: flex;
    align-items: center;
  }
  .chat-action-btn:hover { color: #fff; }
  
  /* Chat body */
  .chat-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    min-height: 200px;
    max-height: 360px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .chat-body::-webkit-scrollbar { width: 4px; }
  .chat-body::-webkit-scrollbar-track { background: transparent; }
  .chat-body::-webkit-scrollbar-thumb { background: var(--crm-border); border-radius: 2px; }
  
  .chat-message-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }
  .chat-message-row.user {
    flex-direction: row-reverse;
  }
  
  .chat-bubble-icon {
    width: 32px;
    height: 32px;
    background: rgba(37,99,235,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 4px;
  }
  
  .chat-bubble {
    background: var(--crm-bg-card);
    border: 1px solid var(--crm-border);
    border-radius: 0 12px 12px 12px;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: var(--crm-text);
    line-height: 1.5;
    max-width: 220px;
  }
  
  .chat-message-row.user .chat-bubble {
    background: #2563eb;
    border-color: #1d4ed8;
    border-radius: 12px 0 12px 12px;
    color: #fff;
  }
  
  .chat-bubble-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .btn-chat-action {
    background: #2563eb;
    color: #fff;
    border: none;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
  }
  .btn-chat-action:hover { background: #1d4ed8; transform: translateY(-1px); }
  
  .chat-time {
    font-size: 0.65rem;
    color: var(--crm-text-dim);
    margin-top: 4px;
    padding-left: 2px;
  }
  
  /* Typing indicator */
  .chat-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: var(--crm-bg-card);
    border: 1px solid var(--crm-border);
    border-radius: 0 12px 12px 12px;
    width: fit-content;
  }
  .chat-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--crm-text-muted);
    animation: typingBounce 1.2s infinite;
  }
  .chat-typing span:nth-child(2) { animation-delay: 0.2s; }
  .chat-typing span:nth-child(3) { animation-delay: 0.4s; }
  
  @keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
  }
  
  /* Chat footer */
  .chat-footer {
    padding: 12px 14px;
    border-top: 1px solid var(--crm-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--crm-modal-bg);
  }
  
  .chat-input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--crm-text);
    font-size: 0.82rem;
    outline: none;
    padding: 4px 0;
  }
  .chat-input::placeholder { color: var(--crm-text-dim); }
  
  .chat-input-actions {
    display: flex;
    gap: 6px;
  }
  
  .chat-input-btn {
    background: none;
    border: none;
    color: var(--crm-text-muted);
    font-size: 1rem;
    padding: 4px;
    cursor: pointer;
    transition: color var(--transition);
    display: flex;
    align-items: center;
  }
  .chat-input-btn:hover { color: var(--crm-primary); }
  
  /* ═══════════════════════════════════════════════════
     RESPONSIVE TWEAKS
     ═══════════════════════════════════════════════════ */
  @media (max-width: 767.98px) {
    .section-pad { padding: 56px 0; }
    .crm-hero { padding: 100px 0 60px; }
    .cta-box { padding: 40px 24px; }
    .feature-card { padding: 22px 18px; }
    .pricing-card { padding: 28px 22px; }
    .chat-widget { bottom: 84px; right: 12px; width: calc(100vw - 24px); }
    .chat-toggle-btn { bottom: 16px; right: 16px; }
  }
  
  @media (max-width: 479.98px) {
    .hero-title { font-size: 2rem; }
    .hero-actions .btn { width: 100%; }
    .auth-type-card { padding: 18px 10px; }
  }
  
  /* ─── Modal backdrop fix ─── */
  .modal-backdrop { background-color: rgba(0,0,0,0.75) !important; }



  .custom-enterprise-authentication-modal-wrapper {
    max-width: 640px;
    width: 100%;
    margin: auto !important;   /* <-- key fix */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .custom-enterprise-authentication-bootstrap-modal {
    border-radius: 28px;
    overflow: hidden;
    background: #00191d;
    border: 1px solid rgba(0, 255, 213, 0.18);
    box-shadow:
      0 0 0 1px rgba(0, 255, 213, 0.05),
      0 25px 80px rgba(0, 0, 0, 0.65);
      width: 100%;
      max-width: 640px;
      max-height: 90vh;
      overflow-y: auto;
  }

  .custom-enterprise-authentication-modal-header-area {
    background: linear-gradient(135deg, #003f47 0%, #00492f 100%);
    padding: 34px 32px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .custom-enterprise-authentication-back-navigation-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #b6c0cf;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 28px;
    transition: 0.3s ease;
  }

  .custom-enterprise-authentication-back-navigation-btn:hover {
    color: #ffffff;
  }

  .custom-enterprise-authentication-user-profile-section {
    display: flex;
    align-items: center;
    gap: 22px;
  }

  .custom-enterprise-authentication-user-avatar-circle {
    width: 92px;
    height: 92px;
    min-width: 92px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0fd6ff 0%, #00db8c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
  }

  .custom-enterprise-authentication-user-information-block h2 {
    font-size: 32px;
    line-height: 1.1;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .custom-enterprise-authentication-user-information-block p {
    color: #a3b0bc;
    font-size: 18px;
    margin-bottom: 14px;
    font-weight: 500;
  }

  .custom-enterprise-authentication-module-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 209, 255, 0.18);
    color: #3dd9ff;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 600;
  }

  .custom-enterprise-authentication-modal-body-area {
    padding: 40px 32px 32px;
    background: #001012;
  }

  .custom-enterprise-authentication-password-label-text {
    color: #a9b1be;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
  }

  .custom-enterprise-authentication-password-input-wrapper {
    position: relative;
    margin-bottom: 24px;
  }

  .custom-enterprise-authentication-password-input-field {
    width: 100%;
    height: 72px;
    border-radius: 16px;
    border: 2px solid #00d7ff;
    background: transparent;
    padding: 0 62px 0 58px;
    color: #ffffff;
    font-size: 22px;
    outline: none;
    transition: 0.3s ease;
  }

  .custom-enterprise-authentication-password-input-field::placeholder {
    color: #73818d;
  }

  .custom-enterprise-authentication-password-input-field:focus {
    box-shadow: 0 0 0 4px rgba(0, 215, 255, 0.1);
  }

  .custom-enterprise-authentication-input-left-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: #73818d;
    font-size: 24px;
  }

  .custom-enterprise-authentication-input-right-icon {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: #73818d;
    font-size: 24px;
    cursor: pointer;
  }

  .custom-enterprise-authentication-demo-alert-box {
    background: #032847;
    border: 1px solid rgba(0, 157, 255, 0.4);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 34px;
    color: #c7d6eb;
    font-size: 18px;
    line-height: 1.5;
  }

  .custom-enterprise-authentication-demo-alert-box strong {
    color: #ffffff;
  }

  .custom-enterprise-authentication-demo-password-highlight {
    background: #29558c;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
  }

  .custom-enterprise-authentication-action-buttons-row {
    display: flex;
    gap: 18px;
  }

  .custom-enterprise-authentication-cancel-action-btn,
  .custom-enterprise-authentication-login-action-btn {
    width: 100%;
    height: 72px;
    border: none;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 700;
    transition: 0.3s ease;
  }

  .custom-enterprise-authentication-cancel-action-btn {
    background: #374156;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .custom-enterprise-authentication-cancel-action-btn:hover {
    background: #46526b;
  }

  .custom-enterprise-authentication-login-action-btn {
    background: linear-gradient(135deg, #007d8d 0%, #00954d 100%);
    color: #cfd9d4;
  }

  .custom-enterprise-authentication-login-action-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
  }

  .custom-enterprise-authentication-login-action-btn i {
    margin-right: 8px;
  }

  /* Responsive */

  @media (max-width: 767px) {
    .custom-enterprise-authentication-modal-header-area {
      padding: 24px 20px;
    }

    .custom-enterprise-authentication-user-profile-section {
      gap: 16px;
    }

    .custom-enterprise-authentication-user-avatar-circle {
      width: 72px;
      height: 72px;
      min-width: 72px;
      font-size: 30px;
    }

    .custom-enterprise-authentication-user-information-block h2 {
      font-size: 28px;
    }

    .custom-enterprise-authentication-user-information-block p {
      font-size: 18px;
    }

    .custom-enterprise-authentication-module-badge-item {
      font-size: 14px;
      padding: 6px 12px;
    }

    .custom-enterprise-authentication-modal-body-area {
      padding: 24px 20px 24px;
    }

    .custom-enterprise-authentication-password-input-field {
      height: 60px;
      font-size: 16px;
    }

    .custom-enterprise-authentication-demo-alert-box {
      font-size: 15px;
    }

    .custom-enterprise-authentication-action-buttons-row {
      flex-direction: column;
    }

    .custom-enterprise-authentication-cancel-action-btn,
    .custom-enterprise-authentication-login-action-btn {
      height: 60px;
      font-size: 18px;
    }
  }

  @media (max-width: 480px) {
    .custom-enterprise-authentication-user-profile-section {
      align-items: flex-start;
    }

    .custom-enterprise-authentication-user-information-block h2 {
      font-size: 24px;
    }

    .custom-enterprise-authentication-user-information-block p {
      font-size: 16px;
    }
  }