    :root {
      --burgundy: #722F37;
      --burgundy-light: #8B3A44;
      --burgundy-dark: #5C252C;
      --cream: #FDF8F3;
      --warm-white: #FEFCFA;
      --gold: #D4AF37;
      --gold-light: #F0E6C8;
      --charcoal: #3D3630;
      --soft-gray: #9E9890;
      --success: #4CAF50;
      --warning: #FF9800;
      --danger: #f44336;
      --info: #2196F3;
      /* Dark mode vars */
      --bg-primary: #FDF8F3;
      --bg-secondary: #FEFCFA;
      --bg-card: white;
      --text-primary: #3D3630;
      --text-secondary: #9E9890;
      --border-color: #e0d6cc;
    }

    /* Dark Mode */
    [data-theme="dark"] {
      --cream: #1a1a1a;
      --warm-white: #242424;
      --bg-primary: #1a1a1a;
      --bg-secondary: #242424;
      --bg-card: #2d2d2d;
      --text-primary: #e8e8e8;
      --text-secondary: #a0a0a0;
      --charcoal: #e8e8e8;
      --soft-gray: #a0a0a0;
      --border-color: #404040;
    }

    [data-theme="dark"] .sidebar {
      background: #242424;
      border-right-color: #404040;
    }

    [data-theme="dark"] .card,
    [data-theme="dark"] .stat-card,
    [data-theme="dark"] .modal,
    [data-theme="dark"] .client-card,
    [data-theme="dark"] .booking-card,
    [data-theme="dark"] .template-btn,
    [data-theme="dark"] .insight-card,
    [data-theme="dark"] .timeline-content {
      background: var(--bg-card);
      border-color: var(--border-color);
    }

    [data-theme="dark"] .stat-label {
      color: #b0b0b0;
    }

    [data-theme="dark"] .stat-value {
      color: #ffffff;
    }

    [data-theme="dark"] .insights-panel {
      background: linear-gradient(135deg, #2d2520 0%, #1a1a1a 100%);
      border-color: #5c4a3a;
    }

    [data-theme="dark"] input,
    [data-theme="dark"] select,
    [data-theme="dark"] textarea {
      background: var(--bg-card);
      color: var(--text-primary);
      border-color: var(--border-color);
    }

    [data-theme="dark"] .client-filter-btn {
      background: var(--bg-card);
      border-color: var(--border-color);
      color: var(--text-primary);
    }

    [data-theme="dark"] .client-filter-btn.active {
      background: var(--burgundy);
      color: white;
    }

    [data-theme="dark"] table th {
      background: #2d2d2d;
    }

    [data-theme="dark"] table td {
      border-color: var(--border-color);
    }

    [data-theme="dark"] .detail-grid {
      background: var(--bg-card);
    }

    [data-theme="dark"] .stat-label {
      color: #b0b0b0;
    }

    [data-theme="dark"] .stat-value {
      color: #ffffff;
    }

    [data-theme="dark"] .btn-secondary {
      background: #5a4a3a;
      color: #f0e6c8;
      border-color: #7a6a5a;
    }

    [data-theme="dark"] .btn-secondary:hover {
      background: var(--gold);
      color: #1a1a1a;
    }

    [data-theme="dark"] .btn-outline {
      border-color: var(--burgundy-light);
      color: var(--burgundy-light);
    }

    [data-theme="dark"] .btn-outline:hover {
      background: rgba(185, 28, 28, 0.2);
      color: #ffffff;
    }

    [data-theme="dark"] .badge {
      background: #3a5a7a;
      color: #e8e8e8;
    }

    [data-theme="dark"] .action-btn {
      background: #4a4a4a;
      color: #e8e8e8;
      border-color: #5a5a5a;
    }

    [data-theme="dark"] .action-btn:hover {
      background: #5a5a5a;
      color: #ffffff;
    }

    [data-theme="dark"] .detail-label {
      color: #b0b0b0;
    }

    [data-theme="dark"] .detail-value {
      color: #ffffff;
    }

    [data-theme="dark"] .btn-outline:hover {
      background: var(--burgundy-light);
      color: #1a1a1a;
    }

    [data-theme="dark"] .badge {
      background: #3a5a7a;
      color: #e8e8e8;
    }

    [data-theme="dark"] .action-btn {
      background: #4a4a4a;
      color: #e8e8e8;
      border-color: #5a5a5a;
    }

    [data-theme="dark"] .action-btn:hover {
      background: #5a5a5a;
      color: #ffffff;
    }

    [data-theme="dark"] .btn-primary:hover {
      background: var(--burgundy);
      color: white;
    }

    [data-theme="dark"] .detail-item {
      color: #e8e8e8;
    }

    [data-theme="dark"] .detail-label {
      color: #b0b0b0;
    }

    [data-theme="dark"] .detail-value {
      color: #ffffff;
    }

    [data-theme="dark"] .template-btn {
      background: #3a3a3a;
      border-color: #5a5a5a;
      color: #e8e8e8;
    }

    [data-theme="dark"] .badge-pending { background: #5a4a1a; color: #f0d070; }
    [data-theme="dark"] .badge-confirmed { background: #1a3a1a; color: #70e090; }
    [data-theme="dark"] .badge-completed { background: #1a2a4a; color: #70b0ff; }
    [data-theme="dark"] .badge-cancelled { background: #4a1a1a; color: #ff7070; }

    [data-theme="dark"] .form-label {
      color: var(--text-primary);
    }

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

    /* Global subtle animations */
    *, *::before, *::after {
      transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }

    /* Page fade in */
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes pulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.02); }
    }

    @keyframes shimmer {
      0% { background-position: -200% 0; }
      100% { background-position: 200% 0; }
    }

    .page.active {
      animation: fadeInUp 0.3s ease;
    }

    /* Loading skeleton */
    .skeleton {
      background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
      background-size: 200% 100%;
      animation: shimmer 1.5s infinite;
      border-radius: 4px;
    }

    [data-theme="dark"] .skeleton {
      background: linear-gradient(90deg, #2d2d2d 25%, #3d3d3d 50%, #2d2d2d 75%);
      background-size: 200% 100%;
    }

    /* Card hover effects */
    .client-card, .insight-card, .stat-card {
      transition: transform 0.2s ease, box-shadow 0.3s ease;
    }

    .stat-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }

    /* Button press effect */
    .btn:active {
      transform: scale(0.98);
    }

    /* Badge pulse for new items */
    .badge.gold-badge {
      animation: pulse 2s infinite;
    }

    /* Smooth modal transitions */
    .modal-overlay {
      transition: opacity 0.2s ease;
    }

    .modal-overlay.active .modal {
      animation: fadeInUp 0.25s ease;
    }

    /* Focus states for accessibility */
    button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
      outline: 2px solid var(--gold);
      outline-offset: 2px;
    }

    /* Hover ripple effect for nav items */
    .nav-item::after {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
      opacity: 0;
      transition: opacity 0.3s;
      pointer-events: none;
    }

    .nav-item:hover::after {
      opacity: 1;
    }

    .nav-item {
      position: relative;
    }

    body {
      font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
      background: var(--cream);
      color: var(--charcoal);
      line-height: 1.6;
    }

    /* ============ LOGIN ============ */
    .login-container {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
    }

    .login-card {
      background: var(--warm-white);
      padding: 40px;
      border-radius: 16px;
      width: 100%;
      max-width: 400px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }

    .login-card h1 {
      font-family: Georgia, 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
      font-size: 28px;
      color: var(--burgundy);
      text-align: center;
      margin-bottom: 30px;
    }

    .login-card input {
      width: 100%;
      padding: 14px 18px;
      border: 2px solid #e0d6cc;
      border-radius: 8px;
      font-size: 16px;
      margin-bottom: 16px;
      transition: border-color 0.3s;
    }

    .login-card input:focus {
      outline: none;
      border-color: var(--burgundy);
    }

    .login-card button {
      width: 100%;
      padding: 14px;
      background: var(--burgundy);
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
    }

    .login-card button:hover {
      background: var(--burgundy-dark);
      transform: translateY(-2px);
    }

    .login-error {
      color: var(--danger);
      text-align: center;
      margin-top: 16px;
      display: none;
    }

    /* ============ DASHBOARD LAYOUT ============ */
    .dashboard { display: none; }
    
    .sidebar {
      position: fixed;
      left: 0;
      top: 0;
      width: 260px;
      height: 100vh;
      background: linear-gradient(180deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
      color: white;
      padding: 20px 0;
      overflow-y: auto;
      z-index: 100;
      transition: transform 0.3s;
    }

    .sidebar-header {
      padding: 20px 24px;
      border-bottom: 1px solid rgba(255,255,255,0.1);
      margin-bottom: 20px;
    }

    .sidebar-header h2 {
      font-family: Georgia, 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
      font-size: 24px;
      margin-bottom: 4px;
    }

    .sidebar-header small {
      opacity: 0.7;
      font-size: 12px;
    }

    .nav-menu { list-style: none; }

    .nav-item {
      padding: 14px 24px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 12px;
      transition: all 0.2s;
      border-left: 3px solid transparent;
      -webkit-user-select: none;
      user-select: none;
    }

    .nav-item:hover, .nav-item.active {
      background: rgba(255,255,255,0.1);
      border-left-color: var(--gold);
    }

    .nav-item.active {
      background: rgba(255,255,255,0.15);
    }

    .nav-icon {
      width: 20px;
      text-align: center;
      font-size: 16px;
      pointer-events: none;
    }
    
    .nav-item .badge {
      pointer-events: none;
    }

    .nav-divider {
      height: 1px;
      background: rgba(255,255,255,0.1);
      margin: 16px 0;
    }

    /* Theme Toggle */
    .theme-toggle {
      margin: 16px;
      padding: 12px 16px;
      background: rgba(255,255,255,0.1);
      border-radius: 8px;
      display: flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
      transition: all 0.2s;
      font-size: 14px;
    }

    .theme-toggle:hover {
      background: rgba(255,255,255,0.2);
    }

    [data-theme="dark"] .theme-toggle {
      background: rgba(255,255,255,0.05);
    }

    .main-content {
      margin-left: 260px;
      padding: 24px;
      min-height: 100vh;
    }

    /* ============ PAGES ============ */
    .page {
      display: none;
    }

    .page.active {
      display: block;
    }

    /* ============ HEADER ============ */
    .page-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 24px;
      flex-wrap: wrap;
      gap: 16px;
    }

    .page-title {
      font-family: Georgia, 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
      font-size: 32px;
      color: var(--burgundy);
    }

    .header-actions {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    /* ============ STATS CARDS ============ */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      margin-bottom: 30px;
    }

    .stat-card {
      background: white;
      padding: 24px;
      border-radius: 12px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.06);
      border-left: 4px solid var(--burgundy);
    }

    .stat-card.success { border-left-color: var(--success); }
    .stat-card.warning { border-left-color: var(--warning); }
    .stat-card.info { border-left-color: var(--info); }
    .stat-card.gold { border-left-color: var(--gold); }

    .stat-label {
      font-size: 13px;
      color: var(--soft-gray);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 8px;
    }

    .stat-value {
      font-size: 32px;
      font-weight: 600;
      color: var(--charcoal);
    }

    .stat-change {
      font-size: 13px;
      margin-top: 8px;
    }

    .stat-change.positive { color: var(--success); }
    .stat-change.negative { color: var(--danger); }

    /* ============ SMART INSIGHTS ============ */
    .insights-panel {
      background: linear-gradient(135deg, #fff9f0 0%, #fff5eb 100%);
      border: 2px solid #ffd9b3;
      border-radius: 16px;
      padding: 24px;
      margin-bottom: 30px;
    }

    .insight-count {
      background: var(--burgundy);
      color: white;
      padding: 4px 10px;
      border-radius: 12px;
      font-size: 13px;
    }

    .insights-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .insight-card {
      background: white;
      border-radius: 12px;
      padding: 16px;
      display: flex;
      align-items: center;
      gap: 16px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
      transition: all 0.2s;
      cursor: pointer;
    }

    .insight-card:hover {
      transform: translateX(4px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .insight-icon {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      flex-shrink: 0;
    }

    .insight-icon.urgent { background: #ffebee; }
    .insight-icon.important { background: #fff3e0; }
    .insight-icon.info { background: #e3f2fd; }
    .insight-icon.success { background: #e8f5e9; }

    .insight-content {
      flex: 1;
    }

    .insight-title {
      font-weight: 600;
      margin-bottom: 4px;
    }

    .insight-desc {
      font-size: 13px;
      color: var(--soft-gray);
    }

    .insight-action {
      padding: 8px 16px;
      background: var(--burgundy);
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 12px;
      cursor: pointer;
      white-space: nowrap;
    }

    .insight-action:hover {
      background: var(--burgundy-light);
    }

    .insights-empty {
      text-align: center;
      padding: 32px;
      color: var(--soft-gray);
    }

    /* ============ BUTTONS ============ */
    .btn {
      padding: 10px 20px;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: all 0.2s;
    }

    .btn-primary {
      background: var(--burgundy);
      color: white;
    }

    .btn-primary:hover {
      background: var(--burgundy-dark);
    }

    .btn-secondary {
      background: var(--gold-light);
      color: var(--charcoal);
    }

    .btn-secondary:hover {
      background: var(--gold);
      color: white;
    }

    .btn-success {
      background: var(--success);
      color: white;
    }

    .btn-danger {
      background: var(--danger);
      color: white;
    }

    .btn-outline {
      background: transparent;
      border: 2px solid var(--burgundy);
      color: var(--burgundy);
    }

    .btn-outline:hover {
      background: var(--burgundy);
      color: white;
    }

    .btn-sm {
      padding: 6px 12px;
      font-size: 13px;
    }

    .btn-icon {
      padding: 8px;
      min-width: auto;
    }

    /* ============ MESSAGE TEMPLATES ============ */
    .template-btn {
      padding: 6px 12px;
      border: 1px solid #e0d6cc;
      border-radius: 16px;
      background: #faf8f5;
      cursor: pointer;
      font-size: 12px;
      transition: all 0.2s;
      white-space: nowrap;
    }

    .template-btn:hover {
      background: var(--burgundy);
      color: white;
      border-color: var(--burgundy);
      transform: translateY(-1px);
    }

    /* ============ CARDS & PANELS ============ */
    .card {
      background: white;
      border-radius: 12px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.06);
      margin-bottom: 24px;
    }

    .card-header {
      padding: 20px 24px;
      border-bottom: 1px solid #eee;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 12px;
    }

    .card-title {
      font-family: Georgia, 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
      font-size: 20px;
      color: var(--burgundy);
    }

    .card-body {
      padding: 24px;
    }

    /* ============ TABLES ============ */
    .table-container {
      overflow-x: auto;
    }

    table {
      width: 100%;
      border-collapse: collapse;
    }

    th, td {
      padding: 14px 16px;
      text-align: left;
      border-bottom: 1px solid #eee;
    }

    th {
      background: var(--cream);
      font-weight: 600;
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--soft-gray);
    }

    tr:hover {
      background: #faf8f5;
    }

    /* ============ BOOKING CARDS ============ */
    .bookings-card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 16px;
      width: 100%;
      box-sizing: border-box;
    }

    .booking-card {
      background: white;
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
      border: 1px solid #e0d6cc;
      transition: box-shadow 0.2s, transform 0.2s;
      display: flex;
      flex-direction: column;
      gap: 12px;
      box-sizing: border-box;
      overflow: hidden;
    }

    .bookings-card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
      gap: 16px;
      width: 100%;
      box-sizing: border-box;
    }

    .booking-card:hover {
      box-shadow: 0 4px 16px rgba(0,0,0,0.12);
      transform: translateY(-2px);
    }

    .booking-card-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
    }

    .booking-card-client {
      flex: 1;
      min-width: 0;
    }

    .booking-card-name {
      font-size: 18px;
      font-weight: 600;
      color: var(--charcoal);
      margin-bottom: 4px;
      word-wrap: break-word;
      overflow-wrap: break-word;
    }

    .booking-card-contact {
      font-size: 13px;
      color: var(--soft-gray);
      word-wrap: break-word;
      overflow-wrap: break-word;
    }

    .booking-card-details {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      padding: 12px 0;
      border-top: 1px solid #f0ebe5;
      border-bottom: 1px solid #f0ebe5;
    }

    .booking-card-detail {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .booking-card-detail-label {
      font-size: 11px;
      text-transform: uppercase;
      color: var(--soft-gray);
      letter-spacing: 0.5px;
    }

    .booking-card-detail-value {
      font-size: 14px;
      color: var(--charcoal);
      font-weight: 500;
      word-wrap: break-word;
      overflow-wrap: break-word;
    }

    .booking-card-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: auto;
    }

    .booking-card-actions .action-btn {
      flex: 0 0 auto;
    }

    .booking-card-empty {
      grid-column: 1 / -1;
      text-align: center;
      padding: 40px 20px;
      color: var(--soft-gray);
      font-size: 15px;
    }

    /* ============ STATUS BADGES ============ */
    .badge {
      padding: 4px 12px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
    }

    .badge-pending { background: #fff3cd; color: #856404; }
    .badge-confirmed { background: #d4edda; color: #155724; }
    .badge-completed { background: #cce5ff; color: #004085; }
    .badge-cancelled { background: #f8d7da; color: #721c24; }

    /* ============ FORMS ============ */
    .form-group {
      margin-bottom: 20px;
    }

    .form-label {
      display: block;
      font-weight: 500;
      margin-bottom: 8px;
      color: var(--charcoal);
    }

    .form-input, .form-select, .form-textarea, .form-control {
      width: 100%;
      padding: 12px 16px;
      border: 2px solid #e0d6cc;
      border-radius: 8px;
      font-size: 15px;
      font-family: inherit;
      transition: border-color 0.3s;
      background: white;
      color: var(--charcoal);
    }

    .form-input:focus, .form-select:focus, .form-textarea:focus, .form-control:focus {
      outline: none;
      border-color: var(--burgundy);
    }

    .form-textarea {
      min-height: 120px;
      resize: vertical;
    }

    /* Dark mode form controls */
    [data-theme="dark"] .form-input,
    [data-theme="dark"] .form-select,
    [data-theme="dark"] .form-textarea,
    [data-theme="dark"] .form-control {
      background: var(--bg-card);
      color: var(--text-primary);
      border-color: var(--border-color);
    }

    [data-theme="dark"] .form-input:focus,
    [data-theme="dark"] .form-select:focus,
    [data-theme="dark"] .form-textarea:focus,
    [data-theme="dark"] .form-control:focus {
      border-color: var(--burgundy);
    }

    /* Modal close button */
    .modal-close-btn {
      position: absolute;
      top: 15px;
      right: 15px;
      background: none;
      border: none;
      font-size: 28px;
      color: var(--soft-gray);
      cursor: pointer;
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      transition: all 0.2s;
    }

    .modal-close-btn:hover {
      background: rgba(0,0,0,0.1);
      color: var(--burgundy);
    }

    [data-theme="dark"] .modal-close-btn:hover {
      background: rgba(255,255,255,0.1);
    }

    .form-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 16px;
    }

    /* ============ TABS - CLEAN UNDERLINE STYLE ============ */
    .tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 0;
      margin-bottom: 0;
      padding: 0 16px;
      position: relative;
      border-bottom: 2px solid #e0d6cc;
      align-items: stretch;
      background: #faf6f1;
      border-radius: 10px 10px 0 0;
    }

    .tab {
      position: relative;
      padding: 13px 22px;
      cursor: pointer;
      font-weight: 600;
      font-size: 14px;
      color: #8a7968;
      background: transparent;
      border: none;
      border-bottom: 3px solid transparent;
      border-radius: 0;
      white-space: nowrap;
      transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
      flex-shrink: 0;
      margin-bottom: -2px;
    }

    .tab:hover {
      color: var(--burgundy);
      background: rgba(114, 47, 55, 0.04);
    }

    .tab.active {
      color: var(--burgundy);
      border-bottom-color: var(--burgundy);
      font-weight: 700;
      background: transparent;
    }

    .tab .badge {
      margin-left: 8px;
      font-size: 10px;
      padding: 2px 6px;
    }

    .tab-count-badge {
      display: none;
      background: var(--burgundy, #722F37);
      color: #fff;
      border-radius: 10px;
      padding: 1px 7px;
      font-size: 12px;
      font-weight: 700;
      margin-left: 4px;
      vertical-align: middle;
    }

    /* Dark mode tabs */
    [data-theme="dark"] .tabs {
      background: #2a2520;
      border-bottom-color: #4a4540;
    }

    [data-theme="dark"] .tab {
      color: #aaa;
    }

    [data-theme="dark"] .tab:hover {
      color: #e8e8e8;
      background: rgba(255, 255, 255, 0.04);
    }

    [data-theme="dark"] .tab.active {
      color: var(--burgundy-light, #c9798b);
      border-bottom-color: var(--burgundy-light, #c9798b);
    }

    .tab-content {
      display: none;
      animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .tab-content.active {
      display: block;
    }

    /* Spiritual Tools: many tabs — tighter spacing, wrapping grid layout */
    .tabs.is-41 {
      gap: 2px;
      padding: 8px 12px;
      border-radius: 10px 10px 0 0;
    }

    .tabs.is-41 .tab {
      padding: 9px 14px;
      font-size: 13px;
      border-radius: 6px;
      border-bottom: none;
      margin-bottom: 0;
    }

    .tabs.is-41 .tab:hover {
      background: rgba(114, 47, 55, 0.06);
    }

    .tabs.is-41 .tab.active {
      background: var(--burgundy);
      color: white;
      border-bottom: none;
    }

    [data-theme="dark"] .tabs.is-41 .tab.active {
      background: var(--burgundy-light, #c9798b);
      color: #1a1a1a;
    }

    /* Responsive tabs for smaller screens */
    @media (max-width: 768px) {
      .tabs {
        padding: 0 8px;
      }

      .tab {
        padding: 11px 14px;
        font-size: 13px;
      }
    }

    @media (max-width: 480px) {
      .tabs {
        padding: 0 4px;
      }

      .tab {
        padding: 10px 10px;
        font-size: 12px;
      }

      .tab .badge {
        display: none;
      }
    }

    /* ============ MODAL ============ */
    .modal-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.5);
      z-index: 200;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .modal-overlay.active {
      display: flex;
    }

    .modal {
      background: white;
      border-radius: 16px;
      width: 100%;
      max-width: 600px;
      max-height: 90vh;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .modal-header {
      padding: 20px 28px;
      border-bottom: 1px solid #eee;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .modal-title {
      font-family: Georgia, 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
      font-size: 24px;
      color: var(--burgundy);
    }

    .modal-close {
      background: none;
      border: none;
      font-size: 28px;
      cursor: pointer;
      color: var(--soft-gray);
      line-height: 1;
    }

    .modal-body {
      padding: 24px 28px;
      overflow-y: auto;
    }

    .modal-footer {
      padding: 16px 28px;
      border-top: 1px solid #eee;
      display: flex;
      justify-content: flex-end;
      gap: 12px;
    }

    /* ============ SEARCH ============ */
    .search-box {
      position: relative;
    }

    .search-input {
      padding: 10px 16px 10px 40px;
      border: 2px solid #e0d6cc;
      border-radius: 8px;
      font-size: 14px;
      width: 250px;
      transition: all 0.3s;
    }

    .search-input:focus {
      outline: none;
      border-color: var(--burgundy);
      width: 300px;
    }

    .search-icon {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--soft-gray);
    }

    /* ============ CALENDAR ============ */
    .calendar {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 4px;
      margin-bottom: 20px;
    }

    .calendar-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }

    .calendar-nav {
      display: flex;
      gap: 8px;
    }

    .calendar-day-header {
      padding: 12px;
      text-align: center;
      font-weight: 600;
      font-size: 12px;
      color: var(--soft-gray);
      text-transform: uppercase;
    }

    .calendar-day {
      aspect-ratio: 1;
      padding: 8px;
      border: 1px solid #eee;
      border-radius: 8px;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.2s;
      position: relative;
      min-height: 80px;
    }

    .calendar-day:hover {
      border-color: var(--burgundy);
      background: #faf8f5;
    }

    .calendar-day.other-month {
      color: #ccc;
      background: #f9f9f9;
    }

    .calendar-day.today {
      border-color: var(--gold);
      border-width: 2px;
    }

    .calendar-day.blocked {
      background: #f8d7da;
    }

    .calendar-day.has-event {
      background: #d4edda;
    }

    .calendar-event {
      font-size: 10px;
      padding: 2px 4px;
      background: var(--burgundy);
      color: white;
      border-radius: 4px;
      margin-top: 4px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    
    .calendar-event.pending {
      background: #ffc107;
      color: #333;
      border: 1px dashed #ff9800;
    }
    
    .calendar-event.confirmed {
      background: var(--burgundy);
      color: white;
    }

    /* ============ CLIENT LIST ============ */
    .clients-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }

    .client-card {
      display: flex;
      flex-direction: column;
      padding: 20px;
      border: 2px solid #e0d6cc;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.3s;
      background: white;
      position: relative;
    }

    .client-card:hover {
      border-color: var(--burgundy);
      box-shadow: 0 8px 24px rgba(114, 47, 55, 0.15);
      transform: translateY(-2px);
    }

    .client-card.has-unread {
      border-color: var(--gold);
      background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, white 100%);
    }

    .client-card.suspended {
      border-color: var(--warning);
      background: #fff8e6;
      opacity: 0.85;
    }

    .client-card.banned {
      border-color: var(--danger);
      background: #ffebee;
      opacity: 0.7;
    }

    /* Client Tier Badge */
    .client-tier-badge {
      position: absolute;
      top: 8px;
      right: 8px;
      padding: 4px 10px;
      border-radius: 12px;
      font-size: 11px;
      font-weight: 600;
      color: white;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    /* Journey Timeline */
    .journey-timeline {
      position: relative;
      padding-left: 24px;
    }

    .journey-timeline::before {
      content: '';
      position: absolute;
      left: 11px;
      top: 0;
      bottom: 0;
      width: 2px;
      background: linear-gradient(to bottom, var(--burgundy), #e0d6cc);
    }

    .timeline-event {
      position: relative;
      padding-bottom: 24px;
      padding-left: 24px;
    }

    .timeline-event:last-child {
      padding-bottom: 0;
    }

    .timeline-dot {
      position: absolute;
      left: -24px;
      width: 24px;
      height: 24px;
      background: white;
      border: 3px solid var(--event-color, var(--burgundy));
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      z-index: 1;
    }

    .timeline-content {
      background: #faf8f5;
      padding: 12px 16px;
      border-radius: 8px;
      border-left: 3px solid var(--event-color, var(--burgundy));
    }

    .timeline-event.milestone .timeline-content {
      background: linear-gradient(135deg, #fff8e1 0%, #fffde7 100%);
    }

    .timeline-date {
      font-size: 11px;
      color: var(--soft-gray);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 4px;
    }

    .timeline-title {
      font-weight: 600;
      margin-bottom: 2px;
    }

    .timeline-desc {
      font-size: 13px;
      color: var(--soft-gray);
    }

    .client-card-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
      margin-top: 8px;
    }

    .client-avatar {
      width: 52px;
      height: 52px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-light) 100%);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 20px;
      flex-shrink: 0;
      position: relative;
    }

    .client-avatar .message-dot {
      position: absolute;
      top: -2px;
      right: -2px;
      width: 18px;
      height: 18px;
      background: var(--gold);
      border-radius: 50%;
      border: 2px solid white;
      font-size: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      color: white;
    }

    .client-info {
      flex: 1;
      min-width: 0;
    }

    .client-info h4 {
      font-size: 16px;
      margin-bottom: 2px;
      color: var(--charcoal);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .client-info h4 .status-indicator {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--success);
    }

    .client-info h4 .status-indicator.suspended {
      background: var(--warning);
    }

    .client-info h4 .status-indicator.banned {
      background: var(--danger);
    }

    .client-info p {
      font-size: 13px;
      color: var(--soft-gray);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .client-stats-row {
      display: flex;
      gap: 16px;
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px solid #f0ebe4;
    }

    .client-stat {
      text-align: center;
      flex: 1;
    }

    .client-stat-value {
      font-size: 18px;
      font-weight: 600;
      color: var(--burgundy);
    }

    .client-stat-label {
      font-size: 11px;
      color: var(--soft-gray);
      text-transform: uppercase;
    }

    .client-quick-actions {
      display: flex;
      gap: 8px;
      margin-top: 12px;
    }

    .client-quick-actions .btn {
      flex: 1;
      justify-content: center;
      padding: 8px 12px;
      font-size: 13px;
    }

    /* Client Status Badges */
    .client-status-badge {
      position: absolute;
      top: 12px;
      right: 12px;
      font-size: 10px;
      padding: 4px 8px;
      border-radius: 12px;
      font-weight: 600;
      text-transform: uppercase;
    }

    .client-status-badge.suspended {
      background: #fff3cd;
      color: #856404;
    }

    .client-status-badge.banned {
      background: #f8d7da;
      color: #721c24;
    }

    /* Filter tabs for clients */
    .client-filters {
      display: flex;
      gap: 8px;
      margin-bottom: 16px;
      flex-wrap: wrap;
    }

    .client-filter-btn {
      padding: 8px 12px;
      border: 2px solid #e0d6cc;
      border-radius: 20px;
      background: white;
      cursor: pointer;
      font-size: 13px;
      transition: all 0.2s;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      white-space: nowrap;
    }

    .client-filter-btn:hover {
      border-color: var(--burgundy);
    }

    .client-filter-btn.active {
      background: var(--burgundy);
      color: white;
      border-color: var(--burgundy);
    }

    .filter-count {
      font-size: 11px;
      background: rgba(0,0,0,0.1);
      padding: 2px 6px;
      border-radius: 10px;
      min-width: 18px;
      text-align: center;
    }

    .client-filter-btn.active .filter-count {
      background: rgba(255,255,255,0.25);
    }

    .filter-count.badge-alert {
      background: #f44336;
      color: white;
    }

    .client-filter-btn.active .filter-count.badge-alert {
      background: #ffcdd2;
      color: #b71c1c;
    }

    .msg-badge {
      font-size: 10px;
      background: #ff5722;
      color: white;
      padding: 2px 5px;
      border-radius: 8px;
      margin-left: 2px;
      display: none;
    }

    .msg-badge.has-messages {
      display: inline-block;
    }

    .tier-filters {
      margin-top: 8px;
      padding-top: 8px;
      border-top: 1px solid #eee;
    }

    .filter-label {
      font-size: 12px;
      color: #666;
      margin-right: 8px;
      font-weight: 500;
    }

    /* Mobile filter styles */
    @media (max-width: 768px) {
      .client-filters {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
      }

      .client-filter-btn {
        padding: 10px 8px;
        font-size: 12px;
        justify-content: center;
        text-align: center;
      }

      .tier-filters {
        grid-template-columns: repeat(2, 1fr);
      }

      .filter-label {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 4px;
      }
    }

    @media (max-width: 480px) {
      .client-filter-btn {
        padding: 12px 6px;
        font-size: 11px;
        flex-direction: column;
        gap: 2px;
      }

      .filter-count, .msg-badge {
        font-size: 10px;
      }
    }

    /* ============ TOAST NOTIFICATIONS ============ */
    .toast-container {
      position: fixed;
      bottom: 24px;
      right: 24px;
      z-index: 300;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .toast {
      padding: 16px 24px;
      background: white;
      border-radius: 8px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.15);
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 300px;
      animation: slideIn 0.3s ease;
    }

    @keyframes slideIn {
      from { transform: translateX(100%); opacity: 0; }
      to { transform: translateX(0); opacity: 1; }
    }

    .toast.success { border-left: 4px solid var(--success); }
    .toast.error { border-left: 4px solid var(--danger); }
    .toast.info { border-left: 4px solid var(--info); }

    /* ============ LOADING ============ */
    .loading-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(255,255,255,0.8);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 400;
    }

    .loading-overlay.active {
      display: flex;
    }

    .spinner {
      width: 50px;
      height: 50px;
      border: 4px solid #f3f3f3;
      border-top: 4px solid var(--burgundy);
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    /* ============ EMPTY STATE ============ */
    .empty-state {
      text-align: center;
      padding: 60px 20px;
      color: var(--soft-gray);
    }

    .empty-state-icon {
      font-size: 48px;
      margin-bottom: 16px;
    }

    .empty-state h3 {
      font-size: 18px;
      margin-bottom: 8px;
      color: var(--charcoal);
    }

    /* ============ DETAIL VIEW ============ */
    .detail-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 24px;
    }

    .detail-item {
      margin-bottom: 20px;
    }

    .detail-label {
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--soft-gray);
      margin-bottom: 4px;
    }

    .detail-value {
      font-size: 16px;
      color: var(--charcoal);
    }

    /* ============ MOBILE RESPONSIVE ============ */
    .mobile-menu-btn {
      display: none;
      position: fixed;
      bottom: 24px;
      right: 24px;
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: var(--burgundy);
      color: white;
      border: none;
      font-size: 24px;
      cursor: pointer;
      z-index: 150;
      box-shadow: 0 4px 20px rgba(114, 47, 55, 0.4);
    }

    @media (max-width: 768px) {
      .sidebar {
        transform: translateX(-100%);
      }

      .sidebar.open {
        transform: translateX(0);
      }

      .main-content {
        margin-left: 0;
      }

      .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .stats-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .page-header {
        flex-direction: column;
        align-items: flex-start;
      }

      .search-input {
        width: 100%;
      }

      .search-input:focus {
        width: 100%;
      }

      .modal {
        max-height: 100vh;
        border-radius: 0;
      }

      .calendar-day {
        min-height: 60px;
        padding: 4px;
      }

      /* Mobile clients grid */
      .clients-grid {
        grid-template-columns: 1fr;
        gap: 12px;
      }

      .client-card {
        padding: 16px;
      }

      .client-avatar {
        width: 44px;
        height: 44px;
        font-size: 16px;
      }

      .client-tier-badge {
        font-size: 10px;
        padding: 3px 8px;
      }

      .client-card-footer {
        flex-wrap: wrap;
      }

      .client-stat {
        font-size: 11px;
      }

      /* Mobile tabs in modal */
      .tabs {
        padding: 0 4px;
      }

      .tab {
        padding: 10px 8px;
        font-size: 12px;
        text-align: center;
      }

      /* Mobile modal body */
      .modal-body {
        max-height: calc(100vh - 180px) !important;
      }

      /* Tier management mobile */
      .tier-management-section {
        flex-direction: column;
      }

      .tier-select-group {
        width: 100%;
      }
    }

    /* ============ CALENDLY-STYLE AVAILABILITY ============ */
    .weekly-availability-container {
      display: flex;
      flex-direction: column;
      gap: 16px;
      margin-top: 20px;
    }

    .availability-day-card {
      background: white;
      border: 2px solid #e0d6cc;
      border-radius: 12px;
      padding: 20px;
      transition: all 0.3s;
    }

    .availability-day-card.disabled {
      background: #f5f5f5;
      opacity: 0.6;
    }

    .day-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 1px solid #e0d6cc;
    }

    .day-name {
      font-size: 18px;
      font-weight: 600;
      color: var(--charcoal);
    }

    .day-toggle {
      position: relative;
      width: 52px;
      height: 28px;
    }

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

    .toggle-slider {
      position: absolute;
      cursor: pointer;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #ccc;
      transition: 0.3s;
      border-radius: 28px;
    }

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

    .day-toggle input:checked + .toggle-slider {
      background-color: var(--burgundy);
    }

    .day-toggle input:checked + .toggle-slider:before {
      transform: translateX(24px);
    }

    .time-slots-container {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
      gap: 8px;
      margin-top: 12px;
    }

    .time-slot-btn {
      padding: 10px 12px;
      background: white;
      border: 2px solid #e0d6cc;
      border-radius: 8px;
      cursor: pointer;
      font-size: 14px;
      color: var(--charcoal);
      text-align: center;
      transition: all 0.2s;
      font-weight: 500;
    }

    .time-slot-btn:hover:not(.selected) {
      border-color: var(--burgundy);
      background: var(--gold-light);
    }

    .time-slot-btn.selected {
      background: var(--burgundy);
      color: white;
      border-color: var(--burgundy);
    }

    .time-slot-btn.disabled {
      opacity: 0.4;
      cursor: not-allowed;
      pointer-events: none;
    }

    .slot-duration-selector {
      display: flex;
      gap: 12px;
      margin-bottom: 16px;
      padding: 12px;
      background: var(--gold-light);
      border-radius: 8px;
    }

    .slot-duration-selector label {
      font-size: 14px;
      font-weight: 600;
      color: var(--charcoal);
      margin-right: 8px;
    }

    .slot-duration-selector input[type="radio"] {
      margin-right: 6px;
    }

    .availability-actions {
      display: flex;
      gap: 12px;
      margin-top: 24px;
      padding-top: 20px;
      border-top: 2px solid #e0d6cc;
    }

    .availability-summary {
      background: var(--gold-light);
      padding: 16px;
      border-radius: 8px;
      margin-top: 16px;
      font-size: 14px;
      color: var(--charcoal);
    }

    .availability-summary strong {
      color: var(--burgundy);
    }

    /* ============ MARKETING COMPONENTS ============ */
    .template-gallery {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 20px;
      margin-top: 20px;
    }

    .template-card {
      background: white;
      border: 2px solid #e0d6cc;
      border-radius: 12px;
      padding: 20px;
      transition: all 0.3s;
    }

    .template-card:hover {
      border-color: var(--burgundy);
      box-shadow: 0 8px 24px rgba(114, 47, 55, 0.15);
      transform: translateY(-2px);
    }

    .template-card h4 {
      color: var(--burgundy);
      margin-bottom: 8px;
    }

    .template-actions {
      display: flex;
      gap: 8px;
      margin-top: 12px;
    }

    [data-theme="dark"] .template-card {
      background: var(--bg-card);
      border-color: var(--border-color);
    }

    [data-theme="dark"] .template-card h4 {
      color: var(--burgundy-light);
    }

    .template-preview {
      height: 200px;
      background: linear-gradient(135deg, var(--gold-light) 0%, var(--cream) 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 48px;
      border-bottom: 1px solid #e0d6cc;
    }

    .template-info {
      padding: 16px;
    }

    .template-name {
      font-weight: 600;
      font-size: 16px;
      color: var(--charcoal);
      margin-bottom: 6px;
    }

    .template-description {
      font-size: 13px;
      color: var(--soft-gray);
      line-height: 1.5;
    }

    .campaign-item, .segment-item, .workflow-item {
      background: white;
      border: 2px solid #e0d6cc;
      border-radius: 12px;
      padding: 20px;
      margin-bottom: 16px;
      transition: all 0.2s;
    }

    .campaign-item:hover, .segment-item:hover, .workflow-item:hover {
      border-color: var(--burgundy);
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .campaign-header, .segment-header, .workflow-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 12px;
    }

    .campaign-title, .segment-title, .workflow-title {
      font-size: 18px;
      font-weight: 600;
      color: var(--burgundy);
      margin-bottom: 6px;
    }

    .campaign-meta, .segment-meta, .workflow-meta {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
      font-size: 14px;
      color: var(--soft-gray);
    }

    .campaign-meta span, .segment-meta span, .workflow-meta span {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .campaign-actions, .segment-actions, .workflow-actions {
      display: flex;
      gap: 8px;
    }

    .status-badge {
      display: inline-block;
      padding: 4px 12px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .status-badge.draft {
      background: var(--soft-gray);
      color: white;
    }

    .status-badge.scheduled {
      background: var(--info);
      color: white;
    }

    .status-badge.sent {
      background: var(--success);
      color: white;
    }

    .status-badge.active {
      background: var(--burgundy);
      color: white;
    }

    .status-badge.paused {
      background: var(--warning);
      color: white;
    }

    .analytics-chart {
      background: white;
      border: 1px solid #e0d6cc;
      border-radius: 8px;
      padding: 20px;
      min-height: 200px;
    }

    .lifecycle-bar {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
      padding: 12px;
      background: var(--gold-light);
      border-radius: 8px;
    }

    .lifecycle-label {
      min-width: 120px;
      font-weight: 600;
      color: var(--charcoal);
    }

    .lifecycle-progress {
      flex: 1;
      height: 24px;
      background: #e0d6cc;
      border-radius: 12px;
      overflow: hidden;
    }

    .lifecycle-progress-fill {
      height: 100%;
      background: var(--burgundy);
      transition: width 0.5s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 12px;
      font-weight: 600;
    }

    .lifecycle-count {
      min-width: 60px;
      text-align: right;
      font-weight: 600;
      color: var(--burgundy);
    }

    .modal-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.6);
      z-index: 1000;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .modal-overlay.active {
      display: flex;
    }

    .modal-content {
      background: var(--warm-white);
      border-radius: 16px;
      max-width: 800px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }

    .modal-header {
      padding: 24px 28px;
      border-bottom: 2px solid #e0d6cc;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .modal-header h2 {
      font-family: Georgia, 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
      font-size: 24px;
      color: var(--burgundy);
    }

    /* Client modal header: white text on burgundy gradient */
    .modal-header.is-259 h2,
    .modal-header.is-259 .modal-title {
      color: white;
    }

    .modal-close {
      background: none;
      border: none;
      font-size: 28px;
      color: var(--soft-gray);
      cursor: pointer;
      padding: 0;
      width: 32px;
      height: 32px;
      line-height: 1;
      transition: color 0.2s;
    }

    .modal-close:hover {
      color: var(--burgundy);
    }

    .modal-body {
      padding: 24px 28px;
    }

    .modal-footer {
      padding: 24px 28px;
      border-top: 2px solid #e0d6cc;
      display: flex;
      justify-content: flex-end;
      gap: 12px;
    }

    /* Button groups in modals need top margin */
    .modal-content .btn-group,
    .modal .btn-group {
      margin-top: 20px;
      display: flex;
      justify-content: flex-end;
      gap: 12px;
    }

    .segment-filter {
      background: var(--gold-light);
      border: 1px solid #e0d6cc;
      border-radius: 8px;
      padding: 16px;
      margin-bottom: 12px;
    }

    .segment-filter-row {
      display: flex;
      gap: 12px;
      align-items: center;
      flex-wrap: wrap;
    }

    .segment-filter-row select, .segment-filter-row input {
      flex: 1;
      min-width: 150px;
    }

    .workflow-step {
      background: white;
      border: 2px solid var(--burgundy);
      border-radius: 12px;
      padding: 16px;
      margin-bottom: 16px;
      position: relative;
    }

    .workflow-step::after {
      content: '•';
      display: block;
      text-align: center;
      font-size: 24px;
      color: var(--burgundy);
      margin: 8px 0 -8px 0;
    }

    .workflow-step:last-child::after {
      display: none;
    }

    .workflow-step-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
    }

    .workflow-step-title {
      font-weight: 600;
      color: var(--burgundy);
    }

    .email-preview {
      background: white;
      border: 1px solid #e0d6cc;
      border-radius: 8px;
      padding: 20px;
      margin-top: 16px;
    }

    .email-preview-subject {
      font-size: 18px;
      font-weight: 600;
      color: var(--charcoal);
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 2px solid #e0d6cc;
    }

    .email-preview-body {
      line-height: 1.7;
      color: var(--charcoal);
    }

    /* ============ PRINT STYLES ============ */
    @media print {
      .sidebar, .mobile-menu-btn, .btn, .toast-container, .page-header, .card-header {
        display: none !important;
      }

      .main-content {
        margin-left: 0;
      }

      .card {
        box-shadow: none;
        border: none;
      }
      
      .business-card {
        page-break-inside: avoid;
        break-inside: avoid;
      }
      
      /* Remove screen-only elements from print */
      body * {
        visibility: hidden;
      }
      
      #printableCards, #printableCards * {
        visibility: visible;
      }
      
      #printableCards {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
      }
    }
    
    /* Business Card Styles */
    .business-card {
      width: 3.5in;
      height: 2in;
      border: 2px solid #D4AF37;
      border-radius: 12px;
      padding: 20px;
      margin: 20px;
      display: inline-block;
      background: linear-gradient(135deg, #ffffff 0%, #fdfaf5 50%, #fff8f0 100%);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      page-break-inside: avoid;
      position: relative;
      overflow: hidden;
    }
    
    .business-card::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
      pointer-events: none;
    }
    
    @media print {
      .business-card {
        margin: 0.25in;
        box-shadow: none;
      }
    }

    /* ============ QUICK ACTIONS ============ */
    .quick-actions {
      display: flex;
      gap: 8px;
    }

    .action-btn {
      padding: 6px 10px;
      border: none;
      border-radius: 6px;
      font-size: 13px;
      cursor: pointer;
      transition: all 0.2s;
      background: #f0f0f0;
      color: var(--charcoal);
    }

    .action-btn:hover {
      background: var(--burgundy);
      color: white;
    }

    /* ============ CONTENT EDITOR ============ */
    .content-item {
      border: 1px solid #eee;
      border-radius: 8px;
      padding: 16px;
      margin-bottom: 12px;
      position: relative;
    }

    .content-item-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 12px;
    }

    .content-item-actions {
      display: flex;
      gap: 8px;
    }

    .content-item h4 {
      font-size: 16px;
      color: var(--burgundy);
      margin-bottom: 8px;
    }

    .content-item p {
      font-size: 14px;
      color: var(--charcoal);
      white-space: pre-wrap;
    }

    .content-item.inactive {
      opacity: 0.5;
      border-style: dashed;
    }

    .drag-handle {
      cursor: grab;
      color: var(--soft-gray);
      margin-right: 8px;
    }

    /* ============ REVENUE CHART ============ */
    .revenue-chart {
      height: 200px;
      display: flex;
      align-items: flex-end;
      gap: 8px;
      padding: 20px 0;
    }

    .revenue-bar {
      flex: 1;
      background: linear-gradient(to top, var(--burgundy), var(--burgundy-light));
      border-radius: 4px 4px 0 0;
      position: relative;
      min-height: 20px;
    }

    .revenue-bar:hover {
      background: linear-gradient(to top, var(--burgundy-dark), var(--burgundy));
    }

    .revenue-bar span {
      position: absolute;
      bottom: -20px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 11px;
      color: var(--soft-gray);
    }

    /* ============ LEAD GENERATION STYLES ============ */
    .funnel-visual {
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 20px;
      background: linear-gradient(135deg, rgba(155, 89, 182, 0.05), rgba(52, 152, 219, 0.05));
      border-radius: 8px;
      margin-bottom: 20px;
    }

    .funnel-stage {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .funnel-count {
      font-size: 24px;
      font-weight: 700;
      color: var(--burgundy);
      min-width: 60px;
      text-align: right;
    }

    .funnel-label {
      font-weight: 600;
      color: var(--text);
      min-width: 100px;
    }

    .funnel-bar {
      height: 36px;
      border-radius: 6px;
      transition: all 0.3s ease;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      position: relative;
    }

    .funnel-bar:hover {
      transform: scaleX(1.02);
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .conversion-metrics {
      display: flex;
      justify-content: space-around;
      padding: 15px;
      background: white;
      border-radius: 8px;
      margin-top: 10px;
    }

    .metric {
      text-align: center;
    }

    .metric span {
      display: block;
      font-size: 13px;
      color: var(--soft-gray);
      margin-bottom: 5px;
    }

    .metric strong {
      font-size: 20px;
      color: var(--burgundy);
    }

    .filter-chips {
      display: flex;
      gap: 8px;
    }

    .chip {
      padding: 6px 16px;
      border-radius: 20px;
      border: 2px solid var(--border);
      background: white;
      color: var(--text);
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .chip:hover {
      border-color: var(--burgundy);
      background: var(--background);
    }

    .chip.active {
      border-color: var(--burgundy);
      background: var(--burgundy);
      color: white;
    }

    .leads-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .lead-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px;
      background: white;
      border: 1px solid var(--border);
      border-radius: 8px;
      transition: all 0.2s ease;
    }

    .lead-item:hover {
      border-color: var(--burgundy);
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
      transform: translateY(-2px);
    }

    .lead-info {
      flex: 1;
    }

    .lead-name {
      font-weight: 600;
      color: var(--text);
      margin-bottom: 4px;
    }

    .lead-email {
      font-size: 13px;
      color: var(--soft-gray);
    }

    .lead-source {
      font-size: 12px;
      color: var(--gold);
      margin-top: 4px;
    }

    .lead-status {
      display: inline-block;
      padding: 4px 12px;
      border-radius: 12px;
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
    }

    .lead-status.new {
      background: #e3f2fd;
      color: #1976d2;
    }

    .lead-status.contacted {
      background: #fff3e0;
      color: #f57c00;
    }

    .lead-status.qualified {
      background: #e8f5e9;
      color: #388e3c;
    }

    .lead-status.converted {
      background: #f3e5f5;
      color: #7b1fa2;
    }

    .lead-magnet-card {
      background: white;
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px;
      transition: all 0.3s ease;
    }

    .lead-magnet-card:hover {
      border-color: var(--burgundy);
      box-shadow: 0 6px 20px rgba(0,0,0,0.1);
      transform: translateY(-4px);
    }

    .magnet-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 12px;
    }

    .magnet-title {
      font-size: 18px;
      font-weight: 700;
      color: var(--burgundy);
      margin-bottom: 8px;
    }

    .magnet-type {
      display: inline-block;
      padding: 4px 12px;
      background: var(--gold);
      color: white;
      border-radius: 12px;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
    }

    .magnet-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-top: 15px;
      padding-top: 15px;
      border-top: 1px solid var(--border);
    }

    .magnet-stat {
      text-align: center;
    }

    .magnet-stat-value {
      font-size: 20px;
      font-weight: 700;
      color: var(--burgundy);
    }

    .magnet-stat-label {
      font-size: 11px;
      color: var(--soft-gray);
      text-transform: uppercase;
      margin-top: 4px;
    }

    .drip-campaigns-list {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .drip-campaign-item {
      background: white;
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px;
      transition: all 0.2s ease;
    }

    .drip-campaign-item:hover {
      border-color: var(--burgundy);
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .drip-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
    }

    .drip-title {
      font-size: 18px;
      font-weight: 700;
      color: var(--text);
    }

    .drip-timeline {
      display: flex;
      gap: 12px;
      margin-top: 12px;
    }

    .drip-email {
      flex: 1;
      padding: 12px;
      background: var(--background);
      border-radius: 8px;
      border-left: 4px solid var(--burgundy);
    }

    .drip-email-day {
      font-size: 11px;
      color: var(--gold);
      font-weight: 600;
      text-transform: uppercase;
      margin-bottom: 4px;
    }

    .drip-email-subject {
      font-size: 13px;
      color: var(--text);
      font-weight: 500;
    }

    /* Additional utility classes */
    .badge-gold {
      background: var(--gold);
    }

    .btn-gold {
      background: var(--gold) !important;
    }

    .text-muted {
      color: var(--soft-gray);
    }

    .mt-8 {
      margin-top: 8px;
    }

    .mt-20 {
      margin-top: 20px;
    }

    .mb-20 {
      margin-bottom: 20px;
    }


    /* ============================== */
    /* Extracted inline styles        */
    /* ============================== */

    .is-1 {
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .is-2 {
      display: flex;
      gap: 16px;
      font-size: 12px;
      align-items: center;
    }

    .is-3 {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .is-4 {
      width: 16px;
      height: 16px;
      background: var(--burgundy);
      border-radius: 3px;
    }

    .is-5 {
      width: 16px;
      height: 16px;
      background: #ffc107;
      border: 1px dashed #ff9800;
      border-radius: 3px;
    }

    .is-6 {
      color: var(--soft-gray);
      text-align: center;
      padding: 20px;
    }

    .is-7 {
      display: grid;
      grid-template-columns: 300px 1fr;
      gap: 24px;
    }

    .is-8 {
      max-height: 500px;
      overflow-y: auto;
    }

    .is-9 {
      max-height: 350px;
      overflow-y: auto;
      margin-bottom: 20px;
    }

    .is-10 {
      text-align: center;
      color: #9E9890;
    }

    .is-11 {
      display: none;
      border-top: 1px solid #e0d6cc;
      padding-top: 16px;
    }

    .is-12 {
      width: 100%;
      min-height: 80px;
      padding: 12px;
      border: 2px solid #e0d6cc;
      border-radius: 8px;
      font-family: inherit;
      font-size: 14px;
      resize: vertical;
    }

    .is-13 {
      display: flex;
      gap: 12px;
      margin-top: 12px;
      align-items: center;
    }

    .is-14 {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 14px;
      color: #666;
    }

    .is-15 {
      text-align: center;
      margin-top: 20px;
      font-size: 13px;
      color: #9E9890;
    }

    .u-w-auto {
      width: auto;
    }

    .is-16 {
      width: 100%;
      background: #9b59b6;
    }

    .is-17 {
      width: 60%;
      background: #3498db;
    }

    .is-18 {
      width: 40%;
      background: #e67e22;
    }

    .is-19 {
      width: 20%;
      background: #27ae60;
    }

    .u-mr-10 {
      margin-right: 10px;
    }

    .u-mb-16 {
      margin-bottom: 16px;
    }

    .is-20 {
      color: var(--soft-gray);
      margin-bottom: 16px;
      font-size: 14px;
    }

    .is-21 {
      margin: 20px 0 12px 0;
      color: var(--burgundy);
    }

    .is-22 {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 16px;
      margin-bottom: 24px;
    }

    .is-23 {
      cursor: pointer;
      border-left: 4px solid #4CAF50;
    }

    .is-24 {
      color: var(--soft-gray);
      font-size: 13px;
      margin: 8px 0;
    }

    .is-25 {
      font-size: 11px;
      background: #E8F5E9;
      color: #2E7D32;
      padding: 4px 8px;
      border-radius: 12px;
    }

    .is-26 {
      cursor: pointer;
      border-left: 4px solid #2196F3;
    }

    .is-27 {
      font-size: 11px;
      background: #E3F2FD;
      color: #1565C0;
      padding: 4px 8px;
      border-radius: 12px;
    }

    .is-28 {
      cursor: pointer;
      border-left: 4px solid #9C27B0;
    }

    .is-29 {
      font-size: 11px;
      background: #F3E5F5;
      color: #7B1FA2;
      padding: 4px 8px;
      border-radius: 12px;
    }

    .is-30 {
      cursor: pointer;
      border-left: 4px solid #FF9800;
    }

    .is-31 {
      font-size: 11px;
      background: #FFF3E0;
      color: #E65100;
      padding: 4px 8px;
      border-radius: 12px;
    }

    .is-32 {
      cursor: pointer;
      border-left: 4px solid #E91E63;
    }

    .is-33 {
      font-size: 11px;
      background: #FCE4EC;
      color: #C2185B;
      padding: 4px 8px;
      border-radius: 12px;
    }

    .is-34 {
      cursor: pointer;
      border-left: 4px solid #00BCD4;
    }

    .is-35 {
      font-size: 11px;
      background: #E0F7FA;
      color: #00838F;
      padding: 4px 8px;
      border-radius: 12px;
    }

    .is-36 {
      cursor: pointer;
      border-left: 4px solid #FFC107;
    }

    .is-37 {
      font-size: 11px;
      background: #FFF8E1;
      color: #F57F17;
      padding: 4px 8px;
      border-radius: 12px;
    }

    .is-38 {
      cursor: pointer;
      border-left: 4px solid #673AB7;
    }

    .is-39 {
      font-size: 11px;
      background: #EDE7F6;
      color: #512DA8;
      padding: 4px 8px;
      border-radius: 12px;
    }

    .is-40 {
      margin: 24px 0 12px 0;
      color: var(--burgundy);
    }

    .u-mt-30 {
      margin-top: 30px;
    }

    /* .is-41 tab styling moved to main tabs section */

    .is-42 {
      background: linear-gradient(135deg, #512DA8 0%, #7B1FA2 100%);
      color: white;
    }

    .is-43 {
      margin: 8px 0 0;
      opacity: 0.9;
      font-size: 14px;
    }

    .u-text-red {
      color: red;
    }

    .u-max-w-300 {
      max-width: 300px;
    }

    .u-max-w-200 {
      max-width: 200px;
    }

    .is-44 {
      font-size: 12px;
      color: var(--soft-gray);
      margin-top: 4px;
    }

    .u-max-w-400 {
      max-width: 400px;
    }

    .is-45 {
      display: none;
      margin-top: 24px;
    }

    .is-46 {
      padding: 20px;
      background: linear-gradient(135deg, #FFA726 0%, #FB8C00 100%);
      color: white;
      border-radius: 12px;
      margin-bottom: 16px;
    }

    .is-47 {
      margin-bottom: 12px;
      font-size: 20px;
    }

    .is-48 {
      font-size: 32px;
      margin: 12px 0;
    }

    .is-49 {
      line-height: 1.7;
      opacity: 0.95;
    }

    .u-mb-20 {
      margin-bottom: 20px;
    }

    .is-50 {
      background: #E3F2FD;
    }

    .is-51 {
      color: #1565C0;
    }

    .is-52 {
      font-size: 18px;
      color: #0D47A1;
    }

    .is-53 {
      font-size: 12px;
      margin-top: 8px;
      color: #1976D2;
    }

    .is-54 {
      background: #FFF3E0;
    }

    .is-55 {
      color: #E65100;
    }

    .is-56 {
      font-size: 18px;
      color: #BF360C;
    }

    .is-57 {
      font-size: 12px;
      margin-top: 8px;
      color: #D84315;
    }

    .is-58 {
      padding: 20px;
      background: white;
      border: 2px solid #7B1FA2;
      border-radius: 12px;
      margin-bottom: 16px;
    }

    .is-59 {
      margin-bottom: 16px;
      color: #7B1FA2;
    }

    .is-60 {
      line-height: 1.8;
    }

    .is-61 {
      font-size: 13px;
      margin-top: 8px;
      color: #666;
    }

    .is-62 {
      margin-top: 32px;
      padding: 20px;
      background: #F5F5F5;
      border-radius: 12px;
    }

    .is-63 {
      margin-bottom: 16px;
      color: var(--burgundy);
    }

    .is-64 {
      color: var(--soft-gray);
      margin-bottom: 20px;
    }

    .is-65 {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    .is-66 {
      margin-top: 20px;
      display: none;
    }

    .is-67 {
      background: linear-gradient(135deg, #C62828 0%, #D32F2F 100%);
      color: white;
    }

    .u-max-w-500 {
      max-width: 500px;
    }

    .is-68 {
      padding: 24px;
      background: linear-gradient(135deg, #C62828 0%, #D32F2F 100%);
      color: white;
      border-radius: 12px;
      margin-bottom: 16px;
      text-align: center;
    }

    .is-69 {
      color: white;
      opacity: 0.9;
      margin-bottom: 8px;
    }

    .is-70 {
      font-size: 72px;
      font-weight: bold;
      margin: 16px 0;
    }

    .u-mb-12 {
      margin-bottom: 12px;
    }

    .is-71 {
      background: #E8F5E9;
    }

    .is-72 {
      color: #2E7D32;
    }

    .is-73 {
      font-size: 36px;
      color: #1B5E20;
    }

    .is-74 {
      font-size: 13px;
      margin-top: 8px;
      line-height: 1.6;
    }

    .is-75 {
      background: #FCE4EC;
    }

    .is-76 {
      color: #C2185B;
    }

    .is-77 {
      font-size: 36px;
      color: #880E4F;
    }

    .is-78 {
      color: #EF6C00;
    }

    .is-79 {
      font-size: 36px;
      color: #E65100;
    }

    .is-80 {
      background: #E1F5FE;
    }

    .is-81 {
      color: #01579B;
    }

    .is-82 {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .is-83 {
      font-size: 48px;
      color: #0277BD;
    }

    .is-84 {
      flex: 1;
      font-size: 14px;
      line-height: 1.7;
    }

    .is-85 {
      margin-top: 16px;
      padding: 20px;
      background: white;
      border: 2px solid #C62828;
      border-radius: 12px;
    }

    .is-86 {
      margin-bottom: 16px;
      color: #C62828;
    }

    .is-87 {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .u-pointer {
      cursor: pointer;
    }

    .u-text-18 {
      font-size: 18px;
    }

    .is-88 {
      background: linear-gradient(135deg, #00897B 0%, #26A69A 100%);
      color: white;
    }

    .is-89 {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .is-90 {
      cursor: pointer;
      transition: all 0.3s;
    }

    .is-91 {
      font-size: 13px;
      margin-top: 8px;
      color: var(--soft-gray);
    }

    .is-92 {
      display: none;
      margin-top: 24px;
      padding: 24px;
      background: linear-gradient(135deg, #E0F2F1 0%, #B2DFDB 100%);
      border-radius: 12px;
      border-left: 4px solid #00897B;
    }

    .is-93 {
      background: #FFF8E1;
      padding: 16px;
      border-radius: 8px;
      margin-top: 20px;
    }

    .is-94 {
      color: #F57F17;
      font-weight: 500;
      margin-bottom: 8px;
    }

    .is-95 {
      font-size: 14px;
      color: #666;
    }

    .is-96 {
      background: linear-gradient(135deg, #00695C 0%, #00897B 100%);
      color: white;
    }

    .is-97 {
      background: #E0F2F1;
      padding: 20px;
      border-radius: 12px;
      margin-bottom: 20px;
    }

    .is-98 {
      margin-bottom: 16px;
      color: #00695C;
    }

    .is-99 {
      display: grid;
      gap: 12px;
    }

    .is-100 {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px;
      background: white;
      border-radius: 8px;
    }

    .is-101 {
      width: 40px;
      height: 40px;
      background: #C62828;
      border-radius: 50%;
    }

    .u-flex-1 {
      flex: 1;
    }

    .is-102 {
      font-size: 12px;
      color: #666;
      margin-top: 4px;
    }

    .is-103 {
      width: 40px;
      height: 40px;
      background: #F57C00;
      border-radius: 50%;
    }

    .is-104 {
      width: 40px;
      height: 40px;
      background: #FBC02D;
      border-radius: 50%;
    }

    .is-105 {
      width: 40px;
      height: 40px;
      background: #388E3C;
      border-radius: 50%;
    }

    .is-106 {
      width: 40px;
      height: 40px;
      background: #1976D2;
      border-radius: 50%;
    }

    .is-107 {
      width: 40px;
      height: 40px;
      background: #512DA8;
      border-radius: 50%;
    }

    .is-108 {
      width: 40px;
      height: 40px;
      background: #7B1FA2;
      border-radius: 50%;
    }

    .is-109 {
      background: #FFF3E0;
      padding: 20px;
      border-radius: 12px;
      margin-bottom: 20px;
    }

    .is-110 {
      margin-bottom: 16px;
      color: #E65100;
    }

    .is-111 {
      margin-top: 12px;
      font-size: 14px;
      color: #666;
    }

    .is-112 {
      background: white;
      padding: 16px;
      border: 2px dashed #00897B;
      border-radius: 8px;
      text-align: center;
    }

    .is-113 {
      color: var(--soft-gray);
      margin-bottom: 12px;
    }

    .is-114 {
      background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
      color: white;
    }

    .is-115 {
      background: #F3E5F5;
      padding: 20px;
      border-radius: 12px;
      margin-bottom: 24px;
    }

    .is-116 {
      color: #6A1B9A;
      margin-bottom: 16px;
    }

    .is-117 {
      font-style: italic;
      line-height: 2;
      color: #4A148C;
    }

    .is-118 {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      margin-bottom: 24px;
    }

    .is-119 {
      border-left: 4px solid #9C27B0;
    }

    .is-120 {
      font-size: 40px;
      margin: 8px 0;
    }

    .is-121 {
      font-size: 13px;
      color: var(--soft-gray);
    }

    .is-122 {
      border-left: 4px solid #7B1FA2;
    }

    .is-123 {
      border-left: 4px solid #6A1B9A;
    }

    .is-124 {
      background: white;
      padding: 20px;
      border: 2px solid #9C27B0;
      border-radius: 12px;
      margin-bottom: 20px;
    }

    .is-125 {
      margin-bottom: 16px;
      color: #9C27B0;
    }

    .is-126 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 12px;
    }

    .is-127 {
      padding: 12px;
      background: #F9F9F9;
      border-radius: 8px;
    }

    .is-128 {
      font-size: 13px;
      color: #666;
      margin: 8px 0 0;
      padding-left: 20px;
    }

    .is-129 {
      background: #FFF8E1;
      padding: 16px;
      border-radius: 8px;
      margin-bottom: 20px;
    }

    .is-130 {
      margin-top: 24px;
      padding: 20px;
      background: #F5F5F5;
      border-radius: 12px;
    }

    .is-131 {
      background: linear-gradient(135deg, #E91E63 0%, #9C27B0 50%, #3F51B5 100%);
      color: white;
    }

    .is-132 {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 20px;
    }

    .is-133 {
      position: relative;
      width: 200px;
      height: 380px;
      background: linear-gradient(180deg, #f5f0eb 0%, #e8ddd3 100%);
      border-radius: 100px 100px 60px 60px;
      margin-bottom: 24px;
      overflow: visible;
    }

    .is-134 {
      position: absolute;
      top: 10px;
      left: 50%;
      transform: translateX(-50%);
      width: 50px;
      height: 50px;
      background: #7B1FA2;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 0 20px #7B1FA288;
      transition: all 0.3s;
      z-index: 10;
    }

    .is-135 {
      color: white;
      font-size: 20px;
    }

    .is-136 {
      position: absolute;
      top: 65px;
      left: 50%;
      transform: translateX(-50%);
      width: 45px;
      height: 45px;
      background: #512DA8;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 0 20px #512DA888;
      transition: all 0.3s;
      z-index: 10;
    }

    .is-137 {
      color: white;
      font-size: 18px;
    }

    .is-138 {
      position: absolute;
      top: 115px;
      left: 50%;
      transform: translateX(-50%);
      width: 45px;
      height: 45px;
      background: #1976D2;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 0 20px #1976D288;
      transition: all 0.3s;
      z-index: 10;
    }

    .is-139 {
      position: absolute;
      top: 165px;
      left: 50%;
      transform: translateX(-50%);
      width: 50px;
      height: 50px;
      background: #388E3C;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 0 20px #388E3C88;
      transition: all 0.3s;
      z-index: 10;
    }

    .is-140 {
      position: absolute;
      top: 220px;
      left: 50%;
      transform: translateX(-50%);
      width: 45px;
      height: 45px;
      background: #FBC02D;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 0 20px #FBC02D88;
      transition: all 0.3s;
      z-index: 10;
    }

    .is-141 {
      position: absolute;
      top: 270px;
      left: 50%;
      transform: translateX(-50%);
      width: 45px;
      height: 45px;
      background: #F57C00;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 0 20px #F57C0088;
      transition: all 0.3s;
      z-index: 10;
    }

    .is-142 {
      position: absolute;
      top: 320px;
      left: 50%;
      transform: translateX(-50%);
      width: 50px;
      height: 50px;
      background: #C62828;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 0 20px #C6282888;
      transition: all 0.3s;
      z-index: 10;
    }

    .is-143 {
      display: flex;
      gap: 20px;
      margin-bottom: 24px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .is-144 {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .is-145 {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: linear-gradient(135deg, #4CAF50, #81C784);
      box-shadow: 0 0 10px #4CAF5088;
    }

    .u-text-13 {
      font-size: 13px;
    }

    .is-146 {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: linear-gradient(135deg, #FF9800, #FFB74D);
      box-shadow: 0 0 10px #FF980088;
    }

    .is-147 {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: linear-gradient(135deg, #f44336, #e57373);
      box-shadow: 0 0 10px #f4433688;
    }

    .is-148 {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: linear-gradient(135deg, #9E9E9E, #BDBDBD);
    }

    .is-149 {
      font-size: 13px;
      color: var(--soft-gray);
      text-align: center;
      margin-bottom: 20px;
    }

    .u-overflow-x-auto {
      overflow-x: auto;
    }

    .is-150 {
      width: 100%;
      border-collapse: collapse;
      margin-top: 20px;
    }

    .is-151 {
      padding: 12px;
      text-align: left;
    }

    .is-152 {
      padding: 12px;
      text-align: center;
    }

    .is-153 {
      background: #FFEBEE;
    }

    .u-p-12 {
      padding: 12px;
    }

    .u-text-20 {
      font-size: 20px;
    }

    .is-154 {
      padding: 12px;
      font-size: 13px;
    }

    .is-155 {
      background: #FFFDE7;
    }

    .is-156 {
      background: #EDE7F6;
    }

    .is-157 {
      background: #F3E5F5;
    }

    .is-158 {
      margin-top: 20px;
      text-align: center;
    }

    .is-159 {
      font-size: 12px;
      color: var(--soft-gray);
      margin-top: 8px;
    }

    .is-160 {
      background: linear-gradient(135deg, #00BCD4 0%, #4DD0E1 50%, #E1BEE7 100%);
      color: white;
    }

    .is-161 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 16px;
      margin-bottom: 32px;
    }

    .is-162 {
      padding: 16px;
      background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
      border-radius: 12px;
      border-left: 4px solid #C62828;
    }

    .is-163 {
      color: #C62828;
      margin-bottom: 8px;
    }

    .is-164 {
      font-size: 13px;
      line-height: 1.8;
    }

    .is-165 {
      padding: 16px;
      background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
      border-radius: 12px;
      border-left: 4px solid #F57C00;
    }

    .is-166 {
      color: #E65100;
      margin-bottom: 8px;
    }

    .is-167 {
      padding: 16px;
      background: linear-gradient(135deg, #FFFDE7 0%, #FFF9C4 100%);
      border-radius: 12px;
      border-left: 4px solid #FBC02D;
    }

    .is-168 {
      color: #F9A825;
      margin-bottom: 8px;
    }

    .is-169 {
      padding: 16px;
      background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
      border-radius: 12px;
      border-left: 4px solid #388E3C;
    }

    .is-170 {
      color: #2E7D32;
      margin-bottom: 8px;
    }

    .is-171 {
      padding: 16px;
      background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
      border-radius: 12px;
      border-left: 4px solid #1976D2;
    }

    .is-172 {
      color: #1565C0;
      margin-bottom: 8px;
    }

    .is-173 {
      padding: 16px;
      background: linear-gradient(135deg, #EDE7F6 0%, #D1C4E9 100%);
      border-radius: 12px;
      border-left: 4px solid #512DA8;
    }

    .is-174 {
      color: #4527A0;
      margin-bottom: 8px;
    }

    .is-175 {
      padding: 16px;
      background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%);
      border-radius: 12px;
      border-left: 4px solid #7B1FA2;
    }

    .is-176 {
      color: #6A1B9A;
      margin-bottom: 8px;
    }

    .is-177 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 12px;
      margin-bottom: 24px;
    }

    .is-178 {
      padding: 12px;
      background: #FFF;
      border: 2px solid #e0d6cc;
      border-radius: 8px;
    }

    .is-179 {
      font-size: 13px;
      color: #666;
    }

    .is-180 {
      background: #FFF8E1;
      padding: 16px;
      border-radius: 8px;
    }

    .is-181 {
      background: linear-gradient(135deg, #00695C 0%, #26A69A 100%);
      color: white;
    }

    .is-182 {
      padding: 16px;
      background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
      border-radius: 12px;
    }

    .is-183 {
      font-size: 13px;
      line-height: 1.6;
    }

    .is-184 {
      padding: 16px;
      background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
      border-radius: 12px;
    }

    .is-185 {
      padding: 16px;
      background: linear-gradient(135deg, #FFFDE7 0%, #FFF9C4 100%);
      border-radius: 12px;
    }

    .is-186 {
      padding: 16px;
      background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
      border-radius: 12px;
    }

    .is-187 {
      padding: 16px;
      background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
      border-radius: 12px;
    }

    .is-188 {
      padding: 16px;
      background: linear-gradient(135deg, #EDE7F6 0%, #D1C4E9 100%);
      border-radius: 12px;
    }

    .is-189 {
      padding: 16px;
      background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%);
      border-radius: 12px;
    }

    .is-190 {
      overflow-x: auto;
      margin-bottom: 24px;
    }

    .is-191 {
      width: 100%;
      border-collapse: collapse;
    }

    .is-192 {
      padding: 12px;
      text-align: center;
      font-weight: bold;
    }

    .is-193 {
      padding: 16px;
      background: #FFF;
      border: 2px solid #e0d6cc;
      border-radius: 8px;
      text-align: center;
    }

    .is-194 {
      font-size: 32px;
      margin-bottom: 8px;
    }

    .is-195 {
      background: linear-gradient(135deg, #FF6F00 0%, #FFB300 25%, #4CAF50 50%, #2196F3 75%, #9C27B0 100%);
      color: white;
    }

    .is-196 {
      padding: 16px;
      background: linear-gradient(135deg, #FCE4EC 0%, #F8BBD9 100%);
      border-radius: 12px;
      border-left: 4px solid #E91E63;
    }

    .is-197 {
      color: #C2185B;
      margin-bottom: 8px;
    }

    .is-198 {
      padding: 16px;
      background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
      border-radius: 12px;
      border-left: 4px solid #9E9E9E;
    }

    .is-199 {
      color: #424242;
      margin-bottom: 8px;
    }

    .is-200 {
      background: #F5F5F5;
      padding: 20px;
      border-radius: 12px;
      margin-bottom: 20px;
    }

    .is-201 {
      padding: 12px;
      background: white;
      border-radius: 8px;
    }

    .is-202 {
      font-size: 12px;
      color: #666;
    }

    .is-203 {
      color: var(--soft-gray);
      margin-top: 8px;
    }

    .is-204 {
      color: var(--soft-gray);
    }

    .is-205 {
      color: var(--soft-gray);
      font-size: 14px;
      margin-top: 8px;
    }

    .is-206 {
      background: white;
      padding: 16px;
      border-radius: 8px;
      text-align: center;
    }

    .is-207 {
      font-size: 16px;
      color: var(--burgundy);
      font-weight: bold;
    }

    .is-208 {
      color: var(--soft-gray);
      font-size: 12px;
      text-transform: uppercase;
      margin-top: 4px;
    }

    .is-209 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 16px;
      margin-bottom: 24px;
    }

    .is-210 {
      background: #e8f5e9;
      padding: 16px;
      border-radius: 8px;
      border-left: 4px solid #4caf50;
    }

    .is-211 {
      color: #2e7d32;
      margin-bottom: 8px;
      font-size: 14px;
    }

    .is-212 {
      color: #555;
      font-size: 13px;
      line-height: 1.5;
    }

    .is-213 {
      background: #e3f2fd;
      padding: 16px;
      border-radius: 8px;
      border-left: 4px solid #2196f3;
    }

    .is-214 {
      color: #1565c0;
      margin-bottom: 8px;
      font-size: 14px;
    }

    .is-215 {
      background: #fff3e0;
      padding: 16px;
      border-radius: 8px;
      border-left: 4px solid #ff9800;
    }

    .is-216 {
      color: #e65100;
      margin-bottom: 8px;
      font-size: 14px;
    }

    .is-217 {
      margin-bottom: 16px;
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .is-218 {
      background: var(--burgundy);
      color: white;
    }

    .is-219 {
      background: white;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .is-220 {
      max-height: 400px;
      overflow-y: auto;
    }

    .is-221 {
      background: var(--burgundy);
      color: white;
      position: sticky;
      top: 0;
    }

    .is-222 {
      padding: 12px;
      text-align: left;
      font-weight: 600;
    }

    .is-223 {
      padding: 12px;
      text-align: center;
      font-weight: 600;
    }

    .is-224 {
      padding: 40px;
      text-align: center;
      color: var(--soft-gray);
    }

    .is-225 {
      font-size: 48px;
      margin-bottom: 8px;
    }

    .is-226 {
      padding: 24px;
      margin-top: 24px;
      border: 2px dashed var(--gold);
    }

    .is-227 {
      margin-bottom: 12px;
      color: var(--gold);
    }

    .is-228 {
      color: var(--soft-gray);
      margin-bottom: 16px;
    }

    .is-229 {
      background: #f8f4ef;
      padding: 16px;
      border-radius: 8px;
      margin-bottom: 16px;
    }

    .u-mb-8 {
      margin-bottom: 8px;
    }

    .is-230 {
      background: var(--burgundy);
      color: white;
      padding: 8px 16px;
      border-radius: 4px;
      font-size: 18px;
      display: inline-block;
    }

    .is-231 {
      margin-top: 8px;
      font-size: 12px;
      color: var(--soft-gray);
    }

    .is-232 {
      margin-left: 20px;
      color: var(--soft-gray);
      font-size: 14px;
      line-height: 1.8;
    }

    .is-233 {
      color: var(--burgundy);
    }

    .is-234 {
      color: #c62828;
      border-color: #c62828;
    }

    .is-235 {
      padding: 32px;
      max-width: 900px;
      margin: 0 auto;
    }

    .is-236 {
      margin-bottom: 32px;
      text-align: center;
    }

    .is-237 {
      color: var(--burgundy);
      margin-bottom: 8px;
    }

    .is-238 {
      background: #f8f4ef;
      padding: 24px;
      border-radius: 8px;
      margin-bottom: 32px;
    }

    .is-239 {
      color: var(--burgundy);
      text-decoration: none;
    }

    .is-240 {
      line-height: 1.8;
      color: var(--soft-charcoal);
    }

    .u-mb-48 {
      margin-bottom: 48px;
    }

    .is-241 {
      color: var(--burgundy);
      border-bottom: 2px solid var(--gold);
      padding-bottom: 8px;
      margin-bottom: 16px;
    }

    .u-ml-20 {
      margin-left: 20px;
    }

    .is-242 {
      background: #f8f4ef;
      padding: 4px 8px;
      border-radius: 4px;
    }

    .is-243 {
      background: #fff3e0;
      padding: 12px;
      border-left: 4px solid var(--gold);
      border-radius: 4px;
      margin-top: 16px;
    }

    .is-244 {
      margin-top: 16px;
      margin-bottom: 8px;
    }

    .is-245 {
      background: #e3f2fd;
      padding: 12px;
      border-left: 4px solid #2196f3;
      border-radius: 4px;
      margin-top: 16px;
    }

    .is-246 {
      color: #2196f3;
    }

    .is-247 {
      color: #4caf50;
    }

    .is-248 {
      color: #9c27b0;
    }

    .is-249 {
      color: #f44336;
    }

    .u-mt-12 {
      margin-top: 12px;
    }

    .is-250 {
      background: #ffebee;
      padding: 12px;
      border-left: 4px solid #f44336;
      border-radius: 4px;
      margin-top: 16px;
    }

    .is-251 {
      margin-left: 20px;
      font-size: 14px;
    }

    .is-252 {
      color: var(--soft-charcoal);
      margin-bottom: 8px;
    }

    .is-253 {
      background: linear-gradient(135deg, var(--burgundy) 0%, #8B1538 100%);
      color: white;
      padding: 24px;
      border-radius: 8px;
      margin-top: 32px;
    }

    .is-254 {
      color: white;
      margin-bottom: 16px;
    }

    .is-255 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 16px;
    }

    .is-256 {
      color: var(--gold);
      margin-bottom: 8px;
    }

    .is-257 {
      margin-left: 20px;
      font-size: 14px;
      line-height: 1.8;
    }

    .u-max-w-800 {
      max-width: 800px;
    }

    .is-258 {
      max-width: 800px;
      width: 95%;
    }

    .is-259 {
      background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-light) 100%);
      color: white;
    }

    .is-260 {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .is-261 {
      width: 56px;
      height: 56px;
      font-size: 22px;
      background: rgba(255,255,255,0.2);
    }

    .is-262 {
      margin: 0;
      color: white;
    }

    .is-263 {
      margin: 4px 0 0 0;
      opacity: 0.9;
      font-size: 14px;
    }

    .is-264 {
      color: white;
    }

    /* Client modal tabs: inherits from base, just minor overrides for modal context */
    .is-265 {
      margin: 0;
      border-radius: 0;
      padding: 0;
    }

    .is-265 .tab {
      padding: 12px 22px;
    }

    .is-265 .tab.active {
      padding-top: 12px;
      padding-bottom: 12px;
    }

    .is-266 {
      display: none;
      margin-left: 4px;
    }

    .u-hidden {
      display: none;
    }

    .is-267 {
      max-height: 400px;
      overflow-y: auto;
      margin-bottom: 16px;
    }

    .is-268 {
      text-align: center;
      color: var(--soft-gray);
    }

    .is-269 {
      border-top: 2px solid #e0d6cc;
      padding-top: 16px;
      text-align: center;
    }

    .u-p-20 {
      padding: 20px 0;
    }

    .is-270 {
      margin-bottom: 16px;
      color: var(--charcoal);
    }

    .is-271 {
      color: var(--soft-gray);
      margin-bottom: 20px;
      font-size: 14px;
    }

    .is-272 {
      margin-top: 32px;
      padding-top: 20px;
      border-top: 1px solid #e0d6cc;
    }

    .is-273 {
      margin-bottom: 12px;
      color: var(--charcoal);
    }

    .is-274 {
      width: 100%;
      min-height: 100px;
      padding: 12px;
      border: 2px solid #e0d6cc;
      border-radius: 8px;
      font-family: inherit;
      resize: vertical;
    }

    .u-max-w-480 {
      max-width: 480px;
    }

    .is-275 {
      background: var(--warning);
      color: white;
    }

    .is-276 {
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
    }

    .is-277 {
      background: #fff8e6;
      padding: 12px;
      border-radius: 8px;
      margin-top: 16px;
    }

    .is-278 {
      font-size: 13px;
      margin: 0;
      color: #856404;
    }

    .is-279 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-bottom: 16px;
    }

    .is-280 {
      background: var(--gold-light);
      padding: 12px;
      border-radius: 8px;
      font-size: 13px;
      color: var(--charcoal);
    }

    .is-281 {
      margin-bottom: 16px;
      color: var(--soft-gray);
    }

    .is-282 {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .is-283 {
      display: flex;
      gap: 16px;
    }

    .is-284 {
      color: var(--soft-gray);
      margin-top: 8px;
      display: block;
    }

    .is-285 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .is-286 {
      background: linear-gradient(135deg, var(--gold) 0%, #c9a227 100%);
      color: white;
    }

    .is-287 {
      background: #f8f5f0;
      padding: 16px;
      border-radius: 8px;
      margin-bottom: 20px;
    }

    .u-max-w-650 {
      max-width: 650px;
    }

    .is-288 {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      margin-top: 8px;
    }

    .is-289 {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      padding: 8px;
      background: #F3E5F5;
      border-radius: 6px;
    }

    .u-max-w-600 {
      max-width: 600px;
    }

    .is-290 {
      background: linear-gradient(135deg, #00BCD4 0%, #4DD0E1 100%);
      color: white;
    }

    .is-291 {
      background: linear-gradient(135deg, #D4AF37 0%, #c9a227 100%);
      color: white;
    }

    .is-292 {
      margin-bottom: 20px;
      color: var(--soft-gray);
    }

    .is-293 {
      background: #f5f0eb;
      padding: 16px;
      border-radius: 8px;
      margin-bottom: 16px;
    }

    .is-294 {
      font-weight: 600;
      margin-bottom: 8px;
    }

    .is-295 {
      font-size: 14px;
      color: var(--soft-gray);
    }

    .is-296 {
      background: white;
      border: 1px solid #e0d6cc;
      padding: 16px;
      border-radius: 8px;
      font-style: italic;
    }

    .u-max-w-700 {
      max-width: 700px;
    }

    .is-297 {
      background: #f5f0eb;
      padding: 16px;
      border-radius: 8px;
      margin-bottom: 20px;
    }

    .is-298 {
      margin-bottom: 12px;
      color: var(--burgundy);
    }

    .is-299 {
      font-size: 14px;
      margin-bottom: 8px;
    }

    .is-300 {
      display: block;
      background: white;
      padding: 12px;
      border-radius: 4px;
      font-size: 13px;
    }

    .is-301 {
      font-size: 13px;
      color: var(--soft-gray);
      margin-top: 8px;
    }

    .is-302 {
      display: none;
      margin-top: 20px;
    }

    .is-303 {
      overflow-x: auto;
      max-height: 300px;
      border: 1px solid #e0d6cc;
      border-radius: 8px;
    }

    .is-304 {
      width: 100%;
      font-size: 13px;
    }

    .is-305 {
      background: #f5f0eb;
      position: sticky;
      top: 0;
    }

    .u-text-14 {
      font-size: 14px;
    }

    .u-max-w-900 {
      max-width: 900px;
    }

    .is-306 {
      color: var(--soft-gray);
      font-size: 12px;
      margin-top: 4px;
      display: block;
    }

    .is-307 {
      grid-template-columns: 1fr 1fr;
    }

    .is-308 {
      color: var(--soft-gray);
      font-size: 12px;
    }

    .is-309 {
      background: linear-gradient(135deg, #6a1b9a 0%, #8e24aa 100%);
      color: white;
    }

    .is-310 {
      background: linear-gradient(135deg, #1976d2 0%, #2196f3 100%);
      color: white;
    }

    .is-311 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      gap: 8px;
      margin-top: 8px;
    }

    .is-312 {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
    }

    .u-max-w-560 {
      max-width: 560px;
    }

    .is-313 {
      background: linear-gradient(135deg, #d84315 0%, #ff5722 100%);
      color: white;
    }

    .is-314 {
      display: none;
      background: #f5f5f5;
      padding: 12px;
      border-radius: 8px;
      margin: 12px 0;
      font-size: 13px;
    }

    .is-315 {
      background: linear-gradient(135deg, #00897b 0%, #26a69a 100%);
      color: white;
    }

    .is-316 {
      background: linear-gradient(135deg, #00695c 0%, #00897b 100%);
      color: white;
    }

    .is-317 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 10px;
      margin-top: 8px;
    }

    .is-318 {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px;
      background: #FFF;
      border: 2px solid #E0E0E0;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s;
    }

    .is-319 {
      width: 24px;
      height: 24px;
      background: #C62828;
      border-radius: 50%;
    }

    .is-320 {
      font-size: 13px;
      font-weight: 500;
    }

    .is-321 {
      width: 24px;
      height: 24px;
      background: #F57C00;
      border-radius: 50%;
    }

    .is-322 {
      width: 24px;
      height: 24px;
      background: #FBC02D;
      border-radius: 50%;
    }

    .is-323 {
      width: 24px;
      height: 24px;
      background: #388E3C;
      border-radius: 50%;
    }

    .is-324 {
      width: 24px;
      height: 24px;
      background: #1976D2;
      border-radius: 50%;
    }

    .is-325 {
      width: 24px;
      height: 24px;
      background: #512DA8;
      border-radius: 50%;
    }

    .is-326 {
      width: 24px;
      height: 24px;
      background: #7B1FA2;
      border-radius: 50%;
    }

    .is-327 {
      position: fixed;
      bottom: 0;
      right: 0;
      padding: 8px 16px;
      font-size: 11px;
      color: #9E9890;
      background: rgba(253, 248, 243, 0.95);
      border-top-left-radius: 8px;
      box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
      z-index: 9999;
    }

    .is-328 {
      margin: 0;
    }

    .is-329 {
      color: #722F37;
      text-decoration: none;
    }

    /* ── Extracted inline styles ───────────────────────── */
    .life-path-value {
      font-size: 28px;
      color: var(--burgundy);
    }

    .spiritual-insights-text {
      font-size: 14px;
      line-height: 1.6;
    }

    .natal-chart-wrapper {
      margin: 24px 0;
      text-align: center;
    }

    .natal-chart-heading {
      color: var(--burgundy, #722F37);
      font-family: Georgia, serif;
      margin-bottom: 16px;
    }

    #natal-chart-canvas {
      max-width: 100%;
      border-radius: 16px;
      background: linear-gradient(135deg, #FDF8F3 0%, #f5ebe0 100%);
      box-shadow: 0 4px 16px rgba(114, 47, 55, 0.1);
    }

    .natal-chart-caption {
      margin-top: 8px;
      color: #8a7968;
      font-size: 13px;
    }

    .u-mt-8 {
      margin-top: 8px;
    }

    .client-search-relative {
      position: relative;
    }

    .client-search-dropdown {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      max-height: 200px;
      overflow-y: auto;
      background: #fff;
      border: 1px solid #ddd;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
      z-index: 10;
    }

    .selected-client-label {
      margin-top: 6px;
      font-size: 13px;
      color: var(--burgundy);
      font-weight: 600;
    }

    #docs-list {
      padding: 1rem;
    }

    .docs-intro {
      margin-bottom: 1rem;
      color: #888;
    }

    #docs-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1rem;
    }

    #docs-viewer {
      display: none;
      padding: 1.5rem;
    }

    .docs-back-btn {
      margin-bottom: 1rem;
    }

    #docs-content {
      line-height: 1.7;
      font-size: 0.95rem;
    }

    /* ---- Utility / inline-style replacements ---- */
    .d-none { display: none; }
    .admin-mb-10 { margin-bottom: 10px; }
    .admin-mt-24 { margin-top: 24px; }
    .admin-mt-10 { margin-top: 10px; }
    .admin-m-0 { margin: 0; }
    .admin-action-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
    }
    .admin-flex-toolbar {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .template-section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      padding: 10px 14px;
      background: rgba(114,47,55,.05);
      border-radius: 8px;
      border: 1px solid rgba(114,47,55,.15);
    }
    .template-toggle-icon {
      font-size: 18px;
      color: var(--burgundy);
      transition: transform .25s;
    }
    .input-uppercase { text-transform: uppercase; }
    .select-auto-height { height: auto; }
    .text-soft-gray { color: var(--soft-gray); }
    .required-asterisk { color: red; }

    /* Subscription page */
    .u-mb-24 { margin-bottom: 24px; }
    .u-mb-16 { margin-bottom: 16px; }
    .sub-stat-value { color: var(--burgundy, #722F37); }
    .sub-stat-unit { font-size: 14px; font-weight: 400; }
    .sub-toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
    .sub-note { font-size: 13px; }
    .modal-content-md { max-width: 640px; }
    .sub-media-hint { font-size: 12px; margin-top: 4px; }
    .form-label-inline { display: flex; align-items: center; gap: 8px; cursor: pointer; }
