    /* ============== DEMO MODAL OVERLAY ============== */
    .demo-modal {
      position: fixed;
      inset: 0;
      background: rgba(13, 26, 48, 0.72);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      z-index: 1000;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 32px;
      opacity: 0;
      transition: opacity 0.25s ease;
    }
    .demo-modal.open { display: flex; opacity: 1; }
    .demo-modal-inner {
      width: 100%;
      height: 100%;
      max-width: 1500px;
      max-height: calc(100vh - 64px);
      background: #fff;
      border-radius: 14px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      box-shadow: 0 30px 80px rgba(0,0,0,0.45);
      transform: scale(0.97);
      transition: transform 0.25s ease;
    }
    .demo-modal.open .demo-modal-inner { transform: scale(1); }
    .demo-modal-header {
      padding: 14px 20px;
      background: #fff;
      border-bottom: 1px solid #E5E7EB;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-shrink: 0;
    }
    .demo-modal-title {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .demo-modal-title-text {
      font-size: 15px;
      font-weight: 700;
      color: #111827;
      letter-spacing: -0.01em;
    }
    .demo-modal-title-sub {
      font-size: 12px;
      color: #6B7280;
      margin-top: 2px;
    }
    .demo-modal-status {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 12px;
      background: #DBEAFE;
      color: #1e40af;
      border-radius: 999px;
      font-size: 11.5px;
      font-weight: 600;
    }
    .demo-modal-status .dot {
      width: 7px; height: 7px;
      background: #3b82f6;
      border-radius: 50%;
      animation: dotPulse 1s infinite;
    }
    .demo-modal-status.complete { background: #D1FAE5; color: #065F46; }
    .demo-modal-status.complete .dot { background: #10b981; animation: none; }
    @keyframes dotPulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,.5); }
      50% { box-shadow: 0 0 0 5px rgba(59,130,246,0); }
    }
    .demo-modal-close {
      width: 32px; height: 32px;
      border-radius: 50%;
      background: #F3F4F6;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #374151;
      transition: background 0.15s;
    }
    .demo-modal-close:hover { background: #E5E7EB; }
    .demo-modal-close svg { width: 14px; height: 14px; }
    .demo-modal-body {
      flex: 1;
      overflow: hidden;
      display: flex;
      min-height: 0;
      position: relative;
    }

    /* ============== TUTORIAL OVERLAY ============== */
    .tutorial-overlay {
      position: absolute;
      inset: 0;
      z-index: 50;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    .tutorial-overlay.active {
      opacity: 1;
      pointer-events: auto;
    }
    .tutorial-spotlight {
      position: absolute;
      top: 0; left: 0;
      width: 0; height: 0;
      border-radius: 10px;
      box-shadow: 0 0 0 9999px rgba(13, 26, 48, 0.72);
      pointer-events: none;
      transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
      border: 2.5px solid #FBBF24;
    }
    .tutorial-tooltip {
      position: absolute;
      width: 380px;
      background: #fff;
      border-radius: 12px;
      padding: 20px 22px;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
      pointer-events: auto;
      transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1), left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 51;
    }
    .tutorial-tooltip::before {
      content: '';
      position: absolute;
      width: 14px; height: 14px;
      background: #fff;
      transform: rotate(45deg);
      box-shadow: -2px -2px 4px rgba(0,0,0,0.05);
    }
    .tutorial-tooltip[data-arrow="up"]::before { top: -7px; left: 30px; box-shadow: -2px -2px 4px rgba(0,0,0,0.05); }
    .tutorial-tooltip[data-arrow="down"]::before { bottom: -7px; left: 30px; box-shadow: 2px 2px 4px rgba(0,0,0,0.05); }
    .tutorial-tooltip[data-arrow="left"]::before { left: -7px; top: 30px; box-shadow: -2px 2px 4px rgba(0,0,0,0.05); }
    .tutorial-tooltip[data-arrow="right"]::before { right: -7px; top: 30px; box-shadow: 2px -2px 4px rgba(0,0,0,0.05); }
    .tutorial-step-label {
      font-size: 11px;
      font-weight: 700;
      color: var(--brick);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      margin-bottom: 6px;
    }
    .tutorial-title {
      font-size: 18px;
      font-weight: 800;
      color: #111827;
      margin-bottom: 8px;
      letter-spacing: -0.01em;
      line-height: 1.3;
    }
    .tutorial-body {
      font-size: 13.5px;
      color: #4B5563;
      line-height: 1.55;
      margin-bottom: 18px;
    }
    .tutorial-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
    }
    .tutorial-progress {
      display: flex;
      gap: 4px;
    }
    .tutorial-progress-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: #E5E7EB;
      transition: background 0.2s;
    }
    .tutorial-progress-dot.done { background: #10b981; }
    .tutorial-progress-dot.active { background: var(--brick); }
    .tutorial-buttons {
      display: flex;
      gap: 8px;
    }
    .tutorial-btn {
      padding: 8px 16px;
      border-radius: 7px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      border: 1px solid #E5E7EB;
      background: #fff;
      color: #374151;
      font-family: inherit;
      transition: all 0.15s;
      white-space: nowrap;
    }
    .tutorial-btn:hover { background: #F9FAFB; }
    .tutorial-btn-primary {
      background: var(--brick);
      color: #fff;
      border-color: var(--brick);
    }
    .tutorial-btn-primary:hover { background: var(--brick-dark); color: #fff; }
    .tutorial-btn-skip {
      background: transparent;
      border: none;
      color: #6B7280;
      font-size: 12px;
      padding: 8px 4px;
    }
    .tutorial-btn-skip:hover { color: #111827; background: transparent; }

    /* ============== INTRO OVERLAY ============== */
    .intro-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, #16264A 0%, #0D1A30 100%);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 5;
      padding: 32px;
      opacity: 1;
      transition: opacity 0.7s ease;
    }
    .intro-overlay.fade-out {
      opacity: 0;
      pointer-events: none;
    }
    .intro-card {
      max-width: 640px;
      text-align: center;
    }
    .intro-badge {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 8px 18px;
      background: rgba(74, 222, 128, 0.18);
      border: 1px solid rgba(74, 222, 128, 0.4);
      border-radius: 999px;
      color: #bbf7d0;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.04em;
      margin-bottom: 28px;
    }
    .intro-badge .pulse-dot {
      width: 8px; height: 8px;
      background: #4ade80;
      border-radius: 50%;
      box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.25);
      animation: introPulse 1.6s ease-in-out infinite;
    }
    @keyframes introPulse {
      0%, 100% { box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.25); }
      50% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0.05); }
    }
    .intro-card h2 {
      font-size: clamp(28px, 4vw, 44px);
      font-weight: 900;
      letter-spacing: -0.025em;
      line-height: 1.1;
      margin-bottom: 18px;
    }
    .intro-card h2 .accent {
      color: var(--brick-light);
    }
    .intro-card p {
      font-size: clamp(15px, 1.6vw, 18px);
      color: rgba(255, 255, 255, 0.82);
      line-height: 1.6;
      margin-bottom: 28px;
    }
    .intro-steps {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      margin-bottom: 24px;
      flex-wrap: wrap;
    }
    .intro-step {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 14px;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 999px;
      font-size: 13px;
      color: rgba(255, 255, 255, 0.92);
      font-weight: 500;
    }
    .intro-step-num {
      width: 22px; height: 22px;
      background: var(--brick);
      color: #fff;
      border-radius: 50%;
      font-size: 11px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .intro-arrow {
      color: rgba(255, 255, 255, 0.4);
      font-size: 14px;
    }
    .intro-cta {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 14px 28px;
      background: var(--brick);
      color: #fff;
      border-radius: 10px;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      border: none;
      font-family: inherit;
      transition: all 0.15s;
      box-shadow: 0 8px 24px rgba(179,58,46,.32);
    }
    .intro-cta:hover {
      background: var(--brick-dark);
      transform: translateY(-2px);
      box-shadow: 0 10px 28px rgba(179,58,46,.4);
    }
    .intro-skip {
      display: block;
      margin-top: 16px;
      background: transparent;
      border: none;
      color: rgba(255,255,255,0.55);
      font-size: 12.5px;
      cursor: pointer;
      font-family: inherit;
    }
    .intro-skip:hover { color: rgba(255,255,255,0.85); }

    /* ============== GHL MOCK APP ============== */
    .ghl-app {
      background: #fff;
      display: grid;
      grid-template-columns: 240px 1fr;
      width: 100%;
      height: 100%;
      flex: 1;
      font-size: 14px;
      color: #14171F;
    }
    .ghl-app * { box-sizing: border-box; }

    /* SIDEBAR */
    .ghl-sidebar {
      background: #fff;
      border-right: 1px solid #E5E7EB;
      display: flex;
      flex-direction: column;
      overflow-y: auto;
    }
    .ghl-sidebar::-webkit-scrollbar { width: 6px; }
    .ghl-sidebar::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
    .ghl-logo { padding: 14px 14px 6px; }
    .ghl-logo-mark {
      width: 32px; height: 32px;
      border-radius: 5px;
      display: flex; align-items: center; justify-content: center;
    }
    .ghl-logo-mark svg { width: 20px; height: 24px; }
    .ghl-account { padding: 14px 12px 12px; border-bottom: 1px solid #E5E7EB; }
    .ghl-account-name {
      font-size: 13px; font-weight: 700; color: #14171F; line-height: 1.25;
      letter-spacing: -0.005em;
    }
    .ghl-account-sub { font-size: 11.5px; color: #6B7280; margin-top: 3px; }
    .ghl-search {
      margin: 8px 10px;
      display: flex; align-items: center; gap: 6px;
      padding: 5px 8px;
      border: 1px solid #E5E7EB; border-radius: 6px;
      background: #F9FAFB;
      font-size: 11.5px; color: #9CA3AF;
    }
    .ghl-search svg { width: 12px; height: 12px; }
    .ghl-search-kbd {
      margin-left: auto;
      padding: 1px 5px; background: #E5E7EB; border-radius: 3px;
      font-size: 9.5px; color: #6B7280; font-family: monospace;
    }
    .ghl-nav-spark {
      width: 18px; height: 18px; border-radius: 4px;
      background: linear-gradient(135deg, #34d399, #10b981);
      flex-shrink: 0;
      display: inline-flex; align-items: center; justify-content: center;
    }
    .ghl-nav-spark svg { width: 11px; height: 11px; color: #fff; }
    .ghl-menu { padding: 4px 0; flex: 1; }
    .ghl-menu-item {
      display: flex; align-items: center; gap: 10px;
      padding: 7px 14px;
      font-size: 12.5px; color: #374151;
      transition: background 0.15s;
    }
    .ghl-menu-item.active { background: #111827; color: #fff; }
    .ghl-menu-item.active svg { color: #fff; }
    .ghl-menu-item svg { width: 14px; height: 14px; color: #6B7280; flex-shrink: 0; }
    .ghl-menu-divider { border: 0; border-top: 1px solid #E5E7EB; margin: 6px 12px; }

    /* TOPBAR */
    .ghl-main { display: flex; flex-direction: column; background: #fff; overflow: hidden; width: 100%; }
    .ghl-topbar {
      background: #fff; border-bottom: 1px solid #E5E7EB;
      padding: 8px 16px;
      display: flex; align-items: center; justify-content: flex-end;
      gap: 10px; height: 48px; flex-shrink: 0;
    }
    .ghl-topbtn {
      width: 30px; height: 30px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center; position: relative;
    }
    .ghl-topbtn svg { width: 14px; height: 14px; color: #374151; }
    .ghl-topbtn.green { background: #10b981; }
    .ghl-topbtn.green svg { color: #fff; }
    .ghl-topbtn.bell::after {
      content: '';
      position: absolute; top: 6px; right: 6px;
      width: 7px; height: 7px; background: #ef4444; border-radius: 50%;
      border: 1.5px solid #fff;
    }
    .ghl-askai {
      background: linear-gradient(135deg, #7c3aed, #a855f7);
      color: #fff; padding: 6px 12px; border-radius: 999px;
      font-size: 12px; font-weight: 600;
      display: flex; align-items: center; gap: 5px;
    }
    .ghl-askai svg { width: 12px; height: 12px; }
    .ghl-whatsnew {
      display: flex; align-items: center; gap: 6px;
      padding: 6px 10px; background: #F3F4F6; border-radius: 999px;
      font-size: 11.5px; color: #374151; font-weight: 500;
    }
    .ghl-whatsnew-pill {
      background: #3b82f6; color: #fff;
      padding: 2px 8px; border-radius: 999px;
      font-size: 10.5px; font-weight: 600;
    }
    .ghl-avatar {
      width: 32px; height: 32px; border-radius: 50%;
      background: linear-gradient(135deg, #10b981, #059669);
      color: #fff; font-size: 12px; font-weight: 700;
      display: flex; align-items: center; justify-content: center;
      letter-spacing: 0.04em;
    }

    .ghl-content { flex: 1; overflow-y: auto; background: #fff; }

    .ghl-section-tabs {
      display: flex; align-items: center; gap: 24px;
      padding: 16px 20px 0;
    }
    .ghl-stab {
      font-size: 14px; font-weight: 500; color: #6B7280;
      padding-bottom: 12px; border-bottom: 2px solid transparent;
    }
    .ghl-stab.active {
      color: #111827; font-weight: 600; border-bottom-color: #3b82f6;
    }
    .ghl-section-header {
      padding: 16px 20px 12px;
      display: flex; align-items: center; justify-content: space-between;
      border-bottom: 1px solid #F3F4F6;
    }
    .ghl-section-title { display: flex; align-items: center; gap: 12px; }
    .ghl-section-title h2 { font-size: 17px; font-weight: 700; color: #111827; }
    .ghl-count-pill {
      background: #DBEAFE; color: #1e40af;
      padding: 4px 12px; border-radius: 999px;
      font-size: 12px; font-weight: 600;
      transition: all 0.4s ease;
    }
    .ghl-count-pill.bumped {
      background: #DBEAFE; color: #1e40af;
    }
    .ghl-section-actions { display: flex; gap: 8px; align-items: center; }
    .ghl-btn {
      padding: 6px 14px; border-radius: 6px;
      font-size: 12.5px; font-weight: 600;
      display: inline-flex; align-items: center; gap: 6px;
      border: 1px solid #E5E7EB; background: #fff; color: #374151;
    }
    .ghl-btn svg { width: 12px; height: 12px; }
    .ghl-btn-primary { background: #2563eb; color: #fff; border-color: #2563eb; }
    .ghl-btn-warning { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }

    .ghl-sub-tabs {
      padding: 0 20px;
      display: flex; gap: 6px;
      border-bottom: 1px solid #F3F4F6;
    }
    .ghl-sub-tab {
      padding: 9px 14px; font-size: 12.5px; color: #6B7280;
      border-bottom: 2px solid transparent;
      display: inline-flex; align-items: center; gap: 6px;
    }
    .ghl-sub-tab.active { color: #111827; font-weight: 600; border-bottom-color: #3b82f6; }

    .ghl-toolbar {
      padding: 12px 20px;
      display: flex; gap: 10px; align-items: center; justify-content: space-between;
      flex-wrap: wrap;
    }
    .ghl-toolbar-left { display: flex; gap: 8px; }
    .ghl-toolbar-right { display: flex; gap: 8px; align-items: center; }
    .ghl-pill {
      padding: 6px 12px; border-radius: 999px;
      font-size: 12px; color: #374151;
      background: #fff; border: 1px solid #E5E7EB;
      display: inline-flex; align-items: center; gap: 6px;
    }
    .ghl-pill.active { border-color: #3b82f6; color: #2563eb; }
    .ghl-pill svg { width: 11px; height: 11px; }
    .ghl-search-input {
      padding: 6px 10px 6px 28px;
      background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") no-repeat 8px center / 12px;
      border: 1px solid #E5E7EB; border-radius: 6px;
      font-size: 12px; color: #6B7280; min-width: 200px;
    }

    .ghl-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
    .ghl-table th {
      text-align: left; padding: 12px 16px;
      font-size: 12px; font-weight: 600; color: #6B7280;
      background: #fff; border-bottom: 1px solid #E5E7EB; white-space: nowrap;
    }
    .ghl-table td {
      padding: 14px 16px; border-bottom: 1px solid #F3F4F6;
      color: #14171F; vertical-align: middle;
    }
    .ghl-table-checkbox {
      width: 14px; height: 14px;
      border: 1.5px solid #D1D5DB; border-radius: 3px;
      display: inline-block; vertical-align: middle;
    }
    .ghl-row {
      opacity: 0; transform: translateY(-8px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .ghl-row.revealed {
      opacity: 1; transform: translateY(0);
      animation: rowFlash 2.2s ease;
    }
    @keyframes rowFlash {
      0% { background: #DBEAFE; }
      100% { background: transparent; }
    }
    .ghl-tag {
      display: inline-block; padding: 2px 8px;
      background: #FED7AA; color: #9A3412; border-radius: 4px;
      font-size: 11px; font-weight: 600;
    }
    .ghl-empty {
      padding: 60px 20px; text-align: center;
      transition: opacity 0.7s ease, max-height 0.7s ease, padding 0.7s ease;
      max-height: 400px; overflow: hidden;
    }
    .ghl-empty.hidden { opacity: 0; max-height: 0; padding: 0; }
    .ghl-empty-illus {
      width: 130px; height: 100px; margin: 0 auto 20px;
      background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 140' fill='none'><rect x='30' y='90' width='140' height='8' fill='%23E5E7EB' rx='2'/><rect x='40' y='40' width='90' height='55' fill='none' stroke='%239CA3AF' stroke-width='1.5' rx='3'/><line x1='50' y1='52' x2='110' y2='52' stroke='%23D1D5DB' stroke-width='2'/><line x1='50' y1='62' x2='100' y2='62' stroke='%23D1D5DB' stroke-width='2'/><line x1='50' y1='72' x2='105' y2='72' stroke='%23D1D5DB' stroke-width='2'/><rect x='140' y='45' width='40' height='50' fill='%23FED7AA' rx='3'/><circle cx='160' cy='75' r='6' fill='%23F97316'/><path d='M155 80 Q160 86 165 80' stroke='%23fff' stroke-width='1.5' fill='none' stroke-linecap='round'/><circle cx='157' cy='73' r='1' fill='%23fff'/><circle cx='163' cy='73' r='1' fill='%23fff'/></svg>") no-repeat center / contain;
    }
    .ghl-empty h4 { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 8px; }
    .ghl-empty p {
      font-size: 13px; color: #6B7280; line-height: 1.6;
      max-width: 320px; margin: 0 auto 18px;
    }
    .ghl-empty-btn {
      background: #2563eb; color: #fff;
      padding: 8px 18px; border-radius: 6px;
      font-size: 13px; font-weight: 600;
      display: inline-flex; align-items: center; gap: 6px; border: none;
    }
    .ghl-pagination {
      padding: 12px 20px; border-top: 1px solid #F3F4F6;
      display: flex; justify-content: space-between; align-items: center;
      font-size: 12px; color: #6B7280;
    }
    .ghl-page-controls { display: flex; align-items: center; gap: 8px; }
    .ghl-page-num {
      width: 26px; height: 26px;
      border: 1px solid #3b82f6; color: #2563eb;
      border-radius: 4px;
      display: inline-flex; align-items: center; justify-content: center;
      font-weight: 600;
    }
    .ghl-page-btn {
      padding: 4px 10px; font-size: 12px; color: #6B7280;
      border: 1px solid #E5E7EB; border-radius: 4px; background: #fff;
    }

    /* OPPORTUNITIES */
    .ghl-pipeline-selector {
      padding: 14px 20px;
      display: flex; align-items: center; gap: 12px;
      justify-content: space-between; flex-wrap: wrap;
    }
    .ghl-pipeline-selector-left { display: flex; align-items: center; gap: 12px; }
    .ghl-select {
      padding: 7px 30px 7px 14px;
      border: 1px solid #E5E7EB; border-radius: 6px;
      font-size: 13px; font-weight: 600; color: #111827;
      background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 10px center / 12px;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      outline: none;
      cursor: pointer;
      font-family: inherit;
    }
    .ghl-select:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
    .ghl-kanban {
      padding: 14px 20px;
      display: flex; gap: 14px;
      overflow-x: auto; min-height: 320px;
    }
    .ghl-col {
      min-width: 280px; width: 280px; flex-shrink: 0;
      background: #fff;
      border-radius: 8px;
    }
    .ghl-col-header {
      padding: 12px 14px;
      background: transparent;
      border-bottom: none;
    }
    .ghl-col-head-top {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 4px;
    }
    .ghl-col-name { font-size: 14px; font-weight: 700; color: #111827; }
    .ghl-col-collapse { color: #9CA3AF; cursor: pointer; }
    .ghl-col-stats { font-size: 12px; color: #6B7280; display: flex; gap: 14px; }
    .ghl-col-stats .value { font-weight: 500; color: #6B7280; }
    .ghl-col-body { padding: 4px 8px 10px; min-height: 80px; }

    .ghl-opp-card {
      background: #fff; border: 1px solid #E5E7EB; border-radius: 8px;
      padding: 14px 16px; margin-bottom: 8px;
      opacity: 0; transform: translateY(-10px);
      transition: opacity 0.7s ease, transform 0.7s ease;
      box-shadow: 0 1px 3px rgba(0,0,0,.04);
      cursor: pointer;
    }
    .ghl-opp-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
    .ghl-opp-card.revealed {
      opacity: 1; transform: translateY(0);
      animation: cardFlash 2.4s ease;
    }
    @keyframes cardFlash {
      0% { box-shadow: 0 0 0 3px #3b82f6, 0 4px 8px rgba(59,130,246,.3); }
      100% { box-shadow: 0 1px 3px rgba(0,0,0,.04); }
    }
    .ghl-opp-top {
      display: flex; align-items: flex-start; justify-content: space-between;
      gap: 10px; margin-bottom: 12px;
    }
    .ghl-opp-name {
      font-size: 14px; font-weight: 700; color: #111827;
      line-height: 1.3;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      flex: 1;
    }
    .ghl-opp-avatar {
      width: 26px; height: 26px; border-radius: 50%;
      background: #F3F4F6; border: 1px solid #E5E7EB;
      flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      color: #9CA3AF;
      position: relative;
    }
    .ghl-opp-avatar svg { width: 13px; height: 13px; }
    .ghl-opp-avatar::after {
      content: '+';
      position: absolute;
      top: -3px; right: -3px;
      width: 12px; height: 12px;
      border-radius: 50%;
      background: #fff;
      border: 1px solid #E5E7EB;
      color: #6B7280;
      font-size: 10px;
      font-weight: 700;
      line-height: 9px;
      text-align: center;
    }
    .ghl-opp-field {
      display: grid; grid-template-columns: 64px 1fr;
      gap: 10px; font-size: 12.5px;
      margin-bottom: 4px;
    }
    .ghl-opp-field-label { color: #6B7280; }
    .ghl-opp-field-value { color: #111827; font-weight: 500; }
    .ghl-opp-footer {
      display: flex; gap: 14px;
      margin-top: 12px;
      padding-top: 0;
      align-items: center;
    }
    .ghl-opp-footer svg {
      width: 14px; height: 14px; color: #9CA3AF;
      cursor: pointer;
    }
    .ghl-opp-footer-badge {
      width: 14px; height: 14px; border-radius: 50%;
      background: #3b82f6; color: #fff;
      font-size: 9px; font-weight: 700;
      display: inline-flex; align-items: center; justify-content: center;
      line-height: 1;
    }
    .ghl-pipeline-empty {
      padding: 50px 20px 30px; text-align: center;
      transition: opacity 0.7s ease, max-height 0.7s ease, padding 0.7s ease;
      max-height: 400px; overflow: hidden;
    }
    .ghl-pipeline-empty.hidden { opacity: 0; max-height: 0; padding: 0; }
    .ghl-pipeline-empty h4 { font-size: 17px; font-weight: 700; color: #111827; margin-bottom: 8px; }
    .ghl-pipeline-empty p {
      font-size: 13px; color: #6B7280; max-width: 380px; margin: 0 auto 18px; line-height: 1.6;
    }

    /* Event log */
    .ghl-event-log {
      padding: 0 20px; border-top: 1px solid #E5E7EB;
      background: #F9FAFB; font-size: 12px;
      max-height: 0; overflow: hidden;
      transition: max-height 0.4s ease, padding 0.4s ease;
      flex-shrink: 0;
    }
    .ghl-event-log.open { max-height: 170px; padding: 12px 20px; }
    .ghl-event {
      display: flex; align-items: center; gap: 8px;
      padding: 4px 0; color: #374151;
      opacity: 0; transform: translateX(-6px);
      transition: opacity 0.3s, transform 0.3s;
    }
    .ghl-event.shown { opacity: 1; transform: translateX(0); }
    .ghl-event-check {
      width: 16px; height: 16px; background: #10b981; border-radius: 50%;
      display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    }
    .ghl-event-check svg { width: 9px; height: 9px; color: #fff; }

    .ghl-menu-item { cursor: pointer; }

    /* ============ DASHBOARD (real GHL layout) ============ */
    .dash-header {
      padding: 14px 24px;
      display: flex; align-items: center; justify-content: space-between;
      border-bottom: 1px solid #F3F4F6;
      flex-wrap: wrap; gap: 12px;
    }
    .dash-body { padding: 16px 20px 24px; }
    .dash-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
    .dash-row-bottom { grid-template-columns: 2fr 1fr; }
    .dash-card-real {
      background: #fff; border: 1px solid #E5E7EB; border-radius: 10px;
      overflow: hidden;
    }
    .dash-card-real-header {
      padding: 12px 16px;
      border-bottom: 1px solid #F3F4F6;
      display: flex; align-items: center; justify-content: space-between;
      flex-wrap: wrap; gap: 8px;
    }
    .dash-card-real-title { font-size: 14px; font-weight: 700; color: #111827; }
    .dash-card-real-body { padding: 18px 16px; min-height: 200px; }
    .dash-donut {
      display: flex; flex-direction: column; align-items: center;
      gap: 12px;
    }
    .dash-donut svg { display: block; }
    .dash-donut text { font-family: 'Inter', sans-serif; }
    .dash-donut-legend {
      display: flex; align-items: center; gap: 8px;
      font-size: 12.5px; color: #374151;
    }
    .dash-donut-key {
      width: 10px; height: 10px; border-radius: 2px;
    }
    .dash-hbar-chart { padding: 0 4px; }
    .dash-hbar-row { display: grid; grid-template-columns: 50px 1fr; gap: 10px; align-items: center; margin-bottom: 8px; }
    .dash-hbar-label { font-size: 11.5px; color: #6B7280; }
    .dash-hbar-track {
      height: 24px; background: #F3F4F6; border-radius: 3px;
      position: relative; overflow: hidden;
    }
    .dash-hbar-fill {
      height: 100%; background: linear-gradient(90deg, #60a5fa, #3b82f6);
      border-radius: 3px;
      transition: width 0.6s ease;
    }
    .dash-hbar-axis {
      display: grid; grid-template-columns: 50px repeat(7, 1fr);
      font-size: 10px; color: #9CA3AF;
      padding-top: 4px;
    }
    .dash-hbar-axis span:first-child { grid-column: 1; }
    .dash-hbar-axis span { text-align: left; }
    .dash-funnel {
      display: flex; flex-direction: column; gap: 2px;
    }
    .dash-funnel-row {
      display: grid; grid-template-columns: 110px 1fr 60px;
      align-items: center;
      padding: 6px 0;
      font-size: 12px;
    }
    .dash-funnel-label { color: #374151; font-weight: 500; }
    .dash-funnel-bar {
      height: 22px; background: #93c5fd;
      border-radius: 3px;
      position: relative;
      display: flex; align-items: center; padding-left: 10px;
      color: #fff; font-weight: 700; font-size: 11px;
    }
    .dash-funnel-bar.active { background: #3b82f6; }
    .dash-funnel-bar.empty { background: #E5E7EB; }
    .dash-funnel-pct { text-align: right; font-size: 11px; color: #6B7280; }
    .dash-stage-dist {
      display: flex; flex-direction: column; gap: 10px;
    }
    .dash-stage-row {
      display: grid; grid-template-columns: 14px 1fr auto;
      align-items: center; gap: 10px;
      font-size: 12.5px;
    }
    .dash-stage-dot { width: 10px; height: 10px; border-radius: 2px; }
    .dash-stage-name { color: #374151; }
    .dash-stage-name strong { color: #111827; font-weight: 600; }
    .dash-stage-pct { color: #6B7280; font-size: 11.5px; }

    /* ============ CONVERSATIONS (real GHL layout) ============ */
    .conv-shell {
      display: grid; grid-template-columns: 320px 1fr 280px;
      height: calc(100% - 50px);
      overflow: hidden;
    }
    .conv-list {
      border-right: 1px solid #E5E7EB;
      display: flex; flex-direction: column;
      background: #fff;
      overflow: hidden;
    }
    .conv-list-header {
      padding: 14px 16px;
      display: flex; align-items: center; justify-content: space-between;
      border-bottom: 1px solid #F3F4F6;
    }
    .conv-filter-row {
      display: flex; gap: 6px; padding: 8px 10px;
      border-bottom: 1px solid #F3F4F6;
    }
    .conv-filter {
      display: inline-flex; align-items: center; gap: 5px;
      padding: 5px 9px; border-radius: 6px;
      font-size: 11.5px; color: #6B7280; font-weight: 500;
      cursor: pointer;
    }
    .conv-filter.active { background: #EFF6FF; color: #2563eb; }
    .conv-filter svg { color: currentColor; }
    .conv-select-all {
      padding: 8px 16px; font-size: 11.5px; color: #6B7280;
      border-bottom: 1px solid #F3F4F6;
      display: flex; align-items: center; gap: 8px;
    }
    .conv-items { flex: 1; overflow-y: auto; }
    .conv-item {
      display: grid; grid-template-columns: 16px 36px 1fr auto; gap: 10px; align-items: flex-start;
      padding: 12px 14px; border-bottom: 1px solid #F3F4F6; cursor: pointer;
    }
    .conv-item:hover { background: #F9FAFB; }
    .conv-item.active { background: #EFF6FF; }
    .conv-avatar {
      width: 36px; height: 36px; border-radius: 50%;
      color: #fff; font-weight: 700; font-size: 12.5px;
      display: flex; align-items: center; justify-content: center;
      position: relative;
    }
    .conv-avatar-channel {
      position: absolute;
      bottom: -3px; right: -3px;
      width: 16px; height: 16px;
      background: #fff; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      border: 1.5px solid #fff;
      box-shadow: 0 0 0 1px #E5E7EB;
    }
    .conv-avatar-channel svg { width: 9px; height: 9px; }
    .conv-name { font-size: 13px; color: #111827; font-weight: 600; line-height: 1.3; }
    .conv-name-row { display: flex; align-items: center; gap: 4px; }
    .conv-name-row svg { color: #6B7280; flex-shrink: 0; }
    .conv-preview { font-size: 12px; color: #6B7280; line-height: 1.4; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
    .conv-time { font-size: 11px; color: #9CA3AF; padding-top: 2px; }
    .conv-thread {
      display: flex; flex-direction: column;
      background: #F9FAFB;
      overflow: hidden;
    }
    .conv-thread-header {
      padding: 12px 18px; background: #fff;
      border-bottom: 1px solid #E5E7EB;
      display: flex; align-items: center; justify-content: space-between;
    }
    .conv-avatar-thread {
      width: 30px; height: 30px; border-radius: 50%;
      background: #f59e0b; color: #fff; font-weight: 700;
      font-size: 11px; display: flex; align-items: center; justify-content: center;
    }
    .conv-thread-messages {
      flex: 1; padding: 12px 24px; overflow-y: auto;
      display: flex; flex-direction: column; gap: 12px;
    }
    .conv-alert-card {
      background: #fff; border: 1px solid #E5E7EB; border-radius: 8px;
      overflow: hidden;
    }
    .conv-alert-header {
      padding: 8px 14px; background: #F3F4F6;
      font-size: 12px; font-weight: 600; color: #374151;
      display: flex; align-items: center; justify-content: space-between;
    }
    .conv-alert-body {
      padding: 12px 14px;
      display: grid; grid-template-columns: 28px 1fr auto;
      gap: 10px; align-items: center;
    }
    .conv-alert-icon {
      width: 28px; height: 28px; border-radius: 6px;
      background: var(--brick); color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-weight: 800; font-size: 11px;
    }
    .conv-alert-body-text { font-size: 12.5px; color: #374151; line-height: 1.4; }
    .conv-alert-body-text strong { color: #111827; }
    .conv-alert-meta { font-size: 11px; color: #6B7280; display: flex; gap: 8px; align-items: center; }
    .conv-thread-composer {
      padding: 10px 16px; background: #fff;
      border-top: 1px solid #E5E7EB;
      display: flex; align-items: center; gap: 8px;
    }
    .conv-thread-composer input {
      flex: 1; padding: 8px 12px; border: 1px solid #E5E7EB;
      border-radius: 6px; font-size: 13px; color: #6B7280;
      font-family: inherit;
    }
    .conv-send-btn {
      width: 32px; height: 32px; border-radius: 50%;
      background: #3b82f6; color: #fff; border: none;
      display: flex; align-items: center; justify-content: center; cursor: pointer;
    }
    .conv-details {
      border-left: 1px solid #E5E7EB;
      background: #fff;
      overflow-y: auto;
    }
    .conv-details-header {
      padding: 12px 16px;
      border-bottom: 1px solid #F3F4F6;
      display: flex; align-items: center; justify-content: space-between;
    }
    .conv-details-body { padding: 16px; }
    .conv-detail-field {
      margin-bottom: 12px;
    }
    .conv-detail-label {
      font-size: 11px; color: #6B7280;
      letter-spacing: 0.04em;
    }
    .conv-detail-value {
      font-size: 13px; color: #111827; font-weight: 500;
      padding: 5px 0; border-bottom: 1px solid #F3F4F6;
      word-break: break-word;
    }
    .conv-detail-section {
      padding: 12px 0;
      border-top: 1px solid #F3F4F6;
      margin-top: 12px;
    }
    .conv-detail-section-title {
      font-size: 12px; font-weight: 700; color: #111827;
      margin-bottom: 10px;
    }

    /* ============ CALENDARS ============ */
    .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid #E5E7EB; border-radius: 8px; overflow: hidden; }
    .cal-h { background: #F9FAFB; padding: 10px 8px; font-size: 11px; font-weight: 700; color: #6B7280; text-transform: uppercase; letter-spacing: 0.06em; text-align: left; border-right: 1px solid #E5E7EB; border-bottom: 1px solid #E5E7EB; }
    .cal-h:last-child { border-right: none; }
    .cal-d { background: #fff; padding: 8px 10px; min-height: 76px; border-right: 1px solid #F3F4F6; border-bottom: 1px solid #F3F4F6; font-size: 12.5px; color: #374151; position: relative; display: flex; flex-direction: column; gap: 4px; }
    .cal-d:nth-child(7n) { border-right: none; }
    .cal-d.off { color: #D1D5DB; background: #FAFAF9; }
    .cal-d.today { background: #EFF6FF; font-weight: 800; color: #1e40af; }
    .cal-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 3px; }
    .cal-dot.blue { background: #3b82f6; }
    .cal-dot.green { background: #10b981; }
    .cal-dot.orange { background: #f59e0b; }

    /* ============ AUTOMATION / WORKFLOW ============ */
    .wf-tabs {
      display: flex;
      border-bottom: 1px solid #E5E7EB;
      background: #fff;
      padding: 0 20px;
    }
    .wf-tab {
      background: transparent;
      border: none;
      padding: 12px 16px;
      cursor: pointer;
      font-family: inherit;
      font-size: 13px;
      color: #6B7280;
      border-bottom: 2px solid transparent;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-bottom: -1px;
    }
    .wf-tab:hover { color: #111827; }
    .wf-tab.active {
      color: #111827;
      border-bottom-color: #3b82f6;
    }
    .wf-tab-name { font-weight: 600; }
    .wf-canvas {
      padding: 18px 20px 24px; display: flex; flex-direction: column; align-items: center; gap: 0;
      background: linear-gradient(180deg, #F9FAFB 0%, #fff 100%);
    }
    .wf-node-wait { background: #F9FAFB !important; border-style: dashed !important; }
    .wf-node {
      display: grid; grid-template-columns: 36px 1fr; gap: 11px; align-items: center;
      background: #fff; border: 1px solid #E5E7EB; border-radius: 8px;
      padding: 10px 16px;
      width: 380px !important; max-width: 380px !important; min-width: 380px !important;
      box-sizing: border-box;
      box-shadow: 0 1px 3px rgba(13,26,48,.04);
    }
    .wf-node.trigger { background: linear-gradient(135deg, #FEF3C7, #FDE68A); border-color: #F59E0B; }
    .wf-node-icon {
      width: 32px; height: 32px; border-radius: 6px;
      background: #f59e0b;
      display: flex; align-items: center; justify-content: center;
      color: #fff;
    }
    .wf-node-icon svg { width: 16px; height: 16px; }
    .wf-node-type { font-size: 9px; font-weight: 700; color: #6B7280; letter-spacing: 0.07em; text-transform: uppercase; }
    .wf-node-title { font-size: 13px; font-weight: 700; color: #111827; margin: 1px 0; line-height: 1.2; }
    .wf-node-sub { font-size: 11px; color: #6B7280; line-height: 1.3; }
    .wf-arrow {
      width: 2px; height: 14px; background: #D1D5DB; position: relative;
    }
    .wf-arrow::after {
      content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
      border-left: 4px solid transparent; border-right: 4px solid transparent;
      border-top: 6px solid #D1D5DB;
    }

    /* ============ REPORTING CHARTS ============ */
    .rep-chart { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: flex-end; height: 200px; padding: 18px 0 0; }
    .rep-bar {
      background: linear-gradient(180deg, #93c5fd 0%, #3b82f6 100%);
      border-radius: 6px 6px 0 0; position: relative; min-height: 30px;
      display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px;
      color: #fff; font-size: 11px; font-weight: 700;
    }
    .rep-bar.active { background: linear-gradient(180deg, #34d399 0%, #10b981 100%); }
    .rep-bar span { font-size: 11px; color: #fff; font-weight: 600; }

    /* ============ PLACEHOLDER VIEWS ============ */
    .placeholder-view { padding: 30px 24px; }
    .placeholder-view h2 { font-size: 22px; font-weight: 800; color: #111827; margin-bottom: 8px; letter-spacing: -0.01em; }
    .placeholder-view > p { font-size: 13.5px; color: #6B7280; margin-bottom: 22px; max-width: 640px; line-height: 1.6; }
    .placeholder-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
    .placeholder-tiles > div { padding: 14px 16px; background: #fff; border: 1px solid #E5E7EB; border-radius: 8px; font-size: 13px; color: #374151; }
    .tile-row { display: flex; align-items: center; gap: 10px; }
    .tile-check {
      width: 18px; height: 18px; border-radius: 50%;
      border: 2px solid #D1D5DB; flex-shrink: 0;
      display: inline-flex; align-items: center; justify-content: center;
    }
    .tile-check.done {
      background: #10b981; border-color: #10b981;
    }
    .tile-check.done::after {
      content: ''; display: block;
      width: 5px; height: 9px;
      border: solid #fff; border-width: 0 2px 2px 0;
      transform: rotate(45deg) translateY(-1px);
    }
    .agent-tile { padding: 14px 16px; }
    .agent-tile-head { display: flex; align-items: flex-start; gap: 12px; }
    .agent-icon {
      width: 36px; height: 36px; border-radius: 8px;
      background: #EFF6FF; color: #2563eb;
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    }
    .agent-icon svg { width: 18px; height: 18px; }
    .agent-sub { color: #6B7280; font-size: 12px; margin-top: 3px; line-height: 1.5; }
    .settings-tile {
      display: flex; align-items: center; gap: 10px;
      padding: 14px 16px; font-size: 13px; color: #374151;
    }
    .settings-tile svg { width: 16px; height: 16px; color: #6B7280; flex-shrink: 0; }
    .media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
    .media-tile {
      display: flex; align-items: center; gap: 10px;
      padding: 14px 16px; background: #fff; border: 1px solid #E5E7EB;
      border-radius: 8px; font-size: 12.5px; color: #374151;
    }
    .media-ext {
      padding: 3px 7px; border-radius: 4px;
      font-size: 9.5px; font-weight: 700; letter-spacing: 0.05em;
      flex-shrink: 0;
    }
    .media-ext.img { background: #DBEAFE; color: #1e40af; }
    .media-ext.vid { background: #FED7AA; color: #9A3412; }
    .media-ext.doc { background: #E0E7FF; color: #3730A3; }

    /* Mobile */
    @media (max-width: 720px) {
      .demo-modal { padding: 0; }
      .demo-modal-inner { max-height: 100vh; border-radius: 0; }
      .ghl-app { grid-template-columns: 50px 1fr; height: calc(100vh - 60px); }
      .ghl-account, .ghl-account-name, .ghl-account-sub, .ghl-search, .ghl-menu-item span { display: none; }
      .ghl-menu-item { justify-content: center; padding: 10px; }
      .ghl-whatsnew, .ghl-askai span { display: none; }
    }