* { margin: 0; padding: 0; box-sizing: border-box; }
.hidden { display: none !important; }

:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #EEF2FF;
  --text: #1F2937;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --bg: #FFFFFF;
  --bg-secondary: #F9FAFB;
  --bg-tertiary: #F3F4F6;
  --border: #E5E7EB;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-secondary);
  color: var(--text);
  min-height: 100vh;
}

/* Auth Modal */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
}
.modal.hidden { display: none; }
.modal-content {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.small-modal { max-width: 400px; }

.auth-header { text-align: center; margin-bottom: 24px; }
.logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 8px; }
.logo-text { font-size: 22px; font-weight: 700; color: var(--text); }
.logo-text small { font-weight: 400; color: var(--text-secondary); font-size: 14px; }
.auth-subtitle { color: var(--text-secondary); font-size: 14px; }

.auth-tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 2px solid var(--border); }
.auth-tab {
  flex: 1; padding: 10px; border: none; background: none;
  font-size: 14px; font-weight: 600; cursor: pointer;
  color: var(--text-secondary); border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all 0.2s;
}
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.auth-form.hidden { display: none; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 16px; outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--primary); }
.form-error { color: var(--danger); font-size: 13px; margin-top: 8px; }
.form-error.hidden { display: none; }
.form-success { color: var(--success); font-size: 13px; margin-top: 8px; }
.form-success.hidden { display: none; }
.form-description { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.forgot-password-link { text-align: center; margin-top: 12px; font-size: 13px; }
.forgot-password-link a, .back-to-login a { color: var(--primary); text-decoration: none; }
.forgot-password-link a:hover, .back-to-login a:hover { text-decoration: underline; }
.back-to-login { text-align: center; margin-top: 12px; font-size: 13px; }

/* Terms checkbox */
.terms-group { margin-bottom: 16px; }
.terms-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); cursor: pointer; font-weight: 400 !important; }
.terms-label input[type="checkbox"] { width: 16px; height: 16px; margin: 0; cursor: pointer; }
.terms-label a { color: var(--primary); text-decoration: none; }
.terms-label a:hover { text-decoration: underline; }

/* Terms modal */
.terms-modal-content { max-width: 640px; width: 100%; max-height: 85vh; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; padding: 0; }
.terms-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.terms-header h2 { font-size: 18px; color: var(--text); }
.terms-close { background: none; border: none; font-size: 24px; color: var(--text-light); cursor: pointer; padding: 0; line-height: 1; }
.terms-close:hover { color: var(--text); }
.terms-body { padding: 24px; overflow-y: auto; flex: 1; }
.terms-updated { font-size: 12px; color: var(--text-light); margin-bottom: 20px; font-style: italic; }
.terms-body h3 { font-size: 14px; font-weight: 600; color: var(--text); margin: 24px 0 8px; }
.terms-body h3:first-of-type { margin-top: 0; }
.terms-body p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 8px; }
.terms-body ul { list-style: none; padding: 0; margin: 0 0 8px; }
.terms-body li { font-size: 13px; color: var(--text-secondary); line-height: 1.7; padding: 4px 0 4px 16px; position: relative; }
.terms-body li::before { content: ''; position: absolute; left: 0; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.terms-footer { padding: 16px 24px; border-top: 1px solid var(--border); text-align: right; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: none; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-tertiary); }
.btn-full { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-xs { padding: 4px 8px; font-size: 12px; }

/* Topbar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 10px; }
.topbar-title { font-size: 16px; font-weight: 700; color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.partner-name { font-size: 13px; color: var(--text-secondary); }

/* Tab Navigation */
.tab-nav {
  display: flex; gap: 0; background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 24px; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-btn {
  padding: 12px 16px; border: none; background: none;
  font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--text-secondary); border-bottom: 2px solid transparent;
  white-space: nowrap; transition: all 0.2s;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-btn:hover { color: var(--text); }

/* Content */
.content { max-width: 1000px; margin: 0 auto; padding: 24px; }
.tab-content.hidden { display: none; }

/* Invite Codes Bar */
.invite-codes-bar {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 24px;
}
.invite-code-block {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
.invite-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.code-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.code-row code {
  font-size: 18px; font-weight: 700; color: var(--primary);
  background: var(--primary-light); padding: 6px 12px;
  border-radius: 6px; letter-spacing: 1px;
}
.link-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.code-link { color: var(--text-light); font-size: 11px; word-break: break-all; flex: 1; }

/* Stats Grid */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; text-align: center;
}
.stat-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text); }
.stat-value.highlight { color: var(--success); }

/* Info Box */
.info-box {
  background: var(--primary-light); border: 1px solid #C7D2FE;
  border-radius: var(--radius); padding: 20px;
}
.info-box h3 { font-size: 15px; margin-bottom: 8px; color: var(--primary); }
.info-box p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 6px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table {
  width: 100%; border-collapse: collapse;
  background: var(--bg); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
}
th, td { padding: 12px 16px; text-align: left; font-size: 13px; }
th {
  background: var(--bg-tertiary); font-weight: 600;
  color: var(--text-secondary); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
td { border-top: 1px solid var(--border); }
tr:hover td { background: var(--bg-secondary); }

.empty-state { color: var(--text-light); font-size: 14px; text-align: center; padding: 40px; }

/* Status Badges */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-pending { background: #FEF3C7; color: #92400E; }
.badge-approved { background: #D1FAE5; color: #065F46; }
.badge-paid, .badge-completed { background: #DBEAFE; color: #1E40AF; }
.badge-cancelled { background: #FEE2E2; color: #991B1B; }
.badge-active { background: #D1FAE5; color: #065F46; }
.badge-suspended { background: #FEE2E2; color: #991B1B; }
.badge-direct { background: var(--primary-light); color: var(--primary); }
.badge-override { background: #F3E8FF; color: #7C3AED; }

/* Filter Bar */
.filter-bar { display: flex; gap: 8px; margin-bottom: 16px; }
.filter-btn {
  padding: 6px 14px; border: 1px solid var(--border);
  border-radius: 20px; background: var(--bg);
  font-size: 13px; font-weight: 500; cursor: pointer;
  color: var(--text-secondary); transition: all 0.2s;
}
.filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Payout Header */
.payout-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding: 16px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.payout-balance { font-size: 14px; color: var(--text-secondary); }
.payout-balance strong { font-size: 20px; color: var(--success); }

/* Admin */
.admin-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.admin-tab-btn {
  padding: 8px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg);
  font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--text-secondary); transition: all 0.2s;
}
.admin-tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.admin-section.hidden { display: none; }
.admin-toolbar { margin-bottom: 16px; }
.actions-cell { display: flex; gap: 6px; flex-wrap: wrap; }

/* Modal Actions */
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 16px; }

/* Leaderboard */
.leaderboard-rank { font-size: 20px; font-weight: 700; color: var(--primary); }

/* Copy success */
.copy-btn.copied { color: var(--success); }

/* Daily Quote */
.daily-quote { background: linear-gradient(135deg, #1a1a2e, #16213e); border-radius: 10px; padding: 20px 24px; margin-bottom: 16px; }
.daily-quote-text { font-size: 15px; color: #fff; font-style: italic; line-height: 1.6; margin: 0 0 8px; }
.daily-quote-topic { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.5; margin: 0 0 10px; }
.daily-quote-timer { font-size: 11px; color: rgba(255,255,255,0.35); margin: 0; letter-spacing: 0.5px; }

/* Sales Content */
.sales-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; }
.sales-content h2 { margin-bottom: 16px; }
.sales-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.sales-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.sales-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 8px; }
.sales-card ul { list-style: none; padding: 0; }
.sales-card li { font-size: 14px; color: var(--text-secondary); line-height: 1.6; padding: 4px 0 4px 16px; position: relative; }
.sales-card li::before { content: ''; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.how-it-works-steps { padding-left: 20px; margin: 0; }
.how-it-works-steps li { font-size: 14px; color: var(--text-secondary); line-height: 1.6; padding: 6px 0; }
.how-it-works-steps li::before { content: none; }
.how-it-works-steps li::marker { color: var(--primary); font-weight: 700; }
.pricing-table { width: 100%; margin: 12px 0; }
.pricing-table th { background: var(--bg-tertiary); font-size: 12px; }
.pricing-table td { font-size: 14px; }
.pricing-note { font-size: 13px; color: var(--text-light); font-style: italic; }

/* Channel Rankings */
.channel-rank { display: flex; flex-direction: column; gap: 0; }
.channel-rank-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.channel-rank-item:last-child { border-bottom: none; padding-bottom: 0; }
.channel-rank-item:first-child { padding-top: 0; }
.channel-rank-item strong { font-size: 14px; color: var(--text); display: block; margin-bottom: 4px; }
.channel-rank-item p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.channel-badge { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; min-width: 28px; border-radius: 50%; background: var(--bg-tertiary); color: var(--text-light); font-size: 13px; font-weight: 700; margin-top: 2px; }
.channel-badge.gold { background: #fbbf24; color: #78350f; }
.channel-badge.silver { background: #d1d5db; color: #374151; }
.channel-badge.bronze { background: #d97706; color: #fff; }

/* Long Game Reminder */
.long-game-card { }
.long-game-card h3 { margin-bottom: 16px; }
.long-game-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 14px; }
.long-game-card p:last-child { margin-bottom: 0; }
.long-game-card strong { color: var(--text); }

/* Problems We Solve */
.problems-list { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.problem-item { padding: 16px; background: var(--bg-secondary); border-radius: 10px; }
.problem-item strong { font-size: 14px; color: var(--text); display: block; margin-bottom: 6px; }
.problem-item p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin: 0; }

/* Target Sectors */
.target-sectors { margin: 20px 0 8px; }
.target-group { margin-bottom: 28px; }
.target-group h4 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.sector-list { display: flex; flex-wrap: wrap; gap: 10px; }
.sector-tag { display: inline-block; padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 500; }
.sector-tag.hot { background: rgba(34, 197, 94, 0.12); color: #16a34a; border: 1px solid rgba(34, 197, 94, 0.25); }
.sector-tag.warm { background: rgba(251, 191, 36, 0.12); color: #b45309; border: 1px solid rgba(251, 191, 36, 0.25); }

.target-who { margin: 32px 0; padding-top: 24px; border-top: 1px solid var(--border); }
.target-who h4 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.target-audience { display: flex; flex-direction: column; gap: 20px; }
.audience-item { padding: 16px; background: var(--bg-secondary); border-radius: 10px; }
.audience-item strong { font-size: 14px; color: var(--text); display: block; margin-bottom: 8px; }
.audience-item p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin: 0; }

.target-decision-maker { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.target-decision-maker h4 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.target-decision-maker p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 14px; }
.target-decision-maker ul { list-style: none; padding: 0; margin: 16px 0; }
.target-decision-maker li { font-size: 13px; color: var(--text-secondary); line-height: 1.7; padding: 10px 0; padding-left: 20px; position: relative; border-bottom: 1px solid var(--border); }
.target-decision-maker li:last-child { border-bottom: none; }
.target-decision-maker li::before { content: ''; position: absolute; left: 0; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.target-decision-maker em { color: var(--text); font-style: italic; }

/* Follow-Up Timeline */
.followup-timeline { display: flex; flex-direction: column; gap: 0; margin: 12px 0; }
.followup-step { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.followup-step:last-child { border-bottom: none; padding-bottom: 0; }
.followup-step:first-child { padding-top: 0; }
.followup-step strong { font-size: 13px; color: var(--text); display: block; margin-bottom: 3px; }
.followup-step p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin: 0; }
.followup-day { font-size: 11px; font-weight: 700; color: var(--primary); background: var(--bg-tertiary); border-radius: 6px; padding: 4px 8px; white-space: nowrap; height: fit-content; margin-top: 2px; }

.objection { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.objection:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.objection strong { font-size: 14px; color: var(--text); display: block; margin-bottom: 4px; }
.objection p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin: 0; }

/* Todo Checklist */
.todo-checklist { list-style: none; padding: 0; margin: 16px 0 0; }
.todo-item { font-size: 14px; color: var(--text-secondary); line-height: 1.6; padding: 14px 0 14px 36px; position: relative; border-bottom: 1px solid var(--border); }
.todo-item:last-child { border-bottom: none; padding-bottom: 0; }
.todo-item.pending::before { content: ''; position: absolute; left: 0; top: 17px; width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--border); }
.todo-item.done::before { content: '\2713'; position: absolute; left: 0; top: 17px; width: 18px; height: 18px; border-radius: 4px; background: var(--primary); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }

/* Sales Dropdown */
.sales-dropdown { margin-top: 16px; margin-bottom: 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.sales-dropdown summary { padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.sales-dropdown summary::-webkit-details-marker { display: none; }
.sales-dropdown summary::before { content: '\25B6'; font-size: 10px; color: var(--text-light); transition: transform 0.2s; }
.sales-dropdown[open] summary::before { transform: rotate(90deg); }
.sales-dropdown-content { padding: 8px 20px 24px; }
.sales-dropdown-content > ul { list-style: none; padding: 0; margin: 8px 0 0; }
.sales-dropdown-content > ul > li { font-size: 13px; color: var(--text-secondary); line-height: 1.7; padding: 12px 0; padding-left: 20px; position: relative; border-bottom: 1px solid var(--border); }
.sales-dropdown-content > ul > li:last-child { border-bottom: none; }
.sales-dropdown-content > ul > li::before { content: ''; position: absolute; left: 0; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.sales-dropdown-content > ul > li strong { color: var(--text); }
.sales-dropdown-content > p { font-size: 13px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 14px; }
.sales-dropdown-content > p:last-child { margin-bottom: 0; }
.sales-dropdown-content > p strong { color: var(--text); }
.mindset-section { margin-bottom: 0; padding: 20px 0; border-bottom: 1px solid var(--border); }
.mindset-section:last-child { border-bottom: none; padding-bottom: 0; }
.mindset-section:first-child { padding-top: 12px; }
.mindset-section h4 { font-size: 15px; font-weight: 600; color: var(--text); margin: 0 0 12px; }
.mindset-section p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin: 0 0 12px; }
.mindset-section ul { list-style: none; padding: 0; margin: 12px 0; }
.mindset-section li { font-size: 13px; color: var(--text-secondary); line-height: 1.7; padding: 10px 0; padding-left: 20px; position: relative; border-bottom: 1px solid var(--border); }
.mindset-section li:last-child { border-bottom: none; }
.mindset-section li::before { content: ''; position: absolute; left: 0; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.mindset-section li strong { color: var(--text); }
.mindset-section p:last-child { margin-bottom: 0; }
.mindset-section p strong { color: var(--text); }

/* Sales Chat */
.sales-chat {
  position: sticky; top: 72px; height: calc(100vh - 120px);
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.sales-chat-header { padding: 16px; border-bottom: 1px solid var(--border); }
.sales-chat-header h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.sales-chat-header p { font-size: 12px; color: var(--text-light); margin: 0; }
.sales-chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.chat-msg { max-width: 95%; }
.chat-msg p { font-size: 14px; line-height: 1.6; margin: 0; white-space: pre-wrap; }
.ai-msg p {
  background: var(--bg-tertiary); padding: 12px 16px;
  border-radius: 12px 12px 12px 4px; color: var(--text);
}
.user-msg { align-self: flex-end; }
.user-msg p {
  background: var(--primary); color: white; padding: 12px 16px;
  border-radius: 12px 12px 4px 12px;
}
.ai-typing p { color: var(--text-light); font-style: italic; }
.sales-chat-input {
  display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border);
  align-items: flex-end;
}
.sales-chat-input textarea {
  flex: 1; resize: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: 16px; font-family: inherit; outline: none;
  max-height: 120px;
}
.sales-chat-input textarea:focus { border-color: var(--primary); }
.sales-chat-input .btn { flex-shrink: 0; }
.chat-msg-actions { display: flex; gap: 12px; margin-top: 6px; }
.chat-msg-actions span, .copy-response { font-size: 11px; color: var(--primary); cursor: pointer; display: inline-block; }
.chat-msg-actions span:hover, .copy-response:hover { text-decoration: underline; }
.save-response { color: var(--text-light) !important; }
.save-response:hover { color: var(--primary) !important; }

.sales-chat-header-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.sales-chat-header-top h3 { margin: 0; }
.sales-chat-header-top p { margin: 4px 0 0; }
#toggle-saved-answers { white-space: nowrap; font-size: 12px; }

.saved-answers-panel { display: flex; flex-direction: column; flex: 1; overflow-y: auto; padding: 12px; gap: 10px; }
.saved-answers-empty { font-size: 13px; color: var(--text-light); text-align: center; padding: 24px 12px; }
.saved-answer-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.saved-answer-q { font-size: 12px; color: var(--text-light); margin-bottom: 6px; font-style: italic; }
.saved-answer-a { font-size: 13px; color: var(--text); line-height: 1.5; white-space: pre-wrap; }
.saved-answer-actions { display: flex; gap: 12px; margin-top: 8px; border-top: 1px solid var(--border); padding-top: 8px; }
.saved-answer-actions span { font-size: 11px; color: var(--primary); cursor: pointer; }
.saved-answer-actions span:last-child { color: var(--text-light); }
.saved-answer-actions span:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
  .invite-codes-bar { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .sales-layout { grid-template-columns: 1fr; }
  .sales-chat { position: static; height: 500px; }
  .content { padding: 16px; }
  .topbar { padding: 12px 16px; }
  .tab-nav { padding: 0 16px; }
  .stat-value { font-size: 22px; }
  .code-row code { font-size: 15px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .modal-content { padding: 24px 20px; }
  .topbar-title { font-size: 14px; }
}
