  * { margin: 0; padding: 0; box-sizing: border-box; }
  body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f8fafc; }
  .navbar { background: white; padding: 15px 0; border-bottom: 1px solid #e5e7eb; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
  .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
  .navbar-content { display: flex; justify-content: space-between; align-items: center; }
  .logo { font-size: 1.5rem; font-weight: bold; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
  .user-info { display: flex; align-items: center; gap: 15px; }
  .btn { padding: 8px 16px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; text-decoration: none; border-radius: 6px; font-size: 0.875rem; border: none; cursor: pointer; transition: opacity 0.2s; }
  .btn:hover { opacity: 0.9; }
  .btn-secondary { background: #f3f4f6; color: #374151; }
  .btn-secondary:hover { background: #e5e7eb; opacity: 1; }
  .btn-danger { background: #ef4444; }
  .btn-danger:hover { background: #dc2626; opacity: 1; }
  .btn-sm { padding: 6px 12px; font-size: 0.75rem; }
  .btn-upgrade { background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%); font-weight: 600; }
  .btn-upgrade:hover { opacity: 0.9; }
  .btn-disabled { opacity: 0.5; cursor: not-allowed; }
  .main { padding: 40px 0; }
  .header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
  h1 { font-size: 1.75rem; color: #111; }
  
  /* Tab Navigation */
  .tabs { display: flex; gap: 0; margin-bottom: 30px; border-bottom: 2px solid #e5e7eb; }
  .tab { padding: 12px 24px; background: none; border: none; color: #6b7280; font-size: 0.875rem; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
  .tab:hover { color: #374151; }
  .tab.active { color: #667eea; border-bottom-color: #667eea; }
  .tab-content { display: none; }
  .tab-content.active { display: block; }
  
  .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 30px; }
  .stat-card { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid #e5e7eb; }
  .stat-label { font-size: 0.875rem; color: #6b7280; margin-bottom: 8px; }
  .stat-value { font-size: 1.5rem; font-weight: bold; color: #111; }
  .sites-section { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid #e5e7eb; }
  .sites-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
  h2 { font-size: 1.25rem; color: #111; }
  .sites-table { width: 100%; border-collapse: collapse; }
  .sites-table th { text-align: left; padding: 12px; font-size: 0.75rem; text-transform: uppercase; color: #6b7280; font-weight: 600; border-bottom: 1px solid #e5e7eb; }
  .sites-table td { padding: 16px 12px; border-bottom: 1px solid #f3f4f6; }
  .sites-table tr:hover { background: #f9fafb; }
  .site-domain { font-weight: 500; color: #111; }
  .site-url { font-size: 0.875rem; color: #6b7280; margin-top: 2px; }
  .status-badge { display: inline-block; padding: 4px 8px; border-radius: 12px; font-size: 0.75rem; font-weight: 500; }
  .status-active { background: #dcfce7; color: #166534; }
  .status-pending { background: #fef3c7; color: #92400e; }
  .status-error { background: #fee2e2; color: #991b1b; }
  .status-building { background: #dbeafe; color: #1e40af; }
  .actions { display: flex; gap: 8px; }
  .empty { text-align: center; padding: 60px 20px; color: #6b7280; }
  .empty-compact { padding: 40px 20px; }
  .empty-icon { font-size: 3rem; margin-bottom: 16px; }
  .empty-title { font-size: 1.25rem; font-weight: 600; color: #374151; margin-bottom: 8px; }
  .empty-text { font-size: 0.875rem; color: #6b7280; max-width: 400px; margin: 0 auto 12px; }
  .empty-code { font-family: monospace; background: #f3f4f6; padding: 12px 20px; border-radius: 6px; font-size: 0.9rem; color: #374151; display: inline-block; margin-bottom: 12px; }
  .empty-hint { font-size: 0.8rem; color: #9ca3af; max-width: 400px; margin: 0 auto 20px; }
  .loading { text-align: center; padding: 40px; color: #6b7280; }
  .spinner { display: inline-block; width: 24px; height: 24px; border: 3px solid #e5e7eb; border-top-color: #667eea; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 12px; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .error { background: #fee2e2; color: #991b1b; padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; }
  
  /* Billing Styles */
  .billing-section { background: white; padding: 24px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid #e5e7eb; }
  .billing-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
  .tier-badge { display: inline-block; padding: 6px 12px; border-radius: 20px; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; }
  .tier-free { background: #e5e7eb; color: #374151; }
  .tier-starter { background: #dbeafe; color: #1e40af; }
  .tier-pro { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
  .billing-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 24px; }
  .billing-stat { background: #f9fafb; padding: 20px; border-radius: 8px; text-align: center; }
  .billing-stat-label { font-size: 0.875rem; color: #6b7280; margin-bottom: 8px; }
  .billing-stat-value { font-size: 2rem; font-weight: bold; color: #111; }
  .billing-stat-sublabel { font-size: 0.75rem; color: #9ca3af; margin-top: 4px; }
  .progress-bar { width: 100%; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; margin-top: 8px; }
  .progress-fill { height: 100%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 4px; transition: width 0.3s ease; width: 0%; }
  .usage-meter { margin-top: 12px; }
  .usage-text { display: flex; justify-content: space-between; font-size: 0.75rem; color: #6b7280; }
  .billing-info { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 16px; margin-top: 20px; }
  .billing-info-title { font-weight: 600; color: #166534; margin-bottom: 8px; }
  .billing-info-text { font-size: 0.875rem; color: #166534; }
  .upgrade-section { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); border-radius: 8px; padding: 20px; margin-top: 24px; text-align: center; }
  .upgrade-title { font-size: 1.125rem; font-weight: 600; color: #92400e; margin-bottom: 8px; }
  .upgrade-text { font-size: 0.875rem; color: #a16207; margin-bottom: 16px; }
  .tier-comparison { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 24px; }
  .tier-card { background: white; border: 2px solid #e5e7eb; border-radius: 8px; padding: 20px; text-align: center; transition: all 0.2s; }
  .tier-card:hover { border-color: #667eea; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
  .tier-card.current { border-color: #22c55e; background: #f0fdf4; }
  .tier-card-title { font-size: 1.125rem; font-weight: 600; color: #111; margin-bottom: 8px; }
  .tier-card-price { font-size: 2rem; font-weight: bold; color: #667eea; }
  .tier-card-price span { font-size: 0.875rem; color: #6b7280; font-weight: normal; }
  .tier-card-features { list-style: none; margin: 16px 0; text-align: left; }
  .tier-card-features li { padding: 8px 0; border-bottom: 1px solid #f3f4f6; font-size: 0.875rem; color: #374151; }
  .tier-card-features li:before { content: "✓"; color: #22c55e; font-weight: bold; margin-right: 8px; }
  .tier-card-features li:last-child { border-bottom: none; }
  
  /* Modal styles */
  .modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 100; align-items: center; justify-content: center; }
  .modal-overlay.active { display: flex; }
  .modal { background: white; border-radius: 8px; width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 25px rgba(0,0,0,0.15); }
  .modal-wide { max-width: 640px; }
  .modal-header { padding: 20px; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; }
  .modal-title { font-size: 1.125rem; font-weight: 600; color: #111; }
  .modal-close { background: none; border: none; font-size: 1.5rem; color: #6b7280; cursor: pointer; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
  .modal-close:hover { background: #f3f4f6; }
  .modal-body { padding: 20px; }
  .modal-description { color: #6b7280; margin-bottom: 20px; font-size: 0.9rem; }
  .plugin-options { display: flex; flex-direction: column; gap: 16px; }
  .plugin-option { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; }
  .plugin-option-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
  .plugin-option-icon { font-size: 1.5rem; }
  .plugin-option h4 { font-size: 1rem; font-weight: 600; color: #111; }
  .plugin-option p { font-size: 0.8rem; color: #6b7280; }
  .btn-download { font-size: 0.85rem; padding: 8px 16px; }
  .plugin-instructions { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e5e7eb; }
  .plugin-instructions p { margin-bottom: 6px; font-size: 0.8rem; color: #374151; }
  .plugin-instructions code { display: block; background: #1f2937; color: #e5e7eb; padding: 10px 12px; border-radius: 6px; font-size: 0.8rem; overflow-x: auto; }
  .form-group { margin-bottom: 16px; }
  .form-label { display: block; font-size: 0.875rem; font-weight: 500; color: #374151; margin-bottom: 6px; }
  .form-input { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.875rem; transition: border-color 0.2s; }
  .form-input:focus { outline: none; border-color: #667eea; ring: 2px solid rgba(102, 126, 234, 0.2); }
  .form-hint { font-size: 0.75rem; color: #6b7280; margin-top: 4px; }
  .modal-footer { padding: 16px 20px; border-top: 1px solid #e5e7eb; display: flex; justify-content: flex-end; gap: 12px; }
  
  /* Project detail modal */
  .detail-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f3f4f6; }
  .detail-row:last-child { border-bottom: none; }
  .detail-label { font-size: 0.875rem; font-weight: 500; color: #6b7280; }
  .detail-value { font-size: 0.875rem; color: #111; }
  .detail-actions { display: flex; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #e5e7eb; }
  .detail-hint { margin-top: 16px; padding-top: 12px; border-top: 1px solid #f3f4f6; }
  .detail-hint p { font-size: 0.8rem; color: #6b7280; font-style: italic; }
  
  /* Toast notification */
  .toast { position: fixed; bottom: 20px; right: 20px; background: white; border-radius: 8px; padding: 16px 20px; box-shadow: 0 10px 15px rgba(0,0,0,0.1); border-left: 4px solid #22c55e; display: none; align-items: center; gap: 12px; z-index: 200; }
  .toast.active { display: flex; }
  .toast.error { border-left-color: #ef4444; }
  .toast-message { font-size: 0.875rem; color: #374151; }
.hidden { display: none; }
