/* ===== BankersKlub Design System ===== */

:root {
  --primary: #FF0059;
  --primary-light: #ff3381;
  --dark: #0a0a2e;
  --dark2: #1a1a4e;
  --blue: #3b82f6;
  --green: #10b981;
  --purple: #8b5cf6;
  --orange: #f59e0b;
  --bg: #f8fafc;
  --bg2: #f1f5f9;
  --text: #1e293b;
  --text2: #64748b;
  --text3: #94a3b8;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.05);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 24px;
}

* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: #e2e8f0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 20px 0;
}

.device-frame {
  width: 390px;
  min-height: 844px;
  background: var(--bg);
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
  border: 8px solid #1a1a2e;
}

.status-bar {
  height: 54px;
  background: var(--white);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 24px 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  position: sticky;
  top: 0;
  z-index: 100;
}
.status-bar .time { font-weight: 700; }
.status-bar .icons { display: flex; gap: 6px; align-items: center; }

.screen {
  display: none;
  min-height: calc(844px - 54px - 64px);
  padding-bottom: 80px;
  animation: fadeIn 0.25s ease;
}
.screen.active { display: block; }
.screen.no-tabs { min-height: calc(844px - 54px); padding-bottom: 20px; }

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

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.header-back {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  background: transparent;
  border: none;
}
.header-back:active { background: var(--bg2); }
.header-right { width: 36px; }

/* Role Switcher */
.role-switcher {
  position: relative;
  display: inline-flex;
}
.role-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg2);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.role-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 200;
  min-width: 160px;
  overflow: hidden;
}
.role-dropdown.open { display: block; }
.role-option {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.role-option:hover { background: var(--bg2); }
.role-option.active { color: var(--primary); font-weight: 600; }

/* Tab Bar */
.tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  padding-bottom: 8px;
  z-index: 100;
}
.tab-bar.hidden { display: none; }
.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  border: none;
  background: none;
  min-width: 56px;
}
.tab-item svg { width: 22px; height: 22px; color: var(--text3); }
.tab-item span { font-size: 10px; color: var(--text3); font-weight: 500; }
.tab-item.active svg { color: var(--primary); }
.tab-item.active span { color: var(--primary); font-weight: 700; }

/* Common Components */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:active { background: var(--primary-light); transform: scale(0.98); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:active { background: #fff0f5; }
.btn-secondary { background: var(--bg2); color: var(--text); }
.btn-sm { padding: 8px 16px; font-size: 13px; width: auto; }

.input-group { margin-bottom: 16px; }
.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
}
.input-group input, .input-group select, .input-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
  border-color: var(--primary);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text2);
  cursor: pointer;
  margin: 4px;
  transition: all 0.2s;
}
.chip.selected { background: var(--primary); color: var(--white); border-color: var(--primary); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-green { background: #d1fae5; color: #065f46; }
.badge-orange { background: #fef3c7; color: #92400e; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-purple { background: #ede9fe; color: #5b21b6; }

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding: 0 20px;
}

.page-pad { padding: 16px 20px; }

/* Progress Bar */
.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 20px 16px;
}
.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s;
}

/* Stats Row */
.stats-row {
  display: flex;
  gap: 12px;
  padding: 0 20px;
  margin-bottom: 16px;
}
.stat-card {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.stat-card .stat-value { font-size: 22px; font-weight: 800; color: var(--text); }
.stat-card .stat-label { font-size: 11px; color: var(--text2); margin-top: 2px; }

/* Menu List */
.menu-list { padding: 0 20px; }
.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.menu-item:active { background: var(--bg2); }
.menu-item-left { display: flex; align-items: center; gap: 12px; }
.menu-item-left svg { width: 20px; height: 20px; color: var(--text2); }
.menu-item-label { font-size: 14px; font-weight: 500; color: var(--text); }

/* Quick Actions Grid */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 20px;
  margin-bottom: 20px;
}
.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.quick-item:active { background: var(--bg2); }
.quick-item svg { width: 24px; height: 24px; }
.quick-item span { font-size: 10px; color: var(--text2); font-weight: 500; text-align: center; }

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 20px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  cursor: pointer;
}
.product-card:active { background: var(--bg2); }
.product-card svg { width: 32px; height: 32px; margin-bottom: 8px; }
.product-card .product-name { font-size: 13px; font-weight: 600; color: var(--text); }

/* OTP Input */
.otp-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}
.otp-box {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  outline: none;
}
.otp-box:focus { border-color: var(--primary); }

/* MPIN Numpad */
.numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 280px;
  margin: 0 auto;
}
.numpad-btn {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.numpad-btn:active { background: var(--bg2); }
.numpad-btn.empty { border: none; background: transparent; cursor: default; }

.mpin-dots {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}
.mpin-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
}
.mpin-dot.filled { background: var(--primary); border-color: var(--primary); }

/* Gauge */
.gauge-container { text-align: center; margin-bottom: 16px; }

/* Upload Area */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 12px;
}
.upload-area:active { border-color: var(--primary); background: #fff0f5; }
.upload-area svg { width: 32px; height: 32px; color: var(--text3); margin-bottom: 8px; }
.upload-area p { font-size: 13px; color: var(--text2); }

/* Pipeline */
.pipeline {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 0;
  overflow-x: auto;
}
.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 60px;
}
.pipeline-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.pipeline-dot.done { background: var(--green); border-color: var(--green); }
.pipeline-dot.active { border-color: var(--primary); }
.pipeline-dot svg { width: 12px; height: 12px; color: white; }
.pipeline-label { font-size: 10px; color: var(--text2); text-align: center; }
.pipeline-line { flex: 1; height: 2px; background: var(--border); min-width: 20px; margin-bottom: 20px; }
.pipeline-line.done { background: var(--green); }

/* Plan Cards */
.plan-cards { display: flex; gap: 12px; padding: 0 20px; overflow-x: auto; }
.plan-card {
  min-width: 200px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.plan-card.recommended { border-color: var(--primary); }
.plan-card .plan-name { font-size: 16px; font-weight: 700; color: var(--text); }
.plan-card .plan-price { font-size: 28px; font-weight: 800; color: var(--primary); margin: 8px 0; }
.plan-card .plan-price span { font-size: 14px; font-weight: 500; color: var(--text2); }
.plan-card ul { list-style: none; margin-top: 12px; }
.plan-card li { font-size: 13px; color: var(--text2); padding: 4px 0; display: flex; align-items: center; gap: 6px; }
.plan-card li svg { width: 14px; height: 14px; color: var(--green); flex-shrink: 0; }

/* Toggle */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-label { font-size: 14px; color: var(--text); }
.toggle {
  width: 48px; height: 28px;
  border-radius: 14px;
  background: var(--border);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle.on { background: var(--green); }
.toggle-knob {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--white);
  position: absolute;
  top: 3px; left: 3px;
  transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle.on .toggle-knob { left: 23px; }

/* FAB */
.fab {
  position: absolute;
  bottom: 80px;
  right: 20px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  border: none;
  z-index: 50;
}
.fab svg { width: 24px; height: 24px; }

/* Scrollable content area */
.scroll-content {
  overflow-y: auto;
  max-height: calc(844px - 54px - 64px);
}

/* Welcome screen specific */
.welcome-bg {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  min-height: calc(844px - 54px);
}
.welcome-logo {
  font-size: 42px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
}
.welcome-logo span { color: var(--primary); }
.welcome-tagline { color: var(--text3); font-size: 16px; margin-bottom: 60px; }

/* Earnings Banner */
.earnings-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #e6004f 100%);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--white);
  margin: 0 20px 16px;
}
.earnings-banner .eb-label { font-size: 12px; opacity: 0.8; }
.earnings-banner .eb-value { font-size: 28px; font-weight: 800; }

/* Job Card */
.job-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  cursor: pointer;
}
.job-card:active { background: var(--bg2); }
.job-card .jc-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.job-card .jc-company { font-size: 13px; color: var(--text2); margin-bottom: 8px; }
.job-card .jc-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.job-card .jc-meta-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text2); }
.job-card .jc-meta-item svg { width: 14px; height: 14px; }

/* Mandate Card */
.mandate-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  cursor: pointer;
}
.mandate-card .mc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.mandate-card .mc-type { font-size: 15px; font-weight: 700; color: var(--text); }
.mandate-card .mc-amount { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.mandate-card .mc-desc { font-size: 13px; color: var(--text2); }

/* Referral Code Card */
.referral-card {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 20px;
}
.referral-code {
  display: inline-flex;
  padding: 10px 24px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 4px;
  margin: 12px 0;
  border: 1px dashed rgba(255,255,255,0.3);
}

.tier-table {
  width: 100%;
  border-collapse: collapse;
}
.tier-table th, .tier-table td {
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.tier-table th { font-weight: 700; color: var(--text); background: var(--bg2); }
.tier-table td { color: var(--text2); }

/* ===== NEW COMPONENT STYLES ===== */

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
  min-height: 400px;
}
.empty-state svg { width: 64px; height: 64px; color: var(--text3); margin-bottom: 20px; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--text2); margin-bottom: 24px; line-height: 1.5; }

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg2) 25%, #e8edf2 50%, var(--bg2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
.skeleton-circle { border-radius: 50%; }
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }
.skeleton-title { height: 20px; width: 70%; margin-bottom: 12px; }
.skeleton-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Chat Bubble */
.chat-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.chat-list-item:active { background: var(--bg2); }
.chat-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: var(--white);
  flex-shrink: 0;
}
.chat-info { flex: 1; min-width: 0; }
.chat-name { font-size: 15px; font-weight: 600; color: var(--text); }
.chat-preview { font-size: 13px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-meta { text-align: right; flex-shrink: 0; }
.chat-time { font-size: 11px; color: var(--text3); }
.chat-unread {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-left: auto; margin-top: 4px;
}
.chat-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 8px;
}
.chat-bubble.sent {
  background: var(--primary);
  color: var(--white);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.chat-bubble.received {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-bubble-time {
  font-size: 10px;
  color: var(--text3);
  margin-top: 2px;
}
.chat-input-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.chat-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.chat-input:focus { border-color: var(--primary); }
.chat-send-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.chat-send-btn svg { width: 18px; height: 18px; color: var(--white); }

/* Notification Item */
.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.notif-item:active { background: var(--bg2); }
.notif-item.unread { background: #fff0f5; }
.notif-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notif-content { flex: 1; }
.notif-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.notif-desc { font-size: 13px; color: var(--text2); }
.notif-time { font-size: 11px; color: var(--text3); margin-top: 4px; }

/* Search */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin: 12px 20px;
}
.search-bar svg { width: 18px; height: 18px; color: var(--text3); flex-shrink: 0; }
.search-bar input {
  border: none; outline: none; background: transparent;
  flex: 1; font-size: 14px; color: var(--text); font-family: inherit;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.search-result-item:active { background: var(--bg2); }

/* Offline Banner */
.offline-banner {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  display: none;
}
.offline-banner.visible { display: block; }

/* Quick Action FAB Menu */
.fab-menu {
  position: absolute;
  bottom: 144px;
  right: 20px;
  z-index: 60;
  display: none;
}
.fab-menu.open { display: block; }
.fab-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  margin-bottom: 8px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
}
.fab-menu-item:active { background: var(--bg2); }
.fab-menu-item svg { width: 18px; height: 18px; }

/* Analytics Chart placeholder */
.chart-placeholder {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  text-align: center;
}
.chart-bar-group {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 120px;
  padding: 0 10px;
  margin-bottom: 8px;
}
.chart-bar {
  width: 24px;
  border-radius: 4px 4px 0 0;
  transition: height 0.3s;
}
.chart-bar-label {
  font-size: 10px;
  color: var(--text3);
  margin-top: 4px;
  text-align: center;
}

/* Video Call UI */
.video-call-screen {
  background: var(--dark);
  min-height: calc(844px - 54px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.video-call-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; font-weight: 800; color: var(--white);
  margin-bottom: 16px;
}
.video-call-controls {
  display: flex;
  gap: 20px;
  position: absolute;
  bottom: 40px;
}
.video-call-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.video-call-btn svg { width: 24px; height: 24px; color: var(--white); }
.video-call-btn.mute { background: rgba(255,255,255,0.2); }
.video-call-btn.end { background: #ef4444; }
.video-call-btn.camera { background: rgba(255,255,255,0.2); }

/* Course Card */
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  cursor: pointer;
}
.course-card:active { background: var(--bg2); }
.course-thumb {
  height: 100px;
  display: flex; align-items: center; justify-content: center;
}
.course-thumb svg { width: 40px; height: 40px; color: var(--white); }
.course-info { padding: 12px 16px; }
.course-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.course-meta { font-size: 12px; color: var(--text2); }
.course-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 8px;
}
.course-progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 2px;
}

/* Forum Post */
.forum-post {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.forum-post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.forum-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: var(--white);
}
.forum-author { font-size: 14px; font-weight: 600; color: var(--text); }
.forum-time { font-size: 11px; color: var(--text3); }
.forum-body { font-size: 14px; color: var(--text); line-height: 1.5; margin-bottom: 12px; }
.forum-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.forum-action {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text2); cursor: pointer;
  background: none; border: none; font-family: inherit;
}
.forum-action svg { width: 16px; height: 16px; }

/* Mentor Card */
.mentor-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
}
.mentor-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; color: var(--white);
  flex-shrink: 0;
}
.mentor-info { flex: 1; }
.mentor-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.mentor-role { font-size: 13px; color: var(--text2); margin-bottom: 6px; }
.mentor-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--orange); }

/* Event Card */
.event-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  cursor: pointer;
}
.event-card:active { background: var(--bg2); }
.event-date-badge {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg2);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.event-date-badge .day { font-size: 18px; font-weight: 800; color: var(--primary); line-height: 1; }
.event-date-badge .month { font-size: 10px; font-weight: 600; color: var(--text2); text-transform: uppercase; }

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 12px 20px;
}
.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.stepper-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--text3);
  background: var(--white);
}
.stepper-dot.active { border-color: var(--primary); color: var(--primary); }
.stepper-dot.done { background: var(--primary); border-color: var(--primary); color: var(--white); }
.stepper-label { font-size: 9px; color: var(--text3); margin-top: 4px; }
.stepper-line { width: 24px; height: 2px; background: var(--border); margin-bottom: 18px; }
.stepper-line.done { background: var(--primary); }

/* Plan Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.comparison-table th {
  padding: 10px 8px;
  text-align: center;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--border);
}
.comparison-table td {
  padding: 10px 8px;
  text-align: center;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
}
.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text);
}
.comparison-table .highlight { background: #fff0f5; }

/* Document Item */
.doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  cursor: pointer;
}
.doc-item:active { background: var(--bg2); }
.doc-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.doc-info { flex: 1; }
.doc-name { font-size: 14px; font-weight: 600; color: var(--text); }
.doc-meta { font-size: 12px; color: var(--text2); }

/* Marketplace */
.marketplace-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  cursor: pointer;
}
.marketplace-card:active { background: var(--bg2); }
.marketplace-banner {
  height: 80px;
  display: flex; align-items: center; justify-content: center;
}
.marketplace-info { padding: 12px 16px; }
.marketplace-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.marketplace-desc { font-size: 12px; color: var(--text2); }

/* ===== Consolidated from inline styles ===== */

/* Pulse animation (from video-consult.html) */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Community tabs (from community.html) */
.community-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.community-tab.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}
.community-tab:active {
  background: var(--bg2);
}

/* ===== SPA Loading & Transitions ===== */

/* Section loading spinner */
.section-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
}
.section-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.section-loading-text {
  font-size: 14px;
  color: var(--text2);
}

/* Screen slide transitions */
.screen.slide-in {
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
.screen.slide-back {
  animation: slideBack 0.3s ease;
}
@keyframes slideBack {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Load error */
.load-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 12px;
  text-align: center;
  padding: 40px;
}
.load-error svg { width: 48px; height: 48px; color: var(--text3); margin-bottom: 8px; }
.load-error h3 { font-size: 16px; font-weight: 700; color: var(--text); }
.load-error p { font-size: 14px; color: var(--text2); line-height: 1.5; }

/* ===== Toast Notifications ===== */
.toast-container {
  position: absolute;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: 90%;
}
.toast {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  pointer-events: auto;
  animation: toastIn 0.3s ease;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.toast-info { background: var(--text); }
.toast-success { background: var(--green); }
.toast-error { background: var(--primary); }
.toast-out { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-12px); }
}
