/* ======================================= */
/* ====== 1. GLOBAL & BASE STYLES ======== */
/* ======================================= */

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #000;
  color: #fff;
}

h2 {
  font-size: 26px;
  margin-bottom: 8px;
  color: #fff;
}

.subtext {
  color: #aaa;
  font-size: 14px;
}

/* ======================================= */
/* ========== 2. LAYOUT & DASHBOARD ====== */
/* ======================================= */

.dashboard {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
  width: 200px;
  background: rgba(10,10,10,0.95);
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 15px 0;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 20px;
}

.sidebar-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.brand {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Sidebar category labels — now collapsible triggers */
.sidebar-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  padding: 14px 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}

.sidebar-label:hover { color: rgba(255,255,255,0.4); }

.sidebar-label .sidebar-chevron {
  font-size: 8px;
  transition: transform 0.25s ease;
  color: rgba(255,255,255,0.2);
}

.sidebar-label.collapsed .sidebar-chevron {
  transform: rotate(-90deg);
}

/* Collapsible group wrapper */
.sidebar-group {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 300px;
  opacity: 1;
}

.sidebar-group.collapsed {
  max-height: 0;
  opacity: 0;
}

.sidebar-menu li {
  display: block;
  color: #aaa;
  cursor: pointer;
  transition: 0.3s;
  padding: 0 20px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 0;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
}

.sidebar-menu li:hover,
.sidebar-menu li:hover a {
  color: #fff;
}

.sidebar-menu li.active,
.sidebar-menu li.active a {
  color: #fff;
}

.sidebar-menu li.active {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 0;
  margin: 0 12px;
  width: calc(100% - 24px);
}

.sidebar-menu li.active a {
  padding: 11px 12px;
}

.sidebar-menu i {
  color: #00aaff;
  font-size: 15px;
  width: 18px;
  text-align: center;
}

.sidebar-menu a:not(:hover) i {
  color: #00aaff;
}

/* --- Main Area --- */
.main {
  flex: 1;
  padding: 25px 35px;
  overflow-x: hidden;
}

/* --- Topbar --- */
.topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 25px;
}

.profile {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.profile i {
  font-size: 26px;
  color: #00aaff;
}

/* --- Cards Grid Layout --- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.card {
  background: #0b0b0b;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(0,170,255,0.15);
}

/* ======================================= */
/* ========== 3. UTILITIES & COMPONENTS == */
/* ======================================= */

.performance-overview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0b0b0b;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 30px 50px;
  margin-bottom: 30px;
  box-shadow: 0 0 20px rgba(0,170,255,0.1);
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-width: 150px;
}

.metric-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.metric i {
  font-size: 22px;
  color: #00aaff;
  background: rgba(0,170,255,0.1);
  padding: 10px;
  border-radius: 10px;
}

.metric h4 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.metric p {
  margin: 0;
  color: #aaa;
  font-size: 14px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ccc;
  font-size: 15px;
}

.bar {
  background: #111;
  height: 6px;
  border-radius: 6px;
  overflow: hidden;
  margin: 6px 0 10px;
}

.fill {
  background: linear-gradient(90deg, #0066ff, #00aaff);
  height: 100%;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,136,255,0.6);
}

.active-btn {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
}

/* ======================================= */
/* ========== 4. CHAT/AI STYLES ========== */
/* ======================================= */

.chat-box {
  display: flex;
  flex-direction: column;
}

.chat {
  background: #050505;
  border-radius: 12px;
  padding: 10px;
  height: 180px;
  overflow-y: auto;
  margin-bottom: 10px;
}

.msg {
  padding: 8px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  max-width: 80%;
}

.user {
  background: #1a1a1a;
  color: #fff;
  align-self: flex-end;
}

.ai {
  background: #007bff;
  color: #fff;
  align-self: flex-start;
}

.input-box {
  display: flex;
  gap: 8px;
}

.input-box input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: #111;
  color: #fff;
}

.input-box button {
  background: #007bff;
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  cursor: pointer;
}

/* ======================================= */
/* ========== 5. ANALYTICS PAGE ========== */
/* ======================================= */

.analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.analytics-header h4 {
  font-size: 15px;
  color: #aaa;
  margin: 0;
  font-weight: 500;
}

.analytics-header .value {
  font-size: 22px;
  font-weight: 700;
  margin: 3px 0 0;
}

.analytics-chart {
  position: relative;
  height: 320px;
  display: flex;
}

.y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-right: 10px;
  color: #aaa;
  font-size: 13px;
  font-weight: 500;
  text-align: right;
  padding-bottom: 25px;
  padding-top: 10px;
}

.analytics-chart svg {
  flex: 1;
  align-self: flex-end;
  height: 100%;
}

.analytics-chart path {
  stroke-linecap: round;
  animation: draw 2s ease forwards;
}

@keyframes draw {
  from { stroke-dasharray: 700; stroke-dashoffset: 700; }
  to { stroke-dashoffset: 0; }
}

.ai-insights ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ai-insights li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: #ccc;
  font-size: 14px;
}

.ai-insights i {
  color: #00aaff;
}

.prediction {
  font-size: 36px;
  font-weight: 700;
  color: #00aaff;
  margin: 10px 0;
}

.traffic svg {
  flex: 1;
  height: 200px;
}

.regions .metric-row {
  font-size: 15px;
  color: #ccc;
}

/* ======================================= */
/* ========== 6. CRM PAGE STYLES ========= */
/* ======================================= */

.crm-overview {
  margin-bottom: 40px;
}

.crm-overview h2 {
  font-size: 26px;
  margin-bottom: 8px;
  color: #fff;
}

.crm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: #0b0b0b;
  padding: 22px 25px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.stat-card i {
  font-size: 22px;
  color: #00aaff;
  background: rgba(0,170,255,0.1);
  padding: 10px;
  border-radius: 10px;
}

.stat-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.stat-card p {
  margin: 0;
  font-size: 13px;
  color: #aaa;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(0,170,255,0.15);
}

.crm-leads {
  background: #0b0b0b;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.05);
  padding: 25px;
  margin-bottom: 30px;
}

.crm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.crm-header h3 {
  font-size: 18px;
  color: #fff;
}

.add-lead-btn {
  background: linear-gradient(90deg, #0066ff, #00aaff);
  border: none;
  color: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}

.add-lead-btn:hover {
  box-shadow: 0 0 15px rgba(0,170,255,0.4);
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
}

.leads-table th, .leads-table td {
  text-align: left;
  padding: 14px 12px;
}

.leads-table thead {
  background: rgba(255,255,255,0.04);
  color: #00aaff;
  font-weight: 600;
}

.leads-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.leads-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

.status {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.status.hot {
  background: rgba(255,0,0,0.15);
  color: #ff4d4d;
}

.status.warm {
  background: rgba(255,166,0,0.15);
  color: #ffb347;
}

.status.cold {
  background: rgba(0,170,255,0.15);
  color: #00aaff;
}

.crm-ai {
  background: #0b0b0b;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.05);
  padding: 25px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.crm-ai h3 {
  font-size: 18px;
  color: #00aaff;
  margin-bottom: 12px;
}

.ai-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 18px;
  color: #ccc;
  font-size: 14px;
}

.ai-btn {
  margin-top: 14px;
  background: rgba(0,170,255,0.1);
  color: #00aaff;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  transition: 0.3s;
}

.ai-btn:hover {
  background: rgba(0,170,255,0.2);
}

/* ======================================= */
/* ========== 7. AUTOMATIONS PAGE ======== */
/* ======================================= */

.automations-header {
  margin-bottom: 40px;
}

.automations-header h2 {
  font-size: 26px;
}

.new-automation-btn {
  background: linear-gradient(90deg, #0066ff, #00aaff);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}

.new-automation-btn:hover {
  box-shadow: 0 0 15px rgba(0,170,255,0.4);
}

.automations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.automation-card {
  background: #0b0b0b;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
}

.automation-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(0,170,255,0.15);
}

.automation-card i {
  font-size: 24px;
  color: #00aaff;
  background: rgba(0,170,255,0.1);
  padding: 12px;
  border-radius: 10px;
}

.automation-info h3 {
  color: #fff;
  margin-bottom: 6px;
}

.automation-info p {
  color: #aaa;
  font-size: 13px;
  margin-bottom: 10px;
}

.status-toggle {
  background: rgba(255,255,255,0.05);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  color: #aaa;
  margin-bottom: 10px;
  transition: 0.3s;
}

.status-toggle.active {
  background: rgba(0,170,255,0.15);
  color: #00aaff;
}

.progress-bar {
  height: 6px;
  width: 100%;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, #0072ff, #00c6ff);
}

.ai-workflow, .ai-log {
  background: #0b0b0b;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.05);
  padding: 25px;
  margin-bottom: 30px;
}

.ai-workflow h3, .ai-log h3 {
  font-size: 18px;
  color: #00aaff;
  margin-bottom: 10px;
}

.ai-workflow textarea {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  color: #fff;
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  min-height: 80px;
  resize: none;
  box-sizing: border-box;
}

.ai-generate-btn {
  margin-top: 12px;
  background: rgba(0,170,255,0.1);
  color: #00aaff;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  transition: 0.3s;
}

.ai-generate-btn:hover {
  background: rgba(0,170,255,0.2);
}

.ai-log ul {
  list-style: none;
  padding: 0;
}

.ai-log li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
}

.ai-log i {
  color: #00aaff;
}

/* ======================================= */
/* ======== 8. AI ASSISTANT PAGE ========= */
/* ======================================= */

.assistant-header {
  margin-bottom: 25px;
}

.assistant-header h2 {
  margin: 0;
  font-size: 22px;
  color: white;
}

.assistant-header h2 i {
  color: #00aaff;
}

.assistant-header p {
  color: #aaa;
  margin-top: 6px;
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  margin-bottom: 20px;
  color: white;
}

.card h3 i {
  color: #00aaff;
}

.voice-assistant {
  text-align: center;
}

.mic-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.mic-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(90deg, #007bff, #00aaff);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0,170,255,0.3);
  transition: 0.3s;
}

.mic-btn:hover {
  box-shadow: 0 0 40px rgba(0,170,255,0.6);
}

.mic-status {
  color: #aaa;
  margin-top: 10px;
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-actions button {
  background: linear-gradient(90deg, #0066ff, #00aaff);
  border: none;
  padding: 12px;
  border-radius: 8px;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
  font-family: 'Poppins', sans-serif;
}

.quick-actions button:hover {
  opacity: 0.85;
}

.recommendations ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recommendations li {
  background: rgba(255,255,255,0.05);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: 0.3s;
  font-size: 14px;
  color: #ccc;
}

.recommendations li:hover {
  background: rgba(0,170,255,0.15);
}

/* ======================================= */
/* ========== 9. SETTINGS PAGE =========== */
/* ======================================= */

.settings-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 6px;
}

.subtitle {
  color: #aaa;
  margin-bottom: 25px;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.setting-row label {
  flex: 1;
  color: #ccc;
  font-weight: 500;
}

.setting-row input,
.setting-row select {
  flex: 2;
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px;
  color: #fff;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
}

.info {
  color: #777;
  font-size: 14px;
}

.save-btn {
  margin-top: 10px;
  background: linear-gradient(90deg, #0066ff, #00aaff);
  border: none;
  border-radius: 10px;
  color: white;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  font-family: 'Poppins', sans-serif;
}

.save-btn.small {
  padding: 8px 16px;
  font-size: 13px;
}

.save-btn.tiny {
  padding: 4px 10px;
  font-size: 11px;
  margin-left: 8px;
  margin-top: 0;
}

.save-btn:hover {
  box-shadow: 0 0 15px rgba(0,136,255,0.5);
}

.toggle-btn {
  background: #007bff;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
  font-family: 'Poppins', sans-serif;
}

.toggle-btn:hover {
  background: #0099ff;
}

.danger-zone {
  border: 1px solid rgba(255,0,0,0.2);
  background: rgba(20,0,0,0.4);
}

.danger-zone h3 {
  color: #ff4d4d !important;
}

.danger-zone p {
  color: #bbb;
  margin-bottom: 15px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.logout-btn,
.deactivate-btn,
.delete-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  font-family: 'Poppins', sans-serif;
}

.logout-btn { background: #007bff; color: #fff; }
.logout-btn:hover { background: #0095ff; }
.deactivate-btn { background: #ffaa00; color: #000; }
.deactivate-btn:hover { background: #ffcc00; }
.delete-btn { background: #ff3333; color: #fff; }
.delete-btn:hover { background: #ff0000; box-shadow: 0 0 10px rgba(255,0,0,0.5); }

/* ======================================= */
/* ========== 10. AI INSIGHTS ============ */
/* ======================================= */

.ai-insights {
  background: #0b0b0b;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 0 20px rgba(0,170,255,0.07);
}

.ai-insights h3 {
  font-size: 20px;
  margin-bottom: 18px;
  color: #fff;
}

.ai-insights ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-insights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,255,255,0.02);
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.04);
  font-size: 15px;
  line-height: 1.45;
  color: #ddd;
  transition: 0.25s;
}

.ai-insights li:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(0,170,255,0.15);
  border-color: rgba(0,170,255,0.2);
}

.ai-insights li i {
  color: #00aaff;
  font-size: 18px;
  margin-top: 2px;
  filter: drop-shadow(0 0 4px rgba(0,170,255,0.6));
  flex-shrink: 0;
}

.ai-insights li strong {
  color: #fff;
  font-weight: 600;
}

/* ======================================= */
/* ========== 11. TOGGLE STATUS ========== */
/* ======================================= */

.toggle-status {
  border: none;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
}

.toggle-status.running {
  background: rgba(0,170,255,0.15);
  color: #00aaff;
}

.toggle-status.paused {
  background: rgba(255,255,255,0.05);
  color: #666;
}

/* ======================================= */
/* ========== 12. MODALS ================= */
/* ======================================= */

.nerozo-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.nerozo-modal-card {
  width: 90%;
  max-width: 500px;
  background: #0b0b0b;
  border: 1px solid rgba(0,170,255,0.3);
  box-shadow: 0 0 30px rgba(0,0,0,1);
  animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.nerozo-modal.hidden { display: none; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-close {
  font-size: 28px;
  cursor: pointer;
  color: #aaa;
  transition: 0.2s;
}

.modal-close:hover { color: #ff3333; }

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-card {
  background: #0d0d0d;
  border: 1px solid rgba(0,170,255,0.3);
  border-radius: 24px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 0 50px rgba(0,170,255,0.1);
}

.modal-card.wide {
  max-width: 1100px;
  height: 85vh;
}

.close-modal {
  position: absolute;
  top: 20px; right: 20px;
  background: none; border: none;
  color: #555; font-size: 28px; cursor: pointer;
}

.builder-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex: 1;
  overflow: hidden;
}

.pane {
  background: #050505;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}

.pane-label {
  padding: 10px 15px;
  font-size: 11px;
  color: #00aaff;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255,255,255,0.02);
}

.step {
  background: rgba(255,255,255,0.03);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  border-left: 3px solid #00aaff;
  font-size: 14px;
}

/* ======================================= */
/* ========== 13. TABLE STYLES =========== */
/* ======================================= */

.leads-table-container {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #000;
}

.leads-table thead th {
  position: sticky;
  top: 0;
  background: #0d0e0e;
  color: #ffffff;
  padding: 12px;
  z-index: 10;
  text-align: left;
}

.leads-table thead {
  border-bottom: 2px solid #000;
}

@media (max-width: 600px) {
  .leads-table-container { overflow-x: auto; }
  .leads-table { min-width: 600px; }
}

@media (max-width: 350px) {
  body { overflow-x: hidden; }
}

/* ======================================= */
/* ===== 14. PRICING BADGE / EXTRAS ====== */
/* ======================================= */

.pricing-card { position: relative; }

.pricing-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent2, #00ccff);
  color: #000;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,170,255,0.4);
}

.coming-soon-badge {
  display: inline-block;
  background: rgba(0,183,255,0.12);
  color: #00ccff;
  border: 1px solid rgba(0,183,255,0.3);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

/* ======================================= */
/* ===== 15. FINANCE PAGE ================ */
/* ======================================= */

.finance-header {
  margin-bottom: 30px;
}

.finance-header h2 { font-size: 26px; }

.finance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 30px;
}

.finance-card {
  background: #0b0b0b;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 25px;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
}

.finance-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(0,170,255,0.15);
}

.finance-card h3 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.finance-card h3 i { color: #00aaff; }

.finance-amount {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.finance-amount.up { color: #00e676; }
.finance-amount.down { color: #ff4d4d; }

.finance-label {
  font-size: 13px;
  color: #aaa;
  margin: 0 0 16px;
}

.finance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 14px;
  color: #ccc;
}

.finance-row:last-child { border-bottom: none; }

.finance-row span:last-child { color: #fff; font-weight: 600; }

.finance-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.finance-tag.income {
  background: rgba(0,230,118,0.12);
  color: #00e676;
}

.finance-tag.expense {
  background: rgba(255,77,77,0.12);
  color: #ff4d4d;
}

.finance-forecast {
  background: #0b0b0b;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 25px;
  margin-bottom: 25px;
}

.finance-forecast h3 {
  font-size: 17px;
  color: #00aaff;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ======================================= */
/* ===== 16. MARKETING PAGE ============== */
/* ======================================= */

.marketing-header { margin-bottom: 30px; }
.marketing-header h2 { font-size: 26px; }

.marketing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 30px;
}

.marketing-card {
  background: #0b0b0b;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 25px;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
}

.marketing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(0,170,255,0.15);
}

.marketing-card h3 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.marketing-card h3 i { color: #00aaff; }

.campaign-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.campaign-type-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 12px;
  color: #ccc;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  transition: 0.3s;
  font-family: 'Poppins', sans-serif;
}

.campaign-type-btn:hover,
.campaign-type-btn.selected {
  background: rgba(0,170,255,0.12);
  border-color: rgba(0,170,255,0.3);
  color: #00aaff;
}

.campaign-type-btn i {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
  color: #00aaff;
}

.gen-textarea {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  color: #fff;
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  min-height: 80px;
  resize: none;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

.gen-output {
  background: rgba(0,170,255,0.04);
  border: 1px solid rgba(0,170,255,0.15);
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  color: #ccc;
  min-height: 80px;
  margin-top: 12px;
  line-height: 1.6;
  display: none;
}

.coach-tip {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: #ccc;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: 0.25s;
}

.coach-tip:hover {
  border-color: rgba(0,170,255,0.2);
  background: rgba(0,170,255,0.04);
}

.coach-tip i {
  color: #00aaff;
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 14px;
  color: #ccc;
}

.schedule-row:last-child { border-bottom: none; }

.schedule-time {
  font-size: 12px;
  color: #00aaff;
  font-weight: 600;
}

/* ======================================= */
/* ===== 17. SECURITY PAGE =============== */
/* ======================================= */

.security-header { margin-bottom: 30px; }
.security-header h2 { font-size: 26px; }

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 30px;
}

.security-card {
  background: #0b0b0b;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 25px;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
}

.security-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(0,170,255,0.15);
}

.security-card h3 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.security-card h3 i { color: #00aaff; }

.threat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.04);
  transition: 0.25s;
}

.threat-item:hover { background: rgba(255,255,255,0.02); }
.threat-item i { font-size: 16px; flex-shrink: 0; }

.threat-item.blocked { background: rgba(255,77,77,0.05); border-color: rgba(255,77,77,0.15); }
.threat-item.blocked i { color: #ff4d4d; }
.threat-item.warning { background: rgba(255,170,0,0.05); border-color: rgba(255,170,0,0.15); }
.threat-item.warning i { color: #ffaa00; }
.threat-item.safe { background: rgba(0,230,118,0.05); border-color: rgba(0,230,118,0.15); }
.threat-item.safe i { color: #00e676; }

.threat-meta { margin-left: auto; font-size: 11px; color: #555; }

.security-score { text-align: center; padding: 20px 0; }

.score-ring {
  width: 120px; height: 120px; border-radius: 50%;
  background: conic-gradient(#00aaff 0deg 306deg, rgba(255,255,255,0.05) 306deg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; position: relative;
}

.score-ring::before {
  content: ''; width: 90px; height: 90px; background: #0b0b0b;
  border-radius: 50%; position: absolute;
}

.score-number { font-size: 28px; font-weight: 700; color: #00aaff; position: relative; z-index: 1; }
.score-label { font-size: 13px; color: #aaa; }

.verify-input-row { display: flex; gap: 8px; margin-bottom: 12px; }
.verify-input-row input {
  flex: 1; background: #111; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 10px; color: #fff; font-size: 14px; font-family: 'Poppins', sans-serif;
}

/* ======================================= */
/* ===== 18. CLIENT PORTAL PAGE ========== */
/* ======================================= */

.portal-header { margin-bottom: 30px; }
.portal-header h2 { font-size: 26px; }

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 30px;
}

.portal-card {
  background: #0b0b0b;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 25px;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
}

.portal-card:hover { transform: translateY(-3px); box-shadow: 0 0 25px rgba(0,170,255,0.15); }

.portal-card h3 {
  font-size: 17px; color: #fff; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}

.portal-card h3 i { color: #00aaff; }

.portal-client-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}

.portal-client-row:last-child { border-bottom: none; }

.portal-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #0066ff, #00aaff);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}

.portal-client-info { flex: 1; }
.portal-client-info strong { display: block; font-size: 14px; color: #fff; }
.portal-client-info span { font-size: 12px; color: #aaa; }

.portal-status { font-size: 11px; padding: 3px 8px; border-radius: 6px; font-weight: 700; }
.portal-status.active { background: rgba(0,230,118,0.12); color: #00e676; }
.portal-status.pending { background: rgba(255,170,0,0.12); color: #ffaa00; }
.portal-status.review { background: rgba(0,170,255,0.12); color: #00aaff; }

.portal-project-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 14px; color: #ccc;
}
.portal-project-row:last-child { border-bottom: none; }
.portal-progress-label { font-size: 12px; color: #00aaff; font-weight: 600; }

/* ======================================= */
/* ===== 19. PLAN LOCK OVERLAY =========== */
/* ======================================= */

.plan-lock-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(12px);
  display: flex; justify-content: center; align-items: center; z-index: 8888;
}

.plan-lock-card {
  background: #0b0b0b; border: 1px solid rgba(0,170,255,0.25);
  border-radius: 24px; padding: 48px 40px; max-width: 480px; width: 90%;
  text-align: center; box-shadow: 0 0 60px rgba(0,170,255,0.1);
}

.plan-lock-icon { font-size: 48px; color: #00aaff; margin-bottom: 20px; filter: drop-shadow(0 0 12px rgba(0,170,255,0.5)); }
.plan-lock-card h2 { font-size: 22px; margin-bottom: 10px; color: #fff; }
.plan-lock-card p { color: #aaa; font-size: 14px; margin-bottom: 28px; line-height: 1.6; }
.plan-lock-badge { display: inline-block; background: rgba(0,170,255,0.1); border: 1px solid rgba(0,170,255,0.3); color: #00aaff; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-bottom: 24px; letter-spacing: 0.5px; }
.plan-lock-btn { display: block; width: 100%; padding: 14px; background: linear-gradient(90deg, #0066ff, #00aaff); border: none; border-radius: 12px; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; font-family: 'Poppins', sans-serif; margin-bottom: 12px; transition: 0.3s; }
.plan-lock-btn:hover { box-shadow: 0 0 20px rgba(0,170,255,0.4); }
.plan-lock-back { background: none; border: none; color: #555; font-size: 13px; cursor: pointer; font-family: 'Poppins', sans-serif; transition: 0.2s; }
.plan-lock-back:hover { color: #aaa; }

/* ======================================= */
/* ===== 20. TEAM PAGE =================== */
/* ======================================= */

.team-header { margin-bottom: 30px; }
.team-header h2 { font-size: 26px; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; margin-bottom: 30px; }

.team-card {
  background: #0b0b0b; border: 1px solid rgba(255,255,255,0.05);
  border-radius: 18px; padding: 25px; transition: 0.3s; box-shadow: 0 0 15px rgba(0,0,0,0.6);
}
.team-card:hover { transform: translateY(-3px); box-shadow: 0 0 25px rgba(0,170,255,0.15); }
.team-card h3 { font-size: 17px; color: #fff; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.team-card h3 i { color: #00aaff; }

.member-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.member-row:last-child { border-bottom: none; }
.member-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #0066ff, #00aaff); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; color: #fff; }
.member-info { flex: 1; }
.member-info strong { display: block; font-size: 14px; color: #fff; }
.member-info span { font-size: 12px; color: #aaa; }
.member-role { font-size: 11px; padding: 3px 10px; border-radius: 6px; font-weight: 700; margin-right: 8px; }
.role-owner { background: rgba(255,170,0,0.12); color: #ffaa00; }
.role-admin { background: rgba(0,170,255,0.12); color: #00aaff; }
.role-manager { background: rgba(0,230,118,0.12); color: #00e676; }
.role-member { background: rgba(255,255,255,0.06); color: #aaa; }
.member-status { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.member-status.online { background: #00e676; box-shadow: 0 0 6px #00e676; }
.member-status.offline { background: #444; }
.member-status.away { background: #ffaa00; }

.activity-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 13px; color: #ccc; }
.activity-item:last-child { border-bottom: none; }
.activity-item i { color: #00aaff; font-size: 14px; margin-top: 2px; flex-shrink: 0; }
.activity-time { margin-left: auto; font-size: 11px; color: #444; flex-shrink: 0; }

.invite-form { display: flex; gap: 8px; margin-bottom: 16px; }
.invite-form input { flex: 1; background: #111; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 10px 14px; color: #fff; font-family: 'Poppins', sans-serif; font-size: 13px; }
.invite-form select { background: #111; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 10px; color: #fff; font-family: 'Poppins', sans-serif; font-size: 13px; }

.permission-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 14px; color: #ccc; }
.permission-row:last-child { border-bottom: none; }
.permission-toggle { width: 40px; height: 22px; border-radius: 11px; border: none; cursor: pointer; transition: 0.3s; position: relative; flex-shrink: 0; }
.permission-toggle.on { background: #00aaff; }
.permission-toggle.off { background: #333; }
.permission-toggle::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 3px; transition: 0.3s; }
.permission-toggle.on::after { left: 21px; }
.permission-toggle.off::after { left: 3px; }

/* Toast notification */
.nerozo-toast {
  position: fixed; bottom: 30px; right: 30px;
  background: #0b0b0b; border: 1px solid rgba(0,170,255,0.3);
  border-radius: 12px; padding: 14px 20px; color: #fff; font-size: 14px;
  display: flex; align-items: center; gap: 10px; z-index: 9999;
  box-shadow: 0 0 30px rgba(0,0,0,0.8); transform: translateY(80px);
  opacity: 0; transition: all 0.3s ease;
}
.nerozo-toast.show { transform: translateY(0); opacity: 1; }
.nerozo-toast i { color: #00aaff; }
.nerozo-toast.success i { color: #00e676; }
.nerozo-toast.error i { color: #ff4d4d; }

/* Fix bottom gap */
.main { padding-bottom: 40px; }
.dashboard { min-height: 100vh; }

/* ======================================= */
/* ===== MOBILE RESPONSIVE =============== */
/* ======================================= */

.nerozo-drawer-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 14px 6px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; color: #aaa;
  text-decoration: none; font-family: 'Poppins', sans-serif; font-size: 11px;
  font-weight: 500; transition: all 0.18s;
}
.nerozo-drawer-item i { font-size: 20px; color: #00aaff; }
.nerozo-drawer-item:hover { background: rgba(0,170,255,0.08); border-color: rgba(0,170,255,0.2); color: #fff; }

@media (max-width: 768px) {
  #nerozo-bottom-nav { display: flex; }
  .dashboard { flex-direction: column; }
  .sidebar { display: none !important; }
  .main { width: 100% !important; min-width: 0; padding: 12px 14px 80px; box-sizing: border-box; margin: 0 !important; }
  .topbar { justify-content: flex-end; padding: 0 0 10px; }
  .performance-overview { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
  .metric { min-width: 0; }
  .metric h4 { font-size: 16px; word-break: break-all; }
  .metric p  { font-size: 11px; }
  .cards { display: flex !important; flex-direction: column; gap: 12px; }
  .card  { width: 100%; min-width: 0; box-sizing: border-box; overflow-wrap: break-word; }
  .chat { height: 150px; }
  .crm-stats { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { min-width: 0; }
  .leads-table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .leads-table { min-width: 440px; }
  .finance-grid { display: flex !important; flex-direction: column; gap: 12px; }
  .finance-card { min-width: 0; box-sizing: border-box; }
  .finance-forecast { padding: 14px; box-sizing: border-box; }
  .finance-forecast > div { flex-direction: column !important; gap: 14px; }
  .finance-amount { font-size: 26px !important; }
  .automations-grid { grid-template-columns: 1fr !important; }
  .automations-header { flex-wrap: wrap; gap: 10px; }
  .ai-workflow textarea { width: 100%; box-sizing: border-box; }
  .marketing-grid { display: flex !important; flex-direction: column; gap: 12px; }
  .marketing-card { min-width: 0; box-sizing: border-box; }
  .campaign-type-grid { flex-wrap: wrap; }
  .portal-grid { display: flex !important; flex-direction: column; gap: 12px; }
  .portal-card { min-width: 0; box-sizing: border-box; }
  .team-grid { grid-template-columns: 1fr !important; }
  .security-grid { display: flex !important; flex-direction: column; gap: 12px; }
  .security-card { min-width: 0; box-sizing: border-box; }
  .setting-row { flex-direction: column !important; align-items: flex-start !important; gap: 8px; }
  .setting-row input, .setting-row select, .setting-row textarea { min-width: 0 !important; width: 100% !important; box-sizing: border-box; }
  .modal-overlay { align-items: flex-end !important; padding: 0 !important; }
  .modal-card { width: 100% !important; max-width: 100% !important; border-radius: 18px 18px 0 0 !important; padding: 22px 16px 36px !important; box-sizing: border-box; max-height: 88vh; overflow-y: auto; }
  .nerozo-modal { padding: 10px !important; align-items: flex-end !important; }
  .nerozo-modal-card { width: 100%; box-sizing: border-box; max-height: 85vh; overflow-y: auto; border-radius: 18px 18px 0 0; }
  .analytics-header { flex-wrap: wrap; gap: 10px; }
  h2, h3, h4, p, span, li, td, th, label, a { word-wrap: break-word; overflow-wrap: break-word; max-width: 100%; }
  .modal-card { padding-bottom: 80px !important; }
  .modal-overlay { padding-bottom: 62px !important; box-sizing: border-box; }
  .nerozo-modal-card { padding-bottom: 80px !important; }
  .modal-card.wide { padding-bottom: 80px !important; }
}

@media (max-width: 480px) {
  .main { padding: 10px 10px 80px; }
  .performance-overview { padding: 10px !important; gap: 8px !important; }
  .metric h4 { font-size: 14px; }
  .metric p  { font-size: 10px; }
  .card { padding: 12px !important; }
  .finance-amount { font-size: 20px !important; }
  .add-lead-btn, .new-automation-btn, .ai-generate-btn, .save-btn { width: 100%; box-sizing: border-box; text-align: center; justify-content: center; }
  .quick-actions button { width: 100%; box-sizing: border-box; margin-bottom: 6px; }
  .automation-card { flex-direction: column; gap: 10px; }
  .mic-btn { width: 56px !important; height: 56px !important; font-size: 20px !important; }
  #nerozo-drawer-grid { grid-template-columns: repeat(3, 1fr); }
}

